@botfabrik/engine-webclient 4.76.16 → 4.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,110 +0,0 @@
1
- var U_=Object.defineProperty;var H_=(e,n,i)=>n in e?U_(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var we=(e,n,i)=>H_(e,typeof n!="symbol"?n+"":n,i);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(l){if(l.ep)return;l.ep=!0;const u=i(l);fetch(l.href,u)}})();var hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var su={exports:{}},Hi={},au={exports:{}},me={};/**
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 mp;function G_(){if(mp)return me;mp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function m(I){return I===null||typeof I!="object"?null:(I=w&&I[w]||I["@@iterator"],typeof I=="function"?I:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,R={};function C(I,B,ue){this.props=I,this.context=B,this.refs=R,this.updater=ue||E}C.prototype.isReactComponent={},C.prototype.setState=function(I,B){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,B,"setState")},C.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function O(){}O.prototype=C.prototype;function N(I,B,ue){this.props=I,this.context=B,this.refs=R,this.updater=ue||E}var b=N.prototype=new O;b.constructor=N,v(b,C.prototype),b.isPureReactComponent=!0;var T=Array.isArray,x=Object.prototype.hasOwnProperty,L={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function W(I,B,ue){var fe,ye={},ve=null,ke=null;if(B!=null)for(fe in B.ref!==void 0&&(ke=B.ref),B.key!==void 0&&(ve=""+B.key),B)x.call(B,fe)&&!G.hasOwnProperty(fe)&&(ye[fe]=B[fe]);var Te=arguments.length-2;if(Te===1)ye.children=ue;else if(1<Te){for(var Re=Array(Te),Je=0;Je<Te;Je++)Re[Je]=arguments[Je+2];ye.children=Re}if(I&&I.defaultProps)for(fe in Te=I.defaultProps,Te)ye[fe]===void 0&&(ye[fe]=Te[fe]);return{$$typeof:e,type:I,key:ve,ref:ke,props:ye,_owner:L.current}}function he(I,B){return{$$typeof:e,type:I.type,key:B,ref:I.ref,props:I.props,_owner:I._owner}}function te(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function ce(I){var B={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ue){return B[ue]})}var pe=/\/+/g;function le(I,B){return typeof I=="object"&&I!==null&&I.key!=null?ce(""+I.key):B.toString(36)}function ze(I,B,ue,fe,ye){var ve=typeof I;(ve==="undefined"||ve==="boolean")&&(I=null);var ke=!1;if(I===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(I.$$typeof){case e:case n:ke=!0}}if(ke)return ke=I,ye=ye(ke),I=fe===""?"."+le(ke,0):fe,T(ye)?(ue="",I!=null&&(ue=I.replace(pe,"$&/")+"/"),ze(ye,B,ue,"",function(Je){return Je})):ye!=null&&(te(ye)&&(ye=he(ye,ue+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+I)),B.push(ye)),1;if(ke=0,fe=fe===""?".":fe+":",T(I))for(var Te=0;Te<I.length;Te++){ve=I[Te];var Re=fe+le(ve,Te);ke+=ze(ve,B,ue,Re,ye)}else if(Re=m(I),typeof Re=="function")for(I=Re.call(I),Te=0;!(ve=I.next()).done;)ve=ve.value,Re=fe+le(ve,Te++),ke+=ze(ve,B,ue,Re,ye);else if(ve==="object")throw B=String(I),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return ke}function Pe(I,B,ue){if(I==null)return I;var fe=[],ye=0;return ze(I,fe,"","",function(ve){return B.call(ue,ve,ye++)}),fe}function $e(I){if(I._status===-1){var B=I._result;B=B(),B.then(function(ue){(I._status===0||I._status===-1)&&(I._status=1,I._result=ue)},function(ue){(I._status===0||I._status===-1)&&(I._status=2,I._result=ue)}),I._status===-1&&(I._status=0,I._result=B)}if(I._status===1)return I._result.default;throw I._result}var Ne={current:null},V={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:V,ReactCurrentOwner:L};function Q(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Pe,forEach:function(I,B,ue){Pe(I,function(){B.apply(this,arguments)},ue)},count:function(I){var B=0;return Pe(I,function(){B++}),B},toArray:function(I){return Pe(I,function(B){return B})||[]},only:function(I){if(!te(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},me.Component=C,me.Fragment=i,me.Profiler=l,me.PureComponent=N,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,me.act=Q,me.cloneElement=function(I,B,ue){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var fe=v({},I.props),ye=I.key,ve=I.ref,ke=I._owner;if(B!=null){if(B.ref!==void 0&&(ve=B.ref,ke=L.current),B.key!==void 0&&(ye=""+B.key),I.type&&I.type.defaultProps)var Te=I.type.defaultProps;for(Re in B)x.call(B,Re)&&!G.hasOwnProperty(Re)&&(fe[Re]=B[Re]===void 0&&Te!==void 0?Te[Re]:B[Re])}var Re=arguments.length-2;if(Re===1)fe.children=ue;else if(1<Re){Te=Array(Re);for(var Je=0;Je<Re;Je++)Te[Je]=arguments[Je+2];fe.children=Te}return{$$typeof:e,type:I.type,key:ye,ref:ve,props:fe,_owner:ke}},me.createContext=function(I){return I={$$typeof:d,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:u,_context:I},I.Consumer=I},me.createElement=W,me.createFactory=function(I){var B=W.bind(null,I);return B.type=I,B},me.createRef=function(){return{current:null}},me.forwardRef=function(I){return{$$typeof:h,render:I}},me.isValidElement=te,me.lazy=function(I){return{$$typeof:y,_payload:{_status:-1,_result:I},_init:$e}},me.memo=function(I,B){return{$$typeof:_,type:I,compare:B===void 0?null:B}},me.startTransition=function(I){var B=V.transition;V.transition={};try{I()}finally{V.transition=B}},me.unstable_act=Q,me.useCallback=function(I,B){return Ne.current.useCallback(I,B)},me.useContext=function(I){return Ne.current.useContext(I)},me.useDebugValue=function(){},me.useDeferredValue=function(I){return Ne.current.useDeferredValue(I)},me.useEffect=function(I,B){return Ne.current.useEffect(I,B)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(I,B,ue){return Ne.current.useImperativeHandle(I,B,ue)},me.useInsertionEffect=function(I,B){return Ne.current.useInsertionEffect(I,B)},me.useLayoutEffect=function(I,B){return Ne.current.useLayoutEffect(I,B)},me.useMemo=function(I,B){return Ne.current.useMemo(I,B)},me.useReducer=function(I,B,ue){return Ne.current.useReducer(I,B,ue)},me.useRef=function(I){return Ne.current.useRef(I)},me.useState=function(I){return Ne.current.useState(I)},me.useSyncExternalStore=function(I,B,ue){return Ne.current.useSyncExternalStore(I,B,ue)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var gp;function Jn(){return gp||(gp=1,au.exports=G_()),au.exports}/**
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 yp;function $_(){if(yp)return Hi;yp=1;var e=Jn(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(h,p,_){var y,w={},m=null,E=null;_!==void 0&&(m=""+_),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(E=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(w[y]=p[y]);if(h&&h.defaultProps)for(y in p=h.defaultProps,p)w[y]===void 0&&(w[y]=p[y]);return{$$typeof:n,type:h,key:m,ref:E,props:w,_owner:l.current}}return Hi.Fragment=i,Hi.jsx=d,Hi.jsxs=d,Hi}var vp;function q_(){return vp||(vp=1,su.exports=$_()),su.exports}var k=q_(),ps={},lu={exports:{}},Et={},uu={exports:{}},cu={};/**
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
- */var _p;function V_(){return _p||(_p=1,function(e){function n(V,re){var Q=V.length;V.push(re);e:for(;0<Q;){var I=Q-1>>>1,B=V[I];if(0<l(B,re))V[I]=re,V[Q]=B,Q=I;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var re=V[0],Q=V.pop();if(Q!==re){V[0]=Q;e:for(var I=0,B=V.length,ue=B>>>1;I<ue;){var fe=2*(I+1)-1,ye=V[fe],ve=fe+1,ke=V[ve];if(0>l(ye,Q))ve<B&&0>l(ke,ye)?(V[I]=ke,V[ve]=Q,I=ve):(V[I]=ye,V[fe]=Q,I=fe);else if(ve<B&&0>l(ke,Q))V[I]=ke,V[ve]=Q,I=ve;else break e}}return re}function l(V,re){var Q=V.sortIndex-re.sortIndex;return Q!==0?Q:V.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var p=[],_=[],y=1,w=null,m=3,E=!1,v=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(V){for(var re=i(_);re!==null;){if(re.callback===null)s(_);else if(re.startTime<=V)s(_),re.sortIndex=re.expirationTime,n(p,re);else break;re=i(_)}}function T(V){if(R=!1,b(V),!v)if(i(p)!==null)v=!0,$e(x);else{var re=i(_);re!==null&&Ne(T,re.startTime-V)}}function x(V,re){v=!1,R&&(R=!1,O(W),W=-1),E=!0;var Q=m;try{for(b(re),w=i(p);w!==null&&(!(w.expirationTime>re)||V&&!ce());){var I=w.callback;if(typeof I=="function"){w.callback=null,m=w.priorityLevel;var B=I(w.expirationTime<=re);re=e.unstable_now(),typeof B=="function"?w.callback=B:w===i(p)&&s(p),b(re)}else s(p);w=i(p)}if(w!==null)var ue=!0;else{var fe=i(_);fe!==null&&Ne(T,fe.startTime-re),ue=!1}return ue}finally{w=null,m=Q,E=!1}}var L=!1,G=null,W=-1,he=5,te=-1;function ce(){return!(e.unstable_now()-te<he)}function pe(){if(G!==null){var V=e.unstable_now();te=V;var re=!0;try{re=G(!0,V)}finally{re?le():(L=!1,G=null)}}else L=!1}var le;if(typeof N=="function")le=function(){N(pe)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,Pe=ze.port2;ze.port1.onmessage=pe,le=function(){Pe.postMessage(null)}}else le=function(){C(pe,0)};function $e(V){G=V,L||(L=!0,le())}function Ne(V,re){W=C(function(){V(e.unstable_now())},re)}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(V){V.callback=null},e.unstable_continueExecution=function(){v||E||(v=!0,$e(x))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(V){switch(m){case 1:case 2:case 3:var re=3;break;default:re=m}var Q=m;m=re;try{return V()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,re){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=m;m=V;try{return re()}finally{m=Q}},e.unstable_scheduleCallback=function(V,re,Q){var I=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?I+Q:I):Q=I,V){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=Q+B,V={id:y++,callback:re,priorityLevel:V,startTime:Q,expirationTime:B,sortIndex:-1},Q>I?(V.sortIndex=Q,n(_,V),i(p)===null&&V===i(_)&&(R?(O(W),W=-1):R=!0,Ne(T,Q-I))):(V.sortIndex=B,n(p,V),v||E||(v=!0,$e(x))),V},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(V){var re=m;return function(){var Q=m;m=re;try{return V.apply(this,arguments)}finally{m=Q}}}}(cu)),cu}var Ep;function W_(){return Ep||(Ep=1,uu.exports=V_()),uu.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 bp;function X_(){if(bp)return Et;bp=1;var e=Jn(),n=W_();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(t,r){d(t,r),d(t+"Capture",r)}function d(t,r){for(l[t]=r,t=0;t<r.length;t++)s.add(r[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,_=/^[: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]*$/,y={},w={};function m(t){return p.call(w,t)?!0:p.call(y,t)?!1:_.test(t)?w[t]=!0:(y[t]=!0,!1)}function E(t,r,o,a){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function v(t,r,o,a){if(r===null||typeof r>"u"||E(t,r,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function R(t,r,o,a,c,f,g){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=t,this.type=r,this.sanitizeURL=f,this.removeEmptyString=g}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){C[t]=new R(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];C[r]=new R(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){C[t]=new R(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){C[t]=new R(t,2,!1,t,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(t){C[t]=new R(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){C[t]=new R(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){C[t]=new R(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){C[t]=new R(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){C[t]=new R(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(t){return t[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(t){var r=t.replace(O,N);C[r]=new R(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(O,N);C[r]=new R(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(O,N);C[r]=new R(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){C[t]=new R(t,1,!1,t.toLowerCase(),null,!1,!1)}),C.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){C[t]=new R(t,1,!1,t.toLowerCase(),null,!0,!0)});function b(t,r,o,a){var c=C.hasOwnProperty(r)?C[r]:null;(c!==null?c.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(v(r,o,c,a)&&(o=null),a||c===null?m(r)&&(o===null?t.removeAttribute(r):t.setAttribute(r,""+o)):c.mustUseProperty?t[c.propertyName]=o===null?c.type===3?!1:"":o:(r=c.attributeName,a=c.attributeNamespace,o===null?t.removeAttribute(r):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,a?t.setAttributeNS(a,r,o):t.setAttribute(r,o))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),L=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),ce=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),V=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=V&&t[V]||t["@@iterator"],typeof t=="function"?t:null)}var Q=Object.assign,I;function B(t){if(I===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return`
34
- `+I+t}var ue=!1;function fe(t,r){if(!t||ue)return"";ue=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(F){var a=F}Reflect.construct(t,[],r)}else{try{r.call()}catch(F){a=F}t.call(r.prototype)}else{try{throw Error()}catch(F){a=F}t()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var c=F.stack.split(`
35
- `),f=a.stack.split(`
36
- `),g=c.length-1,S=f.length-1;1<=g&&0<=S&&c[g]!==f[S];)S--;for(;1<=g&&0<=S;g--,S--)if(c[g]!==f[S]){if(g!==1||S!==1)do if(g--,S--,0>S||c[g]!==f[S]){var A=`
37
- `+c[g].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=g&&0<=S);break}}}finally{ue=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?B(t):""}function ye(t){switch(t.tag){case 5:return B(t.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return t=fe(t.type,!1),t;case 11:return t=fe(t.type.render,!1),t;case 1:return t=fe(t.type,!0),t;default:return""}}function ve(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case L:return"Portal";case he:return"Profiler";case W:return"StrictMode";case le:return"Suspense";case ze:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ce:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case pe:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Pe:return r=t.displayName||null,r!==null?r:ve(t.type)||"Memo";case $e:r=t._payload,t=t._init;try{return ve(t(r))}catch{}}return null}function ke(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(r);case 8:return r===W?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Je(t){var r=Re(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),a=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ri(t){t._valueTracker||(t._valueTracker=Je(t))}function ut(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),a="";return t&&(a=Re(t)?t.checked?"true":"false":t.value),t=a,t!==o?(r.setValue(t),!0):!1}function er(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ha(t,r){var o=r.checked;return Q({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function Sf(t,r){var o=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;o=Te(r.value!=null?r.value:o),t._wrapperState={initialChecked:a,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function wf(t,r){r=r.checked,r!=null&&b(t,"checked",r,!1)}function pa(t,r){wf(t,r);var o=Te(r.value),a=r.type;if(o!=null)a==="number"?(o===0&&t.value===""||t.value!=o)&&(t.value=""+o):t.value!==""+o&&(t.value=""+o);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?ma(t,r.type,o):r.hasOwnProperty("defaultValue")&&ma(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function xf(t,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,o||r===t.value||(t.value=r),t.defaultValue=r}o=t.name,o!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,o!==""&&(t.name=o)}function ma(t,r,o){(r!=="number"||er(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ni=Array.isArray;function wn(t,r,o,a){if(t=t.options,r){r={};for(var c=0;c<o.length;c++)r["$"+o[c]]=!0;for(o=0;o<t.length;o++)c=r.hasOwnProperty("$"+t[o].value),t[o].selected!==c&&(t[o].selected=c),c&&a&&(t[o].defaultSelected=!0)}else{for(o=""+Te(o),r=null,c=0;c<t.length;c++){if(t[c].value===o){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}r!==null||t[c].disabled||(r=t[c])}r!==null&&(r.selected=!0)}}function ga(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Tf(t,r){var o=r.value;if(o==null){if(o=r.children,r=r.defaultValue,o!=null){if(r!=null)throw Error(i(92));if(ni(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),o=r}t._wrapperState={initialValue:Te(o)}}function Cf(t,r){var o=Te(r.value),a=Te(r.defaultValue);o!=null&&(o=""+o,o!==t.value&&(t.value=o),r.defaultValue==null&&t.defaultValue!==o&&(t.defaultValue=o)),a!=null&&(t.defaultValue=""+a)}function kf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Rf(t){switch(t){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 ya(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Rf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var io,Of=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,a,c){MSApp.execUnsafeLocalFunction(function(){return t(r,o,a,c)})}:t}(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(io=io||document.createElement("div"),io.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=io.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function ii(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var oi={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},qv=["Webkit","ms","Moz","O"];Object.keys(oi).forEach(function(t){qv.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),oi[r]=oi[t]})});function Nf(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||oi.hasOwnProperty(t)&&oi[t]?(""+r).trim():r+"px"}function Af(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Nf(o,r[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var Vv=Q({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 va(t,r){if(r){if(Vv[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function _a(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 Ea=null;function ba(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Sa=null,xn=null,Tn=null;function Pf(t){if(t=ki(t)){if(typeof Sa!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Ro(r),Sa(t.stateNode,t.type,r))}}function If(t){xn?Tn?Tn.push(t):Tn=[t]:xn=t}function Df(){if(xn){var t=xn,r=Tn;if(Tn=xn=null,Pf(t),r)for(t=0;t<r.length;t++)Pf(r[t])}}function Mf(t,r){return t(r)}function Ff(){}var wa=!1;function Lf(t,r,o){if(wa)return t(r,o);wa=!0;try{return Mf(t,r,o)}finally{wa=!1,(xn!==null||Tn!==null)&&(Ff(),Df())}}function si(t,r){var o=t.stateNode;if(o===null)return null;var a=Ro(o);if(a===null)return null;o=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var xa=!1;if(h)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){xa=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{xa=!1}function Wv(t,r,o,a,c,f,g,S,A){var F=Array.prototype.slice.call(arguments,3);try{r.apply(o,F)}catch(z){this.onError(z)}}var li=!1,oo=null,so=!1,Ta=null,Xv={onError:function(t){li=!0,oo=t}};function Qv(t,r,o,a,c,f,g,S,A){li=!1,oo=null,Wv.apply(Xv,arguments)}function Kv(t,r,o,a,c,f,g,S,A){if(Qv.apply(this,arguments),li){if(li){var F=oo;li=!1,oo=null}else throw Error(i(198));so||(so=!0,Ta=F)}}function Jr(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,r.flags&4098&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function Bf(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function jf(t){if(Jr(t)!==t)throw Error(i(188))}function Yv(t){var r=t.alternate;if(!r){if(r=Jr(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,a=r;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(a=c.return,a!==null){o=a;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return jf(c),t;if(f===a)return jf(c),r;f=f.sibling}throw Error(i(188))}if(o.return!==a.return)o=c,a=f;else{for(var g=!1,S=c.child;S;){if(S===o){g=!0,o=c,a=f;break}if(S===a){g=!0,a=c,o=f;break}S=S.sibling}if(!g){for(S=f.child;S;){if(S===o){g=!0,o=f,a=c;break}if(S===a){g=!0,a=f,o=c;break}S=S.sibling}if(!g)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function zf(t){return t=Yv(t),t!==null?Uf(t):null}function Uf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Uf(t);if(r!==null)return r;t=t.sibling}return null}var Hf=n.unstable_scheduleCallback,Gf=n.unstable_cancelCallback,Zv=n.unstable_shouldYield,Jv=n.unstable_requestPaint,He=n.unstable_now,e0=n.unstable_getCurrentPriorityLevel,Ca=n.unstable_ImmediatePriority,$f=n.unstable_UserBlockingPriority,ao=n.unstable_NormalPriority,t0=n.unstable_LowPriority,qf=n.unstable_IdlePriority,lo=null,tr=null;function r0(t){if(tr&&typeof tr.onCommitFiberRoot=="function")try{tr.onCommitFiberRoot(lo,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:o0,n0=Math.log,i0=Math.LN2;function o0(t){return t>>>=0,t===0?32:31-(n0(t)/i0|0)|0}var uo=64,co=4194304;function ui(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function fo(t,r){var o=t.pendingLanes;if(o===0)return 0;var a=0,c=t.suspendedLanes,f=t.pingedLanes,g=o&268435455;if(g!==0){var S=g&~c;S!==0?a=ui(S):(f&=g,f!==0&&(a=ui(f)))}else g=o&~c,g!==0?a=ui(g):f!==0&&(a=ui(f));if(a===0)return 0;if(r!==0&&r!==a&&!(r&c)&&(c=a&-a,f=r&-r,c>=f||c===16&&(f&4194240)!==0))return r;if(a&4&&(a|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)o=31-Ht(r),c=1<<o,a|=t[o],r&=~c;return a}function s0(t,r){switch(t){case 1:case 2:case 4:return r+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 r+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 a0(t,r){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes;0<f;){var g=31-Ht(f),S=1<<g,A=c[g];A===-1?(!(S&o)||S&a)&&(c[g]=s0(S,r)):A<=r&&(t.expiredLanes|=S),f&=~S}}function ka(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Vf(){var t=uo;return uo<<=1,!(uo&4194240)&&(uo=64),t}function Ra(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function ci(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ht(r),t[r]=o}function l0(t,r){var o=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<o;){var c=31-Ht(o),f=1<<c;r[c]=0,a[c]=-1,t[c]=-1,o&=~f}}function Oa(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var a=31-Ht(o),c=1<<a;c&r|t[a]&r&&(t[a]|=r),o&=~c}}var Oe=0;function Wf(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Xf,Na,Qf,Kf,Yf,Aa=!1,ho=[],Rr=null,Or=null,Nr=null,fi=new Map,di=new Map,Ar=[],u0="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 Zf(t,r){switch(t){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":fi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(r.pointerId)}}function hi(t,r,o,a,c,f){return t===null||t.nativeEvent!==f?(t={blockedOn:r,domEventName:o,eventSystemFlags:a,nativeEvent:f,targetContainers:[c]},r!==null&&(r=ki(r),r!==null&&Na(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function c0(t,r,o,a,c){switch(r){case"focusin":return Rr=hi(Rr,t,r,o,a,c),!0;case"dragenter":return Or=hi(Or,t,r,o,a,c),!0;case"mouseover":return Nr=hi(Nr,t,r,o,a,c),!0;case"pointerover":var f=c.pointerId;return fi.set(f,hi(fi.get(f)||null,t,r,o,a,c)),!0;case"gotpointercapture":return f=c.pointerId,di.set(f,hi(di.get(f)||null,t,r,o,a,c)),!0}return!1}function Jf(t){var r=en(t.target);if(r!==null){var o=Jr(r);if(o!==null){if(r=o.tag,r===13){if(r=Bf(o),r!==null){t.blockedOn=r,Yf(t.priority,function(){Qf(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function po(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Ia(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);Ea=a,o.target.dispatchEvent(a),Ea=null}else return r=ki(o),r!==null&&Na(r),t.blockedOn=o,!1;r.shift()}return!0}function ed(t,r,o){po(t)&&o.delete(r)}function f0(){Aa=!1,Rr!==null&&po(Rr)&&(Rr=null),Or!==null&&po(Or)&&(Or=null),Nr!==null&&po(Nr)&&(Nr=null),fi.forEach(ed),di.forEach(ed)}function pi(t,r){t.blockedOn===r&&(t.blockedOn=null,Aa||(Aa=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,f0)))}function mi(t){function r(c){return pi(c,t)}if(0<ho.length){pi(ho[0],t);for(var o=1;o<ho.length;o++){var a=ho[o];a.blockedOn===t&&(a.blockedOn=null)}}for(Rr!==null&&pi(Rr,t),Or!==null&&pi(Or,t),Nr!==null&&pi(Nr,t),fi.forEach(r),di.forEach(r),o=0;o<Ar.length;o++)a=Ar[o],a.blockedOn===t&&(a.blockedOn=null);for(;0<Ar.length&&(o=Ar[0],o.blockedOn===null);)Jf(o),o.blockedOn===null&&Ar.shift()}var Cn=T.ReactCurrentBatchConfig,mo=!0;function d0(t,r,o,a){var c=Oe,f=Cn.transition;Cn.transition=null;try{Oe=1,Pa(t,r,o,a)}finally{Oe=c,Cn.transition=f}}function h0(t,r,o,a){var c=Oe,f=Cn.transition;Cn.transition=null;try{Oe=4,Pa(t,r,o,a)}finally{Oe=c,Cn.transition=f}}function Pa(t,r,o,a){if(mo){var c=Ia(t,r,o,a);if(c===null)Ka(t,r,a,go,o),Zf(t,a);else if(c0(c,t,r,o,a))a.stopPropagation();else if(Zf(t,a),r&4&&-1<u0.indexOf(t)){for(;c!==null;){var f=ki(c);if(f!==null&&Xf(f),f=Ia(t,r,o,a),f===null&&Ka(t,r,a,go,o),f===c)break;c=f}c!==null&&a.stopPropagation()}else Ka(t,r,a,null,o)}}var go=null;function Ia(t,r,o,a){if(go=null,t=ba(a),t=en(t),t!==null)if(r=Jr(t),r===null)t=null;else if(o=r.tag,o===13){if(t=Bf(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return go=t,null}function td(t){switch(t){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(e0()){case Ca:return 1;case $f:return 4;case ao:case t0:return 16;case qf:return 536870912;default:return 16}default:return 16}}var Pr=null,Da=null,yo=null;function rd(){if(yo)return yo;var t,r=Da,o=r.length,a,c="value"in Pr?Pr.value:Pr.textContent,f=c.length;for(t=0;t<o&&r[t]===c[t];t++);var g=o-t;for(a=1;a<=g&&r[o-a]===c[f-a];a++);return yo=c.slice(t,1<a?1-a:void 0)}function vo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function _o(){return!0}function nd(){return!1}function St(t){function r(o,a,c,f,g){this._reactName=o,this._targetInst=c,this.type=a,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(o=t[S],this[S]=o?o(f):f[S]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?_o:nd,this.isPropagationStopped=nd,this}return Q(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=_o)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),r}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ma=St(kn),gi=Q({},kn,{view:0,detail:0}),p0=St(gi),Fa,La,yi,Eo=Q({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ja,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==yi&&(yi&&t.type==="mousemove"?(Fa=t.screenX-yi.screenX,La=t.screenY-yi.screenY):La=Fa=0,yi=t),Fa)},movementY:function(t){return"movementY"in t?t.movementY:La}}),id=St(Eo),m0=Q({},Eo,{dataTransfer:0}),g0=St(m0),y0=Q({},gi,{relatedTarget:0}),Ba=St(y0),v0=Q({},kn,{animationName:0,elapsedTime:0,pseudoElement:0}),_0=St(v0),E0=Q({},kn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),b0=St(E0),S0=Q({},kn,{data:0}),od=St(S0),w0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x0={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"},T0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C0(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=T0[t])?!!r[t]:!1}function ja(){return C0}var k0=Q({},gi,{key:function(t){if(t.key){var r=w0[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=vo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?x0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ja,charCode:function(t){return t.type==="keypress"?vo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?vo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),R0=St(k0),O0=Q({},Eo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sd=St(O0),N0=Q({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ja}),A0=St(N0),P0=Q({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),I0=St(P0),D0=Q({},Eo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),M0=St(D0),F0=[9,13,27,32],za=h&&"CompositionEvent"in window,vi=null;h&&"documentMode"in document&&(vi=document.documentMode);var L0=h&&"TextEvent"in window&&!vi,ad=h&&(!za||vi&&8<vi&&11>=vi),ld=" ",ud=!1;function cd(t,r){switch(t){case"keyup":return F0.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Rn=!1;function B0(t,r){switch(t){case"compositionend":return fd(r);case"keypress":return r.which!==32?null:(ud=!0,ld);case"textInput":return t=r.data,t===ld&&ud?null:t;default:return null}}function j0(t,r){if(Rn)return t==="compositionend"||!za&&cd(t,r)?(t=rd(),yo=Da=Pr=null,Rn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return ad&&r.locale!=="ko"?null:r.data;default:return null}}var z0={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 dd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!z0[t.type]:r==="textarea"}function hd(t,r,o,a){If(a),r=To(r,"onChange"),0<r.length&&(o=new Ma("onChange","change",null,o,a),t.push({event:o,listeners:r}))}var _i=null,Ei=null;function U0(t){Ad(t,0)}function bo(t){var r=In(t);if(ut(r))return t}function H0(t,r){if(t==="change")return r}var pd=!1;if(h){var Ua;if(h){var Ha="oninput"in document;if(!Ha){var md=document.createElement("div");md.setAttribute("oninput","return;"),Ha=typeof md.oninput=="function"}Ua=Ha}else Ua=!1;pd=Ua&&(!document.documentMode||9<document.documentMode)}function gd(){_i&&(_i.detachEvent("onpropertychange",yd),Ei=_i=null)}function yd(t){if(t.propertyName==="value"&&bo(Ei)){var r=[];hd(r,Ei,t,ba(t)),Lf(U0,r)}}function G0(t,r,o){t==="focusin"?(gd(),_i=r,Ei=o,_i.attachEvent("onpropertychange",yd)):t==="focusout"&&gd()}function $0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return bo(Ei)}function q0(t,r){if(t==="click")return bo(r)}function V0(t,r){if(t==="input"||t==="change")return bo(r)}function W0(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Gt=typeof Object.is=="function"?Object.is:W0;function bi(t,r){if(Gt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var c=o[a];if(!p.call(r,c)||!Gt(t[c],r[c]))return!1}return!0}function vd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _d(t,r){var o=vd(t);t=0;for(var a;o;){if(o.nodeType===3){if(a=t+o.textContent.length,t<=r&&a>=r)return{node:o,offset:r-t};t=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=vd(o)}}function Ed(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Ed(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function bd(){for(var t=window,r=er();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=er(t.document)}return r}function Ga(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function X0(t){var r=bd(),o=t.focusedElem,a=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Ed(o.ownerDocument.documentElement,o)){if(a!==null&&Ga(o)){if(r=a.start,t=a.end,t===void 0&&(t=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(t,o.value.length);else if(t=(r=o.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=o.textContent.length,f=Math.min(a.start,c);a=a.end===void 0?f:Math.min(a.end,c),!t.extend&&f>a&&(c=a,a=f,f=c),c=_d(o,f);var g=_d(o,a);c&&g&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==g.node||t.focusOffset!==g.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),f>a?(t.addRange(r),t.extend(g.node,g.offset)):(r.setEnd(g.node,g.offset),t.addRange(r)))}}for(r=[],t=o;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)t=r[o],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Q0=h&&"documentMode"in document&&11>=document.documentMode,On=null,$a=null,Si=null,qa=!1;function Sd(t,r,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;qa||On==null||On!==er(a)||(a=On,"selectionStart"in a&&Ga(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Si&&bi(Si,a)||(Si=a,a=To($a,"onSelect"),0<a.length&&(r=new Ma("onSelect","select",null,r,o),t.push({event:r,listeners:a}),r.target=On)))}function So(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var Nn={animationend:So("Animation","AnimationEnd"),animationiteration:So("Animation","AnimationIteration"),animationstart:So("Animation","AnimationStart"),transitionend:So("Transition","TransitionEnd")},Va={},wd={};h&&(wd=document.createElement("div").style,"AnimationEvent"in window||(delete Nn.animationend.animation,delete Nn.animationiteration.animation,delete Nn.animationstart.animation),"TransitionEvent"in window||delete Nn.transitionend.transition);function wo(t){if(Va[t])return Va[t];if(!Nn[t])return t;var r=Nn[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in wd)return Va[t]=r[o];return t}var xd=wo("animationend"),Td=wo("animationiteration"),Cd=wo("animationstart"),kd=wo("transitionend"),Rd=new Map,Od="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 Ir(t,r){Rd.set(t,r),u(r,[t])}for(var Wa=0;Wa<Od.length;Wa++){var Xa=Od[Wa],K0=Xa.toLowerCase(),Y0=Xa[0].toUpperCase()+Xa.slice(1);Ir(K0,"on"+Y0)}Ir(xd,"onAnimationEnd"),Ir(Td,"onAnimationIteration"),Ir(Cd,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(kd,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),Z0=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function Nd(t,r,o){var a=t.type||"unknown-event";t.currentTarget=o,Kv(a,r,void 0,t),t.currentTarget=null}function Ad(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var a=t[o],c=a.event;a=a.listeners;e:{var f=void 0;if(r)for(var g=a.length-1;0<=g;g--){var S=a[g],A=S.instance,F=S.currentTarget;if(S=S.listener,A!==f&&c.isPropagationStopped())break e;Nd(c,S,F),f=A}else for(g=0;g<a.length;g++){if(S=a[g],A=S.instance,F=S.currentTarget,S=S.listener,A!==f&&c.isPropagationStopped())break e;Nd(c,S,F),f=A}}}if(so)throw t=Ta,so=!1,Ta=null,t}function Ie(t,r){var o=r[rl];o===void 0&&(o=r[rl]=new Set);var a=t+"__bubble";o.has(a)||(Pd(r,t,2,!1),o.add(a))}function Qa(t,r,o){var a=0;r&&(a|=4),Pd(o,t,a,r)}var xo="_reactListening"+Math.random().toString(36).slice(2);function xi(t){if(!t[xo]){t[xo]=!0,s.forEach(function(o){o!=="selectionchange"&&(Z0.has(o)||Qa(o,!1,t),Qa(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[xo]||(r[xo]=!0,Qa("selectionchange",!1,r))}}function Pd(t,r,o,a){switch(td(r)){case 1:var c=d0;break;case 4:c=h0;break;default:c=Pa}o=c.bind(null,r,o,t),c=void 0,!xa||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(r,o,{capture:!0,passive:c}):t.addEventListener(r,o,!0):c!==void 0?t.addEventListener(r,o,{passive:c}):t.addEventListener(r,o,!1)}function Ka(t,r,o,a,c){var f=a;if(!(r&1)&&!(r&2)&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var S=a.stateNode.containerInfo;if(S===c||S.nodeType===8&&S.parentNode===c)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&(A=g.stateNode.containerInfo,A===c||A.nodeType===8&&A.parentNode===c))return;g=g.return}for(;S!==null;){if(g=en(S),g===null)return;if(A=g.tag,A===5||A===6){a=f=g;continue e}S=S.parentNode}}a=a.return}Lf(function(){var F=f,z=ba(o),H=[];e:{var j=Rd.get(t);if(j!==void 0){var X=Ma,Y=t;switch(t){case"keypress":if(vo(o)===0)break e;case"keydown":case"keyup":X=R0;break;case"focusin":Y="focus",X=Ba;break;case"focusout":Y="blur",X=Ba;break;case"beforeblur":case"afterblur":X=Ba;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=g0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=A0;break;case xd:case Td:case Cd:X=_0;break;case kd:X=I0;break;case"scroll":X=p0;break;case"wheel":X=M0;break;case"copy":case"cut":case"paste":X=b0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=sd}var Z=(r&4)!==0,Ge=!Z&&t==="scroll",D=Z?j!==null?j+"Capture":null:j;Z=[];for(var P=F,M;P!==null;){M=P;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,D!==null&&($=si(P,D),$!=null&&Z.push(Ti(P,$,M)))),Ge)break;P=P.return}0<Z.length&&(j=new X(j,Y,null,o,z),H.push({event:j,listeners:Z}))}}if(!(r&7)){e:{if(j=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",j&&o!==Ea&&(Y=o.relatedTarget||o.fromElement)&&(en(Y)||Y[dr]))break e;if((X||j)&&(j=z.window===z?z:(j=z.ownerDocument)?j.defaultView||j.parentWindow:window,X?(Y=o.relatedTarget||o.toElement,X=F,Y=Y?en(Y):null,Y!==null&&(Ge=Jr(Y),Y!==Ge||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(X=null,Y=F),X!==Y)){if(Z=id,$="onMouseLeave",D="onMouseEnter",P="mouse",(t==="pointerout"||t==="pointerover")&&(Z=sd,$="onPointerLeave",D="onPointerEnter",P="pointer"),Ge=X==null?j:In(X),M=Y==null?j:In(Y),j=new Z($,P+"leave",X,o,z),j.target=Ge,j.relatedTarget=M,$=null,en(z)===F&&(Z=new Z(D,P+"enter",Y,o,z),Z.target=M,Z.relatedTarget=Ge,$=Z),Ge=$,X&&Y)t:{for(Z=X,D=Y,P=0,M=Z;M;M=An(M))P++;for(M=0,$=D;$;$=An($))M++;for(;0<P-M;)Z=An(Z),P--;for(;0<M-P;)D=An(D),M--;for(;P--;){if(Z===D||D!==null&&Z===D.alternate)break t;Z=An(Z),D=An(D)}Z=null}else Z=null;X!==null&&Id(H,j,X,Z,!1),Y!==null&&Ge!==null&&Id(H,Ge,Y,Z,!0)}}e:{if(j=F?In(F):window,X=j.nodeName&&j.nodeName.toLowerCase(),X==="select"||X==="input"&&j.type==="file")var ee=H0;else if(dd(j))if(pd)ee=V0;else{ee=$0;var ne=G0}else(X=j.nodeName)&&X.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(ee=q0);if(ee&&(ee=ee(t,F))){hd(H,ee,o,z);break e}ne&&ne(t,j,F),t==="focusout"&&(ne=j._wrapperState)&&ne.controlled&&j.type==="number"&&ma(j,"number",j.value)}switch(ne=F?In(F):window,t){case"focusin":(dd(ne)||ne.contentEditable==="true")&&(On=ne,$a=F,Si=null);break;case"focusout":Si=$a=On=null;break;case"mousedown":qa=!0;break;case"contextmenu":case"mouseup":case"dragend":qa=!1,Sd(H,o,z);break;case"selectionchange":if(Q0)break;case"keydown":case"keyup":Sd(H,o,z)}var ie;if(za)e:{switch(t){case"compositionstart":var se="onCompositionStart";break e;case"compositionend":se="onCompositionEnd";break e;case"compositionupdate":se="onCompositionUpdate";break e}se=void 0}else Rn?cd(t,o)&&(se="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(se="onCompositionStart");se&&(ad&&o.locale!=="ko"&&(Rn||se!=="onCompositionStart"?se==="onCompositionEnd"&&Rn&&(ie=rd()):(Pr=z,Da="value"in Pr?Pr.value:Pr.textContent,Rn=!0)),ne=To(F,se),0<ne.length&&(se=new od(se,t,null,o,z),H.push({event:se,listeners:ne}),ie?se.data=ie:(ie=fd(o),ie!==null&&(se.data=ie)))),(ie=L0?B0(t,o):j0(t,o))&&(F=To(F,"onBeforeInput"),0<F.length&&(z=new od("onBeforeInput","beforeinput",null,o,z),H.push({event:z,listeners:F}),z.data=ie))}Ad(H,r)})}function Ti(t,r,o){return{instance:t,listener:r,currentTarget:o}}function To(t,r){for(var o=r+"Capture",a=[];t!==null;){var c=t,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=si(t,o),f!=null&&a.unshift(Ti(t,f,c)),f=si(t,r),f!=null&&a.push(Ti(t,f,c))),t=t.return}return a}function An(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Id(t,r,o,a,c){for(var f=r._reactName,g=[];o!==null&&o!==a;){var S=o,A=S.alternate,F=S.stateNode;if(A!==null&&A===a)break;S.tag===5&&F!==null&&(S=F,c?(A=si(o,f),A!=null&&g.unshift(Ti(o,A,S))):c||(A=si(o,f),A!=null&&g.push(Ti(o,A,S)))),o=o.return}g.length!==0&&t.push({event:r,listeners:g})}var J0=/\r\n?/g,e_=/\u0000|\uFFFD/g;function Dd(t){return(typeof t=="string"?t:""+t).replace(J0,`
38
- `).replace(e_,"")}function Co(t,r,o){if(r=Dd(r),Dd(t)!==r&&o)throw Error(i(425))}function ko(){}var Ya=null,Za=null;function Ja(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var el=typeof setTimeout=="function"?setTimeout:void 0,t_=typeof clearTimeout=="function"?clearTimeout:void 0,Md=typeof Promise=="function"?Promise:void 0,r_=typeof queueMicrotask=="function"?queueMicrotask:typeof Md<"u"?function(t){return Md.resolve(null).then(t).catch(n_)}:el;function n_(t){setTimeout(function(){throw t})}function tl(t,r){var o=r,a=0;do{var c=o.nextSibling;if(t.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0){t.removeChild(c),mi(r);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);mi(r)}function Dr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Fd(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return t;r--}else o==="/$"&&r++}t=t.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),rr="__reactFiber$"+Pn,Ci="__reactProps$"+Pn,dr="__reactContainer$"+Pn,rl="__reactEvents$"+Pn,i_="__reactListeners$"+Pn,o_="__reactHandles$"+Pn;function en(t){var r=t[rr];if(r)return r;for(var o=t.parentNode;o;){if(r=o[dr]||o[rr]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=Fd(t);t!==null;){if(o=t[rr])return o;t=Fd(t)}return r}t=o,o=t.parentNode}return null}function ki(t){return t=t[rr]||t[dr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function In(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Ro(t){return t[Ci]||null}var nl=[],Dn=-1;function Mr(t){return{current:t}}function De(t){0>Dn||(t.current=nl[Dn],nl[Dn]=null,Dn--)}function Ae(t,r){Dn++,nl[Dn]=t.current,t.current=r}var Fr={},ot=Mr(Fr),mt=Mr(!1),tn=Fr;function Mn(t,r){var o=t.type.contextTypes;if(!o)return Fr;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=r[f];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function gt(t){return t=t.childContextTypes,t!=null}function Oo(){De(mt),De(ot)}function Ld(t,r,o){if(ot.current!==Fr)throw Error(i(168));Ae(ot,r),Ae(mt,o)}function Bd(t,r,o){var a=t.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var c in a)if(!(c in r))throw Error(i(108,ke(t)||"Unknown",c));return Q({},o,a)}function No(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fr,tn=ot.current,Ae(ot,t),Ae(mt,mt.current),!0}function jd(t,r,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=Bd(t,r,tn),a.__reactInternalMemoizedMergedChildContext=t,De(mt),De(ot),Ae(ot,t)):De(mt),Ae(mt,o)}var hr=null,Ao=!1,il=!1;function zd(t){hr===null?hr=[t]:hr.push(t)}function s_(t){Ao=!0,zd(t)}function Lr(){if(!il&&hr!==null){il=!0;var t=0,r=Oe;try{var o=hr;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}hr=null,Ao=!1}catch(c){throw hr!==null&&(hr=hr.slice(t+1)),Hf(Ca,Lr),c}finally{Oe=r,il=!1}}return null}var Fn=[],Ln=0,Po=null,Io=0,Pt=[],It=0,rn=null,pr=1,mr="";function nn(t,r){Fn[Ln++]=Io,Fn[Ln++]=Po,Po=t,Io=r}function Ud(t,r,o){Pt[It++]=pr,Pt[It++]=mr,Pt[It++]=rn,rn=t;var a=pr;t=mr;var c=32-Ht(a)-1;a&=~(1<<c),o+=1;var f=32-Ht(r)+c;if(30<f){var g=c-c%5;f=(a&(1<<g)-1).toString(32),a>>=g,c-=g,pr=1<<32-Ht(r)+c|o<<c|a,mr=f+t}else pr=1<<f|o<<c|a,mr=t}function ol(t){t.return!==null&&(nn(t,1),Ud(t,1,0))}function sl(t){for(;t===Po;)Po=Fn[--Ln],Fn[Ln]=null,Io=Fn[--Ln],Fn[Ln]=null;for(;t===rn;)rn=Pt[--It],Pt[It]=null,mr=Pt[--It],Pt[It]=null,pr=Pt[--It],Pt[It]=null}var wt=null,xt=null,Fe=!1,$t=null;function Hd(t,r){var o=Lt(5,null,null,0);o.elementType="DELETED",o.stateNode=r,o.return=t,r=t.deletions,r===null?(t.deletions=[o],t.flags|=16):r.push(o)}function Gd(t,r){switch(t.tag){case 5:var o=t.type;return r=r.nodeType!==1||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,wt=t,xt=Dr(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,wt=t,xt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=rn!==null?{id:pr,overflow:mr}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Lt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,wt=t,xt=null,!0):!1;default:return!1}}function al(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ll(t){if(Fe){var r=xt;if(r){var o=r;if(!Gd(t,r)){if(al(t))throw Error(i(418));r=Dr(o.nextSibling);var a=wt;r&&Gd(t,r)?Hd(a,o):(t.flags=t.flags&-4097|2,Fe=!1,wt=t)}}else{if(al(t))throw Error(i(418));t.flags=t.flags&-4097|2,Fe=!1,wt=t}}}function $d(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;wt=t}function Do(t){if(t!==wt)return!1;if(!Fe)return $d(t),Fe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!Ja(t.type,t.memoizedProps)),r&&(r=xt)){if(al(t))throw qd(),Error(i(418));for(;r;)Hd(t,r),r=Dr(r.nextSibling)}if($d(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"){if(r===0){xt=Dr(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}xt=null}}else xt=wt?Dr(t.stateNode.nextSibling):null;return!0}function qd(){for(var t=xt;t;)t=Dr(t.nextSibling)}function Bn(){xt=wt=null,Fe=!1}function ul(t){$t===null?$t=[t]:$t.push(t)}var a_=T.ReactCurrentBatchConfig;function Ri(t,r,o){if(t=o.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,t));var c=a,f=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===f?r.ref:(r=function(g){var S=c.refs;g===null?delete S[f]:S[f]=g},r._stringRef=f,r)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function Mo(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Vd(t){var r=t._init;return r(t._payload)}function Wd(t){function r(D,P){if(t){var M=D.deletions;M===null?(D.deletions=[P],D.flags|=16):M.push(P)}}function o(D,P){if(!t)return null;for(;P!==null;)r(D,P),P=P.sibling;return null}function a(D,P){for(D=new Map;P!==null;)P.key!==null?D.set(P.key,P):D.set(P.index,P),P=P.sibling;return D}function c(D,P){return D=qr(D,P),D.index=0,D.sibling=null,D}function f(D,P,M){return D.index=M,t?(M=D.alternate,M!==null?(M=M.index,M<P?(D.flags|=2,P):M):(D.flags|=2,P)):(D.flags|=1048576,P)}function g(D){return t&&D.alternate===null&&(D.flags|=2),D}function S(D,P,M,$){return P===null||P.tag!==6?(P=eu(M,D.mode,$),P.return=D,P):(P=c(P,M),P.return=D,P)}function A(D,P,M,$){var ee=M.type;return ee===G?z(D,P,M.props.children,$,M.key):P!==null&&(P.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&Vd(ee)===P.type)?($=c(P,M.props),$.ref=Ri(D,P,M),$.return=D,$):($=os(M.type,M.key,M.props,null,D.mode,$),$.ref=Ri(D,P,M),$.return=D,$)}function F(D,P,M,$){return P===null||P.tag!==4||P.stateNode.containerInfo!==M.containerInfo||P.stateNode.implementation!==M.implementation?(P=tu(M,D.mode,$),P.return=D,P):(P=c(P,M.children||[]),P.return=D,P)}function z(D,P,M,$,ee){return P===null||P.tag!==7?(P=dn(M,D.mode,$,ee),P.return=D,P):(P=c(P,M),P.return=D,P)}function H(D,P,M){if(typeof P=="string"&&P!==""||typeof P=="number")return P=eu(""+P,D.mode,M),P.return=D,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case x:return M=os(P.type,P.key,P.props,null,D.mode,M),M.ref=Ri(D,null,P),M.return=D,M;case L:return P=tu(P,D.mode,M),P.return=D,P;case $e:var $=P._init;return H(D,$(P._payload),M)}if(ni(P)||re(P))return P=dn(P,D.mode,M,null),P.return=D,P;Mo(D,P)}return null}function j(D,P,M,$){var ee=P!==null?P.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:S(D,P,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return M.key===ee?A(D,P,M,$):null;case L:return M.key===ee?F(D,P,M,$):null;case $e:return ee=M._init,j(D,P,ee(M._payload),$)}if(ni(M)||re(M))return ee!==null?null:z(D,P,M,$,null);Mo(D,M)}return null}function X(D,P,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return D=D.get(M)||null,S(P,D,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return D=D.get($.key===null?M:$.key)||null,A(P,D,$,ee);case L:return D=D.get($.key===null?M:$.key)||null,F(P,D,$,ee);case $e:var ne=$._init;return X(D,P,M,ne($._payload),ee)}if(ni($)||re($))return D=D.get(M)||null,z(P,D,$,ee,null);Mo(P,$)}return null}function Y(D,P,M,$){for(var ee=null,ne=null,ie=P,se=P=0,Ze=null;ie!==null&&se<M.length;se++){ie.index>se?(Ze=ie,ie=null):Ze=ie.sibling;var xe=j(D,ie,M[se],$);if(xe===null){ie===null&&(ie=Ze);break}t&&ie&&xe.alternate===null&&r(D,ie),P=f(xe,P,se),ne===null?ee=xe:ne.sibling=xe,ne=xe,ie=Ze}if(se===M.length)return o(D,ie),Fe&&nn(D,se),ee;if(ie===null){for(;se<M.length;se++)ie=H(D,M[se],$),ie!==null&&(P=f(ie,P,se),ne===null?ee=ie:ne.sibling=ie,ne=ie);return Fe&&nn(D,se),ee}for(ie=a(D,ie);se<M.length;se++)Ze=X(ie,D,se,M[se],$),Ze!==null&&(t&&Ze.alternate!==null&&ie.delete(Ze.key===null?se:Ze.key),P=f(Ze,P,se),ne===null?ee=Ze:ne.sibling=Ze,ne=Ze);return t&&ie.forEach(function(Vr){return r(D,Vr)}),Fe&&nn(D,se),ee}function Z(D,P,M,$){var ee=re(M);if(typeof ee!="function")throw Error(i(150));if(M=ee.call(M),M==null)throw Error(i(151));for(var ne=ee=null,ie=P,se=P=0,Ze=null,xe=M.next();ie!==null&&!xe.done;se++,xe=M.next()){ie.index>se?(Ze=ie,ie=null):Ze=ie.sibling;var Vr=j(D,ie,xe.value,$);if(Vr===null){ie===null&&(ie=Ze);break}t&&ie&&Vr.alternate===null&&r(D,ie),P=f(Vr,P,se),ne===null?ee=Vr:ne.sibling=Vr,ne=Vr,ie=Ze}if(xe.done)return o(D,ie),Fe&&nn(D,se),ee;if(ie===null){for(;!xe.done;se++,xe=M.next())xe=H(D,xe.value,$),xe!==null&&(P=f(xe,P,se),ne===null?ee=xe:ne.sibling=xe,ne=xe);return Fe&&nn(D,se),ee}for(ie=a(D,ie);!xe.done;se++,xe=M.next())xe=X(ie,D,se,xe.value,$),xe!==null&&(t&&xe.alternate!==null&&ie.delete(xe.key===null?se:xe.key),P=f(xe,P,se),ne===null?ee=xe:ne.sibling=xe,ne=xe);return t&&ie.forEach(function(z_){return r(D,z_)}),Fe&&nn(D,se),ee}function Ge(D,P,M,$){if(typeof M=="object"&&M!==null&&M.type===G&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case x:e:{for(var ee=M.key,ne=P;ne!==null;){if(ne.key===ee){if(ee=M.type,ee===G){if(ne.tag===7){o(D,ne.sibling),P=c(ne,M.props.children),P.return=D,D=P;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&Vd(ee)===ne.type){o(D,ne.sibling),P=c(ne,M.props),P.ref=Ri(D,ne,M),P.return=D,D=P;break e}o(D,ne);break}else r(D,ne);ne=ne.sibling}M.type===G?(P=dn(M.props.children,D.mode,$,M.key),P.return=D,D=P):($=os(M.type,M.key,M.props,null,D.mode,$),$.ref=Ri(D,P,M),$.return=D,D=$)}return g(D);case L:e:{for(ne=M.key;P!==null;){if(P.key===ne)if(P.tag===4&&P.stateNode.containerInfo===M.containerInfo&&P.stateNode.implementation===M.implementation){o(D,P.sibling),P=c(P,M.children||[]),P.return=D,D=P;break e}else{o(D,P);break}else r(D,P);P=P.sibling}P=tu(M,D.mode,$),P.return=D,D=P}return g(D);case $e:return ne=M._init,Ge(D,P,ne(M._payload),$)}if(ni(M))return Y(D,P,M,$);if(re(M))return Z(D,P,M,$);Mo(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,P!==null&&P.tag===6?(o(D,P.sibling),P=c(P,M),P.return=D,D=P):(o(D,P),P=eu(M,D.mode,$),P.return=D,D=P),g(D)):o(D,P)}return Ge}var jn=Wd(!0),Xd=Wd(!1),Fo=Mr(null),Lo=null,zn=null,cl=null;function fl(){cl=zn=Lo=null}function dl(t){var r=Fo.current;De(Fo),t._currentValue=r}function hl(t,r,o){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===o)break;t=t.return}}function Un(t,r){Lo=t,cl=zn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&r&&(yt=!0),t.firstContext=null)}function Dt(t){var r=t._currentValue;if(cl!==t)if(t={context:t,memoizedValue:r,next:null},zn===null){if(Lo===null)throw Error(i(308));zn=t,Lo.dependencies={lanes:0,firstContext:t}}else zn=zn.next=t;return r}var on=null;function pl(t){on===null?on=[t]:on.push(t)}function Qd(t,r,o,a){var c=r.interleaved;return c===null?(o.next=o,pl(r)):(o.next=c.next,c.next=o),r.interleaved=o,gr(t,a)}function gr(t,r){t.lanes|=r;var o=t.alternate;for(o!==null&&(o.lanes|=r),o=t,t=t.return;t!==null;)t.childLanes|=r,o=t.alternate,o!==null&&(o.childLanes|=r),o=t,t=t.return;return o.tag===3?o.stateNode:null}var Br=!1;function ml(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function yr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function jr(t,r,o){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,Se&2){var c=a.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r,gr(t,o)}return c=a.interleaved,c===null?(r.next=r,pl(a)):(r.next=c.next,c.next=r),a.interleaved=r,gr(t,o)}function Bo(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Oa(t,o)}}function Yd(t,r){var o=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var g={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?c=f=g:f=f.next=g,o=o.next}while(o!==null);f===null?c=f=r:f=f.next=r}else c=f=r;o={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:a.shared,effects:a.effects},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}function jo(t,r,o,a){var c=t.updateQueue;Br=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var A=S,F=A.next;A.next=null,g===null?f=F:g.next=F,g=A;var z=t.alternate;z!==null&&(z=z.updateQueue,S=z.lastBaseUpdate,S!==g&&(S===null?z.firstBaseUpdate=F:S.next=F,z.lastBaseUpdate=A))}if(f!==null){var H=c.baseState;g=0,z=F=A=null,S=f;do{var j=S.lane,X=S.eventTime;if((a&j)===j){z!==null&&(z=z.next={eventTime:X,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var Y=t,Z=S;switch(j=r,X=o,Z.tag){case 1:if(Y=Z.payload,typeof Y=="function"){H=Y.call(X,H,j);break e}H=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=Z.payload,j=typeof Y=="function"?Y.call(X,H,j):Y,j==null)break e;H=Q({},H,j);break e;case 2:Br=!0}}S.callback!==null&&S.lane!==0&&(t.flags|=64,j=c.effects,j===null?c.effects=[S]:j.push(S))}else X={eventTime:X,lane:j,tag:S.tag,payload:S.payload,callback:S.callback,next:null},z===null?(F=z=X,A=H):z=z.next=X,g|=j;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;j=S,S=j.next,j.next=null,c.lastBaseUpdate=j,c.shared.pending=null}}while(!0);if(z===null&&(A=H),c.baseState=A,c.firstBaseUpdate=F,c.lastBaseUpdate=z,r=c.shared.interleaved,r!==null){c=r;do g|=c.lane,c=c.next;while(c!==r)}else f===null&&(c.shared.lanes=0);ln|=g,t.lanes=g,t.memoizedState=H}}function Zd(t,r,o){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var a=t[r],c=a.callback;if(c!==null){if(a.callback=null,a=o,typeof c!="function")throw Error(i(191,c));c.call(a)}}}var Oi={},nr=Mr(Oi),Ni=Mr(Oi),Ai=Mr(Oi);function sn(t){if(t===Oi)throw Error(i(174));return t}function gl(t,r){switch(Ae(Ai,r),Ae(Ni,t),Ae(nr,Oi),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:ya(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=ya(r,t)}De(nr),Ae(nr,r)}function Hn(){De(nr),De(Ni),De(Ai)}function Jd(t){sn(Ai.current);var r=sn(nr.current),o=ya(r,t.type);r!==o&&(Ae(Ni,t),Ae(nr,o))}function yl(t){Ni.current===t&&(De(nr),De(Ni))}var Le=Mr(0);function zo(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var vl=[];function _l(){for(var t=0;t<vl.length;t++)vl[t]._workInProgressVersionPrimary=null;vl.length=0}var Uo=T.ReactCurrentDispatcher,El=T.ReactCurrentBatchConfig,an=0,Be=null,Xe=null,Ke=null,Ho=!1,Pi=!1,Ii=0,l_=0;function st(){throw Error(i(321))}function bl(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!Gt(t[o],r[o]))return!1;return!0}function Sl(t,r,o,a,c,f){if(an=f,Be=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Uo.current=t===null||t.memoizedState===null?d_:h_,t=o(a,c),Pi){f=0;do{if(Pi=!1,Ii=0,25<=f)throw Error(i(301));f+=1,Ke=Xe=null,r.updateQueue=null,Uo.current=p_,t=o(a,c)}while(Pi)}if(Uo.current=qo,r=Xe!==null&&Xe.next!==null,an=0,Ke=Xe=Be=null,Ho=!1,r)throw Error(i(300));return t}function wl(){var t=Ii!==0;return Ii=0,t}function ir(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Be.memoizedState=Ke=t:Ke=Ke.next=t,Ke}function Mt(){if(Xe===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Xe.next;var r=Ke===null?Be.memoizedState:Ke.next;if(r!==null)Ke=r,Xe=t;else{if(t===null)throw Error(i(310));Xe=t,t={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Ke===null?Be.memoizedState=Ke=t:Ke=Ke.next=t}return Ke}function Di(t,r){return typeof r=="function"?r(t):r}function xl(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Xe,c=a.baseQueue,f=o.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}a.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,a=a.baseState;var S=g=null,A=null,F=f;do{var z=F.lane;if((an&z)===z)A!==null&&(A=A.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),a=F.hasEagerState?F.eagerState:t(a,F.action);else{var H={lane:z,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};A===null?(S=A=H,g=a):A=A.next=H,Be.lanes|=z,ln|=z}F=F.next}while(F!==null&&F!==f);A===null?g=a:A.next=S,Gt(a,r.memoizedState)||(yt=!0),r.memoizedState=a,r.baseState=g,r.baseQueue=A,o.lastRenderedState=a}if(t=o.interleaved,t!==null){c=t;do f=c.lane,Be.lanes|=f,ln|=f,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Tl(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=o.dispatch,c=o.pending,f=r.memoizedState;if(c!==null){o.pending=null;var g=c=c.next;do f=t(f,g.action),g=g.next;while(g!==c);Gt(f,r.memoizedState)||(yt=!0),r.memoizedState=f,r.baseQueue===null&&(r.baseState=f),o.lastRenderedState=f}return[f,a]}function eh(){}function th(t,r){var o=Be,a=Mt(),c=r(),f=!Gt(a.memoizedState,c);if(f&&(a.memoizedState=c,yt=!0),a=a.queue,Cl(ih.bind(null,o,a,t),[t]),a.getSnapshot!==r||f||Ke!==null&&Ke.memoizedState.tag&1){if(o.flags|=2048,Mi(9,nh.bind(null,o,a,c,r),void 0,null),Ye===null)throw Error(i(349));an&30||rh(o,r,c)}return c}function rh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function nh(t,r,o,a){r.value=o,r.getSnapshot=a,oh(r)&&sh(t)}function ih(t,r,o){return o(function(){oh(r)&&sh(t)})}function oh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!Gt(t,o)}catch{return!0}}function sh(t){var r=gr(t,1);r!==null&&Xt(r,t,1,-1)}function ah(t){var r=ir();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:t},r.queue=t,t=t.dispatch=f_.bind(null,Be,t),[r.memoizedState,t]}function Mi(t,r,o,a){return t={tag:t,create:r,destroy:o,deps:a,next:null},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.lastEffect=t.next=t):(o=r.lastEffect,o===null?r.lastEffect=t.next=t:(a=o.next,o.next=t,t.next=a,r.lastEffect=t)),t}function lh(){return Mt().memoizedState}function Go(t,r,o,a){var c=ir();Be.flags|=t,c.memoizedState=Mi(1|r,o,void 0,a===void 0?null:a)}function $o(t,r,o,a){var c=Mt();a=a===void 0?null:a;var f=void 0;if(Xe!==null){var g=Xe.memoizedState;if(f=g.destroy,a!==null&&bl(a,g.deps)){c.memoizedState=Mi(r,o,f,a);return}}Be.flags|=t,c.memoizedState=Mi(1|r,o,f,a)}function uh(t,r){return Go(8390656,8,t,r)}function Cl(t,r){return $o(2048,8,t,r)}function ch(t,r){return $o(4,2,t,r)}function fh(t,r){return $o(4,4,t,r)}function dh(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function hh(t,r,o){return o=o!=null?o.concat([t]):null,$o(4,4,dh.bind(null,r,t),o)}function kl(){}function ph(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&bl(r,a[1])?a[0]:(o.memoizedState=[t,r],t)}function mh(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&bl(r,a[1])?a[0]:(t=t(),o.memoizedState=[t,r],t)}function gh(t,r,o){return an&21?(Gt(o,r)||(o=Vf(),Be.lanes|=o,ln|=o,t.baseState=!0),r):(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=o)}function u_(t,r){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=El.transition;El.transition={};try{t(!1),r()}finally{Oe=o,El.transition=a}}function yh(){return Mt().memoizedState}function c_(t,r,o){var a=Gr(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},vh(t))_h(r,o);else if(o=Qd(t,r,o,a),o!==null){var c=ft();Xt(o,t,a,c),Eh(o,r,a)}}function f_(t,r,o){var a=Gr(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(vh(t))_h(r,c);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=r.lastRenderedReducer,f!==null))try{var g=r.lastRenderedState,S=f(g,o);if(c.hasEagerState=!0,c.eagerState=S,Gt(S,g)){var A=r.interleaved;A===null?(c.next=c,pl(r)):(c.next=A.next,A.next=c),r.interleaved=c;return}}catch{}finally{}o=Qd(t,r,c,a),o!==null&&(c=ft(),Xt(o,t,a,c),Eh(o,r,a))}}function vh(t){var r=t.alternate;return t===Be||r!==null&&r===Be}function _h(t,r){Pi=Ho=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Eh(t,r,o){if(o&4194240){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Oa(t,o)}}var qo={readContext:Dt,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},d_={readContext:Dt,useCallback:function(t,r){return ir().memoizedState=[t,r===void 0?null:r],t},useContext:Dt,useEffect:uh,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,Go(4194308,4,dh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Go(4194308,4,t,r)},useInsertionEffect:function(t,r){return Go(4,2,t,r)},useMemo:function(t,r){var o=ir();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var a=ir();return r=o!==void 0?o(r):r,a.memoizedState=a.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},a.queue=t,t=t.dispatch=c_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var r=ir();return t={current:t},r.memoizedState=t},useState:ah,useDebugValue:kl,useDeferredValue:function(t){return ir().memoizedState=t},useTransition:function(){var t=ah(!1),r=t[0];return t=u_.bind(null,t[1]),ir().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var a=Be,c=ir();if(Fe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Ye===null)throw Error(i(349));an&30||rh(a,r,o)}c.memoizedState=o;var f={value:o,getSnapshot:r};return c.queue=f,uh(ih.bind(null,a,f,t),[t]),a.flags|=2048,Mi(9,nh.bind(null,a,f,o,r),void 0,null),o},useId:function(){var t=ir(),r=Ye.identifierPrefix;if(Fe){var o=mr,a=pr;o=(a&~(1<<32-Ht(a)-1)).toString(32)+o,r=":"+r+"R"+o,o=Ii++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=l_++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},h_={readContext:Dt,useCallback:ph,useContext:Dt,useEffect:Cl,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:fh,useMemo:mh,useReducer:xl,useRef:lh,useState:function(){return xl(Di)},useDebugValue:kl,useDeferredValue:function(t){var r=Mt();return gh(r,Xe.memoizedState,t)},useTransition:function(){var t=xl(Di)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:eh,useSyncExternalStore:th,useId:yh,unstable_isNewReconciler:!1},p_={readContext:Dt,useCallback:ph,useContext:Dt,useEffect:Cl,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:fh,useMemo:mh,useReducer:Tl,useRef:lh,useState:function(){return Tl(Di)},useDebugValue:kl,useDeferredValue:function(t){var r=Mt();return Xe===null?r.memoizedState=t:gh(r,Xe.memoizedState,t)},useTransition:function(){var t=Tl(Di)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:eh,useSyncExternalStore:th,useId:yh,unstable_isNewReconciler:!1};function qt(t,r){if(t&&t.defaultProps){r=Q({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Rl(t,r,o,a){r=t.memoizedState,o=o(a,r),o=o==null?r:Q({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Vo={isMounted:function(t){return(t=t._reactInternals)?Jr(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var a=ft(),c=Gr(t),f=yr(a,c);f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Xt(r,t,c,a),Bo(r,t,c))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var a=ft(),c=Gr(t),f=yr(a,c);f.tag=1,f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Xt(r,t,c,a),Bo(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=ft(),a=Gr(t),c=yr(o,a);c.tag=2,r!=null&&(c.callback=r),r=jr(t,c,a),r!==null&&(Xt(r,t,a,o),Bo(r,t,a))}};function bh(t,r,o,a,c,f,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,f,g):r.prototype&&r.prototype.isPureReactComponent?!bi(o,a)||!bi(c,f):!0}function Sh(t,r,o){var a=!1,c=Fr,f=r.contextType;return typeof f=="object"&&f!==null?f=Dt(f):(c=gt(r)?tn:ot.current,a=r.contextTypes,f=(a=a!=null)?Mn(t,c):Fr),r=new r(o,f),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Vo,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=f),r}function wh(t,r,o,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,a),r.state!==t&&Vo.enqueueReplaceState(r,r.state,null)}function Ol(t,r,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},ml(t);var f=r.contextType;typeof f=="object"&&f!==null?c.context=Dt(f):(f=gt(r)?tn:ot.current,c.context=Mn(t,f)),c.state=t.memoizedState,f=r.getDerivedStateFromProps,typeof f=="function"&&(Rl(t,r,f,o),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(r=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),r!==c.state&&Vo.enqueueReplaceState(c,c.state,null),jo(t,o,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function Gn(t,r){try{var o="",a=r;do o+=ye(a),a=a.return;while(a);var c=o}catch(f){c=`
39
- Error generating stack: `+f.message+`
40
- `+f.stack}return{value:t,source:r,stack:c,digest:null}}function Nl(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function Al(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var m_=typeof WeakMap=="function"?WeakMap:Map;function xh(t,r,o){o=yr(-1,o),o.tag=3,o.payload={element:null};var a=r.value;return o.callback=function(){Jo||(Jo=!0,Vl=a),Al(t,r)},o}function Th(t,r,o){o=yr(-1,o),o.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=r.value;o.payload=function(){return a(c)},o.callback=function(){Al(t,r)}}var f=t.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){Al(t,r),typeof a!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})}),o}function Ch(t,r,o){var a=t.pingCache;if(a===null){a=t.pingCache=new m_;var c=new Set;a.set(r,c)}else c=a.get(r),c===void 0&&(c=new Set,a.set(r,c));c.has(o)||(c.add(o),t=O_.bind(null,t,r,o),r.then(t,t))}function kh(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Rh(t,r,o,a,c){return t.mode&1?(t.flags|=65536,t.lanes=c,t):(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=yr(-1,1),r.tag=2,jr(o,r,1))),o.lanes|=1),t)}var g_=T.ReactCurrentOwner,yt=!1;function ct(t,r,o,a){r.child=t===null?Xd(r,null,o,a):jn(r,t.child,o,a)}function Oh(t,r,o,a,c){o=o.render;var f=r.ref;return Un(r,c),a=Sl(t,r,o,a,f,c),o=wl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,vr(t,r,c)):(Fe&&o&&ol(r),r.flags|=1,ct(t,r,a,c),r.child)}function Nh(t,r,o,a,c){if(t===null){var f=o.type;return typeof f=="function"&&!Jl(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=f,Ah(t,r,f,a,c)):(t=os(o.type,null,a,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(f=t.child,!(t.lanes&c)){var g=f.memoizedProps;if(o=o.compare,o=o!==null?o:bi,o(g,a)&&t.ref===r.ref)return vr(t,r,c)}return r.flags|=1,t=qr(f,a),t.ref=r.ref,t.return=r,r.child=t}function Ah(t,r,o,a,c){if(t!==null){var f=t.memoizedProps;if(bi(f,a)&&t.ref===r.ref)if(yt=!1,r.pendingProps=a=f,(t.lanes&c)!==0)t.flags&131072&&(yt=!0);else return r.lanes=t.lanes,vr(t,r,c)}return Pl(t,r,o,a,c)}function Ph(t,r,o){var a=r.pendingProps,c=a.children,f=t!==null?t.memoizedState:null;if(a.mode==="hidden")if(!(r.mode&1))r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(qn,Tt),Tt|=o;else{if(!(o&1073741824))return t=f!==null?f.baseLanes|o:o,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ae(qn,Tt),Tt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:o,Ae(qn,Tt),Tt|=a}else f!==null?(a=f.baseLanes|o,r.memoizedState=null):a=o,Ae(qn,Tt),Tt|=a;return ct(t,r,c,o),r.child}function Ih(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function Pl(t,r,o,a,c){var f=gt(o)?tn:ot.current;return f=Mn(r,f),Un(r,c),o=Sl(t,r,o,a,f,c),a=wl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,vr(t,r,c)):(Fe&&a&&ol(r),r.flags|=1,ct(t,r,o,c),r.child)}function Dh(t,r,o,a,c){if(gt(o)){var f=!0;No(r)}else f=!1;if(Un(r,c),r.stateNode===null)Xo(t,r),Sh(r,o,a),Ol(r,o,a,c),a=!0;else if(t===null){var g=r.stateNode,S=r.memoizedProps;g.props=S;var A=g.context,F=o.contextType;typeof F=="object"&&F!==null?F=Dt(F):(F=gt(o)?tn:ot.current,F=Mn(r,F));var z=o.getDerivedStateFromProps,H=typeof z=="function"||typeof g.getSnapshotBeforeUpdate=="function";H||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==a||A!==F)&&wh(r,g,a,F),Br=!1;var j=r.memoizedState;g.state=j,jo(r,a,g,c),A=r.memoizedState,S!==a||j!==A||mt.current||Br?(typeof z=="function"&&(Rl(r,o,z,a),A=r.memoizedState),(S=Br||bh(r,o,S,a,j,A,F))?(H||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=A),g.props=a,g.state=A,g.context=F,a=S):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{g=r.stateNode,Kd(t,r),S=r.memoizedProps,F=r.type===r.elementType?S:qt(r.type,S),g.props=F,H=r.pendingProps,j=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Dt(A):(A=gt(o)?tn:ot.current,A=Mn(r,A));var X=o.getDerivedStateFromProps;(z=typeof X=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==H||j!==A)&&wh(r,g,a,A),Br=!1,j=r.memoizedState,g.state=j,jo(r,a,g,c);var Y=r.memoizedState;S!==H||j!==Y||mt.current||Br?(typeof X=="function"&&(Rl(r,o,X,a),Y=r.memoizedState),(F=Br||bh(r,o,F,a,j,Y,A)||!1)?(z||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,Y,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,Y,A)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&j===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&j===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=Y),g.props=a,g.state=Y,g.context=A,a=F):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&j===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&j===t.memoizedState||(r.flags|=1024),a=!1)}return Il(t,r,o,a,f,c)}function Il(t,r,o,a,c,f){Ih(t,r);var g=(r.flags&128)!==0;if(!a&&!g)return c&&jd(r,o,!1),vr(t,r,f);a=r.stateNode,g_.current=r;var S=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&g?(r.child=jn(r,t.child,null,f),r.child=jn(r,null,S,f)):ct(t,r,S,f),r.memoizedState=a.state,c&&jd(r,o,!0),r.child}function Mh(t){var r=t.stateNode;r.pendingContext?Ld(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Ld(t,r.context,!1),gl(t,r.containerInfo)}function Fh(t,r,o,a,c){return Bn(),ul(c),r.flags|=256,ct(t,r,o,a),r.child}var Dl={dehydrated:null,treeContext:null,retryLane:0};function Ml(t){return{baseLanes:t,cachePool:null,transitions:null}}function Lh(t,r,o){var a=r.pendingProps,c=Le.current,f=!1,g=(r.flags&128)!==0,S;if((S=g)||(S=t!==null&&t.memoizedState===null?!1:(c&2)!==0),S?(f=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return ll(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(r.mode&1?t.data==="$!"?r.lanes=8:r.lanes=1073741824:r.lanes=1,null):(g=a.children,t=a.fallback,f?(a=r.mode,f=r.child,g={mode:"hidden",children:g},!(a&1)&&f!==null?(f.childLanes=0,f.pendingProps=g):f=ss(g,a,0,null),t=dn(t,a,o,null),f.return=r,t.return=r,f.sibling=t,r.child=f,r.child.memoizedState=Ml(o),r.memoizedState=Dl,t):Fl(r,g));if(c=t.memoizedState,c!==null&&(S=c.dehydrated,S!==null))return y_(t,r,g,a,S,c,o);if(f){f=a.fallback,g=r.mode,c=t.child,S=c.sibling;var A={mode:"hidden",children:a.children};return!(g&1)&&r.child!==c?(a=r.child,a.childLanes=0,a.pendingProps=A,r.deletions=null):(a=qr(c,A),a.subtreeFlags=c.subtreeFlags&14680064),S!==null?f=qr(S,f):(f=dn(f,g,o,null),f.flags|=2),f.return=r,a.return=r,a.sibling=f,r.child=a,a=f,f=r.child,g=t.child.memoizedState,g=g===null?Ml(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=t.childLanes&~o,r.memoizedState=Dl,a}return f=t.child,t=f.sibling,a=qr(f,{mode:"visible",children:a.children}),!(r.mode&1)&&(a.lanes=o),a.return=r,a.sibling=null,t!==null&&(o=r.deletions,o===null?(r.deletions=[t],r.flags|=16):o.push(t)),r.child=a,r.memoizedState=null,a}function Fl(t,r){return r=ss({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Wo(t,r,o,a){return a!==null&&ul(a),jn(r,t.child,null,o),t=Fl(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function y_(t,r,o,a,c,f,g){if(o)return r.flags&256?(r.flags&=-257,a=Nl(Error(i(422))),Wo(t,r,g,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(f=a.fallback,c=r.mode,a=ss({mode:"visible",children:a.children},c,0,null),f=dn(f,c,g,null),f.flags|=2,a.return=r,f.return=r,a.sibling=f,r.child=a,r.mode&1&&jn(r,t.child,null,g),r.child.memoizedState=Ml(g),r.memoizedState=Dl,f);if(!(r.mode&1))return Wo(t,r,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var S=a.dgst;return a=S,f=Error(i(419)),a=Nl(f,a,void 0),Wo(t,r,g,a)}if(S=(g&t.childLanes)!==0,yt||S){if(a=Ye,a!==null){switch(g&-g){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=c&(a.suspendedLanes|g)?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,gr(t,c),Xt(a,t,c,-1))}return Zl(),a=Nl(Error(i(421))),Wo(t,r,g,a)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=N_.bind(null,t),c._reactRetry=r,null):(t=f.treeContext,xt=Dr(c.nextSibling),wt=r,Fe=!0,$t=null,t!==null&&(Pt[It++]=pr,Pt[It++]=mr,Pt[It++]=rn,pr=t.id,mr=t.overflow,rn=r),r=Fl(r,a.children),r.flags|=4096,r)}function Bh(t,r,o){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),hl(t.return,r,o)}function Ll(t,r,o,a,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:c}:(f.isBackwards=r,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=o,f.tailMode=c)}function jh(t,r,o){var a=r.pendingProps,c=a.revealOrder,f=a.tail;if(ct(t,r,a.children,o),a=Le.current,a&2)a=a&1|2,r.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Bh(t,o,r);else if(t.tag===19)Bh(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Ae(Le,a),!(r.mode&1))r.memoizedState=null;else switch(c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&zo(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),Ll(r,!1,c,o,f);break;case"backwards":for(o=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&zo(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}Ll(r,!0,o,null,f);break;case"together":Ll(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Xo(t,r){!(r.mode&1)&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function vr(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),ln|=r.lanes,!(o&r.childLanes))return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=qr(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=qr(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function v_(t,r,o){switch(r.tag){case 3:Mh(r),Bn();break;case 5:Jd(r);break;case 1:gt(r.type)&&No(r);break;case 4:gl(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,c=r.memoizedProps.value;Ae(Fo,a._currentValue),a._currentValue=c;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),r.flags|=128,null):o&r.child.childLanes?Lh(t,r,o):(Ae(Le,Le.current&1),t=vr(t,r,o),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(o&r.childLanes)!==0,t.flags&128){if(a)return jh(t,r,o);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ae(Le,Le.current),a)break;return null;case 22:case 23:return r.lanes=0,Ph(t,r,o)}return vr(t,r,o)}var zh,Bl,Uh,Hh;zh=function(t,r){for(var o=r.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Bl=function(){},Uh=function(t,r,o,a){var c=t.memoizedProps;if(c!==a){t=r.stateNode,sn(nr.current);var f=null;switch(o){case"input":c=ha(t,c),a=ha(t,a),f=[];break;case"select":c=Q({},c,{value:void 0}),a=Q({},a,{value:void 0}),f=[];break;case"textarea":c=ga(t,c),a=ga(t,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=ko)}va(o,a);var g;o=null;for(F in c)if(!a.hasOwnProperty(F)&&c.hasOwnProperty(F)&&c[F]!=null)if(F==="style"){var S=c[F];for(g in S)S.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?f||(f=[]):(f=f||[]).push(F,null));for(F in a){var A=a[F];if(S=c!=null?c[F]:void 0,a.hasOwnProperty(F)&&A!==S&&(A!=null||S!=null))if(F==="style")if(S){for(g in S)!S.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&S[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(f||(f=[]),f.push(F,o)),o=A;else F==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,S=S?S.__html:void 0,A!=null&&S!==A&&(f=f||[]).push(F,A)):F==="children"?typeof A!="string"&&typeof A!="number"||(f=f||[]).push(F,""+A):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(A!=null&&F==="onScroll"&&Ie("scroll",t),f||S===A||(f=[])):(f=f||[]).push(F,A))}o&&(f=f||[]).push("style",o);var F=f;(r.updateQueue=F)&&(r.flags|=4)}},Hh=function(t,r,o,a){o!==a&&(r.flags|=4)};function Fi(t,r){if(!Fe)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function at(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,a=0;if(r)for(var c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=a,t.childLanes=o,r}function __(t,r,o){var a=r.pendingProps;switch(sl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(r),null;case 1:return gt(r.type)&&Oo(),at(r),null;case 3:return a=r.stateNode,Hn(),De(mt),De(ot),_l(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Do(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,$t!==null&&(Ql($t),$t=null))),Bl(t,r),at(r),null;case 5:yl(r);var c=sn(Ai.current);if(o=r.type,t!==null&&r.stateNode!=null)Uh(t,r,o,a,c),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(i(166));return at(r),null}if(t=sn(nr.current),Do(r)){a=r.stateNode,o=r.type;var f=r.memoizedProps;switch(a[rr]=r,a[Ci]=f,t=(r.mode&1)!==0,o){case"dialog":Ie("cancel",a),Ie("close",a);break;case"iframe":case"object":case"embed":Ie("load",a);break;case"video":case"audio":for(c=0;c<wi.length;c++)Ie(wi[c],a);break;case"source":Ie("error",a);break;case"img":case"image":case"link":Ie("error",a),Ie("load",a);break;case"details":Ie("toggle",a);break;case"input":Sf(a,f),Ie("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},Ie("invalid",a);break;case"textarea":Tf(a,f),Ie("invalid",a)}va(o,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var S=f[g];g==="children"?typeof S=="string"?a.textContent!==S&&(f.suppressHydrationWarning!==!0&&Co(a.textContent,S,t),c=["children",S]):typeof S=="number"&&a.textContent!==""+S&&(f.suppressHydrationWarning!==!0&&Co(a.textContent,S,t),c=["children",""+S]):l.hasOwnProperty(g)&&S!=null&&g==="onScroll"&&Ie("scroll",a)}switch(o){case"input":ri(a),xf(a,f,!0);break;case"textarea":ri(a),kf(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=ko)}a=c,r.updateQueue=a,a!==null&&(r.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Rf(o)),t==="http://www.w3.org/1999/xhtml"?o==="script"?(t=g.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=g.createElement(o,{is:a.is}):(t=g.createElement(o),o==="select"&&(g=t,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):t=g.createElementNS(t,o),t[rr]=r,t[Ci]=a,zh(t,r,!1,!1),r.stateNode=t;e:{switch(g=_a(o,a),o){case"dialog":Ie("cancel",t),Ie("close",t),c=a;break;case"iframe":case"object":case"embed":Ie("load",t),c=a;break;case"video":case"audio":for(c=0;c<wi.length;c++)Ie(wi[c],t);c=a;break;case"source":Ie("error",t),c=a;break;case"img":case"image":case"link":Ie("error",t),Ie("load",t),c=a;break;case"details":Ie("toggle",t),c=a;break;case"input":Sf(t,a),c=ha(t,a),Ie("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=Q({},a,{value:void 0}),Ie("invalid",t);break;case"textarea":Tf(t,a),c=ga(t,a),Ie("invalid",t);break;default:c=a}va(o,c),S=c;for(f in S)if(S.hasOwnProperty(f)){var A=S[f];f==="style"?Af(t,A):f==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Of(t,A)):f==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&ii(t,A):typeof A=="number"&&ii(t,""+A):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?A!=null&&f==="onScroll"&&Ie("scroll",t):A!=null&&b(t,f,A,g))}switch(o){case"input":ri(t),xf(t,a,!1);break;case"textarea":ri(t),kf(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Te(a.value));break;case"select":t.multiple=!!a.multiple,f=a.value,f!=null?wn(t,!!a.multiple,f,!1):a.defaultValue!=null&&wn(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=ko)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return at(r),null;case 6:if(t&&r.stateNode!=null)Hh(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(o=sn(Ai.current),sn(nr.current),Do(r)){if(a=r.stateNode,o=r.memoizedProps,a[rr]=r,(f=a.nodeValue!==o)&&(t=wt,t!==null))switch(t.tag){case 3:Co(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Co(a.nodeValue,o,(t.mode&1)!==0)}f&&(r.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[rr]=r,r.stateNode=a}return at(r),null;case 13:if(De(Le),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&xt!==null&&r.mode&1&&!(r.flags&128))qd(),Bn(),r.flags|=98560,f=!1;else if(f=Do(r),a!==null&&a.dehydrated!==null){if(t===null){if(!f)throw Error(i(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[rr]=r}else Bn(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;at(r),f=!1}else $t!==null&&(Ql($t),$t=null),f=!0;if(!f)return r.flags&65536?r:null}return r.flags&128?(r.lanes=o,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,r.mode&1&&(t===null||Le.current&1?Qe===0&&(Qe=3):Zl())),r.updateQueue!==null&&(r.flags|=4),at(r),null);case 4:return Hn(),Bl(t,r),t===null&&xi(r.stateNode.containerInfo),at(r),null;case 10:return dl(r.type._context),at(r),null;case 17:return gt(r.type)&&Oo(),at(r),null;case 19:if(De(Le),f=r.memoizedState,f===null)return at(r),null;if(a=(r.flags&128)!==0,g=f.rendering,g===null)if(a)Fi(f,!1);else{if(Qe!==0||t!==null&&t.flags&128)for(t=r.child;t!==null;){if(g=zo(t),g!==null){for(r.flags|=128,Fi(f,!1),a=g.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=o,o=r.child;o!==null;)f=o,t=a,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=t,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,t=g.dependencies,f.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ae(Le,Le.current&1|2),r.child}t=t.sibling}f.tail!==null&&He()>Vn&&(r.flags|=128,a=!0,Fi(f,!1),r.lanes=4194304)}else{if(!a)if(t=zo(g),t!==null){if(r.flags|=128,a=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Fi(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Fe)return at(r),null}else 2*He()-f.renderingStartTime>Vn&&o!==1073741824&&(r.flags|=128,a=!0,Fi(f,!1),r.lanes=4194304);f.isBackwards?(g.sibling=r.child,r.child=g):(o=f.last,o!==null?o.sibling=g:r.child=g,f.last=g)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=He(),r.sibling=null,o=Le.current,Ae(Le,a?o&1|2:o&1),r):(at(r),null);case 22:case 23:return Yl(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&r.mode&1?Tt&1073741824&&(at(r),r.subtreeFlags&6&&(r.flags|=8192)):at(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function E_(t,r){switch(sl(r),r.tag){case 1:return gt(r.type)&&Oo(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Hn(),De(mt),De(ot),_l(),t=r.flags,t&65536&&!(t&128)?(r.flags=t&-65537|128,r):null;case 5:return yl(r),null;case 13:if(De(Le),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Bn()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return De(Le),null;case 4:return Hn(),null;case 10:return dl(r.type._context),null;case 22:case 23:return Yl(),null;case 24:return null;default:return null}}var Qo=!1,lt=!1,b_=typeof WeakSet=="function"?WeakSet:Set,K=null;function $n(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Ue(t,r,a)}else o.current=null}function jl(t,r,o){try{o()}catch(a){Ue(t,r,a)}}var Gh=!1;function S_(t,r){if(Ya=mo,t=bd(),Ga(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var c=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var g=0,S=-1,A=-1,F=0,z=0,H=t,j=null;t:for(;;){for(var X;H!==o||c!==0&&H.nodeType!==3||(S=g+c),H!==f||a!==0&&H.nodeType!==3||(A=g+a),H.nodeType===3&&(g+=H.nodeValue.length),(X=H.firstChild)!==null;)j=H,H=X;for(;;){if(H===t)break t;if(j===o&&++F===c&&(S=g),j===f&&++z===a&&(A=g),(X=H.nextSibling)!==null)break;H=j,j=H.parentNode}H=X}o=S===-1||A===-1?null:{start:S,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(Za={focusedElem:t,selectionRange:o},mo=!1,K=r;K!==null;)if(r=K,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,K=t;else for(;K!==null;){r=K;try{var Y=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var Z=Y.memoizedProps,Ge=Y.memoizedState,D=r.stateNode,P=D.getSnapshotBeforeUpdate(r.elementType===r.type?Z:qt(r.type,Z),Ge);D.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var M=r.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($){Ue(r,r.return,$)}if(t=r.sibling,t!==null){t.return=r.return,K=t;break}K=r.return}return Y=Gh,Gh=!1,Y}function Li(t,r,o){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var f=c.destroy;c.destroy=void 0,f!==void 0&&jl(r,o,f)}c=c.next}while(c!==a)}}function Ko(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var a=o.create;o.destroy=a()}o=o.next}while(o!==r)}}function zl(t){var r=t.ref;if(r!==null){var o=t.stateNode;switch(t.tag){case 5:t=o;break;default:t=o}typeof r=="function"?r(t):r.current=t}}function $h(t){var r=t.alternate;r!==null&&(t.alternate=null,$h(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[rr],delete r[Ci],delete r[rl],delete r[i_],delete r[o_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function qh(t){return t.tag===5||t.tag===3||t.tag===4}function Vh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||qh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ul(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(t,r):o.insertBefore(t,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(t,o)):(r=o,r.appendChild(t)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=ko));else if(a!==4&&(t=t.child,t!==null))for(Ul(t,r,o),t=t.sibling;t!==null;)Ul(t,r,o),t=t.sibling}function Hl(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Hl(t,r,o),t=t.sibling;t!==null;)Hl(t,r,o),t=t.sibling}var et=null,Vt=!1;function zr(t,r,o){for(o=o.child;o!==null;)Wh(t,r,o),o=o.sibling}function Wh(t,r,o){if(tr&&typeof tr.onCommitFiberUnmount=="function")try{tr.onCommitFiberUnmount(lo,o)}catch{}switch(o.tag){case 5:lt||$n(o,r);case 6:var a=et,c=Vt;et=null,zr(t,r,o),et=a,Vt=c,et!==null&&(Vt?(t=et,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):et.removeChild(o.stateNode));break;case 18:et!==null&&(Vt?(t=et,o=o.stateNode,t.nodeType===8?tl(t.parentNode,o):t.nodeType===1&&tl(t,o),mi(t)):tl(et,o.stateNode));break;case 4:a=et,c=Vt,et=o.stateNode.containerInfo,Vt=!0,zr(t,r,o),et=a,Vt=c;break;case 0:case 11:case 14:case 15:if(!lt&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var f=c,g=f.destroy;f=f.tag,g!==void 0&&(f&2||f&4)&&jl(o,r,g),c=c.next}while(c!==a)}zr(t,r,o);break;case 1:if(!lt&&($n(o,r),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(S){Ue(o,r,S)}zr(t,r,o);break;case 21:zr(t,r,o);break;case 22:o.mode&1?(lt=(a=lt)||o.memoizedState!==null,zr(t,r,o),lt=a):zr(t,r,o);break;default:zr(t,r,o)}}function Xh(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new b_),r.forEach(function(a){var c=A_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Wt(t,r){var o=r.deletions;if(o!==null)for(var a=0;a<o.length;a++){var c=o[a];try{var f=t,g=r,S=g;e:for(;S!==null;){switch(S.tag){case 5:et=S.stateNode,Vt=!1;break e;case 3:et=S.stateNode.containerInfo,Vt=!0;break e;case 4:et=S.stateNode.containerInfo,Vt=!0;break e}S=S.return}if(et===null)throw Error(i(160));Wh(f,g,c),et=null,Vt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(F){Ue(c,r,F)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Qh(r,t),r=r.sibling}function Qh(t,r){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Wt(r,t),or(t),a&4){try{Li(3,t,t.return),Ko(3,t)}catch(Z){Ue(t,t.return,Z)}try{Li(5,t,t.return)}catch(Z){Ue(t,t.return,Z)}}break;case 1:Wt(r,t),or(t),a&512&&o!==null&&$n(o,o.return);break;case 5:if(Wt(r,t),or(t),a&512&&o!==null&&$n(o,o.return),t.flags&32){var c=t.stateNode;try{ii(c,"")}catch(Z){Ue(t,t.return,Z)}}if(a&4&&(c=t.stateNode,c!=null)){var f=t.memoizedProps,g=o!==null?o.memoizedProps:f,S=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{S==="input"&&f.type==="radio"&&f.name!=null&&wf(c,f),_a(S,g);var F=_a(S,f);for(g=0;g<A.length;g+=2){var z=A[g],H=A[g+1];z==="style"?Af(c,H):z==="dangerouslySetInnerHTML"?Of(c,H):z==="children"?ii(c,H):b(c,z,H,F)}switch(S){case"input":pa(c,f);break;case"textarea":Cf(c,f);break;case"select":var j=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var X=f.value;X!=null?wn(c,!!f.multiple,X,!1):j!==!!f.multiple&&(f.defaultValue!=null?wn(c,!!f.multiple,f.defaultValue,!0):wn(c,!!f.multiple,f.multiple?[]:"",!1))}c[Ci]=f}catch(Z){Ue(t,t.return,Z)}}break;case 6:if(Wt(r,t),or(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,f=t.memoizedProps;try{c.nodeValue=f}catch(Z){Ue(t,t.return,Z)}}break;case 3:if(Wt(r,t),or(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{mi(r.containerInfo)}catch(Z){Ue(t,t.return,Z)}break;case 4:Wt(r,t),or(t);break;case 13:Wt(r,t),or(t),c=t.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(ql=He())),a&4&&Xh(t);break;case 22:if(z=o!==null&&o.memoizedState!==null,t.mode&1?(lt=(F=lt)||z,Wt(r,t),lt=F):Wt(r,t),or(t),a&8192){if(F=t.memoizedState!==null,(t.stateNode.isHidden=F)&&!z&&t.mode&1)for(K=t,z=t.child;z!==null;){for(H=K=z;K!==null;){switch(j=K,X=j.child,j.tag){case 0:case 11:case 14:case 15:Li(4,j,j.return);break;case 1:$n(j,j.return);var Y=j.stateNode;if(typeof Y.componentWillUnmount=="function"){a=j,o=j.return;try{r=a,Y.props=r.memoizedProps,Y.state=r.memoizedState,Y.componentWillUnmount()}catch(Z){Ue(a,o,Z)}}break;case 5:$n(j,j.return);break;case 22:if(j.memoizedState!==null){Zh(H);continue}}X!==null?(X.return=j,K=X):Zh(H)}z=z.sibling}e:for(z=null,H=t;;){if(H.tag===5){if(z===null){z=H;try{c=H.stateNode,F?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(S=H.stateNode,A=H.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,S.style.display=Nf("display",g))}catch(Z){Ue(t,t.return,Z)}}}else if(H.tag===6){if(z===null)try{H.stateNode.nodeValue=F?"":H.memoizedProps}catch(Z){Ue(t,t.return,Z)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===t)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===t)break e;for(;H.sibling===null;){if(H.return===null||H.return===t)break e;z===H&&(z=null),H=H.return}z===H&&(z=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:Wt(r,t),or(t),a&4&&Xh(t);break;case 21:break;default:Wt(r,t),or(t)}}function or(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(qh(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(ii(c,""),a.flags&=-33);var f=Vh(t);Hl(t,f,c);break;case 3:case 4:var g=a.stateNode.containerInfo,S=Vh(t);Ul(t,S,g);break;default:throw Error(i(161))}}catch(A){Ue(t,t.return,A)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function w_(t,r,o){K=t,Kh(t)}function Kh(t,r,o){for(var a=(t.mode&1)!==0;K!==null;){var c=K,f=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||Qo;if(!g){var S=c.alternate,A=S!==null&&S.memoizedState!==null||lt;S=Qo;var F=lt;if(Qo=g,(lt=A)&&!F)for(K=c;K!==null;)g=K,A=g.child,g.tag===22&&g.memoizedState!==null?Jh(c):A!==null?(A.return=g,K=A):Jh(c);for(;f!==null;)K=f,Kh(f),f=f.sibling;K=c,Qo=S,lt=F}Yh(t)}else c.subtreeFlags&8772&&f!==null?(f.return=c,K=f):Yh(t)}}function Yh(t){for(;K!==null;){var r=K;if(r.flags&8772){var o=r.alternate;try{if(r.flags&8772)switch(r.tag){case 0:case 11:case 15:lt||Ko(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!lt)if(o===null)a.componentDidMount();else{var c=r.elementType===r.type?o.memoizedProps:qt(r.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=r.updateQueue;f!==null&&Zd(r,f,a);break;case 3:var g=r.updateQueue;if(g!==null){if(o=null,r.child!==null)switch(r.child.tag){case 5:o=r.child.stateNode;break;case 1:o=r.child.stateNode}Zd(r,g,o)}break;case 5:var S=r.stateNode;if(o===null&&r.flags&4){o=S;var A=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&o.focus();break;case"img":A.src&&(o.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var F=r.alternate;if(F!==null){var z=F.memoizedState;if(z!==null){var H=z.dehydrated;H!==null&&mi(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}lt||r.flags&512&&zl(r)}catch(j){Ue(r,r.return,j)}}if(r===t){K=null;break}if(o=r.sibling,o!==null){o.return=r.return,K=o;break}K=r.return}}function Zh(t){for(;K!==null;){var r=K;if(r===t){K=null;break}var o=r.sibling;if(o!==null){o.return=r.return,K=o;break}K=r.return}}function Jh(t){for(;K!==null;){var r=K;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{Ko(4,r)}catch(A){Ue(r,o,A)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var c=r.return;try{a.componentDidMount()}catch(A){Ue(r,c,A)}}var f=r.return;try{zl(r)}catch(A){Ue(r,f,A)}break;case 5:var g=r.return;try{zl(r)}catch(A){Ue(r,g,A)}}}catch(A){Ue(r,r.return,A)}if(r===t){K=null;break}var S=r.sibling;if(S!==null){S.return=r.return,K=S;break}K=r.return}}var x_=Math.ceil,Yo=T.ReactCurrentDispatcher,Gl=T.ReactCurrentOwner,Ft=T.ReactCurrentBatchConfig,Se=0,Ye=null,qe=null,tt=0,Tt=0,qn=Mr(0),Qe=0,Bi=null,ln=0,Zo=0,$l=0,ji=null,vt=null,ql=0,Vn=1/0,_r=null,Jo=!1,Vl=null,Ur=null,es=!1,Hr=null,ts=0,zi=0,Wl=null,rs=-1,ns=0;function ft(){return Se&6?He():rs!==-1?rs:rs=He()}function Gr(t){return t.mode&1?Se&2&&tt!==0?tt&-tt:a_.transition!==null?(ns===0&&(ns=Vf()),ns):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:td(t.type)),t):1}function Xt(t,r,o,a){if(50<zi)throw zi=0,Wl=null,Error(i(185));ci(t,o,a),(!(Se&2)||t!==Ye)&&(t===Ye&&(!(Se&2)&&(Zo|=o),Qe===4&&$r(t,tt)),_t(t,a),o===1&&Se===0&&!(r.mode&1)&&(Vn=He()+500,Ao&&Lr()))}function _t(t,r){var o=t.callbackNode;a0(t,r);var a=fo(t,t===Ye?tt:0);if(a===0)o!==null&&Gf(o),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(o!=null&&Gf(o),r===1)t.tag===0?s_(tp.bind(null,t)):zd(tp.bind(null,t)),r_(function(){!(Se&6)&&Lr()}),o=null;else{switch(Wf(a)){case 1:o=Ca;break;case 4:o=$f;break;case 16:o=ao;break;case 536870912:o=qf;break;default:o=ao}o=up(o,ep.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function ep(t,r){if(rs=-1,ns=0,Se&6)throw Error(i(327));var o=t.callbackNode;if(Wn()&&t.callbackNode!==o)return null;var a=fo(t,t===Ye?tt:0);if(a===0)return null;if(a&30||a&t.expiredLanes||r)r=is(t,a);else{r=a;var c=Se;Se|=2;var f=np();(Ye!==t||tt!==r)&&(_r=null,Vn=He()+500,cn(t,r));do try{k_();break}catch(S){rp(t,S)}while(!0);fl(),Yo.current=f,Se=c,qe!==null?r=0:(Ye=null,tt=0,r=Qe)}if(r!==0){if(r===2&&(c=ka(t),c!==0&&(a=c,r=Xl(t,c))),r===1)throw o=Bi,cn(t,0),$r(t,a),_t(t,He()),o;if(r===6)$r(t,a);else{if(c=t.current.alternate,!(a&30)&&!T_(c)&&(r=is(t,a),r===2&&(f=ka(t),f!==0&&(a=f,r=Xl(t,f))),r===1))throw o=Bi,cn(t,0),$r(t,a),_t(t,He()),o;switch(t.finishedWork=c,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:fn(t,vt,_r);break;case 3:if($r(t,a),(a&130023424)===a&&(r=ql+500-He(),10<r)){if(fo(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){ft(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=el(fn.bind(null,t,vt,_r),r);break}fn(t,vt,_r);break;case 4:if($r(t,a),(a&4194240)===a)break;for(r=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);f=1<<g,g=r[g],g>c&&(c=g),a&=~f}if(a=c,a=He()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*x_(a/1960))-a,10<a){t.timeoutHandle=el(fn.bind(null,t,vt,_r),a);break}fn(t,vt,_r);break;case 5:fn(t,vt,_r);break;default:throw Error(i(329))}}}return _t(t,He()),t.callbackNode===o?ep.bind(null,t):null}function Xl(t,r){var o=ji;return t.current.memoizedState.isDehydrated&&(cn(t,r).flags|=256),t=is(t,r),t!==2&&(r=vt,vt=o,r!==null&&Ql(r)),t}function Ql(t){vt===null?vt=t:vt.push.apply(vt,t)}function T_(t){for(var r=t;;){if(r.flags&16384){var o=r.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var c=o[a],f=c.getSnapshot;c=c.value;try{if(!Gt(f(),c))return!1}catch{return!1}}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function $r(t,r){for(r&=~$l,r&=~Zo,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-Ht(r),a=1<<o;t[o]=-1,r&=~a}}function tp(t){if(Se&6)throw Error(i(327));Wn();var r=fo(t,0);if(!(r&1))return _t(t,He()),null;var o=is(t,r);if(t.tag!==0&&o===2){var a=ka(t);a!==0&&(r=a,o=Xl(t,a))}if(o===1)throw o=Bi,cn(t,0),$r(t,r),_t(t,He()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,fn(t,vt,_r),_t(t,He()),null}function Kl(t,r){var o=Se;Se|=1;try{return t(r)}finally{Se=o,Se===0&&(Vn=He()+500,Ao&&Lr())}}function un(t){Hr!==null&&Hr.tag===0&&!(Se&6)&&Wn();var r=Se;Se|=1;var o=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=o,Se=r,!(Se&6)&&Lr()}}function Yl(){Tt=qn.current,De(qn)}function cn(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,t_(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(sl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Oo();break;case 3:Hn(),De(mt),De(ot),_l();break;case 5:yl(a);break;case 4:Hn();break;case 13:De(Le);break;case 19:De(Le);break;case 10:dl(a.type._context);break;case 22:case 23:Yl()}o=o.return}if(Ye=t,qe=t=qr(t.current,null),tt=Tt=r,Qe=0,Bi=null,$l=Zo=ln=0,vt=ji=null,on!==null){for(r=0;r<on.length;r++)if(o=on[r],a=o.interleaved,a!==null){o.interleaved=null;var c=a.next,f=o.pending;if(f!==null){var g=f.next;f.next=c,a.next=g}o.pending=a}on=null}return t}function rp(t,r){do{var o=qe;try{if(fl(),Uo.current=qo,Ho){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Ho=!1}if(an=0,Ke=Xe=Be=null,Pi=!1,Ii=0,Gl.current=null,o===null||o.return===null){Qe=1,Bi=r,qe=null;break}e:{var f=t,g=o.return,S=o,A=r;if(r=tt,S.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var F=A,z=S,H=z.tag;if(!(z.mode&1)&&(H===0||H===11||H===15)){var j=z.alternate;j?(z.updateQueue=j.updateQueue,z.memoizedState=j.memoizedState,z.lanes=j.lanes):(z.updateQueue=null,z.memoizedState=null)}var X=kh(g);if(X!==null){X.flags&=-257,Rh(X,g,S,f,r),X.mode&1&&Ch(f,F,r),r=X,A=F;var Y=r.updateQueue;if(Y===null){var Z=new Set;Z.add(A),r.updateQueue=Z}else Y.add(A);break e}else{if(!(r&1)){Ch(f,F,r),Zl();break e}A=Error(i(426))}}else if(Fe&&S.mode&1){var Ge=kh(g);if(Ge!==null){!(Ge.flags&65536)&&(Ge.flags|=256),Rh(Ge,g,S,f,r),ul(Gn(A,S));break e}}f=A=Gn(A,S),Qe!==4&&(Qe=2),ji===null?ji=[f]:ji.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,r&=-r,f.lanes|=r;var D=xh(f,A,r);Yd(f,D);break e;case 1:S=A;var P=f.type,M=f.stateNode;if(!(f.flags&128)&&(typeof P.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Ur===null||!Ur.has(M)))){f.flags|=65536,r&=-r,f.lanes|=r;var $=Th(f,S,r);Yd(f,$);break e}}f=f.return}while(f!==null)}op(o)}catch(ee){r=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function np(){var t=Yo.current;return Yo.current=qo,t===null?qo:t}function Zl(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Ye===null||!(ln&268435455)&&!(Zo&268435455)||$r(Ye,tt)}function is(t,r){var o=Se;Se|=2;var a=np();(Ye!==t||tt!==r)&&(_r=null,cn(t,r));do try{C_();break}catch(c){rp(t,c)}while(!0);if(fl(),Se=o,Yo.current=a,qe!==null)throw Error(i(261));return Ye=null,tt=0,Qe}function C_(){for(;qe!==null;)ip(qe)}function k_(){for(;qe!==null&&!Zv();)ip(qe)}function ip(t){var r=lp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,r===null?op(t):qe=r,Gl.current=null}function op(t){var r=t;do{var o=r.alternate;if(t=r.return,r.flags&32768){if(o=E_(o,r),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Qe=6,qe=null;return}}else if(o=__(o,r,Tt),o!==null){qe=o;return}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);Qe===0&&(Qe=5)}function fn(t,r,o){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,R_(t,r,o,a)}finally{Ft.transition=c,Oe=a}return null}function R_(t,r,o,a){do Wn();while(Hr!==null);if(Se&6)throw Error(i(327));o=t.finishedWork;var c=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var f=o.lanes|o.childLanes;if(l0(t,f),t===Ye&&(qe=Ye=null,tt=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||es||(es=!0,up(ao,function(){return Wn(),null})),f=(o.flags&15990)!==0,o.subtreeFlags&15990||f){f=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var S=Se;Se|=4,Gl.current=null,S_(t,o),Qh(o,t),X0(Za),mo=!!Ya,Za=Ya=null,t.current=o,w_(o),Jv(),Se=S,Oe=g,Ft.transition=f}else t.current=o;if(es&&(es=!1,Hr=t,ts=c),f=t.pendingLanes,f===0&&(Ur=null),r0(o.stateNode),_t(t,He()),r!==null)for(a=t.onRecoverableError,o=0;o<r.length;o++)c=r[o],a(c.value,{componentStack:c.stack,digest:c.digest});if(Jo)throw Jo=!1,t=Vl,Vl=null,t;return ts&1&&t.tag!==0&&Wn(),f=t.pendingLanes,f&1?t===Wl?zi++:(zi=0,Wl=t):zi=0,Lr(),null}function Wn(){if(Hr!==null){var t=Wf(ts),r=Ft.transition,o=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,Hr===null)var a=!1;else{if(t=Hr,Hr=null,ts=0,Se&6)throw Error(i(331));var c=Se;for(Se|=4,K=t.current;K!==null;){var f=K,g=f.child;if(K.flags&16){var S=f.deletions;if(S!==null){for(var A=0;A<S.length;A++){var F=S[A];for(K=F;K!==null;){var z=K;switch(z.tag){case 0:case 11:case 15:Li(8,z,f)}var H=z.child;if(H!==null)H.return=z,K=H;else for(;K!==null;){z=K;var j=z.sibling,X=z.return;if($h(z),z===F){K=null;break}if(j!==null){j.return=X,K=j;break}K=X}}}var Y=f.alternate;if(Y!==null){var Z=Y.child;if(Z!==null){Y.child=null;do{var Ge=Z.sibling;Z.sibling=null,Z=Ge}while(Z!==null)}}K=f}}if(f.subtreeFlags&2064&&g!==null)g.return=f,K=g;else e:for(;K!==null;){if(f=K,f.flags&2048)switch(f.tag){case 0:case 11:case 15:Li(9,f,f.return)}var D=f.sibling;if(D!==null){D.return=f.return,K=D;break e}K=f.return}}var P=t.current;for(K=P;K!==null;){g=K;var M=g.child;if(g.subtreeFlags&2064&&M!==null)M.return=g,K=M;else e:for(g=P;K!==null;){if(S=K,S.flags&2048)try{switch(S.tag){case 0:case 11:case 15:Ko(9,S)}}catch(ee){Ue(S,S.return,ee)}if(S===g){K=null;break e}var $=S.sibling;if($!==null){$.return=S.return,K=$;break e}K=S.return}}if(Se=c,Lr(),tr&&typeof tr.onPostCommitFiberRoot=="function")try{tr.onPostCommitFiberRoot(lo,t)}catch{}a=!0}return a}finally{Oe=o,Ft.transition=r}}return!1}function sp(t,r,o){r=Gn(o,r),r=xh(t,r,1),t=jr(t,r,1),r=ft(),t!==null&&(ci(t,1,r),_t(t,r))}function Ue(t,r,o){if(t.tag===3)sp(t,t,o);else for(;r!==null;){if(r.tag===3){sp(r,t,o);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ur===null||!Ur.has(a))){t=Gn(o,t),t=Th(r,t,1),r=jr(r,t,1),t=ft(),r!==null&&(ci(r,1,t),_t(r,t));break}}r=r.return}}function O_(t,r,o){var a=t.pingCache;a!==null&&a.delete(r),r=ft(),t.pingedLanes|=t.suspendedLanes&o,Ye===t&&(tt&o)===o&&(Qe===4||Qe===3&&(tt&130023424)===tt&&500>He()-ql?cn(t,0):$l|=o),_t(t,r)}function ap(t,r){r===0&&(t.mode&1?(r=co,co<<=1,!(co&130023424)&&(co=4194304)):r=1);var o=ft();t=gr(t,r),t!==null&&(ci(t,r,o),_t(t,o))}function N_(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),ap(t,o)}function A_(t,r){var o=0;switch(t.tag){case 13:var a=t.stateNode,c=t.memoizedState;c!==null&&(o=c.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(r),ap(t,o)}var lp;lp=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||mt.current)yt=!0;else{if(!(t.lanes&o)&&!(r.flags&128))return yt=!1,v_(t,r,o);yt=!!(t.flags&131072)}else yt=!1,Fe&&r.flags&1048576&&Ud(r,Io,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;Xo(t,r),t=r.pendingProps;var c=Mn(r,ot.current);Un(r,o),c=Sl(null,r,a,t,c,o);var f=wl();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,gt(a)?(f=!0,No(r)):f=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,ml(r),c.updater=Vo,r.stateNode=c,c._reactInternals=r,Ol(r,a,t,o),r=Il(null,r,a,!0,f,o)):(r.tag=0,Fe&&f&&ol(r),ct(null,r,c,o),r=r.child),r;case 16:a=r.elementType;e:{switch(Xo(t,r),t=r.pendingProps,c=a._init,a=c(a._payload),r.type=a,c=r.tag=I_(a),t=qt(a,t),c){case 0:r=Pl(null,r,a,t,o);break e;case 1:r=Dh(null,r,a,t,o);break e;case 11:r=Oh(null,r,a,t,o);break e;case 14:r=Nh(null,r,a,qt(a.type,t),o);break e}throw Error(i(306,a,""))}return r;case 0:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:qt(a,c),Pl(t,r,a,c,o);case 1:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:qt(a,c),Dh(t,r,a,c,o);case 3:e:{if(Mh(r),t===null)throw Error(i(387));a=r.pendingProps,f=r.memoizedState,c=f.element,Kd(t,r),jo(r,a,null,o);var g=r.memoizedState;if(a=g.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},r.updateQueue.baseState=f,r.memoizedState=f,r.flags&256){c=Gn(Error(i(423)),r),r=Fh(t,r,a,o,c);break e}else if(a!==c){c=Gn(Error(i(424)),r),r=Fh(t,r,a,o,c);break e}else for(xt=Dr(r.stateNode.containerInfo.firstChild),wt=r,Fe=!0,$t=null,o=Xd(r,null,a,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Bn(),a===c){r=vr(t,r,o);break e}ct(t,r,a,o)}r=r.child}return r;case 5:return Jd(r),t===null&&ll(r),a=r.type,c=r.pendingProps,f=t!==null?t.memoizedProps:null,g=c.children,Ja(a,c)?g=null:f!==null&&Ja(a,f)&&(r.flags|=32),Ih(t,r),ct(t,r,g,o),r.child;case 6:return t===null&&ll(r),null;case 13:return Lh(t,r,o);case 4:return gl(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=jn(r,null,a,o):ct(t,r,a,o),r.child;case 11:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:qt(a,c),Oh(t,r,a,c,o);case 7:return ct(t,r,r.pendingProps,o),r.child;case 8:return ct(t,r,r.pendingProps.children,o),r.child;case 12:return ct(t,r,r.pendingProps.children,o),r.child;case 10:e:{if(a=r.type._context,c=r.pendingProps,f=r.memoizedProps,g=c.value,Ae(Fo,a._currentValue),a._currentValue=g,f!==null)if(Gt(f.value,g)){if(f.children===c.children&&!mt.current){r=vr(t,r,o);break e}}else for(f=r.child,f!==null&&(f.return=r);f!==null;){var S=f.dependencies;if(S!==null){g=f.child;for(var A=S.firstContext;A!==null;){if(A.context===a){if(f.tag===1){A=yr(-1,o&-o),A.tag=2;var F=f.updateQueue;if(F!==null){F=F.shared;var z=F.pending;z===null?A.next=A:(A.next=z.next,z.next=A),F.pending=A}}f.lanes|=o,A=f.alternate,A!==null&&(A.lanes|=o),hl(f.return,o,r),S.lanes|=o;break}A=A.next}}else if(f.tag===10)g=f.type===r.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(i(341));g.lanes|=o,S=g.alternate,S!==null&&(S.lanes|=o),hl(g,o,r),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===r){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}ct(t,r,c.children,o),r=r.child}return r;case 9:return c=r.type,a=r.pendingProps.children,Un(r,o),c=Dt(c),a=a(c),r.flags|=1,ct(t,r,a,o),r.child;case 14:return a=r.type,c=qt(a,r.pendingProps),c=qt(a.type,c),Nh(t,r,a,c,o);case 15:return Ah(t,r,r.type,r.pendingProps,o);case 17:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:qt(a,c),Xo(t,r),r.tag=1,gt(a)?(t=!0,No(r)):t=!1,Un(r,o),Sh(r,a,c),Ol(r,a,c,o),Il(null,r,a,!0,t,o);case 19:return jh(t,r,o);case 22:return Ph(t,r,o)}throw Error(i(156,r.tag))};function up(t,r){return Hf(t,r)}function P_(t,r,o,a){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(t,r,o,a){return new P_(t,r,o,a)}function Jl(t){return t=t.prototype,!(!t||!t.isReactComponent)}function I_(t){if(typeof t=="function")return Jl(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Pe)return 14}return 2}function qr(t,r){var o=t.alternate;return o===null?(o=Lt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&14680064,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o}function os(t,r,o,a,c,f){var g=2;if(a=t,typeof t=="function")Jl(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case G:return dn(o.children,c,f,r);case W:g=8,c|=8;break;case he:return t=Lt(12,o,r,c|2),t.elementType=he,t.lanes=f,t;case le:return t=Lt(13,o,r,c),t.elementType=le,t.lanes=f,t;case ze:return t=Lt(19,o,r,c),t.elementType=ze,t.lanes=f,t;case Ne:return ss(o,c,f,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case ce:g=9;break e;case pe:g=11;break e;case Pe:g=14;break e;case $e:g=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Lt(g,o,r,c),r.elementType=t,r.type=a,r.lanes=f,r}function dn(t,r,o,a){return t=Lt(7,t,a,r),t.lanes=o,t}function ss(t,r,o,a){return t=Lt(22,t,a,r),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function eu(t,r,o){return t=Lt(6,t,null,r),t.lanes=o,t}function tu(t,r,o){return r=Lt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function D_(t,r,o,a,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function ru(t,r,o,a,c,f,g,S,A){return t=new D_(t,r,o,S,A),r===1?(r=1,f===!0&&(r|=8)):r=0,f=Lt(3,null,null,r),t.current=f,f.stateNode=t,f.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},ml(f),t}function M_(t,r,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:a==null?null:""+a,children:t,containerInfo:r,implementation:o}}function cp(t){if(!t)return Fr;t=t._reactInternals;e:{if(Jr(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(gt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var o=t.type;if(gt(o))return Bd(t,o,r)}return r}function fp(t,r,o,a,c,f,g,S,A){return t=ru(o,a,!0,t,c,f,g,S,A),t.context=cp(null),o=t.current,a=ft(),c=Gr(o),f=yr(a,c),f.callback=r??null,jr(o,f,c),t.current.lanes=c,ci(t,c,a),_t(t,a),t}function as(t,r,o,a){var c=r.current,f=ft(),g=Gr(c);return o=cp(o),r.context===null?r.context=o:r.pendingContext=o,r=yr(f,g),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=jr(c,r,g),t!==null&&(Xt(t,c,g,f),Bo(t,c,g)),g}function ls(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function dp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function nu(t,r){dp(t,r),(t=t.alternate)&&dp(t,r)}function F_(){return null}var hp=typeof reportError=="function"?reportError:function(t){console.error(t)};function iu(t){this._internalRoot=t}us.prototype.render=iu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));as(t,r,null,null)},us.prototype.unmount=iu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;un(function(){as(null,t,null,null)}),r[dr]=null}};function us(t){this._internalRoot=t}us.prototype.unstable_scheduleHydration=function(t){if(t){var r=Kf();t={blockedOn:null,target:t,priority:r};for(var o=0;o<Ar.length&&r!==0&&r<Ar[o].priority;o++);Ar.splice(o,0,t),o===0&&Jf(t)}};function ou(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function cs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function pp(){}function L_(t,r,o,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var F=ls(g);f.call(F)}}var g=fp(r,a,t,0,null,!1,!1,"",pp);return t._reactRootContainer=g,t[dr]=g.current,xi(t.nodeType===8?t.parentNode:t),un(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var S=a;a=function(){var F=ls(A);S.call(F)}}var A=ru(t,0,!1,null,null,!1,!1,"",pp);return t._reactRootContainer=A,t[dr]=A.current,xi(t.nodeType===8?t.parentNode:t),un(function(){as(r,A,o,a)}),A}function fs(t,r,o,a,c){var f=o._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var S=c;c=function(){var A=ls(g);S.call(A)}}as(r,g,t,c)}else g=L_(o,r,t,c,a);return ls(g)}Xf=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=ui(r.pendingLanes);o!==0&&(Oa(r,o|1),_t(r,He()),!(Se&6)&&(Vn=He()+500,Lr()))}break;case 13:un(function(){var a=gr(t,1);if(a!==null){var c=ft();Xt(a,t,1,c)}}),nu(t,1)}},Na=function(t){if(t.tag===13){var r=gr(t,134217728);if(r!==null){var o=ft();Xt(r,t,134217728,o)}nu(t,134217728)}},Qf=function(t){if(t.tag===13){var r=Gr(t),o=gr(t,r);if(o!==null){var a=ft();Xt(o,t,r,a)}nu(t,r)}},Kf=function(){return Oe},Yf=function(t,r){var o=Oe;try{return Oe=t,r()}finally{Oe=o}},Sa=function(t,r,o){switch(r){case"input":if(pa(t,o),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<o.length;r++){var a=o[r];if(a!==t&&a.form===t.form){var c=Ro(a);if(!c)throw Error(i(90));ut(a),pa(a,c)}}}break;case"textarea":Cf(t,o);break;case"select":r=o.value,r!=null&&wn(t,!!o.multiple,r,!1)}},Mf=Kl,Ff=un;var B_={usingClientEntryPoint:!1,Events:[ki,In,Ro,If,Df,Kl]},Ui={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},j_={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=zf(t),t===null?null:t.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||F_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ds.isDisabled&&ds.supportsFiber)try{lo=ds.inject(j_),tr=ds}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B_,Et.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ou(r))throw Error(i(200));return M_(t,r,null,o)},Et.createRoot=function(t,r){if(!ou(t))throw Error(i(299));var o=!1,a="",c=hp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=ru(t,1,!1,null,null,o,!1,a,c),t[dr]=r.current,xi(t.nodeType===8?t.parentNode:t),new iu(r)},Et.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=zf(r),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return un(t)},Et.hydrate=function(t,r,o){if(!cs(r))throw Error(i(200));return fs(null,t,r,!0,o)},Et.hydrateRoot=function(t,r,o){if(!ou(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,f="",g=hp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),r=fp(r,null,t,1,o??null,c,!1,f,g),t[dr]=r.current,xi(t),a)for(t=0;t<a.length;t++)o=a[t],c=o._getVersion,c=c(o._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,c]:r.mutableSourceEagerHydrationData.push(o,c);return new us(r)},Et.render=function(t,r,o){if(!cs(r))throw Error(i(200));return fs(null,t,r,!1,o)},Et.unmountComponentAtNode=function(t){if(!cs(t))throw Error(i(40));return t._reactRootContainer?(un(function(){fs(null,null,t,!1,function(){t._reactRootContainer=null,t[dr]=null})}),!0):!1},Et.unstable_batchedUpdates=Kl,Et.unstable_renderSubtreeIntoContainer=function(t,r,o,a){if(!cs(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return fs(t,r,o,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Sp;function Q_(){if(Sp)return lu.exports;Sp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),lu.exports=X_(),lu.exports}var wp;function K_(){if(wp)return ps;wp=1;var e=Q_();return ps.createRoot=e.createRoot,ps.hydrateRoot=e.hydrateRoot,ps}var Y_=K_(),U=Jn();const wr=ea(U);var fu={exports:{}},du={};/**
41
- * @license React
42
- * use-sync-external-store-with-selector.production.js
43
- *
44
- * Copyright (c) Meta Platforms, Inc. and 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 xp;function Z_(){if(xp)return du;xp=1;var e=Jn();function n(p,_){return p===_&&(p!==0||1/p===1/_)||p!==p&&_!==_}var i=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,d=e.useMemo,h=e.useDebugValue;return du.useSyncExternalStoreWithSelector=function(p,_,y,w,m){var E=l(null);if(E.current===null){var v={hasValue:!1,value:null};E.current=v}else v=E.current;E=d(function(){function C(x){if(!O){if(O=!0,N=x,x=w(x),m!==void 0&&v.hasValue){var L=v.value;if(m(L,x))return b=L}return b=x}if(L=b,i(N,x))return L;var G=w(x);return m!==void 0&&m(L,G)?(N=x,L):(N=x,b=G)}var O=!1,N,b,T=y===void 0?null:y;return[function(){return C(_())},T===null?void 0:function(){return C(T())}]},[_,y,w,m]);var R=s(p,E[0],E[1]);return u(function(){v.hasValue=!0,v.value=R},[R]),h(R),R},du}var Tp;function J_(){return Tp||(Tp=1,fu.exports=Z_()),fu.exports}var e1=J_(),t1=U.version.startsWith("19"),r1=Symbol.for(t1?"react.transitional.element":"react.element"),n1=Symbol.for("react.portal"),i1=Symbol.for("react.fragment"),o1=Symbol.for("react.strict_mode"),s1=Symbol.for("react.profiler"),a1=Symbol.for("react.consumer"),l1=Symbol.for("react.context"),Ug=Symbol.for("react.forward_ref"),u1=Symbol.for("react.suspense"),c1=Symbol.for("react.suspense_list"),Bc=Symbol.for("react.memo"),f1=Symbol.for("react.lazy"),d1=Ug,h1=Bc;function p1(e){if(typeof e=="object"&&e!==null){const{$$typeof:n}=e;switch(n){case r1:switch(e=e.type,e){case i1:case s1:case o1:case u1:case c1:return e;default:switch(e=e&&e.$$typeof,e){case l1:case Ug:case f1:case Bc:return e;case a1:return e;default:return n}}case n1:return n}}}function m1(e){return p1(e)===Bc}function g1(e,n,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:d}){let h=!1,p,_,y,w,m;function E(N,b){return p=N,_=b,y=e(p,_),w=n(s,_),m=i(y,w,_),h=!0,m}function v(){return y=e(p,_),n.dependsOnOwnProps&&(w=n(s,_)),m=i(y,w,_),m}function R(){return e.dependsOnOwnProps&&(y=e(p,_)),n.dependsOnOwnProps&&(w=n(s,_)),m=i(y,w,_),m}function C(){const N=e(p,_),b=!d(N,y);return y=N,b&&(m=i(y,w,_)),m}function O(N,b){const T=!u(b,_),x=!l(N,p,b,_);return p=N,_=b,T&&x?v():T?R():x?C():m}return function(b,T){return h?O(b,T):E(b,T)}}function y1(e,{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=n(e,l),d=i(e,l),h=s(e,l);return g1(u,d,h,e,l)}function v1(e,n){const i={};for(const s in e){const l=e[s];typeof l=="function"&&(i[s]=(...u)=>n(l(...u)))}return i}function ac(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Cp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Hg(e,n){return function(s,{displayName:l}){const u=function(h,p){return u.dependsOnOwnProps?u.mapToProps(h,p):u.mapToProps(h,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(h,p){u.mapToProps=e,u.dependsOnOwnProps=Cp(e);let _=u(h,p);return typeof _=="function"&&(u.mapToProps=_,u.dependsOnOwnProps=Cp(_),_=u(h,p)),_},u}}function jc(e,n){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${n} argument when connecting component ${s.wrappedComponentName}.`)}}function _1(e){return e&&typeof e=="object"?ac(n=>v1(e,n)):e?typeof e=="function"?Hg(e):jc(e,"mapDispatchToProps"):ac(n=>({dispatch:n}))}function E1(e){return e?typeof e=="function"?Hg(e):jc(e,"mapStateToProps"):ac(()=>({}))}function b1(e,n,i){return{...i,...e,...n}}function S1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,d;return function(p,_,y){const w=e(p,_,y);return u?l(w,d)||(d=w):(u=!0,d=w),d}}}function w1(e){return e?typeof e=="function"?S1(e):jc(e,"mergeProps"):()=>b1}function x1(e){e()}function T1(){let e=null,n=null;return{clear(){e=null,n=null},notify(){x1(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=e;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const l=n={callback:i,next:null,prev:n};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var kp={notify(){},get:()=>[]};function Gg(e,n){let i,s=kp,l=0,u=!1;function d(R){y();const C=s.subscribe(R);let O=!1;return()=>{O||(O=!0,C(),w())}}function h(){s.notify()}function p(){v.onStateChange&&v.onStateChange()}function _(){return u}function y(){l++,i||(i=n?n.addNestedSub(p):e.subscribe(p),s=T1())}function w(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=kp)}function m(){u||(u=!0,y())}function E(){u&&(u=!1,w())}const v={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:_,trySubscribe:m,tryUnsubscribe:E,getListeners:()=>s};return v}var C1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k1=C1(),R1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",O1=R1(),N1=()=>k1||O1?U.useLayoutEffect:U.useEffect,Vs=N1();function Rp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function hu(e,n){if(Rp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(n,i[l])||!Rp(e[i[l]],n[i[l]]))return!1;return!0}var A1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},P1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},I1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},D1={[d1]:I1,[h1]:$g};function Op(e){return m1(e)?$g:D1[e.$$typeof]||A1}var M1=Object.defineProperty,F1=Object.getOwnPropertyNames,Np=Object.getOwnPropertySymbols,L1=Object.getOwnPropertyDescriptor,B1=Object.getPrototypeOf,Ap=Object.prototype;function lc(e,n){if(typeof n!="string"){if(Ap){const u=B1(n);u&&u!==Ap&&lc(e,u)}let i=F1(n);Np&&(i=i.concat(Np(n)));const s=Op(e),l=Op(n);for(let u=0;u<i.length;++u){const d=i[u];if(!P1[d]&&!(l&&l[d])&&!(s&&s[d])){const h=L1(n,d);try{M1(e,d,h)}catch{}}}}return e}var pu=Symbol.for("react-redux-context"),mu=typeof globalThis<"u"?globalThis:{};function j1(){if(!U.createContext)return{};const e=mu[pu]??(mu[pu]=new Map);let n=e.get(U.createContext);return n||(n=U.createContext(null),e.set(U.createContext,n)),n}var Cr=j1(),z1=[null,null];function U1(e,n,i){Vs(()=>e(...n),i)}function H1(e,n,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function G1(e,n,i,s,l,u,d,h,p,_,y){if(!e)return()=>{};let w=!1,m=null;const E=()=>{if(w||!h.current)return;const R=n.getState();let C,O;try{C=s(R,l.current)}catch(N){O=N,m=N}O||(m=null),C===u.current?d.current||_():(u.current=C,p.current=C,d.current=!0,y())};return i.onStateChange=E,i.trySubscribe(),E(),()=>{if(w=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function $1(e,n){return e===n}function q1(e,n,i,{pure:s,areStatesEqual:l=$1,areOwnPropsEqual:u=hu,areStatePropsEqual:d=hu,areMergedPropsEqual:h=hu,forwardRef:p=!1,context:_=Cr}={}){const y=_,w=E1(e),m=_1(n),E=w1(i),v=!!e;return C=>{const O=C.displayName||C.name||"Component",N=`Connect(${O})`,b={shouldHandleStateChanges:v,displayName:N,wrappedComponentName:O,WrappedComponent:C,initMapStateToProps:w,initMapDispatchToProps:m,initMergeProps:E,areStatesEqual:l,areStatePropsEqual:d,areOwnPropsEqual:u,areMergedPropsEqual:h};function T(G){const[W,he,te]=U.useMemo(()=>{const{reactReduxForwardedRef:ut,...er}=G;return[G.context,ut,er]},[G]),ce=U.useMemo(()=>{let ut=y;return W!=null&&W.Consumer,ut},[W,y]),pe=U.useContext(ce),le=!!G.store&&!!G.store.getState&&!!G.store.dispatch,ze=!!pe&&!!pe.store,Pe=le?G.store:pe.store,$e=ze?pe.getServerState:Pe.getState,Ne=U.useMemo(()=>y1(Pe.dispatch,b),[Pe]),[V,re]=U.useMemo(()=>{if(!v)return z1;const ut=Gg(Pe,le?void 0:pe.subscription),er=ut.notifyNestedSubs.bind(ut);return[ut,er]},[Pe,le,pe]),Q=U.useMemo(()=>le?pe:{...pe,subscription:V},[le,pe,V]),I=U.useRef(void 0),B=U.useRef(te),ue=U.useRef(void 0),fe=U.useRef(!1),ye=U.useRef(!1),ve=U.useRef(void 0);Vs(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=U.useMemo(()=>()=>ue.current&&te===B.current?ue.current:Ne(Pe.getState(),te),[Pe,te]),Te=U.useMemo(()=>er=>V?G1(v,Pe,V,Ne,B,I,fe,ye,ue,re,er):()=>{},[V]);U1(H1,[B,I,fe,te,ue,re]);let Re;try{Re=U.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ut){throw ve.current&&(ut.message+=`
49
- The error may be correlated with this previous error:
50
- ${ve.current.stack}
51
-
52
- `),ut}Vs(()=>{ve.current=void 0,ue.current=void 0,I.current=Re});const Je=U.useMemo(()=>U.createElement(C,{...Re,ref:he}),[he,C,Re]);return U.useMemo(()=>v?U.createElement(ce.Provider,{value:Q},Je):Je,[ce,Je,Q])}const L=U.memo(T);if(L.WrappedComponent=C,L.displayName=T.displayName=N,p){const W=U.forwardRef(function(te,ce){return U.createElement(L,{...te,reactReduxForwardedRef:ce})});return W.displayName=N,W.WrappedComponent=C,lc(W,C)}return lc(L,C)}}var V1=q1;function W1(e){const{children:n,context:i,serverState:s,store:l}=e,u=U.useMemo(()=>{const p=Gg(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),d=U.useMemo(()=>l.getState(),[l]);Vs(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),d!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,d]);const h=i||Cr;return U.createElement(h.Provider,{value:u},n)}var X1=W1;function zc(e=Cr){return function(){return U.useContext(e)}}var qg=zc();function Vg(e=Cr){const n=e===Cr?qg:zc(e),i=()=>{const{store:s}=n();return s};return Object.assign(i,{withTypes:()=>i}),i}var Q1=Vg();function K1(e=Cr){const n=e===Cr?Q1:Vg(e),i=()=>n().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var Y1=K1(),Z1=(e,n)=>e===n;function J1(e=Cr){const n=e===Cr?qg:zc(e),i=(s,l={})=>{const{equalityFn:u=Z1}=typeof l=="function"?{equalityFn:l}:l,d=n(),{store:h,subscription:p,getServerState:_}=d;U.useRef(!0);const y=U.useCallback({[s.name](m){return s(m)}}[s.name],[s]),w=e1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,_||h.getState,y,u);return U.useDebugValue(w),w};return Object.assign(i,{withTypes:()=>i}),i}var eE=J1(),uc=function(e,n){return uc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])},uc(e,n)};function jt(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");uc(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var J=function(){return J=Object.assign||function(n){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},J.apply(this,arguments)};function ta(e,n){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(i[s[l]]=e[s[l]]);return i}function lr(e,n,i){if(i||arguments.length===2)for(var s=0,l=n.length,u;s<l;s++)(u||!(s in n))&&(u||(u=Array.prototype.slice.call(n,0,s)),u[s]=n[s]);return e.concat(u||Array.prototype.slice.call(n))}function sr(e,n){var i=n&&n.cache?n.cache:aE,s=n&&n.serializer?n.serializer:oE,l=n&&n.strategy?n.strategy:rE;return l(e,{cache:i,serializer:s})}function tE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Wg(e,n,i,s){var l=tE(s)?s:i(s),u=n.get(l);return typeof u>"u"&&(u=e.call(this,s),n.set(l,u)),u}function Xg(e,n,i){var s=Array.prototype.slice.call(arguments,3),l=i(s),u=n.get(l);return typeof u>"u"&&(u=e.apply(this,s),n.set(l,u)),u}function Uc(e,n,i,s,l){return i.bind(n,e,s,l)}function rE(e,n){var i=e.length===1?Wg:Xg;return Uc(e,this,i,n.cache.create(),n.serializer)}function nE(e,n){return Uc(e,this,Xg,n.cache.create(),n.serializer)}function iE(e,n){return Uc(e,this,Wg,n.cache.create(),n.serializer)}var oE=function(){return JSON.stringify(arguments)},sE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(n){return this.cache[n]},e.prototype.set=function(n,i){this.cache[n]=i},e}(),aE={create:function(){return new sE}},ar={variadic:nE,monadic:iE},_e;(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"})(_e||(_e={}));var Me;(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"})(Me||(Me={}));var Yn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Yn||(Yn={}));function Pp(e){return e.type===Me.literal}function lE(e){return e.type===Me.argument}function Qg(e){return e.type===Me.number}function Kg(e){return e.type===Me.date}function Yg(e){return e.type===Me.time}function Zg(e){return e.type===Me.select}function Jg(e){return e.type===Me.plural}function uE(e){return e.type===Me.pound}function ey(e){return e.type===Me.tag}function ty(e){return!!(e&&typeof e=="object"&&e.type===Yn.number)}function cc(e){return!!(e&&typeof e=="object"&&e.type===Yn.dateTime)}var ry=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,cE=/(?:[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 fE(e){var n={};return e.replace(cE,function(i){var s=i.length;switch(i[0]){case"G":n.era=s===4?"long":s===5?"narrow":"short";break;case"y":n.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][s-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][s-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][s-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][s-1];break;case"s":n.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n}var dE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(dE).filter(function(m){return m.length>0}),i=[],s=0,l=n;s<l.length;s++){var u=l[s],d=u.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],p=d.slice(1),_=0,y=p;_<y.length;_++){var w=y[_];if(w.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function pE(e){return e.replace(/^(.*?)-/,"")}var Ip=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ny=/^(@+)?(\+|#+)?[rs]?$/g,mE=/(\*)(0+)|(#+)(0+)|(0+)/g,iy=/^(0+)$/;function Dp(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(ny,function(i,s,l){return typeof l!="string"?(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length):l==="+"?n.minimumSignificantDigits=s.length:s[0]==="#"?n.maximumSignificantDigits=s.length:(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length+(typeof l=="string"?l.length:0)),""}),n}function oy(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 gE(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var i=e.slice(0,2);if(i==="+!"?(n.signDisplay="always",e=e.slice(2)):i==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!iy.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Mp(e){var n={},i=oy(e);return i||n}function yE(e){for(var n={},i=0,s=e;i<s.length;i++){var l=s[i];switch(l.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=l.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=pE(l.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=J(J(J({},n),{notation:"scientific"}),l.options.reduce(function(p,_){return J(J({},p),Mp(_))},{}));continue;case"engineering":n=J(J(J({},n),{notation:"engineering"}),l.options.reduce(function(p,_){return J(J({},p),Mp(_))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(mE,function(p,_,y,w,m,E){if(_)n.minimumIntegerDigits=y.length;else{if(w&&m)throw new Error("We currently do not support maximum integer digits");if(E)throw new Error("We currently do not support exact integer digits")}return""});continue}if(iy.test(l.stem)){n.minimumIntegerDigits=l.stem.length;continue}if(Ip.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace(Ip,function(p,_,y,w,m,E){return y==="*"?n.minimumFractionDigits=_.length:w&&w[0]==="#"?n.maximumFractionDigits=w.length:m&&E?(n.minimumFractionDigits=m.length,n.maximumFractionDigits=m.length+E.length):(n.minimumFractionDigits=_.length,n.maximumFractionDigits=_.length),""});var u=l.options[0];u==="w"?n=J(J({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=J(J({},n),Dp(u)));continue}if(ny.test(l.stem)){n=J(J({},n),Dp(l.stem));continue}var d=oy(l.stem);d&&(n=J(J({},n),d));var h=gE(l.stem);h&&(n=J(J({},n),h))}return n}var ms={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function vE(e,n){for(var i="",s=0;s<e.length;s++){var l=e.charAt(s);if(l==="j"){for(var u=0;s+1<e.length&&e.charAt(s+1)===l;)u++,s++;var d=1+(u&1),h=u<2?1:3+(u>>1),p="a",_=_E(n);for((_=="H"||_=="k")&&(h=0);h-- >0;)i+=p;for(;d-- >0;)i=_+i}else l==="J"?i+="H":i+=l}return i}function _E(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,s;i!=="root"&&(s=e.maximize().region);var l=ms[s||""]||ms[i||""]||ms["".concat(i,"-001")]||ms["001"];return l[0]}var gu,EE=new RegExp("^".concat(ry.source,"*")),bE=new RegExp("".concat(ry.source,"*$"));function be(e,n){return{start:e,end:n}}var SE=!!String.prototype.startsWith&&"_a".startsWith("a",1),wE=!!String.fromCodePoint,xE=!!Object.fromEntries,TE=!!String.prototype.codePointAt,CE=!!String.prototype.trimStart,kE=!!String.prototype.trimEnd,RE=!!Number.isSafeInteger,OE=RE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fc=!0;try{var NE=ay("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fc=((gu=NE.exec("a"))===null||gu===void 0?void 0:gu[0])==="a"}catch{fc=!1}var Fp=SE?function(n,i,s){return n.startsWith(i,s)}:function(n,i,s){return n.slice(s,s+i.length)===i},dc=wE?String.fromCodePoint:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s="",l=n.length,u=0,d;l>u;){if(d=n[u++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},Lp=xE?Object.fromEntries:function(n){for(var i={},s=0,l=n;s<l.length;s++){var u=l[s],d=u[0],h=u[1];i[d]=h}return i},sy=TE?function(n,i){return n.codePointAt(i)}:function(n,i){var s=n.length;if(!(i<0||i>=s)){var l=n.charCodeAt(i),u;return l<55296||l>56319||i+1===s||(u=n.charCodeAt(i+1))<56320||u>57343?l:(l-55296<<10)+(u-56320)+65536}},AE=CE?function(n){return n.trimStart()}:function(n){return n.replace(EE,"")},PE=kE?function(n){return n.trimEnd()}:function(n){return n.replace(bE,"")};function ay(e,n){return new RegExp(e,n)}var hc;if(fc){var Bp=ay("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hc=function(n,i){var s;Bp.lastIndex=i;var l=Bp.exec(n);return(s=l[1])!==null&&s!==void 0?s:""}}else hc=function(n,i){for(var s=[];;){var l=sy(n,i);if(l===void 0||ly(l)||FE(l))break;s.push(l),i+=l>=65536?2:1}return dc.apply(void 0,s)};var IE=function(){function e(n,i){i===void 0&&(i={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return 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(n,i,s){for(var l=[];!this.isEOF();){var u=this.char();if(u===123){var d=this.parseArgument(n,s);if(d.err)return d;l.push(d.val)}else{if(u===125&&n>0)break;if(u===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),l.push({type:Me.pound,location:be(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,be(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&pc(this.peek()||0)){var d=this.parseTag(n,i);if(d.err)return d;l.push(d.val)}else{var d=this.parseLiteral(n,i);if(d.err)return d;l.push(d.val)}}}return{val:l,err:null}},e.prototype.parseTag=function(n,i){var s=this.clonePosition();this.bump();var l=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(l,"/>"),location:be(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(n+1,i,!0);if(u.err)return u;var d=u.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!pc(this.char()))return this.error(_e.INVALID_TAG,be(h,this.clonePosition()));var p=this.clonePosition(),_=this.parseTagName();return l!==_?this.error(_e.UNMATCHED_CLOSING_TAG,be(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:d,location:be(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,be(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,be(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,be(s,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&ME(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,i){for(var s=this.clonePosition(),l="";;){var u=this.tryParseQuote(i);if(u){l+=u;continue}var d=this.tryParseUnquoted(n,i);if(d){l+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){l+=h;continue}break}var p=be(s,this.clonePosition());return{val:{type:Me.literal,value:l,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!DE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){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(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return dc.apply(void 0,i)},e.prototype.tryParseUnquoted=function(n,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&n>0?null:(this.bump(),dc(s))},e.prototype.parseArgument=function(n,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,be(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,be(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,be(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,be(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:be(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,be(s,this.clonePosition())):this.parseArgumentOptions(n,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,be(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),s=hc(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),d=be(n,u);return{value:s,location:d}},e.prototype.parseArgumentOptions=function(n,i,s,l){var u,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(_e.EXPECT_ARGUMENT_TYPE,be(d,p));case"number":case"date":case"time":{this.bumpSpace();var _=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),w=this.parseSimpleArgStyleIfPossible();if(w.err)return w;var m=PE(w.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,be(this.clonePosition(),this.clonePosition()));var E=be(y,this.clonePosition());_={style:m,styleLocation:E}}var v=this.tryParseArgumentClose(l);if(v.err)return v;var R=be(l,this.clonePosition());if(_&&Fp(_==null?void 0:_.style,"::",0)){var C=AE(_.style.slice(2));if(h==="number"){var w=this.parseNumberSkeletonFromString(C,_.styleLocation);return w.err?w:{val:{type:Me.number,value:s,location:R,style:w.val},err:null}}else{if(C.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,R);var O=C;this.locale&&(O=vE(C,this.locale));var m={type:Yn.dateTime,pattern:O,location:_.styleLocation,parsedOptions:this.shouldParseSkeletons?fE(O):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:R,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:R,style:(u=_==null?void 0:_.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,be(b,J({},b)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),x=0;if(h!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,be(this.clonePosition(),this.clonePosition()));this.bumpSpace();var w=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(w.err)return w;this.bumpSpace(),T=this.parseIdentifierIfPossible(),x=w.val}var L=this.tryParsePluralOrSelectOptions(n,h,i,T);if(L.err)return L;var v=this.tryParseArgumentClose(l);if(v.err)return v;var G=be(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Lp(L.val),location:G},err:null}:{val:{type:Me.plural,value:s,options:Lp(L.val),offset:x,pluralType:h==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,be(d,p))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,be(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var l=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,be(l,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,i){var s=[];try{s=hE(n)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Yn.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?yE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,s,l){for(var u,d=!1,h=[],p=new Set,_=l.value,y=l.location;;){if(_.length===0){var w=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;y=be(w,this.clonePosition()),_=this.message.slice(w.offset,this.offset())}else break}if(p.has(_))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);_==="other"&&(d=!0),this.bumpSpace();var E=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,be(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(n+1,i,s);if(v.err)return v;var R=this.tryParseArgumentClose(E);if(R.err)return R;h.push([_,{value:v.val,location:be(E,this.clonePosition())}]),p.add(_),this.bumpSpace(),u=this.parseIdentifierIfPossible(),_=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,be(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(_e.MISSING_OTHER_CLAUSE,be(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(n,i){var s=1,l=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var u=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)u=!0,d=d*10+(h-48),this.bump();else break}var p=be(l,this.clonePosition());return u?(d*=s,OE(d)?{val:d,err:null}:this.error(i,p)):this.error(n,p)},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 n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var i=sy(this.message,n);if(i===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(n,i){return{val:null,err:{kind:n,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(Fp(this.message,n,this.offset())){for(var i=0;i<n.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var i=this.offset(),s=this.message.indexOf(n,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var i=this.offset();if(i===n)break;if(i>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ly(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(n>=65536?2:1));return s??null},e}();function pc(e){return e>=97&&e<=122||e>=65&&e<=90}function DE(e){return pc(e)||e===47}function ME(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 ly(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function FE(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 mc(e){e.forEach(function(n){if(delete n.location,Zg(n)||Jg(n))for(var i in n.options)delete n.options[i].location,mc(n.options[i].value);else Qg(n)&&ty(n.style)||(Kg(n)||Yg(n))&&cc(n.style)?delete n.style.location:ey(n)&&mc(n.children)})}function LE(e,n){n===void 0&&(n={}),n=J({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new IE(e,n).parse();if(i.err){var s=SyntaxError(_e[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return n!=null&&n.captureLocation||mc(i.val),i.val}var cr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(cr||(cr={}));var Zr=function(e){jt(n,e);function n(i,s,l){var u=e.call(this,i)||this;return u.code=s,u.originalMessage=l,u}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),jp=function(e){jt(n,e);function n(i,s,l,u){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(l).join('", "'),'"'),cr.INVALID_VALUE,u)||this}return n}(Zr),BE=function(e){jt(n,e);function n(i,s,l){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),cr.INVALID_VALUE,l)||this}return n}(Zr),jE=function(e){jt(n,e);function n(i,s){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),cr.MISSING_VALUE,s)||this}return n}(Zr),dt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(dt||(dt={}));function zE(e){return e.length<2?e:e.reduce(function(n,i){var s=n[n.length-1];return!s||s.type!==dt.literal||i.type!==dt.literal?n.push(i):s.value+=i.value,n},[])}function uy(e){return typeof e=="function"}function zs(e,n,i,s,l,u,d){if(e.length===1&&Pp(e[0]))return[{type:dt.literal,value:e[0].value}];for(var h=[],p=0,_=e;p<_.length;p++){var y=_[p];if(Pp(y)){h.push({type:dt.literal,value:y.value});continue}if(uE(y)){typeof u=="number"&&h.push({type:dt.literal,value:i.getNumberFormat(n).format(u)});continue}var w=y.value;if(!(l&&w in l))throw new jE(w,d);var m=l[w];if(lE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?dt.literal:dt.object,value:m});continue}if(Kg(y)){var E=typeof y.style=="string"?s.date[y.style]:cc(y.style)?y.style.parsedOptions:void 0;h.push({type:dt.literal,value:i.getDateTimeFormat(n,E).format(m)});continue}if(Yg(y)){var E=typeof y.style=="string"?s.time[y.style]:cc(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:dt.literal,value:i.getDateTimeFormat(n,E).format(m)});continue}if(Qg(y)){var E=typeof y.style=="string"?s.number[y.style]:ty(y.style)?y.style.parsedOptions:void 0;E&&E.scale&&(m=m*(E.scale||1)),h.push({type:dt.literal,value:i.getNumberFormat(n,E).format(m)});continue}if(ey(y)){var v=y.children,R=y.value,C=l[R];if(!uy(C))throw new BE(R,"function",d);var O=zs(v,n,i,s,l,u),N=C(O.map(function(x){return x.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(x){return{type:typeof x=="string"?dt.literal:dt.object,value:x}}))}if(Zg(y)){var b=y.options[m]||y.options.other;if(!b)throw new jp(y.value,m,Object.keys(y.options),d);h.push.apply(h,zs(b.value,n,i,s,l));continue}if(Jg(y)){var b=y.options["=".concat(m)];if(!b){if(!Intl.PluralRules)throw new Zr(`Intl.PluralRules is not available in this environment.
53
- Try polyfilling it using "@formatjs/intl-pluralrules"
54
- `,cr.MISSING_INTL_API,d);var T=i.getPluralRules(n,{type:y.pluralType}).select(m-(y.offset||0));b=y.options[T]||y.options.other}if(!b)throw new jp(y.value,m,Object.keys(y.options),d);h.push.apply(h,zs(b.value,n,i,s,l,m-(y.offset||0)));continue}}return zE(h)}function UE(e,n){return n?J(J(J({},e||{}),n||{}),Object.keys(e).reduce(function(i,s){return i[s]=J(J({},e[s]),n[s]||{}),i},{})):e}function HE(e,n){return n?Object.keys(e).reduce(function(i,s){return i[s]=UE(e[s],n[s]),i},J({},e)):e}function yu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function GE(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:sr(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.NumberFormat).bind.apply(n,lr([void 0],i,!1)))},{cache:yu(e.number),strategy:ar.variadic}),getDateTimeFormat:sr(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.DateTimeFormat).bind.apply(n,lr([void 0],i,!1)))},{cache:yu(e.dateTime),strategy:ar.variadic}),getPluralRules:sr(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.PluralRules).bind.apply(n,lr([void 0],i,!1)))},{cache:yu(e.pluralRules),strategy:ar.variadic})}}var cy=function(){function e(n,i,s,l){i===void 0&&(i=e.defaultLocale);var u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var _=u.formatToParts(p);if(_.length===1)return _[0].value;var y=_.reduce(function(w,m){return!w.length||m.type!==dt.literal||typeof w[w.length-1]!="string"?w.push(m.value):w[w.length-1]+=m.value,w},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(p){return zs(u.ast,u.locales,u.formatters,u.formats,p,void 0,u.message)},this.resolvedOptions=function(){var p;return{locale:((p=u.resolvedLocale)===null||p===void 0?void 0:p.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=l||{};d.formatters;var h=ta(d,["formatters"]);this.ast=e.__parse(n,J(J({},h),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=HE(e.formats,s),this.formatters=l&&l.formatters||GE(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(n){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(n);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=LE,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}(),En;(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"})(En||(En={}));var to=function(e){jt(n,e);function n(i,s,l){var u=this,d=l?l instanceof Error?l:new Error(String(l)):void 0;return u=e.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
55
- `).concat(d?`
56
- `.concat(d.message,`
57
- `).concat(d.stack):""))||this,u.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,n),u}return n}(Error),$E=function(e){jt(n,e);function n(i,s){return e.call(this,En.UNSUPPORTED_FORMATTER,i,s)||this}return n}(to),qE=function(e){jt(n,e);function n(i,s){return e.call(this,En.INVALID_CONFIG,i,s)||this}return n}(to),zp=function(e){jt(n,e);function n(i,s){return e.call(this,En.MISSING_DATA,i,s)||this}return n}(to),zt=function(e){jt(n,e);function n(i,s,l){var u=e.call(this,En.FORMAT_ERROR,"".concat(i,`
58
- Locale: `).concat(s,`
59
- `),l)||this;return u.locale=s,u}return n}(to),vu=function(e){jt(n,e);function n(i,s,l,u){var d=e.call(this,"".concat(i,`
60
- MessageID: `).concat(l==null?void 0:l.id,`
61
- Default Message: `).concat(l==null?void 0:l.defaultMessage,`
62
- Description: `).concat(l==null?void 0:l.description,`
63
- `),s,u)||this;return d.descriptor=l,d.locale=s,d}return n}(zt),VE=function(e){jt(n,e);function n(i,s){var l=e.call(this,En.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(u){var d;return(d=u.value)!==null&&d!==void 0?d:JSON.stringify(u)}).join(),")"):"id"," as fallback."))||this;return l.descriptor=i,l}return n}(to);function WE(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function ei(e,n,i){return i===void 0&&(i={}),n.reduce(function(s,l){return l in e?s[l]=e[l]:l in i&&(s[l]=i[l]),s},{})}var XE=function(e){},QE=function(e){},fy={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:XE,onWarn:QE};function dy(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function hn(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function KE(e){e===void 0&&(e=dy());var n=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,l=sr(function(){for(var h,p=[],_=0;_<arguments.length;_++)p[_]=arguments[_];return new((h=Intl.DateTimeFormat).bind.apply(h,lr([void 0],p,!1)))},{cache:hn(e.dateTime),strategy:ar.variadic}),u=sr(function(){for(var h,p=[],_=0;_<arguments.length;_++)p[_]=arguments[_];return new((h=Intl.NumberFormat).bind.apply(h,lr([void 0],p,!1)))},{cache:hn(e.number),strategy:ar.variadic}),d=sr(function(){for(var h,p=[],_=0;_<arguments.length;_++)p[_]=arguments[_];return new((h=Intl.PluralRules).bind.apply(h,lr([void 0],p,!1)))},{cache:hn(e.pluralRules),strategy:ar.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:sr(function(h,p,_,y){return new cy(h,p,_,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:d}},y||{}))},{cache:hn(e.message),strategy:ar.variadic}),getRelativeTimeFormat:sr(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(n.bind.apply(n,lr([void 0],h,!1)))},{cache:hn(e.relativeTime),strategy:ar.variadic}),getPluralRules:d,getListFormat:sr(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(i.bind.apply(i,lr([void 0],h,!1)))},{cache:hn(e.list),strategy:ar.variadic}),getDisplayNames:sr(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,lr([void 0],h,!1)))},{cache:hn(e.displayNames),strategy:ar.variadic})}}function Hc(e,n,i,s){var l=e&&e[n],u;if(l&&(u=l[i]),u)return u;s(new $E("No ".concat(n," format named: ").concat(i)))}function gs(e,n){return Object.keys(e).reduce(function(i,s){return i[s]=J({timeZone:n},e[s]),i},{})}function Up(e,n){var i=Object.keys(J(J({},e),n));return i.reduce(function(s,l){return s[l]=J(J({},e[l]||{}),n[l]||{}),s},{})}function Hp(e,n){if(!n)return e;var i=cy.formats;return J(J(J({},i),e),{date:Up(gs(i.date,n),gs(e.date||{},n)),time:Up(gs(i.time,n),gs(e.time||{},n))})}var gc=function(e,n,i,s,l){var u=e.locale,d=e.formats,h=e.messages,p=e.defaultLocale,_=e.defaultFormats,y=e.fallbackOnEmptyString,w=e.onError,m=e.timeZone,E=e.defaultRichTextElements;i===void 0&&(i={id:""});var v=i.id,R=i.defaultMessage;WE(!!v,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var C=String(v),O=h&&Object.prototype.hasOwnProperty.call(h,C)&&h[C];if(Array.isArray(O)&&O.length===1&&O[0].type===Me.literal)return O[0].value;if(!s&&O&&typeof O=="string"&&!E)return O.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=J(J({},E),s||{}),d=Hp(d,m),_=Hp(_,m),!O){if(y===!1&&O==="")return O;if((!R||u&&u.toLowerCase()!==p.toLowerCase())&&w(new VE(i,u)),R)try{var N=n.getMessageFormat(R,p,_,l);return N.format(s)}catch(b){return w(new vu('Error formatting default message for: "'.concat(C,'", rendering default message verbatim'),u,i,b)),typeof R=="string"?R:C}return C}try{var N=n.getMessageFormat(O,u,d,J({formatters:n},l||{}));return N.format(s)}catch(b){w(new vu('Error formatting message: "'.concat(C,'", using ').concat(R?"default message":"id"," as fallback."),u,i,b))}if(R)try{var N=n.getMessageFormat(R,p,_,l);return N.format(s)}catch(b){w(new vu('Error formatting the default message for: "'.concat(C,'", rendering message verbatim'),u,i,b))}return typeof O=="string"?O:typeof R=="string"?R:C},YE=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ro(e,n,i,s){var l=e.locale,u=e.formats,d=e.onError,h=e.timeZone;s===void 0&&(s={});var p=s.format,_=J(J({},h&&{timeZone:h}),p&&Hc(u,n,p,d)),y=ei(s,YE,_);return n==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=J(J({},y),{hour:"numeric",minute:"numeric"})),i(l,y)}function ZE(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ro(e,"date",n,d).format(h)}catch(p){e.onError(new zt("Error formatting date.",e.locale,p))}return String(h)}function JE(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ro(e,"time",n,d).format(h)}catch(p){e.onError(new zt("Error formatting time.",e.locale,p))}return String(h)}function eb(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=i[2],h=d===void 0?{}:d,p=typeof l=="string"?new Date(l||0):l,_=typeof u=="string"?new Date(u||0):u;try{return ro(e,"dateTimeRange",n,h).formatRange(p,_)}catch(y){e.onError(new zt("Error formatting date time range.",e.locale,y))}return String(p)}function tb(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ro(e,"date",n,d).formatToParts(h)}catch(p){e.onError(new zt("Error formatting date.",e.locale,p))}return[]}function rb(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ro(e,"time",n,d).formatToParts(h)}catch(p){e.onError(new zt("Error formatting time.",e.locale,p))}return[]}var nb=["style","type","fallback","languageDisplay"];function ib(e,n,i,s){var l=e.locale,u=e.onError,d=Intl.DisplayNames;d||u(new Zr(`Intl.DisplayNames is not available in this environment.
64
- Try polyfilling it using "@formatjs/intl-displaynames"
65
- `,cr.MISSING_INTL_API));var h=ei(s,nb);try{return n(l,h).of(i)}catch(p){u(new zt("Error formatting display name.",l,p))}}var ob=["type","style"],Gp=Date.now();function sb(e){return"".concat(Gp,"_").concat(e,"_").concat(Gp)}function ab(e,n,i,s){s===void 0&&(s={});var l=hy(e,n,i,s).reduce(function(u,d){var h=d.value;return typeof h!="string"?u.push(h):typeof u[u.length-1]=="string"?u[u.length-1]+=h:u.push(h),u},[]);return l.length===1?l[0]:l.length===0?"":l}function hy(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||u(new Zr(`Intl.ListFormat is not available in this environment.
66
- Try polyfilling it using "@formatjs/intl-listformat"
67
- `,cr.MISSING_INTL_API));var h=ei(s,ob);try{var p={},_=i.map(function(y,w){if(typeof y=="object"){var m=sb(w);return p[m]=y,m}return String(y)});return n(l,h).formatToParts(_).map(function(y){return y.type==="literal"?y:J(J({},y),{value:p[y.value]||y.value})})}catch(y){u(new zt("Error formatting list.",l,y))}return i}var lb=["type"];function ub(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={}),Intl.PluralRules||u(new Zr(`Intl.PluralRules is not available in this environment.
68
- Try polyfilling it using "@formatjs/intl-pluralrules"
69
- `,cr.MISSING_INTL_API));var d=ei(s,lb);try{return n(l,d).select(i)}catch(h){u(new zt("Error formatting plural.",l,h))}return"other"}var cb=["numeric","style"];function fb(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Hc(l,"relative",d,u)||{},p=ei(i,cb,h);return n(s,p)}function db(e,n,i,s,l){l===void 0&&(l={}),s||(s="second");var u=Intl.RelativeTimeFormat;u||e.onError(new Zr(`Intl.RelativeTimeFormat is not available in this environment.
70
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
71
- `,cr.MISSING_INTL_API));try{return fb(e,n,l).format(i,s)}catch(d){e.onError(new zt("Error formatting relative time.",e.locale,d))}return String(i)}var hb=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function py(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=d&&Hc(l,"number",d,u)||{},p=ei(i,hb,h);return n(s,p)}function pb(e,n,i,s){s===void 0&&(s={});try{return py(e,n,s).format(i)}catch(l){e.onError(new zt("Error formatting number.",e.locale,l))}return String(i)}function mb(e,n,i,s){s===void 0&&(s={});try{return py(e,n,s).formatToParts(i)}catch(l){e.onError(new zt("Error formatting number.",e.locale,l))}return[]}function gb(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function yb(e){e.onWarn&&e.defaultRichTextElements&&gb(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
72
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
73
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function vb(e,n){var i=KE(n),s=J(J({},fy),e),l=s.locale,u=s.defaultLocale,d=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&d?d(new zp('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&d&&d(new zp('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new qE('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),yb(s),J(J({},s),{formatters:i,formatNumber:pb.bind(null,s,i.getNumberFormat),formatNumberToParts:mb.bind(null,s,i.getNumberFormat),formatRelativeTime:db.bind(null,s,i.getRelativeTimeFormat),formatDate:ZE.bind(null,s,i.getDateTimeFormat),formatDateToParts:tb.bind(null,s,i.getDateTimeFormat),formatTime:JE.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:eb.bind(null,s,i.getDateTimeFormat),formatTimeToParts:rb.bind(null,s,i.getDateTimeFormat),formatPlural:ub.bind(null,s,i.getPluralRules),formatMessage:gc.bind(null,s,i),$t:gc.bind(null,s,i),formatList:ab.bind(null,s,i.getListFormat),formatListToParts:hy.bind(null,s,i.getListFormat),formatDisplayName:ib.bind(null,s,i.getDisplayNames)})}function _b(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function my(e){_b(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var gy=J(J({},fy),{textComponent:U.Fragment});function Eb(e){return function(n){return e(U.Children.toArray(n))}}function bb(e,n){if(e===n)return!0;if(!e||!n)return!1;var i=Object.keys(e),s=Object.keys(n),l=i.length;if(s.length!==l)return!1;for(var u=0;u<l;u++){var d=i[u];if(e[d]!==n[d]||!Object.prototype.hasOwnProperty.call(n,d))return!1}return!0}var _u={exports:{}},Ce={};/** @license React v16.13.1
74
- * react-is.production.min.js
75
- *
76
- * Copyright (c) Facebook, Inc. and its affiliates.
77
- *
78
- * This source code is licensed under the MIT license found in the
79
- * LICENSE file in the root directory of this source tree.
80
- */var $p;function Sb(){if($p)return Ce;$p=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,_=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function b(x){if(typeof x=="object"&&x!==null){var L=x.$$typeof;switch(L){case n:switch(x=x.type,x){case p:case _:case s:case u:case l:case w:return x;default:switch(x=x&&x.$$typeof,x){case h:case y:case v:case E:case d:return x;default:return L}}case i:return L}}}function T(x){return b(x)===_}return Ce.AsyncMode=p,Ce.ConcurrentMode=_,Ce.ContextConsumer=h,Ce.ContextProvider=d,Ce.Element=n,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=v,Ce.Memo=E,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=w,Ce.isAsyncMode=function(x){return T(x)||b(x)===p},Ce.isConcurrentMode=T,Ce.isContextConsumer=function(x){return b(x)===h},Ce.isContextProvider=function(x){return b(x)===d},Ce.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===n},Ce.isForwardRef=function(x){return b(x)===y},Ce.isFragment=function(x){return b(x)===s},Ce.isLazy=function(x){return b(x)===v},Ce.isMemo=function(x){return b(x)===E},Ce.isPortal=function(x){return b(x)===i},Ce.isProfiler=function(x){return b(x)===u},Ce.isStrictMode=function(x){return b(x)===l},Ce.isSuspense=function(x){return b(x)===w},Ce.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===s||x===_||x===u||x===l||x===w||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===E||x.$$typeof===d||x.$$typeof===h||x.$$typeof===y||x.$$typeof===C||x.$$typeof===O||x.$$typeof===N||x.$$typeof===R)},Ce.typeOf=b,Ce}var qp;function wb(){return qp||(qp=1,_u.exports=Sb()),_u.exports}var Eu,Vp;function xb(){if(Vp)return Eu;Vp=1;var e=wb(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=s,u[e.Memo]=l;function d(v){return e.isMemo(v)?l:u[v.$$typeof]||n}var h=Object.defineProperty,p=Object.getOwnPropertyNames,_=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,m=Object.prototype;function E(v,R,C){if(typeof R!="string"){if(m){var O=w(R);O&&O!==m&&E(v,O,C)}var N=p(R);_&&(N=N.concat(_(R)));for(var b=d(v),T=d(R),x=0;x<N.length;++x){var L=N[x];if(!i[L]&&!(C&&C[L])&&!(T&&T[L])&&!(b&&b[L])){var G=y(R,L);try{h(v,L,G)}catch{}}}}return v}return Eu=E,Eu}xb();var Gc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=U.createContext(null)):U.createContext(null);Gc.Consumer;var Tb=Gc.Provider,Cb=Tb,kb=Gc;function ra(){var e=U.useContext(kb);return my(e),e}var yc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(yc||(yc={}));var vc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(vc||(vc={}));function yy(e){var n=function(i){var s=ra(),l=i.value,u=i.children,d=ta(i,["value","children"]),h=typeof l=="string"?new Date(l||0):l,p=e==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return u(p)};return n.displayName=vc[e],n}function no(e){var n=function(i){var s=ra(),l=i.value,u=i.children,d=ta(i,["value","children"]),h=s[e](l,d);if(typeof u=="function")return u(h);var p=s.textComponent||U.Fragment;return U.createElement(p,null,h)};return n.displayName=yc[e],n}function vy(e){return e&&Object.keys(e).reduce(function(n,i){var s=e[i];return n[i]=uy(s)?Eb(s):s,n},{})}var Wp=function(e,n,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var d=vy(s),h=gc.apply(void 0,lr([e,n,i,d],l,!1));return Array.isArray(h)?U.Children.toArray(h):h},Xp=function(e,n){var i=e.defaultRichTextElements,s=ta(e,["defaultRichTextElements"]),l=vy(i),u=vb(J(J(J({},gy),s),{defaultRichTextElements:l}),n),d={locale:u.locale,timeZone:u.timeZone,fallbackOnEmptyString:u.fallbackOnEmptyString,formats:u.formats,defaultLocale:u.defaultLocale,defaultFormats:u.defaultFormats,messages:u.messages,onError:u.onError,defaultRichTextElements:l};return J(J({},u),{formatMessage:Wp.bind(null,d,u.formatters),$t:Wp.bind(null,d,u.formatters)})};function bu(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}}var Rb=function(e){jt(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=dy(),i.state={cache:i.cache,intl:Xp(bu(i.props),i.cache),prevConfig:bu(i.props)},i}return n.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,d=bu(i);return bb(l,d)?null:{intl:Xp(d,u),prevConfig:d}},n.prototype.render=function(){return my(this.state.intl),U.createElement(Cb,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=gy,n}(U.PureComponent);no("formatDate");no("formatTime");no("formatNumber");no("formatList");no("formatDisplayName");yy("formatDate");yy("formatTime");const Ob="_app_wkun7_5",Nb={app:Ob},_y=()=>Ab(window.location.pathname),Ab=e=>{const n=e.split("/"),i=e.endsWith("/");return n[n.length-(i?2:1)]},$c=Y1,_n=eE;var Su={exports:{}};/*!
81
- Copyright (c) 2018 Jed Watson.
82
- Licensed under the MIT License (MIT), see
83
- http://jedwatson.github.io/classnames
84
- */var Qp;function Pb(){return Qp||(Qp=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var u="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(u=l(u,s(h)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return i.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var d="";for(var h in u)n.call(u,h)&&u[h]&&(d=l(d,h));return d}function l(u,d){return d?u?u+" "+d:u+d:u}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(Su)),Su.exports}var Ib=Pb();const q=ea(Ib),Ey="%[a-f0-9]{2}",Kp=new RegExp("("+Ey+")|([^%]+?)","gi"),Yp=new RegExp("("+Ey+")+","gi");function _c(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;const i=e.slice(0,n),s=e.slice(n);return Array.prototype.concat.call([],_c(i),_c(s))}function Db(e){try{return decodeURIComponent(e)}catch{let n=e.match(Kp)||[];for(let i=1;i<n.length;i++)e=_c(n,i).join(""),n=e.match(Kp)||[];return e}}function Mb(e){const n={"%FE%FF":"��","%FF%FE":"��"};let i=Yp.exec(e);for(;i;){try{n[i[0]]=decodeURIComponent(i[0])}catch{const l=Db(i[0]);l!==i[0]&&(n[i[0]]=l)}i=Yp.exec(e)}n["%C2"]="�";const s=Object.keys(n);for(const l of s)e=e.replace(new RegExp(l,"g"),n[l]);return e}function Fb(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Mb(e)}}function Lb(e,n){const i={};if(Array.isArray(n))for(const s of n){const l=Object.getOwnPropertyDescriptor(e,s);l!=null&&l.enumerable&&Object.defineProperty(i,s,l)}else for(const s of Reflect.ownKeys(e)){const l=Object.getOwnPropertyDescriptor(e,s);if(l.enumerable){const u=e[s];n(s,u,e)&&Object.defineProperty(i,s,l)}}return i}function by(e,n){if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||n==="")return[];const i=e.indexOf(n);return i===-1?[]:[e.slice(0,i),e.slice(i+n.length)]}const Bb=e=>e==null,jb=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Ec=Symbol("encodeFragmentIdentifier");function zb(e){switch(e.arrayFormat){case"index":return n=>(i,s)=>{const l=i.length;return s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[",l,"]"].join("")]:[...i,[Ve(n,e),"[",Ve(l,e),"]=",Ve(s,e)].join("")]};case"bracket":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[]"].join("")]:[...i,[Ve(n,e),"[]=",Ve(s,e)].join("")];case"colon-list-separator":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),":list="].join("")]:[...i,[Ve(n,e),":list=",Ve(s,e)].join("")];case"comma":case"separator":case"bracket-separator":{const n=e.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?s:(l=l===null?"":l,s.length===0?[[Ve(i,e),n,Ve(l,e)].join("")]:[[s,Ve(l,e)].join(e.arrayFormatSeparator)])}default:return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,Ve(n,e)]:[...i,[Ve(n,e),"=",Ve(s,e)].join("")]}}function Ub(e){let n;switch(e.arrayFormat){case"index":return(i,s,l)=>{if(n=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!n){l[i]=s;return}l[i]===void 0&&(l[i]={}),l[i][n[1]]=s};case"bracket":return(i,s,l)=>{if(n=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"colon-list-separator":return(i,s,l)=>{if(n=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"comma":case"separator":return(i,s,l)=>{const u=typeof s=="string"&&s.includes(e.arrayFormatSeparator),d=typeof s=="string"&&!u&&Sr(s,e).includes(e.arrayFormatSeparator);s=d?Sr(s,e):s;const h=u||d?s.split(e.arrayFormatSeparator).map(p=>Sr(p,e)):s===null?s:Sr(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&Sr(s,e);return}const d=s===null?[]:Sr(s,e).split(e.arrayFormatSeparator);if(l[i]===void 0){l[i]=d;return}l[i]=[...l[i],...d]};default:return(i,s,l)=>{if(l[i]===void 0){l[i]=s;return}l[i]=[...[l[i]].flat(),s]}}}function Sy(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ve(e,n){return n.encode?n.strict?jb(e):encodeURIComponent(e):e}function Sr(e,n){return n.decode?Fb(e):e}function wy(e){return Array.isArray(e)?e.sort():typeof e=="object"?wy(Object.keys(e)).sort((n,i)=>Number(n)-Number(i)).map(n=>e[n]):e}function xy(e){const n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function Hb(e){let n="";const i=e.indexOf("#");return i!==-1&&(n=e.slice(i)),n}function Zp(e,n,i){return i==="string"&&typeof e=="string"?e:typeof i=="function"&&typeof e=="string"?i(e):n.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":i==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||n.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function qc(e){e=xy(e);const n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function Vc(e,n){n={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...n},Sy(n.arrayFormatSeparator);const i=Ub(n),s=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return s;for(const l of e.split("&")){if(l==="")continue;const u=n.decode?l.replaceAll("+"," "):l;let[d,h]=by(u,"=");d===void 0&&(d=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:Sr(h,n),i(Sr(d,n),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&n.types[l]!=="string")for(const[d,h]of Object.entries(u)){const p=n.types[l]?n.types[l].replace("[]",""):void 0;u[d]=Zp(h,n,p)}else typeof u=="object"&&u!==null&&n.types[l]==="string"?s[l]=Object.values(u).join(n.arrayFormatSeparator):s[l]=Zp(u,n,n.types[l]);return n.sort===!1?s:(n.sort===!0?Object.keys(s).sort():Object.keys(s).sort(n.sort)).reduce((l,u)=>{const d=s[u];return l[u]=d&&typeof d=="object"&&!Array.isArray(d)?wy(d):d,l},Object.create(null))}function Ty(e,n){if(!e)return"";n={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...n},Sy(n.arrayFormatSeparator);const i=d=>n.skipNull&&Bb(e[d])||n.skipEmptyString&&e[d]==="",s=zb(n),l={};for(const[d,h]of Object.entries(e))i(d)||(l[d]=h);const u=Object.keys(l);return n.sort!==!1&&u.sort(n.sort),u.map(d=>{const h=e[d];return h===void 0?"":h===null?Ve(d,n):Array.isArray(h)?h.length===0&&n.arrayFormat==="bracket-separator"?Ve(d,n)+"[]":h.reduce(s(d),[]).join("&"):Ve(d,n)+"="+Ve(h,n)}).filter(d=>d.length>0).join("&")}function Cy(e,n){var l;n={decode:!0,...n};let[i,s]=by(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:Vc(qc(e),n),...n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:Sr(s,n)}:{}}}function ky(e,n){n={encode:!0,strict:!0,[Ec]:!0,...n};const i=xy(e.url).split("?")[0]||"",s=qc(e.url),l={...Vc(s,{sort:!1}),...e.query};let u=Ty(l,n);u&&(u=`?${u}`);let d=Hb(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,d=n[Ec]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${d}`}function Ry(e,n,i){i={parseFragmentIdentifier:!0,[Ec]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=Cy(e,i);return ky({url:s,query:Lb(l,n),fragmentIdentifier:u},i)}function Gb(e,n,i){const s=Array.isArray(n)?l=>!n.includes(l):(l,u)=>!n(l,u);return Ry(e,s,i)}const Wc=Object.freeze(Object.defineProperty({__proto__:null,exclude:Gb,extract:qc,parse:Vc,parseUrl:Cy,pick:Ry,stringify:Ty,stringifyUrl:ky},Symbol.toStringTag,{value:"Module"}));var Qt={},Ct={},ae={},Jp;function At(){return Jp||(Jp=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.GUEST_LOCALE_CHANGED=ae.DRAWER_CLOSE=ae.DRAWER_OPEN=ae.CONVERSATION_RATING_FROM_GUEST=ae.TRANSCRIPT_ITEM_GUEST_REACTION=ae.TRANSCRIPT_MAIL_REQUEST=ae.INBOX_CONNECT_REQUEST=ae.RESTART_CHAT_REQUEST=ae.EVENT_TO_GUEST=ae.NLU_REQUEST_EVENT=ae.EXPERTS_DISCONNECTED=ae.EXPERTS_DISCONNECT_REQUEST=ae.EXPERTS_CONNECTED=ae.EXPERTS_CONNECT_REQUEST=ae.MESSAGE_TO_GUEST=ae.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=ae.MESSAGE_FROM_GUEST=ae.GUEST_FEEDBACK_RESPONSE=ae.GUEST_DISCONNECTED=ae.GUEST_CONNECTED=ae.TYPING_OFF=ae.TYPING_ON=void 0,ae.TYPING_ON="core.typing.on",ae.TYPING_OFF="core.typing.off",ae.GUEST_CONNECTED="core.guest.connected",ae.GUEST_DISCONNECTED="core.guest.disconnected",ae.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",ae.MESSAGE_FROM_GUEST="core.message.from.guest",ae.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",ae.MESSAGE_TO_GUEST="core.message.to.guest",ae.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",ae.EXPERTS_CONNECTED="core.experts.connected",ae.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",ae.EXPERTS_DISCONNECTED="core.experts.disconnected",ae.NLU_REQUEST_EVENT="core.nlu.request.event",ae.EVENT_TO_GUEST="core.event.to.guest",ae.RESTART_CHAT_REQUEST="core.chat.restart.request",ae.INBOX_CONNECT_REQUEST="core.inbox.connect.request",ae.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",ae.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",ae.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",ae.DRAWER_OPEN="core.drawer.open",ae.DRAWER_CLOSE="core.drawer.close",ae.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),ae}var wu={},em;function $b(){return em||(em=1,Object.defineProperty(wu,"__esModule",{value:!0})),wu}var ys={},tm;function qb(){if(tm)return ys;tm=1,Object.defineProperty(ys,"__esModule",{value:!0});const e=At(),n=()=>({type:e.DRAWER_CLOSE});return ys.default=n,ys}var vs={},rm;function Vb(){if(rm)return vs;rm=1,Object.defineProperty(vs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return vs.default=n,vs}var _s={},nm;function Wb(){if(nm)return _s;nm=1,Object.defineProperty(_s,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return _s.default=n,_s}var Es={},im;function Xb(){if(im)return Es;im=1,Object.defineProperty(Es,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return Es.default=n,Es}var bs={},om;function Qb(){if(om)return bs;om=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return bs.default=n,bs}var Ss={},sm;function Kb(){if(sm)return Ss;sm=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=At(),n=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Ss.default=n,Ss}var ws={},je={},am;function Xc(){if(am)return je;am=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getStringRepresentationFromMessage=je.MessageTypeEnum=je.AudioMessage=je.FileMessage=je.ImageMessage=je.VideoMessage=je.MarkdownMessage=je.DetailMessage=je.TextMessage=je.Message=void 0;class e{constructor(w,m){we(this,"type");we(this,"sender");we(this,"quickReplies");this.type=w,this.sender=m,this.quickReplies=[]}addQuickReply(w,m){this.quickReplies.push({label:w,payload:m})}}je.Message=e;class n extends e{constructor(m,E){super(p.TEXT,E);we(this,"text");this.text=m}}je.TextMessage=n;class i extends e{constructor(m,E){super(p.DETAIL,E);we(this,"title");we(this,"subtitle");we(this,"text");we(this,"imageUrl");we(this,"itemUrl");we(this,"buttons");this.title=m,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(m){this.imageUrl=m}setItemUrl(m){this.itemUrl=m}setSubtitle(m){this.subtitle=m}setText(m){this.text=m}addButton(m){this.buttons.push(m)}}je.DetailMessage=i;class s extends e{constructor(m,E,v){super(p.MARKDOWN,v);we(this,"markdown");we(this,"excerpt");we(this,"className");this.markdown=m,this.excerpt=E,this.className=""}setClassName(m){this.className=m}}je.MarkdownMessage=s;class l extends e{constructor(m,E){super(p.VIDEO,E);we(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,E){super(p.IMAGE,E);we(this,"url");this.url=m}}je.ImageMessage=u;class d extends e{constructor(m,E){super(p.FILE,E);we(this,"url");this.url=m}}je.FileMessage=d;class h extends e{constructor(m,E){super(p.AUDIO,E);we(this,"url");this.url=m}}je.AudioMessage=h;var p;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(p||(je.MessageTypeEnum=p={}));const _=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:{const w=y;return`${w.title} // ${w.subtitle}`}case p.MARKDOWN:return y.excerpt;case p.VIDEO:return`Video Url: ${y.url}`;case p.IMAGE:return`Image Url: ${y.url}`;case p.FILE:return`File Url: ${y.url}`;case p.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return je.getStringRepresentationFromMessage=_,je}var kt={},lm;function Qc(){if(lm)return kt;lm=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(d,h,p,_){we(this,"type");we(this,"id");we(this,"name");we(this,"avatar");this.type=d,this.id=h,this.name=p,this.avatar=_}}kt.User=e;class n extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=n;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=i;class s extends e{constructor(d,h,p){super(l.PERSON,d,h,p)}}kt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(kt.UserType=l={})),kt}var um;function Yb(){if(um)return ws;um=1,Object.defineProperty(ws,"__esModule",{value:!0});const e=Xc(),n=Qc(),i=At(),s=l=>{const u=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return ws.default=s,ws}var xs={},cm;function Zb(){if(cm)return xs;cm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=Xc(),n=Qc(),i=At(),s=(l,u={})=>{const d=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:u}};return xs.default=s,xs}var Ts={},fm;function Jb(){if(fm)return Ts;fm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),n=i=>({type:e.NLU_REQUEST_EVENT,event:i});return Ts.default=n,Ts}var Cs={},dm;function eS(){if(dm)return Cs;dm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),n=()=>({type:e.RESTART_CHAT_REQUEST});return Cs.default=n,Cs}var ks={},hm;function tS(){if(hm)return ks;hm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=At(),n=i=>({type:e.MESSAGE_TO_GUEST,message:i});return ks.default=n,ks}var Rs={},pm;function rS(){if(pm)return Rs;pm=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Rs.default=n,Rs}var mm;function gm(){return mm||(mm=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(N,b,T,x){x===void 0&&(x=T);var L=Object.getOwnPropertyDescriptor(b,T);(!L||("get"in L?!b.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return b[T]}}),Object.defineProperty(N,x,L)}:function(N,b,T,x){x===void 0&&(x=T),N[x]=b[T]}),i=Ct&&Ct.__setModuleDefault||(Object.create?function(N,b){Object.defineProperty(N,"default",{enumerable:!0,value:b})}:function(N,b){N.default=b}),s=Ct&&Ct.__importStar||function(){var N=function(b){return N=Object.getOwnPropertyNames||function(T){var x=[];for(var L in T)Object.prototype.hasOwnProperty.call(T,L)&&(x[x.length]=L);return x},N(b)};return function(b){if(b&&b.__esModule)return b;var T={};if(b!=null)for(var x=N(b),L=0;L<x.length;L++)x[L]!=="default"&&n(T,b,x[L]);return i(T,b),T}}(),l=Ct&&Ct.__exportStar||function(N,b){for(var T in N)T!=="default"&&!Object.prototype.hasOwnProperty.call(b,T)&&n(b,N,T)},u=Ct&&Ct.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(e,"__esModule",{value:!0}),e.transcriptItemGuestReaction=e.sendMessageToGuest=e.restartChatRequest=e.requestNLUEvent=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.openDrawer=e.guestLocaleChanged=e.guestDisconnected=e.guestConnected=e.feedbackFromGuestResponse=e.closeDrawer=e.ActionTypes=void 0,e.ActionTypes=s(At()),l($b(),e);const d=u(qb());e.closeDrawer=d.default;const h=u(Vb());e.feedbackFromGuestResponse=h.default;const p=u(Wb());e.guestConnected=p.default;const _=u(Xb());e.guestDisconnected=_.default;const y=u(Qb());e.guestLocaleChanged=y.default;const w=u(Kb());e.openDrawer=w.default;const m=u(Yb());e.receiveTextMessageFromGuest=m.default;const E=u(Zb());e.receiveTextMessageWithoutAnalysisFromGuest=E.default;const v=u(Jb());e.requestNLUEvent=v.default;const R=u(eS());e.restartChatRequest=R.default;const C=u(tS());e.sendMessageToGuest=C.default;const O=u(rS());e.transcriptItemGuestReaction=O.default}(Ct)),Ct}var Rt={},xu={},ym;function nS(){return ym||(ym=1,Object.defineProperty(xu,"__esModule",{value:!0})),xu}var Gi={},vm;function iS(){if(vm)return Gi;vm=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.NullableKnowledgeBaseAdapter=void 0;class e{async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}}return Gi.NullableKnowledgeBaseAdapter=e,Gi}var _m;function oS(){if(_m)return Rt;_m=1;var e=Rt&&Rt.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,p)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),n=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(d){var h=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(d,u,h[p]);return n(d,u),d}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=i(nS());const s=iS();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pn={},Tu={},Em;function sS(){return Em||(Em=1,Object.defineProperty(Tu,"__esModule",{value:!0})),Tu}var Kt={},bm;function aS(){if(bm)return Kt;bm=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.ButtonTypeEnum=Kt.PostbackButton=Kt.UrlButton=Kt.Button=void 0;class e{constructor(u,d){we(this,"title");we(this,"type");this.title=u,this.type=d}}Kt.Button=e;class n extends e{constructor(d,h){super(d,s.WEB_URL);we(this,"url");this.url=h}}Kt.UrlButton=n;class i extends e{constructor(d,h){super(d,s.POSTBACK);we(this,"payload");this.payload=h}}Kt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Kt.ButtonTypeEnum=s={})),Kt}var Cu={},Sm;function lS(){return Sm||(Sm=1,Object.defineProperty(Cu,"__esModule",{value:!0})),Cu}var $i={},wm;function uS(){if(wm)return $i;wm=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.SatisfactionEnum=void 0;var e;return function(n){n.GOOD="GOOD",n.BAD="BAD"}(e||($i.SatisfactionEnum=e={})),$i}var xm;function Tm(){return xm||(xm=1,function(e){var n=pn&&pn.__createBinding||(Object.create?function(s,l,u,d){d===void 0&&(d=u);var h=Object.getOwnPropertyDescriptor(l,u);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,d,h)}:function(s,l,u,d){d===void 0&&(d=u),s[d]=l[u]}),i=pn&&pn.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),i(sS(),e),i(aS(),e),i(lS(),e),i(uS(),e),i(Xc(),e),i(Qc(),e)}(pn)),pn}var Cm;function cS(){return Cm||(Cm=1,function(e){var n=Qt&&Qt.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var _=Object.getOwnPropertyDescriptor(d,h);(!_||("get"in _?!d.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,_)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),i=Qt&&Qt.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),s=Qt&&Qt.__exportStar||function(u,d){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&n(d,u,h)},l=Qt&&Qt.__importStar||function(){var u=function(d){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(p[p.length]=_);return p},u(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p=u(d),_=0;_<p.length;_++)p[_]!=="default"&&n(h,d,p[_]);return i(h,d),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(gm(),e),e.Actions=l(gm()),e.CMS=l(oS()),s(Tm(),e),e.Model=l(Tm())}(Qt)),Qt}var ge=cS();const Oy=e=>n=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&n(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),n(e.payload)),Ny=e=>(n,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return n(l?Oy({...l,label:e}):ge.receiveTextMessageFromGuest(e))},na="MESSAGE_TO_PARENT_PAGE",Kc="RESTORE_PREVIOUS_CHAT_MESSAGES",Yc="AUDIO_MESSAGE_FROM_USER",Zc="ENABLE_SPEECH_SUPPORT",Jc="ENABLE_TRANSCRIPT_EXPORT",fS="EXPORT_TRANSCRIPT",ef="RECEIVE_SPEECH_TRANSCRIPTION",tf="SHOW_GENERAL_CONDITIONS",rf="ENABLE_CONVERSATION_RATING",dS="webclient.get.started",Ay="webclient.expand.window",Py="webclient.transcript.pdf.download",hS=[na,Kc,Yc,Zc,Jc,fS,ef,tf,rf],pS=e=>({type:Yc,buffer:e}),mS=()=>({type:Zc}),gS=e=>({type:ef,transcription:e}),yS=e=>({type:Jc,methods:e}),vS=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),_S=()=>({type:tf}),ES=()=>({type:Py}),bS=({rating:e})=>({type:rf,payload:{rating:e}}),SS=(e,n)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:n}}),Iy=e=>ge.requestNLUEvent(e),wS=e=>({type:Kc,messages:e}),xS=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Dy(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},TS=e=>Dy(e),Dy=e=>({type:na,message:{type:"webclient.change.url",url:e}}),CS=e=>({type:na,message:{type:"webclient.change.translations",payload:{translations:e}}});/*! js-cookie v3.0.5 | MIT */function Os(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)e[s]=i[s]}return e}var kS={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 bc(e,n){function i(l,u,d){if(!(typeof document>"u")){d=Os({},n,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in d)d[p]&&(h+="; "+p,d[p]!==!0&&(h+="="+d[p].split(";")[0]));return document.cookie=l+"="+e.write(u,l)+h}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],d={},h=0;h<u.length;h++){var p=u[h].split("="),_=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(d[y]=e.read(_,y),l===y)break}catch{}}return l?d[l]:d}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Os({},u,{expires:-1}))},withAttributes:function(l){return bc(this.converter,Os({},this.attributes,l))},withConverter:function(l){return bc(Os({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var ku=bc(kS,{path:"/"});function nt(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 RS=typeof Symbol=="function"&&Symbol.observable||"@@observable",km=RS,Ru=()=>Math.random().toString(36).substring(7).split("").join("."),OS={INIT:`@@redux/INIT${Ru()}`,REPLACE:`@@redux/REPLACE${Ru()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ru()}`},Ws=OS;function nf(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function My(e,n,i){if(typeof e!="function")throw new Error(nt(2));if(typeof n=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(nt(0));if(typeof n=="function"&&typeof i>"u"&&(i=n,n=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(nt(1));return i(My)(e,n)}let s=e,l=n,u=new Map,d=u,h=0,p=!1;function _(){d===u&&(d=new Map,u.forEach((C,O)=>{d.set(O,C)}))}function y(){if(p)throw new Error(nt(3));return l}function w(C){if(typeof C!="function")throw new Error(nt(4));if(p)throw new Error(nt(5));let O=!0;_();const N=h++;return d.set(N,C),function(){if(O){if(p)throw new Error(nt(6));O=!1,_(),d.delete(N),u=null}}}function m(C){if(!nf(C))throw new Error(nt(7));if(typeof C.type>"u")throw new Error(nt(8));if(typeof C.type!="string")throw new Error(nt(17));if(p)throw new Error(nt(9));try{p=!0,l=s(l,C)}finally{p=!1}return(u=d).forEach(N=>{N()}),C}function E(C){if(typeof C!="function")throw new Error(nt(10));s=C,m({type:Ws.REPLACE})}function v(){const C=w;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(nt(11));function N(){const T=O;T.next&&T.next(y())}return N(),{unsubscribe:C(N)}},[km](){return this}}}return m({type:Ws.INIT}),{dispatch:m,subscribe:w,getState:y,replaceReducer:E,[km]:v}}function NS(e){Object.keys(e).forEach(n=>{const i=e[n];if(typeof i(void 0,{type:Ws.INIT})>"u")throw new Error(nt(12));if(typeof i(void 0,{type:Ws.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function Fy(e){const n=Object.keys(e),i={};for(let u=0;u<n.length;u++){const d=n[u];typeof e[d]=="function"&&(i[d]=e[d])}const s=Object.keys(i);let l;try{NS(i)}catch(u){l=u}return function(d={},h){if(l)throw l;let p=!1;const _={};for(let y=0;y<s.length;y++){const w=s[y],m=i[w],E=d[w],v=m(E,h);if(typeof v>"u")throw h&&h.type,new Error(nt(14));_[w]=v,p=p||v!==E}return p=p||s.length!==Object.keys(d).length,p?_:d}}function Xs(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,i)=>(...s)=>n(i(...s)))}function AS(...e){return n=>(i,s)=>{const l=n(i,s);let u=()=>{throw new Error(nt(15))};const d={getState:l.getState,dispatch:(p,..._)=>u(p,..._)},h=e.map(p=>p(d));return u=Xs(...h)(l.dispatch),{...l,dispatch:u}}}function PS(e){return nf(e)&&"type"in e&&typeof e.type=="string"}var Ly=Symbol.for("immer-nothing"),Rm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Jt(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zn=Object.getPrototypeOf;function bn(e){return!!e&&!!e[Ot]}function kr(e){var n;return e?By(e)||Array.isArray(e)||!!e[Rm]||!!((n=e.constructor)!=null&&n[Rm])||oa(e)||sa(e):!1}var IS=Object.prototype.constructor.toString();function By(e){if(!e||typeof e!="object")return!1;const n=Zn(e);if(n===null)return!0;const i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===IS}function Zi(e,n){ia(e)===0?Object.entries(e).forEach(([i,s])=>{n(i,s,e)}):e.forEach((i,s)=>n(s,i,e))}function ia(e){const n=e[Ot];return n?n.type_:Array.isArray(e)?1:oa(e)?2:sa(e)?3:0}function Sc(e,n){return ia(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function jy(e,n,i){const s=ia(e);s===2?e.set(n,i):s===3?e.add(i):e[n]=i}function DS(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function oa(e){return e instanceof Map}function sa(e){return e instanceof Set}function gn(e){return e.copy_||e.base_}function wc(e,n){if(oa(e))return new Map(e);if(sa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!n&&By(e))return Zn(e)?{...e}:Object.assign(Object.create(null),e);const i=Object.getOwnPropertyDescriptors(e);delete i[Ot];let s=Reflect.ownKeys(i);for(let l=0;l<s.length;l++){const u=s[l],d=i[u];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(i[u]={configurable:!0,writable:!0,enumerable:d.enumerable,value:e[u]})}return Object.create(Zn(e),i)}function of(e,n=!1){return aa(e)||bn(e)||!kr(e)||(ia(e)>1&&(e.set=e.add=e.clear=e.delete=MS),Object.freeze(e),n&&Zi(e,(i,s)=>of(s,!0))),e}function MS(){Jt(2)}function aa(e){return Object.isFrozen(e)}var FS={};function Sn(e){const n=FS[e];return n||Jt(0,e),n}var Ji;function zy(){return Ji}function LS(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Om(e,n){n&&(Sn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function xc(e){Tc(e),e.drafts_.forEach(BS),e.drafts_=null}function Tc(e){e===Ji&&(Ji=e.parent_)}function Nm(e){return Ji=LS(Ji,e)}function BS(e){const n=e[Ot];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function Am(e,n){n.unfinalizedDrafts_=n.drafts_.length;const i=n.drafts_[0];return e!==void 0&&e!==i?(i[Ot].modified_&&(xc(n),Jt(4)),kr(e)&&(e=Qs(n,e),n.parent_||Ks(n,e)),n.patches_&&Sn("Patches").generateReplacementPatches_(i[Ot].base_,e,n.patches_,n.inversePatches_)):e=Qs(n,i,[]),xc(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==Ly?e:void 0}function Qs(e,n,i){if(aa(n))return n;const s=n[Ot];if(!s)return Zi(n,(l,u)=>Pm(e,s,n,l,u,i)),n;if(s.scope_!==e)return n;if(!s.modified_)return Ks(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let u=l,d=!1;s.type_===3&&(u=new Set(l),l.clear(),d=!0),Zi(u,(h,p)=>Pm(e,s,l,h,p,i,d)),Ks(e,l,!1),i&&e.patches_&&Sn("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function Pm(e,n,i,s,l,u,d){if(bn(l)){const h=u&&n&&n.type_!==3&&!Sc(n.assigned_,s)?u.concat(s):void 0,p=Qs(e,l,h);if(jy(i,s,p),bn(p))e.canAutoFreeze_=!1;else return}else d&&i.add(l);if(kr(l)&&!aa(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Qs(e,l),(!n||!n.scope_.parent_)&&Ks(e,l)}}function Ks(e,n,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&of(n,i)}function jS(e,n){const i=Array.isArray(e),s={type_:i?1:0,scope_:n?n.scope_:zy(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=sf;i&&(l=[s],u=eo);const{revoke:d,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=d,h}var sf={get(e,n){if(n===Ot)return e;const i=gn(e);if(!Sc(i,n))return zS(e,i,n);const s=i[n];return e.finalized_||!kr(s)?s:s===Ou(e.base_,n)?(Nu(e),e.copy_[n]=kc(s,e)):s},has(e,n){return n in gn(e)},ownKeys(e){return Reflect.ownKeys(gn(e))},set(e,n,i){const s=Uy(gn(e),n);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Ou(gn(e),n),u=l==null?void 0:l[Ot];if(u&&u.base_===i)return e.copy_[n]=i,e.assigned_[n]=!1,!0;if(DS(i,l)&&(i!==void 0||Sc(e.base_,n)))return!0;Nu(e),Cc(e)}return e.copy_[n]===i&&(i!==void 0||n in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=i,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Ou(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Nu(e),Cc(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const i=gn(e),s=Reflect.getOwnPropertyDescriptor(i,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:i[n]}},defineProperty(){Jt(11)},getPrototypeOf(e){return Zn(e.base_)},setPrototypeOf(){Jt(12)}},eo={};Zi(sf,(e,n)=>{eo[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});eo.deleteProperty=function(e,n){return eo.set.call(this,e,n,void 0)};eo.set=function(e,n,i){return sf.set.call(this,e[0],n,i,e[0])};function Ou(e,n){const i=e[Ot];return(i?gn(i):e)[n]}function zS(e,n,i){var l;const s=Uy(n,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function Uy(e,n){if(!(n in e))return;let i=Zn(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,n);if(s)return s;i=Zn(i)}}function Cc(e){e.modified_||(e.modified_=!0,e.parent_&&Cc(e.parent_))}function Nu(e){e.copy_||(e.copy_=wc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var US=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,i,s)=>{if(typeof n=="function"&&typeof i!="function"){const u=i;i=n;const d=this;return function(p=u,..._){return d.produce(p,y=>i.call(this,y,..._))}}typeof i!="function"&&Jt(6),s!==void 0&&typeof s!="function"&&Jt(7);let l;if(kr(n)){const u=Nm(this),d=kc(n,void 0);let h=!0;try{l=i(d),h=!1}finally{h?xc(u):Tc(u)}return Om(u,s),Am(l,u)}else if(!n||typeof n!="object"){if(l=i(n),l===void 0&&(l=n),l===Ly&&(l=void 0),this.autoFreeze_&&of(l,!0),s){const u=[],d=[];Sn("Patches").generateReplacementPatches_(n,l,u,d),s(u,d)}return l}else Jt(1,n)},this.produceWithPatches=(n,i)=>{if(typeof n=="function")return(d,...h)=>this.produceWithPatches(d,p=>n(p,...h));let s,l;return[this.produce(n,i,(d,h)=>{s=d,l=h}),s,l]},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){kr(e)||Jt(8),bn(e)&&(e=HS(e));const n=Nm(this),i=kc(e,void 0);return i[Ot].isManual_=!0,Tc(n),i}finishDraft(e,n){const i=e&&e[Ot];(!i||!i.isManual_)&&Jt(9);const{scope_:s}=i;return Om(s,n),Am(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let i;for(i=n.length-1;i>=0;i--){const l=n[i];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}i>-1&&(n=n.slice(i+1));const s=Sn("Patches").applyPatches_;return bn(e)?s(e,n):this.produce(e,l=>s(l,n))}};function kc(e,n){const i=oa(e)?Sn("MapSet").proxyMap_(e,n):sa(e)?Sn("MapSet").proxySet_(e,n):jS(e,n);return(n?n.scope_:zy()).drafts_.push(i),i}function HS(e){return bn(e)||Jt(10,e),Hy(e)}function Hy(e){if(!kr(e)||aa(e))return e;const n=e[Ot];let i;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,i=wc(e,n.scope_.immer_.useStrictShallowCopy_)}else i=wc(e,!0);return Zi(i,(s,l)=>{jy(i,s,Hy(l))}),n&&(n.finalized_=!1),i}var Nt=new US,Gy=Nt.produce;Nt.produceWithPatches.bind(Nt);Nt.setAutoFreeze.bind(Nt);Nt.setUseStrictShallowCopy.bind(Nt);Nt.applyPatches.bind(Nt);Nt.createDraft.bind(Nt);Nt.finishDraft.bind(Nt);function $y(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var GS=$y(),$S=$y,qS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xs:Xs.apply(null,arguments)};function Im(e,n){function i(...s){if(n){let l=n(...s);if(!l)throw new Error(xr(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:s[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=s=>PS(s)&&s.type===e,i}var qy=class Ki extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Ki.prototype)}static get[Symbol.species](){return Ki}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Ki(...n[0].concat(this)):new Ki(...n.concat(this))}};function Dm(e){return kr(e)?Gy(e,()=>{}):e}function Mm(e,n,i){return e.has(n)?e.get(n):e.set(n,i(n)).get(n)}function VS(e){return typeof e=="boolean"}var WS=()=>function(n){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let d=new qy;return i&&(VS(i)?d.push(GS):d.push($S(i.extraArgument))),d},XS="RTK_autoBatch",Fm=e=>n=>{setTimeout(n,e)},QS=(e={type:"raf"})=>n=>(...i)=>{const s=n(...i);let l=!0,u=!1,d=!1;const h=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fm(10):e.type==="callback"?e.queueNotification:Fm(e.timeout),_=()=>{d=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const w=()=>l&&y(),m=s.subscribe(w);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var w;try{return l=!((w=y==null?void 0:y.meta)!=null&&w[XS]),u=!l,u&&(d||(d=!0,p(_))),s.dispatch(y)}finally{l=!0}}})},KS=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new qy(e);return s&&l.push(QS(typeof s=="object"?s:void 0)),l};function YS(e){const n=WS(),{reducer:i=void 0,middleware:s,devTools:l=!0,preloadedState:u=void 0,enhancers:d=void 0}=e||{};let h;if(typeof i=="function")h=i;else if(nf(i))h=Fy(i);else throw new Error(xr(1));let p;typeof s=="function"?p=s(n):p=n();let _=Xs;l&&(_=qS({trace:!1,...typeof l=="object"&&l}));const y=AS(...p),w=KS(y);let m=typeof d=="function"?d(w):w();const E=_(...m);return My(h,u,E)}function Vy(e){const n={},i=[];let s;const l={addCase(u,d){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(xr(28));if(h in n)throw new Error(xr(29));return n[h]=d,l},addMatcher(u,d){return i.push({matcher:u,reducer:d}),l},addDefaultCase(u){return s=u,l}};return e(l),[n,i,s]}function ZS(e){return typeof e=="function"}function JS(e,n){let[i,s,l]=Vy(n),u;if(ZS(e))u=()=>Dm(e());else{const h=Dm(e);u=()=>h}function d(h=u(),p){let _=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return _.filter(y=>!!y).length===0&&(_=[l]),_.reduce((y,w)=>{if(w)if(bn(y)){const E=w(y,p);return E===void 0?y:E}else{if(kr(y))return Gy(y,m=>w(m,p));{const m=w(y,p);if(m===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return y},h)}return d.getInitialState=u,d}var ew=Symbol.for("rtk-slice-createasyncthunk");function tw(e,n){return`${e}/${n}`}function rw({creators:e}={}){var i;const n=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[ew];return function(l){const{name:u,reducerPath:d=u}=l;if(!u)throw new Error(xr(11));typeof process<"u";const h=(typeof l.reducers=="function"?l.reducers(iw()):l.reducers)||{},p=Object.keys(h),_={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(b,T){const x=typeof b=="string"?b:b.type;if(!x)throw new Error(xr(12));if(x in _.sliceCaseReducersByType)throw new Error(xr(13));return _.sliceCaseReducersByType[x]=T,y},addMatcher(b,T){return _.sliceMatchers.push({matcher:b,reducer:T}),y},exposeAction(b,T){return _.actionCreators[b]=T,y},exposeCaseReducer(b,T){return _.sliceCaseReducersByName[b]=T,y}};p.forEach(b=>{const T=h[b],x={reducerName:b,type:tw(u,b),createNotation:typeof l.reducers=="function"};sw(T)?lw(x,T,y,n):ow(x,T,y)});function w(){const[b={},T=[],x=void 0]=typeof l.extraReducers=="function"?Vy(l.extraReducers):[l.extraReducers],L={...b,..._.sliceCaseReducersByType};return JS(l.initialState,G=>{for(let W in L)G.addCase(W,L[W]);for(let W of _.sliceMatchers)G.addMatcher(W.matcher,W.reducer);for(let W of T)G.addMatcher(W.matcher,W.reducer);x&&G.addDefaultCase(x)})}const m=b=>b,E=new Map;let v;function R(b,T){return v||(v=w()),v(b,T)}function C(){return v||(v=w()),v.getInitialState()}function O(b,T=!1){function x(G){let W=G[b];return typeof W>"u"&&T&&(W=C()),W}function L(G=m){const W=Mm(E,T,()=>new WeakMap);return Mm(W,G,()=>{const he={};for(const[te,ce]of Object.entries(l.selectors??{}))he[te]=nw(ce,G,C,T);return he})}return{reducerPath:b,getSelectors:L,get selectors(){return L(x)},selectSlice:x}}const N={name:u,reducer:R,actions:_.actionCreators,caseReducers:_.sliceCaseReducersByName,getInitialState:C,...O(d),injectInto(b,{reducerPath:T,...x}={}){const L=T??d;return b.inject({reducerPath:L,reducer:R},x),{...N,...O(L,!0)}}};return N}}function nw(e,n,i,s){function l(u,...d){let h=n(u);return typeof h>"u"&&s&&(h=i()),e(h,...d)}return l.unwrapped=e,l}var Wy=rw();function iw(){function e(n,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...i}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...i){return n(...i)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:i}},asyncThunk:e}}function ow({type:e,reducerName:n,createNotation:i},s,l){let u,d;if("reducer"in s){if(i&&!aw(s))throw new Error(xr(17));u=s.reducer,d=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,d?Im(e,d):Im(e))}function sw(e){return e._reducerDefinitionType==="asyncThunk"}function aw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lw({type:e,reducerName:n},i,s,l){if(!l)throw new Error(xr(18));const{payloadCreator:u,fulfilled:d,pending:h,rejected:p,settled:_,options:y}=i,w=l(e,u,y);s.exposeAction(n,w),d&&s.addCase(w.fulfilled,d),h&&s.addCase(w.pending,h),p&&s.addCase(w.rejected,p),_&&s.addMatcher(w.settled,_),s.exposeCaseReducer(n,{fulfilled:d||Ns,pending:h||Ns,rejected:p||Ns,settled:_||Ns})}function Ns(){}function xr(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. `}const uw={useStartScreen:void 0,formValues:{}},Xy=Wy({name:"start-screen",initialState:uw,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,n){e.startScreenStatus="HIDDEN",e.formValues=n.payload}}}),{enableStartScreen:cw,disableStartScreen:fw,startChat:dw,showStartScreen:hw}=Xy.actions,pw=Xy.reducer,Qy="RESET_CHAT_STATE",mw=()=>({type:Qy}),rt=[];for(let e=0;e<256;++e)rt.push((e+256).toString(16).slice(1));function gw(e,n=0){return(rt[e[n+0]]+rt[e[n+1]]+rt[e[n+2]]+rt[e[n+3]]+"-"+rt[e[n+4]]+rt[e[n+5]]+"-"+rt[e[n+6]]+rt[e[n+7]]+"-"+rt[e[n+8]]+rt[e[n+9]]+"-"+rt[e[n+10]]+rt[e[n+11]]+rt[e[n+12]]+rt[e[n+13]]+rt[e[n+14]]+rt[e[n+15]]).toLowerCase()}let Au;const yw=new Uint8Array(16);function vw(){if(!Au){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Au=crypto.getRandomValues.bind(crypto)}return Au(yw)}const _w=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Lm={randomUUID:_w};function Rc(e,n,i){var l;if(Lm.randomUUID&&!n&&!e)return Lm.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??vw();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,gw(s)}const af="CONNECT",lf="CONNECTING",uf="CONNECTED",cf="DISCONNECTED",ff="RECONNECTED",df="RESTORE_SESSION_ID",la="START",ua="CLEAR_SESSION_ID",Ew=[af,lf,uf,cf,ff,df],bw=(e,n)=>({type:af,clientName:e,querystrings:n}),Sw=e=>({type:df,sessionId:e}),ww=()=>({type:lf}),xw=()=>({type:uf}),Tw=()=>({type:cf}),Cw=()=>({type:ff}),Ky=(e,n)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let d=l.sessionId;d===void 0&&(d=Rc());let h=l.userId;if(h===void 0){const p=ku.get("bubble-chat-userId")||ku.get("bf-webclient-userId");h=p||Rc(),ku.set("bubble-chat-userId",h)}i({type:la,payload:{sessionId:d,userId:h,clientName:e,querystrings:{...n,...u}}})},hf=(e,n)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(kw(l)),i(mw()),s().startScreen.useStartScreen)i(hw());else return i(Ky(e,n))},kw=e=>({type:ua,payload:{sessionId:e}}),Ut=()=>{const e=ra();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var vn=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(vn||{}),Yy=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(Yy||{});const Rw="_button_bc9qm_54",Ow="_buttonDefault_bc9qm_66",Nw="_buttonPrimary_bc9qm_80",Aw="_accessabilityHidden_bc9qm_132",it={button:Rw,buttonDefault:Ow,buttonPrimary:Nw,accessabilityHidden:Aw},Pw="_chatwindow_phukm_1",Iw="_chatcontent_phukm_13",Dw={chatwindow:Pw,chatcontent:Iw},Mw="_messageContainer_1wdci_1",Fw="_messages_1wdci_10",Bm={messageContainer:Mw,messages:Fw};function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},yn.apply(this,arguments)}const Lw=["children","options"],oe={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var jm;(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"})(jm||(jm={}));const zm=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,n)=>(e[n.toLowerCase()]=n,e),{class:"className",for:"htmlFor"}),Um={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Bw=["style","script"],jw=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,zw=/mailto:/i,Uw=/\n{2,}$/,Zy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Hw=/^ *> ?/gm,Gw=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,$w=/^ {2,}\n/,qw=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Jy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ev=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Vw=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Ww=/^(?:\n *)*\n/,Xw=/\r\n?/g,Qw=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Kw=/^\[\^([^\]]+)]/,Yw=/\f/g,Zw=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Jw=/^\s*?\[(x|\s)\]/,tv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,rv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,nv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Oc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,ex=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,iv=/^<!--[\s\S]*?(?:-->)/,tx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Nc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,rx=/^\{.*\}$/,nx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ix=/^<([^ >]+@[^ >]+)>/,ox=/^<([^ >]+:\/[^ >]+)>/,sx=/-([a-z])?/gi,ov=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,ax=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,lx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ux=/^\[([^\]]*)\] ?\[([^\]]*)\]/,cx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,fx=/\t/g,dx=/(^ *\||\| *$)/g,hx=/^ *:-+: *$/,px=/^ *:-+ *$/,mx=/^ *-+: *$/,ca="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",gx=new RegExp(`^([*_])\\1${ca}\\1\\1(?!\\1)`),yx=new RegExp(`^([*_])${ca}\\1(?!\\1|\\w)`),vx=new RegExp(`^==${ca}==`),_x=new RegExp(`^~~${ca}~~`),Ex=/^\\([^0-9A-Za-z\s])/,bx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Sx=/^\n+/,wx=/^([ \t]*)/,xx=/\\([^\\])/g,Hm=/ *\n+$/,Tx=/(?:^|\n)( *)$/,pf="(?:\\d+\\.)",mf="(?:[*+-])";function sv(e){return"( *)("+(e===1?pf:mf)+") +"}const av=sv(1),lv=sv(2);function uv(e){return new RegExp("^"+(e===1?av:lv))}const Cx=uv(1),kx=uv(2);function cv(e){return new RegExp("^"+(e===1?av:lv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?pf:mf)+" )[^\\n]*)*(\\n|$)","gm")}const fv=cv(1),dv=cv(2);function hv(e){const n=e===1?pf:mf;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const pv=hv(1),mv=hv(2);function Gm(e,n){const i=n===1,s=i?pv:mv,l=i?fv:dv,u=i?Cx:kx;return{match(d,h){const p=Tx.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?s.exec(d=p[1]+d):null},order:1,parse(d,h,p){const _=i?+d[2]:void 0,y=d[0].replace(Uw,`
85
- `).match(l);let w=!1;return{items:y.map(function(m,E){const v=u.exec(m)[0].length,R=new RegExp("^ {1,"+v+"}","gm"),C=m.replace(R,"").replace(u,""),O=E===y.length-1,N=C.indexOf(`
86
-
87
- `)!==-1||O&&w;w=N;const b=p.inline,T=p.list;let x;p.list=!0,N?(p.inline=!1,x=C.replace(Hm,`
88
-
89
- `)):(p.inline=!0,x=C.replace(Hm,""));const L=h(x,p);return p.inline=b,p.list=T,L}),ordered:i,start:_}},render:(d,h,p)=>e(d.ordered?"ol":"ul",{key:p.key,start:d.type===oe.orderedList?d.start:void 0},d.items.map(function(_,y){return e("li",{key:y},h(_,p))}))}}const Rx=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Ox=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,gv=[Zy,Jy,ev,tv,nv,rv,iv,ov,fv,pv,dv,mv],Nx=[...gv,/^[^\n]+(?: \n|\n{2,})/,Oc,Nc];function qi(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 Ax(e){return mx.test(e)?"right":hx.test(e)?"center":px.test(e)?"left":null}function $m(e,n,i,s){const l=i.inTable;i.inTable=!0;let u=[[]],d="";function h(){if(!d)return;const p=u[u.length-1];p.push.apply(p,n(d,i)),d=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,_,y)=>{p.trim()==="|"&&(h(),s)?_!==0&&_!==y.length-1&&u.push([]):d+=p}),h(),i.inTable=l,u}function Px(e,n,i){i.inline=!0;const s=e[2]?e[2].replace(dx,"").split("|").map(Ax):[],l=e[3]?function(d,h,p){return d.trim().split(`
90
- `).map(function(_){return $m(_,h,p,!0)})}(e[3],n,i):[],u=$m(e[1],n,i,!!l.length);return i.inline=!1,l.length?{align:s,cells:l,header:u,type:oe.table}:{children:u,type:oe.paragraph}}function qm(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function Wr(e){return function(n,i){return i.inline?e.exec(n):null}}function Xr(e){return function(n,i){return i.inline||i.simple?e.exec(n):null}}function Er(e){return function(n,i){return i.inline||i.simple?null:e.exec(n)}}function Vi(e){return function(n){return e.exec(n)}}function Ix(e,n){if(n.inline||n.simple)return null;let i="";e.split(`
91
- `).every(l=>(l+=`
92
- `,!gv.some(u=>u.test(l))&&(i+=l,!!l.trim())));const s=i.trimEnd();return s==""?null:[i,s]}function Dx(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Vm(e){return e.replace(xx,"$1")}function Us(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!0,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function Mx(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!1,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function Fx(e,n,i){const s=i.inline||!1;i.inline=!1;const l=e(n,i);return i.inline=s,l}const Pu=(e,n,i)=>({children:Us(n,e[1],i)});function Iu(){return{}}function Du(){return null}function Lx(...e){return e.filter(Boolean).join(" ")}function Mu(e,n,i){let s=e;const l=n.split(".");for(;l.length&&(s=s[l[0]],s!==void 0);)l.shift();return s||i}function Bx(e="",n={}){function i(m,E,...v){const R=Mu(n.overrides,`${m}.props`,{});return n.createElement(function(C,O){const N=Mu(O,C);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:Mu(O,`${C}.component`,C):C}(m,n.overrides),yn({},E,R,{className:Lx(E==null?void 0:E.className,R.className)||void 0}),...v)}function s(m){m=m.replace(Zw,"");let E=!1;n.forceInline?E=!0:n.forceBlock||(E=cx.test(m)===!1);const v=_(p(E?m:`${m.trimEnd().replace(Sx,"")}
93
-
94
- `,{inline:E}));for(;typeof v[v.length-1]=="string"&&!v[v.length-1].trim();)v.pop();if(n.wrapper===null)return v;const R=n.wrapper||(E?"span":"div");let C;if(v.length>1||n.forceWrapper)C=v;else{if(v.length===1)return C=v[0],typeof C=="string"?i("span",{key:"outer"},C):C;C=null}return n.createElement(R,{key:"outer"},C)}function l(m,E){const v=E.match(jw);return v?v.reduce(function(R,C){const O=C.indexOf("=");if(O!==-1){const N=function(L){return L.indexOf("-")!==-1&&L.match(tx)===null&&(L=L.replace(sx,function(G,W){return W.toUpperCase()})),L}(C.slice(0,O)).trim(),b=function(L){const G=L[0];return(G==='"'||G==="'")&&L.length>=2&&L[L.length-1]===G?L.slice(1,-1):L}(C.slice(O+1).trim()),T=zm[N]||N;if(T==="ref")return R;const x=R[T]=function(L,G,W,he){return G==="style"?W.split(/;\s?/).reduce(function(te,ce){const pe=ce.slice(0,ce.indexOf(":"));return te[pe.trim().replace(/(-[a-z])/g,le=>le[1].toUpperCase())]=ce.slice(pe.length+1).trim(),te},{}):G==="href"||G==="src"?he(W,L,G):(W.match(rx)&&(W=W.slice(1,W.length-1)),W==="true"||W!=="false"&&W)}(m,N,b,n.sanitizer);typeof x=="string"&&(Oc.test(x)||Nc.test(x))&&(R[T]=s(x.trim()))}else C!=="style"&&(R[zm[C]||C]=!0);return R},{}):null}n.overrides=n.overrides||{},n.sanitizer=n.sanitizer||Dx,n.slugify=n.slugify||qi,n.namedCodesToUnicode=n.namedCodesToUnicode?yn({},Um,n.namedCodesToUnicode):Um,n.createElement=n.createElement||U.createElement;const u=[],d={},h={[oe.blockQuote]:{match:Er(Zy),order:1,parse(m,E,v){const[,R,C]=m[0].replace(Hw,"").match(Gw);return{alert:R,children:E(C,v)}},render(m,E,v){const R={key:v.key};return m.alert&&(R.className="markdown-alert-"+n.slugify(m.alert.toLowerCase(),qi),m.children.unshift({attrs:{},children:[{type:oe.text,text:m.alert}],noInnerParse:!0,type:oe.htmlBlock,tag:"header"})),i("blockquote",R,E(m.children,v))}},[oe.breakLine]:{match:Vi($w),order:1,parse:Iu,render:(m,E,v)=>i("br",{key:v.key})},[oe.breakThematic]:{match:Er(qw),order:1,parse:Iu,render:(m,E,v)=>i("hr",{key:v.key})},[oe.codeBlock]:{match:Er(ev),order:0,parse:m=>({lang:void 0,text:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(m,E,v)=>i("pre",{key:v.key},i("code",yn({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[oe.codeFenced]:{match:Er(Jy),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:oe.codeBlock})},[oe.codeInline]:{match:Xr(Vw),order:3,parse:m=>({text:m[2]}),render:(m,E,v)=>i("code",{key:v.key},m.text)},[oe.footnote]:{match:Er(Qw),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Du},[oe.footnoteReference]:{match:Wr(Kw),order:1,parse:m=>({target:`#${n.slugify(m[1],qi)}`,text:m[1]}),render:(m,E,v)=>i("a",{key:v.key,href:n.sanitizer(m.target,"a","href")},i("sup",{key:v.key},m.text))},[oe.gfmTask]:{match:Wr(Jw),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,E,v)=>i("input",{checked:m.completed,key:v.key,readOnly:!0,type:"checkbox"})},[oe.heading]:{match:Er(n.enforceAtxHeadings?rv:tv),order:1,parse:(m,E,v)=>({children:Us(E,m[2],v),id:n.slugify(m[2],qi),level:m[1].length}),render:(m,E,v)=>i(`h${m.level}`,{id:m.id,key:v.key},E(m.children,v))},[oe.headingSetext]:{match:Er(nv),order:0,parse:(m,E,v)=>({children:Us(E,m[1],v),level:m[2]==="="?1:2,type:oe.heading})},[oe.htmlBlock]:{match:Vi(Oc),order:1,parse(m,E,v){const[,R]=m[3].match(wx),C=new RegExp(`^${R}`,"gm"),O=m[3].replace(C,""),N=(b=O,Nx.some(W=>W.test(b))?Fx:Us);var b;const T=m[1].toLowerCase(),x=Bw.indexOf(T)!==-1,L=(x?T:m[1]).trim(),G={attrs:l(L,m[2]),noInnerParse:x,tag:L};return v.inAnchor=v.inAnchor||T==="a",x?G.text=m[3]:G.children=N(E,O,v),v.inAnchor=!1,G},render:(m,E,v)=>i(m.tag,yn({key:v.key},m.attrs),m.text||(m.children?E(m.children,v):""))},[oe.htmlSelfClosing]:{match:Vi(Nc),order:1,parse(m){const E=m[1].trim();return{attrs:l(E,m[2]||""),tag:E}},render:(m,E,v)=>i(m.tag,yn({},m.attrs,{key:v.key}))},[oe.htmlComment]:{match:Vi(iv),order:1,parse:()=>({}),render:Du},[oe.image]:{match:Xr(Ox),order:1,parse:m=>({alt:m[1],target:Vm(m[2]),title:m[3]}),render:(m,E,v)=>i("img",{key:v.key,alt:m.alt||void 0,title:m.title||void 0,src:n.sanitizer(m.target,"img","src")})},[oe.link]:{match:Wr(Rx),order:3,parse:(m,E,v)=>({children:Mx(E,m[1],v),target:Vm(m[2]),title:m[3]}),render:(m,E,v)=>i("a",{key:v.key,href:n.sanitizer(m.target,"a","href"),title:m.title},E(m.children,v))},[oe.linkAngleBraceStyleDetector]:{match:Wr(ox),order:0,parse:m=>({children:[{text:m[1],type:oe.text}],target:m[1],type:oe.link})},[oe.linkBareUrlDetector]:{match:(m,E)=>E.inAnchor||n.disableAutoLink?null:Wr(nx)(m,E),order:0,parse:m=>({children:[{text:m[1],type:oe.text}],target:m[1],title:void 0,type:oe.link})},[oe.linkMailtoDetector]:{match:Wr(ix),order:0,parse(m){let E=m[1],v=m[1];return zw.test(v)||(v="mailto:"+v),{children:[{text:E.replace("mailto:",""),type:oe.text}],target:v,type:oe.link}}},[oe.orderedList]:Gm(i,1),[oe.unorderedList]:Gm(i,2),[oe.newlineCoalescer]:{match:Er(Ww),order:3,parse:Iu,render:()=>`
95
- `},[oe.paragraph]:{match:Ix,order:3,parse:Pu,render:(m,E,v)=>i("p",{key:v.key},E(m.children,v))},[oe.ref]:{match:Wr(ax),order:0,parse:m=>(d[m[1]]={target:m[2],title:m[4]},{}),render:Du},[oe.refImage]:{match:Xr(lx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,E,v)=>d[m.ref]?i("img",{key:v.key,alt:m.alt,src:n.sanitizer(d[m.ref].target,"img","src"),title:d[m.ref].title}):null},[oe.refLink]:{match:Wr(ux),order:0,parse:(m,E,v)=>({children:E(m[1],v),fallbackChildren:m[0],ref:m[2]}),render:(m,E,v)=>d[m.ref]?i("a",{key:v.key,href:n.sanitizer(d[m.ref].target,"a","href"),title:d[m.ref].title},E(m.children,v)):i("span",{key:v.key},m.fallbackChildren)},[oe.table]:{match:Er(ov),order:1,parse:Px,render(m,E,v){const R=m;return i("table",{key:v.key},i("thead",null,i("tr",null,R.header.map(function(C,O){return i("th",{key:O,style:qm(R,O)},E(C,v))}))),i("tbody",null,R.cells.map(function(C,O){return i("tr",{key:O},C.map(function(N,b){return i("td",{key:b,style:qm(R,b)},E(N,v))}))})))}},[oe.text]:{match:Vi(bx),order:4,parse:m=>({text:m[0].replace(ex,(E,v)=>n.namedCodesToUnicode[v]?n.namedCodesToUnicode[v]:E)}),render:m=>m.text},[oe.textBolded]:{match:Xr(gx),order:2,parse:(m,E,v)=>({children:E(m[2],v)}),render:(m,E,v)=>i("strong",{key:v.key},E(m.children,v))},[oe.textEmphasized]:{match:Xr(yx),order:3,parse:(m,E,v)=>({children:E(m[2],v)}),render:(m,E,v)=>i("em",{key:v.key},E(m.children,v))},[oe.textEscaped]:{match:Xr(Ex),order:1,parse:m=>({text:m[1],type:oe.text})},[oe.textMarked]:{match:Xr(vx),order:3,parse:Pu,render:(m,E,v)=>i("mark",{key:v.key},E(m.children,v))},[oe.textStrikethroughed]:{match:Xr(_x),order:3,parse:Pu,render:(m,E,v)=>i("del",{key:v.key},E(m.children,v))}};n.disableParsingRawHTML===!0&&(delete h[oe.htmlBlock],delete h[oe.htmlSelfClosing]);const p=function(m){let E=Object.keys(m);function v(R,C){let O=[];for(C.prevCapture=C.prevCapture||"";R;){let N=0;for(;N<E.length;){const b=E[N],T=m[b],x=T.match(R,C);if(x){const L=x[0];C.prevCapture+=L,R=R.substring(L.length);const G=T.parse(x,v,C);G.type==null&&(G.type=b),O.push(G);break}N++}}return C.prevCapture="",O}return E.sort(function(R,C){let O=m[R].order,N=m[C].order;return O!==N?O-N:R<C?-1:1}),function(R,C){return v(function(O){return O.replace(Xw,`
96
- `).replace(Yw,"").replace(fx," ")}(R),C)}}(h),_=(y=function(m,E){return function(v,R,C){const O=m[v.type].render;return E?E(()=>O(v,R,C),v,R,C):O(v,R,C)}}(h,n.renderRule),function m(E,v={}){if(Array.isArray(E)){const R=v.key,C=[];let O=!1;for(let N=0;N<E.length;N++){v.key=N;const b=m(E[N],v),T=typeof b=="string";T&&O?C[C.length-1]+=b:b!==null&&C.push(b),O=T}return v.key=R,C}return y(E,m,v)});var y;const w=s(e);return u.length?i("div",null,w,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:n.slugify(m.identifier,qi),key:m.identifier},m.identifier,_(p(m.footnote,{inline:!0})))}))):w}const Kr=e=>{let{children:n="",options:i}=e,s=function(l,u){if(l==null)return{};var d,h,p={},_=Object.keys(l);for(h=0;h<_.length;h++)u.indexOf(d=_[h])>=0||(p[d]=l[d]);return p}(e,Lw);return U.cloneElement(Bx(n,i),s)};var yv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Wm=wr.createContext&&wr.createContext(yv),jx=["attr","size","title"];function zx(e,n){if(e==null)return{};var i=Ux(e,n),s,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(l=0;l<u.length;l++)s=u[l],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(i[s]=e[s])}return i}function Ux(e,n){if(e==null)return{};var i={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(n.indexOf(s)>=0)continue;i[s]=e[s]}return i}function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ys.apply(this,arguments)}function Xm(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,s)}return i}function Zs(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Xm(Object(i),!0).forEach(function(s){Hx(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Xm(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function Hx(e,n,i){return n=Gx(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Gx(e){var n=$x(e,"string");return typeof n=="symbol"?n:n+""}function $x(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function vv(e){return e&&e.map((n,i)=>wr.createElement(n.tag,Zs({key:i},n.attr),vv(n.child)))}function _v(e){return n=>wr.createElement(qx,Ys({attr:Zs({},e.attr)},n),vv(e.child))}function qx(e){var n=i=>{var{attr:s,size:l,title:u}=e,d=zx(e,jx),h=l||i.size||"1em",p;return i.className&&(p=i.className),e.className&&(p=(p?p+" ":"")+e.className),wr.createElement("svg",Ys({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,s,d,{className:p,style:Zs(Zs({color:e.color||i.color},i.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),u&&wr.createElement("title",null,u),e.children)};return Wm!==void 0?wr.createElement(Wm.Consumer,null,i=>n(i)):n(yv)}function Vx(e){return _v({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"},child:[]}]})(e)}function Wx(e){return _v({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"},child:[]}]})(e)}const Xx="_generalConditionsContainer_1ijeb_1",Qx="_generalConditions_1ijeb_1",Kx="_generalConditionsHeader_1ijeb_15",Yx="_generalConditionsBody_1ijeb_25",Zx="_generalConditionsAccept_1ijeb_33",Wi={generalConditionsContainer:Xx,generalConditions:Qx,generalConditionsHeader:Kx,generalConditionsBody:Yx,generalConditionsAccept:Zx},Jx="general-conditions.header",eT="general-conditions.body",Qm="general-conditions.accept-conditions-note",tT=()=>{const e=Ut(),[n,i]=U.useState(!1),s=()=>i(!n),l=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},u=e(Jx),d=e(Qm);return k.jsxs("div",{className:q(Wi.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&k.jsxs("div",{className:Wi.generalConditions,children:[k.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:q(Wi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":n?"true":"false","aria-pressed":n?"true":"false",children:[k.jsx(Kr,{children:u}),n?k.jsx(Wx,{}):k.jsx(Vx,{})]}),k.jsx("div",{className:q(Wi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:n&&k.jsx(Kr,{children:e(eT)||""})})]}),!!(d!=null&&d.length)&&k.jsx("div",{className:q(Wi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:k.jsx(Kr,{children:e(Qm)||""})})]})},rT="_message_iyv51_5",nT="_messageBot_iyv51_12",iT="_messageBotLast_iyv51_20",oT="_avatar_iyv51_20",sT="_messageBotFirst_iyv51_24",aT="_messageBotAnimated_iyv51_37",lT="_fadeInLeft_iyv51_1",uT="_messageGuest_iyv51_48",cT="_messageGuestFirst_iyv51_54",fT="_messageGuestLast_iyv51_60",dT="_botAvatar_iyv51_74",hT="_agentAvatar_iyv51_78",pT="_bubble_iyv51_82",mT="_bubbleContent_iyv51_88",gT="_bubbleLeft_iyv51_191",yT="_leftText_iyv51_200",vT="_bubbleRight_iyv51_207",_T="_rightText_iyv51_215",de={message:rT,messageBot:nT,messageBotLast:iT,avatar:oT,messageBotFirst:sT,messageBotAnimated:aT,fadeInLeft:lT,messageGuest:uT,messageGuestFirst:cT,messageGuestLast:fT,botAvatar:dT,agentAvatar:hT,bubble:pT,bubbleContent:mT,bubbleLeft:gT,leftText:yT,bubbleRight:vT,rightText:_T},ET="_botMessageActions_4blu2_1",bT="_alwaysVisible_4blu2_20",ST="_reported_4blu2_27",wT="_action_4blu2_31",Qr={botMessageActions:ET,alwaysVisible:bT,reported:ST,action:wT},xT=({alwaysVisible:e,reaction:n,botMessageRef:i,onReaction:s})=>{const l=Ut(),[u,d]=U.useState(!1),h=_=>()=>s(_),p=U.useCallback(async()=>{if(i.current)try{d(!0);const _=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([_],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(w=>setTimeout(w,1500))}finally{d(!1)}},[i]);return k.jsxs("div",{className:q(Qr.botMessageActions,e&&Qr.alwaysVisible,n&&Qr.reported),children:[k.jsx("button",{className:q(Qr.action,n==="GOOD"&&Qr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:h(n==="GOOD"?null:"GOOD"),children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="GOOD"?k.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):k.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),k.jsx("button",{className:q(Qr.action,n==="BAD"&&Qr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:h(n==="BAD"?null:"BAD"),children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="BAD"?k.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):k.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),k.jsx("button",{className:q(Qr.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?k.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):k.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]})},Ev=U.forwardRef(({message:e,isAnimated:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:d},h)=>{const p=Ut(),_=U.useRef(null),y=e.sender.type===ge.UserType.BOT;return k.jsxs("li",{ref:h,className:q(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,l&&de.messageBotLast,"chat__bubbleContainer",n&&de.messageBotAnimated,n&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[k.jsx("img",{className:q(de.avatar,y?de.botAvatar:de.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),k.jsx("div",{ref:_,className:q(de.bubble,de.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:k.jsx("div",{className:q(de.leftText),children:u})}),d&&k.jsx(xT,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:_,onReaction:d})]})}),TT="_title_1mhh2_1",CT="_subtitle_1mhh2_6",kT="_buttons_1mhh2_11",RT="_button_1mhh2_11",OT="_imageContainer_1mhh2_33",NT="_image_1mhh2_33",AT="_video_container_1mhh2_44",PT="_video_1mhh2_44",IT="_only_1mhh2_54",bt={title:TT,subtitle:CT,buttons:kT,button:RT,imageContainer:OT,image:NT,video_container:AT,video:PT,only:IT},DT=({buttons:e,onButtonClick:n})=>k.jsx("div",{className:q(bt.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>k.jsx("button",{className:q(bt.button,it.button,"chat__bubbleButton"),onClick:()=>n(i),children:i.title},s))});var As={},Ps={},Is={},Km;function MT(){if(Km)return Is;Km=1,Object.defineProperty(Is,"__esModule",{value:!0});var e=Jn(),n=i(e);function i(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l.default=s,l}return Is.default=function(s,l,u){return n.createElement("a",{href:s,key:u},l)},Is}var Ds={},Ym;function FT(){return Ym||(Ym=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=function(e){return e}),Ds}var Ms={},Fu,Zm;function LT(){return Zm||(Zm=1,Fu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Fu}var Lu,Jm;function BT(){return Jm||(Jm=1,Lu=/[\0-\x1F\x7F-\x9F]/),Lu}var Bu,eg;function jT(){return eg||(eg=1,Bu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Bu}var ju,tg;function zT(){return tg||(tg=1,ju=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),ju}var zu,rg;function UT(){return rg||(rg=1,zu=function(e){var n={};n.src_Any=LT().source,n.src_Cc=BT().source,n.src_Z=jT().source,n.src_P=zT().source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var i="[><|]";return n.src_pseudo_letter="(?:(?!"+i+"|"+n.src_ZPCc+")"+n.src_Any+")",n.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]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+i+"|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),zu}var Uu,ng;function HT(){if(ng)return Uu;ng=1;function e(b){var T=Array.prototype.slice.call(arguments,1);return T.forEach(function(x){x&&Object.keys(x).forEach(function(L){b[L]=x[L]})}),b}function n(b){return Object.prototype.toString.call(b)}function i(b){return n(b)==="[object String]"}function s(b){return n(b)==="[object Object]"}function l(b){return n(b)==="[object RegExp]"}function u(b){return n(b)==="[object Function]"}function d(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(b){return Object.keys(b||{}).reduce(function(T,x){return T||h.hasOwnProperty(x)},!1)}var _={"http:":{validate:function(b,T,x){var L=b.slice(T);return x.re.http||(x.re.http=new RegExp("^\\/\\/"+x.re.src_auth+x.re.src_host_port_strict+x.re.src_path,"i")),x.re.http.test(L)?L.match(x.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,T,x){var L=b.slice(T);return x.re.no_http||(x.re.no_http=new RegExp("^"+x.re.src_auth+"(?:localhost|(?:(?:"+x.re.src_domain+")\\.)+"+x.re.src_domain_root+")"+x.re.src_port+x.re.src_host_terminator+x.re.src_path,"i")),x.re.no_http.test(L)?T>=3&&b[T-3]===":"||T>=3&&b[T-3]==="/"?0:L.match(x.re.no_http)[0].length:0}},"mailto:":{validate:function(b,T,x){var L=b.slice(T);return x.re.mailto||(x.re.mailto=new RegExp("^"+x.re.src_email_name+"@"+x.re.src_host_strict,"i")),x.re.mailto.test(L)?L.match(x.re.mailto)[0].length:0}}},y="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]",w="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(b){b.__index__=-1,b.__text_cache__=""}function E(b){return function(T,x){var L=T.slice(x);return b.test(L)?L.match(b)[0].length:0}}function v(){return function(b,T){T.normalize(b)}}function R(b){var T=b.re=UT()(b.__opts__),x=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||x.push(y),x.push(T.src_xn),T.src_tlds=x.join("|");function L(te){return te.replace("%TLDS%",T.src_tlds)}T.email_fuzzy=RegExp(L(T.tpl_email_fuzzy),"i"),T.link_fuzzy=RegExp(L(T.tpl_link_fuzzy),"i"),T.link_no_ip_fuzzy=RegExp(L(T.tpl_link_no_ip_fuzzy),"i"),T.host_fuzzy_test=RegExp(L(T.tpl_host_fuzzy_test),"i");var G=[];b.__compiled__={};function W(te,ce){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+ce)}Object.keys(b.__schemas__).forEach(function(te){var ce=b.__schemas__[te];if(ce!==null){var pe={validate:null,link:null};if(b.__compiled__[te]=pe,s(ce)){l(ce.validate)?pe.validate=E(ce.validate):u(ce.validate)?pe.validate=ce.validate:W(te,ce),u(ce.normalize)?pe.normalize=ce.normalize:ce.normalize?W(te,ce):pe.normalize=v();return}if(i(ce)){G.push(te);return}W(te,ce)}}),G.forEach(function(te){b.__compiled__[b.__schemas__[te]]&&(b.__compiled__[te].validate=b.__compiled__[b.__schemas__[te]].validate,b.__compiled__[te].normalize=b.__compiled__[b.__schemas__[te]].normalize)}),b.__compiled__[""]={validate:null,normalize:v()};var he=Object.keys(b.__compiled__).filter(function(te){return te.length>0&&b.__compiled__[te]}).map(d).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+T.src_ZPCc+"))("+he+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+T.src_ZPCc+"))("+he+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),m(b)}function C(b,T){var x=b.__index__,L=b.__last_index__,G=b.__text_cache__.slice(x,L);this.schema=b.__schema__.toLowerCase(),this.index=x+T,this.lastIndex=L+T,this.raw=G,this.text=G,this.url=G}function O(b,T){var x=new C(b,T);return b.__compiled__[x.schema].normalize(x,b),x}function N(b,T){if(!(this instanceof N))return new N(b,T);T||p(b)&&(T=b,b={}),this.__opts__=e({},h,T),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},_,b),this.__compiled__={},this.__tlds__=w,this.__tlds_replaced__=!1,this.re={},R(this)}return N.prototype.add=function(T,x){return this.__schemas__[T]=x,R(this),this},N.prototype.set=function(T){return this.__opts__=e(this.__opts__,T),this},N.prototype.test=function(T){if(this.__text_cache__=T,this.__index__=-1,!T.length)return!1;var x,L,G,W,he,te,ce,pe,le;if(this.re.schema_test.test(T)){for(ce=this.re.schema_search,ce.lastIndex=0;(x=ce.exec(T))!==null;)if(W=this.testSchemaAt(T,x[2],ce.lastIndex),W){this.__schema__=x[2],this.__index__=x.index+x[1].length,this.__last_index__=x.index+x[0].length+W;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(pe=T.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(L=T.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(he=L.index+L[1].length,(this.__index__<0||he<this.__index__)&&(this.__schema__="",this.__index__=he,this.__last_index__=L.index+L[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(le=T.indexOf("@"),le>=0&&(G=T.match(this.re.email_fuzzy))!==null&&(he=G.index+G[1].length,te=G.index+G[0].length,(this.__index__<0||he<this.__index__||he===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=he,this.__last_index__=te))),this.__index__>=0},N.prototype.pretest=function(T){return this.re.pretest.test(T)},N.prototype.testSchemaAt=function(T,x,L){return this.__compiled__[x.toLowerCase()]?this.__compiled__[x.toLowerCase()].validate(T,L,this):0},N.prototype.match=function(T){var x=0,L=[];this.__index__>=0&&this.__text_cache__===T&&(L.push(O(this,x)),x=this.__last_index__);for(var G=x?T.slice(x):T;this.test(G);)L.push(O(this,x)),G=G.slice(this.__last_index__),x+=this.__last_index__;return L.length?L:null},N.prototype.tlds=function(T,x){return T=Array.isArray(T)?T:[T],x?(this.__tlds__=this.__tlds__.concat(T).sort().filter(function(L,G,W){return L!==W[G-1]}).reverse(),R(this),this):(this.__tlds__=T.slice(),this.__tlds_replaced__=!0,R(this),this)},N.prototype.normalize=function(T){T.schema||(T.url="http://"+T.url),T.schema==="mailto:"&&!/^mailto:/i.test(T.url)&&(T.url="mailto:"+T.url)},N.prototype.onCompile=function(){},Uu=N,Uu}const GT=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","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","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var ig;function $T(){if(ig)return Ms;ig=1,Object.defineProperty(Ms,"__esModule",{value:!0});var e=HT(),n=l(e),i=GT,s=l(i);function l(d){return d&&d.__esModule?d:{default:d}}var u=new n.default;return u.tlds(s.default),Ms.default=function(d){return u.match(d)},Ms}var Fs={},og;function qT(){return og||(og=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=function(e){return e}),Fs}var sg;function VT(){if(sg)return Ps;sg=1,Object.defineProperty(Ps,"__esModule",{value:!0});var e=function(){function O(N,b){for(var T=0;T<b.length;T++){var x=b[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(N,x.key,x)}}return function(N,b,T){return b&&O(N.prototype,b),T&&O(N,T),N}}(),n=Jn(),i=m(n),s=MT(),l=w(s),u=FT(),d=w(u),h=$T(),p=w(h),_=qT(),y=w(_);function w(O){return O&&O.__esModule?O:{default:O}}function m(O){if(O&&O.__esModule)return O;var N={};if(O!=null)for(var b in O)Object.prototype.hasOwnProperty.call(O,b)&&(N[b]=O[b]);return N.default=O,N}function E(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function v(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function R(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var C=function(O){R(N,O);function N(){return E(this,N),v(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(T){var x=this;if(T==="")return T;var L=this.props.matchDecorator(T);if(!L)return T;var G=[],W=0;return L.forEach(function(he,te){he.index>W&&G.push(T.substring(W,he.index));var ce=x.props.hrefDecorator(he.url),pe=x.props.textDecorator(he.text),le=x.props.componentDecorator(ce,pe,te);G.push(le),W=he.lastIndex}),T.length>W&&G.push(T.substring(W)),G.length===1?G[0]:G}},{key:"parse",value:function(T){var x=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof T=="string"?this.parseString(T):i.isValidElement(T)&&T.type!=="a"&&T.type!=="button"?i.cloneElement(T,{key:L},this.parse(T.props.children)):Array.isArray(T)?T.map(function(G,W){return x.parse(G,W)}):T}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),N}(i.Component);return C.defaultProps={componentDecorator:l.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:y.default},Ps.default=C,Ps}var ag;function WT(){if(ag)return As;ag=1,Object.defineProperty(As,"__esModule",{value:!0});var e=VT(),n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return As.default=n.default,As}var XT=WT();const QT=ea(XT),KT="_text_1k7aq_1",YT={text:KT},bv=({text:e,onLinkClick:n})=>{const i=l=>u=>(u.preventDefault(),l&&n(l),!1),s=(l,u,d)=>k.jsx("a",{onClick:i(l),role:"button",children:u},d);return k.jsx("div",{children:e.split(`
97
- `).map((l,u)=>k.jsxs("span",{className:YT.text,children:[k.jsx(QT,{componentDecorator:s,children:l}),k.jsx("br",{})]},u))})},ZT=({subtitle:e,onLinkClick:n})=>e?k.jsx("div",{className:bt.subtitle,children:k.jsx(bv,{text:e,onLinkClick:n})}):null,lg="newtab#",Sv=({markdown:e,onLinkClick:n})=>{const i=l=>u=>(u.preventDefault(),l&&n(l),!1),s=({title:l,href:u,children:d})=>u.indexOf(lg)===0?k.jsx("a",{href:u.slice(lg.length),title:l,target:"_blank",rel:"noopener noreferrer",children:d}):k.jsx("a",{onClick:i(u),title:l,href:u,children:d});return k.jsx(Kr,{options:{overrides:{a:s}},children:e})},JT=({text:e,onLinkClick:n})=>e?k.jsx("div",{children:k.jsx(Sv,{markdown:e,onLinkClick:n})}):null,eC=({title:e})=>e?k.jsx("h1",{className:bt.title,children:e}):null,tC=({title:e,text:n,subtitle:i,buttons:s,onButtonClick:l,onLinkClick:u})=>(e==null?void 0:e.length)||(n==null?void 0:n.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?k.jsxs("div",{className:q(de.bubbleContent),children:[k.jsx(eC,{title:e}),k.jsx(JT,{text:n,onLinkClick:u}),k.jsx(ZT,{subtitle:i,onLinkClick:u}),k.jsx(DT,{buttons:s,onButtonClick:l})]}):null,rC=({alt:e,imageUrl:n,itemUrl:i,hasBody:s})=>n?i?i.indexOf("youtube.com")>-1?k.jsx("div",{className:bt.video_container,children:k.jsx("iframe",{className:q(bt.video,{[bt.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):k.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:k.jsx("div",{className:bt.imageContainer,children:k.jsx("img",{className:q(bt.image,{[bt.only]:!s}),src:n,alt:e})})}):k.jsx("div",{className:bt.imageContainer,children:k.jsx("img",{className:q(bt.image,{[bt.only]:!s}),src:n,alt:e})}):null,nC=({title:e,text:n,subtitle:i,imageUrl:s,itemUrl:l,buttons:u,onButtonClick:d,onLinkClick:h})=>{const p=!!(e!=null&&e.length)||!!(n!=null&&n.length)||!!(i!=null&&i.length)||!!(u!=null&&u.length);return k.jsxs("div",{className:q(bt.detailMessage),children:[k.jsx(rC,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&k.jsx(tC,{title:e,text:n,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:d})]})},iC=U.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:n,children:i},s)=>{const l=Ut();return k.jsx("li",{ref:s,className:q(de.message,de.messageGuest,e&&de.messageGuestFirst,n&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:k.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:k.jsx("div",{className:q(de.rightText),children:i})})})}),oC=({markdown:e,className:n,onLinkClick:i})=>k.jsx("div",{className:q(de.bubbleContent,n),children:k.jsx(Sv,{markdown:e,onLinkClick:i})}),sC=({text:e,onLinkClick:n})=>k.jsx("div",{className:de.bubbleContent,children:k.jsx(bv,{text:e,onLinkClick:n})}),aC=U.forwardRef(({message:e,isLastMessage:n,isFirstMessageBySender:i,isLastMessageBySender:s,onReaction:l,onButtonClick:u,onLinkClick:d},h)=>{const p=lC(e,u,d);switch(e.sender.type){case ge.UserType.GUEST:return k.jsx(iC,{ref:h,isFirstMessageBySender:i,isLastMessageBySender:s,children:p});default:{const _=y=>l(e._id,y);return k.jsx(Ev,{ref:h,message:e,isAnimated:!1,isLastMessage:n,isFirstMessageBySender:i,isLastMessageBySender:s,onReaction:_,children:p})}}}),lC=(e,n,i)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const s=e;return k.jsx(sC,{text:s.text,onLinkClick:i})}case ge.MessageTypeEnum.DETAIL:{const s=e;return k.jsx(nC,{title:s.title,text:s.text,subtitle:s.subtitle,imageUrl:s.imageUrl,itemUrl:s.itemUrl,buttons:s.buttons,onButtonClick:n,onLinkClick:i})}case ge.MessageTypeEnum.MARKDOWN:{const s=e;return k.jsx(oC,{markdown:s.markdown,className:s.className,onLinkClick:i})}}},uC=(e,n)=>e.message._id===n.message._id&&e.message.reaction===n.message.reaction&&e.isLastMessage===n.isLastMessage&&e.isFirstMessageBySender===n.isFirstMessageBySender&&e.isLastMessageBySender===n.isLastMessageBySender,cC=wr.memo(aC,uC),fC="_ticontainer_wftg7_1",dC="_tiblock_wftg7_5",hC="_tidot_wftg7_12",pC="_mercuryTypingAnimation_wftg7_1",Xi={ticontainer:fC,tiblock:dC,tidot:hC,mercuryTypingAnimation:pC},mC=({isTyping:e=!1})=>k.jsx("div",{className:Xi.ticontainer,children:k.jsx("div",{className:Xi.tiblock,children:e?k.jsxs(k.Fragment,{children:[k.jsx("div",{className:q(Xi.tidot,"chat__typingIndicator")}),k.jsx("div",{className:q(Xi.tidot,"chat__typingIndicator")}),k.jsx("div",{className:q(Xi.tidot,"chat__typingIndicator")})]}):null})}),gC=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),yC=({messages:e,isBotTyping:n,showGeneralConditions:i,onTranscriptItemReaction:s,onButtonClick:l,onLinkClick:u})=>{const d=U.useRef(0),h=U.useRef(!0),p=U.useRef(null),_=U.useRef(null),y=U.useRef(null);U.useLayoutEffect(()=>{if(e.length&&p.current&&(d.current<e.length||n)){if(_.current){const E=_.current.offsetTop;p.current.scrollTop=E}else if(y.current){const E=y.current.offsetTop;p.current.scrollTop=E}h.current&&(h.current=!1),d.current=e.length}},[e,h,n]);let w;const m=e.length;return k.jsxs("div",{ref:p,className:q(Bm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&k.jsx(tT,{}),k.jsxs("ul",{className:Bm.messages,children:[e.map((E,v)=>{const R=vC(E,w),C=_C(E,v,e,n);w=E.sender.type;const O=v+1===m;return k.jsx(cC,{ref:O?y:null,message:E,isLastMessage:O,isFirstMessageBySender:R,isLastMessageBySender:C,onButtonClick:l,onLinkClick:u,onReaction:s},O&&!n?"last":E._id)}),n&&k.jsx(Ev,{ref:_,message:gC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:w!==ge.UserType.BOT,isLastMessageBySender:!0,children:k.jsx(mC,{isTyping:!0})},"last")]})]})},vC=(e,n)=>!n||n!==e.sender.type,_C=(e,n,i,s)=>{var h;const l=e.sender.type,u=i.length;return n+1===u?!(l===ge.UserType.BOT&&s):l!==((h=i.at(n+1))==null?void 0:h.sender.type)},EC="_bottomSheet_8itd6_1",bC="_bottomSheetOpen_8itd6_15",SC="_bottomSheetClose_8itd6_20",Tr={bottomSheet:EC,bottomSheetOpen:bC,"slide-in":"_slide-in_8itd6_1",bottomSheetClose:SC,"slide-out":"_slide-out_8itd6_1"},wC="_container_ooyn8_1",ug={container:wC},xC=({contentUrl:e})=>{const n=_n(u=>u.connection.sessionId),[i,s]=U.useState(!1);U.useEffect(()=>{s(u=>u||!!e)},[e]);const l=U.useMemo(()=>{if(e&&n){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",n),u.toString()}else return},[e,n]);return k.jsx("div",{className:q(ug.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:!!e,[Tr.bottomSheetClose]:i&&!e}),children:l&&k.jsx("iframe",{title:"Drawer",src:l,className:ug.iframe})})},TC="_container_t5oqt_1",CC={container:TC},kC=({title:e,href:n,children:i})=>k.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),RC=()=>{const n=Ut()("powered-by");return n&&n.length?k.jsx("div",{className:q(CC.container,"chat__poweredBy"),children:k.jsx(Kr,{options:{overrides:{a:kC}},children:n})}):null},OC="_container_rkqaf_1",NC="_formContainer_rkqaf_14",AC="_emailInput_rkqaf_19",PC="_description_rkqaf_48",IC="_actions_rkqaf_53",DC="_validationError_rkqaf_63",MC="_submitted_rkqaf_70",br={container:OC,formContainer:NC,emailInput:AC,description:PC,actions:IC,validationError:DC,submitted:MC},FC=({visible:e,methods:n,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=Ut(),[d,h]=U.useState(void 0),[p,_]=U.useState(!1),[y,w]=U.useState(!1),[m,E]=U.useState(void 0),v=U.useRef(null);U.useEffect(()=>{var N;e?((N=v.current)==null||N.focus(),_(!1),w(!1),h(e)):d===!0&&h(!1)},[e,d]);const R=N=>{N.preventDefault(),m&&m.length>0&&(i(m),_(!0),setTimeout(l,3*1e3))},C=N=>{const b=N.target.value.trim(),T=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(b);E(T?b:"")},O=()=>{w(!0),s(),setTimeout(l,3*1e3)};return k.jsxs("div",{className:q(br.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:d===!0,[Tr.bottomSheetClose]:d===!1}),children:[n.pdf&&k.jsxs(k.Fragment,{children:[k.jsx("h2",{children:u("export-transcript.pdf.title")}),k.jsx(Kr,{className:br.description,children:u("export-transcript.pdf.description")||""}),k.jsxs("div",{className:br.actions,children:[k.jsx("button",{type:"button",className:q(it.button,it.buttonDefault),onClick:l,children:u("export-transcript.pdf.cancel")}),k.jsx("button",{className:q(it.button,it.buttonPrimary),onClick:O,disabled:y,children:u("export-transcript.pdf.download")})]})]}),n.email&&k.jsxs(k.Fragment,{children:[k.jsx("h2",{children:u("export-transcript.email.title")}),k.jsx(Kr,{className:br.description,children:u("export-transcript.email.description")||""}),k.jsxs("form",{onSubmit:R,className:br.formContainer,children:[k.jsxs("div",{children:[k.jsx("input",{disabled:p,ref:v,type:"email",placeholder:u("export-transcript.email.placeholder"),className:br.emailInput,onChange:C}),(m==null?void 0:m.length)===0?k.jsx("div",{className:br.validationError,children:u("export-transcript.email.invalid")}):null]}),k.jsxs("div",{className:br.actions,children:[k.jsx("button",{type:"button",className:q(it.button,it.buttonDefault),onClick:l,children:u("export-transcript.email.cancel")}),k.jsx("button",{type:"submit",disabled:p||m===void 0||m.length===0,className:q(it.button,it.buttonPrimary),children:u("export-transcript.email.send")})]})]}),p&&k.jsx("div",{className:br.submitted,children:u("export-transcript.email.success")})]})]})},LC="_inputContainer_1px77_1",BC={inputContainer:LC},jC="_blockUserInput_rv0dg_1",zC={blockUserInput:jC,"append-animate":"_append-animate_rv0dg_1"},UC=({visible:e})=>{const n=Ut();return e?k.jsx("div",{className:q(zC.blockUserInput,"chat__blockUserInput"),children:n("block-user-input.title")}):null},HC="_callToActionContainer_czz0p_1",GC="_callToActionTitle_czz0p_24",$C="_rateOverlay_czz0p_31",qC="_body_czz0p_50",VC="_footer_czz0p_58",WC="_actions_czz0p_73",XC="_bubbles_czz0p_85",QC="_rateFeedbackBotBubble_czz0p_112",KC="_rateFeedbackGuestBubble_czz0p_118",YC="_avatar_czz0p_124",ZC="_fadeInLeft_czz0p_1",JC="_bubble_czz0p_85",e2="_appear_czz0p_1",t2="_botBubble_czz0p_150",r2="_guestBubble_czz0p_160",n2="_rateText_czz0p_176",i2="_stars_czz0p_181",o2="_starsSmall_czz0p_194",s2="_starsLarge_czz0p_198",a2="_star_czz0p_181",l2="_starReadonly_czz0p_215",u2="_starIcon_czz0p_223",c2="_starsDescriptionContainer_czz0p_241",f2="_starsDescription_czz0p_241",ht={callToActionContainer:HC,"append-animate":"_append-animate_czz0p_1",callToActionTitle:GC,rateOverlay:$C,body:qC,footer:VC,actions:WC,bubbles:XC,rateFeedbackBotBubble:QC,rateFeedbackGuestBubble:KC,avatar:YC,fadeInLeft:ZC,bubble:JC,appear:e2,botBubble:t2,guestBubble:r2,rateText:n2,stars:i2,starsSmall:o2,starsLarge:s2,star:a2,starReadonly:l2,starIcon:u2,starsDescriptionContainer:c2,starsDescription:f2},d2=({value:e,index:n,count:i,readonly:s,onHover:l,onClick:u})=>{const d=h=>{u&&h.key==="Enter"&&u()};return k.jsx("li",{className:q(ht.star,{[ht.starReadonly]:s},"chat__conversationRating__star"),children:k.jsx("div",{role:"radio","aria-checked":e>n?"true":"false","aria-posinset":n+1,"aria-setsize":i,tabIndex:0,onMouseOver:l,onKeyDown:d,onClick:u,children:k.jsx("span",{role:"img","aria-label":"Star",className:q(ht.starIcon),children:k.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:k.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"})})})})})},cg=5,wv=({value:e,size:n,readonly:i=!1,onChange:s})=>{const[l,u]=U.useState(void 0),d=()=>{u(void 0)},h=_=>()=>{if(!i){const y=_+1;u(y)}},p=_=>()=>{s&&!i&&(s(_===0&&e===1?0:_+1),u(void 0))};return k.jsx("ul",{tabIndex:0,role:"radiogroup",className:q(ht.stars,{[ht.starsSmall]:n==="small",[ht.starsLarge]:n==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:n==="small",chat__conversationRating__stars__large:n==="large"}),onMouseOut:d,children:Array(cg).fill(0).map((_,y)=>k.jsx(d2,{value:l===void 0?e:l,index:y,count:cg,readonly:i,onHover:h(y),onClick:p(y)},y))})},h2=({visible:e,onRate:n})=>{const i=Ut();return e?k.jsxs("div",{className:q(ht.callToActionContainer,"chat__conversationRating__callToAction"),children:[k.jsx("div",{className:q(ht.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),k.jsx(wv,{value:0,size:"small",onChange:n})]}):null},fg=({isFirstMessageBySender:e,isLastMessageBySender:n,children:i})=>k.jsxs("div",{className:q(de.message,de.messageBot,e&&de.messageBotFirst,n&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:[k.jsx("img",{className:q(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),k.jsx("div",{className:q(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:k.jsx("div",{className:q(de.leftText,de.bubbleContent),children:i})})]}),p2=({children:e})=>k.jsx("div",{className:q(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:k.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:k.jsx("div",{className:q(de.rightText,de.bubbleContent),children:e})})}),m2=({visible:e,rating:n,onRate:i,onClose:s})=>{const l=Ut(),[u,d]=U.useState(n),[h,p]=U.useState(void 0),[_,y]=U.useState(void 0),[w,m]=U.useState({submitted:!1,feedback:""}),[E,v]=U.useState(!1),R=U.useRef(null);U.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):_===!0&&y(!1)},[e,_]),U.useEffect(()=>{d(n)},[n]),U.useEffect(()=>{const O=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(O!=null&&O.length?O:void 0)},[u,l]),U.useEffect(()=>{w.submitted?setTimeout(()=>v(!0),w.feedback.length?500:0):v(!1)},[w]);const C=O=>{var b,T;O.preventDefault();const N=((T=(b=R.current)==null?void 0:b.value)==null?void 0:T.trim())||"";i(u,N),m({submitted:!0,feedback:N})};return k.jsx("div",{className:q(ht.rateOverlay,Tr.bottomSheet,"chat__conversationRating__overlay",{[Tr.bottomSheetOpen]:_===!0,[Tr.bottomSheetClose]:_===!1}),children:k.jsxs("form",{onSubmit:C,children:[k.jsxs("div",{className:q(ht.body,"chat__conversationRating__overlay__body"),children:[k.jsxs("div",{children:[k.jsx("h2",{children:l("conversation-rating.overlay.title")}),k.jsxs("div",{className:q(ht.starsDescriptionContainer),children:[k.jsx(wv,{value:u,size:"large",readonly:w.submitted,onChange:d}),k.jsxs("div",{className:q(ht.starsDescription),children:[k.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),k.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),k.jsx("div",{className:q(ht.bubbles),children:e&&h&&k.jsxs(k.Fragment,{children:[k.jsx(fg,{isFirstMessageBySender:!0,isLastMessageBySender:!E||!!w.feedback.length,children:k.jsx("div",{children:h})}),!!w.feedback.length&&k.jsx(p2,{children:w.feedback}),E&&k.jsx(fg,{isFirstMessageBySender:!!w.feedback.length,isLastMessageBySender:!0,children:k.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),k.jsxs("div",{className:q(ht.footer,"chat__conversationRating__overlay__footer"),children:[!w.submitted&&k.jsx("input",{ref:R,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),k.jsx("div",{className:q(ht.actions,"chat__conversationRating__overlay__footer__actions"),children:w.submitted?k.jsx("button",{type:"button",className:q(it.button,it.buttonPrimary),onClick:s,children:l("conversation-rating.overlay.action.close")}):k.jsx("button",{type:"submit",className:q(it.button,it.buttonPrimary),children:l("conversation-rating.overlay.action.submit")})})]})]})})},g2=({conversationRating:{enabled:e,rating:n},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[d,h]=U.useState(0),p=w=>{h(w),l(!0)},_=()=>l(!1),y=!n&&i>=1;return e?k.jsxs(k.Fragment,{children:[k.jsx(h2,{visible:y,onRate:p}),k.jsx(m2,{visible:s,rating:d,onRate:u,onClose:_})]}):null},y2="_inputWrapper_1o8hf_5",v2="_messageInputWrapper_1o8hf_14",_2="_messageInput_1o8hf_14",E2="_buttons_1o8hf_36",b2="_button_1o8hf_36",Xn={inputWrapper:y2,messageInputWrapper:v2,messageInput:_2,buttons:E2,button:b2},S2="_audioRecorder_xps9k_5",w2="_recordButton_xps9k_10",x2="_submitButton_xps9k_37",T2="_cancelButton_xps9k_64",C2="_recorderIcon_xps9k_91",k2="_pulse_xps9k_1",R2="_spinning_xps9k_113",O2="_spin_xps9k_113",mn={audioRecorder:S2,recordButton:w2,submitButton:x2,cancelButton:T2,recorderIcon:C2,pulse:k2,spinning:R2,spin:O2},dg=2048,Js=16e3;class N2 extends wr.Component{constructor(i){super(i);we(this,"audioInput",null);we(this,"volume",null);we(this,"leftchannel",[]);we(this,"recorder",null);we(this,"recordingLength",0);we(this,"sampleRate",null);we(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const s=window.AudioContext||window.webkitAudioContext,l=new s;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(dg,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const s=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(s)),this.recordingLength+=dg}}handleClickSubmitAudio(){const i=P2(this.leftchannel,this.recordingLength),s=I2(i,this.sampleRate||0),l=A2(s);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){var i,s,l,u;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(s=this.volume)==null||s.disconnect(),(l=this.recorder)==null||l.disconnect(),this.mediaStream&&((u=this.mediaStream)==null||u.getAudioTracks().forEach(d=>{d.stop()}))}render(){return k.jsxs("div",{className:mn.audioRecorder,children:[this.state.recordingState==="none"&&k.jsx("button",{className:q(mn.recordButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[k.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"}),k.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&k.jsxs("svg",{className:mn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[k.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"}),k.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&k.jsxs("div",{className:mn.audioRecorder,children:[k.jsx("button",{className:q(mn.cancelButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[k.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"}),k.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),k.jsx("div",{className:mn.recorderIcon}),k.jsx("button",{className:q(mn.submitButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[k.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),k.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const A2=e=>{const n=new ArrayBuffer(44+e.length*2),i=new DataView(n);Ls(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),Ls(i,8,"WAVE"),Ls(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,Js,!0),i.setUint32(28,Js*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Ls(i,36,"data"),i.setUint32(40,e.length*2,!0);const s=e.length;let l=44;const u=1;for(let d=0;d<s;d++)i.setInt16(l,e[d]*(32767*u),!0),l+=2;return new Blob([i],{type:"audio/wav"})},Ls=(e,n,i)=>{for(let s=0;s<i.length;s++)e.setUint8(n+s,i.charCodeAt(s))},P2=(e,n)=>{const i=new Float32Array(n);let s=0;const l=e.length;for(let u=0;u<l;u++){const d=e[u];i.set(d,s),s+=d.length}return i},I2=(e,n)=>{if(Js===n)return e;const i=n/Js,s=Math.round(e.length/i),l=new Float32Array(s);let u=0,d=0;for(;u<l.length;){const h=Math.round((u+1)*i);let p=0,_=0;for(let y=d;y<h&&y<e.length;y++)p+=e[y],_++;l[u]=p/_,u++,d=h}return l},D2=({speechSupport:e,transcriptExportEnabled:n,disabled:i,onTextInput:s,onAudioRecorded:l,onOpenTranscriptExportModal:u})=>{const d=Ut(),[h,p]=U.useState(!1),_=U.useRef(null),y=()=>{const v=_.current;v&&v.value.trim().length>=1&&s(v.value.trim())&&(v.value="",v.style.height="",p(!1),v.focus())},w=v=>{v.preventDefault(),y()},m=v=>{const R=v.target.value.trim();p(R.length>0),v.target.style.height="";const{scrollHeight:C}=v.target;v.target.style.height=`${C>150?150:C}px`},E=v=>{v.code==="Enter"&&!v.shiftKey&&(v.repeat||y(),v.preventDefault())};return k.jsxs("form",{className:q(Xn.inputWrapper,"chat__textInput"),onSubmit:w,children:[k.jsx("div",{className:Xn.messageInputWrapper,children:k.jsx("textarea",{id:"user_input",ref:_,className:Xn.messageInput,tabIndex:0,placeholder:d("message-input-placeholder"),onChange:m,onKeyDown:E,"aria-label":d("message-input-label")})}),k.jsxs("div",{className:q(Xn.buttons,"chat__buttons"),children:[!h&&n&&k.jsx("button",{type:"button",className:q(Xn.button,"chat__button"),"aria-label":d("message-input.actions.export-transcript.label"),"data-title":d("message-input.actions.export-transcript.label"),tabIndex:0,onClick:u,children:k.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:k.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"})})}),h||!e||navigator.mediaDevices===void 0?k.jsx("button",{className:q(Xn.button,"chat__button"),type:"submit","aria-label":d("message-input.actions.submit.label"),"data-title":d("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:k.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:k.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&&k.jsx(N2,{translate:d,onAudioRecorded:l})]})]})},M2="_quickReplies_11l22_1",F2="_quickReply_11l22_9",hg={quickReplies:M2,quickReply:F2},L2=({quickReplies:e,onQuickReplyClick:n})=>e.length?k.jsx("div",{className:q(hg.quickReplies,"chat__quickReplies"),children:e.map(i=>k.jsx("button",{tabIndex:0,className:q(hg.quickReply,it.button,"chat__button","chat__quickReply"),onClick:()=>n(i),children:i.label},i.label))}):null,pg=5e3,B2=1e3,j2=({isBotTyping:e,quickReplies:n,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:d,setShowRatingOverlay:h,onTextInput:p,onRate:_,onQuickReplyClick:y,onAudioRecorded:w,onOpenTranscriptExportModal:m})=>{const[E,v]=U.useState(!1),R=U.useRef(),C=U.useRef(0);U.useEffect(()=>{if(E&&!e){const N=R.current?Date.now()-R.current:0;N>pg?v(!1):setTimeout(()=>{v(!1)},pg-N)}},[E,e]),U.useEffect(()=>{E&&(R.current=Date.now())},[E]);const O=N=>{const b=Date.now()-C.current<B2;return e||b?(v(!0),!1):(p(N),C.current=Date.now(),!0)};return k.jsxs("div",{className:q(BC.inputContainer),children:[k.jsx(L2,{quickReplies:n,onQuickReplyClick:y}),k.jsx(UC,{visible:E}),!E&&k.jsx(g2,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:_,showRatingOverlay:d,setShowRatingOverlay:h}),k.jsx(D2,{onTextInput:O,onAudioRecorded:w,speechSupport:i,onOpenTranscriptExportModal:m,transcriptExportEnabled:s,disabled:E})]})},z2=({clientName:e,messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,onMessageFromUser:_,onRate:y,onQuickReplyClick:w,onButtonClick:m,onLinkClick:E,onAudioRecorded:v,onTranscriptExport:R,onPdfExport:C,onTranscriptItemReaction:O})=>{const N=$c(),b=_n(te=>te.connection.connectionState),[T,x]=U.useState(!1),[L,G]=U.useState(!1),W=d.email||d.pdf,he=n.filter(te=>te.sender.type===Yy.GUEST).length;return U.useEffect(()=>{if(b===vn.CONNECTED){const te=Wc.parse(window.location.search);N(Ky(e,te))}},[e,b,N]),k.jsxs("div",{children:[k.jsxs("div",{className:`${Dw.chatcontent} ${T||L?it.accessabilityHidden:""}`,children:[k.jsx(yC,{messages:n,isBotTyping:s,showGeneralConditions:p,onButtonClick:m,onLinkClick:E,onTranscriptItemReaction:O}),k.jsx(j2,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:he,speechSupport:u,transcriptExportEnabled:W,conversationRating:T?{enabled:!1}:h,showRatingOverlay:L,setShowRatingOverlay:G,onRate:y,onQuickReplyClick:w,onTextInput:_,onAudioRecorded:v,onOpenTranscriptExportModal:()=>x(!T)}),k.jsx(RC,{})]}),W&&k.jsx(FC,{methods:d,visible:T,onEmailExport:R,onPdfExport:C,onClose:()=>x(!1)}),k.jsx(xC,{contentUrl:l})]})},U2=e=>{const{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p}=e.chat;return{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p}},H2=e=>({onRestartChat:(n,i)=>e(hf(n,i)),onMessageFromUser:n=>e(Ny(n)),onRate:(n,i)=>e(SS(n,i)),onAudioRecorded:n=>e(pS(n)),onActionFromUser:n=>e(n),onQuickReplyClick:n=>e(Oy(n)),onNluEvent:n=>e(Iy(n)),onButtonClick:n=>e(xS(n)),onLinkClick:n=>e(TS(n)),onTranscriptExport:n=>e(vS(n)),onPdfExport:()=>e(ES()),onTranscriptItemReaction:(n,i)=>e(ge.transcriptItemGuestReaction(n,i||null))}),G2=V1(U2,H2)(z2),$2="_chatwindow_phukm_1",q2="_chatcontent_phukm_13",V2={chatwindow:$2,chatcontent:q2},W2="_container_ophni_2",X2="_body_ophni_8",Q2="_intro_ophni_13",K2="_footer_ophni_34",Y2="_startChatButton_ophni_38",Z2="_formFields_ophni_42",J2="_formField_ophni_42",ek="_radio_ophni_54",tk="_checkbox_ophni_61",rk="_input_ophni_69",nk="_inputLabel_ophni_99",ik="_selectWrapper_ophni_103",ok="_select_ophni_103",sk="_selectLabel_ophni_145",pt={container:W2,body:X2,intro:Q2,footer:K2,startChatButton:Y2,formFields:Z2,formField:J2,radio:ek,checkbox:tk,input:rk,inputLabel:nk,selectWrapper:ik,select:ok,selectLabel:sk},ak=({name:e,label:n,defaultValue:i,required:s,onChange:l})=>{const u=d=>{l(d.currentTarget.checked?"true":"false")};return k.jsxs("label",{className:q(pt.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[k.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),k.jsx("div",{children:n})]})},lk=({type:e,name:n,label:i,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:_,onChange:y})=>{const w=m=>{y(m.target.value)};return k.jsxs("label",{className:q(pt.input,"chat__startScreen__input"),htmlFor:n,children:[k.jsx("div",{className:q(pt.inputLabel),children:i}),k.jsx("input",{type:e,id:n,name:n,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:_,onChange:w})]})},uk=({name:e,value:n,label:i,defaultChecked:s,required:l,onChange:u})=>{const d=`${e}-${n}`,h=p=>{u(p.target.value)};return k.jsxs("label",{className:q(pt.radio,"chat__startScreen__radio"),htmlFor:d,children:[k.jsx("input",{id:d,type:"radio",name:e,value:n,defaultChecked:s,required:l,onChange:h}),k.jsx("span",{className:q(pt.label),children:i})]})},ck=({name:e,label:n,defaultValue:i,required:s,multiple:l,options:u,onChange:d})=>{const h=p=>{d(p.target.value)};return k.jsxs("label",{className:q(pt.select,"chat__startScreen__select"),htmlFor:e,children:[k.jsx("div",{className:q(pt.selectLabel),children:n}),k.jsx("div",{className:q(pt.selectWrapper),children:k.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,_])=>k.jsx("option",{value:p,selected:_===i,children:_}))})})]})},fk="start-screen.intro",dk="start-screen.start-chat",Yt="start-screen.form",mg=`${Yt}.fields`,hk=()=>{const e=Ut(),n=$c(),[i,s]=U.useState({}),l=()=>{const y=Object.entries(i).reduce((w,[m,E])=>({...w,[m]:E.value}),{});n(dw(y))},u=e(fk),d=e(dk),h=U.useMemo(()=>{var y;return((y=e(mg))==null?void 0:y.split(";").map(w=>w.trim()))??[]},[e(mg)]);U.useEffect(()=>{h.length&&Object.keys(i).length===0&&s(h.reduce((y,w)=>({...y,[w]:mk(w,e)}),{}))},[e,h,i]);const p=y=>{y.preventDefault(),l()},_=y=>w=>{s(m=>({...m,[y]:{...m[y],value:w}}))};return k.jsxs("form",{onSubmit:p,className:q(pt.container,"chat__startScreen"),children:[k.jsxs("div",{className:q(pt.body,"chat__startScreen__body"),children:[u&&k.jsx("div",{className:q(pt.intro,"chat__startScreen__intro"),children:k.jsx(Kr,{options:{overrides:{a:pk}},children:u})}),k.jsx("div",{className:q(pt.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:y,name:w,label:m,placeholder:E,defaultValue:v,options:R,required:C,multiple:O,min:N,max:b,pattern:T})=>k.jsx("div",{className:q(pt.formField,"chat__startScreen__field"),children:(()=>{switch(y){case"radio":return k.jsxs(k.Fragment,{children:[k.jsx("div",{children:m}),Object.entries(R||{}).map(([x,L])=>k.jsx(uk,{name:w,value:x,label:L,defaultChecked:x===v,required:C,onChange:_(w)}))]});case"checkbox":return k.jsx(ak,{name:w,label:m,defaultValue:v,required:C,onChange:_(w)});case"select":return k.jsx(ck,{name:w,label:m,defaultValue:v,required:C,multiple:O,options:R,onChange:_(w)});default:return k.jsx(lk,{type:y,name:w,label:m,placeholder:E,defaultValue:v,required:C,multiple:O,min:N,max:b,pattern:T,onChange:_(w)})}})()},w))})]}),k.jsx("div",{className:q(pt.footer,"chat__startScreen__footer"),children:k.jsx("button",{type:"submit",className:q(it.button,it.buttonPrimary,pt.startChatButton),children:d})})]})},pk=({title:e,href:n,children:i})=>k.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),mk=(e,n)=>{const i=n(`${Yt}.${e}.type`)||"text",s=n(`${Yt}.${e}.required`)==="true",l=n(`${Yt}.${e}.multiple`)==="true",u=n(`${Yt}.${e}.placeholder`),d=n(`${Yt}.${e}.label`)||"",h=n(`${Yt}.${e}.defaultValue`),p=n(`${Yt}.${e}.min`),_=n(`${Yt}.${e}.max`),y=n(`${Yt}.${e}.pattern`),w=yk(n(`${Yt}.${e}.options`));return{name:e,label:d,placeholder:u,value:gk(i,h,w)||"",defaultValue:h,options:w,type:i,required:s,multiple:l,min:p,max:_,pattern:y}},gk=(e,n,i)=>n||e==="select"&&Object.keys(i)[0]||"",yk=(e="")=>e.split(";").map(n=>n.trim()).reduce((n,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...n,[s]:l}},{}),vk=()=>{const e=ra();U.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Qn={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"},_k=({clientName:e})=>{vk();const n=$c(),i=_n(y=>y.intl.messages),s=Ut(),l=_n(y=>y.startScreen.useStartScreen),u=_n(y=>y.startScreen.startScreenStatus),[d,h]=U.useState(void 0);U.useEffect(()=>{const y=Wc.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const w=m=>{switch(m.data.type){case Qn.TRIGGER_ACTION:n(m.data.action);break;case Qn.TRIGGER_STORY:n(Iy(m.data.story));break;case Qn.ON_CHAT_WINDOW_OPEN:n({type:"webclient.chatwindow.opened"});break;case Qn.ON_CHAT_WINDOW_CLOSE:n({type:"webclient.chatwindow.closed"});break;case Qn.CHAT_MESSAGE_FROM_GUEST:n(Ny(m.data.text));break;case Qn.RESTART_CHAT:n(hf(e,y));break}};return n(bw(e,y)),window.addEventListener("message",m=>w(m),!1),()=>window.removeEventListener("message",w)},[e,n]),U.useEffect(()=>{const y=s("header.restart-chat"),w=s("header.close-chat");n(CS({header:{restartChat:y,closeChat:w}}))},[i,n,s]);const p=l===void 0,_=l===!1||u==="HIDDEN";return k.jsx("div",{className:q(V2.chatwindow,"chat__chatwindow",d),children:p?null:_?k.jsx(G2,{clientName:e}):k.jsx(hk,{})})},Ek=()=>{const e=_y(),n=_n(s=>s.intl.locale),i=_n(s=>s.intl.messages);return k.jsx(Rb,{locale:n,messages:i,children:k.jsx("div",{className:Nb.app,children:k.jsx(_k,{clientName:e})})})};var Hu,gg;function gf(){if(gg)return Hu;gg=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return Hu=e,Hu}var Gu,yg;function bk(){if(yg)return Gu;yg=1;var e=typeof hs=="object"&&hs&&hs.Object===Object&&hs;return Gu=e,Gu}var $u,vg;function xv(){if(vg)return $u;vg=1;var e=bk(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return $u=i,$u}var qu,_g;function Sk(){if(_g)return qu;_g=1;var e=xv(),n=function(){return e.Date.now()};return qu=n,qu}var Vu,Eg;function wk(){if(Eg)return Vu;Eg=1;var e=/\s/;function n(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return Vu=n,Vu}var Wu,bg;function xk(){if(bg)return Wu;bg=1;var e=wk(),n=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(n,"")}return Wu=i,Wu}var Xu,Sg;function Tv(){if(Sg)return Xu;Sg=1;var e=xv(),n=e.Symbol;return Xu=n,Xu}var Qu,wg;function Tk(){if(wg)return Qu;wg=1;var e=Tv(),n=Object.prototype,i=n.hasOwnProperty,s=n.toString,l=e?e.toStringTag:void 0;function u(d){var h=i.call(d,l),p=d[l];try{d[l]=void 0;var _=!0}catch{}var y=s.call(d);return _&&(h?d[l]=p:delete d[l]),y}return Qu=u,Qu}var Ku,xg;function Ck(){if(xg)return Ku;xg=1;var e=Object.prototype,n=e.toString;function i(s){return n.call(s)}return Ku=i,Ku}var Yu,Tg;function kk(){if(Tg)return Yu;Tg=1;var e=Tv(),n=Tk(),i=Ck(),s="[object Null]",l="[object Undefined]",u=e?e.toStringTag:void 0;function d(h){return h==null?h===void 0?l:s:u&&u in Object(h)?n(h):i(h)}return Yu=d,Yu}var Zu,Cg;function Rk(){if(Cg)return Zu;Cg=1;function e(n){return n!=null&&typeof n=="object"}return Zu=e,Zu}var Ju,kg;function Ok(){if(kg)return Ju;kg=1;var e=kk(),n=Rk(),i="[object Symbol]";function s(l){return typeof l=="symbol"||n(l)&&e(l)==i}return Ju=s,Ju}var ec,Rg;function Nk(){if(Rg)return ec;Rg=1;var e=xk(),n=gf(),i=Ok(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function p(_){if(typeof _=="number")return _;if(i(_))return s;if(n(_)){var y=typeof _.valueOf=="function"?_.valueOf():_;_=n(y)?y+"":y}if(typeof _!="string")return _===0?_:+_;_=e(_);var w=u.test(_);return w||d.test(_)?h(_.slice(2),w?2:8):l.test(_)?s:+_}return ec=p,ec}var tc,Og;function Ak(){if(Og)return tc;Og=1;var e=gf(),n=Sk(),i=Nk(),s="Expected a function",l=Math.max,u=Math.min;function d(h,p,_){var y,w,m,E,v,R,C=0,O=!1,N=!1,b=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(_)&&(O=!!_.leading,N="maxWait"in _,m=N?l(i(_.maxWait)||0,p):m,b="trailing"in _?!!_.trailing:b);function T(le){var ze=y,Pe=w;return y=w=void 0,C=le,E=h.apply(Pe,ze),E}function x(le){return C=le,v=setTimeout(W,p),O?T(le):E}function L(le){var ze=le-R,Pe=le-C,$e=p-ze;return N?u($e,m-Pe):$e}function G(le){var ze=le-R,Pe=le-C;return R===void 0||ze>=p||ze<0||N&&Pe>=m}function W(){var le=n();if(G(le))return he(le);v=setTimeout(W,L(le))}function he(le){return v=void 0,b&&y?T(le):(y=w=void 0,E)}function te(){v!==void 0&&clearTimeout(v),C=0,y=R=w=v=void 0}function ce(){return v===void 0?E:he(n())}function pe(){var le=n(),ze=G(le);if(y=arguments,w=this,R=le,ze){if(v===void 0)return x(R);if(N)return clearTimeout(v),v=setTimeout(W,p),T(R)}return v===void 0&&(v=setTimeout(W,p)),E}return pe.cancel=te,pe.flush=ce,pe}return tc=d,tc}var rc,Ng;function Pk(){if(Ng)return rc;Ng=1;var e=Ak(),n=gf(),i="Expected a function";function s(l,u,d){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(i);return n(d)&&(h="leading"in d?!!d.leading:h,p="trailing"in d?!!d.trailing:p),e(l,u,{leading:h,maxWait:u,trailing:p})}return rc=s,rc}var Ik=Pk();const Dk=ea(Ik);var nc,Ag;function Mk(){if(Ag)return nc;Ag=1;function e(E,v){var R,C;if(typeof v=="function")C=v(E),C!==void 0&&(E=C);else if(Array.isArray(v))for(R=0;R<v.length;R++)C=v[R](E),C!==void 0&&(E=C);return E}function n(E,v){return E[0]==="-"&&Array.isArray(v)&&/^-\d+$/.test(E)?v.length+parseInt(E,10):E}function i(E){return/^\d+$/.test(E)}function s(E){return Object.prototype.toString.call(E)==="[object Object]"}function l(E){return Object(E)===E}function u(E){return Object.keys(E).length===0}var d=["__proto__","prototype","constructor"],h=function(E){return d.indexOf(E)===-1};function p(E,v){E.indexOf("[")>=0&&(E=E.replace(/\[/g,v).replace(/]/g,""));var R=E.split(v),C=R.filter(h);if(C.length!==R.length)throw Error("Refusing to update blacklisted property "+E);return R}var _=Object.prototype.hasOwnProperty;function y(E,v,R,C){if(!(this instanceof y))return new y(E,v,R,C);typeof v>"u"&&(v=!1),typeof R>"u"&&(R=!0),typeof C>"u"&&(C=!0),this.separator=E||".",this.override=v,this.useArray=R,this.useBrackets=C,this.keepArray=!1,this.cleanup=[]}var w=new y(".",!1,!0,!0);function m(E){return function(){return w[E].apply(w,arguments)}}return y.prototype._fill=function(E,v,R,C){var O=E.shift();if(E.length>0){if(v[O]=v[O]||(this.useArray&&i(E[0])?[]:{}),!l(v[O]))if(this.override)v[O]={};else{if(!(l(R)&&u(R)))throw new Error("Trying to redefine `"+O+"` which is a "+typeof v[O]);return}this._fill(E,v[O],R,C)}else{if(!this.override&&l(v[O])&&!u(v[O])){if(!(l(R)&&u(R)))throw new Error("Trying to redefine non-empty obj['"+O+"']");return}v[O]=e(R,C)}},y.prototype.object=function(E,v){var R=this;return Object.keys(E).forEach(function(C){var O=v===void 0?null:v[C],N=p(C,R.separator).join(R.separator);N.indexOf(R.separator)!==-1?(R._fill(N.split(R.separator),E,E[C],O),delete E[C]):E[C]=e(E[C],O)}),E},y.prototype.str=function(E,v,R,C){var O=p(E,this.separator).join(this.separator);return E.indexOf(this.separator)!==-1?this._fill(O.split(this.separator),R,v,C):R[E]=e(v,C),R},y.prototype.pick=function(E,v,R,C){var O,N,b,T,x;for(N=p(E,this.separator),O=0;O<N.length;O++)if(T=n(N[O],v),v&&typeof v=="object"&&T in v){if(O===N.length-1)return R?(b=v[T],C&&Array.isArray(v)?v.splice(T,1):delete v[T],Array.isArray(v)&&(x=N.slice(0,-1).join("."),this.cleanup.indexOf(x)===-1&&this.cleanup.push(x)),b):v[T];v=v[T]}else return;return R&&Array.isArray(v)&&(v=v.filter(function(L){return L!==void 0})),v},y.prototype.delete=function(E,v){return this.remove(E,v,!0)},y.prototype.remove=function(E,v,R){var C;if(this.cleanup=[],Array.isArray(E)){for(C=0;C<E.length;C++)this.pick(E[C],v,!0,R);return R||this._cleanup(v),v}else return this.pick(E,v,!0,R)},y.prototype._cleanup=function(E){var v,R,C,O;if(this.cleanup.length){for(R=0;R<this.cleanup.length;R++)C=this.cleanup[R].split("."),O=C.splice(0,-1).join("."),v=O?this.pick(O,E):E,v=v[C[0]].filter(function(N){return N!==void 0}),this.set(this.cleanup[R],v,E);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(E,v,R,C,O){return typeof C=="function"||Array.isArray(C)?this.set(v,e(this.pick(E,R,!0),C),R,O):(O=C,this.set(v,this.pick(E,R,!0),R,O)),R},y.prototype.transfer=function(E,v,R,C,O,N){return typeof O=="function"||Array.isArray(O)?this.set(v,e(this.pick(E,R,!0),O),C,N):(N=O,this.set(v,this.pick(E,R,!0),C,N)),C},y.prototype.copy=function(E,v,R,C,O,N){return typeof O=="function"||Array.isArray(O)?this.set(v,e(JSON.parse(JSON.stringify(this.pick(E,R,!1))),O),C,N):(N=O,this.set(v,this.pick(E,R,!1),C,N)),C},y.prototype.set=function(E,v,R,C){var O,N,b,T;if(typeof v>"u")return R;for(b=p(E,this.separator),O=0;O<b.length;O++){if(T=b[O],O===b.length-1)if(C&&s(v)&&s(R[T]))for(N in v)_.call(v,N)&&(R[T][N]=v[N]);else if(C&&Array.isArray(R[T])&&Array.isArray(v))for(var x=0;x<v.length;x++)R[b[O]].push(v[x]);else R[T]=v;else(!_.call(R,T)||!s(R[T])&&!Array.isArray(R[T]))&&(/^\d+$/.test(b[O+1])?R[T]=[]:R[T]={});R=R[T]}return R},y.prototype.transform=function(E,v,R){return v=v||{},R=R||{},Object.keys(E).forEach((function(C){this.set(E[C],this.pick(C,v),R)}).bind(this)),R},y.prototype.dot=function(E,v,R){v=v||{},R=R||[];var C=Array.isArray(E);return Object.keys(E).forEach((function(O){var N=C&&this.useBrackets?"["+O+"]":O;if(l(E[O])&&(s(E[O])&&!u(E[O])||Array.isArray(E[O])&&!this.keepArray&&E[O].length!==0))if(C&&this.useBrackets){var b=R[R.length-1]||"";return this.dot(E[O],v,R.slice(0,-1).concat(b+N))}else return this.dot(E[O],v,R.concat(N));else C&&this.useBrackets?v[R.join(this.separator).concat("["+O+"]")]=E[O]:v[R.concat(N).join(this.separator)]=E[O]}).bind(this)),v},y.pick=m("pick"),y.move=m("move"),y.transfer=m("transfer"),y.transform=m("transform"),y.copy=m("copy"),y.object=m("object"),y.str=m("str"),y.set=m("set"),y.delete=m("delete"),y.del=y.remove=m("remove"),y.dot=m("dot"),["override","overwrite"].forEach(function(E){Object.defineProperty(y,E,{get:function(){return w.override},set:function(v){w.override=!!v}})}),["useArray","keepArray","useBrackets"].forEach(function(E){Object.defineProperty(y,E,{get:function(){return w[E]},set:function(v){w[E]=v}})}),y._process=e,nc=y,nc}var Fk=Mk();const Cv={"message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","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:
98
-
99
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
100
- - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.close-chat":"Chat minimieren"},Lk={"message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","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:
101
-
102
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
103
- - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.close-chat":"Minimize chat"},Bk={"message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","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:
104
-
105
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
106
- - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.close-chat":"Minimiser le chat"},jk={"message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","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:
107
-
108
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
109
- - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.close-chat":"Ridurre al minimo la chat"},zk=["de","en","fr","it"],kv={locale:"de",messages:Cv},Uk=(e,n)=>{if(zk.includes(e)){const i=Hk(e),s=Fk.dot(n);return{...i,...s}}return n},Hk=e=>{switch(e.toString()){case"en":return Lk;case"fr":return Bk;case"it":return jk;default:return Cv}},Gk=(e=$k,n)=>{switch(n.type){case lf:return Object.assign({},e,{connectionState:vn.CONNECTING});case uf:return Object.assign({},e,{connectionState:vn.CONNECTED});case cf:return Object.assign({},e,{connectionState:vn.DISCONNECTED});case ff:return Object.assign({},e,{connectionState:vn.RECONNECTED});case df:return Object.assign({},e,{sessionId:n.sessionId});case la:return Object.assign({},e,{sessionId:n.payload.sessionId,userId:n.payload.userId});case ua:return Object.assign({},e,{sessionId:void 0});default:return e}},$k={connectionState:vn.DISCONNECTED,sessionId:void 0,userId:void 0},qk=(e=Ig,n)=>{switch(n.type){case Qy:return Ig;case la:return Kn({type:"webclient.chat.started"}),e;case ua:return Kn({type:"webclient.chat.ended"}),e;case ge.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case ge.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case ge.ActionTypes.MESSAGE_FROM_GUEST:case ge.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Pg(e,n.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{Kn(n);const i=Object.assign({},n.message,{_id:n.meta.actionId}),s=e.messages.filter(l=>l._id===n.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:s?e.messages:e.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Kc:{const i=n.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:i,quickReplies:(s==null?void 0:s.quickReplies)||[]})}case na:return Kn(n.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return Kn(n.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:n.payload.parameters.contentUrl});case ge.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case ge.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:n.payload.locale});case Ay:return Kn(n),e;case Zc:return Object.assign({},e,{speechSupport:!0});case ef:{const i=new ge.TextMessage(n.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Rc()});return Pg(e,s)}case Jc:return Object.assign({},e,{transcriptExportEnabled:n.methods});case tf:return Object.assign({},e,{showGeneralConditions:!0});case ge.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=e.messages.map(s=>s._id===n.payload.actionId?Object.assign({},s,{reaction:n.payload.reaction}):s);return Object.assign({},e,{messages:i})}case rf:{const i={enabled:!0,rating:n.payload.rating};return Object.assign({},e,{conversationRating:i})}case ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...e.conversationRating,rating:n.payload};return Object.assign({},e,{conversationRating:i})}default:return e}},Pg=(e,n)=>{const i=e.messages[e.messages.length-1],s=(i==null?void 0:i.text)===n.text;return i&&i.sender.type===n.sender.type&&s?e:Object.assign({},e,{messages:e.messages.concat([n]),quickReplies:[]})},Kn=e=>{var n;Vk()?(n=window.top)==null||n.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},Vk=()=>typeof window<"u"&&window.self!==window.top,Ig={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1}},Rv=Wy({name:"intl",initialState:kv,reducers:{updateIntl:(e,n)=>{e.locale=n.payload.language,e.messages=n.payload.messages}}}),{updateIntl:Wk}=Rv.actions,Xk=Rv.reducer,Qk=Fy({chat:qk,startScreen:pw,connection:Gk,intl:Xk}),Ov="bf-webclient-state-last-saved-at",Nv="bf-webclient-state",Kk=e=>{try{if(!Jk())return;const n=Dg(e,Ov);if(Zk(n))return;{const i=Dg(e,Nv);return i===null?void 0:JSON.parse(i)}}catch(n){console.error(n);return}},Yk=(e,n)=>{try{const i=JSON.stringify(n);Mg(e,Nv,i);const s=new Date().toISOString();Mg(e,Ov,s)}catch(i){console.error(i)}},Zk=e=>{if(e===null)return!1;const n=new Date(e);return n.setHours(n.getHours()+12),new Date>n},Jk=()=>typeof localStorage<"u",Dg=(e,n)=>localStorage.getItem(`${e}_${n}`),Mg=(e,n,i)=>localStorage.setItem(`${e}_${n}`,i),fr=Object.create(null);fr.open="0";fr.close="1";fr.ping="2";fr.pong="3";fr.message="4";fr.upgrade="5";fr.noop="6";const Hs=Object.create(null);Object.keys(fr).forEach(e=>{Hs[fr[e]]=e});const Ac={type:"error",data:"parser error"},Av=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Pv=typeof ArrayBuffer=="function",Iv=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,yf=({type:e,data:n},i,s)=>Av&&n instanceof Blob?i?s(n):Fg(n,s):Pv&&(n instanceof ArrayBuffer||Iv(n))?i?s(n):Fg(new Blob([n]),s):s(fr[e]+(n||"")),Fg=(e,n)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];n("b"+(s||""))},i.readAsDataURL(e)};function Lg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ic;function eR(e,n){if(Av&&e.data instanceof Blob)return e.data.arrayBuffer().then(Lg).then(n);if(Pv&&(e.data instanceof ArrayBuffer||Iv(e.data)))return n(Lg(e.data));yf(e,!1,i=>{ic||(ic=new TextEncoder),n(ic.encode(i))})}const Bg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Bg.length;e++)Yi[Bg.charCodeAt(e)]=e;const tR=e=>{let n=e.length*.75,i=e.length,s,l=0,u,d,h,p;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const _=new ArrayBuffer(n),y=new Uint8Array(_);for(s=0;s<i;s+=4)u=Yi[e.charCodeAt(s)],d=Yi[e.charCodeAt(s+1)],h=Yi[e.charCodeAt(s+2)],p=Yi[e.charCodeAt(s+3)],y[l++]=u<<2|d>>4,y[l++]=(d&15)<<4|h>>2,y[l++]=(h&3)<<6|p&63;return _},rR=typeof ArrayBuffer=="function",vf=(e,n)=>{if(typeof e!="string")return{type:"message",data:Dv(e,n)};const i=e.charAt(0);return i==="b"?{type:"message",data:nR(e.substring(1),n)}:Hs[i]?e.length>1?{type:Hs[i],data:e.substring(1)}:{type:Hs[i]}:Ac},nR=(e,n)=>{if(rR){const i=tR(e);return Dv(i,n)}else return{base64:!0,data:e}},Dv=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Mv="",iR=(e,n)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,d)=>{yf(u,!1,h=>{s[d]=h,++l===i&&n(s.join(Mv))})})},oR=(e,n)=>{const i=e.split(Mv),s=[];for(let l=0;l<i.length;l++){const u=vf(i[l],n);if(s.push(u),u.type==="error")break}return s};function sR(){return new TransformStream({transform(e,n){eR(e,i=>{const s=i.length;let l;if(s<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,s);else if(s<65536){l=new Uint8Array(3);const u=new DataView(l.buffer);u.setUint8(0,126),u.setUint16(1,s)}else{l=new Uint8Array(9);const u=new DataView(l.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(l[0]|=128),n.enqueue(l),n.enqueue(i)})}})}let oc;function Bs(e){return e.reduce((n,i)=>n+i.length,0)}function js(e,n){if(e[0].length===n)return e.shift();const i=new Uint8Array(n);let s=0;for(let l=0;l<n;l++)i[l]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),i}function aR(e,n){oc||(oc=new TextDecoder);const i=[];let s=0,l=-1,u=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(Bs(i)<1)break;const p=js(i,1);u=(p[0]&128)===128,l=p[0]&127,l<126?s=3:l===126?s=1:s=2}else if(s===1){if(Bs(i)<2)break;const p=js(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(Bs(i)<8)break;const p=js(i,8),_=new DataView(p.buffer,p.byteOffset,p.length),y=_.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Ac);break}l=y*Math.pow(2,32)+_.getUint32(4),s=3}else{if(Bs(i)<l)break;const p=js(i,l);h.enqueue(vf(u?p:oc.decode(p),n)),s=0}if(l===0||l>e){h.enqueue(Ac);break}}}})}const Fv=4;function We(e){if(e)return lR(e)}function lR(e){for(var n in We.prototype)e[n]=We.prototype[n];return e}We.prototype.on=We.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};We.prototype.once=function(e,n){function i(){this.off(e,i),n.apply(this,arguments)}return i.fn=n,this.on(e,i),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+e];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,l=0;l<i.length;l++)if(s=i[l],s===n||s.fn===n){i.splice(l,1);break}return i.length===0&&delete this._callbacks["$"+e],this};We.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),i=this._callbacks["$"+e],s=1;s<arguments.length;s++)n[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,l=i.length;s<l;++s)i[s].apply(this,n)}return this};We.prototype.emitReserved=We.prototype.emit;We.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};We.prototype.hasListeners=function(e){return!!this.listeners(e).length};const fa=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,i)=>i(n,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),uR="arraybuffer";function Lv(e,...n){return n.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const cR=Bt.setTimeout,fR=Bt.clearTimeout;function da(e,n){n.useNativeTimers?(e.setTimeoutFn=cR.bind(Bt),e.clearTimeoutFn=fR.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const dR=1.33;function hR(e){return typeof e=="string"?pR(e):Math.ceil((e.byteLength||e.size)*dR)}function pR(e){let n=0,i=0;for(let s=0,l=e.length;s<l;s++)n=e.charCodeAt(s),n<128?i+=1:n<2048?i+=2:n<55296||n>=57344?i+=3:(s++,i+=4);return i}function Bv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mR(e){let n="";for(let i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n}function gR(e){let n={},i=e.split("&");for(let s=0,l=i.length;s<l;s++){let u=i[s].split("=");n[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return n}class yR extends Error{constructor(n,i,s){super(n),this.description=i,this.context=s,this.type="TransportError"}}class _f extends We{constructor(n){super(),this.writable=!1,da(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,i,s){return super.emitReserved("error",new yR(n,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const i=vf(n,this.socket.binaryType);this.onPacket(i)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,i={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const i=mR(n);return i.length?"?"+i:""}}class vR extends _f{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const i=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};oR(n,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,iR(n,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Bv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(n,i)}}let jv=!1;try{jv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const _R=jv;function ER(){}class bR extends vR{constructor(n){if(super(n),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}}doWrite(n,i){const s=this.request({method:"POST",data:n});s.on("success",i),s.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=n}}class ur extends We{constructor(n,i,s){super(),this.createRequest=n,da(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var n;const i=Lv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let l in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(l)&&s.setRequestHeader(l,this._opts.extraHeaders[l])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var l;s.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}typeof document<"u"&&(this._index=ur.requestsCount++,ur.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ER,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ur.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ur.requestsCount=0;ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",jg);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,jg,!1)}}function jg(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const SR=function(){const e=zv({xdomain:!1});return e&&e.responseType!==null}();class wR extends bR{constructor(n){super(n);const i=n&&n.forceBase64;this.supportsBinary=SR&&!i}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new ur(zv,this.uri(),n)}}function zv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||_R))return new XMLHttpRequest}catch{}if(!n)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Uv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class xR extends _f{get name(){return"websocket"}doOpen(){const n=this.uri(),i=this.opts.protocols,s=Uv?{}:Lv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,i,s)}catch(l){return this.emitReserved("error",l)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;yf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&fa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Bv()),this.supportsBinary||(i.b64=1),this.createUri(n,i)}}const sc=Bt.WebSocket||Bt.MozWebSocket;class TR extends xR{createSocket(n,i,s){return Uv?new sc(n,i,s):i?new sc(n,i):new sc(n)}doWrite(n,i){this.ws.send(i)}}class CR extends _f{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const i=aR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=n.readable.pipeThrough(i).getReader(),l=sR();l.readable.pipeTo(n.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;this._writer.write(s).then(()=>{l&&fa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const kR={websocket:TR,webtransport:CR,polling:wR},RR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,OR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pc(e){if(e.length>8e3)throw"URI too long";const n=e,i=e.indexOf("["),s=e.indexOf("]");i!=-1&&s!=-1&&(e=e.substring(0,i)+e.substring(i,s).replace(/:/g,";")+e.substring(s,e.length));let l=RR.exec(e||""),u={},d=14;for(;d--;)u[OR[d]]=l[d]||"";return i!=-1&&s!=-1&&(u.source=n,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=NR(u,u.path),u.queryKey=AR(u,u.query),u}function NR(e,n){const i=/\/{2,9}/g,s=n.replace(i,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&s.splice(0,1),n.slice(-1)=="/"&&s.splice(s.length-1,1),s}function AR(e,n){const i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Ic=typeof addEventListener=="function"&&typeof removeEventListener=="function",Gs=[];Ic&&addEventListener("offline",()=>{Gs.forEach(e=>e())},!1);class Yr extends We{constructor(n,i){if(super(),this.binaryType=uR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(i=n,n=null),n){const s=Pc(n);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=Pc(i.host).host);da(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const l=s.prototype.name;this.transports.push(l),this._transportsByName[l]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=gR(this.opts.query)),Ic&&(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"})},Gs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const i=Object.assign({},this.opts.query);i.EIO=Fv,i.transport=n,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Yr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(n);i.open(),this.setTransport(i)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Yr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=n.data,this._onError(i);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),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 n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const l=this.writeBuffer[s].data;if(l&&(i+=hR(l)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,fa(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,i,s){return this._sendPacket("message",n,i,s),this}send(n,i,s){return this._sendPacket("message",n,i,s),this}_sendPacket(n,i,s,l){if(typeof i=="function"&&(l=i,i=void 0),typeof s=="function"&&(l=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const u={type:n,data:i,options:s};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),n()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():n()}):this.upgrading?s():n()),this}_onError(n){if(Yr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ic&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Gs.indexOf(this._offlineEventListener);s!==-1&&Gs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,i),this.writeBuffer=[],this._prevBufferLen=0}}}Yr.protocol=Fv;class PR extends Yr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let i=this.createTransport(n),s=!1;Yr.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",w=>{if(!s)if(w.type==="pong"&&w.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Yr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=i.name,this.emitReserved("upgradeError",m)}}))};function u(){s||(s=!0,y(),i.close(),i=null)}const d=w=>{const m=new Error("probe error: "+w);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){d("transport closed")}function p(){d("socket closed")}function _(w){i&&w.name!==i.name&&u()}const y=()=>{i.removeListener("open",l),i.removeListener("error",d),i.removeListener("close",h),this.off("close",p),this.off("upgrading",_)};i.once("open",l),i.once("error",d),i.once("close",h),this.once("close",p),this.once("upgrading",_),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const i=[];for(let s=0;s<n.length;s++)~this.transports.indexOf(n[s])&&i.push(n[s]);return i}}let IR=class extends PR{constructor(n,i={}){const s=typeof n=="object"?n:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(l=>kR[l]).filter(l=>!!l)),super(n,s)}};function DR(e,n="",i){let s=e;i=i||typeof location<"u"&&location,e==null&&(e=i.protocol+"//"+i.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=i.protocol+e:e=i.host+e),/^(https?|wss?):\/\//.test(e)||(typeof i<"u"?e=i.protocol+"//"+e:e="https://"+e),s=Pc(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const u=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+u+":"+s.port+n,s.href=s.protocol+"://"+u+(i&&i.port===s.port?"":":"+s.port),s}const MR=typeof ArrayBuffer=="function",FR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Hv=Object.prototype.toString,LR=typeof Blob=="function"||typeof Blob<"u"&&Hv.call(Blob)==="[object BlobConstructor]",BR=typeof File=="function"||typeof File<"u"&&Hv.call(File)==="[object FileConstructor]";function Ef(e){return MR&&(e instanceof ArrayBuffer||FR(e))||LR&&e instanceof Blob||BR&&e instanceof File}function $s(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if($s(e[i]))return!0;return!1}if(Ef(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return $s(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&$s(e[i]))return!0;return!1}function jR(e){const n=[],i=e.data,s=e;return s.data=Dc(i,n),s.attachments=n.length,{packet:s,buffers:n}}function Dc(e,n){if(!e)return e;if(Ef(e)){const i={_placeholder:!0,num:n.length};return n.push(e),i}else if(Array.isArray(e)){const i=new Array(e.length);for(let s=0;s<e.length;s++)i[s]=Dc(e[s],n);return i}else if(typeof e=="object"&&!(e instanceof Date)){const i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=Dc(e[s],n));return i}return e}function zR(e,n){return e.data=Mc(e.data,n),delete e.attachments,e}function Mc(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=Mc(e[i],n);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=Mc(e[i],n));return e}const UR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],HR=5;var Ee;(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"})(Ee||(Ee={}));class GR{constructor(n){this.replacer=n}encode(n){return(n.type===Ee.EVENT||n.type===Ee.ACK)&&$s(n)?this.encodeAsBinary({type:n.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let i=""+n.type;return(n.type===Ee.BINARY_EVENT||n.type===Ee.BINARY_ACK)&&(i+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(i+=n.nsp+","),n.id!=null&&(i+=n.id),n.data!=null&&(i+=JSON.stringify(n.data,this.replacer)),i}encodeAsBinary(n){const i=jR(n),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function zg(e){return Object.prototype.toString.call(e)==="[object Object]"}class bf extends We{constructor(n){super(),this.reviver=n}add(n){let i;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(n);const s=i.type===Ee.BINARY_EVENT;s||i.type===Ee.BINARY_ACK?(i.type=s?Ee.EVENT:Ee.ACK,this.reconstructor=new $R(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Ef(n)||n.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(n),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let i=0;const s={type:Number(n.charAt(0))};if(Ee[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ee.BINARY_EVENT||s.type===Ee.BINARY_ACK){const u=i+1;for(;n.charAt(++i)!=="-"&&i!=n.length;);const d=n.substring(u,i);if(d!=Number(d)||n.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(n.charAt(i+1)==="/"){const u=i+1;for(;++i&&!(n.charAt(i)===","||i===n.length););s.nsp=n.substring(u,i)}else s.nsp="/";const l=n.charAt(i+1);if(l!==""&&Number(l)==l){const u=i+1;for(;++i;){const d=n.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===n.length)break}s.id=Number(n.substring(u,i+1))}if(n.charAt(++i)){const u=this.tryParse(n.substr(i));if(bf.isPayloadValid(s.type,u))s.data=u;else throw new Error("invalid payload")}return s}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,i){switch(n){case Ee.CONNECT:return zg(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||zg(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&UR.indexOf(i[0])===-1);case Ee.ACK:case Ee.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class $R{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const i=zR(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const qR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:bf,Encoder:GR,get PacketType(){return Ee},protocol:HR},Symbol.toStringTag,{value:"Module"}));function Zt(e,n,i){return e.on(n,i),function(){e.off(n,i)}}const VR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Gv extends We{constructor(n,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[Zt(n,"open",this.onopen.bind(this)),Zt(n,"packet",this.onpacket.bind(this)),Zt(n,"error",this.onerror.bind(this)),Zt(n,"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(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...i){var s,l,u;if(VR.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(i.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ee.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,w=i.pop();this._registerAckCallback(y,w),d.id=y}const h=(l=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||l===void 0?void 0:l.writable,p=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!h||(p?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(n,i){var s;const l=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(l===void 0){this.acks[n]=i;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===n&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},l),d=(...h)=>{this.io.clearTimeoutFn(u),i.apply(this,h)};d.withError=!0,this.acks[n]=d}emitWithAck(n,...i){return new Promise((s,l)=>{const u=(d,h)=>d?l(d):s(h);u.withError=!0,i.push(u),this.emit(n,...i)})}_addToQueue(n){let i;typeof n[n.length-1]=="function"&&(i=n.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((l,...u)=>s!==this._queue[0]?void 0:(l!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(l)):(this._queue.shift(),i&&i(null,...u)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!n||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(s=>String(s.id)===n)){const s=this.acks[n];delete this.acks[n],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Ee.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(n);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(n);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const s=new Error(n.data.message);s.data=n.data.data,this.emitReserved("connect_error",s);break}}onevent(n){const i=n.data||[];n.id!=null&&i.push(this.ack(n.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const i=this;let s=!1;return function(...l){s||(s=!0,i.packet({type:Ee.ACK,id:n,data:l}))}}onack(n){const i=this.acks[n.id];typeof i=="function"&&(delete this.acks[n.id],i.withError&&n.data.unshift(null),i.apply(this,n.data))}onconnect(n,i){this.id=n,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,n.data)}}}function ti(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}ti.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*e);e=Math.floor(n*10)&1?e+i:e-i}return Math.min(e,this.max)|0};ti.prototype.reset=function(){this.attempts=0};ti.prototype.setMin=function(e){this.ms=e};ti.prototype.setMax=function(e){this.max=e};ti.prototype.setJitter=function(e){this.jitter=e};class Fc extends We{constructor(n,i){var s;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(i=n,n=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,da(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new ti({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=n;const l=i.parser||qR;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var i;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(i=this.backoff)===null||i===void 0||i.setMin(n),this)}randomizationFactor(n){var i;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(i=this.backoff)===null||i===void 0||i.setJitter(n),this)}reconnectionDelayMax(n){var i;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(i=this.backoff)===null||i===void 0||i.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new IR(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Zt(i,"open",function(){s.onopen(),n&&n()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},d=Zt(i,"error",u);if(this._timeout!==!1){const h=this._timeout,p=this.setTimeoutFn(()=>{l(),u(new Error("timeout")),i.close()},h);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(l),this.subs.push(d),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Zt(n,"ping",this.onping.bind(this)),Zt(n,"data",this.ondata.bind(this)),Zt(n,"error",this.onerror.bind(this)),Zt(n,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(i){this.onclose("parse error",i)}}ondecoded(n){fa(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,i){let s=this.nsps[n];return s?this._autoConnect&&!s.active&&s.connect():(s=new Gv(this,n,i),this.nsps[n]=s),s}_destroy(n){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(n){const i=this.encoder.encode(n);for(let s=0;s<i.length;s++)this.engine.write(i[s],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(l=>{l?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",l)):n.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Qi={};function qs(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const i=DR(e,n.path||"/socket.io"),s=i.source,l=i.id,u=i.path,d=Qi[l]&&u in Qi[l].nsps,h=n.forceNew||n["force new connection"]||n.multiplex===!1||d;let p;return h?p=new Fc(s,n):(Qi[l]||(Qi[l]=new Fc(s,n)),p=Qi[l]),i.query&&!n.query&&(n.query=i.queryKey),p.socket(i.path,n)}Object.assign(qs,{Manager:Fc,Socket:Gv,io:qs,connect:qs});const WR=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...Ew,...hS,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],XR=({dispatch:e,getState:n})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===af){s!=null&&s.disconnect(),e(ww());const d=`/chat?${Wc.stringify(l.querystrings)}`;s=qs(`/${l.clientName}${d}`),s.on("action",e),s.on("connect",()=>e(xw())),s.on("disconnect",()=>e(Tw())),s.on("reconnect",()=>e(Cw())),s.on("set-use-start-screen",h=>{e(h?cw():fw())}),s.on("set-translations",(h,p)=>{e(Wk({language:h,messages:Uk(h,p)}))}),s.on("enable-speech-support",()=>e(mS())),s.on("enable-transcript-export",h=>e(yS(h))),s.on("enable-conversation-rating",h=>e(bS(h))),s.on("speech-transcription",h=>e(gS(h))),s.on("restore-client-state",h=>{e(Sw(h.sessionId)),e(wS(h.messages))}),s.on("expand-window",({devices:h})=>e({type:Ay,devices:h})),s.on("show-general-conditions",()=>e(_S())),s.on("restart-chat",()=>{e(hf(l.clientName,l.querystrings))})}else if(l.type===la)s==null||s.emit("start-chat",l.payload);else if(l.type===ua)s==null||s.emit("terminate-session",l.payload);else if(l.type===dS)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===Yc)s==null||s.emit("audio-message",l.buffer);else if(l.type===ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s==null||s.emit("conversation-rating",l.payload);else if(l.type===Py){const{connection:{sessionId:d}}=n();window.location.href=`/transcript-pdf/${d}`}else WR.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},$v=_y(),QR={...Kk($v),intl:kv},Lc=YS({middleware:e=>e().concat(XR),reducer:Qk,preloadedState:QR});Lc.subscribe(Dk(()=>{const e=Lc.getState();Yk($v,{connection:e.connection,startScreen:e.startScreen})},1e3));const KR=document.getElementById("root"),YR=Y_.createRoot(KR);YR.render(k.jsx(X1,{store:Lc,children:k.jsx(Ek,{})}));
110
- //# sourceMappingURL=index-DES-zZF6.js.map