@botfabrik/engine-webclient 4.83.7 → 4.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -12
- package/dist/client/assets/index-Cgu7e2D1.js +110 -0
- package/dist/client/assets/index-Cgu7e2D1.js.map +1 -0
- package/dist/client/assets/{index-DygDbDzn.css → index-DgT1xWfK.css} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/index.d.ts +56 -6
- package/dist/index.js +11 -19
- package/package.json +3 -3
- package/dist/client/assets/index-B_CeBjCL.js +0 -110
- package/dist/client/assets/index-B_CeBjCL.js.map +0 -1
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
var u1=Object.defineProperty;var c1=(e,n,o)=>n in e?u1(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o;var xe=(e,n,o)=>c1(e,typeof n!="symbol"?n+"":n,o);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const 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 vs=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 Cp;function f1(){if(Cp)return me;Cp=1;var e=Symbol.for("react.element"),n=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"),E=Symbol.iterator;function m(I){return I===null||typeof I!="object"?null:(I=E&&I[E]||I["@@iterator"],typeof I=="function"?I:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,A={};function N(I,j,ce){this.props=I,this.context=j,this.refs=A,this.updater=ce||T}N.prototype.isReactComponent={},N.prototype.setState=function(I,j){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,j,"setState")},N.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function P(){}P.prototype=N.prototype;function O(I,j,ce){this.props=I,this.context=j,this.refs=A,this.updater=ce||T}var S=O.prototype=new P;S.constructor=O,b(S,N.prototype),S.isPureReactComponent=!0;var C=Array.isArray,x=Object.prototype.hasOwnProperty,L={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function V(I,j,ce){var he,ye={},ve=null,ke=null;if(j!=null)for(he in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)x.call(j,he)&&!z.hasOwnProperty(he)&&(ye[he]=j[he]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),et=0;et<Te;et++)Re[et]=arguments[et+2];ye.children=Re}if(I&&I.defaultProps)for(he in Te=I.defaultProps,Te)ye[he]===void 0&&(ye[he]=Te[he]);return{$$typeof:e,type:I,key:ve,ref:ke,props:ye,_owner:L.current}}function fe(I,j){return{$$typeof:e,type:I.type,key:j,ref:I.ref,props:I.props,_owner:I._owner}}function te(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function ie(I){var j={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ce){return j[ce]})}var pe=/\/+/g;function ue(I,j){return typeof I=="object"&&I!==null&&I.key!=null?ie(""+I.key):j.toString(36)}function Ue(I,j,ce,he,ye){var ve=typeof I;(ve==="undefined"||ve==="boolean")&&(I=null);var ke=!1;if(I===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(I.$$typeof){case e:case n:ke=!0}}if(ke)return ke=I,ye=ye(ke),I=he===""?"."+ue(ke,0):he,C(ye)?(ce="",I!=null&&(ce=I.replace(pe,"$&/")+"/"),Ue(ye,j,ce,"",function(et){return et})):ye!=null&&(te(ye)&&(ye=fe(ye,ce+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+I)),j.push(ye)),1;if(ke=0,he=he===""?".":he+":",C(I))for(var Te=0;Te<I.length;Te++){ve=I[Te];var Re=he+ue(ve,Te);ke+=Ue(ve,j,ce,Re,ye)}else if(Re=m(I),typeof Re=="function")for(I=Re.call(I),Te=0;!(ve=I.next()).done;)ve=ve.value,Re=he+ue(ve,Te++),ke+=Ue(ve,j,ce,Re,ye);else if(ve==="object")throw j=String(I),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(I,j,ce){if(I==null)return I;var he=[],ye=0;return Ue(I,he,"","",function(ve){return j.call(ce,ve,ye++)}),he}function $e(I){if(I._status===-1){var j=I._result;j=j(),j.then(function(ce){(I._status===0||I._status===-1)&&(I._status=1,I._result=ce)},function(ce){(I._status===0||I._status===-1)&&(I._status=2,I._result=ce)}),I._status===-1&&(I._status=0,I._result=j)}if(I._status===1)return I._result.default;throw I._result}var Ne={current:null},W={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:L};function Z(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(I,j,ce){Ie(I,function(){j.apply(this,arguments)},ce)},count:function(I){var j=0;return Ie(I,function(){j++}),j},toArray:function(I){return Ie(I,function(j){return j})||[]},only:function(I){if(!te(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},me.Component=N,me.Fragment=o,me.Profiler=l,me.PureComponent=O,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,me.act=Z,me.cloneElement=function(I,j,ce){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var he=b({},I.props),ye=I.key,ve=I.ref,ke=I._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,ke=L.current),j.key!==void 0&&(ye=""+j.key),I.type&&I.type.defaultProps)var Te=I.type.defaultProps;for(Re in j)x.call(j,Re)&&!z.hasOwnProperty(Re)&&(he[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)he.children=ce;else if(1<Re){Te=Array(Re);for(var et=0;et<Re;et++)Te[et]=arguments[et+2];he.children=Te}return{$$typeof:e,type:I.type,key:ye,ref:ve,props:he,_owner:ke}},me.createContext=function(I){return I={$$typeof:f,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:u,_context:I},I.Consumer=I},me.createElement=V,me.createFactory=function(I){var j=V.bind(null,I);return j.type=I,j},me.createRef=function(){return{current:null}},me.forwardRef=function(I){return{$$typeof:h,render:I}},me.isValidElement=te,me.lazy=function(I){return{$$typeof:_,_payload:{_status:-1,_result:I},_init:$e}},me.memo=function(I,j){return{$$typeof:v,type:I,compare:j===void 0?null:j}},me.startTransition=function(I){var j=W.transition;W.transition={};try{I()}finally{W.transition=j}},me.unstable_act=Z,me.useCallback=function(I,j){return Ne.current.useCallback(I,j)},me.useContext=function(I){return Ne.current.useContext(I)},me.useDebugValue=function(){},me.useDeferredValue=function(I){return Ne.current.useDeferredValue(I)},me.useEffect=function(I,j){return Ne.current.useEffect(I,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(I,j,ce){return Ne.current.useImperativeHandle(I,j,ce)},me.useInsertionEffect=function(I,j){return Ne.current.useInsertionEffect(I,j)},me.useLayoutEffect=function(I,j){return Ne.current.useLayoutEffect(I,j)},me.useMemo=function(I,j){return Ne.current.useMemo(I,j)},me.useReducer=function(I,j,ce){return Ne.current.useReducer(I,j,ce)},me.useRef=function(I){return Ne.current.useRef(I)},me.useState=function(I){return Ne.current.useState(I)},me.useSyncExternalStore=function(I,j,ce){return Ne.current.useSyncExternalStore(I,j,ce)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var kp;function Jn(){return kp||(kp=1,mu.exports=f1()),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 Rp;function d1(){if(Rp)return $o;Rp=1;var e=Jn(),n=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 _,E={},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(_)&&(E[_]=p[_]);if(h&&h.defaultProps)for(_ in p=h.defaultProps,p)E[_]===void 0&&(E[_]=p[_]);return{$$typeof:n,type:h,key:m,ref:T,props:E,_owner:l.current}}return $o.Fragment=o,$o.jsx=f,$o.jsxs=f,$o}var Op;function h1(){return Op||(Op=1,pu.exports=d1()),pu.exports}var y=h1(),_s={},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 Np;function p1(){return Np||(Np=1,function(e){function n(W,re){var Z=W.length;W.push(re);e:for(;0<Z;){var I=Z-1>>>1,j=W[I];if(0<l(j,re))W[I]=re,W[Z]=j,Z=I;else break e}}function o(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var re=W[0],Z=W.pop();if(Z!==re){W[0]=Z;e:for(var I=0,j=W.length,ce=j>>>1;I<ce;){var he=2*(I+1)-1,ye=W[he],ve=he+1,ke=W[ve];if(0>l(ye,Z))ve<j&&0>l(ke,ye)?(W[I]=ke,W[ve]=Z,I=ve):(W[I]=ye,W[he]=Z,I=he);else if(ve<j&&0>l(ke,Z))W[I]=ke,W[ve]=Z,I=ve;else break e}}return re}function l(W,re){var Z=W.sortIndex-re.sortIndex;return Z!==0?Z:W.id-re.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,E=null,m=3,T=!1,b=!1,A=!1,N=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(W){for(var re=o(v);re!==null;){if(re.callback===null)s(v);else if(re.startTime<=W)s(v),re.sortIndex=re.expirationTime,n(p,re);else break;re=o(v)}}function C(W){if(A=!1,S(W),!b)if(o(p)!==null)b=!0,$e(x);else{var re=o(v);re!==null&&Ne(C,re.startTime-W)}}function x(W,re){b=!1,A&&(A=!1,P(V),V=-1),T=!0;var Z=m;try{for(S(re),E=o(p);E!==null&&(!(E.expirationTime>re)||W&&!ie());){var I=E.callback;if(typeof I=="function"){E.callback=null,m=E.priorityLevel;var j=I(E.expirationTime<=re);re=e.unstable_now(),typeof j=="function"?E.callback=j:E===o(p)&&s(p),S(re)}else s(p);E=o(p)}if(E!==null)var ce=!0;else{var he=o(v);he!==null&&Ne(C,he.startTime-re),ce=!1}return ce}finally{E=null,m=Z,T=!1}}var L=!1,z=null,V=-1,fe=5,te=-1;function ie(){return!(e.unstable_now()-te<fe)}function pe(){if(z!==null){var W=e.unstable_now();te=W;var re=!0;try{re=z(!0,W)}finally{re?ue():(L=!1,z=null)}}else L=!1}var ue;if(typeof O=="function")ue=function(){O(pe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ie=Ue.port2;Ue.port1.onmessage=pe,ue=function(){Ie.postMessage(null)}}else ue=function(){N(pe,0)};function $e(W){z=W,L||(L=!0,ue())}function Ne(W,re){V=N(function(){W(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){b||T||(b=!0,$e(x))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return o(p)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var re=3;break;default:re=m}var Z=m;m=re;try{return W()}finally{m=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Z=m;m=W;try{return re()}finally{m=Z}},e.unstable_scheduleCallback=function(W,re,Z){var I=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?I+Z:I):Z=I,W){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,W={id:_++,callback:re,priorityLevel:W,startTime:Z,expirationTime:j,sortIndex:-1},Z>I?(W.sortIndex=Z,n(v,W),o(p)===null&&W===o(v)&&(A?(P(V),V=-1):A=!0,Ne(C,Z-I))):(W.sortIndex=j,n(p,W),b||T||(b=!0,$e(x))),W},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(W){var re=m;return function(){var Z=m;m=re;try{return W.apply(this,arguments)}finally{m=Z}}}}(vu)),vu}var Ap;function m1(){return Ap||(Ap=1,yu.exports=p1()),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 Ip;function g1(){if(Ip)return Et;Ip=1;var e=Jn(),n=m1();function o(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(t,r){f(t,r),f(t+"Capture",r)}function f(t,r){for(l[t]=r,t=0;t<r.length;t++)s.add(r[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,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]*$/,_={},E={};function m(t){return p.call(E,t)?!0:p.call(_,t)?!1:v.test(t)?E[t]=!0:(_[t]=!0,!1)}function T(t,r,i,a){if(i!==null&&i.type===0)return!1;switch(typeof r){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 b(t,r,i,a){if(r===null||typeof r>"u"||T(t,r,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function A(t,r,i,a,c,d,g){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=i,this.propertyName=t,this.type=r,this.sanitizeURL=d,this.removeEmptyString=g}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){N[t]=new A(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];N[r]=new A(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){N[t]=new A(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){N[t]=new A(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){N[t]=new A(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){N[t]=new A(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){N[t]=new A(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){N[t]=new A(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){N[t]=new A(t,5,!1,t.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function O(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(P,O);N[r]=new A(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(P,O);N[r]=new A(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(P,O);N[r]=new A(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){N[t]=new A(t,1,!1,t.toLowerCase(),null,!1,!1)}),N.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){N[t]=new A(t,1,!1,t.toLowerCase(),null,!0,!0)});function S(t,r,i,a){var c=N.hasOwnProperty(r)?N[r]:null;(c!==null?c.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(b(r,i,c,a)&&(i=null),a||c===null?m(r)&&(i===null?t.removeAttribute(r):t.setAttribute(r,""+i)):c.mustUseProperty?t[c.propertyName]=i===null?c.type===3?!1:"":i:(r=c.attributeName,a=c.attributeNamespace,i===null?t.removeAttribute(r):(c=c.type,i=c===3||c===4&&i===!0?"":""+i,a?t.setAttributeNS(a,r,i):t.setAttribute(r,i))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),L=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),ie=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ue=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"),W=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var Z=Object.assign,I;function j(t){if(I===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return`
|
|
34
|
-
`+I+t}var ce=!1;function he(t,r){if(!t||ce)return"";ce=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(F){var a=F}Reflect.construct(t,[],r)}else{try{r.call()}catch(F){a=F}t.call(r.prototype)}else{try{throw Error()}catch(F){a=F}t()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var c=F.stack.split(`
|
|
35
|
-
`),d=a.stack.split(`
|
|
36
|
-
`),g=c.length-1,w=d.length-1;1<=g&&0<=w&&c[g]!==d[w];)w--;for(;1<=g&&0<=w;g--,w--)if(c[g]!==d[w]){if(g!==1||w!==1)do if(g--,w--,0>w||c[g]!==d[w]){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<=w);break}}}finally{ce=!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=he(t.type,!1),t;case 11:return t=he(t.type.render,!1),t;case 1:return t=he(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 L:return"Portal";case fe:return"Profiler";case V:return"StrictMode";case ue:return"Suspense";case Ue:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ie:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case pe:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ie:return r=t.displayName||null,r!==null?r:ve(t.type)||"Memo";case $e:r=t._payload,t=t._init;try{return ve(t(r))}catch{}}return null}function ke(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(r);case 8:return r===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function et(t){var r=Re(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),a=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,d=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,d.call(this,g)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function no(t){t._valueTracker||(t._valueTracker=et(t))}function ct(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),a="";return t&&(a=Re(t)?t.checked?"true":"false":t.value),t=a,t!==i?(r.setValue(t),!0):!1}function Jt(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,r){var i=r.checked;return Z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??t._wrapperState.initialChecked})}function Df(t,r){var i=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;i=Te(r.value!=null?r.value:i),t._wrapperState={initialChecked:a,initialValue:i,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Pf(t,r){r=r.checked,r!=null&&S(t,"checked",r,!1)}function Sa(t,r){Pf(t,r);var i=Te(r.value),a=r.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}r.hasOwnProperty("value")?ba(t,r.type,i):r.hasOwnProperty("defaultValue")&&ba(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Mf(t,r,i){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,i||r===t.value||(t.value=r),t.defaultValue=r}i=t.name,i!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,i!==""&&(t.name=i)}function ba(t,r,i){(r!=="number"||Jt(t.ownerDocument)!==t)&&(i==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+i&&(t.defaultValue=""+i))}var oo=Array.isArray;function xn(t,r,i,a){if(t=t.options,r){r={};for(var c=0;c<i.length;c++)r["$"+i[c]]=!0;for(i=0;i<t.length;i++)c=r.hasOwnProperty("$"+t[i].value),t[i].selected!==c&&(t[i].selected=c),c&&a&&(t[i].defaultSelected=!0)}else{for(i=""+Te(i),r=null,c=0;c<t.length;c++){if(t[c].value===i){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}r!==null||t[c].disabled||(r=t[c])}r!==null&&(r.selected=!0)}}function xa(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(o(91));return Z({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ff(t,r){var i=r.value;if(i==null){if(i=r.children,r=r.defaultValue,i!=null){if(r!=null)throw Error(o(92));if(oo(i)){if(1<i.length)throw Error(o(93));i=i[0]}r=i}r==null&&(r=""),i=r}t._wrapperState={initialValue:Te(i)}}function Lf(t,r){var i=Te(r.value),a=Te(r.defaultValue);i!=null&&(i=""+i,i!==t.value&&(t.value=i),r.defaultValue==null&&t.defaultValue!==i&&(t.defaultValue=i)),a!=null&&(t.defaultValue=""+a)}function Bf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function jf(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,r){return t==null||t==="http://www.w3.org/1999/xhtml"?jf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ci,Uf=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,i,a,c){MSApp.execUnsafeLocalFunction(function(){return t(r,i,a,c)})}:t}(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(ci=ci||document.createElement("div"),ci.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=ci.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function io(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}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},hv=["Webkit","ms","Moz","O"];Object.keys(so).forEach(function(t){hv.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),so[r]=so[t]})});function Hf(t,r,i){return r==null||typeof r=="boolean"||r===""?"":i||typeof r!="number"||r===0||so.hasOwnProperty(t)&&so[t]?(""+r).trim():r+"px"}function zf(t,r){t=t.style;for(var i in r)if(r.hasOwnProperty(i)){var a=i.indexOf("--")===0,c=Hf(i,r[i],a);i==="float"&&(i="cssFloat"),a?t.setProperty(i,c):t[i]=c}}var pv=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,r){if(r){if(pv[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(o(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(o(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(o(61))}if(r.style!=null&&typeof r.style!="object")throw Error(o(62))}}function ka(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var 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,Tn=null,Cn=null;function Gf(t){if(t=Oo(t)){if(typeof Na!="function")throw Error(o(280));var r=t.stateNode;r&&(r=Di(r),Na(t.stateNode,t.type,r))}}function $f(t){Tn?Cn?Cn.push(t):Cn=[t]:Tn=t}function qf(){if(Tn){var t=Tn,r=Cn;if(Cn=Tn=null,Gf(t),r)for(t=0;t<r.length;t++)Gf(r[t])}}function Vf(t,r){return t(r)}function Wf(){}var Aa=!1;function Kf(t,r,i){if(Aa)return t(r,i);Aa=!0;try{return Vf(t,r,i)}finally{Aa=!1,(Tn!==null||Cn!==null)&&(Wf(),qf())}}function ao(t,r){var i=t.stateNode;if(i===null)return null;var a=Di(i);if(a===null)return null;i=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,r,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 mv(t,r,i,a,c,d,g,w,k){var F=Array.prototype.slice.call(arguments,3);try{r.apply(i,F)}catch(H){this.onError(H)}}var uo=!1,fi=null,di=!1,Da=null,gv={onError:function(t){uo=!0,fi=t}};function yv(t,r,i,a,c,d,g,w,k){uo=!1,fi=null,mv.apply(gv,arguments)}function vv(t,r,i,a,c,d,g,w,k){if(yv.apply(this,arguments),uo){if(uo){var F=fi;uo=!1,fi=null}else throw Error(o(198));di||(di=!0,Da=F)}}function Jr(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function Zf(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function Qf(t){if(Jr(t)!==t)throw Error(o(188))}function _v(t){var r=t.alternate;if(!r){if(r=Jr(t),r===null)throw Error(o(188));return r!==t?null:t}for(var i=t,a=r;;){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 Qf(c),t;if(d===a)return Qf(c),r;d=d.sibling}throw Error(o(188))}if(i.return!==a.return)i=c,a=d;else{for(var g=!1,w=c.child;w;){if(w===i){g=!0,i=c,a=d;break}if(w===a){g=!0,a=c,i=d;break}w=w.sibling}if(!g){for(w=d.child;w;){if(w===i){g=!0,i=d,a=c;break}if(w===a){g=!0,a=d,i=c;break}w=w.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:r}function Xf(t){return t=_v(t),t!==null?Yf(t):null}function Yf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Yf(t);if(r!==null)return r;t=t.sibling}return null}var Jf=n.unstable_scheduleCallback,ed=n.unstable_cancelCallback,Ev=n.unstable_shouldYield,wv=n.unstable_requestPaint,ze=n.unstable_now,Sv=n.unstable_getCurrentPriorityLevel,Pa=n.unstable_ImmediatePriority,td=n.unstable_UserBlockingPriority,hi=n.unstable_NormalPriority,bv=n.unstable_LowPriority,rd=n.unstable_IdlePriority,pi=null,er=null;function xv(t){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(pi,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:kv,Tv=Math.log,Cv=Math.LN2;function kv(t){return t>>>=0,t===0?32:31-(Tv(t)/Cv|0)|0}var mi=64,gi=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 yi(t,r){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 w=g&~c;w!==0?a=co(w):(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(r!==0&&r!==a&&(r&c)===0&&(c=a&-a,d=r&-r,c>=d||c===16&&(d&4194240)!==0))return r;if((a&4)!==0&&(a|=i&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)i=31-Ht(r),c=1<<i,a|=t[i],r&=~c;return a}function Rv(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ov(t,r){for(var i=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes;0<d;){var g=31-Ht(d),w=1<<g,k=c[g];k===-1?((w&i)===0||(w&a)!==0)&&(c[g]=Rv(w,r)):k<=r&&(t.expiredLanes|=w),d&=~w}}function Ma(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function nd(){var t=mi;return mi<<=1,(mi&4194240)===0&&(mi=64),t}function Fa(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function fo(t,r,i){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ht(r),t[r]=i}function Nv(t,r){var i=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<i;){var c=31-Ht(i),d=1<<c;r[c]=0,a[c]=-1,t[c]=-1,i&=~d}}function La(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var a=31-Ht(i),c=1<<a;c&r|t[a]&r&&(t[a]|=r),i&=~c}}var Oe=0;function od(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var id,Ba,sd,ad,ld,ja=!1,vi=[],Rr=null,Or=null,Nr=null,ho=new Map,po=new Map,Ar=[],Av="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 ud(t,r){switch(t){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":ho.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":po.delete(r.pointerId)}}function mo(t,r,i,a,c,d){return t===null||t.nativeEvent!==d?(t={blockedOn:r,domEventName:i,eventSystemFlags:a,nativeEvent:d,targetContainers:[c]},r!==null&&(r=Oo(r),r!==null&&Ba(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function Iv(t,r,i,a,c){switch(r){case"focusin":return Rr=mo(Rr,t,r,i,a,c),!0;case"dragenter":return Or=mo(Or,t,r,i,a,c),!0;case"mouseover":return Nr=mo(Nr,t,r,i,a,c),!0;case"pointerover":var d=c.pointerId;return ho.set(d,mo(ho.get(d)||null,t,r,i,a,c)),!0;case"gotpointercapture":return d=c.pointerId,po.set(d,mo(po.get(d)||null,t,r,i,a,c)),!0}return!1}function cd(t){var r=en(t.target);if(r!==null){var i=Jr(r);if(i!==null){if(r=i.tag,r===13){if(r=Zf(i),r!==null){t.blockedOn=r,ld(t.priority,function(){sd(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _i(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=Ha(t.domEventName,t.eventSystemFlags,r[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 r=Oo(i),r!==null&&Ba(r),t.blockedOn=i,!1;r.shift()}return!0}function fd(t,r,i){_i(t)&&i.delete(r)}function Dv(){ja=!1,Rr!==null&&_i(Rr)&&(Rr=null),Or!==null&&_i(Or)&&(Or=null),Nr!==null&&_i(Nr)&&(Nr=null),ho.forEach(fd),po.forEach(fd)}function go(t,r){t.blockedOn===r&&(t.blockedOn=null,ja||(ja=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Dv)))}function yo(t){function r(c){return go(c,t)}if(0<vi.length){go(vi[0],t);for(var i=1;i<vi.length;i++){var a=vi[i];a.blockedOn===t&&(a.blockedOn=null)}}for(Rr!==null&&go(Rr,t),Or!==null&&go(Or,t),Nr!==null&&go(Nr,t),ho.forEach(r),po.forEach(r),i=0;i<Ar.length;i++)a=Ar[i],a.blockedOn===t&&(a.blockedOn=null);for(;0<Ar.length&&(i=Ar[0],i.blockedOn===null);)cd(i),i.blockedOn===null&&Ar.shift()}var kn=C.ReactCurrentBatchConfig,Ei=!0;function Pv(t,r,i,a){var c=Oe,d=kn.transition;kn.transition=null;try{Oe=1,Ua(t,r,i,a)}finally{Oe=c,kn.transition=d}}function Mv(t,r,i,a){var c=Oe,d=kn.transition;kn.transition=null;try{Oe=4,Ua(t,r,i,a)}finally{Oe=c,kn.transition=d}}function Ua(t,r,i,a){if(Ei){var c=Ha(t,r,i,a);if(c===null)ol(t,r,a,wi,i),ud(t,a);else if(Iv(c,t,r,i,a))a.stopPropagation();else if(ud(t,a),r&4&&-1<Av.indexOf(t)){for(;c!==null;){var d=Oo(c);if(d!==null&&id(d),d=Ha(t,r,i,a),d===null&&ol(t,r,a,wi,i),d===c)break;c=d}c!==null&&a.stopPropagation()}else ol(t,r,a,null,i)}}var wi=null;function Ha(t,r,i,a){if(wi=null,t=Oa(a),t=en(t),t!==null)if(r=Jr(t),r===null)t=null;else if(i=r.tag,i===13){if(t=Zf(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return wi=t,null}function dd(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(Sv()){case Pa:return 1;case td:return 4;case hi:case bv:return 16;case rd:return 536870912;default:return 16}default:return 16}}var Ir=null,za=null,Si=null;function hd(){if(Si)return Si;var t,r=za,i=r.length,a,c="value"in Ir?Ir.value:Ir.textContent,d=c.length;for(t=0;t<i&&r[t]===c[t];t++);var g=i-t;for(a=1;a<=g&&r[i-a]===c[d-a];a++);return Si=c.slice(t,1<a?1-a:void 0)}function bi(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function xi(){return!0}function pd(){return!1}function St(t){function r(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 w in t)t.hasOwnProperty(w)&&(i=t[w],this[w]=i?i(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?xi:pd,this.isPropagationStopped=pd,this}return Z(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=xi)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),r}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ga=St(Rn),vo=Z({},Rn,{view:0,detail:0}),Fv=St(vo),$a,qa,_o,Ti=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,qa=t.screenY-_o.screenY):qa=$a=0,_o=t),$a)},movementY:function(t){return"movementY"in t?t.movementY:qa}}),md=St(Ti),Lv=Z({},Ti,{dataTransfer:0}),Bv=St(Lv),jv=Z({},vo,{relatedTarget:0}),Va=St(jv),Uv=Z({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hv=St(Uv),zv=Z({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Gv=St(zv),$v=Z({},Rn,{data:0}),gd=St($v),qv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vv={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"},Wv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kv(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Wv[t])?!!r[t]:!1}function Wa(){return Kv}var Zv=Z({},vo,{key:function(t){if(t.key){var r=qv[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=bi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Vv[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}}),Qv=St(Zv),Xv=Z({},Ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yd=St(Xv),Yv=Z({},vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Jv=St(Yv),e_=Z({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),t_=St(e_),r_=Z({},Ti,{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}),n_=St(r_),o_=[9,13,27,32],Ka=h&&"CompositionEvent"in window,Eo=null;h&&"documentMode"in document&&(Eo=document.documentMode);var i_=h&&"TextEvent"in window&&!Eo,vd=h&&(!Ka||Eo&&8<Eo&&11>=Eo),_d=" ",Ed=!1;function wd(t,r){switch(t){case"keyup":return o_.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function s_(t,r){switch(t){case"compositionend":return Sd(r);case"keypress":return r.which!==32?null:(Ed=!0,_d);case"textInput":return t=r.data,t===_d&&Ed?null:t;default:return null}}function a_(t,r){if(On)return t==="compositionend"||!Ka&&wd(t,r)?(t=hd(),Si=za=Ir=null,On=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return vd&&r.locale!=="ko"?null:r.data;default:return null}}var l_={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 bd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!l_[t.type]:r==="textarea"}function xd(t,r,i,a){$f(a),r=Ni(r,"onChange"),0<r.length&&(i=new Ga("onChange","change",null,i,a),t.push({event:i,listeners:r}))}var wo=null,So=null;function u_(t){zd(t,0)}function Ci(t){var r=Pn(t);if(ct(r))return t}function c_(t,r){if(t==="change")return r}var Td=!1;if(h){var Za;if(h){var Qa="oninput"in document;if(!Qa){var Cd=document.createElement("div");Cd.setAttribute("oninput","return;"),Qa=typeof Cd.oninput=="function"}Za=Qa}else Za=!1;Td=Za&&(!document.documentMode||9<document.documentMode)}function kd(){wo&&(wo.detachEvent("onpropertychange",Rd),So=wo=null)}function Rd(t){if(t.propertyName==="value"&&Ci(So)){var r=[];xd(r,So,t,Oa(t)),Kf(u_,r)}}function f_(t,r,i){t==="focusin"?(kd(),wo=r,So=i,wo.attachEvent("onpropertychange",Rd)):t==="focusout"&&kd()}function d_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ci(So)}function h_(t,r){if(t==="click")return Ci(r)}function p_(t,r){if(t==="input"||t==="change")return Ci(r)}function m_(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var zt=typeof Object.is=="function"?Object.is:m_;function bo(t,r){if(zt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),a=Object.keys(r);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var c=i[a];if(!p.call(r,c)||!zt(t[c],r[c]))return!1}return!0}function Od(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Nd(t,r){var i=Od(t);t=0;for(var a;i;){if(i.nodeType===3){if(a=t+i.textContent.length,t<=r&&a>=r)return{node:i,offset:r-t};t=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Od(i)}}function Ad(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Ad(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Id(){for(var t=window,r=Jt();r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Jt(t.document)}return r}function Xa(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function g_(t){var r=Id(),i=t.focusedElem,a=t.selectionRange;if(r!==i&&i&&i.ownerDocument&&Ad(i.ownerDocument.documentElement,i)){if(a!==null&&Xa(i)){if(r=a.start,t=a.end,t===void 0&&(t=r),"selectionStart"in i)i.selectionStart=r,i.selectionEnd=Math.min(t,i.value.length);else if(t=(r=i.ownerDocument||document)&&r.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=Nd(i,d);var g=Nd(i,a);c&&g&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==g.node||t.focusOffset!==g.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),d>a?(t.addRange(r),t.extend(g.node,g.offset)):(r.setEnd(g.node,g.offset),t.addRange(r)))}}for(r=[],t=i;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<r.length;i++)t=r[i],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var y_=h&&"documentMode"in document&&11>=document.documentMode,Nn=null,Ya=null,xo=null,Ja=!1;function Dd(t,r,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ja||Nn==null||Nn!==Jt(a)||(a=Nn,"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&&bo(xo,a)||(xo=a,a=Ni(Ya,"onSelect"),0<a.length&&(r=new Ga("onSelect","select",null,r,i),t.push({event:r,listeners:a}),r.target=Nn)))}function ki(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var An={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionend:ki("Transition","TransitionEnd")},el={},Pd={};h&&(Pd=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Ri(t){if(el[t])return el[t];if(!An[t])return t;var r=An[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in Pd)return el[t]=r[i];return t}var Md=Ri("animationend"),Fd=Ri("animationiteration"),Ld=Ri("animationstart"),Bd=Ri("transitionend"),jd=new Map,Ud="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 Dr(t,r){jd.set(t,r),u(r,[t])}for(var tl=0;tl<Ud.length;tl++){var rl=Ud[tl],v_=rl.toLowerCase(),__=rl[0].toUpperCase()+rl.slice(1);Dr(v_,"on"+__)}Dr(Md,"onAnimationEnd"),Dr(Fd,"onAnimationIteration"),Dr(Ld,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Bd,"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(" "),E_=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function Hd(t,r,i){var a=t.type||"unknown-event";t.currentTarget=i,vv(a,r,void 0,t),t.currentTarget=null}function zd(t,r){r=(r&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(r)for(var g=a.length-1;0<=g;g--){var w=a[g],k=w.instance,F=w.currentTarget;if(w=w.listener,k!==d&&c.isPropagationStopped())break e;Hd(c,w,F),d=k}else for(g=0;g<a.length;g++){if(w=a[g],k=w.instance,F=w.currentTarget,w=w.listener,k!==d&&c.isPropagationStopped())break e;Hd(c,w,F),d=k}}}if(di)throw t=Da,di=!1,Da=null,t}function De(t,r){var i=r[cl];i===void 0&&(i=r[cl]=new Set);var a=t+"__bubble";i.has(a)||(Gd(r,t,2,!1),i.add(a))}function nl(t,r,i){var a=0;r&&(a|=4),Gd(i,t,a,r)}var Oi="_reactListening"+Math.random().toString(36).slice(2);function Co(t){if(!t[Oi]){t[Oi]=!0,s.forEach(function(i){i!=="selectionchange"&&(E_.has(i)||nl(i,!1,t),nl(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Oi]||(r[Oi]=!0,nl("selectionchange",!1,r))}}function Gd(t,r,i,a){switch(dd(r)){case 1:var c=Pv;break;case 4:c=Mv;break;default:c=Ua}i=c.bind(null,r,i,t),c=void 0,!Ia||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(r,i,{capture:!0,passive:c}):t.addEventListener(r,i,!0):c!==void 0?t.addEventListener(r,i,{passive:c}):t.addEventListener(r,i,!1)}function ol(t,r,i,a,c){var d=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var w=a.stateNode.containerInfo;if(w===c||w.nodeType===8&&w.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(;w!==null;){if(g=en(w),g===null)return;if(k=g.tag,k===5||k===6){a=d=g;continue e}w=w.parentNode}}a=a.return}Kf(function(){var F=d,H=Oa(i),G=[];e:{var U=jd.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=Qv;break;case"focusin":X="focus",K=Va;break;case"focusout":X="blur",K=Va;break;case"beforeblur":case"afterblur":K=Va;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=md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Bv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Jv;break;case Md:case Fd:case Ld:K=Hv;break;case Bd:K=t_;break;case"scroll":K=Fv;break;case"wheel":K=n_;break;case"copy":case"cut":case"paste":K=Gv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=yd}var Y=(r&4)!==0,Ge=!Y&&t==="scroll",D=Y?U!==null?U+"Capture":null:U;Y=[];for(var R=F,M;R!==null;){M=R;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,D!==null&&($=ao(R,D),$!=null&&Y.push(ko(R,$,M)))),Ge)break;R=R.return}0<Y.length&&(U=new K(U,X,null,i,H),G.push({event:U,listeners:Y}))}}if((r&7)===0){e:{if(U=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",U&&i!==Ra&&(X=i.relatedTarget||i.fromElement)&&(en(X)||X[hr]))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=F,X=X?en(X):null,X!==null&&(Ge=Jr(X),X!==Ge||X.tag!==5&&X.tag!==6)&&(X=null)):(K=null,X=F),K!==X)){if(Y=md,$="onMouseLeave",D="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(Y=yd,$="onPointerLeave",D="onPointerEnter",R="pointer"),Ge=K==null?U:Pn(K),M=X==null?U:Pn(X),U=new Y($,R+"leave",K,i,H),U.target=Ge,U.relatedTarget=M,$=null,en(H)===F&&(Y=new Y(D,R+"enter",X,i,H),Y.target=M,Y.relatedTarget=Ge,$=Y),Ge=$,K&&X)t:{for(Y=K,D=X,R=0,M=Y;M;M=In(M))R++;for(M=0,$=D;$;$=In($))M++;for(;0<R-M;)Y=In(Y),R--;for(;0<M-R;)D=In(D),M--;for(;R--;){if(Y===D||D!==null&&Y===D.alternate)break t;Y=In(Y),D=In(D)}Y=null}else Y=null;K!==null&&$d(G,U,K,Y,!1),X!==null&&Ge!==null&&$d(G,Ge,X,Y,!0)}}e:{if(U=F?Pn(F):window,K=U.nodeName&&U.nodeName.toLowerCase(),K==="select"||K==="input"&&U.type==="file")var ee=c_;else if(bd(U))if(Td)ee=p_;else{ee=d_;var ne=f_}else(K=U.nodeName)&&K.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ee=h_);if(ee&&(ee=ee(t,F))){xd(G,ee,i,H);break e}ne&&ne(t,U,F),t==="focusout"&&(ne=U._wrapperState)&&ne.controlled&&U.type==="number"&&ba(U,"number",U.value)}switch(ne=F?Pn(F):window,t){case"focusin":(bd(ne)||ne.contentEditable==="true")&&(Nn=ne,Ya=F,xo=null);break;case"focusout":xo=Ya=Nn=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Dd(G,i,H);break;case"selectionchange":if(y_)break;case"keydown":case"keyup":Dd(G,i,H)}var oe;if(Ka)e:{switch(t){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else On?wd(t,i)&&(ae="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(ae="onCompositionStart");ae&&(vd&&i.locale!=="ko"&&(On||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&On&&(oe=hd()):(Ir=H,za="value"in Ir?Ir.value:Ir.textContent,On=!0)),ne=Ni(F,ae),0<ne.length&&(ae=new gd(ae,t,null,i,H),G.push({event:ae,listeners:ne}),oe?ae.data=oe:(oe=Sd(i),oe!==null&&(ae.data=oe)))),(oe=i_?s_(t,i):a_(t,i))&&(F=Ni(F,"onBeforeInput"),0<F.length&&(H=new gd("onBeforeInput","beforeinput",null,i,H),G.push({event:H,listeners:F}),H.data=oe))}zd(G,r)})}function ko(t,r,i){return{instance:t,listener:r,currentTarget:i}}function Ni(t,r){for(var i=r+"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,r),d!=null&&a.push(ko(t,d,c))),t=t.return}return a}function In(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function $d(t,r,i,a,c){for(var d=r._reactName,g=[];i!==null&&i!==a;){var w=i,k=w.alternate,F=w.stateNode;if(k!==null&&k===a)break;w.tag===5&&F!==null&&(w=F,c?(k=ao(i,d),k!=null&&g.unshift(ko(i,k,w))):c||(k=ao(i,d),k!=null&&g.push(ko(i,k,w)))),i=i.return}g.length!==0&&t.push({event:r,listeners:g})}var w_=/\r\n?/g,S_=/\u0000|\uFFFD/g;function qd(t){return(typeof t=="string"?t:""+t).replace(w_,`
|
|
38
|
-
`).replace(S_,"")}function Ai(t,r,i){if(r=qd(r),qd(t)!==r&&i)throw Error(o(425))}function Ii(){}var il=null,sl=null;function al(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ll=typeof setTimeout=="function"?setTimeout:void 0,b_=typeof clearTimeout=="function"?clearTimeout:void 0,Vd=typeof Promise=="function"?Promise:void 0,x_=typeof queueMicrotask=="function"?queueMicrotask:typeof Vd<"u"?function(t){return Vd.resolve(null).then(t).catch(T_)}:ll;function T_(t){setTimeout(function(){throw t})}function ul(t,r){var i=r,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(r);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=c}while(i);yo(r)}function Pr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Wd(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return t;r--}else i==="/$"&&r++}t=t.previousSibling}return null}var Dn=Math.random().toString(36).slice(2),tr="__reactFiber$"+Dn,Ro="__reactProps$"+Dn,hr="__reactContainer$"+Dn,cl="__reactEvents$"+Dn,C_="__reactListeners$"+Dn,k_="__reactHandles$"+Dn;function en(t){var r=t[tr];if(r)return r;for(var i=t.parentNode;i;){if(r=i[hr]||i[tr]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=Wd(t);t!==null;){if(i=t[tr])return i;t=Wd(t)}return r}t=i,i=t.parentNode}return null}function Oo(t){return t=t[tr]||t[hr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(o(33))}function Di(t){return t[Ro]||null}var fl=[],Mn=-1;function Mr(t){return{current:t}}function Pe(t){0>Mn||(t.current=fl[Mn],fl[Mn]=null,Mn--)}function Ae(t,r){Mn++,fl[Mn]=t.current,t.current=r}var Fr={},st=Mr(Fr),mt=Mr(!1),tn=Fr;function Fn(t,r){var i=t.type.contextTypes;if(!i)return Fr;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in i)c[d]=r[d];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function gt(t){return t=t.childContextTypes,t!=null}function Pi(){Pe(mt),Pe(st)}function Kd(t,r,i){if(st.current!==Fr)throw Error(o(168));Ae(st,r),Ae(mt,i)}function Zd(t,r,i){var a=t.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var c in a)if(!(c in r))throw Error(o(108,ke(t)||"Unknown",c));return Z({},i,a)}function Mi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fr,tn=st.current,Ae(st,t),Ae(mt,mt.current),!0}function Qd(t,r,i){var a=t.stateNode;if(!a)throw Error(o(169));i?(t=Zd(t,r,tn),a.__reactInternalMemoizedMergedChildContext=t,Pe(mt),Pe(st),Ae(st,t)):Pe(mt),Ae(mt,i)}var pr=null,Fi=!1,dl=!1;function Xd(t){pr===null?pr=[t]:pr.push(t)}function R_(t){Fi=!0,Xd(t)}function Lr(){if(!dl&&pr!==null){dl=!0;var t=0,r=Oe;try{var i=pr;for(Oe=1;t<i.length;t++){var a=i[t];do a=a(!0);while(a!==null)}pr=null,Fi=!1}catch(c){throw pr!==null&&(pr=pr.slice(t+1)),Jf(Pa,Lr),c}finally{Oe=r,dl=!1}}return null}var Ln=[],Bn=0,Li=null,Bi=0,It=[],Dt=0,rn=null,mr=1,gr="";function nn(t,r){Ln[Bn++]=Bi,Ln[Bn++]=Li,Li=t,Bi=r}function Yd(t,r,i){It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,rn=t;var a=mr;t=gr;var c=32-Ht(a)-1;a&=~(1<<c),i+=1;var d=32-Ht(r)+c;if(30<d){var g=c-c%5;d=(a&(1<<g)-1).toString(32),a>>=g,c-=g,mr=1<<32-Ht(r)+c|i<<c|a,gr=d+t}else mr=1<<d|i<<c|a,gr=t}function hl(t){t.return!==null&&(nn(t,1),Yd(t,1,0))}function pl(t){for(;t===Li;)Li=Ln[--Bn],Ln[Bn]=null,Bi=Ln[--Bn],Ln[Bn]=null;for(;t===rn;)rn=It[--Dt],It[Dt]=null,gr=It[--Dt],It[Dt]=null,mr=It[--Dt],It[Dt]=null}var bt=null,xt=null,Fe=!1,Gt=null;function Jd(t,r){var i=Lt(5,null,null,0);i.elementType="DELETED",i.stateNode=r,i.return=t,r=t.deletions,r===null?(t.deletions=[i],t.flags|=16):r.push(i)}function eh(t,r){switch(t.tag){case 5:var i=t.type;return r=r.nodeType!==1||i.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,bt=t,xt=Pr(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,bt=t,xt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(i=rn!==null?{id:mr,overflow:gr}:null,t.memoizedState={dehydrated:r,treeContext:i,retryLane:1073741824},i=Lt(18,null,null,0),i.stateNode=r,i.return=t,t.child=i,bt=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 r=xt;if(r){var i=r;if(!eh(t,r)){if(ml(t))throw Error(o(418));r=Pr(i.nextSibling);var a=bt;r&&eh(t,r)?Jd(a,i):(t.flags=t.flags&-4097|2,Fe=!1,bt=t)}}else{if(ml(t))throw Error(o(418));t.flags=t.flags&-4097|2,Fe=!1,bt=t}}}function th(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;bt=t}function ji(t){if(t!==bt)return!1;if(!Fe)return th(t),Fe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!al(t.type,t.memoizedProps)),r&&(r=xt)){if(ml(t))throw rh(),Error(o(418));for(;r;)Jd(t,r),r=Pr(r.nextSibling)}if(th(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"){if(r===0){xt=Pr(t.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++}t=t.nextSibling}xt=null}}else xt=bt?Pr(t.stateNode.nextSibling):null;return!0}function rh(){for(var t=xt;t;)t=Pr(t.nextSibling)}function jn(){xt=bt=null,Fe=!1}function yl(t){Gt===null?Gt=[t]:Gt.push(t)}var O_=C.ReactCurrentBatchConfig;function No(t,r,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 r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===d?r.ref:(r=function(g){var w=c.refs;g===null?delete w[d]:w[d]=g},r._stringRef=d,r)}if(typeof t!="string")throw Error(o(284));if(!i._owner)throw Error(o(290,t))}return t}function Ui(t,r){throw t=Object.prototype.toString.call(r),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function nh(t){var r=t._init;return r(t._payload)}function oh(t){function r(D,R){if(t){var M=D.deletions;M===null?(D.deletions=[R],D.flags|=16):M.push(R)}}function i(D,R){if(!t)return null;for(;R!==null;)r(D,R),R=R.sibling;return null}function a(D,R){for(D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function c(D,R){return D=qr(D,R),D.index=0,D.sibling=null,D}function d(D,R,M){return D.index=M,t?(M=D.alternate,M!==null?(M=M.index,M<R?(D.flags|=2,R):M):(D.flags|=2,R)):(D.flags|=1048576,R)}function g(D){return t&&D.alternate===null&&(D.flags|=2),D}function w(D,R,M,$){return R===null||R.tag!==6?(R=lu(M,D.mode,$),R.return=D,R):(R=c(R,M),R.return=D,R)}function k(D,R,M,$){var ee=M.type;return ee===z?H(D,R,M.props.children,$,M.key):R!==null&&(R.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&nh(ee)===R.type)?($=c(R,M.props),$.ref=No(D,R,M),$.return=D,$):($=cs(M.type,M.key,M.props,null,D.mode,$),$.ref=No(D,R,M),$.return=D,$)}function F(D,R,M,$){return R===null||R.tag!==4||R.stateNode.containerInfo!==M.containerInfo||R.stateNode.implementation!==M.implementation?(R=uu(M,D.mode,$),R.return=D,R):(R=c(R,M.children||[]),R.return=D,R)}function H(D,R,M,$,ee){return R===null||R.tag!==7?(R=dn(M,D.mode,$,ee),R.return=D,R):(R=c(R,M),R.return=D,R)}function G(D,R,M){if(typeof R=="string"&&R!==""||typeof R=="number")return R=lu(""+R,D.mode,M),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case x:return M=cs(R.type,R.key,R.props,null,D.mode,M),M.ref=No(D,null,R),M.return=D,M;case L:return R=uu(R,D.mode,M),R.return=D,R;case $e:var $=R._init;return G(D,$(R._payload),M)}if(oo(R)||re(R))return R=dn(R,D.mode,M,null),R.return=D,R;Ui(D,R)}return null}function U(D,R,M,$){var ee=R!==null?R.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:w(D,R,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return M.key===ee?k(D,R,M,$):null;case L:return M.key===ee?F(D,R,M,$):null;case $e:return ee=M._init,U(D,R,ee(M._payload),$)}if(oo(M)||re(M))return ee!==null?null:H(D,R,M,$,null);Ui(D,M)}return null}function K(D,R,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return D=D.get(M)||null,w(R,D,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return D=D.get($.key===null?M:$.key)||null,k(R,D,$,ee);case L:return D=D.get($.key===null?M:$.key)||null,F(R,D,$,ee);case $e:var ne=$._init;return K(D,R,M,ne($._payload),ee)}if(oo($)||re($))return D=D.get(M)||null,H(R,D,$,ee,null);Ui(R,$)}return null}function X(D,R,M,$){for(var ee=null,ne=null,oe=R,ae=R=0,Je=null;oe!==null&&ae<M.length;ae++){oe.index>ae?(Je=oe,oe=null):Je=oe.sibling;var be=U(D,oe,M[ae],$);if(be===null){oe===null&&(oe=Je);break}t&&oe&&be.alternate===null&&r(D,oe),R=d(be,R,ae),ne===null?ee=be:ne.sibling=be,ne=be,oe=Je}if(ae===M.length)return i(D,oe),Fe&&nn(D,ae),ee;if(oe===null){for(;ae<M.length;ae++)oe=G(D,M[ae],$),oe!==null&&(R=d(oe,R,ae),ne===null?ee=oe:ne.sibling=oe,ne=oe);return Fe&&nn(D,ae),ee}for(oe=a(D,oe);ae<M.length;ae++)Je=K(oe,D,ae,M[ae],$),Je!==null&&(t&&Je.alternate!==null&&oe.delete(Je.key===null?ae:Je.key),R=d(Je,R,ae),ne===null?ee=Je:ne.sibling=Je,ne=Je);return t&&oe.forEach(function(Vr){return r(D,Vr)}),Fe&&nn(D,ae),ee}function Y(D,R,M,$){var ee=re(M);if(typeof ee!="function")throw Error(o(150));if(M=ee.call(M),M==null)throw Error(o(151));for(var ne=ee=null,oe=R,ae=R=0,Je=null,be=M.next();oe!==null&&!be.done;ae++,be=M.next()){oe.index>ae?(Je=oe,oe=null):Je=oe.sibling;var Vr=U(D,oe,be.value,$);if(Vr===null){oe===null&&(oe=Je);break}t&&oe&&Vr.alternate===null&&r(D,oe),R=d(Vr,R,ae),ne===null?ee=Vr:ne.sibling=Vr,ne=Vr,oe=Je}if(be.done)return i(D,oe),Fe&&nn(D,ae),ee;if(oe===null){for(;!be.done;ae++,be=M.next())be=G(D,be.value,$),be!==null&&(R=d(be,R,ae),ne===null?ee=be:ne.sibling=be,ne=be);return Fe&&nn(D,ae),ee}for(oe=a(D,oe);!be.done;ae++,be=M.next())be=K(oe,D,ae,be.value,$),be!==null&&(t&&be.alternate!==null&&oe.delete(be.key===null?ae:be.key),R=d(be,R,ae),ne===null?ee=be:ne.sibling=be,ne=be);return t&&oe.forEach(function(l1){return r(D,l1)}),Fe&&nn(D,ae),ee}function Ge(D,R,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,ne=R;ne!==null;){if(ne.key===ee){if(ee=M.type,ee===z){if(ne.tag===7){i(D,ne.sibling),R=c(ne,M.props.children),R.return=D,D=R;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&nh(ee)===ne.type){i(D,ne.sibling),R=c(ne,M.props),R.ref=No(D,ne,M),R.return=D,D=R;break e}i(D,ne);break}else r(D,ne);ne=ne.sibling}M.type===z?(R=dn(M.props.children,D.mode,$,M.key),R.return=D,D=R):($=cs(M.type,M.key,M.props,null,D.mode,$),$.ref=No(D,R,M),$.return=D,D=$)}return g(D);case L:e:{for(ne=M.key;R!==null;){if(R.key===ne)if(R.tag===4&&R.stateNode.containerInfo===M.containerInfo&&R.stateNode.implementation===M.implementation){i(D,R.sibling),R=c(R,M.children||[]),R.return=D,D=R;break e}else{i(D,R);break}else r(D,R);R=R.sibling}R=uu(M,D.mode,$),R.return=D,D=R}return g(D);case $e:return ne=M._init,Ge(D,R,ne(M._payload),$)}if(oo(M))return X(D,R,M,$);if(re(M))return Y(D,R,M,$);Ui(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,R!==null&&R.tag===6?(i(D,R.sibling),R=c(R,M),R.return=D,D=R):(i(D,R),R=lu(M,D.mode,$),R.return=D,D=R),g(D)):i(D,R)}return Ge}var Un=oh(!0),ih=oh(!1),Hi=Mr(null),zi=null,Hn=null,vl=null;function _l(){vl=Hn=zi=null}function El(t){var r=Hi.current;Pe(Hi),t._currentValue=r}function wl(t,r,i){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===i)break;t=t.return}}function zn(t,r){zi=t,vl=Hn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(yt=!0),t.firstContext=null)}function Pt(t){var r=t._currentValue;if(vl!==t)if(t={context:t,memoizedValue:r,next:null},Hn===null){if(zi===null)throw Error(o(308));Hn=t,zi.dependencies={lanes:0,firstContext:t}}else Hn=Hn.next=t;return r}var on=null;function Sl(t){on===null?on=[t]:on.push(t)}function sh(t,r,i,a){var c=r.interleaved;return c===null?(i.next=i,Sl(r)):(i.next=c.next,c.next=i),r.interleaved=i,yr(t,a)}function yr(t,r){t.lanes|=r;var i=t.alternate;for(i!==null&&(i.lanes|=r),i=t,t=t.return;t!==null;)t.childLanes|=r,i=t.alternate,i!==null&&(i.childLanes|=r),i=t,t=t.return;return i.tag===3?i.stateNode:null}var Br=!1;function bl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ah(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function vr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function jr(t,r,i){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var c=a.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r,yr(t,i)}return c=a.interleaved,c===null?(r.next=r,Sl(a)):(r.next=c.next,c.next=r),a.interleaved=r,yr(t,i)}function Gi(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194240)!==0)){var a=r.lanes;a&=t.pendingLanes,i|=a,r.lanes=i,La(t,i)}}function lh(t,r){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=r:d=d.next=r}else c=d=r;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=r:t.next=r,i.lastBaseUpdate=r}function $i(t,r,i,a){var c=t.updateQueue;Br=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var k=w,F=k.next;k.next=null,g===null?d=F:g.next=F,g=k;var H=t.alternate;H!==null&&(H=H.updateQueue,w=H.lastBaseUpdate,w!==g&&(w===null?H.firstBaseUpdate=F:w.next=F,H.lastBaseUpdate=k))}if(d!==null){var G=c.baseState;g=0,H=F=k=null,w=d;do{var U=w.lane,K=w.eventTime;if((a&U)===U){H!==null&&(H=H.next={eventTime:K,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var X=t,Y=w;switch(U=r,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:Br=!0}}w.callback!==null&&w.lane!==0&&(t.flags|=64,U=c.effects,U===null?c.effects=[w]:U.push(w))}else K={eventTime:K,lane:U,tag:w.tag,payload:w.payload,callback:w.callback,next:null},H===null?(F=H=K,k=G):H=H.next=K,g|=U;if(w=w.next,w===null){if(w=c.shared.pending,w===null)break;U=w,w=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);if(H===null&&(k=G),c.baseState=k,c.firstBaseUpdate=F,c.lastBaseUpdate=H,r=c.shared.interleaved,r!==null){c=r;do g|=c.lane,c=c.next;while(c!==r)}else d===null&&(c.shared.lanes=0);ln|=g,t.lanes=g,t.memoizedState=G}}function uh(t,r,i){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var a=t[r],c=a.callback;if(c!==null){if(a.callback=null,a=i,typeof c!="function")throw Error(o(191,c));c.call(a)}}}var Ao={},rr=Mr(Ao),Io=Mr(Ao),Do=Mr(Ao);function sn(t){if(t===Ao)throw Error(o(174));return t}function xl(t,r){switch(Ae(Do,r),Ae(Io,t),Ae(rr,Ao),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Ta(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Ta(r,t)}Pe(rr),Ae(rr,r)}function Gn(){Pe(rr),Pe(Io),Pe(Do)}function ch(t){sn(Do.current);var r=sn(rr.current),i=Ta(r,t.type);r!==i&&(Ae(Io,t),Ae(rr,i))}function Tl(t){Io.current===t&&(Pe(rr),Pe(Io))}var Le=Mr(0);function qi(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var 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,an=0,Be=null,Ke=null,Xe=null,Wi=!1,Po=!1,Mo=0,N_=0;function at(){throw Error(o(321))}function Ol(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!zt(t[i],r[i]))return!1;return!0}function Nl(t,r,i,a,c,d){if(an=d,Be=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Vi.current=t===null||t.memoizedState===null?P_:M_,t=i(a,c),Po){d=0;do{if(Po=!1,Mo=0,25<=d)throw Error(o(301));d+=1,Xe=Ke=null,r.updateQueue=null,Vi.current=F_,t=i(a,c)}while(Po)}if(Vi.current=Qi,r=Ke!==null&&Ke.next!==null,an=0,Xe=Ke=Be=null,Wi=!1,r)throw Error(o(300));return t}function Al(){var t=Mo!==0;return Mo=0,t}function nr(){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(Ke===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var r=Xe===null?Be.memoizedState:Xe.next;if(r!==null)Xe=r,Ke=t;else{if(t===null)throw Error(o(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Xe===null?Be.memoizedState=Xe=t:Xe=Xe.next=t}return Xe}function Fo(t,r){return typeof r=="function"?r(t):r}function Il(t){var r=Mt(),i=r.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var a=Ke,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 w=g=null,k=null,F=d;do{var H=F.lane;if((an&H)===H)k!==null&&(k=k.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),a=F.hasEagerState?F.eagerState:t(a,F.action);else{var G={lane:H,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};k===null?(w=k=G,g=a):k=k.next=G,Be.lanes|=H,ln|=H}F=F.next}while(F!==null&&F!==d);k===null?g=a:k.next=w,zt(a,r.memoizedState)||(yt=!0),r.memoizedState=a,r.baseState=g,r.baseQueue=k,i.lastRenderedState=a}if(t=i.interleaved,t!==null){c=t;do d=c.lane,Be.lanes|=d,ln|=d,c=c.next;while(c!==t)}else c===null&&(i.lanes=0);return[r.memoizedState,i.dispatch]}function Dl(t){var r=Mt(),i=r.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var a=i.dispatch,c=i.pending,d=r.memoizedState;if(c!==null){i.pending=null;var g=c=c.next;do d=t(d,g.action),g=g.next;while(g!==c);zt(d,r.memoizedState)||(yt=!0),r.memoizedState=d,r.baseQueue===null&&(r.baseState=d),i.lastRenderedState=d}return[d,a]}function fh(){}function dh(t,r){var i=Be,a=Mt(),c=r(),d=!zt(a.memoizedState,c);if(d&&(a.memoizedState=c,yt=!0),a=a.queue,Pl(mh.bind(null,i,a,t),[t]),a.getSnapshot!==r||d||Xe!==null&&Xe.memoizedState.tag&1){if(i.flags|=2048,Lo(9,ph.bind(null,i,a,c,r),void 0,null),Ye===null)throw Error(o(349));(an&30)!==0||hh(i,r,c)}return c}function hh(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function ph(t,r,i,a){r.value=i,r.getSnapshot=a,gh(r)&&yh(t)}function mh(t,r,i){return i(function(){gh(r)&&yh(t)})}function gh(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!zt(t,i)}catch{return!0}}function yh(t){var r=yr(t,1);r!==null&&Wt(r,t,1,-1)}function vh(t){var r=nr();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fo,lastRenderedState:t},r.queue=t,t=t.dispatch=D_.bind(null,Be,t),[r.memoizedState,t]}function Lo(t,r,i,a){return t={tag:t,create:r,destroy:i,deps:a,next:null},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.lastEffect=t.next=t):(i=r.lastEffect,i===null?r.lastEffect=t.next=t:(a=i.next,i.next=t,t.next=a,r.lastEffect=t)),t}function _h(){return Mt().memoizedState}function Ki(t,r,i,a){var c=nr();Be.flags|=t,c.memoizedState=Lo(1|r,i,void 0,a===void 0?null:a)}function Zi(t,r,i,a){var c=Mt();a=a===void 0?null:a;var d=void 0;if(Ke!==null){var g=Ke.memoizedState;if(d=g.destroy,a!==null&&Ol(a,g.deps)){c.memoizedState=Lo(r,i,d,a);return}}Be.flags|=t,c.memoizedState=Lo(1|r,i,d,a)}function Eh(t,r){return Ki(8390656,8,t,r)}function Pl(t,r){return Zi(2048,8,t,r)}function wh(t,r){return Zi(4,2,t,r)}function Sh(t,r){return Zi(4,4,t,r)}function bh(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function xh(t,r,i){return i=i!=null?i.concat([t]):null,Zi(4,4,bh.bind(null,r,t),i)}function Ml(){}function Th(t,r){var i=Mt();r=r===void 0?null:r;var a=i.memoizedState;return a!==null&&r!==null&&Ol(r,a[1])?a[0]:(i.memoizedState=[t,r],t)}function Ch(t,r){var i=Mt();r=r===void 0?null:r;var a=i.memoizedState;return a!==null&&r!==null&&Ol(r,a[1])?a[0]:(t=t(),i.memoizedState=[t,r],t)}function kh(t,r,i){return(an&21)===0?(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=i):(zt(i,r)||(i=nd(),Be.lanes|=i,ln|=i,t.baseState=!0),r)}function A_(t,r){var i=Oe;Oe=i!==0&&4>i?i:4,t(!0);var a=Rl.transition;Rl.transition={};try{t(!1),r()}finally{Oe=i,Rl.transition=a}}function Rh(){return Mt().memoizedState}function I_(t,r,i){var a=Gr(t);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},Oh(t))Nh(r,i);else if(i=sh(t,r,i,a),i!==null){var c=dt();Wt(i,t,a,c),Ah(i,r,a)}}function D_(t,r,i){var a=Gr(t),c={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(Oh(t))Nh(r,c);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=r.lastRenderedReducer,d!==null))try{var g=r.lastRenderedState,w=d(g,i);if(c.hasEagerState=!0,c.eagerState=w,zt(w,g)){var k=r.interleaved;k===null?(c.next=c,Sl(r)):(c.next=k.next,k.next=c),r.interleaved=c;return}}catch{}finally{}i=sh(t,r,c,a),i!==null&&(c=dt(),Wt(i,t,a,c),Ah(i,r,a))}}function Oh(t){var r=t.alternate;return t===Be||r!==null&&r===Be}function Nh(t,r){Po=Wi=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Ah(t,r,i){if((i&4194240)!==0){var a=r.lanes;a&=t.pendingLanes,i|=a,r.lanes=i,La(t,i)}}var Qi={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},P_={readContext:Pt,useCallback:function(t,r){return nr().memoizedState=[t,r===void 0?null:r],t},useContext:Pt,useEffect:Eh,useImperativeHandle:function(t,r,i){return i=i!=null?i.concat([t]):null,Ki(4194308,4,bh.bind(null,r,t),i)},useLayoutEffect:function(t,r){return Ki(4194308,4,t,r)},useInsertionEffect:function(t,r){return Ki(4,2,t,r)},useMemo:function(t,r){var i=nr();return r=r===void 0?null:r,t=t(),i.memoizedState=[t,r],t},useReducer:function(t,r,i){var a=nr();return r=i!==void 0?i(r):r,a.memoizedState=a.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},a.queue=t,t=t.dispatch=I_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var r=nr();return t={current:t},r.memoizedState=t},useState:vh,useDebugValue:Ml,useDeferredValue:function(t){return nr().memoizedState=t},useTransition:function(){var t=vh(!1),r=t[0];return t=A_.bind(null,t[1]),nr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,i){var a=Be,c=nr();if(Fe){if(i===void 0)throw Error(o(407));i=i()}else{if(i=r(),Ye===null)throw Error(o(349));(an&30)!==0||hh(a,r,i)}c.memoizedState=i;var d={value:i,getSnapshot:r};return c.queue=d,Eh(mh.bind(null,a,d,t),[t]),a.flags|=2048,Lo(9,ph.bind(null,a,d,i,r),void 0,null),i},useId:function(){var t=nr(),r=Ye.identifierPrefix;if(Fe){var i=gr,a=mr;i=(a&~(1<<32-Ht(a)-1)).toString(32)+i,r=":"+r+"R"+i,i=Mo++,0<i&&(r+="H"+i.toString(32)),r+=":"}else i=N_++,r=":"+r+"r"+i.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},M_={readContext:Pt,useCallback:Th,useContext:Pt,useEffect:Pl,useImperativeHandle:xh,useInsertionEffect:wh,useLayoutEffect:Sh,useMemo:Ch,useReducer:Il,useRef:_h,useState:function(){return Il(Fo)},useDebugValue:Ml,useDeferredValue:function(t){var r=Mt();return kh(r,Ke.memoizedState,t)},useTransition:function(){var t=Il(Fo)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:fh,useSyncExternalStore:dh,useId:Rh,unstable_isNewReconciler:!1},F_={readContext:Pt,useCallback:Th,useContext:Pt,useEffect:Pl,useImperativeHandle:xh,useInsertionEffect:wh,useLayoutEffect:Sh,useMemo:Ch,useReducer:Dl,useRef:_h,useState:function(){return Dl(Fo)},useDebugValue:Ml,useDeferredValue:function(t){var r=Mt();return Ke===null?r.memoizedState=t:kh(r,Ke.memoizedState,t)},useTransition:function(){var t=Dl(Fo)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:fh,useSyncExternalStore:dh,useId:Rh,unstable_isNewReconciler:!1};function $t(t,r){if(t&&t.defaultProps){r=Z({},r),t=t.defaultProps;for(var i in t)r[i]===void 0&&(r[i]=t[i]);return r}return r}function Fl(t,r,i,a){r=t.memoizedState,i=i(a,r),i=i==null?r:Z({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Xi={isMounted:function(t){return(t=t._reactInternals)?Jr(t)===t:!1},enqueueSetState:function(t,r,i){t=t._reactInternals;var a=dt(),c=Gr(t),d=vr(a,c);d.payload=r,i!=null&&(d.callback=i),r=jr(t,d,c),r!==null&&(Wt(r,t,c,a),Gi(r,t,c))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var a=dt(),c=Gr(t),d=vr(a,c);d.tag=1,d.payload=r,i!=null&&(d.callback=i),r=jr(t,d,c),r!==null&&(Wt(r,t,c,a),Gi(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=dt(),a=Gr(t),c=vr(i,a);c.tag=2,r!=null&&(c.callback=r),r=jr(t,c,a),r!==null&&(Wt(r,t,a,i),Gi(r,t,a))}};function Ih(t,r,i,a,c,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,d,g):r.prototype&&r.prototype.isPureReactComponent?!bo(i,a)||!bo(c,d):!0}function Dh(t,r,i){var a=!1,c=Fr,d=r.contextType;return typeof d=="object"&&d!==null?d=Pt(d):(c=gt(r)?tn:st.current,a=r.contextTypes,d=(a=a!=null)?Fn(t,c):Fr),r=new r(i,d),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Xi,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=d),r}function Ph(t,r,i,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,a),r.state!==t&&Xi.enqueueReplaceState(r,r.state,null)}function Ll(t,r,i,a){var c=t.stateNode;c.props=i,c.state=t.memoizedState,c.refs={},bl(t);var d=r.contextType;typeof d=="object"&&d!==null?c.context=Pt(d):(d=gt(r)?tn:st.current,c.context=Fn(t,d)),c.state=t.memoizedState,d=r.getDerivedStateFromProps,typeof d=="function"&&(Fl(t,r,d,i),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(r=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),r!==c.state&&Xi.enqueueReplaceState(c,c.state,null),$i(t,i,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function $n(t,r){try{var i="",a=r;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:r,stack:c,digest:null}}function Bl(t,r,i){return{value:t,source:null,stack:i??null,digest:r??null}}function jl(t,r){try{console.error(r.value)}catch(i){setTimeout(function(){throw i})}}var L_=typeof WeakMap=="function"?WeakMap:Map;function Mh(t,r,i){i=vr(-1,i),i.tag=3,i.payload={element:null};var a=r.value;return i.callback=function(){os||(os=!0,eu=a),jl(t,r)},i}function Fh(t,r,i){i=vr(-1,i),i.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=r.value;i.payload=function(){return a(c)},i.callback=function(){jl(t,r)}}var d=t.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(i.callback=function(){jl(t,r),typeof a!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})}),i}function Lh(t,r,i){var a=t.pingCache;if(a===null){a=t.pingCache=new L_;var c=new Set;a.set(r,c)}else c=a.get(r),c===void 0&&(c=new Set,a.set(r,c));c.has(i)||(c.add(i),t=X_.bind(null,t,r,i),r.then(t,t))}function Bh(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function jh(t,r,i,a,c){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(r=vr(-1,1),r.tag=2,jr(i,r,1))),i.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var B_=C.ReactCurrentOwner,yt=!1;function ft(t,r,i,a){r.child=t===null?ih(r,null,i,a):Un(r,t.child,i,a)}function Uh(t,r,i,a,c){i=i.render;var d=r.ref;return zn(r,c),a=Nl(t,r,i,a,d,c),i=Al(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&i&&hl(r),r.flags|=1,ft(t,r,a,c),r.child)}function Hh(t,r,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?(r.tag=15,r.type=d,zh(t,r,d,a,c)):(t=cs(i.type,null,a,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(d=t.child,(t.lanes&c)===0){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:bo,i(g,a)&&t.ref===r.ref)return _r(t,r,c)}return r.flags|=1,t=qr(d,a),t.ref=r.ref,t.return=r,r.child=t}function zh(t,r,i,a,c){if(t!==null){var d=t.memoizedProps;if(bo(d,a)&&t.ref===r.ref)if(yt=!1,r.pendingProps=a=d,(t.lanes&c)!==0)(t.flags&131072)!==0&&(yt=!0);else return r.lanes=t.lanes,_r(t,r,c)}return Ul(t,r,i,a,c)}function Gh(t,r,i){var a=r.pendingProps,c=a.children,d=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Vn,Tt),Tt|=i;else{if((i&1073741824)===0)return t=d!==null?d.baseLanes|i:i,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ae(Vn,Tt),Tt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=d!==null?d.baseLanes:i,Ae(Vn,Tt),Tt|=a}else d!==null?(a=d.baseLanes|i,r.memoizedState=null):a=i,Ae(Vn,Tt),Tt|=a;return ft(t,r,c,i),r.child}function $h(t,r){var i=r.ref;(t===null&&i!==null||t!==null&&t.ref!==i)&&(r.flags|=512,r.flags|=2097152)}function Ul(t,r,i,a,c){var d=gt(i)?tn:st.current;return d=Fn(r,d),zn(r,c),i=Nl(t,r,i,a,d,c),a=Al(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&a&&hl(r),r.flags|=1,ft(t,r,i,c),r.child)}function qh(t,r,i,a,c){if(gt(i)){var d=!0;Mi(r)}else d=!1;if(zn(r,c),r.stateNode===null)Ji(t,r),Dh(r,i,a),Ll(r,i,a,c),a=!0;else if(t===null){var g=r.stateNode,w=r.memoizedProps;g.props=w;var k=g.context,F=i.contextType;typeof F=="object"&&F!==null?F=Pt(F):(F=gt(i)?tn:st.current,F=Fn(r,F));var H=i.getDerivedStateFromProps,G=typeof H=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==a||k!==F)&&Ph(r,g,a,F),Br=!1;var U=r.memoizedState;g.state=U,$i(r,a,g,c),k=r.memoizedState,w!==a||U!==k||mt.current||Br?(typeof H=="function"&&(Fl(r,i,H,a),k=r.memoizedState),(w=Br||Ih(r,i,w,a,U,k,F))?(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"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=k),g.props=a,g.state=k,g.context=F,a=w):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{g=r.stateNode,ah(t,r),w=r.memoizedProps,F=r.type===r.elementType?w:$t(r.type,w),g.props=F,G=r.pendingProps,U=g.context,k=i.contextType,typeof k=="object"&&k!==null?k=Pt(k):(k=gt(i)?tn:st.current,k=Fn(r,k));var K=i.getDerivedStateFromProps;(H=typeof K=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==G||U!==k)&&Ph(r,g,a,k),Br=!1,U=r.memoizedState,g.state=U,$i(r,a,g,c);var X=r.memoizedState;w!==G||U!==X||mt.current||Br?(typeof K=="function"&&(Fl(r,i,K,a),X=r.memoizedState),(F=Br||Ih(r,i,F,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"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=X),g.props=a,g.state=X,g.context=k,a=F):(typeof g.componentDidUpdate!="function"||w===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),a=!1)}return Hl(t,r,i,a,d,c)}function Hl(t,r,i,a,c,d){$h(t,r);var g=(r.flags&128)!==0;if(!a&&!g)return c&&Qd(r,i,!1),_r(t,r,d);a=r.stateNode,B_.current=r;var w=g&&typeof i.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&g?(r.child=Un(r,t.child,null,d),r.child=Un(r,null,w,d)):ft(t,r,w,d),r.memoizedState=a.state,c&&Qd(r,i,!0),r.child}function Vh(t){var r=t.stateNode;r.pendingContext?Kd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Kd(t,r.context,!1),xl(t,r.containerInfo)}function Wh(t,r,i,a,c){return jn(),yl(c),r.flags|=256,ft(t,r,i,a),r.child}var zl={dehydrated:null,treeContext:null,retryLane:0};function Gl(t){return{baseLanes:t,cachePool:null,transitions:null}}function Kh(t,r,i){var a=r.pendingProps,c=Le.current,d=!1,g=(r.flags&128)!==0,w;if((w=g)||(w=t!==null&&t.memoizedState===null?!1:(c&2)!==0),w?(d=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return gl(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(g=a.children,t=a.fallback,d?(a=r.mode,d=r.child,g={mode:"hidden",children:g},(a&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=g):d=fs(g,a,0,null),t=dn(t,a,i,null),d.return=r,t.return=r,d.sibling=t,r.child=d,r.child.memoizedState=Gl(i),r.memoizedState=zl,t):$l(r,g));if(c=t.memoizedState,c!==null&&(w=c.dehydrated,w!==null))return j_(t,r,g,a,w,c,i);if(d){d=a.fallback,g=r.mode,c=t.child,w=c.sibling;var k={mode:"hidden",children:a.children};return(g&1)===0&&r.child!==c?(a=r.child,a.childLanes=0,a.pendingProps=k,r.deletions=null):(a=qr(c,k),a.subtreeFlags=c.subtreeFlags&14680064),w!==null?d=qr(w,d):(d=dn(d,g,i,null),d.flags|=2),d.return=r,a.return=r,a.sibling=d,r.child=a,a=d,d=r.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,r.memoizedState=zl,a}return d=t.child,t=d.sibling,a=qr(d,{mode:"visible",children:a.children}),(r.mode&1)===0&&(a.lanes=i),a.return=r,a.sibling=null,t!==null&&(i=r.deletions,i===null?(r.deletions=[t],r.flags|=16):i.push(t)),r.child=a,r.memoizedState=null,a}function $l(t,r){return r=fs({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Yi(t,r,i,a){return a!==null&&yl(a),Un(r,t.child,null,i),t=$l(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function j_(t,r,i,a,c,d,g){if(i)return r.flags&256?(r.flags&=-257,a=Bl(Error(o(422))),Yi(t,r,g,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(d=a.fallback,c=r.mode,a=fs({mode:"visible",children:a.children},c,0,null),d=dn(d,c,g,null),d.flags|=2,a.return=r,d.return=r,a.sibling=d,r.child=a,(r.mode&1)!==0&&Un(r,t.child,null,g),r.child.memoizedState=Gl(g),r.memoizedState=zl,d);if((r.mode&1)===0)return Yi(t,r,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var w=a.dgst;return a=w,d=Error(o(419)),a=Bl(d,a,void 0),Yi(t,r,g,a)}if(w=(g&t.childLanes)!==0,yt||w){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,yr(t,c),Wt(a,t,c,-1))}return su(),a=Bl(Error(o(421))),Yi(t,r,g,a)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=Y_.bind(null,t),c._reactRetry=r,null):(t=d.treeContext,xt=Pr(c.nextSibling),bt=r,Fe=!0,Gt=null,t!==null&&(It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,mr=t.id,gr=t.overflow,rn=r),r=$l(r,a.children),r.flags|=4096,r)}function Zh(t,r,i){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),wl(t.return,r,i)}function ql(t,r,i,a,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:c}:(d.isBackwards=r,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=i,d.tailMode=c)}function Qh(t,r,i){var a=r.pendingProps,c=a.revealOrder,d=a.tail;if(ft(t,r,a.children,i),a=Le.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Zh(t,i,r);else if(t.tag===19)Zh(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Ae(Le,a),(r.mode&1)===0)r.memoizedState=null;else switch(c){case"forwards":for(i=r.child,c=null;i!==null;)t=i.alternate,t!==null&&qi(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=r.child,r.child=null):(c=i.sibling,i.sibling=null),ql(r,!1,c,i,d);break;case"backwards":for(i=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&qi(t)===null){r.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}ql(r,!0,i,null,d);break;case"together":ql(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Ji(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function _r(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),ln|=r.lanes,(i&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(o(153));if(r.child!==null){for(t=r.child,i=qr(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=qr(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function U_(t,r,i){switch(r.tag){case 3:Vh(r),jn();break;case 5:ch(r);break;case 1:gt(r.type)&&Mi(r);break;case 4:xl(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,c=r.memoizedProps.value;Ae(Hi,a._currentValue),a._currentValue=c;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),r.flags|=128,null):(i&r.child.childLanes)!==0?Kh(t,r,i):(Ae(Le,Le.current&1),t=_r(t,r,i),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(i&r.childLanes)!==0,(t.flags&128)!==0){if(a)return Qh(t,r,i);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ae(Le,Le.current),a)break;return null;case 22:case 23:return r.lanes=0,Gh(t,r,i)}return _r(t,r,i)}var Xh,Vl,Yh,Jh;Xh=function(t,r){for(var i=r.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===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Vl=function(){},Yh=function(t,r,i,a){var c=t.memoizedProps;if(c!==a){t=r.stateNode,sn(rr.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=Ii)}Ca(i,a);var g;i=null;for(F in c)if(!a.hasOwnProperty(F)&&c.hasOwnProperty(F)&&c[F]!=null)if(F==="style"){var w=c[F];for(g in w)w.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?d||(d=[]):(d=d||[]).push(F,null));for(F in a){var k=a[F];if(w=c!=null?c[F]:void 0,a.hasOwnProperty(F)&&k!==w&&(k!=null||w!=null))if(F==="style")if(w){for(g in w)!w.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in k)k.hasOwnProperty(g)&&w[g]!==k[g]&&(i||(i={}),i[g]=k[g])}else i||(d||(d=[]),d.push(F,i)),i=k;else F==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,w=w?w.__html:void 0,k!=null&&w!==k&&(d=d||[]).push(F,k)):F==="children"?typeof k!="string"&&typeof k!="number"||(d=d||[]).push(F,""+k):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(k!=null&&F==="onScroll"&&De("scroll",t),d||w===k||(d=[])):(d=d||[]).push(F,k))}i&&(d=d||[]).push("style",i);var F=d;(r.updateQueue=F)&&(r.flags|=4)}},Jh=function(t,r,i,a){i!==a&&(r.flags|=4)};function Bo(t,r){if(!Fe)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.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?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function lt(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,a=0;if(r)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,r}function H_(t,r,i){var a=r.pendingProps;switch(pl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(r),null;case 1:return gt(r.type)&&Pi(),lt(r),null;case 3:return a=r.stateNode,Gn(),Pe(mt),Pe(st),kl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(ji(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Gt!==null&&(nu(Gt),Gt=null))),Vl(t,r),lt(r),null;case 5:Tl(r);var c=sn(Do.current);if(i=r.type,t!==null&&r.stateNode!=null)Yh(t,r,i,a,c),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(o(166));return lt(r),null}if(t=sn(rr.current),ji(r)){a=r.stateNode,i=r.type;var d=r.memoizedProps;switch(a[tr]=r,a[Ro]=d,t=(r.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":Df(a,d),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!d.multiple},De("invalid",a);break;case"textarea":Ff(a,d),De("invalid",a)}Ca(i,d),c=null;for(var g in d)if(d.hasOwnProperty(g)){var w=d[g];g==="children"?typeof w=="string"?a.textContent!==w&&(d.suppressHydrationWarning!==!0&&Ai(a.textContent,w,t),c=["children",w]):typeof w=="number"&&a.textContent!==""+w&&(d.suppressHydrationWarning!==!0&&Ai(a.textContent,w,t),c=["children",""+w]):l.hasOwnProperty(g)&&w!=null&&g==="onScroll"&&De("scroll",a)}switch(i){case"input":no(a),Mf(a,d,!0);break;case"textarea":no(a),Bf(a);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(a.onclick=Ii)}a=c,r.updateQueue=a,a!==null&&(r.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=jf(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[tr]=r,t[Ro]=a,Xh(t,r,!1,!1),r.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":Df(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":Ff(t,a),c=xa(t,a),De("invalid",t);break;default:c=a}Ca(i,c),w=c;for(d in w)if(w.hasOwnProperty(d)){var k=w[d];d==="style"?zf(t,k):d==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Uf(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&&S(t,d,k,g))}switch(i){case"input":no(t),Mf(t,a,!1);break;case"textarea":no(t),Bf(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?xn(t,!!a.multiple,d,!1):a.defaultValue!=null&&xn(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Ii)}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&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return lt(r),null;case 6:if(t&&r.stateNode!=null)Jh(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(o(166));if(i=sn(Do.current),sn(rr.current),ji(r)){if(a=r.stateNode,i=r.memoizedProps,a[tr]=r,(d=a.nodeValue!==i)&&(t=bt,t!==null))switch(t.tag){case 3:Ai(a.nodeValue,i,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ai(a.nodeValue,i,(t.mode&1)!==0)}d&&(r.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[tr]=r,r.stateNode=a}return lt(r),null;case 13:if(Pe(Le),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&xt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)rh(),jn(),r.flags|=98560,d=!1;else if(d=ji(r),a!==null&&a.dehydrated!==null){if(t===null){if(!d)throw Error(o(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[tr]=r}else jn(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;lt(r),d=!1}else Gt!==null&&(nu(Gt),Gt=null),d=!0;if(!d)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=i,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Le.current&1)!==0?Ze===0&&(Ze=3):su())),r.updateQueue!==null&&(r.flags|=4),lt(r),null);case 4:return Gn(),Vl(t,r),t===null&&Co(r.stateNode.containerInfo),lt(r),null;case 10:return El(r.type._context),lt(r),null;case 17:return gt(r.type)&&Pi(),lt(r),null;case 19:if(Pe(Le),d=r.memoizedState,d===null)return lt(r),null;if(a=(r.flags&128)!==0,g=d.rendering,g===null)if(a)Bo(d,!1);else{if(Ze!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=qi(t),g!==null){for(r.flags|=128,Bo(d,!1),a=g.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=i,i=r.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),r.child}t=t.sibling}d.tail!==null&&ze()>Wn&&(r.flags|=128,a=!0,Bo(d,!1),r.lanes=4194304)}else{if(!a)if(t=qi(g),t!==null){if(r.flags|=128,a=!0,i=t.updateQueue,i!==null&&(r.updateQueue=i,r.flags|=4),Bo(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Fe)return lt(r),null}else 2*ze()-d.renderingStartTime>Wn&&i!==1073741824&&(r.flags|=128,a=!0,Bo(d,!1),r.lanes=4194304);d.isBackwards?(g.sibling=r.child,r.child=g):(i=d.last,i!==null?i.sibling=g:r.child=g,d.last=g)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=ze(),r.sibling=null,i=Le.current,Ae(Le,a?i&1|2:i&1),r):(lt(r),null);case 22:case 23:return iu(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(Tt&1073741824)!==0&&(lt(r),r.subtreeFlags&6&&(r.flags|=8192)):lt(r),null;case 24:return null;case 25:return null}throw Error(o(156,r.tag))}function z_(t,r){switch(pl(r),r.tag){case 1:return gt(r.type)&&Pi(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Gn(),Pe(mt),Pe(st),kl(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Tl(r),null;case 13:if(Pe(Le),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(o(340));jn()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Pe(Le),null;case 4:return Gn(),null;case 10:return El(r.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var es=!1,ut=!1,G_=typeof WeakSet=="function"?WeakSet:Set,Q=null;function qn(t,r){var i=t.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){He(t,r,a)}else i.current=null}function Wl(t,r,i){try{i()}catch(a){He(t,r,a)}}var ep=!1;function $_(t,r){if(il=Ei,t=Id(),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,w=-1,k=-1,F=0,H=0,G=t,U=null;t:for(;;){for(var K;G!==i||c!==0&&G.nodeType!==3||(w=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&&++F===c&&(w=g),U===d&&++H===a&&(k=g),(K=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=K}i=w===-1||k===-1?null:{start:w,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(sl={focusedElem:t,selectionRange:i},Ei=!1,Q=r;Q!==null;)if(r=Q,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Q=t;else for(;Q!==null;){r=Q;try{var X=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Ge=X.memoizedState,D=r.stateNode,R=D.getSnapshotBeforeUpdate(r.elementType===r.type?Y:$t(r.type,Y),Ge);D.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var M=r.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch($){He(r,r.return,$)}if(t=r.sibling,t!==null){t.return=r.return,Q=t;break}Q=r.return}return X=ep,ep=!1,X}function jo(t,r,i){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var d=c.destroy;c.destroy=void 0,d!==void 0&&Wl(r,i,d)}c=c.next}while(c!==a)}}function ts(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var a=i.create;i.destroy=a()}i=i.next}while(i!==r)}}function Kl(t){var r=t.ref;if(r!==null){var i=t.stateNode;switch(t.tag){case 5:t=i;break;default:t=i}typeof r=="function"?r(t):r.current=t}}function tp(t){var r=t.alternate;r!==null&&(t.alternate=null,tp(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[tr],delete r[Ro],delete r[cl],delete r[C_],delete r[k_])),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 rp(t){return t.tag===5||t.tag===3||t.tag===4}function np(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||rp(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,r,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?i.nodeType===8?i.parentNode.insertBefore(t,r):i.insertBefore(t,r):(i.nodeType===8?(r=i.parentNode,r.insertBefore(t,i)):(r=i,r.appendChild(t)),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=Ii));else if(a!==4&&(t=t.child,t!==null))for(Zl(t,r,i),t=t.sibling;t!==null;)Zl(t,r,i),t=t.sibling}function Ql(t,r,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Ql(t,r,i),t=t.sibling;t!==null;)Ql(t,r,i),t=t.sibling}var tt=null,qt=!1;function Ur(t,r,i){for(i=i.child;i!==null;)op(t,r,i),i=i.sibling}function op(t,r,i){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(pi,i)}catch{}switch(i.tag){case 5:ut||qn(i,r);case 6:var a=tt,c=qt;tt=null,Ur(t,r,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,Ur(t,r,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,r,g),c=c.next}while(c!==a)}Ur(t,r,i);break;case 1:if(!ut&&(qn(i,r),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(w){He(i,r,w)}Ur(t,r,i);break;case 21:Ur(t,r,i);break;case 22:i.mode&1?(ut=(a=ut)||i.memoizedState!==null,Ur(t,r,i),ut=a):Ur(t,r,i);break;default:Ur(t,r,i)}}function ip(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var i=t.stateNode;i===null&&(i=t.stateNode=new G_),r.forEach(function(a){var c=J_.bind(null,t,a);i.has(a)||(i.add(a),a.then(c,c))})}}function Vt(t,r){var i=r.deletions;if(i!==null)for(var a=0;a<i.length;a++){var c=i[a];try{var d=t,g=r,w=g;e:for(;w!==null;){switch(w.tag){case 5:tt=w.stateNode,qt=!1;break e;case 3:tt=w.stateNode.containerInfo,qt=!0;break e;case 4:tt=w.stateNode.containerInfo,qt=!0;break e}w=w.return}if(tt===null)throw Error(o(160));op(d,g,c),tt=null,qt=!1;var k=c.alternate;k!==null&&(k.return=null),c.return=null}catch(F){He(c,r,F)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)sp(r,t),r=r.sibling}function sp(t,r){var i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Vt(r,t),or(t),a&4){try{jo(3,t,t.return),ts(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:Vt(r,t),or(t),a&512&&i!==null&&qn(i,i.return);break;case 5:if(Vt(r,t),or(t),a&512&&i!==null&&qn(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,w=t.type,k=t.updateQueue;if(t.updateQueue=null,k!==null)try{w==="input"&&d.type==="radio"&&d.name!=null&&Pf(c,d),ka(w,g);var F=ka(w,d);for(g=0;g<k.length;g+=2){var H=k[g],G=k[g+1];H==="style"?zf(c,G):H==="dangerouslySetInnerHTML"?Uf(c,G):H==="children"?io(c,G):S(c,H,G,F)}switch(w){case"input":Sa(c,d);break;case"textarea":Lf(c,d);break;case"select":var U=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var K=d.value;K!=null?xn(c,!!d.multiple,K,!1):U!==!!d.multiple&&(d.defaultValue!=null?xn(c,!!d.multiple,d.defaultValue,!0):xn(c,!!d.multiple,d.multiple?[]:"",!1))}c[Ro]=d}catch(Y){He(t,t.return,Y)}}break;case 6:if(Vt(r,t),or(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(Vt(r,t),or(t),a&4&&i!==null&&i.memoizedState.isDehydrated)try{yo(r.containerInfo)}catch(Y){He(t,t.return,Y)}break;case 4:Vt(r,t),or(t);break;case 13:Vt(r,t),or(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&&ip(t);break;case 22:if(H=i!==null&&i.memoizedState!==null,t.mode&1?(ut=(F=ut)||H,Vt(r,t),ut=F):Vt(r,t),or(t),a&8192){if(F=t.memoizedState!==null,(t.stateNode.isHidden=F)&&!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:qn(U,U.return);var X=U.stateNode;if(typeof X.componentWillUnmount=="function"){a=U,i=U.return;try{r=a,X.props=r.memoizedProps,X.state=r.memoizedState,X.componentWillUnmount()}catch(Y){He(a,i,Y)}}break;case 5:qn(U,U.return);break;case 22:if(U.memoizedState!==null){up(G);continue}}K!==null?(K.return=U,Q=K):up(G)}H=H.sibling}e:for(H=null,G=t;;){if(G.tag===5){if(H===null){H=G;try{c=G.stateNode,F?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(w=G.stateNode,k=G.memoizedProps.style,g=k!=null&&k.hasOwnProperty("display")?k.display:null,w.style.display=Hf("display",g))}catch(Y){He(t,t.return,Y)}}}else if(G.tag===6){if(H===null)try{G.stateNode.nodeValue=F?"":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:Vt(r,t),or(t),a&4&&ip(t);break;case 21:break;default:Vt(r,t),or(t)}}function or(t){var r=t.flags;if(r&2){try{e:{for(var i=t.return;i!==null;){if(rp(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=np(t);Ql(t,d,c);break;case 3:case 4:var g=a.stateNode.containerInfo,w=np(t);Zl(t,w,g);break;default:throw Error(o(161))}}catch(k){He(t,t.return,k)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function q_(t,r,i){Q=t,ap(t)}function ap(t,r,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||es;if(!g){var w=c.alternate,k=w!==null&&w.memoizedState!==null||ut;w=es;var F=ut;if(es=g,(ut=k)&&!F)for(Q=c;Q!==null;)g=Q,k=g.child,g.tag===22&&g.memoizedState!==null?cp(c):k!==null?(k.return=g,Q=k):cp(c);for(;d!==null;)Q=d,ap(d),d=d.sibling;Q=c,es=w,ut=F}lp(t)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,Q=d):lp(t)}}function lp(t){for(;Q!==null;){var r=Q;if((r.flags&8772)!==0){var i=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:ut||ts(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!ut)if(i===null)a.componentDidMount();else{var c=r.elementType===r.type?i.memoizedProps:$t(r.type,i.memoizedProps);a.componentDidUpdate(c,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var d=r.updateQueue;d!==null&&uh(r,d,a);break;case 3:var g=r.updateQueue;if(g!==null){if(i=null,r.child!==null)switch(r.child.tag){case 5:i=r.child.stateNode;break;case 1:i=r.child.stateNode}uh(r,g,i)}break;case 5:var w=r.stateNode;if(i===null&&r.flags&4){i=w;var k=r.memoizedProps;switch(r.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(r.memoizedState===null){var F=r.alternate;if(F!==null){var H=F.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||r.flags&512&&Kl(r)}catch(U){He(r,r.return,U)}}if(r===t){Q=null;break}if(i=r.sibling,i!==null){i.return=r.return,Q=i;break}Q=r.return}}function up(t){for(;Q!==null;){var r=Q;if(r===t){Q=null;break}var i=r.sibling;if(i!==null){i.return=r.return,Q=i;break}Q=r.return}}function cp(t){for(;Q!==null;){var r=Q;try{switch(r.tag){case 0:case 11:case 15:var i=r.return;try{ts(4,r)}catch(k){He(r,i,k)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var c=r.return;try{a.componentDidMount()}catch(k){He(r,c,k)}}var d=r.return;try{Kl(r)}catch(k){He(r,d,k)}break;case 5:var g=r.return;try{Kl(r)}catch(k){He(r,g,k)}}}catch(k){He(r,r.return,k)}if(r===t){Q=null;break}var w=r.sibling;if(w!==null){w.return=r.return,Q=w;break}Q=r.return}}var V_=Math.ceil,rs=C.ReactCurrentDispatcher,Xl=C.ReactCurrentOwner,Ft=C.ReactCurrentBatchConfig,Se=0,Ye=null,qe=null,rt=0,Tt=0,Vn=Mr(0),Ze=0,Uo=null,ln=0,ns=0,Yl=0,Ho=null,vt=null,Jl=0,Wn=1/0,Er=null,os=!1,eu=null,Hr=null,is=!1,zr=null,ss=0,zo=0,tu=null,as=-1,ls=0;function dt(){return(Se&6)!==0?ze():as!==-1?as:as=ze()}function Gr(t){return(t.mode&1)===0?1:(Se&2)!==0&&rt!==0?rt&-rt:O_.transition!==null?(ls===0&&(ls=nd()),ls):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:dd(t.type)),t)}function Wt(t,r,i,a){if(50<zo)throw zo=0,tu=null,Error(o(185));fo(t,i,a),((Se&2)===0||t!==Ye)&&(t===Ye&&((Se&2)===0&&(ns|=i),Ze===4&&$r(t,rt)),_t(t,a),i===1&&Se===0&&(r.mode&1)===0&&(Wn=ze()+500,Fi&&Lr()))}function _t(t,r){var i=t.callbackNode;Ov(t,r);var a=yi(t,t===Ye?rt:0);if(a===0)i!==null&&ed(i),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(i!=null&&ed(i),r===1)t.tag===0?R_(dp.bind(null,t)):Xd(dp.bind(null,t)),x_(function(){(Se&6)===0&&Lr()}),i=null;else{switch(od(a)){case 1:i=Pa;break;case 4:i=td;break;case 16:i=hi;break;case 536870912:i=rd;break;default:i=hi}i=Ep(i,fp.bind(null,t))}t.callbackPriority=r,t.callbackNode=i}}function fp(t,r){if(as=-1,ls=0,(Se&6)!==0)throw Error(o(327));var i=t.callbackNode;if(Kn()&&t.callbackNode!==i)return null;var a=yi(t,t===Ye?rt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||r)r=us(t,a);else{r=a;var c=Se;Se|=2;var d=pp();(Ye!==t||rt!==r)&&(Er=null,Wn=ze()+500,cn(t,r));do try{Z_();break}catch(w){hp(t,w)}while(!0);_l(),rs.current=d,Se=c,qe!==null?r=0:(Ye=null,rt=0,r=Ze)}if(r!==0){if(r===2&&(c=Ma(t),c!==0&&(a=c,r=ru(t,c))),r===1)throw i=Uo,cn(t,0),$r(t,a),_t(t,ze()),i;if(r===6)$r(t,a);else{if(c=t.current.alternate,(a&30)===0&&!W_(c)&&(r=us(t,a),r===2&&(d=Ma(t),d!==0&&(a=d,r=ru(t,d))),r===1))throw i=Uo,cn(t,0),$r(t,a),_t(t,ze()),i;switch(t.finishedWork=c,t.finishedLanes=a,r){case 0:case 1:throw Error(o(345));case 2:fn(t,vt,Er);break;case 3:if($r(t,a),(a&130023424)===a&&(r=Jl+500-ze(),10<r)){if(yi(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){dt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=ll(fn.bind(null,t,vt,Er),r);break}fn(t,vt,Er);break;case 4:if($r(t,a),(a&4194240)===a)break;for(r=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);d=1<<g,g=r[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*V_(a/1960))-a,10<a){t.timeoutHandle=ll(fn.bind(null,t,vt,Er),a);break}fn(t,vt,Er);break;case 5:fn(t,vt,Er);break;default:throw Error(o(329))}}}return _t(t,ze()),t.callbackNode===i?fp.bind(null,t):null}function ru(t,r){var i=Ho;return t.current.memoizedState.isDehydrated&&(cn(t,r).flags|=256),t=us(t,r),t!==2&&(r=vt,vt=i,r!==null&&nu(r)),t}function nu(t){vt===null?vt=t:vt.push.apply(vt,t)}function W_(t){for(var r=t;;){if(r.flags&16384){var i=r.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(!zt(d(),c))return!1}catch{return!1}}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function $r(t,r){for(r&=~Yl,r&=~ns,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var i=31-Ht(r),a=1<<i;t[i]=-1,r&=~a}}function dp(t){if((Se&6)!==0)throw Error(o(327));Kn();var r=yi(t,0);if((r&1)===0)return _t(t,ze()),null;var i=us(t,r);if(t.tag!==0&&i===2){var a=Ma(t);a!==0&&(r=a,i=ru(t,a))}if(i===1)throw i=Uo,cn(t,0),$r(t,r),_t(t,ze()),i;if(i===6)throw Error(o(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,fn(t,vt,Er),_t(t,ze()),null}function ou(t,r){var i=Se;Se|=1;try{return t(r)}finally{Se=i,Se===0&&(Wn=ze()+500,Fi&&Lr())}}function un(t){zr!==null&&zr.tag===0&&(Se&6)===0&&Kn();var r=Se;Se|=1;var i=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=i,Se=r,(Se&6)===0&&Lr()}}function iu(){Tt=Vn.current,Pe(Vn)}function cn(t,r){t.finishedWork=null,t.finishedLanes=0;var i=t.timeoutHandle;if(i!==-1&&(t.timeoutHandle=-1,b_(i)),qe!==null)for(i=qe.return;i!==null;){var a=i;switch(pl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Pi();break;case 3:Gn(),Pe(mt),Pe(st),kl();break;case 5:Tl(a);break;case 4:Gn();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,qe=t=qr(t.current,null),rt=Tt=r,Ze=0,Uo=null,Yl=ns=ln=0,vt=Ho=null,on!==null){for(r=0;r<on.length;r++)if(i=on[r],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}on=null}return t}function hp(t,r){do{var i=qe;try{if(_l(),Vi.current=Qi,Wi){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Wi=!1}if(an=0,Xe=Ke=Be=null,Po=!1,Mo=0,Xl.current=null,i===null||i.return===null){Ze=1,Uo=r,qe=null;break}e:{var d=t,g=i.return,w=i,k=r;if(r=rt,w.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var F=k,H=w,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=Bh(g);if(K!==null){K.flags&=-257,jh(K,g,w,d,r),K.mode&1&&Lh(d,F,r),r=K,k=F;var X=r.updateQueue;if(X===null){var Y=new Set;Y.add(k),r.updateQueue=Y}else X.add(k);break e}else{if((r&1)===0){Lh(d,F,r),su();break e}k=Error(o(426))}}else if(Fe&&w.mode&1){var Ge=Bh(g);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),jh(Ge,g,w,d,r),yl($n(k,w));break e}}d=k=$n(k,w),Ze!==4&&(Ze=2),Ho===null?Ho=[d]:Ho.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,r&=-r,d.lanes|=r;var D=Mh(d,k,r);lh(d,D);break e;case 1:w=k;var R=d.type,M=d.stateNode;if((d.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Hr===null||!Hr.has(M)))){d.flags|=65536,r&=-r,d.lanes|=r;var $=Fh(d,w,r);lh(d,$);break e}}d=d.return}while(d!==null)}gp(i)}catch(ee){r=ee,qe===i&&i!==null&&(qe=i=i.return);continue}break}while(!0)}function pp(){var t=rs.current;return rs.current=Qi,t===null?Qi:t}function su(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),Ye===null||(ln&268435455)===0&&(ns&268435455)===0||$r(Ye,rt)}function us(t,r){var i=Se;Se|=2;var a=pp();(Ye!==t||rt!==r)&&(Er=null,cn(t,r));do try{K_();break}catch(c){hp(t,c)}while(!0);if(_l(),Se=i,rs.current=a,qe!==null)throw Error(o(261));return Ye=null,rt=0,Ze}function K_(){for(;qe!==null;)mp(qe)}function Z_(){for(;qe!==null&&!Ev();)mp(qe)}function mp(t){var r=_p(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,r===null?gp(t):qe=r,Xl.current=null}function gp(t){var r=t;do{var i=r.alternate;if(t=r.return,(r.flags&32768)===0){if(i=H_(i,r,Tt),i!==null){qe=i;return}}else{if(i=z_(i,r),i!==null){i.flags&=32767,qe=i;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ze=6,qe=null;return}}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);Ze===0&&(Ze=5)}function fn(t,r,i){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,Q_(t,r,i,a)}finally{Ft.transition=c,Oe=a}return null}function Q_(t,r,i,a){do Kn();while(zr!==null);if((Se&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(Nv(t,d),t===Ye&&(qe=Ye=null,rt=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||is||(is=!0,Ep(hi,function(){return Kn(),null})),d=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||d){d=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var w=Se;Se|=4,Xl.current=null,$_(t,i),sp(i,t),g_(sl),Ei=!!il,sl=il=null,t.current=i,q_(i),wv(),Se=w,Oe=g,Ft.transition=d}else t.current=i;if(is&&(is=!1,zr=t,ss=c),d=t.pendingLanes,d===0&&(Hr=null),xv(i.stateNode),_t(t,ze()),r!==null)for(a=t.onRecoverableError,i=0;i<r.length;i++)c=r[i],a(c.value,{componentStack:c.stack,digest:c.digest});if(os)throw os=!1,t=eu,eu=null,t;return(ss&1)!==0&&t.tag!==0&&Kn(),d=t.pendingLanes,(d&1)!==0?t===tu?zo++:(zo=0,tu=t):zo=0,Lr(),null}function Kn(){if(zr!==null){var t=od(ss),r=Ft.transition,i=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,zr===null)var a=!1;else{if(t=zr,zr=null,ss=0,(Se&6)!==0)throw Error(o(331));var c=Se;for(Se|=4,Q=t.current;Q!==null;){var d=Q,g=d.child;if((Q.flags&16)!==0){var w=d.deletions;if(w!==null){for(var k=0;k<w.length;k++){var F=w[k];for(Q=F;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(tp(H),H===F){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 D=d.sibling;if(D!==null){D.return=d.return,Q=D;break e}Q=d.return}}var R=t.current;for(Q=R;Q!==null;){g=Q;var M=g.child;if((g.subtreeFlags&2064)!==0&&M!==null)M.return=g,Q=M;else e:for(g=R;Q!==null;){if(w=Q,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:ts(9,w)}}catch(ee){He(w,w.return,ee)}if(w===g){Q=null;break e}var $=w.sibling;if($!==null){$.return=w.return,Q=$;break e}Q=w.return}}if(Se=c,Lr(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(pi,t)}catch{}a=!0}return a}finally{Oe=i,Ft.transition=r}}return!1}function yp(t,r,i){r=$n(i,r),r=Mh(t,r,1),t=jr(t,r,1),r=dt(),t!==null&&(fo(t,1,r),_t(t,r))}function He(t,r,i){if(t.tag===3)yp(t,t,i);else for(;r!==null;){if(r.tag===3){yp(r,t,i);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hr===null||!Hr.has(a))){t=$n(i,t),t=Fh(r,t,1),r=jr(r,t,1),t=dt(),r!==null&&(fo(r,1,t),_t(r,t));break}}r=r.return}}function X_(t,r,i){var a=t.pingCache;a!==null&&a.delete(r),r=dt(),t.pingedLanes|=t.suspendedLanes&i,Ye===t&&(rt&i)===i&&(Ze===4||Ze===3&&(rt&130023424)===rt&&500>ze()-Jl?cn(t,0):Yl|=i),_t(t,r)}function vp(t,r){r===0&&((t.mode&1)===0?r=1:(r=gi,gi<<=1,(gi&130023424)===0&&(gi=4194304)));var i=dt();t=yr(t,r),t!==null&&(fo(t,r,i),_t(t,i))}function Y_(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),vp(t,i)}function J_(t,r){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(r),vp(t,i)}var _p;_p=function(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps||mt.current)yt=!0;else{if((t.lanes&i)===0&&(r.flags&128)===0)return yt=!1,U_(t,r,i);yt=(t.flags&131072)!==0}else yt=!1,Fe&&(r.flags&1048576)!==0&&Yd(r,Bi,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;Ji(t,r),t=r.pendingProps;var c=Fn(r,st.current);zn(r,i),c=Nl(null,r,a,t,c,i);var d=Al();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,gt(a)?(d=!0,Mi(r)):d=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,bl(r),c.updater=Xi,r.stateNode=c,c._reactInternals=r,Ll(r,a,t,i),r=Hl(null,r,a,!0,d,i)):(r.tag=0,Fe&&d&&hl(r),ft(null,r,c,i),r=r.child),r;case 16:a=r.elementType;e:{switch(Ji(t,r),t=r.pendingProps,c=a._init,a=c(a._payload),r.type=a,c=r.tag=t1(a),t=$t(a,t),c){case 0:r=Ul(null,r,a,t,i);break e;case 1:r=qh(null,r,a,t,i);break e;case 11:r=Uh(null,r,a,t,i);break e;case 14:r=Hh(null,r,a,$t(a.type,t),i);break e}throw Error(o(306,a,""))}return r;case 0:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),Ul(t,r,a,c,i);case 1:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),qh(t,r,a,c,i);case 3:e:{if(Vh(r),t===null)throw Error(o(387));a=r.pendingProps,d=r.memoizedState,c=d.element,ah(t,r),$i(r,a,null,i);var g=r.memoizedState;if(a=g.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},r.updateQueue.baseState=d,r.memoizedState=d,r.flags&256){c=$n(Error(o(423)),r),r=Wh(t,r,a,i,c);break e}else if(a!==c){c=$n(Error(o(424)),r),r=Wh(t,r,a,i,c);break e}else for(xt=Pr(r.stateNode.containerInfo.firstChild),bt=r,Fe=!0,Gt=null,i=ih(r,null,a,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(jn(),a===c){r=_r(t,r,i);break e}ft(t,r,a,i)}r=r.child}return r;case 5:return ch(r),t===null&&gl(r),a=r.type,c=r.pendingProps,d=t!==null?t.memoizedProps:null,g=c.children,al(a,c)?g=null:d!==null&&al(a,d)&&(r.flags|=32),$h(t,r),ft(t,r,g,i),r.child;case 6:return t===null&&gl(r),null;case 13:return Kh(t,r,i);case 4:return xl(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=Un(r,null,a,i):ft(t,r,a,i),r.child;case 11:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),Uh(t,r,a,c,i);case 7:return ft(t,r,r.pendingProps,i),r.child;case 8:return ft(t,r,r.pendingProps.children,i),r.child;case 12:return ft(t,r,r.pendingProps.children,i),r.child;case 10:e:{if(a=r.type._context,c=r.pendingProps,d=r.memoizedProps,g=c.value,Ae(Hi,a._currentValue),a._currentValue=g,d!==null)if(zt(d.value,g)){if(d.children===c.children&&!mt.current){r=_r(t,r,i);break e}}else for(d=r.child,d!==null&&(d.return=r);d!==null;){var w=d.dependencies;if(w!==null){g=d.child;for(var k=w.firstContext;k!==null;){if(k.context===a){if(d.tag===1){k=vr(-1,i&-i),k.tag=2;var F=d.updateQueue;if(F!==null){F=F.shared;var H=F.pending;H===null?k.next=k:(k.next=H.next,H.next=k),F.pending=k}}d.lanes|=i,k=d.alternate,k!==null&&(k.lanes|=i),wl(d.return,i,r),w.lanes|=i;break}k=k.next}}else if(d.tag===10)g=d.type===r.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(o(341));g.lanes|=i,w=g.alternate,w!==null&&(w.lanes|=i),wl(g,i,r),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===r){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}ft(t,r,c.children,i),r=r.child}return r;case 9:return c=r.type,a=r.pendingProps.children,zn(r,i),c=Pt(c),a=a(c),r.flags|=1,ft(t,r,a,i),r.child;case 14:return a=r.type,c=$t(a,r.pendingProps),c=$t(a.type,c),Hh(t,r,a,c,i);case 15:return zh(t,r,r.type,r.pendingProps,i);case 17:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),Ji(t,r),r.tag=1,gt(a)?(t=!0,Mi(r)):t=!1,zn(r,i),Dh(r,a,c),Ll(r,a,c,i),Hl(null,r,a,!0,t,i);case 19:return Qh(t,r,i);case 22:return Gh(t,r,i)}throw Error(o(156,r.tag))};function Ep(t,r){return Jf(t,r)}function e1(t,r,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=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(t,r,i,a){return new e1(t,r,i,a)}function au(t){return t=t.prototype,!(!t||!t.isReactComponent)}function t1(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 qr(t,r){var i=t.alternate;return i===null?(i=Lt(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,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,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function cs(t,r,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 dn(i.children,c,d,r);case V:g=8,c|=8;break;case fe:return t=Lt(12,i,r,c|2),t.elementType=fe,t.lanes=d,t;case ue:return t=Lt(13,i,r,c),t.elementType=ue,t.lanes=d,t;case Ue:return t=Lt(19,i,r,c),t.elementType=Ue,t.lanes=d,t;case Ne:return fs(i,c,d,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case ie: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 r=Lt(g,i,r,c),r.elementType=t,r.type=a,r.lanes=d,r}function dn(t,r,i,a){return t=Lt(7,t,a,r),t.lanes=i,t}function fs(t,r,i,a){return t=Lt(22,t,a,r),t.elementType=Ne,t.lanes=i,t.stateNode={isHidden:!1},t}function lu(t,r,i){return t=Lt(6,t,null,r),t.lanes=i,t}function uu(t,r,i){return r=Lt(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function r1(t,r,i,a,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=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,r,i,a,c,d,g,w,k){return t=new r1(t,r,i,w,k),r===1?(r=1,d===!0&&(r|=8)):r=0,d=Lt(3,null,null,r),t.current=d,d.stateNode=t,d.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},bl(d),t}function n1(t,r,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:a==null?null:""+a,children:t,containerInfo:r,implementation:i}}function wp(t){if(!t)return Fr;t=t._reactInternals;e:{if(Jr(t)!==t||t.tag!==1)throw Error(o(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(gt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(o(171))}if(t.tag===1){var i=t.type;if(gt(i))return Zd(t,i,r)}return r}function Sp(t,r,i,a,c,d,g,w,k){return t=cu(i,a,!0,t,c,d,g,w,k),t.context=wp(null),i=t.current,a=dt(),c=Gr(i),d=vr(a,c),d.callback=r??null,jr(i,d,c),t.current.lanes=c,fo(t,c,a),_t(t,a),t}function ds(t,r,i,a){var c=r.current,d=dt(),g=Gr(c);return i=wp(i),r.context===null?r.context=i:r.pendingContext=i,r=vr(d,g),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=jr(c,r,g),t!==null&&(Wt(t,c,g,d),Gi(t,c,g)),g}function hs(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 bp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function fu(t,r){bp(t,r),(t=t.alternate)&&bp(t,r)}function o1(){return null}var xp=typeof reportError=="function"?reportError:function(t){console.error(t)};function du(t){this._internalRoot=t}ps.prototype.render=du.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(o(409));ds(t,r,null,null)},ps.prototype.unmount=du.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;un(function(){ds(null,t,null,null)}),r[hr]=null}};function ps(t){this._internalRoot=t}ps.prototype.unstable_scheduleHydration=function(t){if(t){var r=ad();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Ar.length&&r!==0&&r<Ar[i].priority;i++);Ar.splice(i,0,t),i===0&&cd(t)}};function hu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ms(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Tp(){}function i1(t,r,i,a,c){if(c){if(typeof a=="function"){var d=a;a=function(){var F=hs(g);d.call(F)}}var g=Sp(r,a,t,0,null,!1,!1,"",Tp);return t._reactRootContainer=g,t[hr]=g.current,Co(t.nodeType===8?t.parentNode:t),un(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var w=a;a=function(){var F=hs(k);w.call(F)}}var k=cu(t,0,!1,null,null,!1,!1,"",Tp);return t._reactRootContainer=k,t[hr]=k.current,Co(t.nodeType===8?t.parentNode:t),un(function(){ds(r,k,i,a)}),k}function gs(t,r,i,a,c){var d=i._reactRootContainer;if(d){var g=d;if(typeof c=="function"){var w=c;c=function(){var k=hs(g);w.call(k)}}ds(r,g,t,c)}else g=i1(i,r,t,c,a);return hs(g)}id=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var i=co(r.pendingLanes);i!==0&&(La(r,i|1),_t(r,ze()),(Se&6)===0&&(Wn=ze()+500,Lr()))}break;case 13:un(function(){var a=yr(t,1);if(a!==null){var c=dt();Wt(a,t,1,c)}}),fu(t,1)}},Ba=function(t){if(t.tag===13){var r=yr(t,134217728);if(r!==null){var i=dt();Wt(r,t,134217728,i)}fu(t,134217728)}},sd=function(t){if(t.tag===13){var r=Gr(t),i=yr(t,r);if(i!==null){var a=dt();Wt(i,t,r,a)}fu(t,r)}},ad=function(){return Oe},ld=function(t,r){var i=Oe;try{return Oe=t,r()}finally{Oe=i}},Na=function(t,r,i){switch(r){case"input":if(Sa(t,i),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<i.length;r++){var a=i[r];if(a!==t&&a.form===t.form){var c=Di(a);if(!c)throw Error(o(90));ct(a),Sa(a,c)}}}break;case"textarea":Lf(t,i);break;case"select":r=i.value,r!=null&&xn(t,!!i.multiple,r,!1)}},Vf=ou,Wf=un;var s1={usingClientEntryPoint:!1,Events:[Oo,Pn,Di,$f,qf,ou]},Go={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},a1={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=Xf(t),t===null?null:t.stateNode},findFiberByHostInstance:Go.findFiberByHostInstance||o1,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 ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ys.isDisabled&&ys.supportsFiber)try{pi=ys.inject(a1),er=ys}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s1,Et.createPortal=function(t,r){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hu(r))throw Error(o(200));return n1(t,r,null,i)},Et.createRoot=function(t,r){if(!hu(t))throw Error(o(299));var i=!1,a="",c=xp;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=cu(t,1,!1,null,null,i,!1,a,c),t[hr]=r.current,Co(t.nodeType===8?t.parentNode:t),new du(r)},Et.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=Xf(r),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return un(t)},Et.hydrate=function(t,r,i){if(!ms(r))throw Error(o(200));return gs(null,t,r,!0,i)},Et.hydrateRoot=function(t,r,i){if(!hu(t))throw Error(o(405));var a=i!=null&&i.hydratedSources||null,c=!1,d="",g=xp;if(i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),r=Sp(r,null,t,1,i??null,c,!1,d,g),t[hr]=r.current,Co(t),a)for(t=0;t<a.length;t++)i=a[t],c=i._getVersion,c=c(i._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[i,c]:r.mutableSourceEagerHydrationData.push(i,c);return new ps(r)},Et.render=function(t,r,i){if(!ms(r))throw Error(o(200));return gs(null,t,r,!1,i)},Et.unmountComponentAtNode=function(t){if(!ms(t))throw Error(o(40));return t._reactRootContainer?(un(function(){gs(null,null,t,!1,function(){t._reactRootContainer=null,t[hr]=null})}),!0):!1},Et.unstable_batchedUpdates=ou,Et.unstable_renderSubtreeIntoContainer=function(t,r,i,a){if(!ms(i))throw Error(o(200));if(t==null||t._reactInternals===void 0)throw Error(o(38));return gs(t,r,i,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Dp;function y1(){if(Dp)return gu.exports;Dp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),gu.exports=g1(),gu.exports}var Pp;function v1(){if(Pp)return _s;Pp=1;var e=y1();return _s.createRoot=e.createRoot,_s.hydrateRoot=e.hydrateRoot,_s}var _1=v1(),B=Jn();const r0=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 Mp;function E1(){if(Mp)return Eu;Mp=1;var e=Jn();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var o=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Eu.useSyncExternalStoreWithSelector=function(p,v,_,E,m){var T=l(null);if(T.current===null){var b={hasValue:!1,value:null};T.current=b}else b=T.current;T=f(function(){function N(x){if(!P){if(P=!0,O=x,x=E(x),m!==void 0&&b.hasValue){var L=b.value;if(m(L,x))return S=L}return S=x}if(L=S,o(O,x))return L;var z=E(x);return m!==void 0&&m(L,z)?(O=x,L):(O=x,S=z)}var P=!1,O,S,C=_===void 0?null:_;return[function(){return N(v())},C===null?void 0:function(){return N(C())}]},[v,_,E,m]);var A=s(p,T[0],T[1]);return u(function(){b.hasValue=!0,b.value=A},[A]),h(A),A},Eu}var Fp;function w1(){return Fp||(Fp=1,_u.exports=E1()),_u.exports}var S1=w1(),b1=B.version.startsWith("19"),x1=Symbol.for(b1?"react.transitional.element":"react.element"),T1=Symbol.for("react.portal"),C1=Symbol.for("react.fragment"),k1=Symbol.for("react.strict_mode"),R1=Symbol.for("react.profiler"),O1=Symbol.for("react.consumer"),N1=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),A1=Symbol.for("react.suspense"),I1=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),D1=Symbol.for("react.lazy"),P1=n0,M1=Kc;function F1(e){if(typeof e=="object"&&e!==null){const{$$typeof:n}=e;switch(n){case x1:switch(e=e.type,e){case C1:case R1:case k1:case A1:case I1:return e;default:switch(e=e&&e.$$typeof,e){case N1:case n0:case D1:case Kc:return e;case O1:return e;default:return n}}case T1:return n}}}function L1(e){return F1(e)===Kc}function B1(e,n,o,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:f}){let h=!1,p,v,_,E,m;function T(O,S){return p=O,v=S,_=e(p,v),E=n(s,v),m=o(_,E,v),h=!0,m}function b(){return _=e(p,v),n.dependsOnOwnProps&&(E=n(s,v)),m=o(_,E,v),m}function A(){return e.dependsOnOwnProps&&(_=e(p,v)),n.dependsOnOwnProps&&(E=n(s,v)),m=o(_,E,v),m}function N(){const O=e(p,v),S=!f(O,_);return _=O,S&&(m=o(_,E,v)),m}function P(O,S){const C=!u(S,v),x=!l(O,p,S,v);return p=O,v=S,C&&x?b():C?A():x?N():m}return function(S,C){return h?P(S,C):T(S,C)}}function j1(e,{initMapStateToProps:n,initMapDispatchToProps:o,initMergeProps:s,...l}){const u=n(e,l),f=o(e,l),h=s(e,l);return B1(u,f,h,e,l)}function U1(e,n){const o={};for(const s in e){const l=e[s];typeof l=="function"&&(o[s]=(...u)=>n(l(...u)))}return o}function yc(e){return function(o){const s=e(o);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Lp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function o0(e,n){return function(s,{displayName:l}){const u=function(h,p){return u.dependsOnOwnProps?u.mapToProps(h,p):u.mapToProps(h,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(h,p){u.mapToProps=e,u.dependsOnOwnProps=Lp(e);let v=u(h,p);return typeof v=="function"&&(u.mapToProps=v,u.dependsOnOwnProps=Lp(v),v=u(h,p)),v},u}}function Zc(e,n){return(o,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${n} argument when connecting component ${s.wrappedComponentName}.`)}}function H1(e){return e&&typeof e=="object"?yc(n=>U1(e,n)):e?typeof e=="function"?o0(e):Zc(e,"mapDispatchToProps"):yc(n=>({dispatch:n}))}function z1(e){return e?typeof e=="function"?o0(e):Zc(e,"mapStateToProps"):yc(()=>({}))}function G1(e,n,o){return{...o,...e,...n}}function $1(e){return function(o,{displayName:s,areMergedPropsEqual:l}){let u=!1,f;return function(p,v,_){const E=e(p,v,_);return u?l(E,f)||(f=E):(u=!0,f=E),f}}}function q1(e){return e?typeof e=="function"?$1(e):Zc(e,"mergeProps"):()=>G1}function V1(e){e()}function W1(){let e=null,n=null;return{clear(){e=null,n=null},notify(){V1(()=>{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=n={callback:o,next:null,prev:n};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Bp={notify(){},get:()=>[]};function i0(e,n){let o,s=Bp,l=0,u=!1;function f(A){_();const N=s.subscribe(A);let P=!1;return()=>{P||(P=!0,N(),E())}}function h(){s.notify()}function p(){b.onStateChange&&b.onStateChange()}function v(){return u}function _(){l++,o||(o=n?n.addNestedSub(p):e.subscribe(p),s=W1())}function E(){l--,o&&l===0&&(o(),o=void 0,s.clear(),s=Bp)}function m(){u||(u=!0,_())}function T(){u&&(u=!1,E())}const b={addNestedSub:f,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:v,trySubscribe:m,tryUnsubscribe:T,getListeners:()=>s};return b}var K1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z1=K1(),Q1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",X1=Q1(),Y1=()=>Z1||X1?B.useLayoutEffect:B.useEffect,Js=Y1();function jp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function wu(e,n){if(jp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;const o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!Object.prototype.hasOwnProperty.call(n,o[l])||!jp(e[o[l]],n[o[l]]))return!1;return!0}var J1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rE={[P1]:tE,[M1]:s0};function Up(e){return L1(e)?s0:rE[e.$$typeof]||J1}var nE=Object.defineProperty,oE=Object.getOwnPropertyNames,Hp=Object.getOwnPropertySymbols,iE=Object.getOwnPropertyDescriptor,sE=Object.getPrototypeOf,zp=Object.prototype;function vc(e,n){if(typeof n!="string"){if(zp){const u=sE(n);u&&u!==zp&&vc(e,u)}let o=oE(n);Hp&&(o=o.concat(Hp(n)));const s=Up(e),l=Up(n);for(let u=0;u<o.length;++u){const f=o[u];if(!eE[f]&&!(l&&l[f])&&!(s&&s[f])){const h=iE(n,f);try{nE(e,f,h)}catch{}}}}return e}var Su=Symbol.for("react-redux-context"),bu=typeof globalThis<"u"?globalThis:{};function aE(){if(!B.createContext)return{};const e=bu[Su]??(bu[Su]=new Map);let n=e.get(B.createContext);return n||(n=B.createContext(null),e.set(B.createContext,n)),n}var Cr=aE(),lE=[null,null];function uE(e,n,o){Js(()=>e(...n),o)}function cE(e,n,o,s,l,u){e.current=s,o.current=!1,l.current&&(l.current=null,u())}function fE(e,n,o,s,l,u,f,h,p,v,_){if(!e)return()=>{};let E=!1,m=null;const T=()=>{if(E||!h.current)return;const A=n.getState();let N,P;try{N=s(A,l.current)}catch(O){P=O,m=O}P||(m=null),N===u.current?f.current||v():(u.current=N,p.current=N,f.current=!0,_())};return o.onStateChange=T,o.trySubscribe(),T(),()=>{if(E=!0,o.tryUnsubscribe(),o.onStateChange=null,m)throw m}}function dE(e,n){return e===n}function hE(e,n,o,{pure:s,areStatesEqual:l=dE,areOwnPropsEqual:u=wu,areStatePropsEqual:f=wu,areMergedPropsEqual:h=wu,forwardRef:p=!1,context:v=Cr}={}){const _=v,E=z1(e),m=H1(n),T=q1(o),b=!!e;return N=>{const P=N.displayName||N.name||"Component",O=`Connect(${P})`,S={shouldHandleStateChanges:b,displayName:O,wrappedComponentName:P,WrappedComponent:N,initMapStateToProps:E,initMapDispatchToProps:m,initMergeProps:T,areStatesEqual:l,areStatePropsEqual:f,areOwnPropsEqual:u,areMergedPropsEqual:h};function C(z){const[V,fe,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ct,...Jt}=z;return[z.context,ct,Jt]},[z]),ie=B.useMemo(()=>{let ct=_;return V!=null&&V.Consumer,ct},[V,_]),pe=B.useContext(ie),ue=!!z.store&&!!z.store.getState&&!!z.store.dispatch,Ue=!!pe&&!!pe.store,Ie=ue?z.store:pe.store,$e=Ue?pe.getServerState:Ie.getState,Ne=B.useMemo(()=>j1(Ie.dispatch,S),[Ie]),[W,re]=B.useMemo(()=>{if(!b)return lE;const ct=i0(Ie,ue?void 0:pe.subscription),Jt=ct.notifyNestedSubs.bind(ct);return[ct,Jt]},[Ie,ue,pe]),Z=B.useMemo(()=>ue?pe:{...pe,subscription:W},[ue,pe,W]),I=B.useRef(void 0),j=B.useRef(te),ce=B.useRef(void 0),he=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Js(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ce.current&&te===j.current?ce.current:Ne(Ie.getState(),te),[Ie,te]),Te=B.useMemo(()=>Jt=>W?fE(b,Ie,W,Ne,j,I,he,ye,ce,re,Jt):()=>{},[W]);uE(cE,[j,I,he,te,ce,re]);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,ce.current=void 0,I.current=Re});const et=B.useMemo(()=>B.createElement(N,{...Re,ref:fe}),[fe,N,Re]);return B.useMemo(()=>b?B.createElement(ie.Provider,{value:Z},et):et,[ie,et,Z])}const L=B.memo(C);if(L.WrappedComponent=N,L.displayName=C.displayName=O,p){const V=B.forwardRef(function(te,ie){return B.createElement(L,{...te,reactReduxForwardedRef:ie})});return V.displayName=O,V.WrappedComponent=N,vc(V,N)}return vc(L,N)}}var pE=hE;function mE(e){const{children:n,context:o,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=i0(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||Cr;return B.createElement(h.Provider,{value:u},n)}var gE=mE;function Qc(e=Cr){return function(){return B.useContext(e)}}var a0=Qc();function l0(e=Cr){const n=e===Cr?a0:Qc(e),o=()=>{const{store:s}=n();return s};return Object.assign(o,{withTypes:()=>o}),o}var yE=l0();function vE(e=Cr){const n=e===Cr?yE:l0(e),o=()=>n().dispatch;return Object.assign(o,{withTypes:()=>o}),o}var _E=vE(),EE=(e,n)=>e===n;function wE(e=Cr){const n=e===Cr?a0:Qc(e),o=(s,l={})=>{const{equalityFn:u=EE}=typeof l=="function"?{equalityFn:l}:l,f=n(),{store:h,subscription:p,getServerState:v}=f;B.useRef(!0);const _=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),E=S1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,v||h.getState,_,u);return B.useDebugValue(E),E};return Object.assign(o,{withTypes:()=>o}),o}var SE=wE(),xu={exports:{}};/*!
|
|
53
|
-
Copyright (c) 2018 Jed Watson.
|
|
54
|
-
Licensed under the MIT License (MIT), see
|
|
55
|
-
http://jedwatson.github.io/classnames
|
|
56
|
-
*/var Gp;function bE(){return Gp||(Gp=1,function(e){(function(){var n={}.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)n.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 xE=bE();const q=sa(xE);var _c=function(e,n){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,n)};function jt(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");_c(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}var J=function(){return J=Object.assign||function(n){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)&&(n[u]=o[u])}return n},J.apply(this,arguments)};function aa(e,n){var o={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.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++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(o[s[l]]=e[s[l]]);return o}function ar(e,n,o){if(o||arguments.length===2)for(var s=0,l=n.length,u;s<l;s++)(u||!(s in n))&&(u||(u=Array.prototype.slice.call(n,0,s)),u[s]=n[s]);return e.concat(u||Array.prototype.slice.call(n))}function ir(e,n){var o=n&&n.cache?n.cache:AE,s=n&&n.serializer?n.serializer:OE,l=n&&n.strategy?n.strategy:kE;return l(e,{cache:o,serializer:s})}function TE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function CE(e,n,o,s){var l=TE(s)?s:o(s),u=n.get(l);return typeof u>"u"&&(u=e.call(this,s),n.set(l,u)),u}function u0(e,n,o){var s=Array.prototype.slice.call(arguments,3),l=o(s),u=n.get(l);return typeof u>"u"&&(u=e.apply(this,s),n.set(l,u)),u}function c0(e,n,o,s,l){return o.bind(n,e,s,l)}function kE(e,n){var o=e.length===1?CE:u0;return c0(e,this,o,n.cache.create(),n.serializer)}function RE(e,n){return c0(e,this,u0,n.cache.create(),n.serializer)}var OE=function(){return JSON.stringify(arguments)},NE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(n){return this.cache[n]},e.prototype.set=function(n,o){this.cache[n]=o},e}(),AE={create:function(){return new NE}},sr={variadic:RE},_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 Qn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qn||(Qn={}));function $p(e){return e.type===Me.literal}function IE(e){return e.type===Me.argument}function f0(e){return e.type===Me.number}function d0(e){return e.type===Me.date}function h0(e){return e.type===Me.time}function p0(e){return e.type===Me.select}function m0(e){return e.type===Me.plural}function DE(e){return e.type===Me.pound}function g0(e){return e.type===Me.tag}function y0(e){return!!(e&&typeof e=="object"&&e.type===Qn.number)}function Ec(e){return!!(e&&typeof e=="object"&&e.type===Qn.dateTime)}var v0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,PE=/(?:[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 ME(e){var n={};return e.replace(PE,function(o){var s=o.length;switch(o[0]){case"G":n.era=s===4?"long":s===5?"narrow":"short";break;case"y":n.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][s-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][s-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][s-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][s-1];break;case"s":n.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n}var FE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function LE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(FE).filter(function(m){return m.length>0}),o=[],s=0,l=n;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 E=_[v];if(E.length===0)throw new Error("Invalid number skeleton")}o.push({stem:h,options:p})}return o}function BE(e){return e.replace(/^(.*?)-/,"")}var qp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_0=/^(@+)?(\+|#+)?[rs]?$/g,jE=/(\*)(0+)|(#+)(0+)|(0+)/g,E0=/^(0+)$/;function Vp(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(_0,function(o,s,l){return typeof l!="string"?(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length):l==="+"?n.minimumSignificantDigits=s.length:s[0]==="#"?n.maximumSignificantDigits=s.length:(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length+(typeof l=="string"?l.length:0)),""}),n}function w0(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 UE(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var o=e.slice(0,2);if(o==="+!"?(n.signDisplay="always",e=e.slice(2)):o==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!E0.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Wp(e){var n={},o=w0(e);return o||n}function HE(e){for(var n={},o=0,s=e;o<s.length;o++){var l=s[o];switch(l.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=l.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=BE(l.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=J(J(J({},n),{notation:"scientific"}),l.options.reduce(function(p,v){return J(J({},p),Wp(v))},{}));continue;case"engineering":n=J(J(J({},n),{notation:"engineering"}),l.options.reduce(function(p,v){return J(J({},p),Wp(v))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(jE,function(p,v,_,E,m,T){if(v)n.minimumIntegerDigits=_.length;else{if(E&&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(E0.test(l.stem)){n.minimumIntegerDigits=l.stem.length;continue}if(qp.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace(qp,function(p,v,_,E,m,T){return _==="*"?n.minimumFractionDigits=v.length:E&&E[0]==="#"?n.maximumFractionDigits=E.length:m&&T?(n.minimumFractionDigits=m.length,n.maximumFractionDigits=m.length+T.length):(n.minimumFractionDigits=v.length,n.maximumFractionDigits=v.length),""});var u=l.options[0];u==="w"?n=J(J({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=J(J({},n),Vp(u)));continue}if(_0.test(l.stem)){n=J(J({},n),Vp(l.stem));continue}var f=w0(l.stem);f&&(n=J(J({},n),f));var h=UE(l.stem);h&&(n=J(J({},n),h))}return n}var Es={"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 zE(e,n){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=GE(n);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 GE(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var o=e.language,s;o!=="root"&&(s=e.maximize().region);var l=Es[s||""]||Es[o||""]||Es["".concat(o,"-001")]||Es["001"];return l[0]}var Tu,$E=new RegExp("^".concat(v0.source,"*")),qE=new RegExp("".concat(v0.source,"*$"));function we(e,n){return{start:e,end:n}}var VE=!!String.prototype.startsWith&&"_a".startsWith("a",1),WE=!!String.fromCodePoint,KE=!!Object.fromEntries,ZE=!!String.prototype.codePointAt,QE=!!String.prototype.trimStart,XE=!!String.prototype.trimEnd,YE=!!Number.isSafeInteger,JE=YE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wc=!0;try{var ew=b0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wc=((Tu=ew.exec("a"))===null||Tu===void 0?void 0:Tu[0])==="a"}catch{wc=!1}var Kp=VE?function(n,o,s){return n.startsWith(o,s)}:function(n,o,s){return n.slice(s,s+o.length)===o},Sc=WE?String.fromCodePoint:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];for(var s="",l=n.length,u=0,f;l>u;){if(f=n[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},Zp=KE?Object.fromEntries:function(n){for(var o={},s=0,l=n;s<l.length;s++){var u=l[s],f=u[0],h=u[1];o[f]=h}return o},S0=ZE?function(n,o){return n.codePointAt(o)}:function(n,o){var s=n.length;if(!(o<0||o>=s)){var l=n.charCodeAt(o),u;return l<55296||l>56319||o+1===s||(u=n.charCodeAt(o+1))<56320||u>57343?l:(l-55296<<10)+(u-56320)+65536}},tw=QE?function(n){return n.trimStart()}:function(n){return n.replace($E,"")},rw=XE?function(n){return n.trimEnd()}:function(n){return n.replace(qE,"")};function b0(e,n){return new RegExp(e,n)}var bc;if(wc){var Qp=b0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bc=function(n,o){var s;Qp.lastIndex=o;var l=Qp.exec(n);return(s=l[1])!==null&&s!==void 0?s:""}}else bc=function(n,o){for(var s=[];;){var l=S0(n,o);if(l===void 0||x0(l)||sw(l))break;s.push(l),o+=l>=65536?2:1}return Sc.apply(void 0,s)};var nw=function(){function e(n,o){o===void 0&&(o={}),this.message=n,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(n,o,s){for(var l=[];!this.isEOF();){var u=this.char();if(u===123){var f=this.parseArgument(n,s);if(f.err)return f;l.push(f.val)}else{if(u===125&&n>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(n,o);if(f.err)return f;l.push(f.val)}else{var f=this.parseLiteral(n,o);if(f.err)return f;l.push(f.val)}}}return{val:l,err:null}},e.prototype.parseTag=function(n,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(n+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 n=this.offset();for(this.bump();!this.isEOF()&&iw(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,o){for(var s=this.clonePosition(),l="";;){var u=this.tryParseQuote(o);if(u){l+=u;continue}var f=this.tryParseUnquoted(n,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||!ow(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var 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 Sc.apply(void 0,o)},e.prototype.tryParseUnquoted=function(n,o){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(o==="plural"||o==="selectordinal")||s===125&&n>0?null:(this.bump(),Sc(s))},e.prototype.parseArgument=function(n,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(n,o,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),o=this.offset(),s=bc(this.message,o),l=o+s.length;this.bumpTo(l);var u=this.clonePosition(),f=we(n,u);return{value:s,location:f}},e.prototype.parseArgumentOptions=function(n,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(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var m=rw(E.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 b=this.tryParseArgumentClose(l);if(b.err)return b;var A=we(l,this.clonePosition());if(v&&Kp(v==null?void 0:v.style,"::",0)){var N=tw(v.style.slice(2));if(h==="number"){var E=this.parseNumberSkeletonFromString(N,v.styleLocation);return E.err?E:{val:{type:Me.number,value:s,location:A,style:E.val},err:null}}else{if(N.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,A);var P=N;this.locale&&(P=zE(N,this.locale));var m={type:Qn.dateTime,pattern:P,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?ME(P):{}},O=h==="date"?Me.date:Me.time;return{val:{type:O,value:s,location:A,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:A,style:(u=v==null?void 0:v.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,we(S,J({},S)));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 E=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),C=this.parseIdentifierIfPossible(),x=E.val}var L=this.tryParsePluralOrSelectOptions(n,h,o,C);if(L.err)return L;var b=this.tryParseArgumentClose(l);if(b.err)return b;var z=we(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Zp(L.val),location:z},err:null}:{val:{type:Me.plural,value:s,options:Zp(L.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(n){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=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:{n+=1,this.bump();break}case 125:{if(n>0)n-=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(n,o){var s=[];try{s=LE(n)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,o)}return{val:{type:Qn.number,tokens:s,location:o,parsedOptions:this.shouldParseSkeletons?HE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,o,s,l){for(var u,f=!1,h=[],p=new Set,v=l.value,_=l.location;;){if(v.length===0){var E=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(E,this.clonePosition()),v=this.message.slice(E.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 b=this.parseMessage(n+1,o,s);if(b.err)return b;var A=this.tryParseArgumentClose(T);if(A.err)return A;h.push([v,{value:b.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(n,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,JE(f)?{val:f,err:null}:this.error(o,p)):this.error(n,p)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var o=S0(this.message,n);if(o===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return o},e.prototype.error=function(n,o){return{val:null,err:{kind:n,message:this.message,location:o}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(Kp(this.message,n,this.offset())){for(var o=0;o<n.length;o++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var o=this.offset(),s=this.message.indexOf(n,o);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var o=this.offset();if(o===n)break;if(o>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&x0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),o=this.offset(),s=this.message.charCodeAt(o+(n>=65536?2:1));return s??null},e}();function xc(e){return e>=97&&e<=122||e>=65&&e<=90}function ow(e){return xc(e)||e===47}function iw(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 x0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function sw(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(n){if(delete n.location,p0(n)||m0(n))for(var o in n.options)delete n.options[o].location,Tc(n.options[o].value);else f0(n)&&y0(n.style)||(d0(n)||h0(n))&&Ec(n.style)?delete n.style.location:g0(n)&&Tc(n.children)})}function aw(e,n){n===void 0&&(n={}),n=J({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var o=new nw(e,n).parse();if(o.err){var s=SyntaxError(_e[o.err.kind]);throw s.location=o.err.location,s.originalMessage=o.err.message,s}return n!=null&&n.captureLocation||Tc(o.val),o.val}var cr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(cr||(cr={}));var Yr=function(e){jt(n,e);function n(o,s,l){var u=e.call(this,o)||this;return u.code=s,u.originalMessage=l,u}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),Xp=function(e){jt(n,e);function n(o,s,l,u){return e.call(this,'Invalid values for "'.concat(o,'": "').concat(s,'". Options are "').concat(Object.keys(l).join('", "'),'"'),cr.INVALID_VALUE,u)||this}return n}(Yr),lw=function(e){jt(n,e);function n(o,s,l){return e.call(this,'Value for "'.concat(o,'" must be of type ').concat(s),cr.INVALID_VALUE,l)||this}return n}(Yr),uw=function(e){jt(n,e);function n(o,s){return e.call(this,'The intl string context variable "'.concat(o,'" was not provided to the string "').concat(s,'"'),cr.MISSING_VALUE,s)||this}return n}(Yr),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function cw(e){return e.length<2?e:e.reduce(function(n,o){var s=n[n.length-1];return!s||s.type!==ht.literal||o.type!==ht.literal?n.push(o):s.value+=o.value,n},[])}function T0(e){return typeof e=="function"}function Ws(e,n,o,s,l,u,f){if(e.length===1&&$p(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($p(_)){h.push({type:ht.literal,value:_.value});continue}if(DE(_)){typeof u=="number"&&h.push({type:ht.literal,value:o.getNumberFormat(n).format(u)});continue}var E=_.value;if(!(l&&E in l))throw new uw(E,f);var m=l[E];if(IE(_)){(!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(d0(_)){var T=typeof _.style=="string"?s.date[_.style]:Ec(_.style)?_.style.parsedOptions:void 0;h.push({type:ht.literal,value:o.getDateTimeFormat(n,T).format(m)});continue}if(h0(_)){var T=typeof _.style=="string"?s.time[_.style]:Ec(_.style)?_.style.parsedOptions:s.time.medium;h.push({type:ht.literal,value:o.getDateTimeFormat(n,T).format(m)});continue}if(f0(_)){var T=typeof _.style=="string"?s.number[_.style]:y0(_.style)?_.style.parsedOptions:void 0;T&&T.scale&&(m=m*(T.scale||1)),h.push({type:ht.literal,value:o.getNumberFormat(n,T).format(m)});continue}if(g0(_)){var b=_.children,A=_.value,N=l[A];if(!T0(N))throw new lw(A,"function",f);var P=Ws(b,n,o,s,l,u),O=N(P.map(function(x){return x.value}));Array.isArray(O)||(O=[O]),h.push.apply(h,O.map(function(x){return{type:typeof x=="string"?ht.literal:ht.object,value:x}}))}if(p0(_)){var S=_.options[m]||_.options.other;if(!S)throw new Xp(_.value,m,Object.keys(_.options),f);h.push.apply(h,Ws(S.value,n,o,s,l));continue}if(m0(_)){var S=_.options["=".concat(m)];if(!S){if(!Intl.PluralRules)throw new Yr(`Intl.PluralRules is not available in this environment.
|
|
57
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
58
|
-
`,cr.MISSING_INTL_API,f);var C=o.getPluralRules(n,{type:_.pluralType}).select(m-(_.offset||0));S=_.options[C]||_.options.other}if(!S)throw new Xp(_.value,m,Object.keys(_.options),f);h.push.apply(h,Ws(S.value,n,o,s,l,m-(_.offset||0)));continue}}return cw(h)}function fw(e,n){return n?J(J(J({},e||{}),n||{}),Object.keys(e).reduce(function(o,s){return o[s]=J(J({},e[s]),n[s]||{}),o},{})):e}function dw(e,n){return n?Object.keys(e).reduce(function(o,s){return o[s]=fw(e[s],n[s]),o},J({},e)):e}function Cu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,o){e[n]=o}}}}}function hw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ir(function(){for(var n,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return new((n=Intl.NumberFormat).bind.apply(n,ar([void 0],o,!1)))},{cache:Cu(e.number),strategy:sr.variadic}),getDateTimeFormat:ir(function(){for(var n,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return new((n=Intl.DateTimeFormat).bind.apply(n,ar([void 0],o,!1)))},{cache:Cu(e.dateTime),strategy:sr.variadic}),getPluralRules:ir(function(){for(var n,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return new((n=Intl.PluralRules).bind.apply(n,ar([void 0],o,!1)))},{cache:Cu(e.pluralRules),strategy:sr.variadic})}}var C0=function(){function e(n,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(E,m){return!E.length||m.type!==ht.literal||typeof E[E.length-1]!="string"?E.push(m.value):E[E.length-1]+=m.value,E},[]);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 n=="string"){if(this.message=n,!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(n,J(J({},h),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=dw(e.formats,s),this.formatters=l&&l.formatters||hw(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(n){if(!(typeof Intl.Locale>"u")){var o=Intl.NumberFormat.supportedLocalesOf(n);return o.length>0?new Intl.Locale(o[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=aw,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}(),wn;(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"})(wn||(wn={}));var ai=function(e){jt(n,e);function n(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,n),u}return n}(Error),pw=function(e){jt(n,e);function n(o,s){return e.call(this,wn.UNSUPPORTED_FORMATTER,o,s)||this}return n}(ai),mw=function(e){jt(n,e);function n(o,s){return e.call(this,wn.INVALID_CONFIG,o,s)||this}return n}(ai),Yp=function(e){jt(n,e);function n(o,s){return e.call(this,wn.MISSING_DATA,o,s)||this}return n}(ai),Ut=function(e){jt(n,e);function n(o,s,l){var u=e.call(this,wn.FORMAT_ERROR,"".concat(o,`
|
|
62
|
-
Locale: `).concat(s,`
|
|
63
|
-
`),l)||this;return u.locale=s,u}return n}(ai),ku=function(e){jt(n,e);function n(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 n}(Ut),gw=function(e){jt(n,e);function n(o,s){var l=e.call(this,wn.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 n}(ai);function yw(e,n,o){if(o===void 0&&(o=Error),!e)throw new o(n)}function eo(e,n,o){return o===void 0&&(o={}),n.reduce(function(s,l){return l in e?s[l]=e[l]:l in o&&(s[l]=o[l]),s},{})}var vw=function(e){},_w=function(e){},k0={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:vw,onWarn:_w};function R0(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function hn(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,o){e[n]=o}}}}}function Ew(e){e===void 0&&(e=R0());var n=Intl.RelativeTimeFormat,o=Intl.ListFormat,s=Intl.DisplayNames,l=ir(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.DateTimeFormat).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.dateTime),strategy:sr.variadic}),u=ir(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.NumberFormat).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.number),strategy:sr.variadic}),f=ir(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.PluralRules).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.pluralRules),strategy:sr.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:ir(function(h,p,v,_){return new C0(h,p,v,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:f}},_||{}))},{cache:hn(e.message),strategy:sr.variadic}),getRelativeTimeFormat:ir(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(n.bind.apply(n,ar([void 0],h,!1)))},{cache:hn(e.relativeTime),strategy:sr.variadic}),getPluralRules:f,getListFormat:ir(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(o.bind.apply(o,ar([void 0],h,!1)))},{cache:hn(e.list),strategy:sr.variadic}),getDisplayNames:ir(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,ar([void 0],h,!1)))},{cache:hn(e.displayNames),strategy:sr.variadic})}}function Xc(e,n,o,s){var l=e&&e[n],u;if(l&&(u=l[o]),u)return u;s(new pw("No ".concat(n," format named: ").concat(o)))}function ws(e,n){return Object.keys(e).reduce(function(o,s){return o[s]=J({timeZone:n},e[s]),o},{})}function Jp(e,n){var o=Object.keys(J(J({},e),n));return o.reduce(function(s,l){return s[l]=J(J({},e[l]||{}),n[l]||{}),s},{})}function em(e,n){if(!n)return e;var o=C0.formats;return J(J(J({},o),e),{date:Jp(ws(o.date,n),ws(e.date||{},n)),time:Jp(ws(o.time,n),ws(e.time||{},n))})}var Cc=function(e,n,o,s,l){var u=e.locale,f=e.formats,h=e.messages,p=e.defaultLocale,v=e.defaultFormats,_=e.fallbackOnEmptyString,E=e.onError,m=e.timeZone,T=e.defaultRichTextElements;o===void 0&&(o={id:""});var b=o.id,A=o.defaultMessage;yw(!!b,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var N=String(b),P=h&&Object.prototype.hasOwnProperty.call(h,N)&&h[N];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=em(f,m),v=em(v,m),!P){if(_===!1&&P==="")return P;if((!A||u&&u.toLowerCase()!==p.toLowerCase())&&E(new gw(o,u)),A)try{var O=n.getMessageFormat(A,p,v,l);return O.format(s)}catch(S){return E(new ku('Error formatting default message for: "'.concat(N,'", rendering default message verbatim'),u,o,S)),typeof A=="string"?A:N}return N}try{var O=n.getMessageFormat(P,u,f,J({formatters:n},l||{}));return O.format(s)}catch(S){E(new ku('Error formatting message: "'.concat(N,'", using ').concat(A?"default message":"id"," as fallback."),u,o,S))}if(A)try{var O=n.getMessageFormat(A,p,v,l);return O.format(s)}catch(S){E(new ku('Error formatting the default message for: "'.concat(N,'", rendering message verbatim'),u,o,S))}return typeof P=="string"?P:typeof A=="string"?A:N},ww=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function li(e,n,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,n,p,f)),_=eo(s,ww,v);return n==="time"&&!_.hour&&!_.minute&&!_.second&&!_.timeStyle&&!_.dateStyle&&(_=J(J({},_),{hour:"numeric",minute:"numeric"})),o(l,_)}function Sw(e,n){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 li(e,"date",n,f).format(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return String(h)}function bw(e,n){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 li(e,"time",n,f).format(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return String(h)}function xw(e,n){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 li(e,"dateTimeRange",n,h).formatRange(p,v)}catch(_){e.onError(new Ut("Error formatting date time range.",e.locale,_))}return String(p)}function Tw(e,n){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 li(e,"date",n,f).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return[]}function Cw(e,n){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 li(e,"time",n,f).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return[]}var kw=["style","type","fallback","languageDisplay"];function Rw(e,n,o,s){var l=e.locale,u=e.onError,f=Intl.DisplayNames;f||u(new Yr(`Intl.DisplayNames is not available in this environment.
|
|
68
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
69
|
-
`,cr.MISSING_INTL_API));var h=eo(s,kw);try{return n(l,h).of(o)}catch(p){u(new Ut("Error formatting display name.",l,p))}}var Ow=["type","style"],tm=Date.now();function Nw(e){return"".concat(tm,"_").concat(e,"_").concat(tm)}function Aw(e,n,o,s){s===void 0&&(s={});var l=O0(e,n,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 O0(e,n,o,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var f=Intl.ListFormat;f||u(new Yr(`Intl.ListFormat is not available in this environment.
|
|
70
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
71
|
-
`,cr.MISSING_INTL_API));var h=eo(s,Ow);try{var p={},v=o.map(function(_,E){if(typeof _=="object"){var m=Nw(E);return p[m]=_,m}return String(_)});return n(l,h).formatToParts(v).map(function(_){return _.type==="literal"?_:J(J({},_),{value:p[_.value]||_.value})})}catch(_){u(new Ut("Error formatting list.",l,_))}return o}var Iw=["type"];function Dw(e,n,o,s){var l=e.locale,u=e.onError;s===void 0&&(s={}),Intl.PluralRules||u(new Yr(`Intl.PluralRules is not available in this environment.
|
|
72
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
73
|
-
`,cr.MISSING_INTL_API));var f=eo(s,Iw);try{return n(l,f).select(o)}catch(h){u(new Ut("Error formatting plural.",l,h))}return"other"}var Pw=["numeric","style"];function Mw(e,n,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,Pw,h);return n(s,p)}function Fw(e,n,o,s,l){l===void 0&&(l={}),s||(s="second");var u=Intl.RelativeTimeFormat;u||e.onError(new Yr(`Intl.RelativeTimeFormat is not available in this environment.
|
|
74
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
75
|
-
`,cr.MISSING_INTL_API));try{return Mw(e,n,l).format(o,s)}catch(f){e.onError(new Ut("Error formatting relative time.",e.locale,f))}return String(o)}var Lw=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function N0(e,n,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,Lw,h);return n(s,p)}function Bw(e,n,o,s){s===void 0&&(s={});try{return N0(e,n,s).format(o)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return String(o)}function jw(e,n,o,s){s===void 0&&(s={});try{return N0(e,n,s).formatToParts(o)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return[]}function Uw(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function Hw(e){e.onWarn&&e.defaultRichTextElements&&Uw(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 zw(e,n){var o=Ew(n),s=J(J({},k0),e),l=s.locale,u=s.defaultLocale,f=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&f?f(new Yp('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 Yp('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 mw('"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"),Hw(s),J(J({},s),{formatters:o,formatNumber:Bw.bind(null,s,o.getNumberFormat),formatNumberToParts:jw.bind(null,s,o.getNumberFormat),formatRelativeTime:Fw.bind(null,s,o.getRelativeTimeFormat),formatDate:Sw.bind(null,s,o.getDateTimeFormat),formatDateToParts:Tw.bind(null,s,o.getDateTimeFormat),formatTime:bw.bind(null,s,o.getDateTimeFormat),formatDateTimeRange:xw.bind(null,s,o.getDateTimeFormat),formatTimeToParts:Cw.bind(null,s,o.getDateTimeFormat),formatPlural:Dw.bind(null,s,o.getPluralRules),formatMessage:Cc.bind(null,s,o),$t:Cc.bind(null,s,o),formatList:Aw.bind(null,s,o.getListFormat),formatListToParts:O0.bind(null,s,o.getListFormat),formatDisplayName:Rw.bind(null,s,o.getDisplayNames)})}function Gw(e,n,o){if(o===void 0&&(o=Error),!e)throw new o(n)}function A0(e){Gw(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var I0=J(J({},k0),{textComponent:B.Fragment}),$w={key:42},qw=function(e){return B.isValidElement(e)?B.createElement(B.Fragment,$w,e):e},Vw=function(e){var n;return(n=B.Children.map(e,qw))!==null&&n!==void 0?n:[]};function Ww(e){return function(n){return e(B.Children.toArray(n))}}function Kw(e,n){if(e===n)return!0;if(!e||!n)return!1;var o=Object.keys(e),s=Object.keys(n),l=o.length;if(s.length!==l)return!1;for(var u=0;u<l;u++){var f=o[u];if(e[f]!==n[f]||!Object.prototype.hasOwnProperty.call(n,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 rm;function Zw(){if(rm)return Ce;rm=1;var e=typeof Symbol=="function"&&Symbol.for,n=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,E=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var L=x.$$typeof;switch(L){case n:switch(x=x.type,x){case p:case v:case s:case u:case l:case E:return x;default:switch(x=x&&x.$$typeof,x){case h:case _:case b:case T:case f:return x;default:return L}}case o:return L}}}function C(x){return S(x)===v}return Ce.AsyncMode=p,Ce.ConcurrentMode=v,Ce.ContextConsumer=h,Ce.ContextProvider=f,Ce.Element=n,Ce.ForwardRef=_,Ce.Fragment=s,Ce.Lazy=b,Ce.Memo=T,Ce.Portal=o,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=E,Ce.isAsyncMode=function(x){return C(x)||S(x)===p},Ce.isConcurrentMode=C,Ce.isContextConsumer=function(x){return S(x)===h},Ce.isContextProvider=function(x){return S(x)===f},Ce.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===n},Ce.isForwardRef=function(x){return S(x)===_},Ce.isFragment=function(x){return S(x)===s},Ce.isLazy=function(x){return S(x)===b},Ce.isMemo=function(x){return S(x)===T},Ce.isPortal=function(x){return S(x)===o},Ce.isProfiler=function(x){return S(x)===u},Ce.isStrictMode=function(x){return S(x)===l},Ce.isSuspense=function(x){return S(x)===E},Ce.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===s||x===v||x===u||x===l||x===E||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===T||x.$$typeof===f||x.$$typeof===h||x.$$typeof===_||x.$$typeof===N||x.$$typeof===P||x.$$typeof===O||x.$$typeof===A)},Ce.typeOf=S,Ce}var nm;function Qw(){return nm||(nm=1,Ru.exports=Zw()),Ru.exports}var Ou,om;function Xw(){if(om)return Ou;om=1;var e=Qw(),n={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(b){return e.isMemo(b)?l:u[b.$$typeof]||n}var h=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,m=Object.prototype;function T(b,A,N){if(typeof A!="string"){if(m){var P=E(A);P&&P!==m&&T(b,P,N)}var O=p(A);v&&(O=O.concat(v(A)));for(var S=f(b),C=f(A),x=0;x<O.length;++x){var L=O[x];if(!o[L]&&!(N&&N[L])&&!(C&&C[L])&&!(S&&S[L])){var z=_(A,L);try{h(b,L,z)}catch{}}}}return b}return Ou=T,Ou}Xw();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 Yw=Yc.Provider,Jw=Yw,eS=Yc;function la(){var e=B.useContext(eS);return A0(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 D0(e){var n=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 n.displayName=Rc[e],n}function ui(e){var n=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 n.displayName=kc[e],n}function P0(e){return e&&Object.keys(e).reduce(function(n,o){var s=e[o];return n[o]=T0(s)?Ww(s):s,n},{})}var im=function(e,n,o,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var f=P0(s),h=Cc.apply(void 0,ar([e,n,o,f],l,!1));return Array.isArray(h)?Vw(h):h},sm=function(e,n){var o=e.defaultRichTextElements,s=aa(e,["defaultRichTextElements"]),l=P0(o),u=zw(J(J(J({},I0),s),{defaultRichTextElements:l}),n),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:im.bind(null,f,u.formatters),$t:im.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 tS=function(e){jt(n,e);function n(){var o=e!==null&&e.apply(this,arguments)||this;return o.cache=R0(),o.state={cache:o.cache,intl:sm(Nu(o.props),o.cache),prevConfig:Nu(o.props)},o}return n.getDerivedStateFromProps=function(o,s){var l=s.prevConfig,u=s.cache,f=Nu(o);return Kw(l,f)?null:{intl:sm(f,u),prevConfig:f}},n.prototype.render=function(){return A0(this.state.intl),B.createElement(Jw,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=I0,n}(B.PureComponent);ui("formatDate");ui("formatTime");ui("formatNumber");ui("formatList");ui("formatDisplayName");D0("formatDate");D0("formatTime");const rS="_app_1rj0t_1",nS={app:rS},to=_E,Qr=SE,M0="%[a-f0-9]{2}",am=new RegExp("("+M0+")|([^%]+?)","gi"),lm=new RegExp("("+M0+")+","gi");function Oc(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;const o=e.slice(0,n),s=e.slice(n);return Array.prototype.concat.call([],Oc(o),Oc(s))}function oS(e){try{return decodeURIComponent(e)}catch{let n=e.match(am)||[];for(let o=1;o<n.length;o++)e=Oc(n,o).join(""),n=e.match(am)||[];return e}}function iS(e){const n={"%FE%FF":"��","%FF%FE":"��"};let o=lm.exec(e);for(;o;){try{n[o[0]]=decodeURIComponent(o[0])}catch{const l=oS(o[0]);l!==o[0]&&(n[o[0]]=l)}o=lm.exec(e)}n["%C2"]="�";const s=Object.keys(n);for(const l of s)e=e.replace(new RegExp(l,"g"),n[l]);return e}function sS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return iS(e)}}function aS(e,n){const o={};if(Array.isArray(n))for(const s of n){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];n(s,u,e)&&Object.defineProperty(o,s,l)}}return o}function F0(e,n){if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||n==="")return[];const o=e.indexOf(n);return o===-1?[]:[e.slice(0,o),e.slice(o+n.length)]}const lS=e=>e==null,uS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Nc=Symbol("encodeFragmentIdentifier");function cS(e){switch(e.arrayFormat){case"index":return n=>(o,s)=>{const l=o.length;return s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,[Ve(n,e),"[",l,"]"].join("")]:[...o,[Ve(n,e),"[",Ve(l,e),"]=",Ve(s,e)].join("")]};case"bracket":return n=>(o,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,[Ve(n,e),"[]"].join("")]:[...o,[Ve(n,e),"[]=",Ve(s,e)].join("")];case"colon-list-separator":return n=>(o,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,[Ve(n,e),":list="].join("")]:[...o,[Ve(n,e),":list=",Ve(s,e)].join("")];case"comma":case"separator":case"bracket-separator":{const n=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?[[Ve(o,e),n,Ve(l,e)].join("")]:[[s,Ve(l,e)].join(e.arrayFormatSeparator)])}default:return n=>(o,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?o:s===null?[...o,Ve(n,e)]:[...o,[Ve(n,e),"=",Ve(s,e)].join("")]}}function fS(e){let n;switch(e.arrayFormat){case"index":return(o,s,l)=>{if(n=/\[(\d*)]$/.exec(o),o=o.replace(/\[\d*]$/,""),!n){l[o]=s;return}l[o]===void 0&&(l[o]={}),l[o][n[1]]=s};case"bracket":return(o,s,l)=>{if(n=/(\[])$/.exec(o),o=o.replace(/\[]$/,""),!n){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(n=/(:list)$/.exec(o),o=o.replace(/:list$/,""),!n){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&&br(s,e).includes(e.arrayFormatSeparator);s=f?br(s,e):s;const h=u||f?s.split(e.arrayFormatSeparator).map(p=>br(p,e)):s===null?s:br(s,e);l[o]=h};case"bracket-separator":return(o,s,l)=>{const u=/(\[])$/.test(o);if(o=o.replace(/\[]$/,""),!u){l[o]=s&&br(s,e);return}const f=s===null?[]:br(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 L0(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ve(e,n){return n.encode?n.strict?uS(e):encodeURIComponent(e):e}function br(e,n){return n.decode?sS(e):e}function B0(e){return Array.isArray(e)?e.sort():typeof e=="object"?B0(Object.keys(e)).sort((n,o)=>Number(n)-Number(o)).map(n=>e[n]):e}function j0(e){const n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function dS(e){let n="";const o=e.indexOf("#");return o!==-1&&(n=e.slice(o)),n}function um(e,n,o){return o==="string"&&typeof e=="string"?e:typeof o=="function"&&typeof e=="string"?o(e):n.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":o==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||n.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function Jc(e){e=j0(e);const n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function ef(e,n){n={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...n},L0(n.arrayFormatSeparator);const o=fS(n),s=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return s;for(const l of e.split("&")){if(l==="")continue;const u=n.decode?l.replaceAll("+"," "):l;let[f,h]=F0(u,"=");f===void 0&&(f=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:br(h,n),o(br(f,n),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&n.types[l]!=="string")for(const[f,h]of Object.entries(u)){const p=n.types[l]?n.types[l].replace("[]",""):void 0;u[f]=um(h,n,p)}else typeof u=="object"&&u!==null&&n.types[l]==="string"?s[l]=Object.values(u).join(n.arrayFormatSeparator):s[l]=um(u,n,n.types[l]);return n.sort===!1?s:(n.sort===!0?Object.keys(s).sort():Object.keys(s).sort(n.sort)).reduce((l,u)=>{const f=s[u];return l[u]=f&&typeof f=="object"&&!Array.isArray(f)?B0(f):f,l},Object.create(null))}function U0(e,n){if(!e)return"";n={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...n},L0(n.arrayFormatSeparator);const o=f=>n.skipNull&&lS(e[f])||n.skipEmptyString&&e[f]==="",s=cS(n),l={};for(const[f,h]of Object.entries(e))o(f)||(l[f]=h);const u=Object.keys(l);return n.sort!==!1&&u.sort(n.sort),u.map(f=>{const h=e[f];return h===void 0?"":h===null?Ve(f,n):Array.isArray(h)?h.length===0&&n.arrayFormat==="bracket-separator"?Ve(f,n)+"[]":h.reduce(s(f),[]).join("&"):Ve(f,n)+"="+Ve(h,n)}).filter(f=>f.length>0).join("&")}function H0(e,n){var l;n={decode:!0,...n};let[o,s]=F0(e,"#");return o===void 0&&(o=e),{url:((l=o==null?void 0:o.split("?"))==null?void 0:l[0])??"",query:ef(Jc(e),n),...n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:br(s,n)}:{}}}function z0(e,n){n={encode:!0,strict:!0,[Nc]:!0,...n};const o=j0(e.url).split("?")[0]||"",s=Jc(e.url),l={...ef(s,{sort:!1}),...e.query};let u=U0(l,n);u&&(u=`?${u}`);let f=dS(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(o);h.hash=e.fragmentIdentifier,f=n[Nc]?h.hash:`#${e.fragmentIdentifier}`}return`${o}${u}${f}`}function G0(e,n,o){o={parseFragmentIdentifier:!0,[Nc]:!1,...o};const{url:s,query:l,fragmentIdentifier:u}=H0(e,o);return z0({url:s,query:aS(l,n),fragmentIdentifier:u},o)}function hS(e,n,o){const s=Array.isArray(n)?l=>!n.includes(l):(l,u)=>!n(l,u);return G0(e,s,o)}const ua=Object.freeze(Object.defineProperty({__proto__:null,exclude:hS,extract:Jc,parse:ef,parseUrl:H0,pick:G0,stringify:U0,stringifyUrl:z0},Symbol.toStringTag,{value:"Module"}));var Kt={},Ct={},le={},cm;function At(){return cm||(cm=1,Object.defineProperty(le,"__esModule",{value:!0}),le.GUEST_LOCALE_CHANGED=le.DRAWER_CLOSE=le.DRAWER_OPEN=le.CONVERSATION_RATING_FROM_GUEST=le.TRANSCRIPT_ITEM_GUEST_REACTION=le.TRANSCRIPT_MAIL_REQUEST=le.INBOX_CONNECT_REQUEST=le.RESTART_CHAT_REQUEST=le.EVENT_TO_GUEST=le.NLU_REQUEST_EVENT=le.EXPERTS_DISCONNECTED=le.EXPERTS_DISCONNECT_REQUEST=le.EXPERTS_CONNECTED=le.EXPERTS_CONNECT_REQUEST=le.MESSAGE_TO_GUEST=le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=le.MESSAGE_FROM_GUEST=le.GUEST_FEEDBACK_RESPONSE=le.GUEST_DISCONNECTED=le.GUEST_CONNECTED=le.TYPING_OFF=le.TYPING_ON=void 0,le.TYPING_ON="core.typing.on",le.TYPING_OFF="core.typing.off",le.GUEST_CONNECTED="core.guest.connected",le.GUEST_DISCONNECTED="core.guest.disconnected",le.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",le.MESSAGE_FROM_GUEST="core.message.from.guest",le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",le.MESSAGE_TO_GUEST="core.message.to.guest",le.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",le.EXPERTS_CONNECTED="core.experts.connected",le.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",le.EXPERTS_DISCONNECTED="core.experts.disconnected",le.NLU_REQUEST_EVENT="core.nlu.request.event",le.EVENT_TO_GUEST="core.event.to.guest",le.RESTART_CHAT_REQUEST="core.chat.restart.request",le.INBOX_CONNECT_REQUEST="core.inbox.connect.request",le.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",le.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",le.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",le.DRAWER_OPEN="core.drawer.open",le.DRAWER_CLOSE="core.drawer.close",le.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),le}var Au={},fm;function pS(){return fm||(fm=1,Object.defineProperty(Au,"__esModule",{value:!0})),Au}var Ss={},dm;function mS(){if(dm)return Ss;dm=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=At(),n=()=>({type:e.DRAWER_CLOSE});return Ss.default=n,Ss}var bs={},hm;function gS(){if(hm)return bs;hm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),n=(o,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:o,intent:s}});return bs.default=n,bs}var xs={},pm;function yS(){if(pm)return xs;pm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=At(),n=o=>({type:e.GUEST_CONNECTED,payload:{sessionId:o}});return xs.default=n,xs}var Ts={},mm;function vS(){if(mm)return Ts;mm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),n=o=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:o}});return Ts.default=n,Ts}var Cs={},gm;function _S(){if(gm)return Cs;gm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),n=(o,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:o,newLocale:s}});return Cs.default=n,Cs}var ks={},ym;function ES(){if(ym)return ks;ym=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=At(),n=o=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:o}}});return ks.default=n,ks}var Rs={},je={},vm;function tf(){if(vm)return je;vm=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(E,m,T=[],b=[]){xe(this,"type");xe(this,"sender");xe(this,"sources");xe(this,"quickReplies");this.type=E,this.sender=m,this.sources=T,this.quickReplies=b}addQuickReply(E,m){this.quickReplies.push({label:E,payload:m})}}je.Message=e;class n extends e{constructor(m,T,b=[],A=[]){super(p.TEXT,T,b,A);xe(this,"text");this.text=m}}je.TextMessage=n;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,b=[],A=[]){super(p.MARKDOWN,T,b,A);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 E=_;return`${E.title} // ${E.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={},_m;function rf(){if(_m)return kt;_m=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 n extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=n;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 Em;function wS(){if(Em)return Rs;Em=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=tf(),n=rf(),o=At(),s=l=>{const u=new e.TextMessage(l,new n.GuestUser);return{type:o.MESSAGE_FROM_GUEST,message:u}};return Rs.default=s,Rs}var Os={},wm;function SS(){if(wm)return Os;wm=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=tf(),n=rf(),o=At(),s=(l,u={})=>{const f=new e.TextMessage(l,new n.GuestUser);return{type:o.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:f,payload:u}};return Os.default=s,Os}var Ns={},Sm;function bS(){if(Sm)return Ns;Sm=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=At(),n=o=>({type:e.NLU_REQUEST_EVENT,event:o});return Ns.default=n,Ns}var As={},bm;function xS(){if(bm)return As;bm=1,Object.defineProperty(As,"__esModule",{value:!0});const e=At(),n=()=>({type:e.RESTART_CHAT_REQUEST});return As.default=n,As}var Is={},xm;function TS(){if(xm)return Is;xm=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=At(),n=o=>({type:e.MESSAGE_TO_GUEST,message:o});return Is.default=n,Is}var Ds={},Tm;function CS(){if(Tm)return Ds;Tm=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=At(),n=(o,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:o,reaction:s}});return Ds.default=n,Ds}var Cm;function km(){return Cm||(Cm=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(O,S,C,x){x===void 0&&(x=C);var L=Object.getOwnPropertyDescriptor(S,C);(!L||("get"in L?!S.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return S[C]}}),Object.defineProperty(O,x,L)}:function(O,S,C,x){x===void 0&&(x=C),O[x]=S[C]}),o=Ct&&Ct.__setModuleDefault||(Object.create?function(O,S){Object.defineProperty(O,"default",{enumerable:!0,value:S})}:function(O,S){O.default=S}),s=Ct&&Ct.__importStar||function(){var O=function(S){return O=Object.getOwnPropertyNames||function(C){var x=[];for(var L in C)Object.prototype.hasOwnProperty.call(C,L)&&(x[x.length]=L);return x},O(S)};return function(S){if(S&&S.__esModule)return S;var C={};if(S!=null)for(var x=O(S),L=0;L<x.length;L++)x[L]!=="default"&&n(C,S,x[L]);return o(C,S),C}}(),l=Ct&&Ct.__exportStar||function(O,S){for(var C in O)C!=="default"&&!Object.prototype.hasOwnProperty.call(S,C)&&n(S,O,C)},u=Ct&&Ct.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};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(pS(),e);const f=u(mS());e.closeDrawer=f.default;const h=u(gS());e.feedbackFromGuestResponse=h.default;const p=u(yS());e.guestConnected=p.default;const v=u(vS());e.guestDisconnected=v.default;const _=u(_S());e.guestLocaleChanged=_.default;const E=u(ES());e.openDrawer=E.default;const m=u(wS());e.receiveTextMessageFromGuest=m.default;const T=u(SS());e.receiveTextMessageWithoutAnalysisFromGuest=T.default;const b=u(bS());e.requestNLUEvent=b.default;const A=u(xS());e.restartChatRequest=A.default;const N=u(TS());e.sendMessageToGuest=N.default;const P=u(CS());e.transcriptItemGuestReaction=P.default}(Ct)),Ct}var Rt={},Iu={},Rm;function kS(){return Rm||(Rm=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var qo={},Om;function RS(){if(Om)return qo;Om=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.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 qo.NullableKnowledgeBaseAdapter=e,qo}var Nm;function OS(){if(Nm)return Rt;Nm=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]}),n=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 n(f,u),f}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=o(kS());const s=RS();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pn={},Du={},Am;function NS(){return Am||(Am=1,Object.defineProperty(Du,"__esModule",{value:!0})),Du}var Zt={},Im;function AS(){if(Im)return Zt;Im=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.ButtonTypeEnum=Zt.PostbackButton=Zt.UrlButton=Zt.Button=void 0;class e{constructor(u,f){xe(this,"title");xe(this,"type");this.title=u,this.type=f}}Zt.Button=e;class n extends e{constructor(f,h){super(f,s.WEB_URL);xe(this,"url");this.url=h}}Zt.UrlButton=n;class o extends e{constructor(f,h){super(f,s.POSTBACK);xe(this,"payload");this.payload=h}}Zt.PostbackButton=o;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Zt.ButtonTypeEnum=s={})),Zt}var Pu={},Dm;function IS(){return Dm||(Dm=1,Object.defineProperty(Pu,"__esModule",{value:!0})),Pu}var Vo={},Pm;function DS(){if(Pm)return Vo;Pm=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.SatisfactionEnum=void 0;var e;return function(n){n.GOOD="GOOD",n.BAD="BAD"}(e||(Vo.SatisfactionEnum=e={})),Vo}var Mm;function Fm(){return Mm||(Mm=1,function(e){var n=pn&&pn.__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=pn&&pn.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),o(NS(),e),o(AS(),e),o(IS(),e),o(DS(),e),o(tf(),e),o(rf(),e)}(pn)),pn}var Lm;function PS(){return Lm||(Lm=1,function(e){var n=Kt&&Kt.__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=Kt&&Kt.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),s=Kt&&Kt.__exportStar||function(u,f){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&n(f,u,h)},l=Kt&&Kt.__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"&&n(h,f,p[v]);return o(h,f),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(km(),e),e.Actions=l(km()),e.CMS=l(OS()),s(Fm(),e),e.Model=l(Fm())}(Kt)),Kt}var ge=PS();const $0=e=>n=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&n(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),n(e.payload)),q0=e=>(n,o)=>{const{quickReplies:s}=o().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return n(l?$0({...l,label:e}):ge.receiveTextMessageFromGuest(e))},nf="MESSAGE_TO_PARENT_PAGE",of="RESTORE_PREVIOUS_CHAT_MESSAGES",sf="AUDIO_MESSAGE_FROM_USER",af="ENABLE_SPEECH_SUPPORT",lf="ENABLE_TRANSCRIPT_EXPORT",MS="EXPORT_TRANSCRIPT",uf="RECEIVE_SPEECH_TRANSCRIPTION",cf="SHOW_GENERAL_CONDITIONS",ff="ENABLE_CONVERSATION_RATING",df="SET_COMMANDS",V0="LOAD_SOURCE_INFOS_RESPONSE",W0="LOAD_SOURCE_INFOS_ERROR",hf="LOAD_SOURCE_INFOS_REQUEST",pf="CLOSE_SOURCE_INFOS",FS="webclient.get.started",K0="webclient.window.expand",Z0="webclient.window.close",Q0="webclient.transcript.pdf.download",LS=[nf,of,sf,af,lf,MS,uf,cf,ff,df,hf,pf],BS=e=>({type:sf,buffer:e}),jS=()=>({type:af}),US=e=>({type:uf,transcription:e}),HS=e=>({type:lf,methods:e}),zS=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),GS=()=>({type:cf}),$S=e=>({type:df,payload:{commands:e}}),qS=()=>({type:Q0}),VS=({rating:e})=>({type:ff,payload:{rating:e}}),WS=(e,n)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:n}}),X0=e=>ge.requestNLUEvent(e),KS=e=>({type:of,messages:e}),ZS=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Y0(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},QS=e=>Y0(e),Y0=e=>({type:nf,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function Ps(e){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var s in o)e[s]=o[s]}return e}var XS={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,n){function o(l,u,f){if(!(typeof document>"u")){f=Ps({},n,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,"",Ps({},u,{expires:-1}))},withAttributes:function(l){return Ac(this.converter,Ps({},this.attributes,l))},withConverter:function(l){return Ac(Ps({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var Ms=Ac(XS,{path:"/"});const nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function YS(e,n=0){return(nt[e[n+0]]+nt[e[n+1]]+nt[e[n+2]]+nt[e[n+3]]+"-"+nt[e[n+4]]+nt[e[n+5]]+"-"+nt[e[n+6]]+nt[e[n+7]]+"-"+nt[e[n+8]]+nt[e[n+9]]+"-"+nt[e[n+10]]+nt[e[n+11]]+nt[e[n+12]]+nt[e[n+13]]+nt[e[n+14]]+nt[e[n+15]]).toLowerCase()}let Mu;const JS=new Uint8Array(16);function eb(){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(JS)}const tb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bm={randomUUID:tb};function Ic(e,n,o){var l;if(Bm.randomUUID&&!e)return Bm.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??eb();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,YS(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 rb=typeof Symbol=="function"&&Symbol.observable||"@@observable",jm=rb,Fu=()=>Math.random().toString(36).substring(7).split("").join("."),nb={INIT:`@@redux/INIT${Fu()}`,REPLACE:`@@redux/REPLACE${Fu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fu()}`},ea=nb;function mf(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function J0(e,n,o){if(typeof e!="function")throw new Error(ot(2));if(typeof n=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ot(0));if(typeof n=="function"&&typeof o>"u"&&(o=n,n=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ot(1));return o(J0)(e,n)}let s=e,l=n,u=new Map,f=u,h=0,p=!1;function v(){f===u&&(f=new Map,u.forEach((N,P)=>{f.set(P,N)}))}function _(){if(p)throw new Error(ot(3));return l}function E(N){if(typeof N!="function")throw new Error(ot(4));if(p)throw new Error(ot(5));let P=!0;v();const O=h++;return f.set(O,N),function(){if(P){if(p)throw new Error(ot(6));P=!1,v(),f.delete(O),u=null}}}function m(N){if(!mf(N))throw new Error(ot(7));if(typeof N.type>"u")throw new Error(ot(8));if(typeof N.type!="string")throw new Error(ot(17));if(p)throw new Error(ot(9));try{p=!0,l=s(l,N)}finally{p=!1}return(u=f).forEach(O=>{O()}),N}function T(N){if(typeof N!="function")throw new Error(ot(10));s=N,m({type:ea.REPLACE})}function b(){const N=E;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(ot(11));function O(){const C=P;C.next&&C.next(_())}return O(),{unsubscribe:N(O)}},[jm](){return this}}}return m({type:ea.INIT}),{dispatch:m,subscribe:E,getState:_,replaceReducer:T,[jm]:b}}function ob(e){Object.keys(e).forEach(n=>{const o=e[n];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 ey(e){const n=Object.keys(e),o={};for(let u=0;u<n.length;u++){const f=n[u];typeof e[f]=="function"&&(o[f]=e[f])}const s=Object.keys(o);let l;try{ob(o)}catch(u){l=u}return function(f={},h){if(l)throw l;let p=!1;const v={};for(let _=0;_<s.length;_++){const E=s[_],m=o[E],T=f[E],b=m(T,h);if(typeof b>"u")throw h&&h.type,new Error(ot(14));v[E]=b,p=p||b!==T}return p=p||s.length!==Object.keys(f).length,p?v:f}}function ta(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,o)=>(...s)=>n(o(...s)))}function ib(...e){return n=>(o,s)=>{const l=n(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 sb(e){return mf(e)&&"type"in e&&typeof e.type=="string"}var ty=Symbol.for("immer-nothing"),Um=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Yt(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xn=Object.getPrototypeOf;function Sn(e){return!!e&&!!e[Ot]}function kr(e){var n;return e?ry(e)||Array.isArray(e)||!!e[Um]||!!((n=e.constructor)!=null&&n[Um])||fa(e)||da(e):!1}var ab=Object.prototype.constructor.toString();function ry(e){if(!e||typeof e!="object")return!1;const n=Xn(e);if(n===null)return!0;const o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object?!0:typeof o=="function"&&Function.toString.call(o)===ab}function ra(e,n){ca(e)===0?Reflect.ownKeys(e).forEach(o=>{n(o,e[o],e)}):e.forEach((o,s)=>n(s,o,e))}function ca(e){const n=e[Ot];return n?n.type_:Array.isArray(e)?1:fa(e)?2:da(e)?3:0}function Dc(e,n){return ca(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function ny(e,n,o){const s=ca(e);s===2?e.set(n,o):s===3?e.add(o):e[n]=o}function lb(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function fa(e){return e instanceof Map}function da(e){return e instanceof Set}function vn(e){return e.copy_||e.base_}function Pc(e,n){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=ry(e);if(n===!0||n==="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(Xn(e),s)}else{const s=Xn(e);if(s!==null&&o)return{...e};const l=Object.create(s);return Object.assign(l,e)}}function gf(e,n=!1){return ha(e)||Sn(e)||!kr(e)||(ca(e)>1&&(e.set=e.add=e.clear=e.delete=ub),Object.freeze(e),n&&Object.entries(e).forEach(([o,s])=>gf(s,!0))),e}function ub(){Yt(2)}function ha(e){return Object.isFrozen(e)}var cb={};function bn(e){const n=cb[e];return n||Yt(0,e),n}var ri;function oy(){return ri}function fb(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hm(e,n){n&&(bn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Mc(e){Fc(e),e.drafts_.forEach(db),e.drafts_=null}function Fc(e){e===ri&&(ri=e.parent_)}function zm(e){return ri=fb(ri,e)}function db(e){const n=e[Ot];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function Gm(e,n){n.unfinalizedDrafts_=n.drafts_.length;const o=n.drafts_[0];return e!==void 0&&e!==o?(o[Ot].modified_&&(Mc(n),Yt(4)),kr(e)&&(e=na(n,e),n.parent_||oa(n,e)),n.patches_&&bn("Patches").generateReplacementPatches_(o[Ot].base_,e,n.patches_,n.inversePatches_)):e=na(n,o,[]),Mc(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==ty?e:void 0}function na(e,n,o){if(ha(n))return n;const s=n[Ot];if(!s)return ra(n,(l,u)=>$m(e,s,n,l,u,o)),n;if(s.scope_!==e)return n;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),ra(u,(h,p)=>$m(e,s,l,h,p,o,f)),oa(e,l,!1),o&&e.patches_&&bn("Patches").generatePatches_(s,o,e.patches_,e.inversePatches_)}return s.copy_}function $m(e,n,o,s,l,u,f){if(Sn(l)){const h=u&&n&&n.type_!==3&&!Dc(n.assigned_,s)?u.concat(s):void 0,p=na(e,l,h);if(ny(o,s,p),Sn(p))e.canAutoFreeze_=!1;else return}else f&&o.add(l);if(kr(l)&&!ha(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;na(e,l),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(o,s)&&oa(e,l)}}function oa(e,n,o=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gf(n,o)}function hb(e,n){const o=Array.isArray(e),s={type_:o?1:0,scope_:n?n.scope_:oy(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=yf;o&&(l=[s],u=ni);const{revoke:f,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=f,h}var yf={get(e,n){if(n===Ot)return e;const o=vn(e);if(!Dc(o,n))return pb(e,o,n);const s=o[n];return e.finalized_||!kr(s)?s:s===Lu(e.base_,n)?(Bu(e),e.copy_[n]=Bc(s,e)):s},has(e,n){return n in vn(e)},ownKeys(e){return Reflect.ownKeys(vn(e))},set(e,n,o){const s=iy(vn(e),n);if(s!=null&&s.set)return s.set.call(e.draft_,o),!0;if(!e.modified_){const l=Lu(vn(e),n),u=l==null?void 0:l[Ot];if(u&&u.base_===o)return e.copy_[n]=o,e.assigned_[n]=!1,!0;if(lb(o,l)&&(o!==void 0||Dc(e.base_,n)))return!0;Bu(e),Lc(e)}return e.copy_[n]===o&&(o!==void 0||n in e.copy_)||Number.isNaN(o)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=o,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Lu(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Bu(e),Lc(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const o=vn(e),s=Reflect.getOwnPropertyDescriptor(o,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:o[n]}},defineProperty(){Yt(11)},getPrototypeOf(e){return Xn(e.base_)},setPrototypeOf(){Yt(12)}},ni={};ra(yf,(e,n)=>{ni[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});ni.deleteProperty=function(e,n){return ni.set.call(this,e,n,void 0)};ni.set=function(e,n,o){return yf.set.call(this,e[0],n,o,e[0])};function Lu(e,n){const o=e[Ot];return(o?vn(o):e)[n]}function pb(e,n,o){var l;const s=iy(n,o);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function iy(e,n){if(!(n in e))return;let o=Xn(e);for(;o;){const s=Object.getOwnPropertyDescriptor(o,n);if(s)return s;o=Xn(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 mb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,o,s)=>{if(typeof n=="function"&&typeof o!="function"){const u=o;o=n;const f=this;return function(p=u,...v){return f.produce(p,_=>o.call(this,_,...v))}}typeof o!="function"&&Yt(6),s!==void 0&&typeof s!="function"&&Yt(7);let l;if(kr(n)){const u=zm(this),f=Bc(n,void 0);let h=!0;try{l=o(f),h=!1}finally{h?Mc(u):Fc(u)}return Hm(u,s),Gm(l,u)}else if(!n||typeof n!="object"){if(l=o(n),l===void 0&&(l=n),l===ty&&(l=void 0),this.autoFreeze_&&gf(l,!0),s){const u=[],f=[];bn("Patches").generateReplacementPatches_(n,l,u,f),s(u,f)}return l}else Yt(1,n)},this.produceWithPatches=(n,o)=>{if(typeof n=="function")return(f,...h)=>this.produceWithPatches(f,p=>n(p,...h));let s,l;return[this.produce(n,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){kr(e)||Yt(8),Sn(e)&&(e=gb(e));const n=zm(this),o=Bc(e,void 0);return o[Ot].isManual_=!0,Fc(n),o}finishDraft(e,n){const o=e&&e[Ot];(!o||!o.isManual_)&&Yt(9);const{scope_:s}=o;return Hm(s,n),Gm(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let o;for(o=n.length-1;o>=0;o--){const l=n[o];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}o>-1&&(n=n.slice(o+1));const s=bn("Patches").applyPatches_;return Sn(e)?s(e,n):this.produce(e,l=>s(l,n))}};function Bc(e,n){const o=fa(e)?bn("MapSet").proxyMap_(e,n):da(e)?bn("MapSet").proxySet_(e,n):hb(e,n);return(n?n.scope_:oy()).drafts_.push(o),o}function gb(e){return Sn(e)||Yt(10,e),sy(e)}function sy(e){if(!kr(e)||ha(e))return e;const n=e[Ot];let o;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,o=Pc(e,n.scope_.immer_.useStrictShallowCopy_)}else o=Pc(e,!0);return ra(o,(s,l)=>{ny(o,s,sy(l))}),n&&(n.finalized_=!1),o}var Nt=new mb,ay=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 ly(e){return({dispatch:o,getState:s})=>l=>u=>typeof u=="function"?u(o,s,e):l(u)}var yb=ly(),vb=ly,_b=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 qm(e,n){function o(...s){if(n){let l=n(...s);if(!l)throw new Error(xr(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:s[0]}}return o.toString=()=>`${e}`,o.type=e,o.match=s=>sb(s)&&s.type===e,o}var uy=class Yo extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Yo.prototype)}static get[Symbol.species](){return Yo}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Yo(...n[0].concat(this)):new Yo(...n.concat(this))}};function Vm(e){return kr(e)?ay(e,()=>{}):e}function Wm(e,n,o){return e.has(n)?e.get(n):e.set(n,o(n)).get(n)}function Eb(e){return typeof e=="boolean"}var wb=()=>function(n){const{thunk:o=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let f=new uy;return o&&(Eb(o)?f.push(yb):f.push(vb(o.extraArgument))),f},Sb="RTK_autoBatch",Km=e=>n=>{setTimeout(n,e)},bb=(e={type:"raf"})=>n=>(...o)=>{const s=n(...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:Km(10):e.type==="callback"?e.queueNotification:Km(e.timeout),v=()=>{f=!1,u&&(u=!1,h.forEach(_=>_()))};return Object.assign({},s,{subscribe(_){const E=()=>l&&_(),m=s.subscribe(E);return h.add(_),()=>{m(),h.delete(_)}},dispatch(_){var E;try{return l=!((E=_==null?void 0:_.meta)!=null&&E[Sb]),u=!l,u&&(f||(f=!0,p(v))),s.dispatch(_)}finally{l=!0}}})},xb=e=>function(o){const{autoBatch:s=!0}=o??{};let l=new uy(e);return s&&l.push(bb(typeof s=="object"?s:void 0)),l};function Tb(e){const n=wb(),{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(mf(o))h=ey(o);else throw new Error(xr(1));let p;typeof s=="function"?p=s(n):p=n();let v=ta;l&&(v=_b({trace:!1,...typeof l=="object"&&l}));const _=ib(...p),E=xb(_);let m=typeof f=="function"?f(E):E();const T=v(...m);return J0(h,u,T)}function cy(e){const n={},o=[];let s;const l={addCase(u,f){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(xr(28));if(h in n)throw new Error(xr(29));return n[h]=f,l},addMatcher(u,f){return o.push({matcher:u,reducer:f}),l},addDefaultCase(u){return s=u,l}};return e(l),[n,o,s]}function Cb(e){return typeof e=="function"}function kb(e,n){let[o,s,l]=cy(n),u;if(Cb(e))u=()=>Vm(e());else{const h=Vm(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((_,E)=>{if(E)if(Sn(_)){const T=E(_,p);return T===void 0?_:T}else{if(kr(_))return ay(_,m=>E(m,p));{const m=E(_,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 Rb=Symbol.for("rtk-slice-createasyncthunk");function Ob(e,n){return`${e}/${n}`}function Nb({creators:e}={}){var o;const n=(o=e==null?void 0:e.asyncThunk)==null?void 0:o[Rb];return function(l){const{name:u,reducerPath:f=u}=l;if(!u)throw new Error(xr(11));const h=(typeof l.reducers=="function"?l.reducers(Ib()):l.reducers)||{},p=Object.keys(h),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},_={addCase(S,C){const x=typeof S=="string"?S:S.type;if(!x)throw new Error(xr(12));if(x in v.sliceCaseReducersByType)throw new Error(xr(13));return v.sliceCaseReducersByType[x]=C,_},addMatcher(S,C){return v.sliceMatchers.push({matcher:S,reducer:C}),_},exposeAction(S,C){return v.actionCreators[S]=C,_},exposeCaseReducer(S,C){return v.sliceCaseReducersByName[S]=C,_}};p.forEach(S=>{const C=h[S],x={reducerName:S,type:Ob(u,S),createNotation:typeof l.reducers=="function"};Pb(C)?Fb(x,C,_,n):Db(x,C,_)});function E(){const[S={},C=[],x=void 0]=typeof l.extraReducers=="function"?cy(l.extraReducers):[l.extraReducers],L={...S,...v.sliceCaseReducersByType};return kb(l.initialState,z=>{for(let V in L)z.addCase(V,L[V]);for(let V of v.sliceMatchers)z.addMatcher(V.matcher,V.reducer);for(let V of C)z.addMatcher(V.matcher,V.reducer);x&&z.addDefaultCase(x)})}const m=S=>S,T=new Map;let b;function A(S,C){return b||(b=E()),b(S,C)}function N(){return b||(b=E()),b.getInitialState()}function P(S,C=!1){function x(z){let V=z[S];return typeof V>"u"&&C&&(V=N()),V}function L(z=m){const V=Wm(T,C,()=>new WeakMap);return Wm(V,z,()=>{const fe={};for(const[te,ie]of Object.entries(l.selectors??{}))fe[te]=Ab(ie,z,N,C);return fe})}return{reducerPath:S,getSelectors:L,get selectors(){return L(x)},selectSlice:x}}const O={name:u,reducer:A,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:N,...P(f),injectInto(S,{reducerPath:C,...x}={}){const L=C??f;return S.inject({reducerPath:L,reducer:A},x),{...O,...P(L,!0)}}};return O}}function Ab(e,n,o,s){function l(u,...f){let h=n(u);return typeof h>"u"&&s&&(h=o()),e(h,...f)}return l.unwrapped=e,l}var fy=Nb();function Ib(){function e(n,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...o}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...o){return n(...o)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:o}},asyncThunk:e}}function Db({type:e,reducerName:n,createNotation:o},s,l){let u,f;if("reducer"in s){if(o&&!Mb(s))throw new Error(xr(17));u=s.reducer,f=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,f?qm(e,f):qm(e))}function Pb(e){return e._reducerDefinitionType==="asyncThunk"}function Mb(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Fb({type:e,reducerName:n},o,s,l){if(!l)throw new Error(xr(18));const{payloadCreator:u,fulfilled:f,pending:h,rejected:p,settled:v,options:_}=o,E=l(e,u,_);s.exposeAction(n,E),f&&s.addCase(E.fulfilled,f),h&&s.addCase(E.pending,h),p&&s.addCase(E.rejected,p),v&&s.addMatcher(E.settled,v),s.exposeCaseReducer(n,{fulfilled:f||Fs,pending:h||Fs,rejected:p||Fs,settled:v||Fs})}function Fs(){}function xr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Lb={useStartScreen:void 0,formValues:{}},dy=fy({name:"start-screen",initialState:Lb,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,n){e.startScreenStatus="HIDDEN",e.formValues=n.payload}}}),{enableStartScreen:Bb,disableStartScreen:jb,startChat:Ub,showStartScreen:Hb}=dy.actions,zb=dy.reducer,hy="RESET_CHAT_STATE",Gb=()=>({type:Z0}),$b=()=>({type:hy}),Zm=e=>(n,o)=>{const s=o();return n({type:hf,payload:{chunkId:e}}),fetch(`/cms/public/vector-store/chunks/${e}`,{headers:{"Accept-Language":s.intl.locale}}).then(l=>{if(!l.ok)throw n({type:W0}),new Error(`HTTP error! Status: ${l.status}`);return l.json()}).then(l=>n({type:V0,payload:l}))},qb=()=>({type:pf}),vf="CONNECT",_f="CONNECTING",Ef="CONNECTED",wf="DISCONNECTED",Sf="RECONNECTED",bf="RESTORE_SESSION_ID",pa="START",ma="CLEAR_SESSION_ID",Vb=[vf,_f,Ef,wf,Sf,bf],Wb=(e,n)=>({type:vf,clientName:e,querystrings:n}),Kb=e=>({type:bf,sessionId:e}),Zb=()=>({type:_f}),Qb=()=>({type:Ef}),Xb=()=>({type:wf}),Yb=()=>({type:Sf}),py=(e,n)=>(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=Ms.get("bubble-chat-user-id")||Ms.get("bubble-chat-userId")||Ms.get("bf-webclient-userId");h=p||Ic(),Ms.set("bubble-chat-user-id",h)}o({type:pa,payload:{sessionId:f,userId:h,clientName:e,querystrings:{...n,...u}}})},ga=(e,n)=>(o,s)=>{const l=s().connection.sessionId||"";if(o(Jb(l)),o($b()),s().startScreen.useStartScreen)o(Hb());else return o(py(e,n))},Jb=e=>({type:ma,payload:{sessionId:e}}),Qe=()=>{const e=la();return o=>{const s=e.formatMessage({id:o});return s===o?void 0:s}};var En=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(En||{}),my=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(my||{});const ex="_container_q2uun_1",tx="_chatcontent_q2uun_6",rx="_accessabilityHidden_q2uun_12",ju={container:ex,chatcontent:tx,accessabilityHidden:rx},nx="_messageContainer_1m8fy_1",ox="_messages_1m8fy_13",Qm={messageContainer:nx,messages:ox};function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s])}return e},_n.apply(this,arguments)}const ix=["children","options"],se={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 Xm;(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"})(Xm||(Xm={}));const Ym=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,n)=>(e[n.toLowerCase()]=n,e),{class:"className",for:"htmlFor"}),Jm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},sx=["style","script"],ax=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,lx=/mailto:/i,ux=/\n{2,}$/,gy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,cx=/^ *> ?/gm,fx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,dx=/^ {2,}\n/,hx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,px=/^(`+)((?:\\`|[^`])+)\1/,mx=/^(?:\n *)*\n/,gx=/\r\n?/g,yx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,vx=/^\[\^([^\]]+)]/,_x=/\f/g,Ex=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,wx=/^\s*?\[(x|\s)\]/,_y=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ey=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Sx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sy=/^<!--[\s\S]*?(?:-->)/,bx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,xx=/^\{.*\}$/,Tx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Cx=/^<([^ >]+@[^ >]+)>/,kx=/^<([^ >]+:\/[^ >]+)>/,Rx=/-([a-z])?/gi,by=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Ox=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Nx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Ax=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Ix=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Dx=/\t/g,Px=/(^ *\||\| *$)/g,Mx=/^ *:-+: *$/,Fx=/^ *:-+ *$/,Lx=/^ *-+: *$/,ya="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Bx=new RegExp(`^([*_])\\1${ya}\\1\\1(?!\\1)`),jx=new RegExp(`^([*_])${ya}\\1(?!\\1)`),Ux=new RegExp(`^(==)${ya}\\1`),Hx=new RegExp(`^(~~)${ya}\\1`),zx=/^\\([^0-9A-Za-z\s])/,Uu=/\\([^0-9A-Za-z\s])/g,Gx=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,$x=/^\n+/,qx=/^([ \t]*)/,Vx=/\\([^\\])/g,Wx=/(?:^|\n)( *)$/,xf="(?:\\d+\\.)",Tf="(?:[*+-])";function xy(e){return"( *)("+(e===1?xf:Tf)+") +"}const Ty=xy(1),Cy=xy(2);function ky(e){return new RegExp("^"+(e===1?Ty:Cy))}const Kx=ky(1),Zx=ky(2);function Ry(e){return new RegExp("^"+(e===1?Ty:Cy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?xf:Tf)+" )[^\\n]*)*(\\n|$)","gm")}const Qx=Ry(1),Xx=Ry(2);function Oy(e){const n=e===1?xf:Tf;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const Ny=Oy(1),Ay=Oy(2);function eg(e,n){const o=n===1,s=o?Ny:Ay,l=o?Qx:Xx,u=o?Kx:Zx;return{match:Yn(function(f,h){const p=Wx.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(ux,`
|
|
85
|
-
`).match(l);let E=!1;return{items:_.map(function(m,T){const b=u.exec(m)[0].length,A=new RegExp("^ {1,"+b+"}","gm"),N=m.replace(A,"").replace(u,""),P=T===_.length-1,O=N.indexOf(`
|
|
86
|
-
|
|
87
|
-
`)!==-1||P&&E;E=O;const S=p.inline,C=p.list;let x;p.list=!0,O?(p.inline=!1,x=oi(N)+`
|
|
88
|
-
|
|
89
|
-
`):(p.inline=!0,x=oi(N));const L=h(x,p);return p.inline=S,p.list=C,L}),ordered:o,start:v}},render:(f,h,p)=>e(f.ordered?"ol":"ul",{key:p.key,start:f.type===se.orderedList?f.start:void 0},f.items.map(function(v,_){return e("li",{key:_},h(v,p))}))}}const Yx=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Jx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Iy=[gy,yy,vy,_y,wy,Ey,by,Ny,Ay],e2=[...Iy,/^[^\n]+(?: \n|\n{2,})/,jc,Sy,Uc];function oi(e){let n=e.length;for(;n>0&&e[n-1]<=" ";)n--;return e.slice(0,n)}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 t2(e){return Lx.test(e)?"right":Mx.test(e)?"center":Fx.test(e)?"left":null}function tg(e,n,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,n(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 r2(e,n,o){o.inline=!0;const s=e[2]?e[2].replace(Px,"").split("|").map(t2):[],l=e[3]?function(f,h,p){return f.trim().split(`
|
|
90
|
-
`).map(function(v){return tg(v,h,p,!0)})}(e[3],n,o):[],u=tg(e[1],n,o,!!l.length);return o.inline=!1,l.length?{align:s,cells:l,header:u,type:se.table}:{children:u,type:se.paragraph}}function rg(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function Yn(e){return e.inline=1,e}function Wr(e){return Yn(function(n,o){return o.inline?e.exec(n):null})}function Kr(e){return Yn(function(n,o){return o.inline||o.simple?e.exec(n):null})}function wr(e){return function(n,o){return o.inline||o.simple?null:e.exec(n)}}function Ko(e){return Yn(function(n){return e.exec(n)})}function n2(e,n){if(n.inline||n.simple)return null;let o="";e.split(`
|
|
91
|
-
`).every(l=>(l+=`
|
|
92
|
-
`,!Iy.some(u=>u.test(l))&&(o+=l,!!l.trim())));const s=oi(o);return s==""?null:[o,,s]}function o2(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 ng(e){return e.replace(Vx,"$1")}function Ks(e,n,o){const s=o.inline||!1,l=o.simple||!1;o.inline=!0,o.simple=!0;const u=e(n,o);return o.inline=s,o.simple=l,u}function i2(e,n,o){const s=o.inline||!1,l=o.simple||!1;o.inline=!1,o.simple=!0;const u=e(n,o);return o.inline=s,o.simple=l,u}function s2(e,n,o){const s=o.inline||!1;o.inline=!1;const l=e(n,o);return o.inline=s,l}const Hu=(e,n,o)=>({children:Ks(n,e[2],o)});function zu(){return{}}function Gu(){return null}function a2(...e){return e.filter(Boolean).join(" ")}function $u(e,n,o){let s=e;const l=n.split(".");for(;l.length&&(s=s[l[0]],s!==void 0);)l.shift();return s||o}function l2(e="",n={}){function o(m,T,...b){const A=$u(n.overrides,`${m}.props`,{});return n.createElement(function(N,P){const O=$u(P,N);return O?typeof O=="function"||typeof O=="object"&&"render"in O?O:$u(P,`${N}.component`,N):N}(m,n.overrides),_n({},T,A,{className:a2(T==null?void 0:T.className,A.className)||void 0}),...b)}function s(m){m=m.replace(Ex,"");let T=!1;n.forceInline?T=!0:n.forceBlock||(T=Ix.test(m)===!1);const b=v(p(T?m:`${oi(m).replace($x,"")}
|
|
93
|
-
|
|
94
|
-
`,{inline:T}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(n.wrapper===null)return b;const A=n.wrapper||(T?"span":"div");let N;if(b.length>1||n.forceWrapper)N=b;else{if(b.length===1)return N=b[0],typeof N=="string"?o("span",{key:"outer"},N):N;N=null}return n.createElement(A,{key:"outer"},N)}function l(m,T){const b=T.match(ax);return b?b.reduce(function(A,N){const P=N.indexOf("=");if(P!==-1){const O=function(L){return L.indexOf("-")!==-1&&L.match(bx)===null&&(L=L.replace(Rx,function(z,V){return V.toUpperCase()})),L}(N.slice(0,P)).trim(),S=function(L){const z=L[0];return(z==='"'||z==="'")&&L.length>=2&&L[L.length-1]===z?L.slice(1,-1):L}(N.slice(P+1).trim()),C=Ym[O]||O;if(C==="ref")return A;const x=A[C]=function(L,z,V,fe){return z==="style"?V.split(/;\s?/).reduce(function(te,ie){const pe=ie.slice(0,ie.indexOf(":"));return te[pe.trim().replace(/(-[a-z])/g,ue=>ue[1].toUpperCase())]=ie.slice(pe.length+1).trim(),te},{}):z==="href"||z==="src"?fe(V,L,z):(V.match(xx)&&(V=V.slice(1,V.length-1)),V==="true"||V!=="false"&&V)}(m,O,S,n.sanitizer);typeof x=="string"&&(jc.test(x)||Uc.test(x))&&(A[C]=s(x.trim()))}else N!=="style"&&(A[Ym[N]||N]=!0);return A},{}):null}n.overrides=n.overrides||{},n.sanitizer=n.sanitizer||o2,n.slugify=n.slugify||Wo,n.namedCodesToUnicode=n.namedCodesToUnicode?_n({},Jm,n.namedCodesToUnicode):Jm,n.createElement=n.createElement||B.createElement;const u=[],f={},h={[se.blockQuote]:{match:wr(gy),order:1,parse(m,T,b){const[,A,N]=m[0].replace(cx,"").match(fx);return{alert:A,children:T(N,b)}},render(m,T,b){const A={key:b.key};return m.alert&&(A.className="markdown-alert-"+n.slugify(m.alert.toLowerCase(),Wo),m.children.unshift({attrs:{},children:[{type:se.text,text:m.alert}],noInnerParse:!0,type:se.htmlBlock,tag:"header"})),o("blockquote",A,T(m.children,b))}},[se.breakLine]:{match:Ko(dx),order:1,parse:zu,render:(m,T,b)=>o("br",{key:b.key})},[se.breakThematic]:{match:wr(hx),order:1,parse:zu,render:(m,T,b)=>o("hr",{key:b.key})},[se.codeBlock]:{match:wr(vy),order:0,parse:m=>({lang:void 0,text:oi(m[0].replace(/^ {4}/gm,"")).replace(Uu,"$1")}),render:(m,T,b)=>o("pre",{key:b.key},o("code",_n({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[se.codeFenced]:{match:wr(yy),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4].replace(Uu,"$1"),type:se.codeBlock})},[se.codeInline]:{match:Kr(px),order:3,parse:m=>({text:m[2].replace(Uu,"$1")}),render:(m,T,b)=>o("code",{key:b.key},m.text)},[se.footnote]:{match:wr(yx),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Gu},[se.footnoteReference]:{match:Wr(vx),order:1,parse:m=>({target:`#${n.slugify(m[1],Wo)}`,text:m[1]}),render:(m,T,b)=>o("a",{key:b.key,href:n.sanitizer(m.target,"a","href")},o("sup",{key:b.key},m.text))},[se.gfmTask]:{match:Wr(wx),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,T,b)=>o("input",{checked:m.completed,key:b.key,readOnly:!0,type:"checkbox"})},[se.heading]:{match:wr(n.enforceAtxHeadings?Ey:_y),order:1,parse:(m,T,b)=>({children:Ks(T,m[2],b),id:n.slugify(m[2],Wo),level:m[1].length}),render:(m,T,b)=>o(`h${m.level}`,{id:m.id,key:b.key},T(m.children,b))},[se.headingSetext]:{match:wr(wy),order:0,parse:(m,T,b)=>({children:Ks(T,m[1],b),level:m[2]==="="?1:2,type:se.heading})},[se.htmlBlock]:{match:Ko(jc),order:1,parse(m,T,b){const[,A]=m[3].match(qx),N=new RegExp(`^${A}`,"gm"),P=m[3].replace(N,""),O=(S=P,e2.some(V=>V.test(S))?s2:Ks);var S;const C=m[1].toLowerCase(),x=sx.indexOf(C)!==-1,L=(x?C:m[1]).trim(),z={attrs:l(L,m[2]),noInnerParse:x,tag:L};return b.inAnchor=b.inAnchor||C==="a",x?z.text=m[3]:z.children=O(T,P,b),b.inAnchor=!1,z},render:(m,T,b)=>o(m.tag,_n({key:b.key},m.attrs),m.text||(m.children?T(m.children,b):""))},[se.htmlSelfClosing]:{match:Ko(Uc),order:1,parse(m){const T=m[1].trim();return{attrs:l(T,m[2]||""),tag:T}},render:(m,T,b)=>o(m.tag,_n({},m.attrs,{key:b.key}))},[se.htmlComment]:{match:Ko(Sy),order:1,parse:()=>({}),render:Gu},[se.image]:{match:Kr(Jx),order:1,parse:m=>({alt:m[1],target:ng(m[2]),title:m[3]}),render:(m,T,b)=>o("img",{key:b.key,alt:m.alt||void 0,title:m.title||void 0,src:n.sanitizer(m.target,"img","src")})},[se.link]:{match:Wr(Yx),order:3,parse:(m,T,b)=>({children:i2(T,m[1],b),target:ng(m[2]),title:m[3]}),render:(m,T,b)=>o("a",{key:b.key,href:n.sanitizer(m.target,"a","href"),title:m.title},T(m.children,b))},[se.linkAngleBraceStyleDetector]:{match:Wr(kx),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],type:se.link})},[se.linkBareUrlDetector]:{match:Yn((m,T)=>T.inAnchor||n.disableAutoLink?null:Wr(Tx)(m,T)),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],title:void 0,type:se.link})},[se.linkMailtoDetector]:{match:Wr(Cx),order:0,parse(m){let T=m[1],b=m[1];return lx.test(b)||(b="mailto:"+b),{children:[{text:T.replace("mailto:",""),type:se.text}],target:b,type:se.link}}},[se.orderedList]:eg(o,1),[se.unorderedList]:eg(o,2),[se.newlineCoalescer]:{match:wr(mx),order:3,parse:zu,render:()=>`
|
|
95
|
-
`},[se.paragraph]:{match:Yn(n2),order:3,parse:Hu,render:(m,T,b)=>o("p",{key:b.key},T(m.children,b))},[se.ref]:{match:Wr(Ox),order:0,parse:m=>(f[m[1]]={target:m[2],title:m[4]},{}),render:Gu},[se.refImage]:{match:Kr(Nx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,T,b)=>f[m.ref]?o("img",{key:b.key,alt:m.alt,src:n.sanitizer(f[m.ref].target,"img","src"),title:f[m.ref].title}):null},[se.refLink]:{match:Wr(Ax),order:0,parse:(m,T,b)=>({children:T(m[1],b),fallbackChildren:m[0],ref:m[2]}),render:(m,T,b)=>f[m.ref]?o("a",{key:b.key,href:n.sanitizer(f[m.ref].target,"a","href"),title:f[m.ref].title},T(m.children,b)):o("span",{key:b.key},m.fallbackChildren)},[se.table]:{match:wr(by),order:1,parse:r2,render(m,T,b){const A=m;return o("table",{key:b.key},o("thead",null,o("tr",null,A.header.map(function(N,P){return o("th",{key:P,style:rg(A,P)},T(N,b))}))),o("tbody",null,A.cells.map(function(N,P){return o("tr",{key:P},N.map(function(O,S){return o("td",{key:S,style:rg(A,S)},T(O,b))}))})))}},[se.text]:{match:Ko(Gx),order:4,parse:m=>({text:m[0].replace(Sx,(T,b)=>n.namedCodesToUnicode[b]?n.namedCodesToUnicode[b]:T)}),render:m=>m.text},[se.textBolded]:{match:Kr(Bx),order:2,parse:(m,T,b)=>({children:T(m[2],b)}),render:(m,T,b)=>o("strong",{key:b.key},T(m.children,b))},[se.textEmphasized]:{match:Kr(jx),order:3,parse:(m,T,b)=>({children:T(m[2],b)}),render:(m,T,b)=>o("em",{key:b.key},T(m.children,b))},[se.textEscaped]:{match:Kr(zx),order:1,parse:m=>({text:m[1],type:se.text})},[se.textMarked]:{match:Kr(Ux),order:3,parse:Hu,render:(m,T,b)=>o("mark",{key:b.key},T(m.children,b))},[se.textStrikethroughed]:{match:Kr(Hx),order:3,parse:Hu,render:(m,T,b)=>o("del",{key:b.key},T(m.children,b))}};n.disableParsingRawHTML===!0&&(delete h[se.htmlBlock],delete h[se.htmlSelfClosing]);const p=function(m){let T=Object.keys(m);function b(A,N){let P,O,S=[],C="",x="";for(N.prevCapture=N.prevCapture||"";A;){let L=0;for(;L<T.length;){if(C=T[L],P=m[C],N.inline&&!P.match.inline){L++;continue}const z=P.match(A,N);if(z){x=z[0],N.prevCapture+=x,A=A.substring(x.length),O=P.parse(z,b,N),O.type==null&&(O.type=C),S.push(O);break}L++}}return N.prevCapture="",S}return T.sort(function(A,N){let P=m[A].order,O=m[N].order;return P!==O?P-O:A<N?-1:1}),function(A,N){return b(function(P){return P.replace(gx,`
|
|
96
|
-
`).replace(_x,"").replace(Dx," ")}(A),N)}}(h),v=(_=function(m,T){return function(b,A,N){const P=m[b.type].render;return T?T(()=>P(b,A,N),b,A,N):P(b,A,N)}}(h,n.renderRule),function m(T,b={}){if(Array.isArray(T)){const A=b.key,N=[];let P=!1;for(let O=0;O<T.length;O++){b.key=O;const S=m(T[O],b),C=typeof S=="string";C&&P?N[N.length-1]+=S:S!==null&&N.push(S),P=C}return b.key=A,N}return _(T,m,b)});var _;const E=s(e);return u.length?o("div",null,E,o("footer",{key:"footer"},u.map(function(m){return o("div",{id:n.slugify(m.identifier,Wo),key:m.identifier},m.identifier,v(p(m.footnote,{inline:!0})))}))):E}const lr=e=>{let{children:n="",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,ix);return B.cloneElement(l2(n,o),s)},u2="_generalConditionsContainer_55hjg_1",c2="_generalConditions_55hjg_1",f2="_generalConditionsHeader_55hjg_15",d2="_generalConditionsBody_55hjg_26",h2="_generalConditionsAccept_55hjg_35",Zo={generalConditionsContainer:u2,generalConditions:c2,generalConditionsHeader:f2,generalConditionsBody:d2,generalConditionsAccept:h2},p2=()=>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"})}),m2=()=>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"})}),g2="general-conditions.header",y2="general-conditions.body",og="general-conditions.accept-conditions-note",v2=()=>{const e=Qe(),[n,o]=B.useState(!1),s=()=>o(!n),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(g2),f=e(og);return y.jsxs("div",{className:q(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:q(Zo.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":n?"true":"false","aria-pressed":n?"true":"false",children:[y.jsx(lr,{children:u}),n?y.jsx(m2,{}):y.jsx(p2,{})]}),y.jsx("div",{className:q(Zo.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:n&&y.jsx(lr,{children:e(y2)||""})})]}),!!(f!=null&&f.length)&&y.jsx("div",{className:q(Zo.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(lr,{children:e(og)||""})})]})},_2="_message_1qom7_1",E2="_messageBot_1qom7_9",w2="_messageBotLast_1qom7_19",S2="_avatar_1qom7_19",b2="_messageBotFirst_1qom7_24",x2="_messageBotAnimated_1qom7_37",T2="_messageGuest_1qom7_48",C2="_messageGuestFirst_1qom7_54",k2="_messageGuestLast_1qom7_60",R2="_botAvatar_1qom7_74",O2="_agentAvatar_1qom7_78",N2="_bubble_1qom7_82",A2="_bubbleContent_1qom7_88",I2="_bubbleLeft_1qom7_102",D2="_leftText_1qom7_113",P2="_bubbleRight_1qom7_120",M2="_rightText_1qom7_130",F2="_sourceInfoReference_1qom7_162",de={message:_2,messageBot:E2,messageBotLast:w2,avatar:S2,messageBotFirst:b2,messageBotAnimated:x2,messageGuest:T2,messageGuestFirst:C2,messageGuestLast:k2,botAvatar:R2,agentAvatar:O2,bubble:N2,bubbleContent:A2,bubbleLeft:I2,leftText:D2,bubbleRight:P2,rightText:M2,sourceInfoReference:F2},L2="_botMessageActions_1dl7x_1",B2="_alwaysVisible_1dl7x_22",j2="_reported_1dl7x_29",U2="_action_1dl7x_33",Zr={botMessageActions:L2,alwaysVisible:B2,reported:j2,action:U2},H2=({alwaysVisible:e,reaction:n,botMessageRef:o,onReaction:s})=>{const l=Qe(),[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(E=>setTimeout(E,1500))}finally{f(!1)}},[o]);return y.jsxs("div",{className:q(Zr.botMessageActions,e&&Zr.alwaysVisible,n&&Zr.reported),children:[y.jsx("button",{className:q(Zr.action,n==="GOOD"&&Zr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:h(n==="GOOD"?null:"GOOD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="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:q(Zr.action,n==="BAD"&&Zr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:h(n==="BAD"?null:"BAD"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="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:q(Zr.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"})})})]})},Dy=B.forwardRef(({message:e,isAnimated:n,isLastMessage:o,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:f},h)=>{const p=Qe(),v=B.useRef(null),_=e.sender.type===ge.UserType.BOT;return y.jsxs("li",{ref:h,className:q(de.message,de.messageBot,o&&de.lastMessage,s&&de.messageBotFirst,l&&de.messageBotLast,"chat__bubbleContainer",n&&de.messageBotAnimated,n&&"chat__bubbleContainer--animated",_?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:q(de.avatar,_?de.botAvatar:de.agentAvatar,"chat__avatar",_?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:_?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsx("div",{ref:v,className:q(de.bubble,de.bubbleLeft,"chat__bubble",_?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(_?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:q(de.leftText),children:u})}),f&&y.jsx(H2,{alwaysVisible:o&&l,reaction:e.reaction,botMessageRef:v,onReaction:f})]})}),z2="_sourceList_1p11n_1",G2="_source_1p11n_1",$2="_label_1p11n_36",qu={sourceList:z2,source:G2,label:$2},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:"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"})}),My=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"})}),Fy=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"})}),Ly=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"})}),q2=({type:e,...n})=>{switch(e){case"WEBSITE":return y.jsx(Ly,{...n});case"PDF":return y.jsx(Fy,{...n});case"DOCX":return y.jsx(Py,{...n});default:return y.jsx(My,{...n})}},Cf=({sources:e,onLinkClick:n})=>{const o=Qe(),s=u=>()=>{n(u.url)},l=u=>f=>{(f.key==="Enter"||f.key===" ")&&n(u.url)};return e.length?y.jsx("ul",{className:qu.sourceList,"aria-label":o("bot-bubble.sources"),children:e.map(u=>y.jsx("li",{className:qu.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(q2,{type:u.type,"aria-hidden":"true"}),y.jsx("div",{className:qu.label,children:u.label})]})},u.url))}):null},V2="_button_3ui4g_1",W2="_buttonDefault_3ui4g_13",K2="_buttonPrimary_3ui4g_28",ii={button:V2,buttonDefault:W2,buttonPrimary:K2},va=({className:e,children:n,...o})=>y.jsx("button",{className:q(ii.button,e),type:"button",...o,children:n}),Z2="_title_b904h_1",Q2="_subtitle_b904h_6",X2="_buttons_b904h_11",Y2="_button_b904h_11",J2="_imageContainer_b904h_34",eT="_image_b904h_34",tT="_video_container_b904h_49",rT="_video_b904h_49",nT="_only_b904h_63",wt={title:Z2,subtitle:Q2,buttons:X2,button:Y2,imageContainer:J2,image:eT,video_container:tT,video:rT,only:nT},oT=({buttons:e,onButtonClick:n})=>y.jsx("div",{className:q(wt.buttons,"chat__bubbleButtons"),children:e.map((o,s)=>y.jsx(va,{className:q(wt.button,"chat__bubbleButton"),onClick:()=>n(o),children:o.title},s))});var Ls={},Bs={},js={},ig;function iT(){if(ig)return js;ig=1,Object.defineProperty(js,"__esModule",{value:!0});var e=Jn(),n=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 js.default=function(s,l,u){return n.createElement("a",{href:s,key:u},l)},js}var Us={},sg;function sT(){return sg||(sg=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=function(e){return e}),Us}var Hs={},Vu,ag;function aT(){return ag||(ag=1,Vu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Vu}var Wu,lg;function lT(){return lg||(lg=1,Wu=/[\0-\x1F\x7F-\x9F]/),Wu}var Ku,ug;function uT(){return ug||(ug=1,Ku=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ku}var Zu,cg;function cT(){return cg||(cg=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,fg;function fT(){return fg||(fg=1,Qu=function(e){var n={};n.src_Any=aT().source,n.src_Cc=lT().source,n.src_Z=uT().source,n.src_P=cT().source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var o="[><|]";return n.src_pseudo_letter="(?:(?!"+o+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+o+"|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+o+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+o+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),Qu}var Xu,dg;function dT(){if(dg)return Xu;dg=1;function e(S){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(x){x&&Object.keys(x).forEach(function(L){S[L]=x[L]})}),S}function n(S){return Object.prototype.toString.call(S)}function o(S){return n(S)==="[object String]"}function s(S){return n(S)==="[object Object]"}function l(S){return n(S)==="[object RegExp]"}function u(S){return n(S)==="[object Function]"}function f(S){return S.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(S){return Object.keys(S||{}).reduce(function(C,x){return C||h.hasOwnProperty(x)},!1)}var v={"http:":{validate:function(S,C,x){var L=S.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(L)?L.match(x.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(S,C,x){var L=S.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(L)?C>=3&&S[C-3]===":"||C>=3&&S[C-3]==="/"?0:L.match(x.re.no_http)[0].length:0}},"mailto:":{validate:function(S,C,x){var L=S.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(L)?L.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]",E="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(S){S.__index__=-1,S.__text_cache__=""}function T(S){return function(C,x){var L=C.slice(x);return S.test(L)?L.match(S)[0].length:0}}function b(){return function(S,C){C.normalize(S)}}function A(S){var C=S.re=fT()(S.__opts__),x=S.__tlds__.slice();S.onCompile(),S.__tlds_replaced__||x.push(_),x.push(C.src_xn),C.src_tlds=x.join("|");function L(te){return te.replace("%TLDS%",C.src_tlds)}C.email_fuzzy=RegExp(L(C.tpl_email_fuzzy),"i"),C.link_fuzzy=RegExp(L(C.tpl_link_fuzzy),"i"),C.link_no_ip_fuzzy=RegExp(L(C.tpl_link_no_ip_fuzzy),"i"),C.host_fuzzy_test=RegExp(L(C.tpl_host_fuzzy_test),"i");var z=[];S.__compiled__={};function V(te,ie){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+ie)}Object.keys(S.__schemas__).forEach(function(te){var ie=S.__schemas__[te];if(ie!==null){var pe={validate:null,link:null};if(S.__compiled__[te]=pe,s(ie)){l(ie.validate)?pe.validate=T(ie.validate):u(ie.validate)?pe.validate=ie.validate:V(te,ie),u(ie.normalize)?pe.normalize=ie.normalize:ie.normalize?V(te,ie):pe.normalize=b();return}if(o(ie)){z.push(te);return}V(te,ie)}}),z.forEach(function(te){S.__compiled__[S.__schemas__[te]]&&(S.__compiled__[te].validate=S.__compiled__[S.__schemas__[te]].validate,S.__compiled__[te].normalize=S.__compiled__[S.__schemas__[te]].normalize)}),S.__compiled__[""]={validate:null,normalize:b()};var fe=Object.keys(S.__compiled__).filter(function(te){return te.length>0&&S.__compiled__[te]}).map(f).join("|");S.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+fe+")","i"),S.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+fe+")","ig"),S.re.pretest=RegExp("("+S.re.schema_test.source+")|("+S.re.host_fuzzy_test.source+")|@","i"),m(S)}function N(S,C){var x=S.__index__,L=S.__last_index__,z=S.__text_cache__.slice(x,L);this.schema=S.__schema__.toLowerCase(),this.index=x+C,this.lastIndex=L+C,this.raw=z,this.text=z,this.url=z}function P(S,C){var x=new N(S,C);return S.__compiled__[x.schema].normalize(x,S),x}function O(S,C){if(!(this instanceof O))return new O(S,C);C||p(S)&&(C=S,S={}),this.__opts__=e({},h,C),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},v,S),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},A(this)}return O.prototype.add=function(C,x){return this.__schemas__[C]=x,A(this),this},O.prototype.set=function(C){return this.__opts__=e(this.__opts__,C),this},O.prototype.test=function(C){if(this.__text_cache__=C,this.__index__=-1,!C.length)return!1;var x,L,z,V,fe,te,ie,pe,ue;if(this.re.schema_test.test(C)){for(ie=this.re.schema_search,ie.lastIndex=0;(x=ie.exec(C))!==null;)if(V=this.testSchemaAt(C,x[2],ie.lastIndex),V){this.__schema__=x[2],this.__index__=x.index+x[1].length,this.__last_index__=x.index+x[0].length+V;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(pe=C.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(L=C.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(fe=L.index+L[1].length,(this.__index__<0||fe<this.__index__)&&(this.__schema__="",this.__index__=fe,this.__last_index__=L.index+L[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ue=C.indexOf("@"),ue>=0&&(z=C.match(this.re.email_fuzzy))!==null&&(fe=z.index+z[1].length,te=z.index+z[0].length,(this.__index__<0||fe<this.__index__||fe===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=fe,this.__last_index__=te))),this.__index__>=0},O.prototype.pretest=function(C){return this.re.pretest.test(C)},O.prototype.testSchemaAt=function(C,x,L){return this.__compiled__[x.toLowerCase()]?this.__compiled__[x.toLowerCase()].validate(C,L,this):0},O.prototype.match=function(C){var x=0,L=[];this.__index__>=0&&this.__text_cache__===C&&(L.push(P(this,x)),x=this.__last_index__);for(var z=x?C.slice(x):C;this.test(z);)L.push(P(this,x)),z=z.slice(this.__last_index__),x+=this.__last_index__;return L.length?L:null},O.prototype.tlds=function(C,x){return C=Array.isArray(C)?C:[C],x?(this.__tlds__=this.__tlds__.concat(C).sort().filter(function(L,z,V){return L!==V[z-1]}).reverse(),A(this),this):(this.__tlds__=C.slice(),this.__tlds_replaced__=!0,A(this),this)},O.prototype.normalize=function(C){C.schema||(C.url="http://"+C.url),C.schema==="mailto:"&&!/^mailto:/i.test(C.url)&&(C.url="mailto:"+C.url)},O.prototype.onCompile=function(){},Xu=O,Xu}const hT=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 hg;function pT(){if(hg)return Hs;hg=1,Object.defineProperty(Hs,"__esModule",{value:!0});var e=dT(),n=l(e),o=hT,s=l(o);function l(f){return f&&f.__esModule?f:{default:f}}var u=new n.default;return u.tlds(s.default),Hs.default=function(f){return u.match(f)},Hs}var zs={},pg;function mT(){return pg||(pg=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=function(e){return e}),zs}var mg;function gT(){if(mg)return Bs;mg=1,Object.defineProperty(Bs,"__esModule",{value:!0});var e=function(){function P(O,S){for(var C=0;C<S.length;C++){var x=S[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(O,x.key,x)}}return function(O,S,C){return S&&P(O.prototype,S),C&&P(O,C),O}}(),n=Jn(),o=m(n),s=iT(),l=E(s),u=sT(),f=E(u),h=pT(),p=E(h),v=mT(),_=E(v);function E(P){return P&&P.__esModule?P:{default:P}}function m(P){if(P&&P.__esModule)return P;var O={};if(P!=null)for(var S in P)Object.prototype.hasOwnProperty.call(P,S)&&(O[S]=P[S]);return O.default=P,O}function T(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function b(P,O){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:P}function A(P,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(P,O):P.__proto__=O)}var N=function(P){A(O,P);function O(){return T(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return e(O,[{key:"parseString",value:function(C){var x=this;if(C==="")return C;var L=this.props.matchDecorator(C);if(!L)return C;var z=[],V=0;return L.forEach(function(fe,te){fe.index>V&&z.push(C.substring(V,fe.index));var ie=x.props.hrefDecorator(fe.url),pe=x.props.textDecorator(fe.text),ue=x.props.componentDecorator(ie,pe,te);z.push(ue),V=fe.lastIndex}),C.length>V&&z.push(C.substring(V)),z.length===1?z[0]:z}},{key:"parse",value:function(C){var x=this,L=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:L},this.parse(C.props.children)):Array.isArray(C)?C.map(function(z,V){return x.parse(z,V)}):C}},{key:"render",value:function(){return o.createElement(o.Fragment,null,this.parse(this.props.children))}}]),O}(o.Component);return N.defaultProps={componentDecorator:l.default,hrefDecorator:f.default,matchDecorator:p.default,textDecorator:_.default},Bs.default=N,Bs}var gg;function yT(){if(gg)return Ls;gg=1,Object.defineProperty(Ls,"__esModule",{value:!0});var e=gT(),n=o(e);function o(s){return s&&s.__esModule?s:{default:s}}return Ls.default=n.default,Ls}var vT=yT();const _T=sa(vT),ET="_text_gp0s0_1",wT="_command_gp0s0_5",yg={text:ET,command:wT},By=({text:e,commands:n=[],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=n.find(h=>e.startsWith(`/${h}`)),f=u?e.slice(u.length+1):e;return y.jsxs("div",{children:[u&&y.jsxs("code",{className:yg.command,children:["/",u]}),f.split(`
|
|
97
|
-
`).map((h,p)=>y.jsxs("span",{className:yg.text,children:[y.jsx(_T,{componentDecorator:l,children:h}),y.jsx("br",{})]},p))]})},ST=({subtitle:e,onLinkClick:n})=>e?y.jsx("div",{className:wt.subtitle,children:y.jsx(By,{text:e,onLinkClick:n})}):null,vg="newtab#",jy=({markdown:e,markdownOptions:n={},onLinkClick:o})=>{const s=u=>f=>(f.preventDefault(),u&&o(u),!1),l=({title:u,href:f,children:h})=>f.indexOf(vg)===0?y.jsx("a",{href:f.slice(vg.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(lr,{options:{...n,overrides:{a:l}},children:e})},bT=({text:e,onLinkClick:n})=>e?y.jsx("div",{children:y.jsx(jy,{markdown:e,onLinkClick:n})}):null,xT=({title:e})=>e?y.jsx("h1",{className:wt.title,children:e}):null,TT=({title:e,text:n,subtitle:o,buttons:s,onButtonClick:l,onLinkClick:u})=>(e==null?void 0:e.length)||(n==null?void 0:n.length)||(o==null?void 0:o.length)||(s==null?void 0:s.length)?y.jsxs("div",{className:q(de.bubbleContent),children:[y.jsx(xT,{title:e}),y.jsx(bT,{text:n,onLinkClick:u}),y.jsx(ST,{subtitle:o,onLinkClick:u}),y.jsx(oT,{buttons:s,onButtonClick:l})]}):null,CT=({alt:e,imageUrl:n,itemUrl:o,hasBody:s})=>n?o?o.indexOf("youtube.com")>-1?y.jsx("div",{className:wt.video_container,children:y.jsx("iframe",{className:q(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:q(wt.image,{[wt.only]:!s}),src:n,alt:e})})}):y.jsx("div",{className:wt.imageContainer,children:y.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})}):null,kT=({title:e,text:n,subtitle:o,imageUrl:s,itemUrl:l,buttons:u,sources:f,onButtonClick:h,onLinkClick:p})=>{const v=!!(e!=null&&e.length)||!!(n!=null&&n.length)||!!(o!=null&&o.length)||!!(u!=null&&u.length);return y.jsxs("div",{className:q(wt.detailMessage),children:[y.jsx(CT,{hasBody:v,imageUrl:s,itemUrl:l,alt:e||o}),v&&y.jsx(TT,{title:e,text:n,subtitle:o,buttons:u,onLinkClick:p,onButtonClick:h}),y.jsx(Cf,{sources:f,onLinkClick:p})]})},RT=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:n,children:o},s)=>{const l=Qe();return y.jsx("li",{ref:s,className:q(de.message,de.messageGuest,e&&de.messageGuestFirst,n&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:y.jsx("div",{className:q(de.rightText),children:o})})})}),OT="_markdown_nw7vg_1",Uy={markdown:OT},Gs="source-info-reference",NT=({markdown:e,sources:n,onLinkClick:o})=>{const s=to(),l=AT(),u=h=>p=>{const v=p.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(p.stopPropagation(),s(Zm(h)))},f=h=>()=>{s(Zm(h))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Gs}`).forEach(h=>{var _,E,m,T;const p=h.previousSibling;p&&p.nodeType===Node.TEXT_NODE&&((_=p.textContent)!=null&&_.endsWith(" "))&&((E=p.textContent)!=null&&E.trim().length)&&h.classList.add(`${Gs}--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(`${Gs}--after-space`)})},[e]),y.jsxs("div",{className:de.bubbleContent,children:[y.jsx("div",{className:Uy.markdown,children:y.jsx(jy,{markdown:e,onLinkClick:o,markdownOptions:{renderRule(h,p,v,_){return p.type===se.footnoteReference?y.jsx("span",{className:q(de.sourceInfoReference,Gs),children:y.jsx("a",{type:"button",tabIndex:0,onClick:f(p.text),onKeyDown:u(p.text),children:l(p.text)})},_.key):h()}}})}),y.jsx(Cf,{sources:n,onLinkClick:o})]})},AT=()=>{const e=[];return o=>{const s=e.indexOf(o);return s>-1?s+1:(e.push(o),e.length)}},IT=({text:e,commands:n,sources:o,onLinkClick:s})=>y.jsxs("div",{className:de.bubbleContent,children:[y.jsx(By,{text:e,commands:n,onLinkClick:s}),y.jsx(Cf,{sources:o,onLinkClick:s})]}),DT=B.forwardRef(({message:e,commands:n,isLastMessage:o,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:f,onLinkClick:h},p)=>{const v=PT(e,n,f,h);switch(e.sender.type){case ge.UserType.GUEST:return y.jsx(RT,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:v});default:{const _=E=>u(e._id,E);return y.jsx(Dy,{ref:p,message:e,isAnimated:!1,isLastMessage:o,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:_,children:v})}}}),PT=(e,n,o,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return y.jsx(IT,{text:l.text,commands:n,sources:e.sources||[],onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return y.jsx(kT,{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(NT,{markdown:l.markdown,sources:l.sources||[],onLinkClick:s})}}},MT=(e,n)=>e.message._id===n.message._id&&e.message.reaction===n.message.reaction&&e.isLastMessage===n.isLastMessage&&e.isFirstMessageBySender===n.isFirstMessageBySender&&e.isLastMessageBySender===n.isLastMessageBySender,FT=r0.memo(DT,MT),LT="_ticontainer_xg0dn_1",BT="_tiblock_xg0dn_5",jT="_tidot_xg0dn_12",Qo={ticontainer:LT,tiblock:BT,tidot:jT},UT=({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:q(Qo.tidot,"chat__typingIndicator")}),y.jsx("div",{className:q(Qo.tidot,"chat__typingIndicator")}),y.jsx("div",{className:q(Qo.tidot,"chat__typingIndicator")})]}):null})}),HT=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),zT=({messages:e,isBotTyping:n,showGeneralConditions:o,commands:s,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const h=B.useRef(0),p=B.useRef(!0),v=B.useRef(null),_=B.useRef(null),E=B.useRef(null);B.useLayoutEffect(()=>{if(e.length&&v.current&&(h.current<e.length||n)){if(_.current){const b=_.current.offsetTop;v.current.scrollTop=b}else if(E.current){const b=E.current.offsetTop;v.current.scrollTop=b}p.current&&(p.current=!1),h.current=e.length}},[e,p,n]);let m;const T=e.length;return y.jsxs("div",{ref:v,className:q(Qm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&p.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[o&&y.jsx(v2,{}),y.jsxs("ul",{className:Qm.messages,children:[e.map((b,A)=>{const N=GT(b,m),P=$T(b,A,e,n);m=b.sender.type;const O=A+1===T;return y.jsx(FT,{ref:O?E:null,message:b,commands:s,isLastMessage:O,isFirstMessageBySender:N,isLastMessageBySender:P,onButtonClick:u,onLinkClick:f,onReaction:l},O&&!n?"last":b._id)}),n&&y.jsx(Dy,{ref:_,message:HT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(UT,{isTyping:!0})},"last")]})]})},GT=(e,n)=>!n||n!==e.sender.type,$T=(e,n,o,s)=>{var h;const l=e.sender.type,u=o.length;return n+1===u?!(l===ge.UserType.BOT&&s):l!==((h=o.at(n+1))==null?void 0:h.sender.type)},qT="_bottomSheet_jp8dl_1",VT="_bottomSheetOpen_jp8dl_15",WT="_bottomSheetClose_jp8dl_20",Tr={bottomSheet:qT,bottomSheetOpen:VT,bottomSheetClose:WT},KT="_container_xc2nx_1",_g={container:KT},ZT=({contentUrl:e})=>{const n=Qr(u=>u.connection.sessionId),[o,s]=B.useState(!1);B.useEffect(()=>{s(u=>u||!!e)},[e]);const l=B.useMemo(()=>{if(e&&n){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",n),u.toString()}else return},[e,n]);return y.jsx("div",{className:q(_g.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:!!e,[Tr.bottomSheetClose]:o&&!e}),children:l&&y.jsx("iframe",{title:"Drawer",src:l,className:_g.iframe})})},QT="_container_tr4tn_1",XT={container:QT},YT=({title:e,href:n,children:o})=>y.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:o}),JT=()=>{const n=Qe()("powered-by");return n&&n.length?y.jsx("div",{className:q(XT.container,"chat__poweredBy"),children:y.jsx(lr,{options:{overrides:{a:YT}},children:n})}):null},Eg=({className:e,children:n,...o})=>y.jsx(va,{className:q(ii.buttonDefault,e),type:"button",...o,children:n}),si=({className:e,children:n,...o})=>y.jsx(va,{className:q(ii.buttonPrimary,e),...o,children:n}),eC="_container_h23mk_1",tC="_formContainer_h23mk_17",rC="_emailInput_h23mk_22",nC="_description_h23mk_52",oC="_actions_h23mk_57",iC="_validationError_h23mk_67",sC="_submitted_h23mk_74",Sr={container:eC,formContainer:tC,emailInput:rC,description:nC,actions:oC,validationError:iC,submitted:sC},aC=({visible:e,methods:n,onEmailExport:o,onPdfExport:s,onClose:l})=>{const u=Qe(),[f,h]=B.useState(void 0),[p,v]=B.useState(!1),[_,E]=B.useState(!1),[m,T]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{var O;e?((O=b.current)==null||O.focus(),v(!1),E(!1),h(e)):f===!0&&h(!1)},[e,f]);const A=O=>{O.preventDefault(),m&&m.length>0&&(o(m),v(!0),setTimeout(l,3*1e3))},N=O=>{const S=O.target.value.trim(),C=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(S);T(C?S:"")},P=()=>{E(!0),s(),setTimeout(l,3*1e3)};return y.jsxs("div",{className:q(Sr.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:f===!0,[Tr.bottomSheetClose]:f===!1}),children:[n.pdf&&y.jsxs(y.Fragment,{children:[y.jsx("h2",{children:u("export-transcript.pdf.title")}),y.jsx(lr,{className:Sr.description,children:u("export-transcript.pdf.description")||""}),y.jsxs("div",{className:Sr.actions,children:[y.jsx(Eg,{onClick:l,children:u("export-transcript.pdf.cancel")}),y.jsx(si,{onClick:P,disabled:_,children:u("export-transcript.pdf.download")})]})]}),n.email&&y.jsxs(y.Fragment,{children:[y.jsx("h2",{children:u("export-transcript.email.title")}),y.jsx(lr,{className:Sr.description,children:u("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:A,className:Sr.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:p,ref:b,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Sr.emailInput,onChange:N}),(m==null?void 0:m.length)===0?y.jsx("div",{className:Sr.validationError,children:u("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:Sr.actions,children:[y.jsx(Eg,{onClick:l,children:u("export-transcript.email.cancel")}),y.jsx(si,{type:"submit",disabled:p||m===void 0||m.length===0,children:u("export-transcript.email.send")})]})]}),p&&y.jsx("div",{className:Sr.submitted,children:u("export-transcript.email.success")})]})]})},lC="_inputContainer_fi5ao_1",uC={inputContainer:lC},cC="_blockUserInput_pot9c_1",fC={blockUserInput:cC},dC=({visible:e})=>{const n=Qe();return e?y.jsx("div",{className:q(fC.blockUserInput,"chat__blockUserInput"),children:n("block-user-input.title")}):null},hC="_commandsDropdown_5ytuv_1",pC="_commands_5ytuv_1",mC="_command_5ytuv_1",gC="_commandActive_5ytuv_46",yC="_commandsSelections_5ytuv_55",Jo={commandsDropdown:hC,commands:pC,command:mC,commandActive:gC,commandsSelections:yC},vC=(e,n)=>{B.useEffect(()=>{const o=s=>{e.current&&!e.current.contains(s.target)&&n()};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[e,n])},_C=(e,n,o,s,l)=>{B.useEffect(()=>{const u=f=>{if(e.length)switch(f.key){case"Enter":o(e[n]);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,n,o,s,l])},EC=({text:e,commands:n,onSelectCommand:o,onVisibilityChange:s})=>{const l=B.useRef(null),u=Qe(),[f,h]=B.useState([]),[p,v]=B.useState(wg(n)),[_,E]=B.useState(0),m=T=>o(`/${T}`);return vC(l,()=>h([])),_C(f,_,m,E,h),B.useEffect(()=>{v(wg(n))},[n]),B.useEffect(()=>{const T=e.length||0;T===0||T>p||!e.startsWith("/")?h([]):h(n.filter(wC(e))),E(0)},[n,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,b)=>y.jsxs("li",{className:q([Jo.command,_===b&&Jo.commandActive]),role:"option",onClick:()=>m(T),onMouseOver:()=>E(b),children:[y.jsxs("h1",{children:["/",T]}),y.jsx("p",{children:u(`commands.${T}`)})]},T))})}):null},wg=e=>Math.max(...e.map(n=>n.length+1)),wC=e=>n=>{const o=`/${n}`;return o.startsWith(e)&&o.length>=e.length},Sg=3,SC=({commands:e,onSelectCommand:n})=>{const o=Qe(),[s,l]=B.useState(!1),u=v=>()=>{n(`/${v}`),l(!1)},f=()=>{l(!0)},h=()=>{l(!1)},p=s?e:e.slice(0,Sg);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>Sg?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]})},bC="_callToActionContainer_bkfcm_1",xC="_callToActionTitle_bkfcm_23",TC="_rateOverlay_bkfcm_30",CC="_body_bkfcm_52",kC="_footer_bkfcm_60",RC="_actions_bkfcm_73",OC="_bubbles_bkfcm_101",NC="_stars_bkfcm_203",AC="_starsSmall_bkfcm_215",IC="_starsLarge_bkfcm_219",DC="_star_bkfcm_203",PC="_starReadonly_bkfcm_236",MC="_starIcon_bkfcm_246",FC="_starsDescriptionContainer_bkfcm_264",LC="_starsDescription_bkfcm_264",pt={callToActionContainer:bC,callToActionTitle:xC,rateOverlay:TC,body:CC,footer:kC,actions:RC,bubbles:OC,stars:NC,starsSmall:AC,starsLarge:IC,star:DC,starReadonly:PC,starIcon:MC,starsDescriptionContainer:FC,starsDescription:LC},BC=({value:e,index:n,count:o,readonly:s,onHover:l,onClick:u})=>{const f=h=>{u&&h.key==="Enter"&&u()};return y.jsx("li",{className:q(pt.star,{[pt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":e>n?"true":"false","aria-posinset":n+1,"aria-setsize":o,tabIndex:0,onMouseOver:l,onKeyDown:f,onClick:u,children:y.jsx("span",{role:"img","aria-label":"Star",className:q(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"})})})})})},bg=5,Hy=({value:e,size:n,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:q(pt.stars,{[pt.starsSmall]:n==="small",[pt.starsLarge]:n==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:n==="small",chat__conversationRating__stars__large:n==="large"}),onMouseOut:f,children:Array(bg).fill(0).map((v,_)=>y.jsx(BC,{value:l===void 0?e:l,index:_,count:bg,readonly:o,onHover:h(_),onClick:p(_)},_))})},jC=({visible:e,onRate:n})=>{const o=Qe();return e?y.jsxs("div",{className:q(pt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:q(pt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:o("conversation-rating.call-to-action.title")}),y.jsx(Hy,{value:0,size:"small",onChange:n})]}):null},Yu=({isFirstMessageBySender:e,isLastMessageBySender:n,children:o})=>y.jsxs("div",{className:q(de.message,de.messageBot,e&&de.messageBotFirst,n&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:q(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:q(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:q(de.leftText,de.bubbleContent),children:o})})]}),UC=({children:e})=>y.jsx("div",{className:q(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:q(de.rightText,de.bubbleContent),children:e})})}),HC=({visible:e,rating:n,onRate:o,onClose:s})=>{const l=Qe(),[u,f]=B.useState(n),[h,p]=B.useState(void 0),[v,_]=B.useState(void 0),[E,m]=B.useState({submitted:!1,feedback:""}),[T,b]=B.useState(!1),A=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),_(e)):v===!0&&_(!1)},[e,v]),B.useEffect(()=>{f(n)},[n]),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(()=>{E.submitted?setTimeout(()=>b(!0),E.feedback.length?500:0):b(!1)},[E]);const N=P=>{var S,C;P.preventDefault();const O=((C=(S=A.current)==null?void 0:S.value)==null?void 0:C.trim())||"";o(u,O),m({submitted:!0,feedback:O})};return y.jsx("div",{className:q(pt.rateOverlay,Tr.bottomSheet,"chat__conversationRating__overlay",{[Tr.bottomSheetOpen]:v===!0,[Tr.bottomSheetClose]:v===!1}),children:y.jsxs("form",{onSubmit:N,children:[y.jsxs("div",{className:q(pt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:q(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:q(pt.starsDescriptionContainer),children:[y.jsx(Hy,{value:u,size:"large",readonly:E.submitted,onChange:f}),y.jsxs("div",{className:q(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||!!E.feedback.length,children:y.jsx("div",{children:h})}),!!E.feedback.length&&y.jsx(UC,{children:E.feedback}),T&&y.jsx(Yu,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:q(pt.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&y.jsx("input",{ref:A,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsx("div",{className:q(pt.actions,"chat__conversationRating__overlay__footer__actions"),children:E.submitted?y.jsx(si,{type:"button",onClick:s,children:l("conversation-rating.overlay.action.close")}):y.jsx(si,{type:"submit",children:l("conversation-rating.overlay.action.submit")})})]})]})})},zC=({conversationRating:{enabled:e,rating:n},numberOfMessagesFromGuest:o,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[f,h]=B.useState(0),p=E=>{h(E),l(!0)},v=()=>l(!1),_=!n&&o>=1;return e?y.jsxs(y.Fragment,{children:[y.jsx(jC,{visible:_,onRate:p}),y.jsx(HC,{visible:s,rating:f,onRate:u,onClose:v})]}):null},GC="_inputWrapper_e3h44_1",$C="_withOpenCommands_e3h44_14",qC="_messageInputWrapper_e3h44_20",VC="_messageInput_e3h44_20",WC="_buttons_e3h44_44",KC="_button_e3h44_44",mn={inputWrapper:GC,withOpenCommands:$C,messageInputWrapper:qC,messageInput:VC,buttons:WC,button:KC},ZC="_audioRecorder_g845f_1",QC="_audioButton_g845f_6",XC="_recorderIcon_g845f_37",YC="_spinning_g845f_60",gn={audioRecorder:ZC,audioButton:QC,recorderIcon:XC,spinning:YC},xg=2048,ia=16e3;class JC extends r0.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(xg,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+=xg}}handleClickSubmitAudio(){const o=tk(this.leftchannel,this.recordingLength),s=rk(o,this.sampleRate||0),l=ek(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:gn.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:q(gn.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:gn.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:gn.audioRecorder,children:[y.jsx("button",{className:q(gn.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:gn.recorderIcon}),y.jsx("button",{className:q(gn.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 ek=e=>{const n=new ArrayBuffer(44+e.length*2),o=new DataView(n);$s(o,0,"RIFF"),o.setUint32(4,44+e.length*2,!0),$s(o,8,"WAVE"),$s(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),$s(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"})},$s=(e,n,o)=>{for(let s=0;s<o.length;s++)e.setUint8(n+s,o.charCodeAt(s))},tk=(e,n)=>{const o=new Float32Array(n);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},rk=(e,n)=>{if(ia===n)return e;const o=n/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},nk=({speechSupport:e,transcriptExportEnabled:n,disabled:o,textInput:s,commandsVisible:l,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:h,onOpenTranscriptExportModal:p})=>{const v=Qe(),_=B.useRef(null);B.useEffect(()=>{var A;(A=_.current)==null||A.focus()},[s]);const E=()=>{const A=_.current;A&&s.trim().length>=1&&f(s.trim())&&(A.value="",A.style.height="",A.focus())},m=A=>{A.preventDefault(),E()},T=A=>{const N=A.target.value;u(N),A.target.style.height="";const{scrollHeight:P}=A.target;A.target.style.height=`${P>150?150:P}px`},b=A=>{A.code==="Enter"&&!A.shiftKey?(A.repeat||E(),A.preventDefault()):l&&(A.code==="ArrowUp"||A.code==="ArrowDown")&&A.preventDefault()};return y.jsxs("form",{className:q(mn.inputWrapper,l&&mn.withOpenCommands,"chat__textInput"),onSubmit:m,children:[y.jsx("div",{className:mn.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:_,className:mn.messageInput,tabIndex:0,placeholder:v("message-input-placeholder"),value:s,onChange:T,onKeyDown:b,"aria-label":v("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),y.jsxs("div",{className:q(mn.buttons,"chat__buttons"),children:[!s.length&&n&&y.jsx("button",{type:"button",className:q(mn.button,"chat__button"),"aria-label":v("message-input.actions.export-transcript.label"),"data-title":v("message-input.actions.export-transcript.label"),tabIndex:0,onClick:p,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"})})}),s.length||!e||navigator.mediaDevices===void 0?y.jsx("button",{className:q(mn.button,"chat__button"),type:"submit","aria-label":v("message-input.actions.submit.label"),"data-title":v("message-input.actions.submit.label"),tabIndex:0,disabled:o,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"})})}):e&&navigator.mediaDevices!==void 0&&y.jsx(JC,{translate:v,onAudioRecorded:h})]})]})},ok="_quickReplies_83npe_1",ik="_quickReply_83npe_9",Tg={quickReplies:ok,quickReply:ik},sk=({quickReplies:e,onQuickReplyClick:n})=>e.length?y.jsx("div",{className:q(Tg.quickReplies,"chat__quickReplies"),children:e.map(o=>y.jsx(va,{tabIndex:0,className:q(Tg.quickReply,"chat__button","chat__quickReply"),onClick:()=>n(o),children:o.label},o.label))}):null,Cg=5e3,ak=1e3,lk=({isBotTyping:e,quickReplies:n,speechSupport:o,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:f,commands:h,setShowRatingOverlay:p,onTextInput:v,onRate:_,onQuickReplyClick:E,onAudioRecorded:m,onOpenTranscriptExportModal:T})=>{const[b,A]=B.useState(""),[N,P]=B.useState(!1),[O,S]=B.useState(!1),C=B.useRef(),x=B.useRef(0);B.useEffect(()=>{if(N&&!e){const V=C.current?Date.now()-C.current:0;V>Cg?P(!1):setTimeout(()=>{P(!1)},Cg-V)}},[N,e]),B.useEffect(()=>{N&&(C.current=Date.now())},[N]);const L=V=>{const fe=Date.now()-x.current<ak;return O?!1:e||fe?(P(!0),!1):(v(V),A(""),x.current=Date.now(),!0)},z=V=>{A(V+" ")};return y.jsxs("div",{className:q(uC.inputContainer),children:[y.jsx(sk,{quickReplies:n,onQuickReplyClick:E}),y.jsx(dC,{visible:N}),!N&&y.jsx(zC,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:_,showRatingOverlay:f,setShowRatingOverlay:p}),!!(h!=null&&h.length)&&y.jsx(EC,{text:b,commands:h,onSelectCommand:z,onVisibilityChange:S}),y.jsx(nk,{textInput:b,speechSupport:o,transcriptExportEnabled:s,disabled:N,commandsVisible:O,onTextInput:A,onTextInputSubmit:L,onOpenTranscriptExportModal:T,onAudioRecorded:m}),!!(h!=null&&h.length)&&y.jsx(SC,{commands:h,onSelectCommand:A})]})},uk=({clientName:e,messages:n,quickReplies:o,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v,onMessageFromUser:_,onRate:E,onQuickReplyClick:m,onButtonClick:T,onLinkClick:b,onAudioRecorded:A,onTranscriptExport:N,onPdfExport:P,onTranscriptItemReaction:O})=>{const S=to(),C=Qr(ie=>ie.connection.connectionState),[x,L]=B.useState(!1),[z,V]=B.useState(!1),fe=f.email||f.pdf,te=n.filter(ie=>ie.sender.type===my.GUEST).length;return B.useEffect(()=>{if(C===En.CONNECTED){const ie=ua.parse(window.location.search);S(py(e,ie))}},[e,C,S]),y.jsxs("div",{className:ju.container,children:[y.jsxs("div",{className:q([ju.chatcontent,(x||z)&&ju.accessabilityHidden]),children:[y.jsx(zT,{messages:n,isBotTyping:s,showGeneralConditions:p,commands:v,onButtonClick:T,onLinkClick:b,onTranscriptItemReaction:O}),y.jsx(lk,{isBotTyping:s,quickReplies:s?[]:o,numberOfMessagesFromGuest:te,speechSupport:u,transcriptExportEnabled:fe,conversationRating:x?{enabled:!1}:h,showRatingOverlay:z,setShowRatingOverlay:V,commands:v,onRate:E,onQuickReplyClick:m,onTextInput:_,onAudioRecorded:A,onOpenTranscriptExportModal:()=>L(!x)}),y.jsx(JT,{})]}),fe&&y.jsx(aC,{methods:f,visible:x,onEmailExport:N,onPdfExport:P,onClose:()=>L(!1)}),y.jsx(ZT,{contentUrl:l})]})},ck=e=>{const{messages:n,quickReplies:o,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}=e.chat;return{messages:n,quickReplies:o,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}},fk=e=>({onRestartChat:(n,o)=>e(ga(n,o)),onMessageFromUser:n=>e(q0(n)),onRate:(n,o)=>e(WS(n,o)),onAudioRecorded:n=>e(BS(n)),onActionFromUser:n=>e(n),onQuickReplyClick:n=>e($0(n)),onNluEvent:n=>e(X0(n)),onButtonClick:n=>e(ZS(n)),onLinkClick:n=>e(QS(n)),onTranscriptExport:n=>e(zS(n)),onPdfExport:()=>e(qS()),onTranscriptItemReaction:(n,o)=>e(ge.transcriptItemGuestReaction(n,o||null))}),dk=pE(ck,fk)(uk),zy=()=>hk(window.location.pathname),hk=e=>{const n=e.split("/"),o=e.endsWith("/");return n[n.length-(o?2:1)]},Gy=()=>B.useMemo(()=>zy(),[]),pk="_header_19p33_1",mk="_logoContainer_19p33_13",gk="_logo_19p33_13",yk="_actions_19p33_26",vk="_closeButton_19p33_72",ei={header:pk,logoContainer:mk,logo:gk,actions:yk,closeButton:vk},$y=e=>n=>{const o=n.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(n.stopPropagation(),e())},_k=({onClick:e})=>{const n=Qe();return y.jsx("button",{className:q(ei.closeButton,"tooltip--bottom"),"aria-label":n("header.close-chat"),"data-title":n("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:$y(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"})})})},Ek=({onClick:e})=>{const n=Qe();return y.jsx("button",{className:"tooltip--bottom","aria-label":n("header.restart-chat"),"data-title":n("header.restart-chat"),tabIndex:0,onClick:e,onKeyDown:$y(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"})]})})},kg=({className:e,withActions:n=!0,...o})=>{const s=to(),l=Gy(),u=()=>{const h=ua.parse(window.location.search);s(ga(l,h))},f=()=>{s(Gb())};return y.jsxs("div",{className:q([ei.header,e]),...o,children:[y.jsx("div",{className:ei.logoContainer,children:y.jsx("div",{className:ei.logo})}),y.jsxs("div",{className:ei.actions,children:[n&&y.jsx(Ek,{onClick:u}),y.jsx(_k,{onClick:f})]})]})},wk="_chatwindow_6v6ob_1",Sk="_chatwindowWithAside_6v6ob_46",Rg={chatwindow:wk,chatwindowWithAside:Sk},bk="_sourceInfos_1qwkt_1",xk="_sourceDetails_1qwkt_16",Tk="_sourceHeader_1qwkt_23",Ck="_sourceHeaderIcon_1qwkt_43",kk="_openSourceButton_1qwkt_47",Rk="_closeSourceInfosButton_1qwkt_70",Ok="_sourceContent_1qwkt_85",Nk="_loadingSourceInfos_1qwkt_108",Ak="_loading_1qwkt_108",Ik="_loadingError_1qwkt_122",fr={sourceInfos:bk,sourceDetails:xk,sourceHeader:Tk,sourceHeaderIcon:Ck,openSourceButton:kk,closeSourceInfosButton:Rk,sourceContent:Ok,loadingSourceInfos:Nk,loading:Ak,loadingError:Ik},Dk=({onClick:e})=>{const n=Qe();return y.jsx("button",{className:q(fr.closeSourceInfosButton,"tooltip--bottom"),"aria-label":n("source-infos.close"),"data-title":n("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"})})})},Pk=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"})}),Mk=({type:e,...n})=>{switch(e){case"WEBSITE":return y.jsx(Ly,{...n});case"PDF":return y.jsx(Fy,{...n});case"DOCX":return y.jsx(Py,{...n});case"TEXT":return y.jsx(Pk,{...n});default:return y.jsx(My,{...n})}},Fk=({sourceInfos:e,onClose:n})=>y.jsxs("div",{className:fr.sourceHeader,children:[y.jsx("div",{className:fr.sourceHeaderIcon,children:e&&y.jsx(Mk,{type:e.knowledgeBaseType})}),y.jsx("div",{children:e&&y.jsx("h1",{children:e.title})}),y.jsx(Dk,{onClick:n})]}),Lk=({title:e,href:n,children:o})=>y.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:o}),Bk=({className:e,children:n,...o})=>y.jsx("a",{className:q(ii.button,ii.buttonPrimary,e),type:"button",...o,children:n}),jk=({label:e,url:n})=>y.jsxs(Bk,{className:fr.openSourceButton,href:n,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"})})})]}),Uk=({sourceInfos:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:q(fr.sourceContent,Uy.markdown),children:y.jsx(lr,{options:{overrides:{a:Lk}},children:e.content})}),y.jsx(jk,{label:e.title,url:e.url})]}),Hk=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,zk=()=>{const e=Qe();return y.jsxs("div",{className:fr.loadingError,children:[y.jsx("h1",{children:e("source-infos.error.title")}),y.jsx("img",{src:Hk,title:e("source-infos.error.title")}),y.jsx("p",{children:e("source-infos.error.info")})]})},Gk=()=>y.jsx("div",{className:fr.loadingSourceInfos,children:y.jsx("svg",{className:fr.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"})})}),$k=()=>{const e=to(),n=Qr(s=>s.chat.sourceInfos),o=()=>{e(qb())};return n?y.jsxs("div",{className:fr.sourceInfos,children:[y.jsx("div",{className:fr.sourceDetails,children:y.jsx(Fk,{sourceInfos:n.type==="loaded"?n:void 0,onClose:o})}),n.type==="loading"?y.jsx(Gk,{}):n.type==="loading-error"?y.jsx(zk,{}):y.jsx(Uk,{sourceInfos:n})]}):null},qk="_container_114wy_1",Vk="_body_114wy_7",Wk="_intro_114wy_14",Kk="_footer_114wy_39",Zk="_footnote_114wy_43",Qk="_containerWithFootnote_114wy_58",Xk="_startChatButton_114wy_73",Yk="_formFields_114wy_77",Jk="_formField_114wy_77",eR="_radio_114wy_89",tR="_checkbox_114wy_96",rR="_input_114wy_104",nR="_inputLabel_114wy_138",oR="_selectWrapper_114wy_142",iR="_select_114wy_142",sR="_selectLabel_114wy_188",it={container:qk,body:Vk,intro:Wk,footer:Kk,footnote:Zk,containerWithFootnote:Qk,startChatButton:Xk,formFields:Yk,formField:Jk,radio:eR,checkbox:tR,input:rR,inputLabel:nR,selectWrapper:oR,select:iR,selectLabel:sR},aR=({name:e,label:n,defaultValue:o,required:s,onChange:l})=>{const u=f=>{l(f.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:q(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:n})]})},lR=({type:e,name:n,label:o,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:_})=>{const E=m=>{_(m.target.value)};return y.jsxs("label",{className:q(it.input,"chat__startScreen__input"),htmlFor:n,children:[y.jsx("div",{className:q(it.inputLabel),children:o}),y.jsx("input",{type:e,id:n,name:n,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:E})]})},uR=({name:e,value:n,label:o,defaultChecked:s,required:l,onChange:u})=>{const f=`${e}-${n}`,h=p=>{u(p.target.value)};return y.jsxs("label",{className:q(it.radio,"chat__startScreen__radio"),htmlFor:f,children:[y.jsx("input",{id:f,type:"radio",name:e,value:n,defaultChecked:s,required:l,onChange:h}),y.jsx("span",{className:q(it.label),children:o})]})},cR=({name:e,label:n,defaultValue:o,required:s,multiple:l,options:u,onChange:f})=>{const h=p=>{f(p.target.value)};return y.jsxs("label",{className:q(it.select,"chat__startScreen__select"),htmlFor:e,children:[y.jsx("div",{className:q(it.selectLabel),children:n}),y.jsx("div",{className:q(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}))})})]})},fR="start-screen.intro",dR="start-screen.start-chat",hR="start-screen.footnote",Qt="start-screen.form",Og=`${Qt}.fields`,pR=()=>{const e=Qe(),n=to(),[o,s]=B.useState({}),l=()=>{const E=Object.entries(o).reduce((m,[T,b])=>({...m,[T]:b.value}),{});n(Ub(E))},u=e(fR),f=e(dR),h=e(hR),p=B.useMemo(()=>{var E;return((E=e(Og))==null?void 0:E.split(";").map(m=>m.trim()))??[]},[e(Og)]);B.useEffect(()=>{p.length&&Object.keys(o).length===0&&s(p.reduce((E,m)=>({...E,[m]:mR(m,e)}),{}))},[e,p,o]);const v=E=>{E.preventDefault(),l()},_=E=>m=>{s(T=>({...T,[E]:{...T[E],value:m}}))};return y.jsxs("form",{onSubmit:v,className:q(it.container,h&&it.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:q(it.body,"chat__startScreen__body"),children:[u&&y.jsx("div",{className:q(it.intro,"chat__startScreen__intro"),children:y.jsx(lr,{options:{overrides:{a:Ng}},children:u})}),y.jsx("div",{className:q(it.formFields,"chat__startScreen__fields"),children:Object.values(o).map(({type:E,name:m,label:T,placeholder:b,defaultValue:A,options:N,required:P,multiple:O,min:S,max:C,pattern:x})=>y.jsx("div",{className:q(it.formField,"chat__startScreen__field"),children:(()=>{switch(E){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:T}),Object.entries(N||{}).map(([L,z])=>y.jsx(uR,{name:m,value:L,label:z,defaultChecked:L===A,required:P,onChange:_(m)}))]});case"checkbox":return y.jsx(aR,{name:m,label:T,defaultValue:A,required:P,onChange:_(m)});case"select":return y.jsx(cR,{name:m,label:T,defaultValue:A,required:P,multiple:O,options:N,onChange:_(m)});default:return y.jsx(lR,{type:E,name:m,label:T,placeholder:b,defaultValue:A,required:P,multiple:O,min:S,max:C,pattern:x,onChange:_(m)})}})()},m))})]}),y.jsxs("div",{className:q(it.footer,"chat__startScreen__footer"),children:[y.jsx(si,{type:"submit",className:it.startChatButton,children:f}),h&&y.jsx("div",{className:it.footnote,children:y.jsx(lr,{options:{overrides:{a:Ng}},children:h})})]})]})},Ng=({title:e,href:n,children:o})=>y.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:o}),mR=(e,n)=>{const o=n(`${Qt}.${e}.type`)||"text",s=n(`${Qt}.${e}.required`)==="true",l=n(`${Qt}.${e}.multiple`)==="true",u=n(`${Qt}.${e}.placeholder`),f=n(`${Qt}.${e}.label`)||"",h=n(`${Qt}.${e}.defaultValue`),p=n(`${Qt}.${e}.min`),v=n(`${Qt}.${e}.max`),_=n(`${Qt}.${e}.pattern`),E=yR(n(`${Qt}.${e}.options`));return{name:e,label:f,placeholder:u,value:gR(o,h,E)||"",defaultValue:h,options:E,type:o,required:s,multiple:l,min:p,max:v,pattern:_}},gR=(e,n,o)=>n||e==="select"&&Object.keys(o)[0]||"",yR=(e="")=>e.split(";").map(n=>n.trim()).reduce((n,o)=>{const[s,l]=o.split(":").map(u=>u.trim());return{...n,[s]:l}},{}),vR=()=>{const e=la();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Zn={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"},_R=({clientName:e})=>{vR();const n=to(),o=Qr(_=>_.intl.messages),s=Qe(),l=Qr(_=>_.startScreen.useStartScreen),u=Qr(_=>_.startScreen.startScreenStatus),[f,h]=B.useState(void 0);B.useEffect(()=>{const _=ua.parse(window.location.search);_.cssClassName&&h(_.cssClassName);const E=m=>{switch(m.data.type){case Zn.TRIGGER_ACTION:n(m.data.action);break;case Zn.TRIGGER_STORY:n(X0(m.data.story));break;case Zn.ON_CHAT_WINDOW_OPEN:n({type:"webclient.chatwindow.opened"});break;case Zn.ON_CHAT_WINDOW_CLOSE:n({type:"webclient.chatwindow.closed"});break;case Zn.CHAT_MESSAGE_FROM_GUEST:n(q0(m.data.text));break;case Zn.RESTART_CHAT:n(ga(e,_));break}};return n(Wb(e,_)),window.addEventListener("message",m=>E(m),!1),()=>window.removeEventListener("message",E)},[e,n]),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:q(Rg.chatwindow,v&&Rg.chatwindowWithAside,"chat__chatwindow",f),children:p?null:v?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(kg,{})}),y.jsx("main",{children:y.jsx(dk,{clientName:e})}),y.jsx("aside",{children:y.jsx($k,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(kg,{withActions:!1})}),y.jsx("main",{children:y.jsx(pR,{})})]})})},ER=1024,wR=()=>{const e=Gy(),n=Qr(u=>u.intl.locale),o=Qr(u=>u.intl.messages),[s,l]=B.useState(Ag());return B.useEffect(()=>{const u=()=>{l(Ag())};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),y.jsx(tS,{locale:n,messages:o,children:y.jsx("div",{className:q([nS.app,s?"chat__large":"chat__small"]),children:y.jsx(_R,{clientName:e})})})},Ag=()=>window.innerWidth>=ER;var Ju,Ig;function kf(){if(Ig)return Ju;Ig=1;function e(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}return Ju=e,Ju}var ec,Dg;function SR(){if(Dg)return ec;Dg=1;var e=typeof vs=="object"&&vs&&vs.Object===Object&&vs;return ec=e,ec}var tc,Pg;function qy(){if(Pg)return tc;Pg=1;var e=SR(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=e||n||Function("return this")();return tc=o,tc}var rc,Mg;function bR(){if(Mg)return rc;Mg=1;var e=qy(),n=function(){return e.Date.now()};return rc=n,rc}var nc,Fg;function xR(){if(Fg)return nc;Fg=1;var e=/\s/;function n(o){for(var s=o.length;s--&&e.test(o.charAt(s)););return s}return nc=n,nc}var oc,Lg;function TR(){if(Lg)return oc;Lg=1;var e=xR(),n=/^\s+/;function o(s){return s&&s.slice(0,e(s)+1).replace(n,"")}return oc=o,oc}var ic,Bg;function Vy(){if(Bg)return ic;Bg=1;var e=qy(),n=e.Symbol;return ic=n,ic}var sc,jg;function CR(){if(jg)return sc;jg=1;var e=Vy(),n=Object.prototype,o=n.hasOwnProperty,s=n.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,Ug;function kR(){if(Ug)return ac;Ug=1;var e=Object.prototype,n=e.toString;function o(s){return n.call(s)}return ac=o,ac}var lc,Hg;function RR(){if(Hg)return lc;Hg=1;var e=Vy(),n=CR(),o=kR(),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)?n(h):o(h)}return lc=f,lc}var uc,zg;function OR(){if(zg)return uc;zg=1;function e(n){return n!=null&&typeof n=="object"}return uc=e,uc}var cc,Gg;function NR(){if(Gg)return cc;Gg=1;var e=RR(),n=OR(),o="[object Symbol]";function s(l){return typeof l=="symbol"||n(l)&&e(l)==o}return cc=s,cc}var fc,$g;function AR(){if($g)return fc;$g=1;var e=TR(),n=kf(),o=NR(),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(n(v)){var _=typeof v.valueOf=="function"?v.valueOf():v;v=n(_)?_+"":_}if(typeof v!="string")return v===0?v:+v;v=e(v);var E=u.test(v);return E||f.test(v)?h(v.slice(2),E?2:8):l.test(v)?s:+v}return fc=p,fc}var dc,qg;function IR(){if(qg)return dc;qg=1;var e=kf(),n=bR(),o=AR(),s="Expected a function",l=Math.max,u=Math.min;function f(h,p,v){var _,E,m,T,b,A,N=0,P=!1,O=!1,S=!0;if(typeof h!="function")throw new TypeError(s);p=o(p)||0,e(v)&&(P=!!v.leading,O="maxWait"in v,m=O?l(o(v.maxWait)||0,p):m,S="trailing"in v?!!v.trailing:S);function C(ue){var Ue=_,Ie=E;return _=E=void 0,N=ue,T=h.apply(Ie,Ue),T}function x(ue){return N=ue,b=setTimeout(V,p),P?C(ue):T}function L(ue){var Ue=ue-A,Ie=ue-N,$e=p-Ue;return O?u($e,m-Ie):$e}function z(ue){var Ue=ue-A,Ie=ue-N;return A===void 0||Ue>=p||Ue<0||O&&Ie>=m}function V(){var ue=n();if(z(ue))return fe(ue);b=setTimeout(V,L(ue))}function fe(ue){return b=void 0,S&&_?C(ue):(_=E=void 0,T)}function te(){b!==void 0&&clearTimeout(b),N=0,_=A=E=b=void 0}function ie(){return b===void 0?T:fe(n())}function pe(){var ue=n(),Ue=z(ue);if(_=arguments,E=this,A=ue,Ue){if(b===void 0)return x(A);if(O)return clearTimeout(b),b=setTimeout(V,p),C(A)}return b===void 0&&(b=setTimeout(V,p)),T}return pe.cancel=te,pe.flush=ie,pe}return dc=f,dc}var hc,Vg;function DR(){if(Vg)return hc;Vg=1;var e=IR(),n=kf(),o="Expected a function";function s(l,u,f){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(o);return n(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 PR=DR();const MR=sa(PR);function FR(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function LR(e){return e}function BR(e,n){n=n||{};const o=n.delimiter||".",s=n.maxDepth,l=n.transformKey||LR,u={};function f(h,p,v){v=v||1,Object.keys(h).forEach(function(_){const E=h[_],m=n.safe&&Array.isArray(E),T=Object.prototype.toString.call(E),b=FR(E),A=T==="[object Object]"||T==="[object Array]",N=p?p+o+l(_):l(_);if(!m&&!b&&A&&Object.keys(E).length&&(!n.maxDepth||v<s))return f(E,N,v+1);u[N]=E})}return f(e),u}const Wy={"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.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"},jR={"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.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"},UR={"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.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"},HR={"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.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"},zR=["de","en","fr","it"],Ky={locale:"de",messages:Wy},GR=(e,n)=>{if(zR.includes(e)){const o=$R(e),s=BR(n);return{...o,...s}}return n},$R=e=>{switch(e.toString()){case"en":return jR;case"fr":return UR;case"it":return HR;default:return Wy}},qR=(e=VR,n)=>{switch(n.type){case _f:return Object.assign({},e,{connectionState:En.CONNECTING});case Ef:return Object.assign({},e,{connectionState:En.CONNECTED});case wf:return Object.assign({},e,{connectionState:En.DISCONNECTED});case Sf:return Object.assign({},e,{connectionState:En.RECONNECTED});case bf:return Object.assign({},e,{sessionId:n.sessionId});case pa:return Object.assign({},e,{sessionId:n.payload.sessionId,userId:n.payload.userId});case ma:return Object.assign({},e,{sessionId:void 0});default:return e}},VR={connectionState:En.DISCONNECTED,sessionId:void 0,userId:void 0},WR=(e=Kg,n)=>{switch(n.type){case hy:return Kg;case pa:return yn({type:"webclient.chat.started"}),e;case ma:return yn({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 Wg(e,n.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{yn(n);const o=Object.assign({},n.message,{_id:n.meta.actionId}),s=e.messages.filter(l=>l._id===n.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:s?e.messages:e.messages.concat([o]),quickReplies:o.quickReplies?o.quickReplies:[]})}case of:{const o=n.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 nf:return yn(n.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return yn(n.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:n.payload.parameters.contentUrl});case ge.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case ge.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:n.payload.locale});case K0:return yn(n),e;case Z0:return yn(n),e;case af:return Object.assign({},e,{speechSupport:!0});case uf:{const o=new ge.TextMessage(n.transcription,new ge.GuestUser),s=Object.assign({},o,{_id:Ic()});return Wg(e,s)}case lf:return Object.assign({},e,{transcriptExportEnabled:n.methods});case cf:return Object.assign({},e,{showGeneralConditions:!0});case ge.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const o=e.messages.map(s=>s._id===n.payload.actionId?Object.assign({},s,{reaction:n.payload.reaction}):s);return Object.assign({},e,{messages:o})}case ff:{const o={enabled:!0,rating:n.payload.rating};return Object.assign({},e,{conversationRating:o})}case ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const o={...e.conversationRating,rating:n.payload};return Object.assign({},e,{conversationRating:o})}case df:return{...e,commands:n.payload.commands};case hf:return{...e,sourceInfos:{type:"loading",chunkId:n.payload.chunkId}};case W0:return{...e,sourceInfos:{type:"loading-error"}};case V0:return{...e,sourceInfos:{type:"loaded",chunkId:n.payload.chunkId,knowledgeBaseType:n.payload.knowledgeBaseType,title:n.payload.title,content:n.payload.content,url:n.payload.url}};case pf:return{...e,sourceInfos:void 0};default:return e}},Wg=(e,n)=>{const o=e.messages[e.messages.length-1],s=(o==null?void 0:o.text)===n.text;return o&&o.sender.type===n.sender.type&&s?e:Object.assign({},e,{messages:e.messages.concat([n]),quickReplies:[]})},yn=e=>{var n;KR()?(n=window.top)==null||n.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},KR=()=>typeof window<"u"&&window.self!==window.top,Kg={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1},commands:[]},Zy=fy({name:"intl",initialState:Ky,reducers:{updateIntl:(e,n)=>{e.locale=n.payload.language,e.messages=n.payload.messages}}}),{updateIntl:ZR}=Zy.actions,QR=Zy.reducer,XR=ey({chat:WR,startScreen:zb,connection:qR,intl:QR}),YR="bubble-chat",Qy="state-last-saved-at",Xy="state",JR=e=>{try{if(!rO())return;const n=Zg(e,Qy);if(tO(n))return;{const o=Zg(e,Xy);return o===null?void 0:JSON.parse(o)}}catch(n){console.error(n);return}},eO=(e,n)=>{try{const o=JSON.stringify(n);Qg(e,Xy,o);const s=new Date().toISOString();Qg(e,Qy,s)}catch(o){console.error(o)}},tO=e=>{if(e===null)return!1;const n=new Date(e);return n.setHours(n.getHours()+12),new Date>n},rO=()=>typeof localStorage<"u",Zg=(e,n)=>{const o=Yy(e,n);return localStorage.getItem(o)},Qg=(e,n,o)=>{const s=Yy(e,n);return localStorage.setItem(s,o)},Yy=(e,n)=>`${YR}-${e}-${n}`,dr=Object.create(null);dr.open="0";dr.close="1";dr.ping="2";dr.pong="3";dr.message="4";dr.upgrade="5";dr.noop="6";const Zs=Object.create(null);Object.keys(dr).forEach(e=>{Zs[dr[e]]=e});const Hc={type:"error",data:"parser error"},Jy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ev=typeof ArrayBuffer=="function",tv=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Rf=({type:e,data:n},o,s)=>Jy&&n instanceof Blob?o?s(n):Xg(n,s):ev&&(n instanceof ArrayBuffer||tv(n))?o?s(n):Xg(new Blob([n]),s):s(dr[e]+(n||"")),Xg=(e,n)=>{const o=new FileReader;return o.onload=function(){const s=o.result.split(",")[1];n("b"+(s||""))},o.readAsDataURL(e)};function Yg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let pc;function nO(e,n){if(Jy&&e.data instanceof Blob)return e.data.arrayBuffer().then(Yg).then(n);if(ev&&(e.data instanceof ArrayBuffer||tv(e.data)))return n(Yg(e.data));Rf(e,!1,o=>{pc||(pc=new TextEncoder),n(pc.encode(o))})}const Jg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ti=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Jg.length;e++)ti[Jg.charCodeAt(e)]=e;const oO=e=>{let n=e.length*.75,o=e.length,s,l=0,u,f,h,p;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const v=new ArrayBuffer(n),_=new Uint8Array(v);for(s=0;s<o;s+=4)u=ti[e.charCodeAt(s)],f=ti[e.charCodeAt(s+1)],h=ti[e.charCodeAt(s+2)],p=ti[e.charCodeAt(s+3)],_[l++]=u<<2|f>>4,_[l++]=(f&15)<<4|h>>2,_[l++]=(h&3)<<6|p&63;return v},iO=typeof ArrayBuffer=="function",Of=(e,n)=>{if(typeof e!="string")return{type:"message",data:rv(e,n)};const o=e.charAt(0);return o==="b"?{type:"message",data:sO(e.substring(1),n)}:Zs[o]?e.length>1?{type:Zs[o],data:e.substring(1)}:{type:Zs[o]}:Hc},sO=(e,n)=>{if(iO){const o=oO(e);return rv(o,n)}else return{base64:!0,data:e}},rv=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},nv="",aO=(e,n)=>{const o=e.length,s=new Array(o);let l=0;e.forEach((u,f)=>{Rf(u,!1,h=>{s[f]=h,++l===o&&n(s.join(nv))})})},lO=(e,n)=>{const o=e.split(nv),s=[];for(let l=0;l<o.length;l++){const u=Of(o[l],n);if(s.push(u),u.type==="error")break}return s};function uO(){return new TransformStream({transform(e,n){nO(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),n.enqueue(l),n.enqueue(o)})}})}let mc;function qs(e){return e.reduce((n,o)=>n+o.length,0)}function Vs(e,n){if(e[0].length===n)return e.shift();const o=new Uint8Array(n);let s=0;for(let l=0;l<n;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 cO(e,n){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(qs(o)<1)break;const p=Vs(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(qs(o)<2)break;const p=Vs(o,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(qs(o)<8)break;const p=Vs(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(qs(o)<l)break;const p=Vs(o,l);h.enqueue(Of(u?p:mc.decode(p),n)),s=0}if(l===0||l>e){h.enqueue(Hc);break}}}})}const ov=4;function We(e){if(e)return fO(e)}function fO(e){for(var n in We.prototype)e[n]=We.prototype[n];return e}We.prototype.on=We.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};We.prototype.once=function(e,n){function o(){this.off(e,o),n.apply(this,arguments)}return o.fn=n,this.on(e,o),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var 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===n||s.fn===n){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 n=new Array(arguments.length-1),o=this._callbacks["$"+e],s=1;s<arguments.length;s++)n[s-1]=arguments[s];if(o){o=o.slice(0);for(var s=0,l=o.length;s<l;++s)o[s].apply(this,n)}return this};We.prototype.emitReserved=We.prototype.emit;We.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};We.prototype.hasListeners=function(e){return!!this.listeners(e).length};const _a=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,o)=>o(n,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),dO="arraybuffer";function iv(e,...n){return n.reduce((o,s)=>(e.hasOwnProperty(s)&&(o[s]=e[s]),o),{})}const hO=Bt.setTimeout,pO=Bt.clearTimeout;function Ea(e,n){n.useNativeTimers?(e.setTimeoutFn=hO.bind(Bt),e.clearTimeoutFn=pO.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const mO=1.33;function gO(e){return typeof e=="string"?yO(e):Math.ceil((e.byteLength||e.size)*mO)}function yO(e){let n=0,o=0;for(let s=0,l=e.length;s<l;s++)n=e.charCodeAt(s),n<128?o+=1:n<2048?o+=2:n<55296||n>=57344?o+=3:(s++,o+=4);return o}function sv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function vO(e){let n="";for(let o in e)e.hasOwnProperty(o)&&(n.length&&(n+="&"),n+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return n}function _O(e){let n={},o=e.split("&");for(let s=0,l=o.length;s<l;s++){let u=o[s].split("=");n[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return n}class EO extends Error{constructor(n,o,s){super(n),this.description=o,this.context=s,this.type="TransportError"}}class Nf extends We{constructor(n){super(),this.writable=!1,Ea(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,o,s){return super.emitReserved("error",new EO(n,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(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const o=Of(n,this.socket.binaryType);this.onPacket(o)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,o={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(o)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const o=vO(n);return o.length?"?"+o:""}}class wO extends Nf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const o=()=>{this.readyState="paused",n()};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(n){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)};lO(n,this.socket.binaryType).forEach(o),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,aO(n,o=>{this.doWrite(o,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",o=this.query||{};return this.opts.timestampRequests!==!1&&(o[this.opts.timestampParam]=sv()),!this.supportsBinary&&!o.sid&&(o.b64=1),this.createUri(n,o)}}let av=!1;try{av=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const SO=av;function bO(){}class xO extends wO{constructor(n){if(super(n),typeof location<"u"){const o=location.protocol==="https:";let s=location.port;s||(s=o?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}}doWrite(n,o){const s=this.request({method:"POST",data:n});s.on("success",o),s.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(o,s)=>{this.onError("xhr poll error",o,s)}),this.pollXhr=n}}class ur extends We{constructor(n,o,s){super(),this.createRequest=n,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 n;const o=iv(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{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var l;s.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}typeof document<"u"&&(this._index=ur.requestsCount++,ur.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=bO,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ur.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ur.requestsCount=0;ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",e0);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,e0,!1)}}function e0(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const TO=function(){const e=lv({xdomain:!1});return e&&e.responseType!==null}();class CO extends xO{constructor(n){super(n);const o=n&&n.forceBase64;this.supportsBinary=TO&&!o}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new ur(lv,this.uri(),n)}}function lv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||SO))return new XMLHttpRequest}catch{}if(!n)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const uv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class kO extends Nf{get name(){return"websocket"}doOpen(){const n=this.uri(),o=this.opts.protocols,s=uv?{}:iv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,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=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let o=0;o<n.length;o++){const s=n[o],l=o===n.length-1;Rf(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 n=this.opts.secure?"wss":"ws",o=this.query||{};return this.opts.timestampRequests&&(o[this.opts.timestampParam]=sv()),this.supportsBinary||(o.b64=1),this.createUri(n,o)}}const gc=Bt.WebSocket||Bt.MozWebSocket;class RO extends kO{createSocket(n,o,s){return uv?new gc(n,o,s):o?new gc(n,o):new gc(n)}doWrite(n,o){this.ws.send(o)}}class OO extends Nf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const o=cO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=n.readable.pipeThrough(o).getReader(),l=uO();l.readable.pipeTo(n.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let o=0;o<n.length;o++){const s=n[o],l=o===n.length-1;this._writer.write(s).then(()=>{l&&_a(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const NO={websocket:RO,webtransport:OO,polling:CO},AO=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,IO=["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 n=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=AO.exec(e||""),u={},f=14;for(;f--;)u[IO[f]]=l[f]||"";return o!=-1&&s!=-1&&(u.source=n,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=DO(u,u.path),u.queryKey=PO(u,u.query),u}function DO(e,n){const o=/\/{2,9}/g,s=n.replace(o,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&s.splice(0,1),n.slice(-1)=="/"&&s.splice(s.length-1,1),s}function PO(e,n){const o={};return n.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 Xr extends We{constructor(n,o){if(super(),this.binaryType=dO,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(o=n,n=null),n){const s=zc(n);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=_O(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(n){const o=Object.assign({},this.opts.query);o.EIO=ov,o.transport=n,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[n]);return new this._transportsByName[n](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Xr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const o=this.createTransport(n);o.open(),this.setTransport(o)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",o=>this._onClose("transport close",o))}onOpen(){this.readyState="open",Xr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const o=new Error("server error");o.code=n.data,this._onError(o);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let o=1;for(let s=0;s<this.writeBuffer.length;s++){const l=this.writeBuffer[s].data;if(l&&(o+=gO(l)),s>0&&o>this._maxPayload)return this.writeBuffer.slice(0,s);o+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,_a(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,o,s){return this._sendPacket("message",n,o,s),this}send(n,o,s){return this._sendPacket("message",n,o,s),this}_sendPacket(n,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:n,data:o,options:s};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},o=()=>{this.off("upgrade",o),this.off("upgradeError",o),n()},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():n()}):this.upgrading?s():n()),this}_onError(n){if(Xr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,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",n,o),this.writeBuffer=[],this._prevBufferLen=0}}}Xr.protocol=ov;class MO extends Xr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let o=this.createTransport(n),s=!1;Xr.priorWebsocketSuccess=!1;const l=()=>{s||(o.send([{type:"ping",data:"probe"}]),o.once("packet",E=>{if(!s)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",o),!o)return;Xr.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=E=>{const m=new Error("probe error: "+E);m.transport=o.name,u(),this.emitReserved("upgradeError",m)};function h(){f("transport closed")}function p(){f("socket closed")}function v(E){o&&E.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&&n!=="webtransport"?this.setTimeoutFn(()=>{s||o.open()},200):o.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const o=[];for(let s=0;s<n.length;s++)~this.transports.indexOf(n[s])&&o.push(n[s]);return o}}let FO=class extends MO{constructor(n,o={}){const s=typeof n=="object"?n:o;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(l=>NO[l]).filter(l=>!!l)),super(n,s)}};function LO(e,n="",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+n,s.href=s.protocol+"://"+u+(o&&o.port===s.port?"":":"+s.port),s}const BO=typeof ArrayBuffer=="function",jO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,cv=Object.prototype.toString,UO=typeof Blob=="function"||typeof Blob<"u"&&cv.call(Blob)==="[object BlobConstructor]",HO=typeof File=="function"||typeof File<"u"&&cv.call(File)==="[object FileConstructor]";function Af(e){return BO&&(e instanceof ArrayBuffer||jO(e))||UO&&e instanceof Blob||HO&&e instanceof File}function Xs(e,n){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(Af(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 zO(e){const n=[],o=e.data,s=e;return s.data=$c(o,n),s.attachments=n.length,{packet:s,buffers:n}}function $c(e,n){if(!e)return e;if(Af(e)){const o={_placeholder:!0,num:n.length};return n.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],n);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],n));return o}return e}function GO(e,n){return e.data=qc(e.data,n),delete e.attachments,e}function qc(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let o=0;o<e.length;o++)e[o]=qc(e[o],n);else if(typeof e=="object")for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=qc(e[o],n));return e}const $O=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qO=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 VO{constructor(n){this.replacer=n}encode(n){return(n.type===Ee.EVENT||n.type===Ee.ACK)&&Xs(n)?this.encodeAsBinary({type:n.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let o=""+n.type;return(n.type===Ee.BINARY_EVENT||n.type===Ee.BINARY_ACK)&&(o+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(o+=n.nsp+","),n.id!=null&&(o+=n.id),n.data!=null&&(o+=JSON.stringify(n.data,this.replacer)),o}encodeAsBinary(n){const o=zO(n),s=this.encodeAsString(o.packet),l=o.buffers;return l.unshift(s),l}}function t0(e){return Object.prototype.toString.call(e)==="[object Object]"}class If extends We{constructor(n){super(),this.reviver=n}add(n){let o;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");o=this.decodeString(n);const s=o.type===Ee.BINARY_EVENT;s||o.type===Ee.BINARY_ACK?(o.type=s?Ee.EVENT:Ee.ACK,this.reconstructor=new WO(o),o.attachments===0&&super.emitReserved("decoded",o)):super.emitReserved("decoded",o)}else if(Af(n)||n.base64)if(this.reconstructor)o=this.reconstructor.takeBinaryData(n),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: "+n)}decodeString(n){let o=0;const s={type:Number(n.charAt(0))};if(Ee[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ee.BINARY_EVENT||s.type===Ee.BINARY_ACK){const u=o+1;for(;n.charAt(++o)!=="-"&&o!=n.length;);const f=n.substring(u,o);if(f!=Number(f)||n.charAt(o)!=="-")throw new Error("Illegal attachments");s.attachments=Number(f)}if(n.charAt(o+1)==="/"){const u=o+1;for(;++o&&!(n.charAt(o)===","||o===n.length););s.nsp=n.substring(u,o)}else s.nsp="/";const l=n.charAt(o+1);if(l!==""&&Number(l)==l){const u=o+1;for(;++o;){const f=n.charAt(o);if(f==null||Number(f)!=f){--o;break}if(o===n.length)break}s.id=Number(n.substring(u,o+1))}if(n.charAt(++o)){const u=this.tryParse(n.substr(o));if(If.isPayloadValid(s.type,u))s.data=u;else throw new Error("invalid payload")}return s}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,o){switch(n){case Ee.CONNECT:return t0(o);case Ee.DISCONNECT:return o===void 0;case Ee.CONNECT_ERROR:return typeof o=="string"||t0(o);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(o)&&(typeof o[0]=="number"||typeof o[0]=="string"&&$O.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 WO{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const o=GO(this.reconPack,this.buffers);return this.finishedReconstruction(),o}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const KO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:If,Encoder:VO,get PacketType(){return Ee},protocol:qO},Symbol.toStringTag,{value:"Module"}));function Xt(e,n,o){return e.on(n,o),function(){e.off(n,o)}}const ZO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class fv extends We{constructor(n,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=n,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 n=this.io;this.subs=[Xt(n,"open",this.onopen.bind(this)),Xt(n,"packet",this.onpacket.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...o){var s,l,u;if(ZO.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(o.unshift(n),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++,E=o.pop();this._registerAckCallback(_,E),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(n,o){var s;const l=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(l===void 0){this.acks[n]=o;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===n&&this.sendBuffer.splice(h,1);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[n]=f}emitWithAck(n,...o){return new Promise((s,l)=>{const u=(f,h)=>f?l(f):s(h);u.withError=!0,o.push(u),this.emit(n,...o)})}_addToQueue(n){let o;typeof n[n.length-1]=="function"&&(o=n.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((l,...u)=>s!==this._queue[0]?void 0:(l!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),o&&o(l)):(this._queue.shift(),o&&o(null,...u)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const o=this._queue[0];o.pending&&!n||(o.pending=!0,o.tryCount++,this.flags=o.flags,this.emit.apply(this,o.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,o){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,o),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(s=>String(s.id)===n)){const s=this.acks[n];delete this.acks[n],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Ee.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(n);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(n);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const s=new Error(n.data.message);s.data=n.data.data,this.emitReserved("connect_error",s);break}}onevent(n){const o=n.data||[];n.id!=null&&o.push(this.ack(n.id)),this.connected?this.emitEvent(o):this.receiveBuffer.push(Object.freeze(o))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const o=this._anyListeners.slice();for(const s of o)s.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const o=this;let s=!1;return function(...l){s||(s=!0,o.packet({type:Ee.ACK,id:n,data:l}))}}onack(n){const o=this.acks[n.id];typeof o=="function"&&(delete this.acks[n.id],o.withError&&n.data.unshift(null),o.apply(this,n.data))}onconnect(n,o){this.id=n,this.recovered=o&&this._pid===o,this._pid=o,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const o=this._anyListeners;for(let s=0;s<o.length;s++)if(n===o[s])return o.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const o=this._anyOutgoingListeners;for(let s=0;s<o.length;s++)if(n===o[s])return o.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const o=this._anyOutgoingListeners.slice();for(const s of o)s.apply(this,n.data)}}}function ro(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}ro.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),o=Math.floor(n*this.jitter*e);e=(Math.floor(n*10)&1)==0?e-o:e+o}return Math.min(e,this.max)|0};ro.prototype.reset=function(){this.attempts=0};ro.prototype.setMin=function(e){this.ms=e};ro.prototype.setMax=function(e){this.max=e};ro.prototype.setJitter=function(e){this.jitter=e};class Vc extends We{constructor(n,o){var s;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(o=n,n=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 ro({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(o.timeout==null?2e4:o.timeout),this._readyState="closed",this.uri=n;const l=o.parser||KO;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=o.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var o;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(o=this.backoff)===null||o===void 0||o.setMin(n),this)}randomizationFactor(n){var o;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(o=this.backoff)===null||o===void 0||o.setJitter(n),this)}reconnectionDelayMax(n){var o;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(o=this.backoff)===null||o===void 0||o.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new FO(this.uri,this.opts);const o=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Xt(o,"open",function(){s.onopen(),n&&n()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},f=Xt(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(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Xt(n,"ping",this.onping.bind(this)),Xt(n,"data",this.ondata.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(n,"close",this.onclose.bind(this)),Xt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(o){this.onclose("parse error",o)}}ondecoded(n){_a(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,o){let s=this.nsps[n];return s?this._autoConnect&&!s.active&&s.connect():(s=new fv(this,n,o),this.nsps[n]=s),s}_destroy(n){const o=Object.keys(this.nsps);for(const s of o)if(this.nsps[s].active)return;this._close()}_packet(n){const o=this.encoder.encode(n);for(let s=0;s<o.length;s++)this.engine.write(o[s],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,o){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,o),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const o=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(l=>{l?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",l)):n.onreconnect()}))},o);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Xo={};function Ys(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const o=LO(e,n.path||"/socket.io"),s=o.source,l=o.id,u=o.path,f=Xo[l]&&u in Xo[l].nsps,h=n.forceNew||n["force new connection"]||n.multiplex===!1||f;let p;return h?p=new Vc(s,n):(Xo[l]||(Xo[l]=new Vc(s,n)),p=Xo[l]),o.query&&!n.query&&(n.query=o.queryKey),p.socket(o.path,n)}Object.assign(Ys,{Manager:Vc,Socket:fv,io:Ys,connect:Ys});const QO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...Vb,...LS,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],XO=({dispatch:e,getState:n})=>o=>{let s=null;return l=>{const u=o(l);if(l.type===vf){s!=null&&s.disconnect(),e(Zb());const f=`/chat?${ua.stringify(l.querystrings)}`;s=Ys(`/${l.clientName}${f}`),s.on("action",e),s.on("connect",()=>e(Qb())),s.on("disconnect",()=>e(Xb())),s.on("reconnect",()=>e(Yb())),s.on("set-use-start-screen",h=>{e(h?Bb():jb())}),s.on("set-commands",(h=[])=>{e($S(h))}),s.on("set-translations",(h,p)=>{e(ZR({language:h,messages:GR(h,p)}))}),s.on("enable-speech-support",()=>e(jS())),s.on("enable-transcript-export",h=>e(HS(h))),s.on("enable-conversation-rating",h=>e(VS(h))),s.on("speech-transcription",h=>e(US(h))),s.on("restore-client-state",h=>{e(Kb(h.sessionId)),e(KS(h.messages))}),s.on("expand-window",({devices:h,initial:p=!1})=>{e({type:K0,devices:h,initial:p})}),s.on("show-general-conditions",()=>e(GS())),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===FS)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===Q0){const{connection:{sessionId:f}}=n();window.location.href=`/transcript-pdf/${f}`}else QO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},dv=zy(),YO={...JR(dv),intl:Ky},Wc=Tb({middleware:e=>e().concat(XO),reducer:XR,preloadedState:YO});Wc.subscribe(MR(()=>{const e=Wc.getState();eO(dv,{connection:e.connection,startScreen:e.startScreen})},1e3));const JO=document.getElementById("root"),eN=_1.createRoot(JO);eN.render(y.jsx(gE,{store:Wc,children:y.jsx(wR,{})}));
|
|
110
|
-
//# sourceMappingURL=index-B_CeBjCL.js.map
|