@botfabrik/engine-webclient 4.100.0 → 4.100.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/client/assets/index-DxcduRBk.js +125 -0
- package/dist/client/assets/index-DxcduRBk.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/embed/bundle.js +6 -6
- package/package.json +8 -8
- package/dist/client/assets/index-B6tm9zK9.js +0 -124
- package/dist/client/assets/index-B6tm9zK9.js.map +0 -1
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bf={exports:{}},Ls={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and 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 jg;function I2(){if(jg)return Ls;jg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:t,type:s,key:d,ref:u!==void 0?u:null,props:c}}return Ls.Fragment=r,Ls.jsx=i,Ls.jsxs=i,Ls}var Hg;function z2(){return Hg||(Hg=1,Bf.exports=I2()),Bf.exports}var y=z2(),Uf={exports:{}},Bs={},jf={exports:{}},Hf={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and 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 Ig;function G2(){return Ig||(Ig=1,(function(t){function r(G,K){var ee=G.length;G.push(K);e:for(;0<ee;){var Ae=ee-1>>>1,O=G[Ae];if(0<u(O,K))G[Ae]=K,G[ee]=O,ee=Ae;else break e}}function i(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var K=G[0],ee=G.pop();if(ee!==K){G[0]=ee;e:for(var Ae=0,O=G.length,k=O>>>1;Ae<k;){var $=2*(Ae+1)-1,Y=G[$],te=$+1,re=G[te];if(0>u(Y,ee))te<O&&0>u(re,Y)?(G[Ae]=re,G[te]=ee,Ae=te):(G[Ae]=Y,G[$]=ee,Ae=$);else if(te<O&&0>u(re,ee))G[Ae]=re,G[te]=ee,Ae=te;else break e}}return K}function u(G,K){var ee=G.sortIndex-K.sortIndex;return ee!==0?ee:G.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var m=[],p=[],b=1,_=null,x=3,U=!1,R=!1,q=!1,z=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function H(G){for(var K=i(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=G)s(p),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(p)}}function A(G){if(q=!1,H(G),!R)if(i(m)!==null)R=!0,Z||(Z=!0,me());else{var K=i(p);K!==null&&ve(A,K.startTime-G)}}var Z=!1,W=-1,ae=5,ye=-1;function Ee(){return z?!0:!(t.unstable_now()-ye<ae)}function se(){if(z=!1,Z){var G=t.unstable_now();ye=G;var K=!0;try{e:{R=!1,q&&(q=!1,w(W),W=-1),U=!0;var ee=x;try{t:{for(H(G),_=i(m);_!==null&&!(_.expirationTime>G&&Ee());){var Ae=_.callback;if(typeof Ae=="function"){_.callback=null,x=_.priorityLevel;var O=Ae(_.expirationTime<=G);if(G=t.unstable_now(),typeof O=="function"){_.callback=O,H(G),K=!0;break t}_===i(m)&&s(m),H(G)}else s(m);_=i(m)}if(_!==null)K=!0;else{var k=i(p);k!==null&&ve(A,k.startTime-G),K=!1}}break e}finally{_=null,x=ee,U=!1}K=void 0}}finally{K?me():Z=!1}}}var me;if(typeof S=="function")me=function(){S(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Pe=ce.port2;ce.port1.onmessage=se,me=function(){Pe.postMessage(null)}}else me=function(){E(se,0)};function ve(G,K){W=E(function(){G(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(G){G.callback=null},t.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<G?Math.floor(1e3/G):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(G){switch(x){case 1:case 2:case 3:var K=3;break;default:K=x}var ee=x;x=K;try{return G()}finally{x=ee}},t.unstable_requestPaint=function(){z=!0},t.unstable_runWithPriority=function(G,K){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ee=x;x=G;try{return K()}finally{x=ee}},t.unstable_scheduleCallback=function(G,K,ee){var Ae=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ae+ee:Ae):ee=Ae,G){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=ee+O,G={id:b++,callback:K,priorityLevel:G,startTime:ee,expirationTime:O,sortIndex:-1},ee>Ae?(G.sortIndex=ee,r(p,G),i(m)===null&&G===i(p)&&(q?(w(W),W=-1):q=!0,ve(A,ee-Ae))):(G.sortIndex=O,r(m,G),R||U||(R=!0,Z||(Z=!0,me()))),G},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(G){var K=x;return function(){var ee=x;x=K;try{return G.apply(this,arguments)}finally{x=ee}}}})(Hf)),Hf}var zg;function k2(){return zg||(zg=1,jf.exports=G2()),jf.exports}var If={exports:{}},be={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Gg;function q2(){if(Gg)return be;Gg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=_&&O[_]||O["@@iterator"],typeof O=="function"?O:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,q={};function z(O,k,$){this.props=O,this.context=k,this.refs=q,this.updater=$||U}z.prototype.isReactComponent={},z.prototype.setState=function(O,k){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,k,"setState")},z.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function E(){}E.prototype=z.prototype;function w(O,k,$){this.props=O,this.context=k,this.refs=q,this.updater=$||U}var S=w.prototype=new E;S.constructor=w,R(S,z.prototype),S.isPureReactComponent=!0;var H=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function W(O,k,$,Y,te,re){return $=re.ref,{$$typeof:t,type:O,key:k,ref:$!==void 0?$:null,props:re}}function ae(O,k){return W(O.type,k,void 0,void 0,void 0,O.props)}function ye(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function Ee(O){var k={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function($){return k[$]})}var se=/\/+/g;function me(O,k){return typeof O=="object"&&O!==null&&O.key!=null?Ee(""+O.key):k.toString(36)}function ce(){}function Pe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(k){O.status==="pending"&&(O.status="fulfilled",O.value=k)},function(k){O.status==="pending"&&(O.status="rejected",O.reason=k)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ve(O,k,$,Y,te){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var ue=!1;if(O===null)ue=!0;else switch(re){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(O.$$typeof){case t:case r:ue=!0;break;case b:return ue=O._init,ve(ue(O._payload),k,$,Y,te)}}if(ue)return te=te(O),ue=Y===""?"."+me(O,0):Y,H(te)?($="",ue!=null&&($=ue.replace(se,"$&/")+"/"),ve(te,k,$,"",function(St){return St})):te!=null&&(ye(te)&&(te=ae(te,$+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ue)),k.push(te)),1;ue=0;var Je=Y===""?".":Y+":";if(H(O))for(var Ue=0;Ue<O.length;Ue++)Y=O[Ue],re=Je+me(Y,Ue),ue+=ve(Y,k,$,re,te);else if(Ue=x(O),typeof Ue=="function")for(O=Ue.call(O),Ue=0;!(Y=O.next()).done;)Y=Y.value,re=Je+me(Y,Ue++),ue+=ve(Y,k,$,re,te);else if(re==="object"){if(typeof O.then=="function")return ve(Pe(O),k,$,Y,te);throw k=String(O),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ue}function G(O,k,$){if(O==null)return O;var Y=[],te=0;return ve(O,Y,"","",function(re){return k.call($,re,te++)}),Y}function K(O){if(O._status===-1){var k=O._result;k=k(),k.then(function($){(O._status===0||O._status===-1)&&(O._status=1,O._result=$)},function($){(O._status===0||O._status===-1)&&(O._status=2,O._result=$)}),O._status===-1&&(O._status=0,O._result=k)}if(O._status===1)return O._result.default;throw O._result}var ee=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function Ae(){}return be.Children={map:G,forEach:function(O,k,$){G(O,function(){k.apply(this,arguments)},$)},count:function(O){var k=0;return G(O,function(){k++}),k},toArray:function(O){return G(O,function(k){return k})||[]},only:function(O){if(!ye(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},be.Component=z,be.Fragment=i,be.Profiler=u,be.PureComponent=w,be.StrictMode=s,be.Suspense=m,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,be.__COMPILER_RUNTIME={__proto__:null,c:function(O){return A.H.useMemoCache(O)}},be.cache=function(O){return function(){return O.apply(null,arguments)}},be.cloneElement=function(O,k,$){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var Y=R({},O.props),te=O.key,re=void 0;if(k!=null)for(ue in k.ref!==void 0&&(re=void 0),k.key!==void 0&&(te=""+k.key),k)!Z.call(k,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&k.ref===void 0||(Y[ue]=k[ue]);var ue=arguments.length-2;if(ue===1)Y.children=$;else if(1<ue){for(var Je=Array(ue),Ue=0;Ue<ue;Ue++)Je[Ue]=arguments[Ue+2];Y.children=Je}return W(O.type,te,void 0,void 0,re,Y)},be.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},be.createElement=function(O,k,$){var Y,te={},re=null;if(k!=null)for(Y in k.key!==void 0&&(re=""+k.key),k)Z.call(k,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=k[Y]);var ue=arguments.length-2;if(ue===1)te.children=$;else if(1<ue){for(var Je=Array(ue),Ue=0;Ue<ue;Ue++)Je[Ue]=arguments[Ue+2];te.children=Je}if(O&&O.defaultProps)for(Y in ue=O.defaultProps,ue)te[Y]===void 0&&(te[Y]=ue[Y]);return W(O,re,void 0,void 0,null,te)},be.createRef=function(){return{current:null}},be.forwardRef=function(O){return{$$typeof:h,render:O}},be.isValidElement=ye,be.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:K}},be.memo=function(O,k){return{$$typeof:p,type:O,compare:k===void 0?null:k}},be.startTransition=function(O){var k=A.T,$={};A.T=$;try{var Y=O(),te=A.S;te!==null&&te($,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Ae,ee)}catch(re){ee(re)}finally{A.T=k}},be.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},be.use=function(O){return A.H.use(O)},be.useActionState=function(O,k,$){return A.H.useActionState(O,k,$)},be.useCallback=function(O,k){return A.H.useCallback(O,k)},be.useContext=function(O){return A.H.useContext(O)},be.useDebugValue=function(){},be.useDeferredValue=function(O,k){return A.H.useDeferredValue(O,k)},be.useEffect=function(O,k,$){var Y=A.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(O,k)},be.useId=function(){return A.H.useId()},be.useImperativeHandle=function(O,k,$){return A.H.useImperativeHandle(O,k,$)},be.useInsertionEffect=function(O,k){return A.H.useInsertionEffect(O,k)},be.useLayoutEffect=function(O,k){return A.H.useLayoutEffect(O,k)},be.useMemo=function(O,k){return A.H.useMemo(O,k)},be.useOptimistic=function(O,k){return A.H.useOptimistic(O,k)},be.useReducer=function(O,k,$){return A.H.useReducer(O,k,$)},be.useRef=function(O){return A.H.useRef(O)},be.useState=function(O){return A.H.useState(O)},be.useSyncExternalStore=function(O,k,$){return A.H.useSyncExternalStore(O,k,$)},be.useTransition=function(){return A.H.useTransition()},be.version="19.1.1",be}var kg;function cu(){return kg||(kg=1,If.exports=q2()),If.exports}var zf={exports:{}},Ut={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and 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 qg;function F2(){if(qg)return Ut;qg=1;var t=cu();function r(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,p,b){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:_==null?null:""+_,children:m,containerInfo:p,implementation:b}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(m,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return c(m,p,null,b)},Ut.flushSync=function(m){var p=d.T,b=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=p,s.p=b,s.d.f()}},Ut.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},Ut.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Ut.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,_=h(b,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,U=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:x,fetchPriority:U}):b==="script"&&s.d.X(m,{crossOrigin:_,integrity:x,fetchPriority:U,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},Ut.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,_=h(b,p.crossOrigin);s.d.L(m,b,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},Ut.requestFormReset=function(m){s.d.r(m)},Ut.unstable_batchedUpdates=function(m,p){return m(p)},Ut.useFormState=function(m,p,b){return d.H.useFormState(m,p,b)},Ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ut.version="19.1.1",Ut}var Fg;function V2(){if(Fg)return zf.exports;Fg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),zf.exports=F2(),zf.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Vg;function P2(){if(Vg)return Bs;Vg=1;var t=k2(),r=cu(),i=V2();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,l=n;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return h(o),e;if(f===l)return h(o),n;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var g=!1,v=o.child;v;){if(v===a){g=!0,a=o,l=f;break}if(v===l){g=!0,l=o,a=f;break}v=v.sibling}if(!g){for(v=f.child;v;){if(v===a){g=!0,a=f,l=o;break}if(v===l){g=!0,l=f,a=o;break}v=v.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,_=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ee=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case z:return"Profiler";case q:return"StrictMode";case A:return"Suspense";case Z:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case S:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case H:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return n=e.displayName||null,n!==null?n:Pe(e.type)||"Memo";case ae:n=e._payload,e=e._init;try{return Pe(e(n))}catch{}}return null}var ve=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Ae=[],O=-1;function k(e){return{current:e}}function $(e){0>O||(e.current=Ae[O],Ae[O]=null,O--)}function Y(e,n){O++,Ae[O]=e.current,e.current=n}var te=k(null),re=k(null),ue=k(null),Je=k(null);function Ue(e,n){switch(Y(ue,n),Y(re,e),Y(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?cg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=cg(n),e=fg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(te),Y(te,e)}function St(){$(te),$(re),$(ue)}function qn(e){e.memoizedState!==null&&Y(Je,e);var n=te.current,a=fg(n,e.type);n!==a&&(Y(re,e),Y(te,a))}function Nr(e){re.current===e&&($(te),$(re)),Je.current===e&&($(Je),ws._currentValue=ee)}var Qe=Object.prototype.hasOwnProperty,qt=t.unstable_scheduleCallback,On=t.unstable_cancelCallback,Di=t.unstable_shouldYield,Li=t.unstable_requestPaint,Tt=t.unstable_now,qa=t.unstable_getCurrentPriorityLevel,oa=t.unstable_ImmediatePriority,Bi=t.unstable_UserBlockingPriority,ua=t.unstable_NormalPriority,xu=t.unstable_LowPriority,Fa=t.unstable_IdlePriority,ca=t.log,Mr=t.unstable_setDisableYieldValue,dn=null,Nt=null;function Rn(e){if(typeof ca=="function"&&Mr(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(dn,e)}catch{}}var Mt=Math.clz32?Math.clz32:Va,Ui=Math.log,il=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Ui(e)/il|0)|0}var nr=256,Ft=4194304;function Vt(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Dr(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~f,l!==0?o=Vt(l):(g&=v,g!==0?o=Vt(g):a||(a=v&~e,a!==0&&(o=Vt(a))))):(v=l&~f,v!==0?o=Vt(v):g!==0?o=Vt(g):a||(a=l&~e,a!==0&&(o=Vt(a)))),o===0?0:n!==0&&n!==o&&(n&f)===0&&(f=o&-o,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:o}function rr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ou(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fa(){var e=nr;return nr<<=1,(nr&4194048)===0&&(nr=256),e}function da(){var e=Ft;return Ft<<=1,(Ft&62914560)===0&&(Ft=4194304),e}function ji(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function wn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ru(e,n,a,l,o,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(a=g&~a;0<a;){var F=31-Mt(a),P=1<<F;v[F]=0,T[F]=-1;var j=L[F];if(j!==null)for(L[F]=null,F=0;F<j.length;F++){var I=j[F];I!==null&&(I.lane&=-536870913)}a&=~P}l!==0&&sl(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~n))}function sl(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Mt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function rt(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-Mt(a),o=1<<l;o&n|e[l]&n&&(e[l]|=n),a&=~o}}function Fn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ii(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Ng(e.type))}function zi(e,n){var a=K.p;try{return K.p=e,n()}finally{K.p=a}}var Cn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Cn,Dt="__reactProps$"+Cn,At="__reactContainer$"+Cn,Nn="__reactEvents$"+Cn,ll="__reactListeners$"+Cn,ol="__reactHandles$"+Cn,Pa="__reactResources$"+Cn,Lr="__reactMarker$"+Cn;function Kt(e){delete e[ht],delete e[Dt],delete e[Nn],delete e[ll],delete e[ol]}function ar(e){var n=e[ht];if(n)return n;for(var a=e.parentNode;a;){if(n=a[At]||a[ht]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=pg(e);e!==null;){if(a=e[ht])return a;e=pg(e)}return n}e=a,a=e.parentNode}return null}function ir(e){if(e=e[ht]||e[At]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Br(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function sr(e){var n=e[Pa];return n||(n=e[Pa]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ot(e){e[Lr]=!0}var le=new Set,N={};function X(e,n){J(e,n),J(e+"Capture",n)}function J(e,n){for(N[e]=n,e=0;e<n.length;e++)le.add(n[e])}var Fe=RegExp("^[: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]*$"),mt={},Ke={};function Lt(e){return Qe.call(Ke,e)?!0:Qe.call(mt,e)?!1:Fe.test(e)?Ke[e]=!0:(mt[e]=!0,!1)}function Pt(e,n,a){if(Lt(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Mn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function $t(e,n,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+l)}}var at,Gi;function lr(e){if(at===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);at=n&&n[1]||"",Gi=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+at+e+Gi}var wu=!1;function Cu(e,n){if(!e||wu)return"";wu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(I){var j=I}Reflect.construct(e,[],P)}else{try{P.call()}catch(I){j=I}e.call(P.prototype)}}else{try{throw Error()}catch(I){j=I}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(I){if(I&&j&&typeof I.stack=="string")return[I.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),g=f[0],v=f[1];if(g&&v){var T=g.split(`
|
|
44
|
-
`),L=v.split(`
|
|
45
|
-
`);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===L.length)for(l=T.length-1,o=L.length-1;1<=l&&0<=o&&T[l]!==L[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==L[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==L[o]){var F=`
|
|
46
|
-
`+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{wu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?lr(a):""}function D_(e){switch(e.tag){case 26:case 27:case 5:return lr(e.type);case 16:return lr("Lazy");case 13:return lr("Suspense");case 19:return lr("SuspenseList");case 0:case 15:return Cu(e.type,!1);case 11:return Cu(e.type.render,!1);case 1:return Cu(e.type,!0);case 31:return lr("Activity");default:return""}}function am(e){try{var n="";do n+=D_(e),e=e.return;while(e);return n}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function im(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function L_(e){var n=im(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,f.call(this,g)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ul(e){e._valueTracker||(e._valueTracker=L_(e))}function sm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=im(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function cl(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}}var B_=/[\n"\\]/g;function mn(e){return e.replace(B_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Nu(e,n,a,l,o,f,g,v){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+hn(n)):e.value!==""+hn(n)&&(e.value=""+hn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?Mu(e,g,hn(n)):a!=null?Mu(e,g,hn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+hn(v):e.removeAttribute("name")}function lm(e,n,a,l,o,f,g,v){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+hn(a):"",n=n!=null?""+hn(n):a,v||n===e.value||(e.value=n),e.defaultValue=n}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Mu(e,n,a){n==="number"&&cl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ya(e,n,a,l){if(e=e.options,n){n={};for(var o=0;o<a.length;o++)n["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=n.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+hn(a),n=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}n!==null||e[o].disabled||(n=e[o])}n!==null&&(n.selected=!0)}}function om(e,n,a){if(n!=null&&(n=""+hn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+hn(a):""}function um(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=hn(n),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Xa(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var U_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function cm(e,n,a){var l=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,a):typeof a!="number"||a===0||U_.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function fm(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in n)l=n[o],n.hasOwnProperty(o)&&a[o]!==l&&cm(e,o,l)}else for(var f in n)n.hasOwnProperty(f)&&cm(e,f,n[f])}function Du(e){if(e.indexOf("-")===-1)return!1;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 j_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),H_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fl(e){return H_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Lu=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Qa=null;function dm(e){var n=ir(e);if(n&&(e=n.stateNode)){var a=e[Dt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Nu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+mn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var o=l[Dt]||null;if(!o)throw Error(s(90));Nu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(n=0;n<a.length;n++)l=a[n],l.form===e.form&&sm(l)}break e;case"textarea":om(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ya(e,!!a.multiple,n,!1)}}}var Uu=!1;function hm(e,n,a){if(Uu)return e(n,a);Uu=!0;try{var l=e(n);return l}finally{if(Uu=!1,(Za!==null||Qa!==null)&&(Kl(),Za&&(n=Za,e=Qa,Qa=Za=null,dm(n),e)))for(n=0;n<e.length;n++)dm(e[n])}}function ki(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Dt]||null;if(l===null)return null;a=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,n,typeof a));return a}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ju=!1;if(or)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){ju=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{ju=!1}var Ur=null,Hu=null,dl=null;function mm(){if(dl)return dl;var e,n=Hu,a=n.length,l,o="value"in Ur?Ur.value:Ur.textContent,f=o.length;for(e=0;e<a&&n[e]===o[e];e++);var g=a-e;for(l=1;l<=g&&n[a-l]===o[f-l];l++);return dl=o.slice(e,1<l?1-l:void 0)}function hl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ml(){return!0}function pm(){return!1}function Yt(e){function n(a,l,o,f,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ml:pm,this.isPropagationStopped=pm,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ml)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),n}var ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Yt(ha),Fi=b({},ha,{view:0,detail:0}),I_=Yt(Fi),Iu,zu,Vi,gl=b({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,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!==Vi&&(Vi&&e.type==="mousemove"?(Iu=e.screenX-Vi.screenX,zu=e.screenY-Vi.screenY):zu=Iu=0,Vi=e),Iu)},movementY:function(e){return"movementY"in e?e.movementY:zu}}),gm=Yt(gl),z_=b({},gl,{dataTransfer:0}),G_=Yt(z_),k_=b({},Fi,{relatedTarget:0}),Gu=Yt(k_),q_=b({},ha,{animationName:0,elapsedTime:0,pseudoElement:0}),F_=Yt(q_),V_=b({},ha,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P_=Yt(V_),Y_=b({},ha,{data:0}),ym=Yt(Y_),X_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z_={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"},Q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Q_[e])?!!n[e]:!1}function ku(){return K_}var $_=b({},Fi,{key:function(e){if(e.key){var n=X_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W_=Yt($_),J_=b({},gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bm=Yt(J_),eE=b({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),tE=Yt(eE),nE=b({},ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),rE=Yt(nE),aE=b({},gl,{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}),iE=Yt(aE),sE=b({},ha,{newState:0,oldState:0}),lE=Yt(sE),oE=[9,13,27,32],qu=or&&"CompositionEvent"in window,Pi=null;or&&"documentMode"in document&&(Pi=document.documentMode);var uE=or&&"TextEvent"in window&&!Pi,vm=or&&(!qu||Pi&&8<Pi&&11>=Pi),_m=" ",Em=!1;function Sm(e,n){switch(e){case"keyup":return oE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function cE(e,n){switch(e){case"compositionend":return Tm(n);case"keypress":return n.which!==32?null:(Em=!0,_m);case"textInput":return e=n.data,e===_m&&Em?null:e;default:return null}}function fE(e,n){if(Ka)return e==="compositionend"||!qu&&Sm(e,n)?(e=mm(),dl=Hu=Ur=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return vm&&n.locale!=="ko"?null:n.data;default:return null}}var dE={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 Am(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!dE[e.type]:n==="textarea"}function xm(e,n,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,n=no(n,"onChange"),0<n.length&&(a=new pl("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Yi=null,Xi=null;function hE(e){ig(e,0)}function yl(e){var n=Br(e);if(sm(n))return e}function Om(e,n){if(e==="change")return n}var Rm=!1;if(or){var Fu;if(or){var Vu="oninput"in document;if(!Vu){var wm=document.createElement("div");wm.setAttribute("oninput","return;"),Vu=typeof wm.oninput=="function"}Fu=Vu}else Fu=!1;Rm=Fu&&(!document.documentMode||9<document.documentMode)}function Cm(){Yi&&(Yi.detachEvent("onpropertychange",Nm),Xi=Yi=null)}function Nm(e){if(e.propertyName==="value"&&yl(Xi)){var n=[];xm(n,Xi,e,Bu(e)),hm(hE,n)}}function mE(e,n,a){e==="focusin"?(Cm(),Yi=n,Xi=a,Yi.attachEvent("onpropertychange",Nm)):e==="focusout"&&Cm()}function pE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(Xi)}function gE(e,n){if(e==="click")return yl(n)}function yE(e,n){if(e==="input"||e==="change")return yl(n)}function bE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Wt=typeof Object.is=="function"?Object.is:bE;function Zi(e,n){if(Wt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Qe.call(n,o)||!Wt(e[o],n[o]))return!1}return!0}function Mm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dm(e,n){var a=Mm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=n&&l>=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Mm(a)}}function Lm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Lm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Bm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=cl(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=cl(e.document)}return n}function Pu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var vE=or&&"documentMode"in document&&11>=document.documentMode,$a=null,Yu=null,Qi=null,Xu=!1;function Um(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Xu||$a==null||$a!==cl(l)||(l=$a,"selectionStart"in l&&Pu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Zi(Qi,l)||(Qi=l,l=no(Yu,"onSelect"),0<l.length&&(n=new pl("onSelect","select",null,n,a),e.push({event:n,listeners:l}),n.target=$a)))}function ma(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Wa={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},Zu={},jm={};or&&(jm=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function pa(e){if(Zu[e])return Zu[e];if(!Wa[e])return e;var n=Wa[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in jm)return Zu[e]=n[a];return e}var Hm=pa("animationend"),Im=pa("animationiteration"),zm=pa("animationstart"),_E=pa("transitionrun"),EE=pa("transitionstart"),SE=pa("transitioncancel"),Gm=pa("transitionend"),km=new Map,Qu="abort auxClick beforeToggle 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(" ");Qu.push("scrollEnd");function Dn(e,n){km.set(e,n),X(n,[e])}var qm=new WeakMap;function pn(e,n){if(typeof e=="object"&&e!==null){var a=qm.get(e);return a!==void 0?a:(n={value:e,source:n,stack:am(n)},qm.set(e,n),n)}return{value:e,source:n,stack:am(n)}}var gn=[],Ja=0,Ku=0;function bl(){for(var e=Ja,n=Ku=Ja=0;n<e;){var a=gn[n];gn[n++]=null;var l=gn[n];gn[n++]=null;var o=gn[n];gn[n++]=null;var f=gn[n];if(gn[n++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}f!==0&&Fm(a,o,f)}}function vl(e,n,a,l){gn[Ja++]=e,gn[Ja++]=n,gn[Ja++]=a,gn[Ja++]=l,Ku|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $u(e,n,a,l){return vl(e,n,a,l),_l(e)}function ei(e,n){return vl(e,null,null,n),_l(e)}function Fm(e,n,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&n!==null&&(o=31-Mt(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[n]:l.push(n),n.lane=a|536870912),f):null}function _l(e){if(50<_s)throw _s=0,rf=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function TE(e,n,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,n,a,l){return new TE(e,n,a,l)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ur(e,n){var a=e.alternate;return a===null?(a=Jt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Vm(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function El(e,n,a,l,o,f){var g=0;if(l=e,typeof e=="function")Wu(e)&&(g=1);else if(typeof e=="string")g=x2(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Jt(31,a,n,o),e.elementType=ye,e.lanes=f,e;case R:return ga(a.children,o,f,n);case q:g=8,o|=24;break;case z:return e=Jt(12,a,n,o|2),e.elementType=z,e.lanes=f,e;case A:return e=Jt(13,a,n,o),e.elementType=A,e.lanes=f,e;case Z:return e=Jt(19,a,n,o),e.elementType=Z,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case S:g=10;break e;case w:g=9;break e;case H:g=11;break e;case W:g=14;break e;case ae:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=Jt(g,a,n,o),n.elementType=e,n.type=l,n.lanes=f,n}function ga(e,n,a,l){return e=Jt(7,e,l,n),e.lanes=a,e}function Ju(e,n,a){return e=Jt(6,e,null,n),e.lanes=a,e}function ec(e,n,a){return n=Jt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,Sl=null,Tl=0,yn=[],bn=0,ya=null,cr=1,fr="";function ba(e,n){ni[ri++]=Tl,ni[ri++]=Sl,Sl=e,Tl=n}function Pm(e,n,a){yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ya,ya=e;var l=cr;e=fr;var o=32-Mt(l)-1;l&=~(1<<o),a+=1;var f=32-Mt(n)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,cr=1<<32-Mt(n)+o|a<<o|l,fr=f+e}else cr=1<<f|a<<o|l,fr=e}function tc(e){e.return!==null&&(ba(e,1),Pm(e,1,0))}function nc(e){for(;e===Sl;)Sl=ni[--ri],ni[ri]=null,Tl=ni[--ri],ni[ri]=null;for(;e===ya;)ya=yn[--bn],yn[bn]=null,fr=yn[--bn],yn[bn]=null,cr=yn[--bn],yn[bn]=null}var jt=null,et=null,Le=!1,va=null,Vn=!1,rc=Error(s(519));function _a(e){var n=Error(s(418,""));throw Wi(pn(n,e)),rc}function Ym(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[ht]=e,n[Dt]=l,a){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(a=0;a<Ss.length;a++)Oe(Ss[a],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":Oe("invalid",n),lm(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ul(n);break;case"select":Oe("invalid",n);break;case"textarea":Oe("invalid",n),um(n,l.value,l.defaultValue,l.children),ul(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||ug(n.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",n),Oe("toggle",n)),l.onScroll!=null&&Oe("scroll",n),l.onScrollEnd!=null&&Oe("scrollend",n),l.onClick!=null&&(n.onclick=ro),n=!0):n=!1,n||_a(e)}function Xm(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:jt=jt.return}}function Ki(e){if(e!==jt)return!1;if(!Le)return Xm(e),Le=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||_f(e.type,e.memoizedProps)),a=!a),a&&et&&_a(e),Xm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(n===0){et=Bn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}et=null}}else n===27?(n=et,$r(e.type)?(e=Af,Af=null,et=e):et=n):et=jt?Bn(e.stateNode.nextSibling):null;return!0}function $i(){et=jt=null,Le=!1}function Zm(){var e=va;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),va=null),e}function Wi(e){va===null?va=[e]:va.push(e)}var ac=k(null),Ea=null,dr=null;function jr(e,n,a){Y(ac,n._currentValue),n._currentValue=a}function hr(e){e._currentValue=ac.current,$(ac)}function ic(e,n,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===a)break;e=e.return}}function sc(e,n,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var g=o.child;f=f.firstContext;e:for(;f!==null;){var v=f;f=o;for(var T=0;T<n.length;T++)if(v.context===n[T]){f.lanes|=a,v=f.alternate,v!==null&&(v.lanes|=a),ic(f.return,a,e),l||(g=null);break e}f=v.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(s(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),ic(g,a,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ji(e,n,a,l){e=null;for(var o=n,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var v=o.type;Wt(o.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(o===Je.current){if(g=o.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&sc(n,e,a,l),n.flags|=262144}function Al(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){Ea=e,dr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return Qm(Ea,e)}function xl(e,n){return Ea===null&&Sa(e),Qm(e,n)}function Qm(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},dr===null){if(e===null)throw Error(s(308));dr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else dr=dr.next=n;return a}var AE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},xE=t.unstable_scheduleCallback,OE=t.unstable_NormalPriority,pt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new AE,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&xE(OE,function(){e.controller.abort()})}var ts=null,oc=0,ai=0,ii=null;function RE(e,n){if(ts===null){var a=ts=[];oc=0,ai=ff(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return oc++,n.then(Km,Km),n}function Km(){if(--oc===0&&ts!==null){ii!==null&&(ii.status="fulfilled");var e=ts;ts=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function wE(e,n){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var o=0;o<a.length;o++)(0,a[o])(n)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var $m=G.S;G.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&RE(e,n),$m!==null&&$m(e,n)};var Ta=k(null);function uc(){var e=Ta.current;return e!==null?e:Ve.pooledCache}function Ol(e,n){n===null?Y(Ta,Ta.current):Y(Ta,n.pool)}function Wm(){var e=uc();return e===null?null:{parent:pt._currentValue,pool:e}}var ns=Error(s(460)),Jm=Error(s(474)),Rl=Error(s(542)),cc={then:function(){}};function e0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wl(){}function t0(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(wl,wl),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,r0(e),e;default:if(typeof n.status=="string")n.then(wl,wl);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var o=n;o.status="fulfilled",o.value=l}},function(l){if(n.status==="pending"){var o=n;o.status="rejected",o.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,r0(e),e}throw rs=n,ns}}var rs=null;function n0(){if(rs===null)throw Error(s(459));var e=rs;return rs=null,e}function r0(e){if(e===ns||e===Rl)throw Error(s(483))}var Hr=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ir(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var o=l.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n,n=_l(e),Fm(e,null,a),n}return vl(e,l,n,a),_l(e)}function as(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,rt(e,a)}}function hc(e,n){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?o=f=n:f=f.next=n}else o=f=n;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var mc=!1;function is(){if(mc){var e=ii;if(e!==null)throw e}}function ss(e,n,a,l){mc=!1;var o=e.updateQueue;Hr=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,L=T.next;T.next=null,g===null?f=L:g.next=L,g=T;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==g&&(v===null?F.firstBaseUpdate=L:v.next=L,F.lastBaseUpdate=T))}if(f!==null){var P=o.baseState;g=0,F=L=T=null,v=f;do{var j=v.lane&-536870913,I=j!==v.lane;if(I?(Ne&j)===j:(l&j)===j){j!==0&&j===ai&&(mc=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var he=e,fe=v;j=n;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,j);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,j=typeof he=="function"?he.call(ke,P,j):he,j==null)break e;P=b({},P,j);break e;case 2:Hr=!0}}j=v.callback,j!==null&&(e.flags|=64,I&&(e.flags|=8192),I=o.callbacks,I===null?o.callbacks=[j]:I.push(j))}else I={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(L=F=I,T=P):F=F.next=I,g|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;I=v,v=I.next,I.next=null,o.lastBaseUpdate=I,o.shared.pending=null}}while(!0);F===null&&(T=P),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=F,f===null&&(o.shared.lanes=0),Xr|=g,e.lanes=g,e.memoizedState=P}}function a0(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function i0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)a0(a[e],n)}var si=k(null),Cl=k(0);function s0(e,n){e=_r,Y(Cl,e),Y(si,n),_r=e|n.baseLanes}function pc(){Y(Cl,_r),Y(si,si.current)}function gc(){_r=Cl.current,$(si),$(Cl)}var Gr=0,_e=null,ze=null,ut=null,Nl=!1,li=!1,Aa=!1,Ml=0,ls=0,oi=null,CE=0;function it(){throw Error(s(321))}function yc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Wt(e[a],n[a]))return!1;return!0}function bc(e,n,a,l,o,f){return Gr=f,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,G.H=e===null||e.memoizedState===null?F0:V0,Aa=!1,f=a(l,o),Aa=!1,li&&(f=o0(n,a,l,o)),l0(e),f}function l0(e){G.H=Hl;var n=ze!==null&&ze.next!==null;if(Gr=0,ut=ze=_e=null,Nl=!1,ls=0,oi=null,n)throw Error(s(300));e===null||yt||(e=e.dependencies,e!==null&&Al(e)&&(yt=!0))}function o0(e,n,a,l){_e=e;var o=0;do{if(li&&(oi=null),ls=0,li=!1,25<=o)throw Error(s(301));if(o+=1,ut=ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}G.H=jE,f=n(a,l)}while(li);return f}function NE(){var e=G.H,n=e.useState()[0];return n=typeof n.then=="function"?os(n):n,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(_e.flags|=1024),n}function vc(){var e=Ml!==0;return Ml=0,e}function _c(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Ec(e){if(Nl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Nl=!1}Gr=0,ut=ze=_e=null,li=!1,ls=Ml=0,oi=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?_e.memoizedState=ut=e:ut=ut.next=e,ut}function ct(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var n=ut===null?_e.memoizedState:ut.next;if(n!==null)ut=n,ze=e;else{if(e===null)throw _e.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},ut===null?_e.memoizedState=ut=e:ut=ut.next=e}return ut}function Sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var n=ls;return ls+=1,oi===null&&(oi=[]),e=t0(oi,e,n),n=_e,(ut===null?n.memoizedState:ut.next)===null&&(n=n.alternate,G.H=n===null||n.memoizedState===null?F0:V0),e}function Dl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===S)return Bt(e)}throw Error(s(438,String(e)))}function Tc(e){var n=null,a=_e.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var l=_e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(o){return o.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Sc(),_e.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),l=0;l<e;l++)a[l]=Ee;return n.index++,a}function mr(e,n){return typeof n=="function"?n(e):n}function Ll(e){var n=ct();return Ac(n,ze,e)}function Ac(e,n,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var g=o.next;o.next=f.next,f.next=g}n.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{n=o.next;var v=g=null,T=null,L=n,F=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Ne&P)===P:(Gr&P)===P){var j=L.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===ai&&(F=!0);else if((Gr&j)===j){L=L.next,j===ai&&(F=!0);continue}else P={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=P,g=f):T=T.next=P,_e.lanes|=j,Xr|=j;P=L.action,Aa&&a(f,P),f=L.hasEagerState?L.eagerState:a(f,P)}else j={lane:P,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=j,g=f):T=T.next=j,_e.lanes|=P,Xr|=P;L=L.next}while(L!==null&&L!==n);if(T===null?g=f:T.next=v,!Wt(f,e.memoizedState)&&(yt=!0,F&&(a=ii,a!==null)))throw a;e.memoizedState=f,e.baseState=g,e.baseQueue=T,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function xc(e){var n=ct(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=n.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do f=e(f,g.action),g=g.next;while(g!==o);Wt(f,n.memoizedState)||(yt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),a.lastRenderedState=f}return[f,l]}function u0(e,n,a){var l=_e,o=ct(),f=Le;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=n();var g=!Wt((ze||o).memoizedState,a);g&&(o.memoizedState=a,yt=!0),o=o.queue;var v=d0.bind(null,l,o,e);if(us(2048,8,v,[e]),o.getSnapshot!==n||g||ut!==null&&ut.memoizedState.tag&1){if(l.flags|=2048,ui(9,Bl(),f0.bind(null,l,o,a,n),null),Ve===null)throw Error(s(349));f||(Gr&124)!==0||c0(l,n,a)}return a}function c0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=_e.updateQueue,n===null?(n=Sc(),_e.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function f0(e,n,a,l){n.value=a,n.getSnapshot=l,h0(n)&&m0(e)}function d0(e,n,a){return a(function(){h0(n)&&m0(e)})}function h0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Wt(e,a)}catch{return!0}}function m0(e){var n=ei(e,2);n!==null&&an(n,e,2)}function Oc(e){var n=Xt();if(typeof e=="function"){var a=e;if(e=a(),Aa){Rn(!0);try{a()}finally{Rn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},n}function p0(e,n,a,l){return e.baseState=a,Ac(e,ze,typeof l=="function"?l:mr)}function ME(e,n,a,l,o){if(jl(e))throw Error(s(485));if(e=n.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};G.T!==null?a(!0):f.isTransition=!1,l(f),a=n.pending,a===null?(f.next=n.pending=f,g0(n,f)):(f.next=a.next,n.pending=a.next=f)}}function g0(e,n){var a=n.action,l=n.payload,o=e.state;if(n.isTransition){var f=G.T,g={};G.T=g;try{var v=a(o,l),T=G.S;T!==null&&T(g,v),y0(e,n,v)}catch(L){Rc(e,n,L)}finally{G.T=f}}else try{f=a(o,l),y0(e,n,f)}catch(L){Rc(e,n,L)}}function y0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){b0(e,n,l)},function(l){return Rc(e,n,l)}):b0(e,n,a)}function b0(e,n,a){n.status="fulfilled",n.value=a,v0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,g0(e,a)))}function Rc(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,v0(n),n=n.next;while(n!==l)}e.action=null}function v0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function _0(e,n){return n}function E0(e,n){if(Le){var a=Ve.formState;if(a!==null){e:{var l=_e;if(Le){if(et){t:{for(var o=et,f=Vn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Bn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){et=Bn(o.nextSibling),l=o.data==="F!";break e}}_a(l)}l=!1}l&&(n=a[0])}}return a=Xt(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_0,lastRenderedState:n},a.queue=l,a=G0.bind(null,_e,l),l.dispatch=a,l=Oc(!1),f=Dc.bind(null,_e,!1,l.queue),l=Xt(),o={state:n,dispatch:null,action:e,pending:null},l.queue=o,a=ME.bind(null,_e,o,f,a),o.dispatch=a,l.memoizedState=e,[n,a,!1]}function S0(e){var n=ct();return T0(n,ze,e)}function T0(e,n,a){if(n=Ac(e,n,_0)[0],e=Ll(mr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=os(n)}catch(g){throw g===ns?Rl:g}else l=n;n=ct();var o=n.queue,f=o.dispatch;return a!==n.memoizedState&&(_e.flags|=2048,ui(9,Bl(),DE.bind(null,o,a),null)),[l,f,e]}function DE(e,n){e.action=n}function A0(e){var n=ct(),a=ze;if(a!==null)return T0(n,a,e);ct(),n=n.memoizedState,a=ct();var l=a.queue.dispatch;return a.memoizedState=e,[n,l,!1]}function ui(e,n,a,l){return e={tag:e,create:a,deps:l,inst:n,next:null},n=_e.updateQueue,n===null&&(n=Sc(),_e.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,n.lastEffect=e),e}function Bl(){return{destroy:void 0,resource:void 0}}function x0(){return ct().memoizedState}function Ul(e,n,a,l){var o=Xt();l=l===void 0?null:l,_e.flags|=e,o.memoizedState=ui(1|n,Bl(),a,l)}function us(e,n,a,l){var o=ct();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&yc(l,ze.memoizedState.deps)?o.memoizedState=ui(n,f,a,l):(_e.flags|=e,o.memoizedState=ui(1|n,f,a,l))}function O0(e,n){Ul(8390656,8,e,n)}function R0(e,n){us(2048,8,e,n)}function w0(e,n){return us(4,2,e,n)}function C0(e,n){return us(4,4,e,n)}function N0(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function M0(e,n,a){a=a!=null?a.concat([e]):null,us(4,4,N0.bind(null,n,e),a)}function wc(){}function D0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&yc(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function L0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&yc(n,l[1]))return l[0];if(l=e(),Aa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l}function Cc(e,n,a){return a===void 0||(Gr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=jp(),_e.lanes|=e,Xr|=e,a)}function B0(e,n,a,l){return Wt(a,n)?a:si.current!==null?(e=Cc(e,a,l),Wt(e,n)||(yt=!0),e):(Gr&42)===0?(yt=!0,e.memoizedState=a):(e=jp(),_e.lanes|=e,Xr|=e,n)}function U0(e,n,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var g=G.T,v={};G.T=v,Dc(e,!1,n,a);try{var T=o(),L=G.S;if(L!==null&&L(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=wE(T,l);cs(e,n,F,rn(e))}else cs(e,n,l,rn(e))}catch(P){cs(e,n,{then:function(){},status:"rejected",reason:P},rn())}finally{K.p=f,G.T=g}}function LE(){}function Nc(e,n,a,l){if(e.tag!==5)throw Error(s(476));var o=j0(e).queue;U0(e,o,n,ee,a===null?LE:function(){return H0(e),a(l)})}function j0(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:ee},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function H0(e){var n=j0(e).next.queue;cs(e,n,{},rn())}function Mc(){return Bt(ws)}function I0(){return ct().memoizedState}function z0(){return ct().memoizedState}function BE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=rn();e=Ir(a);var l=zr(n,e,a);l!==null&&(an(l,n,a),as(l,n,a)),n={cache:lc()},e.payload=n;return}n=n.return}}function UE(e,n,a){var l=rn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},jl(e)?k0(n,a):(a=$u(e,n,a,l),a!==null&&(an(a,e,l),q0(a,n,l)))}function G0(e,n,a){var l=rn();cs(e,n,a,l)}function cs(e,n,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(jl(e))k0(n,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,v=f(g,a);if(o.hasEagerState=!0,o.eagerState=v,Wt(v,g))return vl(e,n,o,0),Ve===null&&bl(),!1}catch{}finally{}if(a=$u(e,n,o,l),a!==null)return an(a,e,l),q0(a,n,l),!0}return!1}function Dc(e,n,a,l){if(l={lane:2,revertLane:ff(),action:l,hasEagerState:!1,eagerState:null,next:null},jl(e)){if(n)throw Error(s(479))}else n=$u(e,a,l,2),n!==null&&an(n,e,2)}function jl(e){var n=e.alternate;return e===_e||n!==null&&n===_e}function k0(e,n){li=Nl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function q0(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,rt(e,a)}}var Hl={readContext:Bt,use:Dl,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it},F0={readContext:Bt,use:Dl,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:Bt,useEffect:O0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Ul(4194308,4,N0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Ul(4194308,4,e,n)},useInsertionEffect:function(e,n){Ul(4,2,e,n)},useMemo:function(e,n){var a=Xt();n=n===void 0?null:n;var l=e();if(Aa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Xt();if(a!==void 0){var o=a(n);if(Aa){Rn(!0);try{a(n)}finally{Rn(!1)}}}else o=n;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=UE.bind(null,_e,e),[l.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:function(e){e=Oc(e);var n=e.queue,a=G0.bind(null,_e,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:wc,useDeferredValue:function(e,n){var a=Xt();return Cc(a,e,n)},useTransition:function(){var e=Oc(!1);return e=U0.bind(null,_e,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=_e,o=Xt();if(Le){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),Ve===null)throw Error(s(349));(Ne&124)!==0||c0(l,n,a)}o.memoizedState=a;var f={value:a,getSnapshot:n};return o.queue=f,O0(d0.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Bl(),f0.bind(null,l,f,a,n),null),a},useId:function(){var e=Xt(),n=Ve.identifierPrefix;if(Le){var a=fr,l=cr;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=Ml++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=CE++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Mc,useFormState:E0,useActionState:E0,useOptimistic:function(e){var n=Xt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Dc.bind(null,_e,!0,a),a.dispatch=n,[e,n]},useMemoCache:Tc,useCacheRefresh:function(){return Xt().memoizedState=BE.bind(null,_e)}},V0={readContext:Bt,use:Dl,useCallback:D0,useContext:Bt,useEffect:R0,useImperativeHandle:M0,useInsertionEffect:w0,useLayoutEffect:C0,useMemo:L0,useReducer:Ll,useRef:x0,useState:function(){return Ll(mr)},useDebugValue:wc,useDeferredValue:function(e,n){var a=ct();return B0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Ll(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:u0,useId:I0,useHostTransitionStatus:Mc,useFormState:S0,useActionState:S0,useOptimistic:function(e,n){var a=ct();return p0(a,ze,e,n)},useMemoCache:Tc,useCacheRefresh:z0},jE={readContext:Bt,use:Dl,useCallback:D0,useContext:Bt,useEffect:R0,useImperativeHandle:M0,useInsertionEffect:w0,useLayoutEffect:C0,useMemo:L0,useReducer:xc,useRef:x0,useState:function(){return xc(mr)},useDebugValue:wc,useDeferredValue:function(e,n){var a=ct();return ze===null?Cc(a,e,n):B0(a,ze.memoizedState,e,n)},useTransition:function(){var e=xc(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:u0,useId:I0,useHostTransitionStatus:Mc,useFormState:A0,useActionState:A0,useOptimistic:function(e,n){var a=ct();return ze!==null?p0(a,ze,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:z0},ci=null,fs=0;function Il(e){var n=fs;return fs+=1,ci===null&&(ci=[]),t0(ci,e,n)}function ds(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function zl(e,n){throw n.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function P0(e){var n=e._init;return n(e._payload)}function Y0(e){function n(M,C){if(e){var D=M.deletions;D===null?(M.deletions=[C],M.flags|=16):D.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)n(M,C),C=C.sibling;return null}function l(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=ur(M,C),M.index=0,M.sibling=null,M}function f(M,C,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<C?(M.flags|=67108866,C):D):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,C,D,V){return C===null||C.tag!==6?(C=Ju(D,M.mode,V),C.return=M,C):(C=o(C,D),C.return=M,C)}function T(M,C,D,V){var ne=D.type;return ne===R?F(M,C,D.props.children,V,D.key):C!==null&&(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&P0(ne)===C.type)?(C=o(C,D.props),ds(C,D),C.return=M,C):(C=El(D.type,D.key,D.props,null,M.mode,V),ds(C,D),C.return=M,C)}function L(M,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=ec(D,M.mode,V),C.return=M,C):(C=o(C,D.children||[]),C.return=M,C)}function F(M,C,D,V,ne){return C===null||C.tag!==7?(C=ga(D,M.mode,V,ne),C.return=M,C):(C=o(C,D),C.return=M,C)}function P(M,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Ju(""+C,M.mode,D),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case x:return D=El(C.type,C.key,C.props,null,M.mode,D),ds(D,C),D.return=M,D;case U:return C=ec(C,M.mode,D),C.return=M,C;case ae:var V=C._init;return C=V(C._payload),P(M,C,D)}if(ve(C)||me(C))return C=ga(C,M.mode,D,null),C.return=M,C;if(typeof C.then=="function")return P(M,Il(C),D);if(C.$$typeof===S)return P(M,xl(M,C),D);zl(M,C)}return null}function j(M,C,D,V){var ne=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:v(M,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===ne?T(M,C,D,V):null;case U:return D.key===ne?L(M,C,D,V):null;case ae:return ne=D._init,D=ne(D._payload),j(M,C,D,V)}if(ve(D)||me(D))return ne!==null?null:F(M,C,D,V,null);if(typeof D.then=="function")return j(M,C,Il(D),V);if(D.$$typeof===S)return j(M,C,xl(M,D),V);zl(M,D)}return null}function I(M,C,D,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(C,M,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return M=M.get(V.key===null?D:V.key)||null,T(C,M,V,ne);case U:return M=M.get(V.key===null?D:V.key)||null,L(C,M,V,ne);case ae:var Se=V._init;return V=Se(V._payload),I(M,C,D,V,ne)}if(ve(V)||me(V))return M=M.get(D)||null,F(C,M,V,ne,null);if(typeof V.then=="function")return I(M,C,D,Il(V),ne);if(V.$$typeof===S)return I(M,C,D,xl(C,V),ne);zl(C,V)}return null}function he(M,C,D,V){for(var ne=null,Se=null,oe=C,de=C=0,vt=null;oe!==null&&de<D.length;de++){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var De=j(M,oe,D[de],V);if(De===null){oe===null&&(oe=vt);break}e&&oe&&De.alternate===null&&n(M,oe),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De,oe=vt}if(de===D.length)return a(M,oe),Le&&ba(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],V),oe!==null&&(C=f(oe,C,de),Se===null?ne=oe:Se.sibling=oe,Se=oe);return Le&&ba(M,de),ne}for(oe=l(oe);de<D.length;de++)vt=I(oe,M,de,D[de],V),vt!==null&&(e&&vt.alternate!==null&&oe.delete(vt.key===null?de:vt.key),C=f(vt,C,de),Se===null?ne=vt:Se.sibling=vt,Se=vt);return e&&oe.forEach(function(na){return n(M,na)}),Le&&ba(M,de),ne}function fe(M,C,D,V){if(D==null)throw Error(s(151));for(var ne=null,Se=null,oe=C,de=C=0,vt=null,De=D.next();oe!==null&&!De.done;de++,De=D.next()){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var na=j(M,oe,De.value,V);if(na===null){oe===null&&(oe=vt);break}e&&oe&&na.alternate===null&&n(M,oe),C=f(na,C,de),Se===null?ne=na:Se.sibling=na,Se=na,oe=vt}if(De.done)return a(M,oe),Le&&ba(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,V),De!==null&&(C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return Le&&ba(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=I(oe,M,de,De.value,V),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return e&&oe.forEach(function(H2){return n(M,H2)}),Le&&ba(M,de),ne}function ke(M,C,D,V){if(typeof D=="object"&&D!==null&&D.type===R&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:e:{for(var ne=D.key;C!==null;){if(C.key===ne){if(ne=D.type,ne===R){if(C.tag===7){a(M,C.sibling),V=o(C,D.props.children),V.return=M,M=V;break e}}else if(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&P0(ne)===C.type){a(M,C.sibling),V=o(C,D.props),ds(V,D),V.return=M,M=V;break e}a(M,C);break}else n(M,C);C=C.sibling}D.type===R?(V=ga(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=El(D.type,D.key,D.props,null,M.mode,V),ds(V,D),V.return=M,M=V)}return g(M);case U:e:{for(ne=D.key;C!==null;){if(C.key===ne)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(M,C.sibling),V=o(C,D.children||[]),V.return=M,M=V;break e}else{a(M,C);break}else n(M,C);C=C.sibling}V=ec(D,M.mode,V),V.return=M,M=V}return g(M);case ae:return ne=D._init,D=ne(D._payload),ke(M,C,D,V)}if(ve(D))return he(M,C,D,V);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,C,D,V)}if(typeof D.then=="function")return ke(M,C,Il(D),V);if(D.$$typeof===S)return ke(M,C,xl(M,D),V);zl(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(M,C.sibling),V=o(C,D),V.return=M,M=V):(a(M,C),V=Ju(D,M.mode,V),V.return=M,M=V),g(M)):a(M,C)}return function(M,C,D,V){try{fs=0;var ne=ke(M,C,D,V);return ci=null,ne}catch(oe){if(oe===ns||oe===Rl)throw oe;var Se=Jt(29,oe,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var fi=Y0(!0),X0=Y0(!1),vn=k(null),Pn=null;function kr(e){var n=e.alternate;Y(gt,gt.current&1),Y(vn,e),Pn===null&&(n===null||si.current!==null||n.memoizedState!==null)&&(Pn=e)}function Z0(e){if(e.tag===22){if(Y(gt,gt.current),Y(vn,e),Pn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Pn=e)}}else qr()}function qr(){Y(gt,gt.current),Y(vn,vn.current)}function pr(e){$(vn),Pn===e&&(Pn=null),$(gt)}var gt=k(0);function Gl(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Tf(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Lc(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Bc={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=rn(),o=Ir(l);o.payload=n,a!=null&&(o.callback=a),n=zr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=rn(),o=Ir(l);o.tag=1,o.payload=n,a!=null&&(o.callback=a),n=zr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=rn(),l=Ir(a);l.tag=2,n!=null&&(l.callback=n),n=zr(e,l,a),n!==null&&(an(n,e,a),as(n,e,a))}};function Q0(e,n,a,l,o,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,g):n.prototype&&n.prototype.isPureReactComponent?!Zi(a,l)||!Zi(o,f):!0}function K0(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&Bc.enqueueReplaceState(n,n.state,null)}function xa(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}if(e=e.defaultProps){a===n&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var kl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function $0(e){kl(e)}function W0(e){console.error(e)}function J0(e){kl(e)}function ql(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function ep(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Uc(e,n,a){return a=Ir(a),a.tag=3,a.payload={element:null},a.callback=function(){ql(e,n)},a}function tp(e){return e=Ir(e),e.tag=3,e}function np(e,n,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){ep(n,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){ep(n,a,l),typeof o!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function HE(e,n,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&Ji(n,a,o,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Pn===null?sf():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===cc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),of(e,l,o)),!1;case 22:return a.flags|=65536,l===cc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),of(e,l,o)),!1}throw Error(s(435,a.tag))}return of(e,l,o),sf(),!1}if(Le)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=o,l!==rc&&(e=Error(s(422),{cause:l}),Wi(pn(e,a)))):(l!==rc&&(n=Error(s(423),{cause:l}),Wi(pn(n,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=pn(l,a),o=Uc(e.stateNode,l,o),hc(e,o),tt!==4&&(tt=2)),!1;var f=Error(s(520),{cause:l});if(f=pn(f,a),vs===null?vs=[f]:vs.push(f),tt!==4&&(tt=2),n===null)return!0;l=pn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Uc(a.stateNode,l,e),hc(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Zr===null||!Zr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=tp(o),np(o,e,a,l),hc(a,o),!1}a=a.return}while(a!==null);return!1}var rp=Error(s(461)),yt=!1;function xt(e,n,a,l){n.child=e===null?X0(n,null,a,l):fi(n,e.child,a,l)}function ap(e,n,a,l,o){a=a.render;var f=n.ref;if("ref"in l){var g={};for(var v in l)v!=="ref"&&(g[v]=l[v])}else g=l;return Sa(n),l=bc(e,n,a,g,f,o),v=vc(),e!==null&&!yt?(_c(e,n,o),gr(e,n,o)):(Le&&v&&tc(n),n.flags|=1,xt(e,n,l,o),n.child)}function ip(e,n,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!Wu(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,sp(e,n,f,l,o)):(e=El(a.type,null,l,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Fc(e,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:Zi,a(g,l)&&e.ref===n.ref)return gr(e,n,o)}return n.flags|=1,e=ur(f,l),e.ref=n.ref,e.return=n,n.child=e}function sp(e,n,a,l,o){if(e!==null){var f=e.memoizedProps;if(Zi(f,l)&&e.ref===n.ref)if(yt=!1,n.pendingProps=l=f,Fc(e,o))(e.flags&131072)!==0&&(yt=!0);else return n.lanes=e.lanes,gr(e,n,o)}return jc(e,n,a,l,o)}function lp(e,n,a){var l=n.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=n.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;n.childLanes=f&~l}else n.childLanes=0,n.child=null;return op(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ol(n,f!==null?f.cachePool:null),f!==null?s0(n,f):pc(),Z0(n);else return n.lanes=n.childLanes=536870912,op(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(Ol(n,f.cachePool),s0(n,f),qr(),n.memoizedState=null):(e!==null&&Ol(n,null),pc(),qr());return xt(e,n,o,a),n.child}function op(e,n,a,l){var o=uc();return o=o===null?null:{parent:pt._currentValue,pool:o},n.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ol(n,null),pc(),Z0(n),e!==null&&Ji(e,n,l,!0),null}function Fl(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function jc(e,n,a,l,o){return Sa(n),a=bc(e,n,a,l,void 0,o),l=vc(),e!==null&&!yt?(_c(e,n,o),gr(e,n,o)):(Le&&l&&tc(n),n.flags|=1,xt(e,n,a,o),n.child)}function up(e,n,a,l,o,f){return Sa(n),n.updateQueue=null,a=o0(n,l,a,o),l0(e),l=vc(),e!==null&&!yt?(_c(e,n,f),gr(e,n,f)):(Le&&l&&tc(n),n.flags|=1,xt(e,n,a,f),n.child)}function cp(e,n,a,l,o){if(Sa(n),n.stateNode===null){var f=ti,g=a.contextType;typeof g=="object"&&g!==null&&(f=Bt(g)),f=new a(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Bc,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},fc(n),g=a.contextType,f.context=typeof g=="object"&&g!==null?Bt(g):ti,f.state=n.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Lc(n,a,g,l),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&Bc.enqueueReplaceState(f,f.state,null),ss(n,l,f,o),is(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){f=n.stateNode;var v=n.memoizedProps,T=xa(a,v);f.props=T;var L=f.context,F=a.contextType;g=ti,typeof F=="object"&&F!==null&&(g=Bt(F));var P=a.getDerivedStateFromProps;F=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=n.pendingProps!==v,F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==g)&&K0(n,f,l,g),Hr=!1;var j=n.memoizedState;f.state=j,ss(n,l,f,o),is(),L=n.memoizedState,v||j!==L||Hr?(typeof P=="function"&&(Lc(n,a,P,l),L=n.memoizedState),(T=Hr||Q0(n,a,T,l,j,L,g))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=L),f.props=l,f.state=L,f.context=g,l=T):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{f=n.stateNode,dc(e,n),g=n.memoizedProps,F=xa(a,g),f.props=F,P=n.pendingProps,j=f.context,L=a.contextType,T=ti,typeof L=="object"&&L!==null&&(T=Bt(L)),v=a.getDerivedStateFromProps,(L=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==P||j!==T)&&K0(n,f,l,T),Hr=!1,j=n.memoizedState,f.state=j,ss(n,l,f,o),is();var I=n.memoizedState;g!==P||j!==I||Hr||e!==null&&e.dependencies!==null&&Al(e.dependencies)?(typeof v=="function"&&(Lc(n,a,v,l),I=n.memoizedState),(F=Hr||Q0(n,a,F,l,j,I,T)||e!==null&&e.dependencies!==null&&Al(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,I,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,I,T)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=I),f.props=l,f.state=I,f.context=T,l=F):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,Fl(e,n),l=(n.flags&128)!==0,f||l?(f=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&l?(n.child=fi(n,e.child,null,o),n.child=fi(n,null,a,o)):xt(e,n,a,o),n.memoizedState=f.state,e=n.child):e=gr(e,n,o),e}function fp(e,n,a,l){return $i(),n.flags|=256,xt(e,n,a,l),n.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ic(e){return{baseLanes:e,cachePool:Wm()}}function zc(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=_n),e}function dp(e,n,a){var l=n.pendingProps,o=!1,f=(n.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(gt.current&2)!==0),g&&(o=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(o?kr(n):qr(),Le){var v=et,T;if(T=v){e:{for(T=v,v=Vn;T.nodeType!==8;){if(!v){v=null;break e}if(T=Bn(T.nextSibling),T===null){v=null;break e}}v=T}v!==null?(n.memoizedState={dehydrated:v,treeContext:ya!==null?{id:cr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},T=Jt(18,null,null,0),T.stateNode=v,T.return=n,n.child=T,jt=n,et=null,T=!0):T=!1}T||_a(n)}if(v=n.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Tf(v)?n.lanes=32:n.lanes=536870912,null;pr(n)}return v=l.children,l=l.fallback,o?(qr(),o=n.mode,v=Vl({mode:"hidden",children:v},o),l=ga(l,o,a,null),v.return=n,l.return=n,v.sibling=l,n.child=v,o=n.child,o.memoizedState=Ic(a),o.childLanes=zc(e,g,a),n.memoizedState=Hc,l):(kr(n),Gc(n,v))}if(T=e.memoizedState,T!==null&&(v=T.dehydrated,v!==null)){if(f)n.flags&256?(kr(n),n.flags&=-257,n=kc(e,n,a)):n.memoizedState!==null?(qr(),n.child=e.child,n.flags|=128,n=null):(qr(),o=l.fallback,v=n.mode,l=Vl({mode:"visible",children:l.children},v),o=ga(o,v,a,null),o.flags|=2,l.return=n,o.return=n,l.sibling=o,n.child=l,fi(n,e.child,null,a),l=n.child,l.memoizedState=Ic(a),l.childLanes=zc(e,g,a),n.memoizedState=Hc,n=o);else if(kr(n),Tf(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var L=g.dgst;g=L,l=Error(s(419)),l.stack="",l.digest=g,Wi({value:l,source:null,stack:null}),n=kc(e,n,a)}else if(yt||Ji(e,n,a,!1),g=(a&e.childLanes)!==0,yt||g){if(g=Ve,g!==null&&(l=a&-a,l=(l&42)!==0?1:Fn(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,ei(e,l),an(g,e,l),rp;v.data==="$?"||sf(),n=kc(e,n,a)}else v.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,et=Bn(v.nextSibling),jt=n,Le=!0,va=null,Vn=!1,e!==null&&(yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ya,cr=e.id,fr=e.overflow,ya=n),n=Gc(n,l.children),n.flags|=4096);return n}return o?(qr(),o=l.fallback,v=n.mode,T=e.child,L=T.sibling,l=ur(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?o=ur(L,o):(o=ga(o,v,a,null),o.flags|=2),o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,v=e.child.memoizedState,v===null?v=Ic(a):(T=v.cachePool,T!==null?(L=pt._currentValue,T=T.parent!==L?{parent:L,pool:L}:T):T=Wm(),v={baseLanes:v.baseLanes|a,cachePool:T}),o.memoizedState=v,o.childLanes=zc(e,g,a),n.memoizedState=Hc,l):(kr(n),a=e.child,e=a.sibling,a=ur(a,{mode:"visible",children:l.children}),a.return=n,a.sibling=null,e!==null&&(g=n.deletions,g===null?(n.deletions=[e],n.flags|=16):g.push(e)),n.child=a,n.memoizedState=null,a)}function Gc(e,n){return n=Vl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Vl(e,n){return e=Jt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function kc(e,n,a){return fi(n,e.child,null,a),e=Gc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function hp(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),ic(e.return,n,a)}function qc(e,n,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function mp(e,n,a){var l=n.pendingProps,o=l.revealOrder,f=l.tail;if(xt(e,n,l.children,a),l=gt.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hp(e,a,n);else if(e.tag===19)hp(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Y(gt,l),o){case"forwards":for(a=n.child,o=null;a!==null;)e=a.alternate,e!==null&&Gl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=n.child,n.child=null):(o=a.sibling,a.sibling=null),qc(n,!1,o,a,f);break;case"backwards":for(a=null,o=n.child,n.child=null;o!==null;){if(e=o.alternate,e!==null&&Gl(e)===null){n.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}qc(n,!0,a,null,f);break;case"together":qc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Xr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ji(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=ur(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ur(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Fc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Al(e)))}function IE(e,n,a){switch(n.tag){case 3:Ue(n,n.stateNode.containerInfo),jr(n,pt,e.memoizedState.cache),$i();break;case 27:case 5:qn(n);break;case 4:Ue(n,n.stateNode.containerInfo);break;case 10:jr(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(kr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?dp(e,n,a):(kr(n),e=gr(e,n,a),e!==null?e.sibling:null);kr(n);break;case 19:var o=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(Ji(e,n,a,!1),l=(a&n.childLanes)!==0),o){if(l)return mp(e,n,a);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(gt,gt.current),l)break;return null;case 22:case 23:return n.lanes=0,lp(e,n,a);case 24:jr(n,pt,e.memoizedState.cache)}return gr(e,n,a)}function pp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)yt=!0;else{if(!Fc(e,a)&&(n.flags&128)===0)return yt=!1,IE(e,n,a);yt=(e.flags&131072)!==0}else yt=!1,Le&&(n.flags&1048576)!==0&&Pm(n,Tl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,o=l._init;if(l=o(l._payload),n.type=l,typeof l=="function")Wu(l)?(e=xa(l,e),n.tag=1,n=cp(null,n,l,e,a)):(n.tag=0,n=jc(null,n,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===H){n.tag=11,n=ap(null,n,l,e,a);break e}else if(o===W){n.tag=14,n=ip(null,n,l,e,a);break e}}throw n=Pe(l)||l,Error(s(306,n,""))}}return n;case 0:return jc(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,o=xa(l,n.pendingProps),cp(e,n,l,o,a);case 3:e:{if(Ue(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var f=n.memoizedState;o=f.element,dc(e,n),ss(n,l,null,a);var g=n.memoizedState;if(l=g.cache,jr(n,pt,l),l!==f.cache&&sc(n,[pt],a,!0),is(),l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=fp(e,n,l,a);break e}else if(l!==o){o=pn(Error(s(424)),n),Wi(o),n=fp(e,n,l,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=Bn(e.firstChild),jt=n,Le=!0,va=null,Vn=!0,a=X0(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===o){n=gr(e,n,a);break e}xt(e,n,l,a)}n=n.child}return n;case 26:return Fl(e,n),e===null?(a=vg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Le||(a=n.type,e=n.pendingProps,l=ao(ue.current).createElement(a),l[ht]=n,l[Dt]=e,Rt(l,a,e),ot(l),n.stateNode=l):n.memoizedState=vg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return qn(n),e===null&&Le&&(l=n.stateNode=gg(n.type,n.pendingProps,ue.current),jt=n,Vn=!0,o=et,$r(n.type)?(Af=o,et=Bn(l.firstChild)):et=o),xt(e,n,n.pendingProps.children,a),Fl(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((o=l=et)&&(l=d2(l,n.type,n.pendingProps,Vn),l!==null?(n.stateNode=l,jt=n,et=Bn(l.firstChild),Vn=!1,o=!0):o=!1),o||_a(n)),qn(n),o=n.type,f=n.pendingProps,g=e!==null?e.memoizedProps:null,l=f.children,_f(o,f)?l=null:g!==null&&_f(o,g)&&(n.flags|=32),n.memoizedState!==null&&(o=bc(e,n,NE,null,null,a),ws._currentValue=o),Fl(e,n),xt(e,n,l,a),n.child;case 6:return e===null&&Le&&((e=a=et)&&(a=h2(a,n.pendingProps,Vn),a!==null?(n.stateNode=a,jt=n,et=null,e=!0):e=!1),e||_a(n)),null;case 13:return dp(e,n,a);case 4:return Ue(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=fi(n,null,l,a):xt(e,n,l,a),n.child;case 11:return ap(e,n,n.type,n.pendingProps,a);case 7:return xt(e,n,n.pendingProps,a),n.child;case 8:return xt(e,n,n.pendingProps.children,a),n.child;case 12:return xt(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,jr(n,n.type,l.value),xt(e,n,l.children,a),n.child;case 9:return o=n.type._context,l=n.pendingProps.children,Sa(n),o=Bt(o),l=l(o),n.flags|=1,xt(e,n,l,a),n.child;case 14:return ip(e,n,n.type,n.pendingProps,a);case 15:return sp(e,n,n.type,n.pendingProps,a);case 19:return mp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=Vl(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=ur(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return lp(e,n,a);case 24:return Sa(n),l=Bt(pt),e===null?(o=uc(),o===null&&(o=Ve,f=lc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),n.memoizedState={parent:l,cache:o},fc(n),jr(n,pt,o)):((e.lanes&a)!==0&&(dc(e,n),ss(n,null,null,a),is()),o=e.memoizedState,f=n.memoizedState,o.parent!==l?(o={parent:l,cache:l},n.memoizedState=o,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=o),jr(n,pt,l)):(l=f.cache,jr(n,pt,l),l!==o.cache&&sc(n,[pt],a,!0))),xt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function yr(e){e.flags|=4}function gp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ag(n)){if(n=vn.current,n!==null&&((Ne&4194048)===Ne?Pn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||n!==Pn))throw rs=cc,Jm;e.flags|=8192}}function Pl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?da():536870912,e.lanes|=n,pi|=n)}function hs(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function $e(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,n}function zE(e,n,a){var l=n.pendingProps;switch(nc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(n),null;case 1:return $e(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),hr(pt),St(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ki(n)?yr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Zm())),$e(n),null;case 26:return a=n.memoizedState,e===null?(yr(n),a!==null?($e(n),gp(n,a)):($e(n),n.flags&=-16777217)):a?a!==e.memoizedState?(yr(n),$e(n),gp(n,a)):($e(n),n.flags&=-16777217):(e.memoizedProps!==l&&yr(n),$e(n),n.flags&=-16777217),null;case 27:Nr(n),a=ue.current;var o=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return $e(n),null}e=te.current,Ki(n)?Ym(n):(e=gg(o,l,a),n.stateNode=e,yr(n))}return $e(n),null;case 5:if(Nr(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return $e(n),null}if(e=te.current,Ki(n))Ym(n);else{switch(o=ao(ue.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[ht]=n,e[Dt]=l;e:for(o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}n.stateNode=e;e:switch(Rt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&yr(n)}}return $e(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=ue.current,Ki(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,o=jt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ht]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||ug(e.nodeValue,a)),e||_a(n)}else e=ao(e).createTextNode(l),e[ht]=n,n.stateNode=e}return $e(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ki(n),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=n.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ht]=n}else $i(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),o=!1}else o=Zm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=n.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(n.child.flags|=8192),Pl(n,n.updateQueue),$e(n),null;case 4:return St(),e===null&&pf(n.stateNode.containerInfo),$e(n),null;case 10:return hr(n.type),$e(n),null;case 19:if($(gt),o=n.memoizedState,o===null)return $e(n),null;if(l=(n.flags&128)!==0,f=o.rendering,f===null)if(l)hs(o,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=Gl(e),f!==null){for(n.flags|=128,hs(o,!1),e=f.updateQueue,n.updateQueue=e,Pl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)Vm(a,e),a=a.sibling;return Y(gt,gt.current&1|2),n.child}e=e.sibling}o.tail!==null&&Tt()>Zl&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304)}else{if(!l)if(e=Gl(f),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Pl(n,e),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Le)return $e(n),null}else 2*Tt()-o.renderingStartTime>Zl&&a!==536870912&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304);o.isBackwards?(f.sibling=n.child,n.child=f):(e=o.last,e!==null?e.sibling=f:n.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Tt(),n.sibling=null,e=gt.current,Y(gt,l?e&1|2:e&1),n):($e(n),null);case 22:case 23:return pr(n),gc(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&($e(n),n.subtreeFlags&6&&(n.flags|=8192)):$e(n),a=n.updateQueue,a!==null&&Pl(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&$(Ta),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),hr(pt),$e(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function GE(e,n){switch(nc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return hr(pt),St(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Nr(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));$i()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(gt),null;case 4:return St(),null;case 10:return hr(n.type),null;case 22:case 23:return pr(n),gc(),e!==null&&$(Ta),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return hr(pt),null;case 25:return null;default:return null}}function yp(e,n){switch(nc(n),n.tag){case 3:hr(pt),St();break;case 26:case 27:case 5:Nr(n);break;case 4:St();break;case 13:pr(n);break;case 19:$(gt);break;case 10:hr(n.type);break;case 22:case 23:pr(n),gc(),e!==null&&$(Ta);break;case 24:hr(pt)}}function ms(e,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,g=a.inst;l=f(),g.destroy=l}a=a.next}while(a!==o)}}catch(v){qe(n,n.return,v)}}function Fr(e,n,a){try{var l=n.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var g=l.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,o=n;var T=a,L=v;try{L()}catch(F){qe(o,T,F)}}}l=l.next}while(l!==f)}}catch(F){qe(n,n.return,F)}}function bp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{i0(n,a)}catch(l){qe(e,e.return,l)}}}function vp(e,n,a){a.props=xa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){qe(e,n,l)}}function ps(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){qe(e,n,o)}}function Yn(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){qe(e,n,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){qe(e,n,o)}else a.current=null}function _p(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){qe(e,e.return,o)}}function Vc(e,n,a){try{var l=e.stateNode;l2(l,e.type,a,n),l[Dt]=n}catch(o){qe(e,e.return,o)}}function Ep(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$r(e.type)||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ep(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.tag===27&&$r(e.type)||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 Yc(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=ro));else if(l!==4&&(l===27&&$r(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Yc(e,n,a),e=e.sibling;e!==null;)Yc(e,n,a),e=e.sibling}function Yl(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&$r(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Yl(e,n,a),e=e.sibling;e!==null;)Yl(e,n,a),e=e.sibling}function Sp(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Rt(n,l,a),n[ht]=e,n[Dt]=a}catch(f){qe(e,e.return,f)}}var br=!1,st=!1,Xc=!1,Tp=typeof WeakSet=="function"?WeakSet:Set,bt=null;function kE(e,n){if(e=e.containerInfo,bf=co,e=Bm(e),Pu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var g=0,v=-1,T=-1,L=0,F=0,P=e,j=null;t:for(;;){for(var I;P!==a||o!==0&&P.nodeType!==3||(v=g+o),P!==f||l!==0&&P.nodeType!==3||(T=g+l),P.nodeType===3&&(g+=P.nodeValue.length),(I=P.firstChild)!==null;)j=P,P=I;for(;;){if(P===e)break t;if(j===a&&++L===o&&(v=g),j===f&&++F===l&&(T=g),(I=P.nextSibling)!==null)break;P=j,j=P.parentNode}P=I}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(vf={focusedElem:e,selectionRange:a},co=!1,bt=n;bt!==null;)if(n=bt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,bt=e;else for(;bt!==null;){switch(n=bt,f=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=n,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var he=xa(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(he,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){qe(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)Sf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=n.sibling,e!==null){e.return=n.return,bt=e;break}bt=n.return}}function Ap(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Vr(e,a),l&4&&ms(5,a);break;case 1:if(Vr(e,a),l&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(g){qe(a,a.return,g)}else{var o=xa(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(o,n,e.__reactInternalSnapshotBeforeUpdate)}catch(g){qe(a,a.return,g)}}l&64&&bp(a),l&512&&ps(a,a.return);break;case 3:if(Vr(e,a),l&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{i0(e,n)}catch(g){qe(a,a.return,g)}}break;case 27:n===null&&l&4&&Sp(a);case 26:case 5:Vr(e,a),n===null&&l&4&&_p(a),l&512&&ps(a,a.return);break;case 12:Vr(e,a);break;case 13:Vr(e,a),l&4&&Rp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KE.bind(null,a),m2(e,a))));break;case 22:if(l=a.memoizedState!==null||br,!l){n=n!==null&&n.memoizedState!==null||st,o=br;var f=st;br=l,(st=n)&&!f?Pr(e,a,(a.subtreeFlags&8772)!==0):Vr(e,a),br=o,st=f}break;case 30:break;default:Vr(e,a)}}function xp(e){var n=e.alternate;n!==null&&(e.alternate=null,xp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Kt(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,Zt=!1;function vr(e,n,a){for(a=a.child;a!==null;)Op(e,n,a),a=a.sibling}function Op(e,n,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:st||Yn(a,n),vr(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:st||Yn(a,n);var l=Xe,o=Zt;$r(a.type)&&(Xe=a.stateNode,Zt=!1),vr(e,n,a),As(a.stateNode),Xe=l,Zt=o;break;case 5:st||Yn(a,n);case 6:if(l=Xe,o=Zt,Xe=null,vr(e,n,a),Xe=l,Zt=o,Xe!==null)if(Zt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(f){qe(a,n,f)}else try{Xe.removeChild(a.stateNode)}catch(f){qe(a,n,f)}break;case 18:Xe!==null&&(Zt?(e=Xe,mg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):mg(Xe,a.stateNode));break;case 4:l=Xe,o=Zt,Xe=a.stateNode.containerInfo,Zt=!0,vr(e,n,a),Xe=l,Zt=o;break;case 0:case 11:case 14:case 15:st||Fr(2,a,n),st||Fr(4,a,n),vr(e,n,a);break;case 1:st||(Yn(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&vp(a,n,l)),vr(e,n,a);break;case 21:vr(e,n,a);break;case 22:st=(l=st)||a.memoizedState!==null,vr(e,n,a),st=l;break;default:vr(e,n,a)}}function Rp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ds(e)}catch(a){qe(n,n.return,a)}}function qE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Tp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Tp),n;default:throw Error(s(435,e.tag))}}function Zc(e,n){var a=qE(e);n.forEach(function(l){var o=$E.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function en(e,n){var a=n.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,g=n,v=g;e:for(;v!==null;){switch(v.tag){case 27:if($r(v.type)){Xe=v.stateNode,Zt=!1;break e}break;case 5:Xe=v.stateNode,Zt=!1;break e;case 3:case 4:Xe=v.stateNode.containerInfo,Zt=!0;break e}v=v.return}if(Xe===null)throw Error(s(160));Op(f,g,o),Xe=null,Zt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)wp(n,e),n=n.sibling}var Ln=null;function wp(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(n,e),tn(e),l&4&&(Fr(3,e,e.return),ms(3,e),Fr(5,e,e.return));break;case 1:en(n,e),tn(e),l&512&&(st||a===null||Yn(a,a.return)),l&64&&br&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Ln;if(en(n,e),tn(e),l&512&&(st||a===null||Yn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Lr]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),Rt(f,l,a),f[ht]=e,ot(f),l=f;break e;case"link":var g=Sg("link","href",o).get(l+(a.href||""));if(g){for(var v=0;v<g.length;v++)if(f=g[v],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;case"meta":if(g=Sg("meta","content",o).get(l+(a.content||""))){for(v=0;v<g.length;v++)if(f=g[v],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[ht]=e,ot(f),l=f}e.stateNode=l}else Tg(o,e.type,e.stateNode);else e.stateNode=Eg(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Tg(o,e.type,e.stateNode):Eg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Vc(e,e.memoizedProps,a.memoizedProps)}break;case 27:en(n,e),tn(e),l&512&&(st||a===null||Yn(a,a.return)),a!==null&&l&4&&Vc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(en(n,e),tn(e),l&512&&(st||a===null||Yn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(I){qe(e,e.return,I)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Vc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Xc=!0);break;case 6:if(en(n,e),tn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){qe(e,e.return,I)}}break;case 3:if(lo=null,o=Ln,Ln=io(n.containerInfo),en(n,e),Ln=o,tn(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(n.containerInfo)}catch(I){qe(e,e.return,I)}Xc&&(Xc=!1,Cp(e));break;case 4:l=Ln,Ln=io(e.stateNode.containerInfo),en(n,e),tn(e),Ln=l;break;case 12:en(n,e),tn(e);break;case 13:en(n,e),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ef=Tt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zc(e,l)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,L=br,F=st;if(br=L||o,st=F||T,en(n,e),st=F,br=L,tn(e),l&8192)e:for(n=e.stateNode,n._visibility=o?n._visibility&-2:n._visibility|1,o&&(a===null||T||br||st||Oa(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){T=a=n;try{if(f=T.stateNode,o)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=T.stateNode;var P=T.memoizedProps.style,j=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(I){qe(T,T.return,I)}}}else if(n.tag===6){if(a===null){T=n;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(I){qe(T,T.return,I)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Zc(e,a))));break;case 19:en(n,e),tn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zc(e,l)));break;case 30:break;case 21:break;default:en(n,e),tn(e)}}function tn(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(Ep(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=Pc(e);Yl(e,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Xa(g,""),a.flags&=-33);var v=Pc(e);Yl(e,v,g);break;case 3:case 4:var T=a.stateNode.containerInfo,L=Pc(e);Yc(e,L,T);break;default:throw Error(s(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Cp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Cp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Ap(e,n.alternate,n),n=n.sibling}function Oa(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Fr(4,n,n.return),Oa(n);break;case 1:Yn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&vp(n,n.return,a),Oa(n);break;case 27:As(n.stateNode);case 26:case 5:Yn(n,n.return),Oa(n);break;case 22:n.memoizedState===null&&Oa(n);break;case 30:Oa(n);break;default:Oa(n)}e=e.sibling}}function Pr(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,o=e,f=n,g=f.flags;switch(f.tag){case 0:case 11:case 15:Pr(o,f,a),ms(4,f);break;case 1:if(Pr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){qe(l,l.return,L)}if(l=f,o=l.updateQueue,o!==null){var v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)a0(T[o],v)}catch(L){qe(l,l.return,L)}}a&&g&64&&bp(f),ps(f,f.return);break;case 27:Sp(f);case 26:case 5:Pr(o,f,a),a&&l===null&&g&4&&_p(f),ps(f,f.return);break;case 12:Pr(o,f,a);break;case 13:Pr(o,f,a),a&&g&4&&Rp(o,f);break;case 22:f.memoizedState===null&&Pr(o,f,a),ps(f,f.return);break;case 30:break;default:Pr(o,f,a)}n=n.sibling}}function Qc(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&es(a))}function Kc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e))}function Xn(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Np(e,n,a,l),n=n.sibling}function Np(e,n,a,l){var o=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n,a,l),o&2048&&ms(9,n);break;case 1:Xn(e,n,a,l);break;case 3:Xn(e,n,a,l),o&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){Xn(e,n,a,l),e=n.stateNode;try{var f=n.memoizedProps,g=f.id,v=f.onPostCommit;typeof v=="function"&&v(g,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(n,n.return,T)}}else Xn(e,n,a,l);break;case 13:Xn(e,n,a,l);break;case 23:break;case 22:f=n.stateNode,g=n.alternate,n.memoizedState!==null?f._visibility&2?Xn(e,n,a,l):gs(e,n):f._visibility&2?Xn(e,n,a,l):(f._visibility|=2,di(e,n,a,l,(n.subtreeFlags&10256)!==0)),o&2048&&Qc(g,n);break;case 24:Xn(e,n,a,l),o&2048&&Kc(n.alternate,n);break;default:Xn(e,n,a,l)}}function di(e,n,a,l,o){for(o=o&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var f=e,g=n,v=a,T=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:di(f,g,v,T,o),ms(8,g);break;case 23:break;case 22:var F=g.stateNode;g.memoizedState!==null?F._visibility&2?di(f,g,v,T,o):gs(f,g):(F._visibility|=2,di(f,g,v,T,o)),o&&L&2048&&Qc(g.alternate,g);break;case 24:di(f,g,v,T,o),o&&L&2048&&Kc(g.alternate,g);break;default:di(f,g,v,T,o)}n=n.sibling}}function gs(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,l=n,o=l.flags;switch(l.tag){case 22:gs(a,l),o&2048&&Qc(l.alternate,l);break;case 24:gs(a,l),o&2048&&Kc(l.alternate,l);break;default:gs(a,l)}n=n.sibling}}var ys=8192;function hi(e){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Mp(e),e=e.sibling}function Mp(e){switch(e.tag){case 26:hi(e),e.flags&ys&&e.memoizedState!==null&&R2(Ln,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Ln;Ln=io(e.stateNode.containerInfo),hi(e),Ln=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ys,ys=16777216,hi(e),ys=n):hi(e));break;default:hi(e)}}function Dp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function bs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];bt=l,Bp(l,e)}Dp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lp(e),e=e.sibling}function Lp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&Fr(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Xl(e)):bs(e);break;default:bs(e)}}function Xl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];bt=l,Bp(l,e)}Dp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Fr(8,n,n.return),Xl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Xl(n));break;default:Xl(n)}e=e.sibling}}function Bp(e,n){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:Fr(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:es(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,bt=l;else e:for(a=e;bt!==null;){l=bt;var o=l.sibling,f=l.return;if(xp(l),l===a){bt=null;break e}if(o!==null){o.return=f,bt=o;break e}bt=f}}}var FE={getCacheForType:function(e){var n=Bt(pt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},VE=typeof WeakMap=="function"?WeakMap:Map,je=0,Ve=null,xe=null,Ne=0,He=0,nn=null,Yr=!1,mi=!1,$c=!1,_r=0,tt=0,Xr=0,Ra=0,Wc=0,_n=0,pi=0,vs=null,Qt=null,Jc=!1,ef=0,Zl=1/0,Ql=null,Zr=null,Ot=0,Qr=null,gi=null,yi=0,tf=0,nf=null,Up=null,_s=0,rf=null;function rn(){if((je&2)!==0&&Ne!==0)return Ne&-Ne;if(G.T!==null){var e=ai;return e!==0?e:ff()}return Ii()}function jp(){_n===0&&(_n=(Ne&536870912)===0||Le?fa():536870912);var e=vn.current;return e!==null&&(e.flags|=32),_n}function an(e,n,a){(e===Ve&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(bi(e,0),Kr(e,Ne,_n,!1)),wn(e,a),((je&2)===0||e!==Ve)&&(e===Ve&&((je&2)===0&&(Ra|=a),tt===4&&Kr(e,Ne,_n,!1)),Zn(e))}function Hp(e,n,a){if((je&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||rr(e,n),o=l?XE(e,n):lf(e,n,!0),f=l;do{if(o===0){mi&&!l&&Kr(e,n,0,!1);break}else{if(a=e.current.alternate,f&&!PE(a)){o=lf(e,n,!1),f=!1;continue}if(o===2){if(f=n,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var v=e;o=vs;var T=v.current.memoizedState.isDehydrated;if(T&&(bi(v,g).flags|=256),g=lf(v,g,!1),g!==2){if($c&&!T){v.errorRecoveryDisabledLanes|=f,Ra|=f,o=4;break e}f=Qt,Qt=o,f!==null&&(Qt===null?Qt=f:Qt.push.apply(Qt,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){bi(e,0),Kr(e,n,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:Kr(l,n,_n,!Yr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(o=ef+300-Tt(),10<o)){if(Kr(l,n,_n,!Yr),Dr(l,0,!0)!==0)break e;l.timeoutHandle=dg(Ip.bind(null,l,a,Qt,Ql,Jc,n,_n,Ra,pi,Yr,f,2,-0,0),o);break e}Ip(l,a,Qt,Ql,Jc,n,_n,Ra,pi,Yr,f,0,-0,0)}}break}while(!0);Zn(e)}function Ip(e,n,a,l,o,f,g,v,T,L,F,P,j,I){if(e.timeoutHandle=-1,P=n.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Rs={stylesheets:null,count:0,unsuspend:O2},Mp(n),P=w2(),P!==null)){e.cancelPendingCommit=P(Pp.bind(null,e,n,f,a,l,o,g,v,T,F,1,j,I)),Kr(e,f,g,!L);return}Pp(e,n,f,a,l,o,g,v,T)}function PE(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Wt(f(),o))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Kr(e,n,a,l){n&=~Wc,n&=~Ra,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var o=n;0<o;){var f=31-Mt(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&sl(e,a,n)}function Kl(){return(je&6)===0?(Es(0),!1):!0}function af(){if(xe!==null){if(He===0)var e=xe.return;else e=xe,dr=Ea=null,Ec(e),ci=null,fs=0,e=xe;for(;e!==null;)yp(e.alternate,e),e=e.return;xe=null}}function bi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,u2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),af(),Ve=e,xe=a=ur(e.current,null),Ne=n,He=0,nn=null,Yr=!1,mi=rr(e,n),$c=!1,pi=_n=Wc=Ra=Xr=tt=0,Qt=vs=null,Jc=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var o=31-Mt(l),f=1<<o;n|=e[o],l&=~f}return _r=n,bl(),a}function zp(e,n){_e=null,G.H=Hl,n===ns||n===Rl?(n=n0(),He=3):n===Jm?(n=n0(),He=4):He=n===rp?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,nn=n,xe===null&&(tt=1,ql(e,pn(n,e.current)))}function Gp(){var e=G.H;return G.H=Hl,e===null?Hl:e}function kp(){var e=G.A;return G.A=FE,e}function sf(){tt=4,Yr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Xr&134217727)===0&&(Ra&134217727)===0||Ve===null||Kr(Ve,Ne,_n,!1)}function lf(e,n,a){var l=je;je|=2;var o=Gp(),f=kp();(Ve!==e||Ne!==n)&&(Ql=null,bi(e,n)),n=!1;var g=tt;e:do try{if(He!==0&&xe!==null){var v=xe,T=nn;switch(He){case 8:af(),g=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var L=He;if(He=0,nn=null,vi(e,v,T,L),a&&mi){g=0;break e}break;default:L=He,He=0,nn=null,vi(e,v,T,L)}}YE(),g=tt;break}catch(F){zp(e,F)}while(!0);return n&&e.shellSuspendCounter++,dr=Ea=null,je=l,G.H=o,G.A=f,xe===null&&(Ve=null,Ne=0,bl()),g}function YE(){for(;xe!==null;)qp(xe)}function XE(e,n){var a=je;je|=2;var l=Gp(),o=kp();Ve!==e||Ne!==n?(Ql=null,Zl=Tt()+500,bi(e,n)):mi=rr(e,n);e:do try{if(He!==0&&xe!==null){n=xe;var f=nn;t:switch(He){case 1:He=0,nn=null,vi(e,n,f,1);break;case 2:case 9:if(e0(f)){He=0,nn=null,Fp(n);break}n=function(){He!==2&&He!==9||Ve!==e||(He=7),Zn(e)},f.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:e0(f)?(He=0,nn=null,Fp(n)):(He=0,nn=null,vi(e,n,f,7));break;case 5:var g=null;switch(xe.tag){case 26:g=xe.memoizedState;case 5:case 27:var v=xe;if(!g||Ag(g)){He=0,nn=null;var T=v.sibling;if(T!==null)xe=T;else{var L=v.return;L!==null?(xe=L,$l(L)):xe=null}break t}}He=0,nn=null,vi(e,n,f,5);break;case 6:He=0,nn=null,vi(e,n,f,6);break;case 8:af(),tt=6;break e;default:throw Error(s(462))}}ZE();break}catch(F){zp(e,F)}while(!0);return dr=Ea=null,G.H=l,G.A=o,je=a,xe!==null?0:(Ve=null,Ne=0,bl(),tt)}function ZE(){for(;xe!==null&&!Di();)qp(xe)}function qp(e){var n=pp(e.alternate,e,_r);e.memoizedProps=e.pendingProps,n===null?$l(e):xe=n}function Fp(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=up(a,n,n.pendingProps,n.type,void 0,Ne);break;case 11:n=up(a,n,n.pendingProps,n.type.render,n.ref,Ne);break;case 5:Ec(n);default:yp(a,n),n=xe=Vm(n,_r),n=pp(a,n,_r)}e.memoizedProps=e.pendingProps,n===null?$l(e):xe=n}function vi(e,n,a,l){dr=Ea=null,Ec(n),ci=null,fs=0;var o=n.return;try{if(HE(e,o,n,a,Ne)){tt=1,ql(e,pn(a,e.current)),xe=null;return}}catch(f){if(o!==null)throw xe=o,f;tt=1,ql(e,pn(a,e.current)),xe=null;return}n.flags&32768?(Le||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Yr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Vp(n,e)):$l(n)}function $l(e){var n=e;do{if((n.flags&32768)!==0){Vp(n,Yr);return}e=n.return;var a=zE(n.alternate,n,_r);if(a!==null){xe=a;return}if(n=n.sibling,n!==null){xe=n;return}xe=n=e}while(n!==null);tt===0&&(tt=5)}function Vp(e,n){do{var a=GE(e.alternate,e);if(a!==null){a.flags&=32767,xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){xe=e;return}xe=e=a}while(e!==null);tt=6,xe=null}function Pp(e,n,a,l,o,f,g,v,T){e.cancelPendingCommit=null;do Wl();while(Ot!==0);if((je&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(f=n.lanes|n.childLanes,f|=Ku,Ru(e,a,f,g,v,T),e===Ve&&(xe=Ve=null,Ne=0),gi=n,Qr=e,yi=a,tf=f,nf=o,Up=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,WE(ua,function(){return Kp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,o=K.p,K.p=2,g=je,je|=4;try{kE(e,n,a)}finally{je=g,K.p=o,G.T=l}}Ot=1,Yp(),Xp(),Zp()}}function Yp(){if(Ot===1){Ot=0;var e=Qr,n=gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=je;je|=4;try{wp(n,e);var f=vf,g=Bm(e.containerInfo),v=f.focusedElem,T=f.selectionRange;if(g!==v&&v&&v.ownerDocument&&Lm(v.ownerDocument.documentElement,v)){if(T!==null&&Pu(v)){var L=T.start,F=T.end;if(F===void 0&&(F=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(F,v.value.length);else{var P=v.ownerDocument||document,j=P&&P.defaultView||window;if(j.getSelection){var I=j.getSelection(),he=v.textContent.length,fe=Math.min(T.start,he),ke=T.end===void 0?fe:Math.min(T.end,he);!I.extend&&fe>ke&&(g=ke,ke=fe,fe=g);var M=Dm(v,fe),C=Dm(v,ke);if(M&&C&&(I.rangeCount!==1||I.anchorNode!==M.node||I.anchorOffset!==M.offset||I.focusNode!==C.node||I.focusOffset!==C.offset)){var D=P.createRange();D.setStart(M.node,M.offset),I.removeAllRanges(),fe>ke?(I.addRange(D),I.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),I.addRange(D))}}}}for(P=[],I=v;I=I.parentNode;)I.nodeType===1&&P.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var V=P[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}co=!!bf,vf=bf=null}finally{je=o,K.p=l,G.T=a}}e.current=n,Ot=2}}function Xp(){if(Ot===2){Ot=0;var e=Qr,n=gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=je;je|=4;try{Ap(e,n.alternate,n)}finally{je=o,K.p=l,G.T=a}}Ot=3}}function Zp(){if(Ot===4||Ot===3){Ot=0,Li();var e=Qr,n=gi,a=yi,l=Up;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Ot=5:(Ot=0,gi=Qr=null,Qp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Zr=null),Hi(a),n=n.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=G.T,o=K.p,K.p=2,G.T=null;try{for(var f=e.onRecoverableError,g=0;g<l.length;g++){var v=l[g];f(v.value,{componentStack:v.stack})}}finally{G.T=n,K.p=o}}(yi&3)!==0&&Wl(),Zn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===rf?_s++:(_s=0,rf=e):_s=0,Es(0)}}function Qp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,es(n)))}function Wl(e){return Yp(),Xp(),Zp(),Kp()}function Kp(){if(Ot!==5)return!1;var e=Qr,n=tf;tf=0;var a=Hi(yi),l=G.T,o=K.p;try{K.p=32>a?32:a,G.T=null,a=nf,nf=null;var f=Qr,g=yi;if(Ot=0,gi=Qr=null,yi=0,(je&6)!==0)throw Error(s(331));var v=je;if(je|=4,Lp(f.current),Np(f,f.current,g,a),je=v,Es(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(dn,f)}catch{}return!0}finally{K.p=o,G.T=l,Qp(e,n)}}function $p(e,n,a){n=pn(a,n),n=Uc(e.stateNode,n,2),e=zr(e,n,2),e!==null&&(wn(e,2),Zn(e))}function qe(e,n,a){if(e.tag===3)$p(e,e,a);else for(;n!==null;){if(n.tag===3){$p(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Zr===null||!Zr.has(l))){e=pn(a,e),a=tp(2),l=zr(n,a,2),l!==null&&(np(a,l,n,e),wn(l,2),Zn(l));break}}n=n.return}}function of(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new VE;var o=new Set;l.set(n,o)}else o=l.get(n),o===void 0&&(o=new Set,l.set(n,o));o.has(a)||($c=!0,o.add(a),e=QE.bind(null,e,n,a),n.then(e,e))}function QE(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ve===e&&(Ne&a)===a&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>Tt()-ef?(je&2)===0&&bi(e,0):Wc|=a,pi===Ne&&(pi=0)),Zn(e)}function Wp(e,n){n===0&&(n=da()),e=ei(e,n),e!==null&&(wn(e,n),Zn(e))}function KE(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Wp(e,a)}function $E(e,n){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(n),Wp(e,a)}function WE(e,n){return qt(e,n)}var Jl=null,_i=null,uf=!1,eo=!1,cf=!1,wa=0;function Zn(e){e!==_i&&e.next===null&&(_i===null?Jl=_i=e:_i=_i.next=e),eo=!0,uf||(uf=!0,e2())}function Es(e,n){if(!cf&&eo){cf=!0;do for(var a=!1,l=Jl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,v=l.pingedLanes;f=(1<<31-Mt(42|e)+1)-1,f&=o&~(g&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,ng(l,f))}else f=Ne,f=Dr(l,l===Ve?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||rr(l,f)||(a=!0,ng(l,f));l=l.next}while(a);cf=!1}}function JE(){Jp()}function Jp(){eo=uf=!1;var e=0;wa!==0&&(o2()&&(e=wa),wa=0);for(var n=Tt(),a=null,l=Jl;l!==null;){var o=l.next,f=eg(l,n);f===0?(l.next=null,a===null?Jl=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(eo=!0)),l=o}Es(e)}function eg(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Mt(f),v=1<<g,T=o[g];T===-1?((v&a)===0||(v&l)!==0)&&(o[g]=Ou(v,n)):T<=n&&(e.expiredLanes|=v),f&=~v}if(n=Ve,a=Ne,a=Dr(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&On(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rr(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&On(l),Hi(a)){case 2:case 8:a=Bi;break;case 32:a=ua;break;case 268435456:a=Fa;break;default:a=ua}return l=tg.bind(null,e),a=qt(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&On(l),e.callbackPriority=2,e.callbackNode=null,2}function tg(e,n){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Wl()&&e.callbackNode!==a)return null;var l=Ne;return l=Dr(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Hp(e,l,n),eg(e,Tt()),e.callbackNode!=null&&e.callbackNode===a?tg.bind(null,e):null)}function ng(e,n){if(Wl())return null;Hp(e,n,!0)}function e2(){c2(function(){(je&6)!==0?qt(oa,JE):Jp()})}function ff(){return wa===0&&(wa=fa()),wa}function rg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fl(""+e)}function ag(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function t2(e,n,a,l,o){if(n==="submit"&&a&&a.stateNode===o){var f=rg((o[Dt]||null).action),g=l.submitter;g&&(n=(n=g[Dt]||null)?rg(n.formAction):g.getAttribute("formAction"),n!==null&&(f=n,g=null));var v=new pl("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(wa!==0){var T=g?ag(o,g):new FormData(o);Nc(a,{pending:!0,data:T,method:o.method,action:f},null,T)}}else typeof f=="function"&&(v.preventDefault(),T=g?ag(o,g):new FormData(o),Nc(a,{pending:!0,data:T,method:o.method,action:f},f,T))},currentTarget:o}]})}}for(var df=0;df<Qu.length;df++){var hf=Qu[df],n2=hf.toLowerCase(),r2=hf[0].toUpperCase()+hf.slice(1);Dn(n2,"on"+r2)}Dn(Hm,"onAnimationEnd"),Dn(Im,"onAnimationIteration"),Dn(zm,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(_E,"onTransitionRun"),Dn(EE,"onTransitionStart"),Dn(SE,"onTransitionCancel"),Dn(Gm,"onTransitionEnd"),J("onMouseEnter",["mouseout","mouseover"]),J("onMouseLeave",["mouseout","mouseover"]),J("onPointerEnter",["pointerout","pointerover"]),J("onPointerLeave",["pointerout","pointerover"]),X("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),X("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),X("onBeforeInput",["compositionend","keypress","textInput","paste"]),X("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="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(" "),a2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function ig(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var g=l.length-1;0<=g;g--){var v=l[g],T=v.instance,L=v.currentTarget;if(v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(F){kl(F)}o.currentTarget=null,f=T}else for(g=0;g<l.length;g++){if(v=l[g],T=v.instance,L=v.currentTarget,v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(F){kl(F)}o.currentTarget=null,f=T}}}}function Oe(e,n){var a=n[Nn];a===void 0&&(a=n[Nn]=new Set);var l=e+"__bubble";a.has(l)||(sg(n,e,2,!1),a.add(l))}function mf(e,n,a){var l=0;n&&(l|=4),sg(a,e,l,n)}var to="_reactListening"+Math.random().toString(36).slice(2);function pf(e){if(!e[to]){e[to]=!0,le.forEach(function(a){a!=="selectionchange"&&(a2.has(a)||mf(a,!1,e),mf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[to]||(n[to]=!0,mf("selectionchange",!1,n))}}function sg(e,n,a,l){switch(Ng(n)){case 2:var o=M2;break;case 8:o=D2;break;default:o=Cf}a=o.bind(null,n,a,e),o=void 0,!ju||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(n,a,{capture:!0,passive:o}):e.addEventListener(n,a,!0):o!==void 0?e.addEventListener(n,a,{passive:o}):e.addEventListener(n,a,!1)}function gf(e,n,a,l,o){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var v=l.stateNode.containerInfo;if(v===o)break;if(g===4)for(g=l.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;v!==null;){if(g=ar(v),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){l=f=g;continue e}v=v.parentNode}}l=l.return}hm(function(){var L=f,F=Bu(a),P=[];e:{var j=km.get(e);if(j!==void 0){var I=pl,he=e;switch(e){case"keypress":if(hl(a)===0)break e;case"keydown":case"keyup":I=W_;break;case"focusin":he="focus",I=Gu;break;case"focusout":he="blur",I=Gu;break;case"beforeblur":case"afterblur":I=Gu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=gm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=G_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=tE;break;case Hm:case Im:case zm:I=F_;break;case Gm:I=rE;break;case"scroll":case"scrollend":I=I_;break;case"wheel":I=iE;break;case"copy":case"cut":case"paste":I=P_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=bm;break;case"toggle":case"beforetoggle":I=lE}var fe=(n&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?j!==null?j+"Capture":null:j;fe=[];for(var C=L,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=ki(C,M),V!=null&&fe.push(Ts(C,V,D))),ke)break;C=C.return}0<fe.length&&(j=new I(j,he,null,a,F),P.push({event:j,listeners:fe}))}}if((n&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",j&&a!==Lu&&(he=a.relatedTarget||a.fromElement)&&(ar(he)||he[At]))break e;if((I||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,I?(he=a.relatedTarget||a.toElement,I=L,he=he?ar(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(I=null,he=L),I!==he)){if(fe=gm,V="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(fe=bm,V="onPointerLeave",M="onPointerEnter",C="pointer"),ke=I==null?j:Br(I),D=he==null?j:Br(he),j=new fe(V,C+"leave",I,a,F),j.target=ke,j.relatedTarget=D,V=null,ar(F)===L&&(fe=new fe(M,C+"enter",he,a,F),fe.target=D,fe.relatedTarget=ke,V=fe),ke=V,I&&he)t:{for(fe=I,M=he,C=0,D=fe;D;D=Ei(D))C++;for(D=0,V=M;V;V=Ei(V))D++;for(;0<C-D;)fe=Ei(fe),C--;for(;0<D-C;)M=Ei(M),D--;for(;C--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;I!==null&&lg(P,j,I,fe,!1),he!==null&&ke!==null&&lg(P,ke,he,fe,!0)}}e:{if(j=L?Br(L):window,I=j.nodeName&&j.nodeName.toLowerCase(),I==="select"||I==="input"&&j.type==="file")var ne=Om;else if(Am(j))if(Rm)ne=yE;else{ne=pE;var Se=mE}else I=j.nodeName,!I||I.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?L&&Du(L.elementType)&&(ne=Om):ne=gE;if(ne&&(ne=ne(e,L))){xm(P,ne,a,F);break e}Se&&Se(e,j,L),e==="focusout"&&L&&j.type==="number"&&L.memoizedProps.value!=null&&Mu(j,"number",j.value)}switch(Se=L?Br(L):window,e){case"focusin":(Am(Se)||Se.contentEditable==="true")&&($a=Se,Yu=L,Qi=null);break;case"focusout":Qi=Yu=$a=null;break;case"mousedown":Xu=!0;break;case"contextmenu":case"mouseup":case"dragend":Xu=!1,Um(P,a,F);break;case"selectionchange":if(vE)break;case"keydown":case"keyup":Um(P,a,F)}var oe;if(qu)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ka?Sm(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(vm&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=mm()):(Ur=F,Hu="value"in Ur?Ur.value:Ur.textContent,Ka=!0)),Se=no(L,de),0<Se.length&&(de=new ym(de,e,null,a,F),P.push({event:de,listeners:Se}),oe?de.data=oe:(oe=Tm(a),oe!==null&&(de.data=oe)))),(oe=uE?cE(e,a):fE(e,a))&&(de=no(L,"onBeforeInput"),0<de.length&&(Se=new ym("onBeforeInput","beforeinput",null,a,F),P.push({event:Se,listeners:de}),Se.data=oe)),t2(P,e,L,a,F)}ig(P,n)})}function Ts(e,n,a){return{instance:e,listener:n,currentTarget:a}}function no(e,n){for(var a=n+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=ki(e,a),o!=null&&l.unshift(Ts(e,o,f)),o=ki(e,n),o!=null&&l.push(Ts(e,o,f))),e.tag===3)return l;e=e.return}return[]}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lg(e,n,a,l,o){for(var f=n._reactName,g=[];a!==null&&a!==l;){var v=a,T=v.alternate,L=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||L===null||(T=L,o?(L=ki(a,f),L!=null&&g.unshift(Ts(a,L,T))):o||(L=ki(a,f),L!=null&&g.push(Ts(a,L,T)))),a=a.return}g.length!==0&&e.push({event:n,listeners:g})}var i2=/\r\n?/g,s2=/\u0000|\uFFFD/g;function og(e){return(typeof e=="string"?e:""+e).replace(i2,`
|
|
49
|
-
`).replace(s2,"")}function ug(e,n){return n=og(n),og(e)===n}function ro(){}function Ge(e,n,a,l,o,f){switch(a){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Xa(e,""+l);break;case"className":Mn(e,"class",l);break;case"tabIndex":Mn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Mn(e,a,l);break;case"style":fm(e,l,f);break;case"data":if(n!=="object"){Mn(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fl(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(n!=="input"&&Ge(e,n,"name",o.name,o,null),Ge(e,n,"formEncType",o.formEncType,o,null),Ge(e,n,"formMethod",o.formMethod,o,null),Ge(e,n,"formTarget",o.formTarget,o,null)):(Ge(e,n,"encType",o.encType,o,null),Ge(e,n,"method",o.method,o,null),Ge(e,n,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fl(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ro);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=fl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Pt(e,"popover",l);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=j_.get(a)||a,Pt(e,a,l))}}function yf(e,n,a,l,o,f){switch(a){case"style":fm(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&Xa(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ro);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!N.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),n=a.slice(2,o?a.length-7:void 0),f=e[Dt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(n,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Pt(e,a,l)}}}function Rt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,f,g,a,null)}}o&&Ge(e,n,"srcSet",a.srcSet,a,null),l&&Ge(e,n,"src",a.src,a,null);return;case"input":Oe("invalid",e);var v=f=g=o=null,T=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var F=a[l];if(F!=null)switch(l){case"name":o=F;break;case"type":g=F;break;case"checked":T=F;break;case"defaultChecked":L=F;break;case"value":f=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,n));break;default:Ge(e,n,l,F,a,null)}}lm(e,f,v,T,L,g,o,!1),ul(e);return;case"select":Oe("invalid",e),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":f=v;break;case"defaultValue":g=v;break;case"multiple":l=v;default:Ge(e,n,o,v,a,null)}n=f,a=g,e.multiple=!!l,n!=null?Ya(e,!!l,n,!1):a!=null&&Ya(e,!!l,a,!0);return;case"textarea":Oe("invalid",e),f=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(v=a[g],v!=null))switch(g){case"value":l=v;break;case"defaultValue":o=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ge(e,n,g,v,a,null)}um(e,l,o,f),ul(e);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,n,T,l,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<Ss.length;l++)Oe(Ss[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,L,l,a,null)}return;default:if(Du(n)){for(F in a)a.hasOwnProperty(F)&&(l=a[F],l!==void 0&&yf(e,n,F,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&Ge(e,n,v,l,a,null))}function l2(e,n,a,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,g=null,v=null,T=null,L=null,F=null;for(I in a){var P=a[I];if(a.hasOwnProperty(I)&&P!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(I)||Ge(e,n,I,null,l,P)}}for(var j in l){var I=l[j];if(P=a[j],l.hasOwnProperty(j)&&(I!=null||P!=null))switch(j){case"type":f=I;break;case"name":o=I;break;case"checked":L=I;break;case"defaultChecked":F=I;break;case"value":g=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,n));break;default:I!==P&&Ge(e,n,j,I,l,P)}}Nu(e,g,v,T,L,F,f,o);return;case"select":I=g=v=j=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":I=T;default:l.hasOwnProperty(f)||Ge(e,n,f,null,l,T)}for(o in l)if(f=l[o],T=a[o],l.hasOwnProperty(o)&&(f!=null||T!=null))switch(o){case"value":j=f;break;case"defaultValue":v=f;break;case"multiple":g=f;default:f!==T&&Ge(e,n,o,f,l,T)}n=v,a=g,l=I,j!=null?Ya(e,!!a,j,!1):!!l!=!!a&&(n!=null?Ya(e,!!a,n,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":I=j=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ge(e,n,v,null,l,o)}for(g in l)if(o=l[g],f=a[g],l.hasOwnProperty(g)&&(o!=null||f!=null))switch(g){case"value":j=o;break;case"defaultValue":I=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&Ge(e,n,g,o,l,f)}om(e,j,I);return;case"option":for(var he in a)if(j=a[he],a.hasOwnProperty(he)&&j!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,n,he,null,l,j)}for(T in l)if(j=l[T],I=a[T],l.hasOwnProperty(T)&&j!==I&&(j!=null||I!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ge(e,n,T,j,l,I)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in a)j=a[fe],a.hasOwnProperty(fe)&&j!=null&&!l.hasOwnProperty(fe)&&Ge(e,n,fe,null,l,j);for(L in l)if(j=l[L],I=a[L],l.hasOwnProperty(L)&&j!==I&&(j!=null||I!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,n));break;default:Ge(e,n,L,j,l,I)}return;default:if(Du(n)){for(var ke in a)j=a[ke],a.hasOwnProperty(ke)&&j!==void 0&&!l.hasOwnProperty(ke)&&yf(e,n,ke,void 0,l,j);for(F in l)j=l[F],I=a[F],!l.hasOwnProperty(F)||j===I||j===void 0&&I===void 0||yf(e,n,F,j,l,I);return}}for(var M in a)j=a[M],a.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ge(e,n,M,null,l,j);for(P in l)j=l[P],I=a[P],!l.hasOwnProperty(P)||j===I||j==null&&I==null||Ge(e,n,P,j,l,I)}var bf=null,vf=null;function ao(e){return e.nodeType===9?e:e.ownerDocument}function cg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function _f(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ef=null;function o2(){var e=window.event;return e&&e.type==="popstate"?e===Ef?!1:(Ef=e,!0):(Ef=null,!1)}var dg=typeof setTimeout=="function"?setTimeout:void 0,u2=typeof clearTimeout=="function"?clearTimeout:void 0,hg=typeof Promise=="function"?Promise:void 0,c2=typeof queueMicrotask=="function"?queueMicrotask:typeof hg<"u"?function(e){return hg.resolve(null).then(e).catch(f2)}:dg;function f2(e){setTimeout(function(){throw e})}function $r(e){return e==="head"}function mg(e,n){var a=n,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&As(g.documentElement),a&2&&As(g.body),a&4)for(a=g.head,As(a),g=a.firstChild;g;){var v=g.nextSibling,T=g.nodeName;g[Lr]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=v}}if(o===0){e.removeChild(f),Ds(n);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);Ds(n)}function Sf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Sf(a),Kt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function d2(e,n,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Lr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Bn(e.nextSibling),e===null)break}return null}function h2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Bn(e.nextSibling),e===null))return null;return e}function Tf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function m2(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var l=function(){n(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Bn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Af=null;function pg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}function gg(e,n,a){switch(n=ao(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function As(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Kt(e)}var En=new Map,yg=new Set;function io(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Er=K.d;K.d={f:p2,r:g2,D:y2,C:b2,L:v2,m:_2,X:S2,S:E2,M:T2};function p2(){var e=Er.f(),n=Kl();return e||n}function g2(e){var n=ir(e);n!==null&&n.tag===5&&n.type==="form"?H0(n):Er.r(e)}var Si=typeof document>"u"?null:document;function bg(e,n,a){var l=Si;if(l&&typeof n=="string"&&n){var o=mn(n);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),yg.has(o)||(yg.add(o),e={rel:e,crossOrigin:a,href:n},l.querySelector(o)===null&&(n=l.createElement("link"),Rt(n,"link",e),ot(n),l.head.appendChild(n)))}}function y2(e){Er.D(e),bg("dns-prefetch",e,null)}function b2(e,n){Er.C(e,n),bg("preconnect",e,n)}function v2(e,n,a){Er.L(e,n,a);var l=Si;if(l&&e&&n){var o='link[rel="preload"][as="'+mn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+mn(a.imageSizes)+'"]')):o+='[href="'+mn(e)+'"]';var f=o;switch(n){case"style":f=Ti(e);break;case"script":f=Ai(e)}En.has(f)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),En.set(f,e),l.querySelector(o)!==null||n==="style"&&l.querySelector(xs(f))||n==="script"&&l.querySelector(Os(f))||(n=l.createElement("link"),Rt(n,"link",e),ot(n),l.head.appendChild(n)))}}function _2(e,n){Er.m(e,n);var a=Si;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",o='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!En.has(f)&&(e=b({rel:"modulepreload",href:e},n),En.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Os(f)))return}l=a.createElement("link"),Rt(l,"link",e),ot(l),a.head.appendChild(l)}}}function E2(e,n,a){Er.S(e,n,a);var l=Si;if(l&&e){var o=sr(l).hoistableStyles,f=Ti(e);n=n||"default";var g=o.get(f);if(!g){var v={loading:0,preload:null};if(g=l.querySelector(xs(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=En.get(f))&&xf(e,a);var T=g=l.createElement("link");ot(T),Rt(T,"link",e),T._p=new Promise(function(L,F){T.onload=L,T.onerror=F}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,so(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:v},o.set(f,g)}}}function S2(e,n){Er.X(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),ot(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function T2(e,n){Er.M(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0,type:"module"},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),ot(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function vg(e,n,a,l){var o=(o=ue.current)?io(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ti(a.href),a=sr(o).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ti(a.href);var f=sr(o).hoistableStyles,g=f.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=o.querySelector(xs(e)))&&!f._p&&(g.instance=f,g.state.loading=5),En.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},En.set(e,a),f||A2(o,e,a,g.state))),n&&l===null)throw Error(s(528,""));return g}if(n&&l!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ai(a),a=sr(o).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ti(e){return'href="'+mn(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function _g(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function A2(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Rt(n,"link",a),ot(n),e.head.appendChild(n))}function Ai(e){return'[src="'+mn(e)+'"]'}function Os(e){return"script[async]"+e}function Eg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+mn(a.href)+'"]');if(l)return n.instance=l,ot(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ot(l),Rt(l,"style",o),so(l,a.precedence,e),n.instance=l;case"stylesheet":o=Ti(a.href);var f=e.querySelector(xs(o));if(f)return n.state.loading|=4,n.instance=f,ot(f),f;l=_g(a),(o=En.get(o))&&xf(l,o),f=(e.ownerDocument||e).createElement("link"),ot(f);var g=f;return g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",l),n.state.loading|=4,so(f,a.precedence,e),n.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(Os(f)))?(n.instance=o,ot(o),o):(l=a,(o=En.get(f))&&(l=b({},a),Of(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ot(o),Rt(o,"link",l),e.head.appendChild(o),n.instance=o);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,so(l,a.precedence,e));return n.instance}function so(e,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,g=0;g<l.length;g++){var v=l[g];if(v.dataset.precedence===n)f=v;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function xf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Of(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var lo=null;function Sg(e,n,a){if(lo===null){var l=new Map,o=lo=new Map;o.set(a,l)}else o=lo,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Lr]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(n)||"";g=e+g;var v=l.get(g);v?v.push(f):l.set(g,[f])}}return l}function Tg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function x2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Ag(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rs=null;function O2(){}function R2(e,n,a){if(Rs===null)throw Error(s(475));var l=Rs;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ti(a.href),f=e.querySelector(xs(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=oo.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=f,ot(f);return}f=e.ownerDocument||e,a=_g(a),(o=En.get(o))&&xf(a,o),f=f.createElement("link"),ot(f);var g=f;g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",a),n.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=oo.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function w2(){if(Rs===null)throw Error(s(475));var e=Rs;return e.stylesheets&&e.count===0&&Rf(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&Rf(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function oo(){if(this.count--,this.count===0){if(this.stylesheets)Rf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uo=null;function Rf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uo=new Map,n.forEach(C2,e),uo=null,oo.call(e))}function C2(e,n){if(!(n.state.loading&4)){var a=uo.get(e);if(a)var l=a.get(null);else{a=new Map,uo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var g=o[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=n.instance,g=o.getAttribute("data-precedence"),f=a.get(g)||l,f===l&&a.set(null,o),a.set(g,o),this.count++,l=oo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),n.state.loading|=4}}var ws={$$typeof:S,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function N2(e,n,a,l,o,f,g,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function xg(e,n,a,l,o,f,g,v,T,L,F,P){return e=new N2(e,n,a,g,v,T,L,P),n=1,f===!0&&(n|=24),f=Jt(3,null,null,n),e.current=f,f.stateNode=e,n=lc(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:n},fc(f),e}function Og(e){return e?(e=ti,e):ti}function Rg(e,n,a,l,o,f){o=Og(o),l.context===null?l.context=o:l.pendingContext=o,l=Ir(n),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=zr(e,l,n),a!==null&&(an(a,e,n),as(a,e,n))}function wg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function wf(e,n){wg(e,n),(e=e.alternate)&&wg(e,n)}function Cg(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&an(n,e,67108864),wf(e,67108864)}}var co=!0;function M2(e,n,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=2,Cf(e,n,a,l)}finally{K.p=f,G.T=o}}function D2(e,n,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=8,Cf(e,n,a,l)}finally{K.p=f,G.T=o}}function Cf(e,n,a,l){if(co){var o=Nf(l);if(o===null)gf(e,n,l,fo,a),Mg(e,l);else if(B2(o,e,n,a,l))l.stopPropagation();else if(Mg(e,l),n&4&&-1<L2.indexOf(e)){for(;o!==null;){var f=ir(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Vt(f.pendingLanes);if(g!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var T=1<<31-Mt(g);v.entanglements[1]|=T,g&=~T}Zn(f),(je&6)===0&&(Zl=Tt()+500,Es(0))}}break;case 13:v=ei(f,2),v!==null&&an(v,f,2),Kl(),wf(f,2)}if(f=Nf(l),f===null&&gf(e,n,l,fo,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else gf(e,n,l,null,a)}}function Nf(e){return e=Bu(e),Mf(e)}var fo=null;function Mf(e){if(fo=null,e=ar(e),e!==null){var n=c(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return fo=e,null}function Ng(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qa()){case oa:return 2;case Bi:return 8;case ua:case xu:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Df=!1,Wr=null,Jr=null,ea=null,Cs=new Map,Ns=new Map,ta=[],L2="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".split(" ");function Mg(e,n){switch(e){case"focusin":case"focusout":Wr=null;break;case"dragenter":case"dragleave":Jr=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":Cs.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(n.pointerId)}}function Ms(e,n,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},n!==null&&(n=ir(n),n!==null&&Cg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function B2(e,n,a,l,o){switch(n){case"focusin":return Wr=Ms(Wr,e,n,a,l,o),!0;case"dragenter":return Jr=Ms(Jr,e,n,a,l,o),!0;case"mouseover":return ea=Ms(ea,e,n,a,l,o),!0;case"pointerover":var f=o.pointerId;return Cs.set(f,Ms(Cs.get(f)||null,e,n,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Ns.set(f,Ms(Ns.get(f)||null,e,n,a,l,o)),!0}return!1}function Dg(e){var n=ar(e.target);if(n!==null){var a=c(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,zi(e.priority,function(){if(a.tag===13){var l=rn();l=Fn(l);var o=ei(a,l);o!==null&&an(o,a,l),wf(a,l)}});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ho(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Nf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Lu=l,a.target.dispatchEvent(l),Lu=null}else return n=ir(a),n!==null&&Cg(n),e.blockedOn=a,!1;n.shift()}return!0}function Lg(e,n,a){ho(e)&&a.delete(n)}function U2(){Df=!1,Wr!==null&&ho(Wr)&&(Wr=null),Jr!==null&&ho(Jr)&&(Jr=null),ea!==null&&ho(ea)&&(ea=null),Cs.forEach(Lg),Ns.forEach(Lg)}function mo(e,n){e.blockedOn===n&&(e.blockedOn=null,Df||(Df=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,U2)))}var po=null;function Bg(e){po!==e&&(po=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){po===e&&(po=null);for(var n=0;n<e.length;n+=3){var a=e[n],l=e[n+1],o=e[n+2];if(typeof l!="function"){if(Mf(l||a)===null)continue;break}var f=ir(a);f!==null&&(e.splice(n,3),n-=3,Nc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ds(e){function n(T){return mo(T,e)}Wr!==null&&mo(Wr,e),Jr!==null&&mo(Jr,e),ea!==null&&mo(ea,e),Cs.forEach(n),Ns.forEach(n);for(var a=0;a<ta.length;a++){var l=ta[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ta.length&&(a=ta[0],a.blockedOn===null);)Dg(a),a.blockedOn===null&&ta.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],g=o[Dt]||null;if(typeof f=="function")g||Bg(a);else if(g){var v=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[Dt]||null)v=g.formAction;else if(Mf(o)!==null)continue}else v=g.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),Bg(a)}}}function Lf(e){this._internalRoot=e}go.prototype.render=Lf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=rn();Rg(a,l,e,n,null,null)},go.prototype.unmount=Lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Rg(e.current,2,null,e,null,null),Kl(),n[At]=null}};function go(e){this._internalRoot=e}go.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ii();e={blockedOn:null,target:e,priority:n};for(var a=0;a<ta.length&&n!==0&&n<ta[a].priority;a++);ta.splice(a,0,e),a===0&&Dg(e)}};var Ug=r.version;if(Ug!=="19.1.1")throw Error(s(527,Ug,"19.1.1"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var j2={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yo.isDisabled&&yo.supportsFiber)try{dn=yo.inject(j2),Nt=yo}catch{}}return Bs.createRoot=function(e,n){if(!u(e))throw Error(s(299));var a=!1,l="",o=$0,f=W0,g=J0,v=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(v=n.unstable_transitionCallbacks)),n=xg(e,1,!1,null,null,a,l,o,f,g,v,null),e[At]=n.current,pf(e),new Lf(n)},Bs.hydrateRoot=function(e,n,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=$0,g=W0,v=J0,T=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),n=xg(e,1,!0,n,a??null,l,o,f,g,v,T,L),n.context=Og(null),a=n.current,l=rn(),l=Fn(l),o=Ir(l),o.callback=null,zr(a,o,l),a=l,n.current.lanes=a,wn(n,a),Zn(n),e[At]=n.current,pf(e),new go(n)},Bs.version="19.1.1",Bs}var Pg;function Y2(){if(Pg)return Uf.exports;Pg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Uf.exports=P2(),Uf.exports}var X2=Y2(),B=cu();const E1=uu(B);var Gf={exports:{}},kf={};/**
|
|
50
|
-
* @license React
|
|
51
|
-
* use-sync-external-store-with-selector.production.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var Yg;function Z2(){if(Yg)return kf;Yg=1;var t=cu();function r(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var i=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,u=t.useRef,c=t.useEffect,d=t.useMemo,h=t.useDebugValue;return kf.useSyncExternalStoreWithSelector=function(m,p,b,_,x){var U=u(null);if(U.current===null){var R={hasValue:!1,value:null};U.current=R}else R=U.current;U=d(function(){function z(A){if(!E){if(E=!0,w=A,A=_(A),x!==void 0&&R.hasValue){var Z=R.value;if(x(Z,A))return S=Z}return S=A}if(Z=S,i(w,A))return Z;var W=_(A);return x!==void 0&&x(Z,W)?(w=A,Z):(w=A,S=W)}var E=!1,w,S,H=b===void 0?null:b;return[function(){return z(p())},H===null?void 0:function(){return z(H())}]},[p,b,_,x]);var q=s(m,U[0],U[1]);return c(function(){R.hasValue=!0,R.value=q},[q]),h(q),q},kf}var Xg;function Q2(){return Xg||(Xg=1,Gf.exports=Z2()),Gf.exports}var K2=Q2(),$2=B.version.startsWith("19"),W2=Symbol.for($2?"react.transitional.element":"react.element"),J2=Symbol.for("react.portal"),eS=Symbol.for("react.fragment"),tS=Symbol.for("react.strict_mode"),nS=Symbol.for("react.profiler"),rS=Symbol.for("react.consumer"),aS=Symbol.for("react.context"),S1=Symbol.for("react.forward_ref"),iS=Symbol.for("react.suspense"),sS=Symbol.for("react.suspense_list"),vh=Symbol.for("react.memo"),lS=Symbol.for("react.lazy"),oS=S1,uS=vh;function cS(t){if(typeof t=="object"&&t!==null){const{$$typeof:r}=t;switch(r){case W2:switch(t=t.type,t){case eS:case nS:case tS:case iS:case sS:return t;default:switch(t=t&&t.$$typeof,t){case aS:case S1:case lS:case vh:return t;case rS:return t;default:return r}}case J2:return r}}}function fS(t){return cS(t)===vh}function dS(t,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,p,b,_,x;function U(w,S){return m=w,p=S,b=t(m,p),_=r(s,p),x=i(b,_,p),h=!0,x}function R(){return b=t(m,p),r.dependsOnOwnProps&&(_=r(s,p)),x=i(b,_,p),x}function q(){return t.dependsOnOwnProps&&(b=t(m,p)),r.dependsOnOwnProps&&(_=r(s,p)),x=i(b,_,p),x}function z(){const w=t(m,p),S=!d(w,b);return b=w,S&&(x=i(b,_,p)),x}function E(w,S){const H=!c(S,p),A=!u(w,m,S,p);return m=w,p=S,H&&A?R():H?q():A?z():x}return function(S,H){return h?E(S,H):U(S,H)}}function hS(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(t,u),d=i(t,u),h=s(t,u);return dS(c,d,h,t,u)}function mS(t,r){const i={};for(const s in t){const u=t[s];typeof u=="function"&&(i[s]=(...c)=>r(u(...c)))}return i}function Fd(t){return function(i){const s=t(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function Zg(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function T1(t,r){return function(s,{displayName:u}){const c=function(h,m){return c.dependsOnOwnProps?c.mapToProps(h,m):c.mapToProps(h,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(h,m){c.mapToProps=t,c.dependsOnOwnProps=Zg(t);let p=c(h,m);return typeof p=="function"&&(c.mapToProps=p,c.dependsOnOwnProps=Zg(p),p=c(h,m)),p},c}}function _h(t,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function pS(t){return t&&typeof t=="object"?Fd(r=>mS(t,r)):t?typeof t=="function"?T1(t):_h(t,"mapDispatchToProps"):Fd(r=>({dispatch:r}))}function gS(t){return t?typeof t=="function"?T1(t):_h(t,"mapStateToProps"):Fd(()=>({}))}function yS(t,r,i){return{...i,...t,...r}}function bS(t){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,d;return function(m,p,b){const _=t(m,p,b);return c?u(_,d)||(d=_):(c=!0,d=_),d}}}function vS(t){return t?typeof t=="function"?bS(t):_h(t,"mergeProps"):()=>yS}function _S(t){t()}function ES(){let t=null,r=null;return{clear(){t=null,r=null},notify(){_S(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:t=u,function(){!s||t===null||(s=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}var Qg={notify(){},get:()=>[]};function A1(t,r){let i,s=Qg,u=0,c=!1;function d(q){b();const z=s.subscribe(q);let E=!1;return()=>{E||(E=!0,z(),_())}}function h(){s.notify()}function m(){R.onStateChange&&R.onStateChange()}function p(){return c}function b(){u++,i||(i=r?r.addNestedSub(m):t.subscribe(m),s=ES())}function _(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Qg)}function x(){c||(c=!0,b())}function U(){c&&(c=!1,_())}const R={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:p,trySubscribe:x,tryUnsubscribe:U,getListeners:()=>s};return R}var SS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TS=SS(),AS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",xS=AS(),OS=()=>TS||xS?B.useLayoutEffect:B.useEffect,Wo=OS();function Kg(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function qf(t,r){if(Kg(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;const i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!Kg(t[i[u]],r[i[u]]))return!1;return!0}var RS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},CS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},x1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NS={[oS]:CS,[uS]:x1};function $g(t){return fS(t)?x1:NS[t.$$typeof]||RS}var MS=Object.defineProperty,DS=Object.getOwnPropertyNames,Wg=Object.getOwnPropertySymbols,LS=Object.getOwnPropertyDescriptor,BS=Object.getPrototypeOf,Jg=Object.prototype;function Vd(t,r){if(typeof r!="string"){if(Jg){const c=BS(r);c&&c!==Jg&&Vd(t,c)}let i=DS(r);Wg&&(i=i.concat(Wg(r)));const s=$g(t),u=$g(r);for(let c=0;c<i.length;++c){const d=i[c];if(!wS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=LS(r,d);try{MS(t,d,h)}catch{}}}}return t}var US=Symbol.for("react-redux-context"),jS=typeof globalThis<"u"?globalThis:{};function HS(){if(!B.createContext)return{};const t=jS[US]??=new Map;let r=t.get(B.createContext);return r||(r=B.createContext(null),t.set(B.createContext,r)),r}var Rr=HS(),IS=[null,null];function zS(t,r,i){Wo(()=>t(...r),i)}function GS(t,r,i,s,u,c){t.current=s,i.current=!1,u.current&&(u.current=null,c())}function kS(t,r,i,s,u,c,d,h,m,p,b){if(!t)return()=>{};let _=!1,x=null;const U=()=>{if(_||!h.current)return;const q=r.getState();let z,E;try{z=s(q,u.current)}catch(w){E=w,x=w}E||(x=null),z===c.current?d.current||p():(c.current=z,m.current=z,d.current=!0,b())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(_=!0,i.tryUnsubscribe(),i.onStateChange=null,x)throw x}}function qS(t,r){return t===r}function FS(t,r,i,{pure:s,areStatesEqual:u=qS,areOwnPropsEqual:c=qf,areStatePropsEqual:d=qf,areMergedPropsEqual:h=qf,forwardRef:m=!1,context:p=Rr}={}){const b=p,_=gS(t),x=pS(r),U=vS(i),R=!!t;return z=>{const E=z.displayName||z.name||"Component",w=`Connect(${E})`,S={shouldHandleStateChanges:R,displayName:w,wrappedComponentName:E,WrappedComponent:z,initMapStateToProps:_,initMapDispatchToProps:x,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function H(W){const[ae,ye,Ee]=B.useMemo(()=>{const{reactReduxForwardedRef:Qe,...qt}=W;return[W.context,Qe,qt]},[W]),se=B.useMemo(()=>{let Qe=b;return ae?.Consumer,Qe},[ae,b]),me=B.useContext(se),ce=!!W.store&&!!W.store.getState&&!!W.store.dispatch,Pe=!!me&&!!me.store,ve=ce?W.store:me.store,G=Pe?me.getServerState:ve.getState,K=B.useMemo(()=>hS(ve.dispatch,S),[ve]),[ee,Ae]=B.useMemo(()=>{if(!R)return IS;const Qe=A1(ve,ce?void 0:me.subscription),qt=Qe.notifyNestedSubs.bind(Qe);return[Qe,qt]},[ve,ce,me]),O=B.useMemo(()=>ce?me:{...me,subscription:ee},[ce,me,ee]),k=B.useRef(void 0),$=B.useRef(Ee),Y=B.useRef(void 0),te=B.useRef(!1),re=B.useRef(!1),ue=B.useRef(void 0);Wo(()=>(re.current=!0,()=>{re.current=!1}),[]);const Je=B.useMemo(()=>()=>Y.current&&Ee===$.current?Y.current:K(ve.getState(),Ee),[ve,Ee]),Ue=B.useMemo(()=>qt=>ee?kS(R,ve,ee,K,$,k,te,re,Y,Ae,qt):()=>{},[ee]);zS(GS,[$,k,te,Ee,Y,Ae]);let St;try{St=B.useSyncExternalStore(Ue,Je,G?()=>K(G(),Ee):Je)}catch(Qe){throw ue.current&&(Qe.message+=`
|
|
58
|
-
The error may be correlated with this previous error:
|
|
59
|
-
${ue.current.stack}
|
|
60
|
-
|
|
61
|
-
`),Qe}Wo(()=>{ue.current=void 0,Y.current=void 0,k.current=St});const qn=B.useMemo(()=>B.createElement(z,{...St,ref:ye}),[ye,z,St]);return B.useMemo(()=>R?B.createElement(se.Provider,{value:O},qn):qn,[se,qn,O])}const Z=B.memo(H);if(Z.WrappedComponent=z,Z.displayName=H.displayName=w,m){const ae=B.forwardRef(function(Ee,se){return B.createElement(Z,{...Ee,reactReduxForwardedRef:se})});return ae.displayName=w,ae.WrappedComponent=z,Vd(ae,z)}return Vd(Z,z)}}var VS=FS;function PS(t){const{children:r,context:i,serverState:s,store:u}=t,c=B.useMemo(()=>{const m=A1(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=B.useMemo(()=>u.getState(),[u]);Wo(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,d]);const h=i||Rr;return B.createElement(h.Provider,{value:c},r)}var YS=PS;function Eh(t=Rr){return function(){return B.useContext(t)}}var O1=Eh();function R1(t=Rr){const r=t===Rr?O1:Eh(t),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var XS=R1();function ZS(t=Rr){const r=t===Rr?XS:R1(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var QS=ZS(),KS=(t,r)=>t===r;function $S(t=Rr){const r=t===Rr?O1:Eh(t),i=(s,u={})=>{const{equalityFn:c=KS}=typeof u=="function"?{equalityFn:u}:u,d=r(),{store:h,subscription:m,getServerState:p}=d;B.useRef(!0);const b=B.useCallback({[s.name](x){return s(x)}}[s.name],[s]),_=K2.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,p||h.getState,b,c);return B.useDebugValue(_),_};return Object.assign(i,{withTypes:()=>i}),i}var WS=$S(),Ff={exports:{}};/*!
|
|
62
|
-
Copyright (c) 2018 Jed Watson.
|
|
63
|
-
Licensed under the MIT License (MIT), see
|
|
64
|
-
http://jedwatson.github.io/classnames
|
|
65
|
-
*/var ey;function JS(){return ey||(ey=1,(function(t){(function(){var r={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(c=u(c,s(h)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var h in c)r.call(c,h)&&c[h]&&(d=u(d,h));return d}function u(c,d){return d?c?c+" "+d:c+d:c}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(Ff)),Ff.exports}var eT=JS();const Q=uu(eT);var Pd=function(t,r){return Pd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},Pd(t,r)};function An(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Pd(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ie=function(){return ie=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ie.apply(this,arguments)};function fu(t,r){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(t);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(t,s[u])&&(i[s[u]]=t[s[u]]);return i}function Wn(t,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return t.concat(c||Array.prototype.slice.call(r))}function Kn(t,r){var i=r&&r.cache?r.cache:lT,s=r&&r.serializer?r.serializer:iT,u=r&&r.strategy?r.strategy:rT;return u(t,{cache:i,serializer:s})}function tT(t){return t==null||typeof t=="number"||typeof t=="boolean"}function nT(t,r,i,s){var u=tT(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=t.call(this,s),r.set(u,c)),c}function w1(t,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=t.apply(this,s),r.set(u,c)),c}function C1(t,r,i,s,u){return i.bind(r,t,s,u)}function rT(t,r){var i=t.length===1?nT:w1;return C1(t,this,i,r.cache.create(),r.serializer)}function aT(t,r){return C1(t,this,w1,r.cache.create(),r.serializer)}var iT=function(){return JSON.stringify(arguments)},sT=(function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(r){return this.cache[r]},t.prototype.set=function(r,i){this.cache[r]=i},t})(),lT={create:function(){return new sT}},$n={variadic:aT},we;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(we||(we={}));var Ye;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ye||(Ye={}));var Ri;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Ri||(Ri={}));function ty(t){return t.type===Ye.literal}function oT(t){return t.type===Ye.argument}function N1(t){return t.type===Ye.number}function M1(t){return t.type===Ye.date}function D1(t){return t.type===Ye.time}function L1(t){return t.type===Ye.select}function B1(t){return t.type===Ye.plural}function uT(t){return t.type===Ye.pound}function U1(t){return t.type===Ye.tag}function j1(t){return!!(t&&typeof t=="object"&&t.type===Ri.number)}function Yd(t){return!!(t&&typeof t=="object"&&t.type===Ri.dateTime)}var H1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,cT=/(?:[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 fT(t){var r={};return t.replace(cT,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var dT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hT(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(dT).filter(function(x){return x.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],d=c.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),p=0,b=m;p<b.length;p++){var _=b[p];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function mT(t){return t.replace(/^(.*?)-/,"")}var ny=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,I1=/^(@+)?(\+|#+)?[rs]?$/g,pT=/(\*)(0+)|(#+)(0+)|(0+)/g,z1=/^(0+)$/;function ry(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(I1,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function G1(t){switch(t){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 gT(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var i=t.slice(0,2);if(i==="+!"?(r.signDisplay="always",t=t.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!z1.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function ay(t){var r={},i=G1(t);return i||r}function yT(t){for(var r={},i=0,s=t;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=mT(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ie(ie(ie({},r),{notation:"scientific"}),u.options.reduce(function(m,p){return ie(ie({},m),ay(p))},{}));continue;case"engineering":r=ie(ie(ie({},r),{notation:"engineering"}),u.options.reduce(function(m,p){return ie(ie({},m),ay(p))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(pT,function(m,p,b,_,x,U){if(p)r.minimumIntegerDigits=b.length;else{if(_&&x)throw new Error("We currently do not support maximum integer digits");if(U)throw new Error("We currently do not support exact integer digits")}return""});continue}if(z1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(ny.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(ny,function(m,p,b,_,x,U){return b==="*"?r.minimumFractionDigits=p.length:_&&_[0]==="#"?r.maximumFractionDigits=_.length:x&&U?(r.minimumFractionDigits=x.length,r.maximumFractionDigits=x.length+U.length):(r.minimumFractionDigits=p.length,r.maximumFractionDigits=p.length),""});var c=u.options[0];c==="w"?r=ie(ie({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ie(ie({},r),ry(c)));continue}if(I1.test(u.stem)){r=ie(ie({},r),ry(u.stem));continue}var d=G1(u.stem);d&&(r=ie(ie({},r),d));var h=gT(u.stem);h&&(r=ie(ie({},r),h))}return r}var vo={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function bT(t,r){for(var i="",s=0;s<t.length;s++){var u=t.charAt(s);if(u==="j"){for(var c=0;s+1<t.length&&t.charAt(s+1)===u;)c++,s++;var d=1+(c&1),h=c<2?1:3+(c>>1),m="a",p=vT(r);for((p=="H"||p=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=p+i}else u==="J"?i+="H":i+=u}return i}function vT(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=t.language,s;i!=="root"&&(s=t.maximize().region);var u=vo[s||""]||vo[i||""]||vo["".concat(i,"-001")]||vo["001"];return u[0]}var Vf,_T=new RegExp("^".concat(H1.source,"*")),ET=new RegExp("".concat(H1.source,"*$"));function Me(t,r){return{start:t,end:r}}var ST=!!String.prototype.startsWith&&"_a".startsWith("a",1),TT=!!String.fromCodePoint,AT=!!Object.fromEntries,xT=!!String.prototype.codePointAt,OT=!!String.prototype.trimStart,RT=!!String.prototype.trimEnd,wT=!!Number.isSafeInteger,CT=wT?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Xd=!0;try{var NT=q1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xd=((Vf=NT.exec("a"))===null||Vf===void 0?void 0:Vf[0])==="a"}catch{Xd=!1}var iy=ST?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},Zd=TT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,d;u>c;){if(d=r[c++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},sy=AT?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],d=c[0],h=c[1];i[d]=h}return i},k1=xT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},MT=OT?function(r){return r.trimStart()}:function(r){return r.replace(_T,"")},DT=RT?function(r){return r.trimEnd()}:function(r){return r.replace(ET,"")};function q1(t,r){return new RegExp(t,r)}var Qd;if(Xd){var ly=q1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Qd=function(r,i){var s;ly.lastIndex=i;var u=ly.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else Qd=function(r,i){for(var s=[];;){var u=k1(r,i);if(u===void 0||F1(u)||jT(u))break;s.push(u),i+=u>=65536?2:1}return Zd.apply(void 0,s)};var LT=(function(){function t(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,i,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var d=this.parseArgument(r,s);if(d.err)return d;u.push(d.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:Ye.pound,location:Me(h,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(we.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&Kd(this.peek()||0)){var d=this.parseTag(r,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(r,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},t.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ye.literal,value:"<".concat(u,"/>"),location:Me(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var d=c.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Kd(this.char()))return this.error(we.INVALID_TAG,Me(h,this.clonePosition()));var m=this.clonePosition(),p=this.parseTagName();return u!==p?this.error(we.UNMATCHED_CLOSING_TAG,Me(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ye.tag,value:u,children:d,location:Me(s,this.clonePosition())},err:null}:this.error(we.INVALID_TAG,Me(h,this.clonePosition())))}else return this.error(we.UNCLOSED_TAG,Me(s,this.clonePosition()))}else return this.error(we.INVALID_TAG,Me(s,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&UT(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var d=this.tryParseUnquoted(r,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Me(s,this.clonePosition());return{val:{type:Ye.literal,value:u,location:m},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!BT(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return Zd.apply(void 0,i)},t.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),Zd(s))},t.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(we.EMPTY_ARGUMENT,Me(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ye.argument,value:u,location:Me(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=Qd(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),d=Me(r,c);return{value:s,location:d}},t.prototype.parseArgumentOptions=function(r,i,s,u){var c,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(we.EXPECT_ARGUMENT_TYPE,Me(d,m));case"number":case"date":case"time":{this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var b=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var x=DT(_.val);if(x.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var U=Me(b,this.clonePosition());p={style:x,styleLocation:U}}var R=this.tryParseArgumentClose(u);if(R.err)return R;var q=Me(u,this.clonePosition());if(p&&iy(p?.style,"::",0)){var z=MT(p.style.slice(2));if(h==="number"){var _=this.parseNumberSkeletonFromString(z,p.styleLocation);return _.err?_:{val:{type:Ye.number,value:s,location:q,style:_.val},err:null}}else{if(z.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,q);var E=z;this.locale&&(E=bT(z,this.locale));var x={type:Ri.dateTime,pattern:E,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?fT(E):{}},w=h==="date"?Ye.date:Ye.time;return{val:{type:w,value:s,location:q,style:x},err:null}}}return{val:{type:h==="number"?Ye.number:h==="date"?Ye.date:Ye.time,value:s,location:q,style:(c=p?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(we.EXPECT_SELECT_ARGUMENT_OPTIONS,Me(S,ie({},S)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),A=0;if(h!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),H=this.parseIdentifierIfPossible(),A=_.val}var Z=this.tryParsePluralOrSelectOptions(r,h,i,H);if(Z.err)return Z;var R=this.tryParseArgumentClose(u);if(R.err)return R;var W=Me(u,this.clonePosition());return h==="select"?{val:{type:Ye.select,value:s,options:sy(Z.val),location:W},err:null}:{val:{type:Ye.plural,value:s,options:sy(Z.val),offset:A,pluralType:h==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(we.INVALID_ARGUMENT_TYPE,Me(d,m))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Me(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=hT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?yT(s):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,p=u.value,b=u.location;;){if(p.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;b=Me(_,this.clonePosition()),p=this.message.slice(_.offset,this.offset())}else break}if(m.has(p))return this.error(i==="select"?we.DUPLICATE_SELECT_ARGUMENT_SELECTOR:we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);p==="other"&&(d=!0),this.bumpSpace();var U=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Me(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,s);if(R.err)return R;var q=this.tryParseArgumentClose(U);if(q.err)return q;h.push([p,{value:R.val,location:Me(U,this.clonePosition())}]),m.add(p),this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=c.value,b=c.location}return h.length===0?this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR:we.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(we.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:h,err:null}},t.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)c=!0,d=d*10+(h-48),this.bump();else break}var m=Me(u,this.clonePosition());return c?(d*=s,CT(d)?{val:d,err:null}:this.error(i,m)):this.error(r,m)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=k1(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},t.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(iy(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&F1(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},t})();function Kd(t){return t>=97&&t<=122||t>=65&&t<=90}function BT(t){return Kd(t)||t===47}function UT(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function F1(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function jT(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function $d(t){t.forEach(function(r){if(delete r.location,L1(r)||B1(r))for(var i in r.options)delete r.options[i].location,$d(r.options[i].value);else N1(r)&&j1(r.style)||(M1(r)||D1(r))&&Yd(r.style)?delete r.style.location:U1(r)&&$d(r.children)})}function HT(t,r){r===void 0&&(r={}),r=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new LT(t,r).parse();if(i.err){var s=SyntaxError(we[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||$d(i.val),i.val}var er;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var la=(function(t){An(r,t);function r(i,s,u){var c=t.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r})(Error),oy=(function(t){An(r,t);function r(i,s,u,c){return t.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),er.INVALID_VALUE,c)||this}return r})(la),IT=(function(t){An(r,t);function r(i,s,u){return t.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),er.INVALID_VALUE,u)||this}return r})(la),zT=(function(t){An(r,t);function r(i,s){return t.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),er.MISSING_VALUE,s)||this}return r})(la),It;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(It||(It={}));function GT(t){return t.length<2?t:t.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==It.literal||i.type!==It.literal?r.push(i):s.value+=i.value,r},[])}function V1(t){return typeof t=="function"}function Vo(t,r,i,s,u,c,d){if(t.length===1&&ty(t[0]))return[{type:It.literal,value:t[0].value}];for(var h=[],m=0,p=t;m<p.length;m++){var b=p[m];if(ty(b)){h.push({type:It.literal,value:b.value});continue}if(uT(b)){typeof c=="number"&&h.push({type:It.literal,value:i.getNumberFormat(r).format(c)});continue}var _=b.value;if(!(u&&_ in u))throw new zT(_,d);var x=u[_];if(oT(b)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),h.push({type:typeof x=="string"?It.literal:It.object,value:x});continue}if(M1(b)){var U=typeof b.style=="string"?s.date[b.style]:Yd(b.style)?b.style.parsedOptions:void 0;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(x)});continue}if(D1(b)){var U=typeof b.style=="string"?s.time[b.style]:Yd(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(x)});continue}if(N1(b)){var U=typeof b.style=="string"?s.number[b.style]:j1(b.style)?b.style.parsedOptions:void 0;U&&U.scale&&(x=x*(U.scale||1)),h.push({type:It.literal,value:i.getNumberFormat(r,U).format(x)});continue}if(U1(b)){var R=b.children,q=b.value,z=u[q];if(!V1(z))throw new IT(q,"function",d);var E=Vo(R,r,i,s,u,c),w=z(E.map(function(A){return A.value}));Array.isArray(w)||(w=[w]),h.push.apply(h,w.map(function(A){return{type:typeof A=="string"?It.literal:It.object,value:A}}))}if(L1(b)){var S=b.options[x]||b.options.other;if(!S)throw new oy(b.value,x,Object.keys(b.options),d);h.push.apply(h,Vo(S.value,r,i,s,u));continue}if(B1(b)){var S=b.options["=".concat(x)];if(!S){if(!Intl.PluralRules)throw new la(`Intl.PluralRules is not available in this environment.
|
|
66
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,er.MISSING_INTL_API,d);var H=i.getPluralRules(r,{type:b.pluralType}).select(x-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new oy(b.value,x,Object.keys(b.options),d);h.push.apply(h,Vo(S.value,r,i,s,u,x-(b.offset||0)));continue}}return GT(h)}function kT(t,r){return r?ie(ie(ie({},t||{}),r||{}),Object.keys(t).reduce(function(i,s){return i[s]=ie(ie({},t[s]),r[s]||{}),i},{})):t}function qT(t,r){return r?Object.keys(t).reduce(function(i,s){return i[s]=kT(t[s],r[s]),i},ie({},t)):t}function Pf(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function FT(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.number),strategy:$n.variadic}),getDateTimeFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.dateTime),strategy:$n.variadic}),getPluralRules:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.pluralRules),strategy:$n.variadic})}}var P1=(function(){function t(r,i,s,u){i===void 0&&(i=t.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var p=c.formatToParts(m);if(p.length===1)return p[0].value;var b=p.reduce(function(_,x){return!_.length||x.type!==It.literal||typeof _[_.length-1]!="string"?_.push(x.value):_[_.length-1]+=x.value,_},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return Vo(c.ast,c.locales,c.formatters,c.formats,m,void 0,c.message)},this.resolvedOptions=function(){var m;return{locale:((m=c.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=fu(d,["formatters"]);this.ast=t.__parse(r,ie(ie({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=qT(t.formats,s),this.formatters=u&&u.formatters||FT(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=HT,t.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"}}},t})(),za;(function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"})(za||(za={}));var tl=(function(t){An(r,t);function r(i,s,u){var c=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return c=t.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
|
|
68
|
-
`).concat(d?`
|
|
69
|
-
`.concat(d.message,`
|
|
70
|
-
`).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r})(Error),VT=(function(t){An(r,t);function r(i,s){return t.call(this,za.UNSUPPORTED_FORMATTER,i,s)||this}return r})(tl),PT=(function(t){An(r,t);function r(i,s){return t.call(this,za.INVALID_CONFIG,i,s)||this}return r})(tl),uy=(function(t){An(r,t);function r(i,s){return t.call(this,za.MISSING_DATA,i,s)||this}return r})(tl),xn=(function(t){An(r,t);function r(i,s,u){var c=t.call(this,za.FORMAT_ERROR,"".concat(i,`
|
|
71
|
-
Locale: `).concat(s,`
|
|
72
|
-
`),u)||this;return c.locale=s,c}return r})(tl),Yf=(function(t){An(r,t);function r(i,s,u,c){var d=t.call(this,"".concat(i,`
|
|
73
|
-
MessageID: `).concat(u?.id,`
|
|
74
|
-
Default Message: `).concat(u?.defaultMessage,`
|
|
75
|
-
Description: `).concat(u?.description,`
|
|
76
|
-
`),s,c)||this;return d.descriptor=u,d.locale=s,d}return r})(xn),YT=(function(t){An(r,t);function r(i,s){var u=t.call(this,za.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var d;return(d=c.value)!==null&&d!==void 0?d:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r})(tl);function XT(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function Ni(t,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in t?s[u]=t[u]:u in i&&(s[u]=i[u]),s},{})}var ZT=function(t){},QT=function(t){},Y1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ZT,onWarn:QT};function X1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ca(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function KT(t){t===void 0&&(t=X1());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.DateTimeFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Ca(t.dateTime),strategy:$n.variadic}),c=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.NumberFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Ca(t.number),strategy:$n.variadic}),d=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.PluralRules).bind.apply(h,Wn([void 0],m,!1)))},{cache:Ca(t.pluralRules),strategy:$n.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:Kn(function(h,m,p,b){return new P1(h,m,p,ie({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:d}},b||{}))},{cache:Ca(t.message),strategy:$n.variadic}),getRelativeTimeFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(r.bind.apply(r,Wn([void 0],h,!1)))},{cache:Ca(t.relativeTime),strategy:$n.variadic}),getPluralRules:d,getListFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,Wn([void 0],h,!1)))},{cache:Ca(t.list),strategy:$n.variadic}),getDisplayNames:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,Wn([void 0],h,!1)))},{cache:Ca(t.displayNames),strategy:$n.variadic})}}function Sh(t,r,i,s){var u=t&&t[r],c;if(u&&(c=u[i]),c)return c;s(new VT("No ".concat(r," format named: ").concat(i)))}function _o(t,r){return Object.keys(t).reduce(function(i,s){return i[s]=ie({timeZone:r},t[s]),i},{})}function cy(t,r){var i=Object.keys(ie(ie({},t),r));return i.reduce(function(s,u){return s[u]=ie(ie({},t[u]||{}),r[u]||{}),s},{})}function fy(t,r){if(!r)return t;var i=P1.formats;return ie(ie(ie({},i),t),{date:cy(_o(i.date,r),_o(t.date||{},r)),time:cy(_o(i.time,r),_o(t.time||{},r))})}var Wd=function(t,r,i,s,u){var c=t.locale,d=t.formats,h=t.messages,m=t.defaultLocale,p=t.defaultFormats,b=t.fallbackOnEmptyString,_=t.onError,x=t.timeZone,U=t.defaultRichTextElements;i===void 0&&(i={id:""});var R=i.id,q=i.defaultMessage;XT(!!R,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var z=String(R),E=h&&Object.prototype.hasOwnProperty.call(h,z)&&h[z];if(Array.isArray(E)&&E.length===1&&E[0].type===Ye.literal)return E[0].value;if(!s&&E&&typeof E=="string"&&!U)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ie(ie({},U),s||{}),d=fy(d,x),p=fy(p,x),!E){if(b===!1&&E==="")return E;if((!q||c&&c.toLowerCase()!==m.toLowerCase())&&_(new YT(i,c)),q)try{var w=r.getMessageFormat(q,m,p,u);return w.format(s)}catch(S){return _(new Yf('Error formatting default message for: "'.concat(z,'", rendering default message verbatim'),c,i,S)),typeof q=="string"?q:z}return z}try{var w=r.getMessageFormat(E,c,d,ie({formatters:r},u||{}));return w.format(s)}catch(S){_(new Yf('Error formatting message: "'.concat(z,'", using ').concat(q?"default message":"id"," as fallback."),c,i,S))}if(q)try{var w=r.getMessageFormat(q,m,p,u);return w.format(s)}catch(S){_(new Yf('Error formatting the default message for: "'.concat(z,'", rendering message verbatim'),c,i,S))}return typeof E=="string"?E:typeof q=="string"?q:z},$T=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function nl(t,r,i,s){var u=t.locale,c=t.formats,d=t.onError,h=t.timeZone;s===void 0&&(s={});var m=s.format,p=ie(ie({},h&&{timeZone:h}),m&&Sh(c,r,m,d)),b=Ni(s,$T,p);return r==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=ie(ie({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}function WT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"date",r,d).format(h)}catch(m){t.onError(new xn("Error formatting date.",t.locale,m))}return String(h)}function JT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"time",r,d).format(h)}catch(m){t.onError(new xn("Error formatting time.",t.locale,m))}return String(h)}function eA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,p=typeof c=="string"?new Date(c||0):c;try{return nl(t,"dateTimeRange",r,h).formatRange(m,p)}catch(b){t.onError(new xn("Error formatting date time range.",t.locale,b))}return String(m)}function tA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"date",r,d).formatToParts(h)}catch(m){t.onError(new xn("Error formatting date.",t.locale,m))}return[]}function nA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"time",r,d).formatToParts(h)}catch(m){t.onError(new xn("Error formatting time.",t.locale,m))}return[]}var rA=["style","type","fallback","languageDisplay"];function aA(t,r,i,s){var u=t.locale,c=t.onError,d=Intl.DisplayNames;d||c(new la(`Intl.DisplayNames is not available in this environment.
|
|
77
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,er.MISSING_INTL_API));var h=Ni(s,rA);try{return r(u,h).of(i)}catch(m){c(new xn("Error formatting display name.",u,m))}}var iA=["type","style"],dy=Date.now();function sA(t){return"".concat(dy,"_").concat(t,"_").concat(dy)}function lA(t,r,i,s){s===void 0&&(s={});var u=Z1(t,r,i,s).reduce(function(c,d){var h=d.value;return typeof h!="string"?c.push(h):typeof c[c.length-1]=="string"?c[c.length-1]+=h:c.push(h),c},[]);return u.length===1?u[0]:u.length===0?"":u}function Z1(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||c(new la(`Intl.ListFormat is not available in this environment.
|
|
79
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,er.MISSING_INTL_API));var h=Ni(s,iA);try{var m={},p=i.map(function(b,_){if(typeof b=="object"){var x=sA(_);return m[x]=b,x}return String(b)});return r(u,h).formatToParts(p).map(function(b){return b.type==="literal"?b:ie(ie({},b),{value:m[b.value]||b.value})})}catch(b){c(new xn("Error formatting list.",u,b))}return i}var oA=["type"];function uA(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={}),Intl.PluralRules||c(new la(`Intl.PluralRules is not available in this environment.
|
|
81
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
-
`,er.MISSING_INTL_API));var d=Ni(s,oA);try{return r(u,d).select(i)}catch(h){c(new xn("Error formatting plural.",u,h))}return"other"}var cA=["numeric","style"];function fA(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Sh(u,"relative",d,c)||{},m=Ni(i,cA,h);return r(s,m)}function dA(t,r,i,s,u){u===void 0&&(u={}),s||(s="second");var c=Intl.RelativeTimeFormat;c||t.onError(new la(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,er.MISSING_INTL_API));try{return fA(t,r,u).format(i,s)}catch(d){t.onError(new xn("Error formatting relative time.",t.locale,d))}return String(i)}var hA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Q1(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=d&&Sh(u,"number",d,c)||{},m=Ni(i,hA,h);return r(s,m)}function mA(t,r,i,s){s===void 0&&(s={});try{return Q1(t,r,s).format(i)}catch(u){t.onError(new xn("Error formatting number.",t.locale,u))}return String(i)}function pA(t,r,i,s){s===void 0&&(s={});try{return Q1(t,r,s).formatToParts(i)}catch(u){t.onError(new xn("Error formatting number.",t.locale,u))}return[]}function gA(t){var r=t?t[Object.keys(t)[0]]:void 0;return typeof r=="string"}function yA(t){t.onWarn&&t.defaultRichTextElements&&gA(t.messages||{})&&t.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
85
|
-
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
86
|
-
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function bA(t,r){var i=KT(r),s=ie(ie({},Y1),t),u=s.locale,c=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new uy('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new uy('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new PT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),yA(s),ie(ie({},s),{formatters:i,formatNumber:mA.bind(null,s,i.getNumberFormat),formatNumberToParts:pA.bind(null,s,i.getNumberFormat),formatRelativeTime:dA.bind(null,s,i.getRelativeTimeFormat),formatDate:WT.bind(null,s,i.getDateTimeFormat),formatDateToParts:tA.bind(null,s,i.getDateTimeFormat),formatTime:JT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:eA.bind(null,s,i.getDateTimeFormat),formatTimeToParts:nA.bind(null,s,i.getDateTimeFormat),formatPlural:uA.bind(null,s,i.getPluralRules),formatMessage:Wd.bind(null,s,i),$t:Wd.bind(null,s,i),formatList:lA.bind(null,s,i.getListFormat),formatListToParts:Z1.bind(null,s,i.getListFormat),formatDisplayName:aA.bind(null,s,i.getDisplayNames)})}function vA(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function K1(t){vA(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var $1=ie(ie({},Y1),{textComponent:B.Fragment}),_A={key:42},EA=function(t){return B.isValidElement(t)?B.createElement(B.Fragment,_A,t):t},SA=function(t){var r;return(r=B.Children.map(t,EA))!==null&&r!==void 0?r:[]};function TA(t){return function(r){return t(B.Children.toArray(r))}}function AA(t,r){if(t===r)return!0;if(!t||!r)return!1;var i=Object.keys(t),s=Object.keys(r),u=i.length;if(s.length!==u)return!1;for(var c=0;c<u;c++){var d=i[c];if(t[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var Xf={exports:{}},Be={};/** @license React v16.13.1
|
|
87
|
-
* react-is.production.min.js
|
|
88
|
-
*
|
|
89
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the MIT license found in the
|
|
92
|
-
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var hy;function xA(){if(hy)return Be;hy=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,b=t?Symbol.for("react.forward_ref"):60112,_=t?Symbol.for("react.suspense"):60113,x=t?Symbol.for("react.suspense_list"):60120,U=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,q=t?Symbol.for("react.block"):60121,z=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function S(A){if(typeof A=="object"&&A!==null){var Z=A.$$typeof;switch(Z){case r:switch(A=A.type,A){case m:case p:case s:case c:case u:case _:return A;default:switch(A=A&&A.$$typeof,A){case h:case b:case R:case U:case d:return A;default:return Z}}case i:return Z}}}function H(A){return S(A)===p}return Be.AsyncMode=m,Be.ConcurrentMode=p,Be.ContextConsumer=h,Be.ContextProvider=d,Be.Element=r,Be.ForwardRef=b,Be.Fragment=s,Be.Lazy=R,Be.Memo=U,Be.Portal=i,Be.Profiler=c,Be.StrictMode=u,Be.Suspense=_,Be.isAsyncMode=function(A){return H(A)||S(A)===m},Be.isConcurrentMode=H,Be.isContextConsumer=function(A){return S(A)===h},Be.isContextProvider=function(A){return S(A)===d},Be.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===r},Be.isForwardRef=function(A){return S(A)===b},Be.isFragment=function(A){return S(A)===s},Be.isLazy=function(A){return S(A)===R},Be.isMemo=function(A){return S(A)===U},Be.isPortal=function(A){return S(A)===i},Be.isProfiler=function(A){return S(A)===c},Be.isStrictMode=function(A){return S(A)===u},Be.isSuspense=function(A){return S(A)===_},Be.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===s||A===p||A===c||A===u||A===_||A===x||typeof A=="object"&&A!==null&&(A.$$typeof===R||A.$$typeof===U||A.$$typeof===d||A.$$typeof===h||A.$$typeof===b||A.$$typeof===z||A.$$typeof===E||A.$$typeof===w||A.$$typeof===q)},Be.typeOf=S,Be}var my;function OA(){return my||(my=1,Xf.exports=xA()),Xf.exports}var Zf,py;function RA(){if(py)return Zf;py=1;var t=OA(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[t.ForwardRef]=s,c[t.Memo]=u;function d(R){return t.isMemo(R)?u:c[R.$$typeof]||r}var h=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,x=Object.prototype;function U(R,q,z){if(typeof q!="string"){if(x){var E=_(q);E&&E!==x&&U(R,E,z)}var w=m(q);p&&(w=w.concat(p(q)));for(var S=d(R),H=d(q),A=0;A<w.length;++A){var Z=w[A];if(!i[Z]&&!(z&&z[Z])&&!(H&&H[Z])&&!(S&&S[Z])){var W=b(q,Z);try{h(R,Z,W)}catch{}}}}return R}return Zf=U,Zf}RA();var Th=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Th.Consumer;var wA=Th.Provider,CA=wA,NA=Th;function du(){var t=B.useContext(NA);return K1(t),t}var Jd;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(Jd||(Jd={}));var eh;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(eh||(eh={}));function W1(t){var r=function(i){var s=du(),u=i.value,c=i.children,d=fu(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=t==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return c(m)};return r.displayName=eh[t],r}function rl(t){var r=function(i){var s=du(),u=i.value,c=i.children,d=fu(i,["value","children"]),h=s[t](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||B.Fragment;return B.createElement(m,null,h)};return r.displayName=Jd[t],r}function J1(t){return t&&Object.keys(t).reduce(function(r,i){var s=t[i];return r[i]=V1(s)?TA(s):s,r},{})}var gy=function(t,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=J1(s),h=Wd.apply(void 0,Wn([t,r,i,d],u,!1));return Array.isArray(h)?SA(h):h},yy=function(t,r){var i=t.defaultRichTextElements,s=fu(t,["defaultRichTextElements"]),u=J1(i),c=bA(ie(ie(ie({},$1),s),{defaultRichTextElements:u}),r),d={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return ie(ie({},c),{formatMessage:gy.bind(null,d,c.formatters),$t:gy.bind(null,d,c.formatters)})};function Qf(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}var MA=(function(t){An(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i.cache=X1(),i.state={cache:i.cache,intl:yy(Qf(i.props),i.cache),prevConfig:Qf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Qf(i);return AA(u,d)?null:{intl:yy(d,c),prevConfig:d}},r.prototype.render=function(){return K1(this.state.intl),B.createElement(CA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=$1,r})(B.PureComponent);rl("formatDate");rl("formatTime");rl("formatNumber");rl("formatList");rl("formatDisplayName");W1("formatDate");W1("formatTime");const DA="_app_1rj0t_1",LA={app:DA},Cr=QS,lt=WS,ev="%[a-f0-9]{2}",by=new RegExp("("+ev+")|([^%]+?)","gi"),vy=new RegExp("("+ev+")+","gi");function th(t,r){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;r=r||1;const i=t.slice(0,r),s=t.slice(r);return Array.prototype.concat.call([],th(i),th(s))}function BA(t){try{return decodeURIComponent(t)}catch{let r=t.match(by)||[];for(let i=1;i<r.length;i++)t=th(r,i).join(""),r=t.match(by)||[];return t}}function UA(t){const r={"%FE%FF":"��","%FF%FE":"��"};let i=vy.exec(t);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=BA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=vy.exec(t)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)t=t.replace(new RegExp(u,"g"),r[u]);return t}function jA(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return UA(t)}}function HA(t,r){const i={};if(Array.isArray(r))for(const s of r){const u=Object.getOwnPropertyDescriptor(t,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(t)){const u=Object.getOwnPropertyDescriptor(t,s);if(u.enumerable){const c=t[s];r(s,c,t)&&Object.defineProperty(i,s,u)}}return i}function tv(t,r){if(!(typeof t=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||r==="")return[];const i=t.indexOf(r);return i===-1?[]:[t.slice(0,i),t.slice(i+r.length)]}const IA=t=>t==null,zA=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),nh=Symbol("encodeFragmentIdentifier");function GA(t){switch(t.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[",u,"]"].join("")]:[...i,[ft(r,t),"[",ft(u,t),"]=",ft(s,t)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[]"].join("")]:[...i,[ft(r,t),"[]=",ft(s,t)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),":list="].join("")]:[...i,[ft(r,t),":list=",ft(s,t)].join("")];case"comma":case"separator":case"bracket-separator":{const r=t.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||t.skipNull&&u===null||t.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[ft(i,t),r,ft(u,t)].join("")]:[[s,ft(u,t)].join(t.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,ft(r,t)]:[...i,[ft(r,t),"=",ft(s,t)].join("")]}}function kA(t){let r;switch(t.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const d=typeof s=="string"&&s.includes(t.arrayFormatSeparator)?s.split(t.arrayFormatSeparator).map(h=>Ha(h,t)):s===null?s:Ha(s,t);u[i]=d};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Ha(s,t);return}const d=s===null?[]:Ha(s,t).split(t.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function nv(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ft(t,r){return r.encode?r.strict?zA(t):encodeURIComponent(t):t}function Ha(t,r){return r.decode?jA(t):t}function rv(t){return Array.isArray(t)?t.sort():typeof t=="object"?rv(Object.keys(t)).sort((r,i)=>Number(r)-Number(i)).map(r=>t[r]):t}function av(t){const r=t.indexOf("#");return r!==-1&&(t=t.slice(0,r)),t}function qA(t){let r="";const i=t.indexOf("#");return i!==-1&&(r=t.slice(i)),r}function _y(t,r,i){return i==="string"&&typeof t=="string"?t:typeof i=="function"&&typeof t=="string"?i(t):i==="boolean"&&t===null?!0:i==="boolean"&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":i==="boolean"&&t!==null&&(t.toLowerCase()==="1"||t.toLowerCase()==="0")?t.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof t=="string"?[t]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?[Number(t)]:i==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):r.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function Ah(t){t=av(t);const r=t.indexOf("?");return r===-1?"":t.slice(r+1)}function xh(t,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},nv(r.arrayFormatSeparator);const i=kA(r),s=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return s;for(const u of t.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[d,h]=tv(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Ha(h,r),i(Ha(d,r),h,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[d,h]of Object.entries(c)){const m=r.types[u],p=typeof m=="function"?m:m?m.replace("[]",""):void 0;c[d]=_y(h,r,p)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=_y(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const d=s[c];return u[c]=d&&typeof d=="object"&&!Array.isArray(d)?rv(d):d,u},Object.create(null))}function iv(t,r){if(!t)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},nv(r.arrayFormatSeparator);const i=d=>r.skipNull&&IA(t[d])||r.skipEmptyString&&t[d]==="",s=GA(r),u={};for(const[d,h]of Object.entries(t))i(d)||(u[d]=h);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(d=>{let h=t[d];if(r.replacer&&(h=r.replacer(d,h),h===void 0)||h===void 0)return"";if(h===null)return ft(d,r);if(Array.isArray(h)){if(h.length===0&&r.arrayFormat==="bracket-separator")return ft(d,r)+"[]";let m=h;return r.replacer&&(m=h.map((p,b)=>r.replacer(`${d}[${b}]`,p)).filter(p=>p!==void 0)),m.reduce(s(d),[]).join("&")}return ft(d,r)+"="+ft(h,r)}).filter(d=>d.length>0).join("&")}function sv(t,r){r={decode:!0,...r};let[i,s]=tv(t,"#");return i===void 0&&(i=t),{url:i?.split("?")?.[0]??"",query:xh(Ah(t),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Ha(s,r)}:{}}}function lv(t,r){r={encode:!0,strict:!0,[nh]:!0,...r};const i=av(t.url).split("?")[0]||"",s=Ah(t.url),u={...xh(s,{sort:!1,...r}),...t.query};let c=iv(u,r);c&&=`?${c}`;let d=qA(t.url);if(typeof t.fragmentIdentifier=="string"){const h=new URL(i);h.hash=t.fragmentIdentifier,d=r[nh]?h.hash:`#${t.fragmentIdentifier}`}return`${i}${c}${d}`}function ov(t,r,i){i={parseFragmentIdentifier:!0,[nh]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=sv(t,i);return lv({url:s,query:HA(u,r),fragmentIdentifier:c},i)}function FA(t,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return ov(t,s,i)}const hu=Object.freeze(Object.defineProperty({__proto__:null,exclude:FA,extract:Ah,parse:xh,parseUrl:sv,pick:ov,stringify:iv,stringifyUrl:lv},Symbol.toStringTag,{value:"Module"}));var Un={},jn={},Ie={},Eo={},pe={},Ey;function fn(){return Ey||(Ey=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.GUEST_LOCALE_CHANGED=pe.DRAWER_CLOSE=pe.DRAWER_OPEN=pe.CONVERSATION_RATING_FROM_GUEST=pe.TRANSCRIPT_ITEM_GUEST_REACTION=pe.TRANSCRIPT_MAIL_REQUEST=pe.INBOX_CONNECT_REQUEST=pe.RESTART_CHAT_REQUEST=pe.EVENT_TO_GUEST=pe.NLU_REQUEST_EVENT=pe.EXPERTS_DISCONNECTED=pe.EXPERTS_DISCONNECT_REQUEST=pe.EXPERTS_CONNECTED=pe.EXPERTS_CONNECT_REQUEST=pe.MESSAGE_TO_GUEST=pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=pe.MESSAGE_FROM_GUEST=pe.GUEST_FEEDBACK_RESPONSE=pe.GUEST_DISCONNECTED=pe.GUEST_CONNECTED=pe.TYPING_OFF=pe.TYPING_ON=void 0,pe.TYPING_ON="core.typing.on",pe.TYPING_OFF="core.typing.off",pe.GUEST_CONNECTED="core.guest.connected",pe.GUEST_DISCONNECTED="core.guest.disconnected",pe.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",pe.MESSAGE_FROM_GUEST="core.message.from.guest",pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",pe.MESSAGE_TO_GUEST="core.message.to.guest",pe.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",pe.EXPERTS_CONNECTED="core.experts.connected",pe.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",pe.EXPERTS_DISCONNECTED="core.experts.disconnected",pe.NLU_REQUEST_EVENT="core.nlu.request.event",pe.EVENT_TO_GUEST="core.event.to.guest",pe.RESTART_CHAT_REQUEST="core.chat.restart.request",pe.INBOX_CONNECT_REQUEST="core.inbox.connect.request",pe.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",pe.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",pe.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",pe.DRAWER_OPEN="core.drawer.open",pe.DRAWER_CLOSE="core.drawer.close",pe.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),pe}var Sy;function VA(){if(Sy)return Eo;Sy=1,Object.defineProperty(Eo,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.DRAWER_CLOSE});return Eo.default=r,Eo}var So={},Ty;function PA(){if(Ty)return So;Ty=1,Object.defineProperty(So,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return So.default=r,So}var To={},Ay;function YA(){if(Ay)return To;Ay=1,Object.defineProperty(To,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_CONNECTED,payload:{sessionId:i}});return To.default=r,To}var Ao={},xy;function XA(){if(xy)return Ao;xy=1,Object.defineProperty(Ao,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_DISCONNECTED,payload:{sessionId:i}});return Ao.default=r,Ao}var xo={},Oy;function ZA(){if(Oy)return xo;Oy=1,Object.defineProperty(xo,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return xo.default=r,xo}var Oo={},Ry;function QA(){if(Ry)return Oo;Ry=1,Object.defineProperty(Oo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Oo.default=r,Oo}var Ro={},We={},wy;function Oh(){if(wy)return We;wy=1,Object.defineProperty(We,"__esModule",{value:!0}),We.getStringRepresentationFromMessage=We.MessageTypeEnum=We.AudioMessage=We.FileMessage=We.ImageMessage=We.VideoMessage=We.MarkdownMessage=We.DetailMessage=We.TextMessage=We.Message=void 0;class t{type;sender;sources;quickReplies;constructor(_,x,U=[],R=[]){this.type=_,this.sender=x,this.sources=U,this.quickReplies=R}addQuickReply(_,x){this.quickReplies.push({label:_,payload:x})}}We.Message=t;class r extends t{text;constructor(_,x,U=[],R=[]){super(m.TEXT,x,U,R),this.text=_}}We.TextMessage=r;class i extends t{title;text;imageUrl;itemUrl;buttons;constructor(_,x){super(m.DETAIL,x),this.title=_,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(_){this.imageUrl=_}setItemUrl(_){this.itemUrl=_}setText(_){this.text=_}addButton(_){this.buttons.push(_)}}We.DetailMessage=i;class s extends t{markdown;constructor(_,x,U=[],R=[]){super(m.MARKDOWN,x,U,R),this.markdown=_}}We.MarkdownMessage=s;class u extends t{url;constructor(_,x){super(m.VIDEO,x),this.url=_}}We.VideoMessage=u;class c extends t{url;constructor(_,x){super(m.IMAGE,x),this.url=_}}We.ImageMessage=c;class d extends t{url;constructor(_,x){super(m.FILE,x),this.url=_}}We.FileMessage=d;class h extends t{url;constructor(_,x){super(m.AUDIO,x),this.url=_}}We.AudioMessage=h;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||(We.MessageTypeEnum=m={}));const p=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return We.getStringRepresentationFromMessage=p,We}var sn={},Cy;function Rh(){if(Cy)return sn;Cy=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.User=void 0;class t{type;id;name;avatar;constructor(d,h,m,p){this.type=d,this.id=h,this.name=m,this.avatar=p}}sn.User=t;class r extends t{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=r;class i extends t{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class s extends t{constructor(d,h,m){super(u.PERSON,d,h,m)}}sn.PersonUser=s;var u;return(function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"})(u||(sn.UserType=u={})),sn}var Ny;function KA(){if(Ny)return Ro;Ny=1,Object.defineProperty(Ro,"__esModule",{value:!0});const t=Oh(),r=Rh(),i=fn(),s=u=>{const c=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Ro.default=s,Ro}var wo={},My;function $A(){if(My)return wo;My=1,Object.defineProperty(wo,"__esModule",{value:!0});const t=Oh(),r=Rh(),i=fn(),s=(u,c={})=>{const d=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:c}};return wo.default=s,wo}var Co={},Dy;function WA(){if(Dy)return Co;Dy=1,Object.defineProperty(Co,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.NLU_REQUEST_EVENT,event:i});return Co.default=r,Co}var No={},Ly;function JA(){if(Ly)return No;Ly=1,Object.defineProperty(No,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.RESTART_CHAT_REQUEST});return No.default=r,No}var Mo={},By;function ex(){if(By)return Mo;By=1,Object.defineProperty(Mo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.MESSAGE_TO_GUEST,message:i});return Mo.default=r,Mo}var Do={},Uy;function tx(){if(Uy)return Do;Uy=1,Object.defineProperty(Do,"__esModule",{value:!0});const t=fn(),r=(i,s,u=null,c=null)=>({type:t.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:c}});return Do.default=r,Do}var jy;function nx(){if(jy)return Ie;jy=1;var t=Ie&&Ie.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.transcriptItemGuestReaction=Ie.sendMessageToGuest=Ie.restartChatRequest=Ie.requestNLUEvent=Ie.receiveTextMessageWithoutAnalysisFromGuest=Ie.receiveTextMessageFromGuest=Ie.openDrawer=Ie.guestLocaleChanged=Ie.guestDisconnected=Ie.guestConnected=Ie.feedbackFromGuestResponse=Ie.closeDrawer=void 0;const r=t(VA());Ie.closeDrawer=r.default;const i=t(PA());Ie.feedbackFromGuestResponse=i.default;const s=t(YA());Ie.guestConnected=s.default;const u=t(XA());Ie.guestDisconnected=u.default;const c=t(ZA());Ie.guestLocaleChanged=c.default;const d=t(QA());Ie.openDrawer=d.default;const h=t(KA());Ie.receiveTextMessageFromGuest=h.default;const m=t($A());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const p=t(WA());Ie.requestNLUEvent=p.default;const b=t(JA());Ie.restartChatRequest=b.default;const _=t(ex());Ie.sendMessageToGuest=_.default;const x=t(tx());return Ie.transcriptItemGuestReaction=x.default,Ie}var Kf={},Hy;function rx(){return Hy||(Hy=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var Iy;function ax(){return Iy||(Iy=1,(function(t){var r=jn&&jn.__createBinding||(Object.create?(function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}):(function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]})),i=jn&&jn.__setModuleDefault||(Object.create?(function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}):function(c,d){c.default=d}),s=jn&&jn.__importStar||(function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}})(),u=jn&&jn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionTypes=t.Actions=void 0,t.Actions=s(nx()),t.ActionTypes=s(fn()),u(rx(),t)})(jn)),jn}var ln={},$f={},zy;function ix(){return zy||(zy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var Us={},Gy;function sx(){if(Gy)return Us;Gy=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.NullableKnowledgeBaseAdapter=void 0;class t{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Us.NullableKnowledgeBaseAdapter=t,Us}var ky;function lx(){if(ky)return ln;ky=1;var t=ln&&ln.__createBinding||(Object.create?(function(u,c,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(c,d);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(u,h,m)}):(function(u,c,d,h){h===void 0&&(h=d),u[h]=c[d]})),r=ln&&ln.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),i=ln&&ln.__importStar||(function(){var u=function(c){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(c)};return function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var h=u(c),m=0;m<h.length;m++)h[m]!=="default"&&t(d,c,h[m]);return r(d,c),d}})();Object.defineProperty(ln,"__esModule",{value:!0}),ln.NullableCmsAdapter=ln.KnowledgeBase=void 0,ln.KnowledgeBase=i(ix());const s=sx();return ln.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},ln}var Na={},Wf={},qy;function ox(){return qy||(qy=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Jf={},Fy;function ux(){return Fy||(Fy=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var ed={},Vy;function cx(){return Vy||(Vy=1,Object.defineProperty(ed,"__esModule",{value:!0})),ed}var td={},Py;function fx(){return Py||(Py=1,Object.defineProperty(td,"__esModule",{value:!0})),td}var js={},Yy;function dx(){if(Yy)return js;Yy=1,Object.defineProperty(js,"__esModule",{value:!0}),js.checkMiddlewareCondition=void 0;const t=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,d)=>await c?await d(i,s):!1,Promise.resolve(!0));return js.checkMiddlewareCondition=t,js}var nd={},Xy;function hx(){return Xy||(Xy=1,Object.defineProperty(nd,"__esModule",{value:!0})),nd}var rd={},Zy;function mx(){return Zy||(Zy=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var ad={},Qy;function px(){return Qy||(Qy=1,Object.defineProperty(ad,"__esModule",{value:!0})),ad}var Ky;function gx(){return Ky||(Ky=1,(function(t){var r=Na&&Na.__createBinding||(Object.create?(function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}):(function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]})),i=Na&&Na.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ox(),t),i(ux(),t),i(cx(),t),i(fx(),t),i(dx(),t),i(hx(),t),i(mx(),t),i(px(),t)})(Na)),Na}var Ma={},Hn={},$y;function yx(){if($y)return Hn;$y=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.ButtonTypeEnum=Hn.PostbackButton=Hn.UrlButton=Hn.Button=void 0;class t{title;type;constructor(c,d){this.title=c,this.type=d}}Hn.Button=t;class r extends t{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Hn.UrlButton=r;class i extends t{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Hn.PostbackButton=i;var s;return(function(u){u.WEB_URL="web_url",u.POSTBACK="postback"})(s||(Hn.ButtonTypeEnum=s={})),Hn}var id={},Wy;function bx(){return Wy||(Wy=1,Object.defineProperty(id,"__esModule",{value:!0})),id}var Hs={},Jy;function vx(){if(Jy)return Hs;Jy=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.SatisfactionEnum=void 0;var t;return(function(r){r.GOOD="GOOD",r.BAD="BAD"})(t||(Hs.SatisfactionEnum=t={})),Hs}var eb;function tb(){return eb||(eb=1,(function(t){var r=Ma&&Ma.__createBinding||(Object.create?(function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}):(function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]})),i=Ma&&Ma.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(yx(),t),i(bx(),t),i(vx(),t),i(Oh(),t),i(Rh(),t)})(Ma)),Ma}var nb;function _x(){return nb||(nb=1,(function(t){var r=Un&&Un.__createBinding||(Object.create?(function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}):(function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]})),i=Un&&Un.__setModuleDefault||(Object.create?(function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}):function(c,d){c.default=d}),s=Un&&Un.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=Un&&Un.__importStar||(function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}})();Object.defineProperty(t,"__esModule",{value:!0}),t.Model=t.CMS=void 0,s(ax(),t),t.CMS=u(lx()),s(gx(),t),t.Model=u(tb()),s(tb(),t)})(Un)),Un}var Te=_x();const uv=t=>r=>(t.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&r(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),r(t.payload)),cv=t=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>t.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?uv({...u,label:t}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(t))))},wh="MESSAGE_TO_PARENT_PAGE",Ch="RESTORE_PREVIOUS_CHAT_MESSAGES",Nh="AUDIO_MESSAGE_FROM_USER",Mh="RECEIVE_SPEECH_TRANSCRIPTION",Dh="ENABLE_CONVERSATION_RATING",fv="LOAD_SOURCE_INFOS_RESPONSE",Lh="LOAD_SOURCE_INFOS_ERROR",Bh="LOAD_SOURCE_INFOS_REQUEST",Uh="CLOSE_SOURCE_INFOS",Ex="webclient.get.started",dv="webclient.window.expand",hv="webclient.window.close",mv="webclient.transcript.pdf.download",Sx=[wh,Ch,Nh,Mh,Dh,Bh,Uh],Tx=t=>({type:Nh,buffer:t}),Ax=t=>({type:Mh,transcription:t}),xx=t=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),Ox=()=>({type:mv}),Rx=({rating:t})=>({type:Dh,payload:{rating:t}}),wx=(t,r)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:r}}),pv=t=>Te.Actions.requestNLUEvent(t),Cx=t=>({type:Ch,messages:t}),Nx=t=>{switch(t.type){case Te.ButtonTypeEnum.WEB_URL:return yv(t.url);case Te.ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},gv=t=>yv(t),yv=t=>({type:wh,message:{type:"webclient.change.url",url:t}});/*! js-cookie v3.0.5 | MIT */function Lo(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)t[s]=i[s]}return t}var Mx={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function rh(t,r){function i(u,c,d){if(!(typeof document>"u")){d=Lo({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+t.write(c,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],d={},h=0;h<c.length;h++){var m=c[h].split("="),p=m.slice(1).join("=");try{var b=decodeURIComponent(m[0]);if(d[b]=t.read(p,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Lo({},c,{expires:-1}))},withAttributes:function(u){return rh(this.converter,Lo({},this.attributes,u))},withConverter:function(u){return rh(Lo({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}var Bo=rh(Mx,{path:"/"});const wt=[];for(let t=0;t<256;++t)wt.push((t+256).toString(16).slice(1));function Dx(t,r=0){return(wt[t[r+0]]+wt[t[r+1]]+wt[t[r+2]]+wt[t[r+3]]+"-"+wt[t[r+4]]+wt[t[r+5]]+"-"+wt[t[r+6]]+wt[t[r+7]]+"-"+wt[t[r+8]]+wt[t[r+9]]+"-"+wt[t[r+10]]+wt[t[r+11]]+wt[t[r+12]]+wt[t[r+13]]+wt[t[r+14]]+wt[t[r+15]]).toLowerCase()}let sd;const Lx=new Uint8Array(16);function Bx(){if(!sd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sd=crypto.getRandomValues.bind(crypto)}return sd(Lx)}const Ux=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),rb={randomUUID:Ux};function jx(t,r,i){t=t||{};const s=t.random??t.rng?.()??Bx();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Dx(s)}function Jo(t,r,i){return rb.randomUUID&&!t?rb.randomUUID():jx(t)}const jh=()=>Hx(window.location.pathname),Hx=t=>{const r=t.split("/"),i=t.endsWith("/");return r[r.length-(i?2:1)]};function Ct(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Ix=typeof Symbol=="function"&&Symbol.observable||"@@observable",ab=Ix,ld=()=>Math.random().toString(36).substring(7).split("").join("."),zx={INIT:`@@redux/INIT${ld()}`,REPLACE:`@@redux/REPLACE${ld()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ld()}`},eu=zx;function Hh(t){if(typeof t!="object"||t===null)return!1;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r||Object.getPrototypeOf(t)===null}function bv(t,r,i){if(typeof t!="function")throw new Error(Ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Ct(1));return i(bv)(t,r)}let s=t,u=r,c=new Map,d=c,h=0,m=!1;function p(){d===c&&(d=new Map,c.forEach((z,E)=>{d.set(E,z)}))}function b(){if(m)throw new Error(Ct(3));return u}function _(z){if(typeof z!="function")throw new Error(Ct(4));if(m)throw new Error(Ct(5));let E=!0;p();const w=h++;return d.set(w,z),function(){if(E){if(m)throw new Error(Ct(6));E=!1,p(),d.delete(w),c=null}}}function x(z){if(!Hh(z))throw new Error(Ct(7));if(typeof z.type>"u")throw new Error(Ct(8));if(typeof z.type!="string")throw new Error(Ct(17));if(m)throw new Error(Ct(9));try{m=!0,u=s(u,z)}finally{m=!1}return(c=d).forEach(w=>{w()}),z}function U(z){if(typeof z!="function")throw new Error(Ct(10));s=z,x({type:eu.REPLACE})}function R(){const z=_;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Ct(11));function w(){const H=E;H.next&&H.next(b())}return w(),{unsubscribe:z(w)}},[ab](){return this}}}return x({type:eu.INIT}),{dispatch:x,subscribe:_,getState:b,replaceReducer:U,[ab]:R}}function Gx(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:eu.INIT})>"u")throw new Error(Ct(12));if(typeof i(void 0,{type:eu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ct(13))})}function vv(t){const r=Object.keys(t),i={};for(let c=0;c<r.length;c++){const d=r[c];typeof t[d]=="function"&&(i[d]=t[d])}const s=Object.keys(i);let u;try{Gx(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const p={};for(let b=0;b<s.length;b++){const _=s[b],x=i[_],U=d[_],R=x(U,h);if(typeof R>"u")throw h&&h.type,new Error(Ct(14));p[_]=R,m=m||R!==U}return m=m||s.length!==Object.keys(d).length,m?p:d}}function tu(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...s)=>r(i(...s)))}function kx(...t){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(Ct(15))};const d={getState:u.getState,dispatch:(m,...p)=>c(m,...p)},h=t.map(m=>m(d));return c=tu(...h)(u.dispatch),{...u,dispatch:c}}}function qx(t){return Hh(t)&&"type"in t&&typeof t.type=="string"}var _v=Symbol.for("immer-nothing"),ib=Symbol.for("immer-draftable"),un=Symbol.for("immer-state");function kn(t,...r){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var wi=Object.getPrototypeOf;function Ga(t){return!!t&&!!t[un]}function wr(t){return t?Ev(t)||Array.isArray(t)||!!t[ib]||!!t.constructor?.[ib]||pu(t)||gu(t):!1}var Fx=Object.prototype.constructor.toString();function Ev(t){if(!t||typeof t!="object")return!1;const r=wi(t);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===Fx}function nu(t,r){mu(t)===0?Reflect.ownKeys(t).forEach(i=>{r(i,t[i],t)}):t.forEach((i,s)=>r(s,i,t))}function mu(t){const r=t[un];return r?r.type_:Array.isArray(t)?1:pu(t)?2:gu(t)?3:0}function ah(t,r){return mu(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Sv(t,r,i){const s=mu(t);s===2?t.set(r,i):s===3?t.add(i):t[r]=i}function Vx(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function pu(t){return t instanceof Map}function gu(t){return t instanceof Set}function Ua(t){return t.copy_||t.base_}function ih(t,r){if(pu(t))return new Map(t);if(gu(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const i=Ev(t);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(t);delete s[un];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const d=u[c],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:t[d]})}return Object.create(wi(t),s)}else{const s=wi(t);if(s!==null&&i)return{...t};const u=Object.create(s);return Object.assign(u,t)}}function Ih(t,r=!1){return yu(t)||Ga(t)||!wr(t)||(mu(t)>1&&(t.set=t.add=t.clear=t.delete=Px),Object.freeze(t),r&&Object.entries(t).forEach(([i,s])=>Ih(s,!0))),t}function Px(){kn(2)}function yu(t){return Object.isFrozen(t)}var Yx={};function ka(t){const r=Yx[t];return r||kn(0,t),r}var Ws;function Tv(){return Ws}function Xx(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sb(t,r){r&&(ka("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function sh(t){lh(t),t.drafts_.forEach(Zx),t.drafts_=null}function lh(t){t===Ws&&(Ws=t.parent_)}function lb(t){return Ws=Xx(Ws,t)}function Zx(t){const r=t[un];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function ob(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[un].modified_&&(sh(r),kn(4)),wr(t)&&(t=ru(r,t),r.parent_||au(r,t)),r.patches_&&ka("Patches").generateReplacementPatches_(i[un].base_,t,r.patches_,r.inversePatches_)):t=ru(r,i,[]),sh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==_v?t:void 0}function ru(t,r,i){if(yu(r))return r;const s=r[un];if(!s)return nu(r,(u,c)=>ub(t,s,r,u,c,i)),r;if(s.scope_!==t)return r;if(!s.modified_)return au(t,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,d=!1;s.type_===3&&(c=new Set(u),u.clear(),d=!0),nu(c,(h,m)=>ub(t,s,u,h,m,i,d)),au(t,u,!1),i&&t.patches_&&ka("Patches").generatePatches_(s,i,t.patches_,t.inversePatches_)}return s.copy_}function ub(t,r,i,s,u,c,d){if(Ga(u)){const h=c&&r&&r.type_!==3&&!ah(r.assigned_,s)?c.concat(s):void 0,m=ru(t,u,h);if(Sv(i,s,m),Ga(m))t.canAutoFreeze_=!1;else return}else d&&i.add(u);if(wr(u)&&!yu(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;ru(t,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&au(t,u)}}function au(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ih(r,i)}function Qx(t,r){const i=Array.isArray(t),s={type_:i?1:0,scope_:r?r.scope_:Tv(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=zh;i&&(u=[s],c=Js);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var zh={get(t,r){if(r===un)return t;const i=Ua(t);if(!ah(i,r))return Kx(t,i,r);const s=i[r];return t.finalized_||!wr(s)?s:s===od(t.base_,r)?(ud(t),t.copy_[r]=uh(s,t)):s},has(t,r){return r in Ua(t)},ownKeys(t){return Reflect.ownKeys(Ua(t))},set(t,r,i){const s=Av(Ua(t),r);if(s?.set)return s.set.call(t.draft_,i),!0;if(!t.modified_){const u=od(Ua(t),r),c=u?.[un];if(c&&c.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(Vx(i,u)&&(i!==void 0||ah(t.base_,r)))return!0;ud(t),oh(t)}return t.copy_[r]===i&&(i!==void 0||r in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[r])||(t.copy_[r]=i,t.assigned_[r]=!0),!0},deleteProperty(t,r){return od(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,ud(t),oh(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=Ua(t),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){kn(11)},getPrototypeOf(t){return wi(t.base_)},setPrototypeOf(){kn(12)}},Js={};nu(zh,(t,r)=>{Js[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Js.deleteProperty=function(t,r){return Js.set.call(this,t,r,void 0)};Js.set=function(t,r,i){return zh.set.call(this,t[0],r,i,t[0])};function od(t,r){const i=t[un];return(i?Ua(i):t)[r]}function Kx(t,r,i){const s=Av(r,i);return s?"value"in s?s.value:s.get?.call(t.draft_):void 0}function Av(t,r){if(!(r in t))return;let i=wi(t);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=wi(i)}}function oh(t){t.modified_||(t.modified_=!0,t.parent_&&oh(t.parent_))}function ud(t){t.copy_||(t.copy_=ih(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var $x=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const d=this;return function(m=c,...p){return d.produce(m,b=>i.call(this,b,...p))}}typeof i!="function"&&kn(6),s!==void 0&&typeof s!="function"&&kn(7);let u;if(wr(r)){const c=lb(this),d=uh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?sh(c):lh(c)}return sb(c,s),ob(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===_v&&(u=void 0),this.autoFreeze_&&Ih(u,!0),s){const c=[],d=[];ka("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else kn(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(d,...h)=>this.produceWithPatches(d,m=>r(m,...h));let s,u;return[this.produce(r,i,(d,h)=>{s=d,u=h}),s,u]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){wr(t)||kn(8),Ga(t)&&(t=Wx(t));const r=lb(this),i=uh(t,void 0);return i[un].isManual_=!0,lh(r),i}finishDraft(t,r){const i=t&&t[un];(!i||!i.isManual_)&&kn(9);const{scope_:s}=i;return sb(s,r),ob(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){t=u.value;break}}i>-1&&(r=r.slice(i+1));const s=ka("Patches").applyPatches_;return Ga(t)?s(t,r):this.produce(t,u=>s(u,r))}};function uh(t,r){const i=pu(t)?ka("MapSet").proxyMap_(t,r):gu(t)?ka("MapSet").proxySet_(t,r):Qx(t,r);return(r?r.scope_:Tv()).drafts_.push(i),i}function Wx(t){return Ga(t)||kn(10,t),xv(t)}function xv(t){if(!wr(t)||yu(t))return t;const r=t[un];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=ih(t,r.scope_.immer_.useStrictShallowCopy_)}else i=ih(t,!0);return nu(i,(s,u)=>{Sv(i,s,xv(u))}),r&&(r.finalized_=!1),i}var cn=new $x,Ov=cn.produce;cn.produceWithPatches.bind(cn);cn.setAutoFreeze.bind(cn);cn.setUseStrictShallowCopy.bind(cn);cn.applyPatches.bind(cn);cn.createDraft.bind(cn);cn.finishDraft.bind(cn);function Rv(t){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,t):u(c)}var Jx=Rv(),eO=Rv,tO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?tu:tu.apply(null,arguments)};function cb(t,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(Ar(0));return{type:t,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:t,payload:s[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=s=>qx(s)&&s.type===t,i}var wv=class Zs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Zs.prototype)}static get[Symbol.species](){return Zs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Zs(...r[0].concat(this)):new Zs(...r.concat(this))}};function fb(t){return wr(t)?Ov(t,()=>{}):t}function Uo(t,r,i){return t.has(r)?t.get(r):t.set(r,i(r)).get(r)}function nO(t){return typeof t=="boolean"}var rO=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new wv;return i&&(nO(i)?d.push(Jx):d.push(eO(i.extraArgument))),d},aO="RTK_autoBatch",db=t=>r=>{setTimeout(r,t)},iO=(t={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,d=!1;const h=new Set,m=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:db(10):t.type==="callback"?t.queueNotification:db(t.timeout),p=()=>{d=!1,c&&(c=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const _=()=>u&&b(),x=s.subscribe(_);return h.add(b),()=>{x(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[aO],c=!u,c&&(d||(d=!0,m(p))),s.dispatch(b)}finally{u=!0}}})},sO=t=>function(i){const{autoBatch:s=!0}=i??{};let u=new wv(t);return s&&u.push(iO(typeof s=="object"?s:void 0)),u};function lO(t){const r=rO(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:d=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Hh(i))h=vv(i);else throw new Error(Ar(1));let m;typeof s=="function"?m=s(r):m=r();let p=tu;u&&(p=tO({trace:!1,...typeof u=="object"&&u}));const b=kx(...m),_=sO(b);let x=typeof d=="function"?d(_):_();const U=p(...x);return bv(h,c,U)}function Cv(t){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(Ar(28));if(h in r)throw new Error(Ar(29));return r[h]=d,u},addAsyncThunk(c,d){return d.pending&&(r[c.pending.type]=d.pending),d.rejected&&(r[c.rejected.type]=d.rejected),d.fulfilled&&(r[c.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:c.settled,reducer:d.settled}),u},addMatcher(c,d){return i.push({matcher:c,reducer:d}),u},addDefaultCase(c){return s=c,u}};return t(u),[r,i,s]}function oO(t){return typeof t=="function"}function uO(t,r){let[i,s,u]=Cv(r),c;if(oO(t))c=()=>fb(t());else{const h=fb(t);c=()=>h}function d(h=c(),m){let p=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return p.filter(b=>!!b).length===0&&(p=[u]),p.reduce((b,_)=>{if(_)if(Ga(b)){const U=_(b,m);return U===void 0?b:U}else{if(wr(b))return Ov(b,x=>_(x,m));{const x=_(b,m);if(x===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return b},h)}return d.getInitialState=c,d}var cO=Symbol.for("rtk-slice-createasyncthunk");function fO(t,r){return`${t}/${r}`}function dO({creators:t}={}){const r=t?.asyncThunk?.[cO];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(Ar(11));const d=(typeof s.reducers=="function"?s.reducers(mO()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,H){const A=typeof S=="string"?S:S.type;if(!A)throw new Error(Ar(12));if(A in m.sliceCaseReducersByType)throw new Error(Ar(13));return m.sliceCaseReducersByType[A]=H,p},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),p},exposeAction(S,H){return m.actionCreators[S]=H,p},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,p}};h.forEach(S=>{const H=d[S],A={reducerName:S,type:fO(u,S),createNotation:typeof s.reducers=="function"};gO(H)?bO(A,H,p,r):pO(A,H,p)});function b(){const[S={},H=[],A=void 0]=typeof s.extraReducers=="function"?Cv(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return uO(s.initialState,W=>{for(let ae in Z)W.addCase(ae,Z[ae]);for(let ae of m.sliceMatchers)W.addMatcher(ae.matcher,ae.reducer);for(let ae of H)W.addMatcher(ae.matcher,ae.reducer);A&&W.addDefaultCase(A)})}const _=S=>S,x=new Map,U=new WeakMap;let R;function q(S,H){return R||(R=b()),R(S,H)}function z(){return R||(R=b()),R.getInitialState()}function E(S,H=!1){function A(W){let ae=W[S];return typeof ae>"u"&&H&&(ae=Uo(U,A,z)),ae}function Z(W=_){const ae=Uo(x,H,()=>new WeakMap);return Uo(ae,W,()=>{const ye={};for(const[Ee,se]of Object.entries(s.selectors??{}))ye[Ee]=hO(se,W,()=>Uo(U,W,z),H);return ye})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(A)},selectSlice:A}}const w={name:u,reducer:q,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:z,...E(c),injectInto(S,{reducerPath:H,...A}={}){const Z=H??c;return S.inject({reducerPath:Z,reducer:q},A),{...w,...E(Z,!0)}}};return w}}function hO(t,r,i,s){function u(c,...d){let h=r(c);return typeof h>"u"&&s&&(h=i()),t(h,...d)}return u.unwrapped=t,u}var Gh=dO();function mO(){function t(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return t.withTypes=()=>t,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:t}}function pO({type:t,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!yO(s))throw new Error(Ar(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(t,c).exposeCaseReducer(r,c).exposeAction(r,d?cb(t,d):cb(t))}function gO(t){return t._reducerDefinitionType==="asyncThunk"}function yO(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bO({type:t,reducerName:r},i,s,u){if(!u)throw new Error(Ar(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:p,options:b}=i,_=u(t,c,b);s.exposeAction(r,_),d&&s.addCase(_.fulfilled,d),h&&s.addCase(_.pending,h),m&&s.addCase(_.rejected,m),p&&s.addMatcher(_.settled,p),s.exposeCaseReducer(r,{fulfilled:d||jo,pending:h||jo,rejected:m||jo,settled:p||jo})}function jo(){}function Ar(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const vO={formValues:{}},Nv=Gh({name:"start-screen",initialState:vO,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,r){t.startScreenStatus="HIDDEN",t.formValues=r.payload.formValues},startAuthenticatedChat(t,r){t.startScreenStatus="HIDDEN",t.loginToken=r.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,r){t.loginRequestToken=r.payload.loginRequestToken,t.formValues=r.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:_O,startAuthenticatedChat:EO,showStartScreen:SO,requestLogin:TO,loginWindowClosed:AO}=Nv.actions,xO=Nv.reducer,Mv="RESET_CHAT_STATE",Dv="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Lv="SHOW_CONVERSATION_RATING_OVERLAY",Bv="HIDE_CONVERSATION_RATING_OVERLAY",Uv=()=>({type:hv}),OO=()=>({type:Mv}),jv=()=>({type:Dv}),iu=(t,r=void 0)=>({type:Lv,payload:{opener:t,defaultRating:r}}),RO=()=>({type:Bv}),hb=(t,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Bh,payload:{chunkId:i}}),mb(t,c,r,i,!1,s),mb(t,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Lh})}},mb=(t,r,i,s,u,c)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":r}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};c({type:fv,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Lh,payload:{highlighted:u}})})},wO=()=>({type:Uh}),kh="CONNECT",qh="CONNECTING",Fh="CONNECTED",Vh="DISCONNECTED",Ph="RECONNECTED",Yh="RESTORE_SESSION_ID",bu="START",vu="CLEAR_SESSION_ID",CO=[kh,qh,Fh,Vh,Ph,Yh],NO=(t,r)=>({type:kh,clientName:t,querystrings:r}),MO=t=>({type:Yh,sessionId:t}),DO=()=>({type:qh}),LO=()=>({type:Fh}),BO=()=>({type:Vh}),UO=()=>({type:Ph}),Hv=(t,r)=>(i,s)=>{const u=s().connection,{formValues:c,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=Jo());let m=u.userId;if(m===void 0){const p=Bo.get("bubble-chat-user-id")||Bo.get("bubble-chat-userId")||Bo.get("bf-webclient-userId");m=p||Jo(),Bo.set("bubble-chat-user-id",m)}i({type:bu,payload:{sessionId:h,userId:m,clientName:t,loginToken:d,querystrings:{...r,...c}}})},al=()=>(t,r)=>{const i=r().connection.sessionId||"";if(t(jO(i)),t(OO()),r().settings.enableStartScreen)t(SO());else{const s=jh(),u=hu.parse(window.location.search);return t(Hv(s,u))}},jO=t=>({type:vu,payload:{sessionId:t}}),Ze=()=>{const t=du();return i=>{const s=t.formatMessage({id:i});return s===i?void 0:s}};var Ia=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(Ia||{}),su=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(su||{});const HO="_container_q2uun_1",IO="_chatcontent_q2uun_6",zO="_accessabilityHidden_q2uun_12",cd={container:HO,chatcontent:IO,accessabilityHidden:zO},GO="_messageContainer_ofi0g_1",kO="_messages_ofi0g_12",pb={messageContainer:GO,messages:kO};function ja(){return ja=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},ja.apply(this,arguments)}const qO=["children","options"],FO={footnoteReference:"7"},gb=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,r)=>(t[r.toLowerCase()]=r,t),{class:"className",for:"htmlFor"}),yb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},VO=["style","script","pre"],PO=["src","href","data","formAction","srcDoc","action"],YO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,XO=/mailto:/i,ZO=/\n{2,}$/,bb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,QO=/^ *> ?/gm,KO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,$O=/^ {2,}\n/,WO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,vb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,_b=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,JO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,eR=/^(?:\n *)*\n/,tR=/\r\n?/g,nR=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,rR=/^\[\^([^\]]+)]/,aR=/\f/g,iR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,sR=/^\s*?\[(x|\s)\]/,Eb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Sb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Tb=/^([^\n]+)\n *(=|-){3,} *\n/,fd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,lR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ab=/^<!--[\s\S]*?(?:-->)/,oR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,dd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,uR=/^\{.*\}$/,cR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,fR=/^<([^ >]+@[^ >]+)>/,dR=/^<([^ >]+:\/[^ >]+)>/,hR=/-([a-z])?/gi,xb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,mR=/^[^\n]+(?: \n|\n{2,})/,pR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,gR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,yR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,bR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vR=/\t/g,_R=/(^ *\||\| *$)/g,ER=/^ *:-+: *$/,SR=/^ *:-+ *$/,TR=/^ *-+: *$/,_u=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,Eu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",AR=RegExp(`^([*_])\\1${_u(1)}${Eu}\\1\\1(?!\\1)`),xR=RegExp(`^([*_])${_u(0)}${Eu}\\1(?!\\1)`),OR=RegExp(`^(==)${_u(0)}${Eu}\\1`),RR=RegExp(`^(~~)${_u(0)}${Eu}\\1`),wR=/^(:[a-zA-Z0-9-_]+:)/,CR=/^\\([^0-9A-Za-z\s])/,NR=/\\([^0-9A-Za-z\s])/g,MR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,DR=/^\n+/,LR=/^([ \t]*)/,BR=/(?:^|\n)( *)$/,Xh="(?:\\d+\\.)",Zh="(?:[*+-])";function Iv(t){return"( *)("+(t===1?Xh:Zh)+") +"}const zv=Iv(1),Gv=Iv(2);function kv(t){return RegExp("^"+(t===1?zv:Gv))}const UR=kv(1),jR=kv(2);function qv(t){return RegExp("^"+(t===1?zv:Gv)+"[^\\n]*(?:\\n(?!\\1"+(t===1?Xh:Zh)+" )[^\\n]*)*(\\n|$)","gm")}const HR=qv(1),IR=qv(2);function Fv(t){const r=t===1?Xh:Zh;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Vv=Fv(1),Pv=Fv(2);function Ob(t,r){const i=r===1,s=i?Vv:Pv,u=i?HR:IR,c=i?UR:jR;return{t:d=>c.test(d),o:Ci(function(d,h){const m=BR.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const p=i?+d[2]:void 0,b=d[0].replace(ZO,`
|
|
94
|
-
`).match(u);let _=!1;return{items:b.map(function(x,U){const R=c.exec(x)[0].length,q=RegExp("^ {1,"+R+"}","gm"),z=x.replace(q,"").replace(c,""),E=U===b.length-1,w=z.indexOf(`
|
|
95
|
-
|
|
96
|
-
`)!==-1||E&&_;_=w;const S=m.inline,H=m.list;let A;m.list=!0,w?(m.inline=!1,A=$s(z)+`
|
|
97
|
-
|
|
98
|
-
`):(m.inline=!0,A=$s(z));const Z=h(A,m);return m.inline=S,m.list=H,Z}),ordered:i,start:p}},l:(d,h,m)=>t(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(p,b){return t("li",{key:b},h(p,m))}))}}const zR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),GR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function $s(t){let r=t.length;for(;r>0&&t[r-1]<=" ";)r--;return t.slice(0,r)}function Po(t,r){return t.startsWith(r)}function kR(t,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Po(t,i[s]))return!0;return!1}return i(t,r)}function Is(t){return t.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 qR(t){return TR.test(t)?"right":ER.test(t)?"center":SR.test(t)?"left":null}function Rb(t,r,i,s){const u=i.inTable;i.inTable=!0;let c=[[]],d="";function h(){if(!d)return;const m=c[c.length-1];m.push.apply(m,r(d,i)),d=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,p,b)=>{m.trim()==="|"&&(h(),s)?p!==0&&p!==b.length-1&&c.push([]):d+=m}),h(),i.inTable=u,c}function FR(t,r,i){i.inline=!0;const s=t[2]?t[2].replace(_R,"").split("|").map(qR):[],u=t[3]?(function(d,h,m){return d.trim().split(`
|
|
99
|
-
`).map(function(p){return Rb(p,h,m,!0)})})(t[3],r,i):[],c=Rb(t[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function wb(t,r){return t.align[r]==null?{}:{textAlign:t.align[r]}}function Ci(t){return t.inline=1,t}function ra(t){return Ci(function(r,i){return i.inline?t.exec(r):null})}function aa(t){return Ci(function(r,i){return i.inline||i.simple?t.exec(r):null})}function Sr(t){return function(r,i){return i.inline||i.simple?null:t.exec(r)}}function Ho(t){return Ci(function(r){return t.exec(r)})}const VR=/(javascript|vbscript|data(?!:image)):/i;function PR(t){try{const r=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(VR.test(r))return null}catch{return null}return t}function Qn(t){return t&&t.replace(NR,"$1")}function Yo(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function YR(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function XR(t,r,i){const s=i.inline||!1;i.inline=!1;const u=t(r,i);return i.inline=s,u}const hd=(t,r,i)=>({children:Yo(r,t[2],i)});function md(){return{}}function pd(){return null}function ZR(...t){return t.filter(Boolean).join(" ")}function gd(t,r,i){let s=t;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function QR(t="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?ja({},yb,r.namedCodesToUnicode):yb;const i=r.slugify||Is,s=r.sanitizer||PR,u=r.createElement||B.createElement,c=[bb,vb,_b,r.enforceAtxHeadings?Sb:Eb,Tb,xb,Vv,Pv],d=[...c,mR,fd,Ab,dd];function h(E,w,...S){const H=gd(r.overrides,E+".props",{});return u((function(A,Z){const W=gd(Z,A);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:gd(Z,A+".component",A):A})(E,r.overrides),ja({},w,H,{className:ZR(w?.className,H.className)||void 0}),...S)}function m(E){E=E.replace(iR,"");let w=!1;r.forceInline?w=!0:r.forceBlock||(w=bR.test(E)===!1);const S=R(U(w?E:$s(E).replace(DR,"")+`
|
|
100
|
-
|
|
101
|
-
`,{inline:w}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const H=r.wrapper||(w?"span":"div");let A;if(S.length>1||r.forceWrapper)A=S;else{if(S.length===1)return A=S[0],typeof A=="string"?h("span",{key:"outer"},A):A;A=null}return u(H,{key:"outer"},A)}function p(E,w){if(!w||!w.trim())return null;const S=w.match(YO);return S?S.reduce(function(H,A){const Z=A.indexOf("=");if(Z!==-1){const W=(function(se){return se.indexOf("-")!==-1&&se.match(oR)===null&&(se=se.replace(hR,function(me,ce){return ce.toUpperCase()})),se})(A.slice(0,Z)).trim(),ae=(function(se){const me=se[0];return(me==='"'||me==="'")&&se.length>=2&&se[se.length-1]===me?se.slice(1,-1):se})(A.slice(Z+1).trim()),ye=gb[W]||W;if(ye==="ref")return H;const Ee=H[ye]=(function(se,me,ce,Pe){return me==="style"?(function(ve){const G=[];let K="",ee=!1,Ae=!1,O="";if(!ve)return G;for(let $=0;$<ve.length;$++){const Y=ve[$];if(Y!=='"'&&Y!=="'"||ee||(Ae?Y===O&&(Ae=!1,O=""):(Ae=!0,O=Y)),Y==="("&&K.endsWith("url")?ee=!0:Y===")"&&ee&&(ee=!1),Y!==";"||Ae||ee)K+=Y;else{const te=K.trim();if(te){const re=te.indexOf(":");if(re>0){const ue=te.slice(0,re).trim(),Je=te.slice(re+1).trim();G.push([ue,Je])}}K=""}}const k=K.trim();if(k){const $=k.indexOf(":");if($>0){const Y=k.slice(0,$).trim(),te=k.slice($+1).trim();G.push([Y,te])}}return G})(ce).reduce(function(ve,[G,K]){return ve[G.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Pe(K,se,G),ve},{}):PO.indexOf(me)!==-1?Pe(Qn(ce),se,me):(ce.match(uR)&&(ce=Qn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)})(E,W,ae,s);typeof Ee=="string"&&(fd.test(Ee)||dd.test(Ee))&&(H[ye]=m(Ee.trim()))}else A!=="style"&&(H[gb[A]||A]=!0);return H},{}):null}const b=[],_={},x={0:{t:[">"],o:Sr(bb),i:1,u(E,w,S){const[,H,A]=E[0].replace(QO,"").match(KO);return{alert:H,children:w(A,S)}},l(E,w,S){const H={key:S.key};return E.alert&&(H.className="markdown-alert-"+i(E.alert.toLowerCase(),Is),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",H,w(E.children,S))}},1:{o:Ho($O),i:1,u:md,l:(E,w,S)=>h("br",{key:S.key})},2:{t:E=>{const w=E[0];return w==="-"||w==="*"||w==="_"},o:Sr(WO),i:1,u:md,l:(E,w,S)=>h("hr",{key:S.key})},3:{t:[" "],o:Sr(_b),i:0,u:E=>({lang:void 0,text:Qn($s(E[0].replace(/^ {4}/gm,"")))}),l:(E,w,S)=>h("pre",{key:S.key},h("code",ja({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:Sr(vb),i:0,u:E=>({attrs:p("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:aa(JO),i:3,u:E=>({text:Qn(E[2])}),l:(E,w,S)=>h("code",{key:S.key},E.text)},6:{t:["[^"],o:Sr(nR),i:0,u:E=>(b.push({footnote:E[2],identifier:E[1]}),{}),l:pd},7:{t:["[^"],o:ra(rR),i:1,u:E=>({target:"#"+i(E[1],Is),text:E[1]}),l:(E,w,S)=>h("a",{key:S.key,href:s(E.target,"a","href")},h("sup",{key:S.key},E.text))},8:{t:["[ ]","[x]"],o:ra(sR),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,w,S)=>h("input",{checked:E.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Sr(r.enforceAtxHeadings?Sb:Eb),i:1,u:(E,w,S)=>({children:Yo(w,E[2],S),id:i(E[2],Is),level:E[1].length}),l:(E,w,S)=>h("h"+E.level,{id:E.id,key:S.key},w(E.children,S))},10:{o:Sr(Tb),i:0,u:(E,w,S)=>({children:Yo(w,E[1],S),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Ho(fd),i:1,u(E,w,S){const[,H]=E[3].match(LR),A=RegExp("^"+H,"gm"),Z=E[3].replace(A,""),W=(ae=Z,d.some(ce=>ce.test(ae))?XR:Yo);var ae;const ye=E[1].toLowerCase(),Ee=VO.indexOf(ye)!==-1,se=(Ee?ye:E[1]).trim(),me={attrs:p(se,E[2]),noInnerParse:Ee,tag:se};if(S.inAnchor=S.inAnchor||ye==="a",Ee)me.text=E[3];else{const ce=S.inHTML;S.inHTML=!0,me.children=W(w,Z,S),S.inHTML=ce}return S.inAnchor=!1,me},l:(E,w,S)=>h(E.tag,ja({key:S.key},E.attrs),E.text||(E.children?w(E.children,S):""))},13:{t:["<"],o:Ho(dd),i:1,u(E){const w=E[1].trim();return{attrs:p(w,E[2]||""),tag:w}},l:(E,w,S)=>h(E.tag,ja({},E.attrs,{key:S.key}))},12:{t:["<!--"],o:Ho(Ab),i:1,u:()=>({}),l:pd},14:{t:["!["],o:aa(GR),i:1,u:E=>({alt:Qn(E[1]),target:Qn(E[2]),title:Qn(E[3])}),l:(E,w,S)=>h("img",{key:S.key,alt:E.alt||void 0,title:E.title||void 0,src:s(E.target,"img","src")})},15:{t:["["],o:ra(zR),i:3,u:(E,w,S)=>({children:YR(w,E[1],S),target:Qn(E[2]),title:Qn(E[3])}),l:(E,w,S)=>h("a",{key:S.key,href:s(E.target,"a","href"),title:E.title},w(E.children,S))},16:{t:["<"],o:ra(dR),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],type:"15"})},17:{t:(E,w)=>!w.inAnchor&&!r.disableAutoLink&&(Po(E,"http://")||Po(E,"https://")),o:ra(cR),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},18:{t:["<"],o:ra(fR),i:0,u(E){let w=E[1],S=E[1];return XO.test(S)||(S="mailto:"+S),{children:[{text:w.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:Ob(h,1),33:Ob(h,2),19:{o:Sr(eR),i:3,u:md,l:()=>`
|
|
102
|
-
`},21:{o:Ci(function(E,w){if(w.inline||w.simple||w.inHTML&&E.indexOf(`
|
|
103
|
-
|
|
104
|
-
`)===-1&&w.prevCapture.indexOf(`
|
|
105
|
-
|
|
106
|
-
`)===-1)return null;let S="";E.split(`
|
|
107
|
-
`).every(A=>(A+=`
|
|
108
|
-
`,!c.some(Z=>Z.test(A))&&(S+=A,!!A.trim())));const H=$s(S);return H===""?null:[S,,H]}),i:3,u:hd,l:(E,w,S)=>h("p",{key:S.key},w(E.children,S))},22:{t:["["],o:ra(pR),i:0,u:E=>(_[E[1]]={target:E[2],title:E[4]},{}),l:pd},23:{t:["!["],o:aa(gR),i:0,u:E=>({alt:E[1]?Qn(E[1]):void 0,ref:E[2]}),l:(E,w,S)=>_[E.ref]?h("img",{key:S.key,alt:E.alt,src:s(_[E.ref].target,"img","src"),title:_[E.ref].title}):null},24:{t:E=>E[0]==="["&&E.indexOf("](")===-1,o:ra(yR),i:0,u:(E,w,S)=>({children:w(E[1],S),fallbackChildren:E[0],ref:E[2]}),l:(E,w,S)=>_[E.ref]?h("a",{key:S.key,href:s(_[E.ref].target,"a","href"),title:_[E.ref].title},w(E.children,S)):h("span",{key:S.key},E.fallbackChildren)},25:{t:["|"],o:Sr(xb),i:1,u:FR,l(E,w,S){const H=E;return h("table",{key:S.key},h("thead",null,h("tr",null,H.header.map(function(A,Z){return h("th",{key:Z,style:wb(H,Z)},w(A,S))}))),h("tbody",null,H.cells.map(function(A,Z){return h("tr",{key:Z},A.map(function(W,ae){return h("td",{key:ae,style:wb(H,ae)},w(W,S))}))})))}},27:{o:Ci(function(E,w){let S;return Po(E,":")&&(S=wR.exec(E)),S||MR.exec(E)}),i:4,u(E){const w=E[0];return{text:w.indexOf("&")===-1?w:w.replace(lR,(S,H)=>r.namedCodesToUnicode[H]||S)}},l:E=>E.text},28:{t:["**","__"],o:aa(AR),i:2,u:(E,w,S)=>({children:w(E[2],S)}),l:(E,w,S)=>h("strong",{key:S.key},w(E.children,S))},29:{t:E=>{const w=E[0];return(w==="*"||w==="_")&&E[1]!==w},o:aa(xR),i:3,u:(E,w,S)=>({children:w(E[2],S)}),l:(E,w,S)=>h("em",{key:S.key},w(E.children,S))},30:{t:["\\"],o:aa(CR),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:aa(OR),i:3,u:hd,l:(E,w,S)=>h("mark",{key:S.key},w(E.children,S))},32:{t:["~~"],o:aa(RR),i:3,u:hd,l:(E,w,S)=>h("del",{key:S.key},w(E.children,S))}};r.disableParsingRawHTML===!0&&(delete x[11],delete x[13]);const U=(function(E){var w=Object.keys(E);function S(H,A){var Z=[];if(A.prevCapture=A.prevCapture||"",H.trim())for(;H;)for(var W=0;W<w.length;){var ae=w[W],ye=E[ae];if(!ye.t||kR(H,A,ye.t)){var Ee=ye.o(H,A);if(Ee&&Ee[0]){H=H.substring(Ee[0].length);var se=ye.u(Ee,S,A);A.prevCapture+=Ee[0],se.type||(se.type=ae),Z.push(se);break}W++}else W++}return A.prevCapture="",Z}return w.sort(function(H,A){return E[H].i-E[A].i||(H<A?-1:1)}),function(H,A){return S((function(Z){return Z.replace(tR,`
|
|
109
|
-
`).replace(aR,"").replace(vR," ")})(H),A)}})(x),R=(q=(function(E,w){return function(S,H,A){const Z=E[S.type].l;return w?w(()=>Z(S,H,A),S,H,A):Z(S,H,A)}})(x,r.renderRule),function E(w,S={}){if(Array.isArray(w)){const H=S.key,A=[];let Z=!1;for(let W=0;W<w.length;W++){S.key=W;const ae=E(w[W],S),ye=typeof ae=="string";ye&&Z?A[A.length-1]+=ae:ae!==null&&A.push(ae),Z=ye}return S.key=H,A}return q(w,E,S)});var q;const z=m(t);return b.length?h("div",null,z,h("footer",{key:"footer"},b.map(function(E){return h("div",{id:i(E.identifier,Is),key:E.identifier},E.identifier,R(U(E.footnote,{inline:!0})))}))):z}const xr=t=>{let{children:r="",options:i}=t,s=(function(u,c){if(u==null)return{};var d,h,m={},p=Object.keys(u);for(h=0;h<p.length;h++)c.indexOf(d=p[h])>=0||(m[d]=u[d]);return m})(t,qO);return B.cloneElement(QR(r,i),s)},KR="_generalConditionsContainer_55hjg_1",$R="_generalConditions_55hjg_1",WR="_generalConditionsHeader_55hjg_15",JR="_generalConditionsBody_55hjg_26",ew="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:KR,generalConditions:$R,generalConditionsHeader:WR,generalConditionsBody:JR,generalConditionsAccept:ew},tw=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),nw=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),rw="general-conditions.header",aw="general-conditions.body",Cb="general-conditions.accept-conditions-note",iw=()=>{const t=Ze(),[r,i]=B.useState(!1),s=()=>i(!r),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},c=t(rw),d=t(Cb);return y.jsxs("div",{className:Q(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:zs.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:Q(zs.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[y.jsx(xr,{children:c}),r?y.jsx(nw,{}):y.jsx(tw,{})]}),y.jsx("div",{className:Q(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(xr,{children:t(aw)||""})})]}),!!d?.length&&y.jsx("div",{className:Q(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(xr,{children:t(Cb)||""})})]})},sw="_messageContainer_1rxi5_1",lw="_message_1rxi5_1",ow="_messageBot_1rxi5_14",uw="_messageBotLast_1rxi5_45",cw="_avatar_1rxi5_45",fw="_messageBotFirst_1rxi5_54",dw="_messageBotAnimated_1rxi5_67",hw="_messageGuest_1rxi5_78",mw="_messageGuestFirst_1rxi5_84",pw="_messageGuestLast_1rxi5_90",gw="_botAvatar_1rxi5_104",yw="_agentAvatar_1rxi5_108",bw="_bubble_1rxi5_112",vw="_bubbleContent_1rxi5_118",_w="_bubbleLeft_1rxi5_132",Ew="_leftText_1rxi5_143",Sw="_bubbleRight_1rxi5_150",Tw="_rightText_1rxi5_160",Aw="_sourceInfoReference_1rxi5_192",xw="_sourceInfoReferenceActive_1rxi5_204",ge={messageContainer:sw,message:lw,messageBot:ow,messageBotLast:uw,avatar:cw,messageBotFirst:fw,messageBotAnimated:dw,messageGuest:hw,messageGuestFirst:mw,messageGuestLast:pw,botAvatar:gw,agentAvatar:yw,bubble:bw,bubbleContent:vw,bubbleLeft:_w,leftText:Ew,bubbleRight:Sw,rightText:Tw,sourceInfoReference:Aw,sourceInfoReferenceActive:xw},Qh=(t,r)=>{B.useEffect(()=>{const i=s=>{t.current&&!t.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,r])};var yd,Nb;function Kh(){if(Nb)return yd;Nb=1;function t(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return yd=t,yd}var bd,Mb;function Ow(){if(Mb)return bd;Mb=1;var t=typeof bo=="object"&&bo&&bo.Object===Object&&bo;return bd=t,bd}var vd,Db;function Yv(){if(Db)return vd;Db=1;var t=Ow(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=t||r||Function("return this")();return vd=i,vd}var _d,Lb;function Rw(){if(Lb)return _d;Lb=1;var t=Yv(),r=function(){return t.Date.now()};return _d=r,_d}var Ed,Bb;function ww(){if(Bb)return Ed;Bb=1;var t=/\s/;function r(i){for(var s=i.length;s--&&t.test(i.charAt(s)););return s}return Ed=r,Ed}var Sd,Ub;function Cw(){if(Ub)return Sd;Ub=1;var t=ww(),r=/^\s+/;function i(s){return s&&s.slice(0,t(s)+1).replace(r,"")}return Sd=i,Sd}var Td,jb;function Xv(){if(jb)return Td;jb=1;var t=Yv(),r=t.Symbol;return Td=r,Td}var Ad,Hb;function Nw(){if(Hb)return Ad;Hb=1;var t=Xv(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=t?t.toStringTag:void 0;function c(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var p=!0}catch{}var b=s.call(d);return p&&(h?d[u]=m:delete d[u]),b}return Ad=c,Ad}var xd,Ib;function Mw(){if(Ib)return xd;Ib=1;var t=Object.prototype,r=t.toString;function i(s){return r.call(s)}return xd=i,xd}var Od,zb;function Dw(){if(zb)return Od;zb=1;var t=Xv(),r=Nw(),i=Mw(),s="[object Null]",u="[object Undefined]",c=t?t.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:c&&c in Object(h)?r(h):i(h)}return Od=d,Od}var Rd,Gb;function Lw(){if(Gb)return Rd;Gb=1;function t(r){return r!=null&&typeof r=="object"}return Rd=t,Rd}var wd,kb;function Bw(){if(kb)return wd;kb=1;var t=Dw(),r=Lw(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&t(u)==i}return wd=s,wd}var Cd,qb;function Uw(){if(qb)return Cd;qb=1;var t=Cw(),r=Kh(),i=Bw(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(p){if(typeof p=="number")return p;if(i(p))return s;if(r(p)){var b=typeof p.valueOf=="function"?p.valueOf():p;p=r(b)?b+"":b}if(typeof p!="string")return p===0?p:+p;p=t(p);var _=c.test(p);return _||d.test(p)?h(p.slice(2),_?2:8):u.test(p)?s:+p}return Cd=m,Cd}var Nd,Fb;function Zv(){if(Fb)return Nd;Fb=1;var t=Kh(),r=Rw(),i=Uw(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,p){var b,_,x,U,R,q,z=0,E=!1,w=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,t(p)&&(E=!!p.leading,w="maxWait"in p,x=w?u(i(p.maxWait)||0,m):x,S="trailing"in p?!!p.trailing:S);function H(ce){var Pe=b,ve=_;return b=_=void 0,z=ce,U=h.apply(ve,Pe),U}function A(ce){return z=ce,R=setTimeout(ae,m),E?H(ce):U}function Z(ce){var Pe=ce-q,ve=ce-z,G=m-Pe;return w?c(G,x-ve):G}function W(ce){var Pe=ce-q,ve=ce-z;return q===void 0||Pe>=m||Pe<0||w&&ve>=x}function ae(){var ce=r();if(W(ce))return ye(ce);R=setTimeout(ae,Z(ce))}function ye(ce){return R=void 0,S&&b?H(ce):(b=_=void 0,U)}function Ee(){R!==void 0&&clearTimeout(R),z=0,b=q=_=R=void 0}function se(){return R===void 0?U:ye(r())}function me(){var ce=r(),Pe=W(ce);if(b=arguments,_=this,q=ce,Pe){if(R===void 0)return A(q);if(w)return clearTimeout(R),R=setTimeout(ae,m),H(q)}return R===void 0&&(R=setTimeout(ae,m)),U}return me.cancel=Ee,me.flush=se,me}return Nd=d,Nd}var jw=Zv();const Hw=uu(jw),Iw="_container_131ib_1",zw="_categoryContainer_131ib_13",Gw="_categoryButton_131ib_20",kw="_active_131ib_35",qw="_commentTextarea_131ib_44",Gs={container:Iw,categoryContainer:zw,categoryButton:Gw,active:kw,commentTextarea:qw},Fw=(t,r,i)=>{B.useEffect(()=>{if(t){const s=()=>{const c=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=r.current?Array.from(r.current.querySelectorAll(c)):[],h=i.current?Array.from(i.current.querySelectorAll(c)):[];return[...d,...h]},u=c=>{if(c.key==="Tab"){const d=s();if(d.length>0){const h=d[0],m=d[d.length-1],p=document.activeElement;!c.shiftKey&&p===m?(c.preventDefault(),h.focus()):c.shiftKey&&p===h&&(c.preventDefault(),m.focus())}}};return document.addEventListener("keydown",u,!0),()=>{document.removeEventListener("keydown",u,!0)}}},[t,r,i])},Vw=({open:t,actionsRef:r,reaction:i,onReaction:s})=>{const u=Ze(),c=B.useRef(null),d=Hw(p=>{s({...i,comment:p})},300);B.useEffect(()=>()=>d.flush(),[d]),Fw(t,r,c);const h=p=>{s({...i,category:i.category===p?void 0:p})},m=p=>d(p.target.value);return t?y.jsxs("div",{ref:c,className:Gs.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:u("bot-bubble.reaction.say-more")}),y.jsx("div",{className:Gs.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>y.jsx("button",{className:Q(Gs.categoryButton,i?.category===p&&Gs.active),onClick:()=>h(p),"aria-pressed":i?.category===p,"aria-label":u(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:u(`bot-bubble.reaction.category.${p}`)},p))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:u("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:Gs.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},Pw="_botMessageActionContainer_18fjb_1",Yw="_alwaysVisible_18fjb_15",Xw="_active_18fjb_19",Zw="_botMessageActionInnerContainer_18fjb_27",Qw="_header_18fjb_52",Kw="_botMessageActions_18fjb_57",$w="_reported_18fjb_68",Ww="_action_18fjb_72",Jw="_wave_18fjb_86",e6="_anyReport_18fjb_156",t6="_closeButton_18fjb_172",nt={botMessageActionContainer:Pw,alwaysVisible:Yw,active:Xw,botMessageActionInnerContainer:Zw,header:Qw,botMessageActions:Kw,reported:$w,action:Ww,wave:Jw,anyReport:e6,closeButton:t6},n6=({isSubmitting:t,onClick:r})=>{const i=Ze();return y.jsx("button",{className:Q(nt.action,nt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:r,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},r6=({alwaysVisible:t,senderType:r,reaction:i,botMessageRef:s,message:u,onReaction:c})=>{const d=Ze(),[h,m]=B.useState(!1),[p,b]=B.useState(!1),[_,x]=B.useState(!1),U=B.useRef(null),R=B.useRef(null);Qh(U,()=>{x(!1)});const q=A=>{A.key==="Escape"&&x(!1)};B.useEffect(()=>(document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}),[]),B.useEffect(()=>{_&&U.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[_]);const z=A=>{R.current&&clearTimeout(R.current),b(!0),c(A),R.current=setTimeout(()=>{b(!1)},1e3)},E=B.useCallback(async()=>{if(s.current)try{m(!0);const A=s.current.innerHTML,Z=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([A],{type:"text/html"}),"text/plain":new Blob([Z],{type:"text/plain"})})]),await new Promise(W=>setTimeout(W,1500))}finally{m(!1)}},[s]),w=()=>{x(!1),c(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{c({...u.reaction,type:"BAD"}),x(!_)},H=A=>Z=>{(Z.key==="Enter"||Z.key===" ")&&A()};return y.jsx("div",{ref:U,className:Q(nt.botMessageActionContainer,t&&nt.alwaysVisible,_&&nt.active),children:y.jsxs("div",{className:Q(nt.botMessageActionInnerContainer,t&&nt.alwaysVisible,_&&nt.active,i&&nt.reported),role:"group",children:[y.jsxs("div",{className:nt.header,children:[y.jsxs("div",{className:Q(nt.botMessageActions,i&&nt.reported),children:[r===su.BOT&&y.jsx("button",{className:Q(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="GOOD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:w,onKeyDown:H(w),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),r===su.BOT&&y.jsx("button",{className:Q(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="BAD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onPointerDown:S,onKeyDown:H(S),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),y.jsx("button",{className:Q(nt.action,nt.wave,"tooltip--top-right"),style:{visibility:_?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:E,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),_&&y.jsx(n6,{isSubmitting:p,onClick:()=>x(!1)})]}),u.reaction&&y.jsx(Vw,{open:_,actionsRef:U,reaction:u.reaction,onReaction:z})]})})},Qv=B.forwardRef(({message:t,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=Ze(),p=B.useRef(null),b=t.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:h,className:Q(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",r&&ge.messageBotAnimated,r&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Q(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:p,className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:Q(ge.leftText),children:c})}),d&&y.jsx(r6,{alwaysVisible:i&&u,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:p,onReaction:d})]})]})}),a6="_sourceList_1n31h_1",i6="_source_1n31h_1",s6="_label_1n31h_37",Md={sourceList:a6,source:i6,label:s6},Kv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),$v=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),Wv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),Jv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})}),l6=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Jv,{...r});case"PDF":return y.jsx(Wv,{...r});case"DOCX":return y.jsx(Kv,{...r});default:return y.jsx($v,{...r})}},$h=({sources:t,onLinkClick:r})=>{const i=Ze(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return t.length?y.jsx("ul",{className:Md.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(c=>y.jsx("li",{className:Md.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[y.jsx(l6,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:Md.label,children:c.label})]})},c.url))}):null},o6="_button_3ui4g_1",u6="_buttonDefault_3ui4g_13",c6="_buttonPrimary_3ui4g_28",el={button:o6,buttonDefault:u6,buttonPrimary:c6},Su=({className:t,children:r,...i})=>y.jsx("button",{className:Q(el.button,t),type:"button",role:"button",...i,children:r}),f6="_title_137pi_1",d6="_buttons_137pi_6",h6="_button_137pi_6",m6="_imageContainer_137pi_29",p6="_image_137pi_29",g6="_video_container_137pi_44",y6="_video_137pi_44",b6="_only_137pi_58",on={title:f6,buttons:d6,button:h6,imageContainer:m6,image:p6,video_container:g6,video:y6,only:b6},v6=({buttons:t,onButtonClick:r})=>y.jsx("div",{className:Q(on.buttons,"chat__bubbleButtons"),children:t.map((i,s)=>y.jsx(Su,{className:Q(on.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),Vb="newtab#",e_=({markdown:t,markdownOptions:r={},onLinkClick:i})=>{const s=c=>d=>(d.preventDefault(),c&&i(c),!1),u=({title:c,href:d,children:h})=>d.indexOf(Vb)===0?y.jsx("a",{href:d.slice(Vb.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:c,href:d,children:h});return y.jsx(xr,{options:{...r,overrides:{a:u}},children:t})},_6=({text:t,onLinkClick:r})=>t?y.jsx("div",{children:y.jsx(e_,{markdown:t,onLinkClick:r})}):null,E6=({title:t})=>t?y.jsx("h1",{className:on.title,children:t}):null,S6=({title:t,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>t?.length||r?.length||i?.length?y.jsxs("div",{className:Q(ge.bubbleContent),children:[y.jsx(E6,{title:t}),y.jsx(_6,{text:r,onLinkClick:u}),y.jsx(v6,{buttons:i,onButtonClick:s})]}):null,T6=({alt:t,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:on.video_container,children:y.jsx("iframe",{className:Q(on.video,{[on.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Q(on.image,{[on.only]:!s}),src:r,alt:t})})}):y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Q(on.image,{[on.only]:!s}),src:r,alt:t})}):null,A6=({title:t,text:r,imageUrl:i,itemUrl:s,buttons:u,sources:c,onButtonClick:d,onLinkClick:h})=>{const m=!!t?.length||!!r?.length||!!u?.length;return y.jsxs("div",{className:Q(on.detailMessage),children:[y.jsx(T6,{hasBody:m,imageUrl:i,itemUrl:s,alt:t||""}),m&&y.jsx(S6,{title:t,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx($h,{sources:c,onLinkClick:h})]})},x6=B.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:r,children:i},s)=>{const u=Ze();return y.jsx("li",{ref:s,className:Q(ge.message,ge.messageGuest,t&&ge.messageGuestFirst,r&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:Q(ge.rightText),children:i})})})}),O6="_markdown_nw7vg_1",t_={markdown:O6},Wh=()=>B.useMemo(()=>jh(),[]),Io="source-info-reference",R6=({actionId:t,markdown:r,sources:i,onLinkClick:s})=>{const u=Wh(),c=Cr(),d=w6(),h=lt(b=>{const _=b.chat.sourceInfos;if(_?.type==="loaded"||_?.type==="loading")return _.chunkId}),m=b=>_=>{const x=_.key;(x==="ArrowDown"||x==="ArrowRight"||x==="Enter"||x===" "||x==="Space")&&(_.stopPropagation(),c(hb(u,t,b)))},p=b=>()=>{c(hb(u,t,b))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Io}`).forEach(b=>{const _=b.previousSibling;_&&_.nodeType===Node.TEXT_NODE&&_.textContent?.endsWith(" ")&&_.textContent?.trim().length&&b.classList.add(`${Io}--before-space`);const x=b.nextSibling;x&&x.nodeType===Node.TEXT_NODE&&x.textContent?.startsWith(" ")&&x.textContent?.trim().length&&b.classList.add(`${Io}--after-space`)})},[r]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:t_.markdown,children:y.jsx(e_,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(b,_,x,U){if(_.type===FO.footnoteReference){const R=_.text===h;return y.jsx("span",{className:Q(ge.sourceInfoReference,R&&ge.sourceInfoReferenceActive,Io),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(_.text),onKeyDown:m(_.text),children:d(_.text)})},U.key)}return b()}}})}),y.jsx($h,{sources:i,onLinkClick:s})]})},w6=()=>{const t=[];return i=>{const s=t.indexOf(i);return s>-1?s+1:(t.push(i),t.length)}},C6="_text_gp0s0_1",N6="_command_gp0s0_5",Pb={text:C6,command:N6},M6=({text:t,commands:r=[]})=>{const i=r.find(u=>t.startsWith(`/${u}`)),s=i?t.slice(i.length+1):t;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:Pb.command,children:["/",i]}),s.split(`
|
|
110
|
-
`).map((u,c)=>y.jsxs("span",{className:Pb.text,children:[u,y.jsx("br",{})]},c))]})},D6=({text:t,commands:r,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(M6,{text:t,commands:r}),y.jsx($h,{sources:i,onLinkClick:s})]}),L6=B.forwardRef(({message:t,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const p=B6(t._id,t,r,d,h),b=_=>{c(t._id,_)};switch(t.sender.type){case Te.UserType.GUEST:return y.jsx(x6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:p});default:return y.jsx(Qv,{ref:m,message:t,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:p})}}),B6=(t,r,i,s,u)=>{switch(r.type){case Te.MessageTypeEnum.TEXT:{const c=r;return y.jsx(D6,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const c=r;return y.jsx(A6,{title:c.title,text:c.text,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Te.MessageTypeEnum.MARKDOWN:{const c=r;return y.jsx(R6,{actionId:t,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},U6=(t,r)=>t.message._id===r.message._id&&t.message.reaction===r.message.reaction&&t.isLastMessage===r.isLastMessage&&t.isFirstMessageBySender===r.isFirstMessageBySender&&t.isLastMessageBySender===r.isLastMessageBySender,j6=E1.memo(L6,U6),H6="_ticontainer_xg0dn_1",I6="_tiblock_xg0dn_5",z6="_tidot_xg0dn_12",ks={ticontainer:H6,tiblock:I6,tidot:z6},G6=({isTyping:t=!1})=>y.jsx("div",{className:ks.ticontainer,children:y.jsx("div",{className:ks.tiblock,children:t?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")})]}):null})}),k6=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),q6=({messages:t,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=B.useRef(0),h=B.useRef(!0),m=B.useRef(null),p=B.useRef(null),b=B.useRef(null),_=lt(R=>R.settings.enableGeneralConditions);B.useLayoutEffect(()=>{if(t.length&&m.current&&(d.current<t.length||r)){if(p.current){const R=p.current.offsetTop;m.current.scrollTop=R}else if(b.current){const R=b.current.offsetTop;m.current.scrollTop=R}h.current&&(h.current=!1),d.current=t.length}},[t,h,r]);let x;const U=t.length;return y.jsxs("div",{ref:m,className:Q(pb.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[_&&y.jsx(iw,{}),y.jsxs("ul",{className:pb.messages,children:[t.map((R,q)=>{const z=F6(R,x),E=V6(R,q,t,r);x=R.sender.type;const w=q+1===U,S=R._id||`added-${q}`;return y.jsx(j6,{ref:w?b:null,message:R,commands:i,isLastMessage:w,isFirstMessageBySender:z,isLastMessageBySender:E,onButtonClick:u,onLinkClick:c,onReaction:s},w&&!r?"last":S)}),r&&y.jsx(Qv,{ref:p,message:k6,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:x!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(G6,{isTyping:!0})},"last")]})]})},F6=(t,r)=>!r||r!==t.sender.type,V6=(t,r,i,s)=>{const u=t.sender.type,c=i.length;return r+1===c?!(u===Te.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},P6="_bottomSheet_jp8dl_1",Y6="_bottomSheetOpen_jp8dl_15",X6="_bottomSheetClose_jp8dl_20",Or={bottomSheet:P6,bottomSheetOpen:Y6,bottomSheetClose:X6},Z6="_container_xc2nx_1",Yb={container:Z6},Q6=({contentUrl:t})=>{const r=lt(c=>c.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(c=>c||!!t)},[t]);const u=B.useMemo(()=>{if(t&&r){const c=new URL(t,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[t,r]);return y.jsx("div",{className:Q(Yb.container,Or.bottomSheet,{[Or.bottomSheetOpen]:!!t,[Or.bottomSheetClose]:i&&!t}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:Yb.iframe})})},K6="_container_6tt4m_1",$6={container:K6},W6=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),J6=()=>{const r=Ze()("powered-by");return r&&r.length?y.jsx("div",{className:Q($6.container,"chat__poweredBy"),children:y.jsx(xr,{options:{overrides:{a:W6}},children:r})}):null},n_=({className:t,children:r,...i})=>y.jsx(Su,{className:Q(el.buttonDefault,t),type:"button",...i,children:r}),lu=({className:t,children:r,...i})=>y.jsx(Su,{className:Q(el.buttonPrimary,t),...i,children:r}),eC="_container_h23mk_1",tC="_formContainer_h23mk_17",nC="_emailInput_h23mk_22",rC="_description_h23mk_52",aC="_actions_h23mk_57",iC="_validationError_h23mk_67",sC="_submitted_h23mk_74",Da={container:eC,formContainer:tC,emailInput:nC,description:rC,actions:aC,validationError:iC,submitted:sC},lC=({visible:t,onEmailExport:r,onClose:i})=>{const s=Ze(),[u,c]=B.useState(void 0),[d,h]=B.useState(!1),[m,p]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{t?(b.current?.focus(),h(!1),c(t)):u===!0&&c(!1)},[t,u]);const _=U=>{U.preventDefault(),m&&m.length>0&&(r(m),h(!0),setTimeout(i,3*1e3))},x=U=>{const R=U.target.value.trim(),q=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);p(q?R:"")};return y.jsxs("div",{className:Q(Da.container,Or.bottomSheet,{[Or.bottomSheetOpen]:u===!0,[Or.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(xr,{className:Da.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:_,className:Da.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:Da.emailInput,onChange:x}),m?.length===0?y.jsx("div",{className:Da.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:Da.actions,children:[y.jsx(n_,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(lu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:Da.submitted,children:s("export-transcript.email.success")})]})},oC="_inputContainer_fi5ao_1",uC={inputContainer:oC},cC="_blockUserInput_pot9c_1",fC={blockUserInput:cC},dC=({visible:t})=>{const r=Ze();return t?y.jsx("div",{className:Q(fC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},hC="_commandsDropdown_5ytuv_1",mC="_commands_5ytuv_1",pC="_command_5ytuv_1",gC="_commandActive_5ytuv_46",yC="_commandsSelections_5ytuv_55",Qs={commandsDropdown:hC,commands:mC,command:pC,commandActive:gC,commandsSelections:yC},bC=(t,r,i,s,u)=>{B.useEffect(()=>{const c=d=>{if(t.length)switch(d.key){case"Enter":i(t[r]);break;case"ArrowUp":s(h=>h>0?h-1:t.length-1);break;case"ArrowDown":s(h=>h<t.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[t,r,i,s,u])},vC=({text:t,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=B.useRef(null),c=Ze(),[d,h]=B.useState([]),[m,p]=B.useState(Xb(r)),[b,_]=B.useState(0),x=U=>i(`/${U}`);return Qh(u,()=>h([])),bC(d,b,x,_,h),B.useEffect(()=>{p(Xb(r))},[r]),B.useEffect(()=>{const U=t.length||0;U===0||U>m||!t.startsWith("/")?h([]):h(r.filter(_C(t))),_(0)},[r,t,m]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:Qs.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Qs.commands,role:"listbox",children:d.map((U,R)=>y.jsxs("li",{className:Q([Qs.command,b===R&&Qs.commandActive]),role:"option",onClick:()=>x(U),onMouseOver:()=>_(R),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:c(`commands.${U}`)})]},U))})}):null},Xb=t=>Math.max(...t.map(r=>r.length+1)),_C=t=>r=>{const i=`/${r}`;return i.startsWith(t)&&i.length>=t.length},Zb=3,EC=({commands:t,onSelectCommand:r})=>{const i=Ze(),[s,u]=B.useState(!1),c=p=>()=>{r(`/${p}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?t:t.slice(0,Zb);return y.jsxs("div",{className:Qs.commandsSelections,children:[m.map(p=>y.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${p}`),"data-title":i(`commands.${p}`),tabIndex:0,onClick:c(p),children:["/",p]},p)),m.length<t.length?y.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):m.length>Zb?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},SC="_callToActionContainer_d8izj_1",TC="_callToActionTitle_d8izj_23",AC="_rateOverlay_d8izj_30",xC="_body_d8izj_52",OC="_footer_d8izj_60",RC="_actions_d8izj_75",wC="_bubbles_d8izj_89",CC="_stars_d8izj_191",NC="_starsSmall_d8izj_205",MC="_starsLarge_d8izj_211",DC="_star_d8izj_191",LC="_starReadonly_d8izj_225",BC="_starIcon_d8izj_235",UC="_starsDescriptionContainer_d8izj_253",jC="_starsDescription_d8izj_253",zt={callToActionContainer:SC,callToActionTitle:TC,rateOverlay:AC,body:xC,footer:OC,actions:RC,bubbles:wC,stars:CC,starsSmall:NC,starsLarge:MC,star:DC,starReadonly:LC,starIcon:BC,starsDescriptionContainer:UC,starsDescription:jC},HC=({value:t,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return y.jsx("li",{className:Q(zt.star,{[zt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":t>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:c,children:y.jsx("span",{role:"img","aria-label":"Star",className:Q(zt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},Qb=5,r_=({value:t,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=B.useState(void 0),d=()=>{c(void 0)},h=p=>()=>{if(!i){const b=p+1;c(b)}},m=p=>()=>{s&&!i&&(s(p===0&&t===1?0:p+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:Q(zt.stars,{[zt.starsSmall]:r==="small",[zt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Qb).fill(0).map((p,b)=>y.jsx(HC,{value:u===void 0?t:u,index:b,count:Qb,readonly:i,onHover:h(b),onClick:m(b)},b))})},IC=({visible:t,onRate:r})=>{const i=Ze();return t?y.jsxs("div",{className:Q(zt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:Q(zt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(r_,{value:0,size:"small",onChange:r})]}):null},Dd=({isFirstMessageBySender:t,isLastMessageBySender:r,children:i})=>y.jsxs("div",{className:Q(ge.message,ge.messageBot,t&&ge.messageBotFirst,r&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Q(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:Q(ge.leftText,ge.bubbleContent),children:i})})]}),zC=({children:t})=>y.jsx("div",{className:Q(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:Q(ge.rightText,ge.bubbleContent),children:t})})}),GC=()=>{const t=Ze(),r=Cr(),i=lt(z=>z.chat.conversationRating),[s,u]=B.useState(i.rating?.value||0),[c,d]=B.useState(void 0),[h,m]=B.useState(void 0),[p,b]=B.useState({submitted:!1,feedback:""}),_=B.useRef(null),[x,U]=B.useState(!1);B.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),B.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),B.useEffect(()=>{_.current&&(_.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),B.useEffect(()=>{const z=s>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(z?.length?z:void 0)},[s,t]),B.useEffect(()=>{p.submitted?setTimeout(()=>U(!0),p.feedback.length?500:0):U(!1)},[p]);const R=z=>{z.preventDefault();const E=_.current?.value?.trim()||"";r(wx(s,E)),b({submitted:!0,feedback:E})},q=()=>{i.opener==="CLOSE_CHAT"?r(Uv()):i.opener==="RESTART_CHAT"?r(al()):r(RO())};return y.jsx("div",{className:Q(zt.rateOverlay,Or.bottomSheet,"chat__conversationRating__overlay",{[Or.bottomSheetOpen]:h===!0,[Or.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:R,children:[y.jsxs("div",{className:Q(zt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:Q(zt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(Dd,{isFirstMessageBySender:!0,isLastMessageBySender:!c,children:[y.jsx("h2",{children:t("conversation-rating.overlay.title")}),y.jsxs("div",{className:Q(zt.starsDescriptionContainer),children:[y.jsx(r_,{value:s,size:"large",readonly:p.submitted,onChange:u}),y.jsxs("div",{className:Q(zt.starsDescription),children:[y.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),c&&y.jsx(Dd,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!p.feedback.length,children:y.jsx("div",{children:c})}),!!p.feedback.length&&y.jsx(zC,{children:p.feedback}),x&&y.jsx(Dd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:Q(zt.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:_,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:Q(zt.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(lu,{type:"button",disabled:!s,onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(lu,{type:"submit",disabled:!s,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(n_,{onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},kC=({numberOfMessagesFromGuest:t})=>{const r=Cr(),i=lt(c=>c.chat.conversationRating),s=c=>{r(iu("CHAT",c))},u=!i.rating?.value&&t>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(IC,{visible:u,onRate:s}),y.jsx(GC,{})]}):null},qC=B.memo(kC),FC="_inputWrapper_e3h44_1",VC="_withOpenCommands_e3h44_14",PC="_messageInputWrapper_e3h44_20",YC="_messageInput_e3h44_20",XC="_buttons_e3h44_44",ZC="_button_e3h44_44",xi={inputWrapper:FC,withOpenCommands:VC,messageInputWrapper:PC,messageInput:YC,buttons:XC,button:ZC},QC="_audioRecorder_g845f_1",KC="_audioButton_g845f_6",$C="_recorderIcon_g845f_37",WC="_spinning_g845f_60",La={audioRecorder:QC,audioButton:KC,recorderIcon:$C,spinning:WC},Kb=2048,ou=16e3;class JC extends E1.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),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(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(Kb,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=Kb}}handleClickSubmitAudio(){const r=tN(this.leftchannel,this.recordingLength),i=nN(r,this.sampleRate||0),s=eN(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return y.jsxs("div",{className:La.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:Q(La.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:La.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:La.audioRecorder,children:[y.jsx("button",{className:Q(La.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:La.recorderIcon}),y.jsx("button",{className:Q(La.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const eN=t=>{const r=new ArrayBuffer(44+t.length*2),i=new DataView(r);zo(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),zo(i,8,"WAVE"),zo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,ou,!0),i.setUint32(28,ou*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),zo(i,36,"data"),i.setUint32(40,t.length*2,!0);const s=t.length;let u=44;const c=1;for(let d=0;d<s;d++)i.setInt16(u,t[d]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},zo=(t,r,i)=>{for(let s=0;s<i.length;s++)t.setUint8(r+s,i.charCodeAt(s))},tN=(t,r)=>{const i=new Float32Array(r);let s=0;const u=t.length;for(let c=0;c<u;c++){const d=t[c];i.set(d,s),s+=d.length}return i},nN=(t,r)=>{if(ou===r)return t;const i=r/ou,s=Math.round(t.length/i),u=new Float32Array(s);let c=0,d=0;for(;c<u.length;){const h=Math.round((c+1)*i);let m=0,p=0;for(let b=d;b<h&&b<t.length;b++)m+=t[b],p++;u[c]=m/p,c++,d=h}return u},rN=({disabled:t,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=Ze(),m=B.useRef(null),{enableSpeechSupport:p}=lt(R=>R.settings);B.useEffect(()=>{m.current?.focus()},[r]);const b=()=>{const R=m.current;R&&r.trim().length>=1&&c(r.trim())&&(R.value="",R.style.height="",R.focus())},_=R=>{R.preventDefault(),b()},x=R=>{const q=R.target.value;u(q),R.target.style.height="";const{scrollHeight:z}=R.target;R.target.style.height=`${z>150?150:z}px`},U=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||b(),R.preventDefault()):i&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return y.jsxs("form",{className:Q(xi.inputWrapper,i&&xi.withOpenCommands,"chat__textInput"),onSubmit:_,children:[y.jsx("div",{className:xi.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:xi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:x,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:Q(xi.buttons,"chat__buttons"),children:r.length||!p||navigator.mediaDevices===void 0?y.jsx("button",{className:Q(xi.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):p&&navigator.mediaDevices!==void 0&&y.jsx(JC,{translate:h,onAudioRecorded:d})})]})},aN="_quickReplies_83npe_1",iN="_quickReply_83npe_9",$b={quickReplies:aN,quickReply:iN},sN=({quickReplies:t,onQuickReplyClick:r})=>t.length?y.jsx("div",{className:Q($b.quickReplies,"chat__quickReplies"),children:t.map(i=>y.jsx(Su,{tabIndex:0,className:Q($b.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Wb=5e3,lN=1e3,oN=({isBotTyping:t,quickReplies:r,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:c,onAudioRecorded:d})=>{const[h,m]=B.useState(""),[p,b]=B.useState(!1),[_,x]=B.useState(!1),U=B.useRef(0),R=B.useRef(0);B.useEffect(()=>{if(p&&!t){const E=U.current?Date.now()-U.current:0;E>Wb?b(!1):setTimeout(()=>{b(!1)},Wb-E)}},[p,t]),B.useEffect(()=>{p&&(U.current=Date.now())},[p]);const q=E=>{const w=Date.now()-R.current<lN;return _?!1:t||w?(b(!0),!1):(u(E),m(""),R.current=Date.now(),!0)},z=E=>{m(E+" ")};return y.jsxs("div",{className:Q(uC.inputContainer),children:[y.jsx(sN,{quickReplies:r,onQuickReplyClick:c}),y.jsx(dC,{visible:p}),!p&&y.jsx(qC,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(vC,{text:h,commands:s,onSelectCommand:z,onVisibilityChange:x}),y.jsx(rN,{textInput:h,disabled:p,commandsVisible:_,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:q,onAudioRecorded:d}),!!s?.length&&y.jsx(EC,{commands:s,onSelectCommand:m})]})},uN=({clientName:t,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:c,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:p,onTranscriptExport:b,onTranscriptItemReaction:_})=>{const x=Cr(),U=lt(H=>H.connection.connectionState),{enableTranscriptExportEmail:R,commands:q}=lt(H=>H.settings),{showTranscriptMailOverlay:z,conversationRating:E}=lt(H=>H.chat),w=r.filter(H=>H.sender.type===su.GUEST).length;B.useEffect(()=>{if(U===Ia.CONNECTED){const H=hu.parse(window.location.search);x(Hv(t,H))}},[t,U,x]);const S=()=>{x(jv())};return y.jsxs("div",{className:cd.container,children:[y.jsxs("div",{className:Q([cd.chatcontent,(z||E?.opener)&&cd.accessabilityHidden]),children:[y.jsx(q6,{messages:r,isBotTyping:s,commands:q,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:_}),y.jsx(oN,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:w,commands:q,onQuickReplyClick:d,onTextInput:c,onAudioRecorded:p}),y.jsx(J6,{})]}),R&&y.jsx(lC,{visible:!!z,onEmailExport:b,onClose:S}),y.jsx(Q6,{contentUrl:u})]})},cN=t=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=t.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},fN=t=>({onRestartChat:()=>t(al()),onMessageFromUser:r=>t(cv(r)),onAudioRecorded:r=>t(Tx(r)),onActionFromUser:r=>t(r),onQuickReplyClick:r=>t(uv(r)),onNluEvent:r=>t(pv(r)),onButtonClick:r=>t(Nx(r)),onLinkClick:r=>t(gv(r)),onTranscriptExport:r=>t(xx(r)),onTranscriptItemReaction:(r,i)=>{t(Te.Actions.transcriptItemGuestReaction(r,i?.type||null,i?.category,i?.comment))}}),dN=VS(cN,fN)(uN),a_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),t},hN=t=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),t())},mN=({onClick:t})=>{const r=Ze();return a_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:hN(t),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},pN="_header_3gvbz_1",gN="_logoContainer_3gvbz_14",yN="_logo_3gvbz_14",bN="_actions_3gvbz_28",vN="_active_3gvbz_43",_N="_menuContainer_3gvbz_56",EN="_menu_3gvbz_56",SN="_divider_3gvbz_86",ia={header:pN,logoContainer:gN,logo:yN,actions:bN,active:vN,menuContainer:_N,menu:EN,divider:SN},TN=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return y.jsx("div",{})}},AN=B.forwardRef(({selected:t,item:r,onClick:i},s)=>{const u=Ze(),c=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":t,role:"option",className:r.withDivider?ia.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(TN,{icon:r.icon}),y.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),xN=(t,r)=>{const i=a_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:c,enableTranscriptExportEmail:d}=lt(p=>p.settings),h=lt(p=>p.chat.conversationRating.enabled);return B.useMemo(()=>{const p=[],b=s.filter(({visibility:_})=>t?_==="always"||_==="chat-only":_==="always"||_==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&u&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),r&&c&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),r&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),r&&h&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&b.length)){const _=p.pop();_&&s.length&&p.push({..._,withDivider:!0})}return p.push(...b),p},[t,r,c,d,u,h,i,s])},ON=({chatStarted:t,hasGuestMessages:r})=>{const i=Cr(),s=Ze(),[u,c]=B.useState(!1),[d,h]=B.useState(-1),m=B.useRef(null),p=B.useRef(null),b=B.useRef([]),_=xN(t,r);B.useEffect(()=>{b.current[d]?.focus()},[d]);const x=B.useCallback(()=>{i(r?iu("RESTART_CHAT"):al()),c(!1),h(0)},[r,i]),U=B.useCallback(z=>{switch(z.type){case"restart-chat":x();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(Ox());break;case"send-transcript":i(jv());break;case"rate-conversation":i(iu("MENU"));break;case"link":i(gv(z.url));break;case"action":i(JSON.parse(JSON.stringify(z.action)));break}c(!1)},[i,x,c]);B.useEffect(()=>{const z=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),U(_[d]);break;case"ArrowUp":h(w=>w>0?w-1:_.length-1);break;case"ArrowDown":h(w=>w<_.length-1?w+1:0);break;case"Escape":c(!1);break;case"Tab":d>-1&&c(!1);break}};return document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}},[u,d,_,h,c,U]),B.useEffect(()=>{u||h(-1)},[u,d]),Qh(p,()=>c(!1));const R=()=>{c(z=>!z)},q=()=>{setTimeout(()=>{const z=document.activeElement;p.current&&!p.current.contains(z)&&c(!1)},0)};return _.length?y.jsxs("div",{className:Q(ia.menuContainer),ref:p,children:[y.jsx("button",{ref:m,className:Q(u&&ia.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:R,onBlur:q,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),u&&y.jsx("nav",{className:ia.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:_.map((z,E)=>y.jsx(AN,{ref:w=>{b.current[E]=w},selected:d===E,item:z,onClick:()=>U(z)},z.id))})})]}):null},Jb=({className:t,chatStarted:r,...i})=>{const s=Cr(),u=lt(h=>h.chat.conversationRating),c=lt(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&c?s(iu("CLOSE_CHAT")):s(Uv())};return y.jsxs("div",{className:Q([ia.header,t]),...i,children:[y.jsx("div",{className:ia.logoContainer,children:y.jsx("div",{className:ia.logo})}),y.jsxs("div",{className:ia.actions,children:[y.jsx(ON,{chatStarted:r,hasGuestMessages:c}),y.jsx(mN,{onClick:d})]})]})},RN="_chatwindow_rkbir_1",wN="_chatwindowWithAside_rkbir_21",e1={chatwindow:RN,chatwindowWithAside:wN},i_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),t},CN="_sourceInfos_vei0l_1",NN="_waitForLoading_vei0l_24",MN="_loadingContent_vei0l_28",DN="_sourceHeader_vei0l_37",LN="_sourceHeaderIcon_vei0l_57",BN="_sourceContent_vei0l_61",UN="_openSourceButton_vei0l_69",jN="_sourceButtonLabel_vei0l_79",HN="_closeSourceInfosButton_vei0l_101",IN="_loadingSourceInfos_vei0l_125",zN="_loading_vei0l_28",GN="_loadingError_vei0l_139",kN="_highlightLoadingInfo_vei0l_155",qN="_highlightLoadingInfoInnerContainer_vei0l_169",FN="_highlightLoadingInfoContent_vei0l_178",VN="_highlightLoadingInfoCloseIcon_vei0l_198",PN="_highlightLoader_vei0l_203",YN="_highlightLoaderLoading_vei0l_210",Et={sourceInfos:CN,waitForLoading:NN,loadingContent:MN,sourceHeader:DN,sourceHeaderIcon:LN,sourceContent:BN,openSourceButton:UN,sourceButtonLabel:jN,closeSourceInfosButton:HN,loadingSourceInfos:IN,loading:zN,loadingError:GN,highlightLoadingInfo:kN,highlightLoadingInfoInnerContainer:qN,highlightLoadingInfoContent:FN,highlightLoadingInfoCloseIcon:VN,highlightLoader:PN,highlightLoaderLoading:YN},XN=({onClick:t})=>{const r=Ze();return y.jsx("button",{className:Q(Et.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},ZN=B.forwardRef(({sourceInfos:t,onClose:r,...i},s)=>y.jsxs("div",{className:Et.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:t?y.jsx("p",{id:"source-info-title",children:t.title}):y.jsx("p",{children:" "})}),y.jsx(XN,{onClick:r})]})),QN=({loading:t})=>y.jsx("div",{className:Et.highlightLoader,children:t&&y.jsx("div",{className:Et.highlightLoaderLoading})});/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:s_,setPrototypeOf:t1,isFrozen:KN,getPrototypeOf:$N,getOwnPropertyDescriptor:WN}=Object;let{freeze:Gt,seal:Tn,create:l_}=Object,{apply:ch,construct:fh}=typeof Reflect<"u"&&Reflect;Gt||(Gt=function(r){return r});Tn||(Tn=function(r){return r});ch||(ch=function(r,i){for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];return r.apply(i,u)});fh||(fh=function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return new r(...s)});const Go=kt(Array.prototype.forEach),JN=kt(Array.prototype.lastIndexOf),n1=kt(Array.prototype.pop),qs=kt(Array.prototype.push),e3=kt(Array.prototype.splice),Xo=kt(String.prototype.toLowerCase),Ld=kt(String.prototype.toString),Bd=kt(String.prototype.match),Fs=kt(String.prototype.replace),t3=kt(String.prototype.indexOf),n3=kt(String.prototype.trim),zn=kt(Object.prototype.hasOwnProperty),Ht=kt(RegExp.prototype.test),Vs=r3(TypeError);function kt(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return ch(t,r,s)}}function r3(t){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return fh(t,i)}}function Re(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xo;t1&&t1(t,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(KN(r)||(r[s]=c),u=c)}t[u]=!0}return t}function a3(t){for(let r=0;r<t.length;r++)zn(t,r)||(t[r]=null);return t}function Tr(t){const r=l_(null);for(const[i,s]of s_(t))zn(t,i)&&(Array.isArray(s)?r[i]=a3(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Tr(s):r[i]=s);return r}function Ps(t,r){for(;t!==null;){const s=WN(t,r);if(s){if(s.get)return kt(s.get);if(typeof s.value=="function")return kt(s.value)}t=$N(t)}function i(){return null}return i}const r1=Gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ud=Gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jd=Gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),i3=Gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hd=Gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),s3=Gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),a1=Gt(["#text"]),i1=Gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Id=Gt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),s1=Gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ko=Gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),l3=Tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o3=Tn(/<%[\w\W]*|[\w\W]*%>/gm),u3=Tn(/\$\{[\w\W]*/gm),c3=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),f3=Tn(/^aria-[\-\w]+$/),o_=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),d3=Tn(/^(?:\w+script|data):/i),h3=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u_=Tn(/^html$/i),m3=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i);var l1=Object.freeze({__proto__:null,ARIA_ATTR:f3,ATTR_WHITESPACE:h3,CUSTOM_ELEMENT:m3,DATA_ATTR:c3,DOCTYPE_NAME:u_,ERB_EXPR:o3,IS_ALLOWED_URI:o_,IS_SCRIPT_OR_DATA:d3,MUSTACHE_EXPR:l3,TMPLIT_EXPR:u3});const Ys={element:1,text:3,progressingInstruction:7,comment:8,document:9},p3=function(){return typeof window>"u"?null:window},g3=function(r,i){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const c="dompurify"+(s?"#"+s:"");try{return r.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},o1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p3();const r=le=>c_(le);if(r.version="3.2.7",r.removed=[],!t||!t.document||t.document.nodeType!==Ys.document||!t.Element)return r.isSupported=!1,r;let{document:i}=t;const s=i,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:p,NamedNodeMap:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:_,DOMParser:x,trustedTypes:U}=t,R=m.prototype,q=Ps(R,"cloneNode"),z=Ps(R,"remove"),E=Ps(R,"nextSibling"),w=Ps(R,"childNodes"),S=Ps(R,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let H,A="";const{implementation:Z,createNodeIterator:W,createDocumentFragment:ae,getElementsByTagName:ye}=i,{importNode:Ee}=s;let se=o1();r.isSupported=typeof s_=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Pe,DATA_ATTR:ve,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Ae}=l1;let{IS_ALLOWED_URI:O}=l1,k=null;const $=Re({},[...r1,...Ud,...jd,...Hd,...a1]);let Y=null;const te=Re({},[...i1,...Id,...s1,...ko]);let re=Object.seal(l_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,Je=null,Ue=!0,St=!0,qn=!1,Nr=!0,Qe=!1,qt=!0,On=!1,Di=!1,Li=!1,Tt=!1,qa=!1,oa=!1,Bi=!0,ua=!1;const xu="user-content-";let Fa=!0,ca=!1,Mr={},dn=null;const Nt=Re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rn=null;const Mt=Re({},["audio","video","img","source","image","track"]);let Ui=null;const il=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",nr="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let Vt=Ft,Dr=!1,rr=null;const Ou=Re({},[Va,nr,Ft],Ld);let fa=Re({},["mi","mo","mn","ms","mtext"]),da=Re({},["annotation-xml"]);const ji=Re({},["title","style","font","a","script"]);let wn=null;const Ru=["application/xhtml+xml","text/html"],sl="text/html";let rt=null,Fn=null;const Hi=i.createElement("form"),Ii=function(N){return N instanceof RegExp||N instanceof Function},zi=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Fn&&Fn===N)){if((!N||typeof N!="object")&&(N={}),N=Tr(N),wn=Ru.indexOf(N.PARSER_MEDIA_TYPE)===-1?sl:N.PARSER_MEDIA_TYPE,rt=wn==="application/xhtml+xml"?Ld:Xo,k=zn(N,"ALLOWED_TAGS")?Re({},N.ALLOWED_TAGS,rt):$,Y=zn(N,"ALLOWED_ATTR")?Re({},N.ALLOWED_ATTR,rt):te,rr=zn(N,"ALLOWED_NAMESPACES")?Re({},N.ALLOWED_NAMESPACES,Ld):Ou,Ui=zn(N,"ADD_URI_SAFE_ATTR")?Re(Tr(il),N.ADD_URI_SAFE_ATTR,rt):il,Rn=zn(N,"ADD_DATA_URI_TAGS")?Re(Tr(Mt),N.ADD_DATA_URI_TAGS,rt):Mt,dn=zn(N,"FORBID_CONTENTS")?Re({},N.FORBID_CONTENTS,rt):Nt,ue=zn(N,"FORBID_TAGS")?Re({},N.FORBID_TAGS,rt):Tr({}),Je=zn(N,"FORBID_ATTR")?Re({},N.FORBID_ATTR,rt):Tr({}),Mr=zn(N,"USE_PROFILES")?N.USE_PROFILES:!1,Ue=N.ALLOW_ARIA_ATTR!==!1,St=N.ALLOW_DATA_ATTR!==!1,qn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Nr=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=N.SAFE_FOR_TEMPLATES||!1,qt=N.SAFE_FOR_XML!==!1,On=N.WHOLE_DOCUMENT||!1,Tt=N.RETURN_DOM||!1,qa=N.RETURN_DOM_FRAGMENT||!1,oa=N.RETURN_TRUSTED_TYPE||!1,Li=N.FORCE_BODY||!1,Bi=N.SANITIZE_DOM!==!1,ua=N.SANITIZE_NAMED_PROPS||!1,Fa=N.KEEP_CONTENT!==!1,ca=N.IN_PLACE||!1,O=N.ALLOWED_URI_REGEXP||o_,Vt=N.NAMESPACE||Ft,fa=N.MATHML_TEXT_INTEGRATION_POINTS||fa,da=N.HTML_INTEGRATION_POINTS||da,re=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe&&(St=!1),qa&&(Tt=!0),Mr&&(k=Re({},a1),Y=[],Mr.html===!0&&(Re(k,r1),Re(Y,i1)),Mr.svg===!0&&(Re(k,Ud),Re(Y,Id),Re(Y,ko)),Mr.svgFilters===!0&&(Re(k,jd),Re(Y,Id),Re(Y,ko)),Mr.mathMl===!0&&(Re(k,Hd),Re(Y,s1),Re(Y,ko))),N.ADD_TAGS&&(k===$&&(k=Tr(k)),Re(k,N.ADD_TAGS,rt)),N.ADD_ATTR&&(Y===te&&(Y=Tr(Y)),Re(Y,N.ADD_ATTR,rt)),N.ADD_URI_SAFE_ATTR&&Re(Ui,N.ADD_URI_SAFE_ATTR,rt),N.FORBID_CONTENTS&&(dn===Nt&&(dn=Tr(dn)),Re(dn,N.FORBID_CONTENTS,rt)),Fa&&(k["#text"]=!0),On&&Re(k,["html","head","body"]),k.table&&(Re(k,["tbody"]),delete ue.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=N.TRUSTED_TYPES_POLICY,A=H.createHTML("")}else H===void 0&&(H=g3(U,u)),H!==null&&typeof A=="string"&&(A=H.createHTML(""));Gt&&Gt(N),Fn=N}},Cn=Re({},[...Ud,...jd,...i3]),ht=Re({},[...Hd,...s3]),Dt=function(N){let X=S(N);(!X||!X.tagName)&&(X={namespaceURI:Vt,tagName:"template"});const J=Xo(N.tagName),Fe=Xo(X.tagName);return rr[N.namespaceURI]?N.namespaceURI===nr?X.namespaceURI===Ft?J==="svg":X.namespaceURI===Va?J==="svg"&&(Fe==="annotation-xml"||fa[Fe]):!!Cn[J]:N.namespaceURI===Va?X.namespaceURI===Ft?J==="math":X.namespaceURI===nr?J==="math"&&da[Fe]:!!ht[J]:N.namespaceURI===Ft?X.namespaceURI===nr&&!da[Fe]||X.namespaceURI===Va&&!fa[Fe]?!1:!ht[J]&&(ji[J]||!Cn[J]):!!(wn==="application/xhtml+xml"&&rr[N.namespaceURI]):!1},At=function(N){qs(r.removed,{element:N});try{S(N).removeChild(N)}catch{z(N)}},Nn=function(N,X){try{qs(r.removed,{attribute:X.getAttributeNode(N),from:X})}catch{qs(r.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(Tt||qa)try{At(X)}catch{}else try{X.setAttribute(N,"")}catch{}},ll=function(N){let X=null,J=null;if(Li)N="<remove></remove>"+N;else{const Ke=Bd(N,/^[\r\n\t ]+/);J=Ke&&Ke[0]}wn==="application/xhtml+xml"&&Vt===Ft&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Fe=H?H.createHTML(N):N;if(Vt===Ft)try{X=new x().parseFromString(Fe,wn)}catch{}if(!X||!X.documentElement){X=Z.createDocument(Vt,"template",null);try{X.documentElement.innerHTML=Dr?A:Fe}catch{}}const mt=X.body||X.documentElement;return N&&J&&mt.insertBefore(i.createTextNode(J),mt.childNodes[0]||null),Vt===Ft?ye.call(X,On?"html":"body")[0]:On?X.documentElement:mt},ol=function(N){return W.call(N.ownerDocument||N,N,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Pa=function(N){return N instanceof _&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof b)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Lr=function(N){return typeof h=="function"&&N instanceof h};function Kt(le,N,X){Go(le,J=>{J.call(r,N,X,Fn)})}const ar=function(N){let X=null;if(Kt(se.beforeSanitizeElements,N,null),Pa(N))return At(N),!0;const J=rt(N.nodeName);if(Kt(se.uponSanitizeElement,N,{tagName:J,allowedTags:k}),qt&&N.hasChildNodes()&&!Lr(N.firstElementChild)&&Ht(/<[/\w!]/g,N.innerHTML)&&Ht(/<[/\w!]/g,N.textContent)||N.nodeType===Ys.progressingInstruction||qt&&N.nodeType===Ys.comment&&Ht(/<[/\w]/g,N.data))return At(N),!0;if(!k[J]||ue[J]){if(!ue[J]&&Br(J)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!dn[J]){const Fe=S(N)||N.parentNode,mt=w(N)||N.childNodes;if(mt&&Fe){const Ke=mt.length;for(let Lt=Ke-1;Lt>=0;--Lt){const Pt=q(mt[Lt],!0);Pt.__removalCount=(N.__removalCount||0)+1,Fe.insertBefore(Pt,E(N))}}}return At(N),!0}return N instanceof m&&!Dt(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&Ht(/<\/no(script|embed|frames)/i,N.innerHTML)?(At(N),!0):(Qe&&N.nodeType===Ys.text&&(X=N.textContent,Go([me,ce,Pe],Fe=>{X=Fs(X,Fe," ")}),N.textContent!==X&&(qs(r.removed,{element:N.cloneNode()}),N.textContent=X)),Kt(se.afterSanitizeElements,N,null),!1)},ir=function(N,X,J){if(Bi&&(X==="id"||X==="name")&&(J in i||J in Hi))return!1;if(!(St&&!Je[X]&&Ht(ve,X))){if(!(Ue&&Ht(G,X))){if(!Y[X]||Je[X]){if(!(Br(N)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,N)||re.tagNameCheck instanceof Function&&re.tagNameCheck(N))&&(re.attributeNameCheck instanceof RegExp&&Ht(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X,N))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J))))return!1}else if(!Ui[X]){if(!Ht(O,Fs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&t3(J,"data:")===0&&Rn[N])){if(!(qn&&!Ht(K,Fs(J,ee,"")))){if(J)return!1}}}}}}return!0},Br=function(N){return N!=="annotation-xml"&&Bd(N,Ae)},sr=function(N){Kt(se.beforeSanitizeAttributes,N,null);const{attributes:X}=N;if(!X||Pa(N))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Fe=X.length;for(;Fe--;){const mt=X[Fe],{name:Ke,namespaceURI:Lt,value:Pt}=mt,Mn=rt(Ke),$t=Pt;let at=Ke==="value"?$t:n3($t);if(J.attrName=Mn,J.attrValue=at,J.keepAttr=!0,J.forceKeepAttr=void 0,Kt(se.uponSanitizeAttribute,N,J),at=J.attrValue,ua&&(Mn==="id"||Mn==="name")&&(Nn(Ke,N),at=xu+at),qt&&Ht(/((--!?|])>)|<\/(style|title|textarea)/i,at)){Nn(Ke,N);continue}if(Mn==="attributename"&&Bd(at,"href")){Nn(Ke,N);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){Nn(Ke,N);continue}if(!Nr&&Ht(/\/>/i,at)){Nn(Ke,N);continue}Qe&&Go([me,ce,Pe],lr=>{at=Fs(at,lr," ")});const Gi=rt(N.nodeName);if(!ir(Gi,Mn,at)){Nn(Ke,N);continue}if(H&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Lt)switch(U.getAttributeType(Gi,Mn)){case"TrustedHTML":{at=H.createHTML(at);break}case"TrustedScriptURL":{at=H.createScriptURL(at);break}}if(at!==$t)try{Lt?N.setAttributeNS(Lt,Ke,at):N.setAttribute(Ke,at),Pa(N)?At(N):n1(r.removed)}catch{Nn(Ke,N)}}Kt(se.afterSanitizeAttributes,N,null)},ot=function le(N){let X=null;const J=ol(N);for(Kt(se.beforeSanitizeShadowDOM,N,null);X=J.nextNode();)Kt(se.uponSanitizeShadowNode,X,null),ar(X),sr(X),X.content instanceof c&&le(X.content);Kt(se.afterSanitizeShadowDOM,N,null)};return r.sanitize=function(le){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,J=null,Fe=null,mt=null;if(Dr=!le,Dr&&(le="<!-->"),typeof le!="string"&&!Lr(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Vs("dirty is not a string, aborting")}else throw Vs("toString is not a function");if(!r.isSupported)return le;if(Di||zi(N),r.removed=[],typeof le=="string"&&(ca=!1),ca){if(le.nodeName){const Pt=rt(le.nodeName);if(!k[Pt]||ue[Pt])throw Vs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=ll("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Ys.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!Tt&&!Qe&&!On&&le.indexOf("<")===-1)return H&&oa?H.createHTML(le):le;if(X=ll(le),!X)return Tt?null:oa?A:""}X&&Li&&At(X.firstChild);const Ke=ol(ca?le:X);for(;Fe=Ke.nextNode();)ar(Fe),sr(Fe),Fe.content instanceof c&&ot(Fe.content);if(ca)return le;if(Tt){if(qa)for(mt=ae.call(X.ownerDocument);X.firstChild;)mt.appendChild(X.firstChild);else mt=X;return(Y.shadowroot||Y.shadowrootmode)&&(mt=Ee.call(s,mt,!0)),mt}let Lt=On?X.outerHTML:X.innerHTML;return On&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ht(u_,X.ownerDocument.doctype.name)&&(Lt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
111
|
-
`+Lt),Qe&&Go([me,ce,Pe],Pt=>{Lt=Fs(Lt,Pt," ")}),H&&oa?H.createHTML(Lt):Lt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(le),Di=!0},r.clearConfig=function(){Fn=null,Di=!1},r.isValidAttribute=function(le,N,X){Fn||zi({});const J=rt(le),Fe=rt(N);return ir(J,Fe,X)},r.addHook=function(le,N){typeof N=="function"&&qs(se[le],N)},r.removeHook=function(le,N){if(N!==void 0){const X=JN(se[le],N);return X===-1?void 0:e3(se[le],X,1)[0]}return n1(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=o1()},r}var y3=c_();const b3=({onClose:t})=>{const r=Ze();return y.jsxs("div",{className:Et.highlightLoadingInfo,onClick:t,children:[y.jsx("div",{className:Et.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})}),y.jsxs("div",{className:Et.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:Et.highlightLoadingInfoContent,children:[y.jsx("h3",{children:r("source-infos.highlight-loading.title")}),y.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},v3=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),_3=({className:t,children:r,...i})=>y.jsx("a",{className:Q(el.button,el.buttonDefault,t),type:"button",role:"button",...i,children:r}),E3=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),S3=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Jv,{...r});case"PDF":return y.jsx(Wv,{...r});case"DOCX":return y.jsx(Kv,{...r});case"TEXT":return y.jsx(E3,{...r});default:return y.jsx($v,{...r})}},T3=({url:t,knowledgeBaseType:r})=>{const i=Ze();return y.jsx(_3,{className:Et.openSourceButton,href:t,target:"_blank",children:y.jsxs("div",{className:Et.sourceButtonLabel,children:[y.jsx("div",{className:Et.sourceHeaderIcon,children:y.jsx(S3,{type:r})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},A3=({sourceInfos:{content:t,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=B.useState(!s);B.useEffect(()=>{s&&c(!1)},[s]);const d=y3.sanitize(t,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Q(Et.sourceContent,t_.markdown),children:[y.jsx(xr,{options:{overrides:{a:v3}},children:d}),u&&y.jsx(b3,{onClose:()=>c(!1)})]}),y.jsx(T3,{url:r,knowledgeBaseType:i})]})},x3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,O3=()=>{const t=Ze();return y.jsxs("div",{className:Et.loadingError,children:[y.jsx("h1",{children:t("source-infos.error.title")}),y.jsx("img",{src:x3,title:t("source-infos.error.title")}),y.jsx("p",{children:t("source-infos.error.info")})]})},R3=()=>y.jsx("div",{className:Et.loadingSourceInfos,children:y.jsx("svg",{className:Et.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function w3({sourceInfos:t,onClose:r,threshold:i=100}){const s=B.useRef(null),[u,c]=B.useState(0),[d,h]=B.useState(!1),m=B.useRef(null),p=B.useRef(null),b=B.useCallback(R=>{m.current=R,h(!0)},[]),_=B.useCallback(R=>{if(m.current!==null&&d){const q=R-m.current;q>0&&c(q)}},[d]),x=B.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),U=B.useCallback(R=>{const q=A=>b(A.touches[0].clientY),z=A=>_(A.touches[0].clientY),E=()=>x(),w=A=>{A.preventDefault(),b(A.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=A=>_(A.clientY),H=()=>{x(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};R.addEventListener("touchstart",q),R.addEventListener("touchmove",z),R.addEventListener("touchend",E),R.addEventListener("mousedown",w),p.current=()=>{R.removeEventListener("touchstart",q),R.removeEventListener("touchmove",z),R.removeEventListener("touchend",E),R.removeEventListener("mousedown",w),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,_,x]);return B.useEffect(()=>{let R;return(()=>{s.current?(p.current?.(),U(s.current)):(R=new MutationObserver(()=>{s.current&&(p.current?.(),U(s.current),R?.disconnect())}),R.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{R?.disconnect(),p.current?.()}},[U,t]),{ref:s,dragOffsetY:u,isDragging:d}}const C3=t=>{const[r,i]=B.useState(!0);return B.useEffect(()=>{let s=null;return t?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!t),()=>{s&&clearTimeout(s)}},[t]),r},N3=()=>{const t=Cr(),r=lt(m=>m.chat.sourceInfos),i=i_(),s=B.useRef(null),u=C3(r);B.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=B.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),t(wO()))},[t,i]),{ref:d,dragOffsetY:h}=w3({onClose:c,sourceInfos:r});return r?y.jsx("dialog",{ref:s,className:Q(Et.sourceInfos,u?Et.waitForLoading:r.type==="loading"?Et.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(ZN,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?y.jsx(R3,{}):r.type==="loading-error"?y.jsx(O3,{}):y.jsxs(y.Fragment,{children:[y.jsx(QN,{loading:!r.highlighted}),y.jsx(A3,{sourceInfos:r})]})]})}):null},M3="_container_1aof3_1",D3="_body_1aof3_7",L3="_intro_1aof3_14",B3="_footer_1aof3_39",U3="_footnote_1aof3_43",j3="_containerWithFootnote_1aof3_58",H3="_startChatButton_1aof3_73",I3="_spinner_1aof3_88",z3="_formFields_1aof3_92",G3="_formField_1aof3_92",k3="_radio_1aof3_104",q3="_checkbox_1aof3_111",F3="_input_1aof3_119",V3="_inputLabel_1aof3_153",P3="_selectWrapper_1aof3_157",Y3="_select_1aof3_157",X3="_selectLabel_1aof3_203",_t={container:M3,body:D3,intro:L3,footer:B3,footnote:U3,containerWithFootnote:j3,startChatButton:H3,spinner:I3,formFields:z3,formField:G3,radio:k3,checkbox:q3,input:F3,inputLabel:V3,selectWrapper:P3,select:Y3,selectLabel:X3},Z3=({name:t,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:Q(_t.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[y.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:s,onChange:c}),y.jsx("div",{children:r})]})},Q3=({type:t,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:b})=>{const _=x=>{b(x.target.value)};return y.jsxs("label",{className:Q(_t.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:Q(_t.inputLabel),children:i}),y.jsx("input",{type:t,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:_})]})},K3=({name:t,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${t}-${r}`,h=m=>{c(m.target.value)};return y.jsxs("label",{className:Q(_t.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:t,value:r,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:Q(_t.label),children:i})]})},$3=({name:t,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:Q(_t.select,"chat__startScreen__select"),htmlFor:t,children:[y.jsx("div",{className:Q(_t.selectLabel),children:r}),y.jsx("div",{className:Q(_t.selectWrapper),children:y.jsx("select",{id:t,name:t,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,p])=>y.jsx("option",{value:m,selected:p===i,children:p}))})})]})},W3="start-screen.intro",J3="start-screen.start-chat",e8="start-screen.waiting-for-login",t8="start-screen.footnote",In="start-screen.form",u1=`${In}.fields`,n8=()=>{const t=Ze(),r=Cr(),i=Wh(),s=lt(R=>R.startScreen.loginRequestToken),u=lt(R=>R.settings.requiresUserAuthentication);B.useEffect(()=>{let R;if(s){const E=window.screenX+(window.outerWidth-600)/2,w=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${E},top=${w},resizable=yes,scrollbars=yes`);R=setInterval(()=>{S?.closed&&(r(AO()),clearInterval(R))},500)}return()=>{R&&clearInterval(R)}},[i,s,r]);const[c,d]=B.useState({}),h=()=>{const R=Object.entries(c).reduce((q,[z,E])=>({...q,[z]:E.value}),{});r(u?TO({loginRequestToken:Jo(),formValues:R}):_O({formValues:R}))},m=t(W3),p=t(s?e8:J3),b=t(t8),_=B.useMemo(()=>t(u1)?.split(";").map(R=>R.trim())??[],[t(u1)]);B.useEffect(()=>{_.length&&Object.keys(c).length===0&&d(_.reduce((R,q)=>({...R,[q]:r8(q,t)}),{}))},[t,_,c]);const x=R=>{R.preventDefault(),h()},U=R=>q=>{d(z=>({...z,[R]:{...z[R],value:q}}))};return y.jsxs("form",{onSubmit:x,className:Q(_t.container,b&&_t.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:Q(_t.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:Q(_t.intro,"chat__startScreen__intro"),children:y.jsx(xr,{options:{overrides:{a:c1}},children:m})}),y.jsx("div",{className:Q(_t.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:R,name:q,label:z,placeholder:E,defaultValue:w,options:S,required:H,multiple:A,min:Z,max:W,pattern:ae})=>y.jsx("div",{className:Q(_t.formField,"chat__startScreen__field"),children:(()=>{switch(R){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:z}),Object.entries(S||{}).map(([ye,Ee])=>y.jsx(K3,{name:q,value:ye,label:Ee,defaultChecked:ye===w,required:H,onChange:U(q)},ye))]});case"checkbox":return y.jsx(Z3,{name:q,label:z,defaultValue:w,required:H,onChange:U(q)});case"select":return y.jsx($3,{name:q,label:z,defaultValue:w,required:H,multiple:A,options:S,onChange:U(q)});default:return y.jsx(Q3,{type:R,name:q,label:z,placeholder:E,defaultValue:w,required:H,multiple:A,min:Z,max:W,pattern:ae,onChange:U(q)})}})()},q))})]}),y.jsxs("div",{className:Q(_t.footer,"chat__startScreen__footer"),children:[y.jsxs(lu,{type:"submit",className:_t.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:_t.spinner,children:y.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),y.jsx("div",{children:p})]}),b&&y.jsx("div",{className:_t.footnote,children:y.jsx(xr,{options:{overrides:{a:c1}},children:b})})]})]})},c1=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),r8=(t,r)=>{const i=r(`${In}.${t}.type`)||"text",s=r(`${In}.${t}.required`)==="true",u=r(`${In}.${t}.multiple`)==="true",c=r(`${In}.${t}.placeholder`),d=r(`${In}.${t}.label`)||"",h=r(`${In}.${t}.defaultValue`),m=r(`${In}.${t}.min`),p=r(`${In}.${t}.max`),b=r(`${In}.${t}.pattern`),_=i8(r(`${In}.${t}.options`));return{name:t,label:d,placeholder:c,value:a8(i,h,_)||"",defaultValue:h,options:_,type:i,required:s,multiple:u,min:m,max:p,pattern:b}},a8=(t,r,i)=>r||t==="select"&&Object.keys(i)[0]||"",i8=(t="")=>t.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),s8=()=>{const t=du();B.useEffect(()=>{window.document.documentElement.lang=t.locale},[t.locale])},Oi={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"},l8=({clientName:t})=>{s8();const r=Cr(),i=lt(b=>b.intl.messages),s=Ze(),u=lt(b=>b.settings.enableStartScreen),c=lt(b=>b.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const b=hu.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const _=x=>{switch(x.data.type){case Oi.TRIGGER_ACTION:r(x.data.action);break;case Oi.TRIGGER_STORY:r(pv(x.data.story));break;case Oi.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Oi.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Oi.CHAT_MESSAGE_FROM_GUEST:r(cv(x.data.text));break;case Oi.RESTART_CHAT:r(al());break}};return r(NO(t,b)),window.addEventListener("message",x=>_(x),!1),()=>window.removeEventListener("message",_)},[t,r]),B.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,p=u===!1||c==="HIDDEN";return y.jsx("div",{className:Q(e1.chatwindow,p&&e1.chatwindowWithAside,"chat__chatwindow",d),children:m?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(Jb,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(dN,{clientName:t})}),y.jsx("aside",{children:y.jsx(N3,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(Jb,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(n8,{})})]})})},o8=()=>{const t=Wh(),r=i_(),i=lt(u=>u.intl.locale),s=lt(u=>u.intl.messages);return y.jsx(MA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:Q([LA.app,r?"chat__small":"chat__large"]),children:y.jsx(l8,{clientName:t})})})};var zd,f1;function u8(){if(f1)return zd;f1=1;var t=Zv(),r=Kh(),i="Expected a function";function s(u,c,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),t(u,c,{leading:h,maxWait:c,trailing:m})}return zd=s,zd}var c8=u8();const f8=uu(c8);function d8(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function h8(t){return t}function m8(t,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||h8,c={};function d(h,m,p){p=p||1,Object.keys(h).forEach(function(b){const _=h[b],x=r.safe&&Array.isArray(_),U=Object.prototype.toString.call(_),R=d8(_),q=U==="[object Object]"||U==="[object Array]",z=m?m+i+u(b):u(b);if(!x&&!R&&q&&Object.keys(_).length&&(!r.maxDepth||p<s))return d(_,z,p+1);c[z]=_})}return d(t),c}const f_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
112
|
-
|
|
113
|
-
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
114
|
-
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},p8={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
115
|
-
|
|
116
|
-
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
117
|
-
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},g8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
118
|
-
|
|
119
|
-
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
120
|
-
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},y8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
121
|
-
|
|
122
|
-
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
123
|
-
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},b8=["de","en","fr","it"],d_={locale:"de",messages:f_},v8=(t,r)=>{if(b8.includes(t)){const i=_8(t),s=m8(r);return{...i,...s}}return r},_8=t=>{switch(t.toString()){case"en":return p8;case"fr":return g8;case"it":return y8;default:return f_}},E8=(t=S8,r)=>{switch(r.type){case qh:return Object.assign({},t,{connectionState:Ia.CONNECTING});case Fh:return Object.assign({},t,{connectionState:Ia.CONNECTED});case Vh:return Object.assign({},t,{connectionState:Ia.DISCONNECTED});case Ph:return Object.assign({},t,{connectionState:Ia.RECONNECTED});case Yh:return Object.assign({},t,{sessionId:r.sessionId});case bu:return Object.assign({},t,{sessionId:r.payload.sessionId,userId:r.payload.userId});case vu:return Object.assign({},t,{sessionId:void 0});default:return t}},S8={connectionState:Ia.DISCONNECTED,sessionId:void 0,userId:void 0},T8=(t=h1,r)=>{switch(r.type){case Mv:return h1;case bu:return Ba({type:"webclient.chat.started"}),t;case vu:return Ba({type:"webclient.chat.ended"}),t;case Te.ActionTypes.TYPING_ON:return Object.assign({},t,{isBotTyping:!0});case Te.ActionTypes.TYPING_OFF:return Object.assign({},t,{isBotTyping:!1});case Te.ActionTypes.MESSAGE_FROM_GUEST:case Te.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return d1(t,r.message);case Te.ActionTypes.MESSAGE_TO_GUEST:{Ba(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=t.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:s?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Ch:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case wh:return Ba(r.message),t;case Te.ActionTypes.EVENT_TO_GUEST:return Ba(r.event),t;case Te.ActionTypes.DRAWER_OPEN:return Object.assign({},t,{drawerContentUrl:r.payload.parameters.contentUrl});case Te.ActionTypes.DRAWER_CLOSE:return Object.assign({},t,{drawerContentUrl:void 0});case Te.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},t,{locale:r.payload.locale});case dv:return Ba(r),t;case hv:return Ba(r),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Mh:{const i=new Te.TextMessage(r.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:Jo()});return d1(t,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=t.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,r.payload.reaction?{reaction:{type:r.payload.reaction,category:r.payload.category,comment:r.payload.comment}}:{reaction:void 0}):s);return Object.assign({},t,{messages:i})}case Dh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},t,{conversationRating:i})}case Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...t.conversationRating,rating:r.payload};return Object.assign({},t,{conversationRating:i})}case Lv:{const i={...t.conversationRating,opener:r.payload.opener,...r.payload.defaultRating?{rating:{value:r.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Bv:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Bh:return{...t,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Lh:{const{highlighted:i}=r.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case fv:{const i=t.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}=r.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==s?t:i==="loading"||i==="loaded"&&h?{...t,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}}:t}case Uh:return{...t,sourceInfos:void 0};case Dv:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},d1=(t,r)=>{const i=t.messages[t.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?t:Object.assign({},t,{messages:t.messages.concat([r]),quickReplies:[]})},Ba=t=>{A8()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},A8=()=>typeof window<"u"&&window.self!==window.top,h1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},h_=Gh({name:"intl",initialState:d_,reducers:{updateIntl:(t,r)=>{t.locale=r.payload.language,t.messages=r.payload.messages}}}),{updateIntl:x8}=h_.actions,O8=h_.reducer,R8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},m_=Gh({name:"settings",initialState:R8,reducers:{setSettings(t,r){t.version&&t.version!==r.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=r.payload.version,t.requiresUserAuthentication=r.payload.requiresUserAuthentication,t.enableStartScreen=r.payload.enableStartScreen,t.enableStandaloneView=r.payload.enableStandaloneView,t.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,t.enableGeneralConditions=r.payload.enableGeneralConditions,t.enableSpeechSupport=r.payload.enableSpeechSupport,t.commands=r.payload.commands,t.menuItems=r.payload.menuItems||[])}}}),{setSettings:w8}=m_.actions,C8=m_.reducer,N8=vv({settings:C8,chat:T8,startScreen:xO,connection:E8,intl:O8}),M8="bubble-chat",p_="state-last-saved-at",g_="state",D8=t=>{try{if(!U8())return;const r=m1(t,p_);if(B8(r))return;{const i=m1(t,g_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},L8=(t,r)=>{try{const i=JSON.stringify(r);p1(t,g_,i);const s=new Date().toISOString();p1(t,p_,s)}catch(i){console.error(i)}},B8=t=>{if(t===null)return!1;const r=new Date(t);return r.setHours(r.getHours()+12),new Date>r},U8=()=>typeof localStorage<"u",m1=(t,r)=>{const i=y_(t,r);return localStorage.getItem(i)},p1=(t,r,i)=>{const s=y_(t,r);return localStorage.setItem(s,i)},y_=(t,r)=>`${M8}-${t}-${r}`,tr=Object.create(null);tr.open="0";tr.close="1";tr.ping="2";tr.pong="3";tr.message="4";tr.upgrade="5";tr.noop="6";const Zo=Object.create(null);Object.keys(tr).forEach(t=>{Zo[tr[t]]=t});const dh={type:"error",data:"parser error"},b_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",v_=typeof ArrayBuffer=="function",__=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Jh=({type:t,data:r},i,s)=>b_&&r instanceof Blob?i?s(r):g1(r,s):v_&&(r instanceof ArrayBuffer||__(r))?i?s(r):g1(new Blob([r]),s):s(tr[t]+(r||"")),g1=(t,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(t)};function y1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Gd;function j8(t,r){if(b_&&t.data instanceof Blob)return t.data.arrayBuffer().then(y1).then(r);if(v_&&(t.data instanceof ArrayBuffer||__(t.data)))return r(y1(t.data));Jh(t,!1,i=>{Gd||(Gd=new TextEncoder),r(Gd.encode(i))})}const b1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ks=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<b1.length;t++)Ks[b1.charCodeAt(t)]=t;const H8=t=>{let r=t.length*.75,i=t.length,s,u=0,c,d,h,m;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);const p=new ArrayBuffer(r),b=new Uint8Array(p);for(s=0;s<i;s+=4)c=Ks[t.charCodeAt(s)],d=Ks[t.charCodeAt(s+1)],h=Ks[t.charCodeAt(s+2)],m=Ks[t.charCodeAt(s+3)],b[u++]=c<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return p},I8=typeof ArrayBuffer=="function",em=(t,r)=>{if(typeof t!="string")return{type:"message",data:E_(t,r)};const i=t.charAt(0);return i==="b"?{type:"message",data:z8(t.substring(1),r)}:Zo[i]?t.length>1?{type:Zo[i],data:t.substring(1)}:{type:Zo[i]}:dh},z8=(t,r)=>{if(I8){const i=H8(t);return E_(i,r)}else return{base64:!0,data:t}},E_=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},S_="",G8=(t,r)=>{const i=t.length,s=new Array(i);let u=0;t.forEach((c,d)=>{Jh(c,!1,h=>{s[d]=h,++u===i&&r(s.join(S_))})})},k8=(t,r)=>{const i=t.split(S_),s=[];for(let u=0;u<i.length;u++){const c=em(i[u],r);if(s.push(c),c.type==="error")break}return s};function q8(){return new TransformStream({transform(t,r){j8(t,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let kd;function qo(t){return t.reduce((r,i)=>r+i.length,0)}function Fo(t,r){if(t[0].length===r)return t.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;u++)i[u]=t[0][s++],s===t[0].length&&(t.shift(),s=0);return t.length&&s<t[0].length&&(t[0]=t[0].slice(s)),i}function F8(t,r){kd||(kd=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(qo(i)<1)break;const m=Fo(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(qo(i)<2)break;const m=Fo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(qo(i)<8)break;const m=Fo(i,8),p=new DataView(m.buffer,m.byteOffset,m.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(dh);break}u=b*Math.pow(2,32)+p.getUint32(4),s=3}else{if(qo(i)<u)break;const m=Fo(i,u);h.enqueue(em(c?m:kd.decode(m),r)),s=0}if(u===0||u>t){h.enqueue(dh);break}}}})}const T_=4;function dt(t){if(t)return V8(t)}function V8(t){for(var r in dt.prototype)t[r]=dt.prototype[r];return t}dt.prototype.on=dt.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};dt.prototype.once=function(t,r){function i(){this.off(t,i),r.apply(this,arguments)}return i.fn=r,this.on(t,i),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+t],this};dt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+t],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};dt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Tu=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Sn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),P8="arraybuffer";function A_(t,...r){return r.reduce((i,s)=>(t.hasOwnProperty(s)&&(i[s]=t[s]),i),{})}const Y8=Sn.setTimeout,X8=Sn.clearTimeout;function Au(t,r){r.useNativeTimers?(t.setTimeoutFn=Y8.bind(Sn),t.clearTimeoutFn=X8.bind(Sn)):(t.setTimeoutFn=Sn.setTimeout.bind(Sn),t.clearTimeoutFn=Sn.clearTimeout.bind(Sn))}const Z8=1.33;function Q8(t){return typeof t=="string"?K8(t):Math.ceil((t.byteLength||t.size)*Z8)}function K8(t){let r=0,i=0;for(let s=0,u=t.length;s<u;s++)r=t.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function x_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function $8(t){let r="";for(let i in t)t.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r}function W8(t){let r={},i=t.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class J8 extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class tm extends dt{constructor(r){super(),this.writable=!1,Au(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new J8(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=em(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=$8(r);return i.length?"?"+i:""}}class eM extends tm{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};k8(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,G8(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=x_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let O_=!1;try{O_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const tM=O_;function nM(){}class rM extends eM{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class Jn extends dt{constructor(r,i,s){super(),this.createRequest=r,Au(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=A_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Jn.requestsCount++,Jn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=nM,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Jn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Jn.requestsCount=0;Jn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",v1);else if(typeof addEventListener=="function"){const t="onpagehide"in Sn?"pagehide":"unload";addEventListener(t,v1,!1)}}function v1(){for(let t in Jn.requests)Jn.requests.hasOwnProperty(t)&&Jn.requests[t].abort()}const aM=(function(){const t=R_({xdomain:!1});return t&&t.responseType!==null})();class iM extends rM{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=aM&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Jn(R_,this.uri(),r)}}function R_(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||tM))return new XMLHttpRequest}catch{}if(!r)try{return new Sn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const w_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class sM extends tm{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=w_?{}:A_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;Jh(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=x_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const qd=Sn.WebSocket||Sn.MozWebSocket;class lM extends sM{createSocket(r,i,s){return w_?new qd(r,i,s):i?new qd(r,i):new qd(r)}doWrite(r,i){this.ws.send(i)}}class oM extends tm{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=F8(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=q8();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),c())}).catch(h=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&Tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const uM={websocket:lM,webtransport:oM,polling:iM},cM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,fM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function hh(t){if(t.length>8e3)throw"URI too long";const r=t,i=t.indexOf("["),s=t.indexOf("]");i!=-1&&s!=-1&&(t=t.substring(0,i)+t.substring(i,s).replace(/:/g,";")+t.substring(s,t.length));let u=cM.exec(t||""),c={},d=14;for(;d--;)c[fM[d]]=u[d]||"";return i!=-1&&s!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=dM(c,c.path),c.queryKey=hM(c,c.query),c}function dM(t,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function hM(t,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const mh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qo=[];mh&&addEventListener("offline",()=>{Qo.forEach(t=>t())},!1);class sa extends dt{constructor(r,i){if(super(),this.binaryType=P8,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const s=hh(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=hh(i.host).host);Au(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=W8(this.opts.query)),mh&&(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"})},Qo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=T_,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&sa.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",sa.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=Q8(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Tu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(sa.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),mh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Qo.indexOf(this._offlineEventListener);s!==-1&&Qo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}sa.protocol=T_;class mM extends sa{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;sa.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;sa.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=i.name,this.emitReserved("upgradeError",x)}}))};function c(){s||(s=!0,b(),i.close(),i=null)}const d=_=>{const x=new Error("probe error: "+_);x.transport=i.name,c(),this.emitReserved("upgradeError",x)};function h(){d("transport closed")}function m(){d("socket closed")}function p(_){i&&_.name!==i.name&&c()}const b=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",p)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let pM=class extends mM{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>uM[u]).filter(u=>!!u)),super(r,s)}};function gM(t,r="",i){let s=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),s=hh(t)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const yM=typeof ArrayBuffer=="function",bM=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,C_=Object.prototype.toString,vM=typeof Blob=="function"||typeof Blob<"u"&&C_.call(Blob)==="[object BlobConstructor]",_M=typeof File=="function"||typeof File<"u"&&C_.call(File)==="[object FileConstructor]";function nm(t){return yM&&(t instanceof ArrayBuffer||bM(t))||vM&&t instanceof Blob||_M&&t instanceof File}function Ko(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,s=t.length;i<s;i++)if(Ko(t[i]))return!0;return!1}if(nm(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Ko(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&Ko(t[i]))return!0;return!1}function EM(t){const r=[],i=t.data,s=t;return s.data=ph(i,r),s.attachments=r.length,{packet:s,buffers:r}}function ph(t,r){if(!t)return t;if(nm(t)){const i={_placeholder:!0,num:r.length};return r.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[s]=ph(t[s],r);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=ph(t[s],r));return i}return t}function SM(t,r){return t.data=gh(t.data,r),delete t.attachments,t}function gh(t,r){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<r.length)return r[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=gh(t[i],r);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=gh(t[i],r));return t}const TM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],AM=5;var Ce;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ce||(Ce={}));class xM{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Ko(r)?this.encodeAsBinary({type:r.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ce.BINARY_EVENT||r.type===Ce.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=EM(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function _1(t){return Object.prototype.toString.call(t)==="[object Object]"}class rm extends dt{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const s=i.type===Ce.BINARY_EVENT;s||i.type===Ce.BINARY_ACK?(i.type=s?Ce.EVENT:Ce.ACK,this.reconstructor=new OM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(nm(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const s={type:Number(r.charAt(0))};if(Ce[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ce.BINARY_EVENT||s.type===Ce.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const d=r.substring(c,i);if(d!=Number(d)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const d=r.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(rm.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ce.CONNECT:return _1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||_1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&TM.indexOf(i[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class OM{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=SM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const RM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:rm,Encoder:xM,get PacketType(){return Ce},protocol:AM},Symbol.toStringTag,{value:"Module"}));function Gn(t,r,i){return t.on(r,i),function(){t.off(r,i)}}const wM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class N_ extends dt{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[Gn(r,"open",this.onopen.bind(this)),Gn(r,"packet",this.onpacket.bind(this)),Gn(r,"error",this.onerror.bind(this)),Gn(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var s,u,c;if(wM.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ce.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,_=i.pop();this._registerAckCallback(b,_),d.id=b}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(c),i.apply(this,h)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(d,h)=>d?u(d):s(h);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ce.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ce.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(r);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(r);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:Ce.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ce.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,r.data)}}}function Mi(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Mi.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*t);t=(Math.floor(r*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};Mi.prototype.reset=function(){this.attempts=0};Mi.prototype.setMin=function(t){this.ms=t};Mi.prototype.setMax=function(t){this.max=t};Mi.prototype.setJitter=function(t){this.jitter=t};class yh extends dt{constructor(r,i){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Au(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Mi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||RM;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new pM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=Gn(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=Gn(i,"error",c);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(Gn(r,"ping",this.onping.bind(this)),Gn(r,"data",this.ondata.bind(this)),Gn(r,"error",this.onerror.bind(this)),Gn(r,"close",this.onclose.bind(this)),Gn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){Tu(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new N_(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Xs={};function $o(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const i=gM(t,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Xs[u]&&c in Xs[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new yh(s,r):(Xs[u]||(Xs[u]=new yh(s,r)),m=Xs[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign($o,{Manager:yh,Socket:N_,io:$o,connect:$o});const CM=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...CO,...Sx,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],NM=({dispatch:t,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===kh){s?.disconnect(),t(DO());const d=`/chat?${hu.stringify(u.querystrings)}`;s=$o(`/${u.clientName}${d}`),s.on("action",t),s.on("connect",()=>t(LO())),s.on("disconnect",()=>t(BO())),s.on("reconnect",()=>t(UO())),s.on("set-translations",(h,m)=>{t(x8({language:h,messages:v8(h,m)}))}),s.on("set-settings",h=>{t(w8(h))}),s.on("enable-conversation-rating",h=>t(Rx(h))),s.on("speech-transcription",h=>t(Ax(h))),s.on("restore-client-state",h=>{t(MO(h.sessionId)),t(Cx(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{t({type:dv,devices:h,initial:m})}),s.on("restart-chat",()=>{t(al())}),s.on("login-success",h=>{t(EO({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===bu)s?.emit("start-chat",u.payload);else if(u.type===vu)s?.emit("terminate-session",u.payload);else if(u.type===Ex)s?.emit("get-started",JSON.stringify(u));else if(u.type===Nh)s?.emit("audio-message",u.buffer);else if(u.type===Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===mv){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else CM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},M_=jh(),MM={...D8(M_),intl:d_},bh=lO({middleware:t=>t().concat(NM),reducer:N8,preloadedState:MM});bh.subscribe(f8(()=>{const t=bh.getState();L8(M_,{connection:t.connection,startScreen:t.startScreen})},1e3));const DM=document.getElementById("root"),LM=X2.createRoot(DM);LM.render(y.jsx(YS,{store:bh,children:y.jsx(o8,{})}));
|
|
124
|
-
//# sourceMappingURL=index-B6tm9zK9.js.map
|