@botfabrik/engine-webclient 4.76.15 → 4.77.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 +33 -0
- package/dist/client/assets/index-Civ1F2yz.js +110 -0
- package/dist/client/assets/index-Civ1F2yz.js.map +1 -0
- package/dist/client/assets/index-yILb8Y1Q.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/package.json +8 -8
- package/dist/client/assets/index-B4mEjt51.js +0 -110
- package/dist/client/assets/index-B4mEjt51.js.map +0 -1
- package/dist/client/assets/index-CVGpUoSB.css +0 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
var q_=Object.defineProperty;var V_=(e,r,i)=>r in e?q_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i;var we=(e,r,i)=>V_(e,typeof r!="symbol"?r+"":r,i);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(l){if(l.ep)return;l.ep=!0;const u=i(l);fetch(l.href,u)}})();var hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var au={exports:{}},Hi={},lu={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 yp;function W_(){if(yp)return me;yp=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function m(I){return I===null||typeof I!="object"?null:(I=b&&I[b]||I["@@iterator"],typeof I=="function"?I:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,w={};function C(I,j,ce){this.props=I,this.context=j,this.refs=w,this.updater=ce||E}C.prototype.isReactComponent={},C.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")},C.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function O(){}O.prototype=C.prototype;function N(I,j,ce){this.props=I,this.context=j,this.refs=w,this.updater=ce||E}var S=N.prototype=new O;S.constructor=N,v(S,C.prototype),S.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,L={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function q(I,j,ce){var de,ye={},ve=null,ke=null;if(j!=null)for(de in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)x.call(j,de)&&!G.hasOwnProperty(de)&&(ye[de]=j[de]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),Je=0;Je<Te;Je++)Re[Je]=arguments[Je+2];ye.children=Re}if(I&&I.defaultProps)for(de in Te=I.defaultProps,Te)ye[de]===void 0&&(ye[de]=Te[de]);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 oe(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?oe(""+I.key):j.toString(36)}function ze(I,j,ce,de,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 r:ke=!0}}if(ke)return ke=I,ye=ye(ke),I=de===""?"."+ue(ke,0):de,k(ye)?(ce="",I!=null&&(ce=I.replace(pe,"$&/")+"/"),ze(ye,j,ce,"",function(Je){return Je})):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,de=de===""?".":de+":",k(I))for(var Te=0;Te<I.length;Te++){ve=I[Te];var Re=de+ue(ve,Te);ke+=ze(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=de+ue(ve,Te++),ke+=ze(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 Pe(I,j,ce){if(I==null)return I;var de=[],ye=0;return ze(I,de,"","",function(ve){return j.call(ce,ve,ye++)}),de}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},ne={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:L};function Q(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Pe,forEach:function(I,j,ce){Pe(I,function(){j.apply(this,arguments)},ce)},count:function(I){var j=0;return Pe(I,function(){j++}),j},toArray:function(I){return Pe(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=C,me.Fragment=i,me.Profiler=l,me.PureComponent=N,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,me.act=Q,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 de=v({},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)&&!G.hasOwnProperty(Re)&&(de[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)de.children=ce;else if(1<Re){Te=Array(Re);for(var Je=0;Je<Re;Je++)Te[Je]=arguments[Je+2];de.children=Te}return{$$typeof:e,type:I.type,key:ye,ref:ve,props:de,_owner:ke}},me.createContext=function(I){return I={$$typeof:d,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:u,_context:I},I.Consumer=I},me.createElement=q,me.createFactory=function(I){var j=q.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:y,_payload:{_status:-1,_result:I},_init:$e}},me.memo=function(I,j){return{$$typeof:_,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=Q,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 vp;function Jr(){return vp||(vp=1,lu.exports=W_()),lu.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 _p;function X_(){if(_p)return Hi;_p=1;var e=Jr(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(h,p,_){var y,b={},m=null,E=null;_!==void 0&&(m=""+_),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(E=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(b[y]=p[y]);if(h&&h.defaultProps)for(y in p=h.defaultProps,p)b[y]===void 0&&(b[y]=p[y]);return{$$typeof:r,type:h,key:m,ref:E,props:b,_owner:l.current}}return Hi.Fragment=i,Hi.jsx=d,Hi.jsxs=d,Hi}var Ep;function Q_(){return Ep||(Ep=1,au.exports=X_()),au.exports}var R=Q_(),ps={},uu={exports:{}},Et={},cu={exports:{}},fu={};/**
|
|
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 Sp;function K_(){return Sp||(Sp=1,function(e){function r(W,ne){var Q=W.length;W.push(ne);e:for(;0<Q;){var I=Q-1>>>1,j=W[I];if(0<l(j,ne))W[I]=ne,W[Q]=j,Q=I;else break e}}function i(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var ne=W[0],Q=W.pop();if(Q!==ne){W[0]=Q;e:for(var I=0,j=W.length,ce=j>>>1;I<ce;){var de=2*(I+1)-1,ye=W[de],ve=de+1,ke=W[ve];if(0>l(ye,Q))ve<j&&0>l(ke,ye)?(W[I]=ke,W[ve]=Q,I=ve):(W[I]=ye,W[de]=Q,I=de);else if(ve<j&&0>l(ke,Q))W[I]=ke,W[ve]=Q,I=ve;else break e}}return ne}function l(W,ne){var Q=W.sortIndex-ne.sortIndex;return Q!==0?Q:W.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var p=[],_=[],y=1,b=null,m=3,E=!1,v=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(W){for(var ne=i(_);ne!==null;){if(ne.callback===null)s(_);else if(ne.startTime<=W)s(_),ne.sortIndex=ne.expirationTime,r(p,ne);else break;ne=i(_)}}function k(W){if(w=!1,S(W),!v)if(i(p)!==null)v=!0,$e(x);else{var ne=i(_);ne!==null&&Ne(k,ne.startTime-W)}}function x(W,ne){v=!1,w&&(w=!1,O(q),q=-1),E=!0;var Q=m;try{for(S(ne),b=i(p);b!==null&&(!(b.expirationTime>ne)||W&&!oe());){var I=b.callback;if(typeof I=="function"){b.callback=null,m=b.priorityLevel;var j=I(b.expirationTime<=ne);ne=e.unstable_now(),typeof j=="function"?b.callback=j:b===i(p)&&s(p),S(ne)}else s(p);b=i(p)}if(b!==null)var ce=!0;else{var de=i(_);de!==null&&Ne(k,de.startTime-ne),ce=!1}return ce}finally{b=null,m=Q,E=!1}}var L=!1,G=null,q=-1,fe=5,te=-1;function oe(){return!(e.unstable_now()-te<fe)}function pe(){if(G!==null){var W=e.unstable_now();te=W;var ne=!0;try{ne=G(!0,W)}finally{ne?ue():(L=!1,G=null)}}else L=!1}var ue;if(typeof N=="function")ue=function(){N(pe)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,Pe=ze.port2;ze.port1.onmessage=pe,ue=function(){Pe.postMessage(null)}}else ue=function(){C(pe,0)};function $e(W){G=W,L||(L=!0,ue())}function Ne(W,ne){q=C(function(){W(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){v||E||(v=!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 i(p)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var ne=3;break;default:ne=m}var Q=m;m=ne;try{return W()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,ne){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Q=m;m=W;try{return ne()}finally{m=Q}},e.unstable_scheduleCallback=function(W,ne,Q){var I=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?I+Q:I):Q=I,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=Q+j,W={id:y++,callback:ne,priorityLevel:W,startTime:Q,expirationTime:j,sortIndex:-1},Q>I?(W.sortIndex=Q,r(_,W),i(p)===null&&W===i(_)&&(w?(O(q),q=-1):w=!0,Ne(k,Q-I))):(W.sortIndex=j,r(p,W),v||E||(v=!0,$e(x))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var ne=m;return function(){var Q=m;m=ne;try{return W.apply(this,arguments)}finally{m=Q}}}}(fu)),fu}var bp;function Y_(){return bp||(bp=1,cu.exports=K_()),cu.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 wp;function Z_(){if(wp)return Et;wp=1;var e=Jr(),r=Y_();function i(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(t,n){d(t,n),d(t+"Capture",n)}function d(t,n){for(l[t]=n,t=0;t<n.length;t++)s.add(n[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},b={};function m(t){return p.call(b,t)?!0:p.call(y,t)?!1:_.test(t)?b[t]=!0:(y[t]=!0,!1)}function E(t,n,o,a){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function v(t,n,o,a){if(n===null||typeof n>"u"||E(t,n,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function w(t,n,o,a,c,f,g){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=t,this.type=n,this.sanitizeURL=f,this.removeEmptyString=g}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){C[t]=new w(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];C[n]=new w(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){C[t]=new w(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){C[t]=new w(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){C[t]=new w(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){C[t]=new w(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){C[t]=new w(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){C[t]=new w(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){C[t]=new w(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var n=t.replace(O,N);C[n]=new w(n,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(O,N);C[n]=new w(n,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(O,N);C[n]=new w(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){C[t]=new w(t,1,!1,t.toLowerCase(),null,!1,!1)}),C.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){C[t]=new w(t,1,!1,t.toLowerCase(),null,!0,!0)});function S(t,n,o,a){var c=C.hasOwnProperty(n)?C[n]:null;(c!==null?c.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(v(n,o,c,a)&&(o=null),a||c===null?m(n)&&(o===null?t.removeAttribute(n):t.setAttribute(n,""+o)):c.mustUseProperty?t[c.propertyName]=o===null?c.type===3?!1:"":o:(n=c.attributeName,a=c.attributeNamespace,o===null?t.removeAttribute(n):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,a?t.setAttributeNS(a,n,o):t.setAttribute(n,o))))}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),L=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),oe=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),W=Symbol.iterator;function ne(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var Q=Object.assign,I;function j(t){if(I===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
|
|
34
|
+
`+I+t}var ce=!1;function de(t,n){if(!t||ce)return"";ce=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(F){var a=F}Reflect.construct(t,[],n)}else{try{n.call()}catch(F){a=F}t.call(n.prototype)}else{try{throw Error()}catch(F){a=F}t()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var c=F.stack.split(`
|
|
35
|
+
`),f=a.stack.split(`
|
|
36
|
+
`),g=c.length-1,T=f.length-1;1<=g&&0<=T&&c[g]!==f[T];)T--;for(;1<=g&&0<=T;g--,T--)if(c[g]!==f[T]){if(g!==1||T!==1)do if(g--,T--,0>T||c[g]!==f[T]){var A=`
|
|
37
|
+
`+c[g].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=g&&0<=T);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?j(t):""}function ye(t){switch(t.tag){case 5:return j(t.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return t=de(t.type,!1),t;case 11:return t=de(t.type.render,!1),t;case 1:return t=de(t.type,!0),t;default:return""}}function ve(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case L:return"Portal";case fe:return"Profiler";case q:return"StrictMode";case ue:return"Suspense";case ze:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case pe:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Pe:return n=t.displayName||null,n!==null?n:ve(t.type)||"Memo";case $e:n=t._payload,t=t._init;try{return ve(t(n))}catch{}}return null}function ke(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(n);case 8:return n===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Je(t){var n=Re(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),a=""+t[n];if(!t.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(t,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function ni(t){t._valueTracker||(t._valueTracker=Je(t))}function ut(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var o=n.getValue(),a="";return t&&(a=Re(t)?t.checked?"true":"false":t.value),t=a,t!==o?(n.setValue(t),!0):!1}function en(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function pa(t,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function xf(t,n){var o=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;o=Te(n.value!=null?n.value:o),t._wrapperState={initialChecked:a,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Tf(t,n){n=n.checked,n!=null&&S(t,"checked",n,!1)}function ma(t,n){Tf(t,n);var o=Te(n.value),a=n.type;if(o!=null)a==="number"?(o===0&&t.value===""||t.value!=o)&&(t.value=""+o):t.value!==""+o&&(t.value=""+o);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}n.hasOwnProperty("value")?ga(t,n.type,o):n.hasOwnProperty("defaultValue")&&ga(t,n.type,Te(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function Cf(t,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+t._wrapperState.initialValue,o||n===t.value||(t.value=n),t.defaultValue=n}o=t.name,o!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,o!==""&&(t.name=o)}function ga(t,n,o){(n!=="number"||en(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ri=Array.isArray;function wr(t,n,o,a){if(t=t.options,n){n={};for(var c=0;c<o.length;c++)n["$"+o[c]]=!0;for(o=0;o<t.length;o++)c=n.hasOwnProperty("$"+t[o].value),t[o].selected!==c&&(t[o].selected=c),c&&a&&(t[o].defaultSelected=!0)}else{for(o=""+Te(o),n=null,c=0;c<t.length;c++){if(t[c].value===o){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function ya(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function kf(t,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(ri(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}t._wrapperState={initialValue:Te(o)}}function Rf(t,n){var o=Te(n.value),a=Te(n.defaultValue);o!=null&&(o=""+o,o!==t.value&&(t.value=o),n.defaultValue==null&&t.defaultValue!==o&&(t.defaultValue=o)),a!=null&&(t.defaultValue=""+a)}function Of(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function Nf(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 va(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?Nf(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var io,Af=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,a,c){MSApp.execUnsafeLocalFunction(function(){return t(n,o,a,c)})}:t}(function(t,n){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=n;else{for(io=io||document.createElement("div"),io.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=io.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function ii(t,n){if(n){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=n;return}}t.textContent=n}var oi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qv=["Webkit","ms","Moz","O"];Object.keys(oi).forEach(function(t){Qv.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),oi[n]=oi[t]})});function Pf(t,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||oi.hasOwnProperty(t)&&oi[t]?(""+n).trim():n+"px"}function If(t,n){t=t.style;for(var o in n)if(n.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Pf(o,n[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var Kv=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _a(t,n){if(n){if(Kv[t]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Ea(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sa=null;function ba(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wa=null,xr=null,Tr=null;function Df(t){if(t=ki(t)){if(typeof wa!="function")throw Error(i(280));var n=t.stateNode;n&&(n=Ro(n),wa(t.stateNode,t.type,n))}}function Mf(t){xr?Tr?Tr.push(t):Tr=[t]:xr=t}function Ff(){if(xr){var t=xr,n=Tr;if(Tr=xr=null,Df(t),n)for(t=0;t<n.length;t++)Df(n[t])}}function Lf(t,n){return t(n)}function Bf(){}var xa=!1;function jf(t,n,o){if(xa)return t(n,o);xa=!0;try{return Lf(t,n,o)}finally{xa=!1,(xr!==null||Tr!==null)&&(Bf(),Ff())}}function si(t,n){var o=t.stateNode;if(o===null)return null;var a=Ro(o);if(a===null)return null;o=a[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Ta=!1;if(h)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){Ta=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{Ta=!1}function Yv(t,n,o,a,c,f,g,T,A){var F=Array.prototype.slice.call(arguments,3);try{n.apply(o,F)}catch(U){this.onError(U)}}var li=!1,oo=null,so=!1,Ca=null,Zv={onError:function(t){li=!0,oo=t}};function Jv(t,n,o,a,c,f,g,T,A){li=!1,oo=null,Yv.apply(Zv,arguments)}function e0(t,n,o,a,c,f,g,T,A){if(Jv.apply(this,arguments),li){if(li){var F=oo;li=!1,oo=null}else throw Error(i(198));so||(so=!0,Ca=F)}}function er(t){var n=t,o=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(o=n.return),t=n.return;while(t)}return n.tag===3?o:null}function zf(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function Uf(t){if(er(t)!==t)throw Error(i(188))}function t0(t){var n=t.alternate;if(!n){if(n=er(t),n===null)throw Error(i(188));return n!==t?null:t}for(var o=t,a=n;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(a=c.return,a!==null){o=a;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return Uf(c),t;if(f===a)return Uf(c),n;f=f.sibling}throw Error(i(188))}if(o.return!==a.return)o=c,a=f;else{for(var g=!1,T=c.child;T;){if(T===o){g=!0,o=c,a=f;break}if(T===a){g=!0,a=c,o=f;break}T=T.sibling}if(!g){for(T=f.child;T;){if(T===o){g=!0,o=f,a=c;break}if(T===a){g=!0,a=f,o=c;break}T=T.sibling}if(!g)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:n}function Hf(t){return t=t0(t),t!==null?Gf(t):null}function Gf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=Gf(t);if(n!==null)return n;t=t.sibling}return null}var $f=r.unstable_scheduleCallback,qf=r.unstable_cancelCallback,n0=r.unstable_shouldYield,r0=r.unstable_requestPaint,He=r.unstable_now,i0=r.unstable_getCurrentPriorityLevel,ka=r.unstable_ImmediatePriority,Vf=r.unstable_UserBlockingPriority,ao=r.unstable_NormalPriority,o0=r.unstable_LowPriority,Wf=r.unstable_IdlePriority,lo=null,tn=null;function s0(t){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(lo,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:u0,a0=Math.log,l0=Math.LN2;function u0(t){return t>>>=0,t===0?32:31-(a0(t)/l0|0)|0}var uo=64,co=4194304;function ui(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function fo(t,n){var o=t.pendingLanes;if(o===0)return 0;var a=0,c=t.suspendedLanes,f=t.pingedLanes,g=o&268435455;if(g!==0){var T=g&~c;T!==0?a=ui(T):(f&=g,f!==0&&(a=ui(f)))}else g=o&~c,g!==0?a=ui(g):f!==0&&(a=ui(f));if(a===0)return 0;if(n!==0&&n!==a&&!(n&c)&&(c=a&-a,f=n&-n,c>=f||c===16&&(f&4194240)!==0))return n;if(a&4&&(a|=o&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=a;0<n;)o=31-Ht(n),c=1<<o,a|=t[o],n&=~c;return a}function c0(t,n){switch(t){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function f0(t,n){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes;0<f;){var g=31-Ht(f),T=1<<g,A=c[g];A===-1?(!(T&o)||T&a)&&(c[g]=c0(T,n)):A<=n&&(t.expiredLanes|=T),f&=~T}}function Ra(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Xf(){var t=uo;return uo<<=1,!(uo&4194240)&&(uo=64),t}function Oa(t){for(var n=[],o=0;31>o;o++)n.push(t);return n}function ci(t,n,o){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-Ht(n),t[n]=o}function d0(t,n){var o=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<o;){var c=31-Ht(o),f=1<<c;n[c]=0,a[c]=-1,t[c]=-1,o&=~f}}function Na(t,n){var o=t.entangledLanes|=n;for(t=t.entanglements;o;){var a=31-Ht(o),c=1<<a;c&n|t[a]&n&&(t[a]|=n),o&=~c}}var Oe=0;function Qf(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Kf,Aa,Yf,Zf,Jf,Pa=!1,ho=[],On=null,Nn=null,An=null,fi=new Map,di=new Map,Pn=[],h0="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 ed(t,n){switch(t){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Nn=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":fi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(n.pointerId)}}function hi(t,n,o,a,c,f){return t===null||t.nativeEvent!==f?(t={blockedOn:n,domEventName:o,eventSystemFlags:a,nativeEvent:f,targetContainers:[c]},n!==null&&(n=ki(n),n!==null&&Aa(n)),t):(t.eventSystemFlags|=a,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function p0(t,n,o,a,c){switch(n){case"focusin":return On=hi(On,t,n,o,a,c),!0;case"dragenter":return Nn=hi(Nn,t,n,o,a,c),!0;case"mouseover":return An=hi(An,t,n,o,a,c),!0;case"pointerover":var f=c.pointerId;return fi.set(f,hi(fi.get(f)||null,t,n,o,a,c)),!0;case"gotpointercapture":return f=c.pointerId,di.set(f,hi(di.get(f)||null,t,n,o,a,c)),!0}return!1}function td(t){var n=tr(t.target);if(n!==null){var o=er(n);if(o!==null){if(n=o.tag,n===13){if(n=zf(o),n!==null){t.blockedOn=n,Jf(t.priority,function(){Yf(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function po(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var o=Da(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);Sa=a,o.target.dispatchEvent(a),Sa=null}else return n=ki(o),n!==null&&Aa(n),t.blockedOn=o,!1;n.shift()}return!0}function nd(t,n,o){po(t)&&o.delete(n)}function m0(){Pa=!1,On!==null&&po(On)&&(On=null),Nn!==null&&po(Nn)&&(Nn=null),An!==null&&po(An)&&(An=null),fi.forEach(nd),di.forEach(nd)}function pi(t,n){t.blockedOn===n&&(t.blockedOn=null,Pa||(Pa=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,m0)))}function mi(t){function n(c){return pi(c,t)}if(0<ho.length){pi(ho[0],t);for(var o=1;o<ho.length;o++){var a=ho[o];a.blockedOn===t&&(a.blockedOn=null)}}for(On!==null&&pi(On,t),Nn!==null&&pi(Nn,t),An!==null&&pi(An,t),fi.forEach(n),di.forEach(n),o=0;o<Pn.length;o++)a=Pn[o],a.blockedOn===t&&(a.blockedOn=null);for(;0<Pn.length&&(o=Pn[0],o.blockedOn===null);)td(o),o.blockedOn===null&&Pn.shift()}var Cr=k.ReactCurrentBatchConfig,mo=!0;function g0(t,n,o,a){var c=Oe,f=Cr.transition;Cr.transition=null;try{Oe=1,Ia(t,n,o,a)}finally{Oe=c,Cr.transition=f}}function y0(t,n,o,a){var c=Oe,f=Cr.transition;Cr.transition=null;try{Oe=4,Ia(t,n,o,a)}finally{Oe=c,Cr.transition=f}}function Ia(t,n,o,a){if(mo){var c=Da(t,n,o,a);if(c===null)Ya(t,n,a,go,o),ed(t,a);else if(p0(c,t,n,o,a))a.stopPropagation();else if(ed(t,a),n&4&&-1<h0.indexOf(t)){for(;c!==null;){var f=ki(c);if(f!==null&&Kf(f),f=Da(t,n,o,a),f===null&&Ya(t,n,a,go,o),f===c)break;c=f}c!==null&&a.stopPropagation()}else Ya(t,n,a,null,o)}}var go=null;function Da(t,n,o,a){if(go=null,t=ba(a),t=tr(t),t!==null)if(n=er(t),n===null)t=null;else if(o=n.tag,o===13){if(t=zf(n),t!==null)return t;t=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null);return go=t,null}function rd(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(i0()){case ka:return 1;case Vf:return 4;case ao:case o0:return 16;case Wf:return 536870912;default:return 16}default:return 16}}var In=null,Ma=null,yo=null;function id(){if(yo)return yo;var t,n=Ma,o=n.length,a,c="value"in In?In.value:In.textContent,f=c.length;for(t=0;t<o&&n[t]===c[t];t++);var g=o-t;for(a=1;a<=g&&n[o-a]===c[f-a];a++);return yo=c.slice(t,1<a?1-a:void 0)}function vo(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function _o(){return!0}function od(){return!1}function bt(t){function n(o,a,c,f,g){this._reactName=o,this._targetInst=c,this.type=a,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(o=t[T],this[T]=o?o(f):f[T]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?_o:od,this.isPropagationStopped=od,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=_o)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),n}var kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=bt(kr),gi=Q({},kr,{view:0,detail:0}),v0=bt(gi),La,Ba,yi,Eo=Q({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:za,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==yi&&(yi&&t.type==="mousemove"?(La=t.screenX-yi.screenX,Ba=t.screenY-yi.screenY):Ba=La=0,yi=t),La)},movementY:function(t){return"movementY"in t?t.movementY:Ba}}),sd=bt(Eo),_0=Q({},Eo,{dataTransfer:0}),E0=bt(_0),S0=Q({},gi,{relatedTarget:0}),ja=bt(S0),b0=Q({},kr,{animationName:0,elapsedTime:0,pseudoElement:0}),w0=bt(b0),x0=Q({},kr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),T0=bt(x0),C0=Q({},kr,{data:0}),ad=bt(C0),k0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R0={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"},O0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N0(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=O0[t])?!!n[t]:!1}function za(){return N0}var A0=Q({},gi,{key:function(t){if(t.key){var n=k0[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=vo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?R0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:za,charCode:function(t){return t.type==="keypress"?vo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?vo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),P0=bt(A0),I0=Q({},Eo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=bt(I0),D0=Q({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:za}),M0=bt(D0),F0=Q({},kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),L0=bt(F0),B0=Q({},Eo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),j0=bt(B0),z0=[9,13,27,32],Ua=h&&"CompositionEvent"in window,vi=null;h&&"documentMode"in document&&(vi=document.documentMode);var U0=h&&"TextEvent"in window&&!vi,ud=h&&(!Ua||vi&&8<vi&&11>=vi),cd=" ",fd=!1;function dd(t,n){switch(t){case"keyup":return z0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Rr=!1;function H0(t,n){switch(t){case"compositionend":return hd(n);case"keypress":return n.which!==32?null:(fd=!0,cd);case"textInput":return t=n.data,t===cd&&fd?null:t;default:return null}}function G0(t,n){if(Rr)return t==="compositionend"||!Ua&&dd(t,n)?(t=id(),yo=Ma=In=null,Rr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ud&&n.locale!=="ko"?null:n.data;default:return null}}var $0={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 pd(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!$0[t.type]:n==="textarea"}function md(t,n,o,a){Mf(a),n=To(n,"onChange"),0<n.length&&(o=new Fa("onChange","change",null,o,a),t.push({event:o,listeners:n}))}var _i=null,Ei=null;function q0(t){Id(t,0)}function So(t){var n=Ir(t);if(ut(n))return t}function V0(t,n){if(t==="change")return n}var gd=!1;if(h){var Ha;if(h){var Ga="oninput"in document;if(!Ga){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),Ga=typeof yd.oninput=="function"}Ha=Ga}else Ha=!1;gd=Ha&&(!document.documentMode||9<document.documentMode)}function vd(){_i&&(_i.detachEvent("onpropertychange",_d),Ei=_i=null)}function _d(t){if(t.propertyName==="value"&&So(Ei)){var n=[];md(n,Ei,t,ba(t)),jf(q0,n)}}function W0(t,n,o){t==="focusin"?(vd(),_i=n,Ei=o,_i.attachEvent("onpropertychange",_d)):t==="focusout"&&vd()}function X0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return So(Ei)}function Q0(t,n){if(t==="click")return So(n)}function K0(t,n){if(t==="input"||t==="change")return So(n)}function Y0(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Gt=typeof Object.is=="function"?Object.is:Y0;function Si(t,n){if(Gt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var c=o[a];if(!p.call(n,c)||!Gt(t[c],n[c]))return!1}return!0}function Ed(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sd(t,n){var o=Ed(t);t=0;for(var a;o;){if(o.nodeType===3){if(a=t+o.textContent.length,t<=n&&a>=n)return{node:o,offset:n-t};t=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Ed(o)}}function bd(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?bd(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function wd(){for(var t=window,n=en();n instanceof t.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)t=n.contentWindow;else break;n=en(t.document)}return n}function $a(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function Z0(t){var n=wd(),o=t.focusedElem,a=t.selectionRange;if(n!==o&&o&&o.ownerDocument&&bd(o.ownerDocument.documentElement,o)){if(a!==null&&$a(o)){if(n=a.start,t=a.end,t===void 0&&(t=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(t,o.value.length);else if(t=(n=o.ownerDocument||document)&&n.defaultView||window,t.getSelection){t=t.getSelection();var c=o.textContent.length,f=Math.min(a.start,c);a=a.end===void 0?f:Math.min(a.end,c),!t.extend&&f>a&&(c=a,a=f,f=c),c=Sd(o,f);var g=Sd(o,a);c&&g&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==g.node||t.focusOffset!==g.offset)&&(n=n.createRange(),n.setStart(c.node,c.offset),t.removeAllRanges(),f>a?(t.addRange(n),t.extend(g.node,g.offset)):(n.setEnd(g.node,g.offset),t.addRange(n)))}}for(n=[],t=o;t=t.parentNode;)t.nodeType===1&&n.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)t=n[o],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var J0=h&&"documentMode"in document&&11>=document.documentMode,Or=null,qa=null,bi=null,Va=!1;function xd(t,n,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Va||Or==null||Or!==en(a)||(a=Or,"selectionStart"in a&&$a(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}),bi&&Si(bi,a)||(bi=a,a=To(qa,"onSelect"),0<a.length&&(n=new Fa("onSelect","select",null,n,o),t.push({event:n,listeners:a}),n.target=Or)))}function bo(t,n){var o={};return o[t.toLowerCase()]=n.toLowerCase(),o["Webkit"+t]="webkit"+n,o["Moz"+t]="moz"+n,o}var Nr={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionend:bo("Transition","TransitionEnd")},Wa={},Td={};h&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function wo(t){if(Wa[t])return Wa[t];if(!Nr[t])return t;var n=Nr[t],o;for(o in n)if(n.hasOwnProperty(o)&&o in Td)return Wa[t]=n[o];return t}var Cd=wo("animationend"),kd=wo("animationiteration"),Rd=wo("animationstart"),Od=wo("transitionend"),Nd=new Map,Ad="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 Dn(t,n){Nd.set(t,n),u(n,[t])}for(var Xa=0;Xa<Ad.length;Xa++){var Qa=Ad[Xa],e_=Qa.toLowerCase(),t_=Qa[0].toUpperCase()+Qa.slice(1);Dn(e_,"on"+t_)}Dn(Cd,"onAnimationEnd"),Dn(kd,"onAnimationIteration"),Dn(Rd,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(Od,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),n_=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function Pd(t,n,o){var a=t.type||"unknown-event";t.currentTarget=o,e0(a,n,void 0,t),t.currentTarget=null}function Id(t,n){n=(n&4)!==0;for(var o=0;o<t.length;o++){var a=t[o],c=a.event;a=a.listeners;e:{var f=void 0;if(n)for(var g=a.length-1;0<=g;g--){var T=a[g],A=T.instance,F=T.currentTarget;if(T=T.listener,A!==f&&c.isPropagationStopped())break e;Pd(c,T,F),f=A}else for(g=0;g<a.length;g++){if(T=a[g],A=T.instance,F=T.currentTarget,T=T.listener,A!==f&&c.isPropagationStopped())break e;Pd(c,T,F),f=A}}}if(so)throw t=Ca,so=!1,Ca=null,t}function Ie(t,n){var o=n[rl];o===void 0&&(o=n[rl]=new Set);var a=t+"__bubble";o.has(a)||(Dd(n,t,2,!1),o.add(a))}function Ka(t,n,o){var a=0;n&&(a|=4),Dd(o,t,a,n)}var xo="_reactListening"+Math.random().toString(36).slice(2);function xi(t){if(!t[xo]){t[xo]=!0,s.forEach(function(o){o!=="selectionchange"&&(n_.has(o)||Ka(o,!1,t),Ka(o,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[xo]||(n[xo]=!0,Ka("selectionchange",!1,n))}}function Dd(t,n,o,a){switch(rd(n)){case 1:var c=g0;break;case 4:c=y0;break;default:c=Ia}o=c.bind(null,n,o,t),c=void 0,!Ta||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(n,o,{capture:!0,passive:c}):t.addEventListener(n,o,!0):c!==void 0?t.addEventListener(n,o,{passive:c}):t.addEventListener(n,o,!1)}function Ya(t,n,o,a,c){var f=a;if(!(n&1)&&!(n&2)&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var T=a.stateNode.containerInfo;if(T===c||T.nodeType===8&&T.parentNode===c)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&(A=g.stateNode.containerInfo,A===c||A.nodeType===8&&A.parentNode===c))return;g=g.return}for(;T!==null;){if(g=tr(T),g===null)return;if(A=g.tag,A===5||A===6){a=f=g;continue e}T=T.parentNode}}a=a.return}jf(function(){var F=f,U=ba(o),H=[];e:{var z=Nd.get(t);if(z!==void 0){var X=Fa,Y=t;switch(t){case"keypress":if(vo(o)===0)break e;case"keydown":case"keyup":X=P0;break;case"focusin":Y="focus",X=ja;break;case"focusout":Y="blur",X=ja;break;case"beforeblur":case"afterblur":X=ja;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=E0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=M0;break;case Cd:case kd:case Rd:X=w0;break;case Od:X=L0;break;case"scroll":X=v0;break;case"wheel":X=j0;break;case"copy":case"cut":case"paste":X=T0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=ld}var Z=(n&4)!==0,Ge=!Z&&t==="scroll",D=Z?z!==null?z+"Capture":null:z;Z=[];for(var P=F,M;P!==null;){M=P;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,D!==null&&($=si(P,D),$!=null&&Z.push(Ti(P,$,M)))),Ge)break;P=P.return}0<Z.length&&(z=new X(z,Y,null,o,U),H.push({event:z,listeners:Z}))}}if(!(n&7)){e:{if(z=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",z&&o!==Sa&&(Y=o.relatedTarget||o.fromElement)&&(tr(Y)||Y[hn]))break e;if((X||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,X?(Y=o.relatedTarget||o.toElement,X=F,Y=Y?tr(Y):null,Y!==null&&(Ge=er(Y),Y!==Ge||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(X=null,Y=F),X!==Y)){if(Z=sd,$="onMouseLeave",D="onMouseEnter",P="mouse",(t==="pointerout"||t==="pointerover")&&(Z=ld,$="onPointerLeave",D="onPointerEnter",P="pointer"),Ge=X==null?z:Ir(X),M=Y==null?z:Ir(Y),z=new Z($,P+"leave",X,o,U),z.target=Ge,z.relatedTarget=M,$=null,tr(U)===F&&(Z=new Z(D,P+"enter",Y,o,U),Z.target=M,Z.relatedTarget=Ge,$=Z),Ge=$,X&&Y)t:{for(Z=X,D=Y,P=0,M=Z;M;M=Ar(M))P++;for(M=0,$=D;$;$=Ar($))M++;for(;0<P-M;)Z=Ar(Z),P--;for(;0<M-P;)D=Ar(D),M--;for(;P--;){if(Z===D||D!==null&&Z===D.alternate)break t;Z=Ar(Z),D=Ar(D)}Z=null}else Z=null;X!==null&&Md(H,z,X,Z,!1),Y!==null&&Ge!==null&&Md(H,Ge,Y,Z,!0)}}e:{if(z=F?Ir(F):window,X=z.nodeName&&z.nodeName.toLowerCase(),X==="select"||X==="input"&&z.type==="file")var ee=V0;else if(pd(z))if(gd)ee=K0;else{ee=X0;var re=W0}else(X=z.nodeName)&&X.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(ee=Q0);if(ee&&(ee=ee(t,F))){md(H,ee,o,U);break e}re&&re(t,z,F),t==="focusout"&&(re=z._wrapperState)&&re.controlled&&z.type==="number"&&ga(z,"number",z.value)}switch(re=F?Ir(F):window,t){case"focusin":(pd(re)||re.contentEditable==="true")&&(Or=re,qa=F,bi=null);break;case"focusout":bi=qa=Or=null;break;case"mousedown":Va=!0;break;case"contextmenu":case"mouseup":case"dragend":Va=!1,xd(H,o,U);break;case"selectionchange":if(J0)break;case"keydown":case"keyup":xd(H,o,U)}var ie;if(Ua)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 Rr?dd(t,o)&&(ae="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(ud&&o.locale!=="ko"&&(Rr||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Rr&&(ie=id()):(In=U,Ma="value"in In?In.value:In.textContent,Rr=!0)),re=To(F,ae),0<re.length&&(ae=new ad(ae,t,null,o,U),H.push({event:ae,listeners:re}),ie?ae.data=ie:(ie=hd(o),ie!==null&&(ae.data=ie)))),(ie=U0?H0(t,o):G0(t,o))&&(F=To(F,"onBeforeInput"),0<F.length&&(U=new ad("onBeforeInput","beforeinput",null,o,U),H.push({event:U,listeners:F}),U.data=ie))}Id(H,n)})}function Ti(t,n,o){return{instance:t,listener:n,currentTarget:o}}function To(t,n){for(var o=n+"Capture",a=[];t!==null;){var c=t,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=si(t,o),f!=null&&a.unshift(Ti(t,f,c)),f=si(t,n),f!=null&&a.push(Ti(t,f,c))),t=t.return}return a}function Ar(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Md(t,n,o,a,c){for(var f=n._reactName,g=[];o!==null&&o!==a;){var T=o,A=T.alternate,F=T.stateNode;if(A!==null&&A===a)break;T.tag===5&&F!==null&&(T=F,c?(A=si(o,f),A!=null&&g.unshift(Ti(o,A,T))):c||(A=si(o,f),A!=null&&g.push(Ti(o,A,T)))),o=o.return}g.length!==0&&t.push({event:n,listeners:g})}var r_=/\r\n?/g,i_=/\u0000|\uFFFD/g;function Fd(t){return(typeof t=="string"?t:""+t).replace(r_,`
|
|
38
|
+
`).replace(i_,"")}function Co(t,n,o){if(n=Fd(n),Fd(t)!==n&&o)throw Error(i(425))}function ko(){}var Za=null,Ja=null;function el(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var tl=typeof setTimeout=="function"?setTimeout:void 0,o_=typeof clearTimeout=="function"?clearTimeout:void 0,Ld=typeof Promise=="function"?Promise:void 0,s_=typeof queueMicrotask=="function"?queueMicrotask:typeof Ld<"u"?function(t){return Ld.resolve(null).then(t).catch(a_)}:tl;function a_(t){setTimeout(function(){throw t})}function nl(t,n){var o=n,a=0;do{var c=o.nextSibling;if(t.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0){t.removeChild(c),mi(n);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);mi(n)}function Mn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return t}function Bd(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return t;n--}else o==="/$"&&n++}t=t.previousSibling}return null}var Pr=Math.random().toString(36).slice(2),nn="__reactFiber$"+Pr,Ci="__reactProps$"+Pr,hn="__reactContainer$"+Pr,rl="__reactEvents$"+Pr,l_="__reactListeners$"+Pr,u_="__reactHandles$"+Pr;function tr(t){var n=t[nn];if(n)return n;for(var o=t.parentNode;o;){if(n=o[hn]||o[nn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(t=Bd(t);t!==null;){if(o=t[nn])return o;t=Bd(t)}return n}t=o,o=t.parentNode}return null}function ki(t){return t=t[nn]||t[hn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ir(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Ro(t){return t[Ci]||null}var il=[],Dr=-1;function Fn(t){return{current:t}}function De(t){0>Dr||(t.current=il[Dr],il[Dr]=null,Dr--)}function Ae(t,n){Dr++,il[Dr]=t.current,t.current=n}var Ln={},ot=Fn(Ln),mt=Fn(!1),nr=Ln;function Mr(t,n){var o=t.type.contextTypes;if(!o)return Ln;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=n[f];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=c),c}function gt(t){return t=t.childContextTypes,t!=null}function Oo(){De(mt),De(ot)}function jd(t,n,o){if(ot.current!==Ln)throw Error(i(168));Ae(ot,n),Ae(mt,o)}function zd(t,n,o){var a=t.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var c in a)if(!(c in n))throw Error(i(108,ke(t)||"Unknown",c));return Q({},o,a)}function No(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ln,nr=ot.current,Ae(ot,t),Ae(mt,mt.current),!0}function Ud(t,n,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=zd(t,n,nr),a.__reactInternalMemoizedMergedChildContext=t,De(mt),De(ot),Ae(ot,t)):De(mt),Ae(mt,o)}var pn=null,Ao=!1,ol=!1;function Hd(t){pn===null?pn=[t]:pn.push(t)}function c_(t){Ao=!0,Hd(t)}function Bn(){if(!ol&&pn!==null){ol=!0;var t=0,n=Oe;try{var o=pn;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}pn=null,Ao=!1}catch(c){throw pn!==null&&(pn=pn.slice(t+1)),$f(ka,Bn),c}finally{Oe=n,ol=!1}}return null}var Fr=[],Lr=0,Po=null,Io=0,It=[],Dt=0,rr=null,mn=1,gn="";function ir(t,n){Fr[Lr++]=Io,Fr[Lr++]=Po,Po=t,Io=n}function Gd(t,n,o){It[Dt++]=mn,It[Dt++]=gn,It[Dt++]=rr,rr=t;var a=mn;t=gn;var c=32-Ht(a)-1;a&=~(1<<c),o+=1;var f=32-Ht(n)+c;if(30<f){var g=c-c%5;f=(a&(1<<g)-1).toString(32),a>>=g,c-=g,mn=1<<32-Ht(n)+c|o<<c|a,gn=f+t}else mn=1<<f|o<<c|a,gn=t}function sl(t){t.return!==null&&(ir(t,1),Gd(t,1,0))}function al(t){for(;t===Po;)Po=Fr[--Lr],Fr[Lr]=null,Io=Fr[--Lr],Fr[Lr]=null;for(;t===rr;)rr=It[--Dt],It[Dt]=null,gn=It[--Dt],It[Dt]=null,mn=It[--Dt],It[Dt]=null}var wt=null,xt=null,Fe=!1,$t=null;function $d(t,n){var o=Bt(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=t,n=t.deletions,n===null?(t.deletions=[o],t.flags|=16):n.push(o)}function qd(t,n){switch(t.tag){case 5:var o=t.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(t.stateNode=n,wt=t,xt=Mn(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,wt=t,xt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=rr!==null?{id:mn,overflow:gn}:null,t.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Bt(18,null,null,0),o.stateNode=n,o.return=t,t.child=o,wt=t,xt=null,!0):!1;default:return!1}}function ll(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ul(t){if(Fe){var n=xt;if(n){var o=n;if(!qd(t,n)){if(ll(t))throw Error(i(418));n=Mn(o.nextSibling);var a=wt;n&&qd(t,n)?$d(a,o):(t.flags=t.flags&-4097|2,Fe=!1,wt=t)}}else{if(ll(t))throw Error(i(418));t.flags=t.flags&-4097|2,Fe=!1,wt=t}}}function Vd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;wt=t}function Do(t){if(t!==wt)return!1;if(!Fe)return Vd(t),Fe=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!el(t.type,t.memoizedProps)),n&&(n=xt)){if(ll(t))throw Wd(),Error(i(418));for(;n;)$d(t,n),n=Mn(n.nextSibling)}if(Vd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"){if(n===0){xt=Mn(t.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}t=t.nextSibling}xt=null}}else xt=wt?Mn(t.stateNode.nextSibling):null;return!0}function Wd(){for(var t=xt;t;)t=Mn(t.nextSibling)}function Br(){xt=wt=null,Fe=!1}function cl(t){$t===null?$t=[t]:$t.push(t)}var f_=k.ReactCurrentBatchConfig;function Ri(t,n,o){if(t=o.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,t));var c=a,f=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===f?n.ref:(n=function(g){var T=c.refs;g===null?delete T[f]:T[f]=g},n._stringRef=f,n)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function Mo(t,n){throw t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function Xd(t){var n=t._init;return n(t._payload)}function Qd(t){function n(D,P){if(t){var M=D.deletions;M===null?(D.deletions=[P],D.flags|=16):M.push(P)}}function o(D,P){if(!t)return null;for(;P!==null;)n(D,P),P=P.sibling;return null}function a(D,P){for(D=new Map;P!==null;)P.key!==null?D.set(P.key,P):D.set(P.index,P),P=P.sibling;return D}function c(D,P){return D=Vn(D,P),D.index=0,D.sibling=null,D}function f(D,P,M){return D.index=M,t?(M=D.alternate,M!==null?(M=M.index,M<P?(D.flags|=2,P):M):(D.flags|=2,P)):(D.flags|=1048576,P)}function g(D){return t&&D.alternate===null&&(D.flags|=2),D}function T(D,P,M,$){return P===null||P.tag!==6?(P=tu(M,D.mode,$),P.return=D,P):(P=c(P,M),P.return=D,P)}function A(D,P,M,$){var ee=M.type;return ee===G?U(D,P,M.props.children,$,M.key):P!==null&&(P.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&Xd(ee)===P.type)?($=c(P,M.props),$.ref=Ri(D,P,M),$.return=D,$):($=os(M.type,M.key,M.props,null,D.mode,$),$.ref=Ri(D,P,M),$.return=D,$)}function F(D,P,M,$){return P===null||P.tag!==4||P.stateNode.containerInfo!==M.containerInfo||P.stateNode.implementation!==M.implementation?(P=nu(M,D.mode,$),P.return=D,P):(P=c(P,M.children||[]),P.return=D,P)}function U(D,P,M,$,ee){return P===null||P.tag!==7?(P=dr(M,D.mode,$,ee),P.return=D,P):(P=c(P,M),P.return=D,P)}function H(D,P,M){if(typeof P=="string"&&P!==""||typeof P=="number")return P=tu(""+P,D.mode,M),P.return=D,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case x:return M=os(P.type,P.key,P.props,null,D.mode,M),M.ref=Ri(D,null,P),M.return=D,M;case L:return P=nu(P,D.mode,M),P.return=D,P;case $e:var $=P._init;return H(D,$(P._payload),M)}if(ri(P)||ne(P))return P=dr(P,D.mode,M,null),P.return=D,P;Mo(D,P)}return null}function z(D,P,M,$){var ee=P!==null?P.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:T(D,P,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return M.key===ee?A(D,P,M,$):null;case L:return M.key===ee?F(D,P,M,$):null;case $e:return ee=M._init,z(D,P,ee(M._payload),$)}if(ri(M)||ne(M))return ee!==null?null:U(D,P,M,$,null);Mo(D,M)}return null}function X(D,P,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return D=D.get(M)||null,T(P,D,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return D=D.get($.key===null?M:$.key)||null,A(P,D,$,ee);case L:return D=D.get($.key===null?M:$.key)||null,F(P,D,$,ee);case $e:var re=$._init;return X(D,P,M,re($._payload),ee)}if(ri($)||ne($))return D=D.get(M)||null,U(P,D,$,ee,null);Mo(P,$)}return null}function Y(D,P,M,$){for(var ee=null,re=null,ie=P,ae=P=0,Ze=null;ie!==null&&ae<M.length;ae++){ie.index>ae?(Ze=ie,ie=null):Ze=ie.sibling;var xe=z(D,ie,M[ae],$);if(xe===null){ie===null&&(ie=Ze);break}t&&ie&&xe.alternate===null&&n(D,ie),P=f(xe,P,ae),re===null?ee=xe:re.sibling=xe,re=xe,ie=Ze}if(ae===M.length)return o(D,ie),Fe&&ir(D,ae),ee;if(ie===null){for(;ae<M.length;ae++)ie=H(D,M[ae],$),ie!==null&&(P=f(ie,P,ae),re===null?ee=ie:re.sibling=ie,re=ie);return Fe&&ir(D,ae),ee}for(ie=a(D,ie);ae<M.length;ae++)Ze=X(ie,D,ae,M[ae],$),Ze!==null&&(t&&Ze.alternate!==null&&ie.delete(Ze.key===null?ae:Ze.key),P=f(Ze,P,ae),re===null?ee=Ze:re.sibling=Ze,re=Ze);return t&&ie.forEach(function(Wn){return n(D,Wn)}),Fe&&ir(D,ae),ee}function Z(D,P,M,$){var ee=ne(M);if(typeof ee!="function")throw Error(i(150));if(M=ee.call(M),M==null)throw Error(i(151));for(var re=ee=null,ie=P,ae=P=0,Ze=null,xe=M.next();ie!==null&&!xe.done;ae++,xe=M.next()){ie.index>ae?(Ze=ie,ie=null):Ze=ie.sibling;var Wn=z(D,ie,xe.value,$);if(Wn===null){ie===null&&(ie=Ze);break}t&&ie&&Wn.alternate===null&&n(D,ie),P=f(Wn,P,ae),re===null?ee=Wn:re.sibling=Wn,re=Wn,ie=Ze}if(xe.done)return o(D,ie),Fe&&ir(D,ae),ee;if(ie===null){for(;!xe.done;ae++,xe=M.next())xe=H(D,xe.value,$),xe!==null&&(P=f(xe,P,ae),re===null?ee=xe:re.sibling=xe,re=xe);return Fe&&ir(D,ae),ee}for(ie=a(D,ie);!xe.done;ae++,xe=M.next())xe=X(ie,D,ae,xe.value,$),xe!==null&&(t&&xe.alternate!==null&&ie.delete(xe.key===null?ae:xe.key),P=f(xe,P,ae),re===null?ee=xe:re.sibling=xe,re=xe);return t&&ie.forEach(function($_){return n(D,$_)}),Fe&&ir(D,ae),ee}function Ge(D,P,M,$){if(typeof M=="object"&&M!==null&&M.type===G&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case x:e:{for(var ee=M.key,re=P;re!==null;){if(re.key===ee){if(ee=M.type,ee===G){if(re.tag===7){o(D,re.sibling),P=c(re,M.props.children),P.return=D,D=P;break e}}else if(re.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&Xd(ee)===re.type){o(D,re.sibling),P=c(re,M.props),P.ref=Ri(D,re,M),P.return=D,D=P;break e}o(D,re);break}else n(D,re);re=re.sibling}M.type===G?(P=dr(M.props.children,D.mode,$,M.key),P.return=D,D=P):($=os(M.type,M.key,M.props,null,D.mode,$),$.ref=Ri(D,P,M),$.return=D,D=$)}return g(D);case L:e:{for(re=M.key;P!==null;){if(P.key===re)if(P.tag===4&&P.stateNode.containerInfo===M.containerInfo&&P.stateNode.implementation===M.implementation){o(D,P.sibling),P=c(P,M.children||[]),P.return=D,D=P;break e}else{o(D,P);break}else n(D,P);P=P.sibling}P=nu(M,D.mode,$),P.return=D,D=P}return g(D);case $e:return re=M._init,Ge(D,P,re(M._payload),$)}if(ri(M))return Y(D,P,M,$);if(ne(M))return Z(D,P,M,$);Mo(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,P!==null&&P.tag===6?(o(D,P.sibling),P=c(P,M),P.return=D,D=P):(o(D,P),P=tu(M,D.mode,$),P.return=D,D=P),g(D)):o(D,P)}return Ge}var jr=Qd(!0),Kd=Qd(!1),Fo=Fn(null),Lo=null,zr=null,fl=null;function dl(){fl=zr=Lo=null}function hl(t){var n=Fo.current;De(Fo),t._currentValue=n}function pl(t,n,o){for(;t!==null;){var a=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),t===o)break;t=t.return}}function Ur(t,n){Lo=t,fl=zr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&n&&(yt=!0),t.firstContext=null)}function Mt(t){var n=t._currentValue;if(fl!==t)if(t={context:t,memoizedValue:n,next:null},zr===null){if(Lo===null)throw Error(i(308));zr=t,Lo.dependencies={lanes:0,firstContext:t}}else zr=zr.next=t;return n}var or=null;function ml(t){or===null?or=[t]:or.push(t)}function Yd(t,n,o,a){var c=n.interleaved;return c===null?(o.next=o,ml(n)):(o.next=c.next,c.next=o),n.interleaved=o,yn(t,a)}function yn(t,n){t.lanes|=n;var o=t.alternate;for(o!==null&&(o.lanes|=n),o=t,t=t.return;t!==null;)t.childLanes|=n,o=t.alternate,o!==null&&(o.childLanes|=n),o=t,t=t.return;return o.tag===3?o.stateNode:null}var jn=!1;function gl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zd(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function vn(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function zn(t,n,o){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,be&2){var c=a.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n,yn(t,o)}return c=a.interleaved,c===null?(n.next=n,ml(a)):(n.next=c.next,c.next=n),a.interleaved=n,yn(t,o)}function Bo(t,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var a=n.lanes;a&=t.pendingLanes,o|=a,n.lanes=o,Na(t,o)}}function Jd(t,n){var o=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var g={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?c=f=g:f=f.next=g,o=o.next}while(o!==null);f===null?c=f=n:f=f.next=n}else c=f=n;o={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:a.shared,effects:a.effects},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=n:t.next=n,o.lastBaseUpdate=n}function jo(t,n,o,a){var c=t.updateQueue;jn=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,T=c.shared.pending;if(T!==null){c.shared.pending=null;var A=T,F=A.next;A.next=null,g===null?f=F:g.next=F,g=A;var U=t.alternate;U!==null&&(U=U.updateQueue,T=U.lastBaseUpdate,T!==g&&(T===null?U.firstBaseUpdate=F:T.next=F,U.lastBaseUpdate=A))}if(f!==null){var H=c.baseState;g=0,U=F=A=null,T=f;do{var z=T.lane,X=T.eventTime;if((a&z)===z){U!==null&&(U=U.next={eventTime:X,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var Y=t,Z=T;switch(z=n,X=o,Z.tag){case 1:if(Y=Z.payload,typeof Y=="function"){H=Y.call(X,H,z);break e}H=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=Z.payload,z=typeof Y=="function"?Y.call(X,H,z):Y,z==null)break e;H=Q({},H,z);break e;case 2:jn=!0}}T.callback!==null&&T.lane!==0&&(t.flags|=64,z=c.effects,z===null?c.effects=[T]:z.push(T))}else X={eventTime:X,lane:z,tag:T.tag,payload:T.payload,callback:T.callback,next:null},U===null?(F=U=X,A=H):U=U.next=X,g|=z;if(T=T.next,T===null){if(T=c.shared.pending,T===null)break;z=T,T=z.next,z.next=null,c.lastBaseUpdate=z,c.shared.pending=null}}while(!0);if(U===null&&(A=H),c.baseState=A,c.firstBaseUpdate=F,c.lastBaseUpdate=U,n=c.shared.interleaved,n!==null){c=n;do g|=c.lane,c=c.next;while(c!==n)}else f===null&&(c.shared.lanes=0);lr|=g,t.lanes=g,t.memoizedState=H}}function eh(t,n,o){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var a=t[n],c=a.callback;if(c!==null){if(a.callback=null,a=o,typeof c!="function")throw Error(i(191,c));c.call(a)}}}var Oi={},rn=Fn(Oi),Ni=Fn(Oi),Ai=Fn(Oi);function sr(t){if(t===Oi)throw Error(i(174));return t}function yl(t,n){switch(Ae(Ai,n),Ae(Ni,t),Ae(rn,Oi),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:va(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=va(n,t)}De(rn),Ae(rn,n)}function Hr(){De(rn),De(Ni),De(Ai)}function th(t){sr(Ai.current);var n=sr(rn.current),o=va(n,t.type);n!==o&&(Ae(Ni,t),Ae(rn,o))}function vl(t){Ni.current===t&&(De(rn),De(Ni))}var Le=Fn(0);function zo(t){for(var n=t;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var _l=[];function El(){for(var t=0;t<_l.length;t++)_l[t]._workInProgressVersionPrimary=null;_l.length=0}var Uo=k.ReactCurrentDispatcher,Sl=k.ReactCurrentBatchConfig,ar=0,Be=null,Xe=null,Ke=null,Ho=!1,Pi=!1,Ii=0,d_=0;function st(){throw Error(i(321))}function bl(t,n){if(n===null)return!1;for(var o=0;o<n.length&&o<t.length;o++)if(!Gt(t[o],n[o]))return!1;return!0}function wl(t,n,o,a,c,f){if(ar=f,Be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Uo.current=t===null||t.memoizedState===null?g_:y_,t=o(a,c),Pi){f=0;do{if(Pi=!1,Ii=0,25<=f)throw Error(i(301));f+=1,Ke=Xe=null,n.updateQueue=null,Uo.current=v_,t=o(a,c)}while(Pi)}if(Uo.current=qo,n=Xe!==null&&Xe.next!==null,ar=0,Ke=Xe=Be=null,Ho=!1,n)throw Error(i(300));return t}function xl(){var t=Ii!==0;return Ii=0,t}function on(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Be.memoizedState=Ke=t:Ke=Ke.next=t,Ke}function Ft(){if(Xe===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Xe.next;var n=Ke===null?Be.memoizedState:Ke.next;if(n!==null)Ke=n,Xe=t;else{if(t===null)throw Error(i(310));Xe=t,t={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Ke===null?Be.memoizedState=Ke=t:Ke=Ke.next=t}return Ke}function Di(t,n){return typeof n=="function"?n(t):n}function Tl(t){var n=Ft(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Xe,c=a.baseQueue,f=o.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}a.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,a=a.baseState;var T=g=null,A=null,F=f;do{var U=F.lane;if((ar&U)===U)A!==null&&(A=A.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),a=F.hasEagerState?F.eagerState:t(a,F.action);else{var H={lane:U,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};A===null?(T=A=H,g=a):A=A.next=H,Be.lanes|=U,lr|=U}F=F.next}while(F!==null&&F!==f);A===null?g=a:A.next=T,Gt(a,n.memoizedState)||(yt=!0),n.memoizedState=a,n.baseState=g,n.baseQueue=A,o.lastRenderedState=a}if(t=o.interleaved,t!==null){c=t;do f=c.lane,Be.lanes|=f,lr|=f,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Cl(t){var n=Ft(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=o.dispatch,c=o.pending,f=n.memoizedState;if(c!==null){o.pending=null;var g=c=c.next;do f=t(f,g.action),g=g.next;while(g!==c);Gt(f,n.memoizedState)||(yt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),o.lastRenderedState=f}return[f,a]}function nh(){}function rh(t,n){var o=Be,a=Ft(),c=n(),f=!Gt(a.memoizedState,c);if(f&&(a.memoizedState=c,yt=!0),a=a.queue,kl(sh.bind(null,o,a,t),[t]),a.getSnapshot!==n||f||Ke!==null&&Ke.memoizedState.tag&1){if(o.flags|=2048,Mi(9,oh.bind(null,o,a,c,n),void 0,null),Ye===null)throw Error(i(349));ar&30||ih(o,n,c)}return c}function ih(t,n,o){t.flags|=16384,t={getSnapshot:n,value:o},n=Be.updateQueue,n===null?(n={lastEffect:null,stores:null},Be.updateQueue=n,n.stores=[t]):(o=n.stores,o===null?n.stores=[t]:o.push(t))}function oh(t,n,o,a){n.value=o,n.getSnapshot=a,ah(n)&&lh(t)}function sh(t,n,o){return o(function(){ah(n)&&lh(t)})}function ah(t){var n=t.getSnapshot;t=t.value;try{var o=n();return!Gt(t,o)}catch{return!0}}function lh(t){var n=yn(t,1);n!==null&&Xt(n,t,1,-1)}function uh(t){var n=on();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:t},n.queue=t,t=t.dispatch=m_.bind(null,Be,t),[n.memoizedState,t]}function Mi(t,n,o,a){return t={tag:t,create:n,destroy:o,deps:a,next:null},n=Be.updateQueue,n===null?(n={lastEffect:null,stores:null},Be.updateQueue=n,n.lastEffect=t.next=t):(o=n.lastEffect,o===null?n.lastEffect=t.next=t:(a=o.next,o.next=t,t.next=a,n.lastEffect=t)),t}function ch(){return Ft().memoizedState}function Go(t,n,o,a){var c=on();Be.flags|=t,c.memoizedState=Mi(1|n,o,void 0,a===void 0?null:a)}function $o(t,n,o,a){var c=Ft();a=a===void 0?null:a;var f=void 0;if(Xe!==null){var g=Xe.memoizedState;if(f=g.destroy,a!==null&&bl(a,g.deps)){c.memoizedState=Mi(n,o,f,a);return}}Be.flags|=t,c.memoizedState=Mi(1|n,o,f,a)}function fh(t,n){return Go(8390656,8,t,n)}function kl(t,n){return $o(2048,8,t,n)}function dh(t,n){return $o(4,2,t,n)}function hh(t,n){return $o(4,4,t,n)}function ph(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function mh(t,n,o){return o=o!=null?o.concat([t]):null,$o(4,4,ph.bind(null,n,t),o)}function Rl(){}function gh(t,n){var o=Ft();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&bl(n,a[1])?a[0]:(o.memoizedState=[t,n],t)}function yh(t,n){var o=Ft();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&bl(n,a[1])?a[0]:(t=t(),o.memoizedState=[t,n],t)}function vh(t,n,o){return ar&21?(Gt(o,n)||(o=Xf(),Be.lanes|=o,lr|=o,t.baseState=!0),n):(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=o)}function h_(t,n){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=Sl.transition;Sl.transition={};try{t(!1),n()}finally{Oe=o,Sl.transition=a}}function _h(){return Ft().memoizedState}function p_(t,n,o){var a=$n(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Eh(t))Sh(n,o);else if(o=Yd(t,n,o,a),o!==null){var c=ft();Xt(o,t,a,c),bh(o,n,a)}}function m_(t,n,o){var a=$n(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Eh(t))Sh(n,c);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,T=f(g,o);if(c.hasEagerState=!0,c.eagerState=T,Gt(T,g)){var A=n.interleaved;A===null?(c.next=c,ml(n)):(c.next=A.next,A.next=c),n.interleaved=c;return}}catch{}finally{}o=Yd(t,n,c,a),o!==null&&(c=ft(),Xt(o,t,a,c),bh(o,n,a))}}function Eh(t){var n=t.alternate;return t===Be||n!==null&&n===Be}function Sh(t,n){Pi=Ho=!0;var o=t.pending;o===null?n.next=n:(n.next=o.next,o.next=n),t.pending=n}function bh(t,n,o){if(o&4194240){var a=n.lanes;a&=t.pendingLanes,o|=a,n.lanes=o,Na(t,o)}}var qo={readContext:Mt,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},g_={readContext:Mt,useCallback:function(t,n){return on().memoizedState=[t,n===void 0?null:n],t},useContext:Mt,useEffect:fh,useImperativeHandle:function(t,n,o){return o=o!=null?o.concat([t]):null,Go(4194308,4,ph.bind(null,n,t),o)},useLayoutEffect:function(t,n){return Go(4194308,4,t,n)},useInsertionEffect:function(t,n){return Go(4,2,t,n)},useMemo:function(t,n){var o=on();return n=n===void 0?null:n,t=t(),o.memoizedState=[t,n],t},useReducer:function(t,n,o){var a=on();return n=o!==void 0?o(n):n,a.memoizedState=a.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=p_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var n=on();return t={current:t},n.memoizedState=t},useState:uh,useDebugValue:Rl,useDeferredValue:function(t){return on().memoizedState=t},useTransition:function(){var t=uh(!1),n=t[0];return t=h_.bind(null,t[1]),on().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,o){var a=Be,c=on();if(Fe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ye===null)throw Error(i(349));ar&30||ih(a,n,o)}c.memoizedState=o;var f={value:o,getSnapshot:n};return c.queue=f,fh(sh.bind(null,a,f,t),[t]),a.flags|=2048,Mi(9,oh.bind(null,a,f,o,n),void 0,null),o},useId:function(){var t=on(),n=Ye.identifierPrefix;if(Fe){var o=gn,a=mn;o=(a&~(1<<32-Ht(a)-1)).toString(32)+o,n=":"+n+"R"+o,o=Ii++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=d_++,n=":"+n+"r"+o.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},y_={readContext:Mt,useCallback:gh,useContext:Mt,useEffect:kl,useImperativeHandle:mh,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:yh,useReducer:Tl,useRef:ch,useState:function(){return Tl(Di)},useDebugValue:Rl,useDeferredValue:function(t){var n=Ft();return vh(n,Xe.memoizedState,t)},useTransition:function(){var t=Tl(Di)[0],n=Ft().memoizedState;return[t,n]},useMutableSource:nh,useSyncExternalStore:rh,useId:_h,unstable_isNewReconciler:!1},v_={readContext:Mt,useCallback:gh,useContext:Mt,useEffect:kl,useImperativeHandle:mh,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:yh,useReducer:Cl,useRef:ch,useState:function(){return Cl(Di)},useDebugValue:Rl,useDeferredValue:function(t){var n=Ft();return Xe===null?n.memoizedState=t:vh(n,Xe.memoizedState,t)},useTransition:function(){var t=Cl(Di)[0],n=Ft().memoizedState;return[t,n]},useMutableSource:nh,useSyncExternalStore:rh,useId:_h,unstable_isNewReconciler:!1};function qt(t,n){if(t&&t.defaultProps){n=Q({},n),t=t.defaultProps;for(var o in t)n[o]===void 0&&(n[o]=t[o]);return n}return n}function Ol(t,n,o,a){n=t.memoizedState,o=o(a,n),o=o==null?n:Q({},n,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Vo={isMounted:function(t){return(t=t._reactInternals)?er(t)===t:!1},enqueueSetState:function(t,n,o){t=t._reactInternals;var a=ft(),c=$n(t),f=vn(a,c);f.payload=n,o!=null&&(f.callback=o),n=zn(t,f,c),n!==null&&(Xt(n,t,c,a),Bo(n,t,c))},enqueueReplaceState:function(t,n,o){t=t._reactInternals;var a=ft(),c=$n(t),f=vn(a,c);f.tag=1,f.payload=n,o!=null&&(f.callback=o),n=zn(t,f,c),n!==null&&(Xt(n,t,c,a),Bo(n,t,c))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var o=ft(),a=$n(t),c=vn(o,a);c.tag=2,n!=null&&(c.callback=n),n=zn(t,c,a),n!==null&&(Xt(n,t,a,o),Bo(n,t,a))}};function wh(t,n,o,a,c,f,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,f,g):n.prototype&&n.prototype.isPureReactComponent?!Si(o,a)||!Si(c,f):!0}function xh(t,n,o){var a=!1,c=Ln,f=n.contextType;return typeof f=="object"&&f!==null?f=Mt(f):(c=gt(n)?nr:ot.current,a=n.contextTypes,f=(a=a!=null)?Mr(t,c):Ln),n=new n(o,f),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Vo,t.stateNode=n,n._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=f),n}function Th(t,n,o,a){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,a),n.state!==t&&Vo.enqueueReplaceState(n,n.state,null)}function Nl(t,n,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},gl(t);var f=n.contextType;typeof f=="object"&&f!==null?c.context=Mt(f):(f=gt(n)?nr:ot.current,c.context=Mr(t,f)),c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Ol(t,n,f,o),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(n=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),n!==c.state&&Vo.enqueueReplaceState(c,c.state,null),jo(t,o,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function Gr(t,n){try{var o="",a=n;do o+=ye(a),a=a.return;while(a);var c=o}catch(f){c=`
|
|
39
|
+
Error generating stack: `+f.message+`
|
|
40
|
+
`+f.stack}return{value:t,source:n,stack:c,digest:null}}function Al(t,n,o){return{value:t,source:null,stack:o??null,digest:n??null}}function Pl(t,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var __=typeof WeakMap=="function"?WeakMap:Map;function Ch(t,n,o){o=vn(-1,o),o.tag=3,o.payload={element:null};var a=n.value;return o.callback=function(){Jo||(Jo=!0,Wl=a),Pl(t,n)},o}function kh(t,n,o){o=vn(-1,o),o.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=n.value;o.payload=function(){return a(c)},o.callback=function(){Pl(t,n)}}var f=t.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){Pl(t,n),typeof a!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})}),o}function Rh(t,n,o){var a=t.pingCache;if(a===null){a=t.pingCache=new __;var c=new Set;a.set(n,c)}else c=a.get(n),c===void 0&&(c=new Set,a.set(n,c));c.has(o)||(c.add(o),t=I_.bind(null,t,n,o),n.then(t,t))}function Oh(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}function Nh(t,n,o,a,c){return t.mode&1?(t.flags|=65536,t.lanes=c,t):(t===n?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=vn(-1,1),n.tag=2,zn(o,n,1))),o.lanes|=1),t)}var E_=k.ReactCurrentOwner,yt=!1;function ct(t,n,o,a){n.child=t===null?Kd(n,null,o,a):jr(n,t.child,o,a)}function Ah(t,n,o,a,c){o=o.render;var f=n.ref;return Ur(n,c),a=wl(t,n,o,a,f,c),o=xl(),t!==null&&!yt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~c,_n(t,n,c)):(Fe&&o&&sl(n),n.flags|=1,ct(t,n,a,c),n.child)}function Ph(t,n,o,a,c){if(t===null){var f=o.type;return typeof f=="function"&&!eu(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=f,Ih(t,n,f,a,c)):(t=os(o.type,null,a,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(f=t.child,!(t.lanes&c)){var g=f.memoizedProps;if(o=o.compare,o=o!==null?o:Si,o(g,a)&&t.ref===n.ref)return _n(t,n,c)}return n.flags|=1,t=Vn(f,a),t.ref=n.ref,t.return=n,n.child=t}function Ih(t,n,o,a,c){if(t!==null){var f=t.memoizedProps;if(Si(f,a)&&t.ref===n.ref)if(yt=!1,n.pendingProps=a=f,(t.lanes&c)!==0)t.flags&131072&&(yt=!0);else return n.lanes=t.lanes,_n(t,n,c)}return Il(t,n,o,a,c)}function Dh(t,n,o){var a=n.pendingProps,c=a.children,f=t!==null?t.memoizedState:null;if(a.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(qr,Tt),Tt|=o;else{if(!(o&1073741824))return t=f!==null?f.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,Ae(qr,Tt),Tt|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:o,Ae(qr,Tt),Tt|=a}else f!==null?(a=f.baseLanes|o,n.memoizedState=null):a=o,Ae(qr,Tt),Tt|=a;return ct(t,n,c,o),n.child}function Mh(t,n){var o=n.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Il(t,n,o,a,c){var f=gt(o)?nr:ot.current;return f=Mr(n,f),Ur(n,c),o=wl(t,n,o,a,f,c),a=xl(),t!==null&&!yt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~c,_n(t,n,c)):(Fe&&a&&sl(n),n.flags|=1,ct(t,n,o,c),n.child)}function Fh(t,n,o,a,c){if(gt(o)){var f=!0;No(n)}else f=!1;if(Ur(n,c),n.stateNode===null)Xo(t,n),xh(n,o,a),Nl(n,o,a,c),a=!0;else if(t===null){var g=n.stateNode,T=n.memoizedProps;g.props=T;var A=g.context,F=o.contextType;typeof F=="object"&&F!==null?F=Mt(F):(F=gt(o)?nr:ot.current,F=Mr(n,F));var U=o.getDerivedStateFromProps,H=typeof U=="function"||typeof g.getSnapshotBeforeUpdate=="function";H||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T!==a||A!==F)&&Th(n,g,a,F),jn=!1;var z=n.memoizedState;g.state=z,jo(n,a,g,c),A=n.memoizedState,T!==a||z!==A||mt.current||jn?(typeof U=="function"&&(Ol(n,o,U,a),A=n.memoizedState),(T=jn||wh(n,o,T,a,z,A,F))?(H||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(n.flags|=4194308)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=A),g.props=a,g.state=A,g.context=F,a=T):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{g=n.stateNode,Zd(t,n),T=n.memoizedProps,F=n.type===n.elementType?T:qt(n.type,T),g.props=F,H=n.pendingProps,z=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Mt(A):(A=gt(o)?nr:ot.current,A=Mr(n,A));var X=o.getDerivedStateFromProps;(U=typeof X=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T!==H||z!==A)&&Th(n,g,a,A),jn=!1,z=n.memoizedState,g.state=z,jo(n,a,g,c);var Y=n.memoizedState;T!==H||z!==Y||mt.current||jn?(typeof X=="function"&&(Ol(n,o,X,a),Y=n.memoizedState),(F=jn||wh(n,o,F,a,z,Y,A)||!1)?(U||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,Y,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,Y,A)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||T===t.memoizedProps&&z===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&z===t.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=Y),g.props=a,g.state=Y,g.context=A,a=F):(typeof g.componentDidUpdate!="function"||T===t.memoizedProps&&z===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&z===t.memoizedState||(n.flags|=1024),a=!1)}return Dl(t,n,o,a,f,c)}function Dl(t,n,o,a,c,f){Mh(t,n);var g=(n.flags&128)!==0;if(!a&&!g)return c&&Ud(n,o,!1),_n(t,n,f);a=n.stateNode,E_.current=n;var T=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,t!==null&&g?(n.child=jr(n,t.child,null,f),n.child=jr(n,null,T,f)):ct(t,n,T,f),n.memoizedState=a.state,c&&Ud(n,o,!0),n.child}function Lh(t){var n=t.stateNode;n.pendingContext?jd(t,n.pendingContext,n.pendingContext!==n.context):n.context&&jd(t,n.context,!1),yl(t,n.containerInfo)}function Bh(t,n,o,a,c){return Br(),cl(c),n.flags|=256,ct(t,n,o,a),n.child}var Ml={dehydrated:null,treeContext:null,retryLane:0};function Fl(t){return{baseLanes:t,cachePool:null,transitions:null}}function jh(t,n,o){var a=n.pendingProps,c=Le.current,f=!1,g=(n.flags&128)!==0,T;if((T=g)||(T=t!==null&&t.memoizedState===null?!1:(c&2)!==0),T?(f=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return ul(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(n.mode&1?t.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(g=a.children,t=a.fallback,f?(a=n.mode,f=n.child,g={mode:"hidden",children:g},!(a&1)&&f!==null?(f.childLanes=0,f.pendingProps=g):f=ss(g,a,0,null),t=dr(t,a,o,null),f.return=n,t.return=n,f.sibling=t,n.child=f,n.child.memoizedState=Fl(o),n.memoizedState=Ml,t):Ll(n,g));if(c=t.memoizedState,c!==null&&(T=c.dehydrated,T!==null))return S_(t,n,g,a,T,c,o);if(f){f=a.fallback,g=n.mode,c=t.child,T=c.sibling;var A={mode:"hidden",children:a.children};return!(g&1)&&n.child!==c?(a=n.child,a.childLanes=0,a.pendingProps=A,n.deletions=null):(a=Vn(c,A),a.subtreeFlags=c.subtreeFlags&14680064),T!==null?f=Vn(T,f):(f=dr(f,g,o,null),f.flags|=2),f.return=n,a.return=n,a.sibling=f,n.child=a,a=f,f=n.child,g=t.child.memoizedState,g=g===null?Fl(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=t.childLanes&~o,n.memoizedState=Ml,a}return f=t.child,t=f.sibling,a=Vn(f,{mode:"visible",children:a.children}),!(n.mode&1)&&(a.lanes=o),a.return=n,a.sibling=null,t!==null&&(o=n.deletions,o===null?(n.deletions=[t],n.flags|=16):o.push(t)),n.child=a,n.memoizedState=null,a}function Ll(t,n){return n=ss({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function Wo(t,n,o,a){return a!==null&&cl(a),jr(n,t.child,null,o),t=Ll(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function S_(t,n,o,a,c,f,g){if(o)return n.flags&256?(n.flags&=-257,a=Al(Error(i(422))),Wo(t,n,g,a)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(f=a.fallback,c=n.mode,a=ss({mode:"visible",children:a.children},c,0,null),f=dr(f,c,g,null),f.flags|=2,a.return=n,f.return=n,a.sibling=f,n.child=a,n.mode&1&&jr(n,t.child,null,g),n.child.memoizedState=Fl(g),n.memoizedState=Ml,f);if(!(n.mode&1))return Wo(t,n,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var T=a.dgst;return a=T,f=Error(i(419)),a=Al(f,a,void 0),Wo(t,n,g,a)}if(T=(g&t.childLanes)!==0,yt||T){if(a=Ye,a!==null){switch(g&-g){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=c&(a.suspendedLanes|g)?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,yn(t,c),Xt(a,t,c,-1))}return Jl(),a=Al(Error(i(421))),Wo(t,n,g,a)}return c.data==="$?"?(n.flags|=128,n.child=t.child,n=D_.bind(null,t),c._reactRetry=n,null):(t=f.treeContext,xt=Mn(c.nextSibling),wt=n,Fe=!0,$t=null,t!==null&&(It[Dt++]=mn,It[Dt++]=gn,It[Dt++]=rr,mn=t.id,gn=t.overflow,rr=n),n=Ll(n,a.children),n.flags|=4096,n)}function zh(t,n,o){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n),pl(t.return,n,o)}function Bl(t,n,o,a,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:c}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=o,f.tailMode=c)}function Uh(t,n,o){var a=n.pendingProps,c=a.revealOrder,f=a.tail;if(ct(t,n,a.children,o),a=Le.current,a&2)a=a&1|2,n.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&zh(t,o,n);else if(t.tag===19)zh(t,o,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Ae(Le,a),!(n.mode&1))n.memoizedState=null;else switch(c){case"forwards":for(o=n.child,c=null;o!==null;)t=o.alternate,t!==null&&zo(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=n.child,n.child=null):(c=o.sibling,o.sibling=null),Bl(n,!1,c,o,f);break;case"backwards":for(o=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&zo(t)===null){n.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}Bl(n,!0,o,null,f);break;case"together":Bl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Xo(t,n){!(n.mode&1)&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function _n(t,n,o){if(t!==null&&(n.dependencies=t.dependencies),lr|=n.lanes,!(o&n.childLanes))return null;if(t!==null&&n.child!==t.child)throw Error(i(153));if(n.child!==null){for(t=n.child,o=Vn(t,t.pendingProps),n.child=o,o.return=n;t.sibling!==null;)t=t.sibling,o=o.sibling=Vn(t,t.pendingProps),o.return=n;o.sibling=null}return n.child}function b_(t,n,o){switch(n.tag){case 3:Lh(n),Br();break;case 5:th(n);break;case 1:gt(n.type)&&No(n);break;case 4:yl(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,c=n.memoizedProps.value;Ae(Fo,a._currentValue),a._currentValue=c;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),n.flags|=128,null):o&n.child.childLanes?jh(t,n,o):(Ae(Le,Le.current&1),t=_n(t,n,o),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(o&n.childLanes)!==0,t.flags&128){if(a)return Uh(t,n,o);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ae(Le,Le.current),a)break;return null;case 22:case 23:return n.lanes=0,Dh(t,n,o)}return _n(t,n,o)}var Hh,jl,Gh,$h;Hh=function(t,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},jl=function(){},Gh=function(t,n,o,a){var c=t.memoizedProps;if(c!==a){t=n.stateNode,sr(rn.current);var f=null;switch(o){case"input":c=pa(t,c),a=pa(t,a),f=[];break;case"select":c=Q({},c,{value:void 0}),a=Q({},a,{value:void 0}),f=[];break;case"textarea":c=ya(t,c),a=ya(t,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=ko)}_a(o,a);var g;o=null;for(F in c)if(!a.hasOwnProperty(F)&&c.hasOwnProperty(F)&&c[F]!=null)if(F==="style"){var T=c[F];for(g in T)T.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?f||(f=[]):(f=f||[]).push(F,null));for(F in a){var A=a[F];if(T=c!=null?c[F]:void 0,a.hasOwnProperty(F)&&A!==T&&(A!=null||T!=null))if(F==="style")if(T){for(g in T)!T.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&T[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(f||(f=[]),f.push(F,o)),o=A;else F==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,T=T?T.__html:void 0,A!=null&&T!==A&&(f=f||[]).push(F,A)):F==="children"?typeof A!="string"&&typeof A!="number"||(f=f||[]).push(F,""+A):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(A!=null&&F==="onScroll"&&Ie("scroll",t),f||T===A||(f=[])):(f=f||[]).push(F,A))}o&&(f=f||[]).push("style",o);var F=f;(n.updateQueue=F)&&(n.flags|=4)}},$h=function(t,n,o,a){o!==a&&(n.flags|=4)};function Fi(t,n){if(!Fe)switch(t.tailMode){case"hidden":n=t.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function at(t){var n=t.alternate!==null&&t.alternate.child===t.child,o=0,a=0;if(n)for(var c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=a,t.childLanes=o,n}function w_(t,n,o){var a=n.pendingProps;switch(al(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(n),null;case 1:return gt(n.type)&&Oo(),at(n),null;case 3:return a=n.stateNode,Hr(),De(mt),De(ot),El(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Do(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,$t!==null&&(Kl($t),$t=null))),jl(t,n),at(n),null;case 5:vl(n);var c=sr(Ai.current);if(o=n.type,t!==null&&n.stateNode!=null)Gh(t,n,o,a,c),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(i(166));return at(n),null}if(t=sr(rn.current),Do(n)){a=n.stateNode,o=n.type;var f=n.memoizedProps;switch(a[nn]=n,a[Ci]=f,t=(n.mode&1)!==0,o){case"dialog":Ie("cancel",a),Ie("close",a);break;case"iframe":case"object":case"embed":Ie("load",a);break;case"video":case"audio":for(c=0;c<wi.length;c++)Ie(wi[c],a);break;case"source":Ie("error",a);break;case"img":case"image":case"link":Ie("error",a),Ie("load",a);break;case"details":Ie("toggle",a);break;case"input":xf(a,f),Ie("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},Ie("invalid",a);break;case"textarea":kf(a,f),Ie("invalid",a)}_a(o,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var T=f[g];g==="children"?typeof T=="string"?a.textContent!==T&&(f.suppressHydrationWarning!==!0&&Co(a.textContent,T,t),c=["children",T]):typeof T=="number"&&a.textContent!==""+T&&(f.suppressHydrationWarning!==!0&&Co(a.textContent,T,t),c=["children",""+T]):l.hasOwnProperty(g)&&T!=null&&g==="onScroll"&&Ie("scroll",a)}switch(o){case"input":ni(a),Cf(a,f,!0);break;case"textarea":ni(a),Of(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=ko)}a=c,n.updateQueue=a,a!==null&&(n.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Nf(o)),t==="http://www.w3.org/1999/xhtml"?o==="script"?(t=g.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=g.createElement(o,{is:a.is}):(t=g.createElement(o),o==="select"&&(g=t,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):t=g.createElementNS(t,o),t[nn]=n,t[Ci]=a,Hh(t,n,!1,!1),n.stateNode=t;e:{switch(g=Ea(o,a),o){case"dialog":Ie("cancel",t),Ie("close",t),c=a;break;case"iframe":case"object":case"embed":Ie("load",t),c=a;break;case"video":case"audio":for(c=0;c<wi.length;c++)Ie(wi[c],t);c=a;break;case"source":Ie("error",t),c=a;break;case"img":case"image":case"link":Ie("error",t),Ie("load",t),c=a;break;case"details":Ie("toggle",t),c=a;break;case"input":xf(t,a),c=pa(t,a),Ie("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=Q({},a,{value:void 0}),Ie("invalid",t);break;case"textarea":kf(t,a),c=ya(t,a),Ie("invalid",t);break;default:c=a}_a(o,c),T=c;for(f in T)if(T.hasOwnProperty(f)){var A=T[f];f==="style"?If(t,A):f==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Af(t,A)):f==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&ii(t,A):typeof A=="number"&&ii(t,""+A):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?A!=null&&f==="onScroll"&&Ie("scroll",t):A!=null&&S(t,f,A,g))}switch(o){case"input":ni(t),Cf(t,a,!1);break;case"textarea":ni(t),Of(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Te(a.value));break;case"select":t.multiple=!!a.multiple,f=a.value,f!=null?wr(t,!!a.multiple,f,!1):a.defaultValue!=null&&wr(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=ko)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return at(n),null;case 6:if(t&&n.stateNode!=null)$h(t,n,t.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(i(166));if(o=sr(Ai.current),sr(rn.current),Do(n)){if(a=n.stateNode,o=n.memoizedProps,a[nn]=n,(f=a.nodeValue!==o)&&(t=wt,t!==null))switch(t.tag){case 3:Co(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Co(a.nodeValue,o,(t.mode&1)!==0)}f&&(n.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[nn]=n,n.stateNode=a}return at(n),null;case 13:if(De(Le),a=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&xt!==null&&n.mode&1&&!(n.flags&128))Wd(),Br(),n.flags|=98560,f=!1;else if(f=Do(n),a!==null&&a.dehydrated!==null){if(t===null){if(!f)throw Error(i(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[nn]=n}else Br(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;at(n),f=!1}else $t!==null&&(Kl($t),$t=null),f=!0;if(!f)return n.flags&65536?n:null}return n.flags&128?(n.lanes=o,n):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(n.child.flags|=8192,n.mode&1&&(t===null||Le.current&1?Qe===0&&(Qe=3):Jl())),n.updateQueue!==null&&(n.flags|=4),at(n),null);case 4:return Hr(),jl(t,n),t===null&&xi(n.stateNode.containerInfo),at(n),null;case 10:return hl(n.type._context),at(n),null;case 17:return gt(n.type)&&Oo(),at(n),null;case 19:if(De(Le),f=n.memoizedState,f===null)return at(n),null;if(a=(n.flags&128)!==0,g=f.rendering,g===null)if(a)Fi(f,!1);else{if(Qe!==0||t!==null&&t.flags&128)for(t=n.child;t!==null;){if(g=zo(t),g!==null){for(n.flags|=128,Fi(f,!1),a=g.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=o,o=n.child;o!==null;)f=o,t=a,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=t,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,t=g.dependencies,f.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ae(Le,Le.current&1|2),n.child}t=t.sibling}f.tail!==null&&He()>Vr&&(n.flags|=128,a=!0,Fi(f,!1),n.lanes=4194304)}else{if(!a)if(t=zo(g),t!==null){if(n.flags|=128,a=!0,o=t.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),Fi(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Fe)return at(n),null}else 2*He()-f.renderingStartTime>Vr&&o!==1073741824&&(n.flags|=128,a=!0,Fi(f,!1),n.lanes=4194304);f.isBackwards?(g.sibling=n.child,n.child=g):(o=f.last,o!==null?o.sibling=g:n.child=g,f.last=g)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=He(),n.sibling=null,o=Le.current,Ae(Le,a?o&1|2:o&1),n):(at(n),null);case 22:case 23:return Zl(),a=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(n.flags|=8192),a&&n.mode&1?Tt&1073741824&&(at(n),n.subtreeFlags&6&&(n.flags|=8192)):at(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function x_(t,n){switch(al(n),n.tag){case 1:return gt(n.type)&&Oo(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Hr(),De(mt),De(ot),El(),t=n.flags,t&65536&&!(t&128)?(n.flags=t&-65537|128,n):null;case 5:return vl(n),null;case 13:if(De(Le),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Br()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return De(Le),null;case 4:return Hr(),null;case 10:return hl(n.type._context),null;case 22:case 23:return Zl(),null;case 24:return null;default:return null}}var Qo=!1,lt=!1,T_=typeof WeakSet=="function"?WeakSet:Set,K=null;function $r(t,n){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Ue(t,n,a)}else o.current=null}function zl(t,n,o){try{o()}catch(a){Ue(t,n,a)}}var qh=!1;function C_(t,n){if(Za=mo,t=wd(),$a(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var c=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var g=0,T=-1,A=-1,F=0,U=0,H=t,z=null;t:for(;;){for(var X;H!==o||c!==0&&H.nodeType!==3||(T=g+c),H!==f||a!==0&&H.nodeType!==3||(A=g+a),H.nodeType===3&&(g+=H.nodeValue.length),(X=H.firstChild)!==null;)z=H,H=X;for(;;){if(H===t)break t;if(z===o&&++F===c&&(T=g),z===f&&++U===a&&(A=g),(X=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=X}o=T===-1||A===-1?null:{start:T,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(Ja={focusedElem:t,selectionRange:o},mo=!1,K=n;K!==null;)if(n=K,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,K=t;else for(;K!==null;){n=K;try{var Y=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var Z=Y.memoizedProps,Ge=Y.memoizedState,D=n.stateNode,P=D.getSnapshotBeforeUpdate(n.elementType===n.type?Z:qt(n.type,Z),Ge);D.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var M=n.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($){Ue(n,n.return,$)}if(t=n.sibling,t!==null){t.return=n.return,K=t;break}K=n.return}return Y=qh,qh=!1,Y}function Li(t,n,o){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var f=c.destroy;c.destroy=void 0,f!==void 0&&zl(n,o,f)}c=c.next}while(c!==a)}}function Ko(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&t)===t){var a=o.create;o.destroy=a()}o=o.next}while(o!==n)}}function Ul(t){var n=t.ref;if(n!==null){var o=t.stateNode;switch(t.tag){case 5:t=o;break;default:t=o}typeof n=="function"?n(t):n.current=t}}function Vh(t){var n=t.alternate;n!==null&&(t.alternate=null,Vh(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[nn],delete n[Ci],delete n[rl],delete n[l_],delete n[u_])),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 Wh(t){return t.tag===5||t.tag===3||t.tag===4}function Xh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Wh(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 Hl(t,n,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(t,n):o.insertBefore(t,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(t,o)):(n=o,n.appendChild(t)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=ko));else if(a!==4&&(t=t.child,t!==null))for(Hl(t,n,o),t=t.sibling;t!==null;)Hl(t,n,o),t=t.sibling}function Gl(t,n,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,n?o.insertBefore(t,n):o.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Gl(t,n,o),t=t.sibling;t!==null;)Gl(t,n,o),t=t.sibling}var et=null,Vt=!1;function Un(t,n,o){for(o=o.child;o!==null;)Qh(t,n,o),o=o.sibling}function Qh(t,n,o){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(lo,o)}catch{}switch(o.tag){case 5:lt||$r(o,n);case 6:var a=et,c=Vt;et=null,Un(t,n,o),et=a,Vt=c,et!==null&&(Vt?(t=et,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):et.removeChild(o.stateNode));break;case 18:et!==null&&(Vt?(t=et,o=o.stateNode,t.nodeType===8?nl(t.parentNode,o):t.nodeType===1&&nl(t,o),mi(t)):nl(et,o.stateNode));break;case 4:a=et,c=Vt,et=o.stateNode.containerInfo,Vt=!0,Un(t,n,o),et=a,Vt=c;break;case 0:case 11:case 14:case 15:if(!lt&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var f=c,g=f.destroy;f=f.tag,g!==void 0&&(f&2||f&4)&&zl(o,n,g),c=c.next}while(c!==a)}Un(t,n,o);break;case 1:if(!lt&&($r(o,n),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(T){Ue(o,n,T)}Un(t,n,o);break;case 21:Un(t,n,o);break;case 22:o.mode&1?(lt=(a=lt)||o.memoizedState!==null,Un(t,n,o),lt=a):Un(t,n,o);break;default:Un(t,n,o)}}function Kh(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new T_),n.forEach(function(a){var c=M_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Wt(t,n){var o=n.deletions;if(o!==null)for(var a=0;a<o.length;a++){var c=o[a];try{var f=t,g=n,T=g;e:for(;T!==null;){switch(T.tag){case 5:et=T.stateNode,Vt=!1;break e;case 3:et=T.stateNode.containerInfo,Vt=!0;break e;case 4:et=T.stateNode.containerInfo,Vt=!0;break e}T=T.return}if(et===null)throw Error(i(160));Qh(f,g,c),et=null,Vt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(F){Ue(c,n,F)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Yh(n,t),n=n.sibling}function Yh(t,n){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Wt(n,t),sn(t),a&4){try{Li(3,t,t.return),Ko(3,t)}catch(Z){Ue(t,t.return,Z)}try{Li(5,t,t.return)}catch(Z){Ue(t,t.return,Z)}}break;case 1:Wt(n,t),sn(t),a&512&&o!==null&&$r(o,o.return);break;case 5:if(Wt(n,t),sn(t),a&512&&o!==null&&$r(o,o.return),t.flags&32){var c=t.stateNode;try{ii(c,"")}catch(Z){Ue(t,t.return,Z)}}if(a&4&&(c=t.stateNode,c!=null)){var f=t.memoizedProps,g=o!==null?o.memoizedProps:f,T=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{T==="input"&&f.type==="radio"&&f.name!=null&&Tf(c,f),Ea(T,g);var F=Ea(T,f);for(g=0;g<A.length;g+=2){var U=A[g],H=A[g+1];U==="style"?If(c,H):U==="dangerouslySetInnerHTML"?Af(c,H):U==="children"?ii(c,H):S(c,U,H,F)}switch(T){case"input":ma(c,f);break;case"textarea":Rf(c,f);break;case"select":var z=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var X=f.value;X!=null?wr(c,!!f.multiple,X,!1):z!==!!f.multiple&&(f.defaultValue!=null?wr(c,!!f.multiple,f.defaultValue,!0):wr(c,!!f.multiple,f.multiple?[]:"",!1))}c[Ci]=f}catch(Z){Ue(t,t.return,Z)}}break;case 6:if(Wt(n,t),sn(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,f=t.memoizedProps;try{c.nodeValue=f}catch(Z){Ue(t,t.return,Z)}}break;case 3:if(Wt(n,t),sn(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{mi(n.containerInfo)}catch(Z){Ue(t,t.return,Z)}break;case 4:Wt(n,t),sn(t);break;case 13:Wt(n,t),sn(t),c=t.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(Vl=He())),a&4&&Kh(t);break;case 22:if(U=o!==null&&o.memoizedState!==null,t.mode&1?(lt=(F=lt)||U,Wt(n,t),lt=F):Wt(n,t),sn(t),a&8192){if(F=t.memoizedState!==null,(t.stateNode.isHidden=F)&&!U&&t.mode&1)for(K=t,U=t.child;U!==null;){for(H=K=U;K!==null;){switch(z=K,X=z.child,z.tag){case 0:case 11:case 14:case 15:Li(4,z,z.return);break;case 1:$r(z,z.return);var Y=z.stateNode;if(typeof Y.componentWillUnmount=="function"){a=z,o=z.return;try{n=a,Y.props=n.memoizedProps,Y.state=n.memoizedState,Y.componentWillUnmount()}catch(Z){Ue(a,o,Z)}}break;case 5:$r(z,z.return);break;case 22:if(z.memoizedState!==null){ep(H);continue}}X!==null?(X.return=z,K=X):ep(H)}U=U.sibling}e:for(U=null,H=t;;){if(H.tag===5){if(U===null){U=H;try{c=H.stateNode,F?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(T=H.stateNode,A=H.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,T.style.display=Pf("display",g))}catch(Z){Ue(t,t.return,Z)}}}else if(H.tag===6){if(U===null)try{H.stateNode.nodeValue=F?"":H.memoizedProps}catch(Z){Ue(t,t.return,Z)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===t)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===t)break e;for(;H.sibling===null;){if(H.return===null||H.return===t)break e;U===H&&(U=null),H=H.return}U===H&&(U=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:Wt(n,t),sn(t),a&4&&Kh(t);break;case 21:break;default:Wt(n,t),sn(t)}}function sn(t){var n=t.flags;if(n&2){try{e:{for(var o=t.return;o!==null;){if(Wh(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(ii(c,""),a.flags&=-33);var f=Xh(t);Gl(t,f,c);break;case 3:case 4:var g=a.stateNode.containerInfo,T=Xh(t);Hl(t,T,g);break;default:throw Error(i(161))}}catch(A){Ue(t,t.return,A)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function k_(t,n,o){K=t,Zh(t)}function Zh(t,n,o){for(var a=(t.mode&1)!==0;K!==null;){var c=K,f=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||Qo;if(!g){var T=c.alternate,A=T!==null&&T.memoizedState!==null||lt;T=Qo;var F=lt;if(Qo=g,(lt=A)&&!F)for(K=c;K!==null;)g=K,A=g.child,g.tag===22&&g.memoizedState!==null?tp(c):A!==null?(A.return=g,K=A):tp(c);for(;f!==null;)K=f,Zh(f),f=f.sibling;K=c,Qo=T,lt=F}Jh(t)}else c.subtreeFlags&8772&&f!==null?(f.return=c,K=f):Jh(t)}}function Jh(t){for(;K!==null;){var n=K;if(n.flags&8772){var o=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:lt||Ko(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!lt)if(o===null)a.componentDidMount();else{var c=n.elementType===n.type?o.memoizedProps:qt(n.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=n.updateQueue;f!==null&&eh(n,f,a);break;case 3:var g=n.updateQueue;if(g!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}eh(n,g,o)}break;case 5:var T=n.stateNode;if(o===null&&n.flags&4){o=T;var A=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&o.focus();break;case"img":A.src&&(o.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var F=n.alternate;if(F!==null){var U=F.memoizedState;if(U!==null){var H=U.dehydrated;H!==null&&mi(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}lt||n.flags&512&&Ul(n)}catch(z){Ue(n,n.return,z)}}if(n===t){K=null;break}if(o=n.sibling,o!==null){o.return=n.return,K=o;break}K=n.return}}function ep(t){for(;K!==null;){var n=K;if(n===t){K=null;break}var o=n.sibling;if(o!==null){o.return=n.return,K=o;break}K=n.return}}function tp(t){for(;K!==null;){var n=K;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Ko(4,n)}catch(A){Ue(n,o,A)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var c=n.return;try{a.componentDidMount()}catch(A){Ue(n,c,A)}}var f=n.return;try{Ul(n)}catch(A){Ue(n,f,A)}break;case 5:var g=n.return;try{Ul(n)}catch(A){Ue(n,g,A)}}}catch(A){Ue(n,n.return,A)}if(n===t){K=null;break}var T=n.sibling;if(T!==null){T.return=n.return,K=T;break}K=n.return}}var R_=Math.ceil,Yo=k.ReactCurrentDispatcher,$l=k.ReactCurrentOwner,Lt=k.ReactCurrentBatchConfig,be=0,Ye=null,qe=null,tt=0,Tt=0,qr=Fn(0),Qe=0,Bi=null,lr=0,Zo=0,ql=0,ji=null,vt=null,Vl=0,Vr=1/0,En=null,Jo=!1,Wl=null,Hn=null,es=!1,Gn=null,ts=0,zi=0,Xl=null,ns=-1,rs=0;function ft(){return be&6?He():ns!==-1?ns:ns=He()}function $n(t){return t.mode&1?be&2&&tt!==0?tt&-tt:f_.transition!==null?(rs===0&&(rs=Xf()),rs):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:rd(t.type)),t):1}function Xt(t,n,o,a){if(50<zi)throw zi=0,Xl=null,Error(i(185));ci(t,o,a),(!(be&2)||t!==Ye)&&(t===Ye&&(!(be&2)&&(Zo|=o),Qe===4&&qn(t,tt)),_t(t,a),o===1&&be===0&&!(n.mode&1)&&(Vr=He()+500,Ao&&Bn()))}function _t(t,n){var o=t.callbackNode;f0(t,n);var a=fo(t,t===Ye?tt:0);if(a===0)o!==null&&qf(o),t.callbackNode=null,t.callbackPriority=0;else if(n=a&-a,t.callbackPriority!==n){if(o!=null&&qf(o),n===1)t.tag===0?c_(rp.bind(null,t)):Hd(rp.bind(null,t)),s_(function(){!(be&6)&&Bn()}),o=null;else{switch(Qf(a)){case 1:o=ka;break;case 4:o=Vf;break;case 16:o=ao;break;case 536870912:o=Wf;break;default:o=ao}o=fp(o,np.bind(null,t))}t.callbackPriority=n,t.callbackNode=o}}function np(t,n){if(ns=-1,rs=0,be&6)throw Error(i(327));var o=t.callbackNode;if(Wr()&&t.callbackNode!==o)return null;var a=fo(t,t===Ye?tt:0);if(a===0)return null;if(a&30||a&t.expiredLanes||n)n=is(t,a);else{n=a;var c=be;be|=2;var f=op();(Ye!==t||tt!==n)&&(En=null,Vr=He()+500,cr(t,n));do try{A_();break}catch(T){ip(t,T)}while(!0);dl(),Yo.current=f,be=c,qe!==null?n=0:(Ye=null,tt=0,n=Qe)}if(n!==0){if(n===2&&(c=Ra(t),c!==0&&(a=c,n=Ql(t,c))),n===1)throw o=Bi,cr(t,0),qn(t,a),_t(t,He()),o;if(n===6)qn(t,a);else{if(c=t.current.alternate,!(a&30)&&!O_(c)&&(n=is(t,a),n===2&&(f=Ra(t),f!==0&&(a=f,n=Ql(t,f))),n===1))throw o=Bi,cr(t,0),qn(t,a),_t(t,He()),o;switch(t.finishedWork=c,t.finishedLanes=a,n){case 0:case 1:throw Error(i(345));case 2:fr(t,vt,En);break;case 3:if(qn(t,a),(a&130023424)===a&&(n=Vl+500-He(),10<n)){if(fo(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){ft(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=tl(fr.bind(null,t,vt,En),n);break}fr(t,vt,En);break;case 4:if(qn(t,a),(a&4194240)===a)break;for(n=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);f=1<<g,g=n[g],g>c&&(c=g),a&=~f}if(a=c,a=He()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*R_(a/1960))-a,10<a){t.timeoutHandle=tl(fr.bind(null,t,vt,En),a);break}fr(t,vt,En);break;case 5:fr(t,vt,En);break;default:throw Error(i(329))}}}return _t(t,He()),t.callbackNode===o?np.bind(null,t):null}function Ql(t,n){var o=ji;return t.current.memoizedState.isDehydrated&&(cr(t,n).flags|=256),t=is(t,n),t!==2&&(n=vt,vt=o,n!==null&&Kl(n)),t}function Kl(t){vt===null?vt=t:vt.push.apply(vt,t)}function O_(t){for(var n=t;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var c=o[a],f=c.getSnapshot;c=c.value;try{if(!Gt(f(),c))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function qn(t,n){for(n&=~ql,n&=~Zo,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var o=31-Ht(n),a=1<<o;t[o]=-1,n&=~a}}function rp(t){if(be&6)throw Error(i(327));Wr();var n=fo(t,0);if(!(n&1))return _t(t,He()),null;var o=is(t,n);if(t.tag!==0&&o===2){var a=Ra(t);a!==0&&(n=a,o=Ql(t,a))}if(o===1)throw o=Bi,cr(t,0),qn(t,n),_t(t,He()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,fr(t,vt,En),_t(t,He()),null}function Yl(t,n){var o=be;be|=1;try{return t(n)}finally{be=o,be===0&&(Vr=He()+500,Ao&&Bn())}}function ur(t){Gn!==null&&Gn.tag===0&&!(be&6)&&Wr();var n=be;be|=1;var o=Lt.transition,a=Oe;try{if(Lt.transition=null,Oe=1,t)return t()}finally{Oe=a,Lt.transition=o,be=n,!(be&6)&&Bn()}}function Zl(){Tt=qr.current,De(qr)}function cr(t,n){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,o_(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(al(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Oo();break;case 3:Hr(),De(mt),De(ot),El();break;case 5:vl(a);break;case 4:Hr();break;case 13:De(Le);break;case 19:De(Le);break;case 10:hl(a.type._context);break;case 22:case 23:Zl()}o=o.return}if(Ye=t,qe=t=Vn(t.current,null),tt=Tt=n,Qe=0,Bi=null,ql=Zo=lr=0,vt=ji=null,or!==null){for(n=0;n<or.length;n++)if(o=or[n],a=o.interleaved,a!==null){o.interleaved=null;var c=a.next,f=o.pending;if(f!==null){var g=f.next;f.next=c,a.next=g}o.pending=a}or=null}return t}function ip(t,n){do{var o=qe;try{if(dl(),Uo.current=qo,Ho){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Ho=!1}if(ar=0,Ke=Xe=Be=null,Pi=!1,Ii=0,$l.current=null,o===null||o.return===null){Qe=1,Bi=n,qe=null;break}e:{var f=t,g=o.return,T=o,A=n;if(n=tt,T.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var F=A,U=T,H=U.tag;if(!(U.mode&1)&&(H===0||H===11||H===15)){var z=U.alternate;z?(U.updateQueue=z.updateQueue,U.memoizedState=z.memoizedState,U.lanes=z.lanes):(U.updateQueue=null,U.memoizedState=null)}var X=Oh(g);if(X!==null){X.flags&=-257,Nh(X,g,T,f,n),X.mode&1&&Rh(f,F,n),n=X,A=F;var Y=n.updateQueue;if(Y===null){var Z=new Set;Z.add(A),n.updateQueue=Z}else Y.add(A);break e}else{if(!(n&1)){Rh(f,F,n),Jl();break e}A=Error(i(426))}}else if(Fe&&T.mode&1){var Ge=Oh(g);if(Ge!==null){!(Ge.flags&65536)&&(Ge.flags|=256),Nh(Ge,g,T,f,n),cl(Gr(A,T));break e}}f=A=Gr(A,T),Qe!==4&&(Qe=2),ji===null?ji=[f]:ji.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,n&=-n,f.lanes|=n;var D=Ch(f,A,n);Jd(f,D);break e;case 1:T=A;var P=f.type,M=f.stateNode;if(!(f.flags&128)&&(typeof P.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Hn===null||!Hn.has(M)))){f.flags|=65536,n&=-n,f.lanes|=n;var $=kh(f,T,n);Jd(f,$);break e}}f=f.return}while(f!==null)}ap(o)}catch(ee){n=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function op(){var t=Yo.current;return Yo.current=qo,t===null?qo:t}function Jl(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Ye===null||!(lr&268435455)&&!(Zo&268435455)||qn(Ye,tt)}function is(t,n){var o=be;be|=2;var a=op();(Ye!==t||tt!==n)&&(En=null,cr(t,n));do try{N_();break}catch(c){ip(t,c)}while(!0);if(dl(),be=o,Yo.current=a,qe!==null)throw Error(i(261));return Ye=null,tt=0,Qe}function N_(){for(;qe!==null;)sp(qe)}function A_(){for(;qe!==null&&!n0();)sp(qe)}function sp(t){var n=cp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,n===null?ap(t):qe=n,$l.current=null}function ap(t){var n=t;do{var o=n.alternate;if(t=n.return,n.flags&32768){if(o=x_(o,n),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Qe=6,qe=null;return}}else if(o=w_(o,n,Tt),o!==null){qe=o;return}if(n=n.sibling,n!==null){qe=n;return}qe=n=t}while(n!==null);Qe===0&&(Qe=5)}function fr(t,n,o){var a=Oe,c=Lt.transition;try{Lt.transition=null,Oe=1,P_(t,n,o,a)}finally{Lt.transition=c,Oe=a}return null}function P_(t,n,o,a){do Wr();while(Gn!==null);if(be&6)throw Error(i(327));o=t.finishedWork;var c=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var f=o.lanes|o.childLanes;if(d0(t,f),t===Ye&&(qe=Ye=null,tt=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||es||(es=!0,fp(ao,function(){return Wr(),null})),f=(o.flags&15990)!==0,o.subtreeFlags&15990||f){f=Lt.transition,Lt.transition=null;var g=Oe;Oe=1;var T=be;be|=4,$l.current=null,C_(t,o),Yh(o,t),Z0(Ja),mo=!!Za,Ja=Za=null,t.current=o,k_(o),r0(),be=T,Oe=g,Lt.transition=f}else t.current=o;if(es&&(es=!1,Gn=t,ts=c),f=t.pendingLanes,f===0&&(Hn=null),s0(o.stateNode),_t(t,He()),n!==null)for(a=t.onRecoverableError,o=0;o<n.length;o++)c=n[o],a(c.value,{componentStack:c.stack,digest:c.digest});if(Jo)throw Jo=!1,t=Wl,Wl=null,t;return ts&1&&t.tag!==0&&Wr(),f=t.pendingLanes,f&1?t===Xl?zi++:(zi=0,Xl=t):zi=0,Bn(),null}function Wr(){if(Gn!==null){var t=Qf(ts),n=Lt.transition,o=Oe;try{if(Lt.transition=null,Oe=16>t?16:t,Gn===null)var a=!1;else{if(t=Gn,Gn=null,ts=0,be&6)throw Error(i(331));var c=be;for(be|=4,K=t.current;K!==null;){var f=K,g=f.child;if(K.flags&16){var T=f.deletions;if(T!==null){for(var A=0;A<T.length;A++){var F=T[A];for(K=F;K!==null;){var U=K;switch(U.tag){case 0:case 11:case 15:Li(8,U,f)}var H=U.child;if(H!==null)H.return=U,K=H;else for(;K!==null;){U=K;var z=U.sibling,X=U.return;if(Vh(U),U===F){K=null;break}if(z!==null){z.return=X,K=z;break}K=X}}}var Y=f.alternate;if(Y!==null){var Z=Y.child;if(Z!==null){Y.child=null;do{var Ge=Z.sibling;Z.sibling=null,Z=Ge}while(Z!==null)}}K=f}}if(f.subtreeFlags&2064&&g!==null)g.return=f,K=g;else e:for(;K!==null;){if(f=K,f.flags&2048)switch(f.tag){case 0:case 11:case 15:Li(9,f,f.return)}var D=f.sibling;if(D!==null){D.return=f.return,K=D;break e}K=f.return}}var P=t.current;for(K=P;K!==null;){g=K;var M=g.child;if(g.subtreeFlags&2064&&M!==null)M.return=g,K=M;else e:for(g=P;K!==null;){if(T=K,T.flags&2048)try{switch(T.tag){case 0:case 11:case 15:Ko(9,T)}}catch(ee){Ue(T,T.return,ee)}if(T===g){K=null;break e}var $=T.sibling;if($!==null){$.return=T.return,K=$;break e}K=T.return}}if(be=c,Bn(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(lo,t)}catch{}a=!0}return a}finally{Oe=o,Lt.transition=n}}return!1}function lp(t,n,o){n=Gr(o,n),n=Ch(t,n,1),t=zn(t,n,1),n=ft(),t!==null&&(ci(t,1,n),_t(t,n))}function Ue(t,n,o){if(t.tag===3)lp(t,t,o);else for(;n!==null;){if(n.tag===3){lp(n,t,o);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hn===null||!Hn.has(a))){t=Gr(o,t),t=kh(n,t,1),n=zn(n,t,1),t=ft(),n!==null&&(ci(n,1,t),_t(n,t));break}}n=n.return}}function I_(t,n,o){var a=t.pingCache;a!==null&&a.delete(n),n=ft(),t.pingedLanes|=t.suspendedLanes&o,Ye===t&&(tt&o)===o&&(Qe===4||Qe===3&&(tt&130023424)===tt&&500>He()-Vl?cr(t,0):ql|=o),_t(t,n)}function up(t,n){n===0&&(t.mode&1?(n=co,co<<=1,!(co&130023424)&&(co=4194304)):n=1);var o=ft();t=yn(t,n),t!==null&&(ci(t,n,o),_t(t,o))}function D_(t){var n=t.memoizedState,o=0;n!==null&&(o=n.retryLane),up(t,o)}function M_(t,n){var o=0;switch(t.tag){case 13:var a=t.stateNode,c=t.memoizedState;c!==null&&(o=c.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(n),up(t,o)}var cp;cp=function(t,n,o){if(t!==null)if(t.memoizedProps!==n.pendingProps||mt.current)yt=!0;else{if(!(t.lanes&o)&&!(n.flags&128))return yt=!1,b_(t,n,o);yt=!!(t.flags&131072)}else yt=!1,Fe&&n.flags&1048576&&Gd(n,Io,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Xo(t,n),t=n.pendingProps;var c=Mr(n,ot.current);Ur(n,o),c=wl(null,n,a,t,c,o);var f=xl();return n.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,gt(a)?(f=!0,No(n)):f=!1,n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,gl(n),c.updater=Vo,n.stateNode=c,c._reactInternals=n,Nl(n,a,t,o),n=Dl(null,n,a,!0,f,o)):(n.tag=0,Fe&&f&&sl(n),ct(null,n,c,o),n=n.child),n;case 16:a=n.elementType;e:{switch(Xo(t,n),t=n.pendingProps,c=a._init,a=c(a._payload),n.type=a,c=n.tag=L_(a),t=qt(a,t),c){case 0:n=Il(null,n,a,t,o);break e;case 1:n=Fh(null,n,a,t,o);break e;case 11:n=Ah(null,n,a,t,o);break e;case 14:n=Ph(null,n,a,qt(a.type,t),o);break e}throw Error(i(306,a,""))}return n;case 0:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:qt(a,c),Il(t,n,a,c,o);case 1:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:qt(a,c),Fh(t,n,a,c,o);case 3:e:{if(Lh(n),t===null)throw Error(i(387));a=n.pendingProps,f=n.memoizedState,c=f.element,Zd(t,n),jo(n,a,null,o);var g=n.memoizedState;if(a=g.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){c=Gr(Error(i(423)),n),n=Bh(t,n,a,o,c);break e}else if(a!==c){c=Gr(Error(i(424)),n),n=Bh(t,n,a,o,c);break e}else for(xt=Mn(n.stateNode.containerInfo.firstChild),wt=n,Fe=!0,$t=null,o=Kd(n,null,a,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Br(),a===c){n=_n(t,n,o);break e}ct(t,n,a,o)}n=n.child}return n;case 5:return th(n),t===null&&ul(n),a=n.type,c=n.pendingProps,f=t!==null?t.memoizedProps:null,g=c.children,el(a,c)?g=null:f!==null&&el(a,f)&&(n.flags|=32),Mh(t,n),ct(t,n,g,o),n.child;case 6:return t===null&&ul(n),null;case 13:return jh(t,n,o);case 4:return yl(n,n.stateNode.containerInfo),a=n.pendingProps,t===null?n.child=jr(n,null,a,o):ct(t,n,a,o),n.child;case 11:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:qt(a,c),Ah(t,n,a,c,o);case 7:return ct(t,n,n.pendingProps,o),n.child;case 8:return ct(t,n,n.pendingProps.children,o),n.child;case 12:return ct(t,n,n.pendingProps.children,o),n.child;case 10:e:{if(a=n.type._context,c=n.pendingProps,f=n.memoizedProps,g=c.value,Ae(Fo,a._currentValue),a._currentValue=g,f!==null)if(Gt(f.value,g)){if(f.children===c.children&&!mt.current){n=_n(t,n,o);break e}}else for(f=n.child,f!==null&&(f.return=n);f!==null;){var T=f.dependencies;if(T!==null){g=f.child;for(var A=T.firstContext;A!==null;){if(A.context===a){if(f.tag===1){A=vn(-1,o&-o),A.tag=2;var F=f.updateQueue;if(F!==null){F=F.shared;var U=F.pending;U===null?A.next=A:(A.next=U.next,U.next=A),F.pending=A}}f.lanes|=o,A=f.alternate,A!==null&&(A.lanes|=o),pl(f.return,o,n),T.lanes|=o;break}A=A.next}}else if(f.tag===10)g=f.type===n.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(i(341));g.lanes|=o,T=g.alternate,T!==null&&(T.lanes|=o),pl(g,o,n),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===n){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}ct(t,n,c.children,o),n=n.child}return n;case 9:return c=n.type,a=n.pendingProps.children,Ur(n,o),c=Mt(c),a=a(c),n.flags|=1,ct(t,n,a,o),n.child;case 14:return a=n.type,c=qt(a,n.pendingProps),c=qt(a.type,c),Ph(t,n,a,c,o);case 15:return Ih(t,n,n.type,n.pendingProps,o);case 17:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:qt(a,c),Xo(t,n),n.tag=1,gt(a)?(t=!0,No(n)):t=!1,Ur(n,o),xh(n,a,c),Nl(n,a,c,o),Dl(null,n,a,!0,t,o);case 19:return Uh(t,n,o);case 22:return Dh(t,n,o)}throw Error(i(156,n.tag))};function fp(t,n){return $f(t,n)}function F_(t,n,o,a){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(t,n,o,a){return new F_(t,n,o,a)}function eu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function L_(t){if(typeof t=="function")return eu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Pe)return 14}return 2}function Vn(t,n){var o=t.alternate;return o===null?(o=Bt(t.tag,n,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=n,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&14680064,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,n=t.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o}function os(t,n,o,a,c,f){var g=2;if(a=t,typeof t=="function")eu(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case G:return dr(o.children,c,f,n);case q:g=8,c|=8;break;case fe:return t=Bt(12,o,n,c|2),t.elementType=fe,t.lanes=f,t;case ue:return t=Bt(13,o,n,c),t.elementType=ue,t.lanes=f,t;case ze:return t=Bt(19,o,n,c),t.elementType=ze,t.lanes=f,t;case Ne:return ss(o,c,f,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case oe:g=9;break e;case pe:g=11;break e;case Pe:g=14;break e;case $e:g=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return n=Bt(g,o,n,c),n.elementType=t,n.type=a,n.lanes=f,n}function dr(t,n,o,a){return t=Bt(7,t,a,n),t.lanes=o,t}function ss(t,n,o,a){return t=Bt(22,t,a,n),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function tu(t,n,o){return t=Bt(6,t,null,n),t.lanes=o,t}function nu(t,n,o){return n=Bt(4,t.children!==null?t.children:[],t.key,n),n.lanes=o,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function B_(t,n,o,a,c){this.tag=n,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Oa(0),this.expirationTimes=Oa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oa(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function ru(t,n,o,a,c,f,g,T,A){return t=new B_(t,n,o,T,A),n===1?(n=1,f===!0&&(n|=8)):n=0,f=Bt(3,null,null,n),t.current=f,f.stateNode=t,f.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},gl(f),t}function j_(t,n,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:a==null?null:""+a,children:t,containerInfo:n,implementation:o}}function dp(t){if(!t)return Ln;t=t._reactInternals;e:{if(er(t)!==t||t.tag!==1)throw Error(i(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(gt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(t.tag===1){var o=t.type;if(gt(o))return zd(t,o,n)}return n}function hp(t,n,o,a,c,f,g,T,A){return t=ru(o,a,!0,t,c,f,g,T,A),t.context=dp(null),o=t.current,a=ft(),c=$n(o),f=vn(a,c),f.callback=n??null,zn(o,f,c),t.current.lanes=c,ci(t,c,a),_t(t,a),t}function as(t,n,o,a){var c=n.current,f=ft(),g=$n(c);return o=dp(o),n.context===null?n.context=o:n.pendingContext=o,n=vn(f,g),n.payload={element:t},a=a===void 0?null:a,a!==null&&(n.callback=a),t=zn(c,n,g),t!==null&&(Xt(t,c,g,f),Bo(t,c,g)),g}function ls(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function pp(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<n?o:n}}function iu(t,n){pp(t,n),(t=t.alternate)&&pp(t,n)}function z_(){return null}var mp=typeof reportError=="function"?reportError:function(t){console.error(t)};function ou(t){this._internalRoot=t}us.prototype.render=ou.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));as(t,n,null,null)},us.prototype.unmount=ou.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;ur(function(){as(null,t,null,null)}),n[hn]=null}};function us(t){this._internalRoot=t}us.prototype.unstable_scheduleHydration=function(t){if(t){var n=Zf();t={blockedOn:null,target:t,priority:n};for(var o=0;o<Pn.length&&n!==0&&n<Pn[o].priority;o++);Pn.splice(o,0,t),o===0&&td(t)}};function su(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function cs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function gp(){}function U_(t,n,o,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var F=ls(g);f.call(F)}}var g=hp(n,a,t,0,null,!1,!1,"",gp);return t._reactRootContainer=g,t[hn]=g.current,xi(t.nodeType===8?t.parentNode:t),ur(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var T=a;a=function(){var F=ls(A);T.call(F)}}var A=ru(t,0,!1,null,null,!1,!1,"",gp);return t._reactRootContainer=A,t[hn]=A.current,xi(t.nodeType===8?t.parentNode:t),ur(function(){as(n,A,o,a)}),A}function fs(t,n,o,a,c){var f=o._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var T=c;c=function(){var A=ls(g);T.call(A)}}as(n,g,t,c)}else g=U_(o,n,t,c,a);return ls(g)}Kf=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var o=ui(n.pendingLanes);o!==0&&(Na(n,o|1),_t(n,He()),!(be&6)&&(Vr=He()+500,Bn()))}break;case 13:ur(function(){var a=yn(t,1);if(a!==null){var c=ft();Xt(a,t,1,c)}}),iu(t,1)}},Aa=function(t){if(t.tag===13){var n=yn(t,134217728);if(n!==null){var o=ft();Xt(n,t,134217728,o)}iu(t,134217728)}},Yf=function(t){if(t.tag===13){var n=$n(t),o=yn(t,n);if(o!==null){var a=ft();Xt(o,t,n,a)}iu(t,n)}},Zf=function(){return Oe},Jf=function(t,n){var o=Oe;try{return Oe=t,n()}finally{Oe=o}},wa=function(t,n,o){switch(n){case"input":if(ma(t,o),n=o.name,o.type==="radio"&&n!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var a=o[n];if(a!==t&&a.form===t.form){var c=Ro(a);if(!c)throw Error(i(90));ut(a),ma(a,c)}}}break;case"textarea":Rf(t,o);break;case"select":n=o.value,n!=null&&wr(t,!!o.multiple,n,!1)}},Lf=Yl,Bf=ur;var H_={usingClientEntryPoint:!1,Events:[ki,Ir,Ro,Mf,Ff,Yl]},Ui={findFiberByHostInstance:tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G_={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Hf(t),t===null?null:t.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||z_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ds.isDisabled&&ds.supportsFiber)try{lo=ds.inject(G_),tn=ds}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H_,Et.createPortal=function(t,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!su(n))throw Error(i(200));return j_(t,n,null,o)},Et.createRoot=function(t,n){if(!su(t))throw Error(i(299));var o=!1,a="",c=mp;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),n=ru(t,1,!1,null,null,o,!1,a,c),t[hn]=n.current,xi(t.nodeType===8?t.parentNode:t),new ou(n)},Et.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Hf(n),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return ur(t)},Et.hydrate=function(t,n,o){if(!cs(n))throw Error(i(200));return fs(null,t,n,!0,o)},Et.hydrateRoot=function(t,n,o){if(!su(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,f="",g=mp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),n=hp(n,null,t,1,o??null,c,!1,f,g),t[hn]=n.current,xi(t),a)for(t=0;t<a.length;t++)o=a[t],c=o._getVersion,c=c(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,c]:n.mutableSourceEagerHydrationData.push(o,c);return new us(n)},Et.render=function(t,n,o){if(!cs(n))throw Error(i(200));return fs(null,t,n,!1,o)},Et.unmountComponentAtNode=function(t){if(!cs(t))throw Error(i(40));return t._reactRootContainer?(ur(function(){fs(null,null,t,!1,function(){t._reactRootContainer=null,t[hn]=null})}),!0):!1},Et.unstable_batchedUpdates=Yl,Et.unstable_renderSubtreeIntoContainer=function(t,n,o,a){if(!cs(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return fs(t,n,o,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var xp;function J_(){if(xp)return uu.exports;xp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),uu.exports=Z_(),uu.exports}var Tp;function e1(){if(Tp)return ps;Tp=1;var e=J_();return ps.createRoot=e.createRoot,ps.hydrateRoot=e.hydrateRoot,ps}var t1=e1(),B=Jr();const xn=ta(B);var du={exports:{}},hu={};/**
|
|
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 Cp;function n1(){if(Cp)return hu;Cp=1;var e=Jr();function r(p,_){return p===_&&(p!==0||1/p===1/_)||p!==p&&_!==_}var i=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,d=e.useMemo,h=e.useDebugValue;return hu.useSyncExternalStoreWithSelector=function(p,_,y,b,m){var E=l(null);if(E.current===null){var v={hasValue:!1,value:null};E.current=v}else v=E.current;E=d(function(){function C(x){if(!O){if(O=!0,N=x,x=b(x),m!==void 0&&v.hasValue){var L=v.value;if(m(L,x))return S=L}return S=x}if(L=S,i(N,x))return L;var G=b(x);return m!==void 0&&m(L,G)?(N=x,L):(N=x,S=G)}var O=!1,N,S,k=y===void 0?null:y;return[function(){return C(_())},k===null?void 0:function(){return C(k())}]},[_,y,b,m]);var w=s(p,E[0],E[1]);return u(function(){v.hasValue=!0,v.value=w},[w]),h(w),w},hu}var kp;function r1(){return kp||(kp=1,du.exports=n1()),du.exports}var i1=r1(),o1=B.version.startsWith("19"),s1=Symbol.for(o1?"react.transitional.element":"react.element"),a1=Symbol.for("react.portal"),l1=Symbol.for("react.fragment"),u1=Symbol.for("react.strict_mode"),c1=Symbol.for("react.profiler"),f1=Symbol.for("react.consumer"),d1=Symbol.for("react.context"),qg=Symbol.for("react.forward_ref"),h1=Symbol.for("react.suspense"),p1=Symbol.for("react.suspense_list"),jc=Symbol.for("react.memo"),m1=Symbol.for("react.lazy"),g1=qg,y1=jc;function v1(e){if(typeof e=="object"&&e!==null){const{$$typeof:r}=e;switch(r){case s1:switch(e=e.type,e){case l1:case c1:case u1:case h1:case p1:return e;default:switch(e=e&&e.$$typeof,e){case d1:case qg:case m1:case jc:return e;case f1:return e;default:return r}}case a1:return r}}}function _1(e){return v1(e)===jc}function E1(e,r,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:d}){let h=!1,p,_,y,b,m;function E(N,S){return p=N,_=S,y=e(p,_),b=r(s,_),m=i(y,b,_),h=!0,m}function v(){return y=e(p,_),r.dependsOnOwnProps&&(b=r(s,_)),m=i(y,b,_),m}function w(){return e.dependsOnOwnProps&&(y=e(p,_)),r.dependsOnOwnProps&&(b=r(s,_)),m=i(y,b,_),m}function C(){const N=e(p,_),S=!d(N,y);return y=N,S&&(m=i(y,b,_)),m}function O(N,S){const k=!u(S,_),x=!l(N,p,S,_);return p=N,_=S,k&&x?v():k?w():x?C():m}return function(S,k){return h?O(S,k):E(S,k)}}function S1(e,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=r(e,l),d=i(e,l),h=s(e,l);return E1(u,d,h,e,l)}function b1(e,r){const i={};for(const s in e){const l=e[s];typeof l=="function"&&(i[s]=(...u)=>r(l(...u)))}return i}function lc(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Rp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Vg(e,r){return function(s,{displayName:l}){const u=function(h,p){return u.dependsOnOwnProps?u.mapToProps(h,p):u.mapToProps(h,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(h,p){u.mapToProps=e,u.dependsOnOwnProps=Rp(e);let _=u(h,p);return typeof _=="function"&&(u.mapToProps=_,u.dependsOnOwnProps=Rp(_),_=u(h,p)),_},u}}function zc(e,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function w1(e){return e&&typeof e=="object"?lc(r=>b1(e,r)):e?typeof e=="function"?Vg(e):zc(e,"mapDispatchToProps"):lc(r=>({dispatch:r}))}function x1(e){return e?typeof e=="function"?Vg(e):zc(e,"mapStateToProps"):lc(()=>({}))}function T1(e,r,i){return{...i,...e,...r}}function C1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,d;return function(p,_,y){const b=e(p,_,y);return u?l(b,d)||(d=b):(u=!0,d=b),d}}}function k1(e){return e?typeof e=="function"?C1(e):zc(e,"mergeProps"):()=>T1}function R1(e){e()}function O1(){let e=null,r=null;return{clear(){e=null,r=null},notify(){R1(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=e;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const l=r={callback:i,next:null,prev:r};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:r=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Op={notify(){},get:()=>[]};function Wg(e,r){let i,s=Op,l=0,u=!1;function d(w){y();const C=s.subscribe(w);let O=!1;return()=>{O||(O=!0,C(),b())}}function h(){s.notify()}function p(){v.onStateChange&&v.onStateChange()}function _(){return u}function y(){l++,i||(i=r?r.addNestedSub(p):e.subscribe(p),s=O1())}function b(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=Op)}function m(){u||(u=!0,y())}function E(){u&&(u=!1,b())}const v={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:_,trySubscribe:m,tryUnsubscribe:E,getListeners:()=>s};return v}var N1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A1=N1(),P1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",I1=P1(),D1=()=>A1||I1?B.useLayoutEffect:B.useEffect,Ws=D1();function Np(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function pu(e,r){if(Np(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;const i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(r,i[l])||!Np(e[i[l]],r[i[l]]))return!1;return!0}var M1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},F1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},B1={[g1]:L1,[y1]:Xg};function Ap(e){return _1(e)?Xg:B1[e.$$typeof]||M1}var j1=Object.defineProperty,z1=Object.getOwnPropertyNames,Pp=Object.getOwnPropertySymbols,U1=Object.getOwnPropertyDescriptor,H1=Object.getPrototypeOf,Ip=Object.prototype;function uc(e,r){if(typeof r!="string"){if(Ip){const u=H1(r);u&&u!==Ip&&uc(e,u)}let i=z1(r);Pp&&(i=i.concat(Pp(r)));const s=Ap(e),l=Ap(r);for(let u=0;u<i.length;++u){const d=i[u];if(!F1[d]&&!(l&&l[d])&&!(s&&s[d])){const h=U1(r,d);try{j1(e,d,h)}catch{}}}}return e}var mu=Symbol.for("react-redux-context"),gu=typeof globalThis<"u"?globalThis:{};function G1(){if(!B.createContext)return{};const e=gu[mu]??(gu[mu]=new Map);let r=e.get(B.createContext);return r||(r=B.createContext(null),e.set(B.createContext,r)),r}var kn=G1(),$1=[null,null];function q1(e,r,i){Ws(()=>e(...r),i)}function V1(e,r,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function W1(e,r,i,s,l,u,d,h,p,_,y){if(!e)return()=>{};let b=!1,m=null;const E=()=>{if(b||!h.current)return;const w=r.getState();let C,O;try{C=s(w,l.current)}catch(N){O=N,m=N}O||(m=null),C===u.current?d.current||_():(u.current=C,p.current=C,d.current=!0,y())};return i.onStateChange=E,i.trySubscribe(),E(),()=>{if(b=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function X1(e,r){return e===r}function Q1(e,r,i,{pure:s,areStatesEqual:l=X1,areOwnPropsEqual:u=pu,areStatePropsEqual:d=pu,areMergedPropsEqual:h=pu,forwardRef:p=!1,context:_=kn}={}){const y=_,b=x1(e),m=w1(r),E=k1(i),v=!!e;return C=>{const O=C.displayName||C.name||"Component",N=`Connect(${O})`,S={shouldHandleStateChanges:v,displayName:N,wrappedComponentName:O,WrappedComponent:C,initMapStateToProps:b,initMapDispatchToProps:m,initMergeProps:E,areStatesEqual:l,areStatePropsEqual:d,areOwnPropsEqual:u,areMergedPropsEqual:h};function k(G){const[q,fe,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ut,...en}=G;return[G.context,ut,en]},[G]),oe=B.useMemo(()=>{let ut=y;return q!=null&&q.Consumer,ut},[q,y]),pe=B.useContext(oe),ue=!!G.store&&!!G.store.getState&&!!G.store.dispatch,ze=!!pe&&!!pe.store,Pe=ue?G.store:pe.store,$e=ze?pe.getServerState:Pe.getState,Ne=B.useMemo(()=>S1(Pe.dispatch,S),[Pe]),[W,ne]=B.useMemo(()=>{if(!v)return $1;const ut=Wg(Pe,ue?void 0:pe.subscription),en=ut.notifyNestedSubs.bind(ut);return[ut,en]},[Pe,ue,pe]),Q=B.useMemo(()=>ue?pe:{...pe,subscription:W},[ue,pe,W]),I=B.useRef(void 0),j=B.useRef(te),ce=B.useRef(void 0),de=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Ws(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ce.current&&te===j.current?ce.current:Ne(Pe.getState(),te),[Pe,te]),Te=B.useMemo(()=>en=>W?W1(v,Pe,W,Ne,j,I,de,ye,ce,ne,en):()=>{},[W]);q1(V1,[j,I,de,te,ce,ne]);let Re;try{Re=B.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ut){throw ve.current&&(ut.message+=`
|
|
49
|
+
The error may be correlated with this previous error:
|
|
50
|
+
${ve.current.stack}
|
|
51
|
+
|
|
52
|
+
`),ut}Ws(()=>{ve.current=void 0,ce.current=void 0,I.current=Re});const Je=B.useMemo(()=>B.createElement(C,{...Re,ref:fe}),[fe,C,Re]);return B.useMemo(()=>v?B.createElement(oe.Provider,{value:Q},Je):Je,[oe,Je,Q])}const L=B.memo(k);if(L.WrappedComponent=C,L.displayName=k.displayName=N,p){const q=B.forwardRef(function(te,oe){return B.createElement(L,{...te,reactReduxForwardedRef:oe})});return q.displayName=N,q.WrappedComponent=C,uc(q,C)}return uc(L,C)}}var K1=Q1;function Y1(e){const{children:r,context:i,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=Wg(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),d=B.useMemo(()=>l.getState(),[l]);Ws(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),d!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,d]);const h=i||kn;return B.createElement(h.Provider,{value:u},r)}var Z1=Y1;function Uc(e=kn){return function(){return B.useContext(e)}}var Qg=Uc();function Kg(e=kn){const r=e===kn?Qg:Uc(e),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var J1=Kg();function eE(e=kn){const r=e===kn?J1:Kg(e),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var tE=eE(),nE=(e,r)=>e===r;function rE(e=kn){const r=e===kn?Qg:Uc(e),i=(s,l={})=>{const{equalityFn:u=nE}=typeof l=="function"?{equalityFn:l}:l,d=r(),{store:h,subscription:p,getServerState:_}=d;B.useRef(!0);const y=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),b=i1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,_||h.getState,y,u);return B.useDebugValue(b),b};return Object.assign(i,{withTypes:()=>i}),i}var iE=rE(),cc=function(e,r){return cc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])},cc(e,r)};function zt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");cc(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var J=function(){return J=Object.assign||function(r){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},J.apply(this,arguments)};function na(e,r){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(i[s[l]]=e[s[l]]);return i}function un(e,r,i){if(i||arguments.length===2)for(var s=0,l=r.length,u;s<l;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return e.concat(u||Array.prototype.slice.call(r))}function an(e,r){var i=r&&r.cache?r.cache:fE,s=r&&r.serializer?r.serializer:uE,l=r&&r.strategy?r.strategy:sE;return l(e,{cache:i,serializer:s})}function oE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Yg(e,r,i,s){var l=oE(s)?s:i(s),u=r.get(l);return typeof u>"u"&&(u=e.call(this,s),r.set(l,u)),u}function Zg(e,r,i){var s=Array.prototype.slice.call(arguments,3),l=i(s),u=r.get(l);return typeof u>"u"&&(u=e.apply(this,s),r.set(l,u)),u}function Hc(e,r,i,s,l){return i.bind(r,e,s,l)}function sE(e,r){var i=e.length===1?Yg:Zg;return Hc(e,this,i,r.cache.create(),r.serializer)}function aE(e,r){return Hc(e,this,Zg,r.cache.create(),r.serializer)}function lE(e,r){return Hc(e,this,Yg,r.cache.create(),r.serializer)}var uE=function(){return JSON.stringify(arguments)},cE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(r){return this.cache[r]},e.prototype.set=function(r,i){this.cache[r]=i},e}(),fE={create:function(){return new cE}},ln={variadic:aE,monadic:lE},_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 Yr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Yr||(Yr={}));function Dp(e){return e.type===Me.literal}function dE(e){return e.type===Me.argument}function Jg(e){return e.type===Me.number}function ey(e){return e.type===Me.date}function ty(e){return e.type===Me.time}function ny(e){return e.type===Me.select}function ry(e){return e.type===Me.plural}function hE(e){return e.type===Me.pound}function iy(e){return e.type===Me.tag}function oy(e){return!!(e&&typeof e=="object"&&e.type===Yr.number)}function fc(e){return!!(e&&typeof e=="object"&&e.type===Yr.dateTime)}var sy=/[ \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 r={};return e.replace(pE,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var gE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function yE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(gE).filter(function(m){return m.length>0}),i=[],s=0,l=r;s<l.length;s++){var u=l[s],d=u.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],p=d.slice(1),_=0,y=p;_<y.length;_++){var b=y[_];if(b.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function vE(e){return e.replace(/^(.*?)-/,"")}var Mp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ay=/^(@+)?(\+|#+)?[rs]?$/g,_E=/(\*)(0+)|(#+)(0+)|(0+)/g,ly=/^(0+)$/;function Fp(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(ay,function(i,s,l){return typeof l!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):l==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof l=="string"?l.length:0)),""}),r}function uy(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 EE(e){var r;if(e[0]==="E"&&e[1]==="E"?(r={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(r={notation:"scientific"},e=e.slice(1)),r){var i=e.slice(0,2);if(i==="+!"?(r.signDisplay="always",e=e.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",e=e.slice(2)),!ly.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function Lp(e){var r={},i=uy(e);return i||r}function SE(e){for(var r={},i=0,s=e;i<s.length;i++){var l=s[i];switch(l.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=l.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=vE(l.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=J(J(J({},r),{notation:"scientific"}),l.options.reduce(function(p,_){return J(J({},p),Lp(_))},{}));continue;case"engineering":r=J(J(J({},r),{notation:"engineering"}),l.options.reduce(function(p,_){return J(J({},p),Lp(_))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(_E,function(p,_,y,b,m,E){if(_)r.minimumIntegerDigits=y.length;else{if(b&&m)throw new Error("We currently do not support maximum integer digits");if(E)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ly.test(l.stem)){r.minimumIntegerDigits=l.stem.length;continue}if(Mp.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace(Mp,function(p,_,y,b,m,E){return y==="*"?r.minimumFractionDigits=_.length:b&&b[0]==="#"?r.maximumFractionDigits=b.length:m&&E?(r.minimumFractionDigits=m.length,r.maximumFractionDigits=m.length+E.length):(r.minimumFractionDigits=_.length,r.maximumFractionDigits=_.length),""});var u=l.options[0];u==="w"?r=J(J({},r),{trailingZeroDisplay:"stripIfInteger"}):u&&(r=J(J({},r),Fp(u)));continue}if(ay.test(l.stem)){r=J(J({},r),Fp(l.stem));continue}var d=uy(l.stem);d&&(r=J(J({},r),d));var h=EE(l.stem);h&&(r=J(J({},r),h))}return r}var ms={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function bE(e,r){for(var i="",s=0;s<e.length;s++){var l=e.charAt(s);if(l==="j"){for(var u=0;s+1<e.length&&e.charAt(s+1)===l;)u++,s++;var d=1+(u&1),h=u<2?1:3+(u>>1),p="a",_=wE(r);for((_=="H"||_=="k")&&(h=0);h-- >0;)i+=p;for(;d-- >0;)i=_+i}else l==="J"?i+="H":i+=l}return i}function wE(e){var r=e.hourCycle;if(r===void 0&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,s;i!=="root"&&(s=e.maximize().region);var l=ms[s||""]||ms[i||""]||ms["".concat(i,"-001")]||ms["001"];return l[0]}var yu,xE=new RegExp("^".concat(sy.source,"*")),TE=new RegExp("".concat(sy.source,"*$"));function Se(e,r){return{start:e,end:r}}var CE=!!String.prototype.startsWith&&"_a".startsWith("a",1),kE=!!String.fromCodePoint,RE=!!Object.fromEntries,OE=!!String.prototype.codePointAt,NE=!!String.prototype.trimStart,AE=!!String.prototype.trimEnd,PE=!!Number.isSafeInteger,IE=PE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},dc=!0;try{var DE=fy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dc=((yu=DE.exec("a"))===null||yu===void 0?void 0:yu[0])==="a"}catch{dc=!1}var Bp=CE?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},hc=kE?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",l=r.length,u=0,d;l>u;){if(d=r[u++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},jp=RE?Object.fromEntries:function(r){for(var i={},s=0,l=r;s<l.length;s++){var u=l[s],d=u[0],h=u[1];i[d]=h}return i},cy=OE?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var l=r.charCodeAt(i),u;return l<55296||l>56319||i+1===s||(u=r.charCodeAt(i+1))<56320||u>57343?l:(l-55296<<10)+(u-56320)+65536}},ME=NE?function(r){return r.trimStart()}:function(r){return r.replace(xE,"")},FE=AE?function(r){return r.trimEnd()}:function(r){return r.replace(TE,"")};function fy(e,r){return new RegExp(e,r)}var pc;if(dc){var zp=fy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pc=function(r,i){var s;zp.lastIndex=i;var l=zp.exec(r);return(s=l[1])!==null&&s!==void 0?s:""}}else pc=function(r,i){for(var s=[];;){var l=cy(r,i);if(l===void 0||dy(l)||zE(l))break;s.push(l),i+=l>=65536?2:1}return hc.apply(void 0,s)};var LE=function(){function e(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(r,i,s){for(var l=[];!this.isEOF();){var u=this.char();if(u===123){var d=this.parseArgument(r,s);if(d.err)return d;l.push(d.val)}else{if(u===125&&r>0)break;if(u===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),l.push({type:Me.pound,location:Se(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,Se(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&mc(this.peek()||0)){var d=this.parseTag(r,i);if(d.err)return d;l.push(d.val)}else{var d=this.parseLiteral(r,i);if(d.err)return d;l.push(d.val)}}}return{val:l,err:null}},e.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var l=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(l,"/>"),location:Se(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(r+1,i,!0);if(u.err)return u;var d=u.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mc(this.char()))return this.error(_e.INVALID_TAG,Se(h,this.clonePosition()));var p=this.clonePosition(),_=this.parseTagName();return l!==_?this.error(_e.UNMATCHED_CLOSING_TAG,Se(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:d,location:Se(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,Se(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,Se(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,Se(s,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&jE(this.char());)this.bump();return this.message.slice(r,this.offset())},e.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),l="";;){var u=this.tryParseQuote(i);if(u){l+=u;continue}var d=this.tryParseUnquoted(r,i);if(d){l+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){l+=h;continue}break}var p=Se(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||!BE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return hc.apply(void 0,i)},e.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),hc(s))},e.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,Se(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,Se(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:Se(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(s,this.clonePosition())):this.parseArgumentOptions(r,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,Se(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=pc(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),d=Se(r,u);return{value:s,location:d}},e.prototype.parseArgumentOptions=function(r,i,s,l){var u,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(_e.EXPECT_ARGUMENT_TYPE,Se(d,p));case"number":case"date":case"time":{this.bumpSpace();var _=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;var m=FE(b.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,Se(this.clonePosition(),this.clonePosition()));var E=Se(y,this.clonePosition());_={style:m,styleLocation:E}}var v=this.tryParseArgumentClose(l);if(v.err)return v;var w=Se(l,this.clonePosition());if(_&&Bp(_==null?void 0:_.style,"::",0)){var C=ME(_.style.slice(2));if(h==="number"){var b=this.parseNumberSkeletonFromString(C,_.styleLocation);return b.err?b:{val:{type:Me.number,value:s,location:w,style:b.val},err:null}}else{if(C.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,w);var O=C;this.locale&&(O=bE(C,this.locale));var m={type:Yr.dateTime,pattern:O,location:_.styleLocation,parsedOptions:this.shouldParseSkeletons?mE(O):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:w,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:w,style:(u=_==null?void 0:_.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,Se(S,J({},S)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),x=0;if(h!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Se(this.clonePosition(),this.clonePosition()));this.bumpSpace();var b=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(b.err)return b;this.bumpSpace(),k=this.parseIdentifierIfPossible(),x=b.val}var L=this.tryParsePluralOrSelectOptions(r,h,i,k);if(L.err)return L;var v=this.tryParseArgumentClose(l);if(v.err)return v;var G=Se(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:jp(L.val),location:G},err:null}:{val:{type:Me.plural,value:s,options:jp(L.val),offset:x,pluralType:h==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,Se(d,p))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var l=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Se(l,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=yE(r)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Yr.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?SE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,i,s,l){for(var u,d=!1,h=[],p=new Set,_=l.value,y=l.location;;){if(_.length===0){var b=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;y=Se(b,this.clonePosition()),_=this.message.slice(b.offset,this.offset())}else break}if(p.has(_))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);_==="other"&&(d=!0),this.bumpSpace();var E=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Se(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(r+1,i,s);if(v.err)return v;var w=this.tryParseArgumentClose(E);if(w.err)return w;h.push([_,{value:v.val,location:Se(E,this.clonePosition())}]),p.add(_),this.bumpSpace(),u=this.parseIdentifierIfPossible(),_=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,Se(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(_e.MISSING_OTHER_CLAUSE,Se(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(r,i){var s=1,l=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var u=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)u=!0,d=d*10+(h-48),this.bump();else break}var p=Se(l,this.clonePosition());return u?(d*=s,IE(d)?{val:d,err:null}:this.error(i,p)):this.error(r,p)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=cy(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},e.prototype.bumpIf=function(r){if(Bp(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&dy(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},e}();function mc(e){return e>=97&&e<=122||e>=65&&e<=90}function BE(e){return mc(e)||e===47}function jE(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 dy(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function zE(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 gc(e){e.forEach(function(r){if(delete r.location,ny(r)||ry(r))for(var i in r.options)delete r.options[i].location,gc(r.options[i].value);else Jg(r)&&oy(r.style)||(ey(r)||ty(r))&&fc(r.style)?delete r.style.location:iy(r)&&gc(r.children)})}function UE(e,r){r===void 0&&(r={}),r=J({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new LE(e,r).parse();if(i.err){var s=SyntaxError(_e[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r!=null&&r.captureLocation||gc(i.val),i.val}var fn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(fn||(fn={}));var Jn=function(e){zt(r,e);function r(i,s,l){var u=e.call(this,i)||this;return u.code=s,u.originalMessage=l,u}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Up=function(e){zt(r,e);function r(i,s,l,u){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(l).join('", "'),'"'),fn.INVALID_VALUE,u)||this}return r}(Jn),HE=function(e){zt(r,e);function r(i,s,l){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),fn.INVALID_VALUE,l)||this}return r}(Jn),GE=function(e){zt(r,e);function r(i,s){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),fn.MISSING_VALUE,s)||this}return r}(Jn),dt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(dt||(dt={}));function $E(e){return e.length<2?e:e.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==dt.literal||i.type!==dt.literal?r.push(i):s.value+=i.value,r},[])}function hy(e){return typeof e=="function"}function Us(e,r,i,s,l,u,d){if(e.length===1&&Dp(e[0]))return[{type:dt.literal,value:e[0].value}];for(var h=[],p=0,_=e;p<_.length;p++){var y=_[p];if(Dp(y)){h.push({type:dt.literal,value:y.value});continue}if(hE(y)){typeof u=="number"&&h.push({type:dt.literal,value:i.getNumberFormat(r).format(u)});continue}var b=y.value;if(!(l&&b in l))throw new GE(b,d);var m=l[b];if(dE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?dt.literal:dt.object,value:m});continue}if(ey(y)){var E=typeof y.style=="string"?s.date[y.style]:fc(y.style)?y.style.parsedOptions:void 0;h.push({type:dt.literal,value:i.getDateTimeFormat(r,E).format(m)});continue}if(ty(y)){var E=typeof y.style=="string"?s.time[y.style]:fc(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:dt.literal,value:i.getDateTimeFormat(r,E).format(m)});continue}if(Jg(y)){var E=typeof y.style=="string"?s.number[y.style]:oy(y.style)?y.style.parsedOptions:void 0;E&&E.scale&&(m=m*(E.scale||1)),h.push({type:dt.literal,value:i.getNumberFormat(r,E).format(m)});continue}if(iy(y)){var v=y.children,w=y.value,C=l[w];if(!hy(C))throw new HE(w,"function",d);var O=Us(v,r,i,s,l,u),N=C(O.map(function(x){return x.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(x){return{type:typeof x=="string"?dt.literal:dt.object,value:x}}))}if(ny(y)){var S=y.options[m]||y.options.other;if(!S)throw new Up(y.value,m,Object.keys(y.options),d);h.push.apply(h,Us(S.value,r,i,s,l));continue}if(ry(y)){var S=y.options["=".concat(m)];if(!S){if(!Intl.PluralRules)throw new Jn(`Intl.PluralRules is not available in this environment.
|
|
53
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
54
|
+
`,fn.MISSING_INTL_API,d);var k=i.getPluralRules(r,{type:y.pluralType}).select(m-(y.offset||0));S=y.options[k]||y.options.other}if(!S)throw new Up(y.value,m,Object.keys(y.options),d);h.push.apply(h,Us(S.value,r,i,s,l,m-(y.offset||0)));continue}}return $E(h)}function qE(e,r){return r?J(J(J({},e||{}),r||{}),Object.keys(e).reduce(function(i,s){return i[s]=J(J({},e[s]),r[s]||{}),i},{})):e}function VE(e,r){return r?Object.keys(e).reduce(function(i,s){return i[s]=qE(e[s],r[s]),i},J({},e)):e}function vu(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,i){e[r]=i}}}}}function WE(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:an(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,un([void 0],i,!1)))},{cache:vu(e.number),strategy:ln.variadic}),getDateTimeFormat:an(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,un([void 0],i,!1)))},{cache:vu(e.dateTime),strategy:ln.variadic}),getPluralRules:an(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,un([void 0],i,!1)))},{cache:vu(e.pluralRules),strategy:ln.variadic})}}var py=function(){function e(r,i,s,l){i===void 0&&(i=e.defaultLocale);var u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var _=u.formatToParts(p);if(_.length===1)return _[0].value;var y=_.reduce(function(b,m){return!b.length||m.type!==dt.literal||typeof b[b.length-1]!="string"?b.push(m.value):b[b.length-1]+=m.value,b},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(p){return Us(u.ast,u.locales,u.formatters,u.formats,p,void 0,u.message)},this.resolvedOptions=function(){var p;return{locale:((p=u.resolvedLocale)===null||p===void 0?void 0:p.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof r=="string"){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=l||{};d.formatters;var h=na(d,["formatters"]);this.ast=e.__parse(r,J(J({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=VE(e.formats,s),this.formatters=l&&l.formatters||WE(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},e.__parse=UE,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}(),Er;(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"})(Er||(Er={}));var to=function(e){zt(r,e);function r(i,s,l){var u=this,d=l?l instanceof Error?l:new Error(String(l)):void 0;return u=e.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
|
|
55
|
+
`).concat(d?`
|
|
56
|
+
`.concat(d.message,`
|
|
57
|
+
`).concat(d.stack):""))||this,u.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,r),u}return r}(Error),XE=function(e){zt(r,e);function r(i,s){return e.call(this,Er.UNSUPPORTED_FORMATTER,i,s)||this}return r}(to),QE=function(e){zt(r,e);function r(i,s){return e.call(this,Er.INVALID_CONFIG,i,s)||this}return r}(to),Hp=function(e){zt(r,e);function r(i,s){return e.call(this,Er.MISSING_DATA,i,s)||this}return r}(to),Ut=function(e){zt(r,e);function r(i,s,l){var u=e.call(this,Er.FORMAT_ERROR,"".concat(i,`
|
|
58
|
+
Locale: `).concat(s,`
|
|
59
|
+
`),l)||this;return u.locale=s,u}return r}(to),_u=function(e){zt(r,e);function r(i,s,l,u){var d=e.call(this,"".concat(i,`
|
|
60
|
+
MessageID: `).concat(l==null?void 0:l.id,`
|
|
61
|
+
Default Message: `).concat(l==null?void 0:l.defaultMessage,`
|
|
62
|
+
Description: `).concat(l==null?void 0:l.description,`
|
|
63
|
+
`),s,u)||this;return d.descriptor=l,d.locale=s,d}return r}(Ut),KE=function(e){zt(r,e);function r(i,s){var l=e.call(this,Er.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(u){var d;return(d=u.value)!==null&&d!==void 0?d:JSON.stringify(u)}).join(),")"):"id"," as fallback."))||this;return l.descriptor=i,l}return r}(to);function YE(e,r,i){if(i===void 0&&(i=Error),!e)throw new i(r)}function ei(e,r,i){return i===void 0&&(i={}),r.reduce(function(s,l){return l in e?s[l]=e[l]:l in i&&(s[l]=i[l]),s},{})}var ZE=function(e){},JE=function(e){},my={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ZE,onWarn:JE};function gy(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function hr(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,i){e[r]=i}}}}}function eS(e){e===void 0&&(e=gy());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,l=an(function(){for(var h,p=[],_=0;_<arguments.length;_++)p[_]=arguments[_];return new((h=Intl.DateTimeFormat).bind.apply(h,un([void 0],p,!1)))},{cache:hr(e.dateTime),strategy:ln.variadic}),u=an(function(){for(var h,p=[],_=0;_<arguments.length;_++)p[_]=arguments[_];return new((h=Intl.NumberFormat).bind.apply(h,un([void 0],p,!1)))},{cache:hr(e.number),strategy:ln.variadic}),d=an(function(){for(var h,p=[],_=0;_<arguments.length;_++)p[_]=arguments[_];return new((h=Intl.PluralRules).bind.apply(h,un([void 0],p,!1)))},{cache:hr(e.pluralRules),strategy:ln.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:an(function(h,p,_,y){return new py(h,p,_,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:d}},y||{}))},{cache:hr(e.message),strategy:ln.variadic}),getRelativeTimeFormat:an(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(r.bind.apply(r,un([void 0],h,!1)))},{cache:hr(e.relativeTime),strategy:ln.variadic}),getPluralRules:d,getListFormat:an(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(i.bind.apply(i,un([void 0],h,!1)))},{cache:hr(e.list),strategy:ln.variadic}),getDisplayNames:an(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,un([void 0],h,!1)))},{cache:hr(e.displayNames),strategy:ln.variadic})}}function Gc(e,r,i,s){var l=e&&e[r],u;if(l&&(u=l[i]),u)return u;s(new XE("No ".concat(r," format named: ").concat(i)))}function gs(e,r){return Object.keys(e).reduce(function(i,s){return i[s]=J({timeZone:r},e[s]),i},{})}function Gp(e,r){var i=Object.keys(J(J({},e),r));return i.reduce(function(s,l){return s[l]=J(J({},e[l]||{}),r[l]||{}),s},{})}function $p(e,r){if(!r)return e;var i=py.formats;return J(J(J({},i),e),{date:Gp(gs(i.date,r),gs(e.date||{},r)),time:Gp(gs(i.time,r),gs(e.time||{},r))})}var yc=function(e,r,i,s,l){var u=e.locale,d=e.formats,h=e.messages,p=e.defaultLocale,_=e.defaultFormats,y=e.fallbackOnEmptyString,b=e.onError,m=e.timeZone,E=e.defaultRichTextElements;i===void 0&&(i={id:""});var v=i.id,w=i.defaultMessage;YE(!!v,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var C=String(v),O=h&&Object.prototype.hasOwnProperty.call(h,C)&&h[C];if(Array.isArray(O)&&O.length===1&&O[0].type===Me.literal)return O[0].value;if(!s&&O&&typeof O=="string"&&!E)return O.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=J(J({},E),s||{}),d=$p(d,m),_=$p(_,m),!O){if(y===!1&&O==="")return O;if((!w||u&&u.toLowerCase()!==p.toLowerCase())&&b(new KE(i,u)),w)try{var N=r.getMessageFormat(w,p,_,l);return N.format(s)}catch(S){return b(new _u('Error formatting default message for: "'.concat(C,'", rendering default message verbatim'),u,i,S)),typeof w=="string"?w:C}return C}try{var N=r.getMessageFormat(O,u,d,J({formatters:r},l||{}));return N.format(s)}catch(S){b(new _u('Error formatting message: "'.concat(C,'", using ').concat(w?"default message":"id"," as fallback."),u,i,S))}if(w)try{var N=r.getMessageFormat(w,p,_,l);return N.format(s)}catch(S){b(new _u('Error formatting the default message for: "'.concat(C,'", rendering message verbatim'),u,i,S))}return typeof O=="string"?O:typeof w=="string"?w:C},tS=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function no(e,r,i,s){var l=e.locale,u=e.formats,d=e.onError,h=e.timeZone;s===void 0&&(s={});var p=s.format,_=J(J({},h&&{timeZone:h}),p&&Gc(u,r,p,d)),y=ei(s,tS,_);return r==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=J(J({},y),{hour:"numeric",minute:"numeric"})),i(l,y)}function nS(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return no(e,"date",r,d).format(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return String(h)}function rS(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return no(e,"time",r,d).format(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return String(h)}function iS(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=i[2],h=d===void 0?{}:d,p=typeof l=="string"?new Date(l||0):l,_=typeof u=="string"?new Date(u||0):u;try{return no(e,"dateTimeRange",r,h).formatRange(p,_)}catch(y){e.onError(new Ut("Error formatting date time range.",e.locale,y))}return String(p)}function oS(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return no(e,"date",r,d).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return[]}function sS(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return no(e,"time",r,d).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return[]}var aS=["style","type","fallback","languageDisplay"];function lS(e,r,i,s){var l=e.locale,u=e.onError,d=Intl.DisplayNames;d||u(new Jn(`Intl.DisplayNames is not available in this environment.
|
|
64
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
65
|
+
`,fn.MISSING_INTL_API));var h=ei(s,aS);try{return r(l,h).of(i)}catch(p){u(new Ut("Error formatting display name.",l,p))}}var uS=["type","style"],qp=Date.now();function cS(e){return"".concat(qp,"_").concat(e,"_").concat(qp)}function fS(e,r,i,s){s===void 0&&(s={});var l=yy(e,r,i,s).reduce(function(u,d){var h=d.value;return typeof h!="string"?u.push(h):typeof u[u.length-1]=="string"?u[u.length-1]+=h:u.push(h),u},[]);return l.length===1?l[0]:l.length===0?"":l}function yy(e,r,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||u(new Jn(`Intl.ListFormat is not available in this environment.
|
|
66
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
67
|
+
`,fn.MISSING_INTL_API));var h=ei(s,uS);try{var p={},_=i.map(function(y,b){if(typeof y=="object"){var m=cS(b);return p[m]=y,m}return String(y)});return r(l,h).formatToParts(_).map(function(y){return y.type==="literal"?y:J(J({},y),{value:p[y.value]||y.value})})}catch(y){u(new Ut("Error formatting list.",l,y))}return i}var dS=["type"];function hS(e,r,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={}),Intl.PluralRules||u(new Jn(`Intl.PluralRules is not available in this environment.
|
|
68
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
69
|
+
`,fn.MISSING_INTL_API));var d=ei(s,dS);try{return r(l,d).select(i)}catch(h){u(new Ut("Error formatting plural.",l,h))}return"other"}var pS=["numeric","style"];function mS(e,r,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Gc(l,"relative",d,u)||{},p=ei(i,pS,h);return r(s,p)}function gS(e,r,i,s,l){l===void 0&&(l={}),s||(s="second");var u=Intl.RelativeTimeFormat;u||e.onError(new Jn(`Intl.RelativeTimeFormat is not available in this environment.
|
|
70
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
71
|
+
`,fn.MISSING_INTL_API));try{return mS(e,r,l).format(i,s)}catch(d){e.onError(new Ut("Error formatting relative time.",e.locale,d))}return String(i)}var yS=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function vy(e,r,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=d&&Gc(l,"number",d,u)||{},p=ei(i,yS,h);return r(s,p)}function vS(e,r,i,s){s===void 0&&(s={});try{return vy(e,r,s).format(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return String(i)}function _S(e,r,i,s){s===void 0&&(s={});try{return vy(e,r,s).formatToParts(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return[]}function ES(e){var r=e?e[Object.keys(e)[0]]:void 0;return typeof r=="string"}function SS(e){e.onWarn&&e.defaultRichTextElements&&ES(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
72
|
+
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
73
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function bS(e,r){var i=eS(r),s=J(J({},my),e),l=s.locale,u=s.defaultLocale,d=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&d?d(new Hp('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&d&&d(new Hp('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new QE('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),SS(s),J(J({},s),{formatters:i,formatNumber:vS.bind(null,s,i.getNumberFormat),formatNumberToParts:_S.bind(null,s,i.getNumberFormat),formatRelativeTime:gS.bind(null,s,i.getRelativeTimeFormat),formatDate:nS.bind(null,s,i.getDateTimeFormat),formatDateToParts:oS.bind(null,s,i.getDateTimeFormat),formatTime:rS.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:iS.bind(null,s,i.getDateTimeFormat),formatTimeToParts:sS.bind(null,s,i.getDateTimeFormat),formatPlural:hS.bind(null,s,i.getPluralRules),formatMessage:yc.bind(null,s,i),$t:yc.bind(null,s,i),formatList:fS.bind(null,s,i.getListFormat),formatListToParts:yy.bind(null,s,i.getListFormat),formatDisplayName:lS.bind(null,s,i.getDisplayNames)})}function wS(e,r,i){if(i===void 0&&(i=Error),!e)throw new i(r)}function _y(e){wS(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Ey=J(J({},my),{textComponent:B.Fragment});function xS(e){return function(r){return e(B.Children.toArray(r))}}function TS(e,r){if(e===r)return!0;if(!e||!r)return!1;var i=Object.keys(e),s=Object.keys(r),l=i.length;if(s.length!==l)return!1;for(var u=0;u<l;u++){var d=i[u];if(e[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var Eu={exports:{}},Ce={};/** @license React v16.13.1
|
|
74
|
+
* react-is.production.min.js
|
|
75
|
+
*
|
|
76
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the MIT license found in the
|
|
79
|
+
* LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/var Vp;function CS(){if(Vp)return Ce;Vp=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,_=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var L=x.$$typeof;switch(L){case r:switch(x=x.type,x){case p:case _:case s:case u:case l:case b:return x;default:switch(x=x&&x.$$typeof,x){case h:case y:case v:case E:case d:return x;default:return L}}case i:return L}}}function k(x){return S(x)===_}return Ce.AsyncMode=p,Ce.ConcurrentMode=_,Ce.ContextConsumer=h,Ce.ContextProvider=d,Ce.Element=r,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=v,Ce.Memo=E,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=b,Ce.isAsyncMode=function(x){return k(x)||S(x)===p},Ce.isConcurrentMode=k,Ce.isContextConsumer=function(x){return S(x)===h},Ce.isContextProvider=function(x){return S(x)===d},Ce.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},Ce.isForwardRef=function(x){return S(x)===y},Ce.isFragment=function(x){return S(x)===s},Ce.isLazy=function(x){return S(x)===v},Ce.isMemo=function(x){return S(x)===E},Ce.isPortal=function(x){return S(x)===i},Ce.isProfiler=function(x){return S(x)===u},Ce.isStrictMode=function(x){return S(x)===l},Ce.isSuspense=function(x){return S(x)===b},Ce.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===s||x===_||x===u||x===l||x===b||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===E||x.$$typeof===d||x.$$typeof===h||x.$$typeof===y||x.$$typeof===C||x.$$typeof===O||x.$$typeof===N||x.$$typeof===w)},Ce.typeOf=S,Ce}var Wp;function kS(){return Wp||(Wp=1,Eu.exports=CS()),Eu.exports}var Su,Xp;function RS(){if(Xp)return Su;Xp=1;var e=kS(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=s,u[e.Memo]=l;function d(v){return e.isMemo(v)?l:u[v.$$typeof]||r}var h=Object.defineProperty,p=Object.getOwnPropertyNames,_=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,m=Object.prototype;function E(v,w,C){if(typeof w!="string"){if(m){var O=b(w);O&&O!==m&&E(v,O,C)}var N=p(w);_&&(N=N.concat(_(w)));for(var S=d(v),k=d(w),x=0;x<N.length;++x){var L=N[x];if(!i[L]&&!(C&&C[L])&&!(k&&k[L])&&!(S&&S[L])){var G=y(w,L);try{h(v,L,G)}catch{}}}}return v}return Su=E,Su}RS();var $c=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);$c.Consumer;var OS=$c.Provider,NS=OS,AS=$c;function ra(){var e=B.useContext(AS);return _y(e),e}var vc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(vc||(vc={}));var _c;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(_c||(_c={}));function Sy(e){var r=function(i){var s=ra(),l=i.value,u=i.children,d=na(i,["value","children"]),h=typeof l=="string"?new Date(l||0):l,p=e==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return u(p)};return r.displayName=_c[e],r}function ro(e){var r=function(i){var s=ra(),l=i.value,u=i.children,d=na(i,["value","children"]),h=s[e](l,d);if(typeof u=="function")return u(h);var p=s.textComponent||B.Fragment;return B.createElement(p,null,h)};return r.displayName=vc[e],r}function by(e){return e&&Object.keys(e).reduce(function(r,i){var s=e[i];return r[i]=hy(s)?xS(s):s,r},{})}var Qp=function(e,r,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var d=by(s),h=yc.apply(void 0,un([e,r,i,d],l,!1));return Array.isArray(h)?B.Children.toArray(h):h},Kp=function(e,r){var i=e.defaultRichTextElements,s=na(e,["defaultRichTextElements"]),l=by(i),u=bS(J(J(J({},Ey),s),{defaultRichTextElements:l}),r),d={locale:u.locale,timeZone:u.timeZone,fallbackOnEmptyString:u.fallbackOnEmptyString,formats:u.formats,defaultLocale:u.defaultLocale,defaultFormats:u.defaultFormats,messages:u.messages,onError:u.onError,defaultRichTextElements:l};return J(J({},u),{formatMessage:Qp.bind(null,d,u.formatters),$t:Qp.bind(null,d,u.formatters)})};function bu(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var PS=function(e){zt(r,e);function r(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=gy(),i.state={cache:i.cache,intl:Kp(bu(i.props),i.cache),prevConfig:bu(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,d=bu(i);return TS(l,d)?null:{intl:Kp(d,u),prevConfig:d}},r.prototype.render=function(){return _y(this.state.intl),B.createElement(NS,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Ey,r}(B.PureComponent);ro("formatDate");ro("formatTime");ro("formatNumber");ro("formatList");ro("formatDisplayName");Sy("formatDate");Sy("formatTime");const IS="_app_wkun7_5",DS={app:IS},wy=()=>MS(window.location.pathname),MS=e=>{const r=e.split("/"),i=e.endsWith("/");return r[r.length-(i?2:1)]},qc=tE,_r=iE;var wu={exports:{}};/*!
|
|
81
|
+
Copyright (c) 2018 Jed Watson.
|
|
82
|
+
Licensed under the MIT License (MIT), see
|
|
83
|
+
http://jedwatson.github.io/classnames
|
|
84
|
+
*/var Yp;function FS(){return Yp||(Yp=1,function(e){(function(){var r={}.hasOwnProperty;function i(){for(var u="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(u=l(u,s(h)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return i.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var d="";for(var h in u)r.call(u,h)&&u[h]&&(d=l(d,h));return d}function l(u,d){return d?u?u+" "+d:u+d:u}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(wu)),wu.exports}var LS=FS();const V=ta(LS),xy="%[a-f0-9]{2}",Zp=new RegExp("("+xy+")|([^%]+?)","gi"),Jp=new RegExp("("+xy+")+","gi");function Ec(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;const i=e.slice(0,r),s=e.slice(r);return Array.prototype.concat.call([],Ec(i),Ec(s))}function BS(e){try{return decodeURIComponent(e)}catch{let r=e.match(Zp)||[];for(let i=1;i<r.length;i++)e=Ec(r,i).join(""),r=e.match(Zp)||[];return e}}function jS(e){const r={"%FE%FF":"��","%FF%FE":"��"};let i=Jp.exec(e);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const l=BS(i[0]);l!==i[0]&&(r[i[0]]=l)}i=Jp.exec(e)}r["%C2"]="�";const s=Object.keys(r);for(const l of s)e=e.replace(new RegExp(l,"g"),r[l]);return e}function zS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return jS(e)}}function US(e,r){const i={};if(Array.isArray(r))for(const s of r){const l=Object.getOwnPropertyDescriptor(e,s);l!=null&&l.enumerable&&Object.defineProperty(i,s,l)}else for(const s of Reflect.ownKeys(e)){const l=Object.getOwnPropertyDescriptor(e,s);if(l.enumerable){const u=e[s];r(s,u,e)&&Object.defineProperty(i,s,l)}}return i}function Ty(e,r){if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||r==="")return[];const i=e.indexOf(r);return i===-1?[]:[e.slice(0,i),e.slice(i+r.length)]}const HS=e=>e==null,GS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Sc=Symbol("encodeFragmentIdentifier");function $S(e){switch(e.arrayFormat){case"index":return r=>(i,s)=>{const l=i.length;return s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(r,e),"[",l,"]"].join("")]:[...i,[Ve(r,e),"[",Ve(l,e),"]=",Ve(s,e)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(r,e),"[]"].join("")]:[...i,[Ve(r,e),"[]=",Ve(s,e)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(r,e),":list="].join("")]:[...i,[Ve(r,e),":list=",Ve(s,e)].join("")];case"comma":case"separator":case"bracket-separator":{const r=e.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?s:(l=l===null?"":l,s.length===0?[[Ve(i,e),r,Ve(l,e)].join("")]:[[s,Ve(l,e)].join(e.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,Ve(r,e)]:[...i,[Ve(r,e),"=",Ve(s,e)].join("")]}}function qS(e){let r;switch(e.arrayFormat){case"index":return(i,s,l)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){l[i]=s;return}l[i]===void 0&&(l[i]={}),l[i][r[1]]=s};case"bracket":return(i,s,l)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"colon-list-separator":return(i,s,l)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"comma":case"separator":return(i,s,l)=>{const u=typeof s=="string"&&s.includes(e.arrayFormatSeparator),d=typeof s=="string"&&!u&&wn(s,e).includes(e.arrayFormatSeparator);s=d?wn(s,e):s;const h=u||d?s.split(e.arrayFormatSeparator).map(p=>wn(p,e)):s===null?s:wn(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&wn(s,e);return}const d=s===null?[]:wn(s,e).split(e.arrayFormatSeparator);if(l[i]===void 0){l[i]=d;return}l[i]=[...l[i],...d]};default:return(i,s,l)=>{if(l[i]===void 0){l[i]=s;return}l[i]=[...[l[i]].flat(),s]}}}function Cy(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ve(e,r){return r.encode?r.strict?GS(e):encodeURIComponent(e):e}function wn(e,r){return r.decode?zS(e):e}function ky(e){return Array.isArray(e)?e.sort():typeof e=="object"?ky(Object.keys(e)).sort((r,i)=>Number(r)-Number(i)).map(r=>e[r]):e}function Ry(e){const r=e.indexOf("#");return r!==-1&&(e=e.slice(0,r)),e}function VS(e){let r="";const i=e.indexOf("#");return i!==-1&&(r=e.slice(i)),r}function em(e,r,i){return i==="string"&&typeof e=="string"?e:typeof i=="function"&&typeof e=="string"?i(e):r.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":i==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||r.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function Vc(e){e=Ry(e);const r=e.indexOf("?");return r===-1?"":e.slice(r+1)}function Wc(e,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},Cy(r.arrayFormatSeparator);const i=qS(r),s=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return s;for(const l of e.split("&")){if(l==="")continue;const u=r.decode?l.replaceAll("+"," "):l;let[d,h]=Ty(u,"=");d===void 0&&(d=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:wn(h,r),i(wn(d,r),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&r.types[l]!=="string")for(const[d,h]of Object.entries(u)){const p=r.types[l]?r.types[l].replace("[]",""):void 0;u[d]=em(h,r,p)}else typeof u=="object"&&u!==null&&r.types[l]==="string"?s[l]=Object.values(u).join(r.arrayFormatSeparator):s[l]=em(u,r,r.types[l]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((l,u)=>{const d=s[u];return l[u]=d&&typeof d=="object"&&!Array.isArray(d)?ky(d):d,l},Object.create(null))}function Oy(e,r){if(!e)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},Cy(r.arrayFormatSeparator);const i=d=>r.skipNull&&HS(e[d])||r.skipEmptyString&&e[d]==="",s=$S(r),l={};for(const[d,h]of Object.entries(e))i(d)||(l[d]=h);const u=Object.keys(l);return r.sort!==!1&&u.sort(r.sort),u.map(d=>{const h=e[d];return h===void 0?"":h===null?Ve(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?Ve(d,r)+"[]":h.reduce(s(d),[]).join("&"):Ve(d,r)+"="+Ve(h,r)}).filter(d=>d.length>0).join("&")}function Ny(e,r){var l;r={decode:!0,...r};let[i,s]=Ty(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:Wc(Vc(e),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:wn(s,r)}:{}}}function Ay(e,r){r={encode:!0,strict:!0,[Sc]:!0,...r};const i=Ry(e.url).split("?")[0]||"",s=Vc(e.url),l={...Wc(s,{sort:!1}),...e.query};let u=Oy(l,r);u&&(u=`?${u}`);let d=VS(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,d=r[Sc]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${d}`}function Py(e,r,i){i={parseFragmentIdentifier:!0,[Sc]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=Ny(e,i);return Ay({url:s,query:US(l,r),fragmentIdentifier:u},i)}function WS(e,r,i){const s=Array.isArray(r)?l=>!r.includes(l):(l,u)=>!r(l,u);return Py(e,s,i)}const Xc=Object.freeze(Object.defineProperty({__proto__:null,exclude:WS,extract:Vc,parse:Wc,parseUrl:Ny,pick:Py,stringify:Oy,stringifyUrl:Ay},Symbol.toStringTag,{value:"Module"}));var Qt={},Ct={},le={},tm;function At(){return tm||(tm=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 xu={},nm;function XS(){return nm||(nm=1,Object.defineProperty(xu,"__esModule",{value:!0})),xu}var ys={},rm;function QS(){if(rm)return ys;rm=1,Object.defineProperty(ys,"__esModule",{value:!0});const e=At(),r=()=>({type:e.DRAWER_CLOSE});return ys.default=r,ys}var vs={},im;function KS(){if(im)return vs;im=1,Object.defineProperty(vs,"__esModule",{value:!0});const e=At(),r=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return vs.default=r,vs}var _s={},om;function YS(){if(om)return _s;om=1,Object.defineProperty(_s,"__esModule",{value:!0});const e=At(),r=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return _s.default=r,_s}var Es={},sm;function ZS(){if(sm)return Es;sm=1,Object.defineProperty(Es,"__esModule",{value:!0});const e=At(),r=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return Es.default=r,Es}var Ss={},am;function JS(){if(am)return Ss;am=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=At(),r=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ss.default=r,Ss}var bs={},lm;function eb(){if(lm)return bs;lm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),r=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return bs.default=r,bs}var ws={},je={},um;function Qc(){if(um)return je;um=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getStringRepresentationFromMessage=je.MessageTypeEnum=je.AudioMessage=je.FileMessage=je.ImageMessage=je.VideoMessage=je.MarkdownMessage=je.DetailMessage=je.TextMessage=je.Message=void 0;class e{constructor(b,m){we(this,"type");we(this,"sender");we(this,"quickReplies");this.type=b,this.sender=m,this.quickReplies=[]}addQuickReply(b,m){this.quickReplies.push({label:b,payload:m})}}je.Message=e;class r extends e{constructor(m,E){super(p.TEXT,E);we(this,"text");this.text=m}}je.TextMessage=r;class i extends e{constructor(m,E){super(p.DETAIL,E);we(this,"title");we(this,"subtitle");we(this,"text");we(this,"imageUrl");we(this,"itemUrl");we(this,"buttons");this.title=m,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(m){this.imageUrl=m}setItemUrl(m){this.itemUrl=m}setSubtitle(m){this.subtitle=m}setText(m){this.text=m}addButton(m){this.buttons.push(m)}}je.DetailMessage=i;class s extends e{constructor(m,E,v){super(p.MARKDOWN,v);we(this,"markdown");we(this,"excerpt");we(this,"className");this.markdown=m,this.excerpt=E,this.className=""}setClassName(m){this.className=m}}je.MarkdownMessage=s;class l extends e{constructor(m,E){super(p.VIDEO,E);we(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,E){super(p.IMAGE,E);we(this,"url");this.url=m}}je.ImageMessage=u;class d extends e{constructor(m,E){super(p.FILE,E);we(this,"url");this.url=m}}je.FileMessage=d;class h extends e{constructor(m,E){super(p.AUDIO,E);we(this,"url");this.url=m}}je.AudioMessage=h;var p;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(p||(je.MessageTypeEnum=p={}));const _=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:{const b=y;return`${b.title} // ${b.subtitle}`}case p.MARKDOWN:return y.excerpt;case p.VIDEO:return`Video Url: ${y.url}`;case p.IMAGE:return`Image Url: ${y.url}`;case p.FILE:return`File Url: ${y.url}`;case p.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return je.getStringRepresentationFromMessage=_,je}var kt={},cm;function Kc(){if(cm)return kt;cm=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(d,h,p,_){we(this,"type");we(this,"id");we(this,"name");we(this,"avatar");this.type=d,this.id=h,this.name=p,this.avatar=_}}kt.User=e;class r extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=r;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=i;class s extends e{constructor(d,h,p){super(l.PERSON,d,h,p)}}kt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(kt.UserType=l={})),kt}var fm;function tb(){if(fm)return ws;fm=1,Object.defineProperty(ws,"__esModule",{value:!0});const e=Qc(),r=Kc(),i=At(),s=l=>{const u=new e.TextMessage(l,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return ws.default=s,ws}var xs={},dm;function nb(){if(dm)return xs;dm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=Qc(),r=Kc(),i=At(),s=(l,u={})=>{const d=new e.TextMessage(l,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:u}};return xs.default=s,xs}var Ts={},hm;function rb(){if(hm)return Ts;hm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),r=i=>({type:e.NLU_REQUEST_EVENT,event:i});return Ts.default=r,Ts}var Cs={},pm;function ib(){if(pm)return Cs;pm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),r=()=>({type:e.RESTART_CHAT_REQUEST});return Cs.default=r,Cs}var ks={},mm;function ob(){if(mm)return ks;mm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=At(),r=i=>({type:e.MESSAGE_TO_GUEST,message:i});return ks.default=r,ks}var Rs={},gm;function sb(){if(gm)return Rs;gm=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=At(),r=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Rs.default=r,Rs}var ym;function vm(){return ym||(ym=1,function(e){var r=Ct&&Ct.__createBinding||(Object.create?function(N,S,k,x){x===void 0&&(x=k);var L=Object.getOwnPropertyDescriptor(S,k);(!L||("get"in L?!S.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return S[k]}}),Object.defineProperty(N,x,L)}:function(N,S,k,x){x===void 0&&(x=k),N[x]=S[k]}),i=Ct&&Ct.__setModuleDefault||(Object.create?function(N,S){Object.defineProperty(N,"default",{enumerable:!0,value:S})}:function(N,S){N.default=S}),s=Ct&&Ct.__importStar||function(){var N=function(S){return N=Object.getOwnPropertyNames||function(k){var x=[];for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(x[x.length]=L);return x},N(S)};return function(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var x=N(S),L=0;L<x.length;L++)x[L]!=="default"&&r(k,S,x[L]);return i(k,S),k}}(),l=Ct&&Ct.__exportStar||function(N,S){for(var k in N)k!=="default"&&!Object.prototype.hasOwnProperty.call(S,k)&&r(S,N,k)},u=Ct&&Ct.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(e,"__esModule",{value:!0}),e.transcriptItemGuestReaction=e.sendMessageToGuest=e.restartChatRequest=e.requestNLUEvent=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.openDrawer=e.guestLocaleChanged=e.guestDisconnected=e.guestConnected=e.feedbackFromGuestResponse=e.closeDrawer=e.ActionTypes=void 0,e.ActionTypes=s(At()),l(XS(),e);const d=u(QS());e.closeDrawer=d.default;const h=u(KS());e.feedbackFromGuestResponse=h.default;const p=u(YS());e.guestConnected=p.default;const _=u(ZS());e.guestDisconnected=_.default;const y=u(JS());e.guestLocaleChanged=y.default;const b=u(eb());e.openDrawer=b.default;const m=u(tb());e.receiveTextMessageFromGuest=m.default;const E=u(nb());e.receiveTextMessageWithoutAnalysisFromGuest=E.default;const v=u(rb());e.requestNLUEvent=v.default;const w=u(ib());e.restartChatRequest=w.default;const C=u(ob());e.sendMessageToGuest=C.default;const O=u(sb());e.transcriptItemGuestReaction=O.default}(Ct)),Ct}var Rt={},Tu={},_m;function ab(){return _m||(_m=1,Object.defineProperty(Tu,"__esModule",{value:!0})),Tu}var Gi={},Em;function lb(){if(Em)return Gi;Em=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.NullableKnowledgeBaseAdapter=void 0;class e{async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}}return Gi.NullableKnowledgeBaseAdapter=e,Gi}var Sm;function ub(){if(Sm)return Rt;Sm=1;var e=Rt&&Rt.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,p)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),r=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(d){var h=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(d,u,h[p]);return r(d,u),d}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=i(ab());const s=lb();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pr={},Cu={},bm;function cb(){return bm||(bm=1,Object.defineProperty(Cu,"__esModule",{value:!0})),Cu}var Kt={},wm;function fb(){if(wm)return Kt;wm=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.ButtonTypeEnum=Kt.PostbackButton=Kt.UrlButton=Kt.Button=void 0;class e{constructor(u,d){we(this,"title");we(this,"type");this.title=u,this.type=d}}Kt.Button=e;class r extends e{constructor(d,h){super(d,s.WEB_URL);we(this,"url");this.url=h}}Kt.UrlButton=r;class i extends e{constructor(d,h){super(d,s.POSTBACK);we(this,"payload");this.payload=h}}Kt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Kt.ButtonTypeEnum=s={})),Kt}var ku={},xm;function db(){return xm||(xm=1,Object.defineProperty(ku,"__esModule",{value:!0})),ku}var $i={},Tm;function hb(){if(Tm)return $i;Tm=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.SatisfactionEnum=void 0;var e;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(e||($i.SatisfactionEnum=e={})),$i}var Cm;function km(){return Cm||(Cm=1,function(e){var r=pr&&pr.__createBinding||(Object.create?function(s,l,u,d){d===void 0&&(d=u);var h=Object.getOwnPropertyDescriptor(l,u);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,d,h)}:function(s,l,u,d){d===void 0&&(d=u),s[d]=l[u]}),i=pr&&pr.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&r(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),i(cb(),e),i(fb(),e),i(db(),e),i(hb(),e),i(Qc(),e),i(Kc(),e)}(pr)),pr}var Rm;function pb(){return Rm||(Rm=1,function(e){var r=Qt&&Qt.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var _=Object.getOwnPropertyDescriptor(d,h);(!_||("get"in _?!d.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,_)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),i=Qt&&Qt.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),s=Qt&&Qt.__exportStar||function(u,d){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,u,h)},l=Qt&&Qt.__importStar||function(){var u=function(d){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(p[p.length]=_);return p},u(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p=u(d),_=0;_<p.length;_++)p[_]!=="default"&&r(h,d,p[_]);return i(h,d),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(vm(),e),e.Actions=l(vm()),e.CMS=l(ub()),s(km(),e),e.Model=l(km())}(Qt)),Qt}var ge=pb();const Iy=e=>r=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&r(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),r(e.payload)),Dy=e=>(r,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return r(l?Iy({...l,label:e}):ge.receiveTextMessageFromGuest(e))},ia="MESSAGE_TO_PARENT_PAGE",Yc="RESTORE_PREVIOUS_CHAT_MESSAGES",Zc="AUDIO_MESSAGE_FROM_USER",Jc="ENABLE_SPEECH_SUPPORT",ef="ENABLE_TRANSCRIPT_EXPORT",mb="EXPORT_TRANSCRIPT",tf="RECEIVE_SPEECH_TRANSCRIPTION",nf="SHOW_GENERAL_CONDITIONS",rf="ENABLE_CONVERSATION_RATING",of="SET_COMMANDS",gb="webclient.get.started",My="webclient.expand.window",Fy="webclient.transcript.pdf.download",yb=[ia,Yc,Zc,Jc,ef,mb,tf,nf,rf,of],vb=e=>({type:Zc,buffer:e}),_b=()=>({type:Jc}),Eb=e=>({type:tf,transcription:e}),Sb=e=>({type:ef,methods:e}),bb=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),wb=()=>({type:nf}),xb=e=>({type:of,payload:{commands:e}}),Tb=()=>({type:Fy}),Cb=({rating:e})=>({type:rf,payload:{rating:e}}),kb=(e,r)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:r}}),Ly=e=>ge.requestNLUEvent(e),Rb=e=>({type:Yc,messages:e}),Ob=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return By(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},Nb=e=>By(e),By=e=>({type:ia,message:{type:"webclient.change.url",url:e}}),Ab=e=>({type:ia,message:{type:"webclient.change.translations",payload:{translations:e}}});/*! js-cookie v3.0.5 | MIT */function Os(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)e[s]=i[s]}return e}var Pb={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function bc(e,r){function i(l,u,d){if(!(typeof document>"u")){d=Os({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in d)d[p]&&(h+="; "+p,d[p]!==!0&&(h+="="+d[p].split(";")[0]));return document.cookie=l+"="+e.write(u,l)+h}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],d={},h=0;h<u.length;h++){var p=u[h].split("="),_=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(d[y]=e.read(_,y),l===y)break}catch{}}return l?d[l]:d}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Os({},u,{expires:-1}))},withAttributes:function(l){return bc(this.converter,Os({},this.attributes,l))},withConverter:function(l){return bc(Os({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}var Ru=bc(Pb,{path:"/"});function rt(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 Ib=typeof Symbol=="function"&&Symbol.observable||"@@observable",Om=Ib,Ou=()=>Math.random().toString(36).substring(7).split("").join("."),Db={INIT:`@@redux/INIT${Ou()}`,REPLACE:`@@redux/REPLACE${Ou()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ou()}`},Xs=Db;function sf(e){if(typeof e!="object"||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r||Object.getPrototypeOf(e)===null}function jy(e,r,i){if(typeof e!="function")throw new Error(rt(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(rt(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(rt(1));return i(jy)(e,r)}let s=e,l=r,u=new Map,d=u,h=0,p=!1;function _(){d===u&&(d=new Map,u.forEach((C,O)=>{d.set(O,C)}))}function y(){if(p)throw new Error(rt(3));return l}function b(C){if(typeof C!="function")throw new Error(rt(4));if(p)throw new Error(rt(5));let O=!0;_();const N=h++;return d.set(N,C),function(){if(O){if(p)throw new Error(rt(6));O=!1,_(),d.delete(N),u=null}}}function m(C){if(!sf(C))throw new Error(rt(7));if(typeof C.type>"u")throw new Error(rt(8));if(typeof C.type!="string")throw new Error(rt(17));if(p)throw new Error(rt(9));try{p=!0,l=s(l,C)}finally{p=!1}return(u=d).forEach(N=>{N()}),C}function E(C){if(typeof C!="function")throw new Error(rt(10));s=C,m({type:Xs.REPLACE})}function v(){const C=b;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(rt(11));function N(){const k=O;k.next&&k.next(y())}return N(),{unsubscribe:C(N)}},[Om](){return this}}}return m({type:Xs.INIT}),{dispatch:m,subscribe:b,getState:y,replaceReducer:E,[Om]:v}}function Mb(e){Object.keys(e).forEach(r=>{const i=e[r];if(typeof i(void 0,{type:Xs.INIT})>"u")throw new Error(rt(12));if(typeof i(void 0,{type:Xs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rt(13))})}function zy(e){const r=Object.keys(e),i={};for(let u=0;u<r.length;u++){const d=r[u];typeof e[d]=="function"&&(i[d]=e[d])}const s=Object.keys(i);let l;try{Mb(i)}catch(u){l=u}return function(d={},h){if(l)throw l;let p=!1;const _={};for(let y=0;y<s.length;y++){const b=s[y],m=i[b],E=d[b],v=m(E,h);if(typeof v>"u")throw h&&h.type,new Error(rt(14));_[b]=v,p=p||v!==E}return p=p||s.length!==Object.keys(d).length,p?_:d}}function Qs(...e){return e.length===0?r=>r:e.length===1?e[0]:e.reduce((r,i)=>(...s)=>r(i(...s)))}function Fb(...e){return r=>(i,s)=>{const l=r(i,s);let u=()=>{throw new Error(rt(15))};const d={getState:l.getState,dispatch:(p,..._)=>u(p,..._)},h=e.map(p=>p(d));return u=Qs(...h)(l.dispatch),{...l,dispatch:u}}}function Lb(e){return sf(e)&&"type"in e&&typeof e.type=="string"}var Uy=Symbol.for("immer-nothing"),Nm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Jt(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zr=Object.getPrototypeOf;function Sr(e){return!!e&&!!e[Ot]}function Rn(e){var r;return e?Hy(e)||Array.isArray(e)||!!e[Nm]||!!((r=e.constructor)!=null&&r[Nm])||sa(e)||aa(e):!1}var Bb=Object.prototype.constructor.toString();function Hy(e){if(!e||typeof e!="object")return!1;const r=Zr(e);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===Bb}function Zi(e,r){oa(e)===0?Object.entries(e).forEach(([i,s])=>{r(i,s,e)}):e.forEach((i,s)=>r(s,i,e))}function oa(e){const r=e[Ot];return r?r.type_:Array.isArray(e)?1:sa(e)?2:aa(e)?3:0}function wc(e,r){return oa(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Gy(e,r,i){const s=oa(e);s===2?e.set(r,i):s===3?e.add(i):e[r]=i}function jb(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function sa(e){return e instanceof Map}function aa(e){return e instanceof Set}function gr(e){return e.copy_||e.base_}function xc(e,r){if(sa(e))return new Map(e);if(aa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!r&&Hy(e))return Zr(e)?{...e}:Object.assign(Object.create(null),e);const i=Object.getOwnPropertyDescriptors(e);delete i[Ot];let s=Reflect.ownKeys(i);for(let l=0;l<s.length;l++){const u=s[l],d=i[u];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(i[u]={configurable:!0,writable:!0,enumerable:d.enumerable,value:e[u]})}return Object.create(Zr(e),i)}function af(e,r=!1){return la(e)||Sr(e)||!Rn(e)||(oa(e)>1&&(e.set=e.add=e.clear=e.delete=zb),Object.freeze(e),r&&Zi(e,(i,s)=>af(s,!0))),e}function zb(){Jt(2)}function la(e){return Object.isFrozen(e)}var Ub={};function br(e){const r=Ub[e];return r||Jt(0,e),r}var Ji;function $y(){return Ji}function Hb(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Am(e,r){r&&(br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function Tc(e){Cc(e),e.drafts_.forEach(Gb),e.drafts_=null}function Cc(e){e===Ji&&(Ji=e.parent_)}function Pm(e){return Ji=Hb(Ji,e)}function Gb(e){const r=e[Ot];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Im(e,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return e!==void 0&&e!==i?(i[Ot].modified_&&(Tc(r),Jt(4)),Rn(e)&&(e=Ks(r,e),r.parent_||Ys(r,e)),r.patches_&&br("Patches").generateReplacementPatches_(i[Ot].base_,e,r.patches_,r.inversePatches_)):e=Ks(r,i,[]),Tc(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==Uy?e:void 0}function Ks(e,r,i){if(la(r))return r;const s=r[Ot];if(!s)return Zi(r,(l,u)=>Dm(e,s,r,l,u,i)),r;if(s.scope_!==e)return r;if(!s.modified_)return Ys(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let u=l,d=!1;s.type_===3&&(u=new Set(l),l.clear(),d=!0),Zi(u,(h,p)=>Dm(e,s,l,h,p,i,d)),Ys(e,l,!1),i&&e.patches_&&br("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function Dm(e,r,i,s,l,u,d){if(Sr(l)){const h=u&&r&&r.type_!==3&&!wc(r.assigned_,s)?u.concat(s):void 0,p=Ks(e,l,h);if(Gy(i,s,p),Sr(p))e.canAutoFreeze_=!1;else return}else d&&i.add(l);if(Rn(l)&&!la(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ks(e,l),(!r||!r.scope_.parent_)&&Ys(e,l)}}function Ys(e,r,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&af(r,i)}function $b(e,r){const i=Array.isArray(e),s={type_:i?1:0,scope_:r?r.scope_:$y(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=lf;i&&(l=[s],u=eo);const{revoke:d,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=d,h}var lf={get(e,r){if(r===Ot)return e;const i=gr(e);if(!wc(i,r))return qb(e,i,r);const s=i[r];return e.finalized_||!Rn(s)?s:s===Nu(e.base_,r)?(Au(e),e.copy_[r]=Rc(s,e)):s},has(e,r){return r in gr(e)},ownKeys(e){return Reflect.ownKeys(gr(e))},set(e,r,i){const s=qy(gr(e),r);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Nu(gr(e),r),u=l==null?void 0:l[Ot];if(u&&u.base_===i)return e.copy_[r]=i,e.assigned_[r]=!1,!0;if(jb(i,l)&&(i!==void 0||wc(e.base_,r)))return!0;Au(e),kc(e)}return e.copy_[r]===i&&(i!==void 0||r in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=i,e.assigned_[r]=!0),!0},deleteProperty(e,r){return Nu(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,Au(e),kc(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const i=gr(e),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){Jt(11)},getPrototypeOf(e){return Zr(e.base_)},setPrototypeOf(){Jt(12)}},eo={};Zi(lf,(e,r)=>{eo[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});eo.deleteProperty=function(e,r){return eo.set.call(this,e,r,void 0)};eo.set=function(e,r,i){return lf.set.call(this,e[0],r,i,e[0])};function Nu(e,r){const i=e[Ot];return(i?gr(i):e)[r]}function qb(e,r,i){var l;const s=qy(r,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function qy(e,r){if(!(r in e))return;let i=Zr(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=Zr(i)}}function kc(e){e.modified_||(e.modified_=!0,e.parent_&&kc(e.parent_))}function Au(e){e.copy_||(e.copy_=xc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const u=i;i=r;const d=this;return function(p=u,..._){return d.produce(p,y=>i.call(this,y,..._))}}typeof i!="function"&&Jt(6),s!==void 0&&typeof s!="function"&&Jt(7);let l;if(Rn(r)){const u=Pm(this),d=Rc(r,void 0);let h=!0;try{l=i(d),h=!1}finally{h?Tc(u):Cc(u)}return Am(u,s),Im(l,u)}else if(!r||typeof r!="object"){if(l=i(r),l===void 0&&(l=r),l===Uy&&(l=void 0),this.autoFreeze_&&af(l,!0),s){const u=[],d=[];br("Patches").generateReplacementPatches_(r,l,u,d),s(u,d)}return l}else Jt(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(d,...h)=>this.produceWithPatches(d,p=>r(p,...h));let s,l;return[this.produce(r,i,(d,h)=>{s=d,l=h}),s,l]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Rn(e)||Jt(8),Sr(e)&&(e=Wb(e));const r=Pm(this),i=Rc(e,void 0);return i[Ot].isManual_=!0,Cc(r),i}finishDraft(e,r){const i=e&&e[Ot];(!i||!i.isManual_)&&Jt(9);const{scope_:s}=i;return Am(s,r),Im(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,r){let i;for(i=r.length-1;i>=0;i--){const l=r[i];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}i>-1&&(r=r.slice(i+1));const s=br("Patches").applyPatches_;return Sr(e)?s(e,r):this.produce(e,l=>s(l,r))}};function Rc(e,r){const i=sa(e)?br("MapSet").proxyMap_(e,r):aa(e)?br("MapSet").proxySet_(e,r):$b(e,r);return(r?r.scope_:$y()).drafts_.push(i),i}function Wb(e){return Sr(e)||Jt(10,e),Vy(e)}function Vy(e){if(!Rn(e)||la(e))return e;const r=e[Ot];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=xc(e,r.scope_.immer_.useStrictShallowCopy_)}else i=xc(e,!0);return Zi(i,(s,l)=>{Gy(i,s,Vy(l))}),r&&(r.finalized_=!1),i}var Nt=new Vb,Wy=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 Xy(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var Xb=Xy(),Qb=Xy,Kb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qs:Qs.apply(null,arguments)};function Mm(e,r){function i(...s){if(r){let l=r(...s);if(!l)throw new Error(Tn(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:s[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=s=>Lb(s)&&s.type===e,i}var Qy=class Ki extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Ki.prototype)}static get[Symbol.species](){return Ki}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Ki(...r[0].concat(this)):new Ki(...r.concat(this))}};function Fm(e){return Rn(e)?Wy(e,()=>{}):e}function Lm(e,r,i){return e.has(r)?e.get(r):e.set(r,i(r)).get(r)}function Yb(e){return typeof e=="boolean"}var Zb=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=r??{};let d=new Qy;return i&&(Yb(i)?d.push(Xb):d.push(Qb(i.extraArgument))),d},Jb="RTK_autoBatch",Bm=e=>r=>{setTimeout(r,e)},ew=(e={type:"raf"})=>r=>(...i)=>{const s=r(...i);let l=!0,u=!1,d=!1;const h=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Bm(10):e.type==="callback"?e.queueNotification:Bm(e.timeout),_=()=>{d=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const b=()=>l&&y(),m=s.subscribe(b);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var b;try{return l=!((b=y==null?void 0:y.meta)!=null&&b[Jb]),u=!l,u&&(d||(d=!0,p(_))),s.dispatch(y)}finally{l=!0}}})},tw=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new Qy(e);return s&&l.push(ew(typeof s=="object"?s:void 0)),l};function nw(e){const r=Zb(),{reducer:i=void 0,middleware:s,devTools:l=!0,preloadedState:u=void 0,enhancers:d=void 0}=e||{};let h;if(typeof i=="function")h=i;else if(sf(i))h=zy(i);else throw new Error(Tn(1));let p;typeof s=="function"?p=s(r):p=r();let _=Qs;l&&(_=Kb({trace:!1,...typeof l=="object"&&l}));const y=Fb(...p),b=tw(y);let m=typeof d=="function"?d(b):b();const E=_(...m);return jy(h,u,E)}function Ky(e){const r={},i=[];let s;const l={addCase(u,d){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(Tn(28));if(h in r)throw new Error(Tn(29));return r[h]=d,l},addMatcher(u,d){return i.push({matcher:u,reducer:d}),l},addDefaultCase(u){return s=u,l}};return e(l),[r,i,s]}function rw(e){return typeof e=="function"}function iw(e,r){let[i,s,l]=Ky(r),u;if(rw(e))u=()=>Fm(e());else{const h=Fm(e);u=()=>h}function d(h=u(),p){let _=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return _.filter(y=>!!y).length===0&&(_=[l]),_.reduce((y,b)=>{if(b)if(Sr(y)){const E=b(y,p);return E===void 0?y:E}else{if(Rn(y))return Wy(y,m=>b(m,p));{const m=b(y,p);if(m===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return y},h)}return d.getInitialState=u,d}var ow=Symbol.for("rtk-slice-createasyncthunk");function sw(e,r){return`${e}/${r}`}function aw({creators:e}={}){var i;const r=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[ow];return function(l){const{name:u,reducerPath:d=u}=l;if(!u)throw new Error(Tn(11));typeof process<"u";const h=(typeof l.reducers=="function"?l.reducers(uw()):l.reducers)||{},p=Object.keys(h),_={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(S,k){const x=typeof S=="string"?S:S.type;if(!x)throw new Error(Tn(12));if(x in _.sliceCaseReducersByType)throw new Error(Tn(13));return _.sliceCaseReducersByType[x]=k,y},addMatcher(S,k){return _.sliceMatchers.push({matcher:S,reducer:k}),y},exposeAction(S,k){return _.actionCreators[S]=k,y},exposeCaseReducer(S,k){return _.sliceCaseReducersByName[S]=k,y}};p.forEach(S=>{const k=h[S],x={reducerName:S,type:sw(u,S),createNotation:typeof l.reducers=="function"};fw(k)?hw(x,k,y,r):cw(x,k,y)});function b(){const[S={},k=[],x=void 0]=typeof l.extraReducers=="function"?Ky(l.extraReducers):[l.extraReducers],L={...S,..._.sliceCaseReducersByType};return iw(l.initialState,G=>{for(let q in L)G.addCase(q,L[q]);for(let q of _.sliceMatchers)G.addMatcher(q.matcher,q.reducer);for(let q of k)G.addMatcher(q.matcher,q.reducer);x&&G.addDefaultCase(x)})}const m=S=>S,E=new Map;let v;function w(S,k){return v||(v=b()),v(S,k)}function C(){return v||(v=b()),v.getInitialState()}function O(S,k=!1){function x(G){let q=G[S];return typeof q>"u"&&k&&(q=C()),q}function L(G=m){const q=Lm(E,k,()=>new WeakMap);return Lm(q,G,()=>{const fe={};for(const[te,oe]of Object.entries(l.selectors??{}))fe[te]=lw(oe,G,C,k);return fe})}return{reducerPath:S,getSelectors:L,get selectors(){return L(x)},selectSlice:x}}const N={name:u,reducer:w,actions:_.actionCreators,caseReducers:_.sliceCaseReducersByName,getInitialState:C,...O(d),injectInto(S,{reducerPath:k,...x}={}){const L=k??d;return S.inject({reducerPath:L,reducer:w},x),{...N,...O(L,!0)}}};return N}}function lw(e,r,i,s){function l(u,...d){let h=r(u);return typeof h>"u"&&s&&(h=i()),e(h,...d)}return l.unwrapped=e,l}var Yy=aw();function uw(){function e(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return e.withTypes=()=>e,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:e}}function cw({type:e,reducerName:r,createNotation:i},s,l){let u,d;if("reducer"in s){if(i&&!dw(s))throw new Error(Tn(17));u=s.reducer,d=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(r,u).exposeAction(r,d?Mm(e,d):Mm(e))}function fw(e){return e._reducerDefinitionType==="asyncThunk"}function dw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function hw({type:e,reducerName:r},i,s,l){if(!l)throw new Error(Tn(18));const{payloadCreator:u,fulfilled:d,pending:h,rejected:p,settled:_,options:y}=i,b=l(e,u,y);s.exposeAction(r,b),d&&s.addCase(b.fulfilled,d),h&&s.addCase(b.pending,h),p&&s.addCase(b.rejected,p),_&&s.addMatcher(b.settled,_),s.exposeCaseReducer(r,{fulfilled:d||Ns,pending:h||Ns,rejected:p||Ns,settled:_||Ns})}function Ns(){}function Tn(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 pw={useStartScreen:void 0,formValues:{}},Zy=Yy({name:"start-screen",initialState:pw,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,r){e.startScreenStatus="HIDDEN",e.formValues=r.payload}}}),{enableStartScreen:mw,disableStartScreen:gw,startChat:yw,showStartScreen:vw}=Zy.actions,_w=Zy.reducer,Jy="RESET_CHAT_STATE",Ew=()=>({type:Jy}),nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function Sw(e,r=0){return(nt[e[r+0]]+nt[e[r+1]]+nt[e[r+2]]+nt[e[r+3]]+"-"+nt[e[r+4]]+nt[e[r+5]]+"-"+nt[e[r+6]]+nt[e[r+7]]+"-"+nt[e[r+8]]+nt[e[r+9]]+"-"+nt[e[r+10]]+nt[e[r+11]]+nt[e[r+12]]+nt[e[r+13]]+nt[e[r+14]]+nt[e[r+15]]).toLowerCase()}let Pu;const bw=new Uint8Array(16);function ww(){if(!Pu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Pu=crypto.getRandomValues.bind(crypto)}return Pu(bw)}const xw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jm={randomUUID:xw};function Oc(e,r,i){var l;if(jm.randomUUID&&!r&&!e)return jm.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??ww();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,Sw(s)}const uf="CONNECT",cf="CONNECTING",ff="CONNECTED",df="DISCONNECTED",hf="RECONNECTED",pf="RESTORE_SESSION_ID",ua="START",ca="CLEAR_SESSION_ID",Tw=[uf,cf,ff,df,hf,pf],Cw=(e,r)=>({type:uf,clientName:e,querystrings:r}),kw=e=>({type:pf,sessionId:e}),Rw=()=>({type:cf}),Ow=()=>({type:ff}),Nw=()=>({type:df}),Aw=()=>({type:hf}),ev=(e,r)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let d=l.sessionId;d===void 0&&(d=Oc());let h=l.userId;if(h===void 0){const p=Ru.get("bubble-chat-userId")||Ru.get("bf-webclient-userId");h=p||Oc(),Ru.set("bubble-chat-userId",h)}i({type:ua,payload:{sessionId:d,userId:h,clientName:e,querystrings:{...r,...u}}})},mf=(e,r)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(Pw(l)),i(Ew()),s().startScreen.useStartScreen)i(vw());else return i(ev(e,r))},Pw=e=>({type:ca,payload:{sessionId:e}}),Pt=()=>{const e=ra();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var vr=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(vr||{}),tv=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(tv||{});const Iw="_button_bc9qm_54",Dw="_buttonDefault_bc9qm_66",Mw="_buttonPrimary_bc9qm_80",Fw="_accessabilityHidden_bc9qm_132",it={button:Iw,buttonDefault:Dw,buttonPrimary:Mw,accessabilityHidden:Fw},Lw="_chatwindow_phukm_1",Bw="_chatcontent_phukm_13",jw={chatwindow:Lw,chatcontent:Bw},zw="_messageContainer_1wdci_1",Uw="_messages_1wdci_10",zm={messageContainer:zw,messages:Uw};function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},yr.apply(this,arguments)}const Hw=["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",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Um;(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"})(Um||(Um={}));const Hm=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,r)=>(e[r.toLowerCase()]=r,e),{class:"className",for:"htmlFor"}),Gm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Gw=["style","script"],$w=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qw=/mailto:/i,Vw=/\n{2,}$/,nv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Ww=/^ *> ?/gm,Xw=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Qw=/^ {2,}\n/,Kw=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,rv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,iv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Yw=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Zw=/^(?:\n *)*\n/,Jw=/\r\n?/g,ex=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,tx=/^\[\^([^\]]+)]/,nx=/\f/g,rx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,ix=/^\s*?\[(x|\s)\]/,ov=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,av=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Nc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,ox=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,lv=/^<!--[\s\S]*?(?:-->)/,sx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ac=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,ax=/^\{.*\}$/,lx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ux=/^<([^ >]+@[^ >]+)>/,cx=/^<([^ >]+:\/[^ >]+)>/,fx=/-([a-z])?/gi,uv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,hx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,px=/^\[([^\]]*)\] ?\[([^\]]*)\]/,mx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,gx=/\t/g,yx=/(^ *\||\| *$)/g,vx=/^ *:-+: *$/,_x=/^ *:-+ *$/,Ex=/^ *-+: *$/,fa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Sx=new RegExp(`^([*_])\\1${fa}\\1\\1(?!\\1)`),bx=new RegExp(`^([*_])${fa}\\1(?!\\1|\\w)`),wx=new RegExp(`^==${fa}==`),xx=new RegExp(`^~~${fa}~~`),Tx=/^\\([^0-9A-Za-z\s])/,Cx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,kx=/^\n+/,Rx=/^([ \t]*)/,Ox=/\\([^\\])/g,$m=/ *\n+$/,Nx=/(?:^|\n)( *)$/,gf="(?:\\d+\\.)",yf="(?:[*+-])";function cv(e){return"( *)("+(e===1?gf:yf)+") +"}const fv=cv(1),dv=cv(2);function hv(e){return new RegExp("^"+(e===1?fv:dv))}const Ax=hv(1),Px=hv(2);function pv(e){return new RegExp("^"+(e===1?fv:dv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?gf:yf)+" )[^\\n]*)*(\\n|$)","gm")}const mv=pv(1),gv=pv(2);function yv(e){const r=e===1?gf:yf;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const vv=yv(1),_v=yv(2);function qm(e,r){const i=r===1,s=i?vv:_v,l=i?mv:gv,u=i?Ax:Px;return{match(d,h){const p=Nx.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?s.exec(d=p[1]+d):null},order:1,parse(d,h,p){const _=i?+d[2]:void 0,y=d[0].replace(Vw,`
|
|
85
|
+
`).match(l);let b=!1;return{items:y.map(function(m,E){const v=u.exec(m)[0].length,w=new RegExp("^ {1,"+v+"}","gm"),C=m.replace(w,"").replace(u,""),O=E===y.length-1,N=C.indexOf(`
|
|
86
|
+
|
|
87
|
+
`)!==-1||O&&b;b=N;const S=p.inline,k=p.list;let x;p.list=!0,N?(p.inline=!1,x=C.replace($m,`
|
|
88
|
+
|
|
89
|
+
`)):(p.inline=!0,x=C.replace($m,""));const L=h(x,p);return p.inline=S,p.list=k,L}),ordered:i,start:_}},render:(d,h,p)=>e(d.ordered?"ol":"ul",{key:p.key,start:d.type===se.orderedList?d.start:void 0},d.items.map(function(_,y){return e("li",{key:y},h(_,p))}))}}const Ix=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Dx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ev=[nv,rv,iv,ov,av,sv,lv,uv,mv,vv,gv,_v],Mx=[...Ev,/^[^\n]+(?: \n|\n{2,})/,Nc,Ac];function qi(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Fx(e){return Ex.test(e)?"right":vx.test(e)?"center":_x.test(e)?"left":null}function Vm(e,r,i,s){const l=i.inTable;i.inTable=!0;let u=[[]],d="";function h(){if(!d)return;const p=u[u.length-1];p.push.apply(p,r(d,i)),d=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,_,y)=>{p.trim()==="|"&&(h(),s)?_!==0&&_!==y.length-1&&u.push([]):d+=p}),h(),i.inTable=l,u}function Lx(e,r,i){i.inline=!0;const s=e[2]?e[2].replace(yx,"").split("|").map(Fx):[],l=e[3]?function(d,h,p){return d.trim().split(`
|
|
90
|
+
`).map(function(_){return Vm(_,h,p,!0)})}(e[3],r,i):[],u=Vm(e[1],r,i,!!l.length);return i.inline=!1,l.length?{align:s,cells:l,header:u,type:se.table}:{children:u,type:se.paragraph}}function Wm(e,r){return e.align[r]==null?{}:{textAlign:e.align[r]}}function Xn(e){return function(r,i){return i.inline?e.exec(r):null}}function Qn(e){return function(r,i){return i.inline||i.simple?e.exec(r):null}}function Sn(e){return function(r,i){return i.inline||i.simple?null:e.exec(r)}}function Vi(e){return function(r){return e.exec(r)}}function Bx(e,r){if(r.inline||r.simple)return null;let i="";e.split(`
|
|
91
|
+
`).every(l=>(l+=`
|
|
92
|
+
`,!Ev.some(u=>u.test(l))&&(i+=l,!!l.trim())));const s=i.trimEnd();return s==""?null:[i,s]}function jx(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 Xm(e){return e.replace(Ox,"$1")}function Hs(e,r,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!0,i.simple=!0;const u=e(r,i);return i.inline=s,i.simple=l,u}function zx(e,r,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!1,i.simple=!0;const u=e(r,i);return i.inline=s,i.simple=l,u}function Ux(e,r,i){const s=i.inline||!1;i.inline=!1;const l=e(r,i);return i.inline=s,l}const Iu=(e,r,i)=>({children:Hs(r,e[1],i)});function Du(){return{}}function Mu(){return null}function Hx(...e){return e.filter(Boolean).join(" ")}function Fu(e,r,i){let s=e;const l=r.split(".");for(;l.length&&(s=s[l[0]],s!==void 0);)l.shift();return s||i}function Gx(e="",r={}){function i(m,E,...v){const w=Fu(r.overrides,`${m}.props`,{});return r.createElement(function(C,O){const N=Fu(O,C);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:Fu(O,`${C}.component`,C):C}(m,r.overrides),yr({},E,w,{className:Hx(E==null?void 0:E.className,w.className)||void 0}),...v)}function s(m){m=m.replace(rx,"");let E=!1;r.forceInline?E=!0:r.forceBlock||(E=mx.test(m)===!1);const v=_(p(E?m:`${m.trimEnd().replace(kx,"")}
|
|
93
|
+
|
|
94
|
+
`,{inline:E}));for(;typeof v[v.length-1]=="string"&&!v[v.length-1].trim();)v.pop();if(r.wrapper===null)return v;const w=r.wrapper||(E?"span":"div");let C;if(v.length>1||r.forceWrapper)C=v;else{if(v.length===1)return C=v[0],typeof C=="string"?i("span",{key:"outer"},C):C;C=null}return r.createElement(w,{key:"outer"},C)}function l(m,E){const v=E.match($w);return v?v.reduce(function(w,C){const O=C.indexOf("=");if(O!==-1){const N=function(L){return L.indexOf("-")!==-1&&L.match(sx)===null&&(L=L.replace(fx,function(G,q){return q.toUpperCase()})),L}(C.slice(0,O)).trim(),S=function(L){const G=L[0];return(G==='"'||G==="'")&&L.length>=2&&L[L.length-1]===G?L.slice(1,-1):L}(C.slice(O+1).trim()),k=Hm[N]||N;if(k==="ref")return w;const x=w[k]=function(L,G,q,fe){return G==="style"?q.split(/;\s?/).reduce(function(te,oe){const pe=oe.slice(0,oe.indexOf(":"));return te[pe.trim().replace(/(-[a-z])/g,ue=>ue[1].toUpperCase())]=oe.slice(pe.length+1).trim(),te},{}):G==="href"||G==="src"?fe(q,L,G):(q.match(ax)&&(q=q.slice(1,q.length-1)),q==="true"||q!=="false"&&q)}(m,N,S,r.sanitizer);typeof x=="string"&&(Nc.test(x)||Ac.test(x))&&(w[k]=s(x.trim()))}else C!=="style"&&(w[Hm[C]||C]=!0);return w},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||jx,r.slugify=r.slugify||qi,r.namedCodesToUnicode=r.namedCodesToUnicode?yr({},Gm,r.namedCodesToUnicode):Gm,r.createElement=r.createElement||B.createElement;const u=[],d={},h={[se.blockQuote]:{match:Sn(nv),order:1,parse(m,E,v){const[,w,C]=m[0].replace(Ww,"").match(Xw);return{alert:w,children:E(C,v)}},render(m,E,v){const w={key:v.key};return m.alert&&(w.className="markdown-alert-"+r.slugify(m.alert.toLowerCase(),qi),m.children.unshift({attrs:{},children:[{type:se.text,text:m.alert}],noInnerParse:!0,type:se.htmlBlock,tag:"header"})),i("blockquote",w,E(m.children,v))}},[se.breakLine]:{match:Vi(Qw),order:1,parse:Du,render:(m,E,v)=>i("br",{key:v.key})},[se.breakThematic]:{match:Sn(Kw),order:1,parse:Du,render:(m,E,v)=>i("hr",{key:v.key})},[se.codeBlock]:{match:Sn(iv),order:0,parse:m=>({lang:void 0,text:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(m,E,v)=>i("pre",{key:v.key},i("code",yr({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[se.codeFenced]:{match:Sn(rv),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:se.codeBlock})},[se.codeInline]:{match:Qn(Yw),order:3,parse:m=>({text:m[2]}),render:(m,E,v)=>i("code",{key:v.key},m.text)},[se.footnote]:{match:Sn(ex),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Mu},[se.footnoteReference]:{match:Xn(tx),order:1,parse:m=>({target:`#${r.slugify(m[1],qi)}`,text:m[1]}),render:(m,E,v)=>i("a",{key:v.key,href:r.sanitizer(m.target,"a","href")},i("sup",{key:v.key},m.text))},[se.gfmTask]:{match:Xn(ix),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,E,v)=>i("input",{checked:m.completed,key:v.key,readOnly:!0,type:"checkbox"})},[se.heading]:{match:Sn(r.enforceAtxHeadings?sv:ov),order:1,parse:(m,E,v)=>({children:Hs(E,m[2],v),id:r.slugify(m[2],qi),level:m[1].length}),render:(m,E,v)=>i(`h${m.level}`,{id:m.id,key:v.key},E(m.children,v))},[se.headingSetext]:{match:Sn(av),order:0,parse:(m,E,v)=>({children:Hs(E,m[1],v),level:m[2]==="="?1:2,type:se.heading})},[se.htmlBlock]:{match:Vi(Nc),order:1,parse(m,E,v){const[,w]=m[3].match(Rx),C=new RegExp(`^${w}`,"gm"),O=m[3].replace(C,""),N=(S=O,Mx.some(q=>q.test(S))?Ux:Hs);var S;const k=m[1].toLowerCase(),x=Gw.indexOf(k)!==-1,L=(x?k:m[1]).trim(),G={attrs:l(L,m[2]),noInnerParse:x,tag:L};return v.inAnchor=v.inAnchor||k==="a",x?G.text=m[3]:G.children=N(E,O,v),v.inAnchor=!1,G},render:(m,E,v)=>i(m.tag,yr({key:v.key},m.attrs),m.text||(m.children?E(m.children,v):""))},[se.htmlSelfClosing]:{match:Vi(Ac),order:1,parse(m){const E=m[1].trim();return{attrs:l(E,m[2]||""),tag:E}},render:(m,E,v)=>i(m.tag,yr({},m.attrs,{key:v.key}))},[se.htmlComment]:{match:Vi(lv),order:1,parse:()=>({}),render:Mu},[se.image]:{match:Qn(Dx),order:1,parse:m=>({alt:m[1],target:Xm(m[2]),title:m[3]}),render:(m,E,v)=>i("img",{key:v.key,alt:m.alt||void 0,title:m.title||void 0,src:r.sanitizer(m.target,"img","src")})},[se.link]:{match:Xn(Ix),order:3,parse:(m,E,v)=>({children:zx(E,m[1],v),target:Xm(m[2]),title:m[3]}),render:(m,E,v)=>i("a",{key:v.key,href:r.sanitizer(m.target,"a","href"),title:m.title},E(m.children,v))},[se.linkAngleBraceStyleDetector]:{match:Xn(cx),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],type:se.link})},[se.linkBareUrlDetector]:{match:(m,E)=>E.inAnchor||r.disableAutoLink?null:Xn(lx)(m,E),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],title:void 0,type:se.link})},[se.linkMailtoDetector]:{match:Xn(ux),order:0,parse(m){let E=m[1],v=m[1];return qw.test(v)||(v="mailto:"+v),{children:[{text:E.replace("mailto:",""),type:se.text}],target:v,type:se.link}}},[se.orderedList]:qm(i,1),[se.unorderedList]:qm(i,2),[se.newlineCoalescer]:{match:Sn(Zw),order:3,parse:Du,render:()=>`
|
|
95
|
+
`},[se.paragraph]:{match:Bx,order:3,parse:Iu,render:(m,E,v)=>i("p",{key:v.key},E(m.children,v))},[se.ref]:{match:Xn(dx),order:0,parse:m=>(d[m[1]]={target:m[2],title:m[4]},{}),render:Mu},[se.refImage]:{match:Qn(hx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,E,v)=>d[m.ref]?i("img",{key:v.key,alt:m.alt,src:r.sanitizer(d[m.ref].target,"img","src"),title:d[m.ref].title}):null},[se.refLink]:{match:Xn(px),order:0,parse:(m,E,v)=>({children:E(m[1],v),fallbackChildren:m[0],ref:m[2]}),render:(m,E,v)=>d[m.ref]?i("a",{key:v.key,href:r.sanitizer(d[m.ref].target,"a","href"),title:d[m.ref].title},E(m.children,v)):i("span",{key:v.key},m.fallbackChildren)},[se.table]:{match:Sn(uv),order:1,parse:Lx,render(m,E,v){const w=m;return i("table",{key:v.key},i("thead",null,i("tr",null,w.header.map(function(C,O){return i("th",{key:O,style:Wm(w,O)},E(C,v))}))),i("tbody",null,w.cells.map(function(C,O){return i("tr",{key:O},C.map(function(N,S){return i("td",{key:S,style:Wm(w,S)},E(N,v))}))})))}},[se.text]:{match:Vi(Cx),order:4,parse:m=>({text:m[0].replace(ox,(E,v)=>r.namedCodesToUnicode[v]?r.namedCodesToUnicode[v]:E)}),render:m=>m.text},[se.textBolded]:{match:Qn(Sx),order:2,parse:(m,E,v)=>({children:E(m[2],v)}),render:(m,E,v)=>i("strong",{key:v.key},E(m.children,v))},[se.textEmphasized]:{match:Qn(bx),order:3,parse:(m,E,v)=>({children:E(m[2],v)}),render:(m,E,v)=>i("em",{key:v.key},E(m.children,v))},[se.textEscaped]:{match:Qn(Tx),order:1,parse:m=>({text:m[1],type:se.text})},[se.textMarked]:{match:Qn(wx),order:3,parse:Iu,render:(m,E,v)=>i("mark",{key:v.key},E(m.children,v))},[se.textStrikethroughed]:{match:Qn(xx),order:3,parse:Iu,render:(m,E,v)=>i("del",{key:v.key},E(m.children,v))}};r.disableParsingRawHTML===!0&&(delete h[se.htmlBlock],delete h[se.htmlSelfClosing]);const p=function(m){let E=Object.keys(m);function v(w,C){let O=[];for(C.prevCapture=C.prevCapture||"";w;){let N=0;for(;N<E.length;){const S=E[N],k=m[S],x=k.match(w,C);if(x){const L=x[0];C.prevCapture+=L,w=w.substring(L.length);const G=k.parse(x,v,C);G.type==null&&(G.type=S),O.push(G);break}N++}}return C.prevCapture="",O}return E.sort(function(w,C){let O=m[w].order,N=m[C].order;return O!==N?O-N:w<C?-1:1}),function(w,C){return v(function(O){return O.replace(Jw,`
|
|
96
|
+
`).replace(nx,"").replace(gx," ")}(w),C)}}(h),_=(y=function(m,E){return function(v,w,C){const O=m[v.type].render;return E?E(()=>O(v,w,C),v,w,C):O(v,w,C)}}(h,r.renderRule),function m(E,v={}){if(Array.isArray(E)){const w=v.key,C=[];let O=!1;for(let N=0;N<E.length;N++){v.key=N;const S=m(E[N],v),k=typeof S=="string";k&&O?C[C.length-1]+=S:S!==null&&C.push(S),O=k}return v.key=w,C}return y(E,m,v)});var y;const b=s(e);return u.length?i("div",null,b,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:r.slugify(m.identifier,qi),key:m.identifier},m.identifier,_(p(m.footnote,{inline:!0})))}))):b}const Yn=e=>{let{children:r="",options:i}=e,s=function(l,u){if(l==null)return{};var d,h,p={},_=Object.keys(l);for(h=0;h<_.length;h++)u.indexOf(d=_[h])>=0||(p[d]=l[d]);return p}(e,Hw);return B.cloneElement(Gx(r,i),s)};var Sv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Qm=xn.createContext&&xn.createContext(Sv),$x=["attr","size","title"];function qx(e,r){if(e==null)return{};var i=Vx(e,r),s,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(l=0;l<u.length;l++)s=u[l],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(i[s]=e[s])}return i}function Vx(e,r){if(e==null)return{};var i={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(r.indexOf(s)>=0)continue;i[s]=e[s]}return i}function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Zs.apply(this,arguments)}function Km(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,s)}return i}function Js(e){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Km(Object(i),!0).forEach(function(s){Wx(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Km(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function Wx(e,r,i){return r=Xx(r),r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Xx(e){var r=Qx(e,"string");return typeof r=="symbol"?r:r+""}function Qx(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function bv(e){return e&&e.map((r,i)=>xn.createElement(r.tag,Js({key:i},r.attr),bv(r.child)))}function wv(e){return r=>xn.createElement(Kx,Zs({attr:Js({},e.attr)},r),bv(e.child))}function Kx(e){var r=i=>{var{attr:s,size:l,title:u}=e,d=qx(e,$x),h=l||i.size||"1em",p;return i.className&&(p=i.className),e.className&&(p=(p?p+" ":"")+e.className),xn.createElement("svg",Zs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,s,d,{className:p,style:Js(Js({color:e.color||i.color},i.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),u&&xn.createElement("title",null,u),e.children)};return Qm!==void 0?xn.createElement(Qm.Consumer,null,i=>r(i)):r(Sv)}function Yx(e){return wv({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},child:[]}]})(e)}function Zx(e){return wv({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"},child:[]}]})(e)}const Jx="_generalConditionsContainer_1ijeb_1",eT="_generalConditions_1ijeb_1",tT="_generalConditionsHeader_1ijeb_15",nT="_generalConditionsBody_1ijeb_25",rT="_generalConditionsAccept_1ijeb_33",Wi={generalConditionsContainer:Jx,generalConditions:eT,generalConditionsHeader:tT,generalConditionsBody:nT,generalConditionsAccept:rT},iT="general-conditions.header",oT="general-conditions.body",Ym="general-conditions.accept-conditions-note",sT=()=>{const e=Pt(),[r,i]=B.useState(!1),s=()=>i(!r),l=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},u=e(iT),d=e(Ym);return R.jsxs("div",{className:V(Wi.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&R.jsxs("div",{className:Wi.generalConditions,children:[R.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:V(Wi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[R.jsx(Yn,{children:u}),r?R.jsx(Zx,{}):R.jsx(Yx,{})]}),R.jsx("div",{className:V(Wi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&R.jsx(Yn,{children:e(oT)||""})})]}),!!(d!=null&&d.length)&&R.jsx("div",{className:V(Wi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:R.jsx(Yn,{children:e(Ym)||""})})]})},aT="_message_iyv51_5",lT="_messageBot_iyv51_12",uT="_messageBotLast_iyv51_20",cT="_avatar_iyv51_20",fT="_messageBotFirst_iyv51_24",dT="_messageBotAnimated_iyv51_37",hT="_fadeInLeft_iyv51_1",pT="_messageGuest_iyv51_48",mT="_messageGuestFirst_iyv51_54",gT="_messageGuestLast_iyv51_60",yT="_botAvatar_iyv51_74",vT="_agentAvatar_iyv51_78",_T="_bubble_iyv51_82",ET="_bubbleContent_iyv51_88",ST="_bubbleLeft_iyv51_191",bT="_leftText_iyv51_200",wT="_bubbleRight_iyv51_207",xT="_rightText_iyv51_215",he={message:aT,messageBot:lT,messageBotLast:uT,avatar:cT,messageBotFirst:fT,messageBotAnimated:dT,fadeInLeft:hT,messageGuest:pT,messageGuestFirst:mT,messageGuestLast:gT,botAvatar:yT,agentAvatar:vT,bubble:_T,bubbleContent:ET,bubbleLeft:ST,leftText:bT,bubbleRight:wT,rightText:xT},TT="_botMessageActions_4blu2_1",CT="_alwaysVisible_4blu2_20",kT="_reported_4blu2_27",RT="_action_4blu2_31",Kn={botMessageActions:TT,alwaysVisible:CT,reported:kT,action:RT},OT=({alwaysVisible:e,reaction:r,botMessageRef:i,onReaction:s})=>{const l=Pt(),[u,d]=B.useState(!1),h=_=>()=>s(_),p=B.useCallback(async()=>{if(i.current)try{d(!0);const _=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([_],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(b=>setTimeout(b,1500))}finally{d(!1)}},[i]);return R.jsxs("div",{className:V(Kn.botMessageActions,e&&Kn.alwaysVisible,r&&Kn.reported),children:[R.jsx("button",{className:V(Kn.action,r==="GOOD"&&Kn.reported,"tooltip--right"),tabIndex:0,"aria-label":l(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":l(r==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:h(r==="GOOD"?null:"GOOD"),children:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="GOOD"?R.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"}):R.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"})})}),R.jsx("button",{className:V(Kn.action,r==="BAD"&&Kn.reported,"tooltip--right"),tabIndex:0,"aria-label":l(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":l(r==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:h(r==="BAD"?null:"BAD"),children:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="BAD"?R.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"}):R.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"})})}),R.jsx("button",{className:V(Kn.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?R.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"}):R.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"})})})]})},xv=B.forwardRef(({message:e,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:d},h)=>{const p=Pt(),_=B.useRef(null),y=e.sender.type===ge.UserType.BOT;return R.jsxs("li",{ref:h,className:V(he.message,he.messageBot,i&&he.lastMessage,s&&he.messageBotFirst,l&&he.messageBotLast,"chat__bubbleContainer",r&&he.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[R.jsx("img",{className:V(he.avatar,y?he.botAvatar:he.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),R.jsx("div",{ref:_,className:V(he.bubble,he.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:R.jsx("div",{className:V(he.leftText),children:u})}),d&&R.jsx(OT,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:_,onReaction:d})]})}),NT="_title_1mhh2_1",AT="_subtitle_1mhh2_6",PT="_buttons_1mhh2_11",IT="_button_1mhh2_11",DT="_imageContainer_1mhh2_33",MT="_image_1mhh2_33",FT="_video_container_1mhh2_44",LT="_video_1mhh2_44",BT="_only_1mhh2_54",St={title:NT,subtitle:AT,buttons:PT,button:IT,imageContainer:DT,image:MT,video_container:FT,video:LT,only:BT},jT=({buttons:e,onButtonClick:r})=>R.jsx("div",{className:V(St.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>R.jsx("button",{className:V(St.button,it.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))});var As={},Ps={},Is={},Zm;function zT(){if(Zm)return Is;Zm=1,Object.defineProperty(Is,"__esModule",{value:!0});var e=Jr(),r=i(e);function i(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l.default=s,l}return Is.default=function(s,l,u){return r.createElement("a",{href:s,key:u},l)},Is}var Ds={},Jm;function UT(){return Jm||(Jm=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=function(e){return e}),Ds}var Ms={},Lu,eg;function HT(){return eg||(eg=1,Lu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Lu}var Bu,tg;function GT(){return tg||(tg=1,Bu=/[\0-\x1F\x7F-\x9F]/),Bu}var ju,ng;function $T(){return ng||(ng=1,ju=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),ju}var zu,rg;function qT(){return rg||(rg=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 Uu,ig;function VT(){return ig||(ig=1,Uu=function(e){var r={};r.src_Any=HT().source,r.src_Cc=GT().source,r.src_Z=$T().source,r.src_P=qT().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var i="[><|]";return r.src_pseudo_letter="(?:(?!"+i+"|"+r.src_ZPCc+")"+r.src_Any+")",r.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+i+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Uu}var Hu,og;function WT(){if(og)return Hu;og=1;function e(S){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(x){x&&Object.keys(x).forEach(function(L){S[L]=x[L]})}),S}function r(S){return Object.prototype.toString.call(S)}function i(S){return r(S)==="[object String]"}function s(S){return r(S)==="[object Object]"}function l(S){return r(S)==="[object RegExp]"}function u(S){return r(S)==="[object Function]"}function d(S){return S.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(S){return Object.keys(S||{}).reduce(function(k,x){return k||h.hasOwnProperty(x)},!1)}var _={"http:":{validate:function(S,k,x){var L=S.slice(k);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,k,x){var L=S.slice(k);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)?k>=3&&S[k-3]===":"||k>=3&&S[k-3]==="/"?0:L.match(x.re.no_http)[0].length:0}},"mailto:":{validate:function(S,k,x){var L=S.slice(k);return x.re.mailto||(x.re.mailto=new RegExp("^"+x.re.src_email_name+"@"+x.re.src_host_strict,"i")),x.re.mailto.test(L)?L.match(x.re.mailto)[0].length:0}}},y="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",b="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 E(S){return function(k,x){var L=k.slice(x);return S.test(L)?L.match(S)[0].length:0}}function v(){return function(S,k){k.normalize(S)}}function w(S){var k=S.re=VT()(S.__opts__),x=S.__tlds__.slice();S.onCompile(),S.__tlds_replaced__||x.push(y),x.push(k.src_xn),k.src_tlds=x.join("|");function L(te){return te.replace("%TLDS%",k.src_tlds)}k.email_fuzzy=RegExp(L(k.tpl_email_fuzzy),"i"),k.link_fuzzy=RegExp(L(k.tpl_link_fuzzy),"i"),k.link_no_ip_fuzzy=RegExp(L(k.tpl_link_no_ip_fuzzy),"i"),k.host_fuzzy_test=RegExp(L(k.tpl_host_fuzzy_test),"i");var G=[];S.__compiled__={};function q(te,oe){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+oe)}Object.keys(S.__schemas__).forEach(function(te){var oe=S.__schemas__[te];if(oe!==null){var pe={validate:null,link:null};if(S.__compiled__[te]=pe,s(oe)){l(oe.validate)?pe.validate=E(oe.validate):u(oe.validate)?pe.validate=oe.validate:q(te,oe),u(oe.normalize)?pe.normalize=oe.normalize:oe.normalize?q(te,oe):pe.normalize=v();return}if(i(oe)){G.push(te);return}q(te,oe)}}),G.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:v()};var fe=Object.keys(S.__compiled__).filter(function(te){return te.length>0&&S.__compiled__[te]}).map(d).join("|");S.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","i"),S.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","ig"),S.re.pretest=RegExp("("+S.re.schema_test.source+")|("+S.re.host_fuzzy_test.source+")|@","i"),m(S)}function C(S,k){var x=S.__index__,L=S.__last_index__,G=S.__text_cache__.slice(x,L);this.schema=S.__schema__.toLowerCase(),this.index=x+k,this.lastIndex=L+k,this.raw=G,this.text=G,this.url=G}function O(S,k){var x=new C(S,k);return S.__compiled__[x.schema].normalize(x,S),x}function N(S,k){if(!(this instanceof N))return new N(S,k);k||p(S)&&(k=S,S={}),this.__opts__=e({},h,k),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},_,S),this.__compiled__={},this.__tlds__=b,this.__tlds_replaced__=!1,this.re={},w(this)}return N.prototype.add=function(k,x){return this.__schemas__[k]=x,w(this),this},N.prototype.set=function(k){return this.__opts__=e(this.__opts__,k),this},N.prototype.test=function(k){if(this.__text_cache__=k,this.__index__=-1,!k.length)return!1;var x,L,G,q,fe,te,oe,pe,ue;if(this.re.schema_test.test(k)){for(oe=this.re.schema_search,oe.lastIndex=0;(x=oe.exec(k))!==null;)if(q=this.testSchemaAt(k,x[2],oe.lastIndex),q){this.__schema__=x[2],this.__index__=x.index+x[1].length,this.__last_index__=x.index+x[0].length+q;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(pe=k.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(L=k.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=k.indexOf("@"),ue>=0&&(G=k.match(this.re.email_fuzzy))!==null&&(fe=G.index+G[1].length,te=G.index+G[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},N.prototype.pretest=function(k){return this.re.pretest.test(k)},N.prototype.testSchemaAt=function(k,x,L){return this.__compiled__[x.toLowerCase()]?this.__compiled__[x.toLowerCase()].validate(k,L,this):0},N.prototype.match=function(k){var x=0,L=[];this.__index__>=0&&this.__text_cache__===k&&(L.push(O(this,x)),x=this.__last_index__);for(var G=x?k.slice(x):k;this.test(G);)L.push(O(this,x)),G=G.slice(this.__last_index__),x+=this.__last_index__;return L.length?L:null},N.prototype.tlds=function(k,x){return k=Array.isArray(k)?k:[k],x?(this.__tlds__=this.__tlds__.concat(k).sort().filter(function(L,G,q){return L!==q[G-1]}).reverse(),w(this),this):(this.__tlds__=k.slice(),this.__tlds_replaced__=!0,w(this),this)},N.prototype.normalize=function(k){k.schema||(k.url="http://"+k.url),k.schema==="mailto:"&&!/^mailto:/i.test(k.url)&&(k.url="mailto:"+k.url)},N.prototype.onCompile=function(){},Hu=N,Hu}const XT=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var sg;function QT(){if(sg)return Ms;sg=1,Object.defineProperty(Ms,"__esModule",{value:!0});var e=WT(),r=l(e),i=XT,s=l(i);function l(d){return d&&d.__esModule?d:{default:d}}var u=new r.default;return u.tlds(s.default),Ms.default=function(d){return u.match(d)},Ms}var Fs={},ag;function KT(){return ag||(ag=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=function(e){return e}),Fs}var lg;function YT(){if(lg)return Ps;lg=1,Object.defineProperty(Ps,"__esModule",{value:!0});var e=function(){function O(N,S){for(var k=0;k<S.length;k++){var x=S[k];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(N,x.key,x)}}return function(N,S,k){return S&&O(N.prototype,S),k&&O(N,k),N}}(),r=Jr(),i=m(r),s=zT(),l=b(s),u=UT(),d=b(u),h=QT(),p=b(h),_=KT(),y=b(_);function b(O){return O&&O.__esModule?O:{default:O}}function m(O){if(O&&O.__esModule)return O;var N={};if(O!=null)for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(N[S]=O[S]);return N.default=O,N}function E(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function v(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function w(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var C=function(O){w(N,O);function N(){return E(this,N),v(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(k){var x=this;if(k==="")return k;var L=this.props.matchDecorator(k);if(!L)return k;var G=[],q=0;return L.forEach(function(fe,te){fe.index>q&&G.push(k.substring(q,fe.index));var oe=x.props.hrefDecorator(fe.url),pe=x.props.textDecorator(fe.text),ue=x.props.componentDecorator(oe,pe,te);G.push(ue),q=fe.lastIndex}),k.length>q&&G.push(k.substring(q)),G.length===1?G[0]:G}},{key:"parse",value:function(k){var x=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="string"?this.parseString(k):i.isValidElement(k)&&k.type!=="a"&&k.type!=="button"?i.cloneElement(k,{key:L},this.parse(k.props.children)):Array.isArray(k)?k.map(function(G,q){return x.parse(G,q)}):k}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),N}(i.Component);return C.defaultProps={componentDecorator:l.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:y.default},Ps.default=C,Ps}var ug;function ZT(){if(ug)return As;ug=1,Object.defineProperty(As,"__esModule",{value:!0});var e=YT(),r=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return As.default=r.default,As}var JT=ZT();const eC=ta(JT),tC="_text_ola9a_1",nC="_command_ola9a_5",cg={text:tC,command:nC},Tv=({text:e,commands:r=[],onLinkClick:i})=>{const s=h=>p=>(p.preventDefault(),h&&i(h),!1),l=(h,p,_)=>R.jsx("a",{onClick:s(h),role:"button",children:p},_),u=r.find(h=>e.startsWith(`/${h}`)),d=u?e.slice(u.length+1):e;return R.jsxs("div",{children:[u&&R.jsxs("code",{className:cg.command,children:["/",u]}),d.split(`
|
|
97
|
+
`).map((h,p)=>R.jsxs("span",{className:cg.text,children:[R.jsx(eC,{componentDecorator:l,children:h}),R.jsx("br",{})]},p))]})},rC=({subtitle:e,onLinkClick:r})=>e?R.jsx("div",{className:St.subtitle,children:R.jsx(Tv,{text:e,onLinkClick:r})}):null,fg="newtab#",Cv=({markdown:e,onLinkClick:r})=>{const i=l=>u=>(u.preventDefault(),l&&r(l),!1),s=({title:l,href:u,children:d})=>u.indexOf(fg)===0?R.jsx("a",{href:u.slice(fg.length),title:l,target:"_blank",rel:"noopener noreferrer",children:d}):R.jsx("a",{onClick:i(u),title:l,href:u,children:d});return R.jsx(Yn,{options:{overrides:{a:s}},children:e})},iC=({text:e,onLinkClick:r})=>e?R.jsx("div",{children:R.jsx(Cv,{markdown:e,onLinkClick:r})}):null,oC=({title:e})=>e?R.jsx("h1",{className:St.title,children:e}):null,sC=({title:e,text:r,subtitle:i,buttons:s,onButtonClick:l,onLinkClick:u})=>(e==null?void 0:e.length)||(r==null?void 0:r.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?R.jsxs("div",{className:V(he.bubbleContent),children:[R.jsx(oC,{title:e}),R.jsx(iC,{text:r,onLinkClick:u}),R.jsx(rC,{subtitle:i,onLinkClick:u}),R.jsx(jT,{buttons:s,onButtonClick:l})]}):null,aC=({alt:e,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?R.jsx("div",{className:St.video_container,children:R.jsx("iframe",{className:V(St.video,{[St.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):R.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:R.jsx("div",{className:St.imageContainer,children:R.jsx("img",{className:V(St.image,{[St.only]:!s}),src:r,alt:e})})}):R.jsx("div",{className:St.imageContainer,children:R.jsx("img",{className:V(St.image,{[St.only]:!s}),src:r,alt:e})}):null,lC=({title:e,text:r,subtitle:i,imageUrl:s,itemUrl:l,buttons:u,onButtonClick:d,onLinkClick:h})=>{const p=!!(e!=null&&e.length)||!!(r!=null&&r.length)||!!(i!=null&&i.length)||!!(u!=null&&u.length);return R.jsxs("div",{className:V(St.detailMessage),children:[R.jsx(aC,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&R.jsx(sC,{title:e,text:r,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:d})]})},uC=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:r,children:i},s)=>{const l=Pt();return R.jsx("li",{ref:s,className:V(he.message,he.messageGuest,e&&he.messageGuestFirst,r&&he.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:R.jsx("div",{className:V(he.bubble,he.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:R.jsx("div",{className:V(he.rightText),children:i})})})}),cC=({markdown:e,className:r,onLinkClick:i})=>R.jsx("div",{className:V(he.bubbleContent,r),children:R.jsx(Cv,{markdown:e,onLinkClick:i})}),fC=({text:e,commands:r,onLinkClick:i})=>R.jsx("div",{className:he.bubbleContent,children:R.jsx(Tv,{text:e,commands:r,onLinkClick:i})}),dC=B.forwardRef(({message:e,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:d,onLinkClick:h},p)=>{const _=hC(e,r,d,h);switch(e.sender.type){case ge.UserType.GUEST:return R.jsx(uC,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:_});default:{const y=b=>u(e._id,b);return R.jsx(xv,{ref:p,message:e,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:y,children:_})}}}),hC=(e,r,i,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return R.jsx(fC,{text:l.text,commands:r,onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return R.jsx(lC,{title:l.title,text:l.text,subtitle:l.subtitle,imageUrl:l.imageUrl,itemUrl:l.itemUrl,buttons:l.buttons,onButtonClick:i,onLinkClick:s})}case ge.MessageTypeEnum.MARKDOWN:{const l=e;return R.jsx(cC,{markdown:l.markdown,className:l.className,onLinkClick:s})}}},pC=(e,r)=>e.message._id===r.message._id&&e.message.reaction===r.message.reaction&&e.isLastMessage===r.isLastMessage&&e.isFirstMessageBySender===r.isFirstMessageBySender&&e.isLastMessageBySender===r.isLastMessageBySender,mC=xn.memo(dC,pC),gC="_ticontainer_wftg7_1",yC="_tiblock_wftg7_5",vC="_tidot_wftg7_12",_C="_mercuryTypingAnimation_wftg7_1",Xi={ticontainer:gC,tiblock:yC,tidot:vC,mercuryTypingAnimation:_C},EC=({isTyping:e=!1})=>R.jsx("div",{className:Xi.ticontainer,children:R.jsx("div",{className:Xi.tiblock,children:e?R.jsxs(R.Fragment,{children:[R.jsx("div",{className:V(Xi.tidot,"chat__typingIndicator")}),R.jsx("div",{className:V(Xi.tidot,"chat__typingIndicator")}),R.jsx("div",{className:V(Xi.tidot,"chat__typingIndicator")})]}):null})}),SC=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),bC=({messages:e,isBotTyping:r,showGeneralConditions:i,commands:s,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:d})=>{const h=B.useRef(0),p=B.useRef(!0),_=B.useRef(null),y=B.useRef(null),b=B.useRef(null);B.useLayoutEffect(()=>{if(e.length&&_.current&&(h.current<e.length||r)){if(y.current){const v=y.current.offsetTop;_.current.scrollTop=v}else if(b.current){const v=b.current.offsetTop;_.current.scrollTop=v}p.current&&(p.current=!1),h.current=e.length}},[e,p,r]);let m;const E=e.length;return R.jsxs("div",{ref:_,className:V(zm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&p.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&R.jsx(sT,{}),R.jsxs("ul",{className:zm.messages,children:[e.map((v,w)=>{const C=wC(v,m),O=xC(v,w,e,r);m=v.sender.type;const N=w+1===E;return R.jsx(mC,{ref:N?b:null,message:v,commands:s,isLastMessage:N,isFirstMessageBySender:C,isLastMessageBySender:O,onButtonClick:u,onLinkClick:d,onReaction:l},N&&!r?"last":v._id)}),r&&R.jsx(xv,{ref:y,message:SC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:R.jsx(EC,{isTyping:!0})},"last")]})]})},wC=(e,r)=>!r||r!==e.sender.type,xC=(e,r,i,s)=>{var h;const l=e.sender.type,u=i.length;return r+1===u?!(l===ge.UserType.BOT&&s):l!==((h=i.at(r+1))==null?void 0:h.sender.type)},TC="_bottomSheet_8itd6_1",CC="_bottomSheetOpen_8itd6_15",kC="_bottomSheetClose_8itd6_20",Cn={bottomSheet:TC,bottomSheetOpen:CC,"slide-in":"_slide-in_8itd6_1",bottomSheetClose:kC,"slide-out":"_slide-out_8itd6_1"},RC="_container_ooyn8_1",dg={container:RC},OC=({contentUrl:e})=>{const r=_r(u=>u.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(u=>u||!!e)},[e]);const l=B.useMemo(()=>{if(e&&r){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",r),u.toString()}else return},[e,r]);return R.jsx("div",{className:V(dg.container,Cn.bottomSheet,{[Cn.bottomSheetOpen]:!!e,[Cn.bottomSheetClose]:i&&!e}),children:l&&R.jsx("iframe",{title:"Drawer",src:l,className:dg.iframe})})},NC="_container_t5oqt_1",AC={container:NC},PC=({title:e,href:r,children:i})=>R.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),IC=()=>{const r=Pt()("powered-by");return r&&r.length?R.jsx("div",{className:V(AC.container,"chat__poweredBy"),children:R.jsx(Yn,{options:{overrides:{a:PC}},children:r})}):null},DC="_container_rkqaf_1",MC="_formContainer_rkqaf_14",FC="_emailInput_rkqaf_19",LC="_description_rkqaf_48",BC="_actions_rkqaf_53",jC="_validationError_rkqaf_63",zC="_submitted_rkqaf_70",bn={container:DC,formContainer:MC,emailInput:FC,description:LC,actions:BC,validationError:jC,submitted:zC},UC=({visible:e,methods:r,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=Pt(),[d,h]=B.useState(void 0),[p,_]=B.useState(!1),[y,b]=B.useState(!1),[m,E]=B.useState(void 0),v=B.useRef(null);B.useEffect(()=>{var N;e?((N=v.current)==null||N.focus(),_(!1),b(!1),h(e)):d===!0&&h(!1)},[e,d]);const w=N=>{N.preventDefault(),m&&m.length>0&&(i(m),_(!0),setTimeout(l,3*1e3))},C=N=>{const S=N.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(S);E(k?S:"")},O=()=>{b(!0),s(),setTimeout(l,3*1e3)};return R.jsxs("div",{className:V(bn.container,Cn.bottomSheet,{[Cn.bottomSheetOpen]:d===!0,[Cn.bottomSheetClose]:d===!1}),children:[r.pdf&&R.jsxs(R.Fragment,{children:[R.jsx("h2",{children:u("export-transcript.pdf.title")}),R.jsx(Yn,{className:bn.description,children:u("export-transcript.pdf.description")||""}),R.jsxs("div",{className:bn.actions,children:[R.jsx("button",{type:"button",className:V(it.button,it.buttonDefault),onClick:l,children:u("export-transcript.pdf.cancel")}),R.jsx("button",{className:V(it.button,it.buttonPrimary),onClick:O,disabled:y,children:u("export-transcript.pdf.download")})]})]}),r.email&&R.jsxs(R.Fragment,{children:[R.jsx("h2",{children:u("export-transcript.email.title")}),R.jsx(Yn,{className:bn.description,children:u("export-transcript.email.description")||""}),R.jsxs("form",{onSubmit:w,className:bn.formContainer,children:[R.jsxs("div",{children:[R.jsx("input",{disabled:p,ref:v,type:"email",placeholder:u("export-transcript.email.placeholder"),className:bn.emailInput,onChange:C}),(m==null?void 0:m.length)===0?R.jsx("div",{className:bn.validationError,children:u("export-transcript.email.invalid")}):null]}),R.jsxs("div",{className:bn.actions,children:[R.jsx("button",{type:"button",className:V(it.button,it.buttonDefault),onClick:l,children:u("export-transcript.email.cancel")}),R.jsx("button",{type:"submit",disabled:p||m===void 0||m.length===0,className:V(it.button,it.buttonPrimary),children:u("export-transcript.email.send")})]})]}),p&&R.jsx("div",{className:bn.submitted,children:u("export-transcript.email.success")})]})]})},HC="_inputContainer_1px77_1",GC={inputContainer:HC},$C="_blockUserInput_rv0dg_1",qC={blockUserInput:$C,"append-animate":"_append-animate_rv0dg_1"},VC=({visible:e})=>{const r=Pt();return e?R.jsx("div",{className:V(qC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},WC="_container_318uy_1",XC="_commands_318uy_5",QC="_command_318uy_5",KC="_commandActive_318uy_40",Ls={container:WC,commands:XC,command:QC,commandActive:KC},YC=(e,r)=>{B.useEffect(()=>{const i=s=>{e.current&&!e.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[e,r])},ZC=(e,r,i,s,l)=>{B.useEffect(()=>{const u=d=>{if(e.length)switch(d.key){case"Enter":i(e[r]);break;case"ArrowUp":s(h=>h>0?h-1:e.length-1);break;case"ArrowDown":s(h=>h<e.length-1?h+1:0);break;case"Escape":l([]);break}};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[e,r,i,s,l])},JC=({text:e,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const l=B.useRef(null),u=Pt(),[d,h]=B.useState([]),[p,_]=B.useState(hg(r)),[y,b]=B.useState(0),m=E=>i(`/${E}`);return YC(l,()=>h([])),ZC(d,y,m,b,h),B.useEffect(()=>{_(hg(r))},[r]),B.useEffect(()=>{const E=e.length||0;E===0||E>p||!e.startsWith("/")?h([]):h(r.filter(e2(e))),b(0)},[r,e,p]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?R.jsx("div",{ref:l,className:Ls.container,children:R.jsx("ul",{className:Ls.commands,role:"listbox",children:d.map((E,v)=>R.jsxs("li",{className:V([Ls.command,y===v&&Ls.commandActive]),role:"option",onClick:()=>m(E),onMouseOver:()=>b(v),children:[R.jsxs("h1",{children:["/",E]}),R.jsx("p",{children:u(`commands.${E}`)})]},E))})}):null},hg=e=>Math.max(...e.map(r=>r.length+1)),e2=e=>r=>{const i=`/${r}`;return i.startsWith(e)&&i.length>=e.length},t2="_callToActionContainer_czz0p_1",n2="_callToActionTitle_czz0p_24",r2="_rateOverlay_czz0p_31",i2="_body_czz0p_50",o2="_footer_czz0p_58",s2="_actions_czz0p_73",a2="_bubbles_czz0p_85",l2="_rateFeedbackBotBubble_czz0p_112",u2="_rateFeedbackGuestBubble_czz0p_118",c2="_avatar_czz0p_124",f2="_fadeInLeft_czz0p_1",d2="_bubble_czz0p_85",h2="_appear_czz0p_1",p2="_botBubble_czz0p_150",m2="_guestBubble_czz0p_160",g2="_rateText_czz0p_176",y2="_stars_czz0p_181",v2="_starsSmall_czz0p_194",_2="_starsLarge_czz0p_198",E2="_star_czz0p_181",S2="_starReadonly_czz0p_215",b2="_starIcon_czz0p_223",w2="_starsDescriptionContainer_czz0p_241",x2="_starsDescription_czz0p_241",ht={callToActionContainer:t2,"append-animate":"_append-animate_czz0p_1",callToActionTitle:n2,rateOverlay:r2,body:i2,footer:o2,actions:s2,bubbles:a2,rateFeedbackBotBubble:l2,rateFeedbackGuestBubble:u2,avatar:c2,fadeInLeft:f2,bubble:d2,appear:h2,botBubble:p2,guestBubble:m2,rateText:g2,stars:y2,starsSmall:v2,starsLarge:_2,star:E2,starReadonly:S2,starIcon:b2,starsDescriptionContainer:w2,starsDescription:x2},T2=({value:e,index:r,count:i,readonly:s,onHover:l,onClick:u})=>{const d=h=>{u&&h.key==="Enter"&&u()};return R.jsx("li",{className:V(ht.star,{[ht.starReadonly]:s},"chat__conversationRating__star"),children:R.jsx("div",{role:"radio","aria-checked":e>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:l,onKeyDown:d,onClick:u,children:R.jsx("span",{role:"img","aria-label":"Star",className:V(ht.starIcon),children:R.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:R.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"})})})})})},pg=5,kv=({value:e,size:r,readonly:i=!1,onChange:s})=>{const[l,u]=B.useState(void 0),d=()=>{u(void 0)},h=_=>()=>{if(!i){const y=_+1;u(y)}},p=_=>()=>{s&&!i&&(s(_===0&&e===1?0:_+1),u(void 0))};return R.jsx("ul",{tabIndex:0,role:"radiogroup",className:V(ht.stars,{[ht.starsSmall]:r==="small",[ht.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(pg).fill(0).map((_,y)=>R.jsx(T2,{value:l===void 0?e:l,index:y,count:pg,readonly:i,onHover:h(y),onClick:p(y)},y))})},C2=({visible:e,onRate:r})=>{const i=Pt();return e?R.jsxs("div",{className:V(ht.callToActionContainer,"chat__conversationRating__callToAction"),children:[R.jsx("div",{className:V(ht.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),R.jsx(kv,{value:0,size:"small",onChange:r})]}):null},mg=({isFirstMessageBySender:e,isLastMessageBySender:r,children:i})=>R.jsxs("div",{className:V(he.message,he.messageBot,e&&he.messageBotFirst,r&&he.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[R.jsx("img",{className:V(he.avatar,he.botAvatar),src:"bot.svg",alt:"Bot"}),R.jsx("div",{className:V(he.bubble,he.bubbleLeft,"chat__bubble","chat__botBubble"),children:R.jsx("div",{className:V(he.leftText,he.bubbleContent),children:i})})]}),k2=({children:e})=>R.jsx("div",{className:V(he.message,he.messageGuest,he.messageGuestFirst,he.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:R.jsx("div",{className:V(he.bubble,he.bubbleRight,"chat__bubble","chat__guestBubble"),children:R.jsx("div",{className:V(he.rightText,he.bubbleContent),children:e})})}),R2=({visible:e,rating:r,onRate:i,onClose:s})=>{const l=Pt(),[u,d]=B.useState(r),[h,p]=B.useState(void 0),[_,y]=B.useState(void 0),[b,m]=B.useState({submitted:!1,feedback:""}),[E,v]=B.useState(!1),w=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):_===!0&&y(!1)},[e,_]),B.useEffect(()=>{d(r)},[r]),B.useEffect(()=>{const O=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(O!=null&&O.length?O:void 0)},[u,l]),B.useEffect(()=>{b.submitted?setTimeout(()=>v(!0),b.feedback.length?500:0):v(!1)},[b]);const C=O=>{var S,k;O.preventDefault();const N=((k=(S=w.current)==null?void 0:S.value)==null?void 0:k.trim())||"";i(u,N),m({submitted:!0,feedback:N})};return R.jsx("div",{className:V(ht.rateOverlay,Cn.bottomSheet,"chat__conversationRating__overlay",{[Cn.bottomSheetOpen]:_===!0,[Cn.bottomSheetClose]:_===!1}),children:R.jsxs("form",{onSubmit:C,children:[R.jsxs("div",{className:V(ht.body,"chat__conversationRating__overlay__body"),children:[R.jsxs("div",{children:[R.jsx("h2",{children:l("conversation-rating.overlay.title")}),R.jsxs("div",{className:V(ht.starsDescriptionContainer),children:[R.jsx(kv,{value:u,size:"large",readonly:b.submitted,onChange:d}),R.jsxs("div",{className:V(ht.starsDescription),children:[R.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),R.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),R.jsx("div",{className:V(ht.bubbles),children:e&&h&&R.jsxs(R.Fragment,{children:[R.jsx(mg,{isFirstMessageBySender:!0,isLastMessageBySender:!E||!!b.feedback.length,children:R.jsx("div",{children:h})}),!!b.feedback.length&&R.jsx(k2,{children:b.feedback}),E&&R.jsx(mg,{isFirstMessageBySender:!!b.feedback.length,isLastMessageBySender:!0,children:R.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),R.jsxs("div",{className:V(ht.footer,"chat__conversationRating__overlay__footer"),children:[!b.submitted&&R.jsx("input",{ref:w,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),R.jsx("div",{className:V(ht.actions,"chat__conversationRating__overlay__footer__actions"),children:b.submitted?R.jsx("button",{type:"button",className:V(it.button,it.buttonPrimary),onClick:s,children:l("conversation-rating.overlay.action.close")}):R.jsx("button",{type:"submit",className:V(it.button,it.buttonPrimary),children:l("conversation-rating.overlay.action.submit")})})]})]})})},O2=({conversationRating:{enabled:e,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[d,h]=B.useState(0),p=b=>{h(b),l(!0)},_=()=>l(!1),y=!r&&i>=1;return e?R.jsxs(R.Fragment,{children:[R.jsx(C2,{visible:y,onRate:p}),R.jsx(R2,{visible:s,rating:d,onRate:u,onClose:_})]}):null},N2="_inputWrapper_1o8hf_5",A2="_messageInputWrapper_1o8hf_14",P2="_messageInput_1o8hf_14",I2="_buttons_1o8hf_36",D2="_button_1o8hf_36",Xr={inputWrapper:N2,messageInputWrapper:A2,messageInput:P2,buttons:I2,button:D2},M2="_audioRecorder_xps9k_5",F2="_recordButton_xps9k_10",L2="_submitButton_xps9k_37",B2="_cancelButton_xps9k_64",j2="_recorderIcon_xps9k_91",z2="_pulse_xps9k_1",U2="_spinning_xps9k_113",H2="_spin_xps9k_113",mr={audioRecorder:M2,recordButton:F2,submitButton:L2,cancelButton:B2,recorderIcon:j2,pulse:z2,spinning:U2,spin:H2},gg=2048,ea=16e3;class G2 extends xn.Component{constructor(i){super(i);we(this,"audioInput",null);we(this,"volume",null);we(this,"leftchannel",[]);we(this,"recorder",null);we(this,"recordingLength",0);we(this,"sampleRate",null);we(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const s=window.AudioContext||window.webkitAudioContext,l=new s;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(gg,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const s=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(s)),this.recordingLength+=gg}}handleClickSubmitAudio(){const i=q2(this.leftchannel,this.recordingLength),s=V2(i,this.sampleRate||0),l=$2(s);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){var i,s,l,u;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(s=this.volume)==null||s.disconnect(),(l=this.recorder)==null||l.disconnect(),this.mediaStream&&((u=this.mediaStream)==null||u.getAudioTracks().forEach(d=>{d.stop()}))}render(){return R.jsxs("div",{className:mr.audioRecorder,children:[this.state.recordingState==="none"&&R.jsx("button",{className:V(mr.recordButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.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"}),R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&R.jsxs("svg",{className:mr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.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"}),R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&R.jsxs("div",{className:mr.audioRecorder,children:[R.jsx("button",{className:V(mr.cancelButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.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"}),R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),R.jsx("div",{className:mr.recorderIcon}),R.jsx("button",{className:V(mr.submitButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),R.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const $2=e=>{const r=new ArrayBuffer(44+e.length*2),i=new DataView(r);Bs(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),Bs(i,8,"WAVE"),Bs(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,ea,!0),i.setUint32(28,ea*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Bs(i,36,"data"),i.setUint32(40,e.length*2,!0);const s=e.length;let l=44;const u=1;for(let d=0;d<s;d++)i.setInt16(l,e[d]*(32767*u),!0),l+=2;return new Blob([i],{type:"audio/wav"})},Bs=(e,r,i)=>{for(let s=0;s<i.length;s++)e.setUint8(r+s,i.charCodeAt(s))},q2=(e,r)=>{const i=new Float32Array(r);let s=0;const l=e.length;for(let u=0;u<l;u++){const d=e[u];i.set(d,s),s+=d.length}return i},V2=(e,r)=>{if(ea===r)return e;const i=r/ea,s=Math.round(e.length/i),l=new Float32Array(s);let u=0,d=0;for(;u<l.length;){const h=Math.round((u+1)*i);let p=0,_=0;for(let y=d;y<h&&y<e.length;y++)p+=e[y],_++;l[u]=p/_,u++,d=h}return l},W2=({speechSupport:e,transcriptExportEnabled:r,disabled:i,textInput:s,commandsVisible:l,onTextInput:u,onTextInputSubmit:d,onAudioRecorded:h,onOpenTranscriptExportModal:p})=>{const _=Pt(),y=B.useRef(null);B.useEffect(()=>{var w;(w=y.current)==null||w.focus()},[s]);const b=()=>{const w=y.current;w&&s.trim().length>=1&&d(s.trim())&&(w.value="",w.style.height="",w.focus())},m=w=>{w.preventDefault(),b()},E=w=>{const C=w.target.value;u(C),w.target.style.height="";const{scrollHeight:O}=w.target;w.target.style.height=`${O>150?150:O}px`},v=w=>{w.code==="Enter"&&!w.shiftKey?(w.repeat||b(),w.preventDefault()):l&&(w.code==="ArrowUp"||w.code==="ArrowDown")&&w.preventDefault()};return R.jsxs("form",{className:V(Xr.inputWrapper,"chat__textInput"),onSubmit:m,children:[R.jsx("div",{className:Xr.messageInputWrapper,children:R.jsx("textarea",{id:"user_input",ref:y,className:Xr.messageInput,tabIndex:0,placeholder:_("message-input-placeholder"),value:s,onChange:E,onKeyDown:v,"aria-label":_("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),R.jsxs("div",{className:V(Xr.buttons,"chat__buttons"),children:[!s.length&&r&&R.jsx("button",{type:"button",className:V(Xr.button,"chat__button"),"aria-label":_("message-input.actions.export-transcript.label"),"data-title":_("message-input.actions.export-transcript.label"),tabIndex:0,onClick:p,children:R.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:R.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?R.jsx("button",{className:V(Xr.button,"chat__button"),type:"submit","aria-label":_("message-input.actions.submit.label"),"data-title":_("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:R.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:R.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&&R.jsx(G2,{translate:_,onAudioRecorded:h})]})]})},X2="_quickReplies_11l22_1",Q2="_quickReply_11l22_9",yg={quickReplies:X2,quickReply:Q2},K2=({quickReplies:e,onQuickReplyClick:r})=>e.length?R.jsx("div",{className:V(yg.quickReplies,"chat__quickReplies"),children:e.map(i=>R.jsx("button",{tabIndex:0,className:V(yg.quickReply,it.button,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,vg=5e3,Y2=1e3,Z2=({isBotTyping:e,quickReplies:r,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:d,commands:h,setShowRatingOverlay:p,onTextInput:_,onRate:y,onQuickReplyClick:b,onAudioRecorded:m,onOpenTranscriptExportModal:E})=>{const[v,w]=B.useState(""),[C,O]=B.useState(!1),[N,S]=B.useState(!1),k=B.useRef(),x=B.useRef(0);B.useEffect(()=>{if(C&&!e){const q=k.current?Date.now()-k.current:0;q>vg?O(!1):setTimeout(()=>{O(!1)},vg-q)}},[C,e]),B.useEffect(()=>{C&&(k.current=Date.now())},[C]);const L=q=>{const fe=Date.now()-x.current<Y2;return N?!1:e||fe?(O(!0),!1):(_(q),w(""),x.current=Date.now(),!0)},G=q=>{w(q+" ")};return R.jsxs("div",{className:V(GC.inputContainer),children:[R.jsx(K2,{quickReplies:r,onQuickReplyClick:b}),R.jsx(VC,{visible:C}),!C&&R.jsx(O2,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:y,showRatingOverlay:d,setShowRatingOverlay:p}),(h==null?void 0:h.length)&&R.jsx(JC,{text:v,commands:h,onSelectCommand:G,onVisibilityChange:S}),R.jsx(W2,{textInput:v,speechSupport:i,transcriptExportEnabled:s,disabled:C,commandsVisible:N,onTextInput:w,onTextInputSubmit:L,onOpenTranscriptExportModal:E,onAudioRecorded:m})]})},J2=({clientName:e,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:_,onMessageFromUser:y,onRate:b,onQuickReplyClick:m,onButtonClick:E,onLinkClick:v,onAudioRecorded:w,onTranscriptExport:C,onPdfExport:O,onTranscriptItemReaction:N})=>{const S=qc(),k=_r(oe=>oe.connection.connectionState),[x,L]=B.useState(!1),[G,q]=B.useState(!1),fe=d.email||d.pdf,te=r.filter(oe=>oe.sender.type===tv.GUEST).length;return B.useEffect(()=>{if(k===vr.CONNECTED){const oe=Xc.parse(window.location.search);S(ev(e,oe))}},[e,k,S]),R.jsxs("div",{children:[R.jsxs("div",{className:`${jw.chatcontent} ${x||G?it.accessabilityHidden:""}`,children:[R.jsx(bC,{messages:r,isBotTyping:s,showGeneralConditions:p,commands:_,onButtonClick:E,onLinkClick:v,onTranscriptItemReaction:N}),R.jsx(Z2,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:te,speechSupport:u,transcriptExportEnabled:fe,conversationRating:x?{enabled:!1}:h,showRatingOverlay:G,setShowRatingOverlay:q,commands:_,onRate:b,onQuickReplyClick:m,onTextInput:y,onAudioRecorded:w,onOpenTranscriptExportModal:()=>L(!x)}),R.jsx(IC,{})]}),fe&&R.jsx(UC,{methods:d,visible:x,onEmailExport:C,onPdfExport:O,onClose:()=>L(!1)}),R.jsx(OC,{contentUrl:l})]})},ek=e=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:_}=e.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:_}},tk=e=>({onRestartChat:(r,i)=>e(mf(r,i)),onMessageFromUser:r=>e(Dy(r)),onRate:(r,i)=>e(kb(r,i)),onAudioRecorded:r=>e(vb(r)),onActionFromUser:r=>e(r),onQuickReplyClick:r=>e(Iy(r)),onNluEvent:r=>e(Ly(r)),onButtonClick:r=>e(Ob(r)),onLinkClick:r=>e(Nb(r)),onTranscriptExport:r=>e(bb(r)),onPdfExport:()=>e(Tb()),onTranscriptItemReaction:(r,i)=>e(ge.transcriptItemGuestReaction(r,i||null))}),nk=K1(ek,tk)(J2),rk="_chatwindow_phukm_1",ik="_chatcontent_phukm_13",ok={chatwindow:rk,chatcontent:ik},sk="_container_ophni_2",ak="_body_ophni_8",lk="_intro_ophni_13",uk="_footer_ophni_34",ck="_startChatButton_ophni_38",fk="_formFields_ophni_42",dk="_formField_ophni_42",hk="_radio_ophni_54",pk="_checkbox_ophni_61",mk="_input_ophni_69",gk="_inputLabel_ophni_99",yk="_selectWrapper_ophni_103",vk="_select_ophni_103",_k="_selectLabel_ophni_145",pt={container:sk,body:ak,intro:lk,footer:uk,startChatButton:ck,formFields:fk,formField:dk,radio:hk,checkbox:pk,input:mk,inputLabel:gk,selectWrapper:yk,select:vk,selectLabel:_k},Ek=({name:e,label:r,defaultValue:i,required:s,onChange:l})=>{const u=d=>{l(d.currentTarget.checked?"true":"false")};return R.jsxs("label",{className:V(pt.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[R.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),R.jsx("div",{children:r})]})},Sk=({type:e,name:r,label:i,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:_,onChange:y})=>{const b=m=>{y(m.target.value)};return R.jsxs("label",{className:V(pt.input,"chat__startScreen__input"),htmlFor:r,children:[R.jsx("div",{className:V(pt.inputLabel),children:i}),R.jsx("input",{type:e,id:r,name:r,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:_,onChange:b})]})},bk=({name:e,value:r,label:i,defaultChecked:s,required:l,onChange:u})=>{const d=`${e}-${r}`,h=p=>{u(p.target.value)};return R.jsxs("label",{className:V(pt.radio,"chat__startScreen__radio"),htmlFor:d,children:[R.jsx("input",{id:d,type:"radio",name:e,value:r,defaultChecked:s,required:l,onChange:h}),R.jsx("span",{className:V(pt.label),children:i})]})},wk=({name:e,label:r,defaultValue:i,required:s,multiple:l,options:u,onChange:d})=>{const h=p=>{d(p.target.value)};return R.jsxs("label",{className:V(pt.select,"chat__startScreen__select"),htmlFor:e,children:[R.jsx("div",{className:V(pt.selectLabel),children:r}),R.jsx("div",{className:V(pt.selectWrapper),children:R.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,_])=>R.jsx("option",{value:p,selected:_===i,children:_}))})})]})},xk="start-screen.intro",Tk="start-screen.start-chat",Yt="start-screen.form",_g=`${Yt}.fields`,Ck=()=>{const e=Pt(),r=qc(),[i,s]=B.useState({}),l=()=>{const y=Object.entries(i).reduce((b,[m,E])=>({...b,[m]:E.value}),{});r(yw(y))},u=e(xk),d=e(Tk),h=B.useMemo(()=>{var y;return((y=e(_g))==null?void 0:y.split(";").map(b=>b.trim()))??[]},[e(_g)]);B.useEffect(()=>{h.length&&Object.keys(i).length===0&&s(h.reduce((y,b)=>({...y,[b]:Rk(b,e)}),{}))},[e,h,i]);const p=y=>{y.preventDefault(),l()},_=y=>b=>{s(m=>({...m,[y]:{...m[y],value:b}}))};return R.jsxs("form",{onSubmit:p,className:V(pt.container,"chat__startScreen"),children:[R.jsxs("div",{className:V(pt.body,"chat__startScreen__body"),children:[u&&R.jsx("div",{className:V(pt.intro,"chat__startScreen__intro"),children:R.jsx(Yn,{options:{overrides:{a:kk}},children:u})}),R.jsx("div",{className:V(pt.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:y,name:b,label:m,placeholder:E,defaultValue:v,options:w,required:C,multiple:O,min:N,max:S,pattern:k})=>R.jsx("div",{className:V(pt.formField,"chat__startScreen__field"),children:(()=>{switch(y){case"radio":return R.jsxs(R.Fragment,{children:[R.jsx("div",{children:m}),Object.entries(w||{}).map(([x,L])=>R.jsx(bk,{name:b,value:x,label:L,defaultChecked:x===v,required:C,onChange:_(b)}))]});case"checkbox":return R.jsx(Ek,{name:b,label:m,defaultValue:v,required:C,onChange:_(b)});case"select":return R.jsx(wk,{name:b,label:m,defaultValue:v,required:C,multiple:O,options:w,onChange:_(b)});default:return R.jsx(Sk,{type:y,name:b,label:m,placeholder:E,defaultValue:v,required:C,multiple:O,min:N,max:S,pattern:k,onChange:_(b)})}})()},b))})]}),R.jsx("div",{className:V(pt.footer,"chat__startScreen__footer"),children:R.jsx("button",{type:"submit",className:V(it.button,it.buttonPrimary,pt.startChatButton),children:d})})]})},kk=({title:e,href:r,children:i})=>R.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),Rk=(e,r)=>{const i=r(`${Yt}.${e}.type`)||"text",s=r(`${Yt}.${e}.required`)==="true",l=r(`${Yt}.${e}.multiple`)==="true",u=r(`${Yt}.${e}.placeholder`),d=r(`${Yt}.${e}.label`)||"",h=r(`${Yt}.${e}.defaultValue`),p=r(`${Yt}.${e}.min`),_=r(`${Yt}.${e}.max`),y=r(`${Yt}.${e}.pattern`),b=Nk(r(`${Yt}.${e}.options`));return{name:e,label:d,placeholder:u,value:Ok(i,h,b)||"",defaultValue:h,options:b,type:i,required:s,multiple:l,min:p,max:_,pattern:y}},Ok=(e,r,i)=>r||e==="select"&&Object.keys(i)[0]||"",Nk=(e="")=>e.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...r,[s]:l}},{}),Ak=()=>{const e=ra();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Qr={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"},Pk=({clientName:e})=>{Ak();const r=qc(),i=_r(y=>y.intl.messages),s=Pt(),l=_r(y=>y.startScreen.useStartScreen),u=_r(y=>y.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const y=Xc.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const b=m=>{switch(m.data.type){case Qr.TRIGGER_ACTION:r(m.data.action);break;case Qr.TRIGGER_STORY:r(Ly(m.data.story));break;case Qr.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Qr.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Qr.CHAT_MESSAGE_FROM_GUEST:r(Dy(m.data.text));break;case Qr.RESTART_CHAT:r(mf(e,y));break}};return r(Cw(e,y)),window.addEventListener("message",m=>b(m),!1),()=>window.removeEventListener("message",b)},[e,r]),B.useEffect(()=>{const y=s("header.restart-chat"),b=s("header.close-chat");r(Ab({header:{restartChat:y,closeChat:b}}))},[i,r,s]);const p=l===void 0,_=l===!1||u==="HIDDEN";return R.jsx("div",{className:V(ok.chatwindow,"chat__chatwindow",d),children:p?null:_?R.jsx(nk,{clientName:e}):R.jsx(Ck,{})})},Ik=()=>{const e=wy(),r=_r(s=>s.intl.locale),i=_r(s=>s.intl.messages);return R.jsx(PS,{locale:r,messages:i,children:R.jsx("div",{className:DS.app,children:R.jsx(Pk,{clientName:e})})})};var Gu,Eg;function vf(){if(Eg)return Gu;Eg=1;function e(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Gu=e,Gu}var $u,Sg;function Dk(){if(Sg)return $u;Sg=1;var e=typeof hs=="object"&&hs&&hs.Object===Object&&hs;return $u=e,$u}var qu,bg;function Rv(){if(bg)return qu;bg=1;var e=Dk(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=e||r||Function("return this")();return qu=i,qu}var Vu,wg;function Mk(){if(wg)return Vu;wg=1;var e=Rv(),r=function(){return e.Date.now()};return Vu=r,Vu}var Wu,xg;function Fk(){if(xg)return Wu;xg=1;var e=/\s/;function r(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return Wu=r,Wu}var Xu,Tg;function Lk(){if(Tg)return Xu;Tg=1;var e=Fk(),r=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(r,"")}return Xu=i,Xu}var Qu,Cg;function Ov(){if(Cg)return Qu;Cg=1;var e=Rv(),r=e.Symbol;return Qu=r,Qu}var Ku,kg;function Bk(){if(kg)return Ku;kg=1;var e=Ov(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,l=e?e.toStringTag:void 0;function u(d){var h=i.call(d,l),p=d[l];try{d[l]=void 0;var _=!0}catch{}var y=s.call(d);return _&&(h?d[l]=p:delete d[l]),y}return Ku=u,Ku}var Yu,Rg;function jk(){if(Rg)return Yu;Rg=1;var e=Object.prototype,r=e.toString;function i(s){return r.call(s)}return Yu=i,Yu}var Zu,Og;function zk(){if(Og)return Zu;Og=1;var e=Ov(),r=Bk(),i=jk(),s="[object Null]",l="[object Undefined]",u=e?e.toStringTag:void 0;function d(h){return h==null?h===void 0?l:s:u&&u in Object(h)?r(h):i(h)}return Zu=d,Zu}var Ju,Ng;function Uk(){if(Ng)return Ju;Ng=1;function e(r){return r!=null&&typeof r=="object"}return Ju=e,Ju}var ec,Ag;function Hk(){if(Ag)return ec;Ag=1;var e=zk(),r=Uk(),i="[object Symbol]";function s(l){return typeof l=="symbol"||r(l)&&e(l)==i}return ec=s,ec}var tc,Pg;function Gk(){if(Pg)return tc;Pg=1;var e=Lk(),r=vf(),i=Hk(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function p(_){if(typeof _=="number")return _;if(i(_))return s;if(r(_)){var y=typeof _.valueOf=="function"?_.valueOf():_;_=r(y)?y+"":y}if(typeof _!="string")return _===0?_:+_;_=e(_);var b=u.test(_);return b||d.test(_)?h(_.slice(2),b?2:8):l.test(_)?s:+_}return tc=p,tc}var nc,Ig;function $k(){if(Ig)return nc;Ig=1;var e=vf(),r=Mk(),i=Gk(),s="Expected a function",l=Math.max,u=Math.min;function d(h,p,_){var y,b,m,E,v,w,C=0,O=!1,N=!1,S=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(_)&&(O=!!_.leading,N="maxWait"in _,m=N?l(i(_.maxWait)||0,p):m,S="trailing"in _?!!_.trailing:S);function k(ue){var ze=y,Pe=b;return y=b=void 0,C=ue,E=h.apply(Pe,ze),E}function x(ue){return C=ue,v=setTimeout(q,p),O?k(ue):E}function L(ue){var ze=ue-w,Pe=ue-C,$e=p-ze;return N?u($e,m-Pe):$e}function G(ue){var ze=ue-w,Pe=ue-C;return w===void 0||ze>=p||ze<0||N&&Pe>=m}function q(){var ue=r();if(G(ue))return fe(ue);v=setTimeout(q,L(ue))}function fe(ue){return v=void 0,S&&y?k(ue):(y=b=void 0,E)}function te(){v!==void 0&&clearTimeout(v),C=0,y=w=b=v=void 0}function oe(){return v===void 0?E:fe(r())}function pe(){var ue=r(),ze=G(ue);if(y=arguments,b=this,w=ue,ze){if(v===void 0)return x(w);if(N)return clearTimeout(v),v=setTimeout(q,p),k(w)}return v===void 0&&(v=setTimeout(q,p)),E}return pe.cancel=te,pe.flush=oe,pe}return nc=d,nc}var rc,Dg;function qk(){if(Dg)return rc;Dg=1;var e=$k(),r=vf(),i="Expected a function";function s(l,u,d){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(i);return r(d)&&(h="leading"in d?!!d.leading:h,p="trailing"in d?!!d.trailing:p),e(l,u,{leading:h,maxWait:u,trailing:p})}return rc=s,rc}var Vk=qk();const Wk=ta(Vk);var ic,Mg;function Xk(){if(Mg)return ic;Mg=1;function e(E,v){var w,C;if(typeof v=="function")C=v(E),C!==void 0&&(E=C);else if(Array.isArray(v))for(w=0;w<v.length;w++)C=v[w](E),C!==void 0&&(E=C);return E}function r(E,v){return E[0]==="-"&&Array.isArray(v)&&/^-\d+$/.test(E)?v.length+parseInt(E,10):E}function i(E){return/^\d+$/.test(E)}function s(E){return Object.prototype.toString.call(E)==="[object Object]"}function l(E){return Object(E)===E}function u(E){return Object.keys(E).length===0}var d=["__proto__","prototype","constructor"],h=function(E){return d.indexOf(E)===-1};function p(E,v){E.indexOf("[")>=0&&(E=E.replace(/\[/g,v).replace(/]/g,""));var w=E.split(v),C=w.filter(h);if(C.length!==w.length)throw Error("Refusing to update blacklisted property "+E);return w}var _=Object.prototype.hasOwnProperty;function y(E,v,w,C){if(!(this instanceof y))return new y(E,v,w,C);typeof v>"u"&&(v=!1),typeof w>"u"&&(w=!0),typeof C>"u"&&(C=!0),this.separator=E||".",this.override=v,this.useArray=w,this.useBrackets=C,this.keepArray=!1,this.cleanup=[]}var b=new y(".",!1,!0,!0);function m(E){return function(){return b[E].apply(b,arguments)}}return y.prototype._fill=function(E,v,w,C){var O=E.shift();if(E.length>0){if(v[O]=v[O]||(this.useArray&&i(E[0])?[]:{}),!l(v[O]))if(this.override)v[O]={};else{if(!(l(w)&&u(w)))throw new Error("Trying to redefine `"+O+"` which is a "+typeof v[O]);return}this._fill(E,v[O],w,C)}else{if(!this.override&&l(v[O])&&!u(v[O])){if(!(l(w)&&u(w)))throw new Error("Trying to redefine non-empty obj['"+O+"']");return}v[O]=e(w,C)}},y.prototype.object=function(E,v){var w=this;return Object.keys(E).forEach(function(C){var O=v===void 0?null:v[C],N=p(C,w.separator).join(w.separator);N.indexOf(w.separator)!==-1?(w._fill(N.split(w.separator),E,E[C],O),delete E[C]):E[C]=e(E[C],O)}),E},y.prototype.str=function(E,v,w,C){var O=p(E,this.separator).join(this.separator);return E.indexOf(this.separator)!==-1?this._fill(O.split(this.separator),w,v,C):w[E]=e(v,C),w},y.prototype.pick=function(E,v,w,C){var O,N,S,k,x;for(N=p(E,this.separator),O=0;O<N.length;O++)if(k=r(N[O],v),v&&typeof v=="object"&&k in v){if(O===N.length-1)return w?(S=v[k],C&&Array.isArray(v)?v.splice(k,1):delete v[k],Array.isArray(v)&&(x=N.slice(0,-1).join("."),this.cleanup.indexOf(x)===-1&&this.cleanup.push(x)),S):v[k];v=v[k]}else return;return w&&Array.isArray(v)&&(v=v.filter(function(L){return L!==void 0})),v},y.prototype.delete=function(E,v){return this.remove(E,v,!0)},y.prototype.remove=function(E,v,w){var C;if(this.cleanup=[],Array.isArray(E)){for(C=0;C<E.length;C++)this.pick(E[C],v,!0,w);return w||this._cleanup(v),v}else return this.pick(E,v,!0,w)},y.prototype._cleanup=function(E){var v,w,C,O;if(this.cleanup.length){for(w=0;w<this.cleanup.length;w++)C=this.cleanup[w].split("."),O=C.splice(0,-1).join("."),v=O?this.pick(O,E):E,v=v[C[0]].filter(function(N){return N!==void 0}),this.set(this.cleanup[w],v,E);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(E,v,w,C,O){return typeof C=="function"||Array.isArray(C)?this.set(v,e(this.pick(E,w,!0),C),w,O):(O=C,this.set(v,this.pick(E,w,!0),w,O)),w},y.prototype.transfer=function(E,v,w,C,O,N){return typeof O=="function"||Array.isArray(O)?this.set(v,e(this.pick(E,w,!0),O),C,N):(N=O,this.set(v,this.pick(E,w,!0),C,N)),C},y.prototype.copy=function(E,v,w,C,O,N){return typeof O=="function"||Array.isArray(O)?this.set(v,e(JSON.parse(JSON.stringify(this.pick(E,w,!1))),O),C,N):(N=O,this.set(v,this.pick(E,w,!1),C,N)),C},y.prototype.set=function(E,v,w,C){var O,N,S,k;if(typeof v>"u")return w;for(S=p(E,this.separator),O=0;O<S.length;O++){if(k=S[O],O===S.length-1)if(C&&s(v)&&s(w[k]))for(N in v)_.call(v,N)&&(w[k][N]=v[N]);else if(C&&Array.isArray(w[k])&&Array.isArray(v))for(var x=0;x<v.length;x++)w[S[O]].push(v[x]);else w[k]=v;else(!_.call(w,k)||!s(w[k])&&!Array.isArray(w[k]))&&(/^\d+$/.test(S[O+1])?w[k]=[]:w[k]={});w=w[k]}return w},y.prototype.transform=function(E,v,w){return v=v||{},w=w||{},Object.keys(E).forEach((function(C){this.set(E[C],this.pick(C,v),w)}).bind(this)),w},y.prototype.dot=function(E,v,w){v=v||{},w=w||[];var C=Array.isArray(E);return Object.keys(E).forEach((function(O){var N=C&&this.useBrackets?"["+O+"]":O;if(l(E[O])&&(s(E[O])&&!u(E[O])||Array.isArray(E[O])&&!this.keepArray&&E[O].length!==0))if(C&&this.useBrackets){var S=w[w.length-1]||"";return this.dot(E[O],v,w.slice(0,-1).concat(S+N))}else return this.dot(E[O],v,w.concat(N));else C&&this.useBrackets?v[w.join(this.separator).concat("["+O+"]")]=E[O]:v[w.concat(N).join(this.separator)]=E[O]}).bind(this)),v},y.pick=m("pick"),y.move=m("move"),y.transfer=m("transfer"),y.transform=m("transform"),y.copy=m("copy"),y.object=m("object"),y.str=m("str"),y.set=m("set"),y.delete=m("delete"),y.del=y.remove=m("remove"),y.dot=m("dot"),["override","overwrite"].forEach(function(E){Object.defineProperty(y,E,{get:function(){return b.override},set:function(v){b.override=!!v}})}),["useArray","keepArray","useBrackets"].forEach(function(E){Object.defineProperty(y,E,{get:function(){return b[E]},set:function(v){b[E]=v}})}),y._process=e,ic=y,ic}var Qk=Xk();const Nv={"message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
98
|
+
|
|
99
|
+
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
100
|
+
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.close-chat":"Chat minimieren"},Kk={"message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
101
|
+
|
|
102
|
+
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
103
|
+
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.close-chat":"Minimize chat"},Yk={"message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
104
|
+
|
|
105
|
+
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
106
|
+
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.close-chat":"Minimiser le chat"},Zk={"message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
107
|
+
|
|
108
|
+
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
109
|
+
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.close-chat":"Ridurre al minimo la chat"},Jk=["de","en","fr","it"],Av={locale:"de",messages:Nv},eR=(e,r)=>{if(Jk.includes(e)){const i=tR(e),s=Qk.dot(r);return{...i,...s}}return r},tR=e=>{switch(e.toString()){case"en":return Kk;case"fr":return Yk;case"it":return Zk;default:return Nv}},nR=(e=rR,r)=>{switch(r.type){case cf:return Object.assign({},e,{connectionState:vr.CONNECTING});case ff:return Object.assign({},e,{connectionState:vr.CONNECTED});case df:return Object.assign({},e,{connectionState:vr.DISCONNECTED});case hf:return Object.assign({},e,{connectionState:vr.RECONNECTED});case pf:return Object.assign({},e,{sessionId:r.sessionId});case ua:return Object.assign({},e,{sessionId:r.payload.sessionId,userId:r.payload.userId});case ca:return Object.assign({},e,{sessionId:void 0});default:return e}},rR={connectionState:vr.DISCONNECTED,sessionId:void 0,userId:void 0},iR=(e=Lg,r)=>{switch(r.type){case Jy:return Lg;case ua:return Kr({type:"webclient.chat.started"}),e;case ca:return Kr({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 Fg(e,r.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{Kr(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=e.messages.filter(l=>l._id===r.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:s?e.messages:e.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Yc:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:i,quickReplies:(s==null?void 0:s.quickReplies)||[]})}case ia:return Kr(r.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return Kr(r.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:r.payload.parameters.contentUrl});case ge.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case ge.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:r.payload.locale});case My:return Kr(r),e;case Jc:return Object.assign({},e,{speechSupport:!0});case tf:{const i=new ge.TextMessage(r.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Oc()});return Fg(e,s)}case ef:return Object.assign({},e,{transcriptExportEnabled:r.methods});case nf:return Object.assign({},e,{showGeneralConditions:!0});case ge.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=e.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,{reaction:r.payload.reaction}):s);return Object.assign({},e,{messages:i})}case rf:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},e,{conversationRating:i})}case ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...e.conversationRating,rating:r.payload};return Object.assign({},e,{conversationRating:i})}case of:return{...e,commands:r.payload.commands};default:return e}},Fg=(e,r)=>{const i=e.messages[e.messages.length-1],s=(i==null?void 0:i.text)===r.text;return i&&i.sender.type===r.sender.type&&s?e:Object.assign({},e,{messages:e.messages.concat([r]),quickReplies:[]})},Kr=e=>{var r;oR()?(r=window.top)==null||r.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},oR=()=>typeof window<"u"&&window.self!==window.top,Lg={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1},commands:[]},Pv=Yy({name:"intl",initialState:Av,reducers:{updateIntl:(e,r)=>{e.locale=r.payload.language,e.messages=r.payload.messages}}}),{updateIntl:sR}=Pv.actions,aR=Pv.reducer,lR=zy({chat:iR,startScreen:_w,connection:nR,intl:aR}),Iv="bf-webclient-state-last-saved-at",Dv="bf-webclient-state",uR=e=>{try{if(!dR())return;const r=Bg(e,Iv);if(fR(r))return;{const i=Bg(e,Dv);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},cR=(e,r)=>{try{const i=JSON.stringify(r);jg(e,Dv,i);const s=new Date().toISOString();jg(e,Iv,s)}catch(i){console.error(i)}},fR=e=>{if(e===null)return!1;const r=new Date(e);return r.setHours(r.getHours()+12),new Date>r},dR=()=>typeof localStorage<"u",Bg=(e,r)=>localStorage.getItem(`${e}_${r}`),jg=(e,r,i)=>localStorage.setItem(`${e}_${r}`,i),dn=Object.create(null);dn.open="0";dn.close="1";dn.ping="2";dn.pong="3";dn.message="4";dn.upgrade="5";dn.noop="6";const Gs=Object.create(null);Object.keys(dn).forEach(e=>{Gs[dn[e]]=e});const Pc={type:"error",data:"parser error"},Mv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Fv=typeof ArrayBuffer=="function",Lv=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_f=({type:e,data:r},i,s)=>Mv&&r instanceof Blob?i?s(r):zg(r,s):Fv&&(r instanceof ArrayBuffer||Lv(r))?i?s(r):zg(new Blob([r]),s):s(dn[e]+(r||"")),zg=(e,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(e)};function Ug(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let oc;function hR(e,r){if(Mv&&e.data instanceof Blob)return e.data.arrayBuffer().then(Ug).then(r);if(Fv&&(e.data instanceof ArrayBuffer||Lv(e.data)))return r(Ug(e.data));_f(e,!1,i=>{oc||(oc=new TextEncoder),r(oc.encode(i))})}const Hg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Hg.length;e++)Yi[Hg.charCodeAt(e)]=e;const pR=e=>{let r=e.length*.75,i=e.length,s,l=0,u,d,h,p;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);const _=new ArrayBuffer(r),y=new Uint8Array(_);for(s=0;s<i;s+=4)u=Yi[e.charCodeAt(s)],d=Yi[e.charCodeAt(s+1)],h=Yi[e.charCodeAt(s+2)],p=Yi[e.charCodeAt(s+3)],y[l++]=u<<2|d>>4,y[l++]=(d&15)<<4|h>>2,y[l++]=(h&3)<<6|p&63;return _},mR=typeof ArrayBuffer=="function",Ef=(e,r)=>{if(typeof e!="string")return{type:"message",data:Bv(e,r)};const i=e.charAt(0);return i==="b"?{type:"message",data:gR(e.substring(1),r)}:Gs[i]?e.length>1?{type:Gs[i],data:e.substring(1)}:{type:Gs[i]}:Pc},gR=(e,r)=>{if(mR){const i=pR(e);return Bv(i,r)}else return{base64:!0,data:e}},Bv=(e,r)=>{switch(r){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},jv="",yR=(e,r)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,d)=>{_f(u,!1,h=>{s[d]=h,++l===i&&r(s.join(jv))})})},vR=(e,r)=>{const i=e.split(jv),s=[];for(let l=0;l<i.length;l++){const u=Ef(i[l],r);if(s.push(u),u.type==="error")break}return s};function _R(){return new TransformStream({transform(e,r){hR(e,i=>{const s=i.length;let l;if(s<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,s);else if(s<65536){l=new Uint8Array(3);const u=new DataView(l.buffer);u.setUint8(0,126),u.setUint16(1,s)}else{l=new Uint8Array(9);const u=new DataView(l.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(l[0]|=128),r.enqueue(l),r.enqueue(i)})}})}let sc;function js(e){return e.reduce((r,i)=>r+i.length,0)}function zs(e,r){if(e[0].length===r)return e.shift();const i=new Uint8Array(r);let s=0;for(let l=0;l<r;l++)i[l]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),i}function ER(e,r){sc||(sc=new TextDecoder);const i=[];let s=0,l=-1,u=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(js(i)<1)break;const p=zs(i,1);u=(p[0]&128)===128,l=p[0]&127,l<126?s=3:l===126?s=1:s=2}else if(s===1){if(js(i)<2)break;const p=zs(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(js(i)<8)break;const p=zs(i,8),_=new DataView(p.buffer,p.byteOffset,p.length),y=_.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Pc);break}l=y*Math.pow(2,32)+_.getUint32(4),s=3}else{if(js(i)<l)break;const p=zs(i,l);h.enqueue(Ef(u?p:sc.decode(p),r)),s=0}if(l===0||l>e){h.enqueue(Pc);break}}}})}const zv=4;function We(e){if(e)return SR(e)}function SR(e){for(var r in We.prototype)e[r]=We.prototype[r];return e}We.prototype.on=We.prototype.addEventListener=function(e,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(r),this};We.prototype.once=function(e,r){function i(){this.off(e,i),r.apply(this,arguments)}return i.fn=r,this.on(e,i),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(e,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+e];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,l=0;l<i.length;l++)if(s=i[l],s===r||s.fn===r){i.splice(l,1);break}return i.length===0&&delete this._callbacks["$"+e],this};We.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+e],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,l=i.length;s<l;++s)i[s].apply(this,r)}return this};We.prototype.emitReserved=We.prototype.emit;We.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};We.prototype.hasListeners=function(e){return!!this.listeners(e).length};const da=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),jt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),bR="arraybuffer";function Uv(e,...r){return r.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const wR=jt.setTimeout,xR=jt.clearTimeout;function ha(e,r){r.useNativeTimers?(e.setTimeoutFn=wR.bind(jt),e.clearTimeoutFn=xR.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const TR=1.33;function CR(e){return typeof e=="string"?kR(e):Math.ceil((e.byteLength||e.size)*TR)}function kR(e){let r=0,i=0;for(let s=0,l=e.length;s<l;s++)r=e.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function Hv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function RR(e){let r="";for(let i in e)e.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r}function OR(e){let r={},i=e.split("&");for(let s=0,l=i.length;s<l;s++){let u=i[s].split("=");r[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return r}class NR extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class Sf extends We{constructor(r){super(),this.writable=!1,ha(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new NR(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=Ef(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=RR(r);return i.length?"?"+i:""}}class AR extends Sf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};vR(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,yR(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Hv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Gv=!1;try{Gv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const PR=Gv;function IR(){}class DR extends AR{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class cn extends We{constructor(r,i,s){super(),this.createRequest=r,ha(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=Uv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let l in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(l)&&s.setRequestHeader(l,this._opts.extraHeaders[l])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var l;s.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}typeof document<"u"&&(this._index=cn.requestsCount++,cn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=IR,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete cn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}cn.requestsCount=0;cn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Gg);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,Gg,!1)}}function Gg(){for(let e in cn.requests)cn.requests.hasOwnProperty(e)&&cn.requests[e].abort()}const MR=function(){const e=$v({xdomain:!1});return e&&e.responseType!==null}();class FR extends DR{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=MR&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new cn($v,this.uri(),r)}}function $v(e){const r=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||PR))return new XMLHttpRequest}catch{}if(!r)try{return new jt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const qv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class LR extends Sf{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=qv?{}:Uv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}catch(l){return this.emitReserved("error",l)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],l=i===r.length-1;_f(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&da(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Hv()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const ac=jt.WebSocket||jt.MozWebSocket;class BR extends LR{createSocket(r,i,s){return qv?new ac(r,i,s):i?new ac(r,i):new ac(r)}doWrite(r,i){this.ws.send(i)}}class jR extends Sf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=ER(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),l=_R();l.readable.pipeTo(r.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],l=i===r.length-1;this._writer.write(s).then(()=>{l&&da(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const zR={websocket:BR,webtransport:jR,polling:FR},UR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,HR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ic(e){if(e.length>8e3)throw"URI too long";const r=e,i=e.indexOf("["),s=e.indexOf("]");i!=-1&&s!=-1&&(e=e.substring(0,i)+e.substring(i,s).replace(/:/g,";")+e.substring(s,e.length));let l=UR.exec(e||""),u={},d=14;for(;d--;)u[HR[d]]=l[d]||"";return i!=-1&&s!=-1&&(u.source=r,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=GR(u,u.path),u.queryKey=$R(u,u.query),u}function GR(e,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function $R(e,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Dc=typeof addEventListener=="function"&&typeof removeEventListener=="function",$s=[];Dc&&addEventListener("offline",()=>{$s.forEach(e=>e())},!1);class Zn extends We{constructor(r,i){if(super(),this.binaryType=bR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const s=Ic(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=Ic(i.host).host);ha(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const l=s.prototype.name;this.transports.push(l),this._transportsByName[l]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=OR(this.opts.query)),Dc&&(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"})},$s.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=zv,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&Zn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Zn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const l=this.writeBuffer[s].data;if(l&&(i+=CR(l)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,da(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,l){if(typeof i=="function"&&(l=i,i=void 0),typeof s=="function"&&(l=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const u={type:r,data:i,options:s};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(Zn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Dc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=$s.indexOf(this._offlineEventListener);s!==-1&&$s.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}Zn.protocol=zv;class qR extends Zn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;Zn.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Zn.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=i.name,this.emitReserved("upgradeError",m)}}))};function u(){s||(s=!0,y(),i.close(),i=null)}const d=b=>{const m=new Error("probe error: "+b);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){d("transport closed")}function p(){d("socket closed")}function _(b){i&&b.name!==i.name&&u()}const y=()=>{i.removeListener("open",l),i.removeListener("error",d),i.removeListener("close",h),this.off("close",p),this.off("upgrading",_)};i.once("open",l),i.once("error",d),i.once("close",h),this.once("close",p),this.once("upgrading",_),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let VR=class extends qR{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(l=>zR[l]).filter(l=>!!l)),super(r,s)}};function WR(e,r="",i){let s=e;i=i||typeof location<"u"&&location,e==null&&(e=i.protocol+"//"+i.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=i.protocol+e:e=i.host+e),/^(https?|wss?):\/\//.test(e)||(typeof i<"u"?e=i.protocol+"//"+e:e="https://"+e),s=Ic(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const u=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+u+":"+s.port+r,s.href=s.protocol+"://"+u+(i&&i.port===s.port?"":":"+s.port),s}const XR=typeof ArrayBuffer=="function",QR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Vv=Object.prototype.toString,KR=typeof Blob=="function"||typeof Blob<"u"&&Vv.call(Blob)==="[object BlobConstructor]",YR=typeof File=="function"||typeof File<"u"&&Vv.call(File)==="[object FileConstructor]";function bf(e){return XR&&(e instanceof ArrayBuffer||QR(e))||KR&&e instanceof Blob||YR&&e instanceof File}function qs(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if(qs(e[i]))return!0;return!1}if(bf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return qs(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&qs(e[i]))return!0;return!1}function ZR(e){const r=[],i=e.data,s=e;return s.data=Mc(i,r),s.attachments=r.length,{packet:s,buffers:r}}function Mc(e,r){if(!e)return e;if(bf(e)){const i={_placeholder:!0,num:r.length};return r.push(e),i}else if(Array.isArray(e)){const i=new Array(e.length);for(let s=0;s<e.length;s++)i[s]=Mc(e[s],r);return i}else if(typeof e=="object"&&!(e instanceof Date)){const i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=Mc(e[s],r));return i}return e}function JR(e,r){return e.data=Fc(e.data,r),delete e.attachments,e}function Fc(e,r){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=Fc(e[i],r);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=Fc(e[i],r));return e}const eO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tO=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 nO{constructor(r){this.replacer=r}encode(r){return(r.type===Ee.EVENT||r.type===Ee.ACK)&&qs(r)?this.encodeAsBinary({type:r.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ee.BINARY_EVENT||r.type===Ee.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=ZR(r),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function $g(e){return Object.prototype.toString.call(e)==="[object Object]"}class wf extends We{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const s=i.type===Ee.BINARY_EVENT;s||i.type===Ee.BINARY_ACK?(i.type=s?Ee.EVENT:Ee.ACK,this.reconstructor=new rO(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(bf(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const s={type:Number(r.charAt(0))};if(Ee[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ee.BINARY_EVENT||s.type===Ee.BINARY_ACK){const u=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const d=r.substring(u,i);if(d!=Number(d)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(r.charAt(i+1)==="/"){const u=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(u,i)}else s.nsp="/";const l=r.charAt(i+1);if(l!==""&&Number(l)==l){const u=i+1;for(;++i;){const d=r.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===r.length)break}s.id=Number(r.substring(u,i+1))}if(r.charAt(++i)){const u=this.tryParse(r.substr(i));if(wf.isPayloadValid(s.type,u))s.data=u;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ee.CONNECT:return $g(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||$g(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&eO.indexOf(i[0])===-1);case Ee.ACK:case Ee.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class rO{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=JR(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const iO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:wf,Encoder:nO,get PacketType(){return Ee},protocol:tO},Symbol.toStringTag,{value:"Module"}));function Zt(e,r,i){return e.on(r,i),function(){e.off(r,i)}}const oO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Wv extends We{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[Zt(r,"open",this.onopen.bind(this)),Zt(r,"packet",this.onpacket.bind(this)),Zt(r,"error",this.onerror.bind(this)),Zt(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var s,l,u;if(oO.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ee.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,b=i.pop();this._registerAckCallback(y,b),d.id=y}const h=(l=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||l===void 0?void 0:l.writable,p=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!h||(p?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,i){var s;const l=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(l===void 0){this.acks[r]=i;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},l),d=(...h)=>{this.io.clearTimeoutFn(u),i.apply(this,h)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((s,l)=>{const u=(d,h)=>d?l(d):s(h);u.withError=!0,i.push(u),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((l,...u)=>s!==this._queue[0]?void 0:(l!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(l)):(this._queue.shift(),i&&i(null,...u)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ee.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(r);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(r);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let s=!1;return function(...l){s||(s=!0,i.packet({type:Ee.ACK,id:r,data:l}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,r.data)}}}function ti(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ti.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*e);e=Math.floor(r*10)&1?e+i:e-i}return Math.min(e,this.max)|0};ti.prototype.reset=function(){this.attempts=0};ti.prototype.setMin=function(e){this.ms=e};ti.prototype.setMax=function(e){this.max=e};ti.prototype.setJitter=function(e){this.jitter=e};class Lc extends We{constructor(r,i){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,ha(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new ti({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const l=i.parser||iO;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new VR(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Zt(i,"open",function(){s.onopen(),r&&r()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=Zt(i,"error",u);if(this._timeout!==!1){const h=this._timeout,p=this.setTimeoutFn(()=>{l(),u(new Error("timeout")),i.close()},h);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(l),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(Zt(r,"ping",this.onping.bind(this)),Zt(r,"data",this.ondata.bind(this)),Zt(r,"error",this.onerror.bind(this)),Zt(r,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){da(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new Wv(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(l=>{l?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",l)):r.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Qi={};function Vs(e,r){typeof e=="object"&&(r=e,e=void 0),r=r||{};const i=WR(e,r.path||"/socket.io"),s=i.source,l=i.id,u=i.path,d=Qi[l]&&u in Qi[l].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let p;return h?p=new Lc(s,r):(Qi[l]||(Qi[l]=new Lc(s,r)),p=Qi[l]),i.query&&!r.query&&(r.query=i.queryKey),p.socket(i.path,r)}Object.assign(Vs,{Manager:Lc,Socket:Wv,io:Vs,connect:Vs});const sO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...Tw,...yb,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],aO=({dispatch:e,getState:r})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===uf){s!=null&&s.disconnect(),e(Rw());const d=`/chat?${Xc.stringify(l.querystrings)}`;s=Vs(`/${l.clientName}${d}`),s.on("action",e),s.on("connect",()=>e(Ow())),s.on("disconnect",()=>e(Nw())),s.on("reconnect",()=>e(Aw())),s.on("set-use-start-screen",h=>{e(h?mw():gw())}),s.on("set-commands",(h=[])=>{e(xb(h))}),s.on("set-translations",(h,p)=>{e(sR({language:h,messages:eR(h,p)}))}),s.on("enable-speech-support",()=>e(_b())),s.on("enable-transcript-export",h=>e(Sb(h))),s.on("enable-conversation-rating",h=>e(Cb(h))),s.on("speech-transcription",h=>e(Eb(h))),s.on("restore-client-state",h=>{e(kw(h.sessionId)),e(Rb(h.messages))}),s.on("expand-window",({devices:h})=>e({type:My,devices:h})),s.on("show-general-conditions",()=>e(wb())),s.on("restart-chat",()=>{e(mf(l.clientName,l.querystrings))})}else if(l.type===ua)s==null||s.emit("start-chat",l.payload);else if(l.type===ca)s==null||s.emit("terminate-session",l.payload);else if(l.type===gb)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===Zc)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===Fy){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else sO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},Xv=wy(),lO={...uR(Xv),intl:Av},Bc=nw({middleware:e=>e().concat(aO),reducer:lR,preloadedState:lO});Bc.subscribe(Wk(()=>{const e=Bc.getState();cR(Xv,{connection:e.connection,startScreen:e.startScreen})},1e3));const uO=document.getElementById("root"),cO=t1.createRoot(uO);cO.render(R.jsx(Z1,{store:Bc,children:R.jsx(Ik,{})}));
|
|
110
|
+
//# sourceMappingURL=index-Civ1F2yz.js.map
|