@botfabrik/engine-webclient 4.84.4 → 4.85.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,110 +0,0 @@
1
- var a1=Object.defineProperty;var l1=(e,r,o)=>r in e?a1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o;var xe=(e,r,o)=>l1(e,typeof r!="symbol"?r+"":r,o);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.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 f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function o(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=o(l);fetch(l.href,u)}})();var ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pu={exports:{}},$o={},mu={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 xp;function u1(){if(xp)return me;xp=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),b=Symbol.iterator;function m(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,D={};function R(A,j,ue){this.props=A,this.context=j,this.refs=D,this.updater=ue||T}R.prototype.isReactComponent={},R.prototype.setState=function(A,j){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,j,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function P(){}P.prototype=R.prototype;function N(A,j,ue){this.props=A,this.context=j,this.refs=D,this.updater=ue||T}var E=N.prototype=new P;E.constructor=N,w(E,R.prototype),E.isPureReactComponent=!0;var C=Array.isArray,x=Object.prototype.hasOwnProperty,F={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function W(A,j,ue){var de,ye={},ve=null,ke=null;if(j!=null)for(de in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)x.call(j,de)&&!z.hasOwnProperty(de)&&(ye[de]=j[de]);var Te=arguments.length-2;if(Te===1)ye.children=ue;else if(1<Te){for(var Re=Array(Te),et=0;et<Te;et++)Re[et]=arguments[et+2];ye.children=Re}if(A&&A.defaultProps)for(de in Te=A.defaultProps,Te)ye[de]===void 0&&(ye[de]=Te[de]);return{$$typeof:e,type:A,key:ve,ref:ke,props:ye,_owner:F.current}}function he(A,j){return{$$typeof:e,type:A.type,key:j,ref:A.ref,props:A.props,_owner:A._owner}}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function ce(A){var j={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ue){return j[ue]})}var pe=/\/+/g;function le(A,j){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):j.toString(36)}function Ue(A,j,ue,de,ye){var ve=typeof A;(ve==="undefined"||ve==="boolean")&&(A=null);var ke=!1;if(A===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(A.$$typeof){case e:case r:ke=!0}}if(ke)return ke=A,ye=ye(ke),A=de===""?"."+le(ke,0):de,C(ye)?(ue="",A!=null&&(ue=A.replace(pe,"$&/")+"/"),Ue(ye,j,ue,"",function(et){return et})):ye!=null&&(te(ye)&&(ye=he(ye,ue+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+A)),j.push(ye)),1;if(ke=0,de=de===""?".":de+":",C(A))for(var Te=0;Te<A.length;Te++){ve=A[Te];var Re=de+le(ve,Te);ke+=Ue(ve,j,ue,Re,ye)}else if(Re=m(A),typeof Re=="function")for(A=Re.call(A),Te=0;!(ve=A.next()).done;)ve=ve.value,Re=de+le(ve,Te++),ke+=Ue(ve,j,ue,Re,ye);else if(ve==="object")throw j=String(A),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(A,j,ue){if(A==null)return A;var de=[],ye=0;return Ue(A,de,"","",function(ve){return j.call(ue,ve,ye++)}),de}function $e(A){if(A._status===-1){var j=A._result;j=j(),j.then(function(ue){(A._status===0||A._status===-1)&&(A._status=1,A._result=ue)},function(ue){(A._status===0||A._status===-1)&&(A._status=2,A._result=ue)}),A._status===-1&&(A._status=0,A._result=j)}if(A._status===1)return A._result.default;throw A._result}var Ne={current:null},q={transition:null},ne={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:q,ReactCurrentOwner:F};function Z(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(A,j,ue){Ie(A,function(){j.apply(this,arguments)},ue)},count:function(A){var j=0;return Ie(A,function(){j++}),j},toArray:function(A){return Ie(A,function(j){return j})||[]},only:function(A){if(!te(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},me.Component=R,me.Fragment=o,me.Profiler=l,me.PureComponent=N,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,me.act=Z,me.cloneElement=function(A,j,ue){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var de=w({},A.props),ye=A.key,ve=A.ref,ke=A._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,ke=F.current),j.key!==void 0&&(ye=""+j.key),A.type&&A.type.defaultProps)var Te=A.type.defaultProps;for(Re in j)x.call(j,Re)&&!z.hasOwnProperty(Re)&&(de[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)de.children=ue;else if(1<Re){Te=Array(Re);for(var et=0;et<Re;et++)Te[et]=arguments[et+2];de.children=Te}return{$$typeof:e,type:A.type,key:ye,ref:ve,props:de,_owner:ke}},me.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:u,_context:A},A.Consumer=A},me.createElement=W,me.createFactory=function(A){var j=W.bind(null,A);return j.type=A,j},me.createRef=function(){return{current:null}},me.forwardRef=function(A){return{$$typeof:h,render:A}},me.isValidElement=te,me.lazy=function(A){return{$$typeof:_,_payload:{_status:-1,_result:A},_init:$e}},me.memo=function(A,j){return{$$typeof:v,type:A,compare:j===void 0?null:j}},me.startTransition=function(A){var j=q.transition;q.transition={};try{A()}finally{q.transition=j}},me.unstable_act=Z,me.useCallback=function(A,j){return Ne.current.useCallback(A,j)},me.useContext=function(A){return Ne.current.useContext(A)},me.useDebugValue=function(){},me.useDeferredValue=function(A){return Ne.current.useDeferredValue(A)},me.useEffect=function(A,j){return Ne.current.useEffect(A,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(A,j,ue){return Ne.current.useImperativeHandle(A,j,ue)},me.useInsertionEffect=function(A,j){return Ne.current.useInsertionEffect(A,j)},me.useLayoutEffect=function(A,j){return Ne.current.useLayoutEffect(A,j)},me.useMemo=function(A,j){return Ne.current.useMemo(A,j)},me.useReducer=function(A,j,ue){return Ne.current.useReducer(A,j,ue)},me.useRef=function(A){return Ne.current.useRef(A)},me.useState=function(A){return Ne.current.useState(A)},me.useSyncExternalStore=function(A,j,ue){return Ne.current.useSyncExternalStore(A,j,ue)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var Tp;function Jr(){return Tp||(Tp=1,mu.exports=u1()),mu.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 Cp;function c1(){if(Cp)return $o;Cp=1;var e=Jr(),r=Symbol.for("react.element"),o=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 f(h,p,v){var _,b={},m=null,T=null;v!==void 0&&(m=""+v),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(T=p.ref);for(_ in p)s.call(p,_)&&!u.hasOwnProperty(_)&&(b[_]=p[_]);if(h&&h.defaultProps)for(_ in p=h.defaultProps,p)b[_]===void 0&&(b[_]=p[_]);return{$$typeof:r,type:h,key:m,ref:T,props:b,_owner:l.current}}return $o.Fragment=o,$o.jsx=f,$o.jsxs=f,$o}var kp;function f1(){return kp||(kp=1,pu.exports=c1()),pu.exports}var y=f1(),vs={},gu={exports:{}},Et={},yu={exports:{}},vu={};/**
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 Rp;function d1(){return Rp||(Rp=1,function(e){function r(q,ne){var Z=q.length;q.push(ne);e:for(;0<Z;){var A=Z-1>>>1,j=q[A];if(0<l(j,ne))q[A]=ne,q[Z]=j,Z=A;else break e}}function o(q){return q.length===0?null:q[0]}function s(q){if(q.length===0)return null;var ne=q[0],Z=q.pop();if(Z!==ne){q[0]=Z;e:for(var A=0,j=q.length,ue=j>>>1;A<ue;){var de=2*(A+1)-1,ye=q[de],ve=de+1,ke=q[ve];if(0>l(ye,Z))ve<j&&0>l(ke,ye)?(q[A]=ke,q[ve]=Z,A=ve):(q[A]=ye,q[de]=Z,A=de);else if(ve<j&&0>l(ke,Z))q[A]=ke,q[ve]=Z,A=ve;else break e}}return ne}function l(q,ne){var Z=q.sortIndex-ne.sortIndex;return Z!==0?Z:q.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],v=[],_=1,b=null,m=3,T=!1,w=!1,D=!1,R=typeof setTimeout=="function"?setTimeout:null,P=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 E(q){for(var ne=o(v);ne!==null;){if(ne.callback===null)s(v);else if(ne.startTime<=q)s(v),ne.sortIndex=ne.expirationTime,r(p,ne);else break;ne=o(v)}}function C(q){if(D=!1,E(q),!w)if(o(p)!==null)w=!0,$e(x);else{var ne=o(v);ne!==null&&Ne(C,ne.startTime-q)}}function x(q,ne){w=!1,D&&(D=!1,P(W),W=-1),T=!0;var Z=m;try{for(E(ne),b=o(p);b!==null&&(!(b.expirationTime>ne)||q&&!ce());){var A=b.callback;if(typeof A=="function"){b.callback=null,m=b.priorityLevel;var j=A(b.expirationTime<=ne);ne=e.unstable_now(),typeof j=="function"?b.callback=j:b===o(p)&&s(p),E(ne)}else s(p);b=o(p)}if(b!==null)var ue=!0;else{var de=o(v);de!==null&&Ne(C,de.startTime-ne),ue=!1}return ue}finally{b=null,m=Z,T=!1}}var F=!1,z=null,W=-1,he=5,te=-1;function ce(){return!(e.unstable_now()-te<he)}function pe(){if(z!==null){var q=e.unstable_now();te=q;var ne=!0;try{ne=z(!0,q)}finally{ne?le():(F=!1,z=null)}}else F=!1}var le;if(typeof N=="function")le=function(){N(pe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ie=Ue.port2;Ue.port1.onmessage=pe,le=function(){Ie.postMessage(null)}}else le=function(){R(pe,0)};function $e(q){z=q,F||(F=!0,le())}function Ne(q,ne){W=R(function(){q(e.unstable_now())},ne)}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(q){q.callback=null},e.unstable_continueExecution=function(){w||T||(w=!0,$e(x))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return o(p)},e.unstable_next=function(q){switch(m){case 1:case 2:case 3:var ne=3;break;default:ne=m}var Z=m;m=ne;try{return q()}finally{m=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,ne){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Z=m;m=q;try{return ne()}finally{m=Z}},e.unstable_scheduleCallback=function(q,ne,Z){var A=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?A+Z:A):Z=A,q){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=Z+j,q={id:_++,callback:ne,priorityLevel:q,startTime:Z,expirationTime:j,sortIndex:-1},Z>A?(q.sortIndex=Z,r(v,q),o(p)===null&&q===o(v)&&(D?(P(W),W=-1):D=!0,Ne(C,Z-A))):(q.sortIndex=j,r(p,q),w||T||(w=!0,$e(x))),q},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(q){var ne=m;return function(){var Z=m;m=ne;try{return q.apply(this,arguments)}finally{m=Z}}}}(vu)),vu}var Op;function h1(){return Op||(Op=1,yu.exports=d1()),yu.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 Np;function p1(){if(Np)return Et;Np=1;var e=Jr(),r=h1();function o(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+t+"; visit "+n+" 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,n){f(t,n),f(t+"Capture",n)}function f(t,n){for(l[t]=n,t=0;t<n.length;t++)s.add(n[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,v=/^[: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]*$/,_={},b={};function m(t){return p.call(b,t)?!0:p.call(_,t)?!1:v.test(t)?b[t]=!0:(_[t]=!0,!1)}function T(t,n,i,a){if(i!==null&&i.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function w(t,n,i,a){if(n===null||typeof n>"u"||T(t,n,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function D(t,n,i,a,c,d,g){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=i,this.propertyName=t,this.type=n,this.sanitizeURL=d,this.removeEmptyString=g}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new D(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];R[n]=new D(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new D(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new D(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){R[t]=new D(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new D(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new D(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new D(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new D(t,5,!1,t.toLowerCase(),null,!1,!1)});var P=/[\-:]([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 n=t.replace(P,N);R[n]=new D(n,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(P,N);R[n]=new D(n,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(P,N);R[n]=new D(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new D(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new D(t,1,!1,t.toLowerCase(),null,!0,!0)});function E(t,n,i,a){var c=R.hasOwnProperty(n)?R[n]:null;(c!==null?c.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(w(n,i,c,a)&&(i=null),a||c===null?m(n)&&(i===null?t.removeAttribute(n):t.setAttribute(n,""+i)):c.mustUseProperty?t[c.propertyName]=i===null?c.type===3?!1:"":i:(n=c.attributeName,a=c.attributeNamespace,i===null?t.removeAttribute(n):(c=c.type,i=c===3||c===4&&i===!0?"":""+i,a?t.setAttributeNS(a,n,i):t.setAttribute(n,i))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),F=Symbol.for("react.portal"),z=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"),Ue=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),q=Symbol.iterator;function ne(t){return t===null||typeof t!="object"?null:(t=q&&t[q]||t["@@iterator"],typeof t=="function"?t:null)}var Z=Object.assign,A;function j(t){if(A===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return`
34
- `+A+t}var ue=!1;function de(t,n){if(!t||ue)return"";ue=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(L){var a=L}Reflect.construct(t,[],n)}else{try{n.call()}catch(L){a=L}t.call(n.prototype)}else{try{throw Error()}catch(L){a=L}t()}}catch(L){if(L&&a&&typeof L.stack=="string"){for(var c=L.stack.split(`
35
- `),d=a.stack.split(`
36
- `),g=c.length-1,S=d.length-1;1<=g&&0<=S&&c[g]!==d[S];)S--;for(;1<=g&&0<=S;g--,S--)if(c[g]!==d[S]){if(g!==1||S!==1)do if(g--,S--,0>S||c[g]!==d[S]){var k=`
37
- `+c[g].replace(" at new "," at ");return t.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",t.displayName)),k}while(1<=g&&0<=S);break}}}finally{ue=!1,Error.prepareStackTrace=i}return(t=t?t.displayName||t.name:"")?j(t):""}function ye(t){switch(t.tag){case 5:return j(t.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return t=de(t.type,!1),t;case 11:return t=de(t.type.render,!1),t;case 1:return t=de(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 z:return"Fragment";case F:return"Portal";case he:return"Profiler";case W:return"StrictMode";case le:return"Suspense";case Ue: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 n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ie:return n=t.displayName||null,n!==null?n:ve(t.type)||"Memo";case $e:n=t._payload,t=t._init;try{return ve(t(n))}catch{}}return null}function ke(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(n);case 8:return n===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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}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 n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function et(t){var n=Re(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),a=""+t[n];if(!t.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,d=i.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,d.call(this,g)}}),Object.defineProperty(t,n,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function ro(t){t._valueTracker||(t._valueTracker=et(t))}function ct(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),a="";return t&&(a=Re(t)?t.checked?"true":"false":t.value),t=a,t!==i?(n.setValue(t),!0):!1}function en(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 wa(t,n){var i=n.checked;return Z({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??t._wrapperState.initialChecked})}function Af(t,n){var i=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;i=Te(n.value!=null?n.value:i),t._wrapperState={initialChecked:a,initialValue:i,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function If(t,n){n=n.checked,n!=null&&E(t,"checked",n,!1)}function ba(t,n){If(t,n);var i=Te(n.value),a=n.type;if(i!=null)a==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+i):t.value!==""+i&&(t.value=""+i);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}n.hasOwnProperty("value")?Sa(t,n.type,i):n.hasOwnProperty("defaultValue")&&Sa(t,n.type,Te(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function Df(t,n,i){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+t._wrapperState.initialValue,i||n===t.value||(t.value=n),t.defaultValue=n}i=t.name,i!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,i!==""&&(t.name=i)}function Sa(t,n,i){(n!=="number"||en(t.ownerDocument)!==t)&&(i==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+i&&(t.defaultValue=""+i))}var oo=Array.isArray;function xr(t,n,i,a){if(t=t.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<t.length;i++)c=n.hasOwnProperty("$"+t[i].value),t[i].selected!==c&&(t[i].selected=c),c&&a&&(t[i].defaultSelected=!0)}else{for(i=""+Te(i),n=null,c=0;c<t.length;c++){if(t[c].value===i){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function xa(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return Z({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pf(t,n){var i=n.value;if(i==null){if(i=n.children,n=n.defaultValue,i!=null){if(n!=null)throw Error(o(92));if(oo(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),i=n}t._wrapperState={initialValue:Te(i)}}function Mf(t,n){var i=Te(n.value),a=Te(n.defaultValue);i!=null&&(i=""+i,i!==t.value&&(t.value=i),n.defaultValue==null&&t.defaultValue!==i&&(t.defaultValue=i)),a!=null&&(t.defaultValue=""+a)}function Ff(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function Lf(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 Ta(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?Lf(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ui,Bf=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,i,a,c){MSApp.execUnsafeLocalFunction(function(){return t(n,i,a,c)})}:t}(function(t,n){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=n;else{for(ui=ui||document.createElement("div"),ui.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ui.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function io(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var so={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},fv=["Webkit","ms","Moz","O"];Object.keys(so).forEach(function(t){fv.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),so[n]=so[t]})});function jf(t,n,i){return n==null||typeof n=="boolean"||n===""?"":i||typeof n!="number"||n===0||so.hasOwnProperty(t)&&so[t]?(""+n).trim():n+"px"}function Uf(t,n){t=t.style;for(var i in n)if(n.hasOwnProperty(i)){var a=i.indexOf("--")===0,c=jf(i,n[i],a);i==="float"&&(i="cssFloat"),a?t.setProperty(i,c):t[i]=c}}var dv=Z({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 Ca(t,n){if(n){if(dv[t]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,t));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function ka(t,n){if(t.indexOf("-")===-1)return typeof n.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 Ra=null;function Oa(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Na=null,Tr=null,Cr=null;function Hf(t){if(t=Oo(t)){if(typeof Na!="function")throw Error(o(280));var n=t.stateNode;n&&(n=Ii(n),Na(t.stateNode,t.type,n))}}function zf(t){Tr?Cr?Cr.push(t):Cr=[t]:Tr=t}function Gf(){if(Tr){var t=Tr,n=Cr;if(Cr=Tr=null,Hf(t),n)for(t=0;t<n.length;t++)Hf(n[t])}}function $f(t,n){return t(n)}function Vf(){}var Aa=!1;function qf(t,n,i){if(Aa)return t(n,i);Aa=!0;try{return $f(t,n,i)}finally{Aa=!1,(Tr!==null||Cr!==null)&&(Vf(),Gf())}}function ao(t,n){var i=t.stateNode;if(i===null)return null;var a=Ii(i);if(a===null)return null;i=a[n];e:switch(n){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(i&&typeof i!="function")throw Error(o(231,n,typeof i));return i}var Ia=!1;if(h)try{var lo={};Object.defineProperty(lo,"passive",{get:function(){Ia=!0}}),window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{Ia=!1}function hv(t,n,i,a,c,d,g,S,k){var L=Array.prototype.slice.call(arguments,3);try{n.apply(i,L)}catch(H){this.onError(H)}}var uo=!1,ci=null,fi=!1,Da=null,pv={onError:function(t){uo=!0,ci=t}};function mv(t,n,i,a,c,d,g,S,k){uo=!1,ci=null,hv.apply(pv,arguments)}function gv(t,n,i,a,c,d,g,S,k){if(mv.apply(this,arguments),uo){if(uo){var L=ci;uo=!1,ci=null}else throw Error(o(198));fi||(fi=!0,Da=L)}}function er(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function Wf(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function Kf(t){if(er(t)!==t)throw Error(o(188))}function yv(t){var n=t.alternate;if(!n){if(n=er(t),n===null)throw Error(o(188));return n!==t?null:t}for(var i=t,a=n;;){var c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(a=c.return,a!==null){i=a;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return Kf(c),t;if(d===a)return Kf(c),n;d=d.sibling}throw Error(o(188))}if(i.return!==a.return)i=c,a=d;else{for(var g=!1,S=c.child;S;){if(S===i){g=!0,i=c,a=d;break}if(S===a){g=!0,a=c,i=d;break}S=S.sibling}if(!g){for(S=d.child;S;){if(S===i){g=!0,i=d,a=c;break}if(S===a){g=!0,a=d,i=c;break}S=S.sibling}if(!g)throw Error(o(189))}}if(i.alternate!==a)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:n}function Zf(t){return t=yv(t),t!==null?Qf(t):null}function Qf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=Qf(t);if(n!==null)return n;t=t.sibling}return null}var Xf=r.unstable_scheduleCallback,Yf=r.unstable_cancelCallback,vv=r.unstable_shouldYield,_v=r.unstable_requestPaint,ze=r.unstable_now,Ev=r.unstable_getCurrentPriorityLevel,Pa=r.unstable_ImmediatePriority,Jf=r.unstable_UserBlockingPriority,di=r.unstable_NormalPriority,wv=r.unstable_LowPriority,ed=r.unstable_IdlePriority,hi=null,tn=null;function bv(t){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(hi,t,void 0,(t.current.flags&128)===128)}catch{}}var zt=Math.clz32?Math.clz32:Tv,Sv=Math.log,xv=Math.LN2;function Tv(t){return t>>>=0,t===0?32:31-(Sv(t)/xv|0)|0}var pi=64,mi=4194304;function co(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 gi(t,n){var i=t.pendingLanes;if(i===0)return 0;var a=0,c=t.suspendedLanes,d=t.pingedLanes,g=i&268435455;if(g!==0){var S=g&~c;S!==0?a=co(S):(d&=g,d!==0&&(a=co(d)))}else g=i&~c,g!==0?a=co(g):d!==0&&(a=co(d));if(a===0)return 0;if(n!==0&&n!==a&&(n&c)===0&&(c=a&-a,d=n&-n,c>=d||c===16&&(d&4194240)!==0))return n;if((a&4)!==0&&(a|=i&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=a;0<n;)i=31-zt(n),c=1<<i,a|=t[i],n&=~c;return a}function Cv(t,n){switch(t){case 1:case 2:case 4:return n+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 n+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 kv(t,n){for(var i=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes;0<d;){var g=31-zt(d),S=1<<g,k=c[g];k===-1?((S&i)===0||(S&a)!==0)&&(c[g]=Cv(S,n)):k<=n&&(t.expiredLanes|=S),d&=~S}}function Ma(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function td(){var t=pi;return pi<<=1,(pi&4194240)===0&&(pi=64),t}function Fa(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function fo(t,n,i){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-zt(n),t[n]=i}function Rv(t,n){var i=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<i;){var c=31-zt(i),d=1<<c;n[c]=0,a[c]=-1,t[c]=-1,i&=~d}}function La(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var a=31-zt(i),c=1<<a;c&n|t[a]&n&&(t[a]|=n),i&=~c}}var Oe=0;function nd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var rd,Ba,od,id,sd,ja=!1,yi=[],Nn=null,An=null,In=null,ho=new Map,po=new Map,Dn=[],Ov="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 ad(t,n){switch(t){case"focusin":case"focusout":Nn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":ho.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":po.delete(n.pointerId)}}function mo(t,n,i,a,c,d){return t===null||t.nativeEvent!==d?(t={blockedOn:n,domEventName:i,eventSystemFlags:a,nativeEvent:d,targetContainers:[c]},n!==null&&(n=Oo(n),n!==null&&Ba(n)),t):(t.eventSystemFlags|=a,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function Nv(t,n,i,a,c){switch(n){case"focusin":return Nn=mo(Nn,t,n,i,a,c),!0;case"dragenter":return An=mo(An,t,n,i,a,c),!0;case"mouseover":return In=mo(In,t,n,i,a,c),!0;case"pointerover":var d=c.pointerId;return ho.set(d,mo(ho.get(d)||null,t,n,i,a,c)),!0;case"gotpointercapture":return d=c.pointerId,po.set(d,mo(po.get(d)||null,t,n,i,a,c)),!0}return!1}function ld(t){var n=tr(t.target);if(n!==null){var i=er(n);if(i!==null){if(n=i.tag,n===13){if(n=Wf(i),n!==null){t.blockedOn=n,sd(t.priority,function(){od(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function vi(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Ha(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(i===null){i=t.nativeEvent;var a=new i.constructor(i.type,i);Ra=a,i.target.dispatchEvent(a),Ra=null}else return n=Oo(i),n!==null&&Ba(n),t.blockedOn=i,!1;n.shift()}return!0}function ud(t,n,i){vi(t)&&i.delete(n)}function Av(){ja=!1,Nn!==null&&vi(Nn)&&(Nn=null),An!==null&&vi(An)&&(An=null),In!==null&&vi(In)&&(In=null),ho.forEach(ud),po.forEach(ud)}function go(t,n){t.blockedOn===n&&(t.blockedOn=null,ja||(ja=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Av)))}function yo(t){function n(c){return go(c,t)}if(0<yi.length){go(yi[0],t);for(var i=1;i<yi.length;i++){var a=yi[i];a.blockedOn===t&&(a.blockedOn=null)}}for(Nn!==null&&go(Nn,t),An!==null&&go(An,t),In!==null&&go(In,t),ho.forEach(n),po.forEach(n),i=0;i<Dn.length;i++)a=Dn[i],a.blockedOn===t&&(a.blockedOn=null);for(;0<Dn.length&&(i=Dn[0],i.blockedOn===null);)ld(i),i.blockedOn===null&&Dn.shift()}var kr=C.ReactCurrentBatchConfig,_i=!0;function Iv(t,n,i,a){var c=Oe,d=kr.transition;kr.transition=null;try{Oe=1,Ua(t,n,i,a)}finally{Oe=c,kr.transition=d}}function Dv(t,n,i,a){var c=Oe,d=kr.transition;kr.transition=null;try{Oe=4,Ua(t,n,i,a)}finally{Oe=c,kr.transition=d}}function Ua(t,n,i,a){if(_i){var c=Ha(t,n,i,a);if(c===null)ol(t,n,a,Ei,i),ad(t,a);else if(Nv(c,t,n,i,a))a.stopPropagation();else if(ad(t,a),n&4&&-1<Ov.indexOf(t)){for(;c!==null;){var d=Oo(c);if(d!==null&&rd(d),d=Ha(t,n,i,a),d===null&&ol(t,n,a,Ei,i),d===c)break;c=d}c!==null&&a.stopPropagation()}else ol(t,n,a,null,i)}}var Ei=null;function Ha(t,n,i,a){if(Ei=null,t=Oa(a),t=tr(t),t!==null)if(n=er(t),n===null)t=null;else if(i=n.tag,i===13){if(t=Wf(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null);return Ei=t,null}function cd(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(Ev()){case Pa:return 1;case Jf:return 4;case di:case wv:return 16;case ed:return 536870912;default:return 16}default:return 16}}var Pn=null,za=null,wi=null;function fd(){if(wi)return wi;var t,n=za,i=n.length,a,c="value"in Pn?Pn.value:Pn.textContent,d=c.length;for(t=0;t<i&&n[t]===c[t];t++);var g=i-t;for(a=1;a<=g&&n[i-a]===c[d-a];a++);return wi=c.slice(t,1<a?1-a:void 0)}function bi(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Si(){return!0}function dd(){return!1}function bt(t){function n(i,a,c,d,g){this._reactName=i,this._targetInst=c,this.type=a,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(i=t[S],this[S]=i?i(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Si:dd,this.isPropagationStopped=dd,this}return Z(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Si)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),n}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ga=bt(Rr),vo=Z({},Rr,{view:0,detail:0}),Pv=bt(vo),$a,Va,_o,xi=Z({},vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,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!==_o&&(_o&&t.type==="mousemove"?($a=t.screenX-_o.screenX,Va=t.screenY-_o.screenY):Va=$a=0,_o=t),$a)},movementY:function(t){return"movementY"in t?t.movementY:Va}}),hd=bt(xi),Mv=Z({},xi,{dataTransfer:0}),Fv=bt(Mv),Lv=Z({},vo,{relatedTarget:0}),qa=bt(Lv),Bv=Z({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),jv=bt(Bv),Uv=Z({},Rr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Hv=bt(Uv),zv=Z({},Rr,{data:0}),pd=bt(zv),Gv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$v={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"},Vv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qv(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Vv[t])?!!n[t]:!1}function Wa(){return qv}var Wv=Z({},vo,{key:function(t){if(t.key){var n=Gv[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=bi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$v[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(t){return t.type==="keypress"?bi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Kv=bt(Wv),Zv=Z({},xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),md=bt(Zv),Qv=Z({},vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Xv=bt(Qv),Yv=Z({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jv=bt(Yv),e_=Z({},xi,{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}),t_=bt(e_),n_=[9,13,27,32],Ka=h&&"CompositionEvent"in window,Eo=null;h&&"documentMode"in document&&(Eo=document.documentMode);var r_=h&&"TextEvent"in window&&!Eo,gd=h&&(!Ka||Eo&&8<Eo&&11>=Eo),yd=" ",vd=!1;function _d(t,n){switch(t){case"keyup":return n_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ed(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Or=!1;function o_(t,n){switch(t){case"compositionend":return Ed(n);case"keypress":return n.which!==32?null:(vd=!0,yd);case"textInput":return t=n.data,t===yd&&vd?null:t;default:return null}}function i_(t,n){if(Or)return t==="compositionend"||!Ka&&_d(t,n)?(t=fd(),wi=za=Pn=null,Or=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return gd&&n.locale!=="ko"?null:n.data;default:return null}}var s_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wd(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!s_[t.type]:n==="textarea"}function bd(t,n,i,a){zf(a),n=Oi(n,"onChange"),0<n.length&&(i=new Ga("onChange","change",null,i,a),t.push({event:i,listeners:n}))}var wo=null,bo=null;function a_(t){Ud(t,0)}function Ti(t){var n=Pr(t);if(ct(n))return t}function l_(t,n){if(t==="change")return n}var Sd=!1;if(h){var Za;if(h){var Qa="oninput"in document;if(!Qa){var xd=document.createElement("div");xd.setAttribute("oninput","return;"),Qa=typeof xd.oninput=="function"}Za=Qa}else Za=!1;Sd=Za&&(!document.documentMode||9<document.documentMode)}function Td(){wo&&(wo.detachEvent("onpropertychange",Cd),bo=wo=null)}function Cd(t){if(t.propertyName==="value"&&Ti(bo)){var n=[];bd(n,bo,t,Oa(t)),qf(a_,n)}}function u_(t,n,i){t==="focusin"?(Td(),wo=n,bo=i,wo.attachEvent("onpropertychange",Cd)):t==="focusout"&&Td()}function c_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ti(bo)}function f_(t,n){if(t==="click")return Ti(n)}function d_(t,n){if(t==="input"||t==="change")return Ti(n)}function h_(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Gt=typeof Object.is=="function"?Object.is:h_;function So(t,n){if(Gt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var c=i[a];if(!p.call(n,c)||!Gt(t[c],n[c]))return!1}return!0}function kd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rd(t,n){var i=kd(t);t=0;for(var a;i;){if(i.nodeType===3){if(a=t+i.textContent.length,t<=n&&a>=n)return{node:i,offset:n-t};t=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=kd(i)}}function Od(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Od(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Nd(){for(var t=window,n=en();n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=en(t.document)}return n}function Xa(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function p_(t){var n=Nd(),i=t.focusedElem,a=t.selectionRange;if(n!==i&&i&&i.ownerDocument&&Od(i.ownerDocument.documentElement,i)){if(a!==null&&Xa(i)){if(n=a.start,t=a.end,t===void 0&&(t=n),"selectionStart"in i)i.selectionStart=n,i.selectionEnd=Math.min(t,i.value.length);else if(t=(n=i.ownerDocument||document)&&n.defaultView||window,t.getSelection){t=t.getSelection();var c=i.textContent.length,d=Math.min(a.start,c);a=a.end===void 0?d:Math.min(a.end,c),!t.extend&&d>a&&(c=a,a=d,d=c),c=Rd(i,d);var g=Rd(i,a);c&&g&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==g.node||t.focusOffset!==g.offset)&&(n=n.createRange(),n.setStart(c.node,c.offset),t.removeAllRanges(),d>a?(t.addRange(n),t.extend(g.node,g.offset)):(n.setEnd(g.node,g.offset),t.addRange(n)))}}for(n=[],t=i;t=t.parentNode;)t.nodeType===1&&n.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<n.length;i++)t=n[i],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var m_=h&&"documentMode"in document&&11>=document.documentMode,Nr=null,Ya=null,xo=null,Ja=!1;function Ad(t,n,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ja||Nr==null||Nr!==en(a)||(a=Nr,"selectionStart"in a&&Xa(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}),xo&&So(xo,a)||(xo=a,a=Oi(Ya,"onSelect"),0<a.length&&(n=new Ga("onSelect","select",null,n,i),t.push({event:n,listeners:a}),n.target=Nr)))}function Ci(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Ar={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionend:Ci("Transition","TransitionEnd")},el={},Id={};h&&(Id=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function ki(t){if(el[t])return el[t];if(!Ar[t])return t;var n=Ar[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in Id)return el[t]=n[i];return t}var Dd=ki("animationend"),Pd=ki("animationiteration"),Md=ki("animationstart"),Fd=ki("transitionend"),Ld=new Map,Bd="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 Mn(t,n){Ld.set(t,n),u(n,[t])}for(var tl=0;tl<Bd.length;tl++){var nl=Bd[tl],g_=nl.toLowerCase(),y_=nl[0].toUpperCase()+nl.slice(1);Mn(g_,"on"+y_)}Mn(Dd,"onAnimationEnd"),Mn(Pd,"onAnimationIteration"),Mn(Md,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(Fd,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("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 To="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(" "),v_=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function jd(t,n,i){var a=t.type||"unknown-event";t.currentTarget=i,gv(a,n,void 0,t),t.currentTarget=null}function Ud(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var a=t[i],c=a.event;a=a.listeners;e:{var d=void 0;if(n)for(var g=a.length-1;0<=g;g--){var S=a[g],k=S.instance,L=S.currentTarget;if(S=S.listener,k!==d&&c.isPropagationStopped())break e;jd(c,S,L),d=k}else for(g=0;g<a.length;g++){if(S=a[g],k=S.instance,L=S.currentTarget,S=S.listener,k!==d&&c.isPropagationStopped())break e;jd(c,S,L),d=k}}}if(fi)throw t=Da,fi=!1,Da=null,t}function De(t,n){var i=n[cl];i===void 0&&(i=n[cl]=new Set);var a=t+"__bubble";i.has(a)||(Hd(n,t,2,!1),i.add(a))}function rl(t,n,i){var a=0;n&&(a|=4),Hd(i,t,a,n)}var Ri="_reactListening"+Math.random().toString(36).slice(2);function Co(t){if(!t[Ri]){t[Ri]=!0,s.forEach(function(i){i!=="selectionchange"&&(v_.has(i)||rl(i,!1,t),rl(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Ri]||(n[Ri]=!0,rl("selectionchange",!1,n))}}function Hd(t,n,i,a){switch(cd(n)){case 1:var c=Iv;break;case 4:c=Dv;break;default:c=Ua}i=c.bind(null,n,i,t),c=void 0,!Ia||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(n,i,{capture:!0,passive:c}):t.addEventListener(n,i,!0):c!==void 0?t.addEventListener(n,i,{passive:c}):t.addEventListener(n,i,!1)}function ol(t,n,i,a,c){var d=a;if((n&1)===0&&(n&2)===0&&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 k=g.tag;if((k===3||k===4)&&(k=g.stateNode.containerInfo,k===c||k.nodeType===8&&k.parentNode===c))return;g=g.return}for(;S!==null;){if(g=tr(S),g===null)return;if(k=g.tag,k===5||k===6){a=d=g;continue e}S=S.parentNode}}a=a.return}qf(function(){var L=d,H=Oa(i),G=[];e:{var U=Ld.get(t);if(U!==void 0){var K=Ga,X=t;switch(t){case"keypress":if(bi(i)===0)break e;case"keydown":case"keyup":K=Kv;break;case"focusin":X="focus",K=qa;break;case"focusout":X="blur",K=qa;break;case"beforeblur":case"afterblur":K=qa;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Fv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Xv;break;case Dd:case Pd:case Md:K=jv;break;case Fd:K=Jv;break;case"scroll":K=Pv;break;case"wheel":K=t_;break;case"copy":case"cut":case"paste":K=Hv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=md}var Y=(n&4)!==0,Ge=!Y&&t==="scroll",I=Y?U!==null?U+"Capture":null:U;Y=[];for(var O=L,M;O!==null;){M=O;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,I!==null&&($=ao(O,I),$!=null&&Y.push(ko(O,$,M)))),Ge)break;O=O.return}0<Y.length&&(U=new K(U,X,null,i,H),G.push({event:U,listeners:Y}))}}if((n&7)===0){e:{if(U=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",U&&i!==Ra&&(X=i.relatedTarget||i.fromElement)&&(tr(X)||X[mn]))break e;if((K||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,K?(X=i.relatedTarget||i.toElement,K=L,X=X?tr(X):null,X!==null&&(Ge=er(X),X!==Ge||X.tag!==5&&X.tag!==6)&&(X=null)):(K=null,X=L),K!==X)){if(Y=hd,$="onMouseLeave",I="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(Y=md,$="onPointerLeave",I="onPointerEnter",O="pointer"),Ge=K==null?U:Pr(K),M=X==null?U:Pr(X),U=new Y($,O+"leave",K,i,H),U.target=Ge,U.relatedTarget=M,$=null,tr(H)===L&&(Y=new Y(I,O+"enter",X,i,H),Y.target=M,Y.relatedTarget=Ge,$=Y),Ge=$,K&&X)t:{for(Y=K,I=X,O=0,M=Y;M;M=Ir(M))O++;for(M=0,$=I;$;$=Ir($))M++;for(;0<O-M;)Y=Ir(Y),O--;for(;0<M-O;)I=Ir(I),M--;for(;O--;){if(Y===I||I!==null&&Y===I.alternate)break t;Y=Ir(Y),I=Ir(I)}Y=null}else Y=null;K!==null&&zd(G,U,K,Y,!1),X!==null&&Ge!==null&&zd(G,Ge,X,Y,!0)}}e:{if(U=L?Pr(L):window,K=U.nodeName&&U.nodeName.toLowerCase(),K==="select"||K==="input"&&U.type==="file")var ee=l_;else if(wd(U))if(Sd)ee=d_;else{ee=c_;var re=u_}else(K=U.nodeName)&&K.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ee=f_);if(ee&&(ee=ee(t,L))){bd(G,ee,i,H);break e}re&&re(t,U,L),t==="focusout"&&(re=U._wrapperState)&&re.controlled&&U.type==="number"&&Sa(U,"number",U.value)}switch(re=L?Pr(L):window,t){case"focusin":(wd(re)||re.contentEditable==="true")&&(Nr=re,Ya=L,xo=null);break;case"focusout":xo=Ya=Nr=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Ad(G,i,H);break;case"selectionchange":if(m_)break;case"keydown":case"keyup":Ad(G,i,H)}var oe;if(Ka)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 Or?_d(t,i)&&(se="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(se="onCompositionStart");se&&(gd&&i.locale!=="ko"&&(Or||se!=="onCompositionStart"?se==="onCompositionEnd"&&Or&&(oe=fd()):(Pn=H,za="value"in Pn?Pn.value:Pn.textContent,Or=!0)),re=Oi(L,se),0<re.length&&(se=new pd(se,t,null,i,H),G.push({event:se,listeners:re}),oe?se.data=oe:(oe=Ed(i),oe!==null&&(se.data=oe)))),(oe=r_?o_(t,i):i_(t,i))&&(L=Oi(L,"onBeforeInput"),0<L.length&&(H=new pd("onBeforeInput","beforeinput",null,i,H),G.push({event:H,listeners:L}),H.data=oe))}Ud(G,n)})}function ko(t,n,i){return{instance:t,listener:n,currentTarget:i}}function Oi(t,n){for(var i=n+"Capture",a=[];t!==null;){var c=t,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=ao(t,i),d!=null&&a.unshift(ko(t,d,c)),d=ao(t,n),d!=null&&a.push(ko(t,d,c))),t=t.return}return a}function Ir(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function zd(t,n,i,a,c){for(var d=n._reactName,g=[];i!==null&&i!==a;){var S=i,k=S.alternate,L=S.stateNode;if(k!==null&&k===a)break;S.tag===5&&L!==null&&(S=L,c?(k=ao(i,d),k!=null&&g.unshift(ko(i,k,S))):c||(k=ao(i,d),k!=null&&g.push(ko(i,k,S)))),i=i.return}g.length!==0&&t.push({event:n,listeners:g})}var __=/\r\n?/g,E_=/\u0000|\uFFFD/g;function Gd(t){return(typeof t=="string"?t:""+t).replace(__,`
38
- `).replace(E_,"")}function Ni(t,n,i){if(n=Gd(n),Gd(t)!==n&&i)throw Error(o(425))}function Ai(){}var il=null,sl=null;function al(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ll=typeof setTimeout=="function"?setTimeout:void 0,w_=typeof clearTimeout=="function"?clearTimeout:void 0,$d=typeof Promise=="function"?Promise:void 0,b_=typeof queueMicrotask=="function"?queueMicrotask:typeof $d<"u"?function(t){return $d.resolve(null).then(t).catch(S_)}:ll;function S_(t){setTimeout(function(){throw t})}function ul(t,n){var i=n,a=0;do{var c=i.nextSibling;if(t.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(a===0){t.removeChild(c),yo(n);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=c}while(i);yo(n)}function Fn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return t}function Vd(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return t;n--}else i==="/$"&&n++}t=t.previousSibling}return null}var Dr=Math.random().toString(36).slice(2),nn="__reactFiber$"+Dr,Ro="__reactProps$"+Dr,mn="__reactContainer$"+Dr,cl="__reactEvents$"+Dr,x_="__reactListeners$"+Dr,T_="__reactHandles$"+Dr;function tr(t){var n=t[nn];if(n)return n;for(var i=t.parentNode;i;){if(n=i[mn]||i[nn]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=Vd(t);t!==null;){if(i=t[nn])return i;t=Vd(t)}return n}t=i,i=t.parentNode}return null}function Oo(t){return t=t[nn]||t[mn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(o(33))}function Ii(t){return t[Ro]||null}var fl=[],Mr=-1;function Ln(t){return{current:t}}function Pe(t){0>Mr||(t.current=fl[Mr],fl[Mr]=null,Mr--)}function Ae(t,n){Mr++,fl[Mr]=t.current,t.current=n}var Bn={},st=Ln(Bn),mt=Ln(!1),nr=Bn;function Fr(t,n){var i=t.type.contextTypes;if(!i)return Bn;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in i)c[d]=n[d];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=c),c}function gt(t){return t=t.childContextTypes,t!=null}function Di(){Pe(mt),Pe(st)}function qd(t,n,i){if(st.current!==Bn)throw Error(o(168));Ae(st,n),Ae(mt,i)}function Wd(t,n,i){var a=t.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var c in a)if(!(c in n))throw Error(o(108,ke(t)||"Unknown",c));return Z({},i,a)}function Pi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Bn,nr=st.current,Ae(st,t),Ae(mt,mt.current),!0}function Kd(t,n,i){var a=t.stateNode;if(!a)throw Error(o(169));i?(t=Wd(t,n,nr),a.__reactInternalMemoizedMergedChildContext=t,Pe(mt),Pe(st),Ae(st,t)):Pe(mt),Ae(mt,i)}var gn=null,Mi=!1,dl=!1;function Zd(t){gn===null?gn=[t]:gn.push(t)}function C_(t){Mi=!0,Zd(t)}function jn(){if(!dl&&gn!==null){dl=!0;var t=0,n=Oe;try{var i=gn;for(Oe=1;t<i.length;t++){var a=i[t];do a=a(!0);while(a!==null)}gn=null,Mi=!1}catch(c){throw gn!==null&&(gn=gn.slice(t+1)),Xf(Pa,jn),c}finally{Oe=n,dl=!1}}return null}var Lr=[],Br=0,Fi=null,Li=0,It=[],Dt=0,rr=null,yn=1,vn="";function or(t,n){Lr[Br++]=Li,Lr[Br++]=Fi,Fi=t,Li=n}function Qd(t,n,i){It[Dt++]=yn,It[Dt++]=vn,It[Dt++]=rr,rr=t;var a=yn;t=vn;var c=32-zt(a)-1;a&=~(1<<c),i+=1;var d=32-zt(n)+c;if(30<d){var g=c-c%5;d=(a&(1<<g)-1).toString(32),a>>=g,c-=g,yn=1<<32-zt(n)+c|i<<c|a,vn=d+t}else yn=1<<d|i<<c|a,vn=t}function hl(t){t.return!==null&&(or(t,1),Qd(t,1,0))}function pl(t){for(;t===Fi;)Fi=Lr[--Br],Lr[Br]=null,Li=Lr[--Br],Lr[Br]=null;for(;t===rr;)rr=It[--Dt],It[Dt]=null,vn=It[--Dt],It[Dt]=null,yn=It[--Dt],It[Dt]=null}var St=null,xt=null,Fe=!1,$t=null;function Xd(t,n){var i=Lt(5,null,null,0);i.elementType="DELETED",i.stateNode=n,i.return=t,n=t.deletions,n===null?(t.deletions=[i],t.flags|=16):n.push(i)}function Yd(t,n){switch(t.tag){case 5:var i=t.type;return n=n.nodeType!==1||i.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(t.stateNode=n,St=t,xt=Fn(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,St=t,xt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(i=rr!==null?{id:yn,overflow:vn}:null,t.memoizedState={dehydrated:n,treeContext:i,retryLane:1073741824},i=Lt(18,null,null,0),i.stateNode=n,i.return=t,t.child=i,St=t,xt=null,!0):!1;default:return!1}}function ml(t){return(t.mode&1)!==0&&(t.flags&128)===0}function gl(t){if(Fe){var n=xt;if(n){var i=n;if(!Yd(t,n)){if(ml(t))throw Error(o(418));n=Fn(i.nextSibling);var a=St;n&&Yd(t,n)?Xd(a,i):(t.flags=t.flags&-4097|2,Fe=!1,St=t)}}else{if(ml(t))throw Error(o(418));t.flags=t.flags&-4097|2,Fe=!1,St=t}}}function Jd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;St=t}function Bi(t){if(t!==St)return!1;if(!Fe)return Jd(t),Fe=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!al(t.type,t.memoizedProps)),n&&(n=xt)){if(ml(t))throw eh(),Error(o(418));for(;n;)Xd(t,n),n=Fn(n.nextSibling)}if(Jd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"){if(n===0){xt=Fn(t.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++}t=t.nextSibling}xt=null}}else xt=St?Fn(t.stateNode.nextSibling):null;return!0}function eh(){for(var t=xt;t;)t=Fn(t.nextSibling)}function jr(){xt=St=null,Fe=!1}function yl(t){$t===null?$t=[t]:$t.push(t)}var k_=C.ReactCurrentBatchConfig;function No(t,n,i){if(t=i.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(o(309));var a=i.stateNode}if(!a)throw Error(o(147,t));var c=a,d=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===d?n.ref:(n=function(g){var S=c.refs;g===null?delete S[d]:S[d]=g},n._stringRef=d,n)}if(typeof t!="string")throw Error(o(284));if(!i._owner)throw Error(o(290,t))}return t}function ji(t,n){throw t=Object.prototype.toString.call(n),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function th(t){var n=t._init;return n(t._payload)}function nh(t){function n(I,O){if(t){var M=I.deletions;M===null?(I.deletions=[O],I.flags|=16):M.push(O)}}function i(I,O){if(!t)return null;for(;O!==null;)n(I,O),O=O.sibling;return null}function a(I,O){for(I=new Map;O!==null;)O.key!==null?I.set(O.key,O):I.set(O.index,O),O=O.sibling;return I}function c(I,O){return I=Wn(I,O),I.index=0,I.sibling=null,I}function d(I,O,M){return I.index=M,t?(M=I.alternate,M!==null?(M=M.index,M<O?(I.flags|=2,O):M):(I.flags|=2,O)):(I.flags|=1048576,O)}function g(I){return t&&I.alternate===null&&(I.flags|=2),I}function S(I,O,M,$){return O===null||O.tag!==6?(O=lu(M,I.mode,$),O.return=I,O):(O=c(O,M),O.return=I,O)}function k(I,O,M,$){var ee=M.type;return ee===z?H(I,O,M.props.children,$,M.key):O!==null&&(O.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&th(ee)===O.type)?($=c(O,M.props),$.ref=No(I,O,M),$.return=I,$):($=us(M.type,M.key,M.props,null,I.mode,$),$.ref=No(I,O,M),$.return=I,$)}function L(I,O,M,$){return O===null||O.tag!==4||O.stateNode.containerInfo!==M.containerInfo||O.stateNode.implementation!==M.implementation?(O=uu(M,I.mode,$),O.return=I,O):(O=c(O,M.children||[]),O.return=I,O)}function H(I,O,M,$,ee){return O===null||O.tag!==7?(O=dr(M,I.mode,$,ee),O.return=I,O):(O=c(O,M),O.return=I,O)}function G(I,O,M){if(typeof O=="string"&&O!==""||typeof O=="number")return O=lu(""+O,I.mode,M),O.return=I,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case x:return M=us(O.type,O.key,O.props,null,I.mode,M),M.ref=No(I,null,O),M.return=I,M;case F:return O=uu(O,I.mode,M),O.return=I,O;case $e:var $=O._init;return G(I,$(O._payload),M)}if(oo(O)||ne(O))return O=dr(O,I.mode,M,null),O.return=I,O;ji(I,O)}return null}function U(I,O,M,$){var ee=O!==null?O.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:S(I,O,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return M.key===ee?k(I,O,M,$):null;case F:return M.key===ee?L(I,O,M,$):null;case $e:return ee=M._init,U(I,O,ee(M._payload),$)}if(oo(M)||ne(M))return ee!==null?null:H(I,O,M,$,null);ji(I,M)}return null}function K(I,O,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return I=I.get(M)||null,S(O,I,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return I=I.get($.key===null?M:$.key)||null,k(O,I,$,ee);case F:return I=I.get($.key===null?M:$.key)||null,L(O,I,$,ee);case $e:var re=$._init;return K(I,O,M,re($._payload),ee)}if(oo($)||ne($))return I=I.get(M)||null,H(O,I,$,ee,null);ji(O,$)}return null}function X(I,O,M,$){for(var ee=null,re=null,oe=O,se=O=0,Je=null;oe!==null&&se<M.length;se++){oe.index>se?(Je=oe,oe=null):Je=oe.sibling;var Se=U(I,oe,M[se],$);if(Se===null){oe===null&&(oe=Je);break}t&&oe&&Se.alternate===null&&n(I,oe),O=d(Se,O,se),re===null?ee=Se:re.sibling=Se,re=Se,oe=Je}if(se===M.length)return i(I,oe),Fe&&or(I,se),ee;if(oe===null){for(;se<M.length;se++)oe=G(I,M[se],$),oe!==null&&(O=d(oe,O,se),re===null?ee=oe:re.sibling=oe,re=oe);return Fe&&or(I,se),ee}for(oe=a(I,oe);se<M.length;se++)Je=K(oe,I,se,M[se],$),Je!==null&&(t&&Je.alternate!==null&&oe.delete(Je.key===null?se:Je.key),O=d(Je,O,se),re===null?ee=Je:re.sibling=Je,re=Je);return t&&oe.forEach(function(Kn){return n(I,Kn)}),Fe&&or(I,se),ee}function Y(I,O,M,$){var ee=ne(M);if(typeof ee!="function")throw Error(o(150));if(M=ee.call(M),M==null)throw Error(o(151));for(var re=ee=null,oe=O,se=O=0,Je=null,Se=M.next();oe!==null&&!Se.done;se++,Se=M.next()){oe.index>se?(Je=oe,oe=null):Je=oe.sibling;var Kn=U(I,oe,Se.value,$);if(Kn===null){oe===null&&(oe=Je);break}t&&oe&&Kn.alternate===null&&n(I,oe),O=d(Kn,O,se),re===null?ee=Kn:re.sibling=Kn,re=Kn,oe=Je}if(Se.done)return i(I,oe),Fe&&or(I,se),ee;if(oe===null){for(;!Se.done;se++,Se=M.next())Se=G(I,Se.value,$),Se!==null&&(O=d(Se,O,se),re===null?ee=Se:re.sibling=Se,re=Se);return Fe&&or(I,se),ee}for(oe=a(I,oe);!Se.done;se++,Se=M.next())Se=K(oe,I,se,Se.value,$),Se!==null&&(t&&Se.alternate!==null&&oe.delete(Se.key===null?se:Se.key),O=d(Se,O,se),re===null?ee=Se:re.sibling=Se,re=Se);return t&&oe.forEach(function(s1){return n(I,s1)}),Fe&&or(I,se),ee}function Ge(I,O,M,$){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case x:e:{for(var ee=M.key,re=O;re!==null;){if(re.key===ee){if(ee=M.type,ee===z){if(re.tag===7){i(I,re.sibling),O=c(re,M.props.children),O.return=I,I=O;break e}}else if(re.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&th(ee)===re.type){i(I,re.sibling),O=c(re,M.props),O.ref=No(I,re,M),O.return=I,I=O;break e}i(I,re);break}else n(I,re);re=re.sibling}M.type===z?(O=dr(M.props.children,I.mode,$,M.key),O.return=I,I=O):($=us(M.type,M.key,M.props,null,I.mode,$),$.ref=No(I,O,M),$.return=I,I=$)}return g(I);case F:e:{for(re=M.key;O!==null;){if(O.key===re)if(O.tag===4&&O.stateNode.containerInfo===M.containerInfo&&O.stateNode.implementation===M.implementation){i(I,O.sibling),O=c(O,M.children||[]),O.return=I,I=O;break e}else{i(I,O);break}else n(I,O);O=O.sibling}O=uu(M,I.mode,$),O.return=I,I=O}return g(I);case $e:return re=M._init,Ge(I,O,re(M._payload),$)}if(oo(M))return X(I,O,M,$);if(ne(M))return Y(I,O,M,$);ji(I,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,O!==null&&O.tag===6?(i(I,O.sibling),O=c(O,M),O.return=I,I=O):(i(I,O),O=lu(M,I.mode,$),O.return=I,I=O),g(I)):i(I,O)}return Ge}var Ur=nh(!0),rh=nh(!1),Ui=Ln(null),Hi=null,Hr=null,vl=null;function _l(){vl=Hr=Hi=null}function El(t){var n=Ui.current;Pe(Ui),t._currentValue=n}function wl(t,n,i){for(;t!==null;){var a=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),t===i)break;t=t.return}}function zr(t,n){Hi=t,vl=Hr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&n)!==0&&(yt=!0),t.firstContext=null)}function Pt(t){var n=t._currentValue;if(vl!==t)if(t={context:t,memoizedValue:n,next:null},Hr===null){if(Hi===null)throw Error(o(308));Hr=t,Hi.dependencies={lanes:0,firstContext:t}}else Hr=Hr.next=t;return n}var ir=null;function bl(t){ir===null?ir=[t]:ir.push(t)}function oh(t,n,i,a){var c=n.interleaved;return c===null?(i.next=i,bl(n)):(i.next=c.next,c.next=i),n.interleaved=i,_n(t,a)}function _n(t,n){t.lanes|=n;var i=t.alternate;for(i!==null&&(i.lanes|=n),i=t,t=t.return;t!==null;)t.childLanes|=n,i=t.alternate,i!==null&&(i.childLanes|=n),i=t,t=t.return;return i.tag===3?i.stateNode:null}var Un=!1;function Sl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ih(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function En(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function Hn(t,n,i){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(be&2)!==0){var c=a.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n,_n(t,i)}return c=a.interleaved,c===null?(n.next=n,bl(a)):(n.next=c.next,c.next=n),a.interleaved=n,_n(t,i)}function zi(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194240)!==0)){var a=n.lanes;a&=t.pendingLanes,i|=a,n.lanes=i,La(t,i)}}function sh(t,n){var i=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var c=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var g={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};d===null?c=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?c=d=n:d=d.next=n}else c=d=n;i={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:a.shared,effects:a.effects},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}function Gi(t,n,i,a){var c=t.updateQueue;Un=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var k=S,L=k.next;k.next=null,g===null?d=L:g.next=L,g=k;var H=t.alternate;H!==null&&(H=H.updateQueue,S=H.lastBaseUpdate,S!==g&&(S===null?H.firstBaseUpdate=L:S.next=L,H.lastBaseUpdate=k))}if(d!==null){var G=c.baseState;g=0,H=L=k=null,S=d;do{var U=S.lane,K=S.eventTime;if((a&U)===U){H!==null&&(H=H.next={eventTime:K,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var X=t,Y=S;switch(U=n,K=i,Y.tag){case 1:if(X=Y.payload,typeof X=="function"){G=X.call(K,G,U);break e}G=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Y.payload,U=typeof X=="function"?X.call(K,G,U):X,U==null)break e;G=Z({},G,U);break e;case 2:Un=!0}}S.callback!==null&&S.lane!==0&&(t.flags|=64,U=c.effects,U===null?c.effects=[S]:U.push(S))}else K={eventTime:K,lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},H===null?(L=H=K,k=G):H=H.next=K,g|=U;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;U=S,S=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);if(H===null&&(k=G),c.baseState=k,c.firstBaseUpdate=L,c.lastBaseUpdate=H,n=c.shared.interleaved,n!==null){c=n;do g|=c.lane,c=c.next;while(c!==n)}else d===null&&(c.shared.lanes=0);lr|=g,t.lanes=g,t.memoizedState=G}}function ah(t,n,i){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var a=t[n],c=a.callback;if(c!==null){if(a.callback=null,a=i,typeof c!="function")throw Error(o(191,c));c.call(a)}}}var Ao={},rn=Ln(Ao),Io=Ln(Ao),Do=Ln(Ao);function sr(t){if(t===Ao)throw Error(o(174));return t}function xl(t,n){switch(Ae(Do,n),Ae(Io,t),Ae(rn,Ao),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ta(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=Ta(n,t)}Pe(rn),Ae(rn,n)}function Gr(){Pe(rn),Pe(Io),Pe(Do)}function lh(t){sr(Do.current);var n=sr(rn.current),i=Ta(n,t.type);n!==i&&(Ae(Io,t),Ae(rn,i))}function Tl(t){Io.current===t&&(Pe(rn),Pe(Io))}var Le=Ln(0);function $i(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Cl=[];function kl(){for(var t=0;t<Cl.length;t++)Cl[t]._workInProgressVersionPrimary=null;Cl.length=0}var Vi=C.ReactCurrentDispatcher,Rl=C.ReactCurrentBatchConfig,ar=0,Be=null,Ze=null,Xe=null,qi=!1,Po=!1,Mo=0,R_=0;function at(){throw Error(o(321))}function Ol(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!Gt(t[i],n[i]))return!1;return!0}function Nl(t,n,i,a,c,d){if(ar=d,Be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Vi.current=t===null||t.memoizedState===null?I_:D_,t=i(a,c),Po){d=0;do{if(Po=!1,Mo=0,25<=d)throw Error(o(301));d+=1,Xe=Ze=null,n.updateQueue=null,Vi.current=P_,t=i(a,c)}while(Po)}if(Vi.current=Zi,n=Ze!==null&&Ze.next!==null,ar=0,Xe=Ze=Be=null,qi=!1,n)throw Error(o(300));return t}function Al(){var t=Mo!==0;return Mo=0,t}function on(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Be.memoizedState=Xe=t:Xe=Xe.next=t,Xe}function Mt(){if(Ze===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Ze.next;var n=Xe===null?Be.memoizedState:Xe.next;if(n!==null)Xe=n,Ze=t;else{if(t===null)throw Error(o(310));Ze=t,t={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Xe===null?Be.memoizedState=Xe=t:Xe=Xe.next=t}return Xe}function Fo(t,n){return typeof n=="function"?n(t):n}function Il(t){var n=Mt(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var a=Ze,c=a.baseQueue,d=i.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}a.baseQueue=c=d,i.pending=null}if(c!==null){d=c.next,a=a.baseState;var S=g=null,k=null,L=d;do{var H=L.lane;if((ar&H)===H)k!==null&&(k=k.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),a=L.hasEagerState?L.eagerState:t(a,L.action);else{var G={lane:H,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};k===null?(S=k=G,g=a):k=k.next=G,Be.lanes|=H,lr|=H}L=L.next}while(L!==null&&L!==d);k===null?g=a:k.next=S,Gt(a,n.memoizedState)||(yt=!0),n.memoizedState=a,n.baseState=g,n.baseQueue=k,i.lastRenderedState=a}if(t=i.interleaved,t!==null){c=t;do d=c.lane,Be.lanes|=d,lr|=d,c=c.next;while(c!==t)}else c===null&&(i.lanes=0);return[n.memoizedState,i.dispatch]}function Dl(t){var n=Mt(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var a=i.dispatch,c=i.pending,d=n.memoizedState;if(c!==null){i.pending=null;var g=c=c.next;do d=t(d,g.action),g=g.next;while(g!==c);Gt(d,n.memoizedState)||(yt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,a]}function uh(){}function ch(t,n){var i=Be,a=Mt(),c=n(),d=!Gt(a.memoizedState,c);if(d&&(a.memoizedState=c,yt=!0),a=a.queue,Pl(hh.bind(null,i,a,t),[t]),a.getSnapshot!==n||d||Xe!==null&&Xe.memoizedState.tag&1){if(i.flags|=2048,Lo(9,dh.bind(null,i,a,c,n),void 0,null),Ye===null)throw Error(o(349));(ar&30)!==0||fh(i,n,c)}return c}function fh(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Be.updateQueue,n===null?(n={lastEffect:null,stores:null},Be.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function dh(t,n,i,a){n.value=i,n.getSnapshot=a,ph(n)&&mh(t)}function hh(t,n,i){return i(function(){ph(n)&&mh(t)})}function ph(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!Gt(t,i)}catch{return!0}}function mh(t){var n=_n(t,1);n!==null&&Kt(n,t,1,-1)}function gh(t){var n=on();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:t},n.queue=t,t=t.dispatch=A_.bind(null,Be,t),[n.memoizedState,t]}function Lo(t,n,i,a){return t={tag:t,create:n,destroy:i,deps:a,next:null},n=Be.updateQueue,n===null?(n={lastEffect:null,stores:null},Be.updateQueue=n,n.lastEffect=t.next=t):(i=n.lastEffect,i===null?n.lastEffect=t.next=t:(a=i.next,i.next=t,t.next=a,n.lastEffect=t)),t}function yh(){return Mt().memoizedState}function Wi(t,n,i,a){var c=on();Be.flags|=t,c.memoizedState=Lo(1|n,i,void 0,a===void 0?null:a)}function Ki(t,n,i,a){var c=Mt();a=a===void 0?null:a;var d=void 0;if(Ze!==null){var g=Ze.memoizedState;if(d=g.destroy,a!==null&&Ol(a,g.deps)){c.memoizedState=Lo(n,i,d,a);return}}Be.flags|=t,c.memoizedState=Lo(1|n,i,d,a)}function vh(t,n){return Wi(8390656,8,t,n)}function Pl(t,n){return Ki(2048,8,t,n)}function _h(t,n){return Ki(4,2,t,n)}function Eh(t,n){return Ki(4,4,t,n)}function wh(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function bh(t,n,i){return i=i!=null?i.concat([t]):null,Ki(4,4,wh.bind(null,n,t),i)}function Ml(){}function Sh(t,n){var i=Mt();n=n===void 0?null:n;var a=i.memoizedState;return a!==null&&n!==null&&Ol(n,a[1])?a[0]:(i.memoizedState=[t,n],t)}function xh(t,n){var i=Mt();n=n===void 0?null:n;var a=i.memoizedState;return a!==null&&n!==null&&Ol(n,a[1])?a[0]:(t=t(),i.memoizedState=[t,n],t)}function Th(t,n,i){return(ar&21)===0?(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=i):(Gt(i,n)||(i=td(),Be.lanes|=i,lr|=i,t.baseState=!0),n)}function O_(t,n){var i=Oe;Oe=i!==0&&4>i?i:4,t(!0);var a=Rl.transition;Rl.transition={};try{t(!1),n()}finally{Oe=i,Rl.transition=a}}function Ch(){return Mt().memoizedState}function N_(t,n,i){var a=Vn(t);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},kh(t))Rh(n,i);else if(i=oh(t,n,i,a),i!==null){var c=dt();Kt(i,t,a,c),Oh(i,n,a)}}function A_(t,n,i){var a=Vn(t),c={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(kh(t))Rh(n,c);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var g=n.lastRenderedState,S=d(g,i);if(c.hasEagerState=!0,c.eagerState=S,Gt(S,g)){var k=n.interleaved;k===null?(c.next=c,bl(n)):(c.next=k.next,k.next=c),n.interleaved=c;return}}catch{}finally{}i=oh(t,n,c,a),i!==null&&(c=dt(),Kt(i,t,a,c),Oh(i,n,a))}}function kh(t){var n=t.alternate;return t===Be||n!==null&&n===Be}function Rh(t,n){Po=qi=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function Oh(t,n,i){if((i&4194240)!==0){var a=n.lanes;a&=t.pendingLanes,i|=a,n.lanes=i,La(t,i)}}var Zi={readContext:Pt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},I_={readContext:Pt,useCallback:function(t,n){return on().memoizedState=[t,n===void 0?null:n],t},useContext:Pt,useEffect:vh,useImperativeHandle:function(t,n,i){return i=i!=null?i.concat([t]):null,Wi(4194308,4,wh.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Wi(4194308,4,t,n)},useInsertionEffect:function(t,n){return Wi(4,2,t,n)},useMemo:function(t,n){var i=on();return n=n===void 0?null:n,t=t(),i.memoizedState=[t,n],t},useReducer:function(t,n,i){var a=on();return n=i!==void 0?i(n):n,a.memoizedState=a.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=N_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var n=on();return t={current:t},n.memoizedState=t},useState:gh,useDebugValue:Ml,useDeferredValue:function(t){return on().memoizedState=t},useTransition:function(){var t=gh(!1),n=t[0];return t=O_.bind(null,t[1]),on().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,i){var a=Be,c=on();if(Fe){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),Ye===null)throw Error(o(349));(ar&30)!==0||fh(a,n,i)}c.memoizedState=i;var d={value:i,getSnapshot:n};return c.queue=d,vh(hh.bind(null,a,d,t),[t]),a.flags|=2048,Lo(9,dh.bind(null,a,d,i,n),void 0,null),i},useId:function(){var t=on(),n=Ye.identifierPrefix;if(Fe){var i=vn,a=yn;i=(a&~(1<<32-zt(a)-1)).toString(32)+i,n=":"+n+"R"+i,i=Mo++,0<i&&(n+="H"+i.toString(32)),n+=":"}else i=R_++,n=":"+n+"r"+i.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},D_={readContext:Pt,useCallback:Sh,useContext:Pt,useEffect:Pl,useImperativeHandle:bh,useInsertionEffect:_h,useLayoutEffect:Eh,useMemo:xh,useReducer:Il,useRef:yh,useState:function(){return Il(Fo)},useDebugValue:Ml,useDeferredValue:function(t){var n=Mt();return Th(n,Ze.memoizedState,t)},useTransition:function(){var t=Il(Fo)[0],n=Mt().memoizedState;return[t,n]},useMutableSource:uh,useSyncExternalStore:ch,useId:Ch,unstable_isNewReconciler:!1},P_={readContext:Pt,useCallback:Sh,useContext:Pt,useEffect:Pl,useImperativeHandle:bh,useInsertionEffect:_h,useLayoutEffect:Eh,useMemo:xh,useReducer:Dl,useRef:yh,useState:function(){return Dl(Fo)},useDebugValue:Ml,useDeferredValue:function(t){var n=Mt();return Ze===null?n.memoizedState=t:Th(n,Ze.memoizedState,t)},useTransition:function(){var t=Dl(Fo)[0],n=Mt().memoizedState;return[t,n]},useMutableSource:uh,useSyncExternalStore:ch,useId:Ch,unstable_isNewReconciler:!1};function Vt(t,n){if(t&&t.defaultProps){n=Z({},n),t=t.defaultProps;for(var i in t)n[i]===void 0&&(n[i]=t[i]);return n}return n}function Fl(t,n,i,a){n=t.memoizedState,i=i(a,n),i=i==null?n:Z({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Qi={isMounted:function(t){return(t=t._reactInternals)?er(t)===t:!1},enqueueSetState:function(t,n,i){t=t._reactInternals;var a=dt(),c=Vn(t),d=En(a,c);d.payload=n,i!=null&&(d.callback=i),n=Hn(t,d,c),n!==null&&(Kt(n,t,c,a),zi(n,t,c))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var a=dt(),c=Vn(t),d=En(a,c);d.tag=1,d.payload=n,i!=null&&(d.callback=i),n=Hn(t,d,c),n!==null&&(Kt(n,t,c,a),zi(n,t,c))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=dt(),a=Vn(t),c=En(i,a);c.tag=2,n!=null&&(c.callback=n),n=Hn(t,c,a),n!==null&&(Kt(n,t,a,i),zi(n,t,a))}};function Nh(t,n,i,a,c,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,d,g):n.prototype&&n.prototype.isPureReactComponent?!So(i,a)||!So(c,d):!0}function Ah(t,n,i){var a=!1,c=Bn,d=n.contextType;return typeof d=="object"&&d!==null?d=Pt(d):(c=gt(n)?nr:st.current,a=n.contextTypes,d=(a=a!=null)?Fr(t,c):Bn),n=new n(i,d),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Qi,t.stateNode=n,n._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=d),n}function Ih(t,n,i,a){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,a),n.state!==t&&Qi.enqueueReplaceState(n,n.state,null)}function Ll(t,n,i,a){var c=t.stateNode;c.props=i,c.state=t.memoizedState,c.refs={},Sl(t);var d=n.contextType;typeof d=="object"&&d!==null?c.context=Pt(d):(d=gt(n)?nr:st.current,c.context=Fr(t,d)),c.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Fl(t,n,d,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(n=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),n!==c.state&&Qi.enqueueReplaceState(c,c.state,null),Gi(t,i,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function $r(t,n){try{var i="",a=n;do i+=ye(a),a=a.return;while(a);var c=i}catch(d){c=`
39
- Error generating stack: `+d.message+`
40
- `+d.stack}return{value:t,source:n,stack:c,digest:null}}function Bl(t,n,i){return{value:t,source:null,stack:i??null,digest:n??null}}function jl(t,n){try{console.error(n.value)}catch(i){setTimeout(function(){throw i})}}var M_=typeof WeakMap=="function"?WeakMap:Map;function Dh(t,n,i){i=En(-1,i),i.tag=3,i.payload={element:null};var a=n.value;return i.callback=function(){rs||(rs=!0,eu=a),jl(t,n)},i}function Ph(t,n,i){i=En(-1,i),i.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=n.value;i.payload=function(){return a(c)},i.callback=function(){jl(t,n)}}var d=t.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(i.callback=function(){jl(t,n),typeof a!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})}),i}function Mh(t,n,i){var a=t.pingCache;if(a===null){a=t.pingCache=new M_;var c=new Set;a.set(n,c)}else c=a.get(n),c===void 0&&(c=new Set,a.set(n,c));c.has(i)||(c.add(i),t=Z_.bind(null,t,n,i),n.then(t,t))}function Fh(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}function Lh(t,n,i,a,c){return(t.mode&1)===0?(t===n?t.flags|=65536:(t.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(n=En(-1,1),n.tag=2,Hn(i,n,1))),i.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var F_=C.ReactCurrentOwner,yt=!1;function ft(t,n,i,a){n.child=t===null?rh(n,null,i,a):Ur(n,t.child,i,a)}function Bh(t,n,i,a,c){i=i.render;var d=n.ref;return zr(n,c),a=Nl(t,n,i,a,d,c),i=Al(),t!==null&&!yt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~c,wn(t,n,c)):(Fe&&i&&hl(n),n.flags|=1,ft(t,n,a,c),n.child)}function jh(t,n,i,a,c){if(t===null){var d=i.type;return typeof d=="function"&&!au(d)&&d.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(n.tag=15,n.type=d,Uh(t,n,d,a,c)):(t=us(i.type,null,a,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(d=t.child,(t.lanes&c)===0){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:So,i(g,a)&&t.ref===n.ref)return wn(t,n,c)}return n.flags|=1,t=Wn(d,a),t.ref=n.ref,t.return=n,n.child=t}function Uh(t,n,i,a,c){if(t!==null){var d=t.memoizedProps;if(So(d,a)&&t.ref===n.ref)if(yt=!1,n.pendingProps=a=d,(t.lanes&c)!==0)(t.flags&131072)!==0&&(yt=!0);else return n.lanes=t.lanes,wn(t,n,c)}return Ul(t,n,i,a,c)}function Hh(t,n,i){var a=n.pendingProps,c=a.children,d=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(qr,Tt),Tt|=i;else{if((i&1073741824)===0)return t=d!==null?d.baseLanes|i:i,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,Ae(qr,Tt),Tt|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=d!==null?d.baseLanes:i,Ae(qr,Tt),Tt|=a}else d!==null?(a=d.baseLanes|i,n.memoizedState=null):a=i,Ae(qr,Tt),Tt|=a;return ft(t,n,c,i),n.child}function zh(t,n){var i=n.ref;(t===null&&i!==null||t!==null&&t.ref!==i)&&(n.flags|=512,n.flags|=2097152)}function Ul(t,n,i,a,c){var d=gt(i)?nr:st.current;return d=Fr(n,d),zr(n,c),i=Nl(t,n,i,a,d,c),a=Al(),t!==null&&!yt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~c,wn(t,n,c)):(Fe&&a&&hl(n),n.flags|=1,ft(t,n,i,c),n.child)}function Gh(t,n,i,a,c){if(gt(i)){var d=!0;Pi(n)}else d=!1;if(zr(n,c),n.stateNode===null)Yi(t,n),Ah(n,i,a),Ll(n,i,a,c),a=!0;else if(t===null){var g=n.stateNode,S=n.memoizedProps;g.props=S;var k=g.context,L=i.contextType;typeof L=="object"&&L!==null?L=Pt(L):(L=gt(i)?nr:st.current,L=Fr(n,L));var H=i.getDerivedStateFromProps,G=typeof H=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==a||k!==L)&&Ih(n,g,a,L),Un=!1;var U=n.memoizedState;g.state=U,Gi(n,a,g,c),k=n.memoizedState,S!==a||U!==k||mt.current||Un?(typeof H=="function"&&(Fl(n,i,H,a),k=n.memoizedState),(S=Un||Nh(n,i,S,a,U,k,L))?(G||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"&&(n.flags|=4194308)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=k),g.props=a,g.state=k,g.context=L,a=S):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{g=n.stateNode,ih(t,n),S=n.memoizedProps,L=n.type===n.elementType?S:Vt(n.type,S),g.props=L,G=n.pendingProps,U=g.context,k=i.contextType,typeof k=="object"&&k!==null?k=Pt(k):(k=gt(i)?nr:st.current,k=Fr(n,k));var K=i.getDerivedStateFromProps;(H=typeof K=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==G||U!==k)&&Ih(n,g,a,k),Un=!1,U=n.memoizedState,g.state=U,Gi(n,a,g,c);var X=n.memoizedState;S!==G||U!==X||mt.current||Un?(typeof K=="function"&&(Fl(n,i,K,a),X=n.memoizedState),(L=Un||Nh(n,i,L,a,U,X,k)||!1)?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,X,k),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,X,k)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=X),g.props=a,g.state=X,g.context=k,a=L):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),a=!1)}return Hl(t,n,i,a,d,c)}function Hl(t,n,i,a,c,d){zh(t,n);var g=(n.flags&128)!==0;if(!a&&!g)return c&&Kd(n,i,!1),wn(t,n,d);a=n.stateNode,F_.current=n;var S=g&&typeof i.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,t!==null&&g?(n.child=Ur(n,t.child,null,d),n.child=Ur(n,null,S,d)):ft(t,n,S,d),n.memoizedState=a.state,c&&Kd(n,i,!0),n.child}function $h(t){var n=t.stateNode;n.pendingContext?qd(t,n.pendingContext,n.pendingContext!==n.context):n.context&&qd(t,n.context,!1),xl(t,n.containerInfo)}function Vh(t,n,i,a,c){return jr(),yl(c),n.flags|=256,ft(t,n,i,a),n.child}var zl={dehydrated:null,treeContext:null,retryLane:0};function Gl(t){return{baseLanes:t,cachePool:null,transitions:null}}function qh(t,n,i){var a=n.pendingProps,c=Le.current,d=!1,g=(n.flags&128)!==0,S;if((S=g)||(S=t!==null&&t.memoizedState===null?!1:(c&2)!==0),S?(d=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return gl(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((n.mode&1)===0?n.lanes=1:t.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(g=a.children,t=a.fallback,d?(a=n.mode,d=n.child,g={mode:"hidden",children:g},(a&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=g):d=cs(g,a,0,null),t=dr(t,a,i,null),d.return=n,t.return=n,d.sibling=t,n.child=d,n.child.memoizedState=Gl(i),n.memoizedState=zl,t):$l(n,g));if(c=t.memoizedState,c!==null&&(S=c.dehydrated,S!==null))return L_(t,n,g,a,S,c,i);if(d){d=a.fallback,g=n.mode,c=t.child,S=c.sibling;var k={mode:"hidden",children:a.children};return(g&1)===0&&n.child!==c?(a=n.child,a.childLanes=0,a.pendingProps=k,n.deletions=null):(a=Wn(c,k),a.subtreeFlags=c.subtreeFlags&14680064),S!==null?d=Wn(S,d):(d=dr(d,g,i,null),d.flags|=2),d.return=n,a.return=n,a.sibling=d,n.child=a,a=d,d=n.child,g=t.child.memoizedState,g=g===null?Gl(i):{baseLanes:g.baseLanes|i,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=t.childLanes&~i,n.memoizedState=zl,a}return d=t.child,t=d.sibling,a=Wn(d,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=i),a.return=n,a.sibling=null,t!==null&&(i=n.deletions,i===null?(n.deletions=[t],n.flags|=16):i.push(t)),n.child=a,n.memoizedState=null,a}function $l(t,n){return n=cs({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function Xi(t,n,i,a){return a!==null&&yl(a),Ur(n,t.child,null,i),t=$l(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function L_(t,n,i,a,c,d,g){if(i)return n.flags&256?(n.flags&=-257,a=Bl(Error(o(422))),Xi(t,n,g,a)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(d=a.fallback,c=n.mode,a=cs({mode:"visible",children:a.children},c,0,null),d=dr(d,c,g,null),d.flags|=2,a.return=n,d.return=n,a.sibling=d,n.child=a,(n.mode&1)!==0&&Ur(n,t.child,null,g),n.child.memoizedState=Gl(g),n.memoizedState=zl,d);if((n.mode&1)===0)return Xi(t,n,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var S=a.dgst;return a=S,d=Error(o(419)),a=Bl(d,a,void 0),Xi(t,n,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?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,_n(t,c),Kt(a,t,c,-1))}return su(),a=Bl(Error(o(421))),Xi(t,n,g,a)}return c.data==="$?"?(n.flags|=128,n.child=t.child,n=Q_.bind(null,t),c._reactRetry=n,null):(t=d.treeContext,xt=Fn(c.nextSibling),St=n,Fe=!0,$t=null,t!==null&&(It[Dt++]=yn,It[Dt++]=vn,It[Dt++]=rr,yn=t.id,vn=t.overflow,rr=n),n=$l(n,a.children),n.flags|=4096,n)}function Wh(t,n,i){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n),wl(t.return,n,i)}function Vl(t,n,i,a,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:c}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=i,d.tailMode=c)}function Kh(t,n,i){var a=n.pendingProps,c=a.revealOrder,d=a.tail;if(ft(t,n,a.children,i),a=Le.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wh(t,i,n);else if(t.tag===19)Wh(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Ae(Le,a),(n.mode&1)===0)n.memoizedState=null;else switch(c){case"forwards":for(i=n.child,c=null;i!==null;)t=i.alternate,t!==null&&$i(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),Vl(n,!1,c,i,d);break;case"backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&$i(t)===null){n.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}Vl(n,!0,i,null,d);break;case"together":Vl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Yi(t,n){(n.mode&1)===0&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function wn(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),lr|=n.lanes,(i&n.childLanes)===0)return null;if(t!==null&&n.child!==t.child)throw Error(o(153));if(n.child!==null){for(t=n.child,i=Wn(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=Wn(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function B_(t,n,i){switch(n.tag){case 3:$h(n),jr();break;case 5:lh(n);break;case 1:gt(n.type)&&Pi(n);break;case 4:xl(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,c=n.memoizedProps.value;Ae(Ui,a._currentValue),a._currentValue=c;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),n.flags|=128,null):(i&n.child.childLanes)!==0?qh(t,n,i):(Ae(Le,Le.current&1),t=wn(t,n,i),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(i&n.childLanes)!==0,(t.flags&128)!==0){if(a)return Kh(t,n,i);n.flags|=128}if(c=n.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 n.lanes=0,Hh(t,n,i)}return wn(t,n,i)}var Zh,ql,Qh,Xh;Zh=function(t,n){for(var i=n.child;i!==null;){if(i.tag===5||i.tag===6)t.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},ql=function(){},Qh=function(t,n,i,a){var c=t.memoizedProps;if(c!==a){t=n.stateNode,sr(rn.current);var d=null;switch(i){case"input":c=wa(t,c),a=wa(t,a),d=[];break;case"select":c=Z({},c,{value:void 0}),a=Z({},a,{value:void 0}),d=[];break;case"textarea":c=xa(t,c),a=xa(t,a),d=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Ai)}Ca(i,a);var g;i=null;for(L in c)if(!a.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var S=c[L];for(g in S)S.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?d||(d=[]):(d=d||[]).push(L,null));for(L in a){var k=a[L];if(S=c!=null?c[L]:void 0,a.hasOwnProperty(L)&&k!==S&&(k!=null||S!=null))if(L==="style")if(S){for(g in S)!S.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in k)k.hasOwnProperty(g)&&S[g]!==k[g]&&(i||(i={}),i[g]=k[g])}else i||(d||(d=[]),d.push(L,i)),i=k;else L==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,S=S?S.__html:void 0,k!=null&&S!==k&&(d=d||[]).push(L,k)):L==="children"?typeof k!="string"&&typeof k!="number"||(d=d||[]).push(L,""+k):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(k!=null&&L==="onScroll"&&De("scroll",t),d||S===k||(d=[])):(d=d||[]).push(L,k))}i&&(d=d||[]).push("style",i);var L=d;(n.updateQueue=L)&&(n.flags|=4)}},Xh=function(t,n,i,a){i!==a&&(n.flags|=4)};function Bo(t,n){if(!Fe)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function lt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,a=0;if(n)for(var c=t.child;c!==null;)i|=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;)i|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=a,t.childLanes=i,n}function j_(t,n,i){var a=n.pendingProps;switch(pl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(n),null;case 1:return gt(n.type)&&Di(),lt(n),null;case 3:return a=n.stateNode,Gr(),Pe(mt),Pe(st),kl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Bi(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,$t!==null&&(ru($t),$t=null))),ql(t,n),lt(n),null;case 5:Tl(n);var c=sr(Do.current);if(i=n.type,t!==null&&n.stateNode!=null)Qh(t,n,i,a,c),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(o(166));return lt(n),null}if(t=sr(rn.current),Bi(n)){a=n.stateNode,i=n.type;var d=n.memoizedProps;switch(a[nn]=n,a[Ro]=d,t=(n.mode&1)!==0,i){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(c=0;c<To.length;c++)De(To[c],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":Af(a,d),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!d.multiple},De("invalid",a);break;case"textarea":Pf(a,d),De("invalid",a)}Ca(i,d),c=null;for(var g in d)if(d.hasOwnProperty(g)){var S=d[g];g==="children"?typeof S=="string"?a.textContent!==S&&(d.suppressHydrationWarning!==!0&&Ni(a.textContent,S,t),c=["children",S]):typeof S=="number"&&a.textContent!==""+S&&(d.suppressHydrationWarning!==!0&&Ni(a.textContent,S,t),c=["children",""+S]):l.hasOwnProperty(g)&&S!=null&&g==="onScroll"&&De("scroll",a)}switch(i){case"input":ro(a),Df(a,d,!0);break;case"textarea":ro(a),Ff(a);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(a.onclick=Ai)}a=c,n.updateQueue=a,a!==null&&(n.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Lf(i)),t==="http://www.w3.org/1999/xhtml"?i==="script"?(t=g.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=g.createElement(i,{is:a.is}):(t=g.createElement(i),i==="select"&&(g=t,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):t=g.createElementNS(t,i),t[nn]=n,t[Ro]=a,Zh(t,n,!1,!1),n.stateNode=t;e:{switch(g=ka(i,a),i){case"dialog":De("cancel",t),De("close",t),c=a;break;case"iframe":case"object":case"embed":De("load",t),c=a;break;case"video":case"audio":for(c=0;c<To.length;c++)De(To[c],t);c=a;break;case"source":De("error",t),c=a;break;case"img":case"image":case"link":De("error",t),De("load",t),c=a;break;case"details":De("toggle",t),c=a;break;case"input":Af(t,a),c=wa(t,a),De("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=Z({},a,{value:void 0}),De("invalid",t);break;case"textarea":Pf(t,a),c=xa(t,a),De("invalid",t);break;default:c=a}Ca(i,c),S=c;for(d in S)if(S.hasOwnProperty(d)){var k=S[d];d==="style"?Uf(t,k):d==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Bf(t,k)):d==="children"?typeof k=="string"?(i!=="textarea"||k!=="")&&io(t,k):typeof k=="number"&&io(t,""+k):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?k!=null&&d==="onScroll"&&De("scroll",t):k!=null&&E(t,d,k,g))}switch(i){case"input":ro(t),Df(t,a,!1);break;case"textarea":ro(t),Ff(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Te(a.value));break;case"select":t.multiple=!!a.multiple,d=a.value,d!=null?xr(t,!!a.multiple,d,!1):a.defaultValue!=null&&xr(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Ai)}switch(i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return lt(n),null;case 6:if(t&&n.stateNode!=null)Xh(t,n,t.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(o(166));if(i=sr(Do.current),sr(rn.current),Bi(n)){if(a=n.stateNode,i=n.memoizedProps,a[nn]=n,(d=a.nodeValue!==i)&&(t=St,t!==null))switch(t.tag){case 3:Ni(a.nodeValue,i,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ni(a.nodeValue,i,(t.mode&1)!==0)}d&&(n.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[nn]=n,n.stateNode=a}return lt(n),null;case 13:if(Pe(Le),a=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&xt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)eh(),jr(),n.flags|=98560,d=!1;else if(d=Bi(n),a!==null&&a.dehydrated!==null){if(t===null){if(!d)throw Error(o(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[nn]=n}else jr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;lt(n),d=!1}else $t!==null&&(ru($t),$t=null),d=!0;if(!d)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=i,n):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(t===null||(Le.current&1)!==0?Qe===0&&(Qe=3):su())),n.updateQueue!==null&&(n.flags|=4),lt(n),null);case 4:return Gr(),ql(t,n),t===null&&Co(n.stateNode.containerInfo),lt(n),null;case 10:return El(n.type._context),lt(n),null;case 17:return gt(n.type)&&Di(),lt(n),null;case 19:if(Pe(Le),d=n.memoizedState,d===null)return lt(n),null;if(a=(n.flags&128)!==0,g=d.rendering,g===null)if(a)Bo(d,!1);else{if(Qe!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(g=$i(t),g!==null){for(n.flags|=128,Bo(d,!1),a=g.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=i,i=n.child;i!==null;)d=i,t=a,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=t,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,t=g.dependencies,d.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),i=i.sibling;return Ae(Le,Le.current&1|2),n.child}t=t.sibling}d.tail!==null&&ze()>Wr&&(n.flags|=128,a=!0,Bo(d,!1),n.lanes=4194304)}else{if(!a)if(t=$i(g),t!==null){if(n.flags|=128,a=!0,i=t.updateQueue,i!==null&&(n.updateQueue=i,n.flags|=4),Bo(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Fe)return lt(n),null}else 2*ze()-d.renderingStartTime>Wr&&i!==1073741824&&(n.flags|=128,a=!0,Bo(d,!1),n.lanes=4194304);d.isBackwards?(g.sibling=n.child,n.child=g):(i=d.last,i!==null?i.sibling=g:n.child=g,d.last=g)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=ze(),n.sibling=null,i=Le.current,Ae(Le,a?i&1|2:i&1),n):(lt(n),null);case 22:case 23:return iu(),a=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(Tt&1073741824)!==0&&(lt(n),n.subtreeFlags&6&&(n.flags|=8192)):lt(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function U_(t,n){switch(pl(n),n.tag){case 1:return gt(n.type)&&Di(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Gr(),Pe(mt),Pe(st),kl(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 5:return Tl(n),null;case 13:if(Pe(Le),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(o(340));jr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Pe(Le),null;case 4:return Gr(),null;case 10:return El(n.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var Ji=!1,ut=!1,H_=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Vr(t,n){var i=t.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){He(t,n,a)}else i.current=null}function Wl(t,n,i){try{i()}catch(a){He(t,n,a)}}var Yh=!1;function z_(t,n){if(il=_i,t=Nd(),Xa(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var c=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var g=0,S=-1,k=-1,L=0,H=0,G=t,U=null;t:for(;;){for(var K;G!==i||c!==0&&G.nodeType!==3||(S=g+c),G!==d||a!==0&&G.nodeType!==3||(k=g+a),G.nodeType===3&&(g+=G.nodeValue.length),(K=G.firstChild)!==null;)U=G,G=K;for(;;){if(G===t)break t;if(U===i&&++L===c&&(S=g),U===d&&++H===a&&(k=g),(K=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=K}i=S===-1||k===-1?null:{start:S,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(sl={focusedElem:t,selectionRange:i},_i=!1,Q=n;Q!==null;)if(n=Q,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Q=t;else for(;Q!==null;){n=Q;try{var X=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Ge=X.memoizedState,I=n.stateNode,O=I.getSnapshotBeforeUpdate(n.elementType===n.type?Y:Vt(n.type,Y),Ge);I.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var M=n.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(o(163))}}catch($){He(n,n.return,$)}if(t=n.sibling,t!==null){t.return=n.return,Q=t;break}Q=n.return}return X=Yh,Yh=!1,X}function jo(t,n,i){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var d=c.destroy;c.destroy=void 0,d!==void 0&&Wl(n,i,d)}c=c.next}while(c!==a)}}function es(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var a=i.create;i.destroy=a()}i=i.next}while(i!==n)}}function Kl(t){var n=t.ref;if(n!==null){var i=t.stateNode;switch(t.tag){case 5:t=i;break;default:t=i}typeof n=="function"?n(t):n.current=t}}function Jh(t){var n=t.alternate;n!==null&&(t.alternate=null,Jh(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[nn],delete n[Ro],delete n[cl],delete n[x_],delete n[T_])),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 ep(t){return t.tag===5||t.tag===3||t.tag===4}function tp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ep(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 Zl(t,n,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(t,n):i.insertBefore(t,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(t,i)):(n=i,n.appendChild(t)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ai));else if(a!==4&&(t=t.child,t!==null))for(Zl(t,n,i),t=t.sibling;t!==null;)Zl(t,n,i),t=t.sibling}function Ql(t,n,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Ql(t,n,i),t=t.sibling;t!==null;)Ql(t,n,i),t=t.sibling}var tt=null,qt=!1;function zn(t,n,i){for(i=i.child;i!==null;)np(t,n,i),i=i.sibling}function np(t,n,i){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(hi,i)}catch{}switch(i.tag){case 5:ut||Vr(i,n);case 6:var a=tt,c=qt;tt=null,zn(t,n,i),tt=a,qt=c,tt!==null&&(qt?(t=tt,i=i.stateNode,t.nodeType===8?t.parentNode.removeChild(i):t.removeChild(i)):tt.removeChild(i.stateNode));break;case 18:tt!==null&&(qt?(t=tt,i=i.stateNode,t.nodeType===8?ul(t.parentNode,i):t.nodeType===1&&ul(t,i),yo(t)):ul(tt,i.stateNode));break;case 4:a=tt,c=qt,tt=i.stateNode.containerInfo,qt=!0,zn(t,n,i),tt=a,qt=c;break;case 0:case 11:case 14:case 15:if(!ut&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var d=c,g=d.destroy;d=d.tag,g!==void 0&&((d&2)!==0||(d&4)!==0)&&Wl(i,n,g),c=c.next}while(c!==a)}zn(t,n,i);break;case 1:if(!ut&&(Vr(i,n),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(S){He(i,n,S)}zn(t,n,i);break;case 21:zn(t,n,i);break;case 22:i.mode&1?(ut=(a=ut)||i.memoizedState!==null,zn(t,n,i),ut=a):zn(t,n,i);break;default:zn(t,n,i)}}function rp(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var i=t.stateNode;i===null&&(i=t.stateNode=new H_),n.forEach(function(a){var c=X_.bind(null,t,a);i.has(a)||(i.add(a),a.then(c,c))})}}function Wt(t,n){var i=n.deletions;if(i!==null)for(var a=0;a<i.length;a++){var c=i[a];try{var d=t,g=n,S=g;e:for(;S!==null;){switch(S.tag){case 5:tt=S.stateNode,qt=!1;break e;case 3:tt=S.stateNode.containerInfo,qt=!0;break e;case 4:tt=S.stateNode.containerInfo,qt=!0;break e}S=S.return}if(tt===null)throw Error(o(160));np(d,g,c),tt=null,qt=!1;var k=c.alternate;k!==null&&(k.return=null),c.return=null}catch(L){He(c,n,L)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)op(n,t),n=n.sibling}function op(t,n){var i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Wt(n,t),sn(t),a&4){try{jo(3,t,t.return),es(3,t)}catch(Y){He(t,t.return,Y)}try{jo(5,t,t.return)}catch(Y){He(t,t.return,Y)}}break;case 1:Wt(n,t),sn(t),a&512&&i!==null&&Vr(i,i.return);break;case 5:if(Wt(n,t),sn(t),a&512&&i!==null&&Vr(i,i.return),t.flags&32){var c=t.stateNode;try{io(c,"")}catch(Y){He(t,t.return,Y)}}if(a&4&&(c=t.stateNode,c!=null)){var d=t.memoizedProps,g=i!==null?i.memoizedProps:d,S=t.type,k=t.updateQueue;if(t.updateQueue=null,k!==null)try{S==="input"&&d.type==="radio"&&d.name!=null&&If(c,d),ka(S,g);var L=ka(S,d);for(g=0;g<k.length;g+=2){var H=k[g],G=k[g+1];H==="style"?Uf(c,G):H==="dangerouslySetInnerHTML"?Bf(c,G):H==="children"?io(c,G):E(c,H,G,L)}switch(S){case"input":ba(c,d);break;case"textarea":Mf(c,d);break;case"select":var U=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var K=d.value;K!=null?xr(c,!!d.multiple,K,!1):U!==!!d.multiple&&(d.defaultValue!=null?xr(c,!!d.multiple,d.defaultValue,!0):xr(c,!!d.multiple,d.multiple?[]:"",!1))}c[Ro]=d}catch(Y){He(t,t.return,Y)}}break;case 6:if(Wt(n,t),sn(t),a&4){if(t.stateNode===null)throw Error(o(162));c=t.stateNode,d=t.memoizedProps;try{c.nodeValue=d}catch(Y){He(t,t.return,Y)}}break;case 3:if(Wt(n,t),sn(t),a&4&&i!==null&&i.memoizedState.isDehydrated)try{yo(n.containerInfo)}catch(Y){He(t,t.return,Y)}break;case 4:Wt(n,t),sn(t);break;case 13:Wt(n,t),sn(t),c=t.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(Jl=ze())),a&4&&rp(t);break;case 22:if(H=i!==null&&i.memoizedState!==null,t.mode&1?(ut=(L=ut)||H,Wt(n,t),ut=L):Wt(n,t),sn(t),a&8192){if(L=t.memoizedState!==null,(t.stateNode.isHidden=L)&&!H&&(t.mode&1)!==0)for(Q=t,H=t.child;H!==null;){for(G=Q=H;Q!==null;){switch(U=Q,K=U.child,U.tag){case 0:case 11:case 14:case 15:jo(4,U,U.return);break;case 1:Vr(U,U.return);var X=U.stateNode;if(typeof X.componentWillUnmount=="function"){a=U,i=U.return;try{n=a,X.props=n.memoizedProps,X.state=n.memoizedState,X.componentWillUnmount()}catch(Y){He(a,i,Y)}}break;case 5:Vr(U,U.return);break;case 22:if(U.memoizedState!==null){ap(G);continue}}K!==null?(K.return=U,Q=K):ap(G)}H=H.sibling}e:for(H=null,G=t;;){if(G.tag===5){if(H===null){H=G;try{c=G.stateNode,L?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(S=G.stateNode,k=G.memoizedProps.style,g=k!=null&&k.hasOwnProperty("display")?k.display:null,S.style.display=jf("display",g))}catch(Y){He(t,t.return,Y)}}}else if(G.tag===6){if(H===null)try{G.stateNode.nodeValue=L?"":G.memoizedProps}catch(Y){He(t,t.return,Y)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;H===G&&(H=null),G=G.return}H===G&&(H=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Wt(n,t),sn(t),a&4&&rp(t);break;case 21:break;default:Wt(n,t),sn(t)}}function sn(t){var n=t.flags;if(n&2){try{e:{for(var i=t.return;i!==null;){if(ep(i)){var a=i;break e}i=i.return}throw Error(o(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(io(c,""),a.flags&=-33);var d=tp(t);Ql(t,d,c);break;case 3:case 4:var g=a.stateNode.containerInfo,S=tp(t);Zl(t,S,g);break;default:throw Error(o(161))}}catch(k){He(t,t.return,k)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function G_(t,n,i){Q=t,ip(t)}function ip(t,n,i){for(var a=(t.mode&1)!==0;Q!==null;){var c=Q,d=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||Ji;if(!g){var S=c.alternate,k=S!==null&&S.memoizedState!==null||ut;S=Ji;var L=ut;if(Ji=g,(ut=k)&&!L)for(Q=c;Q!==null;)g=Q,k=g.child,g.tag===22&&g.memoizedState!==null?lp(c):k!==null?(k.return=g,Q=k):lp(c);for(;d!==null;)Q=d,ip(d),d=d.sibling;Q=c,Ji=S,ut=L}sp(t)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,Q=d):sp(t)}}function sp(t){for(;Q!==null;){var n=Q;if((n.flags&8772)!==0){var i=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:ut||es(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!ut)if(i===null)a.componentDidMount();else{var c=n.elementType===n.type?i.memoizedProps:Vt(n.type,i.memoizedProps);a.componentDidUpdate(c,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;d!==null&&ah(n,d,a);break;case 3:var g=n.updateQueue;if(g!==null){if(i=null,n.child!==null)switch(n.child.tag){case 5:i=n.child.stateNode;break;case 1:i=n.child.stateNode}ah(n,g,i)}break;case 5:var S=n.stateNode;if(i===null&&n.flags&4){i=S;var k=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&i.focus();break;case"img":k.src&&(i.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var L=n.alternate;if(L!==null){var H=L.memoizedState;if(H!==null){var G=H.dehydrated;G!==null&&yo(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}ut||n.flags&512&&Kl(n)}catch(U){He(n,n.return,U)}}if(n===t){Q=null;break}if(i=n.sibling,i!==null){i.return=n.return,Q=i;break}Q=n.return}}function ap(t){for(;Q!==null;){var n=Q;if(n===t){Q=null;break}var i=n.sibling;if(i!==null){i.return=n.return,Q=i;break}Q=n.return}}function lp(t){for(;Q!==null;){var n=Q;try{switch(n.tag){case 0:case 11:case 15:var i=n.return;try{es(4,n)}catch(k){He(n,i,k)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var c=n.return;try{a.componentDidMount()}catch(k){He(n,c,k)}}var d=n.return;try{Kl(n)}catch(k){He(n,d,k)}break;case 5:var g=n.return;try{Kl(n)}catch(k){He(n,g,k)}}}catch(k){He(n,n.return,k)}if(n===t){Q=null;break}var S=n.sibling;if(S!==null){S.return=n.return,Q=S;break}Q=n.return}}var $_=Math.ceil,ts=C.ReactCurrentDispatcher,Xl=C.ReactCurrentOwner,Ft=C.ReactCurrentBatchConfig,be=0,Ye=null,Ve=null,nt=0,Tt=0,qr=Ln(0),Qe=0,Uo=null,lr=0,ns=0,Yl=0,Ho=null,vt=null,Jl=0,Wr=1/0,bn=null,rs=!1,eu=null,Gn=null,os=!1,$n=null,is=0,zo=0,tu=null,ss=-1,as=0;function dt(){return(be&6)!==0?ze():ss!==-1?ss:ss=ze()}function Vn(t){return(t.mode&1)===0?1:(be&2)!==0&&nt!==0?nt&-nt:k_.transition!==null?(as===0&&(as=td()),as):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:cd(t.type)),t)}function Kt(t,n,i,a){if(50<zo)throw zo=0,tu=null,Error(o(185));fo(t,i,a),((be&2)===0||t!==Ye)&&(t===Ye&&((be&2)===0&&(ns|=i),Qe===4&&qn(t,nt)),_t(t,a),i===1&&be===0&&(n.mode&1)===0&&(Wr=ze()+500,Mi&&jn()))}function _t(t,n){var i=t.callbackNode;kv(t,n);var a=gi(t,t===Ye?nt:0);if(a===0)i!==null&&Yf(i),t.callbackNode=null,t.callbackPriority=0;else if(n=a&-a,t.callbackPriority!==n){if(i!=null&&Yf(i),n===1)t.tag===0?C_(cp.bind(null,t)):Zd(cp.bind(null,t)),b_(function(){(be&6)===0&&jn()}),i=null;else{switch(nd(a)){case 1:i=Pa;break;case 4:i=Jf;break;case 16:i=di;break;case 536870912:i=ed;break;default:i=di}i=vp(i,up.bind(null,t))}t.callbackPriority=n,t.callbackNode=i}}function up(t,n){if(ss=-1,as=0,(be&6)!==0)throw Error(o(327));var i=t.callbackNode;if(Kr()&&t.callbackNode!==i)return null;var a=gi(t,t===Ye?nt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||n)n=ls(t,a);else{n=a;var c=be;be|=2;var d=dp();(Ye!==t||nt!==n)&&(bn=null,Wr=ze()+500,cr(t,n));do try{W_();break}catch(S){fp(t,S)}while(!0);_l(),ts.current=d,be=c,Ve!==null?n=0:(Ye=null,nt=0,n=Qe)}if(n!==0){if(n===2&&(c=Ma(t),c!==0&&(a=c,n=nu(t,c))),n===1)throw i=Uo,cr(t,0),qn(t,a),_t(t,ze()),i;if(n===6)qn(t,a);else{if(c=t.current.alternate,(a&30)===0&&!V_(c)&&(n=ls(t,a),n===2&&(d=Ma(t),d!==0&&(a=d,n=nu(t,d))),n===1))throw i=Uo,cr(t,0),qn(t,a),_t(t,ze()),i;switch(t.finishedWork=c,t.finishedLanes=a,n){case 0:case 1:throw Error(o(345));case 2:fr(t,vt,bn);break;case 3:if(qn(t,a),(a&130023424)===a&&(n=Jl+500-ze(),10<n)){if(gi(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){dt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=ll(fr.bind(null,t,vt,bn),n);break}fr(t,vt,bn);break;case 4:if(qn(t,a),(a&4194240)===a)break;for(n=t.eventTimes,c=-1;0<a;){var g=31-zt(a);d=1<<g,g=n[g],g>c&&(c=g),a&=~d}if(a=c,a=ze()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*$_(a/1960))-a,10<a){t.timeoutHandle=ll(fr.bind(null,t,vt,bn),a);break}fr(t,vt,bn);break;case 5:fr(t,vt,bn);break;default:throw Error(o(329))}}}return _t(t,ze()),t.callbackNode===i?up.bind(null,t):null}function nu(t,n){var i=Ho;return t.current.memoizedState.isDehydrated&&(cr(t,n).flags|=256),t=ls(t,n),t!==2&&(n=vt,vt=i,n!==null&&ru(n)),t}function ru(t){vt===null?vt=t:vt.push.apply(vt,t)}function V_(t){for(var n=t;;){if(n.flags&16384){var i=n.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var a=0;a<i.length;a++){var c=i[a],d=c.getSnapshot;c=c.value;try{if(!Gt(d(),c))return!1}catch{return!1}}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function qn(t,n){for(n&=~Yl,n&=~ns,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var i=31-zt(n),a=1<<i;t[i]=-1,n&=~a}}function cp(t){if((be&6)!==0)throw Error(o(327));Kr();var n=gi(t,0);if((n&1)===0)return _t(t,ze()),null;var i=ls(t,n);if(t.tag!==0&&i===2){var a=Ma(t);a!==0&&(n=a,i=nu(t,a))}if(i===1)throw i=Uo,cr(t,0),qn(t,n),_t(t,ze()),i;if(i===6)throw Error(o(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,fr(t,vt,bn),_t(t,ze()),null}function ou(t,n){var i=be;be|=1;try{return t(n)}finally{be=i,be===0&&(Wr=ze()+500,Mi&&jn())}}function ur(t){$n!==null&&$n.tag===0&&(be&6)===0&&Kr();var n=be;be|=1;var i=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=i,be=n,(be&6)===0&&jn()}}function iu(){Tt=qr.current,Pe(qr)}function cr(t,n){t.finishedWork=null,t.finishedLanes=0;var i=t.timeoutHandle;if(i!==-1&&(t.timeoutHandle=-1,w_(i)),Ve!==null)for(i=Ve.return;i!==null;){var a=i;switch(pl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Di();break;case 3:Gr(),Pe(mt),Pe(st),kl();break;case 5:Tl(a);break;case 4:Gr();break;case 13:Pe(Le);break;case 19:Pe(Le);break;case 10:El(a.type._context);break;case 22:case 23:iu()}i=i.return}if(Ye=t,Ve=t=Wn(t.current,null),nt=Tt=n,Qe=0,Uo=null,Yl=ns=lr=0,vt=Ho=null,ir!==null){for(n=0;n<ir.length;n++)if(i=ir[n],a=i.interleaved,a!==null){i.interleaved=null;var c=a.next,d=i.pending;if(d!==null){var g=d.next;d.next=c,a.next=g}i.pending=a}ir=null}return t}function fp(t,n){do{var i=Ve;try{if(_l(),Vi.current=Zi,qi){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}qi=!1}if(ar=0,Xe=Ze=Be=null,Po=!1,Mo=0,Xl.current=null,i===null||i.return===null){Qe=1,Uo=n,Ve=null;break}e:{var d=t,g=i.return,S=i,k=n;if(n=nt,S.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var L=k,H=S,G=H.tag;if((H.mode&1)===0&&(G===0||G===11||G===15)){var U=H.alternate;U?(H.updateQueue=U.updateQueue,H.memoizedState=U.memoizedState,H.lanes=U.lanes):(H.updateQueue=null,H.memoizedState=null)}var K=Fh(g);if(K!==null){K.flags&=-257,Lh(K,g,S,d,n),K.mode&1&&Mh(d,L,n),n=K,k=L;var X=n.updateQueue;if(X===null){var Y=new Set;Y.add(k),n.updateQueue=Y}else X.add(k);break e}else{if((n&1)===0){Mh(d,L,n),su();break e}k=Error(o(426))}}else if(Fe&&S.mode&1){var Ge=Fh(g);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),Lh(Ge,g,S,d,n),yl($r(k,S));break e}}d=k=$r(k,S),Qe!==4&&(Qe=2),Ho===null?Ho=[d]:Ho.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,n&=-n,d.lanes|=n;var I=Dh(d,k,n);sh(d,I);break e;case 1:S=k;var O=d.type,M=d.stateNode;if((d.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Gn===null||!Gn.has(M)))){d.flags|=65536,n&=-n,d.lanes|=n;var $=Ph(d,S,n);sh(d,$);break e}}d=d.return}while(d!==null)}pp(i)}catch(ee){n=ee,Ve===i&&i!==null&&(Ve=i=i.return);continue}break}while(!0)}function dp(){var t=ts.current;return ts.current=Zi,t===null?Zi:t}function su(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Ye===null||(lr&268435455)===0&&(ns&268435455)===0||qn(Ye,nt)}function ls(t,n){var i=be;be|=2;var a=dp();(Ye!==t||nt!==n)&&(bn=null,cr(t,n));do try{q_();break}catch(c){fp(t,c)}while(!0);if(_l(),be=i,ts.current=a,Ve!==null)throw Error(o(261));return Ye=null,nt=0,Qe}function q_(){for(;Ve!==null;)hp(Ve)}function W_(){for(;Ve!==null&&!vv();)hp(Ve)}function hp(t){var n=yp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,n===null?pp(t):Ve=n,Xl.current=null}function pp(t){var n=t;do{var i=n.alternate;if(t=n.return,(n.flags&32768)===0){if(i=j_(i,n,Tt),i!==null){Ve=i;return}}else{if(i=U_(i,n),i!==null){i.flags&=32767,Ve=i;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Qe=6,Ve=null;return}}if(n=n.sibling,n!==null){Ve=n;return}Ve=n=t}while(n!==null);Qe===0&&(Qe=5)}function fr(t,n,i){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,K_(t,n,i,a)}finally{Ft.transition=c,Oe=a}return null}function K_(t,n,i,a){do Kr();while($n!==null);if((be&6)!==0)throw Error(o(327));i=t.finishedWork;var c=t.finishedLanes;if(i===null)return null;if(t.finishedWork=null,t.finishedLanes=0,i===t.current)throw Error(o(177));t.callbackNode=null,t.callbackPriority=0;var d=i.lanes|i.childLanes;if(Rv(t,d),t===Ye&&(Ve=Ye=null,nt=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||os||(os=!0,vp(di,function(){return Kr(),null})),d=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||d){d=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var S=be;be|=4,Xl.current=null,z_(t,i),op(i,t),p_(sl),_i=!!il,sl=il=null,t.current=i,G_(i),_v(),be=S,Oe=g,Ft.transition=d}else t.current=i;if(os&&(os=!1,$n=t,is=c),d=t.pendingLanes,d===0&&(Gn=null),bv(i.stateNode),_t(t,ze()),n!==null)for(a=t.onRecoverableError,i=0;i<n.length;i++)c=n[i],a(c.value,{componentStack:c.stack,digest:c.digest});if(rs)throw rs=!1,t=eu,eu=null,t;return(is&1)!==0&&t.tag!==0&&Kr(),d=t.pendingLanes,(d&1)!==0?t===tu?zo++:(zo=0,tu=t):zo=0,jn(),null}function Kr(){if($n!==null){var t=nd(is),n=Ft.transition,i=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,$n===null)var a=!1;else{if(t=$n,$n=null,is=0,(be&6)!==0)throw Error(o(331));var c=be;for(be|=4,Q=t.current;Q!==null;){var d=Q,g=d.child;if((Q.flags&16)!==0){var S=d.deletions;if(S!==null){for(var k=0;k<S.length;k++){var L=S[k];for(Q=L;Q!==null;){var H=Q;switch(H.tag){case 0:case 11:case 15:jo(8,H,d)}var G=H.child;if(G!==null)G.return=H,Q=G;else for(;Q!==null;){H=Q;var U=H.sibling,K=H.return;if(Jh(H),H===L){Q=null;break}if(U!==null){U.return=K,Q=U;break}Q=K}}}var X=d.alternate;if(X!==null){var Y=X.child;if(Y!==null){X.child=null;do{var Ge=Y.sibling;Y.sibling=null,Y=Ge}while(Y!==null)}}Q=d}}if((d.subtreeFlags&2064)!==0&&g!==null)g.return=d,Q=g;else e:for(;Q!==null;){if(d=Q,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:jo(9,d,d.return)}var I=d.sibling;if(I!==null){I.return=d.return,Q=I;break e}Q=d.return}}var O=t.current;for(Q=O;Q!==null;){g=Q;var M=g.child;if((g.subtreeFlags&2064)!==0&&M!==null)M.return=g,Q=M;else e:for(g=O;Q!==null;){if(S=Q,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:es(9,S)}}catch(ee){He(S,S.return,ee)}if(S===g){Q=null;break e}var $=S.sibling;if($!==null){$.return=S.return,Q=$;break e}Q=S.return}}if(be=c,jn(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(hi,t)}catch{}a=!0}return a}finally{Oe=i,Ft.transition=n}}return!1}function mp(t,n,i){n=$r(i,n),n=Dh(t,n,1),t=Hn(t,n,1),n=dt(),t!==null&&(fo(t,1,n),_t(t,n))}function He(t,n,i){if(t.tag===3)mp(t,t,i);else for(;n!==null;){if(n.tag===3){mp(n,t,i);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Gn===null||!Gn.has(a))){t=$r(i,t),t=Ph(n,t,1),n=Hn(n,t,1),t=dt(),n!==null&&(fo(n,1,t),_t(n,t));break}}n=n.return}}function Z_(t,n,i){var a=t.pingCache;a!==null&&a.delete(n),n=dt(),t.pingedLanes|=t.suspendedLanes&i,Ye===t&&(nt&i)===i&&(Qe===4||Qe===3&&(nt&130023424)===nt&&500>ze()-Jl?cr(t,0):Yl|=i),_t(t,n)}function gp(t,n){n===0&&((t.mode&1)===0?n=1:(n=mi,mi<<=1,(mi&130023424)===0&&(mi=4194304)));var i=dt();t=_n(t,n),t!==null&&(fo(t,n,i),_t(t,i))}function Q_(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),gp(t,i)}function X_(t,n){var i=0;switch(t.tag){case 13:var a=t.stateNode,c=t.memoizedState;c!==null&&(i=c.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(o(314))}a!==null&&a.delete(n),gp(t,i)}var yp;yp=function(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps||mt.current)yt=!0;else{if((t.lanes&i)===0&&(n.flags&128)===0)return yt=!1,B_(t,n,i);yt=(t.flags&131072)!==0}else yt=!1,Fe&&(n.flags&1048576)!==0&&Qd(n,Li,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Yi(t,n),t=n.pendingProps;var c=Fr(n,st.current);zr(n,i),c=Nl(null,n,a,t,c,i);var d=Al();return n.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,gt(a)?(d=!0,Pi(n)):d=!1,n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Sl(n),c.updater=Qi,n.stateNode=c,c._reactInternals=n,Ll(n,a,t,i),n=Hl(null,n,a,!0,d,i)):(n.tag=0,Fe&&d&&hl(n),ft(null,n,c,i),n=n.child),n;case 16:a=n.elementType;e:{switch(Yi(t,n),t=n.pendingProps,c=a._init,a=c(a._payload),n.type=a,c=n.tag=J_(a),t=Vt(a,t),c){case 0:n=Ul(null,n,a,t,i);break e;case 1:n=Gh(null,n,a,t,i);break e;case 11:n=Bh(null,n,a,t,i);break e;case 14:n=jh(null,n,a,Vt(a.type,t),i);break e}throw Error(o(306,a,""))}return n;case 0:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Vt(a,c),Ul(t,n,a,c,i);case 1:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Vt(a,c),Gh(t,n,a,c,i);case 3:e:{if($h(n),t===null)throw Error(o(387));a=n.pendingProps,d=n.memoizedState,c=d.element,ih(t,n),Gi(n,a,null,i);var g=n.memoizedState;if(a=g.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){c=$r(Error(o(423)),n),n=Vh(t,n,a,i,c);break e}else if(a!==c){c=$r(Error(o(424)),n),n=Vh(t,n,a,i,c);break e}else for(xt=Fn(n.stateNode.containerInfo.firstChild),St=n,Fe=!0,$t=null,i=rh(n,null,a,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(jr(),a===c){n=wn(t,n,i);break e}ft(t,n,a,i)}n=n.child}return n;case 5:return lh(n),t===null&&gl(n),a=n.type,c=n.pendingProps,d=t!==null?t.memoizedProps:null,g=c.children,al(a,c)?g=null:d!==null&&al(a,d)&&(n.flags|=32),zh(t,n),ft(t,n,g,i),n.child;case 6:return t===null&&gl(n),null;case 13:return qh(t,n,i);case 4:return xl(n,n.stateNode.containerInfo),a=n.pendingProps,t===null?n.child=Ur(n,null,a,i):ft(t,n,a,i),n.child;case 11:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Vt(a,c),Bh(t,n,a,c,i);case 7:return ft(t,n,n.pendingProps,i),n.child;case 8:return ft(t,n,n.pendingProps.children,i),n.child;case 12:return ft(t,n,n.pendingProps.children,i),n.child;case 10:e:{if(a=n.type._context,c=n.pendingProps,d=n.memoizedProps,g=c.value,Ae(Ui,a._currentValue),a._currentValue=g,d!==null)if(Gt(d.value,g)){if(d.children===c.children&&!mt.current){n=wn(t,n,i);break e}}else for(d=n.child,d!==null&&(d.return=n);d!==null;){var S=d.dependencies;if(S!==null){g=d.child;for(var k=S.firstContext;k!==null;){if(k.context===a){if(d.tag===1){k=En(-1,i&-i),k.tag=2;var L=d.updateQueue;if(L!==null){L=L.shared;var H=L.pending;H===null?k.next=k:(k.next=H.next,H.next=k),L.pending=k}}d.lanes|=i,k=d.alternate,k!==null&&(k.lanes|=i),wl(d.return,i,n),S.lanes|=i;break}k=k.next}}else if(d.tag===10)g=d.type===n.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(o(341));g.lanes|=i,S=g.alternate,S!==null&&(S.lanes|=i),wl(g,i,n),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===n){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}ft(t,n,c.children,i),n=n.child}return n;case 9:return c=n.type,a=n.pendingProps.children,zr(n,i),c=Pt(c),a=a(c),n.flags|=1,ft(t,n,a,i),n.child;case 14:return a=n.type,c=Vt(a,n.pendingProps),c=Vt(a.type,c),jh(t,n,a,c,i);case 15:return Uh(t,n,n.type,n.pendingProps,i);case 17:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:Vt(a,c),Yi(t,n),n.tag=1,gt(a)?(t=!0,Pi(n)):t=!1,zr(n,i),Ah(n,a,c),Ll(n,a,c,i),Hl(null,n,a,!0,t,i);case 19:return Kh(t,n,i);case 22:return Hh(t,n,i)}throw Error(o(156,n.tag))};function vp(t,n){return Xf(t,n)}function Y_(t,n,i,a){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,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,n,i,a){return new Y_(t,n,i,a)}function au(t){return t=t.prototype,!(!t||!t.isReactComponent)}function J_(t){if(typeof t=="function")return au(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Ie)return 14}return 2}function Wn(t,n){var i=t.alternate;return i===null?(i=Lt(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&14680064,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function us(t,n,i,a,c,d){var g=2;if(a=t,typeof t=="function")au(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case z:return dr(i.children,c,d,n);case W:g=8,c|=8;break;case he:return t=Lt(12,i,n,c|2),t.elementType=he,t.lanes=d,t;case le:return t=Lt(13,i,n,c),t.elementType=le,t.lanes=d,t;case Ue:return t=Lt(19,i,n,c),t.elementType=Ue,t.lanes=d,t;case Ne:return cs(i,c,d,n);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 Ie:g=14;break e;case $e:g=16,a=null;break e}throw Error(o(130,t==null?t:typeof t,""))}return n=Lt(g,i,n,c),n.elementType=t,n.type=a,n.lanes=d,n}function dr(t,n,i,a){return t=Lt(7,t,a,n),t.lanes=i,t}function cs(t,n,i,a){return t=Lt(22,t,a,n),t.elementType=Ne,t.lanes=i,t.stateNode={isHidden:!1},t}function lu(t,n,i){return t=Lt(6,t,null,n),t.lanes=i,t}function uu(t,n,i){return n=Lt(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function e1(t,n,i,a,c){this.tag=n,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=Fa(0),this.expirationTimes=Fa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function cu(t,n,i,a,c,d,g,S,k){return t=new e1(t,n,i,S,k),n===1?(n=1,d===!0&&(n|=8)):n=0,d=Lt(3,null,null,n),t.current=d,d.stateNode=t,d.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(d),t}function t1(t,n,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:a==null?null:""+a,children:t,containerInfo:n,implementation:i}}function _p(t){if(!t)return Bn;t=t._reactInternals;e:{if(er(t)!==t||t.tag!==1)throw Error(o(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(gt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(t.tag===1){var i=t.type;if(gt(i))return Wd(t,i,n)}return n}function Ep(t,n,i,a,c,d,g,S,k){return t=cu(i,a,!0,t,c,d,g,S,k),t.context=_p(null),i=t.current,a=dt(),c=Vn(i),d=En(a,c),d.callback=n??null,Hn(i,d,c),t.current.lanes=c,fo(t,c,a),_t(t,a),t}function fs(t,n,i,a){var c=n.current,d=dt(),g=Vn(c);return i=_p(i),n.context===null?n.context=i:n.pendingContext=i,n=En(d,g),n.payload={element:t},a=a===void 0?null:a,a!==null&&(n.callback=a),t=Hn(c,n,g),t!==null&&(Kt(t,c,g,d),zi(t,c,g)),g}function ds(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 wp(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function fu(t,n){wp(t,n),(t=t.alternate)&&wp(t,n)}function n1(){return null}var bp=typeof reportError=="function"?reportError:function(t){console.error(t)};function du(t){this._internalRoot=t}hs.prototype.render=du.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(o(409));fs(t,n,null,null)},hs.prototype.unmount=du.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;ur(function(){fs(null,t,null,null)}),n[mn]=null}};function hs(t){this._internalRoot=t}hs.prototype.unstable_scheduleHydration=function(t){if(t){var n=id();t={blockedOn:null,target:t,priority:n};for(var i=0;i<Dn.length&&n!==0&&n<Dn[i].priority;i++);Dn.splice(i,0,t),i===0&&ld(t)}};function hu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ps(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Sp(){}function r1(t,n,i,a,c){if(c){if(typeof a=="function"){var d=a;a=function(){var L=ds(g);d.call(L)}}var g=Ep(n,a,t,0,null,!1,!1,"",Sp);return t._reactRootContainer=g,t[mn]=g.current,Co(t.nodeType===8?t.parentNode:t),ur(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var S=a;a=function(){var L=ds(k);S.call(L)}}var k=cu(t,0,!1,null,null,!1,!1,"",Sp);return t._reactRootContainer=k,t[mn]=k.current,Co(t.nodeType===8?t.parentNode:t),ur(function(){fs(n,k,i,a)}),k}function ms(t,n,i,a,c){var d=i._reactRootContainer;if(d){var g=d;if(typeof c=="function"){var S=c;c=function(){var k=ds(g);S.call(k)}}fs(n,g,t,c)}else g=r1(i,n,t,c,a);return ds(g)}rd=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var i=co(n.pendingLanes);i!==0&&(La(n,i|1),_t(n,ze()),(be&6)===0&&(Wr=ze()+500,jn()))}break;case 13:ur(function(){var a=_n(t,1);if(a!==null){var c=dt();Kt(a,t,1,c)}}),fu(t,1)}},Ba=function(t){if(t.tag===13){var n=_n(t,134217728);if(n!==null){var i=dt();Kt(n,t,134217728,i)}fu(t,134217728)}},od=function(t){if(t.tag===13){var n=Vn(t),i=_n(t,n);if(i!==null){var a=dt();Kt(i,t,n,a)}fu(t,n)}},id=function(){return Oe},sd=function(t,n){var i=Oe;try{return Oe=t,n()}finally{Oe=i}},Na=function(t,n,i){switch(n){case"input":if(ba(t,i),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<i.length;n++){var a=i[n];if(a!==t&&a.form===t.form){var c=Ii(a);if(!c)throw Error(o(90));ct(a),ba(a,c)}}}break;case"textarea":Mf(t,i);break;case"select":n=i.value,n!=null&&xr(t,!!i.multiple,n,!1)}},$f=ou,Vf=ur;var o1={usingClientEntryPoint:!1,Events:[Oo,Pr,Ii,zf,Gf,ou]},Go={findFiberByHostInstance:tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},i1={bundleType:Go.bundleType,version:Go.version,rendererPackageName:Go.rendererPackageName,rendererConfig:Go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Zf(t),t===null?null:t.stateNode},findFiberByHostInstance:Go.findFiberByHostInstance||n1,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 gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gs.isDisabled&&gs.supportsFiber)try{hi=gs.inject(i1),tn=gs}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o1,Et.createPortal=function(t,n){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hu(n))throw Error(o(200));return t1(t,n,null,i)},Et.createRoot=function(t,n){if(!hu(t))throw Error(o(299));var i=!1,a="",c=bp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),n=cu(t,1,!1,null,null,i,!1,a,c),t[mn]=n.current,Co(t.nodeType===8?t.parentNode:t),new du(n)},Et.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=Zf(n),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return ur(t)},Et.hydrate=function(t,n,i){if(!ps(n))throw Error(o(200));return ms(null,t,n,!0,i)},Et.hydrateRoot=function(t,n,i){if(!hu(t))throw Error(o(405));var a=i!=null&&i.hydratedSources||null,c=!1,d="",g=bp;if(i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),n=Ep(n,null,t,1,i??null,c,!1,d,g),t[mn]=n.current,Co(t),a)for(t=0;t<a.length;t++)i=a[t],c=i._getVersion,c=c(i._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[i,c]:n.mutableSourceEagerHydrationData.push(i,c);return new hs(n)},Et.render=function(t,n,i){if(!ps(n))throw Error(o(200));return ms(null,t,n,!1,i)},Et.unmountComponentAtNode=function(t){if(!ps(t))throw Error(o(40));return t._reactRootContainer?(ur(function(){ms(null,null,t,!1,function(){t._reactRootContainer=null,t[mn]=null})}),!0):!1},Et.unstable_batchedUpdates=ou,Et.unstable_renderSubtreeIntoContainer=function(t,n,i,a){if(!ps(i))throw Error(o(200));if(t==null||t._reactInternals===void 0)throw Error(o(38));return ms(t,n,i,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Ap;function m1(){if(Ap)return gu.exports;Ap=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(r){console.error(r)}}return e(),gu.exports=p1(),gu.exports}var Ip;function g1(){if(Ip)return vs;Ip=1;var e=m1();return vs.createRoot=e.createRoot,vs.hydrateRoot=e.hydrateRoot,vs}var y1=g1(),B=Jr();const e0=sa(B);var _u={exports:{}},Eu={};/**
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 Dp;function v1(){if(Dp)return Eu;Dp=1;var e=Jr();function r(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var o=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Eu.useSyncExternalStoreWithSelector=function(p,v,_,b,m){var T=l(null);if(T.current===null){var w={hasValue:!1,value:null};T.current=w}else w=T.current;T=f(function(){function R(x){if(!P){if(P=!0,N=x,x=b(x),m!==void 0&&w.hasValue){var F=w.value;if(m(F,x))return E=F}return E=x}if(F=E,o(N,x))return F;var z=b(x);return m!==void 0&&m(F,z)?(N=x,F):(N=x,E=z)}var P=!1,N,E,C=_===void 0?null:_;return[function(){return R(v())},C===null?void 0:function(){return R(C())}]},[v,_,b,m]);var D=s(p,T[0],T[1]);return u(function(){w.hasValue=!0,w.value=D},[D]),h(D),D},Eu}var Pp;function _1(){return Pp||(Pp=1,_u.exports=v1()),_u.exports}var E1=_1(),w1=B.version.startsWith("19"),b1=Symbol.for(w1?"react.transitional.element":"react.element"),S1=Symbol.for("react.portal"),x1=Symbol.for("react.fragment"),T1=Symbol.for("react.strict_mode"),C1=Symbol.for("react.profiler"),k1=Symbol.for("react.consumer"),R1=Symbol.for("react.context"),t0=Symbol.for("react.forward_ref"),O1=Symbol.for("react.suspense"),N1=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),A1=Symbol.for("react.lazy"),I1=t0,D1=Kc;function P1(e){if(typeof e=="object"&&e!==null){const{$$typeof:r}=e;switch(r){case b1:switch(e=e.type,e){case x1:case C1:case T1:case O1:case N1:return e;default:switch(e=e&&e.$$typeof,e){case R1:case t0:case A1:case Kc:return e;case k1:return e;default:return r}}case S1:return r}}}function M1(e){return P1(e)===Kc}function F1(e,r,o,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:f}){let h=!1,p,v,_,b,m;function T(N,E){return p=N,v=E,_=e(p,v),b=r(s,v),m=o(_,b,v),h=!0,m}function w(){return _=e(p,v),r.dependsOnOwnProps&&(b=r(s,v)),m=o(_,b,v),m}function D(){return e.dependsOnOwnProps&&(_=e(p,v)),r.dependsOnOwnProps&&(b=r(s,v)),m=o(_,b,v),m}function R(){const N=e(p,v),E=!f(N,_);return _=N,E&&(m=o(_,b,v)),m}function P(N,E){const C=!u(E,v),x=!l(N,p,E,v);return p=N,v=E,C&&x?w():C?D():x?R():m}return function(E,C){return h?P(E,C):T(E,C)}}function L1(e,{initMapStateToProps:r,initMapDispatchToProps:o,initMergeProps:s,...l}){const u=r(e,l),f=o(e,l),h=s(e,l);return F1(u,f,h,e,l)}function B1(e,r){const o={};for(const s in e){const l=e[s];typeof l=="function"&&(o[s]=(...u)=>r(l(...u)))}return o}function yc(e){return function(o){const s=e(o);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Mp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function n0(e,r){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=Mp(e);let v=u(h,p);return typeof v=="function"&&(u.mapToProps=v,u.dependsOnOwnProps=Mp(v),v=u(h,p)),v},u}}function Zc(e,r){return(o,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function j1(e){return e&&typeof e=="object"?yc(r=>B1(e,r)):e?typeof e=="function"?n0(e):Zc(e,"mapDispatchToProps"):yc(r=>({dispatch:r}))}function U1(e){return e?typeof e=="function"?n0(e):Zc(e,"mapStateToProps"):yc(()=>({}))}function H1(e,r,o){return{...o,...e,...r}}function z1(e){return function(o,{displayName:s,areMergedPropsEqual:l}){let u=!1,f;return function(p,v,_){const b=e(p,v,_);return u?l(b,f)||(f=b):(u=!0,f=b),f}}}function G1(e){return e?typeof e=="function"?z1(e):Zc(e,"mergeProps"):()=>H1}function $1(e){e()}function V1(){let e=null,r=null;return{clear(){e=null,r=null},notify(){$1(()=>{let o=e;for(;o;)o.callback(),o=o.next})},get(){const o=[];let s=e;for(;s;)o.push(s),s=s.next;return o},subscribe(o){let s=!0;const l=r={callback:o,next:null,prev:r};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:r=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Fp={notify(){},get:()=>[]};function r0(e,r){let o,s=Fp,l=0,u=!1;function f(D){_();const R=s.subscribe(D);let P=!1;return()=>{P||(P=!0,R(),b())}}function h(){s.notify()}function p(){w.onStateChange&&w.onStateChange()}function v(){return u}function _(){l++,o||(o=r?r.addNestedSub(p):e.subscribe(p),s=V1())}function b(){l--,o&&l===0&&(o(),o=void 0,s.clear(),s=Fp)}function m(){u||(u=!0,_())}function T(){u&&(u=!1,b())}const w={addNestedSub:f,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:v,trySubscribe:m,tryUnsubscribe:T,getListeners:()=>s};return w}var q1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",W1=q1(),K1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Z1=K1(),Q1=()=>W1||Z1?B.useLayoutEffect:B.useEffect,Js=Q1();function Lp(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function wu(e,r){if(Lp(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!Object.prototype.hasOwnProperty.call(r,o[l])||!Lp(e[o[l]],r[o[l]]))return!1;return!0}var X1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Y1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eE={[I1]:J1,[D1]:o0};function Bp(e){return M1(e)?o0:eE[e.$$typeof]||X1}var tE=Object.defineProperty,nE=Object.getOwnPropertyNames,jp=Object.getOwnPropertySymbols,rE=Object.getOwnPropertyDescriptor,oE=Object.getPrototypeOf,Up=Object.prototype;function vc(e,r){if(typeof r!="string"){if(Up){const u=oE(r);u&&u!==Up&&vc(e,u)}let o=nE(r);jp&&(o=o.concat(jp(r)));const s=Bp(e),l=Bp(r);for(let u=0;u<o.length;++u){const f=o[u];if(!Y1[f]&&!(l&&l[f])&&!(s&&s[f])){const h=rE(r,f);try{tE(e,f,h)}catch{}}}}return e}var bu=Symbol.for("react-redux-context"),Su=typeof globalThis<"u"?globalThis:{};function iE(){if(!B.createContext)return{};const e=Su[bu]??(Su[bu]=new Map);let r=e.get(B.createContext);return r||(r=B.createContext(null),e.set(B.createContext,r)),r}var Rn=iE(),sE=[null,null];function aE(e,r,o){Js(()=>e(...r),o)}function lE(e,r,o,s,l,u){e.current=s,o.current=!1,l.current&&(l.current=null,u())}function uE(e,r,o,s,l,u,f,h,p,v,_){if(!e)return()=>{};let b=!1,m=null;const T=()=>{if(b||!h.current)return;const D=r.getState();let R,P;try{R=s(D,l.current)}catch(N){P=N,m=N}P||(m=null),R===u.current?f.current||v():(u.current=R,p.current=R,f.current=!0,_())};return o.onStateChange=T,o.trySubscribe(),T(),()=>{if(b=!0,o.tryUnsubscribe(),o.onStateChange=null,m)throw m}}function cE(e,r){return e===r}function fE(e,r,o,{pure:s,areStatesEqual:l=cE,areOwnPropsEqual:u=wu,areStatePropsEqual:f=wu,areMergedPropsEqual:h=wu,forwardRef:p=!1,context:v=Rn}={}){const _=v,b=U1(e),m=j1(r),T=G1(o),w=!!e;return R=>{const P=R.displayName||R.name||"Component",N=`Connect(${P})`,E={shouldHandleStateChanges:w,displayName:N,wrappedComponentName:P,WrappedComponent:R,initMapStateToProps:b,initMapDispatchToProps:m,initMergeProps:T,areStatesEqual:l,areStatePropsEqual:f,areOwnPropsEqual:u,areMergedPropsEqual:h};function C(z){const[W,he,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ct,...en}=z;return[z.context,ct,en]},[z]),ce=B.useMemo(()=>{let ct=_;return W!=null&&W.Consumer,ct},[W,_]),pe=B.useContext(ce),le=!!z.store&&!!z.store.getState&&!!z.store.dispatch,Ue=!!pe&&!!pe.store,Ie=le?z.store:pe.store,$e=Ue?pe.getServerState:Ie.getState,Ne=B.useMemo(()=>L1(Ie.dispatch,E),[Ie]),[q,ne]=B.useMemo(()=>{if(!w)return sE;const ct=r0(Ie,le?void 0:pe.subscription),en=ct.notifyNestedSubs.bind(ct);return[ct,en]},[Ie,le,pe]),Z=B.useMemo(()=>le?pe:{...pe,subscription:q},[le,pe,q]),A=B.useRef(void 0),j=B.useRef(te),ue=B.useRef(void 0),de=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Js(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ue.current&&te===j.current?ue.current:Ne(Ie.getState(),te),[Ie,te]),Te=B.useMemo(()=>en=>q?uE(w,Ie,q,Ne,j,A,de,ye,ue,ne,en):()=>{},[q]);aE(lE,[j,A,de,te,ue,ne]);let Re;try{Re=B.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ct){throw ve.current&&(ct.message+=`
49
- The error may be correlated with this previous error:
50
- ${ve.current.stack}
51
-
52
- `),ct}Js(()=>{ve.current=void 0,ue.current=void 0,A.current=Re});const et=B.useMemo(()=>B.createElement(R,{...Re,ref:he}),[he,R,Re]);return B.useMemo(()=>w?B.createElement(ce.Provider,{value:Z},et):et,[ce,et,Z])}const F=B.memo(C);if(F.WrappedComponent=R,F.displayName=C.displayName=N,p){const W=B.forwardRef(function(te,ce){return B.createElement(F,{...te,reactReduxForwardedRef:ce})});return W.displayName=N,W.WrappedComponent=R,vc(W,R)}return vc(F,R)}}var dE=fE;function hE(e){const{children:r,context:o,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=r0(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),f=B.useMemo(()=>l.getState(),[l]);Js(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),f!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,f]);const h=o||Rn;return B.createElement(h.Provider,{value:u},r)}var pE=hE;function Qc(e=Rn){return function(){return B.useContext(e)}}var i0=Qc();function s0(e=Rn){const r=e===Rn?i0:Qc(e),o=()=>{const{store:s}=r();return s};return Object.assign(o,{withTypes:()=>o}),o}var mE=s0();function gE(e=Rn){const r=e===Rn?mE:s0(e),o=()=>r().dispatch;return Object.assign(o,{withTypes:()=>o}),o}var yE=gE(),vE=(e,r)=>e===r;function _E(e=Rn){const r=e===Rn?i0:Qc(e),o=(s,l={})=>{const{equalityFn:u=vE}=typeof l=="function"?{equalityFn:l}:l,f=r(),{store:h,subscription:p,getServerState:v}=f;B.useRef(!0);const _=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),b=E1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,v||h.getState,_,u);return B.useDebugValue(b),b};return Object.assign(o,{withTypes:()=>o}),o}var EE=_E(),xu={exports:{}};/*!
53
- Copyright (c) 2018 Jed Watson.
54
- Licensed under the MIT License (MIT), see
55
- http://jedwatson.github.io/classnames
56
- */var Hp;function wE(){return Hp||(Hp=1,function(e){(function(){var r={}.hasOwnProperty;function o(){for(var u="",f=0;f<arguments.length;f++){var h=arguments[f];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 o.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var h in u)r.call(u,h)&&u[h]&&(f=l(f,h));return f}function l(u,f){return f?u?u+" "+f:u+f:u}e.exports?(o.default=o,e.exports=o):window.classNames=o})()}(xu)),xu.exports}var bE=wE();const V=sa(bE);var _c=function(e,r){return _c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o[l]=s[l])},_c(e,r)};function Ut(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");_c(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}var J=function(){return J=Object.assign||function(r){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},J.apply(this,arguments)};function aa(e,r){var o={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(o[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(o[s[l]]=e[s[l]]);return o}function un(e,r,o){if(o||arguments.length===2)for(var s=0,l=r.length,u;s<l;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return e.concat(u||Array.prototype.slice.call(r))}function an(e,r){var o=r&&r.cache?r.cache:OE,s=r&&r.serializer?r.serializer:kE,l=r&&r.strategy?r.strategy:TE;return l(e,{cache:o,serializer:s})}function SE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function xE(e,r,o,s){var l=SE(s)?s:o(s),u=r.get(l);return typeof u>"u"&&(u=e.call(this,s),r.set(l,u)),u}function a0(e,r,o){var s=Array.prototype.slice.call(arguments,3),l=o(s),u=r.get(l);return typeof u>"u"&&(u=e.apply(this,s),r.set(l,u)),u}function l0(e,r,o,s,l){return o.bind(r,e,s,l)}function TE(e,r){var o=e.length===1?xE:a0;return l0(e,this,o,r.cache.create(),r.serializer)}function CE(e,r){return l0(e,this,a0,r.cache.create(),r.serializer)}var kE=function(){return JSON.stringify(arguments)},RE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(r){return this.cache[r]},e.prototype.set=function(r,o){this.cache[r]=o},e}(),OE={create:function(){return new RE}},ln={variadic:CE},_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 Qr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qr||(Qr={}));function zp(e){return e.type===Me.literal}function NE(e){return e.type===Me.argument}function u0(e){return e.type===Me.number}function c0(e){return e.type===Me.date}function f0(e){return e.type===Me.time}function d0(e){return e.type===Me.select}function h0(e){return e.type===Me.plural}function AE(e){return e.type===Me.pound}function p0(e){return e.type===Me.tag}function m0(e){return!!(e&&typeof e=="object"&&e.type===Qr.number)}function Ec(e){return!!(e&&typeof e=="object"&&e.type===Qr.dateTime)}var g0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,IE=/(?:[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 DE(e){var r={};return e.replace(IE,function(o){var s=o.length;switch(o[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][s-1];break;case"s":r.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":r.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""}),r}var PE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ME(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(PE).filter(function(m){return m.length>0}),o=[],s=0,l=r;s<l.length;s++){var u=l[s],f=u.split("/");if(f.length===0)throw new Error("Invalid number skeleton");for(var h=f[0],p=f.slice(1),v=0,_=p;v<_.length;v++){var b=_[v];if(b.length===0)throw new Error("Invalid number skeleton")}o.push({stem:h,options:p})}return o}function FE(e){return e.replace(/^(.*?)-/,"")}var Gp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,y0=/^(@+)?(\+|#+)?[rs]?$/g,LE=/(\*)(0+)|(#+)(0+)|(0+)/g,v0=/^(0+)$/;function $p(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(y0,function(o,s,l){return typeof l!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):l==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof l=="string"?l.length:0)),""}),r}function _0(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 BE(e){var r;if(e[0]==="E"&&e[1]==="E"?(r={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(r={notation:"scientific"},e=e.slice(1)),r){var o=e.slice(0,2);if(o==="+!"?(r.signDisplay="always",e=e.slice(2)):o==="+?"&&(r.signDisplay="exceptZero",e=e.slice(2)),!v0.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function Vp(e){var r={},o=_0(e);return o||r}function jE(e){for(var r={},o=0,s=e;o<s.length;o++){var l=s[o];switch(l.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=l.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=FE(l.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=J(J(J({},r),{notation:"scientific"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));continue;case"engineering":r=J(J(J({},r),{notation:"engineering"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(LE,function(p,v,_,b,m,T){if(v)r.minimumIntegerDigits=_.length;else{if(b&&m)throw new Error("We currently do not support maximum integer digits");if(T)throw new Error("We currently do not support exact integer digits")}return""});continue}if(v0.test(l.stem)){r.minimumIntegerDigits=l.stem.length;continue}if(Gp.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace(Gp,function(p,v,_,b,m,T){return _==="*"?r.minimumFractionDigits=v.length:b&&b[0]==="#"?r.maximumFractionDigits=b.length:m&&T?(r.minimumFractionDigits=m.length,r.maximumFractionDigits=m.length+T.length):(r.minimumFractionDigits=v.length,r.maximumFractionDigits=v.length),""});var u=l.options[0];u==="w"?r=J(J({},r),{trailingZeroDisplay:"stripIfInteger"}):u&&(r=J(J({},r),$p(u)));continue}if(y0.test(l.stem)){r=J(J({},r),$p(l.stem));continue}var f=_0(l.stem);f&&(r=J(J({},r),f));var h=BE(l.stem);h&&(r=J(J({},r),h))}return r}var _s={"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 UE(e,r){for(var o="",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 f=1+(u&1),h=u<2?1:3+(u>>1),p="a",v=HE(r);for((v=="H"||v=="k")&&(h=0);h-- >0;)o+=p;for(;f-- >0;)o=v+o}else l==="J"?o+="H":o+=l}return o}function HE(e){var r=e.hourCycle;if(r===void 0&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var o=e.language,s;o!=="root"&&(s=e.maximize().region);var l=_s[s||""]||_s[o||""]||_s["".concat(o,"-001")]||_s["001"];return l[0]}var Tu,zE=new RegExp("^".concat(g0.source,"*")),GE=new RegExp("".concat(g0.source,"*$"));function we(e,r){return{start:e,end:r}}var $E=!!String.prototype.startsWith&&"_a".startsWith("a",1),VE=!!String.fromCodePoint,qE=!!Object.fromEntries,WE=!!String.prototype.codePointAt,KE=!!String.prototype.trimStart,ZE=!!String.prototype.trimEnd,QE=!!Number.isSafeInteger,XE=QE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wc=!0;try{var YE=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wc=((Tu=YE.exec("a"))===null||Tu===void 0?void 0:Tu[0])==="a"}catch{wc=!1}var qp=$E?function(r,o,s){return r.startsWith(o,s)}:function(r,o,s){return r.slice(s,s+o.length)===o},bc=VE?String.fromCodePoint:function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];for(var s="",l=r.length,u=0,f;l>u;){if(f=r[u++],f>1114111)throw RangeError(f+" is not a valid code point");s+=f<65536?String.fromCharCode(f):String.fromCharCode(((f-=65536)>>10)+55296,f%1024+56320)}return s},Wp=qE?Object.fromEntries:function(r){for(var o={},s=0,l=r;s<l.length;s++){var u=l[s],f=u[0],h=u[1];o[f]=h}return o},E0=WE?function(r,o){return r.codePointAt(o)}:function(r,o){var s=r.length;if(!(o<0||o>=s)){var l=r.charCodeAt(o),u;return l<55296||l>56319||o+1===s||(u=r.charCodeAt(o+1))<56320||u>57343?l:(l-55296<<10)+(u-56320)+65536}},JE=KE?function(r){return r.trimStart()}:function(r){return r.replace(zE,"")},ew=ZE?function(r){return r.trimEnd()}:function(r){return r.replace(GE,"")};function w0(e,r){return new RegExp(e,r)}var Sc;if(wc){var Kp=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Sc=function(r,o){var s;Kp.lastIndex=o;var l=Kp.exec(r);return(s=l[1])!==null&&s!==void 0?s:""}}else Sc=function(r,o){for(var s=[];;){var l=E0(r,o);if(l===void 0||b0(l)||ow(l))break;s.push(l),o+=l>=65536?2:1}return bc.apply(void 0,s)};var tw=function(){function e(r,o){o===void 0&&(o={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!o.ignoreTag,this.locale=o.locale,this.requiresOtherClause=!!o.requiresOtherClause,this.shouldParseSkeletons=!!o.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(r,o,s){for(var l=[];!this.isEOF();){var u=this.char();if(u===123){var f=this.parseArgument(r,s);if(f.err)return f;l.push(f.val)}else{if(u===125&&r>0)break;if(u===35&&(o==="plural"||o==="selectordinal")){var h=this.clonePosition();this.bump(),l.push({type:Me.pound,location:we(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&xc(this.peek()||0)){var f=this.parseTag(r,o);if(f.err)return f;l.push(f.val)}else{var f=this.parseLiteral(r,o);if(f.err)return f;l.push(f.val)}}}return{val:l,err:null}},e.prototype.parseTag=function(r,o){var s=this.clonePosition();this.bump();var l=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(l,"/>"),location:we(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(r+1,o,!0);if(u.err)return u;var f=u.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xc(this.char()))return this.error(_e.INVALID_TAG,we(h,this.clonePosition()));var p=this.clonePosition(),v=this.parseTagName();return l!==v?this.error(_e.UNMATCHED_CLOSING_TAG,we(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:f,location:we(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,we(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,we(s,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&rw(this.char());)this.bump();return this.message.slice(r,this.offset())},e.prototype.parseLiteral=function(r,o){for(var s=this.clonePosition(),l="";;){var u=this.tryParseQuote(o);if(u){l+=u;continue}var f=this.tryParseUnquoted(r,o);if(f){l+=f;continue}var h=this.tryParseLeftAngleBracket();if(h){l+=h;continue}break}var p=we(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||!nw(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var o=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)o.push(39),this.bump();else{this.bump();break}else o.push(s);this.bump()}return bc.apply(void 0,o)},e.prototype.tryParseUnquoted=function(r,o){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(o==="plural"||o==="selectordinal")||s===125&&r>0?null:(this.bump(),bc(s))},e.prototype.parseArgument=function(r,o){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,we(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(r,o,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),o=this.offset(),s=Sc(this.message,o),l=o+s.length;this.bumpTo(l);var u=this.clonePosition(),f=we(r,u);return{value:s,location:f}},e.prototype.parseArgumentOptions=function(r,o,s,l){var u,f=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(_e.EXPECT_ARGUMENT_TYPE,we(f,p));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var _=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;var m=ew(b.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var T=we(_,this.clonePosition());v={style:m,styleLocation:T}}var w=this.tryParseArgumentClose(l);if(w.err)return w;var D=we(l,this.clonePosition());if(v&&qp(v==null?void 0:v.style,"::",0)){var R=JE(v.style.slice(2));if(h==="number"){var b=this.parseNumberSkeletonFromString(R,v.styleLocation);return b.err?b:{val:{type:Me.number,value:s,location:D,style:b.val},err:null}}else{if(R.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,D);var P=R;this.locale&&(P=UE(R,this.locale));var m={type:Qr.dateTime,pattern:P,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?DE(P):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:D,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:D,style:(u=v==null?void 0:v.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,we(E,J({},E)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),x=0;if(h!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var b=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(b.err)return b;this.bumpSpace(),C=this.parseIdentifierIfPossible(),x=b.val}var F=this.tryParsePluralOrSelectOptions(r,h,o,C);if(F.err)return F;var w=this.tryParseArgumentClose(l);if(w.err)return w;var z=we(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Wp(F.val),location:z},err:null}:{val:{type:Me.plural,value:s,options:Wp(F.val),offset:x,pluralType:h==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,we(f,p))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,o=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,we(l,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(o.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(o.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(r,o){var s=[];try{s=ME(r)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,o)}return{val:{type:Qr.number,tokens:s,location:o,parsedOptions:this.shouldParseSkeletons?jE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,o,s,l){for(var u,f=!1,h=[],p=new Set,v=l.value,_=l.location;;){if(v.length===0){var b=this.clonePosition();if(o!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;_=we(b,this.clonePosition()),v=this.message.slice(b.offset,this.offset())}else break}if(p.has(v))return this.error(o==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,_);v==="other"&&(f=!0),this.bumpSpace();var T=this.clonePosition();if(!this.bumpIf("{"))return this.error(o==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(r+1,o,s);if(w.err)return w;var D=this.tryParseArgumentClose(T);if(D.err)return D;h.push([v,{value:w.val,location:we(T,this.clonePosition())}]),p.add(v),this.bumpSpace(),u=this.parseIdentifierIfPossible(),v=u.value,_=u.location}return h.length===0?this.error(o==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!f?this.error(_e.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(r,o){var s=1,l=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var u=!1,f=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)u=!0,f=f*10+(h-48),this.bump();else break}var p=we(l,this.clonePosition());return u?(f*=s,XE(f)?{val:f,err:null}:this.error(o,p)):this.error(r,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 r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var o=E0(this.message,r);if(o===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return o},e.prototype.error=function(r,o){return{val:null,err:{kind:r,message:this.message,location:o}}},e.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},e.prototype.bumpIf=function(r){if(qp(this.message,r,this.offset())){for(var o=0;o<r.length;o++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(r){var o=this.offset(),s=this.message.indexOf(r,o);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var o=this.offset();if(o===r)break;if(o>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&b0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),o=this.offset(),s=this.message.charCodeAt(o+(r>=65536?2:1));return s??null},e}();function xc(e){return e>=97&&e<=122||e>=65&&e<=90}function nw(e){return xc(e)||e===47}function rw(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 b0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ow(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 Tc(e){e.forEach(function(r){if(delete r.location,d0(r)||h0(r))for(var o in r.options)delete r.options[o].location,Tc(r.options[o].value);else u0(r)&&m0(r.style)||(c0(r)||f0(r))&&Ec(r.style)?delete r.style.location:p0(r)&&Tc(r.children)})}function iw(e,r){r===void 0&&(r={}),r=J({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var o=new tw(e,r).parse();if(o.err){var s=SyntaxError(_e[o.err.kind]);throw s.location=o.err.location,s.originalMessage=o.err.message,s}return r!=null&&r.captureLocation||Tc(o.val),o.val}var dn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(dn||(dn={}));var Jn=function(e){Ut(r,e);function r(o,s,l){var u=e.call(this,o)||this;return u.code=s,u.originalMessage=l,u}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Zp=function(e){Ut(r,e);function r(o,s,l,u){return e.call(this,'Invalid values for "'.concat(o,'": "').concat(s,'". Options are "').concat(Object.keys(l).join('", "'),'"'),dn.INVALID_VALUE,u)||this}return r}(Jn),sw=function(e){Ut(r,e);function r(o,s,l){return e.call(this,'Value for "'.concat(o,'" must be of type ').concat(s),dn.INVALID_VALUE,l)||this}return r}(Jn),aw=function(e){Ut(r,e);function r(o,s){return e.call(this,'The intl string context variable "'.concat(o,'" was not provided to the string "').concat(s,'"'),dn.MISSING_VALUE,s)||this}return r}(Jn),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function lw(e){return e.length<2?e:e.reduce(function(r,o){var s=r[r.length-1];return!s||s.type!==ht.literal||o.type!==ht.literal?r.push(o):s.value+=o.value,r},[])}function S0(e){return typeof e=="function"}function Ws(e,r,o,s,l,u,f){if(e.length===1&&zp(e[0]))return[{type:ht.literal,value:e[0].value}];for(var h=[],p=0,v=e;p<v.length;p++){var _=v[p];if(zp(_)){h.push({type:ht.literal,value:_.value});continue}if(AE(_)){typeof u=="number"&&h.push({type:ht.literal,value:o.getNumberFormat(r).format(u)});continue}var b=_.value;if(!(l&&b in l))throw new aw(b,f);var m=l[b];if(NE(_)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?ht.literal:ht.object,value:m});continue}if(c0(_)){var T=typeof _.style=="string"?s.date[_.style]:Ec(_.style)?_.style.parsedOptions:void 0;h.push({type:ht.literal,value:o.getDateTimeFormat(r,T).format(m)});continue}if(f0(_)){var T=typeof _.style=="string"?s.time[_.style]:Ec(_.style)?_.style.parsedOptions:s.time.medium;h.push({type:ht.literal,value:o.getDateTimeFormat(r,T).format(m)});continue}if(u0(_)){var T=typeof _.style=="string"?s.number[_.style]:m0(_.style)?_.style.parsedOptions:void 0;T&&T.scale&&(m=m*(T.scale||1)),h.push({type:ht.literal,value:o.getNumberFormat(r,T).format(m)});continue}if(p0(_)){var w=_.children,D=_.value,R=l[D];if(!S0(R))throw new sw(D,"function",f);var P=Ws(w,r,o,s,l,u),N=R(P.map(function(x){return x.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(x){return{type:typeof x=="string"?ht.literal:ht.object,value:x}}))}if(d0(_)){var E=_.options[m]||_.options.other;if(!E)throw new Zp(_.value,m,Object.keys(_.options),f);h.push.apply(h,Ws(E.value,r,o,s,l));continue}if(h0(_)){var E=_.options["=".concat(m)];if(!E){if(!Intl.PluralRules)throw new Jn(`Intl.PluralRules is not available in this environment.
57
- Try polyfilling it using "@formatjs/intl-pluralrules"
58
- `,dn.MISSING_INTL_API,f);var C=o.getPluralRules(r,{type:_.pluralType}).select(m-(_.offset||0));E=_.options[C]||_.options.other}if(!E)throw new Zp(_.value,m,Object.keys(_.options),f);h.push.apply(h,Ws(E.value,r,o,s,l,m-(_.offset||0)));continue}}return lw(h)}function uw(e,r){return r?J(J(J({},e||{}),r||{}),Object.keys(e).reduce(function(o,s){return o[s]=J(J({},e[s]),r[s]||{}),o},{})):e}function cw(e,r){return r?Object.keys(e).reduce(function(o,s){return o[s]=uw(e[s],r[s]),o},J({},e)):e}function Cu(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,o){e[r]=o}}}}}function fw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:an(function(){for(var r,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,un([void 0],o,!1)))},{cache:Cu(e.number),strategy:ln.variadic}),getDateTimeFormat:an(function(){for(var r,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,un([void 0],o,!1)))},{cache:Cu(e.dateTime),strategy:ln.variadic}),getPluralRules:an(function(){for(var r,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,un([void 0],o,!1)))},{cache:Cu(e.pluralRules),strategy:ln.variadic})}}var x0=function(){function e(r,o,s,l){o===void 0&&(o=e.defaultLocale);var u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var v=u.formatToParts(p);if(v.length===1)return v[0].value;var _=v.reduce(function(b,m){return!b.length||m.type!==ht.literal||typeof b[b.length-1]!="string"?b.push(m.value):b[b.length-1]+=m.value,b},[]);return _.length<=1?_[0]||"":_},this.formatToParts=function(p){return Ws(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=o,this.resolvedLocale=e.resolveLocale(o),typeof r=="string"){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=l||{};f.formatters;var h=aa(f,["formatters"]);this.ast=e.__parse(r,J(J({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=cw(e.formats,s),this.formatters=l&&l.formatters||fw(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(r){if(!(typeof Intl.Locale>"u")){var o=Intl.NumberFormat.supportedLocalesOf(r);return o.length>0?new Intl.Locale(o[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},e.__parse=iw,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}(),wr;(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"})(wr||(wr={}));var si=function(e){Ut(r,e);function r(o,s,l){var u=this,f=l?l instanceof Error?l:new Error(String(l)):void 0;return u=e.call(this,"[@formatjs/intl Error ".concat(o,"] ").concat(s,`
59
- `).concat(f?`
60
- `.concat(f.message,`
61
- `).concat(f.stack):""))||this,u.code=o,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,r),u}return r}(Error),dw=function(e){Ut(r,e);function r(o,s){return e.call(this,wr.UNSUPPORTED_FORMATTER,o,s)||this}return r}(si),hw=function(e){Ut(r,e);function r(o,s){return e.call(this,wr.INVALID_CONFIG,o,s)||this}return r}(si),Qp=function(e){Ut(r,e);function r(o,s){return e.call(this,wr.MISSING_DATA,o,s)||this}return r}(si),Ht=function(e){Ut(r,e);function r(o,s,l){var u=e.call(this,wr.FORMAT_ERROR,"".concat(o,`
62
- Locale: `).concat(s,`
63
- `),l)||this;return u.locale=s,u}return r}(si),ku=function(e){Ut(r,e);function r(o,s,l,u){var f=e.call(this,"".concat(o,`
64
- MessageID: `).concat(l==null?void 0:l.id,`
65
- Default Message: `).concat(l==null?void 0:l.defaultMessage,`
66
- Description: `).concat(l==null?void 0:l.description,`
67
- `),s,u)||this;return f.descriptor=l,f.locale=s,f}return r}(Ht),pw=function(e){Ut(r,e);function r(o,s){var l=e.call(this,wr.MISSING_TRANSLATION,'Missing message: "'.concat(o.id,'" for locale "').concat(s,'", using ').concat(o.defaultMessage?"default message (".concat(typeof o.defaultMessage=="string"?o.defaultMessage:o.defaultMessage.map(function(u){var f;return(f=u.value)!==null&&f!==void 0?f:JSON.stringify(u)}).join(),")"):"id"," as fallback."))||this;return l.descriptor=o,l}return r}(si);function mw(e,r,o){if(o===void 0&&(o=Error),!e)throw new o(r)}function eo(e,r,o){return o===void 0&&(o={}),r.reduce(function(s,l){return l in e?s[l]=e[l]:l in o&&(s[l]=o[l]),s},{})}var gw=function(e){},yw=function(e){},T0={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:gw,onWarn:yw};function C0(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function hr(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,o){e[r]=o}}}}}function vw(e){e===void 0&&(e=C0());var r=Intl.RelativeTimeFormat,o=Intl.ListFormat,s=Intl.DisplayNames,l=an(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.DateTimeFormat).bind.apply(h,un([void 0],p,!1)))},{cache:hr(e.dateTime),strategy:ln.variadic}),u=an(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.NumberFormat).bind.apply(h,un([void 0],p,!1)))},{cache:hr(e.number),strategy:ln.variadic}),f=an(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.PluralRules).bind.apply(h,un([void 0],p,!1)))},{cache:hr(e.pluralRules),strategy:ln.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:an(function(h,p,v,_){return new x0(h,p,v,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:f}},_||{}))},{cache:hr(e.message),strategy:ln.variadic}),getRelativeTimeFormat:an(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(r.bind.apply(r,un([void 0],h,!1)))},{cache:hr(e.relativeTime),strategy:ln.variadic}),getPluralRules:f,getListFormat:an(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(o.bind.apply(o,un([void 0],h,!1)))},{cache:hr(e.list),strategy:ln.variadic}),getDisplayNames:an(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,un([void 0],h,!1)))},{cache:hr(e.displayNames),strategy:ln.variadic})}}function Xc(e,r,o,s){var l=e&&e[r],u;if(l&&(u=l[o]),u)return u;s(new dw("No ".concat(r," format named: ").concat(o)))}function Es(e,r){return Object.keys(e).reduce(function(o,s){return o[s]=J({timeZone:r},e[s]),o},{})}function Xp(e,r){var o=Object.keys(J(J({},e),r));return o.reduce(function(s,l){return s[l]=J(J({},e[l]||{}),r[l]||{}),s},{})}function Yp(e,r){if(!r)return e;var o=x0.formats;return J(J(J({},o),e),{date:Xp(Es(o.date,r),Es(e.date||{},r)),time:Xp(Es(o.time,r),Es(e.time||{},r))})}var Cc=function(e,r,o,s,l){var u=e.locale,f=e.formats,h=e.messages,p=e.defaultLocale,v=e.defaultFormats,_=e.fallbackOnEmptyString,b=e.onError,m=e.timeZone,T=e.defaultRichTextElements;o===void 0&&(o={id:""});var w=o.id,D=o.defaultMessage;mw(!!w,"[@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 R=String(w),P=h&&Object.prototype.hasOwnProperty.call(h,R)&&h[R];if(Array.isArray(P)&&P.length===1&&P[0].type===Me.literal)return P[0].value;if(!s&&P&&typeof P=="string"&&!T)return P.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=J(J({},T),s||{}),f=Yp(f,m),v=Yp(v,m),!P){if(_===!1&&P==="")return P;if((!D||u&&u.toLowerCase()!==p.toLowerCase())&&b(new pw(o,u)),D)try{var N=r.getMessageFormat(D,p,v,l);return N.format(s)}catch(E){return b(new ku('Error formatting default message for: "'.concat(R,'", rendering default message verbatim'),u,o,E)),typeof D=="string"?D:R}return R}try{var N=r.getMessageFormat(P,u,f,J({formatters:r},l||{}));return N.format(s)}catch(E){b(new ku('Error formatting message: "'.concat(R,'", using ').concat(D?"default message":"id"," as fallback."),u,o,E))}if(D)try{var N=r.getMessageFormat(D,p,v,l);return N.format(s)}catch(E){b(new ku('Error formatting the default message for: "'.concat(R,'", rendering message verbatim'),u,o,E))}return typeof P=="string"?P:typeof D=="string"?D:R},_w=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ai(e,r,o,s){var l=e.locale,u=e.formats,f=e.onError,h=e.timeZone;s===void 0&&(s={});var p=s.format,v=J(J({},h&&{timeZone:h}),p&&Xc(u,r,p,f)),_=eo(s,_w,v);return r==="time"&&!_.hour&&!_.minute&&!_.second&&!_.timeStyle&&!_.dateStyle&&(_=J(J({},_),{hour:"numeric",minute:"numeric"})),o(l,_)}function Ew(e,r){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var l=o[0],u=o[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ai(e,"date",r,f).format(h)}catch(p){e.onError(new Ht("Error formatting date.",e.locale,p))}return String(h)}function ww(e,r){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var l=o[0],u=o[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ai(e,"time",r,f).format(h)}catch(p){e.onError(new Ht("Error formatting time.",e.locale,p))}return String(h)}function bw(e,r){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var l=o[0],u=o[1],f=o[2],h=f===void 0?{}:f,p=typeof l=="string"?new Date(l||0):l,v=typeof u=="string"?new Date(u||0):u;try{return ai(e,"dateTimeRange",r,h).formatRange(p,v)}catch(_){e.onError(new Ht("Error formatting date time range.",e.locale,_))}return String(p)}function Sw(e,r){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var l=o[0],u=o[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ai(e,"date",r,f).formatToParts(h)}catch(p){e.onError(new Ht("Error formatting date.",e.locale,p))}return[]}function xw(e,r){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var l=o[0],u=o[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ai(e,"time",r,f).formatToParts(h)}catch(p){e.onError(new Ht("Error formatting time.",e.locale,p))}return[]}var Tw=["style","type","fallback","languageDisplay"];function Cw(e,r,o,s){var l=e.locale,u=e.onError,f=Intl.DisplayNames;f||u(new Jn(`Intl.DisplayNames is not available in this environment.
68
- Try polyfilling it using "@formatjs/intl-displaynames"
69
- `,dn.MISSING_INTL_API));var h=eo(s,Tw);try{return r(l,h).of(o)}catch(p){u(new Ht("Error formatting display name.",l,p))}}var kw=["type","style"],Jp=Date.now();function Rw(e){return"".concat(Jp,"_").concat(e,"_").concat(Jp)}function Ow(e,r,o,s){s===void 0&&(s={});var l=k0(e,r,o,s).reduce(function(u,f){var h=f.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 k0(e,r,o,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var f=Intl.ListFormat;f||u(new Jn(`Intl.ListFormat is not available in this environment.
70
- Try polyfilling it using "@formatjs/intl-listformat"
71
- `,dn.MISSING_INTL_API));var h=eo(s,kw);try{var p={},v=o.map(function(_,b){if(typeof _=="object"){var m=Rw(b);return p[m]=_,m}return String(_)});return r(l,h).formatToParts(v).map(function(_){return _.type==="literal"?_:J(J({},_),{value:p[_.value]||_.value})})}catch(_){u(new Ht("Error formatting list.",l,_))}return o}var Nw=["type"];function Aw(e,r,o,s){var l=e.locale,u=e.onError;s===void 0&&(s={}),Intl.PluralRules||u(new Jn(`Intl.PluralRules is not available in this environment.
72
- Try polyfilling it using "@formatjs/intl-pluralrules"
73
- `,dn.MISSING_INTL_API));var f=eo(s,Nw);try{return r(l,f).select(o)}catch(h){u(new Ht("Error formatting plural.",l,h))}return"other"}var Iw=["numeric","style"];function Dw(e,r,o){var s=e.locale,l=e.formats,u=e.onError;o===void 0&&(o={});var f=o.format,h=!!f&&Xc(l,"relative",f,u)||{},p=eo(o,Iw,h);return r(s,p)}function Pw(e,r,o,s,l){l===void 0&&(l={}),s||(s="second");var u=Intl.RelativeTimeFormat;u||e.onError(new Jn(`Intl.RelativeTimeFormat is not available in this environment.
74
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
75
- `,dn.MISSING_INTL_API));try{return Dw(e,r,l).format(o,s)}catch(f){e.onError(new Ht("Error formatting relative time.",e.locale,f))}return String(o)}var Mw=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function R0(e,r,o){var s=e.locale,l=e.formats,u=e.onError;o===void 0&&(o={});var f=o.format,h=f&&Xc(l,"number",f,u)||{},p=eo(o,Mw,h);return r(s,p)}function Fw(e,r,o,s){s===void 0&&(s={});try{return R0(e,r,s).format(o)}catch(l){e.onError(new Ht("Error formatting number.",e.locale,l))}return String(o)}function Lw(e,r,o,s){s===void 0&&(s={});try{return R0(e,r,s).formatToParts(o)}catch(l){e.onError(new Ht("Error formatting number.",e.locale,l))}return[]}function Bw(e){var r=e?e[Object.keys(e)[0]]:void 0;return typeof r=="string"}function jw(e){e.onWarn&&e.defaultRichTextElements&&Bw(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
76
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
77
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Uw(e,r){var o=vw(r),s=J(J({},T0),e),l=s.locale,u=s.defaultLocale,f=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&f?f(new Qp('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&&f&&f(new Qp('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'))):(f&&f(new hw('"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"),jw(s),J(J({},s),{formatters:o,formatNumber:Fw.bind(null,s,o.getNumberFormat),formatNumberToParts:Lw.bind(null,s,o.getNumberFormat),formatRelativeTime:Pw.bind(null,s,o.getRelativeTimeFormat),formatDate:Ew.bind(null,s,o.getDateTimeFormat),formatDateToParts:Sw.bind(null,s,o.getDateTimeFormat),formatTime:ww.bind(null,s,o.getDateTimeFormat),formatDateTimeRange:bw.bind(null,s,o.getDateTimeFormat),formatTimeToParts:xw.bind(null,s,o.getDateTimeFormat),formatPlural:Aw.bind(null,s,o.getPluralRules),formatMessage:Cc.bind(null,s,o),$t:Cc.bind(null,s,o),formatList:Ow.bind(null,s,o.getListFormat),formatListToParts:k0.bind(null,s,o.getListFormat),formatDisplayName:Cw.bind(null,s,o.getDisplayNames)})}function Hw(e,r,o){if(o===void 0&&(o=Error),!e)throw new o(r)}function O0(e){Hw(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var N0=J(J({},T0),{textComponent:B.Fragment}),zw={key:42},Gw=function(e){return B.isValidElement(e)?B.createElement(B.Fragment,zw,e):e},$w=function(e){var r;return(r=B.Children.map(e,Gw))!==null&&r!==void 0?r:[]};function Vw(e){return function(r){return e(B.Children.toArray(r))}}function qw(e,r){if(e===r)return!0;if(!e||!r)return!1;var o=Object.keys(e),s=Object.keys(r),l=o.length;if(s.length!==l)return!1;for(var u=0;u<l;u++){var f=o[u];if(e[f]!==r[f]||!Object.prototype.hasOwnProperty.call(r,f))return!1}return!0}var Ru={exports:{}},Ce={};/** @license React v16.13.1
78
- * react-is.production.min.js
79
- *
80
- * Copyright (c) Facebook, Inc. and its affiliates.
81
- *
82
- * This source code is licensed under the MIT license found in the
83
- * LICENSE file in the root directory of this source tree.
84
- */var em;function Ww(){if(em)return Ce;em=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=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,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,_=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function E(x){if(typeof x=="object"&&x!==null){var F=x.$$typeof;switch(F){case r:switch(x=x.type,x){case p:case v:case s:case u:case l:case b:return x;default:switch(x=x&&x.$$typeof,x){case h:case _:case w:case T:case f:return x;default:return F}}case o:return F}}}function C(x){return E(x)===v}return Ce.AsyncMode=p,Ce.ConcurrentMode=v,Ce.ContextConsumer=h,Ce.ContextProvider=f,Ce.Element=r,Ce.ForwardRef=_,Ce.Fragment=s,Ce.Lazy=w,Ce.Memo=T,Ce.Portal=o,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=b,Ce.isAsyncMode=function(x){return C(x)||E(x)===p},Ce.isConcurrentMode=C,Ce.isContextConsumer=function(x){return E(x)===h},Ce.isContextProvider=function(x){return E(x)===f},Ce.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},Ce.isForwardRef=function(x){return E(x)===_},Ce.isFragment=function(x){return E(x)===s},Ce.isLazy=function(x){return E(x)===w},Ce.isMemo=function(x){return E(x)===T},Ce.isPortal=function(x){return E(x)===o},Ce.isProfiler=function(x){return E(x)===u},Ce.isStrictMode=function(x){return E(x)===l},Ce.isSuspense=function(x){return E(x)===b},Ce.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===s||x===v||x===u||x===l||x===b||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===w||x.$$typeof===T||x.$$typeof===f||x.$$typeof===h||x.$$typeof===_||x.$$typeof===R||x.$$typeof===P||x.$$typeof===N||x.$$typeof===D)},Ce.typeOf=E,Ce}var tm;function Kw(){return tm||(tm=1,Ru.exports=Ww()),Ru.exports}var Ou,nm;function Zw(){if(nm)return Ou;nm=1;var e=Kw(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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 f(w){return e.isMemo(w)?l:u[w.$$typeof]||r}var h=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,m=Object.prototype;function T(w,D,R){if(typeof D!="string"){if(m){var P=b(D);P&&P!==m&&T(w,P,R)}var N=p(D);v&&(N=N.concat(v(D)));for(var E=f(w),C=f(D),x=0;x<N.length;++x){var F=N[x];if(!o[F]&&!(R&&R[F])&&!(C&&C[F])&&!(E&&E[F])){var z=_(D,F);try{h(w,F,z)}catch{}}}}return w}return Ou=T,Ou}Zw();var Yc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Yc.Consumer;var Qw=Yc.Provider,Xw=Qw,Yw=Yc;function la(){var e=B.useContext(Yw);return O0(e),e}var kc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(kc||(kc={}));var Rc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Rc||(Rc={}));function A0(e){var r=function(o){var s=la(),l=o.value,u=o.children,f=aa(o,["value","children"]),h=typeof l=="string"?new Date(l||0):l,p=e==="formatDate"?s.formatDateToParts(h,f):s.formatTimeToParts(h,f);return u(p)};return r.displayName=Rc[e],r}function li(e){var r=function(o){var s=la(),l=o.value,u=o.children,f=aa(o,["value","children"]),h=s[e](l,f);if(typeof u=="function")return u(h);var p=s.textComponent||B.Fragment;return B.createElement(p,null,h)};return r.displayName=kc[e],r}function I0(e){return e&&Object.keys(e).reduce(function(r,o){var s=e[o];return r[o]=S0(s)?Vw(s):s,r},{})}var rm=function(e,r,o,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var f=I0(s),h=Cc.apply(void 0,un([e,r,o,f],l,!1));return Array.isArray(h)?$w(h):h},om=function(e,r){var o=e.defaultRichTextElements,s=aa(e,["defaultRichTextElements"]),l=I0(o),u=Uw(J(J(J({},N0),s),{defaultRichTextElements:l}),r),f={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:rm.bind(null,f,u.formatters),$t:rm.bind(null,f,u.formatters)})};function Nu(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 Jw=function(e){Ut(r,e);function r(){var o=e!==null&&e.apply(this,arguments)||this;return o.cache=C0(),o.state={cache:o.cache,intl:om(Nu(o.props),o.cache),prevConfig:Nu(o.props)},o}return r.getDerivedStateFromProps=function(o,s){var l=s.prevConfig,u=s.cache,f=Nu(o);return qw(l,f)?null:{intl:om(f,u),prevConfig:f}},r.prototype.render=function(){return O0(this.state.intl),B.createElement(Xw,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=N0,r}(B.PureComponent);li("formatDate");li("formatTime");li("formatNumber");li("formatList");li("formatDisplayName");A0("formatDate");A0("formatTime");const eb="_app_1rj0t_1",tb={app:eb},to=yE,jt=EE,D0="%[a-f0-9]{2}",im=new RegExp("("+D0+")|([^%]+?)","gi"),sm=new RegExp("("+D0+")+","gi");function Oc(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;const o=e.slice(0,r),s=e.slice(r);return Array.prototype.concat.call([],Oc(o),Oc(s))}function nb(e){try{return decodeURIComponent(e)}catch{let r=e.match(im)||[];for(let o=1;o<r.length;o++)e=Oc(r,o).join(""),r=e.match(im)||[];return e}}function rb(e){const r={"%FE%FF":"��","%FF%FE":"��"};let o=sm.exec(e);for(;o;){try{r[o[0]]=decodeURIComponent(o[0])}catch{const l=nb(o[0]);l!==o[0]&&(r[o[0]]=l)}o=sm.exec(e)}r["%C2"]="�";const s=Object.keys(r);for(const l of s)e=e.replace(new RegExp(l,"g"),r[l]);return e}function ob(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return rb(e)}}function ib(e,r){const o={};if(Array.isArray(r))for(const s of r){const l=Object.getOwnPropertyDescriptor(e,s);l!=null&&l.enumerable&&Object.defineProperty(o,s,l)}else for(const s of Reflect.ownKeys(e)){const l=Object.getOwnPropertyDescriptor(e,s);if(l.enumerable){const u=e[s];r(s,u,e)&&Object.defineProperty(o,s,l)}}return o}function P0(e,r){if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||r==="")return[];const o=e.indexOf(r);return o===-1?[]:[e.slice(0,o),e.slice(o+r.length)]}const sb=e=>e==null,ab=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Nc=Symbol("encodeFragmentIdentifier");function lb(e){switch(e.arrayFormat){case"index":return r=>(o,s)=>{const l=o.length;return s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,[qe(r,e),"[",l,"]"].join("")]:[...o,[qe(r,e),"[",qe(l,e),"]=",qe(s,e)].join("")]};case"bracket":return r=>(o,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,[qe(r,e),"[]"].join("")]:[...o,[qe(r,e),"[]=",qe(s,e)].join("")];case"colon-list-separator":return r=>(o,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,[qe(r,e),":list="].join("")]:[...o,[qe(r,e),":list=",qe(s,e)].join("")];case"comma":case"separator":case"bracket-separator":{const r=e.arrayFormat==="bracket-separator"?"[]=":"=";return o=>(s,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?s:(l=l===null?"":l,s.length===0?[[qe(o,e),r,qe(l,e)].join("")]:[[s,qe(l,e)].join(e.arrayFormatSeparator)])}default:return r=>(o,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,qe(r,e)]:[...o,[qe(r,e),"=",qe(s,e)].join("")]}}function ub(e){let r;switch(e.arrayFormat){case"index":return(o,s,l)=>{if(r=/\[(\d*)]$/.exec(o),o=o.replace(/\[\d*]$/,""),!r){l[o]=s;return}l[o]===void 0&&(l[o]={}),l[o][r[1]]=s};case"bracket":return(o,s,l)=>{if(r=/(\[])$/.exec(o),o=o.replace(/\[]$/,""),!r){l[o]=s;return}if(l[o]===void 0){l[o]=[s];return}l[o]=[...l[o],s]};case"colon-list-separator":return(o,s,l)=>{if(r=/(:list)$/.exec(o),o=o.replace(/:list$/,""),!r){l[o]=s;return}if(l[o]===void 0){l[o]=[s];return}l[o]=[...l[o],s]};case"comma":case"separator":return(o,s,l)=>{const u=typeof s=="string"&&s.includes(e.arrayFormatSeparator),f=typeof s=="string"&&!u&&Tn(s,e).includes(e.arrayFormatSeparator);s=f?Tn(s,e):s;const h=u||f?s.split(e.arrayFormatSeparator).map(p=>Tn(p,e)):s===null?s:Tn(s,e);l[o]=h};case"bracket-separator":return(o,s,l)=>{const u=/(\[])$/.test(o);if(o=o.replace(/\[]$/,""),!u){l[o]=s&&Tn(s,e);return}const f=s===null?[]:Tn(s,e).split(e.arrayFormatSeparator);if(l[o]===void 0){l[o]=f;return}l[o]=[...l[o],...f]};default:return(o,s,l)=>{if(l[o]===void 0){l[o]=s;return}l[o]=[...[l[o]].flat(),s]}}}function M0(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function qe(e,r){return r.encode?r.strict?ab(e):encodeURIComponent(e):e}function Tn(e,r){return r.decode?ob(e):e}function F0(e){return Array.isArray(e)?e.sort():typeof e=="object"?F0(Object.keys(e)).sort((r,o)=>Number(r)-Number(o)).map(r=>e[r]):e}function L0(e){const r=e.indexOf("#");return r!==-1&&(e=e.slice(0,r)),e}function cb(e){let r="";const o=e.indexOf("#");return o!==-1&&(r=e.slice(o)),r}function am(e,r,o){return o==="string"&&typeof e=="string"?e:typeof o=="function"&&typeof e=="string"?o(e):r.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":o==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||r.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function Jc(e){e=L0(e);const r=e.indexOf("?");return r===-1?"":e.slice(r+1)}function ef(e,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},M0(r.arrayFormatSeparator);const o=ub(r),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=r.decode?l.replaceAll("+"," "):l;let[f,h]=P0(u,"=");f===void 0&&(f=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Tn(h,r),o(Tn(f,r),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&r.types[l]!=="string")for(const[f,h]of Object.entries(u)){const p=r.types[l]?r.types[l].replace("[]",""):void 0;u[f]=am(h,r,p)}else typeof u=="object"&&u!==null&&r.types[l]==="string"?s[l]=Object.values(u).join(r.arrayFormatSeparator):s[l]=am(u,r,r.types[l]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((l,u)=>{const f=s[u];return l[u]=f&&typeof f=="object"&&!Array.isArray(f)?F0(f):f,l},Object.create(null))}function B0(e,r){if(!e)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},M0(r.arrayFormatSeparator);const o=f=>r.skipNull&&sb(e[f])||r.skipEmptyString&&e[f]==="",s=lb(r),l={};for(const[f,h]of Object.entries(e))o(f)||(l[f]=h);const u=Object.keys(l);return r.sort!==!1&&u.sort(r.sort),u.map(f=>{const h=e[f];return h===void 0?"":h===null?qe(f,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?qe(f,r)+"[]":h.reduce(s(f),[]).join("&"):qe(f,r)+"="+qe(h,r)}).filter(f=>f.length>0).join("&")}function j0(e,r){var l;r={decode:!0,...r};let[o,s]=P0(e,"#");return o===void 0&&(o=e),{url:((l=o==null?void 0:o.split("?"))==null?void 0:l[0])??"",query:ef(Jc(e),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Tn(s,r)}:{}}}function U0(e,r){r={encode:!0,strict:!0,[Nc]:!0,...r};const o=L0(e.url).split("?")[0]||"",s=Jc(e.url),l={...ef(s,{sort:!1}),...e.query};let u=B0(l,r);u&&(u=`?${u}`);let f=cb(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(o);h.hash=e.fragmentIdentifier,f=r[Nc]?h.hash:`#${e.fragmentIdentifier}`}return`${o}${u}${f}`}function H0(e,r,o){o={parseFragmentIdentifier:!0,[Nc]:!1,...o};const{url:s,query:l,fragmentIdentifier:u}=j0(e,o);return U0({url:s,query:ib(l,r),fragmentIdentifier:u},o)}function fb(e,r,o){const s=Array.isArray(r)?l=>!r.includes(l):(l,u)=>!r(l,u);return H0(e,s,o)}const ua=Object.freeze(Object.defineProperty({__proto__:null,exclude:fb,extract:Jc,parse:ef,parseUrl:j0,pick:H0,stringify:B0,stringifyUrl:U0},Symbol.toStringTag,{value:"Module"}));var Zt={},Ct={},ae={},lm;function At(){return lm||(lm=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 Au={},um;function db(){return um||(um=1,Object.defineProperty(Au,"__esModule",{value:!0})),Au}var ws={},cm;function hb(){if(cm)return ws;cm=1,Object.defineProperty(ws,"__esModule",{value:!0});const e=At(),r=()=>({type:e.DRAWER_CLOSE});return ws.default=r,ws}var bs={},fm;function pb(){if(fm)return bs;fm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),r=(o,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:o,intent:s}});return bs.default=r,bs}var Ss={},dm;function mb(){if(dm)return Ss;dm=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=At(),r=o=>({type:e.GUEST_CONNECTED,payload:{sessionId:o}});return Ss.default=r,Ss}var xs={},hm;function gb(){if(hm)return xs;hm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=At(),r=o=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:o}});return xs.default=r,xs}var Ts={},pm;function yb(){if(pm)return Ts;pm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),r=(o,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:o,newLocale:s}});return Ts.default=r,Ts}var Cs={},mm;function vb(){if(mm)return Cs;mm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),r=o=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:o}}});return Cs.default=r,Cs}var ks={},je={},gm;function tf(){if(gm)return je;gm=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(b,m,T=[],w=[]){xe(this,"type");xe(this,"sender");xe(this,"sources");xe(this,"quickReplies");this.type=b,this.sender=m,this.sources=T,this.quickReplies=w}addQuickReply(b,m){this.quickReplies.push({label:b,payload:m})}}je.Message=e;class r extends e{constructor(m,T,w=[],D=[]){super(p.TEXT,T,w,D);xe(this,"text");this.text=m}}je.TextMessage=r;class o extends e{constructor(m,T){super(p.DETAIL,T);xe(this,"title");xe(this,"subtitle");xe(this,"text");xe(this,"imageUrl");xe(this,"itemUrl");xe(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=o;class s extends e{constructor(m,T,w=[],D=[]){super(p.MARKDOWN,T,w,D);xe(this,"markdown");this.markdown=m}}je.MarkdownMessage=s;class l extends e{constructor(m,T){super(p.VIDEO,T);xe(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,T){super(p.IMAGE,T);xe(this,"url");this.url=m}}je.ImageMessage=u;class f extends e{constructor(m,T){super(p.FILE,T);xe(this,"url");this.url=m}}je.FileMessage=f;class h extends e{constructor(m,T){super(p.AUDIO,T);xe(this,"url");this.url=m}}je.AudioMessage=h;var p;(function(_){_.TEXT="TEXT",_.DETAIL="DETAIL",_.MARKDOWN="MARKDOWN",_.VIDEO="VIDEO",_.IMAGE="IMAGE",_.FILE="FILE",_.AUDIO="AUDIO"})(p||(je.MessageTypeEnum=p={}));const v=_=>{switch(_.type){case p.TEXT:return _.text;case p.DETAIL:{const b=_;return`${b.title} // ${b.subtitle}`}case p.MARKDOWN:return _.markdown;case p.VIDEO:return`Video Url: ${_.url}`;case p.IMAGE:return`Image Url: ${_.url}`;case p.FILE:return`File Url: ${_.url}`;case p.AUDIO:return`Audio Url: ${_.url}`;default:throw new Error("Unknown message type "+_.type)}};return je.getStringRepresentationFromMessage=v,je}var kt={},ym;function nf(){if(ym)return kt;ym=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(f,h,p,v){xe(this,"type");xe(this,"id");xe(this,"name");xe(this,"avatar");this.type=f,this.id=h,this.name=p,this.avatar=v}}kt.User=e;class r extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=r;class o extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=o;class s extends e{constructor(f,h,p){super(l.PERSON,f,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 vm;function _b(){if(vm)return ks;vm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=tf(),r=nf(),o=At(),s=l=>{const u=new e.TextMessage(l,new r.GuestUser);return{type:o.MESSAGE_FROM_GUEST,message:u}};return ks.default=s,ks}var Rs={},_m;function Eb(){if(_m)return Rs;_m=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=tf(),r=nf(),o=At(),s=(l,u={})=>{const f=new e.TextMessage(l,new r.GuestUser);return{type:o.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:f,payload:u}};return Rs.default=s,Rs}var Os={},Em;function wb(){if(Em)return Os;Em=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=At(),r=o=>({type:e.NLU_REQUEST_EVENT,event:o});return Os.default=r,Os}var Ns={},wm;function bb(){if(wm)return Ns;wm=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=At(),r=()=>({type:e.RESTART_CHAT_REQUEST});return Ns.default=r,Ns}var As={},bm;function Sb(){if(bm)return As;bm=1,Object.defineProperty(As,"__esModule",{value:!0});const e=At(),r=o=>({type:e.MESSAGE_TO_GUEST,message:o});return As.default=r,As}var Is={},Sm;function xb(){if(Sm)return Is;Sm=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=At(),r=(o,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:o,reaction:s}});return Is.default=r,Is}var xm;function Tm(){return xm||(xm=1,function(e){var r=Ct&&Ct.__createBinding||(Object.create?function(N,E,C,x){x===void 0&&(x=C);var F=Object.getOwnPropertyDescriptor(E,C);(!F||("get"in F?!E.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return E[C]}}),Object.defineProperty(N,x,F)}:function(N,E,C,x){x===void 0&&(x=C),N[x]=E[C]}),o=Ct&&Ct.__setModuleDefault||(Object.create?function(N,E){Object.defineProperty(N,"default",{enumerable:!0,value:E})}:function(N,E){N.default=E}),s=Ct&&Ct.__importStar||function(){var N=function(E){return N=Object.getOwnPropertyNames||function(C){var x=[];for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&(x[x.length]=F);return x},N(E)};return function(E){if(E&&E.__esModule)return E;var C={};if(E!=null)for(var x=N(E),F=0;F<x.length;F++)x[F]!=="default"&&r(C,E,x[F]);return o(C,E),C}}(),l=Ct&&Ct.__exportStar||function(N,E){for(var C in N)C!=="default"&&!Object.prototype.hasOwnProperty.call(E,C)&&r(E,N,C)},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(db(),e);const f=u(hb());e.closeDrawer=f.default;const h=u(pb());e.feedbackFromGuestResponse=h.default;const p=u(mb());e.guestConnected=p.default;const v=u(gb());e.guestDisconnected=v.default;const _=u(yb());e.guestLocaleChanged=_.default;const b=u(vb());e.openDrawer=b.default;const m=u(_b());e.receiveTextMessageFromGuest=m.default;const T=u(Eb());e.receiveTextMessageWithoutAnalysisFromGuest=T.default;const w=u(wb());e.requestNLUEvent=w.default;const D=u(bb());e.restartChatRequest=D.default;const R=u(Sb());e.sendMessageToGuest=R.default;const P=u(xb());e.transcriptItemGuestReaction=P.default}(Ct)),Ct}var Rt={},Iu={},Cm;function Tb(){return Cm||(Cm=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var Vo={},km;function Cb(){if(km)return Vo;km=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.NullableKnowledgeBaseAdapter=void 0;class e{async createApiKnowledgeBase(o){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(o,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(o){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(o){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(o){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(o){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(o){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(o){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(o,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(o,s,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(o,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(o,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(o,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(o,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(o,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(o,s,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(o,s,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(o,s,l){throw new Error("Method not implemented.")}async setIndexingStatus(o,s){throw new Error("Method not implemented.")}async subscribeToReindex(o,s){throw new Error("Method not implemented.")}isContentTypeSupported(o){throw new Error("Method not implemented.")}}return Vo.NullableKnowledgeBaseAdapter=e,Vo}var Rm;function kb(){if(Rm)return Rt;Rm=1;var e=Rt&&Rt.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,p)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),r=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),o=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(f){var h=[];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(f,u,h[p]);return r(f,u),f}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=o(Tb());const s=Cb();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pr={},Du={},Om;function Rb(){return Om||(Om=1,Object.defineProperty(Du,"__esModule",{value:!0})),Du}var Qt={},Nm;function Ob(){if(Nm)return Qt;Nm=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.ButtonTypeEnum=Qt.PostbackButton=Qt.UrlButton=Qt.Button=void 0;class e{constructor(u,f){xe(this,"title");xe(this,"type");this.title=u,this.type=f}}Qt.Button=e;class r extends e{constructor(f,h){super(f,s.WEB_URL);xe(this,"url");this.url=h}}Qt.UrlButton=r;class o extends e{constructor(f,h){super(f,s.POSTBACK);xe(this,"payload");this.payload=h}}Qt.PostbackButton=o;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Qt.ButtonTypeEnum=s={})),Qt}var Pu={},Am;function Nb(){return Am||(Am=1,Object.defineProperty(Pu,"__esModule",{value:!0})),Pu}var qo={},Im;function Ab(){if(Im)return qo;Im=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.SatisfactionEnum=void 0;var e;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(e||(qo.SatisfactionEnum=e={})),qo}var Dm;function Pm(){return Dm||(Dm=1,function(e){var r=pr&&pr.__createBinding||(Object.create?function(s,l,u,f){f===void 0&&(f=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,f,h)}:function(s,l,u,f){f===void 0&&(f=u),s[f]=l[u]}),o=pr&&pr.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&r(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),o(Rb(),e),o(Ob(),e),o(Nb(),e),o(Ab(),e),o(tf(),e),o(nf(),e)}(pr)),pr}var Mm;function Ib(){return Mm||(Mm=1,function(e){var r=Zt&&Zt.__createBinding||(Object.create?function(u,f,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(f,h);(!v||("get"in v?!f.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(u,p,v)}:function(u,f,h,p){p===void 0&&(p=h),u[p]=f[h]}),o=Zt&&Zt.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),s=Zt&&Zt.__exportStar||function(u,f){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&r(f,u,h)},l=Zt&&Zt.__importStar||function(){var u=function(f){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(p[p.length]=v);return p},u(f)};return function(f){if(f&&f.__esModule)return f;var h={};if(f!=null)for(var p=u(f),v=0;v<p.length;v++)p[v]!=="default"&&r(h,f,p[v]);return o(h,f),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(Tm(),e),e.Actions=l(Tm()),e.CMS=l(kb()),s(Pm(),e),e.Model=l(Pm())}(Zt)),Zt}var ge=Ib();const z0=e=>r=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&r(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),r(e.payload)),G0=e=>(r,o)=>{const{quickReplies:s}=o().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return r(l?z0({...l,label:e}):ge.receiveTextMessageFromGuest(e))},rf="MESSAGE_TO_PARENT_PAGE",of="RESTORE_PREVIOUS_CHAT_MESSAGES",sf="AUDIO_MESSAGE_FROM_USER",Db="EXPORT_TRANSCRIPT",af="RECEIVE_SPEECH_TRANSCRIPTION",lf="ENABLE_CONVERSATION_RATING",$0="LOAD_SOURCE_INFOS_RESPONSE",V0="LOAD_SOURCE_INFOS_ERROR",uf="LOAD_SOURCE_INFOS_REQUEST",cf="CLOSE_SOURCE_INFOS",Pb="webclient.get.started",q0="webclient.window.expand",W0="webclient.window.close",K0="webclient.transcript.pdf.download",Mb=[rf,of,sf,Db,af,lf,uf,cf],Fb=e=>({type:sf,buffer:e}),Lb=e=>({type:af,transcription:e}),Bb=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),jb=()=>({type:K0}),Ub=({rating:e})=>({type:lf,payload:{rating:e}}),Hb=(e,r)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:r}}),Z0=e=>ge.requestNLUEvent(e),zb=e=>({type:of,messages:e}),Gb=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Q0(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},$b=e=>Q0(e),Q0=e=>({type:rf,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function Ds(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)e[s]=o[s]}return e}var Vb={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 Ac(e,r){function o(l,u,f){if(!(typeof document>"u")){f=Ds({},r,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in f)f[p]&&(h+="; "+p,f[p]!==!0&&(h+="="+f[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("; "):[],f={},h=0;h<u.length;h++){var p=u[h].split("="),v=p.slice(1).join("=");try{var _=decodeURIComponent(p[0]);if(f[_]=e.read(v,_),l===_)break}catch{}}return l?f[l]:f}}return Object.create({set:o,get:s,remove:function(l,u){o(l,"",Ds({},u,{expires:-1}))},withAttributes:function(l){return Ac(this.converter,Ds({},this.attributes,l))},withConverter:function(l){return Ac(Ds({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}var Ps=Ac(Vb,{path:"/"});const rt=[];for(let e=0;e<256;++e)rt.push((e+256).toString(16).slice(1));function qb(e,r=0){return(rt[e[r+0]]+rt[e[r+1]]+rt[e[r+2]]+rt[e[r+3]]+"-"+rt[e[r+4]]+rt[e[r+5]]+"-"+rt[e[r+6]]+rt[e[r+7]]+"-"+rt[e[r+8]]+rt[e[r+9]]+"-"+rt[e[r+10]]+rt[e[r+11]]+rt[e[r+12]]+rt[e[r+13]]+rt[e[r+14]]+rt[e[r+15]]).toLowerCase()}let Mu;const Wb=new Uint8Array(16);function Kb(){if(!Mu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Mu=crypto.getRandomValues.bind(crypto)}return Mu(Wb)}const Zb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Fm={randomUUID:Zb};function Ic(e,r,o){var l;if(Fm.randomUUID&&!e)return Fm.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??Kb();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,qb(s)}function ot(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 Qb=typeof Symbol=="function"&&Symbol.observable||"@@observable",Lm=Qb,Fu=()=>Math.random().toString(36).substring(7).split("").join("."),Xb={INIT:`@@redux/INIT${Fu()}`,REPLACE:`@@redux/REPLACE${Fu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fu()}`},ea=Xb;function ff(e){if(typeof e!="object"||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r||Object.getPrototypeOf(e)===null}function X0(e,r,o){if(typeof e!="function")throw new Error(ot(2));if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ot(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ot(1));return o(X0)(e,r)}let s=e,l=r,u=new Map,f=u,h=0,p=!1;function v(){f===u&&(f=new Map,u.forEach((R,P)=>{f.set(P,R)}))}function _(){if(p)throw new Error(ot(3));return l}function b(R){if(typeof R!="function")throw new Error(ot(4));if(p)throw new Error(ot(5));let P=!0;v();const N=h++;return f.set(N,R),function(){if(P){if(p)throw new Error(ot(6));P=!1,v(),f.delete(N),u=null}}}function m(R){if(!ff(R))throw new Error(ot(7));if(typeof R.type>"u")throw new Error(ot(8));if(typeof R.type!="string")throw new Error(ot(17));if(p)throw new Error(ot(9));try{p=!0,l=s(l,R)}finally{p=!1}return(u=f).forEach(N=>{N()}),R}function T(R){if(typeof R!="function")throw new Error(ot(10));s=R,m({type:ea.REPLACE})}function w(){const R=b;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(ot(11));function N(){const C=P;C.next&&C.next(_())}return N(),{unsubscribe:R(N)}},[Lm](){return this}}}return m({type:ea.INIT}),{dispatch:m,subscribe:b,getState:_,replaceReducer:T,[Lm]:w}}function Yb(e){Object.keys(e).forEach(r=>{const o=e[r];if(typeof o(void 0,{type:ea.INIT})>"u")throw new Error(ot(12));if(typeof o(void 0,{type:ea.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ot(13))})}function Y0(e){const r=Object.keys(e),o={};for(let u=0;u<r.length;u++){const f=r[u];typeof e[f]=="function"&&(o[f]=e[f])}const s=Object.keys(o);let l;try{Yb(o)}catch(u){l=u}return function(f={},h){if(l)throw l;let p=!1;const v={};for(let _=0;_<s.length;_++){const b=s[_],m=o[b],T=f[b],w=m(T,h);if(typeof w>"u")throw h&&h.type,new Error(ot(14));v[b]=w,p=p||w!==T}return p=p||s.length!==Object.keys(f).length,p?v:f}}function ta(...e){return e.length===0?r=>r:e.length===1?e[0]:e.reduce((r,o)=>(...s)=>r(o(...s)))}function Jb(...e){return r=>(o,s)=>{const l=r(o,s);let u=()=>{throw new Error(ot(15))};const f={getState:l.getState,dispatch:(p,...v)=>u(p,...v)},h=e.map(p=>p(f));return u=ta(...h)(l.dispatch),{...l,dispatch:u}}}function eS(e){return ff(e)&&"type"in e&&typeof e.type=="string"}var J0=Symbol.for("immer-nothing"),Bm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Jt(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xr=Object.getPrototypeOf;function br(e){return!!e&&!!e[Ot]}function On(e){var r;return e?ey(e)||Array.isArray(e)||!!e[Bm]||!!((r=e.constructor)!=null&&r[Bm])||fa(e)||da(e):!1}var tS=Object.prototype.constructor.toString();function ey(e){if(!e||typeof e!="object")return!1;const r=Xr(e);if(r===null)return!0;const o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object?!0:typeof o=="function"&&Function.toString.call(o)===tS}function na(e,r){ca(e)===0?Reflect.ownKeys(e).forEach(o=>{r(o,e[o],e)}):e.forEach((o,s)=>r(s,o,e))}function ca(e){const r=e[Ot];return r?r.type_:Array.isArray(e)?1:fa(e)?2:da(e)?3:0}function Dc(e,r){return ca(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ty(e,r,o){const s=ca(e);s===2?e.set(r,o):s===3?e.add(o):e[r]=o}function nS(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function fa(e){return e instanceof Map}function da(e){return e instanceof Set}function vr(e){return e.copy_||e.base_}function Pc(e,r){if(fa(e))return new Map(e);if(da(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const o=ey(e);if(r===!0||r==="class_only"&&!o){const s=Object.getOwnPropertyDescriptors(e);delete s[Ot];let l=Reflect.ownKeys(s);for(let u=0;u<l.length;u++){const f=l[u],h=s[f];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[f]={configurable:!0,writable:!0,enumerable:h.enumerable,value:e[f]})}return Object.create(Xr(e),s)}else{const s=Xr(e);if(s!==null&&o)return{...e};const l=Object.create(s);return Object.assign(l,e)}}function df(e,r=!1){return ha(e)||br(e)||!On(e)||(ca(e)>1&&(e.set=e.add=e.clear=e.delete=rS),Object.freeze(e),r&&Object.entries(e).forEach(([o,s])=>df(s,!0))),e}function rS(){Jt(2)}function ha(e){return Object.isFrozen(e)}var oS={};function Sr(e){const r=oS[e];return r||Jt(0,e),r}var ti;function ny(){return ti}function iS(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jm(e,r){r&&(Sr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function Mc(e){Fc(e),e.drafts_.forEach(sS),e.drafts_=null}function Fc(e){e===ti&&(ti=e.parent_)}function Um(e){return ti=iS(ti,e)}function sS(e){const r=e[Ot];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Hm(e,r){r.unfinalizedDrafts_=r.drafts_.length;const o=r.drafts_[0];return e!==void 0&&e!==o?(o[Ot].modified_&&(Mc(r),Jt(4)),On(e)&&(e=ra(r,e),r.parent_||oa(r,e)),r.patches_&&Sr("Patches").generateReplacementPatches_(o[Ot].base_,e,r.patches_,r.inversePatches_)):e=ra(r,o,[]),Mc(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==J0?e:void 0}function ra(e,r,o){if(ha(r))return r;const s=r[Ot];if(!s)return na(r,(l,u)=>zm(e,s,r,l,u,o)),r;if(s.scope_!==e)return r;if(!s.modified_)return oa(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let u=l,f=!1;s.type_===3&&(u=new Set(l),l.clear(),f=!0),na(u,(h,p)=>zm(e,s,l,h,p,o,f)),oa(e,l,!1),o&&e.patches_&&Sr("Patches").generatePatches_(s,o,e.patches_,e.inversePatches_)}return s.copy_}function zm(e,r,o,s,l,u,f){if(br(l)){const h=u&&r&&r.type_!==3&&!Dc(r.assigned_,s)?u.concat(s):void 0,p=ra(e,l,h);if(ty(o,s,p),br(p))e.canAutoFreeze_=!1;else return}else f&&o.add(l);if(On(l)&&!ha(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ra(e,l),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(o,s)&&oa(e,l)}}function oa(e,r,o=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&df(r,o)}function aS(e,r){const o=Array.isArray(e),s={type_:o?1:0,scope_:r?r.scope_:ny(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=hf;o&&(l=[s],u=ni);const{revoke:f,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=f,h}var hf={get(e,r){if(r===Ot)return e;const o=vr(e);if(!Dc(o,r))return lS(e,o,r);const s=o[r];return e.finalized_||!On(s)?s:s===Lu(e.base_,r)?(Bu(e),e.copy_[r]=Bc(s,e)):s},has(e,r){return r in vr(e)},ownKeys(e){return Reflect.ownKeys(vr(e))},set(e,r,o){const s=ry(vr(e),r);if(s!=null&&s.set)return s.set.call(e.draft_,o),!0;if(!e.modified_){const l=Lu(vr(e),r),u=l==null?void 0:l[Ot];if(u&&u.base_===o)return e.copy_[r]=o,e.assigned_[r]=!1,!0;if(nS(o,l)&&(o!==void 0||Dc(e.base_,r)))return!0;Bu(e),Lc(e)}return e.copy_[r]===o&&(o!==void 0||r in e.copy_)||Number.isNaN(o)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=o,e.assigned_[r]=!0),!0},deleteProperty(e,r){return Lu(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,Bu(e),Lc(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const o=vr(e),s=Reflect.getOwnPropertyDescriptor(o,r);return s&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:s.enumerable,value:o[r]}},defineProperty(){Jt(11)},getPrototypeOf(e){return Xr(e.base_)},setPrototypeOf(){Jt(12)}},ni={};na(hf,(e,r)=>{ni[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ni.deleteProperty=function(e,r){return ni.set.call(this,e,r,void 0)};ni.set=function(e,r,o){return hf.set.call(this,e[0],r,o,e[0])};function Lu(e,r){const o=e[Ot];return(o?vr(o):e)[r]}function lS(e,r,o){var l;const s=ry(r,o);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function ry(e,r){if(!(r in e))return;let o=Xr(e);for(;o;){const s=Object.getOwnPropertyDescriptor(o,r);if(s)return s;o=Xr(o)}}function Lc(e){e.modified_||(e.modified_=!0,e.parent_&&Lc(e.parent_))}function Bu(e){e.copy_||(e.copy_=Pc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,o,s)=>{if(typeof r=="function"&&typeof o!="function"){const u=o;o=r;const f=this;return function(p=u,...v){return f.produce(p,_=>o.call(this,_,...v))}}typeof o!="function"&&Jt(6),s!==void 0&&typeof s!="function"&&Jt(7);let l;if(On(r)){const u=Um(this),f=Bc(r,void 0);let h=!0;try{l=o(f),h=!1}finally{h?Mc(u):Fc(u)}return jm(u,s),Hm(l,u)}else if(!r||typeof r!="object"){if(l=o(r),l===void 0&&(l=r),l===J0&&(l=void 0),this.autoFreeze_&&df(l,!0),s){const u=[],f=[];Sr("Patches").generateReplacementPatches_(r,l,u,f),s(u,f)}return l}else Jt(1,r)},this.produceWithPatches=(r,o)=>{if(typeof r=="function")return(f,...h)=>this.produceWithPatches(f,p=>r(p,...h));let s,l;return[this.produce(r,o,(f,h)=>{s=f,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){On(e)||Jt(8),br(e)&&(e=cS(e));const r=Um(this),o=Bc(e,void 0);return o[Ot].isManual_=!0,Fc(r),o}finishDraft(e,r){const o=e&&e[Ot];(!o||!o.isManual_)&&Jt(9);const{scope_:s}=o;return jm(s,r),Hm(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,r){let o;for(o=r.length-1;o>=0;o--){const l=r[o];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}o>-1&&(r=r.slice(o+1));const s=Sr("Patches").applyPatches_;return br(e)?s(e,r):this.produce(e,l=>s(l,r))}};function Bc(e,r){const o=fa(e)?Sr("MapSet").proxyMap_(e,r):da(e)?Sr("MapSet").proxySet_(e,r):aS(e,r);return(r?r.scope_:ny()).drafts_.push(o),o}function cS(e){return br(e)||Jt(10,e),oy(e)}function oy(e){if(!On(e)||ha(e))return e;const r=e[Ot];let o;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,o=Pc(e,r.scope_.immer_.useStrictShallowCopy_)}else o=Pc(e,!0);return na(o,(s,l)=>{ty(o,s,oy(l))}),r&&(r.finalized_=!1),o}var Nt=new uS,iy=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 sy(e){return({dispatch:o,getState:s})=>l=>u=>typeof u=="function"?u(o,s,e):l(u)}var fS=sy(),dS=sy,hS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ta:ta.apply(null,arguments)};function Gm(e,r){function o(...s){if(r){let l=r(...s);if(!l)throw new Error(Cn(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 o.toString=()=>`${e}`,o.type=e,o.match=s=>eS(s)&&s.type===e,o}var ay=class Yo extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Yo.prototype)}static get[Symbol.species](){return Yo}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Yo(...r[0].concat(this)):new Yo(...r.concat(this))}};function $m(e){return On(e)?iy(e,()=>{}):e}function Vm(e,r,o){return e.has(r)?e.get(r):e.set(r,o(r)).get(r)}function pS(e){return typeof e=="boolean"}var mS=()=>function(r){const{thunk:o=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=r??{};let f=new ay;return o&&(pS(o)?f.push(fS):f.push(dS(o.extraArgument))),f},gS="RTK_autoBatch",qm=e=>r=>{setTimeout(r,e)},yS=(e={type:"raf"})=>r=>(...o)=>{const s=r(...o);let l=!0,u=!1,f=!1;const h=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qm(10):e.type==="callback"?e.queueNotification:qm(e.timeout),v=()=>{f=!1,u&&(u=!1,h.forEach(_=>_()))};return Object.assign({},s,{subscribe(_){const b=()=>l&&_(),m=s.subscribe(b);return h.add(_),()=>{m(),h.delete(_)}},dispatch(_){var b;try{return l=!((b=_==null?void 0:_.meta)!=null&&b[gS]),u=!l,u&&(f||(f=!0,p(v))),s.dispatch(_)}finally{l=!0}}})},vS=e=>function(o){const{autoBatch:s=!0}=o??{};let l=new ay(e);return s&&l.push(yS(typeof s=="object"?s:void 0)),l};function _S(e){const r=mS(),{reducer:o=void 0,middleware:s,devTools:l=!0,preloadedState:u=void 0,enhancers:f=void 0}=e||{};let h;if(typeof o=="function")h=o;else if(ff(o))h=Y0(o);else throw new Error(Cn(1));let p;typeof s=="function"?p=s(r):p=r();let v=ta;l&&(v=hS({trace:!1,...typeof l=="object"&&l}));const _=Jb(...p),b=vS(_);let m=typeof f=="function"?f(b):b();const T=v(...m);return X0(h,u,T)}function ly(e){const r={},o=[];let s;const l={addCase(u,f){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(Cn(28));if(h in r)throw new Error(Cn(29));return r[h]=f,l},addMatcher(u,f){return o.push({matcher:u,reducer:f}),l},addDefaultCase(u){return s=u,l}};return e(l),[r,o,s]}function ES(e){return typeof e=="function"}function wS(e,r){let[o,s,l]=ly(r),u;if(ES(e))u=()=>$m(e());else{const h=$m(e);u=()=>h}function f(h=u(),p){let v=[o[p.type],...s.filter(({matcher:_})=>_(p)).map(({reducer:_})=>_)];return v.filter(_=>!!_).length===0&&(v=[l]),v.reduce((_,b)=>{if(b)if(br(_)){const T=b(_,p);return T===void 0?_:T}else{if(On(_))return iy(_,m=>b(m,p));{const m=b(_,p);if(m===void 0){if(_===null)return _;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return _},h)}return f.getInitialState=u,f}var bS=Symbol.for("rtk-slice-createasyncthunk");function SS(e,r){return`${e}/${r}`}function xS({creators:e}={}){var o;const r=(o=e==null?void 0:e.asyncThunk)==null?void 0:o[bS];return function(l){const{name:u,reducerPath:f=u}=l;if(!u)throw new Error(Cn(11));const h=(typeof l.reducers=="function"?l.reducers(CS()):l.reducers)||{},p=Object.keys(h),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},_={addCase(E,C){const x=typeof E=="string"?E:E.type;if(!x)throw new Error(Cn(12));if(x in v.sliceCaseReducersByType)throw new Error(Cn(13));return v.sliceCaseReducersByType[x]=C,_},addMatcher(E,C){return v.sliceMatchers.push({matcher:E,reducer:C}),_},exposeAction(E,C){return v.actionCreators[E]=C,_},exposeCaseReducer(E,C){return v.sliceCaseReducersByName[E]=C,_}};p.forEach(E=>{const C=h[E],x={reducerName:E,type:SS(u,E),createNotation:typeof l.reducers=="function"};RS(C)?NS(x,C,_,r):kS(x,C,_)});function b(){const[E={},C=[],x=void 0]=typeof l.extraReducers=="function"?ly(l.extraReducers):[l.extraReducers],F={...E,...v.sliceCaseReducersByType};return wS(l.initialState,z=>{for(let W in F)z.addCase(W,F[W]);for(let W of v.sliceMatchers)z.addMatcher(W.matcher,W.reducer);for(let W of C)z.addMatcher(W.matcher,W.reducer);x&&z.addDefaultCase(x)})}const m=E=>E,T=new Map;let w;function D(E,C){return w||(w=b()),w(E,C)}function R(){return w||(w=b()),w.getInitialState()}function P(E,C=!1){function x(z){let W=z[E];return typeof W>"u"&&C&&(W=R()),W}function F(z=m){const W=Vm(T,C,()=>new WeakMap);return Vm(W,z,()=>{const he={};for(const[te,ce]of Object.entries(l.selectors??{}))he[te]=TS(ce,z,R,C);return he})}return{reducerPath:E,getSelectors:F,get selectors(){return F(x)},selectSlice:x}}const N={name:u,reducer:D,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:R,...P(f),injectInto(E,{reducerPath:C,...x}={}){const F=C??f;return E.inject({reducerPath:F,reducer:D},x),{...N,...P(F,!0)}}};return N}}function TS(e,r,o,s){function l(u,...f){let h=r(u);return typeof h>"u"&&s&&(h=o()),e(h,...f)}return l.unwrapped=e,l}var pf=xS();function CS(){function e(r,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...o}}return e.withTypes=()=>e,{reducer(r){return Object.assign({[r.name](...o){return r(...o)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:o}},asyncThunk:e}}function kS({type:e,reducerName:r,createNotation:o},s,l){let u,f;if("reducer"in s){if(o&&!OS(s))throw new Error(Cn(17));u=s.reducer,f=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(r,u).exposeAction(r,f?Gm(e,f):Gm(e))}function RS(e){return e._reducerDefinitionType==="asyncThunk"}function OS(e){return e._reducerDefinitionType==="reducerWithPrepare"}function NS({type:e,reducerName:r},o,s,l){if(!l)throw new Error(Cn(18));const{payloadCreator:u,fulfilled:f,pending:h,rejected:p,settled:v,options:_}=o,b=l(e,u,_);s.exposeAction(r,b),f&&s.addCase(b.fulfilled,f),h&&s.addCase(b.pending,h),p&&s.addCase(b.rejected,p),v&&s.addMatcher(b.settled,v),s.exposeCaseReducer(r,{fulfilled:f||Ms,pending:h||Ms,rejected:p||Ms,settled:v||Ms})}function Ms(){}function Cn(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 AS={formValues:{}},uy=pf({name:"start-screen",initialState:AS,reducers:{showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,r){e.startScreenStatus="HIDDEN",e.formValues=r.payload}}}),{startChat:IS,showStartScreen:DS}=uy.actions,PS=uy.reducer,cy="RESET_CHAT_STATE",MS=()=>({type:W0}),FS=()=>({type:cy}),Wm=e=>(r,o)=>{const s=o();return r({type:uf,payload:{chunkId:e}}),fetch(`/cms/public/vector-store/chunks/${e}`,{headers:{"Accept-Language":s.intl.locale}}).then(l=>{if(!l.ok)throw r({type:V0}),new Error(`HTTP error! Status: ${l.status}`);return l.json()}).then(l=>r({type:$0,payload:l}))},LS=()=>({type:cf}),mf="CONNECT",gf="CONNECTING",yf="CONNECTED",vf="DISCONNECTED",_f="RECONNECTED",Ef="RESTORE_SESSION_ID",pa="START",ma="CLEAR_SESSION_ID",BS=[mf,gf,yf,vf,_f,Ef],jS=(e,r)=>({type:mf,clientName:e,querystrings:r}),US=e=>({type:Ef,sessionId:e}),HS=()=>({type:gf}),zS=()=>({type:yf}),GS=()=>({type:vf}),$S=()=>({type:_f}),fy=(e,r)=>(o,s)=>{const l=s().connection,u=s().startScreen.formValues;let f=l.sessionId;f===void 0&&(f=Ic());let h=l.userId;if(h===void 0){const p=Ps.get("bubble-chat-user-id")||Ps.get("bubble-chat-userId")||Ps.get("bf-webclient-userId");h=p||Ic(),Ps.set("bubble-chat-user-id",h)}o({type:pa,payload:{sessionId:f,userId:h,clientName:e,querystrings:{...r,...u}}})},ga=(e,r)=>(o,s)=>{const l=s().connection.sessionId||"";if(o(VS(l)),o(FS()),s().settings.enableStartScreen)o(DS());else return o(fy(e,r))},VS=e=>({type:ma,payload:{sessionId:e}}),Ke=()=>{const e=la();return o=>{const s=e.formatMessage({id:o});return s===o?void 0:s}};var Er=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(Er||{}),dy=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(dy||{});const qS="_container_q2uun_1",WS="_chatcontent_q2uun_6",KS="_accessabilityHidden_q2uun_12",ju={container:qS,chatcontent:WS,accessabilityHidden:KS},ZS="_messageContainer_1m8fy_1",QS="_messages_1m8fy_13",Km={messageContainer:ZS,messages:QS};function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s])}return e},_r.apply(this,arguments)}const XS=["children","options"],ie={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Zm;(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"})(Zm||(Zm={}));const Qm=["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,r)=>(e[r.toLowerCase()]=r,e),{class:"className",for:"htmlFor"}),Xm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},YS=["style","script"],JS=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,ex=/mailto:/i,tx=/\n{2,}$/,hy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,nx=/^ *> ?/gm,rx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,ox=/^ {2,}\n/,ix=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,py=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,my=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,sx=/^(`+)((?:\\`|[^`])+)\1/,ax=/^(?:\n *)*\n/,lx=/\r\n?/g,ux=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,cx=/^\[\^([^\]]+)]/,fx=/\f/g,dx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,hx=/^\s*?\[(x|\s)\]/,gy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,vy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,px=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_y=/^<!--[\s\S]*?(?:-->)/,mx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,gx=/^\{.*\}$/,yx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,vx=/^<([^ >]+@[^ >]+)>/,_x=/^<([^ >]+:\/[^ >]+)>/,Ex=/-([a-z])?/gi,Ey=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,wx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,bx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Sx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,xx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Tx=/\t/g,Cx=/(^ *\||\| *$)/g,kx=/^ *:-+: *$/,Rx=/^ *:-+ *$/,Ox=/^ *-+: *$/,ya="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Nx=new RegExp(`^([*_])\\1${ya}\\1\\1(?!\\1)`),Ax=new RegExp(`^([*_])${ya}\\1(?!\\1)`),Ix=new RegExp(`^(==)${ya}\\1`),Dx=new RegExp(`^(~~)${ya}\\1`),Px=/^\\([^0-9A-Za-z\s])/,Uu=/\\([^0-9A-Za-z\s])/g,Mx=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,Fx=/^\n+/,Lx=/^([ \t]*)/,Bx=/\\([^\\])/g,jx=/(?:^|\n)( *)$/,wf="(?:\\d+\\.)",bf="(?:[*+-])";function wy(e){return"( *)("+(e===1?wf:bf)+") +"}const by=wy(1),Sy=wy(2);function xy(e){return new RegExp("^"+(e===1?by:Sy))}const Ux=xy(1),Hx=xy(2);function Ty(e){return new RegExp("^"+(e===1?by:Sy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?wf:bf)+" )[^\\n]*)*(\\n|$)","gm")}const zx=Ty(1),Gx=Ty(2);function Cy(e){const r=e===1?wf:bf;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const ky=Cy(1),Ry=Cy(2);function Ym(e,r){const o=r===1,s=o?ky:Ry,l=o?zx:Gx,u=o?Ux:Hx;return{match:Yr(function(f,h){const p=jx.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?s.exec(f=p[1]+f):null}),order:1,parse(f,h,p){const v=o?+f[2]:void 0,_=f[0].replace(tx,`
85
- `).match(l);let b=!1;return{items:_.map(function(m,T){const w=u.exec(m)[0].length,D=new RegExp("^ {1,"+w+"}","gm"),R=m.replace(D,"").replace(u,""),P=T===_.length-1,N=R.indexOf(`
86
-
87
- `)!==-1||P&&b;b=N;const E=p.inline,C=p.list;let x;p.list=!0,N?(p.inline=!1,x=ri(R)+`
88
-
89
- `):(p.inline=!0,x=ri(R));const F=h(x,p);return p.inline=E,p.list=C,F}),ordered:o,start:v}},render:(f,h,p)=>e(f.ordered?"ol":"ul",{key:p.key,start:f.type===ie.orderedList?f.start:void 0},f.items.map(function(v,_){return e("li",{key:_},h(v,p))}))}}const $x=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Vx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Oy=[hy,py,my,gy,vy,yy,Ey,ky,Ry],qx=[...Oy,/^[^\n]+(?: \n|\n{2,})/,jc,_y,Uc];function ri(e){let r=e.length;for(;r>0&&e[r-1]<=" ";)r--;return e.slice(0,r)}function Wo(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 Wx(e){return Ox.test(e)?"right":kx.test(e)?"center":Rx.test(e)?"left":null}function Jm(e,r,o,s){const l=o.inTable;o.inTable=!0;let u=[[]],f="";function h(){if(!f)return;const p=u[u.length-1];p.push.apply(p,r(f,o)),f=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,v,_)=>{p.trim()==="|"&&(h(),s)?v!==0&&v!==_.length-1&&u.push([]):f+=p}),h(),o.inTable=l,u}function Kx(e,r,o){o.inline=!0;const s=e[2]?e[2].replace(Cx,"").split("|").map(Wx):[],l=e[3]?function(f,h,p){return f.trim().split(`
90
- `).map(function(v){return Jm(v,h,p,!0)})}(e[3],r,o):[],u=Jm(e[1],r,o,!!l.length);return o.inline=!1,l.length?{align:s,cells:l,header:u,type:ie.table}:{children:u,type:ie.paragraph}}function eg(e,r){return e.align[r]==null?{}:{textAlign:e.align[r]}}function Yr(e){return e.inline=1,e}function Zn(e){return Yr(function(r,o){return o.inline?e.exec(r):null})}function Qn(e){return Yr(function(r,o){return o.inline||o.simple?e.exec(r):null})}function Sn(e){return function(r,o){return o.inline||o.simple?null:e.exec(r)}}function Ko(e){return Yr(function(r){return e.exec(r)})}function Zx(e,r){if(r.inline||r.simple)return null;let o="";e.split(`
91
- `).every(l=>(l+=`
92
- `,!Oy.some(u=>u.test(l))&&(o+=l,!!l.trim())));const s=ri(o);return s==""?null:[o,,s]}function Qx(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 tg(e){return e.replace(Bx,"$1")}function Ks(e,r,o){const s=o.inline||!1,l=o.simple||!1;o.inline=!0,o.simple=!0;const u=e(r,o);return o.inline=s,o.simple=l,u}function Xx(e,r,o){const s=o.inline||!1,l=o.simple||!1;o.inline=!1,o.simple=!0;const u=e(r,o);return o.inline=s,o.simple=l,u}function Yx(e,r,o){const s=o.inline||!1;o.inline=!1;const l=e(r,o);return o.inline=s,l}const Hu=(e,r,o)=>({children:Ks(r,e[2],o)});function zu(){return{}}function Gu(){return null}function Jx(...e){return e.filter(Boolean).join(" ")}function $u(e,r,o){let s=e;const l=r.split(".");for(;l.length&&(s=s[l[0]],s!==void 0);)l.shift();return s||o}function e2(e="",r={}){function o(m,T,...w){const D=$u(r.overrides,`${m}.props`,{});return r.createElement(function(R,P){const N=$u(P,R);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:$u(P,`${R}.component`,R):R}(m,r.overrides),_r({},T,D,{className:Jx(T==null?void 0:T.className,D.className)||void 0}),...w)}function s(m){m=m.replace(dx,"");let T=!1;r.forceInline?T=!0:r.forceBlock||(T=xx.test(m)===!1);const w=v(p(T?m:`${ri(m).replace(Fx,"")}
93
-
94
- `,{inline:T}));for(;typeof w[w.length-1]=="string"&&!w[w.length-1].trim();)w.pop();if(r.wrapper===null)return w;const D=r.wrapper||(T?"span":"div");let R;if(w.length>1||r.forceWrapper)R=w;else{if(w.length===1)return R=w[0],typeof R=="string"?o("span",{key:"outer"},R):R;R=null}return r.createElement(D,{key:"outer"},R)}function l(m,T){const w=T.match(JS);return w?w.reduce(function(D,R){const P=R.indexOf("=");if(P!==-1){const N=function(F){return F.indexOf("-")!==-1&&F.match(mx)===null&&(F=F.replace(Ex,function(z,W){return W.toUpperCase()})),F}(R.slice(0,P)).trim(),E=function(F){const z=F[0];return(z==='"'||z==="'")&&F.length>=2&&F[F.length-1]===z?F.slice(1,-1):F}(R.slice(P+1).trim()),C=Qm[N]||N;if(C==="ref")return D;const x=D[C]=function(F,z,W,he){return z==="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},{}):z==="href"||z==="src"?he(W,F,z):(W.match(gx)&&(W=W.slice(1,W.length-1)),W==="true"||W!=="false"&&W)}(m,N,E,r.sanitizer);typeof x=="string"&&(jc.test(x)||Uc.test(x))&&(D[C]=s(x.trim()))}else R!=="style"&&(D[Qm[R]||R]=!0);return D},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||Qx,r.slugify=r.slugify||Wo,r.namedCodesToUnicode=r.namedCodesToUnicode?_r({},Xm,r.namedCodesToUnicode):Xm,r.createElement=r.createElement||B.createElement;const u=[],f={},h={[ie.blockQuote]:{match:Sn(hy),order:1,parse(m,T,w){const[,D,R]=m[0].replace(nx,"").match(rx);return{alert:D,children:T(R,w)}},render(m,T,w){const D={key:w.key};return m.alert&&(D.className="markdown-alert-"+r.slugify(m.alert.toLowerCase(),Wo),m.children.unshift({attrs:{},children:[{type:ie.text,text:m.alert}],noInnerParse:!0,type:ie.htmlBlock,tag:"header"})),o("blockquote",D,T(m.children,w))}},[ie.breakLine]:{match:Ko(ox),order:1,parse:zu,render:(m,T,w)=>o("br",{key:w.key})},[ie.breakThematic]:{match:Sn(ix),order:1,parse:zu,render:(m,T,w)=>o("hr",{key:w.key})},[ie.codeBlock]:{match:Sn(my),order:0,parse:m=>({lang:void 0,text:ri(m[0].replace(/^ {4}/gm,"")).replace(Uu,"$1")}),render:(m,T,w)=>o("pre",{key:w.key},o("code",_r({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[ie.codeFenced]:{match:Sn(py),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4].replace(Uu,"$1"),type:ie.codeBlock})},[ie.codeInline]:{match:Qn(sx),order:3,parse:m=>({text:m[2].replace(Uu,"$1")}),render:(m,T,w)=>o("code",{key:w.key},m.text)},[ie.footnote]:{match:Sn(ux),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Gu},[ie.footnoteReference]:{match:Zn(cx),order:1,parse:m=>({target:`#${r.slugify(m[1],Wo)}`,text:m[1]}),render:(m,T,w)=>o("a",{key:w.key,href:r.sanitizer(m.target,"a","href")},o("sup",{key:w.key},m.text))},[ie.gfmTask]:{match:Zn(hx),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,T,w)=>o("input",{checked:m.completed,key:w.key,readOnly:!0,type:"checkbox"})},[ie.heading]:{match:Sn(r.enforceAtxHeadings?yy:gy),order:1,parse:(m,T,w)=>({children:Ks(T,m[2],w),id:r.slugify(m[2],Wo),level:m[1].length}),render:(m,T,w)=>o(`h${m.level}`,{id:m.id,key:w.key},T(m.children,w))},[ie.headingSetext]:{match:Sn(vy),order:0,parse:(m,T,w)=>({children:Ks(T,m[1],w),level:m[2]==="="?1:2,type:ie.heading})},[ie.htmlBlock]:{match:Ko(jc),order:1,parse(m,T,w){const[,D]=m[3].match(Lx),R=new RegExp(`^${D}`,"gm"),P=m[3].replace(R,""),N=(E=P,qx.some(W=>W.test(E))?Yx:Ks);var E;const C=m[1].toLowerCase(),x=YS.indexOf(C)!==-1,F=(x?C:m[1]).trim(),z={attrs:l(F,m[2]),noInnerParse:x,tag:F};return w.inAnchor=w.inAnchor||C==="a",x?z.text=m[3]:z.children=N(T,P,w),w.inAnchor=!1,z},render:(m,T,w)=>o(m.tag,_r({key:w.key},m.attrs),m.text||(m.children?T(m.children,w):""))},[ie.htmlSelfClosing]:{match:Ko(Uc),order:1,parse(m){const T=m[1].trim();return{attrs:l(T,m[2]||""),tag:T}},render:(m,T,w)=>o(m.tag,_r({},m.attrs,{key:w.key}))},[ie.htmlComment]:{match:Ko(_y),order:1,parse:()=>({}),render:Gu},[ie.image]:{match:Qn(Vx),order:1,parse:m=>({alt:m[1],target:tg(m[2]),title:m[3]}),render:(m,T,w)=>o("img",{key:w.key,alt:m.alt||void 0,title:m.title||void 0,src:r.sanitizer(m.target,"img","src")})},[ie.link]:{match:Zn($x),order:3,parse:(m,T,w)=>({children:Xx(T,m[1],w),target:tg(m[2]),title:m[3]}),render:(m,T,w)=>o("a",{key:w.key,href:r.sanitizer(m.target,"a","href"),title:m.title},T(m.children,w))},[ie.linkAngleBraceStyleDetector]:{match:Zn(_x),order:0,parse:m=>({children:[{text:m[1],type:ie.text}],target:m[1],type:ie.link})},[ie.linkBareUrlDetector]:{match:Yr((m,T)=>T.inAnchor||r.disableAutoLink?null:Zn(yx)(m,T)),order:0,parse:m=>({children:[{text:m[1],type:ie.text}],target:m[1],title:void 0,type:ie.link})},[ie.linkMailtoDetector]:{match:Zn(vx),order:0,parse(m){let T=m[1],w=m[1];return ex.test(w)||(w="mailto:"+w),{children:[{text:T.replace("mailto:",""),type:ie.text}],target:w,type:ie.link}}},[ie.orderedList]:Ym(o,1),[ie.unorderedList]:Ym(o,2),[ie.newlineCoalescer]:{match:Sn(ax),order:3,parse:zu,render:()=>`
95
- `},[ie.paragraph]:{match:Yr(Zx),order:3,parse:Hu,render:(m,T,w)=>o("p",{key:w.key},T(m.children,w))},[ie.ref]:{match:Zn(wx),order:0,parse:m=>(f[m[1]]={target:m[2],title:m[4]},{}),render:Gu},[ie.refImage]:{match:Qn(bx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,T,w)=>f[m.ref]?o("img",{key:w.key,alt:m.alt,src:r.sanitizer(f[m.ref].target,"img","src"),title:f[m.ref].title}):null},[ie.refLink]:{match:Zn(Sx),order:0,parse:(m,T,w)=>({children:T(m[1],w),fallbackChildren:m[0],ref:m[2]}),render:(m,T,w)=>f[m.ref]?o("a",{key:w.key,href:r.sanitizer(f[m.ref].target,"a","href"),title:f[m.ref].title},T(m.children,w)):o("span",{key:w.key},m.fallbackChildren)},[ie.table]:{match:Sn(Ey),order:1,parse:Kx,render(m,T,w){const D=m;return o("table",{key:w.key},o("thead",null,o("tr",null,D.header.map(function(R,P){return o("th",{key:P,style:eg(D,P)},T(R,w))}))),o("tbody",null,D.cells.map(function(R,P){return o("tr",{key:P},R.map(function(N,E){return o("td",{key:E,style:eg(D,E)},T(N,w))}))})))}},[ie.text]:{match:Ko(Mx),order:4,parse:m=>({text:m[0].replace(px,(T,w)=>r.namedCodesToUnicode[w]?r.namedCodesToUnicode[w]:T)}),render:m=>m.text},[ie.textBolded]:{match:Qn(Nx),order:2,parse:(m,T,w)=>({children:T(m[2],w)}),render:(m,T,w)=>o("strong",{key:w.key},T(m.children,w))},[ie.textEmphasized]:{match:Qn(Ax),order:3,parse:(m,T,w)=>({children:T(m[2],w)}),render:(m,T,w)=>o("em",{key:w.key},T(m.children,w))},[ie.textEscaped]:{match:Qn(Px),order:1,parse:m=>({text:m[1],type:ie.text})},[ie.textMarked]:{match:Qn(Ix),order:3,parse:Hu,render:(m,T,w)=>o("mark",{key:w.key},T(m.children,w))},[ie.textStrikethroughed]:{match:Qn(Dx),order:3,parse:Hu,render:(m,T,w)=>o("del",{key:w.key},T(m.children,w))}};r.disableParsingRawHTML===!0&&(delete h[ie.htmlBlock],delete h[ie.htmlSelfClosing]);const p=function(m){let T=Object.keys(m);function w(D,R){let P,N,E=[],C="",x="";for(R.prevCapture=R.prevCapture||"";D;){let F=0;for(;F<T.length;){if(C=T[F],P=m[C],R.inline&&!P.match.inline){F++;continue}const z=P.match(D,R);if(z){x=z[0],R.prevCapture+=x,D=D.substring(x.length),N=P.parse(z,w,R),N.type==null&&(N.type=C),E.push(N);break}F++}}return R.prevCapture="",E}return T.sort(function(D,R){let P=m[D].order,N=m[R].order;return P!==N?P-N:D<R?-1:1}),function(D,R){return w(function(P){return P.replace(lx,`
96
- `).replace(fx,"").replace(Tx," ")}(D),R)}}(h),v=(_=function(m,T){return function(w,D,R){const P=m[w.type].render;return T?T(()=>P(w,D,R),w,D,R):P(w,D,R)}}(h,r.renderRule),function m(T,w={}){if(Array.isArray(T)){const D=w.key,R=[];let P=!1;for(let N=0;N<T.length;N++){w.key=N;const E=m(T[N],w),C=typeof E=="string";C&&P?R[R.length-1]+=E:E!==null&&R.push(E),P=C}return w.key=D,R}return _(T,m,w)});var _;const b=s(e);return u.length?o("div",null,b,o("footer",{key:"footer"},u.map(function(m){return o("div",{id:r.slugify(m.identifier,Wo),key:m.identifier},m.identifier,v(p(m.footnote,{inline:!0})))}))):b}const cn=e=>{let{children:r="",options:o}=e,s=function(l,u){if(l==null)return{};var f,h,p={},v=Object.keys(l);for(h=0;h<v.length;h++)u.indexOf(f=v[h])>=0||(p[f]=l[f]);return p}(e,XS);return B.cloneElement(e2(r,o),s)},t2="_generalConditionsContainer_55hjg_1",n2="_generalConditions_55hjg_1",r2="_generalConditionsHeader_55hjg_15",o2="_generalConditionsBody_55hjg_26",i2="_generalConditionsAccept_55hjg_35",Zo={generalConditionsContainer:t2,generalConditions:n2,generalConditionsHeader:r2,generalConditionsBody:o2,generalConditionsAccept:i2},s2=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),a2=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),l2="general-conditions.header",u2="general-conditions.body",ng="general-conditions.accept-conditions-note",c2=()=>{const e=Ke(),[r,o]=B.useState(!1),s=()=>o(!r),l=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?o(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?o(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},u=e(l2),f=e(ng);return y.jsxs("div",{className:V(Zo.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&y.jsxs("div",{className:Zo.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:V(Zo.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[y.jsx(cn,{children:u}),r?y.jsx(a2,{}):y.jsx(s2,{})]}),y.jsx("div",{className:V(Zo.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(cn,{children:e(u2)||""})})]}),!!(f!=null&&f.length)&&y.jsx("div",{className:V(Zo.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(cn,{children:e(ng)||""})})]})},f2="_message_1qom7_1",d2="_messageBot_1qom7_9",h2="_messageBotLast_1qom7_19",p2="_avatar_1qom7_19",m2="_messageBotFirst_1qom7_24",g2="_messageBotAnimated_1qom7_37",y2="_messageGuest_1qom7_48",v2="_messageGuestFirst_1qom7_54",_2="_messageGuestLast_1qom7_60",E2="_botAvatar_1qom7_74",w2="_agentAvatar_1qom7_78",b2="_bubble_1qom7_82",S2="_bubbleContent_1qom7_88",x2="_bubbleLeft_1qom7_102",T2="_leftText_1qom7_113",C2="_bubbleRight_1qom7_120",k2="_rightText_1qom7_130",R2="_sourceInfoReference_1qom7_162",fe={message:f2,messageBot:d2,messageBotLast:h2,avatar:p2,messageBotFirst:m2,messageBotAnimated:g2,messageGuest:y2,messageGuestFirst:v2,messageGuestLast:_2,botAvatar:E2,agentAvatar:w2,bubble:b2,bubbleContent:S2,bubbleLeft:x2,leftText:T2,bubbleRight:C2,rightText:k2,sourceInfoReference:R2},O2="_botMessageActions_1dl7x_1",N2="_alwaysVisible_1dl7x_22",A2="_reported_1dl7x_29",I2="_action_1dl7x_33",Xn={botMessageActions:O2,alwaysVisible:N2,reported:A2,action:I2},D2=({alwaysVisible:e,reaction:r,botMessageRef:o,onReaction:s})=>{const l=Ke(),[u,f]=B.useState(!1),h=v=>()=>s(v),p=B.useCallback(async()=>{if(o.current)try{f(!0);const v=o.current.innerHTML,_=o.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([_],{type:"text/plain"})})]),await new Promise(b=>setTimeout(b,1500))}finally{f(!1)}},[o]);return y.jsxs("div",{className:V(Xn.botMessageActions,e&&Xn.alwaysVisible,r&&Xn.reported),children:[y.jsx("button",{className:V(Xn.action,r==="GOOD"&&Xn.reported,"tooltip--right"),tabIndex:0,"aria-label":l(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":l(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:h(r==="GOOD"?null:"GOOD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="GOOD"?y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),y.jsx("button",{className:V(Xn.action,r==="BAD"&&Xn.reported,"tooltip--right"),tabIndex:0,"aria-label":l(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":l(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:h(r==="BAD"?null:"BAD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="BAD"?y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),y.jsx("button",{className:V(Xn.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]})},Ny=B.forwardRef(({message:e,isAnimated:r,isLastMessage:o,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:f},h)=>{const p=Ke(),v=B.useRef(null),_=e.sender.type===ge.UserType.BOT;return y.jsxs("li",{ref:h,className:V(fe.message,fe.messageBot,o&&fe.lastMessage,s&&fe.messageBotFirst,l&&fe.messageBotLast,"chat__bubbleContainer",r&&fe.messageBotAnimated,r&&"chat__bubbleContainer--animated",_?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:V(fe.avatar,_?fe.botAvatar:fe.agentAvatar,"chat__avatar",_?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:_?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsx("div",{ref:v,className:V(fe.bubble,fe.bubbleLeft,"chat__bubble",_?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(_?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:V(fe.leftText),children:u})}),f&&y.jsx(D2,{alwaysVisible:o&&l,reaction:e.reaction,botMessageRef:v,onReaction:f})]})}),P2="_sourceList_1p11n_1",M2="_source_1p11n_1",F2="_label_1p11n_36",Vu={sourceList:P2,source:M2,label:F2},Ay=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),Iy=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:y.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),Dy=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:y.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),Py=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:y.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})}),L2=({type:e,...r})=>{switch(e){case"WEBSITE":return y.jsx(Py,{...r});case"PDF":return y.jsx(Dy,{...r});case"DOCX":return y.jsx(Ay,{...r});default:return y.jsx(Iy,{...r})}},Sf=({sources:e,onLinkClick:r})=>{const o=Ke(),s=u=>()=>{r(u.url)},l=u=>f=>{(f.key==="Enter"||f.key===" ")&&r(u.url)};return e.length?y.jsx("ul",{className:Vu.sourceList,"aria-label":o("bot-bubble.sources"),children:e.map(u=>y.jsx("li",{className:Vu.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${o("bot-bubble.source.open")}: ${u.label}`,onClick:s(u),onKeyDown:l(u),children:[y.jsx(L2,{type:u.type,"aria-hidden":"true"}),y.jsx("div",{className:Vu.label,children:u.label})]})},u.url))}):null},B2="_button_3ui4g_1",j2="_buttonDefault_3ui4g_13",U2="_buttonPrimary_3ui4g_28",oi={button:B2,buttonDefault:j2,buttonPrimary:U2},va=({className:e,children:r,...o})=>y.jsx("button",{className:V(oi.button,e),type:"button",...o,children:r}),H2="_title_b904h_1",z2="_subtitle_b904h_6",G2="_buttons_b904h_11",$2="_button_b904h_11",V2="_imageContainer_b904h_34",q2="_image_b904h_34",W2="_video_container_b904h_49",K2="_video_b904h_49",Z2="_only_b904h_63",wt={title:H2,subtitle:z2,buttons:G2,button:$2,imageContainer:V2,image:q2,video_container:W2,video:K2,only:Z2},Q2=({buttons:e,onButtonClick:r})=>y.jsx("div",{className:V(wt.buttons,"chat__bubbleButtons"),children:e.map((o,s)=>y.jsx(va,{className:V(wt.button,"chat__bubbleButton"),onClick:()=>r(o),children:o.title},s))});var Fs={},Ls={},Bs={},rg;function X2(){if(rg)return Bs;rg=1,Object.defineProperty(Bs,"__esModule",{value:!0});var e=Jr(),r=o(e);function o(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 Bs.default=function(s,l,u){return r.createElement("a",{href:s,key:u},l)},Bs}var js={},og;function Y2(){return og||(og=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=function(e){return e}),js}var Us={},qu,ig;function J2(){return ig||(ig=1,qu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),qu}var Wu,sg;function eT(){return sg||(sg=1,Wu=/[\0-\x1F\x7F-\x9F]/),Wu}var Ku,ag;function tT(){return ag||(ag=1,Ku=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ku}var Zu,lg;function nT(){return lg||(lg=1,Zu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Zu}var Qu,ug;function rT(){return ug||(ug=1,Qu=function(e){var r={};r.src_Any=J2().source,r.src_Cc=eT().source,r.src_Z=tT().source,r.src_P=nT().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var o="[><|]";return r.src_pseudo_letter="(?:(?!"+o+"|"+r.src_ZPCc+")"+r.src_Any+")",r.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+o+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+o+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+o+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Qu}var Xu,cg;function oT(){if(cg)return Xu;cg=1;function e(E){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(x){x&&Object.keys(x).forEach(function(F){E[F]=x[F]})}),E}function r(E){return Object.prototype.toString.call(E)}function o(E){return r(E)==="[object String]"}function s(E){return r(E)==="[object Object]"}function l(E){return r(E)==="[object RegExp]"}function u(E){return r(E)==="[object Function]"}function f(E){return E.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(E){return Object.keys(E||{}).reduce(function(C,x){return C||h.hasOwnProperty(x)},!1)}var v={"http:":{validate:function(E,C,x){var F=E.slice(C);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(F)?F.match(x.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(E,C,x){var F=E.slice(C);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(F)?C>=3&&E[C-3]===":"||C>=3&&E[C-3]==="/"?0:F.match(x.re.no_http)[0].length:0}},"mailto:":{validate:function(E,C,x){var F=E.slice(C);return x.re.mailto||(x.re.mailto=new RegExp("^"+x.re.src_email_name+"@"+x.re.src_host_strict,"i")),x.re.mailto.test(F)?F.match(x.re.mailto)[0].length:0}}},_="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",b="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(E){E.__index__=-1,E.__text_cache__=""}function T(E){return function(C,x){var F=C.slice(x);return E.test(F)?F.match(E)[0].length:0}}function w(){return function(E,C){C.normalize(E)}}function D(E){var C=E.re=rT()(E.__opts__),x=E.__tlds__.slice();E.onCompile(),E.__tlds_replaced__||x.push(_),x.push(C.src_xn),C.src_tlds=x.join("|");function F(te){return te.replace("%TLDS%",C.src_tlds)}C.email_fuzzy=RegExp(F(C.tpl_email_fuzzy),"i"),C.link_fuzzy=RegExp(F(C.tpl_link_fuzzy),"i"),C.link_no_ip_fuzzy=RegExp(F(C.tpl_link_no_ip_fuzzy),"i"),C.host_fuzzy_test=RegExp(F(C.tpl_host_fuzzy_test),"i");var z=[];E.__compiled__={};function W(te,ce){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+ce)}Object.keys(E.__schemas__).forEach(function(te){var ce=E.__schemas__[te];if(ce!==null){var pe={validate:null,link:null};if(E.__compiled__[te]=pe,s(ce)){l(ce.validate)?pe.validate=T(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=w();return}if(o(ce)){z.push(te);return}W(te,ce)}}),z.forEach(function(te){E.__compiled__[E.__schemas__[te]]&&(E.__compiled__[te].validate=E.__compiled__[E.__schemas__[te]].validate,E.__compiled__[te].normalize=E.__compiled__[E.__schemas__[te]].normalize)}),E.__compiled__[""]={validate:null,normalize:w()};var he=Object.keys(E.__compiled__).filter(function(te){return te.length>0&&E.__compiled__[te]}).map(f).join("|");E.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+he+")","i"),E.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+he+")","ig"),E.re.pretest=RegExp("("+E.re.schema_test.source+")|("+E.re.host_fuzzy_test.source+")|@","i"),m(E)}function R(E,C){var x=E.__index__,F=E.__last_index__,z=E.__text_cache__.slice(x,F);this.schema=E.__schema__.toLowerCase(),this.index=x+C,this.lastIndex=F+C,this.raw=z,this.text=z,this.url=z}function P(E,C){var x=new R(E,C);return E.__compiled__[x.schema].normalize(x,E),x}function N(E,C){if(!(this instanceof N))return new N(E,C);C||p(E)&&(C=E,E={}),this.__opts__=e({},h,C),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},v,E),this.__compiled__={},this.__tlds__=b,this.__tlds_replaced__=!1,this.re={},D(this)}return N.prototype.add=function(C,x){return this.__schemas__[C]=x,D(this),this},N.prototype.set=function(C){return this.__opts__=e(this.__opts__,C),this},N.prototype.test=function(C){if(this.__text_cache__=C,this.__index__=-1,!C.length)return!1;var x,F,z,W,he,te,ce,pe,le;if(this.re.schema_test.test(C)){for(ce=this.re.schema_search,ce.lastIndex=0;(x=ce.exec(C))!==null;)if(W=this.testSchemaAt(C,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=C.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(F=C.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(he=F.index+F[1].length,(this.__index__<0||he<this.__index__)&&(this.__schema__="",this.__index__=he,this.__last_index__=F.index+F[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(le=C.indexOf("@"),le>=0&&(z=C.match(this.re.email_fuzzy))!==null&&(he=z.index+z[1].length,te=z.index+z[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(C){return this.re.pretest.test(C)},N.prototype.testSchemaAt=function(C,x,F){return this.__compiled__[x.toLowerCase()]?this.__compiled__[x.toLowerCase()].validate(C,F,this):0},N.prototype.match=function(C){var x=0,F=[];this.__index__>=0&&this.__text_cache__===C&&(F.push(P(this,x)),x=this.__last_index__);for(var z=x?C.slice(x):C;this.test(z);)F.push(P(this,x)),z=z.slice(this.__last_index__),x+=this.__last_index__;return F.length?F:null},N.prototype.tlds=function(C,x){return C=Array.isArray(C)?C:[C],x?(this.__tlds__=this.__tlds__.concat(C).sort().filter(function(F,z,W){return F!==W[z-1]}).reverse(),D(this),this):(this.__tlds__=C.slice(),this.__tlds_replaced__=!0,D(this),this)},N.prototype.normalize=function(C){C.schema||(C.url="http://"+C.url),C.schema==="mailto:"&&!/^mailto:/i.test(C.url)&&(C.url="mailto:"+C.url)},N.prototype.onCompile=function(){},Xu=N,Xu}const iT=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var fg;function sT(){if(fg)return Us;fg=1,Object.defineProperty(Us,"__esModule",{value:!0});var e=oT(),r=l(e),o=iT,s=l(o);function l(f){return f&&f.__esModule?f:{default:f}}var u=new r.default;return u.tlds(s.default),Us.default=function(f){return u.match(f)},Us}var Hs={},dg;function aT(){return dg||(dg=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=function(e){return e}),Hs}var hg;function lT(){if(hg)return Ls;hg=1,Object.defineProperty(Ls,"__esModule",{value:!0});var e=function(){function P(N,E){for(var C=0;C<E.length;C++){var x=E[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(N,x.key,x)}}return function(N,E,C){return E&&P(N.prototype,E),C&&P(N,C),N}}(),r=Jr(),o=m(r),s=X2(),l=b(s),u=Y2(),f=b(u),h=sT(),p=b(h),v=aT(),_=b(v);function b(P){return P&&P.__esModule?P:{default:P}}function m(P){if(P&&P.__esModule)return P;var N={};if(P!=null)for(var E in P)Object.prototype.hasOwnProperty.call(P,E)&&(N[E]=P[E]);return N.default=P,N}function T(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}function w(P,N){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:P}function D(P,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);P.prototype=Object.create(N&&N.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(P,N):P.__proto__=N)}var R=function(P){D(N,P);function N(){return T(this,N),w(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(C){var x=this;if(C==="")return C;var F=this.props.matchDecorator(C);if(!F)return C;var z=[],W=0;return F.forEach(function(he,te){he.index>W&&z.push(C.substring(W,he.index));var ce=x.props.hrefDecorator(he.url),pe=x.props.textDecorator(he.text),le=x.props.componentDecorator(ce,pe,te);z.push(le),W=he.lastIndex}),C.length>W&&z.push(C.substring(W)),z.length===1?z[0]:z}},{key:"parse",value:function(C){var x=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof C=="string"?this.parseString(C):o.isValidElement(C)&&C.type!=="a"&&C.type!=="button"?o.cloneElement(C,{key:F},this.parse(C.props.children)):Array.isArray(C)?C.map(function(z,W){return x.parse(z,W)}):C}},{key:"render",value:function(){return o.createElement(o.Fragment,null,this.parse(this.props.children))}}]),N}(o.Component);return R.defaultProps={componentDecorator:l.default,hrefDecorator:f.default,matchDecorator:p.default,textDecorator:_.default},Ls.default=R,Ls}var pg;function uT(){if(pg)return Fs;pg=1,Object.defineProperty(Fs,"__esModule",{value:!0});var e=lT(),r=o(e);function o(s){return s&&s.__esModule?s:{default:s}}return Fs.default=r.default,Fs}var cT=uT();const fT=sa(cT),dT="_text_gp0s0_1",hT="_command_gp0s0_5",mg={text:dT,command:hT},My=({text:e,commands:r=[],onLinkClick:o})=>{const s=h=>p=>(p.preventDefault(),h&&o(h),!1),l=(h,p,v)=>y.jsx("a",{onClick:s(h),role:"button",children:p},v),u=r.find(h=>e.startsWith(`/${h}`)),f=u?e.slice(u.length+1):e;return y.jsxs("div",{children:[u&&y.jsxs("code",{className:mg.command,children:["/",u]}),f.split(`
97
- `).map((h,p)=>y.jsxs("span",{className:mg.text,children:[y.jsx(fT,{componentDecorator:l,children:h}),y.jsx("br",{})]},p))]})},pT=({subtitle:e,onLinkClick:r})=>e?y.jsx("div",{className:wt.subtitle,children:y.jsx(My,{text:e,onLinkClick:r})}):null,gg="newtab#",Fy=({markdown:e,markdownOptions:r={},onLinkClick:o})=>{const s=u=>f=>(f.preventDefault(),u&&o(u),!1),l=({title:u,href:f,children:h})=>f.indexOf(gg)===0?y.jsx("a",{href:f.slice(gg.length),title:u,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(f),title:u,href:f,children:h});return y.jsx(cn,{options:{...r,overrides:{a:l}},children:e})},mT=({text:e,onLinkClick:r})=>e?y.jsx("div",{children:y.jsx(Fy,{markdown:e,onLinkClick:r})}):null,gT=({title:e})=>e?y.jsx("h1",{className:wt.title,children:e}):null,yT=({title:e,text:r,subtitle:o,buttons:s,onButtonClick:l,onLinkClick:u})=>(e==null?void 0:e.length)||(r==null?void 0:r.length)||(o==null?void 0:o.length)||(s==null?void 0:s.length)?y.jsxs("div",{className:V(fe.bubbleContent),children:[y.jsx(gT,{title:e}),y.jsx(mT,{text:r,onLinkClick:u}),y.jsx(pT,{subtitle:o,onLinkClick:u}),y.jsx(Q2,{buttons:s,onButtonClick:l})]}):null,vT=({alt:e,imageUrl:r,itemUrl:o,hasBody:s})=>r?o?o.indexOf("youtube.com")>-1?y.jsx("div",{className:wt.video_container,children:y.jsx("iframe",{className:V(wt.video,{[wt.only]:!s}),title:"Youtube",width:"100%",src:o+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:wt.imageContainer,children:y.jsx("img",{className:V(wt.image,{[wt.only]:!s}),src:r,alt:e})})}):y.jsx("div",{className:wt.imageContainer,children:y.jsx("img",{className:V(wt.image,{[wt.only]:!s}),src:r,alt:e})}):null,_T=({title:e,text:r,subtitle:o,imageUrl:s,itemUrl:l,buttons:u,sources:f,onButtonClick:h,onLinkClick:p})=>{const v=!!(e!=null&&e.length)||!!(r!=null&&r.length)||!!(o!=null&&o.length)||!!(u!=null&&u.length);return y.jsxs("div",{className:V(wt.detailMessage),children:[y.jsx(vT,{hasBody:v,imageUrl:s,itemUrl:l,alt:e||o}),v&&y.jsx(yT,{title:e,text:r,subtitle:o,buttons:u,onLinkClick:p,onButtonClick:h}),y.jsx(Sf,{sources:f,onLinkClick:p})]})},ET=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:r,children:o},s)=>{const l=Ke();return y.jsx("li",{ref:s,className:V(fe.message,fe.messageGuest,e&&fe.messageGuestFirst,r&&fe.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:V(fe.bubble,fe.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:y.jsx("div",{className:V(fe.rightText),children:o})})})}),wT="_markdown_nw7vg_1",Ly={markdown:wT},zs="source-info-reference",bT=({markdown:e,sources:r,onLinkClick:o})=>{const s=to(),l=ST(),u=h=>p=>{const v=p.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(p.stopPropagation(),s(Wm(h)))},f=h=>()=>{s(Wm(h))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${zs}`).forEach(h=>{var _,b,m,T;const p=h.previousSibling;p&&p.nodeType===Node.TEXT_NODE&&((_=p.textContent)!=null&&_.endsWith(" "))&&((b=p.textContent)!=null&&b.trim().length)&&h.classList.add(`${zs}--before-space`);const v=h.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&((m=v.textContent)!=null&&m.startsWith(" "))&&((T=v.textContent)!=null&&T.trim().length)&&h.classList.add(`${zs}--after-space`)})},[e]),y.jsxs("div",{className:fe.bubbleContent,children:[y.jsx("div",{className:Ly.markdown,children:y.jsx(Fy,{markdown:e,onLinkClick:o,markdownOptions:{renderRule(h,p,v,_){return p.type===ie.footnoteReference?y.jsx("span",{className:V(fe.sourceInfoReference,zs),children:y.jsx("a",{type:"button",tabIndex:0,onClick:f(p.text),onKeyDown:u(p.text),children:l(p.text)})},_.key):h()}}})}),y.jsx(Sf,{sources:r,onLinkClick:o})]})},ST=()=>{const e=[];return o=>{const s=e.indexOf(o);return s>-1?s+1:(e.push(o),e.length)}},xT=({text:e,commands:r,sources:o,onLinkClick:s})=>y.jsxs("div",{className:fe.bubbleContent,children:[y.jsx(My,{text:e,commands:r,onLinkClick:s}),y.jsx(Sf,{sources:o,onLinkClick:s})]}),TT=B.forwardRef(({message:e,commands:r,isLastMessage:o,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:f,onLinkClick:h},p)=>{const v=CT(e,r,f,h);switch(e.sender.type){case ge.UserType.GUEST:return y.jsx(ET,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:v});default:{const _=b=>u(e._id,b);return y.jsx(Ny,{ref:p,message:e,isAnimated:!1,isLastMessage:o,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:_,children:v})}}}),CT=(e,r,o,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return y.jsx(xT,{text:l.text,commands:r,sources:e.sources||[],onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return y.jsx(_T,{title:l.title,text:l.text,subtitle:l.subtitle,imageUrl:l.imageUrl,itemUrl:l.itemUrl,buttons:l.buttons,sources:e.sources||[],onButtonClick:o,onLinkClick:s})}case ge.MessageTypeEnum.MARKDOWN:{const l=e;return y.jsx(bT,{markdown:l.markdown,sources:l.sources||[],onLinkClick:s})}}},kT=(e,r)=>e.message._id===r.message._id&&e.message.reaction===r.message.reaction&&e.isLastMessage===r.isLastMessage&&e.isFirstMessageBySender===r.isFirstMessageBySender&&e.isLastMessageBySender===r.isLastMessageBySender,RT=e0.memo(TT,kT),OT="_ticontainer_xg0dn_1",NT="_tiblock_xg0dn_5",AT="_tidot_xg0dn_12",Qo={ticontainer:OT,tiblock:NT,tidot:AT},IT=({isTyping:e=!1})=>y.jsx("div",{className:Qo.ticontainer,children:y.jsx("div",{className:Qo.tiblock,children:e?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:V(Qo.tidot,"chat__typingIndicator")}),y.jsx("div",{className:V(Qo.tidot,"chat__typingIndicator")}),y.jsx("div",{className:V(Qo.tidot,"chat__typingIndicator")})]}):null})}),DT=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),PT=({messages:e,isBotTyping:r,commands:o,onTranscriptItemReaction:s,onButtonClick:l,onLinkClick:u})=>{const f=B.useRef(0),h=B.useRef(!0),p=B.useRef(null),v=B.useRef(null),_=B.useRef(null),b=jt(w=>w.settings.enableGeneralConditions);B.useLayoutEffect(()=>{if(e.length&&p.current&&(f.current<e.length||r)){if(v.current){const w=v.current.offsetTop;p.current.scrollTop=w}else if(_.current){const w=_.current.offsetTop;p.current.scrollTop=w}h.current&&(h.current=!1),f.current=e.length}},[e,h,r]);let m;const T=e.length;return y.jsxs("div",{ref:p,className:V(Km.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[b&&y.jsx(c2,{}),y.jsxs("ul",{className:Km.messages,children:[e.map((w,D)=>{const R=MT(w,m),P=FT(w,D,e,r);m=w.sender.type;const N=D+1===T;return y.jsx(RT,{ref:N?_:null,message:w,commands:o,isLastMessage:N,isFirstMessageBySender:R,isLastMessageBySender:P,onButtonClick:l,onLinkClick:u,onReaction:s},N&&!r?"last":w._id)}),r&&y.jsx(Ny,{ref:v,message:DT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(IT,{isTyping:!0})},"last")]})]})},MT=(e,r)=>!r||r!==e.sender.type,FT=(e,r,o,s)=>{var h;const l=e.sender.type,u=o.length;return r+1===u?!(l===ge.UserType.BOT&&s):l!==((h=o.at(r+1))==null?void 0:h.sender.type)},LT="_bottomSheet_jp8dl_1",BT="_bottomSheetOpen_jp8dl_15",jT="_bottomSheetClose_jp8dl_20",kn={bottomSheet:LT,bottomSheetOpen:BT,bottomSheetClose:jT},UT="_container_xc2nx_1",yg={container:UT},HT=({contentUrl:e})=>{const r=jt(u=>u.connection.sessionId),[o,s]=B.useState(!1);B.useEffect(()=>{s(u=>u||!!e)},[e]);const l=B.useMemo(()=>{if(e&&r){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",r),u.toString()}else return},[e,r]);return y.jsx("div",{className:V(yg.container,kn.bottomSheet,{[kn.bottomSheetOpen]:!!e,[kn.bottomSheetClose]:o&&!e}),children:l&&y.jsx("iframe",{title:"Drawer",src:l,className:yg.iframe})})},zT="_container_tr4tn_1",GT={container:zT},$T=({title:e,href:r,children:o})=>y.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:o}),VT=()=>{const r=Ke()("powered-by");return r&&r.length?y.jsx("div",{className:V(GT.container,"chat__poweredBy"),children:y.jsx(cn,{options:{overrides:{a:$T}},children:r})}):null},vg=({className:e,children:r,...o})=>y.jsx(va,{className:V(oi.buttonDefault,e),type:"button",...o,children:r}),ii=({className:e,children:r,...o})=>y.jsx(va,{className:V(oi.buttonPrimary,e),...o,children:r}),qT="_container_h23mk_1",WT="_formContainer_h23mk_17",KT="_emailInput_h23mk_22",ZT="_description_h23mk_52",QT="_actions_h23mk_57",XT="_validationError_h23mk_67",YT="_submitted_h23mk_74",xn={container:qT,formContainer:WT,emailInput:KT,description:ZT,actions:QT,validationError:XT,submitted:YT},JT=({visible:e,enableTranscriptExportPdf:r,enableTranscriptExportEmail:o,onEmailExport:s,onPdfExport:l,onClose:u})=>{const f=Ke(),[h,p]=B.useState(void 0),[v,_]=B.useState(!1),[b,m]=B.useState(!1),[T,w]=B.useState(void 0),D=B.useRef(null);B.useEffect(()=>{var E;e?((E=D.current)==null||E.focus(),_(!1),m(!1),p(e)):h===!0&&p(!1)},[e,h]);const R=E=>{E.preventDefault(),T&&T.length>0&&(s(T),_(!0),setTimeout(u,3*1e3))},P=E=>{const C=E.target.value.trim(),x=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(C);w(x?C:"")},N=()=>{m(!0),l(),setTimeout(u,3*1e3)};return y.jsxs("div",{className:V(xn.container,kn.bottomSheet,{[kn.bottomSheetOpen]:h===!0,[kn.bottomSheetClose]:h===!1}),children:[r&&y.jsxs(y.Fragment,{children:[y.jsx("h2",{children:f("export-transcript.pdf.title")}),y.jsx(cn,{className:xn.description,children:f("export-transcript.pdf.description")||""}),y.jsxs("div",{className:xn.actions,children:[y.jsx(vg,{onClick:u,children:f("export-transcript.pdf.cancel")}),y.jsx(ii,{onClick:N,disabled:b,children:f("export-transcript.pdf.download")})]})]}),o&&y.jsxs(y.Fragment,{children:[y.jsx("h2",{children:f("export-transcript.email.title")}),y.jsx(cn,{className:xn.description,children:f("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:R,className:xn.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:v,ref:D,type:"email",placeholder:f("export-transcript.email.placeholder"),className:xn.emailInput,onChange:P}),(T==null?void 0:T.length)===0?y.jsx("div",{className:xn.validationError,children:f("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:xn.actions,children:[y.jsx(vg,{onClick:u,children:f("export-transcript.email.cancel")}),y.jsx(ii,{type:"submit",disabled:v||T===void 0||T.length===0,children:f("export-transcript.email.send")})]})]}),v&&y.jsx("div",{className:xn.submitted,children:f("export-transcript.email.success")})]})]})},eC="_inputContainer_fi5ao_1",tC={inputContainer:eC},nC="_blockUserInput_pot9c_1",rC={blockUserInput:nC},oC=({visible:e})=>{const r=Ke();return e?y.jsx("div",{className:V(rC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},iC="_commandsDropdown_5ytuv_1",sC="_commands_5ytuv_1",aC="_command_5ytuv_1",lC="_commandActive_5ytuv_46",uC="_commandsSelections_5ytuv_55",Jo={commandsDropdown:iC,commands:sC,command:aC,commandActive:lC,commandsSelections:uC},cC=(e,r)=>{B.useEffect(()=>{const o=s=>{e.current&&!e.current.contains(s.target)&&r()};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[e,r])},fC=(e,r,o,s,l)=>{B.useEffect(()=>{const u=f=>{if(e.length)switch(f.key){case"Enter":o(e[r]);break;case"ArrowUp":s(h=>h>0?h-1:e.length-1);break;case"ArrowDown":s(h=>h<e.length-1?h+1:0);break;case"Escape":l([]);break}};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[e,r,o,s,l])},dC=({text:e,commands:r,onSelectCommand:o,onVisibilityChange:s})=>{const l=B.useRef(null),u=Ke(),[f,h]=B.useState([]),[p,v]=B.useState(_g(r)),[_,b]=B.useState(0),m=T=>o(`/${T}`);return cC(l,()=>h([])),fC(f,_,m,b,h),B.useEffect(()=>{v(_g(r))},[r]),B.useEffect(()=>{const T=e.length||0;T===0||T>p||!e.startsWith("/")?h([]):h(r.filter(hC(e))),b(0)},[r,e,p]),B.useEffect(()=>{s(!!f.length)},[f,s]),f.length?y.jsx("div",{ref:l,className:Jo.commandsDropdown,children:y.jsx("ul",{className:Jo.commands,role:"listbox",children:f.map((T,w)=>y.jsxs("li",{className:V([Jo.command,_===w&&Jo.commandActive]),role:"option",onClick:()=>m(T),onMouseOver:()=>b(w),children:[y.jsxs("h1",{children:["/",T]}),y.jsx("p",{children:u(`commands.${T}`)})]},T))})}):null},_g=e=>Math.max(...e.map(r=>r.length+1)),hC=e=>r=>{const o=`/${r}`;return o.startsWith(e)&&o.length>=e.length},Eg=3,pC=({commands:e,onSelectCommand:r})=>{const o=Ke(),[s,l]=B.useState(!1),u=v=>()=>{r(`/${v}`),l(!1)},f=()=>{l(!0)},h=()=>{l(!1)},p=s?e:e.slice(0,Eg);return y.jsxs("div",{className:Jo.commandsSelections,children:[p.map(v=>y.jsxs("button",{onClick:u(v),children:["/",v]})),p.length<e.length?y.jsx("button",{"aria-label":o("commands.show-more.tooltip"),"data-title":o("commands.show-more.tooltip"),tabIndex:0,onClick:f,children:o("commands.show-more.action")},"show-more"):p.length>Eg?y.jsx("button",{"aria-label":o("commands.show-less.tooltip"),"data-title":o("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:o("commands.show-less.action")},"show-less"):null]})},mC="_callToActionContainer_bkfcm_1",gC="_callToActionTitle_bkfcm_23",yC="_rateOverlay_bkfcm_30",vC="_body_bkfcm_52",_C="_footer_bkfcm_60",EC="_actions_bkfcm_73",wC="_bubbles_bkfcm_101",bC="_stars_bkfcm_203",SC="_starsSmall_bkfcm_215",xC="_starsLarge_bkfcm_219",TC="_star_bkfcm_203",CC="_starReadonly_bkfcm_236",kC="_starIcon_bkfcm_246",RC="_starsDescriptionContainer_bkfcm_264",OC="_starsDescription_bkfcm_264",pt={callToActionContainer:mC,callToActionTitle:gC,rateOverlay:yC,body:vC,footer:_C,actions:EC,bubbles:wC,stars:bC,starsSmall:SC,starsLarge:xC,star:TC,starReadonly:CC,starIcon:kC,starsDescriptionContainer:RC,starsDescription:OC},NC=({value:e,index:r,count:o,readonly:s,onHover:l,onClick:u})=>{const f=h=>{u&&h.key==="Enter"&&u()};return y.jsx("li",{className:V(pt.star,{[pt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":e>r?"true":"false","aria-posinset":r+1,"aria-setsize":o,tabIndex:0,onMouseOver:l,onKeyDown:f,onClick:u,children:y.jsx("span",{role:"img","aria-label":"Star",className:V(pt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},wg=5,By=({value:e,size:r,readonly:o=!1,onChange:s})=>{const[l,u]=B.useState(void 0),f=()=>{u(void 0)},h=v=>()=>{if(!o){const _=v+1;u(_)}},p=v=>()=>{s&&!o&&(s(v===0&&e===1?0:v+1),u(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:V(pt.stars,{[pt.starsSmall]:r==="small",[pt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:f,children:Array(wg).fill(0).map((v,_)=>y.jsx(NC,{value:l===void 0?e:l,index:_,count:wg,readonly:o,onHover:h(_),onClick:p(_)},_))})},AC=({visible:e,onRate:r})=>{const o=Ke();return e?y.jsxs("div",{className:V(pt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:V(pt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:o("conversation-rating.call-to-action.title")}),y.jsx(By,{value:0,size:"small",onChange:r})]}):null},Yu=({isFirstMessageBySender:e,isLastMessageBySender:r,children:o})=>y.jsxs("div",{className:V(fe.message,fe.messageBot,e&&fe.messageBotFirst,r&&fe.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:V(fe.avatar,fe.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:V(fe.bubble,fe.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:V(fe.leftText,fe.bubbleContent),children:o})})]}),IC=({children:e})=>y.jsx("div",{className:V(fe.message,fe.messageGuest,fe.messageGuestFirst,fe.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:V(fe.bubble,fe.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:V(fe.rightText,fe.bubbleContent),children:e})})}),DC=({visible:e,rating:r,onRate:o,onClose:s})=>{const l=Ke(),[u,f]=B.useState(r),[h,p]=B.useState(void 0),[v,_]=B.useState(void 0),[b,m]=B.useState({submitted:!1,feedback:""}),[T,w]=B.useState(!1),D=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),_(e)):v===!0&&_(!1)},[e,v]),B.useEffect(()=>{f(r)},[r]),B.useEffect(()=>{const P=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(P!=null&&P.length?P:void 0)},[u,l]),B.useEffect(()=>{b.submitted?setTimeout(()=>w(!0),b.feedback.length?500:0):w(!1)},[b]);const R=P=>{var E,C;P.preventDefault();const N=((C=(E=D.current)==null?void 0:E.value)==null?void 0:C.trim())||"";o(u,N),m({submitted:!0,feedback:N})};return y.jsx("div",{className:V(pt.rateOverlay,kn.bottomSheet,"chat__conversationRating__overlay",{[kn.bottomSheetOpen]:v===!0,[kn.bottomSheetClose]:v===!1}),children:y.jsxs("form",{onSubmit:R,children:[y.jsxs("div",{className:V(pt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:V(pt.bubbles),children:e&&h&&y.jsxs(y.Fragment,{children:[y.jsxs(Yu,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[y.jsx("h2",{children:l("conversation-rating.overlay.title")}),y.jsxs("div",{className:V(pt.starsDescriptionContainer),children:[y.jsx(By,{value:u,size:"large",readonly:b.submitted,onChange:f}),y.jsxs("div",{className:V(pt.starsDescription),children:[y.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),y.jsx(Yu,{isFirstMessageBySender:!1,isLastMessageBySender:!T||!!b.feedback.length,children:y.jsx("div",{children:h})}),!!b.feedback.length&&y.jsx(IC,{children:b.feedback}),T&&y.jsx(Yu,{isFirstMessageBySender:!!b.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:V(pt.footer,"chat__conversationRating__overlay__footer"),children:[!b.submitted&&y.jsx("input",{ref:D,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsx("div",{className:V(pt.actions,"chat__conversationRating__overlay__footer__actions"),children:b.submitted?y.jsx(ii,{type:"button",onClick:s,children:l("conversation-rating.overlay.action.close")}):y.jsx(ii,{type:"submit",children:l("conversation-rating.overlay.action.submit")})})]})]})})},PC=({conversationRating:{enabled:e,rating:r},numberOfMessagesFromGuest:o,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[f,h]=B.useState(0),p=b=>{h(b),l(!0)},v=()=>l(!1),_=!r&&o>=1;return e?y.jsxs(y.Fragment,{children:[y.jsx(AC,{visible:_,onRate:p}),y.jsx(DC,{visible:s,rating:f,onRate:u,onClose:v})]}):null},MC="_inputWrapper_e3h44_1",FC="_withOpenCommands_e3h44_14",LC="_messageInputWrapper_e3h44_20",BC="_messageInput_e3h44_20",jC="_buttons_e3h44_44",UC="_button_e3h44_44",mr={inputWrapper:MC,withOpenCommands:FC,messageInputWrapper:LC,messageInput:BC,buttons:jC,button:UC},HC="_audioRecorder_g845f_1",zC="_audioButton_g845f_6",GC="_recorderIcon_g845f_37",$C="_spinning_g845f_60",gr={audioRecorder:HC,audioButton:zC,recorderIcon:GC,spinning:$C},bg=2048,ia=16e3;class VC extends e0.Component{constructor(o){super(o);xe(this,"audioInput",null);xe(this,"volume",null);xe(this,"leftchannel",[]);xe(this,"recorder",null);xe(this,"recordingLength",0);xe(this,"sampleRate",null);xe(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(o){this.mediaStream=o,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(o)}initRecording(o){const s=window.AudioContext||window.webkitAudioContext,l=new s;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(o),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(bg,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(o){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const s=o.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(s)),this.recordingLength+=bg}}handleClickSubmitAudio(){const o=WC(this.leftchannel,this.recordingLength),s=KC(o,this.sampleRate||0),l=qC(s);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){var o,s,l,u;this.setState({recordingState:"none"}),(o=this.audioInput)==null||o.disconnect(),(s=this.volume)==null||s.disconnect(),(l=this.recorder)==null||l.disconnect(),this.mediaStream&&((u=this.mediaStream)==null||u.getAudioTracks().forEach(f=>{f.stop()}))}render(){return y.jsxs("div",{className:gr.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:V(gr.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:gr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:gr.audioRecorder,children:[y.jsx("button",{className:V(gr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:gr.recorderIcon}),y.jsx("button",{className:V(gr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const qC=e=>{const r=new ArrayBuffer(44+e.length*2),o=new DataView(r);Gs(o,0,"RIFF"),o.setUint32(4,44+e.length*2,!0),Gs(o,8,"WAVE"),Gs(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,1,!0),o.setUint32(24,ia,!0),o.setUint32(28,ia*4,!0),o.setUint16(32,4,!0),o.setUint16(34,16,!0),Gs(o,36,"data"),o.setUint32(40,e.length*2,!0);const s=e.length;let l=44;const u=1;for(let f=0;f<s;f++)o.setInt16(l,e[f]*(32767*u),!0),l+=2;return new Blob([o],{type:"audio/wav"})},Gs=(e,r,o)=>{for(let s=0;s<o.length;s++)e.setUint8(r+s,o.charCodeAt(s))},WC=(e,r)=>{const o=new Float32Array(r);let s=0;const l=e.length;for(let u=0;u<l;u++){const f=e[u];o.set(f,s),s+=f.length}return o},KC=(e,r)=>{if(ia===r)return e;const o=r/ia,s=Math.round(e.length/o),l=new Float32Array(s);let u=0,f=0;for(;u<l.length;){const h=Math.round((u+1)*o);let p=0,v=0;for(let _=f;_<h&&_<e.length;_++)p+=e[_],v++;l[u]=p/v,u++,f=h}return l},ZC=({disabled:e,textInput:r,commandsVisible:o,onTextInput:s,onTextInputSubmit:l,onAudioRecorded:u,onOpenTranscriptExportModal:f})=>{const h=Ke(),p=B.useRef(null),{enableTranscriptExportPdf:v,enableTranscriptExportEmail:_,enableSpeechSupport:b}=jt(R=>R.settings);B.useEffect(()=>{var R;(R=p.current)==null||R.focus()},[r]);const m=()=>{const R=p.current;R&&r.trim().length>=1&&l(r.trim())&&(R.value="",R.style.height="",R.focus())},T=R=>{R.preventDefault(),m()},w=R=>{const P=R.target.value;s(P),R.target.style.height="";const{scrollHeight:N}=R.target;R.target.style.height=`${N>150?150:N}px`},D=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||m(),R.preventDefault()):o&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return y.jsxs("form",{className:V(mr.inputWrapper,o&&mr.withOpenCommands,"chat__textInput"),onSubmit:T,children:[y.jsx("div",{className:mr.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:p,className:mr.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:w,onKeyDown:D,"aria-label":h("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),y.jsxs("div",{className:V(mr.buttons,"chat__buttons"),children:[!r.length&&(v||_)&&y.jsx("button",{type:"button",className:V(mr.button,"chat__button"),"aria-label":h("message-input.actions.export-transcript.label"),"data-title":h("message-input.actions.export-transcript.label"),tabIndex:0,onClick:f,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),r.length||!b||navigator.mediaDevices===void 0?y.jsx("button",{className:V(mr.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:e,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):b&&navigator.mediaDevices!==void 0&&y.jsx(VC,{translate:h,onAudioRecorded:u})]})]})},QC="_quickReplies_83npe_1",XC="_quickReply_83npe_9",Sg={quickReplies:QC,quickReply:XC},YC=({quickReplies:e,onQuickReplyClick:r})=>e.length?y.jsx("div",{className:V(Sg.quickReplies,"chat__quickReplies"),children:e.map(o=>y.jsx(va,{tabIndex:0,className:V(Sg.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(o),children:o.label},o.label))}):null,xg=5e3,JC=1e3,ek=({isBotTyping:e,quickReplies:r,conversationRating:o,numberOfMessagesFromGuest:s,showRatingOverlay:l,commands:u,setShowRatingOverlay:f,onTextInput:h,onRate:p,onQuickReplyClick:v,onAudioRecorded:_,onOpenTranscriptExportModal:b})=>{const[m,T]=B.useState(""),[w,D]=B.useState(!1),[R,P]=B.useState(!1),N=B.useRef(),E=B.useRef(0);B.useEffect(()=>{if(w&&!e){const F=N.current?Date.now()-N.current:0;F>xg?D(!1):setTimeout(()=>{D(!1)},xg-F)}},[w,e]),B.useEffect(()=>{w&&(N.current=Date.now())},[w]);const C=F=>{const z=Date.now()-E.current<JC;return R?!1:e||z?(D(!0),!1):(h(F),T(""),E.current=Date.now(),!0)},x=F=>{T(F+" ")};return y.jsxs("div",{className:V(tC.inputContainer),children:[y.jsx(YC,{quickReplies:r,onQuickReplyClick:v}),y.jsx(oC,{visible:w}),!w&&y.jsx(PC,{conversationRating:o,numberOfMessagesFromGuest:s,onRate:p,showRatingOverlay:l,setShowRatingOverlay:f}),!!(u!=null&&u.length)&&y.jsx(dC,{text:m,commands:u,onSelectCommand:x,onVisibilityChange:P}),y.jsx(ZC,{textInput:m,disabled:w,commandsVisible:R,onTextInput:T,onTextInputSubmit:C,onOpenTranscriptExportModal:b,onAudioRecorded:_}),!!(u!=null&&u.length)&&y.jsx(pC,{commands:u,onSelectCommand:T})]})},tk=({clientName:e,messages:r,quickReplies:o,isBotTyping:s,drawerContentUrl:l,conversationRating:u,onMessageFromUser:f,onRate:h,onQuickReplyClick:p,onButtonClick:v,onLinkClick:_,onAudioRecorded:b,onTranscriptExport:m,onPdfExport:T,onTranscriptItemReaction:w})=>{const D=to(),R=jt(te=>te.connection.connectionState),{enableTranscriptExportPdf:P,enableTranscriptExportEmail:N,commands:E}=jt(te=>te.settings),[C,x]=B.useState(!1),[F,z]=B.useState(!1),W=P||N,he=r.filter(te=>te.sender.type===dy.GUEST).length;return B.useEffect(()=>{if(R===Er.CONNECTED){const te=ua.parse(window.location.search);D(fy(e,te))}},[e,R,D]),y.jsxs("div",{className:ju.container,children:[y.jsxs("div",{className:V([ju.chatcontent,(C||F)&&ju.accessabilityHidden]),children:[y.jsx(PT,{messages:r,isBotTyping:s,commands:E,onButtonClick:v,onLinkClick:_,onTranscriptItemReaction:w}),y.jsx(ek,{isBotTyping:s,quickReplies:s?[]:o,numberOfMessagesFromGuest:he,conversationRating:C?{enabled:!1}:u,showRatingOverlay:F,setShowRatingOverlay:z,commands:E,onRate:h,onQuickReplyClick:p,onTextInput:f,onAudioRecorded:b,onOpenTranscriptExportModal:()=>x(!C)}),y.jsx(VT,{})]}),W&&y.jsx(JT,{enableTranscriptExportPdf:P,enableTranscriptExportEmail:N,visible:C,onEmailExport:m,onPdfExport:T,onClose:()=>x(!1)}),y.jsx(HT,{contentUrl:l})]})},nk=e=>{const{messages:r,quickReplies:o,isBotTyping:s,drawerContentUrl:l,conversationRating:u}=e.chat;return{messages:r,quickReplies:o,isBotTyping:s,drawerContentUrl:l,conversationRating:u}},rk=e=>({onRestartChat:(r,o)=>e(ga(r,o)),onMessageFromUser:r=>e(G0(r)),onRate:(r,o)=>e(Hb(r,o)),onAudioRecorded:r=>e(Fb(r)),onActionFromUser:r=>e(r),onQuickReplyClick:r=>e(z0(r)),onNluEvent:r=>e(Z0(r)),onButtonClick:r=>e(Gb(r)),onLinkClick:r=>e($b(r)),onTranscriptExport:r=>e(Bb(r)),onPdfExport:()=>e(jb()),onTranscriptItemReaction:(r,o)=>e(ge.transcriptItemGuestReaction(r,o||null))}),ok=dE(nk,rk)(tk),jy=()=>ik(window.location.pathname),ik=e=>{const r=e.split("/"),o=e.endsWith("/");return r[r.length-(o?2:1)]},Uy=()=>B.useMemo(()=>jy(),[]),Hy=()=>{const[e,r]=B.useState(!1);return B.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),e},xf=e=>r=>{const o=r.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(r.stopPropagation(),e())},sk=({onClick:e})=>{const r=Ke();return Hy()?y.jsx("button",{className:"tooltip--bottom","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:xf(e),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},ak=()=>{const e=Ke(),r=Hy(),o=jt(l=>l.settings.enableStandaloneView),s=()=>{window.open(window.location.href,"_blank")};return r&&o?y.jsx("button",{className:"tooltip--bottom","aria-label":e("header.expand-chat"),"data-title":e("header.expand-chat"),tabIndex:0,onClick:s,onKeyDown:xf(s),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})})}):null},lk="_header_1hky6_1",uk="_logoContainer_1hky6_13",ck="_logo_1hky6_13",fk="_actions_1hky6_27",$s={header:lk,logoContainer:uk,logo:ck,actions:fk},dk=({onClick:e})=>{const r=Ke();return y.jsx("button",{className:"tooltip--bottom","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:e,onKeyDown:xf(e),children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[y.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),y.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},Tg=({className:e,withActions:r=!0,...o})=>{const s=to(),l=Uy(),u=()=>{const h=ua.parse(window.location.search);s(ga(l,h))},f=()=>{s(MS())};return y.jsxs("div",{className:V([$s.header,e]),...o,children:[y.jsx("div",{className:$s.logoContainer,children:y.jsx("div",{className:$s.logo})}),y.jsxs("div",{className:$s.actions,children:[r&&y.jsx(dk,{onClick:u}),y.jsx(ak,{}),y.jsx(sk,{onClick:f})]})]})},hk="_chatwindow_6v6ob_1",pk="_chatwindowWithAside_6v6ob_46",Cg={chatwindow:hk,chatwindowWithAside:pk},mk="_sourceInfos_1qwkt_1",gk="_sourceDetails_1qwkt_16",yk="_sourceHeader_1qwkt_23",vk="_sourceHeaderIcon_1qwkt_43",_k="_openSourceButton_1qwkt_47",Ek="_closeSourceInfosButton_1qwkt_70",wk="_sourceContent_1qwkt_85",bk="_loadingSourceInfos_1qwkt_108",Sk="_loading_1qwkt_108",xk="_loadingError_1qwkt_122",hn={sourceInfos:mk,sourceDetails:gk,sourceHeader:yk,sourceHeaderIcon:vk,openSourceButton:_k,closeSourceInfosButton:Ek,sourceContent:wk,loadingSourceInfos:bk,loading:Sk,loadingError:xk},Tk=({onClick:e})=>{const r=Ke();return y.jsx("button",{className:V(hn.closeSourceInfosButton,"tooltip--bottom"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:e,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Ck=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...e,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),kk=({type:e,...r})=>{switch(e){case"WEBSITE":return y.jsx(Py,{...r});case"PDF":return y.jsx(Dy,{...r});case"DOCX":return y.jsx(Ay,{...r});case"TEXT":return y.jsx(Ck,{...r});default:return y.jsx(Iy,{...r})}},Rk=({sourceInfos:e,onClose:r})=>y.jsxs("div",{className:hn.sourceHeader,children:[y.jsx("div",{className:hn.sourceHeaderIcon,children:e&&y.jsx(kk,{type:e.knowledgeBaseType})}),y.jsx("div",{children:e&&y.jsx("h1",{children:e.title})}),y.jsx(Tk,{onClick:r})]}),Ok=({title:e,href:r,children:o})=>y.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:o}),Nk=({className:e,children:r,...o})=>y.jsx("a",{className:V(oi.button,oi.buttonPrimary,e),type:"button",...o,children:r}),Ak=({label:e,url:r})=>y.jsxs(Nk,{className:hn.openSourceButton,href:r,target:"_blank",children:[y.jsx("p",{children:e}),y.jsx("div",{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"})})})]}),Ik=({sourceInfos:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:V(hn.sourceContent,Ly.markdown),children:y.jsx(cn,{options:{overrides:{a:Ok}},children:e.content})}),y.jsx(Ak,{label:e.title,url:e.url})]}),Dk=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Pk=()=>{const e=Ke();return y.jsxs("div",{className:hn.loadingError,children:[y.jsx("h1",{children:e("source-infos.error.title")}),y.jsx("img",{src:Dk,title:e("source-infos.error.title")}),y.jsx("p",{children:e("source-infos.error.info")})]})},Mk=()=>y.jsx("div",{className:hn.loadingSourceInfos,children:y.jsx("svg",{className:hn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})}),Fk=()=>{const e=to(),r=jt(s=>s.chat.sourceInfos),o=()=>{e(LS())};return r?y.jsxs("div",{className:hn.sourceInfos,children:[y.jsx("div",{className:hn.sourceDetails,children:y.jsx(Rk,{sourceInfos:r.type==="loaded"?r:void 0,onClose:o})}),r.type==="loading"?y.jsx(Mk,{}):r.type==="loading-error"?y.jsx(Pk,{}):y.jsx(Ik,{sourceInfos:r})]}):null},Lk="_container_114wy_1",Bk="_body_114wy_7",jk="_intro_114wy_14",Uk="_footer_114wy_39",Hk="_footnote_114wy_43",zk="_containerWithFootnote_114wy_58",Gk="_startChatButton_114wy_73",$k="_formFields_114wy_77",Vk="_formField_114wy_77",qk="_radio_114wy_89",Wk="_checkbox_114wy_96",Kk="_input_114wy_104",Zk="_inputLabel_114wy_138",Qk="_selectWrapper_114wy_142",Xk="_select_114wy_142",Yk="_selectLabel_114wy_188",it={container:Lk,body:Bk,intro:jk,footer:Uk,footnote:Hk,containerWithFootnote:zk,startChatButton:Gk,formFields:$k,formField:Vk,radio:qk,checkbox:Wk,input:Kk,inputLabel:Zk,selectWrapper:Qk,select:Xk,selectLabel:Yk},Jk=({name:e,label:r,defaultValue:o,required:s,onChange:l})=>{const u=f=>{l(f.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:V(it.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[y.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:o==="true",required:s,onChange:u}),y.jsx("div",{children:r})]})},eR=({type:e,name:r,label:o,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:_})=>{const b=m=>{_(m.target.value)};return y.jsxs("label",{className:V(it.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:V(it.inputLabel),children:o}),y.jsx("input",{type:e,id:r,name:r,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:b})]})},tR=({name:e,value:r,label:o,defaultChecked:s,required:l,onChange:u})=>{const f=`${e}-${r}`,h=p=>{u(p.target.value)};return y.jsxs("label",{className:V(it.radio,"chat__startScreen__radio"),htmlFor:f,children:[y.jsx("input",{id:f,type:"radio",name:e,value:r,defaultChecked:s,required:l,onChange:h}),y.jsx("span",{className:V(it.label),children:o})]})},nR=({name:e,label:r,defaultValue:o,required:s,multiple:l,options:u,onChange:f})=>{const h=p=>{f(p.target.value)};return y.jsxs("label",{className:V(it.select,"chat__startScreen__select"),htmlFor:e,children:[y.jsx("div",{className:V(it.selectLabel),children:r}),y.jsx("div",{className:V(it.selectWrapper),children:y.jsx("select",{id:e,name:e,defaultValue:o,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,v])=>y.jsx("option",{value:p,selected:v===o,children:v}))})})]})},rR="start-screen.intro",oR="start-screen.start-chat",iR="start-screen.footnote",Xt="start-screen.form",kg=`${Xt}.fields`,sR=()=>{const e=Ke(),r=to(),[o,s]=B.useState({}),l=()=>{const b=Object.entries(o).reduce((m,[T,w])=>({...m,[T]:w.value}),{});r(IS(b))},u=e(rR),f=e(oR),h=e(iR),p=B.useMemo(()=>{var b;return((b=e(kg))==null?void 0:b.split(";").map(m=>m.trim()))??[]},[e(kg)]);B.useEffect(()=>{p.length&&Object.keys(o).length===0&&s(p.reduce((b,m)=>({...b,[m]:aR(m,e)}),{}))},[e,p,o]);const v=b=>{b.preventDefault(),l()},_=b=>m=>{s(T=>({...T,[b]:{...T[b],value:m}}))};return y.jsxs("form",{onSubmit:v,className:V(it.container,h&&it.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:V(it.body,"chat__startScreen__body"),children:[u&&y.jsx("div",{className:V(it.intro,"chat__startScreen__intro"),children:y.jsx(cn,{options:{overrides:{a:Rg}},children:u})}),y.jsx("div",{className:V(it.formFields,"chat__startScreen__fields"),children:Object.values(o).map(({type:b,name:m,label:T,placeholder:w,defaultValue:D,options:R,required:P,multiple:N,min:E,max:C,pattern:x})=>y.jsx("div",{className:V(it.formField,"chat__startScreen__field"),children:(()=>{switch(b){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:T}),Object.entries(R||{}).map(([F,z])=>y.jsx(tR,{name:m,value:F,label:z,defaultChecked:F===D,required:P,onChange:_(m)}))]});case"checkbox":return y.jsx(Jk,{name:m,label:T,defaultValue:D,required:P,onChange:_(m)});case"select":return y.jsx(nR,{name:m,label:T,defaultValue:D,required:P,multiple:N,options:R,onChange:_(m)});default:return y.jsx(eR,{type:b,name:m,label:T,placeholder:w,defaultValue:D,required:P,multiple:N,min:E,max:C,pattern:x,onChange:_(m)})}})()},m))})]}),y.jsxs("div",{className:V(it.footer,"chat__startScreen__footer"),children:[y.jsx(ii,{type:"submit",className:it.startChatButton,children:f}),h&&y.jsx("div",{className:it.footnote,children:y.jsx(cn,{options:{overrides:{a:Rg}},children:h})})]})]})},Rg=({title:e,href:r,children:o})=>y.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:o}),aR=(e,r)=>{const o=r(`${Xt}.${e}.type`)||"text",s=r(`${Xt}.${e}.required`)==="true",l=r(`${Xt}.${e}.multiple`)==="true",u=r(`${Xt}.${e}.placeholder`),f=r(`${Xt}.${e}.label`)||"",h=r(`${Xt}.${e}.defaultValue`),p=r(`${Xt}.${e}.min`),v=r(`${Xt}.${e}.max`),_=r(`${Xt}.${e}.pattern`),b=uR(r(`${Xt}.${e}.options`));return{name:e,label:f,placeholder:u,value:lR(o,h,b)||"",defaultValue:h,options:b,type:o,required:s,multiple:l,min:p,max:v,pattern:_}},lR=(e,r,o)=>r||e==="select"&&Object.keys(o)[0]||"",uR=(e="")=>e.split(";").map(r=>r.trim()).reduce((r,o)=>{const[s,l]=o.split(":").map(u=>u.trim());return{...r,[s]:l}},{}),cR=()=>{const e=la();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Zr={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"},fR=({clientName:e})=>{cR();const r=to(),o=jt(_=>_.intl.messages),s=Ke(),l=jt(_=>_.settings.enableStartScreen),u=jt(_=>_.startScreen.startScreenStatus),[f,h]=B.useState(void 0);B.useEffect(()=>{const _=ua.parse(window.location.search);_.cssClassName&&h(_.cssClassName);const b=m=>{switch(m.data.type){case Zr.TRIGGER_ACTION:r(m.data.action);break;case Zr.TRIGGER_STORY:r(Z0(m.data.story));break;case Zr.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Zr.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Zr.CHAT_MESSAGE_FROM_GUEST:r(G0(m.data.text));break;case Zr.RESTART_CHAT:r(ga(e,_));break}};return r(jS(e,_)),window.addEventListener("message",m=>b(m),!1),()=>window.removeEventListener("message",b)},[e,r]),B.useEffect(()=>{const _=s("page.title");_&&document&&(document.title=_)},[o,s]);const p=l===void 0,v=l===!1||u==="HIDDEN";return y.jsx("div",{className:V(Cg.chatwindow,v&&Cg.chatwindowWithAside,"chat__chatwindow",f),children:p?null:v?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(Tg,{})}),y.jsx("main",{children:y.jsx(ok,{clientName:e})}),y.jsx("aside",{children:y.jsx(Fk,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(Tg,{withActions:!1})}),y.jsx("main",{children:y.jsx(sR,{})})]})})},dR=1024,hR=()=>{const e=Uy(),r=jt(u=>u.intl.locale),o=jt(u=>u.intl.messages),[s,l]=B.useState(Og());return B.useEffect(()=>{const u=()=>{l(Og())};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),y.jsx(Jw,{locale:r,messages:o,children:y.jsx("div",{className:V([tb.app,s?"chat__large":"chat__small"]),children:y.jsx(fR,{clientName:e})})})},Og=()=>window.innerWidth>=dR;var Ju,Ng;function Tf(){if(Ng)return Ju;Ng=1;function e(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}return Ju=e,Ju}var ec,Ag;function pR(){if(Ag)return ec;Ag=1;var e=typeof ys=="object"&&ys&&ys.Object===Object&&ys;return ec=e,ec}var tc,Ig;function zy(){if(Ig)return tc;Ig=1;var e=pR(),r=typeof self=="object"&&self&&self.Object===Object&&self,o=e||r||Function("return this")();return tc=o,tc}var nc,Dg;function mR(){if(Dg)return nc;Dg=1;var e=zy(),r=function(){return e.Date.now()};return nc=r,nc}var rc,Pg;function gR(){if(Pg)return rc;Pg=1;var e=/\s/;function r(o){for(var s=o.length;s--&&e.test(o.charAt(s)););return s}return rc=r,rc}var oc,Mg;function yR(){if(Mg)return oc;Mg=1;var e=gR(),r=/^\s+/;function o(s){return s&&s.slice(0,e(s)+1).replace(r,"")}return oc=o,oc}var ic,Fg;function Gy(){if(Fg)return ic;Fg=1;var e=zy(),r=e.Symbol;return ic=r,ic}var sc,Lg;function vR(){if(Lg)return sc;Lg=1;var e=Gy(),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,l=e?e.toStringTag:void 0;function u(f){var h=o.call(f,l),p=f[l];try{f[l]=void 0;var v=!0}catch{}var _=s.call(f);return v&&(h?f[l]=p:delete f[l]),_}return sc=u,sc}var ac,Bg;function _R(){if(Bg)return ac;Bg=1;var e=Object.prototype,r=e.toString;function o(s){return r.call(s)}return ac=o,ac}var lc,jg;function ER(){if(jg)return lc;jg=1;var e=Gy(),r=vR(),o=_R(),s="[object Null]",l="[object Undefined]",u=e?e.toStringTag:void 0;function f(h){return h==null?h===void 0?l:s:u&&u in Object(h)?r(h):o(h)}return lc=f,lc}var uc,Ug;function wR(){if(Ug)return uc;Ug=1;function e(r){return r!=null&&typeof r=="object"}return uc=e,uc}var cc,Hg;function bR(){if(Hg)return cc;Hg=1;var e=ER(),r=wR(),o="[object Symbol]";function s(l){return typeof l=="symbol"||r(l)&&e(l)==o}return cc=s,cc}var fc,zg;function SR(){if(zg)return fc;zg=1;var e=yR(),r=Tf(),o=bR(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function p(v){if(typeof v=="number")return v;if(o(v))return s;if(r(v)){var _=typeof v.valueOf=="function"?v.valueOf():v;v=r(_)?_+"":_}if(typeof v!="string")return v===0?v:+v;v=e(v);var b=u.test(v);return b||f.test(v)?h(v.slice(2),b?2:8):l.test(v)?s:+v}return fc=p,fc}var dc,Gg;function xR(){if(Gg)return dc;Gg=1;var e=Tf(),r=mR(),o=SR(),s="Expected a function",l=Math.max,u=Math.min;function f(h,p,v){var _,b,m,T,w,D,R=0,P=!1,N=!1,E=!0;if(typeof h!="function")throw new TypeError(s);p=o(p)||0,e(v)&&(P=!!v.leading,N="maxWait"in v,m=N?l(o(v.maxWait)||0,p):m,E="trailing"in v?!!v.trailing:E);function C(le){var Ue=_,Ie=b;return _=b=void 0,R=le,T=h.apply(Ie,Ue),T}function x(le){return R=le,w=setTimeout(W,p),P?C(le):T}function F(le){var Ue=le-D,Ie=le-R,$e=p-Ue;return N?u($e,m-Ie):$e}function z(le){var Ue=le-D,Ie=le-R;return D===void 0||Ue>=p||Ue<0||N&&Ie>=m}function W(){var le=r();if(z(le))return he(le);w=setTimeout(W,F(le))}function he(le){return w=void 0,E&&_?C(le):(_=b=void 0,T)}function te(){w!==void 0&&clearTimeout(w),R=0,_=D=b=w=void 0}function ce(){return w===void 0?T:he(r())}function pe(){var le=r(),Ue=z(le);if(_=arguments,b=this,D=le,Ue){if(w===void 0)return x(D);if(N)return clearTimeout(w),w=setTimeout(W,p),C(D)}return w===void 0&&(w=setTimeout(W,p)),T}return pe.cancel=te,pe.flush=ce,pe}return dc=f,dc}var hc,$g;function TR(){if($g)return hc;$g=1;var e=xR(),r=Tf(),o="Expected a function";function s(l,u,f){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(o);return r(f)&&(h="leading"in f?!!f.leading:h,p="trailing"in f?!!f.trailing:p),e(l,u,{leading:h,maxWait:u,trailing:p})}return hc=s,hc}var CR=TR();const kR=sa(CR);function RR(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function OR(e){return e}function NR(e,r){r=r||{};const o=r.delimiter||".",s=r.maxDepth,l=r.transformKey||OR,u={};function f(h,p,v){v=v||1,Object.keys(h).forEach(function(_){const b=h[_],m=r.safe&&Array.isArray(b),T=Object.prototype.toString.call(b),w=RR(b),D=T==="[object Object]"||T==="[object Array]",R=p?p+o+l(_):l(_);if(!m&&!w&&D&&Object.keys(b).length&&(!r.maxDepth||v<s))return f(b,R,v+1);u[R]=b})}return f(e),u}const $y={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
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.expand-chat":"Chat vergrössern","header.close-chat":"Chat minimieren","source-infos.close":"Schliessen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},AR={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
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.expand-chat":"Expand chat","header.close-chat":"Minimize chat","source-infos.close":"Close","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},IR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
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.expand-chat":"Agrandir le chat","header.close-chat":"Minimiser le chat","source-infos.close":"Fermer","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},DR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
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.expand-chat":"Allarga la chat","header.close-chat":"Ridurre al minimo la chat","source-infos.close":"Chiudere","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},PR=["de","en","fr","it"],Vy={locale:"de",messages:$y},MR=(e,r)=>{if(PR.includes(e)){const o=FR(e),s=NR(r);return{...o,...s}}return r},FR=e=>{switch(e.toString()){case"en":return AR;case"fr":return IR;case"it":return DR;default:return $y}},LR=(e=BR,r)=>{switch(r.type){case gf:return Object.assign({},e,{connectionState:Er.CONNECTING});case yf:return Object.assign({},e,{connectionState:Er.CONNECTED});case vf:return Object.assign({},e,{connectionState:Er.DISCONNECTED});case _f:return Object.assign({},e,{connectionState:Er.RECONNECTED});case Ef:return Object.assign({},e,{sessionId:r.sessionId});case pa:return Object.assign({},e,{sessionId:r.payload.sessionId,userId:r.payload.userId});case ma:return Object.assign({},e,{sessionId:void 0});default:return e}},BR={connectionState:Er.DISCONNECTED,sessionId:void 0,userId:void 0},jR=(e=qg,r)=>{switch(r.type){case cy:return qg;case pa:return yr({type:"webclient.chat.started"}),e;case ma:return yr({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 Vg(e,r.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{yr(r);const o=Object.assign({},r.message,{_id:r.meta.actionId}),s=e.messages.filter(l=>l._id===r.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:s?e.messages:e.messages.concat([o]),quickReplies:o.quickReplies?o.quickReplies:[]})}case of:{const o=r.messages,s=o.length?o[o.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:o,quickReplies:(s==null?void 0:s.quickReplies)||[]})}case rf:return yr(r.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return yr(r.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:r.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:r.payload.locale});case q0:return yr(r),e;case W0:return yr(r),e;case af:{const o=new ge.TextMessage(r.transcription,new ge.GuestUser),s=Object.assign({},o,{_id:Ic()});return Vg(e,s)}case ge.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const o=e.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,{reaction:r.payload.reaction}):s);return Object.assign({},e,{messages:o})}case lf:{const o={enabled:!0,rating:r.payload.rating};return Object.assign({},e,{conversationRating:o})}case ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const o={...e.conversationRating,rating:r.payload};return Object.assign({},e,{conversationRating:o})}case uf:return{...e,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case V0:return{...e,sourceInfos:{type:"loading-error"}};case $0:return{...e,sourceInfos:{type:"loaded",chunkId:r.payload.chunkId,knowledgeBaseType:r.payload.knowledgeBaseType,title:r.payload.title,content:r.payload.content,url:r.payload.url}};case cf:return{...e,sourceInfos:void 0};default:return e}},Vg=(e,r)=>{const o=e.messages[e.messages.length-1],s=(o==null?void 0:o.text)===r.text;return o&&o.sender.type===r.sender.type&&s?e:Object.assign({},e,{messages:e.messages.concat([r]),quickReplies:[]})},yr=e=>{var r;UR()?(r=window.top)==null||r.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},UR=()=>typeof window<"u"&&window.self!==window.top,qg={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},qy=pf({name:"intl",initialState:Vy,reducers:{updateIntl:(e,r)=>{e.locale=r.payload.language,e.messages=r.payload.messages}}}),{updateIntl:HR}=qy.actions,zR=qy.reducer,GR={enableStartScreen:!1,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},Wy=pf({name:"settings",initialState:GR,reducers:{setSettings(e,r){e.enableStartScreen=r.payload.enableStartScreen,e.enableStandaloneView=r.payload.enableStandaloneView,e.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,e.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,e.enableGeneralConditions=r.payload.enableGeneralConditions,e.enableSpeechSupport=r.payload.enableSpeechSupport,e.commands=r.payload.commands}}}),{setSettings:$R}=Wy.actions,VR=Wy.reducer,qR=Y0({settings:VR,chat:jR,startScreen:PS,connection:LR,intl:zR}),WR="bubble-chat",Ky="state-last-saved-at",Zy="state",KR=e=>{try{if(!XR())return;const r=Wg(e,Ky);if(QR(r))return;{const o=Wg(e,Zy);return o===null?void 0:JSON.parse(o)}}catch(r){console.error(r);return}},ZR=(e,r)=>{try{const o=JSON.stringify(r);Kg(e,Zy,o);const s=new Date().toISOString();Kg(e,Ky,s)}catch(o){console.error(o)}},QR=e=>{if(e===null)return!1;const r=new Date(e);return r.setHours(r.getHours()+12),new Date>r},XR=()=>typeof localStorage<"u",Wg=(e,r)=>{const o=Qy(e,r);return localStorage.getItem(o)},Kg=(e,r,o)=>{const s=Qy(e,r);return localStorage.setItem(s,o)},Qy=(e,r)=>`${WR}-${e}-${r}`,pn=Object.create(null);pn.open="0";pn.close="1";pn.ping="2";pn.pong="3";pn.message="4";pn.upgrade="5";pn.noop="6";const Zs=Object.create(null);Object.keys(pn).forEach(e=>{Zs[pn[e]]=e});const Hc={type:"error",data:"parser error"},Xy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Yy=typeof ArrayBuffer=="function",Jy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Cf=({type:e,data:r},o,s)=>Xy&&r instanceof Blob?o?s(r):Zg(r,s):Yy&&(r instanceof ArrayBuffer||Jy(r))?o?s(r):Zg(new Blob([r]),s):s(pn[e]+(r||"")),Zg=(e,r)=>{const o=new FileReader;return o.onload=function(){const s=o.result.split(",")[1];r("b"+(s||""))},o.readAsDataURL(e)};function Qg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let pc;function YR(e,r){if(Xy&&e.data instanceof Blob)return e.data.arrayBuffer().then(Qg).then(r);if(Yy&&(e.data instanceof ArrayBuffer||Jy(e.data)))return r(Qg(e.data));Cf(e,!1,o=>{pc||(pc=new TextEncoder),r(pc.encode(o))})}const Xg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Xg.length;e++)ei[Xg.charCodeAt(e)]=e;const JR=e=>{let r=e.length*.75,o=e.length,s,l=0,u,f,h,p;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);const v=new ArrayBuffer(r),_=new Uint8Array(v);for(s=0;s<o;s+=4)u=ei[e.charCodeAt(s)],f=ei[e.charCodeAt(s+1)],h=ei[e.charCodeAt(s+2)],p=ei[e.charCodeAt(s+3)],_[l++]=u<<2|f>>4,_[l++]=(f&15)<<4|h>>2,_[l++]=(h&3)<<6|p&63;return v},eO=typeof ArrayBuffer=="function",kf=(e,r)=>{if(typeof e!="string")return{type:"message",data:ev(e,r)};const o=e.charAt(0);return o==="b"?{type:"message",data:tO(e.substring(1),r)}:Zs[o]?e.length>1?{type:Zs[o],data:e.substring(1)}:{type:Zs[o]}:Hc},tO=(e,r)=>{if(eO){const o=JR(e);return ev(o,r)}else return{base64:!0,data:e}},ev=(e,r)=>{switch(r){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},tv="",nO=(e,r)=>{const o=e.length,s=new Array(o);let l=0;e.forEach((u,f)=>{Cf(u,!1,h=>{s[f]=h,++l===o&&r(s.join(tv))})})},rO=(e,r)=>{const o=e.split(tv),s=[];for(let l=0;l<o.length;l++){const u=kf(o[l],r);if(s.push(u),u.type==="error")break}return s};function oO(){return new TransformStream({transform(e,r){YR(e,o=>{const s=o.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),r.enqueue(l),r.enqueue(o)})}})}let mc;function Vs(e){return e.reduce((r,o)=>r+o.length,0)}function qs(e,r){if(e[0].length===r)return e.shift();const o=new Uint8Array(r);let s=0;for(let l=0;l<r;l++)o[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)),o}function iO(e,r){mc||(mc=new TextDecoder);const o=[];let s=0,l=-1,u=!1;return new TransformStream({transform(f,h){for(o.push(f);;){if(s===0){if(Vs(o)<1)break;const p=qs(o,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(Vs(o)<2)break;const p=qs(o,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(Vs(o)<8)break;const p=qs(o,8),v=new DataView(p.buffer,p.byteOffset,p.length),_=v.getUint32(0);if(_>Math.pow(2,21)-1){h.enqueue(Hc);break}l=_*Math.pow(2,32)+v.getUint32(4),s=3}else{if(Vs(o)<l)break;const p=qs(o,l);h.enqueue(kf(u?p:mc.decode(p),r)),s=0}if(l===0||l>e){h.enqueue(Hc);break}}}})}const nv=4;function We(e){if(e)return sO(e)}function sO(e){for(var r in We.prototype)e[r]=We.prototype[r];return e}We.prototype.on=We.prototype.addEventListener=function(e,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(r),this};We.prototype.once=function(e,r){function o(){this.off(e,o),r.apply(this,arguments)}return o.fn=r,this.on(e,o),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(e,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+e];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,l=0;l<o.length;l++)if(s=o[l],s===r||s.fn===r){o.splice(l,1);break}return o.length===0&&delete this._callbacks["$"+e],this};We.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),o=this._callbacks["$"+e],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(o){o=o.slice(0);for(var s=0,l=o.length;s<l;++s)o[s].apply(this,r)}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 _a=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,o)=>o(r,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),aO="arraybuffer";function rv(e,...r){return r.reduce((o,s)=>(e.hasOwnProperty(s)&&(o[s]=e[s]),o),{})}const lO=Bt.setTimeout,uO=Bt.clearTimeout;function Ea(e,r){r.useNativeTimers?(e.setTimeoutFn=lO.bind(Bt),e.clearTimeoutFn=uO.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const cO=1.33;function fO(e){return typeof e=="string"?dO(e):Math.ceil((e.byteLength||e.size)*cO)}function dO(e){let r=0,o=0;for(let s=0,l=e.length;s<l;s++)r=e.charCodeAt(s),r<128?o+=1:r<2048?o+=2:r<55296||r>=57344?o+=3:(s++,o+=4);return o}function ov(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function hO(e){let r="";for(let o in e)e.hasOwnProperty(o)&&(r.length&&(r+="&"),r+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r}function pO(e){let r={},o=e.split("&");for(let s=0,l=o.length;s<l;s++){let u=o[s].split("=");r[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return r}class mO extends Error{constructor(r,o,s){super(r),this.description=o,this.context=s,this.type="TransportError"}}class Rf extends We{constructor(r){super(),this.writable=!1,Ea(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,o,s){return super.emitReserved("error",new mO(r,o,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const o=kf(r,this.socket.binaryType);this.onPacket(o)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,o={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(o)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const o=hO(r);return o.length?"?"+o:""}}class gO extends Rf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const o=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||o()})),this.writable||(s++,this.once("drain",function(){--s||o()}))}else o()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const o=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)};rO(r,this.socket.binaryType).forEach(o),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,nO(r,o=>{this.doWrite(o,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",o=this.query||{};return this.opts.timestampRequests!==!1&&(o[this.opts.timestampParam]=ov()),!this.supportsBinary&&!o.sid&&(o.b64=1),this.createUri(r,o)}}let iv=!1;try{iv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const yO=iv;function vO(){}class _O extends gO{constructor(r){if(super(r),typeof location<"u"){const o=location.protocol==="https:";let s=location.port;s||(s=o?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,o){const s=this.request({method:"POST",data:r});s.on("success",o),s.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(o,s)=>{this.onError("xhr poll error",o,s)}),this.pollXhr=r}}class fn extends We{constructor(r,o,s){super(),this.createRequest=r,Ea(this,s),this._opts=s,this._method=s.method||"GET",this._uri=o,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const o=rv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");o.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(o);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{}(r=this._opts.cookieJar)===null||r===void 0||r.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=fn.requestsCount++,fn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=vO,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete fn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}fn.requestsCount=0;fn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Yg);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,Yg,!1)}}function Yg(){for(let e in fn.requests)fn.requests.hasOwnProperty(e)&&fn.requests[e].abort()}const EO=function(){const e=sv({xdomain:!1});return e&&e.responseType!==null}();class wO extends _O{constructor(r){super(r);const o=r&&r.forceBase64;this.supportsBinary=EO&&!o}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new fn(sv,this.uri(),r)}}function sv(e){const r=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||yO))return new XMLHttpRequest}catch{}if(!r)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const av=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class bO extends Rf{get name(){return"websocket"}doOpen(){const r=this.uri(),o=this.opts.protocols,s=av?{}:rv(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(r,o,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=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let o=0;o<r.length;o++){const s=r[o],l=o===r.length-1;Cf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&_a(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",o=this.query||{};return this.opts.timestampRequests&&(o[this.opts.timestampParam]=ov()),this.supportsBinary||(o.b64=1),this.createUri(r,o)}}const gc=Bt.WebSocket||Bt.MozWebSocket;class SO extends bO{createSocket(r,o,s){return av?new gc(r,o,s):o?new gc(r,o):new gc(r)}doWrite(r,o){this.ws.send(o)}}class xO extends Rf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const o=iO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(o).getReader(),l=oO();l.readable.pipeTo(r.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let o=0;o<r.length;o++){const s=r[o],l=o===r.length-1;this._writer.write(s).then(()=>{l&&_a(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const TO={websocket:SO,webtransport:xO,polling:wO},CO=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zc(e){if(e.length>8e3)throw"URI too long";const r=e,o=e.indexOf("["),s=e.indexOf("]");o!=-1&&s!=-1&&(e=e.substring(0,o)+e.substring(o,s).replace(/:/g,";")+e.substring(s,e.length));let l=CO.exec(e||""),u={},f=14;for(;f--;)u[kO[f]]=l[f]||"";return o!=-1&&s!=-1&&(u.source=r,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=RO(u,u.path),u.queryKey=OO(u,u.query),u}function RO(e,r){const o=/\/{2,9}/g,s=r.replace(o,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function OO(e,r){const o={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(o[l]=u)}),o}const Gc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qs=[];Gc&&addEventListener("offline",()=>{Qs.forEach(e=>e())},!1);class Yn extends We{constructor(r,o){if(super(),this.binaryType=aO,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(o=r,r=null),r){const s=zc(r);o.hostname=s.host,o.secure=s.protocol==="https"||s.protocol==="wss",o.port=s.port,s.query&&(o.query=s.query)}else o.host&&(o.hostname=zc(o.host).host);Ea(this,o),this.secure=o.secure!=null?o.secure:typeof location<"u"&&location.protocol==="https:",o.hostname&&!o.port&&(o.port=this.secure?"443":"80"),this.hostname=o.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=o.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},o.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},o),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=pO(this.opts.query)),Gc&&(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"})},Qs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const o=Object.assign({},this.opts.query);o.EIO=nv,o.transport=r,this.id&&(o.sid=this.id);const s=Object.assign({},this.opts,{query:o,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&Yn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const o=this.createTransport(r);o.open(),this.setTransport(o)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",o=>this._onClose("transport close",o))}onOpen(){this.readyState="open",Yn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const o=new Error("server error");o.code=r.data,this._onError(o);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let o=1;for(let s=0;s<this.writeBuffer.length;s++){const l=this.writeBuffer[s].data;if(l&&(o+=fO(l)),s>0&&o>this._maxPayload)return this.writeBuffer.slice(0,s);o+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,_a(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,o,s){return this._sendPacket("message",r,o,s),this}send(r,o,s){return this._sendPacket("message",r,o,s),this}_sendPacket(r,o,s,l){if(typeof o=="function"&&(l=o,o=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:r,data:o,options:s};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},o=()=>{this.off("upgrade",o),this.off("upgradeError",o),r()},s=()=>{this.once("upgrade",o),this.once("upgradeError",o)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(Yn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,o){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(),Gc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Qs.indexOf(this._offlineEventListener);s!==-1&&Qs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,o),this.writeBuffer=[],this._prevBufferLen=0}}}Yn.protocol=nv;class NO extends Yn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let o=this.createTransport(r),s=!1;Yn.priorWebsocketSuccess=!1;const l=()=>{s||(o.send([{type:"ping",data:"probe"}]),o.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",o),!o)return;Yn.priorWebsocketSuccess=o.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(_(),this.setTransport(o),o.send([{type:"upgrade"}]),this.emitReserved("upgrade",o),o=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=o.name,this.emitReserved("upgradeError",m)}}))};function u(){s||(s=!0,_(),o.close(),o=null)}const f=b=>{const m=new Error("probe error: "+b);m.transport=o.name,u(),this.emitReserved("upgradeError",m)};function h(){f("transport closed")}function p(){f("socket closed")}function v(b){o&&b.name!==o.name&&u()}const _=()=>{o.removeListener("open",l),o.removeListener("error",f),o.removeListener("close",h),this.off("close",p),this.off("upgrading",v)};o.once("open",l),o.once("error",f),o.once("close",h),this.once("close",p),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||o.open()},200):o.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const o=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&o.push(r[s]);return o}}let AO=class extends NO{constructor(r,o={}){const s=typeof r=="object"?r:o;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(l=>TO[l]).filter(l=>!!l)),super(r,s)}};function IO(e,r="",o){let s=e;o=o||typeof location<"u"&&location,e==null&&(e=o.protocol+"//"+o.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=o.protocol+e:e=o.host+e),/^(https?|wss?):\/\//.test(e)||(typeof o<"u"?e=o.protocol+"//"+e:e="https://"+e),s=zc(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+r,s.href=s.protocol+"://"+u+(o&&o.port===s.port?"":":"+s.port),s}const DO=typeof ArrayBuffer=="function",PO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,lv=Object.prototype.toString,MO=typeof Blob=="function"||typeof Blob<"u"&&lv.call(Blob)==="[object BlobConstructor]",FO=typeof File=="function"||typeof File<"u"&&lv.call(File)==="[object FileConstructor]";function Of(e){return DO&&(e instanceof ArrayBuffer||PO(e))||MO&&e instanceof Blob||FO&&e instanceof File}function Xs(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let o=0,s=e.length;o<s;o++)if(Xs(e[o]))return!0;return!1}if(Of(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Xs(e.toJSON(),!0);for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&Xs(e[o]))return!0;return!1}function LO(e){const r=[],o=e.data,s=e;return s.data=$c(o,r),s.attachments=r.length,{packet:s,buffers:r}}function $c(e,r){if(!e)return e;if(Of(e)){const o={_placeholder:!0,num:r.length};return r.push(e),o}else if(Array.isArray(e)){const o=new Array(e.length);for(let s=0;s<e.length;s++)o[s]=$c(e[s],r);return o}else if(typeof e=="object"&&!(e instanceof Date)){const o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(o[s]=$c(e[s],r));return o}return e}function BO(e,r){return e.data=Vc(e.data,r),delete e.attachments,e}function Vc(e,r){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let o=0;o<e.length;o++)e[o]=Vc(e[o],r);else if(typeof e=="object")for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=Vc(e[o],r));return e}const jO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],UO=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 HO{constructor(r){this.replacer=r}encode(r){return(r.type===Ee.EVENT||r.type===Ee.ACK)&&Xs(r)?this.encodeAsBinary({type:r.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let o=""+r.type;return(r.type===Ee.BINARY_EVENT||r.type===Ee.BINARY_ACK)&&(o+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(o+=r.nsp+","),r.id!=null&&(o+=r.id),r.data!=null&&(o+=JSON.stringify(r.data,this.replacer)),o}encodeAsBinary(r){const o=LO(r),s=this.encodeAsString(o.packet),l=o.buffers;return l.unshift(s),l}}function Jg(e){return Object.prototype.toString.call(e)==="[object Object]"}class Nf extends We{constructor(r){super(),this.reviver=r}add(r){let o;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");o=this.decodeString(r);const s=o.type===Ee.BINARY_EVENT;s||o.type===Ee.BINARY_ACK?(o.type=s?Ee.EVENT:Ee.ACK,this.reconstructor=new zO(o),o.attachments===0&&super.emitReserved("decoded",o)):super.emitReserved("decoded",o)}else if(Of(r)||r.base64)if(this.reconstructor)o=this.reconstructor.takeBinaryData(r),o&&(this.reconstructor=null,super.emitReserved("decoded",o));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let o=0;const s={type:Number(r.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=o+1;for(;r.charAt(++o)!=="-"&&o!=r.length;);const f=r.substring(u,o);if(f!=Number(f)||r.charAt(o)!=="-")throw new Error("Illegal attachments");s.attachments=Number(f)}if(r.charAt(o+1)==="/"){const u=o+1;for(;++o&&!(r.charAt(o)===","||o===r.length););s.nsp=r.substring(u,o)}else s.nsp="/";const l=r.charAt(o+1);if(l!==""&&Number(l)==l){const u=o+1;for(;++o;){const f=r.charAt(o);if(f==null||Number(f)!=f){--o;break}if(o===r.length)break}s.id=Number(r.substring(u,o+1))}if(r.charAt(++o)){const u=this.tryParse(r.substr(o));if(Nf.isPayloadValid(s.type,u))s.data=u;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,o){switch(r){case Ee.CONNECT:return Jg(o);case Ee.DISCONNECT:return o===void 0;case Ee.CONNECT_ERROR:return typeof o=="string"||Jg(o);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(o)&&(typeof o[0]=="number"||typeof o[0]=="string"&&jO.indexOf(o[0])===-1);case Ee.ACK:case Ee.BINARY_ACK:return Array.isArray(o)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class zO{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const o=BO(this.reconPack,this.buffers);return this.finishedReconstruction(),o}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const GO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Nf,Encoder:HO,get PacketType(){return Ee},protocol:UO},Symbol.toStringTag,{value:"Module"}));function Yt(e,r,o){return e.on(r,o),function(){e.off(r,o)}}const $O=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class uv extends We{constructor(r,o,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=r,this.nsp=o,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 r=this.io;this.subs=[Yt(r,"open",this.onopen.bind(this)),Yt(r,"packet",this.onpacket.bind(this)),Yt(r,"error",this.onerror.bind(this)),Yt(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...o){var s,l,u;if($O.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(o.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(o),this;const f={type:Ee.EVENT,data:o};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof o[o.length-1]=="function"){const _=this.ids++,b=o.pop();this._registerAckCallback(_,b),f.id=_}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(f),this.packet(f)):this.sendBuffer.push(f)),this.flags={},this}_registerAckCallback(r,o){var s;const l=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(l===void 0){this.acks[r]=o;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);o.call(this,new Error("operation has timed out"))},l),f=(...h)=>{this.io.clearTimeoutFn(u),o.apply(this,h)};f.withError=!0,this.acks[r]=f}emitWithAck(r,...o){return new Promise((s,l)=>{const u=(f,h)=>f?l(f):s(h);u.withError=!0,o.push(u),this.emit(r,...o)})}_addToQueue(r){let o;typeof r[r.length-1]=="function"&&(o=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((l,...u)=>s!==this._queue[0]?void 0:(l!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),o&&o(l)):(this._queue.shift(),o&&o(null,...u)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const o=this._queue[0];o.pending&&!r||(o.pending=!0,o.tryCount++,this.flags=o.flags,this.emit.apply(this,o.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,o){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,o),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ee.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(r);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(r);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const o=r.data||[];r.id!=null&&o.push(this.ack(r.id)),this.connected?this.emitEvent(o):this.receiveBuffer.push(Object.freeze(o))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const o=this._anyListeners.slice();for(const s of o)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const o=this;let s=!1;return function(...l){s||(s=!0,o.packet({type:Ee.ACK,id:r,data:l}))}}onack(r){const o=this.acks[r.id];typeof o=="function"&&(delete this.acks[r.id],o.withError&&r.data.unshift(null),o.apply(this,r.data))}onconnect(r,o){this.id=r,this.recovered=o&&this._pid===o,this._pid=o,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const o=this._anyListeners;for(let s=0;s<o.length;s++)if(r===o[s])return o.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const o=this._anyOutgoingListeners;for(let s=0;s<o.length;s++)if(r===o[s])return o.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const o=this._anyOutgoingListeners.slice();for(const s of o)s.apply(this,r.data)}}}function no(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}no.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),o=Math.floor(r*this.jitter*e);e=(Math.floor(r*10)&1)==0?e-o:e+o}return Math.min(e,this.max)|0};no.prototype.reset=function(){this.attempts=0};no.prototype.setMin=function(e){this.ms=e};no.prototype.setMax=function(e){this.max=e};no.prototype.setJitter=function(e){this.jitter=e};class qc extends We{constructor(r,o){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(o=r,r=void 0),o=o||{},o.path=o.path||"/socket.io",this.opts=o,Ea(this,o),this.reconnection(o.reconnection!==!1),this.reconnectionAttempts(o.reconnectionAttempts||1/0),this.reconnectionDelay(o.reconnectionDelay||1e3),this.reconnectionDelayMax(o.reconnectionDelayMax||5e3),this.randomizationFactor((s=o.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new no({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(o.timeout==null?2e4:o.timeout),this._readyState="closed",this.uri=r;const l=o.parser||GO;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=o.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var o;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(o=this.backoff)===null||o===void 0||o.setMin(r),this)}randomizationFactor(r){var o;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(o=this.backoff)===null||o===void 0||o.setJitter(r),this)}reconnectionDelayMax(r){var o;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(o=this.backoff)===null||o===void 0||o.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new AO(this.uri,this.opts);const o=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Yt(o,"open",function(){s.onopen(),r&&r()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},f=Yt(o,"error",u);if(this._timeout!==!1){const h=this._timeout,p=this.setTimeoutFn(()=>{l(),u(new Error("timeout")),o.close()},h);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(l),this.subs.push(f),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(Yt(r,"ping",this.onping.bind(this)),Yt(r,"data",this.ondata.bind(this)),Yt(r,"error",this.onerror.bind(this)),Yt(r,"close",this.onclose.bind(this)),Yt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(o){this.onclose("parse error",o)}}ondecoded(r){_a(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,o){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new uv(this,r,o),this.nsps[r]=s),s}_destroy(r){const o=Object.keys(this.nsps);for(const s of o)if(this.nsps[s].active)return;this._close()}_packet(r){const o=this.encoder.encode(r);for(let s=0;s<o.length;s++)this.engine.write(o[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,o){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,o),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const o=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(l=>{l?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",l)):r.onreconnect()}))},o);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Xo={};function Ys(e,r){typeof e=="object"&&(r=e,e=void 0),r=r||{};const o=IO(e,r.path||"/socket.io"),s=o.source,l=o.id,u=o.path,f=Xo[l]&&u in Xo[l].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||f;let p;return h?p=new qc(s,r):(Xo[l]||(Xo[l]=new qc(s,r)),p=Xo[l]),o.query&&!r.query&&(r.query=o.queryKey),p.socket(o.path,r)}Object.assign(Ys,{Manager:qc,Socket:uv,io:Ys,connect:Ys});const VO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...BS,...Mb,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],qO=({dispatch:e,getState:r})=>o=>{let s=null;return l=>{const u=o(l);if(l.type===mf){s!=null&&s.disconnect(),e(HS());const f=`/chat?${ua.stringify(l.querystrings)}`;s=Ys(`/${l.clientName}${f}`),s.on("action",e),s.on("connect",()=>e(zS())),s.on("disconnect",()=>e(GS())),s.on("reconnect",()=>e($S())),s.on("set-translations",(h,p)=>{e(HR({language:h,messages:MR(h,p)}))}),s.on("set-settings",h=>{e($R(h))}),s.on("enable-conversation-rating",h=>e(Ub(h))),s.on("speech-transcription",h=>e(Lb(h))),s.on("restore-client-state",h=>{e(US(h.sessionId)),e(zb(h.messages))}),s.on("expand-window",({devices:h,initial:p=!1})=>{e({type:q0,devices:h,initial:p})}),s.on("restart-chat",()=>{e(ga(l.clientName,l.querystrings))})}else if(l.type===pa)s==null||s.emit("start-chat",l.payload);else if(l.type===ma)s==null||s.emit("terminate-session",l.payload);else if(l.type===Pb)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===sf)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===K0){const{connection:{sessionId:f}}=r();window.location.href=`/transcript-pdf/${f}`}else VO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},cv=jy(),WO={...KR(cv),intl:Vy},Wc=_S({middleware:e=>e().concat(qO),reducer:qR,preloadedState:WO});Wc.subscribe(kR(()=>{const e=Wc.getState();ZR(cv,{connection:e.connection,startScreen:e.startScreen})},1e3));const KO=document.getElementById("root"),ZO=y1.createRoot(KO);ZO.render(y.jsx(pE,{store:Wc,children:y.jsx(hR,{})}));
110
- //# sourceMappingURL=index-DmmNKXJA.js.map