@botfabrik/engine-webclient 4.77.4-alpha.8 → 4.78.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -46
- package/dist/client/assets/index-BiNNifhB.css +1 -0
- package/dist/client/assets/index-RyoFceI4.js +110 -0
- package/dist/client/assets/index-RyoFceI4.js.map +1 -0
- package/dist/client/favicon.ico +0 -0
- package/dist/client/index.html +3 -9
- package/dist/client/manifest.json +15 -0
- package/dist/client/play-button.png +0 -0
- package/dist/embed/bundle.js +51 -9
- package/dist/middleware/index.js +1 -1
- package/package.json +4 -4
- package/dist/client/apple-touch-icon.png +0 -0
- package/dist/client/assets/index-DUMnRcS3.js +0 -110
- package/dist/client/assets/index-DUMnRcS3.js.map +0 -1
- package/dist/client/assets/index-DZ1Z1q9_.css +0 -1
- package/dist/client/assets/undraw_fixing-bugs-D_eYxJc6.svg +0 -55
- package/dist/client/favicon-96x96.png +0 -0
- package/dist/client/favicon.svg +0 -3
- package/dist/client/site.webmanifest +0 -22
- package/dist/client/web-app-manifest-192x192.png +0 -0
- package/dist/client/web-app-manifest-512x512.png +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
var o1=Object.defineProperty;var s1=(e,r,i)=>r in e?o1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i;var be=(e,r,i)=>s1(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 f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).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 ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fu={exports:{}},zi={},du={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 bp;function a1(){if(bp)return me;bp=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"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=x&&D[x]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function R(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}R.prototype.isReactComponent={},R.prototype.setState=function(D,j){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,j,"setState")},R.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=R.prototype;function N(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}var b=N.prototype=new O;b.constructor=N,_(b,R.prototype),b.isPureReactComponent=!0;var k=Array.isArray,T=Object.prototype.hasOwnProperty,L={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function V(D,j,ce){var he,ye={},ve=null,ke=null;if(j!=null)for(he in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)T.call(j,he)&&!z.hasOwnProperty(he)&&(ye[he]=j[he]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),et=0;et<Te;et++)Re[et]=arguments[et+2];ye.children=Re}if(D&&D.defaultProps)for(he in Te=D.defaultProps,Te)ye[he]===void 0&&(ye[he]=Te[he]);return{$$typeof:e,type:D,key:ve,ref:ke,props:ye,_owner:L.current}}function fe(D,j){return{$$typeof:e,type:D.type,key:j,ref:D.ref,props:D.props,_owner:D._owner}}function te(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function oe(D){var j={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ce){return j[ce]})}var pe=/\/+/g;function ue(D,j){return typeof D=="object"&&D!==null&&D.key!=null?oe(""+D.key):j.toString(36)}function Ue(D,j,ce,he,ye){var ve=typeof D;(ve==="undefined"||ve==="boolean")&&(D=null);var ke=!1;if(D===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(D.$$typeof){case e:case r:ke=!0}}if(ke)return ke=D,ye=ye(ke),D=he===""?"."+ue(ke,0):he,k(ye)?(ce="",D!=null&&(ce=D.replace(pe,"$&/")+"/"),Ue(ye,j,ce,"",function(et){return et})):ye!=null&&(te(ye)&&(ye=fe(ye,ce+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+D)),j.push(ye)),1;if(ke=0,he=he===""?".":he+":",k(D))for(var Te=0;Te<D.length;Te++){ve=D[Te];var Re=he+ue(ve,Te);ke+=Ue(ve,j,ce,Re,ye)}else if(Re=m(D),typeof Re=="function")for(D=Re.call(D),Te=0;!(ve=D.next()).done;)ve=ve.value,Re=he+ue(ve,Te++),ke+=Ue(ve,j,ce,Re,ye);else if(ve==="object")throw j=String(D),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(D,j,ce){if(D==null)return D;var he=[],ye=0;return Ue(D,he,"","",function(ve){return j.call(ce,ve,ye++)}),he}function $e(D){if(D._status===-1){var j=D._result;j=j(),j.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce)},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce)}),D._status===-1&&(D._status=0,D._result=j)}if(D._status===1)return D._result.default;throw D._result}var Ne={current:null},W={transition:null},ne={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:L};function X(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(D,j,ce){Ie(D,function(){j.apply(this,arguments)},ce)},count:function(D){var j=0;return Ie(D,function(){j++}),j},toArray:function(D){return Ie(D,function(j){return j})||[]},only:function(D){if(!te(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},me.Component=R,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=X,me.cloneElement=function(D,j,ce){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var he=_({},D.props),ye=D.key,ve=D.ref,ke=D._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,ke=L.current),j.key!==void 0&&(ye=""+j.key),D.type&&D.type.defaultProps)var Te=D.type.defaultProps;for(Re in j)T.call(j,Re)&&!z.hasOwnProperty(Re)&&(he[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)he.children=ce;else if(1<Re){Te=Array(Re);for(var et=0;et<Re;et++)Te[et]=arguments[et+2];he.children=Te}return{$$typeof:e,type:D.type,key:ye,ref:ve,props:he,_owner:ke}},me.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:u,_context:D},D.Consumer=D},me.createElement=V,me.createFactory=function(D){var j=V.bind(null,D);return j.type=D,j},me.createRef=function(){return{current:null}},me.forwardRef=function(D){return{$$typeof:h,render:D}},me.isValidElement=te,me.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:$e}},me.memo=function(D,j){return{$$typeof:v,type:D,compare:j===void 0?null:j}},me.startTransition=function(D){var j=W.transition;W.transition={};try{D()}finally{W.transition=j}},me.unstable_act=X,me.useCallback=function(D,j){return Ne.current.useCallback(D,j)},me.useContext=function(D){return Ne.current.useContext(D)},me.useDebugValue=function(){},me.useDeferredValue=function(D){return Ne.current.useDeferredValue(D)},me.useEffect=function(D,j){return Ne.current.useEffect(D,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(D,j,ce){return Ne.current.useImperativeHandle(D,j,ce)},me.useInsertionEffect=function(D,j){return Ne.current.useInsertionEffect(D,j)},me.useLayoutEffect=function(D,j){return Ne.current.useLayoutEffect(D,j)},me.useMemo=function(D,j){return Ne.current.useMemo(D,j)},me.useReducer=function(D,j,ce){return Ne.current.useReducer(D,j,ce)},me.useRef=function(D){return Ne.current.useRef(D)},me.useState=function(D){return Ne.current.useState(D)},me.useSyncExternalStore=function(D,j,ce){return Ne.current.useSyncExternalStore(D,j,ce)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var xp;function Yr(){return xp||(xp=1,du.exports=a1()),du.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 Tp;function l1(){if(Tp)return zi;Tp=1;var e=Yr(),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 f(h,p,v){var y,x={},m=null,w=null;v!==void 0&&(m=""+v),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(w=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(x[y]=p[y]);if(h&&h.defaultProps)for(y in p=h.defaultProps,p)x[y]===void 0&&(x[y]=p[y]);return{$$typeof:r,type:h,key:m,ref:w,props:x,_owner:l.current}}return zi.Fragment=i,zi.jsx=f,zi.jsxs=f,zi}var Cp;function u1(){return Cp||(Cp=1,fu.exports=l1()),fu.exports}var E=u1(),vs={},hu={exports:{}},Et={},pu={exports:{}},mu={};/**
|
|
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 kp;function c1(){return kp||(kp=1,function(e){function r(W,ne){var X=W.length;W.push(ne);e:for(;0<X;){var D=X-1>>>1,j=W[D];if(0<l(j,ne))W[D]=ne,W[X]=j,X=D;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],X=W.pop();if(X!==ne){W[0]=X;e:for(var D=0,j=W.length,ce=j>>>1;D<ce;){var he=2*(D+1)-1,ye=W[he],ve=he+1,ke=W[ve];if(0>l(ye,X))ve<j&&0>l(ke,ye)?(W[D]=ke,W[ve]=X,D=ve):(W[D]=ye,W[he]=X,D=he);else if(ve<j&&0>l(ke,X))W[D]=ke,W[ve]=X,D=ve;else break e}}return ne}function l(W,ne){var X=W.sortIndex-ne.sortIndex;return X!==0?X:W.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],v=[],y=1,x=null,m=3,w=!1,_=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(W){for(var ne=i(v);ne!==null;){if(ne.callback===null)s(v);else if(ne.startTime<=W)s(v),ne.sortIndex=ne.expirationTime,r(p,ne);else break;ne=i(v)}}function k(W){if(S=!1,b(W),!_)if(i(p)!==null)_=!0,$e(T);else{var ne=i(v);ne!==null&&Ne(k,ne.startTime-W)}}function T(W,ne){_=!1,S&&(S=!1,O(V),V=-1),w=!0;var X=m;try{for(b(ne),x=i(p);x!==null&&(!(x.expirationTime>ne)||W&&!oe());){var D=x.callback;if(typeof D=="function"){x.callback=null,m=x.priorityLevel;var j=D(x.expirationTime<=ne);ne=e.unstable_now(),typeof j=="function"?x.callback=j:x===i(p)&&s(p),b(ne)}else s(p);x=i(p)}if(x!==null)var ce=!0;else{var he=i(v);he!==null&&Ne(k,he.startTime-ne),ce=!1}return ce}finally{x=null,m=X,w=!1}}var L=!1,z=null,V=-1,fe=5,te=-1;function oe(){return!(e.unstable_now()-te<fe)}function pe(){if(z!==null){var W=e.unstable_now();te=W;var ne=!0;try{ne=z(!0,W)}finally{ne?ue():(L=!1,z=null)}}else L=!1}var ue;if(typeof N=="function")ue=function(){N(pe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ie=Ue.port2;Ue.port1.onmessage=pe,ue=function(){Ie.postMessage(null)}}else ue=function(){R(pe,0)};function $e(W){z=W,L||(L=!0,ue())}function Ne(W,ne){V=R(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(){_||w||(_=!0,$e(T))},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 X=m;m=ne;try{return W()}finally{m=X}},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 X=m;m=W;try{return ne()}finally{m=X}},e.unstable_scheduleCallback=function(W,ne,X){var D=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?D+X:D):X=D,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=X+j,W={id:y++,callback:ne,priorityLevel:W,startTime:X,expirationTime:j,sortIndex:-1},X>D?(W.sortIndex=X,r(v,W),i(p)===null&&W===i(v)&&(S?(O(V),V=-1):S=!0,Ne(k,X-D))):(W.sortIndex=j,r(p,W),_||w||(_=!0,$e(T))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var ne=m;return function(){var X=m;m=ne;try{return W.apply(this,arguments)}finally{m=X}}}}(mu)),mu}var Rp;function f1(){return Rp||(Rp=1,pu.exports=c1()),pu.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 Op;function d1(){if(Op)return Et;Op=1;var e=Yr(),r=f1();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){f(t,n),f(t+"Capture",n)}function f(t,n){for(l[t]=n,t=0;t<n.length;t++)s.add(n[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},x={};function m(t){return p.call(x,t)?!0:p.call(y,t)?!1:v.test(t)?x[t]=!0:(y[t]=!0,!1)}function w(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 _(t,n,o,a){if(n===null||typeof n>"u"||w(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 S(t,n,o,a,c,d,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=d,this.removeEmptyString=g}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];R[n]=new S(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new S(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){R[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new S(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);R[n]=new S(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);R[n]=new S(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);R[n]=new S(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function b(t,n,o,a){var c=R.hasOwnProperty(n)?R[n]:null;(c!==null?c.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(_(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,T=Symbol.for("react.element"),L=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),oe=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),W=Symbol.iterator;function ne(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var X=Object.assign,D;function j(t){if(D===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);D=n&&n[1]||""}return`
|
|
34
|
-
`+D+t}var ce=!1;function he(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
|
-
`),d=a.stack.split(`
|
|
36
|
-
`),g=c.length-1,C=d.length-1;1<=g&&0<=C&&c[g]!==d[C];)C--;for(;1<=g&&0<=C;g--,C--)if(c[g]!==d[C]){if(g!==1||C!==1)do if(g--,C--,0>C||c[g]!==d[C]){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<=C);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=he(t.type,!1),t;case 11:return t=he(t.type.render,!1),t;case 1:return t=he(t.type,!0),t;default:return""}}function ve(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case L:return"Portal";case fe:return"Profiler";case V:return"StrictMode";case ue:return"Suspense";case Ue:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case 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 Ie:return n=t.displayName||null,n!==null?n:ve(t.type)||"Memo";case $e:n=t._payload,t=t._init;try{return ve(t(n))}catch{}}return null}function ke(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(n);case 8:return n===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function et(t){var n=Re(t)?"checked":"value",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,d=o.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,d.call(this,g)}}),Object.defineProperty(t,n,{enumerable: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=et(t))}function ct(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 Jt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function va(t,n){var o=n.checked;return X({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function Nf(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 Af(t,n){n=n.checked,n!=null&&b(t,"checked",n,!1)}function _a(t,n){Af(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")?Ea(t,n.type,o):n.hasOwnProperty("defaultValue")&&Ea(t,n.type,Te(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function If(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 Ea(t,n,o){(n!=="number"||Jt(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ri=Array.isArray;function xr(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 wa(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return X({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Df(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 Pf(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 Mf(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function Ff(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 Sa(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?Ff(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var lo,Lf=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(lo=lo||document.createElement("div"),lo.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=lo.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},uv=["Webkit","ms","Moz","O"];Object.keys(oi).forEach(function(t){uv.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),oi[n]=oi[t]})});function Bf(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 jf(t,n){t=t.style;for(var o in n)if(n.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Bf(o,n[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var cv=X({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 ba(t,n){if(n){if(cv[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 xa(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 Ta=null;function Ca(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ka=null,Tr=null,Cr=null;function Uf(t){if(t=ki(t)){if(typeof ka!="function")throw Error(i(280));var n=t.stateNode;n&&(n=Io(n),ka(t.stateNode,t.type,n))}}function Hf(t){Tr?Cr?Cr.push(t):Cr=[t]:Tr=t}function zf(){if(Tr){var t=Tr,n=Cr;if(Cr=Tr=null,Uf(t),n)for(t=0;t<n.length;t++)Uf(n[t])}}function Gf(t,n){return t(n)}function $f(){}var Ra=!1;function qf(t,n,o){if(Ra)return t(n,o);Ra=!0;try{return Gf(t,n,o)}finally{Ra=!1,(Tr!==null||Cr!==null)&&($f(),zf())}}function si(t,n){var o=t.stateNode;if(o===null)return null;var a=Io(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 Oa=!1;if(h)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){Oa=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{Oa=!1}function fv(t,n,o,a,c,d,g,C,A){var F=Array.prototype.slice.call(arguments,3);try{n.apply(o,F)}catch(H){this.onError(H)}}var li=!1,uo=null,co=!1,Na=null,dv={onError:function(t){li=!0,uo=t}};function hv(t,n,o,a,c,d,g,C,A){li=!1,uo=null,fv.apply(dv,arguments)}function pv(t,n,o,a,c,d,g,C,A){if(hv.apply(this,arguments),li){if(li){var F=uo;li=!1,uo=null}else throw Error(i(198));co||(co=!0,Na=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 Vf(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 Wf(t){if(er(t)!==t)throw Error(i(188))}function mv(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 d=c.alternate;if(d===null){if(a=c.return,a!==null){o=a;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===o)return Wf(c),t;if(d===a)return Wf(c),n;d=d.sibling}throw Error(i(188))}if(o.return!==a.return)o=c,a=d;else{for(var g=!1,C=c.child;C;){if(C===o){g=!0,o=c,a=d;break}if(C===a){g=!0,a=c,o=d;break}C=C.sibling}if(!g){for(C=d.child;C;){if(C===o){g=!0,o=d,a=c;break}if(C===a){g=!0,a=d,o=c;break}C=C.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 Zf(t){return t=mv(t),t!==null?Xf(t):null}function Xf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=Xf(t);if(n!==null)return n;t=t.sibling}return null}var Qf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,gv=r.unstable_shouldYield,yv=r.unstable_requestPaint,ze=r.unstable_now,vv=r.unstable_getCurrentPriorityLevel,Aa=r.unstable_ImmediatePriority,Yf=r.unstable_UserBlockingPriority,fo=r.unstable_NormalPriority,_v=r.unstable_LowPriority,Jf=r.unstable_IdlePriority,ho=null,en=null;function Ev(t){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(ho,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:bv,wv=Math.log,Sv=Math.LN2;function bv(t){return t>>>=0,t===0?32:31-(wv(t)/Sv|0)|0}var po=64,mo=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 go(t,n){var o=t.pendingLanes;if(o===0)return 0;var a=0,c=t.suspendedLanes,d=t.pingedLanes,g=o&268435455;if(g!==0){var C=g&~c;C!==0?a=ui(C):(d&=g,d!==0&&(a=ui(d)))}else g=o&~c,g!==0?a=ui(g):d!==0&&(a=ui(d));if(a===0)return 0;if(n!==0&&n!==a&&!(n&c)&&(c=a&-a,d=n&-n,c>=d||c===16&&(d&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 xv(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 Tv(t,n){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,d=t.pendingLanes;0<d;){var g=31-Ht(d),C=1<<g,A=c[g];A===-1?(!(C&o)||C&a)&&(c[g]=xv(C,n)):A<=n&&(t.expiredLanes|=C),d&=~C}}function Ia(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ed(){var t=po;return po<<=1,!(po&4194240)&&(po=64),t}function Da(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 Cv(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),d=1<<c;n[c]=0,a[c]=-1,t[c]=-1,o&=~d}}function Pa(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 td(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var nd,Ma,rd,id,od,Fa=!1,yo=[],On=null,Nn=null,An=null,fi=new Map,di=new Map,In=[],kv="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 sd(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,d){return t===null||t.nativeEvent!==d?(t={blockedOn:n,domEventName:o,eventSystemFlags:a,nativeEvent:d,targetContainers:[c]},n!==null&&(n=ki(n),n!==null&&Ma(n)),t):(t.eventSystemFlags|=a,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function Rv(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 d=c.pointerId;return fi.set(d,hi(fi.get(d)||null,t,n,o,a,c)),!0;case"gotpointercapture":return d=c.pointerId,di.set(d,hi(di.get(d)||null,t,n,o,a,c)),!0}return!1}function ad(t){var n=tr(t.target);if(n!==null){var o=er(n);if(o!==null){if(n=o.tag,n===13){if(n=Vf(o),n!==null){t.blockedOn=n,od(t.priority,function(){rd(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 vo(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var o=Ba(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);Ta=a,o.target.dispatchEvent(a),Ta=null}else return n=ki(o),n!==null&&Ma(n),t.blockedOn=o,!1;n.shift()}return!0}function ld(t,n,o){vo(t)&&o.delete(n)}function Ov(){Fa=!1,On!==null&&vo(On)&&(On=null),Nn!==null&&vo(Nn)&&(Nn=null),An!==null&&vo(An)&&(An=null),fi.forEach(ld),di.forEach(ld)}function pi(t,n){t.blockedOn===n&&(t.blockedOn=null,Fa||(Fa=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ov)))}function mi(t){function n(c){return pi(c,t)}if(0<yo.length){pi(yo[0],t);for(var o=1;o<yo.length;o++){var a=yo[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<In.length;o++)a=In[o],a.blockedOn===t&&(a.blockedOn=null);for(;0<In.length&&(o=In[0],o.blockedOn===null);)ad(o),o.blockedOn===null&&In.shift()}var kr=k.ReactCurrentBatchConfig,_o=!0;function Nv(t,n,o,a){var c=Oe,d=kr.transition;kr.transition=null;try{Oe=1,La(t,n,o,a)}finally{Oe=c,kr.transition=d}}function Av(t,n,o,a){var c=Oe,d=kr.transition;kr.transition=null;try{Oe=4,La(t,n,o,a)}finally{Oe=c,kr.transition=d}}function La(t,n,o,a){if(_o){var c=Ba(t,n,o,a);if(c===null)tl(t,n,a,Eo,o),sd(t,a);else if(Rv(c,t,n,o,a))a.stopPropagation();else if(sd(t,a),n&4&&-1<kv.indexOf(t)){for(;c!==null;){var d=ki(c);if(d!==null&&nd(d),d=Ba(t,n,o,a),d===null&&tl(t,n,a,Eo,o),d===c)break;c=d}c!==null&&a.stopPropagation()}else tl(t,n,a,null,o)}}var Eo=null;function Ba(t,n,o,a){if(Eo=null,t=Ca(a),t=tr(t),t!==null)if(n=er(t),n===null)t=null;else if(o=n.tag,o===13){if(t=Vf(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 Eo=t,null}function ud(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(vv()){case Aa:return 1;case Yf:return 4;case fo:case _v:return 16;case Jf:return 536870912;default:return 16}default:return 16}}var Dn=null,ja=null,wo=null;function cd(){if(wo)return wo;var t,n=ja,o=n.length,a,c="value"in Dn?Dn.value:Dn.textContent,d=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[d-a];a++);return wo=c.slice(t,1<a?1-a:void 0)}function So(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 bo(){return!0}function fd(){return!1}function St(t){function n(o,a,c,d,g){this._reactName=o,this._targetInst=c,this.type=a,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var C in t)t.hasOwnProperty(C)&&(o=t[C],this[C]=o?o(d):d[C]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?bo:fd,this.isPropagationStopped=fd,this}return X(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=bo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),n}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ua=St(Rr),gi=X({},Rr,{view:0,detail:0}),Iv=St(gi),Ha,za,yi,xo=X({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$a,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"?(Ha=t.screenX-yi.screenX,za=t.screenY-yi.screenY):za=Ha=0,yi=t),Ha)},movementY:function(t){return"movementY"in t?t.movementY:za}}),dd=St(xo),Dv=X({},xo,{dataTransfer:0}),Pv=St(Dv),Mv=X({},gi,{relatedTarget:0}),Ga=St(Mv),Fv=X({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),Lv=St(Fv),Bv=X({},Rr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),jv=St(Bv),Uv=X({},Rr,{data:0}),hd=St(Uv),Hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $v(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Gv[t])?!!n[t]:!1}function $a(){return $v}var qv=X({},gi,{key:function(t){if(t.key){var n=Hv[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=So(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?zv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$a,charCode:function(t){return t.type==="keypress"?So(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?So(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Vv=St(qv),Wv=X({},xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pd=St(Wv),Zv=X({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$a}),Xv=St(Zv),Qv=X({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kv=St(Qv),Yv=X({},xo,{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}),Jv=St(Yv),e_=[9,13,27,32],qa=h&&"CompositionEvent"in window,vi=null;h&&"documentMode"in document&&(vi=document.documentMode);var t_=h&&"TextEvent"in window&&!vi,md=h&&(!qa||vi&&8<vi&&11>=vi),gd=" ",yd=!1;function vd(t,n){switch(t){case"keyup":return e_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _d(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Or=!1;function n_(t,n){switch(t){case"compositionend":return _d(n);case"keypress":return n.which!==32?null:(yd=!0,gd);case"textInput":return t=n.data,t===gd&&yd?null:t;default:return null}}function r_(t,n){if(Or)return t==="compositionend"||!qa&&vd(t,n)?(t=cd(),wo=ja=Dn=null,Or=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return md&&n.locale!=="ko"?null:n.data;default:return null}}var i_={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 Ed(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!i_[t.type]:n==="textarea"}function wd(t,n,o,a){Hf(a),n=Oo(n,"onChange"),0<n.length&&(o=new Ua("onChange","change",null,o,a),t.push({event:o,listeners:n}))}var _i=null,Ei=null;function o_(t){jd(t,0)}function To(t){var n=Pr(t);if(ct(n))return t}function s_(t,n){if(t==="change")return n}var Sd=!1;if(h){var Va;if(h){var Wa="oninput"in document;if(!Wa){var bd=document.createElement("div");bd.setAttribute("oninput","return;"),Wa=typeof bd.oninput=="function"}Va=Wa}else Va=!1;Sd=Va&&(!document.documentMode||9<document.documentMode)}function xd(){_i&&(_i.detachEvent("onpropertychange",Td),Ei=_i=null)}function Td(t){if(t.propertyName==="value"&&To(Ei)){var n=[];wd(n,Ei,t,Ca(t)),qf(o_,n)}}function a_(t,n,o){t==="focusin"?(xd(),_i=n,Ei=o,_i.attachEvent("onpropertychange",Td)):t==="focusout"&&xd()}function l_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return To(Ei)}function u_(t,n){if(t==="click")return To(n)}function c_(t,n){if(t==="input"||t==="change")return To(n)}function f_(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var zt=typeof Object.is=="function"?Object.is:f_;function wi(t,n){if(zt(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)||!zt(t[c],n[c]))return!1}return!0}function Cd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kd(t,n){var o=Cd(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=Cd(o)}}function Rd(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Rd(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Od(){for(var t=window,n=Jt();n instanceof t.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)t=n.contentWindow;else break;n=Jt(t.document)}return n}function Za(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 d_(t){var n=Od(),o=t.focusedElem,a=t.selectionRange;if(n!==o&&o&&o.ownerDocument&&Rd(o.ownerDocument.documentElement,o)){if(a!==null&&Za(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,d=Math.min(a.start,c);a=a.end===void 0?d:Math.min(a.end,c),!t.extend&&d>a&&(c=a,a=d,d=c),c=kd(o,d);var g=kd(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(),d>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 h_=h&&"documentMode"in document&&11>=document.documentMode,Nr=null,Xa=null,Si=null,Qa=!1;function Nd(t,n,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qa||Nr==null||Nr!==Jt(a)||(a=Nr,"selectionStart"in a&&Za(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Si&&wi(Si,a)||(Si=a,a=Oo(Xa,"onSelect"),0<a.length&&(n=new Ua("onSelect","select",null,n,o),t.push({event:n,listeners:a}),n.target=Nr)))}function Co(t,n){var o={};return o[t.toLowerCase()]=n.toLowerCase(),o["Webkit"+t]="webkit"+n,o["Moz"+t]="moz"+n,o}var Ar={animationend:Co("Animation","AnimationEnd"),animationiteration:Co("Animation","AnimationIteration"),animationstart:Co("Animation","AnimationStart"),transitionend:Co("Transition","TransitionEnd")},Ka={},Ad={};h&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function ko(t){if(Ka[t])return Ka[t];if(!Ar[t])return t;var n=Ar[t],o;for(o in n)if(n.hasOwnProperty(o)&&o in Ad)return Ka[t]=n[o];return t}var Id=ko("animationend"),Dd=ko("animationiteration"),Pd=ko("animationstart"),Md=ko("transitionend"),Fd=new Map,Ld="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 Pn(t,n){Fd.set(t,n),u(n,[t])}for(var Ya=0;Ya<Ld.length;Ya++){var Ja=Ld[Ya],p_=Ja.toLowerCase(),m_=Ja[0].toUpperCase()+Ja.slice(1);Pn(p_,"on"+m_)}Pn(Id,"onAnimationEnd"),Pn(Dd,"onAnimationIteration"),Pn(Pd,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(Md,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(" "),g_=new Set("cancel close invalid load scroll toggle".split(" ").concat(bi));function Bd(t,n,o){var a=t.type||"unknown-event";t.currentTarget=o,pv(a,n,void 0,t),t.currentTarget=null}function jd(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 d=void 0;if(n)for(var g=a.length-1;0<=g;g--){var C=a[g],A=C.instance,F=C.currentTarget;if(C=C.listener,A!==d&&c.isPropagationStopped())break e;Bd(c,C,F),d=A}else for(g=0;g<a.length;g++){if(C=a[g],A=C.instance,F=C.currentTarget,C=C.listener,A!==d&&c.isPropagationStopped())break e;Bd(c,C,F),d=A}}}if(co)throw t=Na,co=!1,Na=null,t}function De(t,n){var o=n[al];o===void 0&&(o=n[al]=new Set);var a=t+"__bubble";o.has(a)||(Ud(n,t,2,!1),o.add(a))}function el(t,n,o){var a=0;n&&(a|=4),Ud(o,t,a,n)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function xi(t){if(!t[Ro]){t[Ro]=!0,s.forEach(function(o){o!=="selectionchange"&&(g_.has(o)||el(o,!1,t),el(o,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Ro]||(n[Ro]=!0,el("selectionchange",!1,n))}}function Ud(t,n,o,a){switch(ud(n)){case 1:var c=Nv;break;case 4:c=Av;break;default:c=La}o=c.bind(null,n,o,t),c=void 0,!Oa||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 tl(t,n,o,a,c){var d=a;if(!(n&1)&&!(n&2)&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var C=a.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.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(;C!==null;){if(g=tr(C),g===null)return;if(A=g.tag,A===5||A===6){a=d=g;continue e}C=C.parentNode}}a=a.return}qf(function(){var F=d,H=Ca(o),G=[];e:{var U=Fd.get(t);if(U!==void 0){var Z=Ua,K=t;switch(t){case"keypress":if(So(o)===0)break e;case"keydown":case"keyup":Z=Vv;break;case"focusin":K="focus",Z=Ga;break;case"focusout":K="blur",Z=Ga;break;case"beforeblur":case"afterblur":Z=Ga;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":Z=dd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Pv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Xv;break;case Id:case Dd:case Pd:Z=Lv;break;case Md:Z=Kv;break;case"scroll":Z=Iv;break;case"wheel":Z=Jv;break;case"copy":case"cut":case"paste":Z=jv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=pd}var Y=(n&4)!==0,Ge=!Y&&t==="scroll",P=Y?U!==null?U+"Capture":null:U;Y=[];for(var I=F,M;I!==null;){M=I;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,P!==null&&($=si(I,P),$!=null&&Y.push(Ti(I,$,M)))),Ge)break;I=I.return}0<Y.length&&(U=new Z(U,K,null,o,H),G.push({event:U,listeners:Y}))}}if(!(n&7)){e:{if(U=t==="mouseover"||t==="pointerover",Z=t==="mouseout"||t==="pointerout",U&&o!==Ta&&(K=o.relatedTarget||o.fromElement)&&(tr(K)||K[pn]))break e;if((Z||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,Z?(K=o.relatedTarget||o.toElement,Z=F,K=K?tr(K):null,K!==null&&(Ge=er(K),K!==Ge||K.tag!==5&&K.tag!==6)&&(K=null)):(Z=null,K=F),Z!==K)){if(Y=dd,$="onMouseLeave",P="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Y=pd,$="onPointerLeave",P="onPointerEnter",I="pointer"),Ge=Z==null?U:Pr(Z),M=K==null?U:Pr(K),U=new Y($,I+"leave",Z,o,H),U.target=Ge,U.relatedTarget=M,$=null,tr(H)===F&&(Y=new Y(P,I+"enter",K,o,H),Y.target=M,Y.relatedTarget=Ge,$=Y),Ge=$,Z&&K)t:{for(Y=Z,P=K,I=0,M=Y;M;M=Ir(M))I++;for(M=0,$=P;$;$=Ir($))M++;for(;0<I-M;)Y=Ir(Y),I--;for(;0<M-I;)P=Ir(P),M--;for(;I--;){if(Y===P||P!==null&&Y===P.alternate)break t;Y=Ir(Y),P=Ir(P)}Y=null}else Y=null;Z!==null&&Hd(G,U,Z,Y,!1),K!==null&&Ge!==null&&Hd(G,Ge,K,Y,!0)}}e:{if(U=F?Pr(F):window,Z=U.nodeName&&U.nodeName.toLowerCase(),Z==="select"||Z==="input"&&U.type==="file")var ee=s_;else if(Ed(U))if(Sd)ee=c_;else{ee=l_;var re=a_}else(Z=U.nodeName)&&Z.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ee=u_);if(ee&&(ee=ee(t,F))){wd(G,ee,o,H);break e}re&&re(t,U,F),t==="focusout"&&(re=U._wrapperState)&&re.controlled&&U.type==="number"&&Ea(U,"number",U.value)}switch(re=F?Pr(F):window,t){case"focusin":(Ed(re)||re.contentEditable==="true")&&(Nr=re,Xa=F,Si=null);break;case"focusout":Si=Xa=Nr=null;break;case"mousedown":Qa=!0;break;case"contextmenu":case"mouseup":case"dragend":Qa=!1,Nd(G,o,H);break;case"selectionchange":if(h_)break;case"keydown":case"keyup":Nd(G,o,H)}var ie;if(qa)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 Or?vd(t,o)&&(ae="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(md&&o.locale!=="ko"&&(Or||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Or&&(ie=cd()):(Dn=H,ja="value"in Dn?Dn.value:Dn.textContent,Or=!0)),re=Oo(F,ae),0<re.length&&(ae=new hd(ae,t,null,o,H),G.push({event:ae,listeners:re}),ie?ae.data=ie:(ie=_d(o),ie!==null&&(ae.data=ie)))),(ie=t_?n_(t,o):r_(t,o))&&(F=Oo(F,"onBeforeInput"),0<F.length&&(H=new hd("onBeforeInput","beforeinput",null,o,H),G.push({event:H,listeners:F}),H.data=ie))}jd(G,n)})}function Ti(t,n,o){return{instance:t,listener:n,currentTarget:o}}function Oo(t,n){for(var o=n+"Capture",a=[];t!==null;){var c=t,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=si(t,o),d!=null&&a.unshift(Ti(t,d,c)),d=si(t,n),d!=null&&a.push(Ti(t,d,c))),t=t.return}return a}function Ir(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Hd(t,n,o,a,c){for(var d=n._reactName,g=[];o!==null&&o!==a;){var C=o,A=C.alternate,F=C.stateNode;if(A!==null&&A===a)break;C.tag===5&&F!==null&&(C=F,c?(A=si(o,d),A!=null&&g.unshift(Ti(o,A,C))):c||(A=si(o,d),A!=null&&g.push(Ti(o,A,C)))),o=o.return}g.length!==0&&t.push({event:n,listeners:g})}var y_=/\r\n?/g,v_=/\u0000|\uFFFD/g;function zd(t){return(typeof t=="string"?t:""+t).replace(y_,`
|
|
38
|
-
`).replace(v_,"")}function No(t,n,o){if(n=zd(n),zd(t)!==n&&o)throw Error(i(425))}function Ao(){}var nl=null,rl=null;function il(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 ol=typeof setTimeout=="function"?setTimeout:void 0,__=typeof clearTimeout=="function"?clearTimeout:void 0,Gd=typeof Promise=="function"?Promise:void 0,E_=typeof queueMicrotask=="function"?queueMicrotask:typeof Gd<"u"?function(t){return Gd.resolve(null).then(t).catch(w_)}:ol;function w_(t){setTimeout(function(){throw t})}function sl(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 $d(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 Dr=Math.random().toString(36).slice(2),tn="__reactFiber$"+Dr,Ci="__reactProps$"+Dr,pn="__reactContainer$"+Dr,al="__reactEvents$"+Dr,S_="__reactListeners$"+Dr,b_="__reactHandles$"+Dr;function tr(t){var n=t[tn];if(n)return n;for(var o=t.parentNode;o;){if(n=o[pn]||o[tn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(t=$d(t);t!==null;){if(o=t[tn])return o;t=$d(t)}return n}t=o,o=t.parentNode}return null}function ki(t){return t=t[tn]||t[pn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Io(t){return t[Ci]||null}var ll=[],Mr=-1;function Fn(t){return{current:t}}function Pe(t){0>Mr||(t.current=ll[Mr],ll[Mr]=null,Mr--)}function Ae(t,n){Mr++,ll[Mr]=t.current,t.current=n}var Ln={},st=Fn(Ln),mt=Fn(!1),nr=Ln;function Fr(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={},d;for(d in o)c[d]=n[d];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=c),c}function gt(t){return t=t.childContextTypes,t!=null}function Do(){Pe(mt),Pe(st)}function qd(t,n,o){if(st.current!==Ln)throw Error(i(168));Ae(st,n),Ae(mt,o)}function Vd(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 X({},o,a)}function Po(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ln,nr=st.current,Ae(st,t),Ae(mt,mt.current),!0}function Wd(t,n,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=Vd(t,n,nr),a.__reactInternalMemoizedMergedChildContext=t,Pe(mt),Pe(st),Ae(st,t)):Pe(mt),Ae(mt,o)}var mn=null,Mo=!1,ul=!1;function Zd(t){mn===null?mn=[t]:mn.push(t)}function x_(t){Mo=!0,Zd(t)}function Bn(){if(!ul&&mn!==null){ul=!0;var t=0,n=Oe;try{var o=mn;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}mn=null,Mo=!1}catch(c){throw mn!==null&&(mn=mn.slice(t+1)),Qf(Aa,Bn),c}finally{Oe=n,ul=!1}}return null}var Lr=[],Br=0,Fo=null,Lo=0,It=[],Dt=0,rr=null,gn=1,yn="";function ir(t,n){Lr[Br++]=Lo,Lr[Br++]=Fo,Fo=t,Lo=n}function Xd(t,n,o){It[Dt++]=gn,It[Dt++]=yn,It[Dt++]=rr,rr=t;var a=gn;t=yn;var c=32-Ht(a)-1;a&=~(1<<c),o+=1;var d=32-Ht(n)+c;if(30<d){var g=c-c%5;d=(a&(1<<g)-1).toString(32),a>>=g,c-=g,gn=1<<32-Ht(n)+c|o<<c|a,yn=d+t}else gn=1<<d|o<<c|a,yn=t}function cl(t){t.return!==null&&(ir(t,1),Xd(t,1,0))}function fl(t){for(;t===Fo;)Fo=Lr[--Br],Lr[Br]=null,Lo=Lr[--Br],Lr[Br]=null;for(;t===rr;)rr=It[--Dt],It[Dt]=null,yn=It[--Dt],It[Dt]=null,gn=It[--Dt],It[Dt]=null}var bt=null,xt=null,Fe=!1,Gt=null;function Qd(t,n){var o=Lt(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 Kd(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,bt=t,xt=Mn(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,bt=t,xt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=rr!==null?{id:gn,overflow:yn}:null,t.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Lt(18,null,null,0),o.stateNode=n,o.return=t,t.child=o,bt=t,xt=null,!0):!1;default:return!1}}function dl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function hl(t){if(Fe){var n=xt;if(n){var o=n;if(!Kd(t,n)){if(dl(t))throw Error(i(418));n=Mn(o.nextSibling);var a=bt;n&&Kd(t,n)?Qd(a,o):(t.flags=t.flags&-4097|2,Fe=!1,bt=t)}}else{if(dl(t))throw Error(i(418));t.flags=t.flags&-4097|2,Fe=!1,bt=t}}}function Yd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;bt=t}function Bo(t){if(t!==bt)return!1;if(!Fe)return Yd(t),Fe=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!il(t.type,t.memoizedProps)),n&&(n=xt)){if(dl(t))throw Jd(),Error(i(418));for(;n;)Qd(t,n),n=Mn(n.nextSibling)}if(Yd(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=bt?Mn(t.stateNode.nextSibling):null;return!0}function Jd(){for(var t=xt;t;)t=Mn(t.nextSibling)}function jr(){xt=bt=null,Fe=!1}function pl(t){Gt===null?Gt=[t]:Gt.push(t)}var T_=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,d=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===d?n.ref:(n=function(g){var C=c.refs;g===null?delete C[d]:C[d]=g},n._stringRef=d,n)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function jo(t,n){throw t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function eh(t){var n=t._init;return n(t._payload)}function th(t){function n(P,I){if(t){var M=P.deletions;M===null?(P.deletions=[I],P.flags|=16):M.push(I)}}function o(P,I){if(!t)return null;for(;I!==null;)n(P,I),I=I.sibling;return null}function a(P,I){for(P=new Map;I!==null;)I.key!==null?P.set(I.key,I):P.set(I.index,I),I=I.sibling;return P}function c(P,I){return P=Vn(P,I),P.index=0,P.sibling=null,P}function d(P,I,M){return P.index=M,t?(M=P.alternate,M!==null?(M=M.index,M<I?(P.flags|=2,I):M):(P.flags|=2,I)):(P.flags|=1048576,I)}function g(P){return t&&P.alternate===null&&(P.flags|=2),P}function C(P,I,M,$){return I===null||I.tag!==6?(I=ou(M,P.mode,$),I.return=P,I):(I=c(I,M),I.return=P,I)}function A(P,I,M,$){var ee=M.type;return ee===z?H(P,I,M.props.children,$,M.key):I!==null&&(I.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&eh(ee)===I.type)?($=c(I,M.props),$.ref=Ri(P,I,M),$.return=P,$):($=us(M.type,M.key,M.props,null,P.mode,$),$.ref=Ri(P,I,M),$.return=P,$)}function F(P,I,M,$){return I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation?(I=su(M,P.mode,$),I.return=P,I):(I=c(I,M.children||[]),I.return=P,I)}function H(P,I,M,$,ee){return I===null||I.tag!==7?(I=dr(M,P.mode,$,ee),I.return=P,I):(I=c(I,M),I.return=P,I)}function G(P,I,M){if(typeof I=="string"&&I!==""||typeof I=="number")return I=ou(""+I,P.mode,M),I.return=P,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case T:return M=us(I.type,I.key,I.props,null,P.mode,M),M.ref=Ri(P,null,I),M.return=P,M;case L:return I=su(I,P.mode,M),I.return=P,I;case $e:var $=I._init;return G(P,$(I._payload),M)}if(ri(I)||ne(I))return I=dr(I,P.mode,M,null),I.return=P,I;jo(P,I)}return null}function U(P,I,M,$){var ee=I!==null?I.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:C(P,I,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return M.key===ee?A(P,I,M,$):null;case L:return M.key===ee?F(P,I,M,$):null;case $e:return ee=M._init,U(P,I,ee(M._payload),$)}if(ri(M)||ne(M))return ee!==null?null:H(P,I,M,$,null);jo(P,M)}return null}function Z(P,I,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return P=P.get(M)||null,C(I,P,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return P=P.get($.key===null?M:$.key)||null,A(I,P,$,ee);case L:return P=P.get($.key===null?M:$.key)||null,F(I,P,$,ee);case $e:var re=$._init;return Z(P,I,M,re($._payload),ee)}if(ri($)||ne($))return P=P.get(M)||null,H(I,P,$,ee,null);jo(I,$)}return null}function K(P,I,M,$){for(var ee=null,re=null,ie=I,ae=I=0,Ye=null;ie!==null&&ae<M.length;ae++){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var xe=U(P,ie,M[ae],$);if(xe===null){ie===null&&(ie=Ye);break}t&&ie&&xe.alternate===null&&n(P,ie),I=d(xe,I,ae),re===null?ee=xe:re.sibling=xe,re=xe,ie=Ye}if(ae===M.length)return o(P,ie),Fe&&ir(P,ae),ee;if(ie===null){for(;ae<M.length;ae++)ie=G(P,M[ae],$),ie!==null&&(I=d(ie,I,ae),re===null?ee=ie:re.sibling=ie,re=ie);return Fe&&ir(P,ae),ee}for(ie=a(P,ie);ae<M.length;ae++)Ye=Z(ie,P,ae,M[ae],$),Ye!==null&&(t&&Ye.alternate!==null&&ie.delete(Ye.key===null?ae:Ye.key),I=d(Ye,I,ae),re===null?ee=Ye:re.sibling=Ye,re=Ye);return t&&ie.forEach(function(Wn){return n(P,Wn)}),Fe&&ir(P,ae),ee}function Y(P,I,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=I,ae=I=0,Ye=null,xe=M.next();ie!==null&&!xe.done;ae++,xe=M.next()){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var Wn=U(P,ie,xe.value,$);if(Wn===null){ie===null&&(ie=Ye);break}t&&ie&&Wn.alternate===null&&n(P,ie),I=d(Wn,I,ae),re===null?ee=Wn:re.sibling=Wn,re=Wn,ie=Ye}if(xe.done)return o(P,ie),Fe&&ir(P,ae),ee;if(ie===null){for(;!xe.done;ae++,xe=M.next())xe=G(P,xe.value,$),xe!==null&&(I=d(xe,I,ae),re===null?ee=xe:re.sibling=xe,re=xe);return Fe&&ir(P,ae),ee}for(ie=a(P,ie);!xe.done;ae++,xe=M.next())xe=Z(ie,P,ae,xe.value,$),xe!==null&&(t&&xe.alternate!==null&&ie.delete(xe.key===null?ae:xe.key),I=d(xe,I,ae),re===null?ee=xe:re.sibling=xe,re=xe);return t&&ie.forEach(function(i1){return n(P,i1)}),Fe&&ir(P,ae),ee}function Ge(P,I,M,$){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case T:e:{for(var ee=M.key,re=I;re!==null;){if(re.key===ee){if(ee=M.type,ee===z){if(re.tag===7){o(P,re.sibling),I=c(re,M.props.children),I.return=P,P=I;break e}}else if(re.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&eh(ee)===re.type){o(P,re.sibling),I=c(re,M.props),I.ref=Ri(P,re,M),I.return=P,P=I;break e}o(P,re);break}else n(P,re);re=re.sibling}M.type===z?(I=dr(M.props.children,P.mode,$,M.key),I.return=P,P=I):($=us(M.type,M.key,M.props,null,P.mode,$),$.ref=Ri(P,I,M),$.return=P,P=$)}return g(P);case L:e:{for(re=M.key;I!==null;){if(I.key===re)if(I.tag===4&&I.stateNode.containerInfo===M.containerInfo&&I.stateNode.implementation===M.implementation){o(P,I.sibling),I=c(I,M.children||[]),I.return=P,P=I;break e}else{o(P,I);break}else n(P,I);I=I.sibling}I=su(M,P.mode,$),I.return=P,P=I}return g(P);case $e:return re=M._init,Ge(P,I,re(M._payload),$)}if(ri(M))return K(P,I,M,$);if(ne(M))return Y(P,I,M,$);jo(P,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,I!==null&&I.tag===6?(o(P,I.sibling),I=c(I,M),I.return=P,P=I):(o(P,I),I=ou(M,P.mode,$),I.return=P,P=I),g(P)):o(P,I)}return Ge}var Ur=th(!0),nh=th(!1),Uo=Fn(null),Ho=null,Hr=null,ml=null;function gl(){ml=Hr=Ho=null}function yl(t){var n=Uo.current;Pe(Uo),t._currentValue=n}function vl(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 zr(t,n){Ho=t,ml=Hr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&n&&(yt=!0),t.firstContext=null)}function Pt(t){var n=t._currentValue;if(ml!==t)if(t={context:t,memoizedValue:n,next:null},Hr===null){if(Ho===null)throw Error(i(308));Hr=t,Ho.dependencies={lanes:0,firstContext:t}}else Hr=Hr.next=t;return n}var or=null;function _l(t){or===null?or=[t]:or.push(t)}function rh(t,n,o,a){var c=n.interleaved;return c===null?(o.next=o,_l(n)):(o.next=c.next,c.next=o),n.interleaved=o,vn(t,a)}function vn(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 El(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ih(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function _n(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function Un(t,n,o){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,Se&2){var c=a.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n,vn(t,o)}return c=a.interleaved,c===null?(n.next=n,_l(a)):(n.next=c.next,c.next=n),a.interleaved=n,vn(t,o)}function zo(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,Pa(t,o)}}function oh(t,n){var o=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var c=null,d=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};d===null?c=d=g:d=d.next=g,o=o.next}while(o!==null);d===null?c=d=n:d=d.next=n}else c=d=n;o={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:d,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 Go(t,n,o,a){var c=t.updateQueue;jn=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var A=C,F=A.next;A.next=null,g===null?d=F:g.next=F,g=A;var H=t.alternate;H!==null&&(H=H.updateQueue,C=H.lastBaseUpdate,C!==g&&(C===null?H.firstBaseUpdate=F:C.next=F,H.lastBaseUpdate=A))}if(d!==null){var G=c.baseState;g=0,H=F=A=null,C=d;do{var U=C.lane,Z=C.eventTime;if((a&U)===U){H!==null&&(H=H.next={eventTime:Z,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var K=t,Y=C;switch(U=n,Z=o,Y.tag){case 1:if(K=Y.payload,typeof K=="function"){G=K.call(Z,G,U);break e}G=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=Y.payload,U=typeof K=="function"?K.call(Z,G,U):K,U==null)break e;G=X({},G,U);break e;case 2:jn=!0}}C.callback!==null&&C.lane!==0&&(t.flags|=64,U=c.effects,U===null?c.effects=[C]:U.push(C))}else Z={eventTime:Z,lane:U,tag:C.tag,payload:C.payload,callback:C.callback,next:null},H===null?(F=H=Z,A=G):H=H.next=Z,g|=U;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;U=C,C=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);if(H===null&&(A=G),c.baseState=A,c.firstBaseUpdate=F,c.lastBaseUpdate=H,n=c.shared.interleaved,n!==null){c=n;do g|=c.lane,c=c.next;while(c!==n)}else d===null&&(c.shared.lanes=0);lr|=g,t.lanes=g,t.memoizedState=G}}function sh(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={},nn=Fn(Oi),Ni=Fn(Oi),Ai=Fn(Oi);function sr(t){if(t===Oi)throw Error(i(174));return t}function wl(t,n){switch(Ae(Ai,n),Ae(Ni,t),Ae(nn,Oi),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Sa(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=Sa(n,t)}Pe(nn),Ae(nn,n)}function Gr(){Pe(nn),Pe(Ni),Pe(Ai)}function ah(t){sr(Ai.current);var n=sr(nn.current),o=Sa(n,t.type);n!==o&&(Ae(Ni,t),Ae(nn,o))}function Sl(t){Ni.current===t&&(Pe(nn),Pe(Ni))}var Le=Fn(0);function $o(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 bl=[];function xl(){for(var t=0;t<bl.length;t++)bl[t]._workInProgressVersionPrimary=null;bl.length=0}var qo=k.ReactCurrentDispatcher,Tl=k.ReactCurrentBatchConfig,ar=0,Be=null,Ze=null,Qe=null,Vo=!1,Ii=!1,Di=0,C_=0;function at(){throw Error(i(321))}function Cl(t,n){if(n===null)return!1;for(var o=0;o<n.length&&o<t.length;o++)if(!zt(t[o],n[o]))return!1;return!0}function kl(t,n,o,a,c,d){if(ar=d,Be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,qo.current=t===null||t.memoizedState===null?N_:A_,t=o(a,c),Ii){d=0;do{if(Ii=!1,Di=0,25<=d)throw Error(i(301));d+=1,Qe=Ze=null,n.updateQueue=null,qo.current=I_,t=o(a,c)}while(Ii)}if(qo.current=Xo,n=Ze!==null&&Ze.next!==null,ar=0,Qe=Ze=Be=null,Vo=!1,n)throw Error(i(300));return t}function Rl(){var t=Di!==0;return Di=0,t}function rn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t,Qe}function Mt(){if(Ze===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Ze.next;var n=Qe===null?Be.memoizedState:Qe.next;if(n!==null)Qe=n,Ze=t;else{if(t===null)throw Error(i(310));Ze=t,t={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t}return Qe}function Pi(t,n){return typeof n=="function"?n(t):n}function Ol(t){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Ze,c=a.baseQueue,d=o.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}a.baseQueue=c=d,o.pending=null}if(c!==null){d=c.next,a=a.baseState;var C=g=null,A=null,F=d;do{var H=F.lane;if((ar&H)===H)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 G={lane:H,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};A===null?(C=A=G,g=a):A=A.next=G,Be.lanes|=H,lr|=H}F=F.next}while(F!==null&&F!==d);A===null?g=a:A.next=C,zt(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 d=c.lane,Be.lanes|=d,lr|=d,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Nl(t){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=o.dispatch,c=o.pending,d=n.memoizedState;if(c!==null){o.pending=null;var g=c=c.next;do d=t(d,g.action),g=g.next;while(g!==c);zt(d,n.memoizedState)||(yt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),o.lastRenderedState=d}return[d,a]}function lh(){}function uh(t,n){var o=Be,a=Mt(),c=n(),d=!zt(a.memoizedState,c);if(d&&(a.memoizedState=c,yt=!0),a=a.queue,Al(dh.bind(null,o,a,t),[t]),a.getSnapshot!==n||d||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,Mi(9,fh.bind(null,o,a,c,n),void 0,null),Ke===null)throw Error(i(349));ar&30||ch(o,n,c)}return c}function ch(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 fh(t,n,o,a){n.value=o,n.getSnapshot=a,hh(n)&&ph(t)}function dh(t,n,o){return o(function(){hh(n)&&ph(t)})}function hh(t){var n=t.getSnapshot;t=t.value;try{var o=n();return!zt(t,o)}catch{return!0}}function ph(t){var n=vn(t,1);n!==null&&Wt(n,t,1,-1)}function mh(t){var n=rn();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:t},n.queue=t,t=t.dispatch=O_.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 gh(){return Mt().memoizedState}function Wo(t,n,o,a){var c=rn();Be.flags|=t,c.memoizedState=Mi(1|n,o,void 0,a===void 0?null:a)}function Zo(t,n,o,a){var c=Mt();a=a===void 0?null:a;var d=void 0;if(Ze!==null){var g=Ze.memoizedState;if(d=g.destroy,a!==null&&Cl(a,g.deps)){c.memoizedState=Mi(n,o,d,a);return}}Be.flags|=t,c.memoizedState=Mi(1|n,o,d,a)}function yh(t,n){return Wo(8390656,8,t,n)}function Al(t,n){return Zo(2048,8,t,n)}function vh(t,n){return Zo(4,2,t,n)}function _h(t,n){return Zo(4,4,t,n)}function Eh(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 wh(t,n,o){return o=o!=null?o.concat([t]):null,Zo(4,4,Eh.bind(null,n,t),o)}function Il(){}function Sh(t,n){var o=Mt();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&Cl(n,a[1])?a[0]:(o.memoizedState=[t,n],t)}function bh(t,n){var o=Mt();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&Cl(n,a[1])?a[0]:(t=t(),o.memoizedState=[t,n],t)}function xh(t,n,o){return ar&21?(zt(o,n)||(o=ed(),Be.lanes|=o,lr|=o,t.baseState=!0),n):(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=o)}function k_(t,n){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=Tl.transition;Tl.transition={};try{t(!1),n()}finally{Oe=o,Tl.transition=a}}function Th(){return Mt().memoizedState}function R_(t,n,o){var a=$n(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Ch(t))kh(n,o);else if(o=rh(t,n,o,a),o!==null){var c=dt();Wt(o,t,a,c),Rh(o,n,a)}}function O_(t,n,o){var a=$n(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ch(t))kh(n,c);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var g=n.lastRenderedState,C=d(g,o);if(c.hasEagerState=!0,c.eagerState=C,zt(C,g)){var A=n.interleaved;A===null?(c.next=c,_l(n)):(c.next=A.next,A.next=c),n.interleaved=c;return}}catch{}finally{}o=rh(t,n,c,a),o!==null&&(c=dt(),Wt(o,t,a,c),Rh(o,n,a))}}function Ch(t){var n=t.alternate;return t===Be||n!==null&&n===Be}function kh(t,n){Ii=Vo=!0;var o=t.pending;o===null?n.next=n:(n.next=o.next,o.next=n),t.pending=n}function Rh(t,n,o){if(o&4194240){var a=n.lanes;a&=t.pendingLanes,o|=a,n.lanes=o,Pa(t,o)}}var Xo={readContext:Pt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},N_={readContext:Pt,useCallback:function(t,n){return rn().memoizedState=[t,n===void 0?null:n],t},useContext:Pt,useEffect:yh,useImperativeHandle:function(t,n,o){return o=o!=null?o.concat([t]):null,Wo(4194308,4,Eh.bind(null,n,t),o)},useLayoutEffect:function(t,n){return Wo(4194308,4,t,n)},useInsertionEffect:function(t,n){return Wo(4,2,t,n)},useMemo:function(t,n){var o=rn();return n=n===void 0?null:n,t=t(),o.memoizedState=[t,n],t},useReducer:function(t,n,o){var a=rn();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=R_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var n=rn();return t={current:t},n.memoizedState=t},useState:mh,useDebugValue:Il,useDeferredValue:function(t){return rn().memoizedState=t},useTransition:function(){var t=mh(!1),n=t[0];return t=k_.bind(null,t[1]),rn().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,o){var a=Be,c=rn();if(Fe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ke===null)throw Error(i(349));ar&30||ch(a,n,o)}c.memoizedState=o;var d={value:o,getSnapshot:n};return c.queue=d,yh(dh.bind(null,a,d,t),[t]),a.flags|=2048,Mi(9,fh.bind(null,a,d,o,n),void 0,null),o},useId:function(){var t=rn(),n=Ke.identifierPrefix;if(Fe){var o=yn,a=gn;o=(a&~(1<<32-Ht(a)-1)).toString(32)+o,n=":"+n+"R"+o,o=Di++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=C_++,n=":"+n+"r"+o.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},A_={readContext:Pt,useCallback:Sh,useContext:Pt,useEffect:Al,useImperativeHandle:wh,useInsertionEffect:vh,useLayoutEffect:_h,useMemo:bh,useReducer:Ol,useRef:gh,useState:function(){return Ol(Pi)},useDebugValue:Il,useDeferredValue:function(t){var n=Mt();return xh(n,Ze.memoizedState,t)},useTransition:function(){var t=Ol(Pi)[0],n=Mt().memoizedState;return[t,n]},useMutableSource:lh,useSyncExternalStore:uh,useId:Th,unstable_isNewReconciler:!1},I_={readContext:Pt,useCallback:Sh,useContext:Pt,useEffect:Al,useImperativeHandle:wh,useInsertionEffect:vh,useLayoutEffect:_h,useMemo:bh,useReducer:Nl,useRef:gh,useState:function(){return Nl(Pi)},useDebugValue:Il,useDeferredValue:function(t){var n=Mt();return Ze===null?n.memoizedState=t:xh(n,Ze.memoizedState,t)},useTransition:function(){var t=Nl(Pi)[0],n=Mt().memoizedState;return[t,n]},useMutableSource:lh,useSyncExternalStore:uh,useId:Th,unstable_isNewReconciler:!1};function $t(t,n){if(t&&t.defaultProps){n=X({},n),t=t.defaultProps;for(var o in t)n[o]===void 0&&(n[o]=t[o]);return n}return n}function Dl(t,n,o,a){n=t.memoizedState,o=o(a,n),o=o==null?n:X({},n,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Qo={isMounted:function(t){return(t=t._reactInternals)?er(t)===t:!1},enqueueSetState:function(t,n,o){t=t._reactInternals;var a=dt(),c=$n(t),d=_n(a,c);d.payload=n,o!=null&&(d.callback=o),n=Un(t,d,c),n!==null&&(Wt(n,t,c,a),zo(n,t,c))},enqueueReplaceState:function(t,n,o){t=t._reactInternals;var a=dt(),c=$n(t),d=_n(a,c);d.tag=1,d.payload=n,o!=null&&(d.callback=o),n=Un(t,d,c),n!==null&&(Wt(n,t,c,a),zo(n,t,c))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var o=dt(),a=$n(t),c=_n(o,a);c.tag=2,n!=null&&(c.callback=n),n=Un(t,c,a),n!==null&&(Wt(n,t,a,o),zo(n,t,a))}};function Oh(t,n,o,a,c,d,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,d,g):n.prototype&&n.prototype.isPureReactComponent?!wi(o,a)||!wi(c,d):!0}function Nh(t,n,o){var a=!1,c=Ln,d=n.contextType;return typeof d=="object"&&d!==null?d=Pt(d):(c=gt(n)?nr:st.current,a=n.contextTypes,d=(a=a!=null)?Fr(t,c):Ln),n=new n(o,d),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Qo,t.stateNode=n,n._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=d),n}function Ah(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&&Qo.enqueueReplaceState(n,n.state,null)}function Pl(t,n,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},El(t);var d=n.contextType;typeof d=="object"&&d!==null?c.context=Pt(d):(d=gt(n)?nr:st.current,c.context=Fr(t,d)),c.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Dl(t,n,d,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&&Qo.enqueueReplaceState(c,c.state,null),Go(t,o,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function $r(t,n){try{var o="",a=n;do o+=ye(a),a=a.return;while(a);var c=o}catch(d){c=`
|
|
39
|
-
Error generating stack: `+d.message+`
|
|
40
|
-
`+d.stack}return{value:t,source:n,stack:c,digest:null}}function Ml(t,n,o){return{value:t,source:null,stack:o??null,digest:n??null}}function Fl(t,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var D_=typeof WeakMap=="function"?WeakMap:Map;function Ih(t,n,o){o=_n(-1,o),o.tag=3,o.payload={element:null};var a=n.value;return o.callback=function(){rs||(rs=!0,Kl=a),Fl(t,n)},o}function Dh(t,n,o){o=_n(-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(){Fl(t,n)}}var d=t.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(o.callback=function(){Fl(t,n),typeof a!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})}),o}function Ph(t,n,o){var a=t.pingCache;if(a===null){a=t.pingCache=new D_;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=W_.bind(null,t,n,o),n.then(t,t))}function Mh(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 Fh(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=_n(-1,1),n.tag=2,Un(o,n,1))),o.lanes|=1),t)}var P_=k.ReactCurrentOwner,yt=!1;function ft(t,n,o,a){n.child=t===null?nh(n,null,o,a):Ur(n,t.child,o,a)}function Lh(t,n,o,a,c){o=o.render;var d=n.ref;return zr(n,c),a=kl(t,n,o,a,d,c),o=Rl(),t!==null&&!yt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~c,En(t,n,c)):(Fe&&o&&cl(n),n.flags|=1,ft(t,n,a,c),n.child)}function Bh(t,n,o,a,c){if(t===null){var d=o.type;return typeof d=="function"&&!iu(d)&&d.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=d,jh(t,n,d,a,c)):(t=us(o.type,null,a,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(d=t.child,!(t.lanes&c)){var g=d.memoizedProps;if(o=o.compare,o=o!==null?o:wi,o(g,a)&&t.ref===n.ref)return En(t,n,c)}return n.flags|=1,t=Vn(d,a),t.ref=n.ref,t.return=n,n.child=t}function jh(t,n,o,a,c){if(t!==null){var d=t.memoizedProps;if(wi(d,a)&&t.ref===n.ref)if(yt=!1,n.pendingProps=a=d,(t.lanes&c)!==0)t.flags&131072&&(yt=!0);else return n.lanes=t.lanes,En(t,n,c)}return Ll(t,n,o,a,c)}function Uh(t,n,o){var a=n.pendingProps,c=a.children,d=t!==null?t.memoizedState:null;if(a.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Vr,Tt),Tt|=o;else{if(!(o&1073741824))return t=d!==null?d.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,Ae(Vr,Tt),Tt|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=d!==null?d.baseLanes:o,Ae(Vr,Tt),Tt|=a}else d!==null?(a=d.baseLanes|o,n.memoizedState=null):a=o,Ae(Vr,Tt),Tt|=a;return ft(t,n,c,o),n.child}function Hh(t,n){var o=n.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Ll(t,n,o,a,c){var d=gt(o)?nr:st.current;return d=Fr(n,d),zr(n,c),o=kl(t,n,o,a,d,c),a=Rl(),t!==null&&!yt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~c,En(t,n,c)):(Fe&&a&&cl(n),n.flags|=1,ft(t,n,o,c),n.child)}function zh(t,n,o,a,c){if(gt(o)){var d=!0;Po(n)}else d=!1;if(zr(n,c),n.stateNode===null)Yo(t,n),Nh(n,o,a),Pl(n,o,a,c),a=!0;else if(t===null){var g=n.stateNode,C=n.memoizedProps;g.props=C;var A=g.context,F=o.contextType;typeof F=="object"&&F!==null?F=Pt(F):(F=gt(o)?nr:st.current,F=Fr(n,F));var H=o.getDerivedStateFromProps,G=typeof H=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==a||A!==F)&&Ah(n,g,a,F),jn=!1;var U=n.memoizedState;g.state=U,Go(n,a,g,c),A=n.memoizedState,C!==a||U!==A||mt.current||jn?(typeof H=="function"&&(Dl(n,o,H,a),A=n.memoizedState),(C=jn||Oh(n,o,C,a,U,A,F))?(G||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(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=C):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{g=n.stateNode,ih(t,n),C=n.memoizedProps,F=n.type===n.elementType?C:$t(n.type,C),g.props=F,G=n.pendingProps,U=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Pt(A):(A=gt(o)?nr:st.current,A=Fr(n,A));var Z=o.getDerivedStateFromProps;(H=typeof Z=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==G||U!==A)&&Ah(n,g,a,A),jn=!1,U=n.memoizedState,g.state=U,Go(n,a,g,c);var K=n.memoizedState;C!==G||U!==K||mt.current||jn?(typeof Z=="function"&&(Dl(n,o,Z,a),K=n.memoizedState),(F=jn||Oh(n,o,F,a,U,K,A)||!1)?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,K,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,K,A)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=K),g.props=a,g.state=K,g.context=A,a=F):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),a=!1)}return Bl(t,n,o,a,d,c)}function Bl(t,n,o,a,c,d){Hh(t,n);var g=(n.flags&128)!==0;if(!a&&!g)return c&&Wd(n,o,!1),En(t,n,d);a=n.stateNode,P_.current=n;var C=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,t!==null&&g?(n.child=Ur(n,t.child,null,d),n.child=Ur(n,null,C,d)):ft(t,n,C,d),n.memoizedState=a.state,c&&Wd(n,o,!0),n.child}function Gh(t){var n=t.stateNode;n.pendingContext?qd(t,n.pendingContext,n.pendingContext!==n.context):n.context&&qd(t,n.context,!1),wl(t,n.containerInfo)}function $h(t,n,o,a,c){return jr(),pl(c),n.flags|=256,ft(t,n,o,a),n.child}var jl={dehydrated:null,treeContext:null,retryLane:0};function Ul(t){return{baseLanes:t,cachePool:null,transitions:null}}function qh(t,n,o){var a=n.pendingProps,c=Le.current,d=!1,g=(n.flags&128)!==0,C;if((C=g)||(C=t!==null&&t.memoizedState===null?!1:(c&2)!==0),C?(d=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return hl(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,d?(a=n.mode,d=n.child,g={mode:"hidden",children:g},!(a&1)&&d!==null?(d.childLanes=0,d.pendingProps=g):d=cs(g,a,0,null),t=dr(t,a,o,null),d.return=n,t.return=n,d.sibling=t,n.child=d,n.child.memoizedState=Ul(o),n.memoizedState=jl,t):Hl(n,g));if(c=t.memoizedState,c!==null&&(C=c.dehydrated,C!==null))return M_(t,n,g,a,C,c,o);if(d){d=a.fallback,g=n.mode,c=t.child,C=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),C!==null?d=Vn(C,d):(d=dr(d,g,o,null),d.flags|=2),d.return=n,a.return=n,a.sibling=d,n.child=a,a=d,d=n.child,g=t.child.memoizedState,g=g===null?Ul(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=t.childLanes&~o,n.memoizedState=jl,a}return d=t.child,t=d.sibling,a=Vn(d,{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 Hl(t,n){return n=cs({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function Ko(t,n,o,a){return a!==null&&pl(a),Ur(n,t.child,null,o),t=Hl(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function M_(t,n,o,a,c,d,g){if(o)return n.flags&256?(n.flags&=-257,a=Ml(Error(i(422))),Ko(t,n,g,a)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(d=a.fallback,c=n.mode,a=cs({mode:"visible",children:a.children},c,0,null),d=dr(d,c,g,null),d.flags|=2,a.return=n,d.return=n,a.sibling=d,n.child=a,n.mode&1&&Ur(n,t.child,null,g),n.child.memoizedState=Ul(g),n.memoizedState=jl,d);if(!(n.mode&1))return Ko(t,n,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var C=a.dgst;return a=C,d=Error(i(419)),a=Ml(d,a,void 0),Ko(t,n,g,a)}if(C=(g&t.childLanes)!==0,yt||C){if(a=Ke,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!==d.retryLane&&(d.retryLane=c,vn(t,c),Wt(a,t,c,-1))}return ru(),a=Ml(Error(i(421))),Ko(t,n,g,a)}return c.data==="$?"?(n.flags|=128,n.child=t.child,n=Z_.bind(null,t),c._reactRetry=n,null):(t=d.treeContext,xt=Mn(c.nextSibling),bt=n,Fe=!0,Gt=null,t!==null&&(It[Dt++]=gn,It[Dt++]=yn,It[Dt++]=rr,gn=t.id,yn=t.overflow,rr=n),n=Hl(n,a.children),n.flags|=4096,n)}function Vh(t,n,o){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n),vl(t.return,n,o)}function zl(t,n,o,a,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:c}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=o,d.tailMode=c)}function Wh(t,n,o){var a=n.pendingProps,c=a.revealOrder,d=a.tail;if(ft(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&&Vh(t,o,n);else if(t.tag===19)Vh(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&&$o(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=n.child,n.child=null):(c=o.sibling,o.sibling=null),zl(n,!1,c,o,d);break;case"backwards":for(o=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&$o(t)===null){n.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}zl(n,!0,o,null,d);break;case"together":zl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Yo(t,n){!(n.mode&1)&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function En(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 F_(t,n,o){switch(n.tag){case 3:Gh(n),jr();break;case 5:ah(n);break;case 1:gt(n.type)&&Po(n);break;case 4:wl(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,c=n.memoizedProps.value;Ae(Uo,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?qh(t,n,o):(Ae(Le,Le.current&1),t=En(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 Wh(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,Uh(t,n,o)}return En(t,n,o)}var Zh,Gl,Xh,Qh;Zh=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}},Gl=function(){},Xh=function(t,n,o,a){var c=t.memoizedProps;if(c!==a){t=n.stateNode,sr(nn.current);var d=null;switch(o){case"input":c=va(t,c),a=va(t,a),d=[];break;case"select":c=X({},c,{value:void 0}),a=X({},a,{value:void 0}),d=[];break;case"textarea":c=wa(t,c),a=wa(t,a),d=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Ao)}ba(o,a);var g;o=null;for(F in c)if(!a.hasOwnProperty(F)&&c.hasOwnProperty(F)&&c[F]!=null)if(F==="style"){var C=c[F];for(g in C)C.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?d||(d=[]):(d=d||[]).push(F,null));for(F in a){var A=a[F];if(C=c!=null?c[F]:void 0,a.hasOwnProperty(F)&&A!==C&&(A!=null||C!=null))if(F==="style")if(C){for(g in C)!C.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&C[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(d||(d=[]),d.push(F,o)),o=A;else F==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,C=C?C.__html:void 0,A!=null&&C!==A&&(d=d||[]).push(F,A)):F==="children"?typeof A!="string"&&typeof A!="number"||(d=d||[]).push(F,""+A):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(A!=null&&F==="onScroll"&&De("scroll",t),d||C===A||(d=[])):(d=d||[]).push(F,A))}o&&(d=d||[]).push("style",o);var F=d;(n.updateQueue=F)&&(n.flags|=4)}},Qh=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 lt(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 L_(t,n,o){var a=n.pendingProps;switch(fl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(n),null;case 1:return gt(n.type)&&Do(),lt(n),null;case 3:return a=n.stateNode,Gr(),Pe(mt),Pe(st),xl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Bo(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Gt!==null&&(eu(Gt),Gt=null))),Gl(t,n),lt(n),null;case 5:Sl(n);var c=sr(Ai.current);if(o=n.type,t!==null&&n.stateNode!=null)Xh(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 lt(n),null}if(t=sr(nn.current),Bo(n)){a=n.stateNode,o=n.type;var d=n.memoizedProps;switch(a[tn]=n,a[Ci]=d,t=(n.mode&1)!==0,o){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":Nf(a,d),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!d.multiple},De("invalid",a);break;case"textarea":Df(a,d),De("invalid",a)}ba(o,d),c=null;for(var g in d)if(d.hasOwnProperty(g)){var C=d[g];g==="children"?typeof C=="string"?a.textContent!==C&&(d.suppressHydrationWarning!==!0&&No(a.textContent,C,t),c=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(d.suppressHydrationWarning!==!0&&No(a.textContent,C,t),c=["children",""+C]):l.hasOwnProperty(g)&&C!=null&&g==="onScroll"&&De("scroll",a)}switch(o){case"input":ni(a),If(a,d,!0);break;case"textarea":ni(a),Mf(a);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(a.onclick=Ao)}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=Ff(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[tn]=n,t[Ci]=a,Zh(t,n,!1,!1),n.stateNode=t;e:{switch(g=xa(o,a),o){case"dialog":De("cancel",t),De("close",t),c=a;break;case"iframe":case"object":case"embed":De("load",t),c=a;break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],t);c=a;break;case"source":De("error",t),c=a;break;case"img":case"image":case"link":De("error",t),De("load",t),c=a;break;case"details":De("toggle",t),c=a;break;case"input":Nf(t,a),c=va(t,a),De("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=X({},a,{value:void 0}),De("invalid",t);break;case"textarea":Df(t,a),c=wa(t,a),De("invalid",t);break;default:c=a}ba(o,c),C=c;for(d in C)if(C.hasOwnProperty(d)){var A=C[d];d==="style"?jf(t,A):d==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Lf(t,A)):d==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&ii(t,A):typeof A=="number"&&ii(t,""+A):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(l.hasOwnProperty(d)?A!=null&&d==="onScroll"&&De("scroll",t):A!=null&&b(t,d,A,g))}switch(o){case"input":ni(t),If(t,a,!1);break;case"textarea":ni(t),Mf(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Te(a.value));break;case"select":t.multiple=!!a.multiple,d=a.value,d!=null?xr(t,!!a.multiple,d,!1):a.defaultValue!=null&&xr(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Ao)}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 lt(n),null;case 6:if(t&&n.stateNode!=null)Qh(t,n,t.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(i(166));if(o=sr(Ai.current),sr(nn.current),Bo(n)){if(a=n.stateNode,o=n.memoizedProps,a[tn]=n,(d=a.nodeValue!==o)&&(t=bt,t!==null))switch(t.tag){case 3:No(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&No(a.nodeValue,o,(t.mode&1)!==0)}d&&(n.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[tn]=n,n.stateNode=a}return lt(n),null;case 13:if(Pe(Le),a=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&xt!==null&&n.mode&1&&!(n.flags&128))Jd(),jr(),n.flags|=98560,d=!1;else if(d=Bo(n),a!==null&&a.dehydrated!==null){if(t===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[tn]=n}else jr(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;lt(n),d=!1}else Gt!==null&&(eu(Gt),Gt=null),d=!0;if(!d)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?Xe===0&&(Xe=3):ru())),n.updateQueue!==null&&(n.flags|=4),lt(n),null);case 4:return Gr(),Gl(t,n),t===null&&xi(n.stateNode.containerInfo),lt(n),null;case 10:return yl(n.type._context),lt(n),null;case 17:return gt(n.type)&&Do(),lt(n),null;case 19:if(Pe(Le),d=n.memoizedState,d===null)return lt(n),null;if(a=(n.flags&128)!==0,g=d.rendering,g===null)if(a)Fi(d,!1);else{if(Xe!==0||t!==null&&t.flags&128)for(t=n.child;t!==null;){if(g=$o(t),g!==null){for(n.flags|=128,Fi(d,!1),a=g.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=o,o=n.child;o!==null;)d=o,t=a,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=t,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,t=g.dependencies,d.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ae(Le,Le.current&1|2),n.child}t=t.sibling}d.tail!==null&&ze()>Wr&&(n.flags|=128,a=!0,Fi(d,!1),n.lanes=4194304)}else{if(!a)if(t=$o(g),t!==null){if(n.flags|=128,a=!0,o=t.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),Fi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Fe)return lt(n),null}else 2*ze()-d.renderingStartTime>Wr&&o!==1073741824&&(n.flags|=128,a=!0,Fi(d,!1),n.lanes=4194304);d.isBackwards?(g.sibling=n.child,n.child=g):(o=d.last,o!==null?o.sibling=g:n.child=g,d.last=g)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=ze(),n.sibling=null,o=Le.current,Ae(Le,a?o&1|2:o&1),n):(lt(n),null);case 22:case 23:return nu(),a=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(n.flags|=8192),a&&n.mode&1?Tt&1073741824&&(lt(n),n.subtreeFlags&6&&(n.flags|=8192)):lt(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function B_(t,n){switch(fl(n),n.tag){case 1:return gt(n.type)&&Do(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Gr(),Pe(mt),Pe(st),xl(),t=n.flags,t&65536&&!(t&128)?(n.flags=t&-65537|128,n):null;case 5:return Sl(n),null;case 13:if(Pe(Le),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));jr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Pe(Le),null;case 4:return Gr(),null;case 10:return yl(n.type._context),null;case 22:case 23:return nu(),null;case 24:return null;default:return null}}var Jo=!1,ut=!1,j_=typeof WeakSet=="function"?WeakSet:Set,Q=null;function qr(t,n){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){He(t,n,a)}else o.current=null}function $l(t,n,o){try{o()}catch(a){He(t,n,a)}}var Kh=!1;function U_(t,n){if(nl=_o,t=Od(),Za(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,d=a.focusNode;a=a.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var g=0,C=-1,A=-1,F=0,H=0,G=t,U=null;t:for(;;){for(var Z;G!==o||c!==0&&G.nodeType!==3||(C=g+c),G!==d||a!==0&&G.nodeType!==3||(A=g+a),G.nodeType===3&&(g+=G.nodeValue.length),(Z=G.firstChild)!==null;)U=G,G=Z;for(;;){if(G===t)break t;if(U===o&&++F===c&&(C=g),U===d&&++H===a&&(A=g),(Z=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=Z}o=C===-1||A===-1?null:{start:C,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(rl={focusedElem:t,selectionRange:o},_o=!1,Q=n;Q!==null;)if(n=Q,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Q=t;else for(;Q!==null;){n=Q;try{var K=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var Y=K.memoizedProps,Ge=K.memoizedState,P=n.stateNode,I=P.getSnapshotBeforeUpdate(n.elementType===n.type?Y:$t(n.type,Y),Ge);P.__reactInternalSnapshotBeforeUpdate=I}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($){He(n,n.return,$)}if(t=n.sibling,t!==null){t.return=n.return,Q=t;break}Q=n.return}return K=Kh,Kh=!1,K}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 d=c.destroy;c.destroy=void 0,d!==void 0&&$l(n,o,d)}c=c.next}while(c!==a)}}function es(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 ql(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 Yh(t){var n=t.alternate;n!==null&&(t.alternate=null,Yh(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[tn],delete n[Ci],delete n[al],delete n[S_],delete n[b_])),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 Jh(t){return t.tag===5||t.tag===3||t.tag===4}function ep(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Jh(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 Vl(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=Ao));else if(a!==4&&(t=t.child,t!==null))for(Vl(t,n,o),t=t.sibling;t!==null;)Vl(t,n,o),t=t.sibling}function Wl(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(Wl(t,n,o),t=t.sibling;t!==null;)Wl(t,n,o),t=t.sibling}var tt=null,qt=!1;function Hn(t,n,o){for(o=o.child;o!==null;)tp(t,n,o),o=o.sibling}function tp(t,n,o){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(ho,o)}catch{}switch(o.tag){case 5:ut||qr(o,n);case 6:var a=tt,c=qt;tt=null,Hn(t,n,o),tt=a,qt=c,tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):tt.removeChild(o.stateNode));break;case 18:tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?sl(t.parentNode,o):t.nodeType===1&&sl(t,o),mi(t)):sl(tt,o.stateNode));break;case 4:a=tt,c=qt,tt=o.stateNode.containerInfo,qt=!0,Hn(t,n,o),tt=a,qt=c;break;case 0:case 11:case 14:case 15:if(!ut&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var d=c,g=d.destroy;d=d.tag,g!==void 0&&(d&2||d&4)&&$l(o,n,g),c=c.next}while(c!==a)}Hn(t,n,o);break;case 1:if(!ut&&(qr(o,n),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){He(o,n,C)}Hn(t,n,o);break;case 21:Hn(t,n,o);break;case 22:o.mode&1?(ut=(a=ut)||o.memoizedState!==null,Hn(t,n,o),ut=a):Hn(t,n,o);break;default:Hn(t,n,o)}}function np(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new j_),n.forEach(function(a){var c=X_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Vt(t,n){var o=n.deletions;if(o!==null)for(var a=0;a<o.length;a++){var c=o[a];try{var d=t,g=n,C=g;e:for(;C!==null;){switch(C.tag){case 5:tt=C.stateNode,qt=!1;break e;case 3:tt=C.stateNode.containerInfo,qt=!0;break e;case 4:tt=C.stateNode.containerInfo,qt=!0;break e}C=C.return}if(tt===null)throw Error(i(160));tp(d,g,c),tt=null,qt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(F){He(c,n,F)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)rp(n,t),n=n.sibling}function rp(t,n){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Vt(n,t),on(t),a&4){try{Li(3,t,t.return),es(3,t)}catch(Y){He(t,t.return,Y)}try{Li(5,t,t.return)}catch(Y){He(t,t.return,Y)}}break;case 1:Vt(n,t),on(t),a&512&&o!==null&&qr(o,o.return);break;case 5:if(Vt(n,t),on(t),a&512&&o!==null&&qr(o,o.return),t.flags&32){var c=t.stateNode;try{ii(c,"")}catch(Y){He(t,t.return,Y)}}if(a&4&&(c=t.stateNode,c!=null)){var d=t.memoizedProps,g=o!==null?o.memoizedProps:d,C=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{C==="input"&&d.type==="radio"&&d.name!=null&&Af(c,d),xa(C,g);var F=xa(C,d);for(g=0;g<A.length;g+=2){var H=A[g],G=A[g+1];H==="style"?jf(c,G):H==="dangerouslySetInnerHTML"?Lf(c,G):H==="children"?ii(c,G):b(c,H,G,F)}switch(C){case"input":_a(c,d);break;case"textarea":Pf(c,d);break;case"select":var U=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var Z=d.value;Z!=null?xr(c,!!d.multiple,Z,!1):U!==!!d.multiple&&(d.defaultValue!=null?xr(c,!!d.multiple,d.defaultValue,!0):xr(c,!!d.multiple,d.multiple?[]:"",!1))}c[Ci]=d}catch(Y){He(t,t.return,Y)}}break;case 6:if(Vt(n,t),on(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,d=t.memoizedProps;try{c.nodeValue=d}catch(Y){He(t,t.return,Y)}}break;case 3:if(Vt(n,t),on(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{mi(n.containerInfo)}catch(Y){He(t,t.return,Y)}break;case 4:Vt(n,t),on(t);break;case 13:Vt(n,t),on(t),c=t.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(Ql=ze())),a&4&&np(t);break;case 22:if(H=o!==null&&o.memoizedState!==null,t.mode&1?(ut=(F=ut)||H,Vt(n,t),ut=F):Vt(n,t),on(t),a&8192){if(F=t.memoizedState!==null,(t.stateNode.isHidden=F)&&!H&&t.mode&1)for(Q=t,H=t.child;H!==null;){for(G=Q=H;Q!==null;){switch(U=Q,Z=U.child,U.tag){case 0:case 11:case 14:case 15:Li(4,U,U.return);break;case 1:qr(U,U.return);var K=U.stateNode;if(typeof K.componentWillUnmount=="function"){a=U,o=U.return;try{n=a,K.props=n.memoizedProps,K.state=n.memoizedState,K.componentWillUnmount()}catch(Y){He(a,o,Y)}}break;case 5:qr(U,U.return);break;case 22:if(U.memoizedState!==null){sp(G);continue}}Z!==null?(Z.return=U,Q=Z):sp(G)}H=H.sibling}e:for(H=null,G=t;;){if(G.tag===5){if(H===null){H=G;try{c=G.stateNode,F?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(C=G.stateNode,A=G.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,C.style.display=Bf("display",g))}catch(Y){He(t,t.return,Y)}}}else if(G.tag===6){if(H===null)try{G.stateNode.nodeValue=F?"":G.memoizedProps}catch(Y){He(t,t.return,Y)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;H===G&&(H=null),G=G.return}H===G&&(H=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Vt(n,t),on(t),a&4&&np(t);break;case 21:break;default:Vt(n,t),on(t)}}function on(t){var n=t.flags;if(n&2){try{e:{for(var o=t.return;o!==null;){if(Jh(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 d=ep(t);Wl(t,d,c);break;case 3:case 4:var g=a.stateNode.containerInfo,C=ep(t);Vl(t,C,g);break;default:throw Error(i(161))}}catch(A){He(t,t.return,A)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function H_(t,n,o){Q=t,ip(t)}function ip(t,n,o){for(var a=(t.mode&1)!==0;Q!==null;){var c=Q,d=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||Jo;if(!g){var C=c.alternate,A=C!==null&&C.memoizedState!==null||ut;C=Jo;var F=ut;if(Jo=g,(ut=A)&&!F)for(Q=c;Q!==null;)g=Q,A=g.child,g.tag===22&&g.memoizedState!==null?ap(c):A!==null?(A.return=g,Q=A):ap(c);for(;d!==null;)Q=d,ip(d),d=d.sibling;Q=c,Jo=C,ut=F}op(t)}else c.subtreeFlags&8772&&d!==null?(d.return=c,Q=d):op(t)}}function op(t){for(;Q!==null;){var n=Q;if(n.flags&8772){var o=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:ut||es(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!ut)if(o===null)a.componentDidMount();else{var c=n.elementType===n.type?o.memoizedProps:$t(n.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;d!==null&&sh(n,d,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}sh(n,g,o)}break;case 5:var C=n.stateNode;if(o===null&&n.flags&4){o=C;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 H=F.memoizedState;if(H!==null){var G=H.dehydrated;G!==null&&mi(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||n.flags&512&&ql(n)}catch(U){He(n,n.return,U)}}if(n===t){Q=null;break}if(o=n.sibling,o!==null){o.return=n.return,Q=o;break}Q=n.return}}function sp(t){for(;Q!==null;){var n=Q;if(n===t){Q=null;break}var o=n.sibling;if(o!==null){o.return=n.return,Q=o;break}Q=n.return}}function ap(t){for(;Q!==null;){var n=Q;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{es(4,n)}catch(A){He(n,o,A)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var c=n.return;try{a.componentDidMount()}catch(A){He(n,c,A)}}var d=n.return;try{ql(n)}catch(A){He(n,d,A)}break;case 5:var g=n.return;try{ql(n)}catch(A){He(n,g,A)}}}catch(A){He(n,n.return,A)}if(n===t){Q=null;break}var C=n.sibling;if(C!==null){C.return=n.return,Q=C;break}Q=n.return}}var z_=Math.ceil,ts=k.ReactCurrentDispatcher,Zl=k.ReactCurrentOwner,Ft=k.ReactCurrentBatchConfig,Se=0,Ke=null,qe=null,nt=0,Tt=0,Vr=Fn(0),Xe=0,Bi=null,lr=0,ns=0,Xl=0,ji=null,vt=null,Ql=0,Wr=1/0,wn=null,rs=!1,Kl=null,zn=null,is=!1,Gn=null,os=0,Ui=0,Yl=null,ss=-1,as=0;function dt(){return Se&6?ze():ss!==-1?ss:ss=ze()}function $n(t){return t.mode&1?Se&2&&nt!==0?nt&-nt:T_.transition!==null?(as===0&&(as=ed()),as):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:ud(t.type)),t):1}function Wt(t,n,o,a){if(50<Ui)throw Ui=0,Yl=null,Error(i(185));ci(t,o,a),(!(Se&2)||t!==Ke)&&(t===Ke&&(!(Se&2)&&(ns|=o),Xe===4&&qn(t,nt)),_t(t,a),o===1&&Se===0&&!(n.mode&1)&&(Wr=ze()+500,Mo&&Bn()))}function _t(t,n){var o=t.callbackNode;Tv(t,n);var a=go(t,t===Ke?nt:0);if(a===0)o!==null&&Kf(o),t.callbackNode=null,t.callbackPriority=0;else if(n=a&-a,t.callbackPriority!==n){if(o!=null&&Kf(o),n===1)t.tag===0?x_(up.bind(null,t)):Zd(up.bind(null,t)),E_(function(){!(Se&6)&&Bn()}),o=null;else{switch(td(a)){case 1:o=Aa;break;case 4:o=Yf;break;case 16:o=fo;break;case 536870912:o=Jf;break;default:o=fo}o=yp(o,lp.bind(null,t))}t.callbackPriority=n,t.callbackNode=o}}function lp(t,n){if(ss=-1,as=0,Se&6)throw Error(i(327));var o=t.callbackNode;if(Zr()&&t.callbackNode!==o)return null;var a=go(t,t===Ke?nt:0);if(a===0)return null;if(a&30||a&t.expiredLanes||n)n=ls(t,a);else{n=a;var c=Se;Se|=2;var d=fp();(Ke!==t||nt!==n)&&(wn=null,Wr=ze()+500,cr(t,n));do try{q_();break}catch(C){cp(t,C)}while(!0);gl(),ts.current=d,Se=c,qe!==null?n=0:(Ke=null,nt=0,n=Xe)}if(n!==0){if(n===2&&(c=Ia(t),c!==0&&(a=c,n=Jl(t,c))),n===1)throw o=Bi,cr(t,0),qn(t,a),_t(t,ze()),o;if(n===6)qn(t,a);else{if(c=t.current.alternate,!(a&30)&&!G_(c)&&(n=ls(t,a),n===2&&(d=Ia(t),d!==0&&(a=d,n=Jl(t,d))),n===1))throw o=Bi,cr(t,0),qn(t,a),_t(t,ze()),o;switch(t.finishedWork=c,t.finishedLanes=a,n){case 0:case 1:throw Error(i(345));case 2:fr(t,vt,wn);break;case 3:if(qn(t,a),(a&130023424)===a&&(n=Ql+500-ze(),10<n)){if(go(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){dt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=ol(fr.bind(null,t,vt,wn),n);break}fr(t,vt,wn);break;case 4:if(qn(t,a),(a&4194240)===a)break;for(n=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);d=1<<g,g=n[g],g>c&&(c=g),a&=~d}if(a=c,a=ze()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*z_(a/1960))-a,10<a){t.timeoutHandle=ol(fr.bind(null,t,vt,wn),a);break}fr(t,vt,wn);break;case 5:fr(t,vt,wn);break;default:throw Error(i(329))}}}return _t(t,ze()),t.callbackNode===o?lp.bind(null,t):null}function Jl(t,n){var o=ji;return t.current.memoizedState.isDehydrated&&(cr(t,n).flags|=256),t=ls(t,n),t!==2&&(n=vt,vt=o,n!==null&&eu(n)),t}function eu(t){vt===null?vt=t:vt.push.apply(vt,t)}function G_(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],d=c.getSnapshot;c=c.value;try{if(!zt(d(),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&=~Xl,n&=~ns,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 up(t){if(Se&6)throw Error(i(327));Zr();var n=go(t,0);if(!(n&1))return _t(t,ze()),null;var o=ls(t,n);if(t.tag!==0&&o===2){var a=Ia(t);a!==0&&(n=a,o=Jl(t,a))}if(o===1)throw o=Bi,cr(t,0),qn(t,n),_t(t,ze()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,fr(t,vt,wn),_t(t,ze()),null}function tu(t,n){var o=Se;Se|=1;try{return t(n)}finally{Se=o,Se===0&&(Wr=ze()+500,Mo&&Bn())}}function ur(t){Gn!==null&&Gn.tag===0&&!(Se&6)&&Zr();var n=Se;Se|=1;var o=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=o,Se=n,!(Se&6)&&Bn()}}function nu(){Tt=Vr.current,Pe(Vr)}function cr(t,n){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,__(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(fl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Do();break;case 3:Gr(),Pe(mt),Pe(st),xl();break;case 5:Sl(a);break;case 4:Gr();break;case 13:Pe(Le);break;case 19:Pe(Le);break;case 10:yl(a.type._context);break;case 22:case 23:nu()}o=o.return}if(Ke=t,qe=t=Vn(t.current,null),nt=Tt=n,Xe=0,Bi=null,Xl=ns=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,d=o.pending;if(d!==null){var g=d.next;d.next=c,a.next=g}o.pending=a}or=null}return t}function cp(t,n){do{var o=qe;try{if(gl(),qo.current=Xo,Vo){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Vo=!1}if(ar=0,Qe=Ze=Be=null,Ii=!1,Di=0,Zl.current=null,o===null||o.return===null){Xe=1,Bi=n,qe=null;break}e:{var d=t,g=o.return,C=o,A=n;if(n=nt,C.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var F=A,H=C,G=H.tag;if(!(H.mode&1)&&(G===0||G===11||G===15)){var U=H.alternate;U?(H.updateQueue=U.updateQueue,H.memoizedState=U.memoizedState,H.lanes=U.lanes):(H.updateQueue=null,H.memoizedState=null)}var Z=Mh(g);if(Z!==null){Z.flags&=-257,Fh(Z,g,C,d,n),Z.mode&1&&Ph(d,F,n),n=Z,A=F;var K=n.updateQueue;if(K===null){var Y=new Set;Y.add(A),n.updateQueue=Y}else K.add(A);break e}else{if(!(n&1)){Ph(d,F,n),ru();break e}A=Error(i(426))}}else if(Fe&&C.mode&1){var Ge=Mh(g);if(Ge!==null){!(Ge.flags&65536)&&(Ge.flags|=256),Fh(Ge,g,C,d,n),pl($r(A,C));break e}}d=A=$r(A,C),Xe!==4&&(Xe=2),ji===null?ji=[d]:ji.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,n&=-n,d.lanes|=n;var P=Ih(d,A,n);oh(d,P);break e;case 1:C=A;var I=d.type,M=d.stateNode;if(!(d.flags&128)&&(typeof I.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(zn===null||!zn.has(M)))){d.flags|=65536,n&=-n,d.lanes|=n;var $=Dh(d,C,n);oh(d,$);break e}}d=d.return}while(d!==null)}hp(o)}catch(ee){n=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function fp(){var t=ts.current;return ts.current=Xo,t===null?Xo:t}function ru(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),Ke===null||!(lr&268435455)&&!(ns&268435455)||qn(Ke,nt)}function ls(t,n){var o=Se;Se|=2;var a=fp();(Ke!==t||nt!==n)&&(wn=null,cr(t,n));do try{$_();break}catch(c){cp(t,c)}while(!0);if(gl(),Se=o,ts.current=a,qe!==null)throw Error(i(261));return Ke=null,nt=0,Xe}function $_(){for(;qe!==null;)dp(qe)}function q_(){for(;qe!==null&&!gv();)dp(qe)}function dp(t){var n=gp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,n===null?hp(t):qe=n,Zl.current=null}function hp(t){var n=t;do{var o=n.alternate;if(t=n.return,n.flags&32768){if(o=B_(o,n),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Xe=6,qe=null;return}}else if(o=L_(o,n,Tt),o!==null){qe=o;return}if(n=n.sibling,n!==null){qe=n;return}qe=n=t}while(n!==null);Xe===0&&(Xe=5)}function fr(t,n,o){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,V_(t,n,o,a)}finally{Ft.transition=c,Oe=a}return null}function V_(t,n,o,a){do Zr();while(Gn!==null);if(Se&6)throw Error(i(327));o=t.finishedWork;var c=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var d=o.lanes|o.childLanes;if(Cv(t,d),t===Ke&&(qe=Ke=null,nt=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||is||(is=!0,yp(fo,function(){return Zr(),null})),d=(o.flags&15990)!==0,o.subtreeFlags&15990||d){d=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var C=Se;Se|=4,Zl.current=null,U_(t,o),rp(o,t),d_(rl),_o=!!nl,rl=nl=null,t.current=o,H_(o),yv(),Se=C,Oe=g,Ft.transition=d}else t.current=o;if(is&&(is=!1,Gn=t,os=c),d=t.pendingLanes,d===0&&(zn=null),Ev(o.stateNode),_t(t,ze()),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(rs)throw rs=!1,t=Kl,Kl=null,t;return os&1&&t.tag!==0&&Zr(),d=t.pendingLanes,d&1?t===Yl?Ui++:(Ui=0,Yl=t):Ui=0,Bn(),null}function Zr(){if(Gn!==null){var t=td(os),n=Ft.transition,o=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,Gn===null)var a=!1;else{if(t=Gn,Gn=null,os=0,Se&6)throw Error(i(331));var c=Se;for(Se|=4,Q=t.current;Q!==null;){var d=Q,g=d.child;if(Q.flags&16){var C=d.deletions;if(C!==null){for(var A=0;A<C.length;A++){var F=C[A];for(Q=F;Q!==null;){var H=Q;switch(H.tag){case 0:case 11:case 15:Li(8,H,d)}var G=H.child;if(G!==null)G.return=H,Q=G;else for(;Q!==null;){H=Q;var U=H.sibling,Z=H.return;if(Yh(H),H===F){Q=null;break}if(U!==null){U.return=Z,Q=U;break}Q=Z}}}var K=d.alternate;if(K!==null){var Y=K.child;if(Y!==null){K.child=null;do{var Ge=Y.sibling;Y.sibling=null,Y=Ge}while(Y!==null)}}Q=d}}if(d.subtreeFlags&2064&&g!==null)g.return=d,Q=g;else e:for(;Q!==null;){if(d=Q,d.flags&2048)switch(d.tag){case 0:case 11:case 15:Li(9,d,d.return)}var P=d.sibling;if(P!==null){P.return=d.return,Q=P;break e}Q=d.return}}var I=t.current;for(Q=I;Q!==null;){g=Q;var M=g.child;if(g.subtreeFlags&2064&&M!==null)M.return=g,Q=M;else e:for(g=I;Q!==null;){if(C=Q,C.flags&2048)try{switch(C.tag){case 0:case 11:case 15:es(9,C)}}catch(ee){He(C,C.return,ee)}if(C===g){Q=null;break e}var $=C.sibling;if($!==null){$.return=C.return,Q=$;break e}Q=C.return}}if(Se=c,Bn(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(ho,t)}catch{}a=!0}return a}finally{Oe=o,Ft.transition=n}}return!1}function pp(t,n,o){n=$r(o,n),n=Ih(t,n,1),t=Un(t,n,1),n=dt(),t!==null&&(ci(t,1,n),_t(t,n))}function He(t,n,o){if(t.tag===3)pp(t,t,o);else for(;n!==null;){if(n.tag===3){pp(n,t,o);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zn===null||!zn.has(a))){t=$r(o,t),t=Dh(n,t,1),n=Un(n,t,1),t=dt(),n!==null&&(ci(n,1,t),_t(n,t));break}}n=n.return}}function W_(t,n,o){var a=t.pingCache;a!==null&&a.delete(n),n=dt(),t.pingedLanes|=t.suspendedLanes&o,Ke===t&&(nt&o)===o&&(Xe===4||Xe===3&&(nt&130023424)===nt&&500>ze()-Ql?cr(t,0):Xl|=o),_t(t,n)}function mp(t,n){n===0&&(t.mode&1?(n=mo,mo<<=1,!(mo&130023424)&&(mo=4194304)):n=1);var o=dt();t=vn(t,n),t!==null&&(ci(t,n,o),_t(t,o))}function Z_(t){var n=t.memoizedState,o=0;n!==null&&(o=n.retryLane),mp(t,o)}function X_(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),mp(t,o)}var gp;gp=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,F_(t,n,o);yt=!!(t.flags&131072)}else yt=!1,Fe&&n.flags&1048576&&Xd(n,Lo,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Yo(t,n),t=n.pendingProps;var c=Fr(n,st.current);zr(n,o),c=kl(null,n,a,t,c,o);var d=Rl();return n.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,gt(a)?(d=!0,Po(n)):d=!1,n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,El(n),c.updater=Qo,n.stateNode=c,c._reactInternals=n,Pl(n,a,t,o),n=Bl(null,n,a,!0,d,o)):(n.tag=0,Fe&&d&&cl(n),ft(null,n,c,o),n=n.child),n;case 16:a=n.elementType;e:{switch(Yo(t,n),t=n.pendingProps,c=a._init,a=c(a._payload),n.type=a,c=n.tag=K_(a),t=$t(a,t),c){case 0:n=Ll(null,n,a,t,o);break e;case 1:n=zh(null,n,a,t,o);break e;case 11:n=Lh(null,n,a,t,o);break e;case 14:n=Bh(null,n,a,$t(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:$t(a,c),Ll(t,n,a,c,o);case 1:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:$t(a,c),zh(t,n,a,c,o);case 3:e:{if(Gh(n),t===null)throw Error(i(387));a=n.pendingProps,d=n.memoizedState,c=d.element,ih(t,n),Go(n,a,null,o);var g=n.memoizedState;if(a=g.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){c=$r(Error(i(423)),n),n=$h(t,n,a,o,c);break e}else if(a!==c){c=$r(Error(i(424)),n),n=$h(t,n,a,o,c);break e}else for(xt=Mn(n.stateNode.containerInfo.firstChild),bt=n,Fe=!0,Gt=null,o=nh(n,null,a,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jr(),a===c){n=En(t,n,o);break e}ft(t,n,a,o)}n=n.child}return n;case 5:return ah(n),t===null&&hl(n),a=n.type,c=n.pendingProps,d=t!==null?t.memoizedProps:null,g=c.children,il(a,c)?g=null:d!==null&&il(a,d)&&(n.flags|=32),Hh(t,n),ft(t,n,g,o),n.child;case 6:return t===null&&hl(n),null;case 13:return qh(t,n,o);case 4:return wl(n,n.stateNode.containerInfo),a=n.pendingProps,t===null?n.child=Ur(n,null,a,o):ft(t,n,a,o),n.child;case 11:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:$t(a,c),Lh(t,n,a,c,o);case 7:return ft(t,n,n.pendingProps,o),n.child;case 8:return ft(t,n,n.pendingProps.children,o),n.child;case 12:return ft(t,n,n.pendingProps.children,o),n.child;case 10:e:{if(a=n.type._context,c=n.pendingProps,d=n.memoizedProps,g=c.value,Ae(Uo,a._currentValue),a._currentValue=g,d!==null)if(zt(d.value,g)){if(d.children===c.children&&!mt.current){n=En(t,n,o);break e}}else for(d=n.child,d!==null&&(d.return=n);d!==null;){var C=d.dependencies;if(C!==null){g=d.child;for(var A=C.firstContext;A!==null;){if(A.context===a){if(d.tag===1){A=_n(-1,o&-o),A.tag=2;var F=d.updateQueue;if(F!==null){F=F.shared;var H=F.pending;H===null?A.next=A:(A.next=H.next,H.next=A),F.pending=A}}d.lanes|=o,A=d.alternate,A!==null&&(A.lanes|=o),vl(d.return,o,n),C.lanes|=o;break}A=A.next}}else if(d.tag===10)g=d.type===n.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(i(341));g.lanes|=o,C=g.alternate,C!==null&&(C.lanes|=o),vl(g,o,n),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===n){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}ft(t,n,c.children,o),n=n.child}return n;case 9:return c=n.type,a=n.pendingProps.children,zr(n,o),c=Pt(c),a=a(c),n.flags|=1,ft(t,n,a,o),n.child;case 14:return a=n.type,c=$t(a,n.pendingProps),c=$t(a.type,c),Bh(t,n,a,c,o);case 15:return jh(t,n,n.type,n.pendingProps,o);case 17:return a=n.type,c=n.pendingProps,c=n.elementType===a?c:$t(a,c),Yo(t,n),n.tag=1,gt(a)?(t=!0,Po(n)):t=!1,zr(n,o),Nh(n,a,c),Pl(n,a,c,o),Bl(null,n,a,!0,t,o);case 19:return Wh(t,n,o);case 22:return Uh(t,n,o)}throw Error(i(156,n.tag))};function yp(t,n){return Qf(t,n)}function Q_(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 Lt(t,n,o,a){return new Q_(t,n,o,a)}function iu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function K_(t){if(typeof t=="function")return iu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Ie)return 14}return 2}function Vn(t,n){var o=t.alternate;return o===null?(o=Lt(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 us(t,n,o,a,c,d){var g=2;if(a=t,typeof t=="function")iu(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case z:return dr(o.children,c,d,n);case V:g=8,c|=8;break;case fe:return t=Lt(12,o,n,c|2),t.elementType=fe,t.lanes=d,t;case ue:return t=Lt(13,o,n,c),t.elementType=ue,t.lanes=d,t;case Ue:return t=Lt(19,o,n,c),t.elementType=Ue,t.lanes=d,t;case Ne:return cs(o,c,d,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 Ie:g=14;break e;case $e:g=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return n=Lt(g,o,n,c),n.elementType=t,n.type=a,n.lanes=d,n}function dr(t,n,o,a){return t=Lt(7,t,a,n),t.lanes=o,t}function cs(t,n,o,a){return t=Lt(22,t,a,n),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function ou(t,n,o){return t=Lt(6,t,null,n),t.lanes=o,t}function su(t,n,o){return n=Lt(4,t.children!==null?t.children:[],t.key,n),n.lanes=o,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function Y_(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=Da(0),this.expirationTimes=Da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Da(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function au(t,n,o,a,c,d,g,C,A){return t=new Y_(t,n,o,C,A),n===1?(n=1,d===!0&&(n|=8)):n=0,d=Lt(3,null,null,n),t.current=d,d.stateNode=t,d.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},El(d),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 vp(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 Vd(t,o,n)}return n}function _p(t,n,o,a,c,d,g,C,A){return t=au(o,a,!0,t,c,d,g,C,A),t.context=vp(null),o=t.current,a=dt(),c=$n(o),d=_n(a,c),d.callback=n??null,Un(o,d,c),t.current.lanes=c,ci(t,c,a),_t(t,a),t}function fs(t,n,o,a){var c=n.current,d=dt(),g=$n(c);return o=vp(o),n.context===null?n.context=o:n.pendingContext=o,n=_n(d,g),n.payload={element:t},a=a===void 0?null:a,a!==null&&(n.callback=a),t=Un(c,n,g),t!==null&&(Wt(t,c,g,d),zo(t,c,g)),g}function ds(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Ep(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<n?o:n}}function lu(t,n){Ep(t,n),(t=t.alternate)&&Ep(t,n)}function e1(){return null}var wp=typeof reportError=="function"?reportError:function(t){console.error(t)};function uu(t){this._internalRoot=t}hs.prototype.render=uu.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));fs(t,n,null,null)},hs.prototype.unmount=uu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;ur(function(){fs(null,t,null,null)}),n[pn]=null}};function hs(t){this._internalRoot=t}hs.prototype.unstable_scheduleHydration=function(t){if(t){var n=id();t={blockedOn:null,target:t,priority:n};for(var o=0;o<In.length&&n!==0&&n<In[o].priority;o++);In.splice(o,0,t),o===0&&ad(t)}};function cu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ps(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Sp(){}function t1(t,n,o,a,c){if(c){if(typeof a=="function"){var d=a;a=function(){var F=ds(g);d.call(F)}}var g=_p(n,a,t,0,null,!1,!1,"",Sp);return t._reactRootContainer=g,t[pn]=g.current,xi(t.nodeType===8?t.parentNode:t),ur(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var C=a;a=function(){var F=ds(A);C.call(F)}}var A=au(t,0,!1,null,null,!1,!1,"",Sp);return t._reactRootContainer=A,t[pn]=A.current,xi(t.nodeType===8?t.parentNode:t),ur(function(){fs(n,A,o,a)}),A}function ms(t,n,o,a,c){var d=o._reactRootContainer;if(d){var g=d;if(typeof c=="function"){var C=c;c=function(){var A=ds(g);C.call(A)}}fs(n,g,t,c)}else g=t1(o,n,t,c,a);return ds(g)}nd=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var o=ui(n.pendingLanes);o!==0&&(Pa(n,o|1),_t(n,ze()),!(Se&6)&&(Wr=ze()+500,Bn()))}break;case 13:ur(function(){var a=vn(t,1);if(a!==null){var c=dt();Wt(a,t,1,c)}}),lu(t,1)}},Ma=function(t){if(t.tag===13){var n=vn(t,134217728);if(n!==null){var o=dt();Wt(n,t,134217728,o)}lu(t,134217728)}},rd=function(t){if(t.tag===13){var n=$n(t),o=vn(t,n);if(o!==null){var a=dt();Wt(o,t,n,a)}lu(t,n)}},id=function(){return Oe},od=function(t,n){var o=Oe;try{return Oe=t,n()}finally{Oe=o}},ka=function(t,n,o){switch(n){case"input":if(_a(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=Io(a);if(!c)throw Error(i(90));ct(a),_a(a,c)}}}break;case"textarea":Pf(t,o);break;case"select":n=o.value,n!=null&&xr(t,!!o.multiple,n,!1)}},Gf=tu,$f=ur;var n1={usingClientEntryPoint:!1,Events:[ki,Pr,Io,Hf,zf,tu]},Hi={findFiberByHostInstance:tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r1={bundleType:Hi.bundleType,version:Hi.version,rendererPackageName:Hi.rendererPackageName,rendererConfig:Hi.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=Zf(t),t===null?null:t.stateNode},findFiberByHostInstance:Hi.findFiberByHostInstance||e1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gs.isDisabled&&gs.supportsFiber)try{ho=gs.inject(r1),en=gs}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n1,Et.createPortal=function(t,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(n))throw Error(i(200));return J_(t,n,null,o)},Et.createRoot=function(t,n){if(!cu(t))throw Error(i(299));var o=!1,a="",c=wp;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),n=au(t,1,!1,null,null,o,!1,a,c),t[pn]=n.current,xi(t.nodeType===8?t.parentNode:t),new uu(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=Zf(n),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return ur(t)},Et.hydrate=function(t,n,o){if(!ps(n))throw Error(i(200));return ms(null,t,n,!0,o)},Et.hydrateRoot=function(t,n,o){if(!cu(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,d="",g=wp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),n=_p(n,null,t,1,o??null,c,!1,d,g),t[pn]=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 hs(n)},Et.render=function(t,n,o){if(!ps(n))throw Error(i(200));return ms(null,t,n,!1,o)},Et.unmountComponentAtNode=function(t){if(!ps(t))throw Error(i(40));return t._reactRootContainer?(ur(function(){ms(null,null,t,!1,function(){t._reactRootContainer=null,t[pn]=null})}),!0):!1},Et.unstable_batchedUpdates=tu,Et.unstable_renderSubtreeIntoContainer=function(t,n,o,a){if(!ps(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return ms(t,n,o,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Np;function h1(){if(Np)return hu.exports;Np=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(),hu.exports=d1(),hu.exports}var Ap;function p1(){if(Ap)return vs;Ap=1;var e=h1();return vs.createRoot=e.createRoot,vs.hydrateRoot=e.hydrateRoot,vs}var m1=p1(),B=Yr();const tg=ra(B);var gu={exports:{}},yu={};/**
|
|
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 Ip;function g1(){if(Ip)return yu;Ip=1;var e=Yr();function r(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return yu.useSyncExternalStoreWithSelector=function(p,v,y,x,m){var w=l(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=f(function(){function R(T){if(!O){if(O=!0,N=T,T=x(T),m!==void 0&&_.hasValue){var L=_.value;if(m(L,T))return b=L}return b=T}if(L=b,i(N,T))return L;var z=x(T);return m!==void 0&&m(L,z)?(N=T,L):(N=T,b=z)}var O=!1,N,b,k=y===void 0?null:y;return[function(){return R(v())},k===null?void 0:function(){return R(k())}]},[v,y,x,m]);var S=s(p,w[0],w[1]);return u(function(){_.hasValue=!0,_.value=S},[S]),h(S),S},yu}var Dp;function y1(){return Dp||(Dp=1,gu.exports=g1()),gu.exports}var v1=y1(),_1=B.version.startsWith("19"),E1=Symbol.for(_1?"react.transitional.element":"react.element"),w1=Symbol.for("react.portal"),S1=Symbol.for("react.fragment"),b1=Symbol.for("react.strict_mode"),x1=Symbol.for("react.profiler"),T1=Symbol.for("react.consumer"),C1=Symbol.for("react.context"),ng=Symbol.for("react.forward_ref"),k1=Symbol.for("react.suspense"),R1=Symbol.for("react.suspense_list"),qc=Symbol.for("react.memo"),O1=Symbol.for("react.lazy"),N1=ng,A1=qc;function I1(e){if(typeof e=="object"&&e!==null){const{$$typeof:r}=e;switch(r){case E1:switch(e=e.type,e){case S1:case x1:case b1:case k1:case R1:return e;default:switch(e=e&&e.$$typeof,e){case C1:case ng:case O1:case qc:return e;case T1:return e;default:return r}}case w1:return r}}}function D1(e){return I1(e)===qc}function P1(e,r,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:f}){let h=!1,p,v,y,x,m;function w(N,b){return p=N,v=b,y=e(p,v),x=r(s,v),m=i(y,x,v),h=!0,m}function _(){return y=e(p,v),r.dependsOnOwnProps&&(x=r(s,v)),m=i(y,x,v),m}function S(){return e.dependsOnOwnProps&&(y=e(p,v)),r.dependsOnOwnProps&&(x=r(s,v)),m=i(y,x,v),m}function R(){const N=e(p,v),b=!f(N,y);return y=N,b&&(m=i(y,x,v)),m}function O(N,b){const k=!u(b,v),T=!l(N,p,b,v);return p=N,v=b,k&&T?_():k?S():T?R():m}return function(b,k){return h?O(b,k):w(b,k)}}function M1(e,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=r(e,l),f=i(e,l),h=s(e,l);return P1(u,f,h,e,l)}function F1(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 pc(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Pp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function rg(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=Pp(e);let v=u(h,p);return typeof v=="function"&&(u.mapToProps=v,u.dependsOnOwnProps=Pp(v),v=u(h,p)),v},u}}function Vc(e,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function L1(e){return e&&typeof e=="object"?pc(r=>F1(e,r)):e?typeof e=="function"?rg(e):Vc(e,"mapDispatchToProps"):pc(r=>({dispatch:r}))}function B1(e){return e?typeof e=="function"?rg(e):Vc(e,"mapStateToProps"):pc(()=>({}))}function j1(e,r,i){return{...i,...e,...r}}function U1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,f;return function(p,v,y){const x=e(p,v,y);return u?l(x,f)||(f=x):(u=!0,f=x),f}}}function H1(e){return e?typeof e=="function"?U1(e):Vc(e,"mergeProps"):()=>j1}function z1(e){e()}function G1(){let e=null,r=null;return{clear(){e=null,r=null},notify(){z1(()=>{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 Mp={notify(){},get:()=>[]};function ig(e,r){let i,s=Mp,l=0,u=!1;function f(S){y();const R=s.subscribe(S);let O=!1;return()=>{O||(O=!0,R(),x())}}function h(){s.notify()}function p(){_.onStateChange&&_.onStateChange()}function v(){return u}function y(){l++,i||(i=r?r.addNestedSub(p):e.subscribe(p),s=G1())}function x(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=Mp)}function m(){u||(u=!0,y())}function w(){u&&(u=!1,x())}const _={addNestedSub:f,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:v,trySubscribe:m,tryUnsubscribe:w,getListeners:()=>s};return _}var $1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q1=$1(),V1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",W1=V1(),Z1=()=>q1||W1?B.useLayoutEffect:B.useEffect,Ks=Z1();function Fp(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function vu(e,r){if(Fp(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])||!Fp(e[i[l]],r[i[l]]))return!1;return!0}var X1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Q1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},og={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y1={[N1]:K1,[A1]:og};function Lp(e){return D1(e)?og:Y1[e.$$typeof]||X1}var J1=Object.defineProperty,eE=Object.getOwnPropertyNames,Bp=Object.getOwnPropertySymbols,tE=Object.getOwnPropertyDescriptor,nE=Object.getPrototypeOf,jp=Object.prototype;function mc(e,r){if(typeof r!="string"){if(jp){const u=nE(r);u&&u!==jp&&mc(e,u)}let i=eE(r);Bp&&(i=i.concat(Bp(r)));const s=Lp(e),l=Lp(r);for(let u=0;u<i.length;++u){const f=i[u];if(!Q1[f]&&!(l&&l[f])&&!(s&&s[f])){const h=tE(r,f);try{J1(e,f,h)}catch{}}}}return e}var _u=Symbol.for("react-redux-context"),Eu=typeof globalThis<"u"?globalThis:{};function rE(){if(!B.createContext)return{};const e=Eu[_u]??(Eu[_u]=new Map);let r=e.get(B.createContext);return r||(r=B.createContext(null),e.set(B.createContext,r)),r}var kn=rE(),iE=[null,null];function oE(e,r,i){Ks(()=>e(...r),i)}function sE(e,r,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function aE(e,r,i,s,l,u,f,h,p,v,y){if(!e)return()=>{};let x=!1,m=null;const w=()=>{if(x||!h.current)return;const S=r.getState();let R,O;try{R=s(S,l.current)}catch(N){O=N,m=N}O||(m=null),R===u.current?f.current||v():(u.current=R,p.current=R,f.current=!0,y())};return i.onStateChange=w,i.trySubscribe(),w(),()=>{if(x=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function lE(e,r){return e===r}function uE(e,r,i,{pure:s,areStatesEqual:l=lE,areOwnPropsEqual:u=vu,areStatePropsEqual:f=vu,areMergedPropsEqual:h=vu,forwardRef:p=!1,context:v=kn}={}){const y=v,x=B1(e),m=L1(r),w=H1(i),_=!!e;return R=>{const O=R.displayName||R.name||"Component",N=`Connect(${O})`,b={shouldHandleStateChanges:_,displayName:N,wrappedComponentName:O,WrappedComponent:R,initMapStateToProps:x,initMapDispatchToProps:m,initMergeProps:w,areStatesEqual:l,areStatePropsEqual:f,areOwnPropsEqual:u,areMergedPropsEqual:h};function k(z){const[V,fe,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ct,...Jt}=z;return[z.context,ct,Jt]},[z]),oe=B.useMemo(()=>{let ct=y;return V!=null&&V.Consumer,ct},[V,y]),pe=B.useContext(oe),ue=!!z.store&&!!z.store.getState&&!!z.store.dispatch,Ue=!!pe&&!!pe.store,Ie=ue?z.store:pe.store,$e=Ue?pe.getServerState:Ie.getState,Ne=B.useMemo(()=>M1(Ie.dispatch,b),[Ie]),[W,ne]=B.useMemo(()=>{if(!_)return iE;const ct=ig(Ie,ue?void 0:pe.subscription),Jt=ct.notifyNestedSubs.bind(ct);return[ct,Jt]},[Ie,ue,pe]),X=B.useMemo(()=>ue?pe:{...pe,subscription:W},[ue,pe,W]),D=B.useRef(void 0),j=B.useRef(te),ce=B.useRef(void 0),he=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Ks(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ce.current&&te===j.current?ce.current:Ne(Ie.getState(),te),[Ie,te]),Te=B.useMemo(()=>Jt=>W?aE(_,Ie,W,Ne,j,D,he,ye,ce,ne,Jt):()=>{},[W]);oE(sE,[j,D,he,te,ce,ne]);let Re;try{Re=B.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ct){throw ve.current&&(ct.message+=`
|
|
49
|
-
The error may be correlated with this previous error:
|
|
50
|
-
${ve.current.stack}
|
|
51
|
-
|
|
52
|
-
`),ct}Ks(()=>{ve.current=void 0,ce.current=void 0,D.current=Re});const et=B.useMemo(()=>B.createElement(R,{...Re,ref:fe}),[fe,R,Re]);return B.useMemo(()=>_?B.createElement(oe.Provider,{value:X},et):et,[oe,et,X])}const L=B.memo(k);if(L.WrappedComponent=R,L.displayName=k.displayName=N,p){const V=B.forwardRef(function(te,oe){return B.createElement(L,{...te,reactReduxForwardedRef:oe})});return V.displayName=N,V.WrappedComponent=R,mc(V,R)}return mc(L,R)}}var cE=uE;function fE(e){const{children:r,context:i,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=ig(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),f=B.useMemo(()=>l.getState(),[l]);Ks(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),f!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,f]);const h=i||kn;return B.createElement(h.Provider,{value:u},r)}var dE=fE;function Wc(e=kn){return function(){return B.useContext(e)}}var sg=Wc();function ag(e=kn){const r=e===kn?sg:Wc(e),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var hE=ag();function pE(e=kn){const r=e===kn?hE:ag(e),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var mE=pE(),gE=(e,r)=>e===r;function yE(e=kn){const r=e===kn?sg:Wc(e),i=(s,l={})=>{const{equalityFn:u=gE}=typeof l=="function"?{equalityFn:l}:l,f=r(),{store:h,subscription:p,getServerState:v}=f;B.useRef(!0);const y=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),x=v1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,v||h.getState,y,u);return B.useDebugValue(x),x};return Object.assign(i,{withTypes:()=>i}),i}var vE=yE(),wu={exports:{}};/*!
|
|
53
|
-
Copyright (c) 2018 Jed Watson.
|
|
54
|
-
Licensed under the MIT License (MIT), see
|
|
55
|
-
http://jedwatson.github.io/classnames
|
|
56
|
-
*/var Up;function _E(){return Up||(Up=1,function(e){(function(){var r={}.hasOwnProperty;function i(){for(var u="",f=0;f<arguments.length;f++){var h=arguments[f];h&&(u=l(u,s(h)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return i.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var h in u)r.call(u,h)&&u[h]&&(f=l(f,h));return f}function l(u,f){return f?u?u+" "+f:u+f:u}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(wu)),wu.exports}var EE=_E();const q=ra(EE);var gc=function(e,r){return gc=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])},gc(e,r)};function jt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");gc(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 ia(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 ln(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 sn(e,r){var i=r&&r.cache?r.cache:kE,s=r&&r.serializer?r.serializer:TE,l=r&&r.strategy?r.strategy:SE;return l(e,{cache:i,serializer:s})}function wE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function lg(e,r,i,s){var l=wE(s)?s:i(s),u=r.get(l);return typeof u>"u"&&(u=e.call(this,s),r.set(l,u)),u}function ug(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 Zc(e,r,i,s,l){return i.bind(r,e,s,l)}function SE(e,r){var i=e.length===1?lg:ug;return Zc(e,this,i,r.cache.create(),r.serializer)}function bE(e,r){return Zc(e,this,ug,r.cache.create(),r.serializer)}function xE(e,r){return Zc(e,this,lg,r.cache.create(),r.serializer)}var TE=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}(),kE={create:function(){return new CE}},an={variadic:bE,monadic:xE},_e;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(_e||(_e={}));var Me;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Me||(Me={}));var Qr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qr||(Qr={}));function Hp(e){return e.type===Me.literal}function RE(e){return e.type===Me.argument}function cg(e){return e.type===Me.number}function fg(e){return e.type===Me.date}function dg(e){return e.type===Me.time}function hg(e){return e.type===Me.select}function pg(e){return e.type===Me.plural}function OE(e){return e.type===Me.pound}function mg(e){return e.type===Me.tag}function gg(e){return!!(e&&typeof e=="object"&&e.type===Qr.number)}function yc(e){return!!(e&&typeof e=="object"&&e.type===Qr.dateTime)}var yg=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,NE=/(?:[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 AE(e){var r={};return e.replace(NE,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 IE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function DE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(IE).filter(function(m){return m.length>0}),i=[],s=0,l=r;s<l.length;s++){var u=l[s],f=u.split("/");if(f.length===0)throw new Error("Invalid number skeleton");for(var h=f[0],p=f.slice(1),v=0,y=p;v<y.length;v++){var x=y[v];if(x.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function PE(e){return e.replace(/^(.*?)-/,"")}var zp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vg=/^(@+)?(\+|#+)?[rs]?$/g,ME=/(\*)(0+)|(#+)(0+)|(0+)/g,_g=/^(0+)$/;function Gp(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(vg,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 Eg(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 FE(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)),!_g.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function $p(e){var r={},i=Eg(e);return i||r}function LE(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=PE(l.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=J(J(J({},r),{notation:"scientific"}),l.options.reduce(function(p,v){return J(J({},p),$p(v))},{}));continue;case"engineering":r=J(J(J({},r),{notation:"engineering"}),l.options.reduce(function(p,v){return J(J({},p),$p(v))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(ME,function(p,v,y,x,m,w){if(v)r.minimumIntegerDigits=y.length;else{if(x&&m)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(_g.test(l.stem)){r.minimumIntegerDigits=l.stem.length;continue}if(zp.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace(zp,function(p,v,y,x,m,w){return y==="*"?r.minimumFractionDigits=v.length:x&&x[0]==="#"?r.maximumFractionDigits=x.length:m&&w?(r.minimumFractionDigits=m.length,r.maximumFractionDigits=m.length+w.length):(r.minimumFractionDigits=v.length,r.maximumFractionDigits=v.length),""});var u=l.options[0];u==="w"?r=J(J({},r),{trailingZeroDisplay:"stripIfInteger"}):u&&(r=J(J({},r),Gp(u)));continue}if(vg.test(l.stem)){r=J(J({},r),Gp(l.stem));continue}var f=Eg(l.stem);f&&(r=J(J({},r),f));var h=FE(l.stem);h&&(r=J(J({},r),h))}return r}var _s={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function 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 f=1+(u&1),h=u<2?1:3+(u>>1),p="a",v=jE(r);for((v=="H"||v=="k")&&(h=0);h-- >0;)i+=p;for(;f-- >0;)i=v+i}else l==="J"?i+="H":i+=l}return i}function jE(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=_s[s||""]||_s[i||""]||_s["".concat(i,"-001")]||_s["001"];return l[0]}var Su,UE=new RegExp("^".concat(yg.source,"*")),HE=new RegExp("".concat(yg.source,"*$"));function we(e,r){return{start:e,end:r}}var zE=!!String.prototype.startsWith&&"_a".startsWith("a",1),GE=!!String.fromCodePoint,$E=!!Object.fromEntries,qE=!!String.prototype.codePointAt,VE=!!String.prototype.trimStart,WE=!!String.prototype.trimEnd,ZE=!!Number.isSafeInteger,XE=ZE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},vc=!0;try{var QE=Sg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vc=((Su=QE.exec("a"))===null||Su===void 0?void 0:Su[0])==="a"}catch{vc=!1}var qp=zE?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},_c=GE?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",l=r.length,u=0,f;l>u;){if(f=r[u++],f>1114111)throw RangeError(f+" is not a valid code point");s+=f<65536?String.fromCharCode(f):String.fromCharCode(((f-=65536)>>10)+55296,f%1024+56320)}return s},Vp=$E?Object.fromEntries:function(r){for(var i={},s=0,l=r;s<l.length;s++){var u=l[s],f=u[0],h=u[1];i[f]=h}return i},wg=qE?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}},KE=VE?function(r){return r.trimStart()}:function(r){return r.replace(UE,"")},YE=WE?function(r){return r.trimEnd()}:function(r){return r.replace(HE,"")};function Sg(e,r){return new RegExp(e,r)}var Ec;if(vc){var Wp=Sg("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ec=function(r,i){var s;Wp.lastIndex=i;var l=Wp.exec(r);return(s=l[1])!==null&&s!==void 0?s:""}}else Ec=function(r,i){for(var s=[];;){var l=wg(r,i);if(l===void 0||bg(l)||nw(l))break;s.push(l),i+=l>=65536?2:1}return _c.apply(void 0,s)};var JE=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 f=this.parseArgument(r,s);if(f.err)return f;l.push(f.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:we(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&wc(this.peek()||0)){var f=this.parseTag(r,i);if(f.err)return f;l.push(f.val)}else{var f=this.parseLiteral(r,i);if(f.err)return f;l.push(f.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:we(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(r+1,i,!0);if(u.err)return u;var f=u.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wc(this.char()))return this.error(_e.INVALID_TAG,we(h,this.clonePosition()));var p=this.clonePosition(),v=this.parseTagName();return l!==v?this.error(_e.UNMATCHED_CLOSING_TAG,we(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:f,location:we(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,we(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,we(s,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&tw(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 f=this.tryParseUnquoted(r,i);if(f){l+=f;continue}var h=this.tryParseLeftAngleBracket();if(h){l+=h;continue}break}var p=we(s,this.clonePosition());return{val:{type:Me.literal,value:l,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ew(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 _c.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(),_c(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,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,we(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(r,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=Ec(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),f=we(r,u);return{value:s,location:f}},e.prototype.parseArgumentOptions=function(r,i,s,l){var u,f=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(_e.EXPECT_ARGUMENT_TYPE,we(f,p));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),x=this.parseSimpleArgStyleIfPossible();if(x.err)return x;var m=YE(x.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var w=we(y,this.clonePosition());v={style:m,styleLocation:w}}var _=this.tryParseArgumentClose(l);if(_.err)return _;var S=we(l,this.clonePosition());if(v&&qp(v==null?void 0:v.style,"::",0)){var R=KE(v.style.slice(2));if(h==="number"){var x=this.parseNumberSkeletonFromString(R,v.styleLocation);return x.err?x:{val:{type:Me.number,value:s,location:S,style:x.val},err:null}}else{if(R.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,S);var O=R;this.locale&&(O=BE(R,this.locale));var m={type:Qr.dateTime,pattern:O,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?AE(O):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:S,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:S,style:(u=v==null?void 0:v.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,we(b,J({},b)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),T=0;if(h!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var x=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(x.err)return x;this.bumpSpace(),k=this.parseIdentifierIfPossible(),T=x.val}var L=this.tryParsePluralOrSelectOptions(r,h,i,k);if(L.err)return L;var _=this.tryParseArgumentClose(l);if(_.err)return _;var z=we(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Vp(L.val),location:z},err:null}:{val:{type:Me.plural,value:s,options:Vp(L.val),offset:T,pluralType:h==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,we(f,p))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,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,we(l,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(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=DE(r)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Qr.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?LE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,i,s,l){for(var u,f=!1,h=[],p=new Set,v=l.value,y=l.location;;){if(v.length===0){var x=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=we(x,this.clonePosition()),v=this.message.slice(x.offset,this.offset())}else break}if(p.has(v))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);v==="other"&&(f=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(r+1,i,s);if(_.err)return _;var S=this.tryParseArgumentClose(w);if(S.err)return S;h.push([v,{value:_.val,location:we(w,this.clonePosition())}]),p.add(v),this.bumpSpace(),u=this.parseIdentifierIfPossible(),v=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!f?this.error(_e.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(r,i){var s=1,l=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var u=!1,f=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)u=!0,f=f*10+(h-48),this.bump();else break}var p=we(l,this.clonePosition());return u?(f*=s,XE(f)?{val:f,err:null}:this.error(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=wg(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(qp(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()&&bg(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 wc(e){return e>=97&&e<=122||e>=65&&e<=90}function ew(e){return wc(e)||e===47}function tw(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 bg(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nw(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 Sc(e){e.forEach(function(r){if(delete r.location,hg(r)||pg(r))for(var i in r.options)delete r.options[i].location,Sc(r.options[i].value);else cg(r)&&gg(r.style)||(fg(r)||dg(r))&&yc(r.style)?delete r.style.location:mg(r)&&Sc(r.children)})}function rw(e,r){r===void 0&&(r={}),r=J({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new JE(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||Sc(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){jt(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),Zp=function(e){jt(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),iw=function(e){jt(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),ow=function(e){jt(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),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function sw(e){return e.length<2?e:e.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==ht.literal||i.type!==ht.literal?r.push(i):s.value+=i.value,r},[])}function xg(e){return typeof e=="function"}function qs(e,r,i,s,l,u,f){if(e.length===1&&Hp(e[0]))return[{type:ht.literal,value:e[0].value}];for(var h=[],p=0,v=e;p<v.length;p++){var y=v[p];if(Hp(y)){h.push({type:ht.literal,value:y.value});continue}if(OE(y)){typeof u=="number"&&h.push({type:ht.literal,value:i.getNumberFormat(r).format(u)});continue}var x=y.value;if(!(l&&x in l))throw new ow(x,f);var m=l[x];if(RE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?ht.literal:ht.object,value:m});continue}if(fg(y)){var w=typeof y.style=="string"?s.date[y.style]:yc(y.style)?y.style.parsedOptions:void 0;h.push({type:ht.literal,value:i.getDateTimeFormat(r,w).format(m)});continue}if(dg(y)){var w=typeof y.style=="string"?s.time[y.style]:yc(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:ht.literal,value:i.getDateTimeFormat(r,w).format(m)});continue}if(cg(y)){var w=typeof y.style=="string"?s.number[y.style]:gg(y.style)?y.style.parsedOptions:void 0;w&&w.scale&&(m=m*(w.scale||1)),h.push({type:ht.literal,value:i.getNumberFormat(r,w).format(m)});continue}if(mg(y)){var _=y.children,S=y.value,R=l[S];if(!xg(R))throw new iw(S,"function",f);var O=qs(_,r,i,s,l,u),N=R(O.map(function(T){return T.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(T){return{type:typeof T=="string"?ht.literal:ht.object,value:T}}))}if(hg(y)){var b=y.options[m]||y.options.other;if(!b)throw new Zp(y.value,m,Object.keys(y.options),f);h.push.apply(h,qs(b.value,r,i,s,l));continue}if(pg(y)){var b=y.options["=".concat(m)];if(!b){if(!Intl.PluralRules)throw new Jn(`Intl.PluralRules is not available in this environment.
|
|
57
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
58
|
-
`,fn.MISSING_INTL_API,f);var k=i.getPluralRules(r,{type:y.pluralType}).select(m-(y.offset||0));b=y.options[k]||y.options.other}if(!b)throw new Zp(y.value,m,Object.keys(y.options),f);h.push.apply(h,qs(b.value,r,i,s,l,m-(y.offset||0)));continue}}return sw(h)}function aw(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 lw(e,r){return r?Object.keys(e).reduce(function(i,s){return i[s]=aw(e[s],r[s]),i},J({},e)):e}function bu(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,i){e[r]=i}}}}}function uw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:sn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,ln([void 0],i,!1)))},{cache:bu(e.number),strategy:an.variadic}),getDateTimeFormat:sn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,ln([void 0],i,!1)))},{cache:bu(e.dateTime),strategy:an.variadic}),getPluralRules:sn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,ln([void 0],i,!1)))},{cache:bu(e.pluralRules),strategy:an.variadic})}}var Tg=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 v=u.formatToParts(p);if(v.length===1)return v[0].value;var y=v.reduce(function(x,m){return!x.length||m.type!==ht.literal||typeof x[x.length-1]!="string"?x.push(m.value):x[x.length-1]+=m.value,x},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(p){return qs(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 f=l||{};f.formatters;var h=ia(f,["formatters"]);this.ast=e.__parse(r,J(J({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=lw(e.formats,s),this.formatters=l&&l.formatters||uw(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=rw,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),wr;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(wr||(wr={}));var oo=function(e){jt(r,e);function r(i,s,l){var u=this,f=l?l instanceof Error?l:new Error(String(l)):void 0;return u=e.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
|
|
59
|
-
`).concat(f?`
|
|
60
|
-
`.concat(f.message,`
|
|
61
|
-
`).concat(f.stack):""))||this,u.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,r),u}return r}(Error),cw=function(e){jt(r,e);function r(i,s){return e.call(this,wr.UNSUPPORTED_FORMATTER,i,s)||this}return r}(oo),fw=function(e){jt(r,e);function r(i,s){return e.call(this,wr.INVALID_CONFIG,i,s)||this}return r}(oo),Xp=function(e){jt(r,e);function r(i,s){return e.call(this,wr.MISSING_DATA,i,s)||this}return r}(oo),Ut=function(e){jt(r,e);function r(i,s,l){var u=e.call(this,wr.FORMAT_ERROR,"".concat(i,`
|
|
62
|
-
Locale: `).concat(s,`
|
|
63
|
-
`),l)||this;return u.locale=s,u}return r}(oo),xu=function(e){jt(r,e);function r(i,s,l,u){var f=e.call(this,"".concat(i,`
|
|
64
|
-
MessageID: `).concat(l==null?void 0:l.id,`
|
|
65
|
-
Default Message: `).concat(l==null?void 0:l.defaultMessage,`
|
|
66
|
-
Description: `).concat(l==null?void 0:l.description,`
|
|
67
|
-
`),s,u)||this;return f.descriptor=l,f.locale=s,f}return r}(Ut),dw=function(e){jt(r,e);function r(i,s){var l=e.call(this,wr.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 f;return(f=u.value)!==null&&f!==void 0?f:JSON.stringify(u)}).join(),")"):"id"," as fallback."))||this;return l.descriptor=i,l}return r}(oo);function hw(e,r,i){if(i===void 0&&(i=Error),!e)throw new i(r)}function Jr(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 pw=function(e){},mw=function(e){},Cg={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pw,onWarn:mw};function kg(){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 gw(e){e===void 0&&(e=kg());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,l=sn(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.DateTimeFormat).bind.apply(h,ln([void 0],p,!1)))},{cache:hr(e.dateTime),strategy:an.variadic}),u=sn(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.NumberFormat).bind.apply(h,ln([void 0],p,!1)))},{cache:hr(e.number),strategy:an.variadic}),f=sn(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.PluralRules).bind.apply(h,ln([void 0],p,!1)))},{cache:hr(e.pluralRules),strategy:an.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:sn(function(h,p,v,y){return new Tg(h,p,v,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:f}},y||{}))},{cache:hr(e.message),strategy:an.variadic}),getRelativeTimeFormat:sn(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(r.bind.apply(r,ln([void 0],h,!1)))},{cache:hr(e.relativeTime),strategy:an.variadic}),getPluralRules:f,getListFormat:sn(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(i.bind.apply(i,ln([void 0],h,!1)))},{cache:hr(e.list),strategy:an.variadic}),getDisplayNames:sn(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,ln([void 0],h,!1)))},{cache:hr(e.displayNames),strategy:an.variadic})}}function Xc(e,r,i,s){var l=e&&e[r],u;if(l&&(u=l[i]),u)return u;s(new cw("No ".concat(r," format named: ").concat(i)))}function Es(e,r){return Object.keys(e).reduce(function(i,s){return i[s]=J({timeZone:r},e[s]),i},{})}function Qp(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 Kp(e,r){if(!r)return e;var i=Tg.formats;return J(J(J({},i),e),{date:Qp(Es(i.date,r),Es(e.date||{},r)),time:Qp(Es(i.time,r),Es(e.time||{},r))})}var bc=function(e,r,i,s,l){var u=e.locale,f=e.formats,h=e.messages,p=e.defaultLocale,v=e.defaultFormats,y=e.fallbackOnEmptyString,x=e.onError,m=e.timeZone,w=e.defaultRichTextElements;i===void 0&&(i={id:""});var _=i.id,S=i.defaultMessage;hw(!!_,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var R=String(_),O=h&&Object.prototype.hasOwnProperty.call(h,R)&&h[R];if(Array.isArray(O)&&O.length===1&&O[0].type===Me.literal)return O[0].value;if(!s&&O&&typeof O=="string"&&!w)return O.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=J(J({},w),s||{}),f=Kp(f,m),v=Kp(v,m),!O){if(y===!1&&O==="")return O;if((!S||u&&u.toLowerCase()!==p.toLowerCase())&&x(new dw(i,u)),S)try{var N=r.getMessageFormat(S,p,v,l);return N.format(s)}catch(b){return x(new xu('Error formatting default message for: "'.concat(R,'", rendering default message verbatim'),u,i,b)),typeof S=="string"?S:R}return R}try{var N=r.getMessageFormat(O,u,f,J({formatters:r},l||{}));return N.format(s)}catch(b){x(new xu('Error formatting message: "'.concat(R,'", using ').concat(S?"default message":"id"," as fallback."),u,i,b))}if(S)try{var N=r.getMessageFormat(S,p,v,l);return N.format(s)}catch(b){x(new xu('Error formatting the default message for: "'.concat(R,'", rendering message verbatim'),u,i,b))}return typeof O=="string"?O:typeof S=="string"?S:R},yw=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function so(e,r,i,s){var l=e.locale,u=e.formats,f=e.onError,h=e.timeZone;s===void 0&&(s={});var p=s.format,v=J(J({},h&&{timeZone:h}),p&&Xc(u,r,p,f)),y=Jr(s,yw,v);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 vw(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return so(e,"date",r,f).format(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return String(h)}function _w(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return so(e,"time",r,f).format(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return String(h)}function Ew(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],f=i[2],h=f===void 0?{}:f,p=typeof l=="string"?new Date(l||0):l,v=typeof u=="string"?new Date(u||0):u;try{return so(e,"dateTimeRange",r,h).formatRange(p,v)}catch(y){e.onError(new Ut("Error formatting date time range.",e.locale,y))}return String(p)}function ww(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return so(e,"date",r,f).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return[]}function Sw(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],f=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return so(e,"time",r,f).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return[]}var bw=["style","type","fallback","languageDisplay"];function xw(e,r,i,s){var l=e.locale,u=e.onError,f=Intl.DisplayNames;f||u(new Jn(`Intl.DisplayNames is not available in this environment.
|
|
68
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
69
|
-
`,fn.MISSING_INTL_API));var h=Jr(s,bw);try{return r(l,h).of(i)}catch(p){u(new Ut("Error formatting display name.",l,p))}}var Tw=["type","style"],Yp=Date.now();function Cw(e){return"".concat(Yp,"_").concat(e,"_").concat(Yp)}function kw(e,r,i,s){s===void 0&&(s={});var l=Rg(e,r,i,s).reduce(function(u,f){var h=f.value;return typeof h!="string"?u.push(h):typeof u[u.length-1]=="string"?u[u.length-1]+=h:u.push(h),u},[]);return l.length===1?l[0]:l.length===0?"":l}function Rg(e,r,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var f=Intl.ListFormat;f||u(new Jn(`Intl.ListFormat is not available in this environment.
|
|
70
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
71
|
-
`,fn.MISSING_INTL_API));var h=Jr(s,Tw);try{var p={},v=i.map(function(y,x){if(typeof y=="object"){var m=Cw(x);return p[m]=y,m}return String(y)});return r(l,h).formatToParts(v).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 Rw=["type"];function Ow(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.
|
|
72
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
73
|
-
`,fn.MISSING_INTL_API));var f=Jr(s,Rw);try{return r(l,f).select(i)}catch(h){u(new Ut("Error formatting plural.",l,h))}return"other"}var Nw=["numeric","style"];function Aw(e,r,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var f=i.format,h=!!f&&Xc(l,"relative",f,u)||{},p=Jr(i,Nw,h);return r(s,p)}function Iw(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.
|
|
74
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
75
|
-
`,fn.MISSING_INTL_API));try{return Aw(e,r,l).format(i,s)}catch(f){e.onError(new Ut("Error formatting relative time.",e.locale,f))}return String(i)}var Dw=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Og(e,r,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var f=i.format,h=f&&Xc(l,"number",f,u)||{},p=Jr(i,Dw,h);return r(s,p)}function Pw(e,r,i,s){s===void 0&&(s={});try{return Og(e,r,s).format(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return String(i)}function Mw(e,r,i,s){s===void 0&&(s={});try{return Og(e,r,s).formatToParts(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return[]}function Fw(e){var r=e?e[Object.keys(e)[0]]:void 0;return typeof r=="string"}function Lw(e){e.onWarn&&e.defaultRichTextElements&&Fw(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
76
|
-
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
77
|
-
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Bw(e,r){var i=gw(r),s=J(J({},Cg),e),l=s.locale,u=s.defaultLocale,f=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&f?f(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&f&&f(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(f&&f(new fw('"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"),Lw(s),J(J({},s),{formatters:i,formatNumber:Pw.bind(null,s,i.getNumberFormat),formatNumberToParts:Mw.bind(null,s,i.getNumberFormat),formatRelativeTime:Iw.bind(null,s,i.getRelativeTimeFormat),formatDate:vw.bind(null,s,i.getDateTimeFormat),formatDateToParts:ww.bind(null,s,i.getDateTimeFormat),formatTime:_w.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:Ew.bind(null,s,i.getDateTimeFormat),formatTimeToParts:Sw.bind(null,s,i.getDateTimeFormat),formatPlural:Ow.bind(null,s,i.getPluralRules),formatMessage:bc.bind(null,s,i),$t:bc.bind(null,s,i),formatList:kw.bind(null,s,i.getListFormat),formatListToParts:Rg.bind(null,s,i.getListFormat),formatDisplayName:xw.bind(null,s,i.getDisplayNames)})}function jw(e,r,i){if(i===void 0&&(i=Error),!e)throw new i(r)}function Ng(e){jw(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Ag=J(J({},Cg),{textComponent:B.Fragment});function Uw(e){return function(r){return e(B.Children.toArray(r))}}function Hw(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 f=i[u];if(e[f]!==r[f]||!Object.prototype.hasOwnProperty.call(r,f))return!1}return!0}var Tu={exports:{}},Ce={};/** @license React v16.13.1
|
|
78
|
-
* react-is.production.min.js
|
|
79
|
-
*
|
|
80
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the MIT license found in the
|
|
83
|
-
* LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/var Jp;function zw(){if(Jp)return Ce;Jp=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,f=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function b(T){if(typeof T=="object"&&T!==null){var L=T.$$typeof;switch(L){case r:switch(T=T.type,T){case p:case v:case s:case u:case l:case x:return T;default:switch(T=T&&T.$$typeof,T){case h:case y:case _:case w:case f:return T;default:return L}}case i:return L}}}function k(T){return b(T)===v}return Ce.AsyncMode=p,Ce.ConcurrentMode=v,Ce.ContextConsumer=h,Ce.ContextProvider=f,Ce.Element=r,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=_,Ce.Memo=w,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=x,Ce.isAsyncMode=function(T){return k(T)||b(T)===p},Ce.isConcurrentMode=k,Ce.isContextConsumer=function(T){return b(T)===h},Ce.isContextProvider=function(T){return b(T)===f},Ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},Ce.isForwardRef=function(T){return b(T)===y},Ce.isFragment=function(T){return b(T)===s},Ce.isLazy=function(T){return b(T)===_},Ce.isMemo=function(T){return b(T)===w},Ce.isPortal=function(T){return b(T)===i},Ce.isProfiler=function(T){return b(T)===u},Ce.isStrictMode=function(T){return b(T)===l},Ce.isSuspense=function(T){return b(T)===x},Ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===s||T===v||T===u||T===l||T===x||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===w||T.$$typeof===f||T.$$typeof===h||T.$$typeof===y||T.$$typeof===R||T.$$typeof===O||T.$$typeof===N||T.$$typeof===S)},Ce.typeOf=b,Ce}var em;function Gw(){return em||(em=1,Tu.exports=zw()),Tu.exports}var Cu,tm;function $w(){if(tm)return Cu;tm=1;var e=Gw(),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 f(_){return e.isMemo(_)?l:u[_.$$typeof]||r}var h=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,m=Object.prototype;function w(_,S,R){if(typeof S!="string"){if(m){var O=x(S);O&&O!==m&&w(_,O,R)}var N=p(S);v&&(N=N.concat(v(S)));for(var b=f(_),k=f(S),T=0;T<N.length;++T){var L=N[T];if(!i[L]&&!(R&&R[L])&&!(k&&k[L])&&!(b&&b[L])){var z=y(S,L);try{h(_,L,z)}catch{}}}}return _}return Cu=w,Cu}$w();var Qc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Qc.Consumer;var qw=Qc.Provider,Vw=qw,Ww=Qc;function oa(){var e=B.useContext(Ww);return Ng(e),e}var xc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(xc||(xc={}));var Tc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Tc||(Tc={}));function Ig(e){var r=function(i){var s=oa(),l=i.value,u=i.children,f=ia(i,["value","children"]),h=typeof l=="string"?new Date(l||0):l,p=e==="formatDate"?s.formatDateToParts(h,f):s.formatTimeToParts(h,f);return u(p)};return r.displayName=Tc[e],r}function ao(e){var r=function(i){var s=oa(),l=i.value,u=i.children,f=ia(i,["value","children"]),h=s[e](l,f);if(typeof u=="function")return u(h);var p=s.textComponent||B.Fragment;return B.createElement(p,null,h)};return r.displayName=xc[e],r}function Dg(e){return e&&Object.keys(e).reduce(function(r,i){var s=e[i];return r[i]=xg(s)?Uw(s):s,r},{})}var nm=function(e,r,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var f=Dg(s),h=bc.apply(void 0,ln([e,r,i,f],l,!1));return Array.isArray(h)?B.Children.toArray(h):h},rm=function(e,r){var i=e.defaultRichTextElements,s=ia(e,["defaultRichTextElements"]),l=Dg(i),u=Bw(J(J(J({},Ag),s),{defaultRichTextElements:l}),r),f={locale:u.locale,timeZone:u.timeZone,fallbackOnEmptyString:u.fallbackOnEmptyString,formats:u.formats,defaultLocale:u.defaultLocale,defaultFormats:u.defaultFormats,messages:u.messages,onError:u.onError,defaultRichTextElements:l};return J(J({},u),{formatMessage:nm.bind(null,f,u.formatters),$t:nm.bind(null,f,u.formatters)})};function ku(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 Zw=function(e){jt(r,e);function r(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=kg(),i.state={cache:i.cache,intl:rm(ku(i.props),i.cache),prevConfig:ku(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,f=ku(i);return Hw(l,f)?null:{intl:rm(f,u),prevConfig:f}},r.prototype.render=function(){return Ng(this.state.intl),B.createElement(Vw,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Ag,r}(B.PureComponent);ao("formatDate");ao("formatTime");ao("formatNumber");ao("formatList");ao("formatDisplayName");Ig("formatDate");Ig("formatTime");const Xw="_app_1rj0t_1",Qw={app:Xw},ei=mE,Kn=vE,Pg="%[a-f0-9]{2}",im=new RegExp("("+Pg+")|([^%]+?)","gi"),om=new RegExp("("+Pg+")+","gi");function Cc(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([],Cc(i),Cc(s))}function Kw(e){try{return decodeURIComponent(e)}catch{let r=e.match(im)||[];for(let i=1;i<r.length;i++)e=Cc(r,i).join(""),r=e.match(im)||[];return e}}function Yw(e){const r={"%FE%FF":"��","%FF%FE":"��"};let i=om.exec(e);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const l=Kw(i[0]);l!==i[0]&&(r[i[0]]=l)}i=om.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 Jw(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Yw(e)}}function eS(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 Mg(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 tS=e=>e==null,nS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),kc=Symbol("encodeFragmentIdentifier");function rS(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 iS(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),f=typeof s=="string"&&!u&&xn(s,e).includes(e.arrayFormatSeparator);s=f?xn(s,e):s;const h=u||f?s.split(e.arrayFormatSeparator).map(p=>xn(p,e)):s===null?s:xn(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&xn(s,e);return}const f=s===null?[]:xn(s,e).split(e.arrayFormatSeparator);if(l[i]===void 0){l[i]=f;return}l[i]=[...l[i],...f]};default:return(i,s,l)=>{if(l[i]===void 0){l[i]=s;return}l[i]=[...[l[i]].flat(),s]}}}function Fg(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?nS(e):encodeURIComponent(e):e}function xn(e,r){return r.decode?Jw(e):e}function Lg(e){return Array.isArray(e)?e.sort():typeof e=="object"?Lg(Object.keys(e)).sort((r,i)=>Number(r)-Number(i)).map(r=>e[r]):e}function Bg(e){const r=e.indexOf("#");return r!==-1&&(e=e.slice(0,r)),e}function oS(e){let r="";const i=e.indexOf("#");return i!==-1&&(r=e.slice(i)),r}function sm(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 Kc(e){e=Bg(e);const r=e.indexOf("?");return r===-1?"":e.slice(r+1)}function Yc(e,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},Fg(r.arrayFormatSeparator);const i=iS(r),s=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return s;for(const l of e.split("&")){if(l==="")continue;const u=r.decode?l.replaceAll("+"," "):l;let[f,h]=Mg(u,"=");f===void 0&&(f=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:xn(h,r),i(xn(f,r),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&r.types[l]!=="string")for(const[f,h]of Object.entries(u)){const p=r.types[l]?r.types[l].replace("[]",""):void 0;u[f]=sm(h,r,p)}else typeof u=="object"&&u!==null&&r.types[l]==="string"?s[l]=Object.values(u).join(r.arrayFormatSeparator):s[l]=sm(u,r,r.types[l]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((l,u)=>{const f=s[u];return l[u]=f&&typeof f=="object"&&!Array.isArray(f)?Lg(f):f,l},Object.create(null))}function jg(e,r){if(!e)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},Fg(r.arrayFormatSeparator);const i=f=>r.skipNull&&tS(e[f])||r.skipEmptyString&&e[f]==="",s=rS(r),l={};for(const[f,h]of Object.entries(e))i(f)||(l[f]=h);const u=Object.keys(l);return r.sort!==!1&&u.sort(r.sort),u.map(f=>{const h=e[f];return h===void 0?"":h===null?Ve(f,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?Ve(f,r)+"[]":h.reduce(s(f),[]).join("&"):Ve(f,r)+"="+Ve(h,r)}).filter(f=>f.length>0).join("&")}function Ug(e,r){var l;r={decode:!0,...r};let[i,s]=Mg(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:Yc(Kc(e),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:xn(s,r)}:{}}}function Hg(e,r){r={encode:!0,strict:!0,[kc]:!0,...r};const i=Bg(e.url).split("?")[0]||"",s=Kc(e.url),l={...Yc(s,{sort:!1}),...e.query};let u=jg(l,r);u&&(u=`?${u}`);let f=oS(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,f=r[kc]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${f}`}function zg(e,r,i){i={parseFragmentIdentifier:!0,[kc]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=Ug(e,i);return Hg({url:s,query:eS(l,r),fragmentIdentifier:u},i)}function sS(e,r,i){const s=Array.isArray(r)?l=>!r.includes(l):(l,u)=>!r(l,u);return zg(e,s,i)}const sa=Object.freeze(Object.defineProperty({__proto__:null,exclude:sS,extract:Kc,parse:Yc,parseUrl:Ug,pick:zg,stringify:jg,stringifyUrl:Hg},Symbol.toStringTag,{value:"Module"}));var Zt={},Ct={},le={},am;function At(){return am||(am=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 Ru={},lm;function aS(){return lm||(lm=1,Object.defineProperty(Ru,"__esModule",{value:!0})),Ru}var ws={},um;function lS(){if(um)return ws;um=1,Object.defineProperty(ws,"__esModule",{value:!0});const e=At(),r=()=>({type:e.DRAWER_CLOSE});return ws.default=r,ws}var Ss={},cm;function uS(){if(cm)return Ss;cm=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=At(),r=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Ss.default=r,Ss}var bs={},fm;function cS(){if(fm)return bs;fm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),r=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return bs.default=r,bs}var xs={},dm;function fS(){if(dm)return xs;dm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=At(),r=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return xs.default=r,xs}var Ts={},hm;function dS(){if(hm)return Ts;hm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),r=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ts.default=r,Ts}var Cs={},pm;function hS(){if(pm)return Cs;pm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),r=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Cs.default=r,Cs}var ks={},je={},mm;function Jc(){if(mm)return je;mm=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(x,m){be(this,"type");be(this,"sender");be(this,"quickReplies");this.type=x,this.sender=m,this.quickReplies=[]}addQuickReply(x,m){this.quickReplies.push({label:x,payload:m})}}je.Message=e;class r extends e{constructor(m,w){super(p.TEXT,w);be(this,"text");this.text=m}}je.TextMessage=r;class i extends e{constructor(m,w){super(p.DETAIL,w);be(this,"title");be(this,"subtitle");be(this,"text");be(this,"imageUrl");be(this,"itemUrl");be(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,w,_){super(p.MARKDOWN,_);be(this,"markdown");be(this,"excerpt");be(this,"className");this.markdown=m,this.excerpt=w,this.className=""}setClassName(m){this.className=m}}je.MarkdownMessage=s;class l extends e{constructor(m,w){super(p.VIDEO,w);be(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,w){super(p.IMAGE,w);be(this,"url");this.url=m}}je.ImageMessage=u;class f extends e{constructor(m,w){super(p.FILE,w);be(this,"url");this.url=m}}je.FileMessage=f;class h extends e{constructor(m,w){super(p.AUDIO,w);be(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 v=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:{const x=y;return`${x.title} // ${x.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=v,je}var kt={},gm;function ef(){if(gm)return kt;gm=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(f,h,p,v){be(this,"type");be(this,"id");be(this,"name");be(this,"avatar");this.type=f,this.id=h,this.name=p,this.avatar=v}}kt.User=e;class r extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=r;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=i;class s extends e{constructor(f,h,p){super(l.PERSON,f,h,p)}}kt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(kt.UserType=l={})),kt}var ym;function pS(){if(ym)return ks;ym=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=Jc(),r=ef(),i=At(),s=l=>{const u=new e.TextMessage(l,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return ks.default=s,ks}var Rs={},vm;function mS(){if(vm)return Rs;vm=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=Jc(),r=ef(),i=At(),s=(l,u={})=>{const f=new e.TextMessage(l,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:f,payload:u}};return Rs.default=s,Rs}var Os={},_m;function gS(){if(_m)return Os;_m=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=At(),r=i=>({type:e.NLU_REQUEST_EVENT,event:i});return Os.default=r,Os}var Ns={},Em;function yS(){if(Em)return Ns;Em=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=At(),r=()=>({type:e.RESTART_CHAT_REQUEST});return Ns.default=r,Ns}var As={},wm;function vS(){if(wm)return As;wm=1,Object.defineProperty(As,"__esModule",{value:!0});const e=At(),r=i=>({type:e.MESSAGE_TO_GUEST,message:i});return As.default=r,As}var Is={},Sm;function _S(){if(Sm)return Is;Sm=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=At(),r=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Is.default=r,Is}var bm;function xm(){return bm||(bm=1,function(e){var r=Ct&&Ct.__createBinding||(Object.create?function(N,b,k,T){T===void 0&&(T=k);var L=Object.getOwnPropertyDescriptor(b,k);(!L||("get"in L?!b.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return b[k]}}),Object.defineProperty(N,T,L)}:function(N,b,k,T){T===void 0&&(T=k),N[T]=b[k]}),i=Ct&&Ct.__setModuleDefault||(Object.create?function(N,b){Object.defineProperty(N,"default",{enumerable:!0,value:b})}:function(N,b){N.default=b}),s=Ct&&Ct.__importStar||function(){var N=function(b){return N=Object.getOwnPropertyNames||function(k){var T=[];for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(T[T.length]=L);return T},N(b)};return function(b){if(b&&b.__esModule)return b;var k={};if(b!=null)for(var T=N(b),L=0;L<T.length;L++)T[L]!=="default"&&r(k,b,T[L]);return i(k,b),k}}(),l=Ct&&Ct.__exportStar||function(N,b){for(var k in N)k!=="default"&&!Object.prototype.hasOwnProperty.call(b,k)&&r(b,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(aS(),e);const f=u(lS());e.closeDrawer=f.default;const h=u(uS());e.feedbackFromGuestResponse=h.default;const p=u(cS());e.guestConnected=p.default;const v=u(fS());e.guestDisconnected=v.default;const y=u(dS());e.guestLocaleChanged=y.default;const x=u(hS());e.openDrawer=x.default;const m=u(pS());e.receiveTextMessageFromGuest=m.default;const w=u(mS());e.receiveTextMessageWithoutAnalysisFromGuest=w.default;const _=u(gS());e.requestNLUEvent=_.default;const S=u(yS());e.restartChatRequest=S.default;const R=u(vS());e.sendMessageToGuest=R.default;const O=u(_S());e.transcriptItemGuestReaction=O.default}(Ct)),Ct}var Rt={},Ou={},Tm;function ES(){return Tm||(Tm=1,Object.defineProperty(Ou,"__esModule",{value:!0})),Ou}var Gi={},Cm;function wS(){if(Cm)return Gi;Cm=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 km;function SS(){if(km)return Rt;km=1;var e=Rt&&Rt.__createBinding||(Object.create?function(l,u,f,h){h===void 0&&(h=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(l,h,p)}:function(l,u,f,h){h===void 0&&(h=f),l[h]=u[f]}),r=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(f){var h=[];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(f,u,h[p]);return r(f,u),f}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=i(ES());const s=wS();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pr={},Nu={},Rm;function bS(){return Rm||(Rm=1,Object.defineProperty(Nu,"__esModule",{value:!0})),Nu}var Xt={},Om;function xS(){if(Om)return Xt;Om=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.ButtonTypeEnum=Xt.PostbackButton=Xt.UrlButton=Xt.Button=void 0;class e{constructor(u,f){be(this,"title");be(this,"type");this.title=u,this.type=f}}Xt.Button=e;class r extends e{constructor(f,h){super(f,s.WEB_URL);be(this,"url");this.url=h}}Xt.UrlButton=r;class i extends e{constructor(f,h){super(f,s.POSTBACK);be(this,"payload");this.payload=h}}Xt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Xt.ButtonTypeEnum=s={})),Xt}var Au={},Nm;function TS(){return Nm||(Nm=1,Object.defineProperty(Au,"__esModule",{value:!0})),Au}var $i={},Am;function CS(){if(Am)return $i;Am=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 Im;function Dm(){return Im||(Im=1,function(e){var r=pr&&pr.__createBinding||(Object.create?function(s,l,u,f){f===void 0&&(f=u);var h=Object.getOwnPropertyDescriptor(l,u);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,f,h)}:function(s,l,u,f){f===void 0&&(f=u),s[f]=l[u]}),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(bS(),e),i(xS(),e),i(TS(),e),i(CS(),e),i(Jc(),e),i(ef(),e)}(pr)),pr}var Pm;function kS(){return Pm||(Pm=1,function(e){var r=Zt&&Zt.__createBinding||(Object.create?function(u,f,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(f,h);(!v||("get"in v?!f.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(u,p,v)}:function(u,f,h,p){p===void 0&&(p=h),u[p]=f[h]}),i=Zt&&Zt.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}:function(u,f){u.default=f}),s=Zt&&Zt.__exportStar||function(u,f){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&r(f,u,h)},l=Zt&&Zt.__importStar||function(){var u=function(f){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(p[p.length]=v);return p},u(f)};return function(f){if(f&&f.__esModule)return f;var h={};if(f!=null)for(var p=u(f),v=0;v<p.length;v++)p[v]!=="default"&&r(h,f,p[v]);return i(h,f),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(xm(),e),e.Actions=l(xm()),e.CMS=l(SS()),s(Dm(),e),e.Model=l(Dm())}(Zt)),Zt}var ge=kS();const Gg=e=>r=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&r(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),r(e.payload)),$g=e=>(r,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return r(l?Gg({...l,label:e}):ge.receiveTextMessageFromGuest(e))},tf="MESSAGE_TO_PARENT_PAGE",nf="RESTORE_PREVIOUS_CHAT_MESSAGES",rf="AUDIO_MESSAGE_FROM_USER",of="ENABLE_SPEECH_SUPPORT",sf="ENABLE_TRANSCRIPT_EXPORT",RS="EXPORT_TRANSCRIPT",af="RECEIVE_SPEECH_TRANSCRIPTION",lf="SHOW_GENERAL_CONDITIONS",uf="ENABLE_CONVERSATION_RATING",cf="SET_COMMANDS",qg="LOAD_SOURCE_INFOS_RESPONSE",Vg="LOAD_SOURCE_INFOS_ERROR",ff="LOAD_SOURCE_INFOS_REQUEST",df="CLOSE_SOURCE_INFOS",OS="webclient.get.started",Wg="webclient.window.expand",Zg="webclient.window.close",Xg="webclient.transcript.pdf.download",NS=[tf,nf,rf,of,sf,RS,af,lf,uf,cf,ff,df],AS=e=>({type:rf,buffer:e}),IS=()=>({type:of}),DS=e=>({type:af,transcription:e}),PS=e=>({type:sf,methods:e}),MS=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),FS=()=>({type:lf}),LS=e=>({type:cf,payload:{commands:e}}),BS=()=>({type:Xg}),jS=({rating:e})=>({type:uf,payload:{rating:e}}),US=(e,r)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:r}}),Qg=e=>ge.requestNLUEvent(e),HS=e=>({type:nf,messages:e}),zS=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Kg(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},GS=e=>Kg(e),Kg=e=>({type:tf,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function Ds(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)e[s]=i[s]}return e}var $S={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 Rc(e,r){function i(l,u,f){if(!(typeof document>"u")){f=Ds({},r,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in f)f[p]&&(h+="; "+p,f[p]!==!0&&(h+="="+f[p].split(";")[0]));return document.cookie=l+"="+e.write(u,l)+h}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],f={},h=0;h<u.length;h++){var p=u[h].split("="),v=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(f[y]=e.read(v,y),l===y)break}catch{}}return l?f[l]:f}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Ds({},u,{expires:-1}))},withAttributes:function(l){return Rc(this.converter,Ds({},this.attributes,l))},withConverter:function(l){return Rc(Ds({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}var Iu=Rc($S,{path:"/"});function it(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 qS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Mm=qS,Du=()=>Math.random().toString(36).substring(7).split("").join("."),VS={INIT:`@@redux/INIT${Du()}`,REPLACE:`@@redux/REPLACE${Du()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Du()}`},Ys=VS;function hf(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 Yg(e,r,i){if(typeof e!="function")throw new Error(it(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(it(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(it(1));return i(Yg)(e,r)}let s=e,l=r,u=new Map,f=u,h=0,p=!1;function v(){f===u&&(f=new Map,u.forEach((R,O)=>{f.set(O,R)}))}function y(){if(p)throw new Error(it(3));return l}function x(R){if(typeof R!="function")throw new Error(it(4));if(p)throw new Error(it(5));let O=!0;v();const N=h++;return f.set(N,R),function(){if(O){if(p)throw new Error(it(6));O=!1,v(),f.delete(N),u=null}}}function m(R){if(!hf(R))throw new Error(it(7));if(typeof R.type>"u")throw new Error(it(8));if(typeof R.type!="string")throw new Error(it(17));if(p)throw new Error(it(9));try{p=!0,l=s(l,R)}finally{p=!1}return(u=f).forEach(N=>{N()}),R}function w(R){if(typeof R!="function")throw new Error(it(10));s=R,m({type:Ys.REPLACE})}function _(){const R=x;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(it(11));function N(){const k=O;k.next&&k.next(y())}return N(),{unsubscribe:R(N)}},[Mm](){return this}}}return m({type:Ys.INIT}),{dispatch:m,subscribe:x,getState:y,replaceReducer:w,[Mm]:_}}function WS(e){Object.keys(e).forEach(r=>{const i=e[r];if(typeof i(void 0,{type:Ys.INIT})>"u")throw new Error(it(12));if(typeof i(void 0,{type:Ys.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(it(13))})}function Jg(e){const r=Object.keys(e),i={};for(let u=0;u<r.length;u++){const f=r[u];typeof e[f]=="function"&&(i[f]=e[f])}const s=Object.keys(i);let l;try{WS(i)}catch(u){l=u}return function(f={},h){if(l)throw l;let p=!1;const v={};for(let y=0;y<s.length;y++){const x=s[y],m=i[x],w=f[x],_=m(w,h);if(typeof _>"u")throw h&&h.type,new Error(it(14));v[x]=_,p=p||_!==w}return p=p||s.length!==Object.keys(f).length,p?v:f}}function Js(...e){return e.length===0?r=>r:e.length===1?e[0]:e.reduce((r,i)=>(...s)=>r(i(...s)))}function ZS(...e){return r=>(i,s)=>{const l=r(i,s);let u=()=>{throw new Error(it(15))};const f={getState:l.getState,dispatch:(p,...v)=>u(p,...v)},h=e.map(p=>p(f));return u=Js(...h)(l.dispatch),{...l,dispatch:u}}}function XS(e){return hf(e)&&"type"in e&&typeof e.type=="string"}var ey=Symbol.for("immer-nothing"),Fm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Yt(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Kr=Object.getPrototypeOf;function Sr(e){return!!e&&!!e[Ot]}function Rn(e){var r;return e?ty(e)||Array.isArray(e)||!!e[Fm]||!!((r=e.constructor)!=null&&r[Fm])||la(e)||ua(e):!1}var QS=Object.prototype.constructor.toString();function ty(e){if(!e||typeof e!="object")return!1;const r=Kr(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)===QS}function eo(e,r){aa(e)===0?Object.entries(e).forEach(([i,s])=>{r(i,s,e)}):e.forEach((i,s)=>r(s,i,e))}function aa(e){const r=e[Ot];return r?r.type_:Array.isArray(e)?1:la(e)?2:ua(e)?3:0}function Oc(e,r){return aa(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function ny(e,r,i){const s=aa(e);s===2?e.set(r,i):s===3?e.add(i):e[r]=i}function KS(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function la(e){return e instanceof Map}function ua(e){return e instanceof Set}function vr(e){return e.copy_||e.base_}function Nc(e,r){if(la(e))return new Map(e);if(ua(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!r&&ty(e))return Kr(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],f=i[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(i[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(Kr(e),i)}function pf(e,r=!1){return ca(e)||Sr(e)||!Rn(e)||(aa(e)>1&&(e.set=e.add=e.clear=e.delete=YS),Object.freeze(e),r&&eo(e,(i,s)=>pf(s,!0))),e}function YS(){Yt(2)}function ca(e){return Object.isFrozen(e)}var JS={};function br(e){const r=JS[e];return r||Yt(0,e),r}var to;function ry(){return to}function eb(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Lm(e,r){r&&(br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function Ac(e){Ic(e),e.drafts_.forEach(tb),e.drafts_=null}function Ic(e){e===to&&(to=e.parent_)}function Bm(e){return to=eb(to,e)}function tb(e){const r=e[Ot];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function jm(e,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return e!==void 0&&e!==i?(i[Ot].modified_&&(Ac(r),Yt(4)),Rn(e)&&(e=ea(r,e),r.parent_||ta(r,e)),r.patches_&&br("Patches").generateReplacementPatches_(i[Ot].base_,e,r.patches_,r.inversePatches_)):e=ea(r,i,[]),Ac(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==ey?e:void 0}function ea(e,r,i){if(ca(r))return r;const s=r[Ot];if(!s)return eo(r,(l,u)=>Um(e,s,r,l,u,i)),r;if(s.scope_!==e)return r;if(!s.modified_)return ta(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let u=l,f=!1;s.type_===3&&(u=new Set(l),l.clear(),f=!0),eo(u,(h,p)=>Um(e,s,l,h,p,i,f)),ta(e,l,!1),i&&e.patches_&&br("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function Um(e,r,i,s,l,u,f){if(Sr(l)){const h=u&&r&&r.type_!==3&&!Oc(r.assigned_,s)?u.concat(s):void 0,p=ea(e,l,h);if(ny(i,s,p),Sr(p))e.canAutoFreeze_=!1;else return}else f&&i.add(l);if(Rn(l)&&!ca(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ea(e,l),(!r||!r.scope_.parent_)&&ta(e,l)}}function ta(e,r,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pf(r,i)}function nb(e,r){const i=Array.isArray(e),s={type_:i?1:0,scope_:r?r.scope_:ry(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=mf;i&&(l=[s],u=no);const{revoke:f,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=f,h}var mf={get(e,r){if(r===Ot)return e;const i=vr(e);if(!Oc(i,r))return rb(e,i,r);const s=i[r];return e.finalized_||!Rn(s)?s:s===Pu(e.base_,r)?(Mu(e),e.copy_[r]=Pc(s,e)):s},has(e,r){return r in vr(e)},ownKeys(e){return Reflect.ownKeys(vr(e))},set(e,r,i){const s=iy(vr(e),r);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Pu(vr(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(KS(i,l)&&(i!==void 0||Oc(e.base_,r)))return!0;Mu(e),Dc(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 Pu(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,Mu(e),Dc(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const i=vr(e),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){Yt(11)},getPrototypeOf(e){return Kr(e.base_)},setPrototypeOf(){Yt(12)}},no={};eo(mf,(e,r)=>{no[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});no.deleteProperty=function(e,r){return no.set.call(this,e,r,void 0)};no.set=function(e,r,i){return mf.set.call(this,e[0],r,i,e[0])};function Pu(e,r){const i=e[Ot];return(i?vr(i):e)[r]}function rb(e,r,i){var l;const s=iy(r,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function iy(e,r){if(!(r in e))return;let i=Kr(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=Kr(i)}}function Dc(e){e.modified_||(e.modified_=!0,e.parent_&&Dc(e.parent_))}function Mu(e){e.copy_||(e.copy_=Nc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ib=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 f=this;return function(p=u,...v){return f.produce(p,y=>i.call(this,y,...v))}}typeof i!="function"&&Yt(6),s!==void 0&&typeof s!="function"&&Yt(7);let l;if(Rn(r)){const u=Bm(this),f=Pc(r,void 0);let h=!0;try{l=i(f),h=!1}finally{h?Ac(u):Ic(u)}return Lm(u,s),jm(l,u)}else if(!r||typeof r!="object"){if(l=i(r),l===void 0&&(l=r),l===ey&&(l=void 0),this.autoFreeze_&&pf(l,!0),s){const u=[],f=[];br("Patches").generateReplacementPatches_(r,l,u,f),s(u,f)}return l}else Yt(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(f,...h)=>this.produceWithPatches(f,p=>r(p,...h));let s,l;return[this.produce(r,i,(f,h)=>{s=f,l=h}),s,l]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Rn(e)||Yt(8),Sr(e)&&(e=ob(e));const r=Bm(this),i=Pc(e,void 0);return i[Ot].isManual_=!0,Ic(r),i}finishDraft(e,r){const i=e&&e[Ot];(!i||!i.isManual_)&&Yt(9);const{scope_:s}=i;return Lm(s,r),jm(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 Pc(e,r){const i=la(e)?br("MapSet").proxyMap_(e,r):ua(e)?br("MapSet").proxySet_(e,r):nb(e,r);return(r?r.scope_:ry()).drafts_.push(i),i}function ob(e){return Sr(e)||Yt(10,e),oy(e)}function oy(e){if(!Rn(e)||ca(e))return e;const r=e[Ot];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=Nc(e,r.scope_.immer_.useStrictShallowCopy_)}else i=Nc(e,!0);return eo(i,(s,l)=>{ny(i,s,oy(l))}),r&&(r.finalized_=!1),i}var Nt=new ib,sy=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 ay(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var sb=ay(),ab=ay,lb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Js:Js.apply(null,arguments)};function Hm(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=>XS(s)&&s.type===e,i}var ly=class Qi extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Qi.prototype)}static get[Symbol.species](){return Qi}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Qi(...r[0].concat(this)):new Qi(...r.concat(this))}};function zm(e){return Rn(e)?sy(e,()=>{}):e}function Gm(e,r,i){return e.has(r)?e.get(r):e.set(r,i(r)).get(r)}function ub(e){return typeof e=="boolean"}var cb=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=r??{};let f=new ly;return i&&(ub(i)?f.push(sb):f.push(ab(i.extraArgument))),f},fb="RTK_autoBatch",$m=e=>r=>{setTimeout(r,e)},db=(e={type:"raf"})=>r=>(...i)=>{const s=r(...i);let l=!0,u=!1,f=!1;const h=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$m(10):e.type==="callback"?e.queueNotification:$m(e.timeout),v=()=>{f=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const x=()=>l&&y(),m=s.subscribe(x);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var x;try{return l=!((x=y==null?void 0:y.meta)!=null&&x[fb]),u=!l,u&&(f||(f=!0,p(v))),s.dispatch(y)}finally{l=!0}}})},hb=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new ly(e);return s&&l.push(db(typeof s=="object"?s:void 0)),l};function pb(e){const r=cb(),{reducer:i=void 0,middleware:s,devTools:l=!0,preloadedState:u=void 0,enhancers:f=void 0}=e||{};let h;if(typeof i=="function")h=i;else if(hf(i))h=Jg(i);else throw new Error(Tn(1));let p;typeof s=="function"?p=s(r):p=r();let v=Js;l&&(v=lb({trace:!1,...typeof l=="object"&&l}));const y=ZS(...p),x=hb(y);let m=typeof f=="function"?f(x):x();const w=v(...m);return Yg(h,u,w)}function uy(e){const r={},i=[];let s;const l={addCase(u,f){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]=f,l},addMatcher(u,f){return i.push({matcher:u,reducer:f}),l},addDefaultCase(u){return s=u,l}};return e(l),[r,i,s]}function mb(e){return typeof e=="function"}function gb(e,r){let[i,s,l]=uy(r),u;if(mb(e))u=()=>zm(e());else{const h=zm(e);u=()=>h}function f(h=u(),p){let v=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return v.filter(y=>!!y).length===0&&(v=[l]),v.reduce((y,x)=>{if(x)if(Sr(y)){const w=x(y,p);return w===void 0?y:w}else{if(Rn(y))return sy(y,m=>x(m,p));{const m=x(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 f.getInitialState=u,f}var yb=Symbol.for("rtk-slice-createasyncthunk");function vb(e,r){return`${e}/${r}`}function _b({creators:e}={}){var i;const r=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[yb];return function(l){const{name:u,reducerPath:f=u}=l;if(!u)throw new Error(Tn(11));typeof process<"u";const h=(typeof l.reducers=="function"?l.reducers(wb()):l.reducers)||{},p=Object.keys(h),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(b,k){const T=typeof b=="string"?b:b.type;if(!T)throw new Error(Tn(12));if(T in v.sliceCaseReducersByType)throw new Error(Tn(13));return v.sliceCaseReducersByType[T]=k,y},addMatcher(b,k){return v.sliceMatchers.push({matcher:b,reducer:k}),y},exposeAction(b,k){return v.actionCreators[b]=k,y},exposeCaseReducer(b,k){return v.sliceCaseReducersByName[b]=k,y}};p.forEach(b=>{const k=h[b],T={reducerName:b,type:vb(u,b),createNotation:typeof l.reducers=="function"};bb(k)?Tb(T,k,y,r):Sb(T,k,y)});function x(){const[b={},k=[],T=void 0]=typeof l.extraReducers=="function"?uy(l.extraReducers):[l.extraReducers],L={...b,...v.sliceCaseReducersByType};return gb(l.initialState,z=>{for(let V in L)z.addCase(V,L[V]);for(let V of v.sliceMatchers)z.addMatcher(V.matcher,V.reducer);for(let V of k)z.addMatcher(V.matcher,V.reducer);T&&z.addDefaultCase(T)})}const m=b=>b,w=new Map;let _;function S(b,k){return _||(_=x()),_(b,k)}function R(){return _||(_=x()),_.getInitialState()}function O(b,k=!1){function T(z){let V=z[b];return typeof V>"u"&&k&&(V=R()),V}function L(z=m){const V=Gm(w,k,()=>new WeakMap);return Gm(V,z,()=>{const fe={};for(const[te,oe]of Object.entries(l.selectors??{}))fe[te]=Eb(oe,z,R,k);return fe})}return{reducerPath:b,getSelectors:L,get selectors(){return L(T)},selectSlice:T}}const N={name:u,reducer:S,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:R,...O(f),injectInto(b,{reducerPath:k,...T}={}){const L=k??f;return b.inject({reducerPath:L,reducer:S},T),{...N,...O(L,!0)}}};return N}}function Eb(e,r,i,s){function l(u,...f){let h=r(u);return typeof h>"u"&&s&&(h=i()),e(h,...f)}return l.unwrapped=e,l}var cy=_b();function wb(){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 Sb({type:e,reducerName:r,createNotation:i},s,l){let u,f;if("reducer"in s){if(i&&!xb(s))throw new Error(Tn(17));u=s.reducer,f=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(r,u).exposeAction(r,f?Hm(e,f):Hm(e))}function bb(e){return e._reducerDefinitionType==="asyncThunk"}function xb(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Tb({type:e,reducerName:r},i,s,l){if(!l)throw new Error(Tn(18));const{payloadCreator:u,fulfilled:f,pending:h,rejected:p,settled:v,options:y}=i,x=l(e,u,y);s.exposeAction(r,x),f&&s.addCase(x.fulfilled,f),h&&s.addCase(x.pending,h),p&&s.addCase(x.rejected,p),v&&s.addMatcher(x.settled,v),s.exposeCaseReducer(r,{fulfilled:f||Ps,pending:h||Ps,rejected:p||Ps,settled:v||Ps})}function Ps(){}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 Cb={useStartScreen:void 0,formValues:{}},fy=cy({name:"start-screen",initialState:Cb,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:kb,disableStartScreen:Rb,startChat:Ob,showStartScreen:Nb}=fy.actions,Ab=fy.reducer,dy="RESET_CHAT_STATE",Ib=()=>({type:Zg}),Db=()=>({type:dy}),qm=e=>(r,i)=>{const s=i();return r({type:ff,payload:{chunkId:e}}),fetch(`/cms/public/vector-store/chunks/${e}`,{headers:{"Accept-Language":s.intl.locale}}).then(l=>{if(!l.ok)throw r({type:Vg}),new Error(`HTTP error! Status: ${l.status}`);return l.json()}).then(l=>r({type:qg,payload:l}))},Pb=()=>({type:df}),rt=[];for(let e=0;e<256;++e)rt.push((e+256).toString(16).slice(1));function Mb(e,r=0){return(rt[e[r+0]]+rt[e[r+1]]+rt[e[r+2]]+rt[e[r+3]]+"-"+rt[e[r+4]]+rt[e[r+5]]+"-"+rt[e[r+6]]+rt[e[r+7]]+"-"+rt[e[r+8]]+rt[e[r+9]]+"-"+rt[e[r+10]]+rt[e[r+11]]+rt[e[r+12]]+rt[e[r+13]]+rt[e[r+14]]+rt[e[r+15]]).toLowerCase()}let Fu;const Fb=new Uint8Array(16);function Lb(){if(!Fu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fu=crypto.getRandomValues.bind(crypto)}return Fu(Fb)}const Bb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Vm={randomUUID:Bb};function Mc(e,r,i){var l;if(Vm.randomUUID&&!r&&!e)return Vm.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??Lb();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,Mb(s)}const gf="CONNECT",yf="CONNECTING",vf="CONNECTED",_f="DISCONNECTED",Ef="RECONNECTED",wf="RESTORE_SESSION_ID",fa="START",da="CLEAR_SESSION_ID",jb=[gf,yf,vf,_f,Ef,wf],Ub=(e,r)=>({type:gf,clientName:e,querystrings:r}),Hb=e=>({type:wf,sessionId:e}),zb=()=>({type:yf}),Gb=()=>({type:vf}),$b=()=>({type:_f}),qb=()=>({type:Ef}),hy=(e,r)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let f=l.sessionId;f===void 0&&(f=Mc());let h=l.userId;if(h===void 0){const p=Iu.get("bubble-chat-userId")||Iu.get("bf-webclient-userId");h=p||Mc(),Iu.set("bubble-chat-userId",h)}i({type:fa,payload:{sessionId:f,userId:h,clientName:e,querystrings:{...r,...u}}})},ha=(e,r)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(Vb(l)),i(Db()),s().startScreen.useStartScreen)i(Nb());else return i(hy(e,r))},Vb=e=>({type:da,payload:{sessionId:e}}),Je=()=>{const e=oa();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var Er=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(Er||{}),py=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(py||{});const Wb="_container_q2uun_1",Zb="_chatcontent_q2uun_6",Xb="_accessabilityHidden_q2uun_12",Lu={container:Wb,chatcontent:Zb,accessabilityHidden:Xb},Qb="_messageContainer_1m8fy_1",Kb="_messages_1m8fy_13",Wm={messageContainer:Qb,messages:Kb};function _r(){return _r=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},_r.apply(this,arguments)}const Yb=["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 Zm;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Zm||(Zm={}));const Xm=["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"}),Qm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Jb=["style","script"],ex=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,tx=/mailto:/i,nx=/\n{2,}$/,my=/^(\s*>[\s\S]*?)(?=\n\n|$)/,rx=/^ *> ?/gm,ix=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,ox=/^ {2,}\n/,sx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,gy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,yy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,ax=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,lx=/^(?:\n *)*\n/,ux=/\r\n?/g,cx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,fx=/^\[\^([^\]]+)]/,dx=/\f/g,hx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,px=/^\s*?\[(x|\s)\]/,vy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_y=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ey=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Fc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,mx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,wy=/^<!--[\s\S]*?(?:-->)/,gx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Lc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,yx=/^\{.*\}$/,vx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,_x=/^<([^ >]+@[^ >]+)>/,Ex=/^<([^ >]+:\/[^ >]+)>/,wx=/-([a-z])?/gi,Sy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Sx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,bx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Tx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Cx=/\t/g,kx=/(^ *\||\| *$)/g,Rx=/^ *:-+: *$/,Ox=/^ *:-+ *$/,Nx=/^ *-+: *$/,pa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Ax=new RegExp(`^([*_])\\1${pa}\\1\\1(?!\\1)`),Ix=new RegExp(`^([*_])${pa}\\1(?!\\1|\\w)`),Dx=new RegExp(`^==${pa}==`),Px=new RegExp(`^~~${pa}~~`),Mx=/^\\([^0-9A-Za-z\s])/,Fx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Lx=/^\n+/,Bx=/^([ \t]*)/,jx=/\\([^\\])/g,Km=/ *\n+$/,Ux=/(?:^|\n)( *)$/,Sf="(?:\\d+\\.)",bf="(?:[*+-])";function by(e){return"( *)("+(e===1?Sf:bf)+") +"}const xy=by(1),Ty=by(2);function Cy(e){return new RegExp("^"+(e===1?xy:Ty))}const Hx=Cy(1),zx=Cy(2);function ky(e){return new RegExp("^"+(e===1?xy:Ty)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Sf:bf)+" )[^\\n]*)*(\\n|$)","gm")}const Ry=ky(1),Oy=ky(2);function Ny(e){const r=e===1?Sf:bf;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Ay=Ny(1),Iy=Ny(2);function Ym(e,r){const i=r===1,s=i?Ay:Iy,l=i?Ry:Oy,u=i?Hx:zx;return{match(f,h){const p=Ux.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?s.exec(f=p[1]+f):null},order:1,parse(f,h,p){const v=i?+f[2]:void 0,y=f[0].replace(nx,`
|
|
85
|
-
`).match(l);let x=!1;return{items:y.map(function(m,w){const _=u.exec(m)[0].length,S=new RegExp("^ {1,"+_+"}","gm"),R=m.replace(S,"").replace(u,""),O=w===y.length-1,N=R.indexOf(`
|
|
86
|
-
|
|
87
|
-
`)!==-1||O&&x;x=N;const b=p.inline,k=p.list;let T;p.list=!0,N?(p.inline=!1,T=R.replace(Km,`
|
|
88
|
-
|
|
89
|
-
`)):(p.inline=!0,T=R.replace(Km,""));const L=h(T,p);return p.inline=b,p.list=k,L}),ordered:i,start:v}},render:(f,h,p)=>e(f.ordered?"ol":"ul",{key:p.key,start:f.type===se.orderedList?f.start:void 0},f.items.map(function(v,y){return e("li",{key:y},h(v,p))}))}}const Gx=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),$x=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Dy=[my,gy,yy,vy,Ey,_y,wy,Sy,Ry,Ay,Oy,Iy],qx=[...Dy,/^[^\n]+(?: \n|\n{2,})/,Fc,Lc];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 Vx(e){return Nx.test(e)?"right":Rx.test(e)?"center":Ox.test(e)?"left":null}function Jm(e,r,i,s){const l=i.inTable;i.inTable=!0;let u=[[]],f="";function h(){if(!f)return;const p=u[u.length-1];p.push.apply(p,r(f,i)),f=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,v,y)=>{p.trim()==="|"&&(h(),s)?v!==0&&v!==y.length-1&&u.push([]):f+=p}),h(),i.inTable=l,u}function Wx(e,r,i){i.inline=!0;const s=e[2]?e[2].replace(kx,"").split("|").map(Vx):[],l=e[3]?function(f,h,p){return f.trim().split(`
|
|
90
|
-
`).map(function(v){return Jm(v,h,p,!0)})}(e[3],r,i):[],u=Jm(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 e0(e,r){return e.align[r]==null?{}:{textAlign:e.align[r]}}function Zn(e){return function(r,i){return i.inline?e.exec(r):null}}function Xn(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 Zx(e,r){if(r.inline||r.simple)return null;let i="";e.split(`
|
|
91
|
-
`).every(l=>(l+=`
|
|
92
|
-
`,!Dy.some(u=>u.test(l))&&(i+=l,!!l.trim())));const s=i.trimEnd();return s==""?null:[i,s]}function Xx(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 t0(e){return e.replace(jx,"$1")}function Vs(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 Qx(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 Kx(e,r,i){const s=i.inline||!1;i.inline=!1;const l=e(r,i);return i.inline=s,l}const Bu=(e,r,i)=>({children:Vs(r,e[1],i)});function ju(){return{}}function Uu(){return null}function Yx(...e){return e.filter(Boolean).join(" ")}function Hu(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 Jx(e="",r={}){function i(m,w,..._){const S=Hu(r.overrides,`${m}.props`,{});return r.createElement(function(R,O){const N=Hu(O,R);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:Hu(O,`${R}.component`,R):R}(m,r.overrides),_r({},w,S,{className:Yx(w==null?void 0:w.className,S.className)||void 0}),..._)}function s(m){m=m.replace(hx,"");let w=!1;r.forceInline?w=!0:r.forceBlock||(w=Tx.test(m)===!1);const _=v(p(w?m:`${m.trimEnd().replace(Lx,"")}
|
|
93
|
-
|
|
94
|
-
`,{inline:w}));for(;typeof _[_.length-1]=="string"&&!_[_.length-1].trim();)_.pop();if(r.wrapper===null)return _;const S=r.wrapper||(w?"span":"div");let R;if(_.length>1||r.forceWrapper)R=_;else{if(_.length===1)return R=_[0],typeof R=="string"?i("span",{key:"outer"},R):R;R=null}return r.createElement(S,{key:"outer"},R)}function l(m,w){const _=w.match(ex);return _?_.reduce(function(S,R){const O=R.indexOf("=");if(O!==-1){const N=function(L){return L.indexOf("-")!==-1&&L.match(gx)===null&&(L=L.replace(wx,function(z,V){return V.toUpperCase()})),L}(R.slice(0,O)).trim(),b=function(L){const z=L[0];return(z==='"'||z==="'")&&L.length>=2&&L[L.length-1]===z?L.slice(1,-1):L}(R.slice(O+1).trim()),k=Xm[N]||N;if(k==="ref")return S;const T=S[k]=function(L,z,V,fe){return z==="style"?V.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},{}):z==="href"||z==="src"?fe(V,L,z):(V.match(yx)&&(V=V.slice(1,V.length-1)),V==="true"||V!=="false"&&V)}(m,N,b,r.sanitizer);typeof T=="string"&&(Fc.test(T)||Lc.test(T))&&(S[k]=s(T.trim()))}else R!=="style"&&(S[Xm[R]||R]=!0);return S},{}):null}r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||Xx,r.slugify=r.slugify||qi,r.namedCodesToUnicode=r.namedCodesToUnicode?_r({},Qm,r.namedCodesToUnicode):Qm,r.createElement=r.createElement||B.createElement;const u=[],f={},h={[se.blockQuote]:{match:Sn(my),order:1,parse(m,w,_){const[,S,R]=m[0].replace(rx,"").match(ix);return{alert:S,children:w(R,_)}},render(m,w,_){const S={key:_.key};return m.alert&&(S.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",S,w(m.children,_))}},[se.breakLine]:{match:Vi(ox),order:1,parse:ju,render:(m,w,_)=>i("br",{key:_.key})},[se.breakThematic]:{match:Sn(sx),order:1,parse:ju,render:(m,w,_)=>i("hr",{key:_.key})},[se.codeBlock]:{match:Sn(yy),order:0,parse:m=>({lang:void 0,text:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(m,w,_)=>i("pre",{key:_.key},i("code",_r({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[se.codeFenced]:{match:Sn(gy),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:se.codeBlock})},[se.codeInline]:{match:Xn(ax),order:3,parse:m=>({text:m[2]}),render:(m,w,_)=>i("code",{key:_.key},m.text)},[se.footnote]:{match:Sn(cx),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Uu},[se.footnoteReference]:{match:Zn(fx),order:1,parse:m=>({target:`#${r.slugify(m[1],qi)}`,text:m[1]}),render:(m,w,_)=>i("a",{key:_.key,href:r.sanitizer(m.target,"a","href")},i("sup",{key:_.key},m.text))},[se.gfmTask]:{match:Zn(px),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,w,_)=>i("input",{checked:m.completed,key:_.key,readOnly:!0,type:"checkbox"})},[se.heading]:{match:Sn(r.enforceAtxHeadings?_y:vy),order:1,parse:(m,w,_)=>({children:Vs(w,m[2],_),id:r.slugify(m[2],qi),level:m[1].length}),render:(m,w,_)=>i(`h${m.level}`,{id:m.id,key:_.key},w(m.children,_))},[se.headingSetext]:{match:Sn(Ey),order:0,parse:(m,w,_)=>({children:Vs(w,m[1],_),level:m[2]==="="?1:2,type:se.heading})},[se.htmlBlock]:{match:Vi(Fc),order:1,parse(m,w,_){const[,S]=m[3].match(Bx),R=new RegExp(`^${S}`,"gm"),O=m[3].replace(R,""),N=(b=O,qx.some(V=>V.test(b))?Kx:Vs);var b;const k=m[1].toLowerCase(),T=Jb.indexOf(k)!==-1,L=(T?k:m[1]).trim(),z={attrs:l(L,m[2]),noInnerParse:T,tag:L};return _.inAnchor=_.inAnchor||k==="a",T?z.text=m[3]:z.children=N(w,O,_),_.inAnchor=!1,z},render:(m,w,_)=>i(m.tag,_r({key:_.key},m.attrs),m.text||(m.children?w(m.children,_):""))},[se.htmlSelfClosing]:{match:Vi(Lc),order:1,parse(m){const w=m[1].trim();return{attrs:l(w,m[2]||""),tag:w}},render:(m,w,_)=>i(m.tag,_r({},m.attrs,{key:_.key}))},[se.htmlComment]:{match:Vi(wy),order:1,parse:()=>({}),render:Uu},[se.image]:{match:Xn($x),order:1,parse:m=>({alt:m[1],target:t0(m[2]),title:m[3]}),render:(m,w,_)=>i("img",{key:_.key,alt:m.alt||void 0,title:m.title||void 0,src:r.sanitizer(m.target,"img","src")})},[se.link]:{match:Zn(Gx),order:3,parse:(m,w,_)=>({children:Qx(w,m[1],_),target:t0(m[2]),title:m[3]}),render:(m,w,_)=>i("a",{key:_.key,href:r.sanitizer(m.target,"a","href"),title:m.title},w(m.children,_))},[se.linkAngleBraceStyleDetector]:{match:Zn(Ex),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],type:se.link})},[se.linkBareUrlDetector]:{match:(m,w)=>w.inAnchor||r.disableAutoLink?null:Zn(vx)(m,w),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],title:void 0,type:se.link})},[se.linkMailtoDetector]:{match:Zn(_x),order:0,parse(m){let w=m[1],_=m[1];return tx.test(_)||(_="mailto:"+_),{children:[{text:w.replace("mailto:",""),type:se.text}],target:_,type:se.link}}},[se.orderedList]:Ym(i,1),[se.unorderedList]:Ym(i,2),[se.newlineCoalescer]:{match:Sn(lx),order:3,parse:ju,render:()=>`
|
|
95
|
-
`},[se.paragraph]:{match:Zx,order:3,parse:Bu,render:(m,w,_)=>i("p",{key:_.key},w(m.children,_))},[se.ref]:{match:Zn(Sx),order:0,parse:m=>(f[m[1]]={target:m[2],title:m[4]},{}),render:Uu},[se.refImage]:{match:Xn(bx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,w,_)=>f[m.ref]?i("img",{key:_.key,alt:m.alt,src:r.sanitizer(f[m.ref].target,"img","src"),title:f[m.ref].title}):null},[se.refLink]:{match:Zn(xx),order:0,parse:(m,w,_)=>({children:w(m[1],_),fallbackChildren:m[0],ref:m[2]}),render:(m,w,_)=>f[m.ref]?i("a",{key:_.key,href:r.sanitizer(f[m.ref].target,"a","href"),title:f[m.ref].title},w(m.children,_)):i("span",{key:_.key},m.fallbackChildren)},[se.table]:{match:Sn(Sy),order:1,parse:Wx,render(m,w,_){const S=m;return i("table",{key:_.key},i("thead",null,i("tr",null,S.header.map(function(R,O){return i("th",{key:O,style:e0(S,O)},w(R,_))}))),i("tbody",null,S.cells.map(function(R,O){return i("tr",{key:O},R.map(function(N,b){return i("td",{key:b,style:e0(S,b)},w(N,_))}))})))}},[se.text]:{match:Vi(Fx),order:4,parse:m=>({text:m[0].replace(mx,(w,_)=>r.namedCodesToUnicode[_]?r.namedCodesToUnicode[_]:w)}),render:m=>m.text},[se.textBolded]:{match:Xn(Ax),order:2,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("strong",{key:_.key},w(m.children,_))},[se.textEmphasized]:{match:Xn(Ix),order:3,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("em",{key:_.key},w(m.children,_))},[se.textEscaped]:{match:Xn(Mx),order:1,parse:m=>({text:m[1],type:se.text})},[se.textMarked]:{match:Xn(Dx),order:3,parse:Bu,render:(m,w,_)=>i("mark",{key:_.key},w(m.children,_))},[se.textStrikethroughed]:{match:Xn(Px),order:3,parse:Bu,render:(m,w,_)=>i("del",{key:_.key},w(m.children,_))}};r.disableParsingRawHTML===!0&&(delete h[se.htmlBlock],delete h[se.htmlSelfClosing]);const p=function(m){let w=Object.keys(m);function _(S,R){let O=[];for(R.prevCapture=R.prevCapture||"";S;){let N=0;for(;N<w.length;){const b=w[N],k=m[b],T=k.match(S,R);if(T){const L=T[0];R.prevCapture+=L,S=S.substring(L.length);const z=k.parse(T,_,R);z.type==null&&(z.type=b),O.push(z);break}N++}}return R.prevCapture="",O}return w.sort(function(S,R){let O=m[S].order,N=m[R].order;return O!==N?O-N:S<R?-1:1}),function(S,R){return _(function(O){return O.replace(ux,`
|
|
96
|
-
`).replace(dx,"").replace(Cx," ")}(S),R)}}(h),v=(y=function(m,w){return function(_,S,R){const O=m[_.type].render;return w?w(()=>O(_,S,R),_,S,R):O(_,S,R)}}(h,r.renderRule),function m(w,_={}){if(Array.isArray(w)){const S=_.key,R=[];let O=!1;for(let N=0;N<w.length;N++){_.key=N;const b=m(w[N],_),k=typeof b=="string";k&&O?R[R.length-1]+=b:b!==null&&R.push(b),O=k}return _.key=S,R}return y(w,m,_)});var y;const x=s(e);return u.length?i("div",null,x,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:r.slugify(m.identifier,qi),key:m.identifier},m.identifier,v(p(m.footnote,{inline:!0})))}))):x}const un=e=>{let{children:r="",options:i}=e,s=function(l,u){if(l==null)return{};var f,h,p={},v=Object.keys(l);for(h=0;h<v.length;h++)u.indexOf(f=v[h])>=0||(p[f]=l[f]);return p}(e,Yb);return B.cloneElement(Jx(r,i),s)},e2="_generalConditionsContainer_55hjg_1",t2="_generalConditions_55hjg_1",n2="_generalConditionsHeader_55hjg_15",r2="_generalConditionsBody_55hjg_26",i2="_generalConditionsAccept_55hjg_35",Wi={generalConditionsContainer:e2,generalConditions:t2,generalConditionsHeader:n2,generalConditionsBody:r2,generalConditionsAccept:i2},o2=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),s2=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),a2="general-conditions.header",l2="general-conditions.body",n0="general-conditions.accept-conditions-note",u2=()=>{const e=Je(),[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(a2),f=e(n0);return E.jsxs("div",{className:q(Wi.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&E.jsxs("div",{className:Wi.generalConditions,children:[E.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:q(Wi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[E.jsx(un,{children:u}),r?E.jsx(s2,{}):E.jsx(o2,{})]}),E.jsx("div",{className:q(Wi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&E.jsx(un,{children:e(l2)||""})})]}),!!(f!=null&&f.length)&&E.jsx("div",{className:q(Wi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:E.jsx(un,{children:e(n0)||""})})]})},c2="_message_1qom7_1",f2="_messageBot_1qom7_9",d2="_messageBotLast_1qom7_19",h2="_avatar_1qom7_19",p2="_messageBotFirst_1qom7_24",m2="_messageBotAnimated_1qom7_37",g2="_fadeInLeft_1qom7_1",y2="_messageGuest_1qom7_48",v2="_messageGuestFirst_1qom7_54",_2="_messageGuestLast_1qom7_60",E2="_botAvatar_1qom7_74",w2="_agentAvatar_1qom7_78",S2="_bubble_1qom7_82",b2="_bubbleContent_1qom7_88",x2="_bubbleLeft_1qom7_102",T2="_leftText_1qom7_113",C2="_bubbleRight_1qom7_120",k2="_rightText_1qom7_130",R2="_sourceInfoReference_1qom7_162",de={message:c2,messageBot:f2,messageBotLast:d2,avatar:h2,messageBotFirst:p2,messageBotAnimated:m2,fadeInLeft:g2,messageGuest:y2,messageGuestFirst:v2,messageGuestLast:_2,botAvatar:E2,agentAvatar:w2,bubble:S2,bubbleContent:b2,bubbleLeft:x2,leftText:T2,bubbleRight:C2,rightText:k2,sourceInfoReference:R2},O2="_botMessageActions_1dl7x_1",N2="_alwaysVisible_1dl7x_22",A2="_reported_1dl7x_29",I2="_action_1dl7x_33",Qn={botMessageActions:O2,alwaysVisible:N2,reported:A2,action:I2},D2=({alwaysVisible:e,reaction:r,botMessageRef:i,onReaction:s})=>{const l=Je(),[u,f]=B.useState(!1),h=v=>()=>s(v),p=B.useCallback(async()=>{if(i.current)try{f(!0);const v=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(x=>setTimeout(x,1500))}finally{f(!1)}},[i]);return E.jsxs("div",{className:q(Qn.botMessageActions,e&&Qn.alwaysVisible,r&&Qn.reported),children:[E.jsx("button",{className:q(Qn.action,r==="GOOD"&&Qn.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:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="GOOD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Qn.action,r==="BAD"&&Qn.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:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:r==="BAD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Qn.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?E.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"}):E.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"})})})]})},Py=B.forwardRef(({message:e,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:f},h)=>{const p=Je(),v=B.useRef(null),y=e.sender.type===ge.UserType.BOT;return E.jsxs("li",{ref:h,className:q(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,l&&de.messageBotLast,"chat__bubbleContainer",r&&de.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,y?de.botAvatar:de.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),E.jsx("div",{ref:v,className:q(de.bubble,de.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:E.jsx("div",{className:q(de.leftText),children:u})}),f&&E.jsx(D2,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:v,onReaction:f})]})}),P2="_button_3ui4g_1",M2="_buttonDefault_3ui4g_13",F2="_buttonPrimary_3ui4g_28",ro={button:P2,buttonDefault:M2,buttonPrimary:F2},ma=({className:e,children:r,...i})=>E.jsx("button",{className:q(ro.button,e),type:"button",...i,children:r}),L2="_title_b904h_1",B2="_subtitle_b904h_6",j2="_buttons_b904h_11",U2="_button_b904h_11",H2="_imageContainer_b904h_34",z2="_image_b904h_34",G2="_video_container_b904h_49",$2="_video_b904h_49",q2="_only_b904h_63",wt={title:L2,subtitle:B2,buttons:j2,button:U2,imageContainer:H2,image:z2,video_container:G2,video:$2,only:q2},V2=({buttons:e,onButtonClick:r})=>E.jsx("div",{className:q(wt.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>E.jsx(ma,{className:q(wt.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))});var Ms={},Fs={},Ls={},r0;function W2(){if(r0)return Ls;r0=1,Object.defineProperty(Ls,"__esModule",{value:!0});var e=Yr(),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 Ls.default=function(s,l,u){return r.createElement("a",{href:s,key:u},l)},Ls}var Bs={},i0;function Z2(){return i0||(i0=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=function(e){return e}),Bs}var js={},zu,o0;function X2(){return o0||(o0=1,zu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),zu}var Gu,s0;function Q2(){return s0||(s0=1,Gu=/[\0-\x1F\x7F-\x9F]/),Gu}var $u,a0;function K2(){return a0||(a0=1,$u=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),$u}var qu,l0;function Y2(){return l0||(l0=1,qu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),qu}var Vu,u0;function J2(){return u0||(u0=1,Vu=function(e){var r={};r.src_Any=X2().source,r.src_Cc=Q2().source,r.src_Z=K2().source,r.src_P=Y2().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}),Vu}var Wu,c0;function eT(){if(c0)return Wu;c0=1;function e(b){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(T){T&&Object.keys(T).forEach(function(L){b[L]=T[L]})}),b}function r(b){return Object.prototype.toString.call(b)}function i(b){return r(b)==="[object String]"}function s(b){return r(b)==="[object Object]"}function l(b){return r(b)==="[object RegExp]"}function u(b){return r(b)==="[object Function]"}function f(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(b){return Object.keys(b||{}).reduce(function(k,T){return k||h.hasOwnProperty(T)},!1)}var v={"http:":{validate:function(b,k,T){var L=b.slice(k);return T.re.http||(T.re.http=new RegExp("^\\/\\/"+T.re.src_auth+T.re.src_host_port_strict+T.re.src_path,"i")),T.re.http.test(L)?L.match(T.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,k,T){var L=b.slice(k);return T.re.no_http||(T.re.no_http=new RegExp("^"+T.re.src_auth+"(?:localhost|(?:(?:"+T.re.src_domain+")\\.)+"+T.re.src_domain_root+")"+T.re.src_port+T.re.src_host_terminator+T.re.src_path,"i")),T.re.no_http.test(L)?k>=3&&b[k-3]===":"||k>=3&&b[k-3]==="/"?0:L.match(T.re.no_http)[0].length:0}},"mailto:":{validate:function(b,k,T){var L=b.slice(k);return T.re.mailto||(T.re.mailto=new RegExp("^"+T.re.src_email_name+"@"+T.re.src_host_strict,"i")),T.re.mailto.test(L)?L.match(T.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]",x="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(b){b.__index__=-1,b.__text_cache__=""}function w(b){return function(k,T){var L=k.slice(T);return b.test(L)?L.match(b)[0].length:0}}function _(){return function(b,k){k.normalize(b)}}function S(b){var k=b.re=J2()(b.__opts__),T=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||T.push(y),T.push(k.src_xn),k.src_tlds=T.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 z=[];b.__compiled__={};function V(te,oe){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+oe)}Object.keys(b.__schemas__).forEach(function(te){var oe=b.__schemas__[te];if(oe!==null){var pe={validate:null,link:null};if(b.__compiled__[te]=pe,s(oe)){l(oe.validate)?pe.validate=w(oe.validate):u(oe.validate)?pe.validate=oe.validate:V(te,oe),u(oe.normalize)?pe.normalize=oe.normalize:oe.normalize?V(te,oe):pe.normalize=_();return}if(i(oe)){z.push(te);return}V(te,oe)}}),z.forEach(function(te){b.__compiled__[b.__schemas__[te]]&&(b.__compiled__[te].validate=b.__compiled__[b.__schemas__[te]].validate,b.__compiled__[te].normalize=b.__compiled__[b.__schemas__[te]].normalize)}),b.__compiled__[""]={validate:null,normalize:_()};var fe=Object.keys(b.__compiled__).filter(function(te){return te.length>0&&b.__compiled__[te]}).map(f).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),m(b)}function R(b,k){var T=b.__index__,L=b.__last_index__,z=b.__text_cache__.slice(T,L);this.schema=b.__schema__.toLowerCase(),this.index=T+k,this.lastIndex=L+k,this.raw=z,this.text=z,this.url=z}function O(b,k){var T=new R(b,k);return b.__compiled__[T.schema].normalize(T,b),T}function N(b,k){if(!(this instanceof N))return new N(b,k);k||p(b)&&(k=b,b={}),this.__opts__=e({},h,k),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},v,b),this.__compiled__={},this.__tlds__=x,this.__tlds_replaced__=!1,this.re={},S(this)}return N.prototype.add=function(k,T){return this.__schemas__[k]=T,S(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 T,L,z,V,fe,te,oe,pe,ue;if(this.re.schema_test.test(k)){for(oe=this.re.schema_search,oe.lastIndex=0;(T=oe.exec(k))!==null;)if(V=this.testSchemaAt(k,T[2],oe.lastIndex),V){this.__schema__=T[2],this.__index__=T.index+T[1].length,this.__last_index__=T.index+T[0].length+V;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&&(z=k.match(this.re.email_fuzzy))!==null&&(fe=z.index+z[1].length,te=z.index+z[0].length,(this.__index__<0||fe<this.__index__||fe===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=fe,this.__last_index__=te))),this.__index__>=0},N.prototype.pretest=function(k){return this.re.pretest.test(k)},N.prototype.testSchemaAt=function(k,T,L){return this.__compiled__[T.toLowerCase()]?this.__compiled__[T.toLowerCase()].validate(k,L,this):0},N.prototype.match=function(k){var T=0,L=[];this.__index__>=0&&this.__text_cache__===k&&(L.push(O(this,T)),T=this.__last_index__);for(var z=T?k.slice(T):k;this.test(z);)L.push(O(this,T)),z=z.slice(this.__last_index__),T+=this.__last_index__;return L.length?L:null},N.prototype.tlds=function(k,T){return k=Array.isArray(k)?k:[k],T?(this.__tlds__=this.__tlds__.concat(k).sort().filter(function(L,z,V){return L!==V[z-1]}).reverse(),S(this),this):(this.__tlds__=k.slice(),this.__tlds_replaced__=!0,S(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(){},Wu=N,Wu}const tT=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 f0;function nT(){if(f0)return js;f0=1,Object.defineProperty(js,"__esModule",{value:!0});var e=eT(),r=l(e),i=tT,s=l(i);function l(f){return f&&f.__esModule?f:{default:f}}var u=new r.default;return u.tlds(s.default),js.default=function(f){return u.match(f)},js}var Us={},d0;function rT(){return d0||(d0=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=function(e){return e}),Us}var h0;function iT(){if(h0)return Fs;h0=1,Object.defineProperty(Fs,"__esModule",{value:!0});var e=function(){function O(N,b){for(var k=0;k<b.length;k++){var T=b[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(N,T.key,T)}}return function(N,b,k){return b&&O(N.prototype,b),k&&O(N,k),N}}(),r=Yr(),i=m(r),s=W2(),l=x(s),u=Z2(),f=x(u),h=nT(),p=x(h),v=rT(),y=x(v);function x(O){return O&&O.__esModule?O:{default:O}}function m(O){if(O&&O.__esModule)return O;var N={};if(O!=null)for(var b in O)Object.prototype.hasOwnProperty.call(O,b)&&(N[b]=O[b]);return N.default=O,N}function w(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function _(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 S(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 R=function(O){S(N,O);function N(){return w(this,N),_(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(k){var T=this;if(k==="")return k;var L=this.props.matchDecorator(k);if(!L)return k;var z=[],V=0;return L.forEach(function(fe,te){fe.index>V&&z.push(k.substring(V,fe.index));var oe=T.props.hrefDecorator(fe.url),pe=T.props.textDecorator(fe.text),ue=T.props.componentDecorator(oe,pe,te);z.push(ue),V=fe.lastIndex}),k.length>V&&z.push(k.substring(V)),z.length===1?z[0]:z}},{key:"parse",value:function(k){var T=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(z,V){return T.parse(z,V)}):k}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),N}(i.Component);return R.defaultProps={componentDecorator:l.default,hrefDecorator:f.default,matchDecorator:p.default,textDecorator:y.default},Fs.default=R,Fs}var p0;function oT(){if(p0)return Ms;p0=1,Object.defineProperty(Ms,"__esModule",{value:!0});var e=iT(),r=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return Ms.default=r.default,Ms}var sT=oT();const aT=ra(sT),lT="_text_gp0s0_1",uT="_command_gp0s0_5",m0={text:lT,command:uT},My=({text:e,commands:r=[],onLinkClick:i})=>{const s=h=>p=>(p.preventDefault(),h&&i(h),!1),l=(h,p,v)=>E.jsx("a",{onClick:s(h),role:"button",children:p},v),u=r.find(h=>e.startsWith(`/${h}`)),f=u?e.slice(u.length+1):e;return E.jsxs("div",{children:[u&&E.jsxs("code",{className:m0.command,children:["/",u]}),f.split(`
|
|
97
|
-
`).map((h,p)=>E.jsxs("span",{className:m0.text,children:[E.jsx(aT,{componentDecorator:l,children:h}),E.jsx("br",{})]},p))]})},cT=({subtitle:e,onLinkClick:r})=>e?E.jsx("div",{className:wt.subtitle,children:E.jsx(My,{text:e,onLinkClick:r})}):null,g0="newtab#",Fy=({markdown:e,markdownOptions:r={},onLinkClick:i})=>{const s=u=>f=>(f.preventDefault(),u&&i(u),!1),l=({title:u,href:f,children:h})=>f.indexOf(g0)===0?E.jsx("a",{href:f.slice(g0.length),title:u,target:"_blank",rel:"noopener noreferrer",children:h}):E.jsx("a",{onClick:s(f),title:u,href:f,children:h});return E.jsx(un,{options:{...r,overrides:{a:l}},children:e})},fT=({text:e,onLinkClick:r})=>e?E.jsx("div",{children:E.jsx(Fy,{markdown:e,onLinkClick:r})}):null,dT=({title:e})=>e?E.jsx("h1",{className:wt.title,children:e}):null,hT=({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)?E.jsxs("div",{className:q(de.bubbleContent),children:[E.jsx(dT,{title:e}),E.jsx(fT,{text:r,onLinkClick:u}),E.jsx(cT,{subtitle:i,onLinkClick:u}),E.jsx(V2,{buttons:s,onButtonClick:l})]}):null,pT=({alt:e,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?E.jsx("div",{className:wt.video_container,children:E.jsx("iframe",{className:q(wt.video,{[wt.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):E.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:r,alt:e})})}):E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:r,alt:e})}):null,mT=({title:e,text:r,subtitle:i,imageUrl:s,itemUrl:l,buttons:u,onButtonClick:f,onLinkClick:h})=>{const p=!!(e!=null&&e.length)||!!(r!=null&&r.length)||!!(i!=null&&i.length)||!!(u!=null&&u.length);return E.jsxs("div",{className:q(wt.detailMessage),children:[E.jsx(pT,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&E.jsx(hT,{title:e,text:r,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:f})]})},gT=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:r,children:i},s)=>{const l=Je();return E.jsx("li",{ref:s,className:q(de.message,de.messageGuest,e&&de.messageGuestFirst,r&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:E.jsx("div",{className:q(de.rightText),children:i})})})}),yT="_markdown_nw7vg_1",Ly={markdown:yT},Hs="source-info-reference",vT=({markdown:e,className:r,onLinkClick:i})=>{const s=ei(),l=_T(),u=h=>p=>{const v=p.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(p.stopPropagation(),s(qm(h)))},f=h=>()=>{s(qm(h))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Hs}`).forEach(h=>{var y,x,m,w;const p=h.previousSibling;p&&p.nodeType===Node.TEXT_NODE&&((y=p.textContent)!=null&&y.endsWith(" "))&&((x=p.textContent)!=null&&x.trim().length)&&h.classList.add(`${Hs}--before-space`);const v=h.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&((m=v.textContent)!=null&&m.startsWith(" "))&&((w=v.textContent)!=null&&w.trim().length)&&h.classList.add(`${Hs}--after-space`)})},[e]),E.jsx("div",{className:q(de.bubbleContent,Ly.markdown,r),children:E.jsx(Fy,{markdown:e,onLinkClick:i,markdownOptions:{renderRule(h,p,v,y){return p.type===se.footnoteReference?E.jsx("span",{className:q(de.sourceInfoReference,Hs),children:E.jsx("a",{type:"button",tabIndex:0,onClick:f(p.text),onKeyDown:u(p.text),children:l(p.text)})},y.key):h()}}})})},_T=()=>{const e=[];return i=>{const s=e.indexOf(i);return s>-1?s+1:(e.push(i),e.length)}},ET=({text:e,commands:r,onLinkClick:i})=>E.jsx("div",{className:de.bubbleContent,children:E.jsx(My,{text:e,commands:r,onLinkClick:i})}),wT=B.forwardRef(({message:e,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:f,onLinkClick:h},p)=>{const v=ST(e,r,f,h);switch(e.sender.type){case ge.UserType.GUEST:return E.jsx(gT,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:v});default:{const y=x=>u(e._id,x);return E.jsx(Py,{ref:p,message:e,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:y,children:v})}}}),ST=(e,r,i,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return E.jsx(ET,{text:l.text,commands:r,onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return E.jsx(mT,{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 E.jsx(vT,{markdown:l.markdown,className:l.className,onLinkClick:s})}}},bT=(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,xT=tg.memo(wT,bT),TT="_ticontainer_xg0dn_1",CT="_tiblock_xg0dn_5",kT="_tidot_xg0dn_12",RT="_mercuryTypingAnimation_xg0dn_1",Zi={ticontainer:TT,tiblock:CT,tidot:kT,mercuryTypingAnimation:RT},OT=({isTyping:e=!1})=>E.jsx("div",{className:Zi.ticontainer,children:E.jsx("div",{className:Zi.tiblock,children:e?E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")})]}):null})}),NT=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),AT=({messages:e,isBotTyping:r,showGeneralConditions:i,commands:s,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:f})=>{const h=B.useRef(0),p=B.useRef(!0),v=B.useRef(null),y=B.useRef(null),x=B.useRef(null);B.useLayoutEffect(()=>{if(e.length&&v.current&&(h.current<e.length||r)){if(y.current){const _=y.current.offsetTop;v.current.scrollTop=_}else if(x.current){const _=x.current.offsetTop;v.current.scrollTop=_}p.current&&(p.current=!1),h.current=e.length}},[e,p,r]);let m;const w=e.length;return E.jsxs("div",{ref:v,className:q(Wm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&p.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&E.jsx(u2,{}),E.jsxs("ul",{className:Wm.messages,children:[e.map((_,S)=>{const R=IT(_,m),O=DT(_,S,e,r);m=_.sender.type;const N=S+1===w;return E.jsx(xT,{ref:N?x:null,message:_,commands:s,isLastMessage:N,isFirstMessageBySender:R,isLastMessageBySender:O,onButtonClick:u,onLinkClick:f,onReaction:l},N&&!r?"last":_._id)}),r&&E.jsx(Py,{ref:y,message:NT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:E.jsx(OT,{isTyping:!0})},"last")]})]})},IT=(e,r)=>!r||r!==e.sender.type,DT=(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)},PT="_bottomSheet_jp8dl_1",MT="_bottomSheetOpen_jp8dl_15",FT="_bottomSheetClose_jp8dl_20",Cn={bottomSheet:PT,bottomSheetOpen:MT,"slide-in":"_slide-in_jp8dl_1",bottomSheetClose:FT,"slide-out":"_slide-out_jp8dl_1"},LT="_container_xc2nx_1",y0={container:LT},BT=({contentUrl:e})=>{const r=Kn(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 E.jsx("div",{className:q(y0.container,Cn.bottomSheet,{[Cn.bottomSheetOpen]:!!e,[Cn.bottomSheetClose]:i&&!e}),children:l&&E.jsx("iframe",{title:"Drawer",src:l,className:y0.iframe})})},jT="_container_tr4tn_1",UT={container:jT},HT=({title:e,href:r,children:i})=>E.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),zT=()=>{const r=Je()("powered-by");return r&&r.length?E.jsx("div",{className:q(UT.container,"chat__poweredBy"),children:E.jsx(un,{options:{overrides:{a:HT}},children:r})}):null},v0=({className:e,children:r,...i})=>E.jsx(ma,{className:q(ro.buttonDefault,e),type:"button",...i,children:r}),io=({className:e,children:r,...i})=>E.jsx(ma,{className:q(ro.buttonPrimary,e),...i,children:r}),GT="_container_h23mk_1",$T="_formContainer_h23mk_17",qT="_emailInput_h23mk_22",VT="_description_h23mk_52",WT="_actions_h23mk_57",ZT="_validationError_h23mk_67",XT="_submitted_h23mk_74",bn={container:GT,formContainer:$T,emailInput:qT,description:VT,actions:WT,validationError:ZT,submitted:XT},QT=({visible:e,methods:r,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=Je(),[f,h]=B.useState(void 0),[p,v]=B.useState(!1),[y,x]=B.useState(!1),[m,w]=B.useState(void 0),_=B.useRef(null);B.useEffect(()=>{var N;e?((N=_.current)==null||N.focus(),v(!1),x(!1),h(e)):f===!0&&h(!1)},[e,f]);const S=N=>{N.preventDefault(),m&&m.length>0&&(i(m),v(!0),setTimeout(l,3*1e3))},R=N=>{const b=N.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(b);w(k?b:"")},O=()=>{x(!0),s(),setTimeout(l,3*1e3)};return E.jsxs("div",{className:q(bn.container,Cn.bottomSheet,{[Cn.bottomSheetOpen]:f===!0,[Cn.bottomSheetClose]:f===!1}),children:[r.pdf&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.pdf.title")}),E.jsx(un,{className:bn.description,children:u("export-transcript.pdf.description")||""}),E.jsxs("div",{className:bn.actions,children:[E.jsx(v0,{onClick:l,children:u("export-transcript.pdf.cancel")}),E.jsx(io,{onClick:O,disabled:y,children:u("export-transcript.pdf.download")})]})]}),r.email&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.email.title")}),E.jsx(un,{className:bn.description,children:u("export-transcript.email.description")||""}),E.jsxs("form",{onSubmit:S,className:bn.formContainer,children:[E.jsxs("div",{children:[E.jsx("input",{disabled:p,ref:_,type:"email",placeholder:u("export-transcript.email.placeholder"),className:bn.emailInput,onChange:R}),(m==null?void 0:m.length)===0?E.jsx("div",{className:bn.validationError,children:u("export-transcript.email.invalid")}):null]}),E.jsxs("div",{className:bn.actions,children:[E.jsx(v0,{onClick:l,children:u("export-transcript.email.cancel")}),E.jsx(io,{type:"submit",disabled:p||m===void 0||m.length===0,children:u("export-transcript.email.send")})]})]}),p&&E.jsx("div",{className:bn.submitted,children:u("export-transcript.email.success")})]})]})},KT="_inputContainer_fi5ao_1",YT={inputContainer:KT},JT="_blockUserInput_mjy87_1",eC={blockUserInput:JT,"append-animate":"_append-animate_mjy87_1"},tC=({visible:e})=>{const r=Je();return e?E.jsx("div",{className:q(eC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},nC="_commandsDropdown_5ytuv_1",rC="_commands_5ytuv_1",iC="_command_5ytuv_1",oC="_commandActive_5ytuv_46",sC="_commandsSelections_5ytuv_55",Ki={commandsDropdown:nC,commands:rC,command:iC,commandActive:oC,commandsSelections:sC},aC=(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])},lC=(e,r,i,s,l)=>{B.useEffect(()=>{const u=f=>{if(e.length)switch(f.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])},uC=({text:e,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const l=B.useRef(null),u=Je(),[f,h]=B.useState([]),[p,v]=B.useState(_0(r)),[y,x]=B.useState(0),m=w=>i(`/${w}`);return aC(l,()=>h([])),lC(f,y,m,x,h),B.useEffect(()=>{v(_0(r))},[r]),B.useEffect(()=>{const w=e.length||0;w===0||w>p||!e.startsWith("/")?h([]):h(r.filter(cC(e))),x(0)},[r,e,p]),B.useEffect(()=>{s(!!f.length)},[f,s]),f.length?E.jsx("div",{ref:l,className:Ki.commandsDropdown,children:E.jsx("ul",{className:Ki.commands,role:"listbox",children:f.map((w,_)=>E.jsxs("li",{className:q([Ki.command,y===_&&Ki.commandActive]),role:"option",onClick:()=>m(w),onMouseOver:()=>x(_),children:[E.jsxs("h1",{children:["/",w]}),E.jsx("p",{children:u(`commands.${w}`)})]},w))})}):null},_0=e=>Math.max(...e.map(r=>r.length+1)),cC=e=>r=>{const i=`/${r}`;return i.startsWith(e)&&i.length>=e.length},E0=3,fC=({commands:e,onSelectCommand:r})=>{const i=Je(),[s,l]=B.useState(!1),u=v=>()=>{r(`/${v}`),l(!1)},f=()=>{l(!0)},h=()=>{l(!1)},p=s?e:e.slice(0,E0);return E.jsxs("div",{className:Ki.commandsSelections,children:[p.map(v=>E.jsxs("button",{onClick:u(v),children:["/",v]})),p.length<e.length?E.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:f,children:i("commands.show-more.action")},"show-more"):p.length>E0?E.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},dC="_callToActionContainer_bkfcm_1",hC="_callToActionTitle_bkfcm_23",pC="_rateOverlay_bkfcm_30",mC="_body_bkfcm_52",gC="_footer_bkfcm_60",yC="_actions_bkfcm_73",vC="_bubbles_bkfcm_101",_C="_rateFeedbackBotBubble_bkfcm_130",EC="_rateFeedbackGuestBubble_bkfcm_136",wC="_avatar_bkfcm_142",SC="_fadeInLeft_bkfcm_1",bC="_bubble_bkfcm_101",xC="_appear_bkfcm_1",TC="_botBubble_bkfcm_168",CC="_guestBubble_bkfcm_179",kC="_rateText_bkfcm_198",RC="_stars_bkfcm_203",OC="_starsSmall_bkfcm_215",NC="_starsLarge_bkfcm_219",AC="_star_bkfcm_203",IC="_starReadonly_bkfcm_236",DC="_starIcon_bkfcm_246",PC="_starsDescriptionContainer_bkfcm_264",MC="_starsDescription_bkfcm_264",pt={callToActionContainer:dC,"append-animate":"_append-animate_bkfcm_1",callToActionTitle:hC,rateOverlay:pC,body:mC,footer:gC,actions:yC,bubbles:vC,rateFeedbackBotBubble:_C,rateFeedbackGuestBubble:EC,avatar:wC,fadeInLeft:SC,bubble:bC,appear:xC,botBubble:TC,guestBubble:CC,rateText:kC,stars:RC,starsSmall:OC,starsLarge:NC,star:AC,starReadonly:IC,starIcon:DC,starsDescriptionContainer:PC,starsDescription:MC},FC=({value:e,index:r,count:i,readonly:s,onHover:l,onClick:u})=>{const f=h=>{u&&h.key==="Enter"&&u()};return E.jsx("li",{className:q(pt.star,{[pt.starReadonly]:s},"chat__conversationRating__star"),children:E.jsx("div",{role:"radio","aria-checked":e>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:l,onKeyDown:f,onClick:u,children:E.jsx("span",{role:"img","aria-label":"Star",className:q(pt.starIcon),children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})})})})},w0=5,By=({value:e,size:r,readonly:i=!1,onChange:s})=>{const[l,u]=B.useState(void 0),f=()=>{u(void 0)},h=v=>()=>{if(!i){const y=v+1;u(y)}},p=v=>()=>{s&&!i&&(s(v===0&&e===1?0:v+1),u(void 0))};return E.jsx("ul",{tabIndex:0,role:"radiogroup",className:q(pt.stars,{[pt.starsSmall]:r==="small",[pt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:f,children:Array(w0).fill(0).map((v,y)=>E.jsx(FC,{value:l===void 0?e:l,index:y,count:w0,readonly:i,onHover:h(y),onClick:p(y)},y))})},LC=({visible:e,onRate:r})=>{const i=Je();return e?E.jsxs("div",{className:q(pt.callToActionContainer,"chat__conversationRating__callToAction"),children:[E.jsx("div",{className:q(pt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),E.jsx(By,{value:0,size:"small",onChange:r})]}):null},Zu=({isFirstMessageBySender:e,isLastMessageBySender:r,children:i})=>E.jsxs("div",{className:q(de.message,de.messageBot,e&&de.messageBotFirst,r&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),E.jsx("div",{className:q(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:E.jsx("div",{className:q(de.leftText,de.bubbleContent),children:i})})]}),BC=({children:e})=>E.jsx("div",{className:q(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:E.jsx("div",{className:q(de.rightText,de.bubbleContent),children:e})})}),jC=({visible:e,rating:r,onRate:i,onClose:s})=>{const l=Je(),[u,f]=B.useState(r),[h,p]=B.useState(void 0),[v,y]=B.useState(void 0),[x,m]=B.useState({submitted:!1,feedback:""}),[w,_]=B.useState(!1),S=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):v===!0&&y(!1)},[e,v]),B.useEffect(()=>{f(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(()=>{x.submitted?setTimeout(()=>_(!0),x.feedback.length?500:0):_(!1)},[x]);const R=O=>{var b,k;O.preventDefault();const N=((k=(b=S.current)==null?void 0:b.value)==null?void 0:k.trim())||"";i(u,N),m({submitted:!0,feedback:N})};return E.jsx("div",{className:q(pt.rateOverlay,Cn.bottomSheet,"chat__conversationRating__overlay",{[Cn.bottomSheetOpen]:v===!0,[Cn.bottomSheetClose]:v===!1}),children:E.jsxs("form",{onSubmit:R,children:[E.jsxs("div",{className:q(pt.body,"chat__conversationRating__overlay__body"),children:[E.jsx("div",{}),E.jsx("div",{className:q(pt.bubbles),children:e&&h&&E.jsxs(E.Fragment,{children:[E.jsxs(Zu,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[E.jsx("h2",{children:l("conversation-rating.overlay.title")}),E.jsxs("div",{className:q(pt.starsDescriptionContainer),children:[E.jsx(By,{value:u,size:"large",readonly:x.submitted,onChange:f}),E.jsxs("div",{className:q(pt.starsDescription),children:[E.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),E.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),E.jsx(Zu,{isFirstMessageBySender:!1,isLastMessageBySender:!w||!!x.feedback.length,children:E.jsx("div",{children:h})}),!!x.feedback.length&&E.jsx(BC,{children:x.feedback}),w&&E.jsx(Zu,{isFirstMessageBySender:!!x.feedback.length,isLastMessageBySender:!0,children:E.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),E.jsxs("div",{className:q(pt.footer,"chat__conversationRating__overlay__footer"),children:[!x.submitted&&E.jsx("input",{ref:S,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),E.jsx("div",{className:q(pt.actions,"chat__conversationRating__overlay__footer__actions"),children:x.submitted?E.jsx(io,{type:"button",onClick:s,children:l("conversation-rating.overlay.action.close")}):E.jsx(io,{type:"submit",children:l("conversation-rating.overlay.action.submit")})})]})]})})},UC=({conversationRating:{enabled:e,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[f,h]=B.useState(0),p=x=>{h(x),l(!0)},v=()=>l(!1),y=!r&&i>=1;return e?E.jsxs(E.Fragment,{children:[E.jsx(LC,{visible:y,onRate:p}),E.jsx(jC,{visible:s,rating:f,onRate:u,onClose:v})]}):null},HC="_inputWrapper_e3h44_1",zC="_withOpenCommands_e3h44_14",GC="_messageInputWrapper_e3h44_20",$C="_messageInput_e3h44_20",qC="_buttons_e3h44_44",VC="_button_e3h44_44",mr={inputWrapper:HC,withOpenCommands:zC,messageInputWrapper:GC,messageInput:$C,buttons:qC,button:VC},WC="_audioRecorder_g845f_1",ZC="_audioButton_g845f_6",XC="_recorderIcon_g845f_37",QC="_pulse_g845f_1",KC="_spinning_g845f_60",YC="_spin_g845f_60",gr={audioRecorder:WC,audioButton:ZC,recorderIcon:XC,pulse:QC,spinning:KC,spin:YC},S0=2048,na=16e3;class JC extends tg.Component{constructor(i){super(i);be(this,"audioInput",null);be(this,"volume",null);be(this,"leftchannel",[]);be(this,"recorder",null);be(this,"recordingLength",0);be(this,"sampleRate",null);be(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(S0,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+=S0}}handleClickSubmitAudio(){const i=tk(this.leftchannel,this.recordingLength),s=nk(i,this.sampleRate||0),l=ek(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(f=>{f.stop()}))}render(){return E.jsxs("div",{className:gr.audioRecorder,children:[this.state.recordingState==="none"&&E.jsx("button",{className:q(gr.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&E.jsxs("svg",{className:gr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&E.jsxs("div",{className:gr.audioRecorder,children:[E.jsx("button",{className:q(gr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),E.jsx("div",{className:gr.recorderIcon}),E.jsx("button",{className:q(gr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),E.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const ek=e=>{const r=new ArrayBuffer(44+e.length*2),i=new DataView(r);zs(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),zs(i,8,"WAVE"),zs(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,na,!0),i.setUint32(28,na*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),zs(i,36,"data"),i.setUint32(40,e.length*2,!0);const s=e.length;let l=44;const u=1;for(let f=0;f<s;f++)i.setInt16(l,e[f]*(32767*u),!0),l+=2;return new Blob([i],{type:"audio/wav"})},zs=(e,r,i)=>{for(let s=0;s<i.length;s++)e.setUint8(r+s,i.charCodeAt(s))},tk=(e,r)=>{const i=new Float32Array(r);let s=0;const l=e.length;for(let u=0;u<l;u++){const f=e[u];i.set(f,s),s+=f.length}return i},nk=(e,r)=>{if(na===r)return e;const i=r/na,s=Math.round(e.length/i),l=new Float32Array(s);let u=0,f=0;for(;u<l.length;){const h=Math.round((u+1)*i);let p=0,v=0;for(let y=f;y<h&&y<e.length;y++)p+=e[y],v++;l[u]=p/v,u++,f=h}return l},rk=({speechSupport:e,transcriptExportEnabled:r,disabled:i,textInput:s,commandsVisible:l,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:h,onOpenTranscriptExportModal:p})=>{const v=Je(),y=B.useRef(null);B.useEffect(()=>{var S;(S=y.current)==null||S.focus()},[s]);const x=()=>{const S=y.current;S&&s.trim().length>=1&&f(s.trim())&&(S.value="",S.style.height="",S.focus())},m=S=>{S.preventDefault(),x()},w=S=>{const R=S.target.value;u(R),S.target.style.height="";const{scrollHeight:O}=S.target;S.target.style.height=`${O>150?150:O}px`},_=S=>{S.code==="Enter"&&!S.shiftKey?(S.repeat||x(),S.preventDefault()):l&&(S.code==="ArrowUp"||S.code==="ArrowDown")&&S.preventDefault()};return E.jsxs("form",{className:q(mr.inputWrapper,l&&mr.withOpenCommands,"chat__textInput"),onSubmit:m,children:[E.jsx("div",{className:mr.messageInputWrapper,children:E.jsx("textarea",{id:"user_input",ref:y,className:mr.messageInput,tabIndex:0,placeholder:v("message-input-placeholder"),value:s,onChange:w,onKeyDown:_,"aria-label":v("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),E.jsxs("div",{className:q(mr.buttons,"chat__buttons"),children:[!s.length&&r&&E.jsx("button",{type:"button",className:q(mr.button,"chat__button"),"aria-label":v("message-input.actions.export-transcript.label"),"data-title":v("message-input.actions.export-transcript.label"),tabIndex:0,onClick:p,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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?E.jsx("button",{className:q(mr.button,"chat__button"),type:"submit","aria-label":v("message-input.actions.submit.label"),"data-title":v("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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&&E.jsx(JC,{translate:v,onAudioRecorded:h})]})]})},ik="_quickReplies_83npe_1",ok="_quickReply_83npe_9",b0={quickReplies:ik,quickReply:ok},sk=({quickReplies:e,onQuickReplyClick:r})=>e.length?E.jsx("div",{className:q(b0.quickReplies,"chat__quickReplies"),children:e.map(i=>E.jsx(ma,{tabIndex:0,className:q(b0.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,x0=5e3,ak=1e3,lk=({isBotTyping:e,quickReplies:r,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:f,commands:h,setShowRatingOverlay:p,onTextInput:v,onRate:y,onQuickReplyClick:x,onAudioRecorded:m,onOpenTranscriptExportModal:w})=>{const[_,S]=B.useState(""),[R,O]=B.useState(!1),[N,b]=B.useState(!1),k=B.useRef(),T=B.useRef(0);B.useEffect(()=>{if(R&&!e){const V=k.current?Date.now()-k.current:0;V>x0?O(!1):setTimeout(()=>{O(!1)},x0-V)}},[R,e]),B.useEffect(()=>{R&&(k.current=Date.now())},[R]);const L=V=>{const fe=Date.now()-T.current<ak;return N?!1:e||fe?(O(!0),!1):(v(V),S(""),T.current=Date.now(),!0)},z=V=>{S(V+" ")};return E.jsxs("div",{className:q(YT.inputContainer),children:[E.jsx(sk,{quickReplies:r,onQuickReplyClick:x}),E.jsx(tC,{visible:R}),!R&&E.jsx(UC,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:y,showRatingOverlay:f,setShowRatingOverlay:p}),!!(h!=null&&h.length)&&E.jsx(uC,{text:_,commands:h,onSelectCommand:z,onVisibilityChange:b}),E.jsx(rk,{textInput:_,speechSupport:i,transcriptExportEnabled:s,disabled:R,commandsVisible:N,onTextInput:S,onTextInputSubmit:L,onOpenTranscriptExportModal:w,onAudioRecorded:m}),!!(h!=null&&h.length)&&E.jsx(fC,{commands:h,onSelectCommand:S})]})},uk=({clientName:e,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v,onMessageFromUser:y,onRate:x,onQuickReplyClick:m,onButtonClick:w,onLinkClick:_,onAudioRecorded:S,onTranscriptExport:R,onPdfExport:O,onTranscriptItemReaction:N})=>{const b=ei(),k=Kn(oe=>oe.connection.connectionState),[T,L]=B.useState(!1),[z,V]=B.useState(!1),fe=f.email||f.pdf,te=r.filter(oe=>oe.sender.type===py.GUEST).length;return B.useEffect(()=>{if(k===Er.CONNECTED){const oe=sa.parse(window.location.search);b(hy(e,oe))}},[e,k,b]),E.jsxs("div",{className:Lu.container,children:[E.jsxs("div",{className:q([Lu.chatcontent,(T||z)&&Lu.accessabilityHidden]),children:[E.jsx(AT,{messages:r,isBotTyping:s,showGeneralConditions:p,commands:v,onButtonClick:w,onLinkClick:_,onTranscriptItemReaction:N}),E.jsx(lk,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:te,speechSupport:u,transcriptExportEnabled:fe,conversationRating:T?{enabled:!1}:h,showRatingOverlay:z,setShowRatingOverlay:V,commands:v,onRate:x,onQuickReplyClick:m,onTextInput:y,onAudioRecorded:S,onOpenTranscriptExportModal:()=>L(!T)}),E.jsx(zT,{})]}),fe&&E.jsx(QT,{methods:f,visible:T,onEmailExport:R,onPdfExport:O,onClose:()=>L(!1)}),E.jsx(BT,{contentUrl:l})]})},ck=e=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}=e.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:f,conversationRating:h,showGeneralConditions:p,commands:v}},fk=e=>({onRestartChat:(r,i)=>e(ha(r,i)),onMessageFromUser:r=>e($g(r)),onRate:(r,i)=>e(US(r,i)),onAudioRecorded:r=>e(AS(r)),onActionFromUser:r=>e(r),onQuickReplyClick:r=>e(Gg(r)),onNluEvent:r=>e(Qg(r)),onButtonClick:r=>e(zS(r)),onLinkClick:r=>e(GS(r)),onTranscriptExport:r=>e(MS(r)),onPdfExport:()=>e(BS()),onTranscriptItemReaction:(r,i)=>e(ge.transcriptItemGuestReaction(r,i||null))}),dk=cE(ck,fk)(uk),jy=()=>hk(window.location.pathname),hk=e=>{const r=e.split("/"),i=e.endsWith("/");return r[r.length-(i?2:1)]},Uy=()=>B.useMemo(()=>jy(),[]),pk="_header_19p33_1",mk="_logoContainer_19p33_13",gk="_logo_19p33_13",yk="_actions_19p33_26",vk="_closeButton_19p33_72",Yi={header:pk,logoContainer:mk,logo:gk,actions:yk,closeButton:vk},Hy=e=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),e())},_k=({onClick:e})=>{const r=Je();return E.jsx("button",{className:q(Yi.closeButton,"tooltip--bottom"),"aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:Hy(e),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Ek=({onClick:e})=>{const r=Je();return E.jsx("button",{className:"tooltip--bottom","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:e,onKeyDown:Hy(e),children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[E.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),E.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},T0=({className:e,withActions:r=!0,...i})=>{const s=ei(),l=Uy(),u=()=>{const h=sa.parse(window.location.search);s(ha(l,h))},f=()=>{s(Ib())};return E.jsxs("div",{className:q([Yi.header,e]),...i,children:[E.jsx("div",{className:Yi.logoContainer,children:E.jsx("div",{className:Yi.logo})}),E.jsxs("div",{className:Yi.actions,children:[r&&E.jsx(Ek,{onClick:u}),E.jsx(_k,{onClick:f})]})]})},wk="_chatwindow_6v6ob_1",Sk="_chatwindowWithAside_6v6ob_46",C0={chatwindow:wk,chatwindowWithAside:Sk},bk="_sourceInfos_1qwkt_1",xk="_sourceDetails_1qwkt_16",Tk="_sourceHeader_1qwkt_23",Ck="_sourceHeaderIcon_1qwkt_43",kk="_openSourceButton_1qwkt_47",Rk="_closeSourceInfosButton_1qwkt_70",Ok="_sourceContent_1qwkt_85",Nk="_loadingSourceInfos_1qwkt_108",Ak="_loading_1qwkt_108",Ik="_rotate_1qwkt_1",Dk="_loadingError_1qwkt_122",dn={sourceInfos:bk,sourceDetails:xk,sourceHeader:Tk,sourceHeaderIcon:Ck,openSourceButton:kk,closeSourceInfosButton:Rk,sourceContent:Ok,loadingSourceInfos:Nk,loading:Ak,rotate:Ik,loadingError:Dk},Pk=({onClick:e})=>{const r=Je();return E.jsx("button",{className:q(dn.closeSourceInfosButton,"tooltip--bottom"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:e,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Mk=({type:e})=>{switch(e){case"WEBSITE":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})});case"PDF":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})});case"DOCX":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});case"TEXT":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});default:return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})})}},Fk=({sourceInfos:e,onClose:r})=>E.jsxs("div",{className:dn.sourceHeader,children:[E.jsx("div",{className:dn.sourceHeaderIcon,children:e&&E.jsx(Mk,{type:e.knowledgeBaseType})}),E.jsx("div",{children:e&&E.jsx("h1",{children:e.title})}),E.jsx(Pk,{onClick:r})]}),Lk=({title:e,href:r,children:i})=>E.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),Bk=({className:e,children:r,...i})=>E.jsx("a",{className:q(ro.button,ro.buttonPrimary,e),type:"button",...i,children:r}),jk=({label:e,url:r})=>E.jsxs(Bk,{className:dn.openSourceButton,href:r,target:"_blank",children:[E.jsx("p",{children:e}),E.jsx("div",{children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"})})})]}),Uk=({sourceInfos:e})=>E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(dn.sourceContent,Ly.markdown),children:E.jsx(un,{options:{overrides:{a:Lk}},children:e.content})}),E.jsx(jk,{label:e.title,url:e.url})]}),Hk=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,zk=()=>{const e=Je();return E.jsxs("div",{className:dn.loadingError,children:[E.jsx("h1",{children:e("source-infos.error.title")}),E.jsx("img",{src:Hk,title:e("source-infos.error.title")}),E.jsx("p",{children:e("source-infos.error.info")})]})},Gk=()=>E.jsx("div",{className:dn.loadingSourceInfos,children:E.jsx("svg",{className:dn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})}),$k=()=>{const e=ei(),r=Kn(s=>s.chat.sourceInfos),i=()=>{e(Pb())};return r?E.jsxs("div",{className:dn.sourceInfos,children:[E.jsx("div",{className:dn.sourceDetails,children:E.jsx(Fk,{sourceInfos:r.type==="loaded"?r:void 0,onClose:i})}),r.type==="loading"?E.jsx(Gk,{}):r.type==="loading-error"?E.jsx(zk,{}):E.jsx(Uk,{sourceInfos:r})]}):null},qk="_container_114wy_1",Vk="_body_114wy_7",Wk="_intro_114wy_14",Zk="_footer_114wy_39",Xk="_footnote_114wy_43",Qk="_containerWithFootnote_114wy_58",Kk="_startChatButton_114wy_73",Yk="_formFields_114wy_77",Jk="_formField_114wy_77",eR="_radio_114wy_89",tR="_checkbox_114wy_96",nR="_input_114wy_104",rR="_inputLabel_114wy_138",iR="_selectWrapper_114wy_142",oR="_select_114wy_142",sR="_selectLabel_114wy_188",ot={container:qk,body:Vk,intro:Wk,footer:Zk,footnote:Xk,containerWithFootnote:Qk,startChatButton:Kk,formFields:Yk,formField:Jk,radio:eR,checkbox:tR,input:nR,inputLabel:rR,selectWrapper:iR,select:oR,selectLabel:sR},aR=({name:e,label:r,defaultValue:i,required:s,onChange:l})=>{const u=f=>{l(f.currentTarget.checked?"true":"false")};return E.jsxs("label",{className:q(ot.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[E.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),E.jsx("div",{children:r})]})},lR=({type:e,name:r,label:i,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:y})=>{const x=m=>{y(m.target.value)};return E.jsxs("label",{className:q(ot.input,"chat__startScreen__input"),htmlFor:r,children:[E.jsx("div",{className:q(ot.inputLabel),children:i}),E.jsx("input",{type:e,id:r,name:r,defaultValue:s,placeholder:l,required:u,multiple:f,min:h,max:p,pattern:v,onChange:x})]})},uR=({name:e,value:r,label:i,defaultChecked:s,required:l,onChange:u})=>{const f=`${e}-${r}`,h=p=>{u(p.target.value)};return E.jsxs("label",{className:q(ot.radio,"chat__startScreen__radio"),htmlFor:f,children:[E.jsx("input",{id:f,type:"radio",name:e,value:r,defaultChecked:s,required:l,onChange:h}),E.jsx("span",{className:q(ot.label),children:i})]})},cR=({name:e,label:r,defaultValue:i,required:s,multiple:l,options:u,onChange:f})=>{const h=p=>{f(p.target.value)};return E.jsxs("label",{className:q(ot.select,"chat__startScreen__select"),htmlFor:e,children:[E.jsx("div",{className:q(ot.selectLabel),children:r}),E.jsx("div",{className:q(ot.selectWrapper),children:E.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,v])=>E.jsx("option",{value:p,selected:v===i,children:v}))})})]})},fR="start-screen.intro",dR="start-screen.start-chat",hR="start-screen.footnote",Qt="start-screen.form",k0=`${Qt}.fields`,pR=()=>{const e=Je(),r=ei(),[i,s]=B.useState({}),l=()=>{const x=Object.entries(i).reduce((m,[w,_])=>({...m,[w]:_.value}),{});r(Ob(x))},u=e(fR),f=e(dR),h=e(hR),p=B.useMemo(()=>{var x;return((x=e(k0))==null?void 0:x.split(";").map(m=>m.trim()))??[]},[e(k0)]);B.useEffect(()=>{p.length&&Object.keys(i).length===0&&s(p.reduce((x,m)=>({...x,[m]:mR(m,e)}),{}))},[e,p,i]);const v=x=>{x.preventDefault(),l()},y=x=>m=>{s(w=>({...w,[x]:{...w[x],value:m}}))};return E.jsxs("form",{onSubmit:v,className:q(ot.container,h&&ot.containerWithFootnote,"chat__startScreen"),children:[E.jsxs("div",{className:q(ot.body,"chat__startScreen__body"),children:[u&&E.jsx("div",{className:q(ot.intro,"chat__startScreen__intro"),children:E.jsx(un,{options:{overrides:{a:R0}},children:u})}),E.jsx("div",{className:q(ot.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:x,name:m,label:w,placeholder:_,defaultValue:S,options:R,required:O,multiple:N,min:b,max:k,pattern:T})=>E.jsx("div",{className:q(ot.formField,"chat__startScreen__field"),children:(()=>{switch(x){case"radio":return E.jsxs(E.Fragment,{children:[E.jsx("div",{children:w}),Object.entries(R||{}).map(([L,z])=>E.jsx(uR,{name:m,value:L,label:z,defaultChecked:L===S,required:O,onChange:y(m)}))]});case"checkbox":return E.jsx(aR,{name:m,label:w,defaultValue:S,required:O,onChange:y(m)});case"select":return E.jsx(cR,{name:m,label:w,defaultValue:S,required:O,multiple:N,options:R,onChange:y(m)});default:return E.jsx(lR,{type:x,name:m,label:w,placeholder:_,defaultValue:S,required:O,multiple:N,min:b,max:k,pattern:T,onChange:y(m)})}})()},m))})]}),E.jsxs("div",{className:q(ot.footer,"chat__startScreen__footer"),children:[E.jsx(io,{type:"submit",className:ot.startChatButton,children:f}),h&&E.jsx("div",{className:ot.footnote,children:E.jsx(un,{options:{overrides:{a:R0}},children:h})})]})]})},R0=({title:e,href:r,children:i})=>E.jsx("a",{href:r,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),mR=(e,r)=>{const i=r(`${Qt}.${e}.type`)||"text",s=r(`${Qt}.${e}.required`)==="true",l=r(`${Qt}.${e}.multiple`)==="true",u=r(`${Qt}.${e}.placeholder`),f=r(`${Qt}.${e}.label`)||"",h=r(`${Qt}.${e}.defaultValue`),p=r(`${Qt}.${e}.min`),v=r(`${Qt}.${e}.max`),y=r(`${Qt}.${e}.pattern`),x=yR(r(`${Qt}.${e}.options`));return{name:e,label:f,placeholder:u,value:gR(i,h,x)||"",defaultValue:h,options:x,type:i,required:s,multiple:l,min:p,max:v,pattern:y}},gR=(e,r,i)=>r||e==="select"&&Object.keys(i)[0]||"",yR=(e="")=>e.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...r,[s]:l}},{}),vR=()=>{const e=oa();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Xr={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},_R=({clientName:e})=>{vR();const r=ei(),i=Kn(y=>y.intl.messages),s=Je(),l=Kn(y=>y.startScreen.useStartScreen),u=Kn(y=>y.startScreen.startScreenStatus),[f,h]=B.useState(void 0);B.useEffect(()=>{const y=sa.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const x=m=>{switch(m.data.type){case Xr.TRIGGER_ACTION:r(m.data.action);break;case Xr.TRIGGER_STORY:r(Qg(m.data.story));break;case Xr.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Xr.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Xr.CHAT_MESSAGE_FROM_GUEST:r($g(m.data.text));break;case Xr.RESTART_CHAT:r(ha(e,y));break}};return r(Ub(e,y)),window.addEventListener("message",m=>x(m),!1),()=>window.removeEventListener("message",x)},[e,r]),B.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const p=l===void 0,v=l===!1||u==="HIDDEN";return E.jsx("div",{className:q(C0.chatwindow,v&&C0.chatwindowWithAside,"chat__chatwindow",f),children:p?null:v?E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(T0,{})}),E.jsx("main",{children:E.jsx(dk,{clientName:e})}),E.jsx("aside",{children:E.jsx($k,{})})]}):E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(T0,{withActions:!1})}),E.jsx("main",{children:E.jsx(pR,{})})]})})},ER=1024,wR=()=>{const e=Uy(),r=Kn(u=>u.intl.locale),i=Kn(u=>u.intl.messages),[s,l]=B.useState(O0());return B.useEffect(()=>{const u=()=>{l(O0())};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),E.jsx(Zw,{locale:r,messages:i,children:E.jsx("div",{className:q([Qw.app,s?"chat__large":"chat__small"]),children:E.jsx(_R,{clientName:e})})})},O0=()=>window.innerWidth>=ER;var Xu,N0;function xf(){if(N0)return Xu;N0=1;function e(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Xu=e,Xu}var Qu,A0;function SR(){if(A0)return Qu;A0=1;var e=typeof ys=="object"&&ys&&ys.Object===Object&&ys;return Qu=e,Qu}var Ku,I0;function zy(){if(I0)return Ku;I0=1;var e=SR(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=e||r||Function("return this")();return Ku=i,Ku}var Yu,D0;function bR(){if(D0)return Yu;D0=1;var e=zy(),r=function(){return e.Date.now()};return Yu=r,Yu}var Ju,P0;function xR(){if(P0)return Ju;P0=1;var e=/\s/;function r(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return Ju=r,Ju}var ec,M0;function TR(){if(M0)return ec;M0=1;var e=xR(),r=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(r,"")}return ec=i,ec}var tc,F0;function Gy(){if(F0)return tc;F0=1;var e=zy(),r=e.Symbol;return tc=r,tc}var nc,L0;function CR(){if(L0)return nc;L0=1;var e=Gy(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,l=e?e.toStringTag:void 0;function u(f){var h=i.call(f,l),p=f[l];try{f[l]=void 0;var v=!0}catch{}var y=s.call(f);return v&&(h?f[l]=p:delete f[l]),y}return nc=u,nc}var rc,B0;function kR(){if(B0)return rc;B0=1;var e=Object.prototype,r=e.toString;function i(s){return r.call(s)}return rc=i,rc}var ic,j0;function RR(){if(j0)return ic;j0=1;var e=Gy(),r=CR(),i=kR(),s="[object Null]",l="[object Undefined]",u=e?e.toStringTag:void 0;function f(h){return h==null?h===void 0?l:s:u&&u in Object(h)?r(h):i(h)}return ic=f,ic}var oc,U0;function OR(){if(U0)return oc;U0=1;function e(r){return r!=null&&typeof r=="object"}return oc=e,oc}var sc,H0;function NR(){if(H0)return sc;H0=1;var e=RR(),r=OR(),i="[object Symbol]";function s(l){return typeof l=="symbol"||r(l)&&e(l)==i}return sc=s,sc}var ac,z0;function AR(){if(z0)return ac;z0=1;var e=TR(),r=xf(),i=NR(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function p(v){if(typeof v=="number")return v;if(i(v))return s;if(r(v)){var y=typeof v.valueOf=="function"?v.valueOf():v;v=r(y)?y+"":y}if(typeof v!="string")return v===0?v:+v;v=e(v);var x=u.test(v);return x||f.test(v)?h(v.slice(2),x?2:8):l.test(v)?s:+v}return ac=p,ac}var lc,G0;function IR(){if(G0)return lc;G0=1;var e=xf(),r=bR(),i=AR(),s="Expected a function",l=Math.max,u=Math.min;function f(h,p,v){var y,x,m,w,_,S,R=0,O=!1,N=!1,b=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(v)&&(O=!!v.leading,N="maxWait"in v,m=N?l(i(v.maxWait)||0,p):m,b="trailing"in v?!!v.trailing:b);function k(ue){var Ue=y,Ie=x;return y=x=void 0,R=ue,w=h.apply(Ie,Ue),w}function T(ue){return R=ue,_=setTimeout(V,p),O?k(ue):w}function L(ue){var Ue=ue-S,Ie=ue-R,$e=p-Ue;return N?u($e,m-Ie):$e}function z(ue){var Ue=ue-S,Ie=ue-R;return S===void 0||Ue>=p||Ue<0||N&&Ie>=m}function V(){var ue=r();if(z(ue))return fe(ue);_=setTimeout(V,L(ue))}function fe(ue){return _=void 0,b&&y?k(ue):(y=x=void 0,w)}function te(){_!==void 0&&clearTimeout(_),R=0,y=S=x=_=void 0}function oe(){return _===void 0?w:fe(r())}function pe(){var ue=r(),Ue=z(ue);if(y=arguments,x=this,S=ue,Ue){if(_===void 0)return T(S);if(N)return clearTimeout(_),_=setTimeout(V,p),k(S)}return _===void 0&&(_=setTimeout(V,p)),w}return pe.cancel=te,pe.flush=oe,pe}return lc=f,lc}var uc,$0;function DR(){if($0)return uc;$0=1;var e=IR(),r=xf(),i="Expected a function";function s(l,u,f){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(i);return r(f)&&(h="leading"in f?!!f.leading:h,p="trailing"in f?!!f.trailing:p),e(l,u,{leading:h,maxWait:u,trailing:p})}return uc=s,uc}var PR=DR();const MR=ra(PR);var cc,q0;function FR(){if(q0)return cc;q0=1;function e(w,_){var S,R;if(typeof _=="function")R=_(w),R!==void 0&&(w=R);else if(Array.isArray(_))for(S=0;S<_.length;S++)R=_[S](w),R!==void 0&&(w=R);return w}function r(w,_){return w[0]==="-"&&Array.isArray(_)&&/^-\d+$/.test(w)?_.length+parseInt(w,10):w}function i(w){return/^\d+$/.test(w)}function s(w){return Object.prototype.toString.call(w)==="[object Object]"}function l(w){return Object(w)===w}function u(w){return Object.keys(w).length===0}var f=["__proto__","prototype","constructor"],h=function(w){return f.indexOf(w)===-1};function p(w,_){w.indexOf("[")>=0&&(w=w.replace(/\[/g,_).replace(/]/g,""));var S=w.split(_),R=S.filter(h);if(R.length!==S.length)throw Error("Refusing to update blacklisted property "+w);return S}var v=Object.prototype.hasOwnProperty;function y(w,_,S,R){if(!(this instanceof y))return new y(w,_,S,R);typeof _>"u"&&(_=!1),typeof S>"u"&&(S=!0),typeof R>"u"&&(R=!0),this.separator=w||".",this.override=_,this.useArray=S,this.useBrackets=R,this.keepArray=!1,this.cleanup=[]}var x=new y(".",!1,!0,!0);function m(w){return function(){return x[w].apply(x,arguments)}}return y.prototype._fill=function(w,_,S,R){var O=w.shift();if(w.length>0){if(_[O]=_[O]||(this.useArray&&i(w[0])?[]:{}),!l(_[O]))if(this.override)_[O]={};else{if(!(l(S)&&u(S)))throw new Error("Trying to redefine `"+O+"` which is a "+typeof _[O]);return}this._fill(w,_[O],S,R)}else{if(!this.override&&l(_[O])&&!u(_[O])){if(!(l(S)&&u(S)))throw new Error("Trying to redefine non-empty obj['"+O+"']");return}_[O]=e(S,R)}},y.prototype.object=function(w,_){var S=this;return Object.keys(w).forEach(function(R){var O=_===void 0?null:_[R],N=p(R,S.separator).join(S.separator);N.indexOf(S.separator)!==-1?(S._fill(N.split(S.separator),w,w[R],O),delete w[R]):w[R]=e(w[R],O)}),w},y.prototype.str=function(w,_,S,R){var O=p(w,this.separator).join(this.separator);return w.indexOf(this.separator)!==-1?this._fill(O.split(this.separator),S,_,R):S[w]=e(_,R),S},y.prototype.pick=function(w,_,S,R){var O,N,b,k,T;for(N=p(w,this.separator),O=0;O<N.length;O++)if(k=r(N[O],_),_&&typeof _=="object"&&k in _){if(O===N.length-1)return S?(b=_[k],R&&Array.isArray(_)?_.splice(k,1):delete _[k],Array.isArray(_)&&(T=N.slice(0,-1).join("."),this.cleanup.indexOf(T)===-1&&this.cleanup.push(T)),b):_[k];_=_[k]}else return;return S&&Array.isArray(_)&&(_=_.filter(function(L){return L!==void 0})),_},y.prototype.delete=function(w,_){return this.remove(w,_,!0)},y.prototype.remove=function(w,_,S){var R;if(this.cleanup=[],Array.isArray(w)){for(R=0;R<w.length;R++)this.pick(w[R],_,!0,S);return S||this._cleanup(_),_}else return this.pick(w,_,!0,S)},y.prototype._cleanup=function(w){var _,S,R,O;if(this.cleanup.length){for(S=0;S<this.cleanup.length;S++)R=this.cleanup[S].split("."),O=R.splice(0,-1).join("."),_=O?this.pick(O,w):w,_=_[R[0]].filter(function(N){return N!==void 0}),this.set(this.cleanup[S],_,w);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(w,_,S,R,O){return typeof R=="function"||Array.isArray(R)?this.set(_,e(this.pick(w,S,!0),R),S,O):(O=R,this.set(_,this.pick(w,S,!0),S,O)),S},y.prototype.transfer=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(this.pick(w,S,!0),O),R,N):(N=O,this.set(_,this.pick(w,S,!0),R,N)),R},y.prototype.copy=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(JSON.parse(JSON.stringify(this.pick(w,S,!1))),O),R,N):(N=O,this.set(_,this.pick(w,S,!1),R,N)),R},y.prototype.set=function(w,_,S,R){var O,N,b,k;if(typeof _>"u")return S;for(b=p(w,this.separator),O=0;O<b.length;O++){if(k=b[O],O===b.length-1)if(R&&s(_)&&s(S[k]))for(N in _)v.call(_,N)&&(S[k][N]=_[N]);else if(R&&Array.isArray(S[k])&&Array.isArray(_))for(var T=0;T<_.length;T++)S[b[O]].push(_[T]);else S[k]=_;else(!v.call(S,k)||!s(S[k])&&!Array.isArray(S[k]))&&(/^\d+$/.test(b[O+1])?S[k]=[]:S[k]={});S=S[k]}return S},y.prototype.transform=function(w,_,S){return _=_||{},S=S||{},Object.keys(w).forEach((function(R){this.set(w[R],this.pick(R,_),S)}).bind(this)),S},y.prototype.dot=function(w,_,S){_=_||{},S=S||[];var R=Array.isArray(w);return Object.keys(w).forEach((function(O){var N=R&&this.useBrackets?"["+O+"]":O;if(l(w[O])&&(s(w[O])&&!u(w[O])||Array.isArray(w[O])&&!this.keepArray&&w[O].length!==0))if(R&&this.useBrackets){var b=S[S.length-1]||"";return this.dot(w[O],_,S.slice(0,-1).concat(b+N))}else return this.dot(w[O],_,S.concat(N));else R&&this.useBrackets?_[S.join(this.separator).concat("["+O+"]")]=w[O]:_[S.concat(N).join(this.separator)]=w[O]}).bind(this)),_},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(w){Object.defineProperty(y,w,{get:function(){return x.override},set:function(_){x.override=!!_}})}),["useArray","keepArray","useBrackets"].forEach(function(w){Object.defineProperty(y,w,{get:function(){return x[w]},set:function(_){x[w]=_}})}),y._process=e,cc=y,cc}var LR=FR();const $y={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
98
|
-
|
|
99
|
-
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
100
|
-
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.close-chat":"Chat minimieren","source-infos.close":"Schliessen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},BR={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
101
|
-
|
|
102
|
-
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
103
|
-
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.close-chat":"Minimize chat","source-infos.close":"Close","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},jR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
104
|
-
|
|
105
|
-
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
106
|
-
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.close-chat":"Minimiser le chat","source-infos.close":"Fermer","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},UR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
107
|
-
|
|
108
|
-
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
109
|
-
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.close-chat":"Ridurre al minimo la chat","source-infos.close":"Chiudere","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},HR=["de","en","fr","it"],qy={locale:"de",messages:$y},zR=(e,r)=>{if(HR.includes(e)){const i=GR(e),s=LR.dot(r);return{...i,...s}}return r},GR=e=>{switch(e.toString()){case"en":return BR;case"fr":return jR;case"it":return UR;default:return $y}},$R=(e=qR,r)=>{switch(r.type){case yf:return Object.assign({},e,{connectionState:Er.CONNECTING});case vf:return Object.assign({},e,{connectionState:Er.CONNECTED});case _f:return Object.assign({},e,{connectionState:Er.DISCONNECTED});case Ef:return Object.assign({},e,{connectionState:Er.RECONNECTED});case wf:return Object.assign({},e,{sessionId:r.sessionId});case fa:return Object.assign({},e,{sessionId:r.payload.sessionId,userId:r.payload.userId});case da:return Object.assign({},e,{sessionId:void 0});default:return e}},qR={connectionState:Er.DISCONNECTED,sessionId:void 0,userId:void 0},VR=(e=W0,r)=>{switch(r.type){case dy:return W0;case fa:return yr({type:"webclient.chat.started"}),e;case da:return yr({type:"webclient.chat.ended"}),e;case ge.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case ge.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case ge.ActionTypes.MESSAGE_FROM_GUEST:case ge.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return V0(e,r.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{yr(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 nf:{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 tf:return yr(r.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return yr(r.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:r.payload.parameters.contentUrl});case ge.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case ge.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:r.payload.locale});case Wg:return yr(r),e;case Zg:return yr(r),e;case of:return Object.assign({},e,{speechSupport:!0});case af:{const i=new ge.TextMessage(r.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Mc()});return V0(e,s)}case sf:return Object.assign({},e,{transcriptExportEnabled:r.methods});case lf: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 uf:{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 cf:return{...e,commands:r.payload.commands};case ff:return{...e,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Vg:return{...e,sourceInfos:{type:"loading-error"}};case qg:return{...e,sourceInfos:{type:"loaded",chunkId:r.payload.chunkId,knowledgeBaseType:r.payload.knowledgeBaseType,title:r.payload.title,content:r.payload.content,url:r.payload.url}};case df:return{...e,sourceInfos:void 0};default:return e}},V0=(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:[]})},yr=e=>{var r;WR()?(r=window.top)==null||r.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},WR=()=>typeof window<"u"&&window.self!==window.top,W0={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1},commands:[]},Vy=cy({name:"intl",initialState:qy,reducers:{updateIntl:(e,r)=>{e.locale=r.payload.language,e.messages=r.payload.messages}}}),{updateIntl:ZR}=Vy.actions,XR=Vy.reducer,QR=Jg({chat:VR,startScreen:Ab,connection:$R,intl:XR}),Wy="bf-webclient-state-last-saved-at",Zy="bf-webclient-state",KR=e=>{try{if(!eO())return;const r=Z0(e,Wy);if(JR(r))return;{const i=Z0(e,Zy);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},YR=(e,r)=>{try{const i=JSON.stringify(r);X0(e,Zy,i);const s=new Date().toISOString();X0(e,Wy,s)}catch(i){console.error(i)}},JR=e=>{if(e===null)return!1;const r=new Date(e);return r.setHours(r.getHours()+12),new Date>r},eO=()=>typeof localStorage<"u",Z0=(e,r)=>localStorage.getItem(`${e}_${r}`),X0=(e,r,i)=>localStorage.setItem(`${e}_${r}`,i),hn=Object.create(null);hn.open="0";hn.close="1";hn.ping="2";hn.pong="3";hn.message="4";hn.upgrade="5";hn.noop="6";const Ws=Object.create(null);Object.keys(hn).forEach(e=>{Ws[hn[e]]=e});const Bc={type:"error",data:"parser error"},Xy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Qy=typeof ArrayBuffer=="function",Ky=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Tf=({type:e,data:r},i,s)=>Xy&&r instanceof Blob?i?s(r):Q0(r,s):Qy&&(r instanceof ArrayBuffer||Ky(r))?i?s(r):Q0(new Blob([r]),s):s(hn[e]+(r||"")),Q0=(e,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(e)};function K0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let fc;function tO(e,r){if(Xy&&e.data instanceof Blob)return e.data.arrayBuffer().then(K0).then(r);if(Qy&&(e.data instanceof ArrayBuffer||Ky(e.data)))return r(K0(e.data));Tf(e,!1,i=>{fc||(fc=new TextEncoder),r(fc.encode(i))})}const Y0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ji=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Y0.length;e++)Ji[Y0.charCodeAt(e)]=e;const nO=e=>{let r=e.length*.75,i=e.length,s,l=0,u,f,h,p;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);const v=new ArrayBuffer(r),y=new Uint8Array(v);for(s=0;s<i;s+=4)u=Ji[e.charCodeAt(s)],f=Ji[e.charCodeAt(s+1)],h=Ji[e.charCodeAt(s+2)],p=Ji[e.charCodeAt(s+3)],y[l++]=u<<2|f>>4,y[l++]=(f&15)<<4|h>>2,y[l++]=(h&3)<<6|p&63;return v},rO=typeof ArrayBuffer=="function",Cf=(e,r)=>{if(typeof e!="string")return{type:"message",data:Yy(e,r)};const i=e.charAt(0);return i==="b"?{type:"message",data:iO(e.substring(1),r)}:Ws[i]?e.length>1?{type:Ws[i],data:e.substring(1)}:{type:Ws[i]}:Bc},iO=(e,r)=>{if(rO){const i=nO(e);return Yy(i,r)}else return{base64:!0,data:e}},Yy=(e,r)=>{switch(r){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Jy="",oO=(e,r)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,f)=>{Tf(u,!1,h=>{s[f]=h,++l===i&&r(s.join(Jy))})})},sO=(e,r)=>{const i=e.split(Jy),s=[];for(let l=0;l<i.length;l++){const u=Cf(i[l],r);if(s.push(u),u.type==="error")break}return s};function aO(){return new TransformStream({transform(e,r){tO(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 dc;function Gs(e){return e.reduce((r,i)=>r+i.length,0)}function $s(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 lO(e,r){dc||(dc=new TextDecoder);const i=[];let s=0,l=-1,u=!1;return new TransformStream({transform(f,h){for(i.push(f);;){if(s===0){if(Gs(i)<1)break;const p=$s(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(Gs(i)<2)break;const p=$s(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(Gs(i)<8)break;const p=$s(i,8),v=new DataView(p.buffer,p.byteOffset,p.length),y=v.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Bc);break}l=y*Math.pow(2,32)+v.getUint32(4),s=3}else{if(Gs(i)<l)break;const p=$s(i,l);h.enqueue(Cf(u?p:dc.decode(p),r)),s=0}if(l===0||l>e){h.enqueue(Bc);break}}}})}const ev=4;function We(e){if(e)return uO(e)}function uO(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 ga=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),cO="arraybuffer";function tv(e,...r){return r.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const fO=Bt.setTimeout,dO=Bt.clearTimeout;function ya(e,r){r.useNativeTimers?(e.setTimeoutFn=fO.bind(Bt),e.clearTimeoutFn=dO.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const hO=1.33;function pO(e){return typeof e=="string"?mO(e):Math.ceil((e.byteLength||e.size)*hO)}function mO(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 nv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gO(e){let r="";for(let i in e)e.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r}function yO(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 vO extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class kf extends We{constructor(r){super(),this.writable=!1,ya(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 vO(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=Cf(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=gO(r);return i.length?"?"+i:""}}class _O extends kf{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)};sO(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,oO(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]=nv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let rv=!1;try{rv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const EO=rv;function wO(){}class SO extends _O{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,ya(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=tv(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=wO,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",J0);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,J0,!1)}}function J0(){for(let e in cn.requests)cn.requests.hasOwnProperty(e)&&cn.requests[e].abort()}const bO=function(){const e=iv({xdomain:!1});return e&&e.responseType!==null}();class xO extends SO{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=bO&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new cn(iv,this.uri(),r)}}function iv(e){const r=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||EO))return new XMLHttpRequest}catch{}if(!r)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ov=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class TO extends kf{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=ov?{}:tv(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;Tf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&ga(()=>{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]=nv()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const hc=Bt.WebSocket||Bt.MozWebSocket;class CO extends TO{createSocket(r,i,s){return ov?new hc(r,i,s):i?new hc(r,i):new hc(r)}doWrite(r,i){this.ws.send(i)}}class kO extends kf{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=lO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),l=aO();l.readable.pipeTo(r.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],l=i===r.length-1;this._writer.write(s).then(()=>{l&&ga(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const RO={websocket:CO,webtransport:kO,polling:xO},OO=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,NO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function jc(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=OO.exec(e||""),u={},f=14;for(;f--;)u[NO[f]]=l[f]||"";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=AO(u,u.path),u.queryKey=IO(u,u.query),u}function AO(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 IO(e,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Uc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Zs=[];Uc&&addEventListener("offline",()=>{Zs.forEach(e=>e())},!1);class Yn extends We{constructor(r,i){if(super(),this.binaryType=cO,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=jc(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=jc(i.host).host);ya(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=yO(this.opts.query)),Uc&&(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"})},Zs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=ev,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&&Yn.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",Yn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const 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+=pO(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,ga(()=>{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(Yn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,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(),Uc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Zs.indexOf(this._offlineEventListener);s!==-1&&Zs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}Yn.protocol=ev;class DO extends Yn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;Yn.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",x=>{if(!s)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Yn.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 f=x=>{const m=new Error("probe error: "+x);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){f("transport closed")}function p(){f("socket closed")}function v(x){i&&x.name!==i.name&&u()}const y=()=>{i.removeListener("open",l),i.removeListener("error",f),i.removeListener("close",h),this.off("close",p),this.off("upgrading",v)};i.once("open",l),i.once("error",f),i.once("close",h),this.once("close",p),this.once("upgrading",v),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 PO=class extends DO{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=>RO[l]).filter(l=>!!l)),super(r,s)}};function MO(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=jc(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 FO=typeof ArrayBuffer=="function",LO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,sv=Object.prototype.toString,BO=typeof Blob=="function"||typeof Blob<"u"&&sv.call(Blob)==="[object BlobConstructor]",jO=typeof File=="function"||typeof File<"u"&&sv.call(File)==="[object FileConstructor]";function Rf(e){return FO&&(e instanceof ArrayBuffer||LO(e))||BO&&e instanceof Blob||jO&&e instanceof File}function Xs(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if(Xs(e[i]))return!0;return!1}if(Rf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Xs(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Xs(e[i]))return!0;return!1}function UO(e){const r=[],i=e.data,s=e;return s.data=Hc(i,r),s.attachments=r.length,{packet:s,buffers:r}}function Hc(e,r){if(!e)return e;if(Rf(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]=Hc(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]=Hc(e[s],r));return i}return e}function HO(e,r){return e.data=zc(e.data,r),delete e.attachments,e}function zc(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]=zc(e[i],r);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=zc(e[i],r));return e}const zO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],GO=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 $O{constructor(r){this.replacer=r}encode(r){return(r.type===Ee.EVENT||r.type===Ee.ACK)&&Xs(r)?this.encodeAsBinary({type:r.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let 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=UO(r),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function eg(e){return Object.prototype.toString.call(e)==="[object Object]"}class Of 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 qO(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Rf(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 f=r.substring(u,i);if(f!=Number(f)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(f)}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 f=r.charAt(i);if(f==null||Number(f)!=f){--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(Of.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 eg(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||eg(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&zO.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 qO{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=HO(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const VO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Of,Encoder:$O,get PacketType(){return Ee},protocol:GO},Symbol.toStringTag,{value:"Module"}));function Kt(e,r,i){return e.on(r,i),function(){e.off(r,i)}}const WO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class av 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=[Kt(r,"open",this.onopen.bind(this)),Kt(r,"packet",this.onpacket.bind(this)),Kt(r,"error",this.onerror.bind(this)),Kt(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(WO.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 f={type:Ee.EVENT,data:i};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,x=i.pop();this._registerAckCallback(y,x),f.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(f),this.packet(f)):this.sendBuffer.push(f)),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),f=(...h)=>{this.io.clearTimeoutFn(u),i.apply(this,h)};f.withError=!0,this.acks[r]=f}emitWithAck(r,...i){return new Promise((s,l)=>{const u=(f,h)=>f?l(f):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 Gc 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,ya(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||VO;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 PO(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Kt(i,"open",function(){s.onopen(),r&&r()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},f=Kt(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(f),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(Kt(r,"ping",this.onping.bind(this)),Kt(r,"data",this.ondata.bind(this)),Kt(r,"error",this.onerror.bind(this)),Kt(r,"close",this.onclose.bind(this)),Kt(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){ga(()=>{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 av(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 Xi={};function Qs(e,r){typeof e=="object"&&(r=e,e=void 0),r=r||{};const i=MO(e,r.path||"/socket.io"),s=i.source,l=i.id,u=i.path,f=Xi[l]&&u in Xi[l].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||f;let p;return h?p=new Gc(s,r):(Xi[l]||(Xi[l]=new Gc(s,r)),p=Xi[l]),i.query&&!r.query&&(r.query=i.queryKey),p.socket(i.path,r)}Object.assign(Qs,{Manager:Gc,Socket:av,io:Qs,connect:Qs});const ZO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...jb,...NS,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],XO=({dispatch:e,getState:r})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===gf){s!=null&&s.disconnect(),e(zb());const f=`/chat?${sa.stringify(l.querystrings)}`;s=Qs(`/${l.clientName}${f}`),s.on("action",e),s.on("connect",()=>e(Gb())),s.on("disconnect",()=>e($b())),s.on("reconnect",()=>e(qb())),s.on("set-use-start-screen",h=>{e(h?kb():Rb())}),s.on("set-commands",(h=[])=>{e(LS(h))}),s.on("set-translations",(h,p)=>{e(ZR({language:h,messages:zR(h,p)}))}),s.on("enable-speech-support",()=>e(IS())),s.on("enable-transcript-export",h=>e(PS(h))),s.on("enable-conversation-rating",h=>e(jS(h))),s.on("speech-transcription",h=>e(DS(h))),s.on("restore-client-state",h=>{e(Hb(h.sessionId)),e(HS(h.messages))}),s.on("expand-window",({devices:h})=>e({type:Wg,devices:h})),s.on("show-general-conditions",()=>e(FS())),s.on("restart-chat",()=>{e(ha(l.clientName,l.querystrings))})}else if(l.type===fa)s==null||s.emit("start-chat",l.payload);else if(l.type===da)s==null||s.emit("terminate-session",l.payload);else if(l.type===OS)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===rf)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===Xg){const{connection:{sessionId:f}}=r();window.location.href=`/transcript-pdf/${f}`}else ZO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},lv=jy(),QO={...KR(lv),intl:qy},$c=pb({middleware:e=>e().concat(XO),reducer:QR,preloadedState:QO});$c.subscribe(MR(()=>{const e=$c.getState();YR(lv,{connection:e.connection,startScreen:e.startScreen})},1e3));const KO=document.getElementById("root"),YO=m1.createRoot(KO);YO.render(E.jsx(dE,{store:$c,children:E.jsx(wR,{})}));
|
|
110
|
-
//# sourceMappingURL=index-DUMnRcS3.js.map
|