@botfabrik/engine-webclient 4.43.0 → 4.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,127 +0,0 @@
1
- var p0=Object.defineProperty;var m0=(e,t,n)=>t in e?p0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var H=(e,t,n)=>(m0(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xp={exports:{}},Ss={},Tp={exports:{}},L={};/**
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 zi=Symbol.for("react.element"),g0=Symbol.for("react.portal"),v0=Symbol.for("react.fragment"),y0=Symbol.for("react.strict_mode"),_0=Symbol.for("react.profiler"),E0=Symbol.for("react.provider"),w0=Symbol.for("react.context"),S0=Symbol.for("react.forward_ref"),b0=Symbol.for("react.suspense"),x0=Symbol.for("react.memo"),T0=Symbol.for("react.lazy"),Ff=Symbol.iterator;function C0(e){return e===null||typeof e!="object"?null:(e=Ff&&e[Ff]||e["@@iterator"],typeof e=="function"?e:null)}var Cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kp=Object.assign,Op={};function Br(e,t,n){this.props=e,this.context=t,this.refs=Op,this.updater=n||Cp}Br.prototype.isReactComponent={};Br.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Br.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Np(){}Np.prototype=Br.prototype;function Lu(e,t,n){this.props=e,this.context=t,this.refs=Op,this.updater=n||Cp}var Bu=Lu.prototype=new Np;Bu.constructor=Lu;kp(Bu,Br.prototype);Bu.isPureReactComponent=!0;var Mf=Array.isArray,Rp=Object.prototype.hasOwnProperty,ju={current:null},Ap={key:!0,ref:!0,__self:!0,__source:!0};function Pp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Rp.call(t,r)&&!Ap.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:zi,type:e,key:o,ref:s,props:i,_owner:ju.current}}function k0(e,t){return{$$typeof:zi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $u(e){return typeof e=="object"&&e!==null&&e.$$typeof===zi}function O0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lf=/\/+/g;function ga(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O0(""+e.key):t.toString(36)}function xo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case zi:case g0:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+ga(s,0):r,Mf(i)?(n="",e!=null&&(n=e.replace(Lf,"$&/")+"/"),xo(i,t,n,"",function(u){return u})):i!=null&&($u(i)&&(i=k0(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Lf,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Mf(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+ga(o,a);s+=xo(o,t,n,l,i)}else if(l=C0(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+ga(o,a++),s+=xo(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ki(e,t,n){if(e==null)return e;var r=[],i=0;return xo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function N0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ie={current:null},To={transition:null},R0={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:To,ReactCurrentOwner:ju};L.Children={map:Ki,forEach:function(e,t,n){Ki(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ki(e,function(){t++}),t},toArray:function(e){return Ki(e,function(t){return t})||[]},only:function(e){if(!$u(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};L.Component=Br;L.Fragment=v0;L.Profiler=_0;L.PureComponent=Lu;L.StrictMode=y0;L.Suspense=b0;L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R0;L.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=kp({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=ju.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Rp.call(t,l)&&!Ap.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:zi,type:e.type,key:i,ref:o,props:r,_owner:s}};L.createContext=function(e){return e={$$typeof:w0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:E0,_context:e},e.Consumer=e};L.createElement=Pp;L.createFactory=function(e){var t=Pp.bind(null,e);return t.type=e,t};L.createRef=function(){return{current:null}};L.forwardRef=function(e){return{$$typeof:S0,render:e}};L.isValidElement=$u;L.lazy=function(e){return{$$typeof:T0,_payload:{_status:-1,_result:e},_init:N0}};L.memo=function(e,t){return{$$typeof:x0,type:e,compare:t===void 0?null:t}};L.startTransition=function(e){var t=To.transition;To.transition={};try{e()}finally{To.transition=t}};L.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};L.useCallback=function(e,t){return Ie.current.useCallback(e,t)};L.useContext=function(e){return Ie.current.useContext(e)};L.useDebugValue=function(){};L.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};L.useEffect=function(e,t){return Ie.current.useEffect(e,t)};L.useId=function(){return Ie.current.useId()};L.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};L.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};L.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};L.useMemo=function(e,t){return Ie.current.useMemo(e,t)};L.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};L.useRef=function(e){return Ie.current.useRef(e)};L.useState=function(e){return Ie.current.useState(e)};L.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};L.useTransition=function(){return Ie.current.useTransition()};L.version="18.2.0";Tp.exports=L;var k=Tp.exports;const Ht=ws(k);/**
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 A0=k,P0=Symbol.for("react.element"),I0=Symbol.for("react.fragment"),D0=Object.prototype.hasOwnProperty,F0=A0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,M0={key:!0,ref:!0,__self:!0,__source:!0};function Ip(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)D0.call(t,r)&&!M0.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:P0,type:e,key:o,ref:s,props:i,_owner:F0.current}}Ss.Fragment=I0;Ss.jsx=Ip;Ss.jsxs=Ip;xp.exports=Ss;var _=xp.exports,Dp={exports:{}},Qe={},Fp={exports:{}},Mp={};/**
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
- */(function(e){function t(O,F){var M=O.length;O.push(F);e:for(;0<M;){var Z=M-1>>>1,ae=O[Z];if(0<i(ae,F))O[Z]=F,O[M]=ae,M=Z;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var F=O[0],M=O.pop();if(M!==F){O[0]=M;e:for(var Z=0,ae=O.length,St=ae>>>1;Z<St;){var bt=2*(Z+1)-1,Nn=O[bt],ct=bt+1,Rn=O[ct];if(0>i(Nn,M))ct<ae&&0>i(Rn,Nn)?(O[Z]=Rn,O[ct]=M,Z=ct):(O[Z]=Nn,O[bt]=M,Z=bt);else if(ct<ae&&0>i(Rn,M))O[Z]=Rn,O[ct]=M,Z=ct;else break e}}return F}function i(O,F){var M=O.sortIndex-F.sortIndex;return M!==0?M:O.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],f=1,p=null,h=3,c=!1,g=!1,m=!1,E=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(O){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=O)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function w(O){if(m=!1,y(O),!g)if(n(l)!==null)g=!0,He(S);else{var F=n(u);F!==null&&On(w,F.startTime-O)}}function S(O,F){g=!1,m&&(m=!1,v(T),T=-1),c=!0;var M=h;try{for(y(F),p=n(l);p!==null&&(!(p.expirationTime>F)||O&&!W());){var Z=p.callback;if(typeof Z=="function"){p.callback=null,h=p.priorityLevel;var ae=Z(p.expirationTime<=F);F=e.unstable_now(),typeof ae=="function"?p.callback=ae:p===n(l)&&r(l),y(F)}else r(l);p=n(l)}if(p!==null)var St=!0;else{var bt=n(u);bt!==null&&On(w,bt.startTime-F),St=!1}return St}finally{p=null,h=M,c=!1}}var b=!1,x=null,T=-1,I=5,R=-1;function W(){return!(e.unstable_now()-R<I)}function pe(){if(x!==null){var O=e.unstable_now();R=O;var F=!0;try{F=x(!0,O)}finally{F?Ee():(b=!1,x=null)}}else b=!1}var Ee;if(typeof d=="function")Ee=function(){d(pe)};else if(typeof MessageChannel<"u"){var kn=new MessageChannel,ze=kn.port2;kn.port1.onmessage=pe,Ee=function(){ze.postMessage(null)}}else Ee=function(){E(pe,0)};function He(O){x=O,b||(b=!0,Ee())}function On(O,F){T=E(function(){O(e.unstable_now())},F)}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(O){O.callback=null},e.unstable_continueExecution=function(){g||c||(g=!0,He(S))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(h){case 1:case 2:case 3:var F=3;break;default:F=h}var M=h;h=F;try{return O()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,F){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var M=h;h=O;try{return F()}finally{h=M}},e.unstable_scheduleCallback=function(O,F,M){var Z=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?Z+M:Z):M=Z,O){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=M+ae,O={id:f++,callback:F,priorityLevel:O,startTime:M,expirationTime:ae,sortIndex:-1},M>Z?(O.sortIndex=M,t(u,O),n(l)===null&&O===n(u)&&(m?(v(T),T=-1):m=!0,On(w,M-Z))):(O.sortIndex=ae,t(l,O),g||c||(g=!0,He(S))),O},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(O){var F=h;return function(){var M=h;h=F;try{return O.apply(this,arguments)}finally{h=M}}}})(Mp);Fp.exports=Mp;var L0=Fp.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 Lp=k,qe=L0;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Bp=new Set,wi={};function Zn(e,t){kr(e,t),kr(e+"Capture",t)}function kr(e,t){for(wi[e]=t,e=0;e<t.length;e++)Bp.add(t[e])}var Vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pl=Object.prototype.hasOwnProperty,B0=/^[: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]*$/,Bf={},jf={};function j0(e){return pl.call(jf,e)?!0:pl.call(Bf,e)?!1:B0.test(e)?jf[e]=!0:(Bf[e]=!0,!1)}function $0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U0(e,t,n,r){if(t===null||typeof t>"u"||$0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function De(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new De(e,2,!1,e,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(e){xe[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function zu(e){return e[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(e){var t=e.replace(Uu,zu);xe[t]=new De(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Uu,zu);xe[t]=new De(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Uu,zu);xe[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hu(e,t,n,r){var i=xe.hasOwnProperty(t)?xe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(U0(t,n,i,r)&&(n=null),r||i===null?j0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Kt=Lp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zi=Symbol.for("react.element"),sr=Symbol.for("react.portal"),ar=Symbol.for("react.fragment"),Gu=Symbol.for("react.strict_mode"),ml=Symbol.for("react.profiler"),jp=Symbol.for("react.provider"),$p=Symbol.for("react.context"),Vu=Symbol.for("react.forward_ref"),gl=Symbol.for("react.suspense"),vl=Symbol.for("react.suspense_list"),Wu=Symbol.for("react.memo"),tn=Symbol.for("react.lazy"),Up=Symbol.for("react.offscreen"),$f=Symbol.iterator;function Gr(e){return e===null||typeof e!="object"?null:(e=$f&&e[$f]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,va;function oi(e){if(va===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);va=t&&t[1]||""}return`
34
- `+va+e}var ya=!1;function _a(e,t){if(!e||ya)return"";ya=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
- `),o=r.stack.split(`
36
- `),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ya=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oi(e):""}function z0(e){switch(e.tag){case 5:return oi(e.type);case 16:return oi("Lazy");case 13:return oi("Suspense");case 19:return oi("SuspenseList");case 0:case 2:case 15:return e=_a(e.type,!1),e;case 11:return e=_a(e.type.render,!1),e;case 1:return e=_a(e.type,!0),e;default:return""}}function yl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ar:return"Fragment";case sr:return"Portal";case ml:return"Profiler";case Gu:return"StrictMode";case gl:return"Suspense";case vl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $p:return(e.displayName||"Context")+".Consumer";case jp:return(e._context.displayName||"Context")+".Provider";case Vu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wu:return t=e.displayName||null,t!==null?t:yl(e.type)||"Memo";case tn:t=e._payload,e=e._init;try{return yl(e(t))}catch{}}return null}function H0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yl(t);case 8:return t===Gu?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function En(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G0(e){var t=zp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){e._valueTracker||(e._valueTracker=G0(e))}function Hp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ho(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _l(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=En(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gp(e,t){t=t.checked,t!=null&&Hu(e,"checked",t,!1)}function El(e,t){Gp(e,t);var n=En(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&wl(e,t.type,En(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wl(e,t,n){(t!=="number"||Ho(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var si=Array.isArray;function yr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+En(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Sl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(si(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:En(n)}}function Vp(e,t){var n=En(t.value),r=En(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wp(e){switch(e){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 bl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ji,qp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ji=Ji||document.createElement("div"),Ji.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Si(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var di={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},V0=["Webkit","ms","Moz","O"];Object.keys(di).forEach(function(e){V0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),di[t]=di[e]})});function Xp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||di.hasOwnProperty(e)&&di[e]?(""+t).trim():t+"px"}function Qp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var W0=se({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 xl(e,t){if(t){if(W0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Tl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Cl=null;function qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kl=null,_r=null,Er=null;function Vf(e){if(e=Vi(e)){if(typeof kl!="function")throw Error(C(280));var t=e.stateNode;t&&(t=ks(t),kl(e.stateNode,e.type,t))}}function Kp(e){_r?Er?Er.push(e):Er=[e]:_r=e}function Zp(){if(_r){var e=_r,t=Er;if(Er=_r=null,Vf(e),t)for(e=0;e<t.length;e++)Vf(t[e])}}function Yp(e,t){return e(t)}function Jp(){}var Ea=!1;function em(e,t,n){if(Ea)return e(t,n);Ea=!0;try{return Yp(e,t,n)}finally{Ea=!1,(_r!==null||Er!==null)&&(Jp(),Zp())}}function bi(e,t){var n=e.stateNode;if(n===null)return null;var r=ks(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var Ol=!1;if(Vt)try{var Vr={};Object.defineProperty(Vr,"passive",{get:function(){Ol=!0}}),window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{Ol=!1}function q0(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var hi=!1,Go=null,Vo=!1,Nl=null,X0={onError:function(e){hi=!0,Go=e}};function Q0(e,t,n,r,i,o,s,a,l){hi=!1,Go=null,q0.apply(X0,arguments)}function K0(e,t,n,r,i,o,s,a,l){if(Q0.apply(this,arguments),hi){if(hi){var u=Go;hi=!1,Go=null}else throw Error(C(198));Vo||(Vo=!0,Nl=u)}}function Yn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wf(e){if(Yn(e)!==e)throw Error(C(188))}function Z0(e){var t=e.alternate;if(!t){if(t=Yn(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Wf(i),e;if(o===r)return Wf(i),t;o=o.sibling}throw Error(C(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function nm(e){return e=Z0(e),e!==null?rm(e):null}function rm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rm(e);if(t!==null)return t;e=e.sibling}return null}var im=qe.unstable_scheduleCallback,qf=qe.unstable_cancelCallback,Y0=qe.unstable_shouldYield,J0=qe.unstable_requestPaint,ce=qe.unstable_now,e_=qe.unstable_getCurrentPriorityLevel,Xu=qe.unstable_ImmediatePriority,om=qe.unstable_UserBlockingPriority,Wo=qe.unstable_NormalPriority,t_=qe.unstable_LowPriority,sm=qe.unstable_IdlePriority,bs=null,At=null;function n_(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(bs,e,void 0,(e.current.flags&128)===128)}catch{}}var yt=Math.clz32?Math.clz32:o_,r_=Math.log,i_=Math.LN2;function o_(e){return e>>>=0,e===0?32:31-(r_(e)/i_|0)|0}var eo=64,to=4194304;function ai(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ai(a):(o&=s,o!==0&&(r=ai(o)))}else s=n&~i,s!==0?r=ai(s):o!==0&&(r=ai(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yt(t),i=1<<n,r|=e[n],t&=~i;return r}function s_(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 a_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-yt(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=s_(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Rl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function am(){var e=eo;return eo<<=1,!(eo&4194240)&&(eo=64),e}function wa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function l_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-yt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Qu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-yt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var q=0;function lm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var um,Ku,cm,fm,dm,Al=!1,no=[],un=null,cn=null,fn=null,xi=new Map,Ti=new Map,rn=[],u_="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 Xf(e,t){switch(e){case"focusin":case"focusout":un=null;break;case"dragenter":case"dragleave":cn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":xi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ti.delete(t.pointerId)}}function Wr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Vi(t),t!==null&&Ku(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function c_(e,t,n,r,i){switch(t){case"focusin":return un=Wr(un,e,t,n,r,i),!0;case"dragenter":return cn=Wr(cn,e,t,n,r,i),!0;case"mouseover":return fn=Wr(fn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return xi.set(o,Wr(xi.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ti.set(o,Wr(Ti.get(o)||null,e,t,n,r,i)),!0}return!1}function hm(e){var t=Bn(e.target);if(t!==null){var n=Yn(t);if(n!==null){if(t=n.tag,t===13){if(t=tm(n),t!==null){e.blockedOn=t,dm(e.priority,function(){cm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Co(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cl=r,n.target.dispatchEvent(r),Cl=null}else return t=Vi(n),t!==null&&Ku(t),e.blockedOn=n,!1;t.shift()}return!0}function Qf(e,t,n){Co(e)&&n.delete(t)}function f_(){Al=!1,un!==null&&Co(un)&&(un=null),cn!==null&&Co(cn)&&(cn=null),fn!==null&&Co(fn)&&(fn=null),xi.forEach(Qf),Ti.forEach(Qf)}function qr(e,t){e.blockedOn===t&&(e.blockedOn=null,Al||(Al=!0,qe.unstable_scheduleCallback(qe.unstable_NormalPriority,f_)))}function Ci(e){function t(i){return qr(i,e)}if(0<no.length){qr(no[0],e);for(var n=1;n<no.length;n++){var r=no[n];r.blockedOn===e&&(r.blockedOn=null)}}for(un!==null&&qr(un,e),cn!==null&&qr(cn,e),fn!==null&&qr(fn,e),xi.forEach(t),Ti.forEach(t),n=0;n<rn.length;n++)r=rn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<rn.length&&(n=rn[0],n.blockedOn===null);)hm(n),n.blockedOn===null&&rn.shift()}var wr=Kt.ReactCurrentBatchConfig,Xo=!0;function d_(e,t,n,r){var i=q,o=wr.transition;wr.transition=null;try{q=1,Zu(e,t,n,r)}finally{q=i,wr.transition=o}}function h_(e,t,n,r){var i=q,o=wr.transition;wr.transition=null;try{q=4,Zu(e,t,n,r)}finally{q=i,wr.transition=o}}function Zu(e,t,n,r){if(Xo){var i=Pl(e,t,n,r);if(i===null)Aa(e,t,r,Qo,n),Xf(e,r);else if(c_(i,e,t,n,r))r.stopPropagation();else if(Xf(e,r),t&4&&-1<u_.indexOf(e)){for(;i!==null;){var o=Vi(i);if(o!==null&&um(o),o=Pl(e,t,n,r),o===null&&Aa(e,t,r,Qo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Aa(e,t,r,null,n)}}var Qo=null;function Pl(e,t,n,r){if(Qo=null,e=qu(r),e=Bn(e),e!==null)if(t=Yn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qo=e,null}function pm(e){switch(e){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(e_()){case Xu:return 1;case om:return 4;case Wo:case t_:return 16;case sm:return 536870912;default:return 16}default:return 16}}var an=null,Yu=null,ko=null;function mm(){if(ko)return ko;var e,t=Yu,n=t.length,r,i="value"in an?an.value:an.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return ko=i.slice(e,1<r?1-r:void 0)}function Oo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ro(){return!0}function Kf(){return!1}function Ke(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ro:Kf,this.isPropagationStopped=Kf,this}return se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=Ke(jr),Gi=se({},jr,{view:0,detail:0}),p_=Ke(Gi),Sa,ba,Xr,xs=se({},Gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ec,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xr&&(Xr&&e.type==="mousemove"?(Sa=e.screenX-Xr.screenX,ba=e.screenY-Xr.screenY):ba=Sa=0,Xr=e),Sa)},movementY:function(e){return"movementY"in e?e.movementY:ba}}),Zf=Ke(xs),m_=se({},xs,{dataTransfer:0}),g_=Ke(m_),v_=se({},Gi,{relatedTarget:0}),xa=Ke(v_),y_=se({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),__=Ke(y_),E_=se({},jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w_=Ke(E_),S_=se({},jr,{data:0}),Yf=Ke(S_),b_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x_={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"},T_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=T_[e])?!!t[e]:!1}function ec(){return C_}var k_=se({},Gi,{key:function(e){if(e.key){var t=b_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Oo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?x_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ec,charCode:function(e){return e.type==="keypress"?Oo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O_=Ke(k_),N_=se({},xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jf=Ke(N_),R_=se({},Gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ec}),A_=Ke(R_),P_=se({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),I_=Ke(P_),D_=se({},xs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),F_=Ke(D_),M_=[9,13,27,32],tc=Vt&&"CompositionEvent"in window,pi=null;Vt&&"documentMode"in document&&(pi=document.documentMode);var L_=Vt&&"TextEvent"in window&&!pi,gm=Vt&&(!tc||pi&&8<pi&&11>=pi),ed=String.fromCharCode(32),td=!1;function vm(e,t){switch(e){case"keyup":return M_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ym(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lr=!1;function B_(e,t){switch(e){case"compositionend":return ym(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function j_(e,t){if(lr)return e==="compositionend"||!tc&&vm(e,t)?(e=mm(),ko=Yu=an=null,lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gm&&t.locale!=="ko"?null:t.data;default:return null}}var $_={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 nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$_[e.type]:t==="textarea"}function _m(e,t,n,r){Kp(r),t=Ko(t,"onChange"),0<t.length&&(n=new Ju("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var mi=null,ki=null;function U_(e){Rm(e,0)}function Ts(e){var t=fr(e);if(Hp(t))return e}function z_(e,t){if(e==="change")return t}var Em=!1;if(Vt){var Ta;if(Vt){var Ca="oninput"in document;if(!Ca){var rd=document.createElement("div");rd.setAttribute("oninput","return;"),Ca=typeof rd.oninput=="function"}Ta=Ca}else Ta=!1;Em=Ta&&(!document.documentMode||9<document.documentMode)}function id(){mi&&(mi.detachEvent("onpropertychange",wm),ki=mi=null)}function wm(e){if(e.propertyName==="value"&&Ts(ki)){var t=[];_m(t,ki,e,qu(e)),em(U_,t)}}function H_(e,t,n){e==="focusin"?(id(),mi=t,ki=n,mi.attachEvent("onpropertychange",wm)):e==="focusout"&&id()}function G_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(ki)}function V_(e,t){if(e==="click")return Ts(t)}function W_(e,t){if(e==="input"||e==="change")return Ts(t)}function q_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:q_;function Oi(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!pl.call(t,i)||!Et(e[i],t[i]))return!1}return!0}function od(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sd(e,t){var n=od(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=od(n)}}function Sm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bm(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ho(e.document)}return t}function nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function X_(e){var t=bm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sm(n.ownerDocument.documentElement,n)){if(r!==null&&nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=sd(n,o);var s=sd(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Q_=Vt&&"documentMode"in document&&11>=document.documentMode,ur=null,Il=null,gi=null,Dl=!1;function ad(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dl||ur==null||ur!==Ho(r)||(r=ur,"selectionStart"in r&&nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gi&&Oi(gi,r)||(gi=r,r=Ko(Il,"onSelect"),0<r.length&&(t=new Ju("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ur)))}function io(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cr={animationend:io("Animation","AnimationEnd"),animationiteration:io("Animation","AnimationIteration"),animationstart:io("Animation","AnimationStart"),transitionend:io("Transition","TransitionEnd")},ka={},xm={};Vt&&(xm=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);function Cs(e){if(ka[e])return ka[e];if(!cr[e])return e;var t=cr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xm)return ka[e]=t[n];return e}var Tm=Cs("animationend"),Cm=Cs("animationiteration"),km=Cs("animationstart"),Om=Cs("transitionend"),Nm=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 bn(e,t){Nm.set(e,t),Zn(t,[e])}for(var Oa=0;Oa<ld.length;Oa++){var Na=ld[Oa],K_=Na.toLowerCase(),Z_=Na[0].toUpperCase()+Na.slice(1);bn(K_,"on"+Z_)}bn(Tm,"onAnimationEnd");bn(Cm,"onAnimationIteration");bn(km,"onAnimationStart");bn("dblclick","onDoubleClick");bn("focusin","onFocus");bn("focusout","onBlur");bn(Om,"onTransitionEnd");kr("onMouseEnter",["mouseout","mouseover"]);kr("onMouseLeave",["mouseout","mouseover"]);kr("onPointerEnter",["pointerout","pointerover"]);kr("onPointerLeave",["pointerout","pointerover"]);Zn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),Y_=new Set("cancel close invalid load scroll toggle".split(" ").concat(li));function ud(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,K0(r,t,void 0,e),e.currentTarget=null}function Rm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;ud(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;ud(i,a,u),o=l}}}if(Vo)throw e=Nl,Vo=!1,Nl=null,e}function Y(e,t){var n=t[jl];n===void 0&&(n=t[jl]=new Set);var r=e+"__bubble";n.has(r)||(Am(t,e,2,!1),n.add(r))}function Ra(e,t,n){var r=0;t&&(r|=4),Am(n,e,r,t)}var oo="_reactListening"+Math.random().toString(36).slice(2);function Ni(e){if(!e[oo]){e[oo]=!0,Bp.forEach(function(n){n!=="selectionchange"&&(Y_.has(n)||Ra(n,!1,e),Ra(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oo]||(t[oo]=!0,Ra("selectionchange",!1,t))}}function Am(e,t,n,r){switch(pm(t)){case 1:var i=d_;break;case 4:i=h_;break;default:i=Zu}n=i.bind(null,t,n,e),i=void 0,!Ol||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Aa(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Bn(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}em(function(){var u=o,f=qu(n),p=[];e:{var h=Nm.get(e);if(h!==void 0){var c=Ju,g=e;switch(e){case"keypress":if(Oo(n)===0)break e;case"keydown":case"keyup":c=O_;break;case"focusin":g="focus",c=xa;break;case"focusout":g="blur",c=xa;break;case"beforeblur":case"afterblur":c=xa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=g_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=A_;break;case Tm:case Cm:case km:c=__;break;case Om:c=I_;break;case"scroll":c=p_;break;case"wheel":c=F_;break;case"copy":case"cut":case"paste":c=w_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Jf}var m=(t&4)!==0,E=!m&&e==="scroll",v=m?h!==null?h+"Capture":null:h;m=[];for(var d=u,y;d!==null;){y=d;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,v!==null&&(w=bi(d,v),w!=null&&m.push(Ri(d,w,y)))),E)break;d=d.return}0<m.length&&(h=new c(h,g,null,n,f),p.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",h&&n!==Cl&&(g=n.relatedTarget||n.fromElement)&&(Bn(g)||g[Wt]))break e;if((c||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,c?(g=n.relatedTarget||n.toElement,c=u,g=g?Bn(g):null,g!==null&&(E=Yn(g),g!==E||g.tag!==5&&g.tag!==6)&&(g=null)):(c=null,g=u),c!==g)){if(m=Zf,w="onMouseLeave",v="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(m=Jf,w="onPointerLeave",v="onPointerEnter",d="pointer"),E=c==null?h:fr(c),y=g==null?h:fr(g),h=new m(w,d+"leave",c,n,f),h.target=E,h.relatedTarget=y,w=null,Bn(f)===u&&(m=new m(v,d+"enter",g,n,f),m.target=y,m.relatedTarget=E,w=m),E=w,c&&g)t:{for(m=c,v=g,d=0,y=m;y;y=tr(y))d++;for(y=0,w=v;w;w=tr(w))y++;for(;0<d-y;)m=tr(m),d--;for(;0<y-d;)v=tr(v),y--;for(;d--;){if(m===v||v!==null&&m===v.alternate)break t;m=tr(m),v=tr(v)}m=null}else m=null;c!==null&&cd(p,h,c,m,!1),g!==null&&E!==null&&cd(p,E,g,m,!0)}}e:{if(h=u?fr(u):window,c=h.nodeName&&h.nodeName.toLowerCase(),c==="select"||c==="input"&&h.type==="file")var S=z_;else if(nd(h))if(Em)S=W_;else{S=G_;var b=H_}else(c=h.nodeName)&&c.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=V_);if(S&&(S=S(e,u))){_m(p,S,n,f);break e}b&&b(e,h,u),e==="focusout"&&(b=h._wrapperState)&&b.controlled&&h.type==="number"&&wl(h,"number",h.value)}switch(b=u?fr(u):window,e){case"focusin":(nd(b)||b.contentEditable==="true")&&(ur=b,Il=u,gi=null);break;case"focusout":gi=Il=ur=null;break;case"mousedown":Dl=!0;break;case"contextmenu":case"mouseup":case"dragend":Dl=!1,ad(p,n,f);break;case"selectionchange":if(Q_)break;case"keydown":case"keyup":ad(p,n,f)}var x;if(tc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else lr?vm(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(gm&&n.locale!=="ko"&&(lr||T!=="onCompositionStart"?T==="onCompositionEnd"&&lr&&(x=mm()):(an=f,Yu="value"in an?an.value:an.textContent,lr=!0)),b=Ko(u,T),0<b.length&&(T=new Yf(T,e,null,n,f),p.push({event:T,listeners:b}),x?T.data=x:(x=ym(n),x!==null&&(T.data=x)))),(x=L_?B_(e,n):j_(e,n))&&(u=Ko(u,"onBeforeInput"),0<u.length&&(f=new Yf("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=x))}Rm(p,t)})}function Ri(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ko(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=bi(e,n),o!=null&&r.unshift(Ri(e,o,i)),o=bi(e,t),o!=null&&r.push(Ri(e,o,i))),e=e.return}return r}function tr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cd(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=bi(n,o),l!=null&&s.unshift(Ri(n,l,a))):i||(l=bi(n,o),l!=null&&s.push(Ri(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var J_=/\r\n?/g,e1=/\u0000|\uFFFD/g;function fd(e){return(typeof e=="string"?e:""+e).replace(J_,`
38
- `).replace(e1,"")}function so(e,t,n){if(t=fd(t),fd(e)!==t&&n)throw Error(C(425))}function Zo(){}var Fl=null,Ml=null;function Ll(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bl=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,dd=typeof Promise=="function"?Promise:void 0,n1=typeof queueMicrotask=="function"?queueMicrotask:typeof dd<"u"?function(e){return dd.resolve(null).then(e).catch(r1)}:Bl;function r1(e){setTimeout(function(){throw e})}function Pa(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ci(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ci(t)}function dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function hd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $r=Math.random().toString(36).slice(2),Rt="__reactFiber$"+$r,Ai="__reactProps$"+$r,Wt="__reactContainer$"+$r,jl="__reactEvents$"+$r,i1="__reactListeners$"+$r,o1="__reactHandles$"+$r;function Bn(e){var t=e[Rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wt]||n[Rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hd(e);e!==null;){if(n=e[Rt])return n;e=hd(e)}return t}e=n,n=e.parentNode}return null}function Vi(e){return e=e[Rt]||e[Wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function ks(e){return e[Ai]||null}var $l=[],dr=-1;function xn(e){return{current:e}}function ee(e){0>dr||(e.current=$l[dr],$l[dr]=null,dr--)}function K(e,t){dr++,$l[dr]=e.current,e.current=t}var wn={},Ne=xn(wn),je=xn(!1),Gn=wn;function Or(e,t){var n=e.type.contextTypes;if(!n)return wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return e=e.childContextTypes,e!=null}function Yo(){ee(je),ee(Ne)}function pd(e,t,n){if(Ne.current!==wn)throw Error(C(168));K(Ne,t),K(je,n)}function Pm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(C(108,H0(e)||"Unknown",i));return se({},n,r)}function Jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wn,Gn=Ne.current,K(Ne,e),K(je,je.current),!0}function md(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Pm(e,t,Gn),r.__reactInternalMemoizedMergedChildContext=e,ee(je),ee(Ne),K(Ne,e)):ee(je),K(je,n)}var jt=null,Os=!1,Ia=!1;function Im(e){jt===null?jt=[e]:jt.push(e)}function s1(e){Os=!0,Im(e)}function Tn(){if(!Ia&&jt!==null){Ia=!0;var e=0,t=q;try{var n=jt;for(q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jt=null,Os=!1}catch(i){throw jt!==null&&(jt=jt.slice(e+1)),im(Xu,Tn),i}finally{q=t,Ia=!1}}return null}var hr=[],pr=0,es=null,ts=0,Ye=[],Je=0,Vn=null,Ut=1,zt="";function In(e,t){hr[pr++]=ts,hr[pr++]=es,es=e,ts=t}function Dm(e,t,n){Ye[Je++]=Ut,Ye[Je++]=zt,Ye[Je++]=Vn,Vn=e;var r=Ut;e=zt;var i=32-yt(r)-1;r&=~(1<<i),n+=1;var o=32-yt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ut=1<<32-yt(t)+i|n<<i|r,zt=o+e}else Ut=1<<o|n<<i|r,zt=e}function rc(e){e.return!==null&&(In(e,1),Dm(e,1,0))}function ic(e){for(;e===es;)es=hr[--pr],hr[pr]=null,ts=hr[--pr],hr[pr]=null;for(;e===Vn;)Vn=Ye[--Je],Ye[Je]=null,zt=Ye[--Je],Ye[Je]=null,Ut=Ye[--Je],Ye[Je]=null}var We=null,Ve=null,re=!1,gt=null;function Fm(e,t){var n=nt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function gd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,We=e,Ve=dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,We=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vn!==null?{id:Ut,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,We=e,Ve=null,!0):!1;default:return!1}}function Ul(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zl(e){if(re){var t=Ve;if(t){var n=t;if(!gd(e,t)){if(Ul(e))throw Error(C(418));t=dn(n.nextSibling);var r=We;t&&gd(e,t)?Fm(r,n):(e.flags=e.flags&-4097|2,re=!1,We=e)}}else{if(Ul(e))throw Error(C(418));e.flags=e.flags&-4097|2,re=!1,We=e}}}function vd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;We=e}function ao(e){if(e!==We)return!1;if(!re)return vd(e),re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ll(e.type,e.memoizedProps)),t&&(t=Ve)){if(Ul(e))throw Mm(),Error(C(418));for(;t;)Fm(e,t),t=dn(t.nextSibling)}if(vd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ve=dn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ve=null}}else Ve=We?dn(e.stateNode.nextSibling):null;return!0}function Mm(){for(var e=Ve;e;)e=dn(e.nextSibling)}function Nr(){Ve=We=null,re=!1}function oc(e){gt===null?gt=[e]:gt.push(e)}var a1=Kt.ReactCurrentBatchConfig;function ht(e,t){if(e&&e.defaultProps){t=se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ns=xn(null),rs=null,mr=null,sc=null;function ac(){sc=mr=rs=null}function lc(e){var t=ns.current;ee(ns),e._currentValue=t}function Hl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sr(e,t){rs=e,sc=mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(sc!==e)if(e={context:e,memoizedValue:t,next:null},mr===null){if(rs===null)throw Error(C(308));mr=e,rs.dependencies={lanes:0,firstContext:e}}else mr=mr.next=e;return t}var jn=null;function uc(e){jn===null?jn=[e]:jn.push(e)}function Lm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uc(t)):(n.next=i.next,i.next=n),t.interleaved=n,qt(e,r)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var nn=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,qt(e,n)}return i=r.interleaved,i===null?(t.next=t,uc(r)):(t.next=i.next,i.next=t),r.interleaved=t,qt(e,n)}function No(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qu(e,n)}}function yd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function is(e,t,n,r){var i=e.updateQueue;nn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=l))}if(o!==null){var p=i.baseState;s=0,f=u=l=null,a=o;do{var h=a.lane,c=a.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:c,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,m=a;switch(h=t,c=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){p=g.call(c,p,h);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,h=typeof g=="function"?g.call(c,p,h):g,h==null)break e;p=se({},p,h);break e;case 2:nn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else c={eventTime:c,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=c,l=p):f=f.next=c,s|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(f===null&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);qn|=s,e.lanes=s,e.memoizedState=p}}function _d(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(C(191,i));i.call(r)}}}var jm=new Lp.Component().refs;function Gl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ns={isMounted:function(e){return(e=e._reactInternals)?Yn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=mn(e),o=Gt(r,i);o.payload=t,n!=null&&(o.callback=n),t=hn(e,o,i),t!==null&&(_t(t,e,i,r),No(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=mn(e),o=Gt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=hn(e,o,i),t!==null&&(_t(t,e,i,r),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=mn(e),i=Gt(n,r);i.tag=2,t!=null&&(i.callback=t),t=hn(e,i,r),t!==null&&(_t(t,e,r,n),No(t,e,r))}};function Ed(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Oi(n,r)||!Oi(i,o):!0}function $m(e,t,n){var r=!1,i=wn,o=t.contextType;return typeof o=="object"&&o!==null?o=it(o):(i=$e(t)?Gn:Ne.current,r=t.contextTypes,o=(r=r!=null)?Or(e,i):wn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ns,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ns.enqueueReplaceState(t,t.state,null)}function Vl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=jm,cc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=it(o):(o=$e(t)?Gn:Ne.current,i.context=Or(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Gl(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ns.enqueueReplaceState(i,i.state,null),is(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Qr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===jm&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function lo(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Sd(e){var t=e._init;return t(e._payload)}function Um(e){function t(v,d){if(e){var y=v.deletions;y===null?(v.deletions=[d],v.flags|=16):y.push(d)}}function n(v,d){if(!e)return null;for(;d!==null;)t(v,d),d=d.sibling;return null}function r(v,d){for(v=new Map;d!==null;)d.key!==null?v.set(d.key,d):v.set(d.index,d),d=d.sibling;return v}function i(v,d){return v=gn(v,d),v.index=0,v.sibling=null,v}function o(v,d,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<d?(v.flags|=2,d):y):(v.flags|=2,d)):(v.flags|=1048576,d)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,d,y,w){return d===null||d.tag!==6?(d=$a(y,v.mode,w),d.return=v,d):(d=i(d,y),d.return=v,d)}function l(v,d,y,w){var S=y.type;return S===ar?f(v,d,y.props.children,w,y.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===tn&&Sd(S)===d.type)?(w=i(d,y.props),w.ref=Qr(v,d,y),w.return=v,w):(w=Fo(y.type,y.key,y.props,null,v.mode,w),w.ref=Qr(v,d,y),w.return=v,w)}function u(v,d,y,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=Ua(y,v.mode,w),d.return=v,d):(d=i(d,y.children||[]),d.return=v,d)}function f(v,d,y,w,S){return d===null||d.tag!==7?(d=zn(y,v.mode,w,S),d.return=v,d):(d=i(d,y),d.return=v,d)}function p(v,d,y){if(typeof d=="string"&&d!==""||typeof d=="number")return d=$a(""+d,v.mode,y),d.return=v,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Zi:return y=Fo(d.type,d.key,d.props,null,v.mode,y),y.ref=Qr(v,null,d),y.return=v,y;case sr:return d=Ua(d,v.mode,y),d.return=v,d;case tn:var w=d._init;return p(v,w(d._payload),y)}if(si(d)||Gr(d))return d=zn(d,v.mode,y,null),d.return=v,d;lo(v,d)}return null}function h(v,d,y,w){var S=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:a(v,d,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Zi:return y.key===S?l(v,d,y,w):null;case sr:return y.key===S?u(v,d,y,w):null;case tn:return S=y._init,h(v,d,S(y._payload),w)}if(si(y)||Gr(y))return S!==null?null:f(v,d,y,w,null);lo(v,y)}return null}function c(v,d,y,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return v=v.get(y)||null,a(d,v,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Zi:return v=v.get(w.key===null?y:w.key)||null,l(d,v,w,S);case sr:return v=v.get(w.key===null?y:w.key)||null,u(d,v,w,S);case tn:var b=w._init;return c(v,d,y,b(w._payload),S)}if(si(w)||Gr(w))return v=v.get(y)||null,f(d,v,w,S,null);lo(d,w)}return null}function g(v,d,y,w){for(var S=null,b=null,x=d,T=d=0,I=null;x!==null&&T<y.length;T++){x.index>T?(I=x,x=null):I=x.sibling;var R=h(v,x,y[T],w);if(R===null){x===null&&(x=I);break}e&&x&&R.alternate===null&&t(v,x),d=o(R,d,T),b===null?S=R:b.sibling=R,b=R,x=I}if(T===y.length)return n(v,x),re&&In(v,T),S;if(x===null){for(;T<y.length;T++)x=p(v,y[T],w),x!==null&&(d=o(x,d,T),b===null?S=x:b.sibling=x,b=x);return re&&In(v,T),S}for(x=r(v,x);T<y.length;T++)I=c(x,v,T,y[T],w),I!==null&&(e&&I.alternate!==null&&x.delete(I.key===null?T:I.key),d=o(I,d,T),b===null?S=I:b.sibling=I,b=I);return e&&x.forEach(function(W){return t(v,W)}),re&&In(v,T),S}function m(v,d,y,w){var S=Gr(y);if(typeof S!="function")throw Error(C(150));if(y=S.call(y),y==null)throw Error(C(151));for(var b=S=null,x=d,T=d=0,I=null,R=y.next();x!==null&&!R.done;T++,R=y.next()){x.index>T?(I=x,x=null):I=x.sibling;var W=h(v,x,R.value,w);if(W===null){x===null&&(x=I);break}e&&x&&W.alternate===null&&t(v,x),d=o(W,d,T),b===null?S=W:b.sibling=W,b=W,x=I}if(R.done)return n(v,x),re&&In(v,T),S;if(x===null){for(;!R.done;T++,R=y.next())R=p(v,R.value,w),R!==null&&(d=o(R,d,T),b===null?S=R:b.sibling=R,b=R);return re&&In(v,T),S}for(x=r(v,x);!R.done;T++,R=y.next())R=c(x,v,T,R.value,w),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?T:R.key),d=o(R,d,T),b===null?S=R:b.sibling=R,b=R);return e&&x.forEach(function(pe){return t(v,pe)}),re&&In(v,T),S}function E(v,d,y,w){if(typeof y=="object"&&y!==null&&y.type===ar&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Zi:e:{for(var S=y.key,b=d;b!==null;){if(b.key===S){if(S=y.type,S===ar){if(b.tag===7){n(v,b.sibling),d=i(b,y.props.children),d.return=v,v=d;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===tn&&Sd(S)===b.type){n(v,b.sibling),d=i(b,y.props),d.ref=Qr(v,b,y),d.return=v,v=d;break e}n(v,b);break}else t(v,b);b=b.sibling}y.type===ar?(d=zn(y.props.children,v.mode,w,y.key),d.return=v,v=d):(w=Fo(y.type,y.key,y.props,null,v.mode,w),w.ref=Qr(v,d,y),w.return=v,v=w)}return s(v);case sr:e:{for(b=y.key;d!==null;){if(d.key===b)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(v,d.sibling),d=i(d,y.children||[]),d.return=v,v=d;break e}else{n(v,d);break}else t(v,d);d=d.sibling}d=Ua(y,v.mode,w),d.return=v,v=d}return s(v);case tn:return b=y._init,E(v,d,b(y._payload),w)}if(si(y))return g(v,d,y,w);if(Gr(y))return m(v,d,y,w);lo(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(v,d.sibling),d=i(d,y),d.return=v,v=d):(n(v,d),d=$a(y,v.mode,w),d.return=v,v=d),s(v)):n(v,d)}return E}var Rr=Um(!0),zm=Um(!1),Wi={},Pt=xn(Wi),Pi=xn(Wi),Ii=xn(Wi);function $n(e){if(e===Wi)throw Error(C(174));return e}function fc(e,t){switch(K(Ii,t),K(Pi,e),K(Pt,Wi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bl(t,e)}ee(Pt),K(Pt,t)}function Ar(){ee(Pt),ee(Pi),ee(Ii)}function Hm(e){$n(Ii.current);var t=$n(Pt.current),n=bl(t,e.type);t!==n&&(K(Pi,e),K(Pt,n))}function dc(e){Pi.current===e&&(ee(Pt),ee(Pi))}var ie=xn(0);function os(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=[];function hc(){for(var e=0;e<Da.length;e++)Da[e]._workInProgressVersionPrimary=null;Da.length=0}var Ro=Kt.ReactCurrentDispatcher,Fa=Kt.ReactCurrentBatchConfig,Wn=0,oe=null,me=null,ve=null,ss=!1,vi=!1,Di=0,l1=0;function Te(){throw Error(C(321))}function pc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function mc(e,t,n,r,i,o){if(Wn=o,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ro.current=e===null||e.memoizedState===null?d1:h1,e=n(r,i),vi){o=0;do{if(vi=!1,Di=0,25<=o)throw Error(C(301));o+=1,ve=me=null,t.updateQueue=null,Ro.current=p1,e=n(r,i)}while(vi)}if(Ro.current=as,t=me!==null&&me.next!==null,Wn=0,ve=me=oe=null,ss=!1,t)throw Error(C(300));return e}function gc(){var e=Di!==0;return Di=0,e}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?oe.memoizedState=ve=e:ve=ve.next=e,ve}function ot(){if(me===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=me.next;var t=ve===null?oe.memoizedState:ve.next;if(t!==null)ve=t,me=e;else{if(e===null)throw Error(C(310));me=e,e={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},ve===null?oe.memoizedState=ve=e:ve=ve.next=e}return ve}function Fi(e,t){return typeof t=="function"?t(e):t}function Ma(e){var t=ot(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=me,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var f=u.lane;if((Wn&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,s=r):l=l.next=p,oe.lanes|=f,qn|=f}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Et(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,oe.lanes|=o,qn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function La(e){var t=ot(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Et(o,t.memoizedState)||(Be=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Gm(){}function Vm(e,t){var n=oe,r=ot(),i=t(),o=!Et(r.memoizedState,i);if(o&&(r.memoizedState=i,Be=!0),r=r.queue,vc(Xm.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,Mi(9,qm.bind(null,n,r,i,t),void 0,null),ye===null)throw Error(C(349));Wn&30||Wm(n,t,i)}return i}function Wm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qm(e,t,n,r){t.value=n,t.getSnapshot=r,Qm(t)&&Km(e)}function Xm(e,t,n){return n(function(){Qm(t)&&Km(e)})}function Qm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Km(e){var t=qt(e,1);t!==null&&_t(t,e,1,-1)}function bd(e){var t=Ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:e},t.queue=e,e=e.dispatch=f1.bind(null,oe,e),[t.memoizedState,e]}function Mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Zm(){return ot().memoizedState}function Ao(e,t,n,r){var i=Ct();oe.flags|=e,i.memoizedState=Mi(1|t,n,void 0,r===void 0?null:r)}function Rs(e,t,n,r){var i=ot();r=r===void 0?null:r;var o=void 0;if(me!==null){var s=me.memoizedState;if(o=s.destroy,r!==null&&pc(r,s.deps)){i.memoizedState=Mi(t,n,o,r);return}}oe.flags|=e,i.memoizedState=Mi(1|t,n,o,r)}function xd(e,t){return Ao(8390656,8,e,t)}function vc(e,t){return Rs(2048,8,e,t)}function Ym(e,t){return Rs(4,2,e,t)}function Jm(e,t){return Rs(4,4,e,t)}function eg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tg(e,t,n){return n=n!=null?n.concat([e]):null,Rs(4,4,eg.bind(null,t,e),n)}function yc(){}function ng(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rg(e,t){var n=ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ig(e,t,n){return Wn&21?(Et(n,t)||(n=am(),oe.lanes|=n,qn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function u1(e,t){var n=q;q=n!==0&&4>n?n:4,e(!0);var r=Fa.transition;Fa.transition={};try{e(!1),t()}finally{q=n,Fa.transition=r}}function og(){return ot().memoizedState}function c1(e,t,n){var r=mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sg(e))ag(t,n);else if(n=Lm(e,t,n,r),n!==null){var i=Pe();_t(n,e,r,i),lg(n,t,r)}}function f1(e,t,n){var r=mn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sg(e))ag(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Et(a,s)){var l=t.interleaved;l===null?(i.next=i,uc(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Lm(e,t,i,r),n!==null&&(i=Pe(),_t(n,e,r,i),lg(n,t,r))}}function sg(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function ag(e,t){vi=ss=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qu(e,n)}}var as={readContext:it,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},d1={readContext:it,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:xd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ao(4194308,4,eg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ao(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ao(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=c1.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:bd,useDebugValue:yc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=bd(!1),t=e[0];return e=u1.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=Ct();if(re){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ye===null)throw Error(C(349));Wn&30||Wm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,xd(Xm.bind(null,r,o,e),[e]),r.flags|=2048,Mi(9,qm.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ct(),t=ye.identifierPrefix;if(re){var n=zt,r=Ut;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=l1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},h1={readContext:it,useCallback:ng,useContext:it,useEffect:vc,useImperativeHandle:tg,useInsertionEffect:Ym,useLayoutEffect:Jm,useMemo:rg,useReducer:Ma,useRef:Zm,useState:function(){return Ma(Fi)},useDebugValue:yc,useDeferredValue:function(e){var t=ot();return ig(t,me.memoizedState,e)},useTransition:function(){var e=Ma(Fi)[0],t=ot().memoizedState;return[e,t]},useMutableSource:Gm,useSyncExternalStore:Vm,useId:og,unstable_isNewReconciler:!1},p1={readContext:it,useCallback:ng,useContext:it,useEffect:vc,useImperativeHandle:tg,useInsertionEffect:Ym,useLayoutEffect:Jm,useMemo:rg,useReducer:La,useRef:Zm,useState:function(){return La(Fi)},useDebugValue:yc,useDeferredValue:function(e){var t=ot();return me===null?t.memoizedState=e:ig(t,me.memoizedState,e)},useTransition:function(){var e=La(Fi)[0],t=ot().memoizedState;return[e,t]},useMutableSource:Gm,useSyncExternalStore:Vm,useId:og,unstable_isNewReconciler:!1};function Pr(e,t){try{var n="",r=t;do n+=z0(r),r=r.return;while(r);var i=n}catch(o){i=`
39
- Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ba(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var m1=typeof WeakMap=="function"?WeakMap:Map;function ug(e,t,n){n=Gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){us||(us=!0,nu=r),Wl(e,t)},n}function cg(e,t,n){n=Gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Wl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Wl(e,t),typeof r!="function"&&(pn===null?pn=new Set([this]):pn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Td(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new m1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=N1.bind(null,e,t,n),t.then(e,e))}function Cd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function kd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gt(-1,1),t.tag=2,hn(n,t,1))),n.lanes|=1),e)}var g1=Kt.ReactCurrentOwner,Be=!1;function Ae(e,t,n,r){t.child=e===null?zm(t,null,n,r):Rr(t,e.child,n,r)}function Od(e,t,n,r,i){n=n.render;var o=t.ref;return Sr(t,i),r=mc(e,t,n,r,o,i),n=gc(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(re&&n&&rc(t),t.flags|=1,Ae(e,t,r,i),t.child)}function Nd(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Cc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,fg(e,t,o,r,i)):(e=Fo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Oi,n(s,r)&&e.ref===t.ref)return Xt(e,t,i)}return t.flags|=1,e=gn(o,r),e.ref=t.ref,e.return=t,t.child=e}function fg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Oi(o,r)&&e.ref===t.ref)if(Be=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,Xt(e,t,i)}return ql(e,t,n,r,i)}function dg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(vr,Ge),Ge|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(vr,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,K(vr,Ge),Ge|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,K(vr,Ge),Ge|=r;return Ae(e,t,i,n),t.child}function hg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ql(e,t,n,r,i){var o=$e(n)?Gn:Ne.current;return o=Or(t,o),Sr(t,i),n=mc(e,t,n,r,o,i),r=gc(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(re&&r&&rc(t),t.flags|=1,Ae(e,t,n,i),t.child)}function Rd(e,t,n,r,i){if($e(n)){var o=!0;Jo(t)}else o=!1;if(Sr(t,i),t.stateNode===null)Po(e,t),$m(t,n,r),Vl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=it(u):(u=$e(n)?Gn:Ne.current,u=Or(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&wd(t,s,r,u),nn=!1;var h=t.memoizedState;s.state=h,is(t,r,s,i),l=t.memoizedState,a!==r||h!==l||je.current||nn?(typeof f=="function"&&(Gl(t,n,f,r),l=t.memoizedState),(a=nn||Ed(t,n,a,r,h,l,u))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Bm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:ht(t.type,a),s.props=u,p=t.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=it(l):(l=$e(n)?Gn:Ne.current,l=Or(t,l));var c=n.getDerivedStateFromProps;(f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||h!==l)&&wd(t,s,r,l),nn=!1,h=t.memoizedState,s.state=h,is(t,r,s,i);var g=t.memoizedState;a!==p||h!==g||je.current||nn?(typeof c=="function"&&(Gl(t,n,c,r),g=t.memoizedState),(u=nn||Ed(t,n,u,r,h,g,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Xl(e,t,n,r,o,i)}function Xl(e,t,n,r,i,o){hg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&md(t,n,!1),Xt(e,t,o);r=t.stateNode,g1.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Rr(t,e.child,null,o),t.child=Rr(t,null,a,o)):Ae(e,t,a,o),t.memoizedState=r.state,i&&md(t,n,!0),t.child}function pg(e){var t=e.stateNode;t.pendingContext?pd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pd(e,t.context,!1),fc(e,t.containerInfo)}function Ad(e,t,n,r,i){return Nr(),oc(i),t.flags|=256,Ae(e,t,n,r),t.child}var Ql={dehydrated:null,treeContext:null,retryLane:0};function Kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function mg(e,t,n){var r=t.pendingProps,i=ie.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(ie,i&1),e===null)return zl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Is(s,r,0,null),e=zn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Kl(n),t.memoizedState=Ql,e):_c(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return v1(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=gn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=gn(a,o):(o=zn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Kl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Ql,r}return o=e.child,e=o.sibling,r=gn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function _c(e,t){return t=Is({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function uo(e,t,n,r){return r!==null&&oc(r),Rr(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function v1(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Ba(Error(C(422))),uo(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Is({mode:"visible",children:r.children},i,0,null),o=zn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Rr(t,e.child,null,s),t.child.memoizedState=Kl(s),t.memoizedState=Ql,o);if(!(t.mode&1))return uo(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(C(419)),r=Ba(o,r,void 0),uo(e,t,s,r)}if(a=(s&e.childLanes)!==0,Be||a){if(r=ye,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,qt(e,i),_t(r,e,i,-1))}return Tc(),r=Ba(Error(C(421))),uo(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=R1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ve=dn(i.nextSibling),We=t,re=!0,gt=null,e!==null&&(Ye[Je++]=Ut,Ye[Je++]=zt,Ye[Je++]=Vn,Ut=e.id,zt=e.overflow,Vn=t),t=_c(t,r.children),t.flags|=4096,t)}function Pd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hl(e.return,t,n)}function ja(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function gg(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ae(e,t,r.children,n),r=ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pd(e,n,t);else if(e.tag===19)Pd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(ie,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&os(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ja(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&os(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ja(t,!0,n,null,o);break;case"together":ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Po(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=gn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function y1(e,t,n){switch(t.tag){case 3:pg(t),Nr();break;case 5:Hm(t);break;case 1:$e(t.type)&&Jo(t);break;case 4:fc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(ns,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(ie,ie.current&1),t.flags|=128,null):n&t.child.childLanes?mg(e,t,n):(K(ie,ie.current&1),e=Xt(e,t,n),e!==null?e.sibling:null);K(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return gg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(ie,ie.current),r)break;return null;case 22:case 23:return t.lanes=0,dg(e,t,n)}return Xt(e,t,n)}var vg,Zl,yg,_g;vg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&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;n=n.return}n.sibling.return=n.return,n=n.sibling}};Zl=function(){};yg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$n(Pt.current);var o=null;switch(n){case"input":i=_l(e,i),r=_l(e,r),o=[];break;case"select":i=se({},i,{value:void 0}),r=se({},r,{value:void 0}),o=[];break;case"textarea":i=Sl(e,i),r=Sl(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zo)}xl(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(wi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(wi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Y("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};_g=function(e,t,n,r){n!==r&&(t.flags|=4)};function Kr(e,t){if(!re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _1(e,t,n){var r=t.pendingProps;switch(ic(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return $e(t.type)&&Yo(),Ce(t),null;case 3:return r=t.stateNode,Ar(),ee(je),ee(Ne),hc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ao(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gt!==null&&(ou(gt),gt=null))),Zl(e,t),Ce(t),null;case 5:dc(t);var i=$n(Ii.current);if(n=t.type,e!==null&&t.stateNode!=null)yg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return Ce(t),null}if(e=$n(Pt.current),ao(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Rt]=t,r[Ai]=o,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(i=0;i<li.length;i++)Y(li[i],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":Uf(r,o),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Y("invalid",r);break;case"textarea":Hf(r,o),Y("invalid",r)}xl(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&so(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&so(r.textContent,a,e),i=["children",""+a]):wi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Y("scroll",r)}switch(n){case"input":Yi(r),zf(r,o,!0);break;case"textarea":Yi(r),Gf(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Zo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Rt]=t,e[Ai]=r,vg(e,t,!1,!1),t.stateNode=e;e:{switch(s=Tl(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;i<li.length;i++)Y(li[i],e);i=r;break;case"source":Y("error",e),i=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),i=r;break;case"details":Y("toggle",e),i=r;break;case"input":Uf(e,r),i=_l(e,r),Y("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=se({},r,{value:void 0}),Y("invalid",e);break;case"textarea":Hf(e,r),i=Sl(e,r),Y("invalid",e);break;default:i=r}xl(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Qp(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qp(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Si(e,l):typeof l=="number"&&Si(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(wi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Y("scroll",e):l!=null&&Hu(e,o,l,s))}switch(n){case"input":Yi(e),zf(e,r,!1);break;case"textarea":Yi(e),Gf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+En(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?yr(e,!!r.multiple,o,!1):r.defaultValue!=null&&yr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Zo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ce(t),null;case 6:if(e&&t.stateNode!=null)_g(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=$n(Ii.current),$n(Pt.current),ao(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rt]=t,(o=r.nodeValue!==n)&&(e=We,e!==null))switch(e.tag){case 3:so(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&so(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rt]=t,t.stateNode=r}return Ce(t),null;case 13:if(ee(ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&Ve!==null&&t.mode&1&&!(t.flags&128))Mm(),Nr(),t.flags|=98560,o=!1;else if(o=ao(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(C(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(C(317));o[Rt]=t}else Nr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ce(t),o=!1}else gt!==null&&(ou(gt),gt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ie.current&1?ge===0&&(ge=3):Tc())),t.updateQueue!==null&&(t.flags|=4),Ce(t),null);case 4:return Ar(),Zl(e,t),e===null&&Ni(t.stateNode.containerInfo),Ce(t),null;case 10:return lc(t.type._context),Ce(t),null;case 17:return $e(t.type)&&Yo(),Ce(t),null;case 19:if(ee(ie),o=t.memoizedState,o===null)return Ce(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Kr(o,!1);else{if(ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=os(e),s!==null){for(t.flags|=128,Kr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(ie,ie.current&1|2),t.child}e=e.sibling}o.tail!==null&&ce()>Ir&&(t.flags|=128,r=!0,Kr(o,!1),t.lanes=4194304)}else{if(!r)if(e=os(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!re)return Ce(t),null}else 2*ce()-o.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,r=!0,Kr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ce(),t.sibling=null,n=ie.current,K(ie,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function E1(e,t){switch(ic(t),t.tag){case 1:return $e(t.type)&&Yo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(),ee(je),ee(Ne),hc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dc(t),null;case 13:if(ee(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(ie),null;case 4:return Ar(),null;case 10:return lc(t.type._context),null;case 22:case 23:return xc(),null;case 24:return null;default:return null}}var co=!1,Oe=!1,w1=typeof WeakSet=="function"?WeakSet:Set,N=null;function gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function Yl(e,t,n){try{n()}catch(r){ue(e,t,r)}}var Id=!1;function S1(e,t){if(Fl=Xo,e=bm(),nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,f=0,p=e,h=null;t:for(;;){for(var c;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==o||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(c=p.firstChild)!==null;)h=p,p=c;for(;;){if(p===e)break t;if(h===n&&++u===i&&(a=s),h===o&&++f===r&&(l=s),(c=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=c}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ml={focusedElem:e,selectionRange:n},Xo=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,E=g.memoizedState,v=t.stateNode,d=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ht(t.type,m),E);v.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return g=Id,Id=!1,g}function yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Yl(t,n,o)}i=i.next}while(i!==r)}}function As(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Jl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Eg(e){var t=e.alternate;t!==null&&(e.alternate=null,Eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Ai],delete t[jl],delete t[i1],delete t[o1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wg(e){return e.tag===5||e.tag===3||e.tag===4}function Dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zo));else if(r!==4&&(e=e.child,e!==null))for(eu(e,t,n),e=e.sibling;e!==null;)eu(e,t,n),e=e.sibling}function tu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(tu(e,t,n),e=e.sibling;e!==null;)tu(e,t,n),e=e.sibling}var Se=null,pt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)Sg(e,t,n),n=n.sibling}function Sg(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(bs,n)}catch{}switch(n.tag){case 5:Oe||gr(n,t);case 6:var r=Se,i=pt;Se=null,Yt(e,t,n),Se=r,pt=i,Se!==null&&(pt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(pt?(e=Se,n=n.stateNode,e.nodeType===8?Pa(e.parentNode,n):e.nodeType===1&&Pa(e,n),Ci(e)):Pa(Se,n.stateNode));break;case 4:r=Se,i=pt,Se=n.stateNode.containerInfo,pt=!0,Yt(e,t,n),Se=r,pt=i;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Yl(n,t,s),i=i.next}while(i!==r)}Yt(e,t,n);break;case 1:if(!Oe&&(gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,Yt(e,t,n),Oe=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function Fd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new w1),t.forEach(function(r){var i=A1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,pt=!1;break e;case 3:Se=a.stateNode.containerInfo,pt=!0;break e;case 4:Se=a.stateNode.containerInfo,pt=!0;break e}a=a.return}if(Se===null)throw Error(C(160));Sg(o,s,i),Se=null,pt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ue(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bg(t,e),t=t.sibling}function bg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ft(t,e),Tt(e),r&4){try{yi(3,e,e.return),As(3,e)}catch(m){ue(e,e.return,m)}try{yi(5,e,e.return)}catch(m){ue(e,e.return,m)}}break;case 1:ft(t,e),Tt(e),r&512&&n!==null&&gr(n,n.return);break;case 5:if(ft(t,e),Tt(e),r&512&&n!==null&&gr(n,n.return),e.flags&32){var i=e.stateNode;try{Si(i,"")}catch(m){ue(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Gp(i,o),Tl(a,s);var u=Tl(a,o);for(s=0;s<l.length;s+=2){var f=l[s],p=l[s+1];f==="style"?Qp(i,p):f==="dangerouslySetInnerHTML"?qp(i,p):f==="children"?Si(i,p):Hu(i,f,p,u)}switch(a){case"input":El(i,o);break;case"textarea":Vp(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var c=o.value;c!=null?yr(i,!!o.multiple,c,!1):h!==!!o.multiple&&(o.defaultValue!=null?yr(i,!!o.multiple,o.defaultValue,!0):yr(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ai]=o}catch(m){ue(e,e.return,m)}}break;case 6:if(ft(t,e),Tt(e),r&4){if(e.stateNode===null)throw Error(C(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){ue(e,e.return,m)}}break;case 3:if(ft(t,e),Tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ci(t.containerInfo)}catch(m){ue(e,e.return,m)}break;case 4:ft(t,e),Tt(e);break;case 13:ft(t,e),Tt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Sc=ce())),r&4&&Fd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(u=Oe)||f,ft(t,e),Oe=u):ft(t,e),Tt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(N=e,f=e.child;f!==null;){for(p=N=f;N!==null;){switch(h=N,c=h.child,h.tag){case 0:case 11:case 14:case 15:yi(4,h,h.return);break;case 1:gr(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){ue(r,n,m)}}break;case 5:gr(h,h.return);break;case 22:if(h.memoizedState!==null){Ld(p);continue}}c!==null?(c.return=h,N=c):Ld(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Xp("display",s))}catch(m){ue(e,e.return,m)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(m){ue(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ft(t,e),Tt(e),r&4&&Fd(e);break;case 21:break;default:ft(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wg(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Si(i,""),r.flags&=-33);var o=Dd(e);tu(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Dd(e);eu(e,a,s);break;default:throw Error(C(161))}}catch(l){ue(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function b1(e,t,n){N=e,xg(e)}function xg(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var i=N,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||co;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Oe;a=co;var u=Oe;if(co=s,(Oe=l)&&!u)for(N=i;N!==null;)s=N,l=s.child,s.tag===22&&s.memoizedState!==null?Bd(i):l!==null?(l.return=s,N=l):Bd(i);for(;o!==null;)N=o,xg(o),o=o.sibling;N=i,co=a,Oe=u}Md(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,N=o):Md(e)}}function Md(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Oe||As(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ht(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&_d(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_d(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Ci(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}Oe||t.flags&512&&Jl(t)}catch(h){ue(t,t.return,h)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function Ld(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function Bd(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{As(4,t)}catch(l){ue(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ue(t,i,l)}}var o=t.return;try{Jl(t)}catch(l){ue(t,o,l)}break;case 5:var s=t.return;try{Jl(t)}catch(l){ue(t,s,l)}}}catch(l){ue(t,t.return,l)}if(t===e){N=null;break}var a=t.sibling;if(a!==null){a.return=t.return,N=a;break}N=t.return}}var x1=Math.ceil,ls=Kt.ReactCurrentDispatcher,Ec=Kt.ReactCurrentOwner,rt=Kt.ReactCurrentBatchConfig,G=0,ye=null,de=null,be=0,Ge=0,vr=xn(0),ge=0,Li=null,qn=0,Ps=0,wc=0,_i=null,Le=null,Sc=0,Ir=1/0,Bt=null,us=!1,nu=null,pn=null,fo=!1,ln=null,cs=0,Ei=0,ru=null,Io=-1,Do=0;function Pe(){return G&6?ce():Io!==-1?Io:Io=ce()}function mn(e){return e.mode&1?G&2&&be!==0?be&-be:a1.transition!==null?(Do===0&&(Do=am()),Do):(e=q,e!==0||(e=window.event,e=e===void 0?16:pm(e.type)),e):1}function _t(e,t,n,r){if(50<Ei)throw Ei=0,ru=null,Error(C(185));Hi(e,n,r),(!(G&2)||e!==ye)&&(e===ye&&(!(G&2)&&(Ps|=n),ge===4&&on(e,be)),Ue(e,r),n===1&&G===0&&!(t.mode&1)&&(Ir=ce()+500,Os&&Tn()))}function Ue(e,t){var n=e.callbackNode;a_(e,t);var r=qo(e,e===ye?be:0);if(r===0)n!==null&&qf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qf(n),t===1)e.tag===0?s1(jd.bind(null,e)):Im(jd.bind(null,e)),n1(function(){!(G&6)&&Tn()}),n=null;else{switch(lm(r)){case 1:n=Xu;break;case 4:n=om;break;case 16:n=Wo;break;case 536870912:n=sm;break;default:n=Wo}n=Pg(n,Tg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tg(e,t){if(Io=-1,Do=0,G&6)throw Error(C(327));var n=e.callbackNode;if(br()&&e.callbackNode!==n)return null;var r=qo(e,e===ye?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=fs(e,r);else{t=r;var i=G;G|=2;var o=kg();(ye!==e||be!==t)&&(Bt=null,Ir=ce()+500,Un(e,t));do try{k1();break}catch(a){Cg(e,a)}while(1);ac(),ls.current=o,G=i,de!==null?t=0:(ye=null,be=0,t=ge)}if(t!==0){if(t===2&&(i=Rl(e),i!==0&&(r=i,t=iu(e,i))),t===1)throw n=Li,Un(e,0),on(e,r),Ue(e,ce()),n;if(t===6)on(e,r);else{if(i=e.current.alternate,!(r&30)&&!T1(i)&&(t=fs(e,r),t===2&&(o=Rl(e),o!==0&&(r=o,t=iu(e,o))),t===1))throw n=Li,Un(e,0),on(e,r),Ue(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:Dn(e,Le,Bt);break;case 3:if(on(e,r),(r&130023424)===r&&(t=Sc+500-ce(),10<t)){if(qo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Bl(Dn.bind(null,e,Le,Bt),t);break}Dn(e,Le,Bt);break;case 4:if(on(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-yt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*x1(r/1960))-r,10<r){e.timeoutHandle=Bl(Dn.bind(null,e,Le,Bt),r);break}Dn(e,Le,Bt);break;case 5:Dn(e,Le,Bt);break;default:throw Error(C(329))}}}return Ue(e,ce()),e.callbackNode===n?Tg.bind(null,e):null}function iu(e,t){var n=_i;return e.current.memoizedState.isDehydrated&&(Un(e,t).flags|=256),e=fs(e,t),e!==2&&(t=Le,Le=n,t!==null&&ou(t)),e}function ou(e){Le===null?Le=e:Le.push.apply(Le,e)}function T1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Et(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function on(e,t){for(t&=~wc,t&=~Ps,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yt(t),r=1<<n;e[n]=-1,t&=~r}}function jd(e){if(G&6)throw Error(C(327));br();var t=qo(e,0);if(!(t&1))return Ue(e,ce()),null;var n=fs(e,t);if(e.tag!==0&&n===2){var r=Rl(e);r!==0&&(t=r,n=iu(e,r))}if(n===1)throw n=Li,Un(e,0),on(e,t),Ue(e,ce()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,Le,Bt),Ue(e,ce()),null}function bc(e,t){var n=G;G|=1;try{return e(t)}finally{G=n,G===0&&(Ir=ce()+500,Os&&Tn())}}function Xn(e){ln!==null&&ln.tag===0&&!(G&6)&&br();var t=G;G|=1;var n=rt.transition,r=q;try{if(rt.transition=null,q=1,e)return e()}finally{q=r,rt.transition=n,G=t,!(G&6)&&Tn()}}function xc(){Ge=vr.current,ee(vr)}function Un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,t1(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(ic(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yo();break;case 3:Ar(),ee(je),ee(Ne),hc();break;case 5:dc(r);break;case 4:Ar();break;case 13:ee(ie);break;case 19:ee(ie);break;case 10:lc(r.type._context);break;case 22:case 23:xc()}n=n.return}if(ye=e,de=e=gn(e.current,null),be=Ge=t,ge=0,Li=null,wc=Ps=qn=0,Le=_i=null,jn!==null){for(t=0;t<jn.length;t++)if(n=jn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}jn=null}return e}function Cg(e,t){do{var n=de;try{if(ac(),Ro.current=as,ss){for(var r=oe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ss=!1}if(Wn=0,ve=me=oe=null,vi=!1,Di=0,Ec.current=null,n===null||n.return===null){ge=1,Li=t,de=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=a,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var c=Cd(s);if(c!==null){c.flags&=-257,kd(c,s,a,o,t),c.mode&1&&Td(o,u,t),t=c,l=u;var g=t.updateQueue;if(g===null){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}else{if(!(t&1)){Td(o,u,t),Tc();break e}l=Error(C(426))}}else if(re&&a.mode&1){var E=Cd(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),kd(E,s,a,o,t),oc(Pr(l,a));break e}}o=l=Pr(l,a),ge!==4&&(ge=2),_i===null?_i=[o]:_i.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=ug(o,l,t);yd(o,v);break e;case 1:a=l;var d=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(pn===null||!pn.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=cg(o,a,t);yd(o,w);break e}}o=o.return}while(o!==null)}Ng(n)}catch(S){t=S,de===n&&n!==null&&(de=n=n.return);continue}break}while(1)}function kg(){var e=ls.current;return ls.current=as,e===null?as:e}function Tc(){(ge===0||ge===3||ge===2)&&(ge=4),ye===null||!(qn&268435455)&&!(Ps&268435455)||on(ye,be)}function fs(e,t){var n=G;G|=2;var r=kg();(ye!==e||be!==t)&&(Bt=null,Un(e,t));do try{C1();break}catch(i){Cg(e,i)}while(1);if(ac(),G=n,ls.current=r,de!==null)throw Error(C(261));return ye=null,be=0,ge}function C1(){for(;de!==null;)Og(de)}function k1(){for(;de!==null&&!Y0();)Og(de)}function Og(e){var t=Ag(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?Ng(e):de=t,Ec.current=null}function Ng(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=E1(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ge=6,de=null;return}}else if(n=_1(n,t,Ge),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);ge===0&&(ge=5)}function Dn(e,t,n){var r=q,i=rt.transition;try{rt.transition=null,q=1,O1(e,t,n,r)}finally{rt.transition=i,q=r}return null}function O1(e,t,n,r){do br();while(ln!==null);if(G&6)throw Error(C(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(l_(e,o),e===ye&&(de=ye=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fo||(fo=!0,Pg(Wo,function(){return br(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=rt.transition,rt.transition=null;var s=q;q=1;var a=G;G|=4,Ec.current=null,S1(e,n),bg(n,e),X_(Ml),Xo=!!Fl,Ml=Fl=null,e.current=n,b1(n),J0(),G=a,q=s,rt.transition=o}else e.current=n;if(fo&&(fo=!1,ln=e,cs=i),o=e.pendingLanes,o===0&&(pn=null),n_(n.stateNode),Ue(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(us)throw us=!1,e=nu,nu=null,e;return cs&1&&e.tag!==0&&br(),o=e.pendingLanes,o&1?e===ru?Ei++:(Ei=0,ru=e):Ei=0,Tn(),null}function br(){if(ln!==null){var e=lm(cs),t=rt.transition,n=q;try{if(rt.transition=null,q=16>e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,cs=0,G&6)throw Error(C(331));var i=G;for(G|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(N=u;N!==null;){var f=N;switch(f.tag){case 0:case 11:case 15:yi(8,f,o)}var p=f.child;if(p!==null)p.return=f,N=p;else for(;N!==null;){f=N;var h=f.sibling,c=f.return;if(Eg(f),f===u){N=null;break}if(h!==null){h.return=c,N=h;break}N=c}}}var g=o.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var E=m.sibling;m.sibling=null,m=E}while(m!==null)}}N=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,N=s;else e:for(;N!==null;){if(o=N,o.flags&2048)switch(o.tag){case 0:case 11:case 15:yi(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,N=v;break e}N=o.return}}var d=e.current;for(N=d;N!==null;){s=N;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,N=y;else e:for(s=d;N!==null;){if(a=N,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:As(9,a)}}catch(S){ue(a,a.return,S)}if(a===s){N=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,N=w;break e}N=a.return}}if(G=i,Tn(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(bs,e)}catch{}r=!0}return r}finally{q=n,rt.transition=t}}return!1}function $d(e,t,n){t=Pr(n,t),t=ug(e,t,1),e=hn(e,t,1),t=Pe(),e!==null&&(Hi(e,1,t),Ue(e,t))}function ue(e,t,n){if(e.tag===3)$d(e,e,n);else for(;t!==null;){if(t.tag===3){$d(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pn===null||!pn.has(r))){e=Pr(n,e),e=cg(t,e,1),t=hn(t,e,1),e=Pe(),t!==null&&(Hi(t,1,e),Ue(t,e));break}}t=t.return}}function N1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(be&n)===n&&(ge===4||ge===3&&(be&130023424)===be&&500>ce()-Sc?Un(e,0):wc|=n),Ue(e,t)}function Rg(e,t){t===0&&(e.mode&1?(t=to,to<<=1,!(to&130023424)&&(to=4194304)):t=1);var n=Pe();e=qt(e,t),e!==null&&(Hi(e,t,n),Ue(e,n))}function R1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rg(e,n)}function A1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Rg(e,n)}var Ag;Ag=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,y1(e,t,n);Be=!!(e.flags&131072)}else Be=!1,re&&t.flags&1048576&&Dm(t,ts,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Po(e,t),e=t.pendingProps;var i=Or(t,Ne.current);Sr(t,n),i=mc(null,t,r,e,i,n);var o=gc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(o=!0,Jo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,cc(t),i.updater=Ns,t.stateNode=i,i._reactInternals=t,Vl(t,r,e,n),t=Xl(null,t,r,!0,o,n)):(t.tag=0,re&&o&&rc(t),Ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Po(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=I1(r),e=ht(r,e),i){case 0:t=ql(null,t,r,e,n);break e;case 1:t=Rd(null,t,r,e,n);break e;case 11:t=Od(null,t,r,e,n);break e;case 14:t=Nd(null,t,r,ht(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),ql(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Rd(e,t,r,i,n);case 3:e:{if(pg(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Bm(e,t),is(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Pr(Error(C(423)),t),t=Ad(e,t,r,n,i);break e}else if(r!==i){i=Pr(Error(C(424)),t),t=Ad(e,t,r,n,i);break e}else for(Ve=dn(t.stateNode.containerInfo.firstChild),We=t,re=!0,gt=null,n=zm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nr(),r===i){t=Xt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Hm(t),e===null&&zl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ll(r,i)?s=null:o!==null&&Ll(r,o)&&(t.flags|=32),hg(e,t),Ae(e,t,s,n),t.child;case 6:return e===null&&zl(t),null;case 13:return mg(e,t,n);case 4:return fc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Od(e,t,r,i,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,K(ns,r._currentValue),r._currentValue=s,o!==null)if(Et(o.value,s)){if(o.children===i.children&&!je.current){t=Xt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Gt(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Hl(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(C(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sr(t,n),i=it(i),r=r(i),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,i=ht(r,t.pendingProps),i=ht(r.type,i),Nd(e,t,r,i,n);case 15:return fg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Po(e,t),t.tag=1,$e(r)?(e=!0,Jo(t)):e=!1,Sr(t,n),$m(t,r,i),Vl(t,r,i,n),Xl(null,t,r,!0,e,n);case 19:return gg(e,t,n);case 22:return dg(e,t,n)}throw Error(C(156,t.tag))};function Pg(e,t){return im(e,t)}function P1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nt(e,t,n,r){return new P1(e,t,n,r)}function Cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function I1(e){if(typeof e=="function")return Cc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vu)return 11;if(e===Wu)return 14}return 2}function gn(e,t){var n=e.alternate;return n===null?(n=nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Cc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ar:return zn(n.children,i,o,t);case Gu:s=8,i|=8;break;case ml:return e=nt(12,n,t,i|2),e.elementType=ml,e.lanes=o,e;case gl:return e=nt(13,n,t,i),e.elementType=gl,e.lanes=o,e;case vl:return e=nt(19,n,t,i),e.elementType=vl,e.lanes=o,e;case Up:return Is(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jp:s=10;break e;case $p:s=9;break e;case Vu:s=11;break e;case Wu:s=14;break e;case tn:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=nt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function zn(e,t,n,r){return e=nt(7,e,r,t),e.lanes=n,e}function Is(e,t,n,r){return e=nt(22,e,r,t),e.elementType=Up,e.lanes=n,e.stateNode={isHidden:!1},e}function $a(e,t,n){return e=nt(6,e,null,t),e.lanes=n,e}function Ua(e,t,n){return t=nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function D1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wa(0),this.expirationTimes=wa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,i,o,s,a,l){return e=new D1(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=nt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cc(o),e}function F1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:sr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ig(e){if(!e)return wn;e=e._reactInternals;e:{if(Yn(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($e(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if($e(n))return Pm(e,n,t)}return t}function Dg(e,t,n,r,i,o,s,a,l){return e=kc(n,r,!0,e,i,o,s,a,l),e.context=Ig(null),n=e.current,r=Pe(),i=mn(n),o=Gt(r,i),o.callback=t??null,hn(n,o,i),e.current.lanes=i,Hi(e,i,r),Ue(e,r),e}function Ds(e,t,n,r){var i=t.current,o=Pe(),s=mn(i);return n=Ig(n),t.context===null?t.context=n:t.pendingContext=n,t=Gt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=hn(i,t,s),e!==null&&(_t(e,i,s,o),No(e,i,s)),s}function ds(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ud(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oc(e,t){Ud(e,t),(e=e.alternate)&&Ud(e,t)}function M1(){return null}var Fg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nc(e){this._internalRoot=e}Fs.prototype.render=Nc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Ds(e,t,null,null)};Fs.prototype.unmount=Nc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xn(function(){Ds(null,e,null,null)}),t[Wt]=null}};function Fs(e){this._internalRoot=e}Fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=fm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rn.length&&t!==0&&t<rn[n].priority;n++);rn.splice(n,0,e),n===0&&hm(e)}};function Rc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ms(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zd(){}function L1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=ds(s);o.call(u)}}var s=Dg(t,r,e,0,null,!1,!1,"",zd);return e._reactRootContainer=s,e[Wt]=s.current,Ni(e.nodeType===8?e.parentNode:e),Xn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=ds(l);a.call(u)}}var l=kc(e,0,!1,null,null,!1,!1,"",zd);return e._reactRootContainer=l,e[Wt]=l.current,Ni(e.nodeType===8?e.parentNode:e),Xn(function(){Ds(t,l,n,r)}),l}function Ls(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=ds(s);a.call(l)}}Ds(t,s,e,i)}else s=L1(n,t,e,i,r);return ds(s)}um=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ai(t.pendingLanes);n!==0&&(Qu(t,n|1),Ue(t,ce()),!(G&6)&&(Ir=ce()+500,Tn()))}break;case 13:Xn(function(){var r=qt(e,1);if(r!==null){var i=Pe();_t(r,e,1,i)}}),Oc(e,1)}};Ku=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var n=Pe();_t(t,e,134217728,n)}Oc(e,134217728)}};cm=function(e){if(e.tag===13){var t=mn(e),n=qt(e,t);if(n!==null){var r=Pe();_t(n,e,t,r)}Oc(e,t)}};fm=function(){return q};dm=function(e,t){var n=q;try{return q=e,t()}finally{q=n}};kl=function(e,t,n){switch(t){case"input":if(El(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ks(r);if(!i)throw Error(C(90));Hp(r),El(r,i)}}}break;case"textarea":Vp(e,n);break;case"select":t=n.value,t!=null&&yr(e,!!n.multiple,t,!1)}};Yp=bc;Jp=Xn;var B1={usingClientEntryPoint:!1,Events:[Vi,fr,ks,Kp,Zp,bc]},Zr={findFiberByHostInstance:Bn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},j1={bundleType:Zr.bundleType,version:Zr.version,rendererPackageName:Zr.rendererPackageName,rendererConfig:Zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nm(e),e===null?null:e.stateNode},findFiberByHostInstance:Zr.findFiberByHostInstance||M1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{bs=ho.inject(j1),At=ho}catch{}}Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B1;Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rc(t))throw Error(C(200));return F1(e,t,null,n)};Qe.createRoot=function(e,t){if(!Rc(e))throw Error(C(299));var n=!1,r="",i=Fg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=kc(e,1,!1,null,null,n,!1,r,i),e[Wt]=t.current,Ni(e.nodeType===8?e.parentNode:e),new Nc(t)};Qe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=nm(t),e=e===null?null:e.stateNode,e};Qe.flushSync=function(e){return Xn(e)};Qe.hydrate=function(e,t,n){if(!Ms(t))throw Error(C(200));return Ls(null,e,t,!0,n)};Qe.hydrateRoot=function(e,t,n){if(!Rc(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Fg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Dg(t,null,e,1,n??null,i,!1,o,s),e[Wt]=t.current,Ni(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Fs(t)};Qe.render=function(e,t,n){if(!Ms(t))throw Error(C(200));return Ls(null,e,t,!1,n)};Qe.unmountComponentAtNode=function(e){if(!Ms(e))throw Error(C(40));return e._reactRootContainer?(Xn(function(){Ls(null,null,e,!1,function(){e._reactRootContainer=null,e[Wt]=null})}),!0):!1};Qe.unstable_batchedUpdates=bc;Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ms(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Ls(e,t,n,!1,r)};Qe.version="18.2.0-next-9e3b772b8-20220608";function Mg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mg)}catch(e){console.error(e)}}Mg(),Dp.exports=Qe;var Lg=Dp.exports,Bg,Hd=Lg;Bg=Hd.createRoot,Hd.hydrateRoot;var jg={exports:{}},$g={};/**
41
- * @license React
42
- * use-sync-external-store-shim.production.min.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its 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 Dr=k;function $1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U1=typeof Object.is=="function"?Object.is:$1,z1=Dr.useState,H1=Dr.useEffect,G1=Dr.useLayoutEffect,V1=Dr.useDebugValue;function W1(e,t){var n=t(),r=z1({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return G1(function(){i.value=n,i.getSnapshot=t,za(i)&&o({inst:i})},[e,n,t]),H1(function(){return za(i)&&o({inst:i}),e(function(){za(i)&&o({inst:i})})},[e]),V1(n),n}function za(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!U1(e,n)}catch{return!0}}function q1(e,t){return t()}var X1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?q1:W1;$g.useSyncExternalStore=Dr.useSyncExternalStore!==void 0?Dr.useSyncExternalStore:X1;jg.exports=$g;var Ug=jg.exports,zg={exports:{}},Hg={};/**
49
- * @license React
50
- * use-sync-external-store-shim/with-selector.production.min.js
51
- *
52
- * Copyright (c) Facebook, Inc. and its affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */var Bs=k,Q1=Ug;function K1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Z1=typeof Object.is=="function"?Object.is:K1,Y1=Q1.useSyncExternalStore,J1=Bs.useRef,eE=Bs.useEffect,tE=Bs.useMemo,nE=Bs.useDebugValue;Hg.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=J1(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=tE(function(){function l(c){if(!u){if(u=!0,f=c,c=r(c),i!==void 0&&s.hasValue){var g=s.value;if(i(g,c))return p=g}return p=c}if(g=p,Z1(f,c))return g;var m=r(c);return i!==void 0&&i(g,m)?g:(f=c,p=m)}var u=!1,f,p,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var a=Y1(e,o[0],o[1]);return eE(function(){s.hasValue=!0,s.value=a},[a]),nE(a),a};zg.exports=Hg;var rE=zg.exports;function iE(e){e()}let Gg=iE;const oE=e=>Gg=e,sE=()=>Gg,Gd=Symbol.for("react-redux-context"),Vd=typeof globalThis<"u"?globalThis:{};function aE(){var e;if(!k.createContext)return{};const t=(e=Vd[Gd])!=null?e:Vd[Gd]=new Map;let n=t.get(k.createContext);return n||(n=k.createContext(null),t.set(k.createContext,n)),n}const Bi=aE();function Vg(e=Bi){return function(){return k.useContext(e)}}const lE=Vg(),Wg=()=>{throw new Error("uSES not initialized!")};let qg=Wg;const uE=e=>{qg=e},cE=(e,t)=>e===t;function fE(e=Bi){const t=e===Bi?lE:Vg(e);return function(r,i={}){const{equalityFn:o=cE,stabilityCheck:s=void 0,noopCheck:a=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:f,stabilityCheck:p,noopCheck:h}=t();k.useRef(!0);const c=k.useCallback({[r.name](m){return r(m)}}[r.name],[r,p,s]),g=qg(u.addNestedSub,l.getState,f||l.getState,c,o);return k.useDebugValue(g),g}}const dE=fE();function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xr.apply(this,arguments)}function Xg(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qg={exports:{}},X={};/** @license React v16.13.1
57
- * react-is.production.min.js
58
- *
59
- * Copyright (c) Facebook, Inc. and its affiliates.
60
- *
61
- * This source code is licensed under the MIT license found in the
62
- * LICENSE file in the root directory of this source tree.
63
- */var _e=typeof Symbol=="function"&&Symbol.for,Ac=_e?Symbol.for("react.element"):60103,Pc=_e?Symbol.for("react.portal"):60106,js=_e?Symbol.for("react.fragment"):60107,$s=_e?Symbol.for("react.strict_mode"):60108,Us=_e?Symbol.for("react.profiler"):60114,zs=_e?Symbol.for("react.provider"):60109,Hs=_e?Symbol.for("react.context"):60110,Ic=_e?Symbol.for("react.async_mode"):60111,Gs=_e?Symbol.for("react.concurrent_mode"):60111,Vs=_e?Symbol.for("react.forward_ref"):60112,Ws=_e?Symbol.for("react.suspense"):60113,hE=_e?Symbol.for("react.suspense_list"):60120,qs=_e?Symbol.for("react.memo"):60115,Xs=_e?Symbol.for("react.lazy"):60116,pE=_e?Symbol.for("react.block"):60121,mE=_e?Symbol.for("react.fundamental"):60117,gE=_e?Symbol.for("react.responder"):60118,vE=_e?Symbol.for("react.scope"):60119;function Ze(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ac:switch(e=e.type,e){case Ic:case Gs:case js:case Us:case $s:case Ws:return e;default:switch(e=e&&e.$$typeof,e){case Hs:case Vs:case Xs:case qs:case zs:return e;default:return t}}case Pc:return t}}}function Kg(e){return Ze(e)===Gs}X.AsyncMode=Ic;X.ConcurrentMode=Gs;X.ContextConsumer=Hs;X.ContextProvider=zs;X.Element=Ac;X.ForwardRef=Vs;X.Fragment=js;X.Lazy=Xs;X.Memo=qs;X.Portal=Pc;X.Profiler=Us;X.StrictMode=$s;X.Suspense=Ws;X.isAsyncMode=function(e){return Kg(e)||Ze(e)===Ic};X.isConcurrentMode=Kg;X.isContextConsumer=function(e){return Ze(e)===Hs};X.isContextProvider=function(e){return Ze(e)===zs};X.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ac};X.isForwardRef=function(e){return Ze(e)===Vs};X.isFragment=function(e){return Ze(e)===js};X.isLazy=function(e){return Ze(e)===Xs};X.isMemo=function(e){return Ze(e)===qs};X.isPortal=function(e){return Ze(e)===Pc};X.isProfiler=function(e){return Ze(e)===Us};X.isStrictMode=function(e){return Ze(e)===$s};X.isSuspense=function(e){return Ze(e)===Ws};X.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===js||e===Gs||e===Us||e===$s||e===Ws||e===hE||typeof e=="object"&&e!==null&&(e.$$typeof===Xs||e.$$typeof===qs||e.$$typeof===zs||e.$$typeof===Hs||e.$$typeof===Vs||e.$$typeof===mE||e.$$typeof===gE||e.$$typeof===vE||e.$$typeof===pE)};X.typeOf=Ze;Qg.exports=X;var yE=Qg.exports,Dc=yE,_E={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},EE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fc={};Fc[Dc.ForwardRef]=wE;Fc[Dc.Memo]=Zg;function Wd(e){return Dc.isMemo(e)?Zg:Fc[e.$$typeof]||_E}var SE=Object.defineProperty,bE=Object.getOwnPropertyNames,qd=Object.getOwnPropertySymbols,xE=Object.getOwnPropertyDescriptor,TE=Object.getPrototypeOf,Xd=Object.prototype;function Yg(e,t,n){if(typeof t!="string"){if(Xd){var r=TE(t);r&&r!==Xd&&Yg(e,r,n)}var i=bE(t);qd&&(i=i.concat(qd(t)));for(var o=Wd(e),s=Wd(t),a=0;a<i.length;++a){var l=i[a];if(!EE[l]&&!(n&&n[l])&&!(s&&s[l])&&!(o&&o[l])){var u=xE(t,l);try{SE(e,l,u)}catch{}}}}return e}var CE=Yg;const Qd=ws(CE);var Jg={exports:{}},Q={};/**
64
- * @license React
65
- * react-is.production.min.js
66
- *
67
- * Copyright (c) Facebook, Inc. and its affiliates.
68
- *
69
- * This source code is licensed under the MIT license found in the
70
- * LICENSE file in the root directory of this source tree.
71
- */var Mc=Symbol.for("react.element"),Lc=Symbol.for("react.portal"),Qs=Symbol.for("react.fragment"),Ks=Symbol.for("react.strict_mode"),Zs=Symbol.for("react.profiler"),Ys=Symbol.for("react.provider"),Js=Symbol.for("react.context"),kE=Symbol.for("react.server_context"),ea=Symbol.for("react.forward_ref"),ta=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),ra=Symbol.for("react.memo"),ia=Symbol.for("react.lazy"),OE=Symbol.for("react.offscreen"),ev;ev=Symbol.for("react.module.reference");function at(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mc:switch(e=e.type,e){case Qs:case Zs:case Ks:case ta:case na:return e;default:switch(e=e&&e.$$typeof,e){case kE:case Js:case ea:case ia:case ra:case Ys:return e;default:return t}}case Lc:return t}}}Q.ContextConsumer=Js;Q.ContextProvider=Ys;Q.Element=Mc;Q.ForwardRef=ea;Q.Fragment=Qs;Q.Lazy=ia;Q.Memo=ra;Q.Portal=Lc;Q.Profiler=Zs;Q.StrictMode=Ks;Q.Suspense=ta;Q.SuspenseList=na;Q.isAsyncMode=function(){return!1};Q.isConcurrentMode=function(){return!1};Q.isContextConsumer=function(e){return at(e)===Js};Q.isContextProvider=function(e){return at(e)===Ys};Q.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mc};Q.isForwardRef=function(e){return at(e)===ea};Q.isFragment=function(e){return at(e)===Qs};Q.isLazy=function(e){return at(e)===ia};Q.isMemo=function(e){return at(e)===ra};Q.isPortal=function(e){return at(e)===Lc};Q.isProfiler=function(e){return at(e)===Zs};Q.isStrictMode=function(e){return at(e)===Ks};Q.isSuspense=function(e){return at(e)===ta};Q.isSuspenseList=function(e){return at(e)===na};Q.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qs||e===Zs||e===Ks||e===ta||e===na||e===OE||typeof e=="object"&&e!==null&&(e.$$typeof===ia||e.$$typeof===ra||e.$$typeof===Ys||e.$$typeof===Js||e.$$typeof===ea||e.$$typeof===ev||e.getModuleId!==void 0)};Q.typeOf=at;Jg.exports=Q;var NE=Jg.exports;const RE=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function AE(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,u,f,p,h;function c(d,y){return l=d,u=y,f=e(l,u),p=t(r,u),h=n(f,p,u),a=!0,h}function g(){return f=e(l,u),t.dependsOnOwnProps&&(p=t(r,u)),h=n(f,p,u),h}function m(){return e.dependsOnOwnProps&&(f=e(l,u)),t.dependsOnOwnProps&&(p=t(r,u)),h=n(f,p,u),h}function E(){const d=e(l,u),y=!s(d,f);return f=d,y&&(h=n(f,p,u)),h}function v(d,y){const w=!o(y,u),S=!i(d,l,y,u);return l=d,u=y,w&&S?g():w?m():S?E():h}return function(y,w){return a?v(y,w):c(y,w)}}function PE(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=Xg(t,RE);const s=n(e,o),a=r(e,o),l=i(e,o);return AE(s,a,l,e,o)}function IE(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function su(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Kd(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function tv(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=Kd(e);let u=o(a,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=Kd(u),u=o(a,l)),u},o}}function Bc(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function DE(e){return e&&typeof e=="object"?su(t=>IE(e,t)):e?typeof e=="function"?tv(e):Bc(e,"mapDispatchToProps"):su(t=>({dispatch:t}))}function FE(e){return e?typeof e=="function"?tv(e):Bc(e,"mapStateToProps"):su(()=>({}))}function ME(e,t,n){return xr({},n,e,t)}function LE(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,u,f){const p=e(l,u,f);return o?i(p,s)||(s=p):(o=!0,s=p),s}}}function BE(e){return e?typeof e=="function"?LE(e):Bc(e,"mergeProps"):()=>ME}function jE(){const e=sE();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Zd={notify(){},get:()=>[]};function nv(e,t){let n,r=Zd;function i(p){return l(),r.subscribe(p)}function o(){r.notify()}function s(){f.onStateChange&&f.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=jE())}function u(){n&&(n(),n=void 0,r.clear(),r=Zd)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return f}const $E=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hs=$E?k.useLayoutEffect:k.useEffect;function Yd(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ha(e,t){if(Yd(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Yd(e[n[i]],t[n[i]]))return!1;return!0}const UE=["reactReduxForwardedRef"];let rv=Wg;const zE=e=>{rv=e},HE=[null,null];function GE(e,t,n){hs(()=>e(...t),n)}function VE(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function WE(e,t,n,r,i,o,s,a,l,u,f){if(!e)return()=>{};let p=!1,h=null;const c=()=>{if(p||!a.current)return;const m=t.getState();let E,v;try{E=r(m,i.current)}catch(d){v=d,h=d}v||(h=null),E===o.current?s.current||u():(o.current=E,l.current=E,s.current=!0,f())};return n.onStateChange=c,n.trySubscribe(),c(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}function qE(e,t){return e===t}function XE(e,t,n,{pure:r,areStatesEqual:i=qE,areOwnPropsEqual:o=Ha,areStatePropsEqual:s=Ha,areMergedPropsEqual:a=Ha,forwardRef:l=!1,context:u=Bi}={}){const f=u,p=FE(e),h=DE(t),c=BE(n),g=!!e;return E=>{const v=E.displayName||E.name||"Component",d=`Connect(${v})`,y={shouldHandleStateChanges:g,displayName:d,wrappedComponentName:v,WrappedComponent:E,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:c,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function w(x){const[T,I,R]=k.useMemo(()=>{const{reactReduxForwardedRef:xt}=x,Hr=Xg(x,UE);return[x.context,xt,Hr]},[x]),W=k.useMemo(()=>T&&T.Consumer&&NE.isContextConsumer(k.createElement(T.Consumer,null))?T:f,[T,f]),pe=k.useContext(W),Ee=!!x.store&&!!x.store.getState&&!!x.store.dispatch,kn=!!pe&&!!pe.store,ze=Ee?x.store:pe.store,He=kn?pe.getServerState:ze.getState,On=k.useMemo(()=>PE(ze.dispatch,y),[ze]),[O,F]=k.useMemo(()=>{if(!g)return HE;const xt=nv(ze,Ee?void 0:pe.subscription),Hr=xt.notifyNestedSubs.bind(xt);return[xt,Hr]},[ze,Ee,pe]),M=k.useMemo(()=>Ee?pe:xr({},pe,{subscription:O}),[Ee,pe,O]),Z=k.useRef(),ae=k.useRef(R),St=k.useRef(),bt=k.useRef(!1);k.useRef(!1);const Nn=k.useRef(!1),ct=k.useRef();hs(()=>(Nn.current=!0,()=>{Nn.current=!1}),[]);const Rn=k.useMemo(()=>()=>St.current&&R===ae.current?St.current:On(ze.getState(),R),[ze,R]),h0=k.useMemo(()=>Hr=>O?WE(g,ze,O,On,ae,Z,bt,Nn,St,F,Hr):()=>{},[O]);GE(VE,[ae,Z,bt,R,St,F]);let Qi;try{Qi=rv(h0,Rn,He?()=>On(He(),R):Rn)}catch(xt){throw ct.current&&(xt.message+=`
72
- The error may be correlated with this previous error:
73
- ${ct.current.stack}
74
-
75
- `),xt}hs(()=>{ct.current=void 0,St.current=void 0,Z.current=Qi});const ma=k.useMemo(()=>k.createElement(E,xr({},Qi,{ref:I})),[I,E,Qi]);return k.useMemo(()=>g?k.createElement(W.Provider,{value:M},ma):ma,[W,ma,M])}const b=k.memo(w);if(b.WrappedComponent=E,b.displayName=w.displayName=d,l){const T=k.forwardRef(function(R,W){return k.createElement(b,xr({},R,{reactReduxForwardedRef:W}))});return T.displayName=d,T.WrappedComponent=E,Qd(T,E)}return Qd(b,E)}}function QE({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=k.useMemo(()=>{const u=nv(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=k.useMemo(()=>e.getState(),[e]);hs(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||Bi;return k.createElement(l.Provider,{value:s},n)}uE(rE.useSyncExternalStoreWithSelector);zE(Ug.useSyncExternalStore);oE(Lg.unstable_batchedUpdates);var au=function(e,t){return au=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},au(e,t)};function lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");au(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var A=function(){return A=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},A.apply(this,arguments)};function oa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Nt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function iv(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var B;(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"})(B||(B={}));var J;(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"})(J||(J={}));var Fr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Fr||(Fr={}));function Jd(e){return e.type===J.literal}function KE(e){return e.type===J.argument}function ov(e){return e.type===J.number}function sv(e){return e.type===J.date}function av(e){return e.type===J.time}function lv(e){return e.type===J.select}function uv(e){return e.type===J.plural}function ZE(e){return e.type===J.pound}function cv(e){return e.type===J.tag}function fv(e){return!!(e&&typeof e=="object"&&e.type===Fr.number)}function lu(e){return!!(e&&typeof e=="object"&&e.type===Fr.dateTime)}var dv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,YE=/(?:[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 JE(e){var t={};return e.replace(YE,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""}),t}var ew=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function tw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ew).filter(function(h){return h.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,f=l;u<f.length;u++){var p=f[u];if(p.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function nw(e){return e.replace(/^(.*?)-/,"")}var eh=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hv=/^(@+)?(\+|#+)?[rs]?$/g,rw=/(\*)(0+)|(#+)(0+)|(0+)/g,pv=/^(0+)$/;function th(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(hv,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function mv(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 iw(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!pv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function nh(e){var t={},n=mv(e);return n||t}function ow(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=nw(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=A(A(A({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return A(A({},l),nh(u))},{}));continue;case"engineering":t=A(A(A({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return A(A({},l),nh(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(rw,function(l,u,f,p,h,c){if(u)t.minimumIntegerDigits=f.length;else{if(p&&h)throw new Error("We currently do not support maximum integer digits");if(c)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pv.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(eh.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(eh,function(l,u,f,p,h,c){return f==="*"?t.minimumFractionDigits=u.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:h&&c?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+c.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=A(A({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=A(A({},t),th(o)));continue}if(hv.test(i.stem)){t=A(A({},t),th(i.stem));continue}var s=mv(i.stem);s&&(t=A(A({},t),s));var a=iw(i.stem);a&&(t=A(A({},t),a))}return t}var po={"001":["H","h"],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"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],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"],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","hB","h","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"],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"],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"],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","h","K"],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"],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"],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"],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","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","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"],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"],TL:["H","hB","hb","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"],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"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 sw(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=aw(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function aw(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=po[r||""]||po[n||""]||po["".concat(n,"-001")]||po["001"];return i[0]}var Ga,lw=new RegExp("^".concat(dv.source,"*")),uw=new RegExp("".concat(dv.source,"*$"));function U(e,t){return{start:e,end:t}}var cw=!!String.prototype.startsWith,fw=!!String.fromCodePoint,dw=!!Object.fromEntries,hw=!!String.prototype.codePointAt,pw=!!String.prototype.trimStart,mw=!!String.prototype.trimEnd,gw=!!Number.isSafeInteger,vw=gw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},uu=!0;try{var yw=vv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");uu=((Ga=yw.exec("a"))===null||Ga===void 0?void 0:Ga[0])==="a"}catch{uu=!1}var rh=cw?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},cu=fw?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},ih=dw?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},gv=hw?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},_w=pw?function(t){return t.trimStart()}:function(t){return t.replace(lw,"")},Ew=mw?function(t){return t.trimEnd()}:function(t){return t.replace(uw,"")};function vv(e,t){return new RegExp(e,t)}var fu;if(uu){var oh=vv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fu=function(t,n){var r;oh.lastIndex=n;var i=oh.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else fu=function(t,n){for(var r=[];;){var i=gv(t,n);if(i===void 0||yv(i)||xw(i))break;r.push(i),n+=i>=65536?2:1}return cu.apply(void 0,r)};var ww=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:J.pound,location:U(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(B.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&du(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:J.literal,value:"<".concat(i,"/>"),location:U(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!du(this.char()))return this.error(B.INVALID_TAG,U(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(B.UNMATCHED_CLOSING_TAG,U(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:J.tag,value:i,children:s,location:U(r,this.clonePosition())},err:null}:this.error(B.INVALID_TAG,U(a,this.clonePosition())))}else return this.error(B.UNCLOSED_TAG,U(r,this.clonePosition()))}else return this.error(B.INVALID_TAG,U(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bw(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=U(r,this.clonePosition());return{val:{type:J.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Sw(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){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(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return cu.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),cu(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(B.EMPTY_ARGUMENT,U(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(B.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:J.argument,value:i,location:U(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(B.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fu(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=U(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(B.EXPECT_ARGUMENT_TYPE,U(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var h=Ew(p.val);if(h.length===0)return this.error(B.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var c=U(f,this.clonePosition());u={style:h,styleLocation:c}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var m=U(i,this.clonePosition());if(u&&rh(u==null?void 0:u.style,"::",0)){var E=_w(u.style.slice(2));if(a==="number"){var p=this.parseNumberSkeletonFromString(E,u.styleLocation);return p.err?p:{val:{type:J.number,value:r,location:m,style:p.val},err:null}}else{if(E.length===0)return this.error(B.EXPECT_DATE_TIME_SKELETON,m);var v=E;this.locale&&(v=sw(E,this.locale));var h={type:Fr.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?JE(v):{}},d=a==="date"?J.date:J.time;return{val:{type:d,value:r,location:m,style:h},err:null}}}return{val:{type:a==="number"?J.number:a==="date"?J.date:J.time,value:r,location:m,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,U(y,A({},y)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),w=this.parseIdentifierIfPossible(),S=p.val}var b=this.tryParsePluralOrSelectOptions(t,a,n,w);if(b.err)return b;var g=this.tryParseArgumentClose(i);if(g.err)return g;var x=U(i,this.clonePosition());return a==="select"?{val:{type:J.select,value:r,options:ih(b.val),location:x},err:null}:{val:{type:J.plural,value:r,options:ih(b.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(B.INVALID_ARGUMENT_TYPE,U(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,U(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=tw(t)}catch{return this.error(B.INVALID_NUMBER_SKELETON,n)}return{val:{type:Fr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ow(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,f=i.location;;){if(u.length===0){var p=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR,B.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=U(p,this.clonePosition()),u=this.message.slice(p.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?B.DUPLICATE_SELECT_ARGUMENT_SELECTOR:B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(s=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var m=this.tryParseArgumentClose(c);if(m.err)return m;a.push([u,{value:g.val,location:U(c,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,f=o.location}return a.length===0?this.error(n==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR:B.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(B.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=U(i,this.clonePosition());return o?(s*=r,vw(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=gv(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(rh(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yv(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function du(e){return e>=97&&e<=122||e>=65&&e<=90}function Sw(e){return du(e)||e===47}function bw(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 yv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function xw(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 hu(e){e.forEach(function(t){if(delete t.location,lv(t)||uv(t))for(var n in t.options)delete t.options[n].location,hu(t.options[n].value);else ov(t)&&fv(t.style)||(sv(t)||av(t))&&lu(t.style)?delete t.style.location:cv(t)&&hu(t.children)})}function Tw(e,t){t===void 0&&(t={}),t=A({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ww(e,t).parse();if(n.err){var r=SyntaxError(B[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||hu(n.val),n.val}function kt(e,t){var n=t&&t.cache?t.cache:Aw,r=t&&t.serializer?t.serializer:Rw,i=t&&t.strategy?t.strategy:kw;return i(e,{cache:n,serializer:r})}function Cw(e){return e==null||typeof e=="number"||typeof e=="boolean"}function _v(e,t,n,r){var i=Cw(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function Ev(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function jc(e,t,n,r,i){return n.bind(t,e,r,i)}function kw(e,t){var n=e.length===1?_v:Ev;return jc(e,this,n,t.cache.create(),t.serializer)}function Ow(e,t){return jc(e,this,Ev,t.cache.create(),t.serializer)}function Nw(e,t){return jc(e,this,_v,t.cache.create(),t.serializer)}var Rw=function(){return JSON.stringify(arguments)};function $c(){this.cache=Object.create(null)}$c.prototype.get=function(e){return this.cache[e]};$c.prototype.set=function(e,t){this.cache[e]=t};var Aw={create:function(){return new $c}},Ot={variadic:Ow,monadic:Nw},Ft;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ft||(Ft={}));var Cn=function(e){lt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),sh=function(e){lt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ft.INVALID_VALUE,o)||this}return t}(Cn),Pw=function(e){lt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ft.INVALID_VALUE,i)||this}return t}(Cn),Iw=function(e){lt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ft.MISSING_VALUE,r)||this}return t}(Cn),Re;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Re||(Re={}));function Dw(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Re.literal||n.type!==Re.literal?t.push(n):r.value+=n.value,t},[])}function wv(e){return typeof e=="function"}function Mo(e,t,n,r,i,o,s){if(e.length===1&&Jd(e[0]))return[{type:Re.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var f=u[l];if(Jd(f)){a.push({type:Re.literal,value:f.value});continue}if(ZE(f)){typeof o=="number"&&a.push({type:Re.literal,value:n.getNumberFormat(t).format(o)});continue}var p=f.value;if(!(i&&p in i))throw new Iw(p,s);var h=i[p];if(KE(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Re.literal:Re.object,value:h});continue}if(sv(f)){var c=typeof f.style=="string"?r.date[f.style]:lu(f.style)?f.style.parsedOptions:void 0;a.push({type:Re.literal,value:n.getDateTimeFormat(t,c).format(h)});continue}if(av(f)){var c=typeof f.style=="string"?r.time[f.style]:lu(f.style)?f.style.parsedOptions:r.time.medium;a.push({type:Re.literal,value:n.getDateTimeFormat(t,c).format(h)});continue}if(ov(f)){var c=typeof f.style=="string"?r.number[f.style]:fv(f.style)?f.style.parsedOptions:void 0;c&&c.scale&&(h=h*(c.scale||1)),a.push({type:Re.literal,value:n.getNumberFormat(t,c).format(h)});continue}if(cv(f)){var g=f.children,m=f.value,E=i[m];if(!wv(E))throw new Pw(m,"function",s);var v=Mo(g,t,n,r,i,o),d=E(v.map(function(S){return S.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(S){return{type:typeof S=="string"?Re.literal:Re.object,value:S}}))}if(lv(f)){var y=f.options[h]||f.options.other;if(!y)throw new sh(f.value,h,Object.keys(f.options),s);a.push.apply(a,Mo(y.value,t,n,r,i));continue}if(uv(f)){var y=f.options["=".concat(h)];if(!y){if(!Intl.PluralRules)throw new Cn(`Intl.PluralRules is not available in this environment.
76
- Try polyfilling it using "@formatjs/intl-pluralrules"
77
- `,Ft.MISSING_INTL_API,s);var w=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));y=f.options[w]||f.options.other}if(!y)throw new sh(f.value,h,Object.keys(f.options),s);a.push.apply(a,Mo(y.value,t,n,r,i,h-(f.offset||0)));continue}}return Dw(a)}function Fw(e,t){return t?A(A(A({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=A(A({},e[r]),t[r]||{}),n},{})):e}function Mw(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Fw(e[r],t[r]),n},A({},e)):e}function Va(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Lw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Nt([void 0],n,!1)))},{cache:Va(e.number),strategy:Ot.variadic}),getDateTimeFormat:kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Nt([void 0],n,!1)))},{cache:Va(e.dateTime),strategy:Ot.variadic}),getPluralRules:kt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Nt([void 0],n,!1)))},{cache:Va(e.pluralRules),strategy:Ot.variadic})}}var Sv=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(p,h){return!p.length||h.type!==Re.literal||typeof p[p.length-1]!="string"?p.push(h.value):p[p.length-1]+=h.value,p},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Mo(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=oa(s,["formatters"]);this.ast=e.__parse(t,A(A({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Mw(e.formats,r),this.formatters=i&&i.formatters||Lw(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(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Tw,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}(),Qn;(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"})(Qn||(Qn={}));var qi=function(e){lt(t,e);function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
78
- `).concat(s?`
79
- `.concat(s.message,`
80
- `).concat(s.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),Bw=function(e){lt(t,e);function t(n,r){return e.call(this,Qn.UNSUPPORTED_FORMATTER,n,r)||this}return t}(qi),jw=function(e){lt(t,e);function t(n,r){return e.call(this,Qn.INVALID_CONFIG,n,r)||this}return t}(qi),ah=function(e){lt(t,e);function t(n,r){return e.call(this,Qn.MISSING_DATA,n,r)||this}return t}(qi),ut=function(e){lt(t,e);function t(n,r,i){var o=e.call(this,Qn.FORMAT_ERROR,"".concat(n,`
81
- Locale: `).concat(r,`
82
- `),i)||this;return o.locale=r,o}return t}(qi),Wa=function(e){lt(t,e);function t(n,r,i,o){var s=e.call(this,"".concat(n,`
83
- MessageID: `).concat(i==null?void 0:i.id,`
84
- Default Message: `).concat(i==null?void 0:i.defaultMessage,`
85
- Description: `).concat(i==null?void 0:i.description,`
86
- `),r,o)||this;return s.descriptor=i,s.locale=r,s}return t}(ut),$w=function(e){lt(t,e);function t(n,r){var i=e.call(this,Qn.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var s;return(s=o.value)!==null&&s!==void 0?s:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(qi);function Jn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var Uw=function(e){},zw=function(e){},bv={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Uw,onWarn:zw};function xv(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function An(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Hw(e){e===void 0&&(e=xv());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=kt(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.DateTimeFormat).bind.apply(a,Nt([void 0],l,!1)))},{cache:An(e.dateTime),strategy:Ot.variadic}),o=kt(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.NumberFormat).bind.apply(a,Nt([void 0],l,!1)))},{cache:An(e.number),strategy:Ot.variadic}),s=kt(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.PluralRules).bind.apply(a,Nt([void 0],l,!1)))},{cache:An(e.pluralRules),strategy:Ot.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:kt(function(a,l,u,f){return new Sv(a,l,u,A({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:s}},f||{}))},{cache:An(e.message),strategy:Ot.variadic}),getRelativeTimeFormat:kt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(t.bind.apply(t,Nt([void 0],a,!1)))},{cache:An(e.relativeTime),strategy:Ot.variadic}),getPluralRules:s,getListFormat:kt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(n.bind.apply(n,Nt([void 0],a,!1)))},{cache:An(e.list),strategy:Ot.variadic}),getDisplayNames:kt(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(r.bind.apply(r,Nt([void 0],a,!1)))},{cache:An(e.displayNames),strategy:Ot.variadic})}}function Uc(e,t,n,r){var i=e&&e[t],o;if(i&&(o=i[n]),o)return o;r(new Bw("No ".concat(t," format named: ").concat(n)))}function mo(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=A({timeZone:t},e[r]),n},{})}function lh(e,t){var n=Object.keys(A(A({},e),t));return n.reduce(function(r,i){return r[i]=A(A({},e[i]||{}),t[i]||{}),r},{})}function uh(e,t){if(!t)return e;var n=Sv.formats;return A(A(A({},n),e),{date:lh(mo(n.date,t),mo(e.date||{},t)),time:lh(mo(n.time,t),mo(e.time||{},t))})}var pu=function(e,t,n,r,i){var o=e.locale,s=e.formats,a=e.messages,l=e.defaultLocale,u=e.defaultFormats,f=e.fallbackOnEmptyString,p=e.onError,h=e.timeZone,c=e.defaultRichTextElements;n===void 0&&(n={id:""});var g=n.id,m=n.defaultMessage;iv(!!g,"[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var E=String(g),v=a&&Object.prototype.hasOwnProperty.call(a,E)&&a[E];if(Array.isArray(v)&&v.length===1&&v[0].type===J.literal)return v[0].value;if(!r&&v&&typeof v=="string"&&!c)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=A(A({},c),r||{}),s=uh(s,h),u=uh(u,h),!v){if(f===!1&&v==="")return v;if((!m||o&&o.toLowerCase()!==l.toLowerCase())&&p(new $w(n,o)),m)try{var d=t.getMessageFormat(m,l,u,i);return d.format(r)}catch(y){return p(new Wa('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),o,n,y)),typeof m=="string"?m:E}return E}try{var d=t.getMessageFormat(v,o,s,A({formatters:t},i||{}));return d.format(r)}catch(y){p(new Wa('Error formatting message: "'.concat(E,'", using ').concat(m?"default message":"id"," as fallback."),o,n,y))}if(m)try{var d=t.getMessageFormat(m,l,u,i);return d.format(r)}catch(y){p(new Wa('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),o,n,y))}return typeof v=="string"?v:typeof m=="string"?m:E},Tv=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function sa(e,t,n,r){var i=e.locale,o=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var l=r.format,u=A(A({},a&&{timeZone:a}),l&&Uc(o,t,l,s)),f=Jn(r,Tv,u);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=A(A({},f),{hour:"numeric",minute:"numeric"})),n(i,f)}function Gw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return sa(e,"date",t,s).format(a)}catch(l){e.onError(new ut("Error formatting date.",e.locale,l))}return String(a)}function Vw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return sa(e,"time",t,s).format(a)}catch(l){e.onError(new ut("Error formatting time.",e.locale,l))}return String(a)}function Ww(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=n[2],a=s===void 0?{}:s,l=e.timeZone,u=e.locale,f=e.onError,p=Jn(a,Tv,l?{timeZone:l}:{});try{return t(u,p).formatRange(i,o)}catch(h){f(new ut("Error formatting date time range.",e.locale,h))}return String(i)}function qw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return sa(e,"date",t,s).formatToParts(a)}catch(l){e.onError(new ut("Error formatting date.",e.locale,l))}return[]}function Xw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return sa(e,"time",t,s).formatToParts(a)}catch(l){e.onError(new ut("Error formatting time.",e.locale,l))}return[]}var Qw=["style","type","fallback","languageDisplay"];function Kw(e,t,n,r){var i=e.locale,o=e.onError,s=Intl.DisplayNames;s||o(new Cn(`Intl.DisplayNames is not available in this environment.
87
- Try polyfilling it using "@formatjs/intl-displaynames"
88
- `,Ft.MISSING_INTL_API));var a=Jn(r,Qw);try{return t(i,a).of(n)}catch(l){o(new ut("Error formatting display name.",i,l))}}var Zw=["type","style"],ch=Date.now();function Yw(e){return"".concat(ch,"_").concat(e,"_").concat(ch)}function Jw(e,t,n,r){r===void 0&&(r={});var i=Cv(e,t,n,r).reduce(function(o,s){var a=s.value;return typeof a!="string"?o.push(a):typeof o[o.length-1]=="string"?o[o.length-1]+=a:o.push(a),o},[]);return i.length===1?i[0]:i.length===0?"":i}function Cv(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||o(new Cn(`Intl.ListFormat is not available in this environment.
89
- Try polyfilling it using "@formatjs/intl-listformat"
90
- `,Ft.MISSING_INTL_API));var a=Jn(r,Zw);try{var l={},u=n.map(function(f,p){if(typeof f=="object"){var h=Yw(p);return l[h]=f,h}return String(f)});return t(i,a).formatToParts(u).map(function(f){return f.type==="literal"?f:A(A({},f),{value:l[f.value]||f.value})})}catch(f){o(new ut("Error formatting list.",i,f))}return n}var eS=["type"];function tS(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Cn(`Intl.PluralRules is not available in this environment.
91
- Try polyfilling it using "@formatjs/intl-pluralrules"
92
- `,Ft.MISSING_INTL_API));var s=Jn(r,eS);try{return t(i,s).select(n)}catch(a){o(new ut("Error formatting plural.",i,a))}return"other"}var nS=["numeric","style"];function rS(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Uc(i,"relative",s,o)||{},l=Jn(n,nS,a);return t(r,l)}function iS(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Cn(`Intl.RelativeTimeFormat is not available in this environment.
93
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
94
- `,Ft.MISSING_INTL_API));try{return rS(e,t,i).format(n,r)}catch(s){e.onError(new ut("Error formatting relative time.",e.locale,s))}return String(n)}var oS=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function kv(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=s&&Uc(i,"number",s,o)||{},l=Jn(n,oS,a);return t(r,l)}function sS(e,t,n,r){r===void 0&&(r={});try{return kv(e,t,r).format(n)}catch(i){e.onError(new ut("Error formatting number.",e.locale,i))}return String(n)}function aS(e,t,n,r){r===void 0&&(r={});try{return kv(e,t,r).formatToParts(n)}catch(i){e.onError(new ut("Error formatting number.",e.locale,i))}return[]}function lS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function uS(e){e.onWarn&&e.defaultRichTextElements&&lS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
95
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
96
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function cS(e,t){var n=Hw(t),r=A(A({},bv),e),i=r.locale,o=r.defaultLocale,s=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new ah('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new ah('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new jw('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),uS(r),A(A({},r),{formatters:n,formatNumber:sS.bind(null,r,n.getNumberFormat),formatNumberToParts:aS.bind(null,r,n.getNumberFormat),formatRelativeTime:iS.bind(null,r,n.getRelativeTimeFormat),formatDate:Gw.bind(null,r,n.getDateTimeFormat),formatDateToParts:qw.bind(null,r,n.getDateTimeFormat),formatTime:Vw.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Ww.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Xw.bind(null,r,n.getDateTimeFormat),formatPlural:tS.bind(null,r,n.getPluralRules),formatMessage:pu.bind(null,r,n),$t:pu.bind(null,r,n),formatList:Jw.bind(null,r,n.getListFormat),formatListToParts:Cv.bind(null,r,n.getListFormat),formatDisplayName:Kw.bind(null,r,n.getDisplayNames)})}function Ov(e){iv(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Nv=A(A({},bv),{textComponent:k.Fragment});function fS(e){return function(t){return e(k.Children.toArray(t))}}function dS(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var s=n[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var zc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=k.createContext(null)):k.createContext(null);zc.Consumer;var hS=zc.Provider,pS=hS,mS=zc;function aa(){var e=k.useContext(mS);return Ov(e),e}var mu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(mu||(mu={}));var gu;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(gu||(gu={}));function Rv(e){var t=function(n){var r=aa(),i=n.value,o=n.children,s=oa(n,["value","children"]),a=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return o(l)};return t.displayName=gu[e],t}function Xi(e){var t=function(n){var r=aa(),i=n.value,o=n.children,s=oa(n,["value","children"]),a=r[e](i,s);if(typeof o=="function")return o(a);var l=r.textComponent||k.Fragment;return k.createElement(l,null,a)};return t.displayName=mu[e],t}function qa(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}}function Av(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=wv(r)?fS(r):r,t},{})}var fh=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var s=Av(r),a=pu.apply(void 0,Nt([e,t,n,s],i,!1));return Array.isArray(a)?k.Children.toArray(a):a},dh=function(e,t){var n=e.defaultRichTextElements,r=oa(e,["defaultRichTextElements"]),i=Av(n),o=cS(A(A(A({},Nv),r),{defaultRichTextElements:i}),t),s={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return A(A({},o),{formatMessage:fh.bind(null,s,o.formatters),$t:fh.bind(null,s,o.formatters)})},gS=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=xv(),n.state={cache:n.cache,intl:dh(qa(n.props),n.cache),prevConfig:qa(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,s=qa(n);return dS(i,s)?null:{intl:dh(s,o),prevConfig:s}},t.prototype.render=function(){return Ov(this.state.intl),k.createElement(pS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Nv,t}(k.PureComponent);const vS=gS;Xi("formatDate");Xi("formatTime");Xi("formatNumber");Xi("formatList");Xi("formatDisplayName");Rv("formatDate");Rv("formatTime");const yS="_chatPage_9ezu4_10",_S={chatPage:yS};var V={},Pv={},D={};Object.defineProperty(D,"__esModule",{value:!0});D.CONVERSATION_RATING_FROM_GUEST=D.PROBLEM_REPORT_FROM_GUEST=D.TRANSCRIPT_MAIL_REQUEST=D.INBOX_CONNECT_REQUEST=D.EVENT_TO_GUEST=D.NLU_REQUEST_EVENT=D.EXPERTS_DISCONNECTED=D.EXPERTS_DISCONNECT_REQUEST=D.EXPERTS_CONNECTED=D.EXPERTS_CONNECT_REQUEST=D.MESSAGE_TO_GUEST=D.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=D.MESSAGE_FROM_GUEST=D.GUEST_FEEDBACK_RESPONSE=D.GUEST_DISCONNECTED=D.GUEST_CONNECTED=D.TYPING_OFF=D.TYPING_ON=void 0;D.TYPING_ON="core.typing.on";D.TYPING_OFF="core.typing.off";D.GUEST_CONNECTED="core.guest.connected";D.GUEST_DISCONNECTED="core.guest.disconnected";D.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response";D.MESSAGE_FROM_GUEST="core.message.from.guest";D.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest";D.MESSAGE_TO_GUEST="core.message.to.guest";D.EXPERTS_CONNECT_REQUEST="core.experts.connect.request";D.EXPERTS_CONNECTED="core.experts.connected";D.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request";D.EXPERTS_DISCONNECTED="core.experts.disconnected";D.NLU_REQUEST_EVENT="core.nlu.request.event";D.EVENT_TO_GUEST="core.event.to.guest";D.INBOX_CONNECT_REQUEST="core.inbox.connect.request";D.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request";D.PROBLEM_REPORT_FROM_GUEST="core.problem.report.from.guest";D.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest";var Iv={};Object.defineProperty(Iv,"__esModule",{value:!0});var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});const ES=D,wS=(e,t)=>({type:ES.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:e,intent:t}});Hc.default=wS;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0});const SS=D,bS=e=>({type:SS.GUEST_CONNECTED,payload:{sessionId:e}});Gc.default=bS;var Vc={};Object.defineProperty(Vc,"__esModule",{value:!0});const xS=D,TS=e=>({type:xS.GUEST_DISCONNECTED,payload:{sessionId:e}});Vc.default=TS;var Wc={},la={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getStringRepresentationFromMessage=e.MessageTypeEnum=e.AudioMessage=e.FileMessage=e.ImageMessage=e.VideoMessage=e.MarkdownMessage=e.DetailMessage=e.TextMessage=e.Message=void 0;class t{constructor(h,c){H(this,"type");H(this,"sender");H(this,"quickReplies");this.type=h,this.sender=c,this.quickReplies=[]}addQuickReply(h,c){this.quickReplies.push({label:h,payload:c})}}e.Message=t;class n extends t{constructor(c,g){super(u.TEXT,g);H(this,"text");this.text=c}}e.TextMessage=n;class r extends t{constructor(c,g){super(u.DETAIL,g);H(this,"title");H(this,"subtitle");H(this,"text");H(this,"imageUrl");H(this,"itemUrl");H(this,"buttons");this.title=c,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(c){this.imageUrl=c}setItemUrl(c){this.itemUrl=c}setSubtitle(c){this.subtitle=c}setText(c){this.text=c}addButton(c){this.buttons.push(c)}}e.DetailMessage=r;class i extends t{constructor(c,g,m){super(u.MARKDOWN,m);H(this,"markdown");H(this,"excerpt");H(this,"className");this.markdown=c,this.excerpt=g,this.className=""}setClassName(c){this.className=c}}e.MarkdownMessage=i;class o extends t{constructor(c,g){super(u.VIDEO,g);H(this,"url");this.url=c}}e.VideoMessage=o;class s extends t{constructor(c,g){super(u.IMAGE,g);H(this,"url");this.url=c}}e.ImageMessage=s;class a extends t{constructor(c,g){super(u.FILE,g);H(this,"url");this.url=c}}e.FileMessage=a;class l extends t{constructor(c,g){super(u.AUDIO,g);H(this,"url");this.url=c}}e.AudioMessage=l;var u;(function(p){p.TEXT="TEXT",p.DETAIL="DETAIL",p.MARKDOWN="MARKDOWN",p.VIDEO="VIDEO",p.IMAGE="IMAGE",p.FILE="FILE",p.AUDIO="AUDIO"})(u=e.MessageTypeEnum||(e.MessageTypeEnum={}));const f=p=>{switch(p.type){case u.TEXT:return p.text;case u.DETAIL:const c=p;return`${c.title} // ${c.subtitle}`;case u.MARKDOWN:return p.excerpt;case u.VIDEO:return`Video Url: ${p.url}`;case u.IMAGE:return`Image Url: ${p.url}`;case u.FILE:return`File Url: ${p.url}`;case u.AUDIO:return`Audio Url: ${p.url}`;default:throw new Error("Unknown message type "+p.type)}};e.getStringRepresentationFromMessage=f})(la);var ua={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserType=e.PersonUser=e.GuestUser=e.BotUser=e.User=void 0;class t{constructor(a,l,u,f){H(this,"type");H(this,"id");H(this,"name");H(this,"avatar");this.type=a,this.id=l,this.name=u,this.avatar=f}}e.User=t;class n extends t{constructor(){super(o.BOT,null,"Chatbot","bot.svg")}}e.BotUser=n;class r extends t{constructor(){super(o.GUEST,null,"Guest","visitor.svg")}}e.GuestUser=r;class i extends t{constructor(a,l,u){super(o.PERSON,a,l,u)}}e.PersonUser=i;var o;(function(s){s.GUEST="GUEST",s.BOT="BOT",s.PERSON="PERSON"})(o=e.UserType||(e.UserType={}))})(ua);Object.defineProperty(Wc,"__esModule",{value:!0});const CS=la,kS=ua,OS=D,NS=e=>{const t=new CS.TextMessage(e,new kS.GuestUser);return{type:OS.MESSAGE_FROM_GUEST,message:t}};Wc.default=NS;var qc={};Object.defineProperty(qc,"__esModule",{value:!0});const RS=la,AS=ua,PS=D,IS=(e,t={})=>{const n=new RS.TextMessage(e,new AS.GuestUser);return{type:PS.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}};qc.default=IS;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});const DS=D,FS=(e,t)=>({type:DS.PROBLEM_REPORT_FROM_GUEST,payload:{actionId:e,problem:t}});Xc.default=FS;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});const MS=D,LS=e=>({type:MS.NLU_REQUEST_EVENT,event:e});Qc.default=LS;var Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});const BS=D,jS=e=>({type:BS.MESSAGE_TO_GUEST,message:e});Kc.default=jS;(function(e){var t=le&&le.__createBinding||(Object.create?function(g,m,E,v){v===void 0&&(v=E);var d=Object.getOwnPropertyDescriptor(m,E);(!d||("get"in d?!m.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return m[E]}}),Object.defineProperty(g,v,d)}:function(g,m,E,v){v===void 0&&(v=E),g[v]=m[E]}),n=le&&le.__setModuleDefault||(Object.create?function(g,m){Object.defineProperty(g,"default",{enumerable:!0,value:m})}:function(g,m){g.default=m}),r=le&&le.__importStar||function(g){if(g&&g.__esModule)return g;var m={};if(g!=null)for(var E in g)E!=="default"&&Object.prototype.hasOwnProperty.call(g,E)&&t(m,g,E);return n(m,g),m},i=le&&le.__exportStar||function(g,m){for(var E in g)E!=="default"&&!Object.prototype.hasOwnProperty.call(m,E)&&t(m,g,E)},o=le&&le.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.reportProblemFromGuest=e.feedbackFromGuestResponse=e.requestNLUEvent=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.sendMessageToGuest=e.guestDisconnected=e.guestConnected=e.ActionTypes=void 0,e.ActionTypes=r(D),i(Iv,e);const s=o(Hc);e.feedbackFromGuestResponse=s.default;const a=o(Gc);e.guestConnected=a.default;const l=o(Vc);e.guestDisconnected=l.default;const u=o(Wc);e.receiveTextMessageFromGuest=u.default;const f=o(qc);e.receiveTextMessageWithoutAnalysisFromGuest=f.default;const p=o(Xc);e.reportProblemFromGuest=p.default;const h=o(Qc);e.requestNLUEvent=h.default;const c=o(Kc);e.sendMessageToGuest=c.default})(Pv);var Dv={},Fv={};Object.defineProperty(Fv,"__esModule",{value:!0});var Mv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonTypeEnum=e.PostbackButton=e.UrlButton=e.Button=void 0;class t{constructor(s,a){H(this,"title");H(this,"type");this.title=s,this.type=a}}e.Button=t;class n extends t{constructor(a,l){super(a,i.WEB_URL);H(this,"url");this.url=l}}e.UrlButton=n;class r extends t{constructor(a,l){super(a,i.POSTBACK);H(this,"payload");this.payload=l}}e.PostbackButton=r;var i;(function(o){o.WEB_URL="web_url",o.POSTBACK="postback"})(i=e.ButtonTypeEnum||(e.ButtonTypeEnum={}))})(Mv);var Lv={};Object.defineProperty(Lv,"__esModule",{value:!0});var Bv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SatisfactionEnum=void 0,function(t){t.GOOD="GOOD",t.BAD="BAD"}(e.SatisfactionEnum||(e.SatisfactionEnum={}))})(Bv);(function(e){var t=le&&le.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=le&&le.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(Fv,e),n(Mv,e),n(Lv,e),n(Bv,e),n(la,e),n(ua,e)})(Dv);(function(e){var t=le&&le.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=le&&le.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(Pv,e),n(Dv,e)})(V);var jv={exports:{}};/*!
97
- Copyright (c) 2018 Jed Watson.
98
- Licensed under the MIT License (MIT), see
99
- http://jedwatson.github.io/classnames
100
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(jv);var $S=jv.exports;const P=ws($S),$v="%[a-f0-9]{2}",hh=new RegExp("("+$v+")|([^%]+?)","gi"),ph=new RegExp("("+$v+")+","gi");function vu(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],vu(n),vu(r))}function US(e){try{return decodeURIComponent(e)}catch{let t=e.match(hh)||[];for(let n=1;n<t.length;n++)e=vu(t,n).join(""),t=e.match(hh)||[];return e}}function zS(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=ph.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=US(n[0]);i!==n[0]&&(t[n[0]]=i)}n=ph.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function HS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return zS(e)}}function Uv(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}function GS(e,t){const n={};if(Array.isArray(t))for(const r of t){const i=Object.getOwnPropertyDescriptor(e,r);i!=null&&i.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){const o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}const VS=e=>e==null,WS=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),yu=Symbol("encodeFragmentIdentifier");function qS(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[fe(t,e),"[",i,"]"].join("")]:[...n,[fe(t,e),"[",fe(i,e),"]=",fe(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[fe(t,e),"[]"].join("")]:[...n,[fe(t,e),"[]=",fe(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[fe(t,e),":list="].join("")]:[...n,[fe(t,e),":list=",fe(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[fe(n,e),t,fe(i,e)].join("")]:[[r,fe(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,fe(t,e)]:[...n,[fe(t,e),"=",fe(r,e)].join("")]}}function XS(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const o=typeof r=="string"&&r.includes(e.arrayFormatSeparator),s=typeof r=="string"&&!o&&$t(r,e).includes(e.arrayFormatSeparator);r=s?$t(r,e):r;const a=o||s?r.split(e.arrayFormatSeparator).map(l=>$t(l,e)):r===null?r:$t(r,e);i[n]=a};case"bracket-separator":return(n,r,i)=>{const o=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!o){i[n]=r&&$t(r,e);return}const s=r===null?[]:r.split(e.arrayFormatSeparator).map(a=>$t(a,e));if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function zv(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function fe(e,t){return t.encode?t.strict?WS(e):encodeURIComponent(e):e}function $t(e,t){return t.decode?HS(e):e}function Hv(e){return Array.isArray(e)?e.sort():typeof e=="object"?Hv(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function Gv(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function QS(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function mh(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Zc(e){e=Gv(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Yc(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t},zv(t.arrayFormatSeparator);const n=XS(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replace(/\+/g," "):i;let[s,a]=Uv(o,"=");s===void 0&&(s=o),a=a===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:$t(a,t),n($t(s,t),a,r)}for(const[i,o]of Object.entries(r))if(typeof o=="object"&&o!==null)for(const[s,a]of Object.entries(o))o[s]=mh(a,t);else r[i]=mh(o,t);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,o)=>{const s=r[o];return s&&typeof s=="object"&&!Array.isArray(s)?i[o]=Hv(s):i[o]=s,i},Object.create(null))}function Vv(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},zv(t.arrayFormatSeparator);const n=s=>t.skipNull&&VS(e[s])||t.skipEmptyString&&e[s]==="",r=qS(t),i={};for(const[s,a]of Object.entries(e))n(s)||(i[s]=a);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const a=e[s];return a===void 0?"":a===null?fe(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?fe(s,t)+"[]":a.reduce(r(s),[]).join("&"):fe(s,t)+"="+fe(a,t)}).filter(s=>s.length>0).join("&")}function Wv(e,t){var i;t={decode:!0,...t};let[n,r]=Uv(e,"#");return n===void 0&&(n=e),{url:((i=n==null?void 0:n.split("?"))==null?void 0:i[0])??"",query:Yc(Zc(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:$t(r,t)}:{}}}function qv(e,t){t={encode:!0,strict:!0,[yu]:!0,...t};const n=Gv(e.url).split("?")[0]||"",r=Zc(e.url),i={...Yc(r,{sort:!1}),...e.query};let o=Vv(i,t);o&&(o=`?${o}`);let s=QS(e.url);if(e.fragmentIdentifier){const a=new URL(n);a.hash=e.fragmentIdentifier,s=t[yu]?a.hash:`#${e.fragmentIdentifier}`}return`${n}${o}${s}`}function Xv(e,t,n){n={parseFragmentIdentifier:!0,[yu]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=Wv(e,n);return qv({url:r,query:GS(i,t),fragmentIdentifier:o},n)}function KS(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Xv(e,r,n)}const _u=Object.freeze(Object.defineProperty({__proto__:null,exclude:KS,extract:Zc,parse:Yc,parseUrl:Wv,pick:Xv,stringify:Vv,stringifyUrl:qv},Symbol.toStringTag,{value:"Module"})),Qv=e=>t=>(e.payload.type!==V.ActionTypes.MESSAGE_FROM_GUEST&&t(V.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),ZS=e=>(t,n)=>{const{quickReplies:r}=n().chat,i=r.find(o=>e.toLocaleLowerCase().indexOf(o.label.toLocaleLowerCase())>-1);return t(i?Qv({...i,label:e}):V.receiveTextMessageFromGuest(e))},Jc="MESSAGE_TO_PARENT_PAGE",ef="RESTORE_PREVIOUS_CHAT_MESSAGES",tf="AUDIO_MESSAGE_FROM_USER",nf="ENABLE_SPEECH_SUPPORT",rf="ENABLE_BOT_REPLIES_VOTING_SUPPORT",of="ENABLE_TRANSCRIPT_EXPORT",YS="EXPORT_TRANSCRIPT",sf="RECEIVE_SPEECH_TRANSCRIPTION",af="SHOW_GENERAL_CONDITIONS",lf="ENABLE_CONVERSATION_RATING",JS="webclient.get.started",Kv="webclient.expand.window",Zv="webclient.transcript.pdf.download",eb=[Jc,ef,tf,nf,rf,of,YS,sf,af,lf],tb=e=>({type:tf,buffer:e}),nb=()=>({type:nf}),rb=()=>({type:rf}),ib=e=>({type:sf,transcription:e}),ob=e=>({type:of,methods:e}),sb=e=>({type:V.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),ab=()=>({type:af}),lb=()=>({type:Zv}),ub=({rating:e})=>({type:lf,payload:{rating:e}}),cb=(e,t)=>({type:V.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),fb=e=>V.requestNLUEvent(e),db=e=>({type:ef,messages:e}),hb=e=>{switch(e.type){case V.ButtonTypeEnum.WEB_URL:return Yv(e.url);case V.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},pb=e=>Yv(e),Yv=e=>({type:Jc,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var mb={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 Eu(e,t){function n(i,o,s){if(!(typeof document>"u")){s=go({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(s[f]=e.read(u,f),i===f)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",go({},o,{expires:-1}))},withAttributes:function(i){return Eu(this.converter,go({},this.attributes,i))},withConverter:function(i){return Eu(go({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var gh=Eu(mb,{path:"/"});let vo;const gb=new Uint8Array(16);function vb(){if(!vo&&(vo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vo(gb)}const we=[];for(let e=0;e<256;++e)we.push((e+256).toString(16).slice(1));function yb(e,t=0){return(we[e[t+0]]+we[e[t+1]]+we[e[t+2]]+we[e[t+3]]+"-"+we[e[t+4]]+we[e[t+5]]+"-"+we[e[t+6]]+we[e[t+7]]+"-"+we[e[t+8]]+we[e[t+9]]+"-"+we[e[t+10]]+we[e[t+11]]+we[e[t+12]]+we[e[t+13]]+we[e[t+14]]+we[e[t+15]]).toLowerCase()}const _b=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vh={randomUUID:_b};function wu(e,t,n){if(vh.randomUUID&&!t&&!e)return vh.randomUUID();e=e||{};const r=e.random||(e.rng||vb)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return yb(r)}const ca="CONNECT",uf="CONNECTING",cf="CONNECTED",ff="DISCONNECTED",df="RECONNECTED",hf="RESTORE_SESSION_ID",Jv="RESTART",Eb=[ca,uf,cf,ff,df,hf],ey=(e,t)=>(n,r)=>{const i=_u.parse(t),o=r().connection;let s=o.sessionId;s===void 0&&(s=wu());let a=o.userId;if(a===void 0){const l=gh.get("bf-webclient-userId");a=l||wu(),gh.set("bf-webclient-userId",a)}return i.sessionId=s,i.userId=a,n(wb(s,a,e,_u.stringify(i)))},wb=(e,t,n,r)=>({type:ca,sessionId:e,userId:t,clientName:n,querystrings:r}),Sb=e=>({type:hf,sessionId:e}),bb=()=>({type:uf}),xb=()=>({type:cf}),Tb=()=>({type:ff}),Cb=()=>({type:df}),kb=(e,t)=>n=>(n(Ob()),n(ey(e,t))),Ob=()=>({type:Jv});var Mn=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(Mn||{}),ty=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(ty||{});const Nb="_chatwindow_rkqb8_1",Rb="_chatcontent_rkqb8_12",yh={chatwindow:Nb,chatcontent:Rb},Ab="_messageContainer_s0d18_1",Pb="_messages_s0d18_10",_h={messageContainer:Ab,messages:Pb};function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}const Ib=["children","options"],Eh=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","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,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),wh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Db=["style","script"],Fb=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Mb=/mailto:/i,Lb=/\n{2,}$/,ny=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Bb=/^ *> ?/gm,jb=/^ {2,}\n/,$b=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ry=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,iy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Ub=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,zb=/^(?:\n *)*\n/,Hb=/\r\n?/g,Gb=/^\[\^([^\]]+)](:.*)\n/,Vb=/^\[\^([^\]]+)]/,Wb=/\f/g,qb=/^\s*?\[(x|\s)\]/,oy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ay=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Su=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,Xb=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ly=/^<!--[\s\S]*?(?:-->)/,Qb=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bu=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Kb=/^\{.*\}$/,Zb=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Yb=/^<([^ >]+@[^ >]+)>/,Jb=/^<([^ >]+:\/[^ >]+)>/,ex=/-([a-z])?/gi,uy=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,tx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,nx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,rx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ix=/(\[|\])/g,ox=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sx=/\t/g,ax=/^ *\| */,lx=/(^ *\||\| *$)/g,ux=/ *$/,cx=/^ *:-+: *$/,fx=/^ *:-+ *$/,dx=/^ *-+: *$/,hx=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,px=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,mx=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,gx=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,vx=/^\\([^0-9A-Za-z\s])/,yx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,_x=/^\n+/,Ex=/^([ \t]*)/,wx=/\\([^\\])/g,Sh=/ *\n+$/,Sx=/(?:^|\n)( *)$/,pf="(?:\\d+\\.)",mf="(?:[*+-])";function cy(e){return"( *)("+(e===1?pf:mf)+") +"}const fy=cy(1),dy=cy(2);function hy(e){return new RegExp("^"+(e===1?fy:dy))}const bx=hy(1),xx=hy(2);function py(e){return new RegExp("^"+(e===1?fy:dy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?pf:mf)+" )[^\\n]*)*(\\n|$)","gm")}const my=py(1),gy=py(2);function vy(e){const t=e===1?pf:mf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const yy=vy(1),_y=vy(2);function bh(e,t){const n=t===1,r=n?yy:_y,i=n?my:gy,o=n?bx:xx;return{t(s,a,l){const u=Sx.exec(l);return u&&(a.o||!a._&&!a.u)?r.exec(s=u[1]+s):null},i:j.HIGH,l(s,a,l){const u=n?+s[2]:void 0,f=s[0].replace(Lb,`
101
- `).match(i);let p=!1;return{p:f.map(function(h,c){const g=o.exec(h)[0].length,m=new RegExp("^ {1,"+g+"}","gm"),E=h.replace(m,"").replace(o,""),v=c===f.length-1,d=E.indexOf(`
102
-
103
- `)!==-1||v&&p;p=d;const y=l._,w=l.o;let S;l.o=!0,d?(l._=!1,S=E.replace(Sh,`
104
-
105
- `)):(l._=!0,S=E.replace(Sh,""));const b=a(S,l);return l._=y,l.o=w,b}),m:n,g:u}},h:(s,a,l)=>e(s.m?"ol":"ul",{key:l.k,start:s.g},s.p.map(function(u,f){return e("li",{key:f},a(u,l))}))}}const Tx=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Cx=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ey=[ny,ry,iy,oy,ay,sy,ly,uy,my,yy,gy,_y],kx=[...Ey,/^[^\n]+(?: \n|\n{2,})/,Su,bu];function Ox(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 Nx(e){return dx.test(e)?"right":cx.test(e)?"center":fx.test(e)?"left":null}function xh(e,t,n){const r=n.$;n.$=!0;const i=t(e.trim(),n);n.$=r;let o=[[]];return i.forEach(function(s,a){s.type==="tableSeparator"?a!==0&&a!==i.length-1&&o.push([]):(s.type!=="text"||i[a+1]!=null&&i[a+1].type!=="tableSeparator"||(s.v=s.v.replace(ux,"")),o[o.length-1].push(s))}),o}function Rx(e,t,n){n._=!0;const r=xh(e[1],t,n),i=e[2].replace(lx,"").split("|").map(Nx),o=function(s,a,l){return s.trim().split(`
106
- `).map(function(u){return xh(u,a,l)})}(e[3],t,n);return n._=!1,{S:i,A:o,L:r,type:"table"}}function Th(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Jt(e){return function(t,n){return n._?e.exec(t):null}}function en(e){return function(t,n){return n._||n.u?e.exec(t):null}}function Lt(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function Yr(e){return function(t){return e.exec(t)}}function Ax(e,t,n){if(t._||t.u||n&&!n.endsWith(`
107
- `))return null;let r="";e.split(`
108
- `).every(o=>!Ey.some(s=>s.test(o))&&(r+=o+`
109
- `,o.trim()));const i=r.trimEnd();return i==""?null:[r,i]}function nr(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function Ch(e){return e.replace(wx,"$1")}function Lo(e,t,n){const r=n._||!1,i=n.u||!1;n._=!0,n.u=!0;const o=e(t,n);return n._=r,n.u=i,o}function Px(e,t,n){const r=n._||!1,i=n.u||!1;n._=!1,n.u=!0;const o=e(t,n);return n._=r,n.u=i,o}function Ix(e,t,n){return n._=!1,e(t,n)}const Xa=(e,t,n)=>({v:Lo(t,e[1],n)});function Qa(){return{}}function Ka(){return null}function Dx(...e){return e.filter(Boolean).join(" ")}function Za(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}var j;function Fx(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||Ox,t.namedCodesToUnicode=t.namedCodesToUnicode?Ln({},wh,t.namedCodesToUnicode):wh;const n=t.createElement||k.createElement;function r(c,g,...m){const E=Za(t.overrides,`${c}.props`,{});return n(function(v,d){const y=Za(d,v);return y?typeof y=="function"||typeof y=="object"&&"render"in y?y:Za(d,`${v}.component`,v):v}(c,t.overrides),Ln({},g,E,{className:Dx(g==null?void 0:g.className,E.className)||void 0}),...m)}function i(c){let g=!1;t.forceInline?g=!0:t.forceBlock||(g=ox.test(c)===!1);const m=f(u(g?c:`${c.trimEnd().replace(_x,"")}
110
-
111
- `,{_:g}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const E=t.wrapper||(g?"span":"div");let v;if(m.length>1||t.forceWrapper)v=m;else{if(m.length===1)return v=m[0],typeof v=="string"?r("span",{key:"outer"},v):v;v=null}return k.createElement(E,{key:"outer"},v)}function o(c){const g=c.match(Fb);return g?g.reduce(function(m,E,v){const d=E.indexOf("=");if(d!==-1){const y=function(x){return x.indexOf("-")!==-1&&x.match(Qb)===null&&(x=x.replace(ex,function(T,I){return I.toUpperCase()})),x}(E.slice(0,d)).trim(),w=function(x){const T=x[0];return(T==='"'||T==="'")&&x.length>=2&&x[x.length-1]===T?x.slice(1,-1):x}(E.slice(d+1).trim()),S=Eh[y]||y,b=m[S]=function(x,T){return x==="style"?T.split(/;\s?/).reduce(function(I,R){const W=R.slice(0,R.indexOf(":"));return I[W.replace(/(-[a-z])/g,pe=>pe[1].toUpperCase())]=R.slice(W.length+1).trim(),I},{}):x==="href"?nr(T):(T.match(Kb)&&(T=T.slice(1,T.length-1)),T==="true"||T!=="false"&&T)}(y,w);typeof b=="string"&&(Su.test(b)||bu.test(b))&&(m[S]=k.cloneElement(i(b.trim()),{key:v}))}else E!=="style"&&(m[Eh[E]||E]=!0);return m},{}):null}const s=[],a={},l={blockQuote:{t:Lt(ny),i:j.HIGH,l:(c,g,m)=>({v:g(c[0].replace(Bb,""),m)}),h:(c,g,m)=>r("blockquote",{key:m.k},g(c.v,m))},breakLine:{t:Yr(jb),i:j.HIGH,l:Qa,h:(c,g,m)=>r("br",{key:m.k})},breakThematic:{t:Lt($b),i:j.HIGH,l:Qa,h:(c,g,m)=>r("hr",{key:m.k})},codeBlock:{t:Lt(iy),i:j.MAX,l:c=>({v:c[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(c,g,m)=>r("pre",{key:m.k},r("code",Ln({},c.O,{className:c.M?`lang-${c.M}`:""}),c.v))},codeFenced:{t:Lt(ry),i:j.MAX,l:c=>({O:o(c[3]||""),v:c[4],M:c[2]||void 0,type:"codeBlock"})},codeInline:{t:en(Ub),i:j.LOW,l:c=>({v:c[2]}),h:(c,g,m)=>r("code",{key:m.k},c.v)},footnote:{t:Lt(Gb),i:j.MAX,l:c=>(s.push({I:c[2],j:c[1]}),{}),h:Ka},footnoteReference:{t:Jt(Vb),i:j.HIGH,l:c=>({v:c[1],B:`#${t.slugify(c[1])}`}),h:(c,g,m)=>r("a",{key:m.k,href:nr(c.B)},r("sup",{key:m.k},c.v))},gfmTask:{t:Jt(qb),i:j.HIGH,l:c=>({R:c[1].toLowerCase()==="x"}),h:(c,g,m)=>r("input",{checked:c.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:Lt(t.enforceAtxHeadings?sy:oy),i:j.HIGH,l:(c,g,m)=>({v:Lo(g,c[2],m),T:t.slugify(c[2]),C:c[1].length}),h:(c,g,m)=>r(`h${c.C}`,{id:c.T,key:m.k},g(c.v,m))},headingSetext:{t:Lt(ay),i:j.MAX,l:(c,g,m)=>({v:Lo(g,c[1],m),C:c[2]==="="?1:2,type:"heading"})},htmlComment:{t:Yr(ly),i:j.HIGH,l:()=>({}),h:Ka},image:{t:en(Cx),i:j.HIGH,l:c=>({D:c[1],B:Ch(c[2]),F:c[3]}),h:(c,g,m)=>r("img",{key:m.k,alt:c.D||void 0,title:c.F||void 0,src:nr(c.B)})},link:{t:Jt(Tx),i:j.LOW,l:(c,g,m)=>({v:Px(g,c[1],m),B:Ch(c[2]),F:c[3]}),h:(c,g,m)=>r("a",{key:m.k,href:nr(c.B),title:c.F},g(c.v,m))},linkAngleBraceStyleDetector:{t:Jt(Jb),i:j.MAX,l:c=>({v:[{v:c[1],type:"text"}],B:c[1],type:"link"})},linkBareUrlDetector:{t:(c,g)=>g.N?null:Jt(Zb)(c,g),i:j.MAX,l:c=>({v:[{v:c[1],type:"text"}],B:c[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Jt(Yb),i:j.MAX,l(c){let g=c[1],m=c[1];return Mb.test(m)||(m="mailto:"+m),{v:[{v:g.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:bh(r,1),unorderedList:bh(r,2),newlineCoalescer:{t:Lt(zb),i:j.LOW,l:Qa,h:()=>`
112
- `},paragraph:{t:Ax,i:j.LOW,l:Xa,h:(c,g,m)=>r("p",{key:m.k},g(c.v,m))},ref:{t:Jt(tx),i:j.MAX,l:c=>(a[c[1]]={B:c[2],F:c[4]},{}),h:Ka},refImage:{t:en(nx),i:j.MAX,l:c=>({D:c[1]||void 0,P:c[2]}),h:(c,g,m)=>r("img",{key:m.k,alt:c.D,src:nr(a[c.P].B),title:a[c.P].F})},refLink:{t:Jt(rx),i:j.MAX,l:(c,g,m)=>({v:g(c[1],m),Z:g(c[0].replace(ix,"\\$1"),m),P:c[2]}),h:(c,g,m)=>a[c.P]?r("a",{key:m.k,href:nr(a[c.P].B),title:a[c.P].F},g(c.v,m)):r("span",{key:m.k},g(c.Z,m))},table:{t:Lt(uy),i:j.HIGH,l:Rx,h:(c,g,m)=>r("table",{key:m.k},r("thead",null,r("tr",null,c.L.map(function(E,v){return r("th",{key:v,style:Th(c,v)},g(E,m))}))),r("tbody",null,c.A.map(function(E,v){return r("tr",{key:v},E.map(function(d,y){return r("td",{key:y,style:Th(c,y)},g(d,m))}))})))},tableSeparator:{t:function(c,g){return g.$?(g._=!0,ax.exec(c)):null},i:j.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Yr(yx),i:j.MIN,l:c=>({v:c[0].replace(Xb,(g,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:g)}),h:c=>c.v},textBolded:{t:en(hx),i:j.MED,l:(c,g,m)=>({v:g(c[2],m)}),h:(c,g,m)=>r("strong",{key:m.k},g(c.v,m))},textEmphasized:{t:en(px),i:j.LOW,l:(c,g,m)=>({v:g(c[2],m)}),h:(c,g,m)=>r("em",{key:m.k},g(c.v,m))},textEscaped:{t:en(vx),i:j.HIGH,l:c=>({v:c[1],type:"text"})},textMarked:{t:en(mx),i:j.LOW,l:Xa,h:(c,g,m)=>r("mark",{key:m.k},g(c.v,m))},textStrikethroughed:{t:en(gx),i:j.LOW,l:Xa,h:(c,g,m)=>r("del",{key:m.k},g(c.v,m))}};t.disableParsingRawHTML!==!0&&(l.htmlBlock={t:Yr(Su),i:j.HIGH,l(c,g,m){const[,E]=c[3].match(Ex),v=new RegExp(`^${E}`,"gm"),d=c[3].replace(v,""),y=(w=d,kx.some(T=>T.test(w))?Ix:Lo);var w;const S=c[1].toLowerCase(),b=Db.indexOf(S)!==-1;m.N=m.N||S==="a";const x=b?c[3]:y(g,d,m);return m.N=!1,{O:o(c[2]),v:x,G:b,H:b?S:c[1]}},h:(c,g,m)=>r(c.H,Ln({key:m.k},c.O),c.G?c.v:g(c.v,m))},l.htmlSelfClosing={t:Yr(bu),i:j.HIGH,l:c=>({O:o(c[2]||""),H:c[1]}),h:(c,g,m)=>r(c.H,Ln({},c.O,{key:m.k}))});const u=function(c){let g=Object.keys(c);function m(E,v){let d=[],y="";for(;E;){let w=0;for(;w<g.length;){const S=g[w],b=c[S],x=b.t(E,v,y);if(x){const T=x[0];E=E.substring(T.length);const I=b.l(x,m,v);I.type==null&&(I.type=S),d.push(I),y=T;break}w++}}return d}return g.sort(function(E,v){let d=c[E].i,y=c[v].i;return d!==y?d-y:E<v?-1:1}),function(E,v){return m(function(d){return d.replace(Hb,`
113
- `).replace(Wb,"").replace(sx," ")}(E),v)}}(l),f=(p=function(c){return function(g,m,E){return c[g.type].h(g,m,E)}}(l),function c(g,m={}){if(Array.isArray(g)){const E=m.k,v=[];let d=!1;for(let y=0;y<g.length;y++){m.k=y;const w=c(g[y],m),S=typeof w=="string";S&&d?v[v.length-1]+=w:w!==null&&v.push(w),d=S}return m.k=E,v}return p(g,c,m)});var p;const h=i(e);return s.length?r("div",null,h,r("footer",{key:"footer"},s.map(function(c){return r("div",{id:t.slugify(c.j),key:c.j},c.j,f(u(c.I,{_:!0})))}))):h}(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"})(j||(j={}));const Hn=e=>{let{children:t,options:n}=e,r=function(i,o){if(i==null)return{};var s,a,l={},u=Object.keys(i);for(a=0;a<u.length;a++)o.indexOf(s=u[a])>=0||(l[s]=i[s]);return l}(e,Ib);return k.cloneElement(Fx(t,n),r)};var wy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},kh=Ht.createContext&&Ht.createContext(wy),vn=globalThis&&globalThis.__assign||function(){return vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},vn.apply(this,arguments)},Mx=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Sy(e){return e&&e.map(function(t,n){return Ht.createElement(t.tag,vn({key:n},t.attr),Sy(t.child))})}function by(e){return function(t){return Ht.createElement(Lx,vn({attr:vn({},e.attr)},t),Sy(e.child))}}function Lx(e){var t=function(n){var r=e.attr,i=e.size,o=e.title,s=Mx(e,["attr","size","title"]),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),Ht.createElement("svg",vn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:vn(vn({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Ht.createElement("title",null,o),e.children)};return kh!==void 0?Ht.createElement(kh.Consumer,null,function(n){return t(n)}):t(wy)}function Bx(e){return by({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"}}]})(e)}function jx(e){return by({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"}}]})(e)}const Zt=()=>{const e=aa();return n=>{const r=e.formatMessage({id:n});return r===n?void 0:r}},$x="_generalConditionsContainer_pktqp_1",Ux="_generalConditions_pktqp_1",zx="_generalConditionsHeader_pktqp_15",Hx="_generalConditionsBody_pktqp_25",Gx="_generalConditionsAccept_pktqp_33",Jr={generalConditionsContainer:$x,generalConditions:Ux,generalConditionsHeader:zx,generalConditionsBody:Hx,generalConditionsAccept:Gx},Vx="general-conditions.header",Wx="general-conditions.body",Oh="general-conditions.accept-conditions-note",qx=()=>{const e=Zt(),[t,n]=k.useState(!1),r=()=>n(!t),i=a=>{a.key==="ArrowDown"||a.key==="ArrowRight"?n(!0):a.key==="ArrowUp"||a.key==="ArrowLeft"||a.key==="Escape"?n(!1):(a.key==="Enter"||a.key==="Space"||a.key===" ")&&r()},o=e(Vx),s=e(Oh);return _.jsxs("div",{className:P(Jr.generalConditionsContainer,"chat__generalConditions"),children:[!!(o!=null&&o.length)&&_.jsxs("div",{className:Jr.generalConditions,children:[_.jsxs("div",{role:"button",onClick:r,onKeyDown:i,tabIndex:0,className:P(Jr.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":t?"true":"false","aria-pressed":t?"true":"false",children:[_.jsx(Hn,{children:o}),t?_.jsx(jx,{}):_.jsx(Bx,{})]}),_.jsx("div",{className:P(Jr.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:t&&_.jsx(Hn,{children:e(Wx)||""})})]}),!!(s!=null&&s.length)&&_.jsx("div",{className:P(Jr.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:_.jsx(Hn,{children:e(Oh)||""})})]})},Xx="_messageBot_qwgtg_5",Qx="_messageUser_qwgtg_12",Kx="_avatar_qwgtg_20",Zx="_bubble_qwgtg_26",Yx="_bubbleContent_qwgtg_33",Jx="_bubbleLeft_qwgtg_118",eT="_leftText_qwgtg_124",tT="_bubbleRight_qwgtg_131",nT="_rightText_qwgtg_136",tt={messageBot:Xx,messageUser:Qx,avatar:Kx,bubble:Zx,bubbleContent:Yx,bubbleLeft:Jx,leftText:eT,bubbleRight:tT,rightText:nT},rT="_problemReport_39r57_1",iT="_problemReportIcon_39r57_7",oT="_problemReportIconActive_39r57_13",sT="_problemReportIconInactive_39r57_21",ei={problemReport:rT,problemReportIcon:iT,problemReportIconActive:oT,problemReportIconInactive:sT},aT=({reported:e,onReport:t})=>{const n=Zt(),r=o=>()=>t(o),i=o=>s=>{s.key==="Enter"&&t(o)};return _.jsx("div",{className:ei.problemReport,children:e?_.jsx("div",{role:"button",onClick:r(null),onKeyDown:i(null),tabIndex:0,className:P(ei.problemReportIcon,"chat__problemReportIcon","chat_problemReportIcon",ei.problemReportIconActive,"chat__problemReportIcon-active","chat_problemReportIcon-active"),children:_.jsx("img",{src:"problem-report-active.svg",title:n("problem-report.action.unmark"),alt:"Report"})}):_.jsx("div",{role:"button",onClick:r("unspecified"),onKeyDown:i("unspecified"),tabIndex:0,className:P(ei.problemReportIcon,"chat_problemReportIcon",ei.problemReportIconInactive,"chat_problemReportIcon-inactive"),children:_.jsx("img",{src:"problem-report-inactive.svg",title:n("problem-report.action.mark"),alt:"Report"})})})},lT=({message:e,problemReportingEnabled:t,children:n,onProblemReport:r})=>{var s;const i=Zt(),o=e.sender.type===V.UserType.BOT;return _.jsxs("li",{className:P(tt.messageBot,"chat__bubbleContainer",o?"chat__botBubbleContainer":"chat__agentBubbleContainer"),children:[_.jsx("img",{className:P(tt.avatar,"chat__avatar",o?"chat__botAvatar":"chat__agentAvatar","chat_avatar",o?"chat_botAvatar":"chat_agentAvatar"),src:`${e.sender.avatar}`,alt:o?"Bot":"Agent",referrerPolicy:"no-referrer"}),_.jsx("div",{className:P(tt.bubble,tt.bubbleLeft,"chat__bubble",o?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":i(o?"bot-bubble.label":"agent-bubble.label"),children:_.jsx("div",{className:P(tt.leftText),children:n})}),t&&_.jsx(aT,{reported:!!((s=e.problemReport)!=null&&s.length),onReport:r})]})},uT="_button_1op7j_14",cT="_buttonDefault_1op7j_26",fT="_buttonPrimary_1op7j_40",Me={button:uT,buttonDefault:cT,buttonPrimary:fT},dT="_imageContainer_11psw_1",hT="_title_11psw_10",pT="_subtitle_11psw_15",mT="_buttons_11psw_20",gT="_button_11psw_20",vT="_image_11psw_1",yT="_video_container_11psw_52",_T="_video_11psw_52",ET="_only_11psw_68",Fe={imageContainer:dT,title:hT,subtitle:pT,buttons:mT,button:gT,image:vT,video_container:yT,video:_T,only:ET},wT=({buttons:e,onButtonClick:t})=>_.jsx("div",{className:P(Fe.buttons,"chat__bubbleButtons"),children:e.map((n,r)=>_.jsx("button",{className:P(Fe.button,Me.button,"chat__bubbleButton"),onClick:()=>t(n),children:n.title},r))});var xy={},gf={},vf={};Object.defineProperty(vf,"__esModule",{value:!0});var ST=k,bT=xT(ST);function xT(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}vf.default=function(e,t,n){return bT.createElement("a",{href:e,key:n},t)};var yf={};Object.defineProperty(yf,"__esModule",{value:!0});yf.default=function(e){return e};var _f={},Ya,Nh;function TT(){return Nh||(Nh=1,Ya=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ya}var Ja,Rh;function CT(){return Rh||(Rh=1,Ja=/[\0-\x1F\x7F-\x9F]/),Ja}var el,Ah;function kT(){return Ah||(Ah=1,el=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),el}var tl,Ph;function OT(){return Ph||(Ph=1,tl=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),tl}var nl,Ih;function NT(){return Ih||(Ih=1,nl=function(e){var t={};t.src_Any=TT().source,t.src_Cc=CT().source,t.src_Z=kT().source,t.src_P=OT().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),nl}function xu(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function fa(e){return Object.prototype.toString.call(e)}function RT(e){return fa(e)==="[object String]"}function AT(e){return fa(e)==="[object Object]"}function PT(e){return fa(e)==="[object RegExp]"}function Dh(e){return fa(e)==="[object Function]"}function IT(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Ty={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function DT(e){return Object.keys(e||{}).reduce(function(t,n){return t||Ty.hasOwnProperty(n)},!1)}var FT={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},MT="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]",LT="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function BT(e){e.__index__=-1,e.__text_cache__=""}function jT(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Fh(){return function(e,t){t.normalize(e)}}function ps(e){var t=e.re=NT()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(MT),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){var l=e.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(e.__compiled__[a]=u,AT(l)){PT(l.validate)?u.validate=jT(l.validate):Dh(l.validate)?u.validate=l.validate:o(a,l),Dh(l.normalize)?u.normalize=l.normalize:l.normalize?o(a,l):u.normalize=Fh();return}if(RT(l)){i.push(a);return}o(a,l)}}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:Fh()};var s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(IT).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),BT(e)}function $T(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Mh(e,t){var n=new $T(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function st(e,t){if(!(this instanceof st))return new st(e,t);t||DT(e)&&(t=e,e={}),this.__opts__=xu({},Ty,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=xu({},FT,e),this.__compiled__={},this.__tlds__=LT,this.__tlds_replaced__=!1,this.re={},ps(this)}st.prototype.add=function(t,n){return this.__schemas__[t]=n,ps(this),this};st.prototype.set=function(t){return this.__opts__=xu(this.__opts__,t),this};st.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,r,i,o,s,a,l,u,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};st.prototype.pretest=function(t){return this.re.pretest.test(t)};st.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};st.prototype.match=function(t){var n=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(Mh(this,n)),n=this.__last_index__);for(var i=n?t.slice(n):t;this.test(i);)r.push(Mh(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};st.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),ps(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ps(this),this)};st.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};st.prototype.onCompile=function(){};var UT=st;const zT=["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","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"];Object.defineProperty(_f,"__esModule",{value:!0});var HT=UT,GT=Cy(HT),VT=zT,WT=Cy(VT);function Cy(e){return e&&e.__esModule?e:{default:e}}var ky=new GT.default;ky.tlds(WT.default);_f.default=function(e){return ky.match(e)};var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0});Ef.default=function(e){return e};Object.defineProperty(gf,"__esModule",{value:!0});var qT=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),XT=k,ti=r2(XT),QT=vf,KT=da(QT),ZT=yf,YT=da(ZT),JT=_f,e2=da(JT),t2=Ef,n2=da(t2);function da(e){return e&&e.__esModule?e:{default:e}}function r2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function s2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Oy=function(e){s2(t,e);function t(){return i2(this,t),o2(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return qT(t,[{key:"parseString",value:function(r){var i=this;if(r==="")return r;var o=this.props.matchDecorator(r);if(!o)return r;var s=[],a=0;return o.forEach(function(l,u){l.index>a&&s.push(r.substring(a,l.index));var f=i.props.hrefDecorator(l.url),p=i.props.textDecorator(l.text),h=i.props.componentDecorator(f,p,u);s.push(h),a=l.lastIndex}),r.length>a&&s.push(r.substring(a)),s.length===1?s[0]:s}},{key:"parse",value:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof r=="string"?this.parseString(r):ti.isValidElement(r)&&r.type!=="a"&&r.type!=="button"?ti.cloneElement(r,{key:o},this.parse(r.props.children)):Array.isArray(r)?r.map(function(s,a){return i.parse(s,a)}):r}},{key:"render",value:function(){return ti.createElement(ti.Fragment,null,this.parse(this.props.children))}}]),t}(ti.Component);Oy.defaultProps={componentDecorator:KT.default,hrefDecorator:YT.default,matchDecorator:e2.default,textDecorator:n2.default};gf.default=Oy;Object.defineProperty(xy,"__esModule",{value:!0});var a2=gf,l2=u2(a2);function u2(e){return e&&e.__esModule?e:{default:e}}var c2=xy.default=l2.default;const f2="_text_1k7aq_1",d2={text:f2},Ny=({text:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=(i,o,s)=>_.jsx("a",{onClick:n(i),role:"button",children:o},s);return _.jsx("div",{children:e.split(`
114
- `).map((i,o)=>_.jsxs("span",{className:d2.text,children:[_.jsx(c2,{componentDecorator:r,children:i}),_.jsx("br",{})]},o))})},h2=({subtitle:e,onLinkClick:t})=>e?_.jsx("div",{className:Fe.subtitle,children:_.jsx(Ny,{text:e,onLinkClick:t})}):null,Lh="newtab#",Ry=({markdown:e,onLinkClick:t})=>{const n=i=>o=>(o.preventDefault(),i&&t(i),!1),r=({title:i,href:o,children:s})=>o.indexOf(Lh)===0?_.jsx("a",{href:o.slice(Lh.length),title:i,target:"_blank",rel:"noopener noreferrer",children:s}):_.jsx("a",{onClick:n(o),title:i,children:s});return _.jsx(Hn,{options:{overrides:{a:r}},children:e})},p2=({text:e,onLinkClick:t})=>e?_.jsx("div",{children:_.jsx(Ry,{markdown:e,onLinkClick:t})}):null,m2=({title:e})=>e?_.jsx("h1",{className:Fe.title,children:e}):null,g2=({title:e,text:t,subtitle:n,buttons:r,onButtonClick:i,onLinkClick:o})=>(e==null?void 0:e.length)||(t==null?void 0:t.length)||(n==null?void 0:n.length)||(r==null?void 0:r.length)?_.jsxs("div",{className:P(tt.bubbleContent),children:[_.jsx(m2,{title:e}),_.jsx(p2,{text:t,onLinkClick:o}),_.jsx(h2,{subtitle:n,onLinkClick:o}),_.jsx(wT,{buttons:r,onButtonClick:i})]}):null,v2=({alt:e,imageUrl:t,itemUrl:n,hasBody:r})=>t?n?n.indexOf("youtube.com")>-1?_.jsx("div",{className:Fe.video_container,children:_.jsx("iframe",{className:P(Fe.video,{[Fe.only]:!r}),title:"Youtube",width:"100%",src:n+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):_.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:_.jsx("div",{className:Fe.imageContainer,children:_.jsx("img",{className:P(Fe.image,{[Fe.only]:!r}),src:t,alt:e})})}):_.jsx("div",{className:Fe.imageContainer,children:_.jsx("img",{className:P(Fe.image,{[Fe.only]:!r}),src:t,alt:e})}):null,y2=({title:e,text:t,subtitle:n,imageUrl:r,itemUrl:i,buttons:o,onButtonClick:s,onLinkClick:a})=>{const l=!!(e!=null&&e.length)||!!(t!=null&&t.length)||!!(n!=null&&n.length)||!!(o!=null&&o.length);return _.jsxs("div",{className:P(Fe.detailMessage),children:[_.jsx(v2,{hasBody:l,imageUrl:r,itemUrl:i,alt:e||n}),l&&_.jsx(g2,{title:e,text:t,subtitle:n,buttons:o,onLinkClick:a,onButtonClick:s})]})},_2=({children:e})=>{const t=Zt();return _.jsx("li",{className:P(tt.messageUser,"chat__bubbleContainer","chat__guestBubbleContainer"),children:_.jsx("div",{className:P(tt.bubble,tt.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":t("guest-bubble.label"),children:_.jsx("div",{className:P(tt.rightText),children:e})})})},E2=({markdown:e,className:t,onLinkClick:n})=>_.jsx("div",{className:P(tt.bubbleContent,t),children:_.jsx(Ry,{markdown:e,onLinkClick:n})}),w2=({text:e,onLinkClick:t})=>_.jsx("div",{className:tt.bubbleContent,children:_.jsx(Ny,{text:e,onLinkClick:t})}),S2=({message:e,problemReportingEnabled:t,onProblemReport:n,onButtonClick:r,onLinkClick:i})=>{const o=b2(e,r,i);switch(e.sender.type){case V.UserType.GUEST:return _.jsx(_2,{children:o});default:const s=a=>n(e._id,a);return _.jsx(lT,{message:e,problemReportingEnabled:t,onProblemReport:s,children:o})}},b2=(e,t,n)=>{switch(e.type){case V.MessageTypeEnum.TEXT:const r=e;return _.jsx(w2,{text:r.text,onLinkClick:n});case V.MessageTypeEnum.DETAIL:const i=e;return _.jsx(y2,{title:i.title,text:i.text,subtitle:i.subtitle,imageUrl:i.imageUrl,itemUrl:i.itemUrl,buttons:i.buttons,onButtonClick:t,onLinkClick:n});case V.MessageTypeEnum.MARKDOWN:const o=e;return _.jsx(E2,{markdown:o.markdown,className:o.className,onLinkClick:n})}},x2=(e,t)=>e.message._id===t.message._id&&e.message.problemReport===t.message.problemReport&&e.problemReportingEnabled===t.problemReportingEnabled,T2=Ht.memo(S2,x2),C2="_ticontainer_cbe81_1",k2="_tiblock_cbe81_6",O2="_tidot_cbe81_12",N2="_mercuryTypingAnimation_cbe81_1",ni={ticontainer:C2,tiblock:k2,tidot:O2,mercuryTypingAnimation:N2},R2=({isTyping:e=!1})=>_.jsx("div",{className:ni.ticontainer,children:_.jsx("div",{className:ni.tiblock,children:e?_.jsxs(_.Fragment,{children:[_.jsx("div",{className:P(ni.tidot,"chat__typingIndicator")}),_.jsx("div",{className:P(ni.tidot,"chat__typingIndicator")}),_.jsx("div",{className:P(ni.tidot,"chat__typingIndicator")})]}):null})}),A2=({messages:e,isBotTyping:t,showGeneralConditions:n,problemReportingEnabled:r,onProblemReport:i,onButtonClick:o,onLinkClick:s})=>{const a=k.useRef(!0),l=k.useRef(null);return k.useEffect(()=>{var u,f;e.length&&a.current?((u=l.current)==null||u.scrollIntoView({behavior:"instant",block:"end"}),a.current=!1):(f=l.current)==null||f.scrollIntoView({behavior:"smooth",block:"end"})},[e,t,a]),_.jsxs("div",{className:P(_h.messageContainer,"chat__messageContainer"),id:"MessageContainer",role:"log","aria-live":"polite",children:[n&&_.jsx(qx,{}),_.jsx("ul",{className:_h.messages,children:e.map(u=>_.jsx(T2,{message:u,problemReportingEnabled:r,onButtonClick:o,onLinkClick:s,onProblemReport:i},u._id))}),_.jsx(R2,{isTyping:t}),_.jsx("div",{ref:l})]})},P2="_container_1re3f_1",I2={container:P2},D2=({title:e,href:t,children:n})=>_.jsx("a",{href:t,title:e,target:"_blank",rel:"noopener noreferrer",children:n}),F2=()=>{const t=Zt()("powered-by");return t&&t.length?_.jsx("div",{className:P(I2.container,"chat__poweredBy"),children:_.jsx(Hn,{options:{overrides:{a:D2}},children:t})}):null},M2="_container_1f2ah_1",L2="_containerOpen_1f2ah_40",B2="_containerClose_1f2ah_44",j2="_formContainer_1f2ah_48",$2="_emailInput_1f2ah_53",U2="_description_1f2ah_82",z2="_actions_1f2ah_87",H2="_validationError_1f2ah_97",G2="_submitted_1f2ah_104",dt={container:M2,containerOpen:L2,"slide-in":"_slide-in_1f2ah_1",containerClose:B2,"slide-out":"_slide-out_1f2ah_1",formContainer:j2,emailInput:$2,description:U2,actions:z2,validationError:H2,submitted:G2},V2=({visible:e,methods:t,onEmailExport:n,onPdfExport:r,onClose:i})=>{const o=Zt(),[s,a]=k.useState(void 0),[l,u]=k.useState(!1),[f,p]=k.useState(!1),[h,c]=k.useState(void 0),g=k.useRef(null);k.useEffect(()=>{var d;e?((d=g.current)==null||d.focus(),u(!1),p(!1),a(e)):s===!0&&a(!1)},[e,s]);const m=d=>{d.preventDefault(),h&&h.length>0&&(n(h),u(!0),setTimeout(i,3*1e3))},E=d=>{const y=d.target.value.trim(),w=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(y);c(w?y:"")},v=()=>{p(!0),r(),setTimeout(i,3*1e3)};return _.jsxs("div",{className:P(dt.container,{[dt.containerOpen]:s===!0,[dt.containerClose]:s===!1}),children:[t.pdf&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:o("export-transcript.pdf.title")}),_.jsx(Hn,{className:dt.description,children:o("export-transcript.pdf.description")||""}),_.jsxs("div",{className:dt.actions,children:[_.jsx("button",{type:"button",className:P(Me.button,Me.buttonDefault),onClick:i,children:o("export-transcript.pdf.cancel")}),_.jsx("button",{className:P(Me.button,Me.buttonPrimary),onClick:v,disabled:f,children:o("export-transcript.pdf.download")})]})]}),t.email&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:o("export-transcript.email.title")}),_.jsx(Hn,{className:dt.description,children:o("export-transcript.email.description")||""}),_.jsxs("form",{onSubmit:m,className:dt.formContainer,children:[_.jsxs("div",{children:[_.jsx("input",{disabled:l,ref:g,type:"email",placeholder:o("export-transcript.email.placeholder"),className:dt.emailInput,onChange:E}),(h==null?void 0:h.length)===0?_.jsx("div",{className:dt.validationError,children:o("export-transcript.email.invalid")}):null]}),_.jsxs("div",{className:dt.actions,children:[_.jsx("button",{type:"button",className:P(Me.button,Me.buttonDefault),onClick:i,children:o("export-transcript.email.cancel")}),_.jsx("button",{type:"submit",disabled:l||h===void 0||h.length===0,className:P(Me.button,Me.buttonPrimary),children:o("export-transcript.email.send")})]})]}),l&&_.jsx("div",{className:dt.submitted,children:o("export-transcript.email.success")})]})]})},W2="_callToActionContainer_1osrl_1",q2="_callToActionTitle_1osrl_24",X2="_rateOverlay_1osrl_31",Q2="_body_1osrl_60",K2="_rateOverlayOpen_1osrl_84",Z2="_rateOverlayClose_1osrl_88",Y2="_footer_1osrl_92",J2="_actions_1osrl_107",eC="_bubbles_1osrl_119",tC="_rateFeedbackBotBubble_1osrl_146",nC="_rateFeedbackGuestBubble_1osrl_152",rC="_avatar_1osrl_158",iC="_fadeInLeft_1osrl_1",oC="_bubble_1osrl_119",sC="_appear_1osrl_1",aC="_botBubble_1osrl_184",lC="_guestBubble_1osrl_194",uC="_rateText_1osrl_210",cC="_stars_1osrl_215",fC="_starsSmall_1osrl_228",dC="_starsLarge_1osrl_232",hC="_star_1osrl_215",pC="_starReadonly_1osrl_249",mC="_starIcon_1osrl_257",gC="_starsDescriptionContainer_1osrl_275",vC="_starsDescription_1osrl_275",ne={callToActionContainer:W2,"append-animate":"_append-animate_1osrl_1",callToActionTitle:q2,rateOverlay:X2,body:Q2,rateOverlayOpen:K2,"slide-in":"_slide-in_1osrl_1",rateOverlayClose:Z2,"slide-out":"_slide-out_1osrl_1",footer:Y2,actions:J2,bubbles:eC,rateFeedbackBotBubble:tC,rateFeedbackGuestBubble:nC,avatar:rC,fadeInLeft:iC,bubble:oC,appear:sC,botBubble:aC,guestBubble:lC,rateText:uC,stars:cC,starsSmall:fC,starsLarge:dC,star:hC,starReadonly:pC,starIcon:mC,starsDescriptionContainer:gC,starsDescription:vC},yC=({value:e,index:t,count:n,readonly:r,onHover:i,onClick:o})=>{const s=a=>{o&&a.key==="Enter"&&o()};return _.jsx("li",{className:P(ne.star,{[ne.starReadonly]:r},"chat__conversationRating__star"),children:_.jsx("div",{role:"radio","aria-checked":e>t?"true":"false","aria-posinset":t+1,"aria-setsize":n,tabIndex:0,onMouseOver:i,onKeyDown:s,onClick:o,children:_.jsx("span",{role:"img","aria-label":"Star",className:P(ne.starIcon),children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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"})})})})})},Bh=5,Ay=({value:e,size:t,readonly:n=!1,onChange:r})=>{const[i,o]=k.useState(void 0),s=()=>{o(void 0)},a=u=>()=>{if(!n){const f=u+1;o(f)}},l=u=>()=>{r&&!n&&(r(u===0&&e===1?0:u+1),o(void 0))};return _.jsx("ul",{tabIndex:0,role:"radiogroup",className:P(ne.stars,{[ne.starsSmall]:t==="small",[ne.starsLarge]:t==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:t==="small",chat__conversationRating__stars__large:t==="large"}),onMouseOut:s,children:Array(Bh).fill(0).map((u,f)=>_.jsx(yC,{value:i===void 0?e:i,index:f,count:Bh,readonly:n,onHover:a(f),onClick:l(f)},f))})},_C=({visible:e,onRate:t})=>{const n=Zt();return e?_.jsxs("div",{className:P(ne.callToActionContainer,"chat__conversationRating__callToAction"),children:[_.jsx("div",{className:P(ne.callToActionTitle,"chat__conversationRating__callToAction__title"),children:n("conversation-rating.call-to-action.title")}),_.jsx(Ay,{value:0,size:"small",onChange:t})]}):null},jh=({children:e,className:t,...n})=>_.jsxs("div",{className:P(ne.rateFeedbackBotBubble,t),...n,children:[_.jsx("img",{className:P(ne.avatar),src:"bot.svg",alt:"Bot"}),_.jsx("div",{className:P(ne.bubble,ne.botBubble),children:e})]}),EC=({children:e,className:t,...n})=>_.jsx("div",{className:P(ne.rateFeedbackGuestBubble,t),...n,children:_.jsx("div",{className:P(ne.bubble,ne.guestBubble),children:e})}),wC=({visible:e,rating:t,onRate:n,onClose:r})=>{var m,E;const i=Zt(),[o,s]=k.useState(t),[a,l]=k.useState(void 0),[u,f]=k.useState(void 0),[p,h]=k.useState(!1),c=k.useRef(null);k.useEffect(()=>{e?(h(!1),f(e)):u===!0&&f(!1)},[e,u]),k.useEffect(()=>{s(t)},[t]),k.useEffect(()=>{const v=i(`conversation-rating.overlay.bot-message.rate-feedback.value-${o}`);l(v!=null&&v.length?v:void 0)},[o,i]);const g=v=>{var d,y;v.preventDefault(),n(o,((y=(d=c.current)==null?void 0:d.value)==null?void 0:y.trim())||""),h(!0)};return _.jsx("div",{className:P(ne.rateOverlay,"chat__conversationRating__overlay",{[ne.rateOverlayOpen]:u===!0,[ne.rateOverlayClose]:u===!1}),children:_.jsxs("form",{onSubmit:g,children:[_.jsxs("div",{className:P(ne.body,"chat__conversationRating__overlay__body"),children:[_.jsxs("div",{children:[_.jsx("h2",{children:i("conversation-rating.overlay.title")}),_.jsxs("div",{className:P(ne.starsDescriptionContainer),children:[_.jsx(Ay,{value:o,size:"large",readonly:p,onChange:s}),_.jsxs("div",{className:P(ne.starsDescription),children:[_.jsx("div",{children:i("conversation-rating.overlay.star.very-bad")}),_.jsx("div",{children:i("conversation-rating.overlay.star.very-good")})]})]})]}),_.jsx("div",{className:P(ne.bubbles),children:e&&a&&_.jsxs(_.Fragment,{children:[_.jsx(jh,{className:"chat__conversationRating__overlay__botBubble",children:_.jsx("div",{children:a})}),p&&!!((E=(m=c.current)==null?void 0:m.value)!=null&&E.length)&&_.jsx(EC,{className:"chat__conversationRating__overlay__guestBubble",children:c.current.value}),p&&_.jsx(jh,{className:"chat__conversationRating__overlay__botBubble",children:_.jsx("div",{children:i("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),_.jsxs("div",{className:P(ne.footer,"chat__conversationRating__overlay__footer"),children:[!p&&_.jsx("input",{ref:c,placeholder:i("conversation-rating.overlay.guest-feedback.input-placeholder")}),_.jsx("div",{className:P(ne.actions,"chat__conversationRating__overlay__footer__actions"),children:p?_.jsx("button",{type:"button",className:P(Me.button,Me.buttonPrimary),onClick:r,children:i("conversation-rating.overlay.action.close")}):_.jsx("button",{type:"submit",className:P(Me.button,Me.buttonPrimary),children:i("conversation-rating.overlay.action.submit")})})]})]})})},SC=({conversationRating:{enabled:e,rating:t},numberOfMessagesFromGuest:n,onRate:r})=>{const[i,o]=k.useState(0),[s,a]=k.useState(!1),l=p=>{o(p),a(!0)},u=()=>a(!1),f=!t&&n>1;return e?_.jsxs(_.Fragment,{children:[_.jsx(_C,{visible:f,onRate:l}),_.jsx(wC,{visible:s,rating:i,onRate:r,onClose:u})]}):null},bC="_audioRecorder_y3ckl_5",xC="_recordButton_y3ckl_10",TC="_submitButton_y3ckl_37",CC="_cancelButton_y3ckl_64",kC="_recorderIcon_y3ckl_91",OC="_pulse_y3ckl_1",NC="_spinning_y3ckl_113",RC="_spin_y3ckl_113",Pn={audioRecorder:bC,recordButton:xC,submitButton:TC,cancelButton:CC,recorderIcon:kC,pulse:OC,spinning:NC,spin:RC},$h=2048,ms=16e3;class AC extends Ht.Component{constructor(n){super(n);H(this,"audioInput",null);H(this,"volume",null);H(this,"leftchannel",[]);H(this,"recorder",null);H(this,"recordingLength",0);H(this,"sampleRate",null);H(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(n){this.mediaStream=n,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(n)}initRecording(n){var r=window.AudioContext||window.webkitAudioContext,i=new r;this.sampleRate=i.sampleRate,this.volume=i.createGain(),this.audioInput=i.createMediaStreamSource(n),this.audioInput.connect(this.volume),this.recorder=i.createScriptProcessor($h,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(i.destination)}processRecordingInput(n){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const r=n.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(r)),this.recordingLength+=$h}}handleClickSubmitAudio(){const n=IC(this.leftchannel,this.recordingLength),r=DC(n,this.sampleRate||0),i=PC(r);this.props.onAudioRecorded(i),this.handleClickStopAudio()}handleClickStopAudio(){var n,r,i,o;this.setState({recordingState:"none"}),(n=this.audioInput)==null||n.disconnect(),(r=this.volume)==null||r.disconnect(),(i=this.recorder)==null||i.disconnect(),this.mediaStream&&((o=this.mediaStream)==null||o.getAudioTracks().forEach(s=>{s.stop()}))}render(){return _.jsxs("div",{className:Pn.audioRecorder,children:[this.state.recordingState==="none"&&_.jsx("button",{className:P(Pn.recordButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&_.jsxs("svg",{className:Pn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&_.jsxs("div",{className:Pn.audioRecorder,children:[_.jsx("button",{className:P(Pn.cancelButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.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"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),_.jsx("div",{className:Pn.recorderIcon}),_.jsx("button",{className:P(Pn.submitButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const PC=e=>{const t=new ArrayBuffer(44+e.length*2),n=new DataView(t);yo(n,0,"RIFF"),n.setUint32(4,44+e.length*2,!0),yo(n,8,"WAVE"),yo(n,12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,ms,!0),n.setUint32(28,ms*4,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),yo(n,36,"data"),n.setUint32(40,e.length*2,!0);const r=e.length;let i=44;const o=1;for(var s=0;s<r;s++)n.setInt16(i,e[s]*(32767*o),!0),i+=2;return new Blob([n],{type:"audio/wav"})},yo=(e,t,n)=>{for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},IC=(e,t)=>{const n=new Float32Array(t);let r=0;const i=e.length;for(var o=0;o<i;o++){const s=e[o];n.set(s,r),r+=s.length}return n},DC=(e,t)=>{if(ms===t)return e;const n=t/ms,r=Math.round(e.length/n),i=new Float32Array(r);let o=0,s=0;for(;o<i.length;){let l=Math.round((o+1)*n),u=0,f=0;for(var a=s;a<l&&a<e.length;a++)u+=e[a],f++;i[o]=u/f,o++,s=l}return i},FC="_inputWrapper_3fgw2_5",MC="_messageInputWrapper_3fgw2_14",LC="_messageInput_3fgw2_14",BC="_buttons_3fgw2_35",jC="_button_3fgw2_35",rr={inputWrapper:FC,messageInputWrapper:MC,messageInput:LC,buttons:BC,button:jC},$C=({speechSupport:e,transcriptExportEnabled:t,onTextInput:n,onAudioRecorded:r,onOpenTranscriptExportModal:i})=>{const o=Zt(),[s,a]=k.useState(!1),l=k.useRef(null),u=p=>{p.preventDefault();const h=l.current;h&&h.value.trim().length>=1&&(n(h.value.trim()),h.value="",a(!1),h.focus())},f=p=>{const h=p.target.value.trim();a(h.length>0)};return _.jsxs("form",{className:P(rr.inputWrapper,"chat__textInput"),onSubmit:u,children:[_.jsx("div",{className:rr.messageInputWrapper,children:_.jsx("input",{className:rr.messageInput,placeholder:o("message-input-label"),ref:l,onChange:f,tabIndex:0})}),_.jsxs("div",{className:P(rr.buttons,"chat__buttons"),children:[!s&&t&&_.jsx("button",{type:"button",className:P(rr.button,"chat__button"),"aria-label":o("message-input.actions.export-transcript.label"),tabIndex:0,onClick:i,children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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||!e||navigator.mediaDevices===void 0?_.jsx("button",{className:P(rr.button,"chat__button"),type:"submit","aria-label":o("message-input.actions.submit.label"),tabIndex:0,children:_.jsxs("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:[_.jsx("defs",{children:_.jsx("style",{})}),_.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&&_.jsx(AC,{translate:o,onAudioRecorded:r})]})]})},UC="_inputContainer_1px77_1",zC={inputContainer:UC},HC="_quickReplies_32o30_1",GC="_quickReply_32o30_9",Uh={quickReplies:HC,quickReply:GC},VC=({quickReplies:e,onQuickReplyClick:t})=>e.length?_.jsx("div",{className:P(Uh.quickReplies,"chat__quickReplies"),children:e.map(n=>_.jsx("button",{tabIndex:0,className:P(Uh.quickReply,Me.button,"chat__button","chat__quickReply"),onClick:()=>t(n),children:n.label},n.label))}):null,WC=({quickReplies:e,speechSupport:t,transcriptExportEnabled:n,conversationRating:r,numberOfMessagesFromGuest:i,onTextInput:o,onRate:s,onQuickReplyClick:a,onAudioRecorded:l,onOpenTranscriptExportModal:u})=>_.jsxs("div",{className:P(zC.inputContainer),children:[_.jsx(VC,{quickReplies:e,onQuickReplyClick:a}),_.jsx(SC,{conversationRating:r,numberOfMessagesFromGuest:i,onRate:s}),_.jsx($C,{onTextInput:o,onAudioRecorded:l,speechSupport:t,onOpenTranscriptExportModal:u,transcriptExportEnabled:n})]}),ir={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"},qC=({clientName:e,messages:t,quickReplies:n,isBotTyping:r,speechSupport:i,problemReportingEnabled:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l,onConnect:u,onRestartChat:f,onNluEvent:p,onMessageFromUser:h,onRate:c,onQuickReplyClick:g,onButtonClick:m,onLinkClick:E,onAudioRecorded:v,onActionFromUser:d,onTranscriptExport:y,onPdfExport:w,onProblemReport:S})=>{const b=aa(),[x,T]=k.useState(!1),[I,R]=k.useState(void 0);k.useEffect(()=>{window.document.documentElement.lang=b.locale},[b.locale]),k.useEffect(()=>{const Ee=window.location.search,kn=_u.parse(Ee);kn.cssClassName&&R(kn.cssClassName);const ze=He=>{switch(He.data.type){case ir.TRIGGER_ACTION:d(He.data.action);break;case ir.TRIGGER_STORY:p(He.data.story);break;case ir.ON_CHAT_WINDOW_OPEN:d({type:"webclient.chatwindow.opened"});break;case ir.ON_CHAT_WINDOW_CLOSE:d({type:"webclient.chatwindow.closed"});break;case ir.CHAT_MESSAGE_FROM_GUEST:h(He.data.text);break;case ir.RESTART_CHAT:f(e,Ee);break}};return u(e,Ee),window.addEventListener("message",He=>ze(He),!1),()=>window.removeEventListener("message",ze)},[e,u,f,d,h,p]);const W=s.email||s.pdf,pe=t.filter(Ee=>Ee.sender.type===ty.GUEST).length;return _.jsxs("div",{className:P(yh.chatwindow,"chat__chatwindow",I),children:[_.jsxs("div",{className:yh.chatcontent,children:[_.jsx(A2,{messages:t,isBotTyping:r,showGeneralConditions:l,problemReportingEnabled:o,onButtonClick:m,onLinkClick:E,onProblemReport:S}),_.jsx(WC,{quickReplies:r?[]:n,numberOfMessagesFromGuest:pe,speechSupport:i,transcriptExportEnabled:W,conversationRating:a,onRate:c,onQuickReplyClick:g,onTextInput:h,onAudioRecorded:v,onOpenTranscriptExportModal:()=>T(!x)}),_.jsx(F2,{})]}),W&&_.jsx(V2,{methods:s,visible:x,onEmailExport:y,onPdfExport:w,onClose:()=>T(!1)})]})},XC=e=>{const{messages:t,quickReplies:n,isBotTyping:r,speechSupport:i,problemReportingEnabled:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}=e.chat;return{messages:t,quickReplies:n,isBotTyping:r,speechSupport:i,problemReportingEnabled:o,transcriptExportEnabled:s,conversationRating:a,showGeneralConditions:l}},QC=e=>({onConnect:(t,n)=>e(ey(t,n)),onRestartChat:(t,n)=>e(kb(t,n)),onMessageFromUser:t=>e(ZS(t)),onRate:(t,n)=>e(cb(t,n)),onAudioRecorded:t=>e(tb(t)),onActionFromUser:t=>e(t),onQuickReplyClick:t=>e(Qv(t)),onNluEvent:t=>e(fb(t)),onButtonClick:t=>e(hb(t)),onLinkClick:t=>e(pb(t)),onTranscriptExport:t=>e(sb(t)),onPdfExport:()=>e(lb()),onProblemReport:(t,n)=>e(V.reportProblemFromGuest(t,n))}),KC=XE(XC,QC)(qC),Py=()=>ZC(window.location.pathname),ZC=e=>{const t=e.split("/"),n=e.endsWith("/");return t[t.length-(n?2:1)]},zh=dE,YC=()=>{const e=Py(),t=zh(r=>r.intl.locale),n=zh(r=>r.intl.messages);return _.jsx(vS,{locale:t,messages:n,children:_.jsx("div",{className:_S.chatPage,children:_.jsx(KC,{clientName:e})})})};function vt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Sn(e){return!!e&&!!e[te]}function Qt(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===ak}(e)||Array.isArray(e)||!!e[Qh]||!!(!((t=e.constructor)===null||t===void 0)&&t[Qh])||wf(e)||Sf(e))}function Kn(e,t,n){n===void 0&&(n=!1),Ur(e)===0?(n?Object.keys:Cr)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Ur(e){var t=e[te];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wf(e)?2:Sf(e)?3:0}function Tr(e,t){return Ur(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function JC(e,t){return Ur(e)===2?e.get(t):e[t]}function Iy(e,t,n){var r=Ur(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Dy(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wf(e){return ok&&e instanceof Map}function Sf(e){return sk&&e instanceof Set}function Fn(e){return e.o||e.t}function bf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=My(e);delete t[te];for(var n=Cr(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function xf(e,t){return t===void 0&&(t=!1),Tf(e)||Sn(e)||!Qt(e)||(Ur(e)>1&&(e.set=e.add=e.clear=e.delete=ek),Object.freeze(e),t&&Kn(e,function(n,r){return xf(r,!0)},!0)),e}function ek(){vt(2)}function Tf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function It(e){var t=Ou[e];return t||vt(18,e),t}function tk(e,t){Ou[e]||(Ou[e]=t)}function Tu(){return ji}function rl(e,t){t&&(It("Patches"),e.u=[],e.s=[],e.v=t)}function gs(e){Cu(e),e.p.forEach(nk),e.p=null}function Cu(e){e===ji&&(ji=e.l)}function Hh(e){return ji={p:[],l:ji,h:e,m:!0,_:0}}function nk(e){var t=e[te];t.i===0||t.i===1?t.j():t.g=!0}function il(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||It("ES5").S(t,e,r),r?(n[te].P&&(gs(t),vt(4)),Qt(e)&&(e=vs(t,e),t.l||ys(t,e)),t.u&&It("Patches").M(n[te].t,e,t.u,t.s)):e=vs(t,n,[]),gs(t),t.u&&t.v(t.u,t.s),e!==Fy?e:void 0}function vs(e,t,n){if(Tf(t))return t;var r=t[te];if(!r)return Kn(t,function(a,l){return Gh(e,r,t,a,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ys(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=bf(r.k):r.o,o=i,s=!1;r.i===3&&(o=new Set(i),i.clear(),s=!0),Kn(o,function(a,l){return Gh(e,r,i,a,l,n,s)}),ys(e,i,!1),n&&e.u&&It("Patches").N(r,n,e.u,e.s)}return r.o}function Gh(e,t,n,r,i,o,s){if(Sn(i)){var a=vs(e,i,o&&t&&t.i!==3&&!Tr(t.R,r)?o.concat(r):void 0);if(Iy(n,r,a),!Sn(a))return;e.m=!1}else s&&n.add(i);if(Qt(i)&&!Tf(i)){if(!e.h.D&&e._<1)return;vs(e,i),t&&t.A.l||ys(e,i)}}function ys(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&xf(t,n)}function ol(e,t){var n=e[te];return(n?Fn(n):e)[t]}function Vh(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function sn(e){e.P||(e.P=!0,e.l&&sn(e.l))}function sl(e){e.o||(e.o=bf(e.t))}function ku(e,t,n){var r=wf(t)?It("MapSet").F(t,n):Sf(t)?It("MapSet").T(t,n):e.O?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Tu(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=$i;s&&(l=[a],u=ui);var f=Proxy.revocable(l,u),p=f.revoke,h=f.proxy;return a.k=h,a.j=p,h}(t,n):It("ES5").J(t,n);return(n?n.A:Tu()).p.push(r),r}function rk(e){return Sn(e)||vt(22,e),function t(n){if(!Qt(n))return n;var r,i=n[te],o=Ur(n);if(i){if(!i.P&&(i.i<4||!It("ES5").K(i)))return i.t;i.I=!0,r=Wh(n,o),i.I=!1}else r=Wh(n,o);return Kn(r,function(s,a){i&&JC(i.t,s)===a||Iy(r,s,t(a))}),o===3?new Set(r):r}(e)}function Wh(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return bf(e)}function ik(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[te];return $i.get(l,o)},set:function(l){var u=this[te];$i.set(u,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][te];if(!a.P)switch(a.i){case 5:r(a)&&sn(a);break;case 4:n(a)&&sn(a)}}}function n(o){for(var s=o.t,a=o.k,l=Cr(a),u=l.length-1;u>=0;u--){var f=l[u];if(f!==te){var p=s[f];if(p===void 0&&!Tr(s,f))return!0;var h=a[f],c=h&&h[te];if(c?c.t!==p:!Dy(h,p))return!0}}var g=!!s[te];return l.length!==Cr(s).length+(g?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l<s.length;l++)if(!s.hasOwnProperty(l))return!0;return!1}var i={};tk("ES5",{J:function(o,s){var a=Array.isArray(o),l=function(f,p){if(f){for(var h=Array(p.length),c=0;c<p.length;c++)Object.defineProperty(h,""+c,e(c,!0));return h}var g=My(p);delete g[te];for(var m=Cr(g),E=0;E<m.length;E++){var v=m[E];g[v]=e(v,f||!!g[v].enumerable)}return Object.create(Object.getPrototypeOf(p),g)}(a,o),u={i:a?5:4,A:s?s.A:Tu(),P:!1,I:!1,R:{},l:s,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,te,{value:u,writable:!0}),l},S:function(o,s,a){a?Sn(s)&&s[te].A===o&&t(o.p):(o.u&&function l(u){if(u&&typeof u=="object"){var f=u[te];if(f){var p=f.t,h=f.k,c=f.R,g=f.i;if(g===4)Kn(h,function(y){y!==te&&(p[y]!==void 0||Tr(p,y)?c[y]||l(h[y]):(c[y]=!0,sn(f)))}),Kn(p,function(y){h[y]!==void 0||Tr(h,y)||(c[y]=!1,sn(f))});else if(g===5){if(r(f)&&(sn(f),c.length=!0),h.length<p.length)for(var m=h.length;m<p.length;m++)c[m]=!1;else for(var E=p.length;E<h.length;E++)c[E]=!0;for(var v=Math.min(h.length,p.length),d=0;d<v;d++)h.hasOwnProperty(d)||(c[d]=!0),c[d]===void 0&&l(h[d])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var qh,ji,Cf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ok=typeof Map<"u",sk=typeof Set<"u",Xh=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fy=Cf?Symbol.for("immer-nothing"):((qh={})["immer-nothing"]=!0,qh),Qh=Cf?Symbol.for("immer-draftable"):"__$immer_draftable",te=Cf?Symbol.for("immer-state"):"__$immer_state",ak=""+Object.prototype.constructor,Cr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,My=Object.getOwnPropertyDescriptors||function(e){var t={};return Cr(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Ou={},$i={get:function(e,t){if(t===te)return e;var n=Fn(e);if(!Tr(n,t))return function(i,o,s){var a,l=Vh(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Qt(r)?r:r===ol(e.t,t)?(sl(e),e.o[t]=ku(e.A.h,r,e)):r},has:function(e,t){return t in Fn(e)},ownKeys:function(e){return Reflect.ownKeys(Fn(e))},set:function(e,t,n){var r=Vh(Fn(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=ol(Fn(e),t),o=i==null?void 0:i[te];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Dy(n,i)&&(n!==void 0||Tr(e.t,t)))return!0;sl(e),sn(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return ol(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,sl(e),sn(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Fn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){vt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){vt(12)}},ui={};Kn($i,function(e,t){ui[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ui.deleteProperty=function(e,t){return ui.set.call(this,e,t,void 0)},ui.set=function(e,t,n){return $i.set.call(this,e[0],t,n,e[0])};var lk=function(){function e(n){var r=this;this.O=Xh,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=r;return function(m){var E=this;m===void 0&&(m=a);for(var v=arguments.length,d=Array(v>1?v-1:0),y=1;y<v;y++)d[y-1]=arguments[y];return l.produce(m,function(w){var S;return(S=o).call.apply(S,[E,w].concat(d))})}}var u;if(typeof o!="function"&&vt(6),s!==void 0&&typeof s!="function"&&vt(7),Qt(i)){var f=Hh(r),p=ku(r,i,void 0),h=!0;try{u=o(p),h=!1}finally{h?gs(f):Cu(f)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(m){return rl(f,s),il(m,f)},function(m){throw gs(f),m}):(rl(f,s),il(u,f))}if(!i||typeof i!="object"){if((u=o(i))===void 0&&(u=i),u===Fy&&(u=void 0),r.D&&xf(u,!0),s){var c=[],g=[];It("Patches").M(i,u,c,g),s(c,g)}return u}vt(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(u){for(var f=arguments.length,p=Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];return r.produceWithPatches(u,function(c){return i.apply(void 0,[c].concat(p))})};var s,a,l=r.produce(i,o,function(u,f){s=u,a=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,s,a]}):[l,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Qt(n)||vt(8),Sn(n)&&(n=rk(n));var r=Hh(this),i=ku(this,n,void 0);return i[te].C=!0,Cu(r),i},t.finishDraft=function(n,r){var i=n&&n[te],o=i.A;return rl(o,r),il(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!Xh&&vt(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=It("Patches").$;return Sn(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Xe=new lk,Ly=Xe.produce;Xe.produceWithPatches.bind(Xe);Xe.setAutoFreeze.bind(Xe);Xe.setUseProxies.bind(Xe);Xe.applyPatches.bind(Xe);Xe.createDraft.bind(Xe);Xe.finishDraft.bind(Xe);function Ui(e){"@babel/helpers - typeof";return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}function uk(e,t){if(Ui(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ui(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ck(e){var t=uk(e,"string");return Ui(t)==="symbol"?t:String(t)}function fk(e,t,n){return t=ck(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kh(Object(n),!0).forEach(function(r){fk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ke(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 Yh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),al=function(){return Math.random().toString(36).substring(7).split("").join(".")},_s={INIT:"@@redux/INIT"+al(),REPLACE:"@@redux/REPLACE"+al(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+al()}};function dk(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function By(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ke(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ke(1));return n(By)(e,t)}if(typeof e!="function")throw new Error(ke(2));var i=e,o=t,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(ke(3));return o}function p(m){if(typeof m!="function")throw new Error(ke(4));if(l)throw new Error(ke(5));var E=!0;return u(),a.push(m),function(){if(E){if(l)throw new Error(ke(6));E=!1,u();var d=a.indexOf(m);a.splice(d,1),s=null}}}function h(m){if(!dk(m))throw new Error(ke(7));if(typeof m.type>"u")throw new Error(ke(8));if(l)throw new Error(ke(9));try{l=!0,o=i(o,m)}finally{l=!1}for(var E=s=a,v=0;v<E.length;v++){var d=E[v];d()}return m}function c(m){if(typeof m!="function")throw new Error(ke(10));i=m,h({type:_s.REPLACE})}function g(){var m,E=p;return m={subscribe:function(d){if(typeof d!="object"||d===null)throw new Error(ke(11));function y(){d.next&&d.next(f())}y();var w=E(y);return{unsubscribe:w}}},m[Yh]=function(){return this},m}return h({type:_s.INIT}),r={dispatch:h,subscribe:p,getState:f,replaceReducer:c},r[Yh]=g,r}function hk(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:_s.INIT});if(typeof r>"u")throw new Error(ke(12));if(typeof n(void 0,{type:_s.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ke(13))})}function jy(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var o=Object.keys(n),s;try{hk(n)}catch(a){s=a}return function(l,u){if(l===void 0&&(l={}),s)throw s;for(var f=!1,p={},h=0;h<o.length;h++){var c=o[h],g=n[c],m=l[c],E=g(m,u);if(typeof E>"u")throw u&&u.type,new Error(ke(14));p[c]=E,f=f||E!==m}return f=f||o.length!==Object.keys(l).length,f?p:l}}function Es(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function pk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(ke(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=Es.apply(void 0,a)(i.dispatch),Zh(Zh({},i),{},{dispatch:o})}}}function $y(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,e):s(a)}}};return t}var Uy=$y();Uy.withExtraArgument=$y;const Jh=Uy;var zy=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mk=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return l([u,f])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Mr=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},gk=Object.defineProperty,vk=Object.defineProperties,yk=Object.getOwnPropertyDescriptors,ep=Object.getOwnPropertySymbols,_k=Object.prototype.hasOwnProperty,Ek=Object.prototype.propertyIsEnumerable,tp=function(e,t,n){return t in e?gk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},yn=function(e,t){for(var n in t||(t={}))_k.call(t,n)&&tp(e,n,t[n]);if(ep)for(var r=0,i=ep(t);r<i.length;r++){var n=i[r];Ek.call(t,n)&&tp(e,n,t[n])}return e},ll=function(e,t){return vk(e,yk(t))},wk=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{a(n.next(l))}catch(u){i(u)}},s=function(l){try{a(n.throw(l))}catch(u){i(u)}},a=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,s)};a((n=n.apply(e,t)).next())})},Sk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Es:Es.apply(null,arguments)};function bk(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var xk=function(e){zy(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,Mr([void 0],n[0].concat(this)))):new(t.bind.apply(t,Mr([void 0],n.concat(this))))},t}(Array),Tk=function(e){zy(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,Mr([void 0],n[0].concat(this)))):new(t.bind.apply(t,Mr([void 0],n.concat(this))))},t}(Array);function Nu(e){return Qt(e)?Ly(e,function(){}):e}function Ck(e){return typeof e=="boolean"}function kk(){return function(t){return Ok(t)}}function Ok(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new xk;return n&&(Ck(n)?r.push(Jh):r.push(Jh.withExtraArgument(n.extraArgument))),r}var Nk=!0;function Rk(e){var t=kk(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,s=o===void 0?t():o,a=n.devTools,l=a===void 0?!0:a,u=n.preloadedState,f=u===void 0?void 0:u,p=n.enhancers,h=p===void 0?void 0:p,c;if(typeof i=="function")c=i;else if(bk(i))c=jy(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;typeof g=="function"&&(g=g(t));var m=pk.apply(void 0,g),E=Es;l&&(E=Sk(yn({trace:!Nk},typeof l=="object"&&l)));var v=new Tk(m),d=v;Array.isArray(h)?d=Mr([m],h):typeof h=="function"&&(d=h(v));var y=E.apply(void 0,d);return By(c,f,y)}function _n(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return yn(yn({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function Hy(e){var t={},n=[],r,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(a in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[a]=s,i},addMatcher:function(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function Ak(e){return typeof e=="function"}function Pk(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?Hy(t):[t,n,r],o=i[0],s=i[1],a=i[2],l;if(Ak(e))l=function(){return Nu(e())};else{var u=Nu(e);l=function(){return u}}function f(p,h){p===void 0&&(p=l());var c=Mr([o[h.type]],s.filter(function(g){var m=g.matcher;return m(h)}).map(function(g){var m=g.reducer;return m}));return c.filter(function(g){return!!g}).length===0&&(c=[a]),c.reduce(function(g,m){if(m)if(Sn(g)){var E=g,v=m(E,h);return v===void 0?g:v}else{if(Qt(g))return Ly(g,function(d){return m(d,h)});var v=m(g,h);if(v===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return g},p)}return f.getInitialState=l,f}function Ik(e,t){return e+"/"+t}function Dk(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof e.initialState=="function"?e.initialState:Nu(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},s={},a={};i.forEach(function(f){var p=r[f],h=Ik(t,f),c,g;"reducer"in p?(c=p.reducer,g=p.prepare):c=p,o[f]=c,s[h]=c,a[f]=g?_n(h,g):_n(h)});function l(){var f=typeof e.extraReducers=="function"?Hy(e.extraReducers):[e.extraReducers],p=f[0],h=p===void 0?{}:p,c=f[1],g=c===void 0?[]:c,m=f[2],E=m===void 0?void 0:m,v=yn(yn({},h),s);return Pk(n,function(d){for(var y in v)d.addCase(y,v[y]);for(var w=0,S=g;w<S.length;w++){var b=S[w];d.addMatcher(b.matcher,b.reducer)}E&&d.addDefaultCase(E)})}var u;return{name:t,reducer:function(f,p){return u||(u=l()),u(f,p)},actions:a,caseReducers:o,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}var Fk="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Mk=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=Fk[Math.random()*64|0];return t},Lk=["name","message","stack","code"],ul=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),np=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),Bk=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=Lk;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}};(function(){function e(t,n,r){var i=_n(t+"/fulfilled",function(u,f,p,h){return{payload:u,meta:ll(yn({},h||{}),{arg:p,requestId:f,requestStatus:"fulfilled"})}}),o=_n(t+"/pending",function(u,f,p){return{payload:void 0,meta:ll(yn({},p||{}),{arg:f,requestId:u,requestStatus:"pending"})}}),s=_n(t+"/rejected",function(u,f,p,h,c){return{payload:h,error:(r&&r.serializeError||Bk)(u||"Rejected"),meta:ll(yn({},c||{}),{arg:p,requestId:f,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"})}}),a=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function l(u){return function(f,p,h){var c=r!=null&&r.idGenerator?r.idGenerator(u):Mk(),g=new a,m;function E(d){m=d,g.abort()}var v=function(){return wk(this,null,function(){var d,y,w,S,b,x,T;return mk(this,function(I){switch(I.label){case 0:return I.trys.push([0,4,,5]),S=(d=r==null?void 0:r.condition)==null?void 0:d.call(r,u,{getState:p,extra:h}),$k(S)?[4,S]:[3,2];case 1:S=I.sent(),I.label=2;case 2:if(S===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise(function(R,W){return g.signal.addEventListener("abort",function(){return W({name:"AbortError",message:m||"Aborted"})})}),f(o(c,u,(y=r==null?void 0:r.getPendingMeta)==null?void 0:y.call(r,{requestId:c,arg:u},{getState:p,extra:h}))),[4,Promise.race([b,Promise.resolve(n(u,{dispatch:f,getState:p,extra:h,requestId:c,signal:g.signal,abort:E,rejectWithValue:function(R,W){return new ul(R,W)},fulfillWithValue:function(R,W){return new np(R,W)}})).then(function(R){if(R instanceof ul)throw R;return R instanceof np?i(R.payload,c,u,R.meta):i(R,c,u)})])];case 3:return w=I.sent(),[3,5];case 4:return x=I.sent(),w=x instanceof ul?s(null,c,u,x.payload,x.meta):s(x,c,u),[3,5];case 5:return T=r&&!r.dispatchConditionRejection&&s.match(w)&&w.meta.condition,T||f(w),[2,w]}})})}();return Object.assign(v,{abort:E,requestId:c,arg:u,unwrap:function(){return v.then(jk)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function jk(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function $k(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var kf="listenerMiddleware";_n(kf+"/add");_n(kf+"/removeAll");_n(kf+"/remove");var rp;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);ik();function Uk(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Of=Uk,zk=typeof le=="object"&&le&&le.Object===Object&&le,Hk=zk,Gk=Hk,Vk=typeof self=="object"&&self&&self.Object===Object&&self,Wk=Gk||Vk||Function("return this")(),Gy=Wk,qk=Gy,Xk=function(){return qk.Date.now()},Qk=Xk,Kk=/\s/;function Zk(e){for(var t=e.length;t--&&Kk.test(e.charAt(t)););return t}var Yk=Zk,Jk=Yk,eO=/^\s+/;function tO(e){return e&&e.slice(0,Jk(e)+1).replace(eO,"")}var nO=tO,rO=Gy,iO=rO.Symbol,Vy=iO,ip=Vy,Wy=Object.prototype,oO=Wy.hasOwnProperty,sO=Wy.toString,ri=ip?ip.toStringTag:void 0;function aO(e){var t=oO.call(e,ri),n=e[ri];try{e[ri]=void 0;var r=!0}catch{}var i=sO.call(e);return r&&(t?e[ri]=n:delete e[ri]),i}var lO=aO,uO=Object.prototype,cO=uO.toString;function fO(e){return cO.call(e)}var dO=fO,op=Vy,hO=lO,pO=dO,mO="[object Null]",gO="[object Undefined]",sp=op?op.toStringTag:void 0;function vO(e){return e==null?e===void 0?gO:mO:sp&&sp in Object(e)?hO(e):pO(e)}var yO=vO;function _O(e){return e!=null&&typeof e=="object"}var EO=_O,wO=yO,SO=EO,bO="[object Symbol]";function xO(e){return typeof e=="symbol"||SO(e)&&wO(e)==bO}var TO=xO,CO=nO,ap=Of,kO=TO,lp=0/0,OO=/^[-+]0x[0-9a-f]+$/i,NO=/^0b[01]+$/i,RO=/^0o[0-7]+$/i,AO=parseInt;function PO(e){if(typeof e=="number")return e;if(kO(e))return lp;if(ap(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ap(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=CO(e);var n=NO.test(e);return n||RO.test(e)?AO(e.slice(2),n?2:8):OO.test(e)?lp:+e}var IO=PO,DO=Of,cl=Qk,up=IO,FO="Expected a function",MO=Math.max,LO=Math.min;function BO(e,t,n){var r,i,o,s,a,l,u=0,f=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(FO);t=up(t)||0,DO(n)&&(f=!!n.leading,p="maxWait"in n,o=p?MO(up(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function c(b){var x=r,T=i;return r=i=void 0,u=b,s=e.apply(T,x),s}function g(b){return u=b,a=setTimeout(v,t),f?c(b):s}function m(b){var x=b-l,T=b-u,I=t-x;return p?LO(I,o-T):I}function E(b){var x=b-l,T=b-u;return l===void 0||x>=t||x<0||p&&T>=o}function v(){var b=cl();if(E(b))return d(b);a=setTimeout(v,m(b))}function d(b){return a=void 0,h&&r?c(b):(r=i=void 0,s)}function y(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function w(){return a===void 0?s:d(cl())}function S(){var b=cl(),x=E(b);if(r=arguments,i=this,l=b,x){if(a===void 0)return g(l);if(p)return clearTimeout(a),a=setTimeout(v,t),c(l)}return a===void 0&&(a=setTimeout(v,t)),s}return S.cancel=y,S.flush=w,S}var jO=BO,$O=jO,UO=Of,zO="Expected a function";function HO(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(zO);return UO(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$O(e,t,{leading:r,maxWait:t,trailing:i})}var GO=HO;const VO=ws(GO);function er(e,t){var n,r;if(typeof t=="function")r=t(e),r!==void 0&&(e=r);else if(Array.isArray(t))for(n=0;n<t.length;n++)r=t[n](e),r!==void 0&&(e=r);return e}function WO(e,t){return e[0]==="-"&&Array.isArray(t)&&/^-\d+$/.test(e)?t.length+parseInt(e,10):e}function qO(e){return/^\d+$/.test(e)}function Bo(e){return Object.prototype.toString.call(e)==="[object Object]"}function ci(e){return Object(e)===e}function jo(e){return Object.keys(e).length===0}var XO=["__proto__","prototype","constructor"],QO=function(e){return XO.indexOf(e)===-1};function ha(e,t){e.indexOf("[")>=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t),r=n.filter(QO);if(r.length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var cp=Object.prototype.hasOwnProperty;function z(e,t,n,r){if(!(this instanceof z))return new z(e,t,n,r);typeof t>"u"&&(t=!1),typeof n>"u"&&(n=!0),typeof r>"u"&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var Lr=new z(".",!1,!0,!0);function wt(e){return function(){return Lr[e].apply(Lr,arguments)}}z.prototype._fill=function(e,t,n,r){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&qO(e[0])?[]:{}),!ci(t[i]))if(this.override)t[i]={};else{if(!(ci(n)&&jo(n)))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}this._fill(e,t[i],n,r)}else{if(!this.override&&ci(t[i])&&!jo(t[i])){if(!(ci(n)&&jo(n)))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=er(n,r)}};z.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach(function(r){var i=t===void 0?null:t[r],o=ha(r,n.separator).join(n.separator);o.indexOf(n.separator)!==-1?(n._fill(o.split(n.separator),e,e[r],i),delete e[r]):e[r]=er(e[r],i)}),e};z.prototype.str=function(e,t,n,r){var i=ha(e,this.separator).join(this.separator);return e.indexOf(this.separator)!==-1?this._fill(i.split(this.separator),n,t,r):n[e]=er(t,r),n};z.prototype.pick=function(e,t,n,r){var i,o,s,a,l;for(o=ha(e,this.separator),i=0;i<o.length;i++)if(a=WO(o[i],t),t&&typeof t=="object"&&a in t){if(i===o.length-1)return n?(s=t[a],r&&Array.isArray(t)?t.splice(a,1):delete t[a],Array.isArray(t)&&(l=o.slice(0,-1).join("."),this.cleanup.indexOf(l)===-1&&this.cleanup.push(l)),s):t[a];t=t[a]}else return;return n&&Array.isArray(t)&&(t=t.filter(function(u){return u!==void 0})),t};z.prototype.delete=function(e,t){return this.remove(e,t,!0)};z.prototype.remove=function(e,t,n){var r;if(this.cleanup=[],Array.isArray(e)){for(r=0;r<e.length;r++)this.pick(e[r],t,!0,n);return n||this._cleanup(t),t}else return this.pick(e,t,!0,n)};z.prototype._cleanup=function(e){var t,n,r,i;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)r=this.cleanup[n].split("."),i=r.splice(0,-1).join("."),t=i?this.pick(i,e):e,t=t[r[0]].filter(function(o){return o!==void 0}),this.set(this.cleanup[n],t,e);this.cleanup=[]}};z.prototype.del=z.prototype.remove;z.prototype.move=function(e,t,n,r,i){return typeof r=="function"||Array.isArray(r)?this.set(t,er(this.pick(e,n,!0),r),n,i):(i=r,this.set(t,this.pick(e,n,!0),n,i)),n};z.prototype.transfer=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,er(this.pick(e,n,!0),i),r,o):(o=i,this.set(t,this.pick(e,n,!0),r,o)),r};z.prototype.copy=function(e,t,n,r,i,o){return typeof i=="function"||Array.isArray(i)?this.set(t,er(JSON.parse(JSON.stringify(this.pick(e,n,!1))),i),r,o):(o=i,this.set(t,this.pick(e,n,!1),r,o)),r};z.prototype.set=function(e,t,n,r){var i,o,s,a;if(typeof t>"u")return n;for(s=ha(e,this.separator),i=0;i<s.length;i++){if(a=s[i],i===s.length-1)if(r&&Bo(t)&&Bo(n[a]))for(o in t)cp.call(t,o)&&(n[a][o]=t[o]);else if(r&&Array.isArray(n[a])&&Array.isArray(t))for(var l=0;l<t.length;l++)n[s[i]].push(t[l]);else n[a]=t;else(!cp.call(n,a)||!Bo(n[a])&&!Array.isArray(n[a]))&&(/^\d+$/.test(s[i+1])?n[a]=[]:n[a]={});n=n[a]}return n};z.prototype.transform=function(e,t,n){return t=t||{},n=n||{},Object.keys(e).forEach((function(r){this.set(e[r],this.pick(r,t),n)}).bind(this)),n};z.prototype.dot=function(e,t,n){t=t||{},n=n||[];var r=Array.isArray(e);return Object.keys(e).forEach((function(i){var o=r&&this.useBrackets?"["+i+"]":i;if(ci(e[i])&&(Bo(e[i])&&!jo(e[i])||Array.isArray(e[i])&&!this.keepArray&&e[i].length!==0))if(r&&this.useBrackets){var s=n[n.length-1]||"";return this.dot(e[i],t,n.slice(0,-1).concat(s+o))}else return this.dot(e[i],t,n.concat(o));else r&&this.useBrackets?t[n.join(this.separator).concat("["+i+"]")]=e[i]:t[n.concat(o).join(this.separator)]=e[i]}).bind(this)),t};z.pick=wt("pick");z.move=wt("move");z.transfer=wt("transfer");z.transform=wt("transform");z.copy=wt("copy");z.object=wt("object");z.str=wt("str");z.set=wt("set");z.delete=wt("delete");z.del=z.remove=wt("remove");z.dot=wt("dot");["override","overwrite"].forEach(function(e){Object.defineProperty(z,e,{get:function(){return Lr.override},set:function(t){Lr.override=!!t}})});["useArray","keepArray","useBrackets"].forEach(function(e){Object.defineProperty(z,e,{get:function(){return Lr[e]},set:function(t){Lr[e]=t}})});z._process=er;var KO=z;const qy={"message-input-label":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation per E-Mail erhalten","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","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:
115
-
116
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
117
- - 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.","problem-report.action.mark":"Als fehlerhaft markieren","problem-report.action.unmark":"Markierung entfernen","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"},ZO={"message-input-label":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Receive conversation by email","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","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:
118
-
119
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
120
- - 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.","problem-report.action.mark":"Mark as incorrect","problem-report.action.unmark":"Remove marker","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"},YO={"message-input-label":"Message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Recevoir la conversation par courrier électronique","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","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:
121
-
122
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
123
- - 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.","problem-report.action.mark":"Marquer comme incorrect","problem-report.action.unmark":"Retirer le marqueur","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"},JO={"message-input-label":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Ricevere la conversazione via e-mail","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","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:
124
-
125
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
126
- - 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.","problem-report.action.mark":"Segna come errato","problem-report.action.unmark":"Rimuovere il marcatore","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"},eN=["de","en","fr","it"],Xy={locale:"de",messages:qy},tN=(e,t)=>{if(eN.includes(e)){const n=nN(e),r=KO.dot(t);return{...n,...r}}return t},nN=e=>{switch(e.toString()){case"en":return ZO;case"fr":return YO;case"it":return JO;default:return qy}},rN=(e=iN,t)=>{switch(t.type){case ca:return Object.assign({},e,{sessionId:t.sessionId,userId:t.userId});case uf:return Object.assign({},e,{connectionState:Mn.CONNECTING});case cf:return Object.assign({},e,{connectionState:Mn.CONNECTED});case ff:return Object.assign({},e,{connectionState:Mn.DISCONNECTED});case df:return Object.assign({},e,{connectionState:Mn.RECONNECTED});case hf:return Object.assign({},e,{sessionId:t.sessionId});case Jv:return Object.assign({},e,{connectionState:Mn.DISCONNECTED,sessionId:void 0});default:return e}},iN={connectionState:Mn.DISCONNECTED,sessionId:void 0,userId:void 0},oN=(e=fl,t)=>{switch(t.type){case V.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case V.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case V.ActionTypes.MESSAGE_FROM_GUEST:case V.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return fp(e,t.message);case V.ActionTypes.MESSAGE_TO_GUEST:_o(t);const n=Object.assign({},t.message,{_id:t.meta.actionId}),r=e.messages.filter(u=>u._id===t.meta.actionId).length>0;return Object.assign({},e,{messages:r?e.messages:e.messages.concat([n]),quickReplies:n.quickReplies?n.quickReplies:[]});case ef:const i=t.messages;if(i.length>0){const u=i[i.length-1];return Object.assign({},fl,{messages:i,quickReplies:u.quickReplies?u.quickReplies:[]})}else return fl;case Jc:return _o(t.message),e;case V.ActionTypes.EVENT_TO_GUEST:return _o(t.event),e;case Kv:return _o(t),e;case nf:return Object.assign({},e,{speechSupport:!0});case rf:return Object.assign({},e,{problemReportingEnabled:!0});case sf:const o=new V.TextMessage(t.transcription,new V.GuestUser),s=Object.assign({},o,{_id:wu()});return fp(e,s);case of:return Object.assign({},e,{transcriptExportEnabled:t.methods});case af:return Object.assign({},e,{showGeneralConditions:!0});case V.ActionTypes.PROBLEM_REPORT_FROM_GUEST:const a=e.messages.map(u=>u._id===t.payload.actionId?Object.assign({},u,{problemReport:t.payload.problem}):u);return Object.assign({},e,{messages:a});case lf:const l={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:l});case V.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const u={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:u})}default:return e}},fp=(e,t)=>{const n=e.messages[e.messages.length-1],r=(n==null?void 0:n.text)===t.text;return n&&n.sender.type===t.sender.type&&r?e:Object.assign({},e,{messages:e.messages.concat([t]),quickReplies:[]})},_o=e=>{var t;sN()?(t=window.top)==null||t.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},sN=()=>typeof window<"u"&&window.self!==window.top,fl={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,problemReportingEnabled:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1}},Qy=Dk({name:"intl",initialState:Xy,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:aN}=Qy.actions,lN=Qy.reducer,uN=jy({chat:oN,connection:rN,intl:lN}),Ky="bf-webclient-state-last-saved-at",Zy="bf-webclient-state",cN=e=>{try{if(!hN())return;const t=dp(e,Ky);if(dN(t))return;{const n=dp(e,Zy);return n===null?void 0:JSON.parse(n)}}catch(t){console.error(t);return}},fN=(e,t)=>{try{const n=JSON.stringify(t);hp(e,Zy,n);let r=new Date().toISOString();hp(e,Ky,r)}catch(n){console.error(n)}},dN=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},hN=()=>typeof localStorage<"u",dp=(e,t)=>localStorage.getItem(`${e}_${t}`),hp=(e,t,n)=>localStorage.setItem(`${e}_${t}`,n),Mt=Object.create(null);Mt.open="0";Mt.close="1";Mt.ping="2";Mt.pong="3";Mt.message="4";Mt.upgrade="5";Mt.noop="6";const $o=Object.create(null);Object.keys(Mt).forEach(e=>{$o[Mt[e]]=e});const Ru={type:"error",data:"parser error"},Yy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Jy=typeof ArrayBuffer=="function",e0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Nf=({type:e,data:t},n,r)=>Yy&&t instanceof Blob?n?r(t):pp(t,r):Jy&&(t instanceof ArrayBuffer||e0(t))?n?r(t):pp(new Blob([t]),r):r(Mt[e]+(t||"")),pp=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function mp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let dl;function pN(e,t){if(Yy&&e.data instanceof Blob)return e.data.arrayBuffer().then(mp).then(t);if(Jy&&(e.data instanceof ArrayBuffer||e0(e.data)))return t(mp(e.data));Nf(e,!1,n=>{dl||(dl=new TextEncoder),t(dl.encode(n))})}const gp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<gp.length;e++)fi[gp.charCodeAt(e)]=e;const mN=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r<n;r+=4)o=fi[e.charCodeAt(r)],s=fi[e.charCodeAt(r+1)],a=fi[e.charCodeAt(r+2)],l=fi[e.charCodeAt(r+3)],f[i++]=o<<2|s>>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|l&63;return u},gN=typeof ArrayBuffer=="function",Rf=(e,t)=>{if(typeof e!="string")return{type:"message",data:t0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:vN(e.substring(1),t)}:$o[n]?e.length>1?{type:$o[n],data:e.substring(1)}:{type:$o[n]}:Ru},vN=(e,t)=>{if(gN){const n=mN(e);return t0(n,t)}else return{base64:!0,data:e}},t0=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},n0=String.fromCharCode(30),yN=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{Nf(o,!1,a=>{r[s]=a,++i===n&&t(r.join(n0))})})},_N=(e,t)=>{const n=e.split(n0),r=[];for(let i=0;i<n.length;i++){const o=Rf(n[i],t);if(r.push(o),o.type==="error")break}return r};function EN(){return new TransformStream({transform(e,t){pN(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let hl;function Eo(e){return e.reduce((t,n)=>t+n.length,0)}function wo(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function wN(e,t){hl||(hl=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(Eo(n)<1)break;const l=wo(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Eo(n)<2)break;const l=wo(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(Eo(n)<8)break;const l=wo(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),f=u.getUint32(0);if(f>Math.pow(2,53-32)-1){a.enqueue(Ru);break}i=f*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Eo(n)<i)break;const l=wo(n,i);a.enqueue(Rf(o?l:hl.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(Ru);break}}}})}const r0=4;function he(e){if(e)return SN(e)}function SN(e){for(var t in he.prototype)e[t]=he.prototype[t];return e}he.prototype.on=he.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};he.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};he.prototype.off=he.prototype.removeListener=he.prototype.removeAllListeners=he.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};he.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};he.prototype.emitReserved=he.prototype.emit;he.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};he.prototype.hasListeners=function(e){return!!this.listeners(e).length};const et=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function i0(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const bN=et.setTimeout,xN=et.clearTimeout;function pa(e,t){t.useNativeTimers?(e.setTimeoutFn=bN.bind(et),e.clearTimeoutFn=xN.bind(et)):(e.setTimeoutFn=et.setTimeout.bind(et),e.clearTimeoutFn=et.clearTimeout.bind(et))}const TN=1.33;function CN(e){return typeof e=="string"?kN(e):Math.ceil((e.byteLength||e.size)*TN)}function kN(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function ON(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function NN(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class RN extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Af extends he{constructor(t){super(),this.writable=!1,pa(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new RN(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Rf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=ON(t);return n.length?"?"+n:""}}const o0="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Au=64,AN={};let vp=0,So=0,yp;function _p(e){let t="";do t=o0[e%Au]+t,e=Math.floor(e/Au);while(e>0);return t}function s0(){const e=_p(+new Date);return e!==yp?(vp=0,yp=e):e+"."+_p(vp++)}for(;So<Au;So++)AN[o0[So]]=So;let a0=!1;try{a0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const PN=a0;function l0(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||PN))return new XMLHttpRequest}catch{}if(!t)try{return new et[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function IN(){}const DN=function(){return new l0({xdomain:!1}).responseType!=null}();class FN extends Af{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port}const n=t&&t.forceBase64;this.supportsBinary=DN&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};_N(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,yN(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=s0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Dt(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Dt extends he{constructor(t,n){super(),pa(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=i0(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new l0(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Dt.requestsCount++,Dt.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=IN,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Dt.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Dt.requestsCount=0;Dt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ep);else if(typeof addEventListener=="function"){const e="onpagehide"in et?"pagehide":"unload";addEventListener(e,Ep,!1)}}function Ep(){for(let e in Dt.requests)Dt.requests.hasOwnProperty(e)&&Dt.requests[e].abort()}const Pf=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),bo=et.WebSocket||et.MozWebSocket,wp=!0,MN="arraybuffer",Sp=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class LN extends Af{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Sp?{}:i0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=wp&&!Sp?n?new bo(t,n):new bo(t):new bo(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Nf(r,this.supportsBinary,o=>{const s={};try{wp&&this.ws.send(o)}catch{}i&&Pf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=s0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!bo}}class BN extends Af{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=wN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=EN();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this.writer.write(r).then(()=>{i&&Pf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const jN={websocket:LN,webtransport:BN,polling:FN},$N=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,UN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pu(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=$N.exec(e||""),o={},s=14;for(;s--;)o[UN[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=zN(o,o.path),o.queryKey=HN(o,o.query),o}function zN(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function HN(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let u0=class or extends he{constructor(t,n={}){super(),this.binaryType=MN,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Pu(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Pu(n.host).host),pa(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=NN(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=r0,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new jN[t](r)}open(){let t;if(this.opts.rememberUpgrade&&or.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;or.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!r)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;or.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=p=>{const h=new Error("probe error: "+p);h.transport=n.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function l(){s("socket closed")}function u(p){n&&p.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",or.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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 t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=CN(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){or.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};u0.protocol=r0;function GN(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Pu(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const VN=typeof ArrayBuffer=="function",WN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,c0=Object.prototype.toString,qN=typeof Blob=="function"||typeof Blob<"u"&&c0.call(Blob)==="[object BlobConstructor]",XN=typeof File=="function"||typeof File<"u"&&c0.call(File)==="[object FileConstructor]";function If(e){return VN&&(e instanceof ArrayBuffer||WN(e))||qN&&e instanceof Blob||XN&&e instanceof File}function Uo(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Uo(e[n]))return!0;return!1}if(If(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Uo(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Uo(e[n]))return!0;return!1}function QN(e){const t=[],n=e.data,r=e;return r.data=Iu(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Iu(e,t){if(!e)return e;if(If(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Iu(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Iu(e[r],t));return n}return e}function KN(e,t){return e.data=Du(e.data,t),delete e.attachments,e}function Du(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Du(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Du(e[n],t));return e}const ZN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],YN=5;var $;(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"})($||($={}));class JN{constructor(t){this.replacer=t}encode(t){return(t.type===$.EVENT||t.type===$.ACK)&&Uo(t)?this.encodeAsBinary({type:t.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===$.BINARY_EVENT||t.type===$.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=QN(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function bp(e){return Object.prototype.toString.call(e)==="[object Object]"}class Df extends he{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===$.BINARY_EVENT;r||n.type===$.BINARY_ACK?(n.type=r?$.EVENT:$.ACK,this.reconstructor=new eR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(If(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if($[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===$.BINARY_EVENT||r.type===$.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(Df.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case $.CONNECT:return bp(n);case $.DISCONNECT:return n===void 0;case $.CONNECT_ERROR:return typeof n=="string"||bp(n);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&ZN.indexOf(n[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eR{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=KN(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const tR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Df,Encoder:JN,get PacketType(){return $},protocol:YN},Symbol.toStringTag,{value:"Module"}));function mt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const nR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class f0 extends he{constructor(t,n,r){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=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[mt(t,"open",this.onopen.bind(this)),mt(t,"packet",this.onpacket.bind(this)),mt(t,"error",this.onerror.bind(this)),mt(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(nR.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:$.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,a=n.pop();this._registerAckCallback(s,a),r.id=s}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case $.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 $.EVENT:case $.BINARY_EVENT:this.onevent(t);break;case $.ACK:case $.BINARY_ACK:this.onack(t);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:$.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function zr(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}zr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};zr.prototype.reset=function(){this.attempts=0};zr.prototype.setMin=function(e){this.ms=e};zr.prototype.setMax=function(e){this.max=e};zr.prototype.setJitter=function(e){this.jitter=e};class Fu extends he{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,pa(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new zr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||tR;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new u0(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=mt(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=mt(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(mt(t,"ping",this.onping.bind(this)),mt(t,"data",this.ondata.bind(this)),mt(t,"error",this.onerror.bind(this)),mt(t,"close",this.onclose.bind(this)),mt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Pf(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new f0(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ii={};function zo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=GN(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=ii[i]&&o in ii[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Fu(r,t):(ii[i]||(ii[i]=new Fu(r,t)),l=ii[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(zo,{Manager:Fu,Socket:f0,io:zo,connect:zo});const rR=[V.ActionTypes.MESSAGE_TO_GUEST,V.ActionTypes.EVENT_TO_GUEST,V.ActionTypes.TYPING_ON,V.ActionTypes.TYPING_OFF,...Eb,...eb,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],iR=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let o=n(i);if(i.type===ca)r!=null&&r.disconnect(),e(bb()),r=zo(`/${i.clientName}/chat?${i.querystrings}`),r.on("action",e),r.on("connect",()=>e(xb())),r.on("disconnect",()=>e(Tb())),r.on("reconnect",()=>e(Cb())),r.on("set-translations",(s,a)=>{e(aN({language:s,messages:tN(s,a)}))}),r.on("enable-speech-support",()=>e(nb())),r.on("enable-problem-reporting",()=>e(rb())),r.on("enable-transcript-export",s=>e(ob(s))),r.on("enable-conversation-rating",s=>e(ub(s))),r.on("speech-transcription",s=>e(ib(s))),r.on("restore-client-state",s=>{e(Sb(s.sessionId)),e(db(s.messages))}),r.on("expand-window",({devices:s})=>e({type:Kv,devices:s})),r.on("show-general-conditions",()=>e(ab()));else if(i.type===JS)r==null||r.emit("get-started",JSON.stringify(i));else if(i.type===tf)r==null||r.emit("audio-message",i.buffer);else if(i.type===V.ActionTypes.CONVERSATION_RATING_FROM_GUEST)r==null||r.emit("conversation-rating",i.payload);else if(i.type===Zv){const{connection:{sessionId:s}}=t();window.location.href=`/transcript-pdf/${s}`}else rR.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit("action",JSON.stringify(i));return o}},d0=Py(),oR={...cN(d0),intl:Xy},Mu=Rk({middleware:e=>e().concat(iR),reducer:uN,preloadedState:oR});Mu.subscribe(VO(()=>{const e=Mu.getState();fN(d0,{connection:e.connection})},1e3));const sR=document.getElementById("root"),aR=Bg(sR);aR.render(_.jsx(QE,{store:Mu,children:_.jsx(YC,{})}));
127
- //# sourceMappingURL=index-ffa027ed.js.map