@botfabrik/engine-webclient 4.102.0 → 4.102.2

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.
@@ -0,0 +1,131 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();var mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bf={exports:{}},Tl={};/**
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 Sg;function nS(){if(Sg)return Tl;Sg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:h,ref:u!==void 0?u:null,props:f}}return Tl.Fragment=a,Tl.jsx=i,Tl.jsxs=i,Tl}var Eg;function aS(){return Eg||(Eg=1,bf.exports=nS()),bf.exports}var y=aS(),vf={exports:{}},Al={},_f={exports:{}},Sf={};/**
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 Tg;function rS(){return Tg||(Tg=1,(function(n){function a(L,J){var oe=L.length;L.push(J);e:for(;0<oe;){var ve=oe-1>>>1,de=L[ve];if(0<u(de,J))L[ve]=J,L[oe]=de,oe=ve;else break e}}function i(L){return L.length===0?null:L[0]}function s(L){if(L.length===0)return null;var J=L[0],oe=L.pop();if(oe!==J){L[0]=oe;e:for(var ve=0,de=L.length,x=de>>>1;ve<x;){var F=2*(ve+1)-1,X=L[F],W=F+1,ee=L[W];if(0>u(X,oe))W<de&&0>u(ee,X)?(L[ve]=ee,L[W]=oe,ve=W):(L[ve]=X,L[F]=oe,ve=F);else if(W<de&&0>u(ee,oe))L[ve]=ee,L[W]=oe,ve=W;else break e}}return J}function u(L,J){var oe=L.sortIndex-J.sortIndex;return oe!==0?oe:L.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var g=[],p=[],v=1,S=null,A=3,M=!1,_=!1,O=!1,E=!1,D=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var J=i(p);J!==null;){if(J.callback===null)s(p);else if(J.startTime<=L)s(p),J.sortIndex=J.expirationTime,a(g,J);else break;J=i(p)}}function w(L){if(O=!1,k(L),!_)if(i(g)!==null)_=!0,Z||(Z=!0,be());else{var J=i(p);J!==null&&se(w,J.startTime-L)}}var Z=!1,P=-1,ae=5,De=-1;function He(){return E?!0:!(n.unstable_now()-De<ae)}function pe(){if(E=!1,Z){var L=n.unstable_now();De=L;var J=!0;try{e:{_=!1,O&&(O=!1,I(P),P=-1),M=!0;var oe=A;try{t:{for(k(L),S=i(g);S!==null&&!(S.expirationTime>L&&He());){var ve=S.callback;if(typeof ve=="function"){S.callback=null,A=S.priorityLevel;var de=ve(S.expirationTime<=L);if(L=n.unstable_now(),typeof de=="function"){S.callback=de,k(L),J=!0;break t}S===i(g)&&s(g),k(L)}else s(g);S=i(g)}if(S!==null)J=!0;else{var x=i(p);x!==null&&se(w,x.startTime-L),J=!1}}break e}finally{S=null,A=oe,M=!1}J=void 0}}finally{J?be():Z=!1}}}var be;if(typeof H=="function")be=function(){H(pe)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,Se=K.port2;K.port1.onmessage=pe,be=function(){Se.postMessage(null)}}else be=function(){D(pe,0)};function se(L,J){P=D(function(){L(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(L){switch(A){case 1:case 2:case 3:var J=3;break;default:J=A}var oe=A;A=J;try{return L()}finally{A=oe}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(L,J){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var oe=A;A=L;try{return J()}finally{A=oe}},n.unstable_scheduleCallback=function(L,J,oe){var ve=n.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ve+oe:ve):oe=ve,L){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=oe+de,L={id:v++,callback:J,priorityLevel:L,startTime:oe,expirationTime:de,sortIndex:-1},oe>ve?(L.sortIndex=oe,a(p,L),i(g)===null&&L===i(p)&&(O?(I(P),P=-1):O=!0,se(w,oe-ve))):(L.sortIndex=de,a(g,L),_||M||(_=!0,Z||(Z=!0,be()))),L},n.unstable_shouldYield=He,n.unstable_wrapCallback=function(L){var J=A;return function(){var oe=A;A=J;try{return L.apply(this,arguments)}finally{A=oe}}}})(Sf)),Sf}var Ag;function iS(){return Ag||(Ag=1,_f.exports=rS()),_f.exports}var Ef={exports:{}},he={};/**
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 xg;function lS(){if(xg)return he;xg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),A=Symbol.iterator;function M(x){return x===null||typeof x!="object"?null:(x=A&&x[A]||x["@@iterator"],typeof x=="function"?x:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,E={};function D(x,F,X){this.props=x,this.context=F,this.refs=E,this.updater=X||_}D.prototype.isReactComponent={},D.prototype.setState=function(x,F){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,F,"setState")},D.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function I(){}I.prototype=D.prototype;function H(x,F,X){this.props=x,this.context=F,this.refs=E,this.updater=X||_}var k=H.prototype=new I;k.constructor=H,O(k,D.prototype),k.isPureReactComponent=!0;var w=Array.isArray;function Z(){}var P={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function De(x,F,X){var W=X.ref;return{$$typeof:n,type:x,key:F,ref:W!==void 0?W:null,props:X}}function He(x,F){return De(x.type,F,x.props)}function pe(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function be(x){var F={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(X){return F[X]})}var K=/\/+/g;function Se(x,F){return typeof x=="object"&&x!==null&&x.key!=null?be(""+x.key):F.toString(36)}function se(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(Z,Z):(x.status="pending",x.then(function(F){x.status==="pending"&&(x.status="fulfilled",x.value=F)},function(F){x.status==="pending"&&(x.status="rejected",x.reason=F)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function L(x,F,X,W,ee){var fe=typeof x;(fe==="undefined"||fe==="boolean")&&(x=null);var Ee=!1;if(x===null)Ee=!0;else switch(fe){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(x.$$typeof){case n:case a:Ee=!0;break;case v:return Ee=x._init,L(Ee(x._payload),F,X,W,ee)}}if(Ee)return ee=ee(x),Ee=W===""?"."+Se(x,0):W,w(ee)?(X="",Ee!=null&&(X=Ee.replace(K,"$&/")+"/"),L(ee,F,X,"",function(Xt){return Xt})):ee!=null&&(pe(ee)&&(ee=He(ee,X+(ee.key==null||x&&x.key===ee.key?"":(""+ee.key).replace(K,"$&/")+"/")+Ee)),F.push(ee)),1;Ee=0;var Pe=W===""?".":W+":";if(w(x))for(var Ie=0;Ie<x.length;Ie++)W=x[Ie],fe=Pe+Se(W,Ie),Ee+=L(W,F,X,fe,ee);else if(Ie=M(x),typeof Ie=="function")for(x=Ie.call(x),Ie=0;!(W=x.next()).done;)W=W.value,fe=Pe+Se(W,Ie++),Ee+=L(W,F,X,fe,ee);else if(fe==="object"){if(typeof x.then=="function")return L(se(x),F,X,W,ee);throw F=String(x),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function J(x,F,X){if(x==null)return x;var W=[],ee=0;return L(x,W,"","",function(fe){return F.call(X,fe,ee++)}),W}function oe(x){if(x._status===-1){var F=x._result;F=F(),F.then(function(X){(x._status===0||x._status===-1)&&(x._status=1,x._result=X)},function(X){(x._status===0||x._status===-1)&&(x._status=2,x._result=X)}),x._status===-1&&(x._status=0,x._result=F)}if(x._status===1)return x._result.default;throw x._result}var ve=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},de={map:J,forEach:function(x,F,X){J(x,function(){F.apply(this,arguments)},X)},count:function(x){var F=0;return J(x,function(){F++}),F},toArray:function(x){return J(x,function(F){return F})||[]},only:function(x){if(!pe(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return he.Activity=S,he.Children=de,he.Component=D,he.Fragment=i,he.Profiler=u,he.PureComponent=H,he.StrictMode=s,he.Suspense=g,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,he.__COMPILER_RUNTIME={__proto__:null,c:function(x){return P.H.useMemoCache(x)}},he.cache=function(x){return function(){return x.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(x,F,X){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var W=O({},x.props),ee=x.key;if(F!=null)for(fe in F.key!==void 0&&(ee=""+F.key),F)!ae.call(F,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&F.ref===void 0||(W[fe]=F[fe]);var fe=arguments.length-2;if(fe===1)W.children=X;else if(1<fe){for(var Ee=Array(fe),Pe=0;Pe<fe;Pe++)Ee[Pe]=arguments[Pe+2];W.children=Ee}return De(x.type,ee,W)},he.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},he.createElement=function(x,F,X){var W,ee={},fe=null;if(F!=null)for(W in F.key!==void 0&&(fe=""+F.key),F)ae.call(F,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ee[W]=F[W]);var Ee=arguments.length-2;if(Ee===1)ee.children=X;else if(1<Ee){for(var Pe=Array(Ee),Ie=0;Ie<Ee;Ie++)Pe[Ie]=arguments[Ie+2];ee.children=Pe}if(x&&x.defaultProps)for(W in Ee=x.defaultProps,Ee)ee[W]===void 0&&(ee[W]=Ee[W]);return De(x,fe,ee)},he.createRef=function(){return{current:null}},he.forwardRef=function(x){return{$$typeof:m,render:x}},he.isValidElement=pe,he.lazy=function(x){return{$$typeof:v,_payload:{_status:-1,_result:x},_init:oe}},he.memo=function(x,F){return{$$typeof:p,type:x,compare:F===void 0?null:F}},he.startTransition=function(x){var F=P.T,X={};P.T=X;try{var W=x(),ee=P.S;ee!==null&&ee(X,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(Z,ve)}catch(fe){ve(fe)}finally{F!==null&&X.types!==null&&(F.types=X.types),P.T=F}},he.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},he.use=function(x){return P.H.use(x)},he.useActionState=function(x,F,X){return P.H.useActionState(x,F,X)},he.useCallback=function(x,F){return P.H.useCallback(x,F)},he.useContext=function(x){return P.H.useContext(x)},he.useDebugValue=function(){},he.useDeferredValue=function(x,F){return P.H.useDeferredValue(x,F)},he.useEffect=function(x,F){return P.H.useEffect(x,F)},he.useEffectEvent=function(x){return P.H.useEffectEvent(x)},he.useId=function(){return P.H.useId()},he.useImperativeHandle=function(x,F,X){return P.H.useImperativeHandle(x,F,X)},he.useInsertionEffect=function(x,F){return P.H.useInsertionEffect(x,F)},he.useLayoutEffect=function(x,F){return P.H.useLayoutEffect(x,F)},he.useMemo=function(x,F){return P.H.useMemo(x,F)},he.useOptimistic=function(x,F){return P.H.useOptimistic(x,F)},he.useReducer=function(x,F,X){return P.H.useReducer(x,F,X)},he.useRef=function(x){return P.H.useRef(x)},he.useState=function(x){return P.H.useState(x)},he.useSyncExternalStore=function(x,F,X){return P.H.useSyncExternalStore(x,F,X)},he.useTransition=function(){return P.H.useTransition()},he.version="19.2.0",he}var Og;function Ko(){return Og||(Og=1,Ef.exports=lS()),Ef.exports}var Tf={exports:{}},Mt={};/**
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 Cg;function sS(){if(Cg)return Mt;Cg=1;var n=Ko();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; 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(a(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 f(g,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:g,containerInfo:p,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Mt.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return f(g,p,null,v)},Mt.flushSync=function(g){var p=h.T,v=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=p,s.p=v,s.d.f()}},Mt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},Mt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Mt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:A,fetchPriority:M}):v==="script"&&s.d.X(g,{crossOrigin:S,integrity:A,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Mt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},Mt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin);s.d.L(g,v,{crossOrigin:S,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})}},Mt.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},Mt.requestFormReset=function(g){s.d.r(g)},Mt.unstable_batchedUpdates=function(g,p){return g(p)},Mt.useFormState=function(g,p,v){return h.H.useFormState(g,p,v)},Mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Mt.version="19.2.0",Mt}var Rg;function oS(){if(Rg)return Tf.exports;Rg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Tf.exports=sS(),Tf.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 Ng;function uS(){if(Ng)return Al;Ng=1;var n=iS(),a=Ko(),i=oS();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===r)return g(o),e;if(c===l)return g(o),t;c=c.sibling}throw Error(s(188))}if(r.return!==l.return)r=o,l=c;else{for(var d=!1,b=o.child;b;){if(b===r){d=!0,r=o,l=c;break}if(b===l){d=!0,l=o,r=c;break}b=b.sibling}if(!d){for(b=c.child;b;){if(b===r){d=!0,r=c,l=o;break}if(b===l){d=!0,l=c,r=o;break}b=b.sibling}if(!d)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,A=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),H=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),He=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function be(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var K=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case D:return"Profiler";case E:return"StrictMode";case w:return"Suspense";case Z:return"SuspenseList";case De:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case H:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var se=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ve=[],de=-1;function x(e){return{current:e}}function F(e){0>de||(e.current=ve[de],ve[de]=null,de--)}function X(e,t){de++,ve[de]=e.current,e.current=t}var W=x(null),ee=x(null),fe=x(null),Ee=x(null);function Pe(e,t){switch(X(fe,t),X(ee,e),X(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vp(t),e=Yp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(W),X(W,e)}function Ie(){F(W),F(ee),F(fe)}function Xt(e){e.memoizedState!==null&&X(Ee,e);var t=W.current,r=Yp(t,e.type);t!==r&&(X(ee,e),X(W,r))}function Oa(e){ee.current===e&&(F(W),F(ee)),Ee.current===e&&(F(Ee),vl._currentValue=oe)}var pt,Dt;function rn(e){if(pt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);pt=t&&t[1]||"",Dt=-1<r.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+pt+e+Dt}var En=!1;function rr(e,t){if(!e||En)return"";En=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(G){var z=G}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(G){z=G}e.call(Y.prototype)}}else{try{throw Error()}catch(G){z=G}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(G){if(G&&z&&typeof G.stack=="string")return[G.stack,z.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 c=l.DetermineComponentFrameRoot(),d=c[0],b=c[1];if(d&&b){var T=d.split(`
44
+ `),j=b.split(`
45
+ `);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===j.length)for(l=T.length-1,o=j.length-1;1<=l&&0<=o&&T[l]!==j[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==j[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==j[o]){var q=`
46
+ `+T[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=o);break}}}finally{En=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?rn(r):""}function Ti(e,t){switch(e.tag){case 26:case 27:case 5:return rn(e.type);case 16:return rn("Lazy");case 13:return e.child!==t&&t!==null?rn("Suspense Fallback"):rn("Suspense");case 19:return rn("SuspenseList");case 0:case 15:return rr(e.type,!1);case 11:return rr(e.type.render,!1);case 1:return rr(e.type,!0);case 31:return rn("Activity");default:return""}}function Zn(e){try{var t="",r=null;do t+=Ti(e,r),r=e,e=e.return;while(e);return t}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var Ca=Object.prototype.hasOwnProperty,Ra=n.unstable_scheduleCallback,Br=n.unstable_cancelCallback,Ql=n.unstable_shouldYield,ou=n.unstable_requestPaint,Tt=n.unstable_now,ir=n.unstable_getCurrentPriorityLevel,Xn=n.unstable_ImmediatePriority,Qn=n.unstable_UserBlockingPriority,lr=n.unstable_NormalPriority,Pl=n.unstable_LowPriority,Ai=n.unstable_IdlePriority,xi=n.log,Kl=n.unstable_setDisableYieldValue,Mn=null,bt=null;function vt(e){if(typeof xi=="function"&&Kl(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Mn,e)}catch{}}var lt=Math.clz32?Math.clz32:uu,Oi=Math.log,Ci=Math.LN2;function uu(e){return e>>>=0,e===0?32:31-(Oi(e)/Ci|0)|0}var Pn=256,Kn=262144,Hr=4194304;function Qt(e){var t=e&42;if(t!==0)return t;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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 jr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~c,l!==0?o=Qt(l):(d&=b,d!==0?o=Qt(d):r||(r=b&~e,r!==0&&(o=Qt(r))))):(b=l&~c,b!==0?o=Qt(b):d!==0?o=Qt(d):r||(r=l&~e,r!==0&&(o=Qt(r)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:o}function sr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function st(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 $n(){var e=Hr;return Hr<<=1,(Hr&62914560)===0&&(Hr=4194304),e}function Ri(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Na(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ni(e,t,r,l,o,c){var d=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var b=e.entanglements,T=e.expirationTimes,j=e.hiddenUpdates;for(r=d&~r;0<r;){var q=31-lt(r),Y=1<<q;b[q]=0,T[q]=-1;var z=j[q];if(z!==null)for(j[q]=null,q=0;q<z.length;q++){var G=z[q];G!==null&&(G.lane&=-536870913)}r&=~Y}l!==0&&wi(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function wi(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-lt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|r&261930}function Mi(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-lt(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}function $l(e,t){var r=t&-t;return r=(r&42)!==0?1:It(r),(r&(e.suspendedLanes|t))!==0?0:r}function It(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 Tn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Di(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:mg(e.type))}function Li(e,t){var r=J.p;try{return J.p=e,t()}finally{J.p=r}}var ln=Math.random().toString(36).slice(2),ot="__reactFiber$"+ln,Ke="__reactProps$"+ln,Jn="__reactContainer$"+ln,Ur="__reactEvents$"+ln,Jl="__reactListeners$"+ln,Wl="__reactHandles$"+ln,es="__reactResources$"+ln,re="__reactMarker$"+ln;function C(e){delete e[ot],delete e[Ke],delete e[Ur],delete e[Jl],delete e[Wl]}function Q(e){var t=e[ot];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Jn]||r[ot]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Jp(e);e!==null;){if(r=e[ot])return r;e=Jp(e)}return t}e=r,r=e.parentNode}return null}function te(e){if(e=e[ot]||e[Jn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ue(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function We(e){var t=e[es];return t||(t=e[es]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function _e(e){e[re]=!0}var At=new Set,sn={};function kt(e,t){Dn(e,t),Dn(e+"Capture",t)}function Dn(e,t){for(sn[e]=t,e=0;e<t.length;e++)At.add(t[e])}var gt=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]*$"),Bi={},Hi={};function Qv(e){return Ca.call(Hi,e)?!0:Ca.call(Bi,e)?!1:gt.test(e)?Hi[e]=!0:(Bi[e]=!0,!1)}function ts(e,t,r){if(Qv(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function ns(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Wn(e,t,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+l)}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pv(e,t,r){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(d){r=""+d,c.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(d){r=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cu(e){if(!e._valueTracker){var t=jd(e)?"checked":"value";e._valueTracker=Pv(e,t,""+e[t])}}function Ud(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=jd(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function as(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 Kv=/[\n"\\]/g;function un(e){return e.replace(Kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fu(e,t,r,l,o,c,d,b){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+on(t)):e.value!==""+on(t)&&(e.value=""+on(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?hu(e,d,on(t)):r!=null?hu(e,d,on(r)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+on(b):e.removeAttribute("name")}function zd(e,t,r,l,o,c,d,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){cu(e);return}r=r!=null?""+on(r):"",t=t!=null?""+on(t):r,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),cu(e)}function hu(e,t,r){t==="number"&&as(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function zr(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+on(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Id(e,t,r){if(t!=null&&(t=""+on(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+on(r):""}function kd(e,t,r,l){if(t==null){if(l!=null){if(r!=null)throw Error(s(92));if(se(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),t=r}r=on(t),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l),cu(e)}function Ir(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var $v=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 Gd(e,t,r){var l=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,r):typeof r!="number"||r===0||$v.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function qd(e,t,r){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&r[o]!==l&&Gd(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&Gd(e,c,t[c])}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 Jv=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"]]),Wv=/^[\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 rs(e){return Wv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ea(){}var mu=null;function pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kr=null,Gr=null;function Fd(e){var t=te(e);if(t&&(e=t.stateNode)){var r=e[Ke]||null;e:switch(e=t.stateNode,t.type){case"input":if(fu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+un(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=l[Ke]||null;if(!o)throw Error(s(90));fu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<r.length;t++)l=r[t],l.form===e.form&&Ud(l)}break e;case"textarea":Id(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&zr(e,!!r.multiple,t,!1)}}}var gu=!1;function Vd(e,t,r){if(gu)return e(t,r);gu=!0;try{var l=e(t);return l}finally{if(gu=!1,(kr!==null||Gr!==null)&&(Ys(),kr&&(t=kr,e=Gr,Gr=kr=null,Fd(t),e)))for(t=0;t<e.length;t++)Fd(e[t])}}function ji(e,t){var r=e.stateNode;if(r===null)return null;var l=r[Ke]||null;if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(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(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=!1;if(ta)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){yu=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{yu=!1}var wa=null,bu=null,is=null;function Yd(){if(is)return is;var e,t=bu,r=t.length,l,o="value"in wa?wa.value:wa.textContent,c=o.length;for(e=0;e<r&&t[e]===o[e];e++);var d=r-e;for(l=1;l<=d&&t[r-l]===o[c-l];l++);return is=o.slice(e,1<l?1-l:void 0)}function ls(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ss(){return!0}function Zd(){return!1}function Gt(e){function t(r,l,o,c,d){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(r=e[b],this[b]=r?r(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ss:Zd,this.isPropagationStopped=Zd,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ss)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ss)},persist:function(){},isPersistent:ss}),t}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},os=Gt(or),zi=S({},or,{view:0,detail:0}),e_=Gt(zi),vu,_u,Ii,us=S({},zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eu,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!==Ii&&(Ii&&e.type==="mousemove"?(vu=e.screenX-Ii.screenX,_u=e.screenY-Ii.screenY):_u=vu=0,Ii=e),vu)},movementY:function(e){return"movementY"in e?e.movementY:_u}}),Xd=Gt(us),t_=S({},us,{dataTransfer:0}),n_=Gt(t_),a_=S({},zi,{relatedTarget:0}),Su=Gt(a_),r_=S({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),i_=Gt(r_),l_=S({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),s_=Gt(l_),o_=S({},or,{data:0}),Qd=Gt(o_),u_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c_={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"},f_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=f_[e])?!!t[e]:!1}function Eu(){return h_}var d_=S({},zi,{key:function(e){if(e.key){var t=u_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?c_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eu,charCode:function(e){return e.type==="keypress"?ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m_=Gt(d_),p_=S({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pd=Gt(p_),g_=S({},zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eu}),y_=Gt(g_),b_=S({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),v_=Gt(b_),__=S({},us,{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}),S_=Gt(__),E_=S({},or,{newState:0,oldState:0}),T_=Gt(E_),A_=[9,13,27,32],Tu=ta&&"CompositionEvent"in window,ki=null;ta&&"documentMode"in document&&(ki=document.documentMode);var x_=ta&&"TextEvent"in window&&!ki,Kd=ta&&(!Tu||ki&&8<ki&&11>=ki),$d=" ",Jd=!1;function Wd(e,t){switch(e){case"keyup":return A_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qr=!1;function O_(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(Jd=!0,$d);case"textInput":return e=t.data,e===$d&&Jd?null:e;default:return null}}function C_(e,t){if(qr)return e==="compositionend"||!Tu&&Wd(e,t)?(e=Yd(),is=bu=wa=null,qr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Kd&&t.locale!=="ko"?null:t.data;default:return null}}var R_={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 tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!R_[e.type]:t==="textarea"}function nm(e,t,r,l){kr?Gr?Gr.push(l):Gr=[l]:kr=l,t=Js(t,"onChange"),0<t.length&&(r=new os("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var Gi=null,qi=null;function N_(e){zp(e,0)}function cs(e){var t=Ue(e);if(Ud(t))return e}function am(e,t){if(e==="change")return t}var rm=!1;if(ta){var Au;if(ta){var xu="oninput"in document;if(!xu){var im=document.createElement("div");im.setAttribute("oninput","return;"),xu=typeof im.oninput=="function"}Au=xu}else Au=!1;rm=Au&&(!document.documentMode||9<document.documentMode)}function lm(){Gi&&(Gi.detachEvent("onpropertychange",sm),qi=Gi=null)}function sm(e){if(e.propertyName==="value"&&cs(qi)){var t=[];nm(t,qi,e,pu(e)),Vd(N_,t)}}function w_(e,t,r){e==="focusin"?(lm(),Gi=t,qi=r,Gi.attachEvent("onpropertychange",sm)):e==="focusout"&&lm()}function M_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cs(qi)}function D_(e,t){if(e==="click")return cs(t)}function L_(e,t){if(e==="input"||e==="change")return cs(t)}function B_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:B_;function Fi(e,t){if(Pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!Ca.call(t,o)||!Pt(e[o],t[o]))return!1}return!0}function om(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function um(e,t){var r=om(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=om(r)}}function cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=as(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=as(e.document)}return t}function Ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var H_=ta&&"documentMode"in document&&11>=document.documentMode,Fr=null,Cu=null,Vi=null,Ru=!1;function hm(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ru||Fr==null||Fr!==as(l)||(l=Fr,"selectionStart"in l&&Ou(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}),Vi&&Fi(Vi,l)||(Vi=l,l=Js(Cu,"onSelect"),0<l.length&&(t=new os("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=Fr)))}function ur(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Vr={animationend:ur("Animation","AnimationEnd"),animationiteration:ur("Animation","AnimationIteration"),animationstart:ur("Animation","AnimationStart"),transitionrun:ur("Transition","TransitionRun"),transitionstart:ur("Transition","TransitionStart"),transitioncancel:ur("Transition","TransitionCancel"),transitionend:ur("Transition","TransitionEnd")},Nu={},dm={};ta&&(dm=document.createElement("div").style,"AnimationEvent"in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),"TransitionEvent"in window||delete Vr.transitionend.transition);function cr(e){if(Nu[e])return Nu[e];if(!Vr[e])return e;var t=Vr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in dm)return Nu[e]=t[r];return e}var mm=cr("animationend"),pm=cr("animationiteration"),gm=cr("animationstart"),j_=cr("transitionrun"),U_=cr("transitionstart"),z_=cr("transitioncancel"),ym=cr("transitionend"),bm=new Map,wu="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(" ");wu.push("scrollEnd");function An(e,t){bm.set(e,t),kt(t,[e])}var fs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=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(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cn=[],Yr=0,Mu=0;function hs(){for(var e=Yr,t=Mu=Yr=0;t<e;){var r=cn[t];cn[t++]=null;var l=cn[t];cn[t++]=null;var o=cn[t];cn[t++]=null;var c=cn[t];if(cn[t++]=null,l!==null&&o!==null){var d=l.pending;d===null?o.next=o:(o.next=d.next,d.next=o),l.pending=o}c!==0&&vm(r,o,c)}}function ds(e,t,r,l){cn[Yr++]=e,cn[Yr++]=t,cn[Yr++]=r,cn[Yr++]=l,Mu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Du(e,t,r,l){return ds(e,t,r,l),ms(e)}function fr(e,t){return ds(e,null,null,t),ms(e)}function vm(e,t,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var o=!1,c=e.return;c!==null;)c.childLanes|=r,l=c.alternate,l!==null&&(l.childLanes|=r),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-lt(r),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=r|536870912),c):null}function ms(e){if(50<hl)throw hl=0,Gc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zr={};function I_(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,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 Kt(e,t,r,l){return new I_(e,t,r,l)}function Lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function na(e,t){var r=e.alternate;return r===null?(r=Kt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function _m(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ps(e,t,r,l,o,c){var d=0;if(l=e,typeof e=="function")Lu(e)&&(d=1);else if(typeof e=="string")d=V2(e,r,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case De:return e=Kt(31,r,t,o),e.elementType=De,e.lanes=c,e;case O:return hr(r.children,o,c,t);case E:d=8,o|=24;break;case D:return e=Kt(12,r,t,o|2),e.elementType=D,e.lanes=c,e;case w:return e=Kt(13,r,t,o),e.elementType=w,e.lanes=c,e;case Z:return e=Kt(19,r,t,o),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:d=10;break e;case I:d=9;break e;case k:d=11;break e;case P:d=14;break e;case ae:d=16,l=null;break e}d=29,r=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Kt(d,r,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function hr(e,t,r,l){return e=Kt(7,e,l,t),e.lanes=r,e}function Bu(e,t,r){return e=Kt(6,e,null,t),e.lanes=r,e}function Sm(e){var t=Kt(18,null,null,0);return t.stateNode=e,t}function Hu(e,t,r){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Em=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var r=Em.get(e);return r!==void 0?r:(t={value:e,source:t,stack:Zn(t)},Em.set(e,t),t)}return{value:e,source:t,stack:Zn(t)}}var Xr=[],Qr=0,gs=null,Yi=0,hn=[],dn=0,Ma=null,Ln=1,Bn="";function aa(e,t){Xr[Qr++]=Yi,Xr[Qr++]=gs,gs=e,Yi=t}function Tm(e,t,r){hn[dn++]=Ln,hn[dn++]=Bn,hn[dn++]=Ma,Ma=e;var l=Ln;e=Bn;var o=32-lt(l)-1;l&=~(1<<o),r+=1;var c=32-lt(t)+o;if(30<c){var d=o-o%5;c=(l&(1<<d)-1).toString(32),l>>=d,o-=d,Ln=1<<32-lt(t)+o|r<<o|l,Bn=c+e}else Ln=1<<c|r<<o|l,Bn=e}function ju(e){e.return!==null&&(aa(e,1),Tm(e,1,0))}function Uu(e){for(;e===gs;)gs=Xr[--Qr],Xr[Qr]=null,Yi=Xr[--Qr],Xr[Qr]=null;for(;e===Ma;)Ma=hn[--dn],hn[dn]=null,Bn=hn[--dn],hn[dn]=null,Ln=hn[--dn],hn[dn]=null}function Am(e,t){hn[dn++]=Ln,hn[dn++]=Bn,hn[dn++]=Ma,Ln=t.id,Bn=t.overflow,Ma=e}var xt=null,Ze=null,Re=!1,Da=null,mn=!1,zu=Error(s(519));function La(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(fn(t,e)),zu}function xm(e){var t=e.stateNode,r=e.type,l=e.memoizedProps;switch(t[ot]=e,t[Ke]=l,r){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(r=0;r<ml.length;r++)Ae(ml[r],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),zd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),kd(t,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||l.suppressHydrationWarning===!0||qp(t.textContent,r)?(l.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),l.onScroll!=null&&Ae("scroll",t),l.onScrollEnd!=null&&Ae("scrollend",t),l.onClick!=null&&(t.onclick=ea),t=!0):t=!1,t||La(e,!0)}function Om(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:xt=xt.return}}function Pr(e){if(e!==xt)return!1;if(!Re)return Om(e),Re=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||nf(e.type,e.memoizedProps)),r=!r),r&&Ze&&La(e),Om(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ze=$p(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ze=$p(e)}else t===27?(t=Ze,Xa(e.type)?(e=of,of=null,Ze=e):Ze=t):Ze=xt?gn(e.stateNode.nextSibling):null;return!0}function dr(){Ze=xt=null,Re=!1}function Iu(){var e=Da;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),Da=null),e}function Zi(e){Da===null?Da=[e]:Da.push(e)}var ku=x(null),mr=null,ra=null;function Ba(e,t,r){X(ku,t._currentValue),t._currentValue=r}function ia(e){e._currentValue=ku.current,F(ku)}function Gu(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function qu(e,t,r,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var d=o.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=o;for(var T=0;T<t.length;T++)if(b.context===t[T]){c.lanes|=r,b=c.alternate,b!==null&&(b.lanes|=r),Gu(c.return,r,e),l||(d=null);break e}c=b.next}}else if(o.tag===18){if(d=o.return,d===null)throw Error(s(341));d.lanes|=r,c=d.alternate,c!==null&&(c.lanes|=r),Gu(d,r,e),d=null}else d=o.child;if(d!==null)d.return=o;else for(d=o;d!==null;){if(d===e){d=null;break}if(o=d.sibling,o!==null){o.return=d.return,d=o;break}d=d.return}o=d}}function Kr(e,t,r,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var d=o.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var b=o.type;Pt(o.pendingProps.value,d.value)||(e!==null?e.push(b):e=[b])}}else if(o===Ee.current){if(d=o.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(vl):e=[vl])}o=o.return}e!==null&&qu(t,e,r,l),t.flags|=262144}function ys(e){for(e=e.firstContext;e!==null;){if(!Pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pr(e){mr=e,ra=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return Cm(mr,e)}function bs(e,t){return mr===null&&pr(e),Cm(e,t)}function Cm(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},ra===null){if(e===null)throw Error(s(308));ra=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ra=ra.next=t;return r}var k_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},G_=n.unstable_scheduleCallback,q_=n.unstable_NormalPriority,ut={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fu(){return{controller:new k_,data:new Map,refCount:0}}function Xi(e){e.refCount--,e.refCount===0&&G_(q_,function(){e.controller.abort()})}var Qi=null,Vu=0,$r=0,Jr=null;function F_(e,t){if(Qi===null){var r=Qi=[];Vu=0,$r=Xc(),Jr={status:"pending",value:void 0,then:function(l){r.push(l)}}}return Vu++,t.then(Rm,Rm),t}function Rm(){if(--Vu===0&&Qi!==null){Jr!==null&&(Jr.status="fulfilled");var e=Qi;Qi=null,$r=0,Jr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function V_(e,t){var r=[],l={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<r.length;o++)(0,r[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),l}var Nm=L.S;L.S=function(e,t){hp=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&F_(e,t),Nm!==null&&Nm(e,t)};var gr=x(null);function Yu(){var e=gr.current;return e!==null?e:Ye.pooledCache}function vs(e,t){t===null?X(gr,gr.current):X(gr,t.pool)}function wm(){var e=Yu();return e===null?null:{parent:ut._currentValue,pool:e}}var Wr=Error(s(460)),Zu=Error(s(474)),_s=Error(s(542)),Ss={then:function(){}};function Mm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Dm(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(ea,ea),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bm(e),e;default:if(typeof t.status=="string")t.then(ea,ea);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bm(e),e}throw br=t,Wr}}function yr(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(br=r,Wr):r}}var br=null;function Lm(){if(br===null)throw Error(s(459));var e=br;return br=null,e}function Bm(e){if(e===Wr||e===_s)throw Error(s(483))}var ei=null,Pi=0;function Es(e){var t=Pi;return Pi+=1,ei===null&&(ei=[]),Dm(ei,e,t)}function Ki(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ts(e,t){throw t.$$typeof===A?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Hm(e){function t(N,R){if(e){var B=N.deletions;B===null?(N.deletions=[R],N.flags|=16):B.push(R)}}function r(N,R){if(!e)return null;for(;R!==null;)t(N,R),R=R.sibling;return null}function l(N){for(var R=new Map;N!==null;)N.key!==null?R.set(N.key,N):R.set(N.index,N),N=N.sibling;return R}function o(N,R){return N=na(N,R),N.index=0,N.sibling=null,N}function c(N,R,B){return N.index=B,e?(B=N.alternate,B!==null?(B=B.index,B<R?(N.flags|=67108866,R):B):(N.flags|=67108866,R)):(N.flags|=1048576,R)}function d(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function b(N,R,B,V){return R===null||R.tag!==6?(R=Bu(B,N.mode,V),R.return=N,R):(R=o(R,B),R.return=N,R)}function T(N,R,B,V){var ue=B.type;return ue===O?q(N,R,B.props.children,V,B.key):R!==null&&(R.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&yr(ue)===R.type)?(R=o(R,B.props),Ki(R,B),R.return=N,R):(R=ps(B.type,B.key,B.props,null,N.mode,V),Ki(R,B),R.return=N,R)}function j(N,R,B,V){return R===null||R.tag!==4||R.stateNode.containerInfo!==B.containerInfo||R.stateNode.implementation!==B.implementation?(R=Hu(B,N.mode,V),R.return=N,R):(R=o(R,B.children||[]),R.return=N,R)}function q(N,R,B,V,ue){return R===null||R.tag!==7?(R=hr(B,N.mode,V,ue),R.return=N,R):(R=o(R,B),R.return=N,R)}function Y(N,R,B){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Bu(""+R,N.mode,B),R.return=N,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return B=ps(R.type,R.key,R.props,null,N.mode,B),Ki(B,R),B.return=N,B;case _:return R=Hu(R,N.mode,B),R.return=N,R;case ae:return R=yr(R),Y(N,R,B)}if(se(R)||be(R))return R=hr(R,N.mode,B,null),R.return=N,R;if(typeof R.then=="function")return Y(N,Es(R),B);if(R.$$typeof===H)return Y(N,bs(N,R),B);Ts(N,R)}return null}function z(N,R,B,V){var ue=R!==null?R.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ue!==null?null:b(N,R,""+B,V);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case M:return B.key===ue?T(N,R,B,V):null;case _:return B.key===ue?j(N,R,B,V):null;case ae:return B=yr(B),z(N,R,B,V)}if(se(B)||be(B))return ue!==null?null:q(N,R,B,V,null);if(typeof B.then=="function")return z(N,R,Es(B),V);if(B.$$typeof===H)return z(N,R,bs(N,B),V);Ts(N,B)}return null}function G(N,R,B,V,ue){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return N=N.get(B)||null,b(R,N,""+V,ue);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case M:return N=N.get(V.key===null?B:V.key)||null,T(R,N,V,ue);case _:return N=N.get(V.key===null?B:V.key)||null,j(R,N,V,ue);case ae:return V=yr(V),G(N,R,B,V,ue)}if(se(V)||be(V))return N=N.get(B)||null,q(R,N,V,ue,null);if(typeof V.then=="function")return G(N,R,B,Es(V),ue);if(V.$$typeof===H)return G(N,R,B,bs(R,V),ue);Ts(R,V)}return null}function ne(N,R,B,V){for(var ue=null,Le=null,ie=R,ye=R=0,Ce=null;ie!==null&&ye<B.length;ye++){ie.index>ye?(Ce=ie,ie=null):Ce=ie.sibling;var Be=z(N,ie,B[ye],V);if(Be===null){ie===null&&(ie=Ce);break}e&&ie&&Be.alternate===null&&t(N,ie),R=c(Be,R,ye),Le===null?ue=Be:Le.sibling=Be,Le=Be,ie=Ce}if(ye===B.length)return r(N,ie),Re&&aa(N,ye),ue;if(ie===null){for(;ye<B.length;ye++)ie=Y(N,B[ye],V),ie!==null&&(R=c(ie,R,ye),Le===null?ue=ie:Le.sibling=ie,Le=ie);return Re&&aa(N,ye),ue}for(ie=l(ie);ye<B.length;ye++)Ce=G(ie,N,ye,B[ye],V),Ce!==null&&(e&&Ce.alternate!==null&&ie.delete(Ce.key===null?ye:Ce.key),R=c(Ce,R,ye),Le===null?ue=Ce:Le.sibling=Ce,Le=Ce);return e&&ie.forEach(function(Ja){return t(N,Ja)}),Re&&aa(N,ye),ue}function ce(N,R,B,V){if(B==null)throw Error(s(151));for(var ue=null,Le=null,ie=R,ye=R=0,Ce=null,Be=B.next();ie!==null&&!Be.done;ye++,Be=B.next()){ie.index>ye?(Ce=ie,ie=null):Ce=ie.sibling;var Ja=z(N,ie,Be.value,V);if(Ja===null){ie===null&&(ie=Ce);break}e&&ie&&Ja.alternate===null&&t(N,ie),R=c(Ja,R,ye),Le===null?ue=Ja:Le.sibling=Ja,Le=Ja,ie=Ce}if(Be.done)return r(N,ie),Re&&aa(N,ye),ue;if(ie===null){for(;!Be.done;ye++,Be=B.next())Be=Y(N,Be.value,V),Be!==null&&(R=c(Be,R,ye),Le===null?ue=Be:Le.sibling=Be,Le=Be);return Re&&aa(N,ye),ue}for(ie=l(ie);!Be.done;ye++,Be=B.next())Be=G(ie,N,ye,Be.value,V),Be!==null&&(e&&Be.alternate!==null&&ie.delete(Be.key===null?ye:Be.key),R=c(Be,R,ye),Le===null?ue=Be:Le.sibling=Be,Le=Be);return e&&ie.forEach(function(tS){return t(N,tS)}),Re&&aa(N,ye),ue}function Ve(N,R,B,V){if(typeof B=="object"&&B!==null&&B.type===O&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case M:e:{for(var ue=B.key;R!==null;){if(R.key===ue){if(ue=B.type,ue===O){if(R.tag===7){r(N,R.sibling),V=o(R,B.props.children),V.return=N,N=V;break e}}else if(R.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&yr(ue)===R.type){r(N,R.sibling),V=o(R,B.props),Ki(V,B),V.return=N,N=V;break e}r(N,R);break}else t(N,R);R=R.sibling}B.type===O?(V=hr(B.props.children,N.mode,V,B.key),V.return=N,N=V):(V=ps(B.type,B.key,B.props,null,N.mode,V),Ki(V,B),V.return=N,N=V)}return d(N);case _:e:{for(ue=B.key;R!==null;){if(R.key===ue)if(R.tag===4&&R.stateNode.containerInfo===B.containerInfo&&R.stateNode.implementation===B.implementation){r(N,R.sibling),V=o(R,B.children||[]),V.return=N,N=V;break e}else{r(N,R);break}else t(N,R);R=R.sibling}V=Hu(B,N.mode,V),V.return=N,N=V}return d(N);case ae:return B=yr(B),Ve(N,R,B,V)}if(se(B))return ne(N,R,B,V);if(be(B)){if(ue=be(B),typeof ue!="function")throw Error(s(150));return B=ue.call(B),ce(N,R,B,V)}if(typeof B.then=="function")return Ve(N,R,Es(B),V);if(B.$$typeof===H)return Ve(N,R,bs(N,B),V);Ts(N,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,R!==null&&R.tag===6?(r(N,R.sibling),V=o(R,B),V.return=N,N=V):(r(N,R),V=Bu(B,N.mode,V),V.return=N,N=V),d(N)):r(N,R)}return function(N,R,B,V){try{Pi=0;var ue=Ve(N,R,B,V);return ei=null,ue}catch(ie){if(ie===Wr||ie===_s)throw ie;var Le=Kt(29,ie,null,N.mode);return Le.lanes=V,Le.return=N,Le}finally{}}}var vr=Hm(!0),jm=Hm(!1),Ha=!1;function Xu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=ms(e),vm(e,null,r),t}return ds(e,l,t,r),ms(e)}function $i(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Mi(e,r)}}function Pu(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var d={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?o=c=d:c=c.next=d,r=r.next}while(r!==null);c===null?o=c=t:c=c.next=t}else o=c=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Ku=!1;function Ji(){if(Ku){var e=Jr;if(e!==null)throw e}}function Wi(e,t,r,l){Ku=!1;var o=e.updateQueue;Ha=!1;var c=o.firstBaseUpdate,d=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var T=b,j=T.next;T.next=null,d===null?c=j:d.next=j,d=T;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==d&&(b===null?q.firstBaseUpdate=j:b.next=j,q.lastBaseUpdate=T))}if(c!==null){var Y=o.baseState;d=0,q=j=T=null,b=c;do{var z=b.lane&-536870913,G=z!==b.lane;if(G?(Oe&z)===z:(l&z)===z){z!==0&&z===$r&&(Ku=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,ce=b;z=t;var Ve=r;switch(ce.tag){case 1:if(ne=ce.payload,typeof ne=="function"){Y=ne.call(Ve,Y,z);break e}Y=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ce.payload,z=typeof ne=="function"?ne.call(Ve,Y,z):ne,z==null)break e;Y=S({},Y,z);break e;case 2:Ha=!0}}z=b.callback,z!==null&&(e.flags|=64,G&&(e.flags|=8192),G=o.callbacks,G===null?o.callbacks=[z]:G.push(z))}else G={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(j=q=G,T=Y):q=q.next=G,d|=z;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;G=b,b=G.next,G.next=null,o.lastBaseUpdate=G,o.shared.pending=null}}while(!0);q===null&&(T=Y),o.baseState=T,o.firstBaseUpdate=j,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),qa|=d,e.lanes=d,e.memoizedState=Y}}function Um(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function zm(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Um(r[e],t)}var ti=x(null),As=x(0);function Im(e,t){e=ma,X(As,e),X(ti,t),ma=e|t.baseLanes}function $u(){X(As,ma),X(ti,ti.current)}function Ju(){ma=As.current,F(ti),F(As)}var $t=x(null),pn=null;function za(e){var t=e.alternate;X(rt,rt.current&1),X($t,e),pn===null&&(t===null||ti.current!==null||t.memoizedState!==null)&&(pn=e)}function Wu(e){X(rt,rt.current),X($t,e),pn===null&&(pn=e)}function km(e){e.tag===22?(X(rt,rt.current),X($t,e),pn===null&&(pn=e)):Ia()}function Ia(){X(rt,rt.current),X($t,$t.current)}function Jt(e){F($t),pn===e&&(pn=null),F(rt)}var rt=x(0);function xs(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||lf(r)||sf(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var la=0,ge=null,qe=null,ct=null,Os=!1,ni=!1,_r=!1,Cs=0,el=0,ai=null,Y_=0;function et(){throw Error(s(321))}function ec(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Pt(e[r],t[r]))return!1;return!0}function tc(e,t,r,l,o,c){return la=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?T0:gc,_r=!1,c=r(l,o),_r=!1,ni&&(c=qm(t,r,l,o)),Gm(e),c}function Gm(e){L.H=al;var t=qe!==null&&qe.next!==null;if(la=0,ct=qe=ge=null,Os=!1,el=0,ai=null,t)throw Error(s(300));e===null||ft||(e=e.dependencies,e!==null&&ys(e)&&(ft=!0))}function qm(e,t,r,l){ge=e;var o=0;do{if(ni&&(ai=null),el=0,ni=!1,25<=o)throw Error(s(301));if(o+=1,ct=qe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=A0,c=t(r,l)}while(ni);return c}function Z_(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?tl(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(ge.flags|=1024),t}function nc(){var e=Cs!==0;return Cs=0,e}function ac(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function rc(e){if(Os){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Os=!1}la=0,ct=qe=ge=null,ni=!1,el=Cs=0,ai=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?ge.memoizedState=ct=e:ct=ct.next=e,ct}function it(){if(qe===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=ct===null?ge.memoizedState:ct.next;if(t!==null)ct=t,qe=e;else{if(e===null)throw ge.alternate===null?Error(s(467)):Error(s(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},ct===null?ge.memoizedState=ct=e:ct=ct.next=e}return ct}function Rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tl(e){var t=el;return el+=1,ai===null&&(ai=[]),e=Dm(ai,e,t),t=ge,(ct===null?t.memoizedState:ct.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?T0:gc),e}function Ns(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tl(e);if(e.$$typeof===H)return Ot(e)}throw Error(s(438,String(e)))}function ic(e){var t=null,r=ge.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Rs(),ge.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),l=0;l<e;l++)r[l]=He;return t.index++,r}function sa(e,t){return typeof t=="function"?t(e):t}function ws(e){var t=it();return lc(t,qe,e)}function lc(e,t,r){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var d=o.next;o.next=c.next,c.next=d}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var b=d=null,T=null,j=t,q=!1;do{var Y=j.lane&-536870913;if(Y!==j.lane?(Oe&Y)===Y:(la&Y)===Y){var z=j.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),Y===$r&&(q=!0);else if((la&z)===z){j=j.next,z===$r&&(q=!0);continue}else Y={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(b=T=Y,d=c):T=T.next=Y,ge.lanes|=z,qa|=z;Y=j.action,_r&&r(c,Y),c=j.hasEagerState?j.eagerState:r(c,Y)}else z={lane:Y,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(b=T=z,d=c):T=T.next=z,ge.lanes|=Y,qa|=Y;j=j.next}while(j!==null&&j!==t);if(T===null?d=c:T.next=b,!Pt(c,e.memoizedState)&&(ft=!0,q&&(r=Jr,r!==null)))throw r;e.memoizedState=c,e.baseState=d,e.baseQueue=T,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function sc(e){var t=it(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,c=t.memoizedState;if(o!==null){r.pending=null;var d=o=o.next;do c=e(c,d.action),d=d.next;while(d!==o);Pt(c,t.memoizedState)||(ft=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,l]}function Fm(e,t,r){var l=ge,o=it(),c=Re;if(c){if(r===void 0)throw Error(s(407));r=r()}else r=t();var d=!Pt((qe||o).memoizedState,r);if(d&&(o.memoizedState=r,ft=!0),o=o.queue,cc(Zm.bind(null,l,o,e),[e]),o.getSnapshot!==t||d||ct!==null&&ct.memoizedState.tag&1){if(l.flags|=2048,ri(9,{destroy:void 0},Ym.bind(null,l,o,r,t),null),Ye===null)throw Error(s(349));c||(la&127)!==0||Vm(l,t,r)}return r}function Vm(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ge.updateQueue,t===null?(t=Rs(),ge.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Ym(e,t,r,l){t.value=r,t.getSnapshot=l,Xm(t)&&Qm(e)}function Zm(e,t,r){return r(function(){Xm(t)&&Qm(e)})}function Xm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Pt(e,r)}catch{return!0}}function Qm(e){var t=fr(e,2);t!==null&&Zt(t,e,2)}function oc(e){var t=Lt();if(typeof e=="function"){var r=e;if(e=r(),_r){vt(!0);try{r()}finally{vt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e},t}function Pm(e,t,r,l){return e.baseState=r,lc(e,qe,typeof l=="function"?l:sa)}function X_(e,t,r,l,o){if(Ls(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};L.T!==null?r(!0):c.isTransition=!1,l(c),r=t.pending,r===null?(c.next=t.pending=c,Km(t,c)):(c.next=r.next,t.pending=r.next=c)}}function Km(e,t){var r=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=L.T,d={};L.T=d;try{var b=r(o,l),T=L.S;T!==null&&T(d,b),$m(e,t,b)}catch(j){uc(e,t,j)}finally{c!==null&&d.types!==null&&(c.types=d.types),L.T=c}}else try{c=r(o,l),$m(e,t,c)}catch(j){uc(e,t,j)}}function $m(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){Jm(e,t,l)},function(l){return uc(e,t,l)}):Jm(e,t,r)}function Jm(e,t,r){t.status="fulfilled",t.value=r,Wm(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Km(e,r)))}function uc(e,t,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=r,Wm(t),t=t.next;while(t!==l)}e.action=null}function Wm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function e0(e,t){return t}function t0(e,t){if(Re){var r=Ye.formState;if(r!==null){e:{var l=ge;if(Re){if(Ze){t:{for(var o=Ze,c=mn;o.nodeType!==8;){if(!c){o=null;break t}if(o=gn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ze=gn(o.nextSibling),l=o.data==="F!";break e}}La(l)}l=!1}l&&(t=r[0])}}return r=Lt(),r.memoizedState=r.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e0,lastRenderedState:t},r.queue=l,r=_0.bind(null,ge,l),l.dispatch=r,l=oc(!1),c=pc.bind(null,ge,!1,l.queue),l=Lt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,r=X_.bind(null,ge,o,c,r),o.dispatch=r,l.memoizedState=e,[t,r,!1]}function n0(e){var t=it();return a0(t,qe,e)}function a0(e,t,r){if(t=lc(e,t,e0)[0],e=ws(sa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=tl(t)}catch(d){throw d===Wr?_s:d}else l=t;t=it();var o=t.queue,c=o.dispatch;return r!==t.memoizedState&&(ge.flags|=2048,ri(9,{destroy:void 0},Q_.bind(null,o,r),null)),[l,c,e]}function Q_(e,t){e.action=t}function r0(e){var t=it(),r=qe;if(r!==null)return a0(t,r,e);it(),t=t.memoizedState,r=it();var l=r.queue.dispatch;return r.memoizedState=e,[t,l,!1]}function ri(e,t,r,l){return e={tag:e,create:r,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Rs(),ge.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e),e}function i0(){return it().memoizedState}function Ms(e,t,r,l){var o=Lt();ge.flags|=e,o.memoizedState=ri(1|t,{destroy:void 0},r,l===void 0?null:l)}function Ds(e,t,r,l){var o=it();l=l===void 0?null:l;var c=o.memoizedState.inst;qe!==null&&l!==null&&ec(l,qe.memoizedState.deps)?o.memoizedState=ri(t,c,r,l):(ge.flags|=e,o.memoizedState=ri(1|t,c,r,l))}function l0(e,t){Ms(8390656,8,e,t)}function cc(e,t){Ds(2048,8,e,t)}function P_(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Rs(),ge.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function s0(e){var t=it().memoizedState;return P_({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function o0(e,t){return Ds(4,2,e,t)}function u0(e,t){return Ds(4,4,e,t)}function c0(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function f0(e,t,r){r=r!=null?r.concat([e]):null,Ds(4,4,c0.bind(null,t,e),r)}function fc(){}function h0(e,t){var r=it();t=t===void 0?null:t;var l=r.memoizedState;return t!==null&&ec(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function d0(e,t){var r=it();t=t===void 0?null:t;var l=r.memoizedState;if(t!==null&&ec(t,l[1]))return l[0];if(l=e(),_r){vt(!0);try{e()}finally{vt(!1)}}return r.memoizedState=[l,t],l}function hc(e,t,r){return r===void 0||(la&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=mp(),ge.lanes|=e,qa|=e,r)}function m0(e,t,r,l){return Pt(r,t)?r:ti.current!==null?(e=hc(e,r,l),Pt(e,t)||(ft=!0),e):(la&42)===0||(la&1073741824)!==0&&(Oe&261930)===0?(ft=!0,e.memoizedState=r):(e=mp(),ge.lanes|=e,qa|=e,t)}function p0(e,t,r,l,o){var c=J.p;J.p=c!==0&&8>c?c:8;var d=L.T,b={};L.T=b,pc(e,!1,t,r);try{var T=o(),j=L.S;if(j!==null&&j(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=V_(T,l);nl(e,t,q,tn(e))}else nl(e,t,l,tn(e))}catch(Y){nl(e,t,{then:function(){},status:"rejected",reason:Y},tn())}finally{J.p=c,d!==null&&b.types!==null&&(d.types=b.types),L.T=d}}function K_(){}function dc(e,t,r,l){if(e.tag!==5)throw Error(s(476));var o=g0(e).queue;p0(e,o,t,oe,r===null?K_:function(){return y0(e),r(l)})}function g0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:oe},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function y0(e){var t=g0(e);t.next===null&&(t=e.alternate.memoizedState),nl(e,t.next.queue,{},tn())}function mc(){return Ot(vl)}function b0(){return it().memoizedState}function v0(){return it().memoizedState}function $_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=tn();e=ja(r);var l=Ua(t,e,r);l!==null&&(Zt(l,t,r),$i(l,t,r)),t={cache:Fu()},e.payload=t;return}t=t.return}}function J_(e,t,r){var l=tn();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)?S0(t,r):(r=Du(e,t,r,l),r!==null&&(Zt(r,e,l),E0(r,t,l)))}function _0(e,t,r){var l=tn();nl(e,t,r,l)}function nl(e,t,r,l){var o={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))S0(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,b=c(d,r);if(o.hasEagerState=!0,o.eagerState=b,Pt(b,d))return ds(e,t,o,0),Ye===null&&hs(),!1}catch{}finally{}if(r=Du(e,t,o,l),r!==null)return Zt(r,e,l),E0(r,t,l),!0}return!1}function pc(e,t,r,l){if(l={lane:2,revertLane:Xc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(s(479))}else t=Du(e,r,l,2),t!==null&&Zt(t,e,2)}function Ls(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function S0(e,t){ni=Os=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function E0(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,Mi(e,r)}}var al={readContext:Ot,use:Ns,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};al.useEffectEvent=et;var T0={readContext:Ot,use:Ns,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:l0,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Ms(4194308,4,c0.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){Ms(4,2,e,t)},useMemo:function(e,t){var r=Lt();t=t===void 0?null:t;var l=e();if(_r){vt(!0);try{e()}finally{vt(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Lt();if(r!==void 0){var o=r(t);if(_r){vt(!0);try{r(t)}finally{vt(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=J_.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=oc(e);var t=e.queue,r=_0.bind(null,ge,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:fc,useDeferredValue:function(e,t){var r=Lt();return hc(r,e,t)},useTransition:function(){var e=oc(!1);return e=p0.bind(null,ge,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=ge,o=Lt();if(Re){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ye===null)throw Error(s(349));(Oe&127)!==0||Vm(l,t,r)}o.memoizedState=r;var c={value:r,getSnapshot:t};return o.queue=c,l0(Zm.bind(null,l,c,e),[e]),l.flags|=2048,ri(9,{destroy:void 0},Ym.bind(null,l,c,r,t),null),r},useId:function(){var e=Lt(),t=Ye.identifierPrefix;if(Re){var r=Bn,l=Ln;r=(l&~(1<<32-lt(l)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Cs++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=Y_++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mc,useFormState:t0,useActionState:t0,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=pc.bind(null,ge,!0,r),r.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return Lt().memoizedState=$_.bind(null,ge)},useEffectEvent:function(e){var t=Lt(),r={impl:e};return t.memoizedState=r,function(){if((je&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},gc={readContext:Ot,use:Ns,useCallback:h0,useContext:Ot,useEffect:cc,useImperativeHandle:f0,useInsertionEffect:o0,useLayoutEffect:u0,useMemo:d0,useReducer:ws,useRef:i0,useState:function(){return ws(sa)},useDebugValue:fc,useDeferredValue:function(e,t){var r=it();return m0(r,qe.memoizedState,e,t)},useTransition:function(){var e=ws(sa)[0],t=it().memoizedState;return[typeof e=="boolean"?e:tl(e),t]},useSyncExternalStore:Fm,useId:b0,useHostTransitionStatus:mc,useFormState:n0,useActionState:n0,useOptimistic:function(e,t){var r=it();return Pm(r,qe,e,t)},useMemoCache:ic,useCacheRefresh:v0};gc.useEffectEvent=s0;var A0={readContext:Ot,use:Ns,useCallback:h0,useContext:Ot,useEffect:cc,useImperativeHandle:f0,useInsertionEffect:o0,useLayoutEffect:u0,useMemo:d0,useReducer:sc,useRef:i0,useState:function(){return sc(sa)},useDebugValue:fc,useDeferredValue:function(e,t){var r=it();return qe===null?hc(r,e,t):m0(r,qe.memoizedState,e,t)},useTransition:function(){var e=sc(sa)[0],t=it().memoizedState;return[typeof e=="boolean"?e:tl(e),t]},useSyncExternalStore:Fm,useId:b0,useHostTransitionStatus:mc,useFormState:r0,useActionState:r0,useOptimistic:function(e,t){var r=it();return qe!==null?Pm(r,qe,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:ic,useCacheRefresh:v0};A0.useEffectEvent=s0;function yc(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:S({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var bc={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=tn(),o=ja(l);o.payload=t,r!=null&&(o.callback=r),t=Ua(e,o,l),t!==null&&(Zt(t,e,l),$i(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=tn(),o=ja(l);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Ua(e,o,l),t!==null&&(Zt(t,e,l),$i(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tn(),l=ja(r);l.tag=2,t!=null&&(l.callback=t),t=Ua(e,l,r),t!==null&&(Zt(t,e,r),$i(t,e,r))}};function x0(e,t,r,l,o,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,d):t.prototype&&t.prototype.isPureReactComponent?!Fi(r,l)||!Fi(o,c):!0}function O0(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&bc.enqueueReplaceState(t,t.state,null)}function Sr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=S({},r));for(var o in e)r[o]===void 0&&(r[o]=e[o])}return r}function C0(e){fs(e)}function R0(e){console.error(e)}function N0(e){fs(e)}function Bs(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function w0(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function vc(e,t,r){return r=ja(r),r.tag=3,r.payload={element:null},r.callback=function(){Bs(e,t)},r}function M0(e){return e=ja(e),e.tag=3,e}function D0(e,t,r,l){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){w0(t,r,l)}}var d=r.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){w0(t,r,l),typeof o!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function W_(e,t,r,l,o){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&Kr(t,r,o,!0),r=$t.current,r!==null){switch(r.tag){case 31:case 13:return pn===null?Zs():r.alternate===null&&tt===0&&(tt=3),r.flags&=-257,r.flags|=65536,r.lanes=o,l===Ss?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),Vc(e,l,o)),!1;case 22:return r.flags|=65536,l===Ss?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),Vc(e,l,o)),!1}throw Error(s(435,r.tag))}return Vc(e,l,o),Zs(),!1}if(Re)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==zu&&(e=Error(s(422),{cause:l}),Zi(fn(e,r)))):(l!==zu&&(t=Error(s(423),{cause:l}),Zi(fn(t,r))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=fn(l,r),o=vc(e.stateNode,l,o),Pu(e,o),tt!==4&&(tt=2)),!1;var c=Error(s(520),{cause:l});if(c=fn(c,r),fl===null?fl=[c]:fl.push(c),tt!==4&&(tt=2),t===null)return!0;l=fn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=o&-o,r.lanes|=e,e=vc(r.stateNode,l,e),Pu(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Fa===null||!Fa.has(c))))return r.flags|=65536,o&=-o,r.lanes|=o,o=M0(o),D0(o,e,r,l),Pu(r,o),!1}r=r.return}while(r!==null);return!1}var _c=Error(s(461)),ft=!1;function Ct(e,t,r,l){t.child=e===null?jm(t,null,r,l):vr(t,e.child,r,l)}function L0(e,t,r,l,o){r=r.render;var c=t.ref;if("ref"in l){var d={};for(var b in l)b!=="ref"&&(d[b]=l[b])}else d=l;return pr(t),l=tc(e,t,r,d,c,o),b=nc(),e!==null&&!ft?(ac(e,t,o),oa(e,t,o)):(Re&&b&&ju(t),t.flags|=1,Ct(e,t,l,o),t.child)}function B0(e,t,r,l,o){if(e===null){var c=r.type;return typeof c=="function"&&!Lu(c)&&c.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=c,H0(e,t,c,l,o)):(e=ps(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Rc(e,o)){var d=c.memoizedProps;if(r=r.compare,r=r!==null?r:Fi,r(d,l)&&e.ref===t.ref)return oa(e,t,o)}return t.flags|=1,e=na(c,l),e.ref=t.ref,e.return=t,t.child=e}function H0(e,t,r,l,o){if(e!==null){var c=e.memoizedProps;if(Fi(c,l)&&e.ref===t.ref)if(ft=!1,t.pendingProps=l=c,Rc(e,o))(e.flags&131072)!==0&&(ft=!0);else return t.lanes=e.lanes,oa(e,t,o)}return Sc(e,t,r,l,o)}function j0(e,t,r,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|r:r,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return U0(e,t,c,r,l)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vs(t,c!==null?c.cachePool:null),c!==null?Im(t,c):$u(),km(t);else return l=t.lanes=536870912,U0(e,t,c!==null?c.baseLanes|r:r,r,l)}else c!==null?(vs(t,c.cachePool),Im(t,c),Ia(),t.memoizedState=null):(e!==null&&vs(t,null),$u(),Ia());return Ct(e,t,o,r),t.child}function rl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function U0(e,t,r,l,o){var c=Yu();return c=c===null?null:{parent:ut._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&vs(t,null),$u(),km(t),e!==null&&Kr(e,t,l,!0),t.childLanes=o,null}function Hs(e,t){return t=Us({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function z0(e,t,r){return vr(t,e.child,null,r),e=Hs(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function e2(e,t,r){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(l.mode==="hidden")return e=Hs(t,l),t.lanes=536870912,rl(null,e);if(Wu(t),(e=Ze)?(e=Kp(e,mn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ma!==null?{id:Ln,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},r=Sm(e),r.return=t,t.child=r,xt=t,Ze=null)):e=null,e===null)throw La(t);return t.lanes=536870912,null}return Hs(t,l)}var c=e.memoizedState;if(c!==null){var d=c.dehydrated;if(Wu(t),o)if(t.flags&256)t.flags&=-257,t=z0(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ft||Kr(e,t,r,!1),o=(r&e.childLanes)!==0,ft||o){if(l=Ye,l!==null&&(d=$l(l,r),d!==0&&d!==c.retryLane))throw c.retryLane=d,fr(e,d),Zt(l,e,d),_c;Zs(),t=z0(e,t,r)}else e=c.treeContext,Ze=gn(d.nextSibling),xt=t,Re=!0,Da=null,mn=!1,e!==null&&Am(t,e),t=Hs(t,l),t.flags|=4096;return t}return e=na(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function js(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Sc(e,t,r,l,o){return pr(t),r=tc(e,t,r,l,void 0,o),l=nc(),e!==null&&!ft?(ac(e,t,o),oa(e,t,o)):(Re&&l&&ju(t),t.flags|=1,Ct(e,t,r,o),t.child)}function I0(e,t,r,l,o,c){return pr(t),t.updateQueue=null,r=qm(t,l,r,o),Gm(e),l=nc(),e!==null&&!ft?(ac(e,t,c),oa(e,t,c)):(Re&&l&&ju(t),t.flags|=1,Ct(e,t,r,c),t.child)}function k0(e,t,r,l,o){if(pr(t),t.stateNode===null){var c=Zr,d=r.contextType;typeof d=="object"&&d!==null&&(c=Ot(d)),c=new r(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Xu(t),d=r.contextType,c.context=typeof d=="object"&&d!==null?Ot(d):Zr,c.state=t.memoizedState,d=r.getDerivedStateFromProps,typeof d=="function"&&(yc(t,r,d,l),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&bc.enqueueReplaceState(c,c.state,null),Wi(t,l,c,o),Ji(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,T=Sr(r,b);c.props=T;var j=c.context,q=r.contextType;d=Zr,typeof q=="object"&&q!==null&&(d=Ot(q));var Y=r.getDerivedStateFromProps;q=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||j!==d)&&O0(t,c,l,d),Ha=!1;var z=t.memoizedState;c.state=z,Wi(t,l,c,o),Ji(),j=t.memoizedState,b||z!==j||Ha?(typeof Y=="function"&&(yc(t,r,Y,l),j=t.memoizedState),(T=Ha||x0(t,r,T,l,z,j,d))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=j),c.props=l,c.state=j,c.context=d,l=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,Qu(e,t),d=t.memoizedProps,q=Sr(r,d),c.props=q,Y=t.pendingProps,z=c.context,j=r.contextType,T=Zr,typeof j=="object"&&j!==null&&(T=Ot(j)),b=r.getDerivedStateFromProps,(j=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==Y||z!==T)&&O0(t,c,l,T),Ha=!1,z=t.memoizedState,c.state=z,Wi(t,l,c,o),Ji();var G=t.memoizedState;d!==Y||z!==G||Ha||e!==null&&e.dependencies!==null&&ys(e.dependencies)?(typeof b=="function"&&(yc(t,r,b,l),G=t.memoizedState),(q=Ha||x0(t,r,q,l,z,G,T)||e!==null&&e.dependencies!==null&&ys(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,G,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,G,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=G),c.props=l,c.state=G,c.context=T,l=q):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,js(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=vr(t,e.child,null,o),t.child=vr(t,null,r,o)):Ct(e,t,r,o),t.memoizedState=c.state,e=t.child):e=oa(e,t,o),e}function G0(e,t,r,l){return dr(),t.flags|=256,Ct(e,t,r,l),t.child}var Ec={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:wm()}}function Ac(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=en),e}function q0(e,t,r){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),d&&(o=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?za(t):Ia(),(e=Ze)?(e=Kp(e,mn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ma!==null?{id:Ln,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},r=Sm(e),r.return=t,t.child=r,xt=t,Ze=null)):e=null,e===null)throw La(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var b=l.children;return l=l.fallback,o?(Ia(),o=t.mode,b=Us({mode:"hidden",children:b},o),l=hr(l,o,r,null),b.return=t,l.return=t,b.sibling=l,t.child=b,l=t.child,l.memoizedState=Tc(r),l.childLanes=Ac(e,d,r),t.memoizedState=Ec,rl(null,l)):(za(t),xc(t,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(c)t.flags&256?(za(t),t.flags&=-257,t=Oc(e,t,r)):t.memoizedState!==null?(Ia(),t.child=e.child,t.flags|=128,t=null):(Ia(),b=l.fallback,o=t.mode,l=Us({mode:"visible",children:l.children},o),b=hr(b,o,r,null),b.flags|=2,l.return=t,b.return=t,l.sibling=b,t.child=l,vr(t,e.child,null,r),l=t.child,l.memoizedState=Tc(r),l.childLanes=Ac(e,d,r),t.memoizedState=Ec,t=rl(null,l));else if(za(t),sf(b)){if(d=b.nextSibling&&b.nextSibling.dataset,d)var j=d.dgst;d=j,l=Error(s(419)),l.stack="",l.digest=d,Zi({value:l,source:null,stack:null}),t=Oc(e,t,r)}else if(ft||Kr(e,t,r,!1),d=(r&e.childLanes)!==0,ft||d){if(d=Ye,d!==null&&(l=$l(d,r),l!==0&&l!==T.retryLane))throw T.retryLane=l,fr(e,l),Zt(d,e,l),_c;lf(b)||Zs(),t=Oc(e,t,r)}else lf(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Ze=gn(b.nextSibling),xt=t,Re=!0,Da=null,mn=!1,e!==null&&Am(t,e),t=xc(t,l.children),t.flags|=4096);return t}return o?(Ia(),b=l.fallback,o=t.mode,T=e.child,j=T.sibling,l=na(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,j!==null?b=na(j,b):(b=hr(b,o,r,null),b.flags|=2),b.return=t,l.return=t,l.sibling=b,t.child=l,rl(null,l),l=t.child,b=e.child.memoizedState,b===null?b=Tc(r):(o=b.cachePool,o!==null?(T=ut._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=wm(),b={baseLanes:b.baseLanes|r,cachePool:o}),l.memoizedState=b,l.childLanes=Ac(e,d,r),t.memoizedState=Ec,rl(e.child,l)):(za(t),r=e.child,e=r.sibling,r=na(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=r,t.memoizedState=null,r)}function xc(e,t){return t=Us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Us(e,t){return e=Kt(22,e,null,t),e.lanes=0,e}function Oc(e,t,r){return vr(t,e.child,null,r),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function F0(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Gu(e.return,t,r)}function Cc(e,t,r,l,o,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o,treeForkCount:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=r,d.tailMode=o,d.treeForkCount=c)}function V0(e,t,r){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var d=rt.current,b=(d&2)!==0;if(b?(d=d&1|2,t.flags|=128):d&=1,X(rt,d),Ct(e,t,l,r),l=Re?Yi:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&F0(e,r,t);else if(e.tag===19)F0(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&xs(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Cc(t,!1,o,r,c,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xs(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Cc(t,!0,r,null,c,l);break;case"together":Cc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function oa(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Kr(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=na(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=na(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Rc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ys(e)))}function t2(e,t,r){switch(t.tag){case 3:Pe(t,t.stateNode.containerInfo),Ba(t,ut,e.memoizedState.cache),dr();break;case 27:case 5:Xt(t);break;case 4:Pe(t,t.stateNode.containerInfo);break;case 10:Ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(za(t),t.flags|=128,null):(r&t.child.childLanes)!==0?q0(e,t,r):(za(t),e=oa(e,t,r),e!==null?e.sibling:null);za(t);break;case 19:var o=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(Kr(e,t,r,!1),l=(r&t.childLanes)!==0),o){if(l)return V0(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),X(rt,rt.current),l)break;return null;case 22:return t.lanes=0,j0(e,t,r,t.pendingProps);case 24:Ba(t,ut,e.memoizedState.cache)}return oa(e,t,r)}function Y0(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)ft=!0;else{if(!Rc(e,r)&&(t.flags&128)===0)return ft=!1,t2(e,t,r);ft=(e.flags&131072)!==0}else ft=!1,Re&&(t.flags&1048576)!==0&&Tm(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=yr(t.elementType),t.type=e,typeof e=="function")Lu(e)?(l=Sr(e,l),t.tag=1,t=k0(null,t,e,l,r)):(t.tag=0,t=Sc(null,t,e,l,r));else{if(e!=null){var o=e.$$typeof;if(o===k){t.tag=11,t=L0(null,t,e,l,r);break e}else if(o===P){t.tag=14,t=B0(null,t,e,l,r);break e}}throw t=Se(e)||e,Error(s(306,t,""))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,o=Sr(l,t.pendingProps),k0(e,t,l,o,r);case 3:e:{if(Pe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,Qu(e,t),Wi(t,l,null,r);var d=t.memoizedState;if(l=d.cache,Ba(t,ut,l),l!==c.cache&&qu(t,[ut],r,!0),Ji(),l=d.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=G0(e,t,l,r);break e}else if(l!==o){o=fn(Error(s(424)),t),Zi(o),t=G0(e,t,l,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=gn(e.firstChild),xt=t,Re=!0,Da=null,mn=!0,r=jm(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(dr(),l===o){t=oa(e,t,r);break e}Ct(e,t,l,r)}t=t.child}return t;case 26:return js(e,t),e===null?(r=ng(t.type,null,t.pendingProps,null))?t.memoizedState=r:Re||(r=t.type,e=t.pendingProps,l=Ws(fe.current).createElement(r),l[ot]=t,l[Ke]=e,Rt(l,r,e),_e(l),t.stateNode=l):t.memoizedState=ng(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xt(t),e===null&&Re&&(l=t.stateNode=Wp(t.type,t.pendingProps,fe.current),xt=t,mn=!0,o=Ze,Xa(t.type)?(of=o,Ze=gn(l.firstChild)):Ze=o),Ct(e,t,t.pendingProps.children,r),js(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=l=Ze)&&(l=M2(l,t.type,t.pendingProps,mn),l!==null?(t.stateNode=l,xt=t,Ze=gn(l.firstChild),mn=!1,o=!0):o=!1),o||La(t)),Xt(t),o=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,l=c.children,nf(o,c)?l=null:d!==null&&nf(o,d)&&(t.flags|=32),t.memoizedState!==null&&(o=tc(e,t,Z_,null,null,r),vl._currentValue=o),js(e,t),Ct(e,t,l,r),t.child;case 6:return e===null&&Re&&((e=r=Ze)&&(r=D2(r,t.pendingProps,mn),r!==null?(t.stateNode=r,xt=t,Ze=null,e=!0):e=!1),e||La(t)),null;case 13:return q0(e,t,r);case 4:return Pe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=vr(t,null,l,r):Ct(e,t,l,r),t.child;case 11:return L0(e,t,t.type,t.pendingProps,r);case 7:return Ct(e,t,t.pendingProps,r),t.child;case 8:return Ct(e,t,t.pendingProps.children,r),t.child;case 12:return Ct(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,Ba(t,t.type,l.value),Ct(e,t,l.children,r),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,pr(t),o=Ot(o),l=l(o),t.flags|=1,Ct(e,t,l,r),t.child;case 14:return B0(e,t,t.type,t.pendingProps,r);case 15:return H0(e,t,t.type,t.pendingProps,r);case 19:return V0(e,t,r);case 31:return e2(e,t,r);case 22:return j0(e,t,r,t.pendingProps);case 24:return pr(t),l=Ot(ut),e===null?(o=Yu(),o===null&&(o=Ye,c=Fu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=r),o=c),t.memoizedState={parent:l,cache:o},Xu(t),Ba(t,ut,o)):((e.lanes&r)!==0&&(Qu(e,t),Wi(t,null,null,r),Ji()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ba(t,ut,l)):(l=c.cache,Ba(t,ut,l),l!==o.cache&&qu(t,[ut],r,!0))),Ct(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ua(e){e.flags|=4}function Nc(e,t,r,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(bp())e.flags|=8192;else throw br=Ss,Zu}else e.flags&=-16777217}function Z0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sg(t))if(bp())e.flags|=8192;else throw br=Ss,Zu}function zs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$n():536870912,e.lanes|=t,oi|=t)}function il(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=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;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function n2(e,t,r){var l=t.pendingProps;switch(Uu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ia(ut),Ie(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pr(t)?ua(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Iu())),Xe(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(ua(t),c!==null?(Xe(t),Z0(t,c)):(Xe(t),Nc(t,o,null,l,r))):c?c!==e.memoizedState?(ua(t),Xe(t),Z0(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ua(t),Xe(t),Nc(t,o,e,l,r)),null;case 27:if(Oa(t),r=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ua(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Xe(t),null}e=W.current,Pr(t)?xm(t):(e=Wp(o,l,r),t.stateNode=e,ua(t))}return Xe(t),null;case 5:if(Oa(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ua(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Xe(t),null}if(c=W.current,Pr(t))xm(t);else{var d=Ws(fe.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?d.createElement(o,{is:l.is}):d.createElement(o)}}c[ot]=t,c[Ke]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=c;e:switch(Rt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ua(t)}}return Xe(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ua(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=fe.current,Pr(t)){if(e=t.stateNode,r=t.memoizedProps,l=null,o=xt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||qp(e.nodeValue,r)),e||La(t,!0)}else e=Ws(e).createTextNode(l),e[ot]=t,t.stateNode=e}return Xe(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(l=Pr(t),r!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ot]=t}else dr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else r=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Xe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Pr(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ot]=t}else dr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),o=!1}else o=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=r,t):(r=l!==null,e=e!==null&&e.memoizedState!==null,r&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),zs(t,t.updateQueue),Xe(t),null);case 4:return Ie(),e===null&&$c(t.stateNode.containerInfo),Xe(t),null;case 10:return ia(t.type),Xe(t),null;case 19:if(F(rt),l=t.memoizedState,l===null)return Xe(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)il(l,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=xs(e),c!==null){for(t.flags|=128,il(l,!1),e=c.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)_m(r,e),r=r.sibling;return X(rt,rt.current&1|2),Re&&aa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Tt()>Fs&&(t.flags|=128,o=!0,il(l,!1),t.lanes=4194304)}else{if(!o)if(e=xs(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),il(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Re)return Xe(t),null}else 2*Tt()-l.renderingStartTime>Fs&&r!==536870912&&(t.flags|=128,o=!0,il(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Tt(),e.sibling=null,r=rt.current,X(rt,o?r&1|2:r&1),Re&&aa(t,l.treeForkCount),e):(Xe(t),null);case 22:case 23:return Jt(t),Ju(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(r&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),r=t.updateQueue,r!==null&&zs(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),e!==null&&F(gr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ia(ut),Xe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function a2(e,t){switch(Uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ia(ut),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oa(t),null;case 31:if(t.memoizedState!==null){if(Jt(t),t.alternate===null)throw Error(s(340));dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(rt),null;case 4:return Ie(),null;case 10:return ia(t.type),null;case 22:case 23:return Jt(t),Ju(),e!==null&&F(gr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ia(ut),null;case 25:return null;default:return null}}function X0(e,t){switch(Uu(t),t.tag){case 3:ia(ut),Ie();break;case 26:case 27:case 5:Oa(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:F(rt);break;case 10:ia(t.type);break;case 22:case 23:Jt(t),Ju(),e!==null&&F(gr);break;case 24:ia(ut)}}function ll(e,t){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var o=l.next;r=o;do{if((r.tag&e)===e){l=void 0;var c=r.create,d=r.inst;l=c(),d.destroy=l}r=r.next}while(r!==o)}}catch(b){Ge(t,t.return,b)}}function ka(e,t,r){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var d=l.inst,b=d.destroy;if(b!==void 0){d.destroy=void 0,o=t;var T=r,j=b;try{j()}catch(q){Ge(o,T,q)}}}l=l.next}while(l!==c)}}catch(q){Ge(t,t.return,q)}}function Q0(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{zm(t,r)}catch(l){Ge(e,e.return,l)}}}function P0(e,t,r){r.props=Sr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){Ge(e,t,l)}}function sl(e,t){try{var r=e.ref;if(r!==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 r=="function"?e.refCleanup=r(l):r.current=l}}catch(o){Ge(e,t,o)}}function Hn(e,t){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(o){Ge(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){Ge(e,t,o)}else r.current=null}function K0(e){var t=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(o){Ge(e,e.return,o)}}function wc(e,t,r){try{var l=e.stateNode;x2(l,e.type,r,t),l[Ke]=t}catch(o){Ge(e,e.return,o)}}function $0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$0(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&&Xa(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 Dc(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ea));else if(l!==4&&(l===27&&Xa(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Dc(e,t,r),e=e.sibling;e!==null;)Dc(e,t,r),e=e.sibling}function Is(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(l===27&&Xa(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Is(e,t,r),e=e.sibling;e!==null;)Is(e,t,r),e=e.sibling}function J0(e){var t=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Rt(t,l,r),t[ot]=e,t[Ke]=r}catch(c){Ge(e,e.return,c)}}var ca=!1,ht=!1,Lc=!1,W0=typeof WeakSet=="function"?WeakSet:Set,_t=null;function r2(e,t){if(e=e.containerInfo,ef=lo,e=fm(e),Ou(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var d=0,b=-1,T=-1,j=0,q=0,Y=e,z=null;t:for(;;){for(var G;Y!==r||o!==0&&Y.nodeType!==3||(b=d+o),Y!==c||l!==0&&Y.nodeType!==3||(T=d+l),Y.nodeType===3&&(d+=Y.nodeValue.length),(G=Y.firstChild)!==null;)z=Y,Y=G;for(;;){if(Y===e)break t;if(z===r&&++j===o&&(b=d),z===c&&++q===l&&(T=d),(G=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=G}r=b===-1||T===-1?null:{start:b,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(tf={focusedElem:e,selectionRange:r},lo=!1,_t=t;_t!==null;)if(t=_t,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_t=e;else for(;_t!==null;){switch(t=_t,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)o=e[r],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,r=t,o=c.memoizedProps,c=c.memoizedState,l=r.stateNode;try{var ne=Sr(r.type,o);e=l.getSnapshotBeforeUpdate(ne,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Ge(r,r.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)rf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rf(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=t.sibling,e!==null){e.return=t.return,_t=e;break}_t=t.return}}function ep(e,t,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:ha(e,r),l&4&&ll(5,r);break;case 1:if(ha(e,r),l&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(d){Ge(r,r.return,d)}else{var o=Sr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ge(r,r.return,d)}}l&64&&Q0(r),l&512&&sl(r,r.return);break;case 3:if(ha(e,r),l&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{zm(e,t)}catch(d){Ge(r,r.return,d)}}break;case 27:t===null&&l&4&&J0(r);case 26:case 5:ha(e,r),t===null&&l&4&&K0(r),l&512&&sl(r,r.return);break;case 12:ha(e,r);break;case 31:ha(e,r),l&4&&ap(e,r);break;case 13:ha(e,r),l&4&&rp(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=d2.bind(null,r),L2(e,r))));break;case 22:if(l=r.memoizedState!==null||ca,!l){t=t!==null&&t.memoizedState!==null||ht,o=ca;var c=ht;ca=l,(ht=t)&&!c?da(e,r,(r.subtreeFlags&8772)!==0):ha(e,r),ca=o,ht=c}break;case 30:break;default:ha(e,r)}}function tp(e){var t=e.alternate;t!==null&&(e.alternate=null,tp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&C(t)),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 $e=null,qt=!1;function fa(e,t,r){for(r=r.child;r!==null;)np(e,t,r),r=r.sibling}function np(e,t,r){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Mn,r)}catch{}switch(r.tag){case 26:ht||Hn(r,t),fa(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ht||Hn(r,t);var l=$e,o=qt;Xa(r.type)&&($e=r.stateNode,qt=!1),fa(e,t,r),gl(r.stateNode),$e=l,qt=o;break;case 5:ht||Hn(r,t);case 6:if(l=$e,o=qt,$e=null,fa(e,t,r),$e=l,qt=o,$e!==null)if(qt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(r.stateNode)}catch(c){Ge(r,t,c)}else try{$e.removeChild(r.stateNode)}catch(c){Ge(r,t,c)}break;case 18:$e!==null&&(qt?(e=$e,Qp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),gi(e)):Qp($e,r.stateNode));break;case 4:l=$e,o=qt,$e=r.stateNode.containerInfo,qt=!0,fa(e,t,r),$e=l,qt=o;break;case 0:case 11:case 14:case 15:ka(2,r,t),ht||ka(4,r,t),fa(e,t,r);break;case 1:ht||(Hn(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"&&P0(r,t,l)),fa(e,t,r);break;case 21:fa(e,t,r);break;case 22:ht=(l=ht)||r.memoizedState!==null,fa(e,t,r),ht=l;break;default:fa(e,t,r)}}function ap(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gi(e)}catch(r){Ge(t,t.return,r)}}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gi(e)}catch(r){Ge(t,t.return,r)}}function i2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new W0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new W0),t;default:throw Error(s(435,e.tag))}}function ks(e,t){var r=i2(e);t.forEach(function(l){if(!r.has(l)){r.add(l);var o=m2.bind(null,e,l);l.then(o,o)}})}function Ft(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l],c=e,d=t,b=d;e:for(;b!==null;){switch(b.tag){case 27:if(Xa(b.type)){$e=b.stateNode,qt=!1;break e}break;case 5:$e=b.stateNode,qt=!1;break e;case 3:case 4:$e=b.stateNode.containerInfo,qt=!0;break e}b=b.return}if($e===null)throw Error(s(160));np(c,d,o),$e=null,qt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ip(t,e),t=t.sibling}var xn=null;function ip(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ft(t,e),Vt(e),l&4&&(ka(3,e,e.return),ll(3,e),ka(5,e,e.return));break;case 1:Ft(t,e),Vt(e),l&512&&(ht||r===null||Hn(r,r.return)),l&64&&ca&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var o=xn;if(Ft(t,e),Vt(e),l&512&&(ht||r===null||Hn(r,r.return)),l&4){var c=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[re]||c[ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),Rt(c,l,r),c[ot]=e,_e(c),l=c;break e;case"link":var d=ig("link","href",o).get(l+(r.href||""));if(d){for(var b=0;b<d.length;b++)if(c=d[b],c.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&c.getAttribute("rel")===(r.rel==null?null:r.rel)&&c.getAttribute("title")===(r.title==null?null:r.title)&&c.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){d.splice(b,1);break t}}c=o.createElement(l),Rt(c,l,r),o.head.appendChild(c);break;case"meta":if(d=ig("meta","content",o).get(l+(r.content||""))){for(b=0;b<d.length;b++)if(c=d[b],c.getAttribute("content")===(r.content==null?null:""+r.content)&&c.getAttribute("name")===(r.name==null?null:r.name)&&c.getAttribute("property")===(r.property==null?null:r.property)&&c.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&c.getAttribute("charset")===(r.charSet==null?null:r.charSet)){d.splice(b,1);break t}}c=o.createElement(l),Rt(c,l,r),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[ot]=e,_e(c),l=c}e.stateNode=l}else lg(o,e.type,e.stateNode);else e.stateNode=rg(o,l,e.memoizedProps);else c!==l?(c===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):c.count--,l===null?lg(o,e.type,e.stateNode):rg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&wc(e,e.memoizedProps,r.memoizedProps)}break;case 27:Ft(t,e),Vt(e),l&512&&(ht||r===null||Hn(r,r.return)),r!==null&&l&4&&wc(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Ft(t,e),Vt(e),l&512&&(ht||r===null||Hn(r,r.return)),e.flags&32){o=e.stateNode;try{Ir(o,"")}catch(ne){Ge(e,e.return,ne)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,wc(e,o,r!==null?r.memoizedProps:o)),l&1024&&(Lc=!0);break;case 6:if(Ft(t,e),Vt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(ne){Ge(e,e.return,ne)}}break;case 3:if(no=null,o=xn,xn=eo(t.containerInfo),Ft(t,e),xn=o,Vt(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{gi(t.containerInfo)}catch(ne){Ge(e,e.return,ne)}Lc&&(Lc=!1,lp(e));break;case 4:l=xn,xn=eo(e.stateNode.containerInfo),Ft(t,e),Vt(e),xn=l;break;case 12:Ft(t,e),Vt(e);break;case 31:Ft(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ks(e,l)));break;case 13:Ft(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(qs=Tt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ks(e,l)));break;case 22:o=e.memoizedState!==null;var T=r!==null&&r.memoizedState!==null,j=ca,q=ht;if(ca=j||o,ht=q||T,Ft(t,e),ht=q,ca=j,Vt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(r===null||T||ca||ht||Er(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){T=r=t;try{if(c=T.stateNode,o)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{b=T.stateNode;var Y=T.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;b.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ne){Ge(T,T.return,ne)}}}else if(t.tag===6){if(r===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(ne){Ge(T,T.return,ne)}}}else if(t.tag===18){if(r===null){T=t;try{var G=T.stateNode;o?Pp(G,!0):Pp(T.stateNode,!1)}catch(ne){Ge(T,T.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,ks(e,r))));break;case 19:Ft(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ks(e,l)));break;case 30:break;case 21:break;default:Ft(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var r,l=e.return;l!==null;){if($0(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var o=r.stateNode,c=Mc(e);Is(e,c,o);break;case 5:var d=r.stateNode;r.flags&32&&(Ir(d,""),r.flags&=-33);var b=Mc(e);Is(e,b,d);break;case 3:case 4:var T=r.stateNode.containerInfo,j=Mc(e);Dc(e,j,T);break;default:throw Error(s(161))}}catch(q){Ge(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ha(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ep(e,t.alternate,t),t=t.sibling}function Er(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ka(4,t,t.return),Er(t);break;case 1:Hn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&P0(t,t.return,r),Er(t);break;case 27:gl(t.stateNode);case 26:case 5:Hn(t,t.return),Er(t);break;case 22:t.memoizedState===null&&Er(t);break;case 30:Er(t);break;default:Er(t)}e=e.sibling}}function da(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,d=c.flags;switch(c.tag){case 0:case 11:case 15:da(o,c,r),ll(4,c);break;case 1:if(da(o,c,r),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(j){Ge(l,l.return,j)}if(l=c,o=l.updateQueue,o!==null){var b=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Um(T[o],b)}catch(j){Ge(l,l.return,j)}}r&&d&64&&Q0(c),sl(c,c.return);break;case 27:J0(c);case 26:case 5:da(o,c,r),r&&l===null&&d&4&&K0(c),sl(c,c.return);break;case 12:da(o,c,r);break;case 31:da(o,c,r),r&&d&4&&ap(o,c);break;case 13:da(o,c,r),r&&d&4&&rp(o,c);break;case 22:c.memoizedState===null&&da(o,c,r),sl(c,c.return);break;case 30:break;default:da(o,c,r)}t=t.sibling}}function Bc(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Xi(r))}function Hc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xi(e))}function On(e,t,r,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sp(e,t,r,l),t=t.sibling}function sp(e,t,r,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:On(e,t,r,l),o&2048&&ll(9,t);break;case 1:On(e,t,r,l);break;case 3:On(e,t,r,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xi(e)));break;case 12:if(o&2048){On(e,t,r,l),e=t.stateNode;try{var c=t.memoizedProps,d=c.id,b=c.onPostCommit;typeof b=="function"&&b(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ge(t,t.return,T)}}else On(e,t,r,l);break;case 31:On(e,t,r,l);break;case 13:On(e,t,r,l);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?c._visibility&2?On(e,t,r,l):ol(e,t):c._visibility&2?On(e,t,r,l):(c._visibility|=2,ii(e,t,r,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Bc(d,t);break;case 24:On(e,t,r,l),o&2048&&Hc(t.alternate,t);break;default:On(e,t,r,l)}}function ii(e,t,r,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,d=t,b=r,T=l,j=d.flags;switch(d.tag){case 0:case 11:case 15:ii(c,d,b,T,o),ll(8,d);break;case 23:break;case 22:var q=d.stateNode;d.memoizedState!==null?q._visibility&2?ii(c,d,b,T,o):ol(c,d):(q._visibility|=2,ii(c,d,b,T,o)),o&&j&2048&&Bc(d.alternate,d);break;case 24:ii(c,d,b,T,o),o&&j&2048&&Hc(d.alternate,d);break;default:ii(c,d,b,T,o)}t=t.sibling}}function ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,l=t,o=l.flags;switch(l.tag){case 22:ol(r,l),o&2048&&Bc(l.alternate,l);break;case 24:ol(r,l),o&2048&&Hc(l.alternate,l);break;default:ol(r,l)}t=t.sibling}}var ul=8192;function li(e,t,r){if(e.subtreeFlags&ul)for(e=e.child;e!==null;)op(e,t,r),e=e.sibling}function op(e,t,r){switch(e.tag){case 26:li(e,t,r),e.flags&ul&&e.memoizedState!==null&&Y2(r,xn,e.memoizedState,e.memoizedProps);break;case 5:li(e,t,r);break;case 3:case 4:var l=xn;xn=eo(e.stateNode.containerInfo),li(e,t,r),xn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ul,ul=16777216,li(e,t,r),ul=l):li(e,t,r));break;default:li(e,t,r)}}function up(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function cl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];_t=l,fp(l,e)}up(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cp(e),e=e.sibling}function cp(e){switch(e.tag){case 0:case 11:case 15:cl(e),e.flags&2048&&ka(9,e,e.return);break;case 3:cl(e);break;case 12:cl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gs(e)):cl(e);break;default:cl(e)}}function Gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];_t=l,fp(l,e)}up(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ka(8,t,t.return),Gs(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,Gs(t));break;default:Gs(t)}e=e.sibling}}function fp(e,t){for(;_t!==null;){var r=_t;switch(r.tag){case 0:case 11:case 15:ka(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Xi(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,_t=l;else e:for(r=e;_t!==null;){l=_t;var o=l.sibling,c=l.return;if(tp(l),l===r){_t=null;break e}if(o!==null){o.return=c,_t=o;break e}_t=c}}}var l2={getCacheForType:function(e){var t=Ot(ut),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Ot(ut).controller.signal}},s2=typeof WeakMap=="function"?WeakMap:Map,je=0,Ye=null,Te=null,Oe=0,ke=0,Wt=null,Ga=!1,si=!1,jc=!1,ma=0,tt=0,qa=0,Tr=0,Uc=0,en=0,oi=0,fl=null,Yt=null,zc=!1,qs=0,hp=0,Fs=1/0,Vs=null,Fa=null,yt=0,Va=null,ui=null,pa=0,Ic=0,kc=null,dp=null,hl=0,Gc=null;function tn(){return(je&2)!==0&&Oe!==0?Oe&-Oe:L.T!==null?Xc():Di()}function mp(){if(en===0)if((Oe&536870912)===0||Re){var e=Kn;Kn<<=1,(Kn&3932160)===0&&(Kn=262144),en=e}else en=536870912;return e=$t.current,e!==null&&(e.flags|=32),en}function Zt(e,t,r){(e===Ye&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(ci(e,0),Ya(e,Oe,en,!1)),Na(e,r),((je&2)===0||e!==Ye)&&(e===Ye&&((je&2)===0&&(Tr|=r),tt===4&&Ya(e,Oe,en,!1)),jn(e))}function pp(e,t,r){if((je&6)!==0)throw Error(s(327));var l=!r&&(t&127)===0&&(t&e.expiredLanes)===0||sr(e,t),o=l?c2(e,t):Fc(e,t,!0),c=l;do{if(o===0){si&&!l&&Ya(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!o2(r)){o=Fc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var b=e;o=fl;var T=b.current.memoizedState.isDehydrated;if(T&&(ci(b,d).flags|=256),d=Fc(b,d,!1),d!==2){if(jc&&!T){b.errorRecoveryDisabledLanes|=c,Tr|=c,o=4;break e}c=Yt,Yt=o,c!==null&&(Yt===null?Yt=c:Yt.push.apply(Yt,c))}o=d}if(c=!1,o!==2)continue}}if(o===1){ci(e,0),Ya(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ya(l,t,en,!Ga);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=qs+300-Tt(),10<o)){if(Ya(l,t,en,!Ga),jr(l,0,!0)!==0)break e;pa=t,l.timeoutHandle=Zp(gp.bind(null,l,r,Yt,Vs,zc,t,en,Tr,oi,Ga,c,"Throttled",-0,0),o);break e}gp(l,r,Yt,Vs,zc,t,en,Tr,oi,Ga,c,null,-0,0)}}break}while(!0);jn(e)}function gp(e,t,r,l,o,c,d,b,T,j,q,Y,z,G){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ea},op(t,c,Y);var ne=(c&62914560)===c?qs-Tt():(c&4194048)===c?hp-Tt():0;if(ne=Z2(Y,ne),ne!==null){pa=c,e.cancelPendingCommit=ne(Ap.bind(null,e,t,c,r,l,o,d,b,T,q,Y,null,z,G)),Ya(e,c,d,!j);return}}Ap(e,t,c,r,l,o,d,b,T)}function o2(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var o=r[l],c=o.getSnapshot;o=o.value;try{if(!Pt(c(),o))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ya(e,t,r,l){t&=~Uc,t&=~Tr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-lt(o),d=1<<c;l[c]=-1,o&=~d}r!==0&&wi(e,r,t)}function Ys(){return(je&6)===0?(dl(0),!1):!0}function qc(){if(Te!==null){if(ke===0)var e=Te.return;else e=Te,ra=mr=null,rc(e),ei=null,Pi=0,e=Te;for(;e!==null;)X0(e.alternate,e),e=e.return;Te=null}}function ci(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,R2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),pa=0,qc(),Ye=e,Te=r=na(e.current,null),Oe=t,ke=0,Wt=null,Ga=!1,si=sr(e,t),jc=!1,oi=en=Uc=Tr=qa=tt=0,Yt=fl=null,zc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-lt(l),c=1<<o;t|=e[o],l&=~c}return ma=t,hs(),r}function yp(e,t){ge=null,L.H=al,t===Wr||t===_s?(t=Lm(),ke=3):t===Zu?(t=Lm(),ke=4):ke=t===_c?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,Te===null&&(tt=1,Bs(e,fn(t,e.current)))}function bp(){var e=$t.current;return e===null?!0:(Oe&4194048)===Oe?pn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===pn:!1}function vp(){var e=L.H;return L.H=al,e===null?al:e}function _p(){var e=L.A;return L.A=l2,e}function Zs(){tt=4,Ga||(Oe&4194048)!==Oe&&$t.current!==null||(si=!0),(qa&134217727)===0&&(Tr&134217727)===0||Ye===null||Ya(Ye,Oe,en,!1)}function Fc(e,t,r){var l=je;je|=2;var o=vp(),c=_p();(Ye!==e||Oe!==t)&&(Vs=null,ci(e,t)),t=!1;var d=tt;e:do try{if(ke!==0&&Te!==null){var b=Te,T=Wt;switch(ke){case 8:qc(),d=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var j=ke;if(ke=0,Wt=null,fi(e,b,T,j),r&&si){d=0;break e}break;default:j=ke,ke=0,Wt=null,fi(e,b,T,j)}}u2(),d=tt;break}catch(q){yp(e,q)}while(!0);return t&&e.shellSuspendCounter++,ra=mr=null,je=l,L.H=o,L.A=c,Te===null&&(Ye=null,Oe=0,hs()),d}function u2(){for(;Te!==null;)Sp(Te)}function c2(e,t){var r=je;je|=2;var l=vp(),o=_p();Ye!==e||Oe!==t?(Vs=null,Fs=Tt()+500,ci(e,t)):si=sr(e,t);e:do try{if(ke!==0&&Te!==null){t=Te;var c=Wt;t:switch(ke){case 1:ke=0,Wt=null,fi(e,t,c,1);break;case 2:case 9:if(Mm(c)){ke=0,Wt=null,Ep(t);break}t=function(){ke!==2&&ke!==9||Ye!==e||(ke=7),jn(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Mm(c)?(ke=0,Wt=null,Ep(t)):(ke=0,Wt=null,fi(e,t,c,7));break;case 5:var d=null;switch(Te.tag){case 26:d=Te.memoizedState;case 5:case 27:var b=Te;if(d?sg(d):b.stateNode.complete){ke=0,Wt=null;var T=b.sibling;if(T!==null)Te=T;else{var j=b.return;j!==null?(Te=j,Xs(j)):Te=null}break t}}ke=0,Wt=null,fi(e,t,c,5);break;case 6:ke=0,Wt=null,fi(e,t,c,6);break;case 8:qc(),tt=6;break e;default:throw Error(s(462))}}f2();break}catch(q){yp(e,q)}while(!0);return ra=mr=null,L.H=l,L.A=o,je=r,Te!==null?0:(Ye=null,Oe=0,hs(),tt)}function f2(){for(;Te!==null&&!Ql();)Sp(Te)}function Sp(e){var t=Y0(e.alternate,e,ma);e.memoizedProps=e.pendingProps,t===null?Xs(e):Te=t}function Ep(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=I0(r,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=I0(r,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:rc(t);default:X0(r,t),t=Te=_m(t,ma),t=Y0(r,t,ma)}e.memoizedProps=e.pendingProps,t===null?Xs(e):Te=t}function fi(e,t,r,l){ra=mr=null,rc(t),ei=null,Pi=0;var o=t.return;try{if(W_(e,o,t,r,Oe)){tt=1,Bs(e,fn(r,e.current)),Te=null;return}}catch(c){if(o!==null)throw Te=o,c;tt=1,Bs(e,fn(r,e.current)),Te=null;return}t.flags&32768?(Re||l===1?e=!0:si||(Oe&536870912)!==0?e=!1:(Ga=e=!0,(l===2||l===9||l===3||l===6)&&(l=$t.current,l!==null&&l.tag===13&&(l.flags|=16384))),Tp(t,e)):Xs(t)}function Xs(e){var t=e;do{if((t.flags&32768)!==0){Tp(t,Ga);return}e=t.return;var r=n2(t.alternate,t,ma);if(r!==null){Te=r;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);tt===0&&(tt=5)}function Tp(e,t){do{var r=a2(e.alternate,e);if(r!==null){r.flags&=32767,Te=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=r}while(e!==null);tt=6,Te=null}function Ap(e,t,r,l,o,c,d,b,T){e.cancelPendingCommit=null;do Qs();while(yt!==0);if((je&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Mu,Ni(e,r,c,d,b,T),e===Ye&&(Te=Ye=null,Oe=0),ui=t,Va=e,pa=r,Ic=c,kc=o,dp=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,p2(lr,function(){return Np(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,o=J.p,J.p=2,d=je,je|=4;try{r2(e,t,r)}finally{je=d,J.p=o,L.T=l}}yt=1,xp(),Op(),Cp()}}function xp(){if(yt===1){yt=0;var e=Va,t=ui,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=L.T,L.T=null;var l=J.p;J.p=2;var o=je;je|=4;try{ip(t,e);var c=tf,d=fm(e.containerInfo),b=c.focusedElem,T=c.selectionRange;if(d!==b&&b&&b.ownerDocument&&cm(b.ownerDocument.documentElement,b)){if(T!==null&&Ou(b)){var j=T.start,q=T.end;if(q===void 0&&(q=j),"selectionStart"in b)b.selectionStart=j,b.selectionEnd=Math.min(q,b.value.length);else{var Y=b.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var G=z.getSelection(),ne=b.textContent.length,ce=Math.min(T.start,ne),Ve=T.end===void 0?ce:Math.min(T.end,ne);!G.extend&&ce>Ve&&(d=Ve,Ve=ce,ce=d);var N=um(b,ce),R=um(b,Ve);if(N&&R&&(G.rangeCount!==1||G.anchorNode!==N.node||G.anchorOffset!==N.offset||G.focusNode!==R.node||G.focusOffset!==R.offset)){var B=Y.createRange();B.setStart(N.node,N.offset),G.removeAllRanges(),ce>Ve?(G.addRange(B),G.extend(R.node,R.offset)):(B.setEnd(R.node,R.offset),G.addRange(B))}}}}for(Y=[],G=b;G=G.parentNode;)G.nodeType===1&&Y.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Y.length;b++){var V=Y[b];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}lo=!!ef,tf=ef=null}finally{je=o,J.p=l,L.T=r}}e.current=t,yt=2}}function Op(){if(yt===2){yt=0;var e=Va,t=ui,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=L.T,L.T=null;var l=J.p;J.p=2;var o=je;je|=4;try{ep(e,t.alternate,t)}finally{je=o,J.p=l,L.T=r}}yt=3}}function Cp(){if(yt===4||yt===3){yt=0,ou();var e=Va,t=ui,r=pa,l=dp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,ui=Va=null,Rp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Fa=null),Tn(r),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Mn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=L.T,o=J.p,J.p=2,L.T=null;try{for(var c=e.onRecoverableError,d=0;d<l.length;d++){var b=l[d];c(b.value,{componentStack:b.stack})}}finally{L.T=t,J.p=o}}(pa&3)!==0&&Qs(),jn(e),o=e.pendingLanes,(r&261930)!==0&&(o&42)!==0?e===Gc?hl++:(hl=0,Gc=e):hl=0,dl(0)}}function Rp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Xi(t)))}function Qs(){return xp(),Op(),Cp(),Np()}function Np(){if(yt!==5)return!1;var e=Va,t=Ic;Ic=0;var r=Tn(pa),l=L.T,o=J.p;try{J.p=32>r?32:r,L.T=null,r=kc,kc=null;var c=Va,d=pa;if(yt=0,ui=Va=null,pa=0,(je&6)!==0)throw Error(s(331));var b=je;if(je|=4,cp(c.current),sp(c,c.current,d,r),je=b,dl(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Mn,c)}catch{}return!0}finally{J.p=o,L.T=l,Rp(e,t)}}function wp(e,t,r){t=fn(r,t),t=vc(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(Na(e,2),jn(e))}function Ge(e,t,r){if(e.tag===3)wp(e,e,r);else for(;t!==null;){if(t.tag===3){wp(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Fa===null||!Fa.has(l))){e=fn(r,e),r=M0(2),l=Ua(t,r,2),l!==null&&(D0(r,l,t,e),Na(l,2),jn(l));break}}t=t.return}}function Vc(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new s2;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(jc=!0,o.add(r),e=h2.bind(null,e,t,r),t.then(e,e))}function h2(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ye===e&&(Oe&r)===r&&(tt===4||tt===3&&(Oe&62914560)===Oe&&300>Tt()-qs?(je&2)===0&&ci(e,0):Uc|=r,oi===Oe&&(oi=0)),jn(e)}function Mp(e,t){t===0&&(t=$n()),e=fr(e,t),e!==null&&(Na(e,t),jn(e))}function d2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Mp(e,r)}function m2(e,t){var r=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=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(t),Mp(e,r)}function p2(e,t){return Ra(e,t)}var Ps=null,hi=null,Yc=!1,Ks=!1,Zc=!1,Za=0;function jn(e){e!==hi&&e.next===null&&(hi===null?Ps=hi=e:hi=hi.next=e),Ks=!0,Yc||(Yc=!0,y2())}function dl(e,t){if(!Zc&&Ks){Zc=!0;do for(var r=!1,l=Ps;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var d=l.suspendedLanes,b=l.pingedLanes;c=(1<<31-lt(42|e)+1)-1,c&=o&~(d&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,Hp(l,c))}else c=Oe,c=jr(l,l===Ye?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||sr(l,c)||(r=!0,Hp(l,c));l=l.next}while(r);Zc=!1}}function g2(){Dp()}function Dp(){Ks=Yc=!1;var e=0;Za!==0&&C2()&&(e=Za);for(var t=Tt(),r=null,l=Ps;l!==null;){var o=l.next,c=Lp(l,t);c===0?(l.next=null,r===null?Ps=o:r.next=o,o===null&&(hi=r)):(r=l,(e!==0||(c&3)!==0)&&(Ks=!0)),l=o}yt!==0&&yt!==5||dl(e),Za!==0&&(Za=0)}function Lp(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-lt(c),b=1<<d,T=o[d];T===-1?((b&r)===0||(b&l)!==0)&&(o[d]=st(b,t)):T<=t&&(e.expiredLanes|=b),c&=~b}if(t=Ye,r=Oe,r=jr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Br(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||sr(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(l!==null&&Br(l),Tn(r)){case 2:case 8:r=Qn;break;case 32:r=lr;break;case 268435456:r=Ai;break;default:r=lr}return l=Bp.bind(null,e),r=Ra(r,l),e.callbackPriority=t,e.callbackNode=r,t}return l!==null&&l!==null&&Br(l),e.callbackPriority=2,e.callbackNode=null,2}function Bp(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Qs()&&e.callbackNode!==r)return null;var l=Oe;return l=jr(e,e===Ye?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(pp(e,l,t),Lp(e,Tt()),e.callbackNode!=null&&e.callbackNode===r?Bp.bind(null,e):null)}function Hp(e,t){if(Qs())return null;pp(e,t,!0)}function y2(){N2(function(){(je&6)!==0?Ra(Xn,g2):Dp()})}function Xc(){if(Za===0){var e=$r;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),Za=e}return Za}function jp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:rs(""+e)}function Up(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function b2(e,t,r,l,o){if(t==="submit"&&r&&r.stateNode===o){var c=jp((o[Ke]||null).action),d=l.submitter;d&&(t=(t=d[Ke]||null)?jp(t.formAction):d.getAttribute("formAction"),t!==null&&(c=t,d=null));var b=new os("action","action",null,l,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Za!==0){var T=d?Up(o,d):new FormData(o);dc(r,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(b.preventDefault(),T=d?Up(o,d):new FormData(o),dc(r,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var Qc=0;Qc<wu.length;Qc++){var Pc=wu[Qc],v2=Pc.toLowerCase(),_2=Pc[0].toUpperCase()+Pc.slice(1);An(v2,"on"+_2)}An(mm,"onAnimationEnd"),An(pm,"onAnimationIteration"),An(gm,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(j_,"onTransitionRun"),An(U_,"onTransitionStart"),An(z_,"onTransitionCancel"),An(ym,"onTransitionEnd"),Dn("onMouseEnter",["mouseout","mouseover"]),Dn("onMouseLeave",["mouseout","mouseover"]),Dn("onPointerEnter",["pointerout","pointerover"]),Dn("onPointerLeave",["pointerout","pointerover"]),kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),S2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ml));function zp(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var d=l.length-1;0<=d;d--){var b=l[d],T=b.instance,j=b.currentTarget;if(b=b.listener,T!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=j;try{c(o)}catch(q){fs(q)}o.currentTarget=null,c=T}else for(d=0;d<l.length;d++){if(b=l[d],T=b.instance,j=b.currentTarget,b=b.listener,T!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=j;try{c(o)}catch(q){fs(q)}o.currentTarget=null,c=T}}}}function Ae(e,t){var r=t[Ur];r===void 0&&(r=t[Ur]=new Set);var l=e+"__bubble";r.has(l)||(Ip(t,e,2,!1),r.add(l))}function Kc(e,t,r){var l=0;t&&(l|=4),Ip(r,e,l,t)}var $s="_reactListening"+Math.random().toString(36).slice(2);function $c(e){if(!e[$s]){e[$s]=!0,At.forEach(function(r){r!=="selectionchange"&&(S2.has(r)||Kc(r,!1,e),Kc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$s]||(t[$s]=!0,Kc("selectionchange",!1,t))}}function Ip(e,t,r,l){switch(mg(t)){case 2:var o=P2;break;case 8:o=K2;break;default:o=df}r=o.bind(null,t,r,e),o=void 0,!yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Jc(e,t,r,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var b=l.stateNode.containerInfo;if(b===o)break;if(d===4)for(d=l.return;d!==null;){var T=d.tag;if((T===3||T===4)&&d.stateNode.containerInfo===o)return;d=d.return}for(;b!==null;){if(d=Q(b),d===null)return;if(T=d.tag,T===5||T===6||T===26||T===27){l=c=d;continue e}b=b.parentNode}}l=l.return}Vd(function(){var j=c,q=pu(r),Y=[];e:{var z=bm.get(e);if(z!==void 0){var G=os,ne=e;switch(e){case"keypress":if(ls(r)===0)break e;case"keydown":case"keyup":G=m_;break;case"focusin":ne="focus",G=Su;break;case"focusout":ne="blur",G=Su;break;case"beforeblur":case"afterblur":G=Su;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=n_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=y_;break;case mm:case pm:case gm:G=i_;break;case ym:G=v_;break;case"scroll":case"scrollend":G=e_;break;case"wheel":G=S_;break;case"copy":case"cut":case"paste":G=s_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Pd;break;case"toggle":case"beforetoggle":G=T_}var ce=(t&4)!==0,Ve=!ce&&(e==="scroll"||e==="scrollend"),N=ce?z!==null?z+"Capture":null:z;ce=[];for(var R=j,B;R!==null;){var V=R;if(B=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||B===null||N===null||(V=ji(R,N),V!=null&&ce.push(pl(R,V,B))),Ve)break;R=R.return}0<ce.length&&(z=new G(z,ne,null,r,q),Y.push({event:z,listeners:ce}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",z&&r!==mu&&(ne=r.relatedTarget||r.fromElement)&&(Q(ne)||ne[Jn]))break e;if((G||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,G?(ne=r.relatedTarget||r.toElement,G=j,ne=ne?Q(ne):null,ne!==null&&(Ve=f(ne),ce=ne.tag,ne!==Ve||ce!==5&&ce!==27&&ce!==6)&&(ne=null)):(G=null,ne=j),G!==ne)){if(ce=Xd,V="onMouseLeave",N="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Pd,V="onPointerLeave",N="onPointerEnter",R="pointer"),Ve=G==null?z:Ue(G),B=ne==null?z:Ue(ne),z=new ce(V,R+"leave",G,r,q),z.target=Ve,z.relatedTarget=B,V=null,Q(q)===j&&(ce=new ce(N,R+"enter",ne,r,q),ce.target=B,ce.relatedTarget=Ve,V=ce),Ve=V,G&&ne)t:{for(ce=E2,N=G,R=ne,B=0,V=N;V;V=ce(V))B++;V=0;for(var ue=R;ue;ue=ce(ue))V++;for(;0<B-V;)N=ce(N),B--;for(;0<V-B;)R=ce(R),V--;for(;B--;){if(N===R||R!==null&&N===R.alternate){ce=N;break t}N=ce(N),R=ce(R)}ce=null}else ce=null;G!==null&&kp(Y,z,G,ce,!1),ne!==null&&Ve!==null&&kp(Y,Ve,ne,ce,!0)}}e:{if(z=j?Ue(j):window,G=z.nodeName&&z.nodeName.toLowerCase(),G==="select"||G==="input"&&z.type==="file")var Le=am;else if(tm(z))if(rm)Le=L_;else{Le=M_;var ie=w_}else G=z.nodeName,!G||G.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?j&&du(j.elementType)&&(Le=am):Le=D_;if(Le&&(Le=Le(e,j))){nm(Y,Le,r,q);break e}ie&&ie(e,z,j),e==="focusout"&&j&&z.type==="number"&&j.memoizedProps.value!=null&&hu(z,"number",z.value)}switch(ie=j?Ue(j):window,e){case"focusin":(tm(ie)||ie.contentEditable==="true")&&(Fr=ie,Cu=j,Vi=null);break;case"focusout":Vi=Cu=Fr=null;break;case"mousedown":Ru=!0;break;case"contextmenu":case"mouseup":case"dragend":Ru=!1,hm(Y,r,q);break;case"selectionchange":if(H_)break;case"keydown":case"keyup":hm(Y,r,q)}var ye;if(Tu)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else qr?Wd(e,r)&&(Ce="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ce="onCompositionStart");Ce&&(Kd&&r.locale!=="ko"&&(qr||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&qr&&(ye=Yd()):(wa=q,bu="value"in wa?wa.value:wa.textContent,qr=!0)),ie=Js(j,Ce),0<ie.length&&(Ce=new Qd(Ce,e,null,r,q),Y.push({event:Ce,listeners:ie}),ye?Ce.data=ye:(ye=em(r),ye!==null&&(Ce.data=ye)))),(ye=x_?O_(e,r):C_(e,r))&&(Ce=Js(j,"onBeforeInput"),0<Ce.length&&(ie=new Qd("onBeforeInput","beforeinput",null,r,q),Y.push({event:ie,listeners:Ce}),ie.data=ye)),b2(Y,e,j,r,q)}zp(Y,t)})}function pl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Js(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ji(e,r),o!=null&&l.unshift(pl(e,o,c)),o=ji(e,t),o!=null&&l.push(pl(e,o,c))),e.tag===3)return l;e=e.return}return[]}function E2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kp(e,t,r,l,o){for(var c=t._reactName,d=[];r!==null&&r!==l;){var b=r,T=b.alternate,j=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||j===null||(T=j,o?(j=ji(r,c),j!=null&&d.unshift(pl(r,j,T))):o||(j=ji(r,c),j!=null&&d.push(pl(r,j,T)))),r=r.return}d.length!==0&&e.push({event:t,listeners:d})}var T2=/\r\n?/g,A2=/\u0000|\uFFFD/g;function Gp(e){return(typeof e=="string"?e:""+e).replace(T2,`
49
+ `).replace(A2,"")}function qp(e,t){return t=Gp(t),Gp(e)===t}function Fe(e,t,r,l,o,c){switch(r){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ir(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ir(e,""+l);break;case"className":ns(e,"class",l);break;case"tabIndex":ns(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ns(e,r,l);break;case"style":qd(e,l,c);break;case"data":if(t!=="object"){ns(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=rs(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"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 c=="function"&&(r==="formAction"?(t!=="input"&&Fe(e,t,"name",o.name,o,null),Fe(e,t,"formEncType",o.formEncType,o,null),Fe(e,t,"formMethod",o.formMethod,o,null),Fe(e,t,"formTarget",o.formTarget,o,null)):(Fe(e,t,"encType",o.encType,o,null),Fe(e,t,"method",o.method,o,null),Fe(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=rs(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=ea);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}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}r=rs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);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(r,""+l):e.removeAttribute(r);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(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),ts(e,"popover",l);break;case"xlinkActuate":Wn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Wn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Wn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Wn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Wn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Wn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ts(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Jv.get(r)||r,ts(e,r,l))}}function Wc(e,t,r,l,o,c){switch(r){case"style":qd(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof l=="string"?Ir(e,l):(typeof l=="number"||typeof l=="bigint")&&Ir(e,""+l);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sn.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),t=r.slice(2,o?r.length-7:void 0),c=e[Ke]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,l,o);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):ts(e,r,l)}}}function Rt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var l=!1,o=!1,c;for(c in r)if(r.hasOwnProperty(c)){var d=r[c];if(d!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,c,d,r,null)}}o&&Fe(e,t,"srcSet",r.srcSet,r,null),l&&Fe(e,t,"src",r.src,r,null);return;case"input":Ae("invalid",e);var b=c=d=o=null,T=null,j=null;for(l in r)if(r.hasOwnProperty(l)){var q=r[l];if(q!=null)switch(l){case"name":o=q;break;case"type":d=q;break;case"checked":T=q;break;case"defaultChecked":j=q;break;case"value":c=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:Fe(e,t,l,q,r,null)}}zd(e,c,b,T,j,d,o,!1);return;case"select":Ae("invalid",e),l=d=c=null;for(o in r)if(r.hasOwnProperty(o)&&(b=r[o],b!=null))switch(o){case"value":c=b;break;case"defaultValue":d=b;break;case"multiple":l=b;default:Fe(e,t,o,b,r,null)}t=c,r=d,e.multiple=!!l,t!=null?zr(e,!!l,t,!1):r!=null&&zr(e,!!l,r,!0);return;case"textarea":Ae("invalid",e),c=o=l=null;for(d in r)if(r.hasOwnProperty(d)&&(b=r[d],b!=null))switch(d){case"value":l=b;break;case"defaultValue":o=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Fe(e,t,d,b,r,null)}kd(e,l,o,c);return;case"option":for(T in r)if(r.hasOwnProperty(T)&&(l=r[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Fe(e,t,T,l,r,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(l=0;l<ml.length;l++)Ae(ml[l],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("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(j in r)if(r.hasOwnProperty(j)&&(l=r[j],l!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Fe(e,t,j,l,r,null)}return;default:if(du(t)){for(q in r)r.hasOwnProperty(q)&&(l=r[q],l!==void 0&&Wc(e,t,q,l,r,void 0));return}}for(b in r)r.hasOwnProperty(b)&&(l=r[b],l!=null&&Fe(e,t,b,l,r,null))}function x2(e,t,r,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,d=null,b=null,T=null,j=null,q=null;for(G in r){var Y=r[G];if(r.hasOwnProperty(G)&&Y!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":T=Y;default:l.hasOwnProperty(G)||Fe(e,t,G,null,l,Y)}}for(var z in l){var G=l[z];if(Y=r[z],l.hasOwnProperty(z)&&(G!=null||Y!=null))switch(z){case"type":c=G;break;case"name":o=G;break;case"checked":j=G;break;case"defaultChecked":q=G;break;case"value":d=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:G!==Y&&Fe(e,t,z,G,l,Y)}}fu(e,d,b,T,j,q,c,o);return;case"select":G=d=b=z=null;for(c in r)if(T=r[c],r.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":G=T;default:l.hasOwnProperty(c)||Fe(e,t,c,null,l,T)}for(o in l)if(c=l[o],T=r[o],l.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":z=c;break;case"defaultValue":b=c;break;case"multiple":d=c;default:c!==T&&Fe(e,t,o,c,l,T)}t=b,r=d,l=G,z!=null?zr(e,!!r,z,!1):!!l!=!!r&&(t!=null?zr(e,!!r,t,!0):zr(e,!!r,r?[]:"",!1));return;case"textarea":G=z=null;for(b in r)if(o=r[b],r.hasOwnProperty(b)&&o!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Fe(e,t,b,null,l,o)}for(d in l)if(o=l[d],c=r[d],l.hasOwnProperty(d)&&(o!=null||c!=null))switch(d){case"value":z=o;break;case"defaultValue":G=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Fe(e,t,d,o,l,c)}Id(e,z,G);return;case"option":for(var ne in r)if(z=r[ne],r.hasOwnProperty(ne)&&z!=null&&!l.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Fe(e,t,ne,null,l,z)}for(T in l)if(z=l[T],G=r[T],l.hasOwnProperty(T)&&z!==G&&(z!=null||G!=null))switch(T){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Fe(e,t,T,z,l,G)}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 ce in r)z=r[ce],r.hasOwnProperty(ce)&&z!=null&&!l.hasOwnProperty(ce)&&Fe(e,t,ce,null,l,z);for(j in l)if(z=l[j],G=r[j],l.hasOwnProperty(j)&&z!==G&&(z!=null||G!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:Fe(e,t,j,z,l,G)}return;default:if(du(t)){for(var Ve in r)z=r[Ve],r.hasOwnProperty(Ve)&&z!==void 0&&!l.hasOwnProperty(Ve)&&Wc(e,t,Ve,void 0,l,z);for(q in l)z=l[q],G=r[q],!l.hasOwnProperty(q)||z===G||z===void 0&&G===void 0||Wc(e,t,q,z,l,G);return}}for(var N in r)z=r[N],r.hasOwnProperty(N)&&z!=null&&!l.hasOwnProperty(N)&&Fe(e,t,N,null,l,z);for(Y in l)z=l[Y],G=r[Y],!l.hasOwnProperty(Y)||z===G||z==null&&G==null||Fe(e,t,Y,z,l,G)}function Fp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function O2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var o=r[l],c=o.transferSize,d=o.initiatorType,b=o.duration;if(c&&b&&Fp(d)){for(d=0,b=o.responseEnd,l+=1;l<r.length;l++){var T=r[l],j=T.startTime;if(j>b)break;var q=T.transferSize,Y=T.initiatorType;q&&Fp(Y)&&(T=T.responseEnd,d+=q*(T<b?1:(b-j)/(T-j)))}if(--l,t+=8*(c+d)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ef=null,tf=null;function Ws(e){return e.nodeType===9?e:e.ownerDocument}function Vp(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 Yp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function nf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var af=null;function C2(){var e=window.event;return e&&e.type==="popstate"?e===af?!1:(af=e,!0):(af=null,!1)}var Zp=typeof setTimeout=="function"?setTimeout:void 0,R2=typeof clearTimeout=="function"?clearTimeout:void 0,Xp=typeof Promise=="function"?Promise:void 0,N2=typeof queueMicrotask=="function"?queueMicrotask:typeof Xp<"u"?function(e){return Xp.resolve(null).then(e).catch(w2)}:Zp;function w2(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function Qp(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"||r==="/&"){if(l===0){e.removeChild(o),gi(t);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")gl(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,gl(r);for(var c=r.firstChild;c;){var d=c.nextSibling,b=c.nodeName;c[re]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||r.removeChild(c),c=d}}else r==="body"&&gl(e.ownerDocument.body);r=o}while(r);gi(t)}function Pp(e,t){var r=e;e=0;do{var l=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=l}while(r)}function rf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":rf(r),C(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function M2(e,t,r,l){for(;e.nodeType===1;){var o=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[re])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==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(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=gn(e.nextSibling),e===null)break}return null}function D2(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=gn(e.nextSibling),e===null))return null;return e}function Kp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=gn(e.nextSibling),e===null))return null;return e}function lf(e){return e.data==="$?"||e.data==="$~"}function sf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function L2(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var l=function(){t(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var of=null;function $p(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return gn(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Jp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Wp(e,t,r){switch(t=Ws(r),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);C(e)}var yn=new Map,eg=new Set;function eo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ga=J.d;J.d={f:B2,r:H2,D:j2,C:U2,L:z2,m:I2,X:G2,S:k2,M:q2};function B2(){var e=ga.f(),t=Ys();return e||t}function H2(e){var t=te(e);t!==null&&t.tag===5&&t.type==="form"?y0(t):ga.r(e)}var di=typeof document>"u"?null:document;function tg(e,t,r){var l=di;if(l&&typeof t=="string"&&t){var o=un(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),eg.has(o)||(eg.add(o),e={rel:e,crossOrigin:r,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Rt(t,"link",e),_e(t),l.head.appendChild(t)))}}function j2(e){ga.D(e),tg("dns-prefetch",e,null)}function U2(e,t){ga.C(e,t),tg("preconnect",e,t)}function z2(e,t,r){ga.L(e,t,r);var l=di;if(l&&e&&t){var o='link[rel="preload"][as="'+un(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+un(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+un(r.imageSizes)+'"]')):o+='[href="'+un(e)+'"]';var c=o;switch(t){case"style":c=mi(e);break;case"script":c=pi(e)}yn.has(c)||(e=S({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),yn.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(yl(c))||t==="script"&&l.querySelector(bl(c))||(t=l.createElement("link"),Rt(t,"link",e),_e(t),l.head.appendChild(t)))}}function I2(e,t){ga.m(e,t);var r=di;if(r&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+un(l)+'"][href="'+un(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=pi(e)}if(!yn.has(c)&&(e=S({rel:"modulepreload",href:e},t),yn.set(c,e),r.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(bl(c)))return}l=r.createElement("link"),Rt(l,"link",e),_e(l),r.head.appendChild(l)}}}function k2(e,t,r){ga.S(e,t,r);var l=di;if(l&&e){var o=We(l).hoistableStyles,c=mi(e);t=t||"default";var d=o.get(c);if(!d){var b={loading:0,preload:null};if(d=l.querySelector(yl(c)))b.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},r),(r=yn.get(c))&&uf(e,r);var T=d=l.createElement("link");_e(T),Rt(T,"link",e),T._p=new Promise(function(j,q){T.onload=j,T.onerror=q}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,to(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:b},o.set(c,d)}}}function G2(e,t){ga.X(e,t);var r=di;if(r&&e){var l=We(r).hoistableScripts,o=pi(e),c=l.get(o);c||(c=r.querySelector(bl(o)),c||(e=S({src:e,async:!0},t),(t=yn.get(o))&&cf(e,t),c=r.createElement("script"),_e(c),Rt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function q2(e,t){ga.M(e,t);var r=di;if(r&&e){var l=We(r).hoistableScripts,o=pi(e),c=l.get(o);c||(c=r.querySelector(bl(o)),c||(e=S({src:e,async:!0,type:"module"},t),(t=yn.get(o))&&cf(e,t),c=r.createElement("script"),_e(c),Rt(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function ng(e,t,r,l){var o=(o=fe.current)?eo(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=mi(r.href),r=We(o).hoistableStyles,l=r.get(t),l||(l={type:"style",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=mi(r.href);var c=We(o).hoistableStyles,d=c.get(e);if(d||(o=o.ownerDocument||o,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=o.querySelector(yl(e)))&&!c._p&&(d.instance=c,d.state.loading=5),yn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},yn.set(e,r),c||F2(o,e,r,d.state))),t&&l===null)throw Error(s(528,""));return d}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pi(r),r=We(o).hoistableScripts,l=r.get(t),l||(l={type:"script",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function mi(e){return'href="'+un(e)+'"'}function yl(e){return'link[rel="stylesheet"]['+e+"]"}function ag(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function F2(e,t,r,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Rt(t,"link",r),_e(t),e.head.appendChild(t))}function pi(e){return'[src="'+un(e)+'"]'}function bl(e){return"script[async]"+e}function rg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+un(r.href)+'"]');if(l)return t.instance=l,_e(l),l;var o=S({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),_e(l),Rt(l,"style",o),to(l,r.precedence,e),t.instance=l;case"stylesheet":o=mi(r.href);var c=e.querySelector(yl(o));if(c)return t.state.loading|=4,t.instance=c,_e(c),c;l=ag(r),(o=yn.get(o))&&uf(l,o),c=(e.ownerDocument||e).createElement("link"),_e(c);var d=c;return d._p=new Promise(function(b,T){d.onload=b,d.onerror=T}),Rt(c,"link",l),t.state.loading|=4,to(c,r.precedence,e),t.instance=c;case"script":return c=pi(r.src),(o=e.querySelector(bl(c)))?(t.instance=o,_e(o),o):(l=r,(o=yn.get(c))&&(l=S({},r),cf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),_e(o),Rt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,to(l,r.precedence,e));return t.instance}function to(e,t,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,d=0;d<l.length;d++){var b=l[d];if(b.dataset.precedence===t)c=b;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function cf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var no=null;function ig(e,t,r){if(no===null){var l=new Map,o=no=new Map;o.set(r,l)}else o=no,l=o.get(r),l||(l=new Map,o.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),o=0;o<r.length;o++){var c=r[o];if(!(c[re]||c[ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(t)||"";d=e+d;var b=l.get(d);b?b.push(c):l.set(d,[c])}}return l}function lg(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function V2(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y2(e,t,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=mi(l.href),c=t.querySelector(yl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ao.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=c,_e(c);return}c=t.ownerDocument||t,l=ag(l),(o=yn.get(o))&&uf(l,o),c=c.createElement("link"),_e(c);var d=c;d._p=new Promise(function(b,T){d.onload=b,d.onerror=T}),Rt(c,"link",l),r.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=ao.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var ff=0;function Z2(e,t){return e.stylesheets&&e.count===0&&io(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var l=setTimeout(function(){if(e.stylesheets&&io(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&ff===0&&(ff=62500*O2());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&io(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>ff?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function ao(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)io(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ro=null;function io(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ro=new Map,t.forEach(X2,e),ro=null,ao.call(e))}function X2(e,t){if(!(t.state.loading&4)){var r=ro.get(e);if(r)var l=r.get(null);else{r=new Map,ro.set(e,r);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var d=o[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(r.set(d.dataset.precedence,d),l=d)}l&&r.set(null,l)}o=t.instance,d=o.getAttribute("data-precedence"),c=r.get(d)||l,c===l&&r.set(null,o),r.set(d,o),this.count++,l=ao.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var vl={$$typeof:H,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Q2(e,t,r,l,o,c,d,b,T){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=Ri(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.hiddenUpdates=Ri(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function og(e,t,r,l,o,c,d,b,T,j,q,Y){return e=new Q2(e,t,r,d,T,j,q,Y,b),t=1,c===!0&&(t|=24),c=Kt(3,null,null,t),e.current=c,c.stateNode=e,t=Fu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:r,cache:t},Xu(c),e}function ug(e){return e?(e=Zr,e):Zr}function cg(e,t,r,l,o,c){o=ug(o),l.context===null?l.context=o:l.pendingContext=o,l=ja(t),l.payload={element:r},c=c===void 0?null:c,c!==null&&(l.callback=c),r=Ua(e,l,t),r!==null&&(Zt(r,e,t),$i(r,e,t))}function fg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function hf(e,t){fg(e,t),(e=e.alternate)&&fg(e,t)}function hg(e){if(e.tag===13||e.tag===31){var t=fr(e,67108864);t!==null&&Zt(t,e,67108864),hf(e,67108864)}}function dg(e){if(e.tag===13||e.tag===31){var t=tn();t=It(t);var r=fr(e,t);r!==null&&Zt(r,e,t),hf(e,t)}}var lo=!0;function P2(e,t,r,l){var o=L.T;L.T=null;var c=J.p;try{J.p=2,df(e,t,r,l)}finally{J.p=c,L.T=o}}function K2(e,t,r,l){var o=L.T;L.T=null;var c=J.p;try{J.p=8,df(e,t,r,l)}finally{J.p=c,L.T=o}}function df(e,t,r,l){if(lo){var o=mf(l);if(o===null)Jc(e,t,l,so,r),pg(e,l);else if(J2(o,e,t,r,l))l.stopPropagation();else if(pg(e,l),t&4&&-1<$2.indexOf(e)){for(;o!==null;){var c=te(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=Qt(c.pendingLanes);if(d!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;d;){var T=1<<31-lt(d);b.entanglements[1]|=T,d&=~T}jn(c),(je&6)===0&&(Fs=Tt()+500,dl(0))}}break;case 31:case 13:b=fr(c,2),b!==null&&Zt(b,c,2),Ys(),hf(c,2)}if(c=mf(l),c===null&&Jc(e,t,l,so,r),c===o)break;o=c}o!==null&&l.stopPropagation()}else Jc(e,t,l,null,r)}}function mf(e){return e=pu(e),pf(e)}var so=null;function pf(e){if(so=null,e=Q(e),e!==null){var t=f(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=h(t),e!==null)return e;e=null}else if(r===31){if(e=m(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return so=e,null}function mg(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(ir()){case Xn:return 2;case Qn:return 8;case lr:case Pl:return 32;case Ai:return 268435456;default:return 32}default:return 32}}var gf=!1,Qa=null,Pa=null,Ka=null,_l=new Map,Sl=new Map,$a=[],$2="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 pg(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(t.pointerId)}}function El(e,t,r,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=te(t),t!==null&&hg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function J2(e,t,r,l,o){switch(t){case"focusin":return Qa=El(Qa,e,t,r,l,o),!0;case"dragenter":return Pa=El(Pa,e,t,r,l,o),!0;case"mouseover":return Ka=El(Ka,e,t,r,l,o),!0;case"pointerover":var c=o.pointerId;return _l.set(c,El(_l.get(c)||null,e,t,r,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Sl.set(c,El(Sl.get(c)||null,e,t,r,l,o)),!0}return!1}function gg(e){var t=Q(e.target);if(t!==null){var r=f(t);if(r!==null){if(t=r.tag,t===13){if(t=h(r),t!==null){e.blockedOn=t,Li(e.priority,function(){dg(r)});return}}else if(t===31){if(t=m(r),t!==null){e.blockedOn=t,Li(e.priority,function(){dg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=mf(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);mu=l,r.target.dispatchEvent(l),mu=null}else return t=te(r),t!==null&&hg(t),e.blockedOn=r,!1;t.shift()}return!0}function yg(e,t,r){oo(e)&&r.delete(t)}function W2(){gf=!1,Qa!==null&&oo(Qa)&&(Qa=null),Pa!==null&&oo(Pa)&&(Pa=null),Ka!==null&&oo(Ka)&&(Ka=null),_l.forEach(yg),Sl.forEach(yg)}function uo(e,t){e.blockedOn===t&&(e.blockedOn=null,gf||(gf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,W2)))}var co=null;function bg(e){co!==e&&(co=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){co===e&&(co=null);for(var t=0;t<e.length;t+=3){var r=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(pf(l||r)===null)continue;break}var c=te(r);c!==null&&(e.splice(t,3),t-=3,dc(c,{pending:!0,data:o,method:r.method,action:l},l,o))}}))}function gi(e){function t(T){return uo(T,e)}Qa!==null&&uo(Qa,e),Pa!==null&&uo(Pa,e),Ka!==null&&uo(Ka,e),_l.forEach(t),Sl.forEach(t);for(var r=0;r<$a.length;r++){var l=$a[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<$a.length&&(r=$a[0],r.blockedOn===null);)gg(r),r.blockedOn===null&&$a.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var o=r[l],c=r[l+1],d=o[Ke]||null;if(typeof c=="function")d||bg(r);else if(d){var b=null;if(c&&c.hasAttribute("formAction")){if(o=c,d=c[Ke]||null)b=d.formAction;else if(pf(o)!==null)continue}else b=d.action;typeof b=="function"?r[l+1]=b:(r.splice(l,3),l-=3),bg(r)}}}function vg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return o=d})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(r,20)}function r(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function yf(e){this._internalRoot=e}fo.prototype.render=yf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var r=t.current,l=tn();cg(r,l,e,t,null,null)},fo.prototype.unmount=yf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cg(e.current,2,null,e,null,null),Ys(),t[Jn]=null}};function fo(e){this._internalRoot=e}fo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Di();e={blockedOn:null,target:e,priority:t};for(var r=0;r<$a.length&&t!==0&&t<$a[r].priority;r++);$a.splice(r,0,e),r===0&&gg(e)}};var _g=a.version;if(_g!=="19.2.0")throw Error(s(527,_g,"19.2.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var eS={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{Mn=ho.inject(eS),bt=ho}catch{}}return Al.createRoot=function(e,t){if(!u(e))throw Error(s(299));var r=!1,l="",o=C0,c=R0,d=N0;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=og(e,1,!1,null,null,r,l,null,o,c,d,vg),e[Jn]=t.current,$c(e),new yf(t)},Al.hydrateRoot=function(e,t,r){if(!u(e))throw Error(s(299));var l=!1,o="",c=C0,d=R0,b=N0,T=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(d=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError),r.formState!==void 0&&(T=r.formState)),t=og(e,1,!0,t,r??null,l,o,T,c,d,b,vg),t.context=ug(null),r=t.current,l=tn(),l=It(l),o=ja(l),o.callback=null,Ua(r,o,l),r=l,t.current.lanes=r,Na(t,r),jn(t),e[Jn]=t.current,$c(e),new fo(t)},Al.version="19.2.0",Al}var wg;function cS(){if(wg)return vf.exports;wg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),vf.exports=uS(),vf.exports}var fS=cS(),U=Ko();const w1=Po(U);var Af={exports:{}},xf={};/**
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 Mg;function hS(){if(Mg)return xf;Mg=1;var n=Ko();function a(g,p){return g===p&&(g!==0||1/g===1/p)||g!==g&&p!==p}var i=typeof Object.is=="function"?Object.is:a,s=n.useSyncExternalStore,u=n.useRef,f=n.useEffect,h=n.useMemo,m=n.useDebugValue;return xf.useSyncExternalStoreWithSelector=function(g,p,v,S,A){var M=u(null);if(M.current===null){var _={hasValue:!1,value:null};M.current=_}else _=M.current;M=h(function(){function E(w){if(!D){if(D=!0,I=w,w=S(w),A!==void 0&&_.hasValue){var Z=_.value;if(A(Z,w))return H=Z}return H=w}if(Z=H,i(I,w))return Z;var P=S(w);return A!==void 0&&A(Z,P)?(I=w,Z):(I=w,H=P)}var D=!1,I,H,k=v===void 0?null:v;return[function(){return E(p())},k===null?void 0:function(){return E(k())}]},[p,v,S,A]);var O=s(g,M[0],M[1]);return f(function(){_.hasValue=!0,_.value=O},[O]),m(O),O},xf}var Dg;function dS(){return Dg||(Dg=1,Af.exports=hS()),Af.exports}var mS=dS(),pS=U.version.startsWith("19"),gS=Symbol.for(pS?"react.transitional.element":"react.element"),yS=Symbol.for("react.portal"),bS=Symbol.for("react.fragment"),vS=Symbol.for("react.strict_mode"),_S=Symbol.for("react.profiler"),SS=Symbol.for("react.consumer"),ES=Symbol.for("react.context"),M1=Symbol.for("react.forward_ref"),TS=Symbol.for("react.suspense"),AS=Symbol.for("react.suspense_list"),Qh=Symbol.for("react.memo"),xS=Symbol.for("react.lazy"),OS=M1,CS=Qh;function RS(n){if(typeof n=="object"&&n!==null){const{$$typeof:a}=n;switch(a){case gS:switch(n=n.type,n){case bS:case _S:case vS:case TS:case AS:return n;default:switch(n=n&&n.$$typeof,n){case ES:case M1:case xS:case Qh:return n;case SS:return n;default:return a}}case yS:return a}}}function NS(n){return RS(n)===Qh}function wS(n,a,i,s,{areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:h}){let m=!1,g,p,v,S,A;function M(I,H){return g=I,p=H,v=n(g,p),S=a(s,p),A=i(v,S,p),m=!0,A}function _(){return v=n(g,p),a.dependsOnOwnProps&&(S=a(s,p)),A=i(v,S,p),A}function O(){return n.dependsOnOwnProps&&(v=n(g,p)),a.dependsOnOwnProps&&(S=a(s,p)),A=i(v,S,p),A}function E(){const I=n(g,p),H=!h(I,v);return v=I,H&&(A=i(v,S,p)),A}function D(I,H){const k=!f(H,p),w=!u(I,g,H,p);return g=I,p=H,k&&w?_():k?O():w?E():A}return function(H,k){return m?D(H,k):M(H,k)}}function MS(n,{initMapStateToProps:a,initMapDispatchToProps:i,initMergeProps:s,...u}){const f=a(n,u),h=i(n,u),m=s(n,u);return wS(f,h,m,n,u)}function DS(n,a){const i={};for(const s in n){const u=n[s];typeof u=="function"&&(i[s]=(...f)=>a(u(...f)))}return i}function mh(n){return function(i){const s=n(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function Lg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function D1(n,a){return function(s,{displayName:u}){const f=function(m,g){return f.dependsOnOwnProps?f.mapToProps(m,g):f.mapToProps(m,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(m,g){f.mapToProps=n,f.dependsOnOwnProps=Lg(n);let p=f(m,g);return typeof p=="function"&&(f.mapToProps=p,f.dependsOnOwnProps=Lg(p),p=f(m,g)),p},f}}function Ph(n,a){return(i,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${a} argument when connecting component ${s.wrappedComponentName}.`)}}function LS(n){return n&&typeof n=="object"?mh(a=>DS(n,a)):n?typeof n=="function"?D1(n):Ph(n,"mapDispatchToProps"):mh(a=>({dispatch:a}))}function BS(n){return n?typeof n=="function"?D1(n):Ph(n,"mapStateToProps"):mh(()=>({}))}function HS(n,a,i){return{...i,...n,...a}}function jS(n){return function(i,{displayName:s,areMergedPropsEqual:u}){let f=!1,h;return function(g,p,v){const S=n(g,p,v);return f?u(S,h)||(h=S):(f=!0,h=S),h}}}function US(n){return n?typeof n=="function"?jS(n):Ph(n,"mergeProps"):()=>HS}function zS(n){n()}function IS(){let n=null,a=null;return{clear(){n=null,a=null},notify(){zS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=n;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=a={callback:i,next:null,prev:a};return u.prev?u.prev.next=u:n=u,function(){!s||n===null||(s=!1,u.next?u.next.prev=u.prev:a=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var Bg={notify(){},get:()=>[]};function L1(n,a){let i,s=Bg,u=0,f=!1;function h(O){v();const E=s.subscribe(O);let D=!1;return()=>{D||(D=!0,E(),S())}}function m(){s.notify()}function g(){_.onStateChange&&_.onStateChange()}function p(){return f}function v(){u++,i||(i=a?a.addNestedSub(g):n.subscribe(g),s=IS())}function S(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Bg)}function A(){f||(f=!0,v())}function M(){f&&(f=!1,S())}const _={addNestedSub:h,notifyNestedSubs:m,handleChangeWrapper:g,isSubscribed:p,trySubscribe:A,tryUnsubscribe:M,getListeners:()=>s};return _}var kS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GS=kS(),qS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",FS=qS(),VS=()=>GS||FS?U.useLayoutEffect:U.useEffect,Uo=VS();function Hg(n,a){return n===a?n!==0||a!==0||1/n===1/a:n!==n&&a!==a}function Of(n,a){if(Hg(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;const i=Object.keys(n),s=Object.keys(a);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(a,i[u])||!Hg(n[i[u]],a[i[u]]))return!1;return!0}var YS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ZS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},XS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},B1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QS={[OS]:XS,[CS]:B1};function jg(n){return NS(n)?B1:QS[n.$$typeof]||YS}var PS=Object.defineProperty,KS=Object.getOwnPropertyNames,Ug=Object.getOwnPropertySymbols,$S=Object.getOwnPropertyDescriptor,JS=Object.getPrototypeOf,zg=Object.prototype;function ph(n,a){if(typeof a!="string"){if(zg){const f=JS(a);f&&f!==zg&&ph(n,f)}let i=KS(a);Ug&&(i=i.concat(Ug(a)));const s=jg(n),u=jg(a);for(let f=0;f<i.length;++f){const h=i[f];if(!ZS[h]&&!(u&&u[h])&&!(s&&s[h])){const m=$S(a,h);try{PS(n,h,m)}catch{}}}}return n}var WS=Symbol.for("react-redux-context"),eE=typeof globalThis<"u"?globalThis:{};function tE(){if(!U.createContext)return{};const n=eE[WS]??=new Map;let a=n.get(U.createContext);return a||(a=U.createContext(null),n.set(U.createContext,a)),a}var Ea=tE(),nE=[null,null];function aE(n,a,i){Uo(()=>n(...a),i)}function rE(n,a,i,s,u,f){n.current=s,i.current=!1,u.current&&(u.current=null,f())}function iE(n,a,i,s,u,f,h,m,g,p,v){if(!n)return()=>{};let S=!1,A=null;const M=()=>{if(S||!m.current)return;const O=a.getState();let E,D;try{E=s(O,u.current)}catch(I){D=I,A=I}D||(A=null),E===f.current?h.current||p():(f.current=E,g.current=E,h.current=!0,v())};return i.onStateChange=M,i.trySubscribe(),M(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function lE(n,a){return n===a}function sE(n,a,i,{pure:s,areStatesEqual:u=lE,areOwnPropsEqual:f=Of,areStatePropsEqual:h=Of,areMergedPropsEqual:m=Of,forwardRef:g=!1,context:p=Ea}={}){const v=p,S=BS(n),A=LS(a),M=US(i),_=!!n;return E=>{const D=E.displayName||E.name||"Component",I=`Connect(${D})`,H={shouldHandleStateChanges:_,displayName:I,wrappedComponentName:D,WrappedComponent:E,initMapStateToProps:S,initMapDispatchToProps:A,initMergeProps:M,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:f,areMergedPropsEqual:m};function k(P){const[ae,De,He]=U.useMemo(()=>{const{reactReduxForwardedRef:pt,...Dt}=P;return[P.context,pt,Dt]},[P]),pe=U.useMemo(()=>{let pt=v;return ae?.Consumer,pt},[ae,v]),be=U.useContext(pe),K=!!P.store&&!!P.store.getState&&!!P.store.dispatch,Se=!!be&&!!be.store,se=K?P.store:be.store,L=Se?be.getServerState:se.getState,J=U.useMemo(()=>MS(se.dispatch,H),[se]),[oe,ve]=U.useMemo(()=>{if(!_)return nE;const pt=L1(se,K?void 0:be.subscription),Dt=pt.notifyNestedSubs.bind(pt);return[pt,Dt]},[se,K,be]),de=U.useMemo(()=>K?be:{...be,subscription:oe},[K,be,oe]),x=U.useRef(void 0),F=U.useRef(He),X=U.useRef(void 0),W=U.useRef(!1),ee=U.useRef(!1),fe=U.useRef(void 0);Uo(()=>(ee.current=!0,()=>{ee.current=!1}),[]);const Ee=U.useMemo(()=>()=>X.current&&He===F.current?X.current:J(se.getState(),He),[se,He]),Pe=U.useMemo(()=>Dt=>oe?iE(_,se,oe,J,F,x,W,ee,X,ve,Dt):()=>{},[oe]);aE(rE,[F,x,W,He,X,ve]);let Ie;try{Ie=U.useSyncExternalStore(Pe,Ee,L?()=>J(L(),He):Ee)}catch(pt){throw fe.current&&(pt.message+=`
58
+ The error may be correlated with this previous error:
59
+ ${fe.current.stack}
60
+
61
+ `),pt}Uo(()=>{fe.current=void 0,X.current=void 0,x.current=Ie});const Xt=U.useMemo(()=>U.createElement(E,{...Ie,ref:De}),[De,E,Ie]);return U.useMemo(()=>_?U.createElement(pe.Provider,{value:de},Xt):Xt,[pe,Xt,de])}const Z=U.memo(k);if(Z.WrappedComponent=E,Z.displayName=k.displayName=I,g){const ae=U.forwardRef(function(He,pe){return U.createElement(Z,{...He,reactReduxForwardedRef:pe})});return ae.displayName=I,ae.WrappedComponent=E,ph(ae,E)}return ph(Z,E)}}var oE=sE;function uE(n){const{children:a,context:i,serverState:s,store:u}=n,f=U.useMemo(()=>{const g=L1(u);return{store:u,subscription:g,getServerState:s?()=>s:void 0}},[u,s]),h=U.useMemo(()=>u.getState(),[u]);Uo(()=>{const{subscription:g}=f;return g.onStateChange=g.notifyNestedSubs,g.trySubscribe(),h!==u.getState()&&g.notifyNestedSubs(),()=>{g.tryUnsubscribe(),g.onStateChange=void 0}},[f,h]);const m=i||Ea;return U.createElement(m.Provider,{value:f},a)}var cE=uE;function Kh(n=Ea){return function(){return U.useContext(n)}}var H1=Kh();function j1(n=Ea){const a=n===Ea?H1:Kh(n),i=()=>{const{store:s}=a();return s};return Object.assign(i,{withTypes:()=>i}),i}var fE=j1();function hE(n=Ea){const a=n===Ea?fE:j1(n),i=()=>a().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var dE=hE(),mE=(n,a)=>n===a;function pE(n=Ea){const a=n===Ea?H1:Kh(n),i=(s,u={})=>{const{equalityFn:f=mE}=typeof u=="function"?{equalityFn:u}:u,h=a(),{store:m,subscription:g,getServerState:p}=h;U.useRef(!0);const v=U.useCallback({[s.name](A){return s(A)}}[s.name],[s]),S=mS.useSyncExternalStoreWithSelector(g.addNestedSub,m.getState,p||m.getState,v,f);return U.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var gE=pE(),Cf={exports:{}};/*!
62
+ Copyright (c) 2018 Jed Watson.
63
+ Licensed under the MIT License (MIT), see
64
+ http://jedwatson.github.io/classnames
65
+ */var Ig;function yE(){return Ig||(Ig=1,(function(n){(function(){var a={}.hasOwnProperty;function i(){for(var f="",h=0;h<arguments.length;h++){var m=arguments[h];m&&(f=u(f,s(m)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var h="";for(var m in f)a.call(f,m)&&f[m]&&(h=u(h,m));return h}function u(f,h){return h?f?f+" "+h:f+h:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(Cf)),Cf.exports}var bE=yE();const $=Po(bE);var gh=function(n,a){return gh=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])},gh(n,a)};function _n(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");gh(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}var le=function(){return le=Object.assign||function(a){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(a[f]=i[f])}return a},le.apply(this,arguments)};function $o(n,a){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)a.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function Gn(n,a,i){if(i||arguments.length===2)for(var s=0,u=a.length,f;s<u;s++)(f||!(s in a))&&(f||(f=Array.prototype.slice.call(a,0,s)),f[s]=a[s]);return n.concat(f||Array.prototype.slice.call(a))}function In(n,a){var i=a&&a.cache?a.cache:xE,s=a&&a.serializer?a.serializer:TE,u=a&&a.strategy?a.strategy:SE;return u(n,{cache:i,serializer:s})}function vE(n){return n==null||typeof n=="number"||typeof n=="boolean"}function _E(n,a,i,s){var u=vE(s)?s:i(s),f=a.get(u);return typeof f>"u"&&(f=n.call(this,s),a.set(u,f)),f}function U1(n,a,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),f=a.get(u);return typeof f>"u"&&(f=n.apply(this,s),a.set(u,f)),f}function z1(n,a,i,s,u){return i.bind(a,n,s,u)}function SE(n,a){var i=n.length===1?_E:U1;return z1(n,this,i,a.cache.create(),a.serializer)}function EE(n,a){return z1(n,this,U1,a.cache.create(),a.serializer)}var TE=function(){return JSON.stringify(arguments)},AE=(function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(a){return this.cache[a]},n.prototype.set=function(a,i){this.cache[a]=i},n})(),xE={create:function(){return new AE}},kn={variadic:EE},Ne;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Ne||(Ne={}));var Qe;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})(Qe||(Qe={}));var _i;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(_i||(_i={}));function kg(n){return n.type===Qe.literal}function OE(n){return n.type===Qe.argument}function I1(n){return n.type===Qe.number}function k1(n){return n.type===Qe.date}function G1(n){return n.type===Qe.time}function q1(n){return n.type===Qe.select}function F1(n){return n.type===Qe.plural}function CE(n){return n.type===Qe.pound}function V1(n){return n.type===Qe.tag}function Y1(n){return!!(n&&typeof n=="object"&&n.type===_i.number)}function yh(n){return!!(n&&typeof n=="object"&&n.type===_i.dateTime)}var Z1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,RE=/(?:[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 NE(n){var a={};return n.replace(RE,function(i){var s=i.length;switch(i[0]){case"G":a.era=s===4?"long":s===5?"narrow":"short";break;case"y":a.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":a.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":a.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":a.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][s-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][s-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][s-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][s-1];break;case"k":a.hourCycle="h24",a.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":a.minute=["numeric","2-digit"][s-1];break;case"s":a.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":a.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""}),a}var wE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ME(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var a=n.split(wE).filter(function(A){return A.length>0}),i=[],s=0,u=a;s<u.length;s++){var f=u[s],h=f.split("/");if(h.length===0)throw new Error("Invalid number skeleton");for(var m=h[0],g=h.slice(1),p=0,v=g;p<v.length;p++){var S=v[p];if(S.length===0)throw new Error("Invalid number skeleton")}i.push({stem:m,options:g})}return i}function DE(n){return n.replace(/^(.*?)-/,"")}var Gg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,X1=/^(@+)?(\+|#+)?[rs]?$/g,LE=/(\*)(0+)|(#+)(0+)|(0+)/g,Q1=/^(0+)$/;function qg(n){var a={};return n[n.length-1]==="r"?a.roundingPriority="morePrecision":n[n.length-1]==="s"&&(a.roundingPriority="lessPrecision"),n.replace(X1,function(i,s,u){return typeof u!="string"?(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length):u==="+"?a.minimumSignificantDigits=s.length:s[0]==="#"?a.maximumSignificantDigits=s.length:(a.minimumSignificantDigits=s.length,a.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),a}function P1(n){switch(n){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 BE(n){var a;if(n[0]==="E"&&n[1]==="E"?(a={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(a={notation:"scientific"},n=n.slice(1)),a){var i=n.slice(0,2);if(i==="+!"?(a.signDisplay="always",n=n.slice(2)):i==="+?"&&(a.signDisplay="exceptZero",n=n.slice(2)),!Q1.test(n))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=n.length}return a}function Fg(n){var a={},i=P1(n);return i||a}function HE(n){for(var a={},i=0,s=n;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=u.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=DE(u.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=le(le(le({},a),{notation:"scientific"}),u.options.reduce(function(g,p){return le(le({},g),Fg(p))},{}));continue;case"engineering":a=le(le(le({},a),{notation:"engineering"}),u.options.reduce(function(g,p){return le(le({},g),Fg(p))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.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(LE,function(g,p,v,S,A,M){if(p)a.minimumIntegerDigits=v.length;else{if(S&&A)throw new Error("We currently do not support maximum integer digits");if(M)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Q1.test(u.stem)){a.minimumIntegerDigits=u.stem.length;continue}if(Gg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Gg,function(g,p,v,S,A,M){return v==="*"?a.minimumFractionDigits=p.length:S&&S[0]==="#"?a.maximumFractionDigits=S.length:A&&M?(a.minimumFractionDigits=A.length,a.maximumFractionDigits=A.length+M.length):(a.minimumFractionDigits=p.length,a.maximumFractionDigits=p.length),""});var f=u.options[0];f==="w"?a=le(le({},a),{trailingZeroDisplay:"stripIfInteger"}):f&&(a=le(le({},a),qg(f)));continue}if(X1.test(u.stem)){a=le(le({},a),qg(u.stem));continue}var h=P1(u.stem);h&&(a=le(le({},a),h));var m=BE(u.stem);m&&(a=le(le({},a),m))}return a}var po={"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 jE(n,a){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var f=0;s+1<n.length&&n.charAt(s+1)===u;)f++,s++;var h=1+(f&1),m=f<2?1:3+(f>>1),g="a",p=UE(a);for((p=="H"||p=="k")&&(m=0);m-- >0;)i+=g;for(;h-- >0;)i=p+i}else u==="J"?i+="H":i+=u}return i}function UE(n){var a=n.hourCycle;if(a===void 0&&n.hourCycles&&n.hourCycles.length&&(a=n.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,s;i!=="root"&&(s=n.maximize().region);var u=po[s||""]||po[i||""]||po["".concat(i,"-001")]||po["001"];return u[0]}var Rf,zE=new RegExp("^".concat(Z1.source,"*")),IE=new RegExp("".concat(Z1.source,"*$"));function Me(n,a){return{start:n,end:a}}var kE=!!String.prototype.startsWith&&"_a".startsWith("a",1),GE=!!String.fromCodePoint,qE=!!Object.fromEntries,FE=!!String.prototype.codePointAt,VE=!!String.prototype.trimStart,YE=!!String.prototype.trimEnd,ZE=!!Number.isSafeInteger,XE=ZE?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},bh=!0;try{var QE=$1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bh=((Rf=QE.exec("a"))===null||Rf===void 0?void 0:Rf[0])==="a"}catch{bh=!1}var Vg=kE?function(a,i,s){return a.startsWith(i,s)}:function(a,i,s){return a.slice(s,s+i.length)===i},vh=GE?String.fromCodePoint:function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var s="",u=a.length,f=0,h;u>f;){if(h=a[f++],h>1114111)throw RangeError(h+" is not a valid code point");s+=h<65536?String.fromCharCode(h):String.fromCharCode(((h-=65536)>>10)+55296,h%1024+56320)}return s},Yg=qE?Object.fromEntries:function(a){for(var i={},s=0,u=a;s<u.length;s++){var f=u[s],h=f[0],m=f[1];i[h]=m}return i},K1=FE?function(a,i){return a.codePointAt(i)}:function(a,i){var s=a.length;if(!(i<0||i>=s)){var u=a.charCodeAt(i),f;return u<55296||u>56319||i+1===s||(f=a.charCodeAt(i+1))<56320||f>57343?u:(u-55296<<10)+(f-56320)+65536}},PE=VE?function(a){return a.trimStart()}:function(a){return a.replace(zE,"")},KE=YE?function(a){return a.trimEnd()}:function(a){return a.replace(IE,"")};function $1(n,a){return new RegExp(n,a)}var _h;if(bh){var Zg=$1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_h=function(a,i){var s;Zg.lastIndex=i;var u=Zg.exec(a);return(s=u[1])!==null&&s!==void 0?s:""}}else _h=function(a,i){for(var s=[];;){var u=K1(a,i);if(u===void 0||J1(u)||eT(u))break;s.push(u),i+=u>=65536?2:1}return vh.apply(void 0,s)};var $E=(function(){function n(a,i){i===void 0&&(i={}),this.message=a,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 n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(a,i,s){for(var u=[];!this.isEOF();){var f=this.char();if(f===123){var h=this.parseArgument(a,s);if(h.err)return h;u.push(h.val)}else{if(f===125&&a>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var m=this.clonePosition();this.bump(),u.push({type:Qe.pound,location:Me(m,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(Ne.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&Sh(this.peek()||0)){var h=this.parseTag(a,i);if(h.err)return h;u.push(h.val)}else{var h=this.parseLiteral(a,i);if(h.err)return h;u.push(h.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(a,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Qe.literal,value:"<".concat(u,"/>"),location:Me(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(a+1,i,!0);if(f.err)return f;var h=f.val,m=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Sh(this.char()))return this.error(Ne.INVALID_TAG,Me(m,this.clonePosition()));var g=this.clonePosition(),p=this.parseTagName();return u!==p?this.error(Ne.UNMATCHED_CLOSING_TAG,Me(g,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Qe.tag,value:u,children:h,location:Me(s,this.clonePosition())},err:null}:this.error(Ne.INVALID_TAG,Me(m,this.clonePosition())))}else return this.error(Ne.UNCLOSED_TAG,Me(s,this.clonePosition()))}else return this.error(Ne.INVALID_TAG,Me(s,this.clonePosition()))},n.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&WE(this.char());)this.bump();return this.message.slice(a,this.offset())},n.prototype.parseLiteral=function(a,i){for(var s=this.clonePosition(),u="";;){var f=this.tryParseQuote(i);if(f){u+=f;continue}var h=this.tryParseUnquoted(a,i);if(h){u+=h;continue}var m=this.tryParseLeftAngleBracket();if(m){u+=m;continue}break}var g=Me(s,this.clonePosition());return{val:{type:Qe.literal,value:u,location:g},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!JE(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(a){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(a==="plural"||a==="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 vh.apply(void 0,i)},n.prototype.tryParseUnquoted=function(a,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&a>0?null:(this.bump(),vh(s))},n.prototype.parseArgument=function(a,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Ne.EMPTY_ARGUMENT,Me(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(Ne.MALFORMED_ARGUMENT,Me(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Qe.argument,value:u,location:Me(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition())):this.parseArgumentOptions(a,i,u,s);default:return this.error(Ne.MALFORMED_ARGUMENT,Me(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),i=this.offset(),s=_h(this.message,i),u=i+s.length;this.bumpTo(u);var f=this.clonePosition(),h=Me(a,f);return{value:s,location:h}},n.prototype.parseArgumentOptions=function(a,i,s,u){var f,h=this.clonePosition(),m=this.parseIdentifierIfPossible().value,g=this.clonePosition();switch(m){case"":return this.error(Ne.EXPECT_ARGUMENT_TYPE,Me(h,g));case"number":case"date":case"time":{this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),S=this.parseSimpleArgStyleIfPossible();if(S.err)return S;var A=KE(S.val);if(A.length===0)return this.error(Ne.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var M=Me(v,this.clonePosition());p={style:A,styleLocation:M}}var _=this.tryParseArgumentClose(u);if(_.err)return _;var O=Me(u,this.clonePosition());if(p&&Vg(p?.style,"::",0)){var E=PE(p.style.slice(2));if(m==="number"){var S=this.parseNumberSkeletonFromString(E,p.styleLocation);return S.err?S:{val:{type:Qe.number,value:s,location:O,style:S.val},err:null}}else{if(E.length===0)return this.error(Ne.EXPECT_DATE_TIME_SKELETON,O);var D=E;this.locale&&(D=jE(E,this.locale));var A={type:_i.dateTime,pattern:D,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?NE(D):{}},I=m==="date"?Qe.date:Qe.time;return{val:{type:I,value:s,location:O,style:A},err:null}}}return{val:{type:m==="number"?Qe.number:m==="date"?Qe.date:Qe.time,value:s,location:O,style:(f=p?.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ne.EXPECT_SELECT_ARGUMENT_OPTIONS,Me(H,le({},H)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),w=0;if(m!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(Ne.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var S=this.tryParseDecimalInteger(Ne.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ne.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(S.err)return S;this.bumpSpace(),k=this.parseIdentifierIfPossible(),w=S.val}var Z=this.tryParsePluralOrSelectOptions(a,m,i,k);if(Z.err)return Z;var _=this.tryParseArgumentClose(u);if(_.err)return _;var P=Me(u,this.clonePosition());return m==="select"?{val:{type:Qe.select,value:s,options:Yg(Z.val),location:P},err:null}:{val:{type:Qe.plural,value:s,options:Yg(Z.val),offset:w,pluralType:m==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(Ne.INVALID_ARGUMENT_TYPE,Me(h,g))}},n.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error(Ne.EXPECT_ARGUMENT_CLOSING_BRACE,Me(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=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(Ne.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Me(u,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=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}},n.prototype.parseNumberSkeletonFromString=function(a,i){var s=[];try{s=ME(a)}catch{return this.error(Ne.INVALID_NUMBER_SKELETON,i)}return{val:{type:_i.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?HE(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(a,i,s,u){for(var f,h=!1,m=[],g=new Set,p=u.value,v=u.location;;){if(p.length===0){var S=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(Ne.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ne.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;v=Me(S,this.clonePosition()),p=this.message.slice(S.offset,this.offset())}else break}if(g.has(p))return this.error(i==="select"?Ne.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ne.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);p==="other"&&(h=!0),this.bumpSpace();var M=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Ne.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ne.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Me(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(a+1,i,s);if(_.err)return _;var O=this.tryParseArgumentClose(M);if(O.err)return O;m.push([p,{value:_.val,location:Me(M,this.clonePosition())}]),g.add(p),this.bumpSpace(),f=this.parseIdentifierIfPossible(),p=f.value,v=f.location}return m.length===0?this.error(i==="select"?Ne.EXPECT_SELECT_ARGUMENT_SELECTOR:Ne.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(Ne.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:m,err:null}},n.prototype.tryParseDecimalInteger=function(a,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var f=!1,h=0;!this.isEOF();){var m=this.char();if(m>=48&&m<=57)f=!0,h=h*10+(m-48),this.bump();else break}var g=Me(u,this.clonePosition());return f?(h*=s,XE(h)?{val:h,err:null}:this.error(i,g)):this.error(a,g)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var i=K1(this.message,a);if(i===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(a,i){return{val:null,err:{kind:a,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},n.prototype.bumpIf=function(a){if(Vg(this.message,a,this.offset())){for(var i=0;i<a.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(a){var i=this.offset(),s=this.message.indexOf(a,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var i=this.offset();if(i===a)break;if(i>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&J1(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(a>=65536?2:1));return s??null},n})();function Sh(n){return n>=97&&n<=122||n>=65&&n<=90}function JE(n){return Sh(n)||n===47}function WE(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function J1(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function eT(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function Eh(n){n.forEach(function(a){if(delete a.location,q1(a)||F1(a))for(var i in a.options)delete a.options[i].location,Eh(a.options[i].value);else I1(a)&&Y1(a.style)||(k1(a)||G1(a))&&yh(a.style)?delete a.style.location:V1(a)&&Eh(a.children)})}function tT(n,a){a===void 0&&(a={}),a=le({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var i=new $E(n,a).parse();if(i.err){var s=SyntaxError(Ne[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return a?.captureLocation||Eh(i.val),i.val}var Vn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Vn||(Vn={}));var ar=(function(n){_n(a,n);function a(i,s,u){var f=n.call(this,i)||this;return f.code=s,f.originalMessage=u,f}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a})(Error),Xg=(function(n){_n(a,n);function a(i,s,u,f){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Vn.INVALID_VALUE,f)||this}return a})(ar),nT=(function(n){_n(a,n);function a(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),Vn.INVALID_VALUE,u)||this}return a})(ar),aT=(function(n){_n(a,n);function a(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),Vn.MISSING_VALUE,s)||this}return a})(ar),Ht;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(Ht||(Ht={}));function rT(n){return n.length<2?n:n.reduce(function(a,i){var s=a[a.length-1];return!s||s.type!==Ht.literal||i.type!==Ht.literal?a.push(i):s.value+=i.value,a},[])}function W1(n){return typeof n=="function"}function wo(n,a,i,s,u,f,h){if(n.length===1&&kg(n[0]))return[{type:Ht.literal,value:n[0].value}];for(var m=[],g=0,p=n;g<p.length;g++){var v=p[g];if(kg(v)){m.push({type:Ht.literal,value:v.value});continue}if(CE(v)){typeof f=="number"&&m.push({type:Ht.literal,value:i.getNumberFormat(a).format(f)});continue}var S=v.value;if(!(u&&S in u))throw new aT(S,h);var A=u[S];if(OE(v)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),m.push({type:typeof A=="string"?Ht.literal:Ht.object,value:A});continue}if(k1(v)){var M=typeof v.style=="string"?s.date[v.style]:yh(v.style)?v.style.parsedOptions:void 0;m.push({type:Ht.literal,value:i.getDateTimeFormat(a,M).format(A)});continue}if(G1(v)){var M=typeof v.style=="string"?s.time[v.style]:yh(v.style)?v.style.parsedOptions:s.time.medium;m.push({type:Ht.literal,value:i.getDateTimeFormat(a,M).format(A)});continue}if(I1(v)){var M=typeof v.style=="string"?s.number[v.style]:Y1(v.style)?v.style.parsedOptions:void 0;M&&M.scale&&(A=A*(M.scale||1)),m.push({type:Ht.literal,value:i.getNumberFormat(a,M).format(A)});continue}if(V1(v)){var _=v.children,O=v.value,E=u[O];if(!W1(E))throw new nT(O,"function",h);var D=wo(_,a,i,s,u,f),I=E(D.map(function(w){return w.value}));Array.isArray(I)||(I=[I]),m.push.apply(m,I.map(function(w){return{type:typeof w=="string"?Ht.literal:Ht.object,value:w}}))}if(q1(v)){var H=v.options[A]||v.options.other;if(!H)throw new Xg(v.value,A,Object.keys(v.options),h);m.push.apply(m,wo(H.value,a,i,s,u));continue}if(F1(v)){var H=v.options["=".concat(A)];if(!H){if(!Intl.PluralRules)throw new ar(`Intl.PluralRules is not available in this environment.
66
+ Try polyfilling it using "@formatjs/intl-pluralrules"
67
+ `,Vn.MISSING_INTL_API,h);var k=i.getPluralRules(a,{type:v.pluralType}).select(A-(v.offset||0));H=v.options[k]||v.options.other}if(!H)throw new Xg(v.value,A,Object.keys(v.options),h);m.push.apply(m,wo(H.value,a,i,s,u,A-(v.offset||0)));continue}}return rT(m)}function iT(n,a){return a?le(le(le({},n||{}),a||{}),Object.keys(n).reduce(function(i,s){return i[s]=le(le({},n[s]),a[s]||{}),i},{})):n}function lT(n,a){return a?Object.keys(n).reduce(function(i,s){return i[s]=iT(n[s],a[s]),i},le({},n)):n}function Nf(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function sT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:In(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.NumberFormat).bind.apply(a,Gn([void 0],i,!1)))},{cache:Nf(n.number),strategy:kn.variadic}),getDateTimeFormat:In(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.DateTimeFormat).bind.apply(a,Gn([void 0],i,!1)))},{cache:Nf(n.dateTime),strategy:kn.variadic}),getPluralRules:In(function(){for(var a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((a=Intl.PluralRules).bind.apply(a,Gn([void 0],i,!1)))},{cache:Nf(n.pluralRules),strategy:kn.variadic})}}var eb=(function(){function n(a,i,s,u){i===void 0&&(i=n.defaultLocale);var f=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(g){var p=f.formatToParts(g);if(p.length===1)return p[0].value;var v=p.reduce(function(S,A){return!S.length||A.type!==Ht.literal||typeof S[S.length-1]!="string"?S.push(A.value):S[S.length-1]+=A.value,S},[]);return v.length<=1?v[0]||"":v},this.formatToParts=function(g){return wo(f.ast,f.locales,f.formatters,f.formats,g,void 0,f.message)},this.resolvedOptions=function(){var g;return{locale:((g=f.resolvedLocale)===null||g===void 0?void 0:g.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof a=="string"){if(this.message=a,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=u||{};h.formatters;var m=$o(h,["formatters"]);this.ast=n.__parse(a,le(le({},m),{locale:this.resolvedLocale}))}else this.ast=a;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=lT(n.formats,s),this.formatters=u&&u.formatters||sT(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(a){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(a);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof a=="string"?a:a[0])}},n.__parse=tT,n.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"}}},n})(),Mr;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Mr||(Mr={}));var Fl=(function(n){_n(a,n);function a(i,s,u){var f=this,h=u?u instanceof Error?u:new Error(String(u)):void 0;return f=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
68
+ `).concat(h?`
69
+ `.concat(h.message,`
70
+ `).concat(h.stack):""))||this,f.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(f,a),f}return a})(Error),oT=(function(n){_n(a,n);function a(i,s){return n.call(this,Mr.UNSUPPORTED_FORMATTER,i,s)||this}return a})(Fl),uT=(function(n){_n(a,n);function a(i,s){return n.call(this,Mr.INVALID_CONFIG,i,s)||this}return a})(Fl),Qg=(function(n){_n(a,n);function a(i,s){return n.call(this,Mr.MISSING_DATA,i,s)||this}return a})(Fl),Sn=(function(n){_n(a,n);function a(i,s,u){var f=n.call(this,Mr.FORMAT_ERROR,"".concat(i,`
71
+ Locale: `).concat(s,`
72
+ `),u)||this;return f.locale=s,f}return a})(Fl),wf=(function(n){_n(a,n);function a(i,s,u,f){var h=n.call(this,"".concat(i,`
73
+ MessageID: `).concat(u?.id,`
74
+ Default Message: `).concat(u?.defaultMessage,`
75
+ Description: `).concat(u?.description,`
76
+ `),s,f)||this;return h.descriptor=u,h.locale=s,h}return a})(Sn),cT=(function(n){_n(a,n);function a(i,s){var u=n.call(this,Mr.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(f){var h;return(h=f.value)!==null&&h!==void 0?h:JSON.stringify(f)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return a})(Fl);function fT(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function Si(n,a,i){return i===void 0&&(i={}),a.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var hT=function(n){},dT=function(n){},tb={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:hT,onWarn:dT};function nb(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ar(n){return{create:function(){return{get:function(a){return n[a]},set:function(a,i){n[a]=i}}}}}function mT(n){n===void 0&&(n=nb());var a=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=In(function(){for(var m,g=[],p=0;p<arguments.length;p++)g[p]=arguments[p];return new((m=Intl.DateTimeFormat).bind.apply(m,Gn([void 0],g,!1)))},{cache:Ar(n.dateTime),strategy:kn.variadic}),f=In(function(){for(var m,g=[],p=0;p<arguments.length;p++)g[p]=arguments[p];return new((m=Intl.NumberFormat).bind.apply(m,Gn([void 0],g,!1)))},{cache:Ar(n.number),strategy:kn.variadic}),h=In(function(){for(var m,g=[],p=0;p<arguments.length;p++)g[p]=arguments[p];return new((m=Intl.PluralRules).bind.apply(m,Gn([void 0],g,!1)))},{cache:Ar(n.pluralRules),strategy:kn.variadic});return{getDateTimeFormat:u,getNumberFormat:f,getMessageFormat:In(function(m,g,p,v){return new eb(m,g,p,le({formatters:{getNumberFormat:f,getDateTimeFormat:u,getPluralRules:h}},v||{}))},{cache:Ar(n.message),strategy:kn.variadic}),getRelativeTimeFormat:In(function(){for(var m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new(a.bind.apply(a,Gn([void 0],m,!1)))},{cache:Ar(n.relativeTime),strategy:kn.variadic}),getPluralRules:h,getListFormat:In(function(){for(var m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new(i.bind.apply(i,Gn([void 0],m,!1)))},{cache:Ar(n.list),strategy:kn.variadic}),getDisplayNames:In(function(){for(var m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new(s.bind.apply(s,Gn([void 0],m,!1)))},{cache:Ar(n.displayNames),strategy:kn.variadic})}}function $h(n,a,i,s){var u=n&&n[a],f;if(u&&(f=u[i]),f)return f;s(new oT("No ".concat(a," format named: ").concat(i)))}function go(n,a){return Object.keys(n).reduce(function(i,s){return i[s]=le({timeZone:a},n[s]),i},{})}function Pg(n,a){var i=Object.keys(le(le({},n),a));return i.reduce(function(s,u){return s[u]=le(le({},n[u]||{}),a[u]||{}),s},{})}function Kg(n,a){if(!a)return n;var i=eb.formats;return le(le(le({},i),n),{date:Pg(go(i.date,a),go(n.date||{},a)),time:Pg(go(i.time,a),go(n.time||{},a))})}var Th=function(n,a,i,s,u){var f=n.locale,h=n.formats,m=n.messages,g=n.defaultLocale,p=n.defaultFormats,v=n.fallbackOnEmptyString,S=n.onError,A=n.timeZone,M=n.defaultRichTextElements;i===void 0&&(i={id:""});var _=i.id,O=i.defaultMessage;fT(!!_,"[@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 E=String(_),D=m&&Object.prototype.hasOwnProperty.call(m,E)&&m[E];if(Array.isArray(D)&&D.length===1&&D[0].type===Qe.literal)return D[0].value;if(!s&&D&&typeof D=="string"&&!M)return D.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=le(le({},M),s||{}),h=Kg(h,A),p=Kg(p,A),!D){if(v===!1&&D==="")return D;if((!O||f&&f.toLowerCase()!==g.toLowerCase())&&S(new cT(i,f)),O)try{var I=a.getMessageFormat(O,g,p,u);return I.format(s)}catch(H){return S(new wf('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),f,i,H)),typeof O=="string"?O:E}return E}try{var I=a.getMessageFormat(D,f,h,le({formatters:a},u||{}));return I.format(s)}catch(H){S(new wf('Error formatting message: "'.concat(E,'", using ').concat(O?"default message":"id"," as fallback."),f,i,H))}if(O)try{var I=a.getMessageFormat(O,g,p,u);return I.format(s)}catch(H){S(new wf('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),f,i,H))}return typeof D=="string"?D:typeof O=="string"?O:E},pT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Vl(n,a,i,s){var u=n.locale,f=n.formats,h=n.onError,m=n.timeZone;s===void 0&&(s={});var g=s.format,p=le(le({},m&&{timeZone:m}),g&&$h(f,a,g,h)),v=Si(s,pT,p);return a==="time"&&!v.hour&&!v.minute&&!v.second&&!v.timeStyle&&!v.dateStyle&&(v=le(le({},v),{hour:"numeric",minute:"numeric"})),i(u,v)}function gT(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],h=f===void 0?{}:f,m=typeof u=="string"?new Date(u||0):u;try{return Vl(n,"date",a,h).format(m)}catch(g){n.onError(new Sn("Error formatting date.",n.locale,g))}return String(m)}function yT(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],h=f===void 0?{}:f,m=typeof u=="string"?new Date(u||0):u;try{return Vl(n,"time",a,h).format(m)}catch(g){n.onError(new Sn("Error formatting time.",n.locale,g))}return String(m)}function bT(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],h=i[2],m=h===void 0?{}:h,g=typeof u=="string"?new Date(u||0):u,p=typeof f=="string"?new Date(f||0):f;try{return Vl(n,"dateTimeRange",a,m).formatRange(g,p)}catch(v){n.onError(new Sn("Error formatting date time range.",n.locale,v))}return String(g)}function vT(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],h=f===void 0?{}:f,m=typeof u=="string"?new Date(u||0):u;try{return Vl(n,"date",a,h).formatToParts(m)}catch(g){n.onError(new Sn("Error formatting date.",n.locale,g))}return[]}function _T(n,a){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],f=i[1],h=f===void 0?{}:f,m=typeof u=="string"?new Date(u||0):u;try{return Vl(n,"time",a,h).formatToParts(m)}catch(g){n.onError(new Sn("Error formatting time.",n.locale,g))}return[]}var ST=["style","type","fallback","languageDisplay"];function ET(n,a,i,s){var u=n.locale,f=n.onError,h=Intl.DisplayNames;h||f(new ar(`Intl.DisplayNames is not available in this environment.
77
+ Try polyfilling it using "@formatjs/intl-displaynames"
78
+ `,Vn.MISSING_INTL_API));var m=Si(s,ST);try{return a(u,m).of(i)}catch(g){f(new Sn("Error formatting display name.",u,g))}}var TT=["type","style"],$g=Date.now();function AT(n){return"".concat($g,"_").concat(n,"_").concat($g)}function xT(n,a,i,s){s===void 0&&(s={});var u=ab(n,a,i,s).reduce(function(f,h){var m=h.value;return typeof m!="string"?f.push(m):typeof f[f.length-1]=="string"?f[f.length-1]+=m:f.push(m),f},[]);return u.length===1?u[0]:u.length===0?"":u}function ab(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={});var h=Intl.ListFormat;h||f(new ar(`Intl.ListFormat is not available in this environment.
79
+ Try polyfilling it using "@formatjs/intl-listformat"
80
+ `,Vn.MISSING_INTL_API));var m=Si(s,TT);try{var g={},p=Array.from(i).map(function(v,S){if(typeof v=="object"&&v!==null){var A=AT(S);return g[A]=v,A}return String(v)});return a(u,m).formatToParts(p).map(function(v){return v.type==="literal"?v:le(le({},v),{value:g[v.value]||v.value})})}catch(v){f(new Sn("Error formatting list.",u,v))}return i}var OT=["type"];function CT(n,a,i,s){var u=n.locale,f=n.onError;s===void 0&&(s={}),Intl.PluralRules||f(new ar(`Intl.PluralRules is not available in this environment.
81
+ Try polyfilling it using "@formatjs/intl-pluralrules"
82
+ `,Vn.MISSING_INTL_API));var h=Si(s,OT);try{return a(u,h).select(i)}catch(m){f(new Sn("Error formatting plural.",u,m))}return"other"}var RT=["numeric","style"];function NT(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,m=!!h&&$h(u,"relative",h,f)||{},g=Si(i,RT,m);return a(s,g)}function wT(n,a,i,s,u){u===void 0&&(u={}),s||(s="second");var f=Intl.RelativeTimeFormat;f||n.onError(new ar(`Intl.RelativeTimeFormat is not available in this environment.
83
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
+ `,Vn.MISSING_INTL_API));try{return NT(n,a,u).format(i,s)}catch(h){n.onError(new Sn("Error formatting relative time.",n.locale,h))}return String(i)}var MT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function rb(n,a,i){var s=n.locale,u=n.formats,f=n.onError;i===void 0&&(i={});var h=i.format,m=h&&$h(u,"number",h,f)||{},g=Si(i,MT,m);return a(s,g)}function DT(n,a,i,s){s===void 0&&(s={});try{return rb(n,a,s).format(i)}catch(u){n.onError(new Sn("Error formatting number.",n.locale,u))}return String(i)}function LT(n,a,i,s){s===void 0&&(s={});try{return rb(n,a,s).formatToParts(i)}catch(u){n.onError(new Sn("Error formatting number.",n.locale,u))}return[]}function BT(n){var a=n?n[Object.keys(n)[0]]:void 0;return typeof a=="string"}function HT(n){n.onWarn&&n.defaultRichTextElements&&BT(n.messages||{})&&n.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 jT(n,a){var i=mT(a),s=le(le({},tb),n),u=s.locale,f=s.defaultLocale,h=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Qg('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&h&&h(new Qg('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(h&&h(new uT('"locale" was not configured, using "'.concat(f,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),HT(s),le(le({},s),{formatters:i,formatNumber:DT.bind(null,s,i.getNumberFormat),formatNumberToParts:LT.bind(null,s,i.getNumberFormat),formatRelativeTime:wT.bind(null,s,i.getRelativeTimeFormat),formatDate:gT.bind(null,s,i.getDateTimeFormat),formatDateToParts:vT.bind(null,s,i.getDateTimeFormat),formatTime:yT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:bT.bind(null,s,i.getDateTimeFormat),formatTimeToParts:_T.bind(null,s,i.getDateTimeFormat),formatPlural:CT.bind(null,s,i.getPluralRules),formatMessage:Th.bind(null,s,i),$t:Th.bind(null,s,i),formatList:xT.bind(null,s,i.getListFormat),formatListToParts:ab.bind(null,s,i.getListFormat),formatDisplayName:ET.bind(null,s,i.getDisplayNames)})}function UT(n,a,i){if(i===void 0&&(i=Error),!n)throw new i(a)}function ib(n){UT(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var lb=le(le({},tb),{textComponent:U.Fragment}),zT=function(n,a){return U.isValidElement(n)?U.cloneElement(n,{key:a}):n},sb=function(n){var a;return(a=U.Children.map(n,zT))!==null&&a!==void 0?a:[]};function IT(n){return function(a){return n(sb(a))}}function kT(n,a){if(n===a)return!0;if(!n||!a)return!1;var i=Object.keys(n),s=Object.keys(a),u=i.length;if(s.length!==u)return!1;for(var f=0;f<u;f++){var h=i[f];if(n[h]!==a[h]||!Object.prototype.hasOwnProperty.call(a,h))return!1}return!0}var Mf={exports:{}},ze={};/** @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 Jg;function GT(){if(Jg)return ze;Jg=1;var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,m=n?Symbol.for("react.context"):60110,g=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,v=n?Symbol.for("react.forward_ref"):60112,S=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.suspense_list"):60120,M=n?Symbol.for("react.memo"):60115,_=n?Symbol.for("react.lazy"):60116,O=n?Symbol.for("react.block"):60121,E=n?Symbol.for("react.fundamental"):60117,D=n?Symbol.for("react.responder"):60118,I=n?Symbol.for("react.scope"):60119;function H(w){if(typeof w=="object"&&w!==null){var Z=w.$$typeof;switch(Z){case a:switch(w=w.type,w){case g:case p:case s:case f:case u:case S:return w;default:switch(w=w&&w.$$typeof,w){case m:case v:case _:case M:case h:return w;default:return Z}}case i:return Z}}}function k(w){return H(w)===p}return ze.AsyncMode=g,ze.ConcurrentMode=p,ze.ContextConsumer=m,ze.ContextProvider=h,ze.Element=a,ze.ForwardRef=v,ze.Fragment=s,ze.Lazy=_,ze.Memo=M,ze.Portal=i,ze.Profiler=f,ze.StrictMode=u,ze.Suspense=S,ze.isAsyncMode=function(w){return k(w)||H(w)===g},ze.isConcurrentMode=k,ze.isContextConsumer=function(w){return H(w)===m},ze.isContextProvider=function(w){return H(w)===h},ze.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===a},ze.isForwardRef=function(w){return H(w)===v},ze.isFragment=function(w){return H(w)===s},ze.isLazy=function(w){return H(w)===_},ze.isMemo=function(w){return H(w)===M},ze.isPortal=function(w){return H(w)===i},ze.isProfiler=function(w){return H(w)===f},ze.isStrictMode=function(w){return H(w)===u},ze.isSuspense=function(w){return H(w)===S},ze.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===s||w===p||w===f||w===u||w===S||w===A||typeof w=="object"&&w!==null&&(w.$$typeof===_||w.$$typeof===M||w.$$typeof===h||w.$$typeof===m||w.$$typeof===v||w.$$typeof===E||w.$$typeof===D||w.$$typeof===I||w.$$typeof===O)},ze.typeOf=H,ze}var Wg;function qT(){return Wg||(Wg=1,Mf.exports=GT()),Mf.exports}var Df,ey;function FT(){if(ey)return Df;ey=1;var n=qT(),a={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},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function h(_){return n.isMemo(_)?u:f[_.$$typeof]||a}var m=Object.defineProperty,g=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,A=Object.prototype;function M(_,O,E){if(typeof O!="string"){if(A){var D=S(O);D&&D!==A&&M(_,D,E)}var I=g(O);p&&(I=I.concat(p(O)));for(var H=h(_),k=h(O),w=0;w<I.length;++w){var Z=I[w];if(!i[Z]&&!(E&&E[Z])&&!(k&&k[Z])&&!(H&&H[Z])){var P=v(O,Z);try{m(_,Z,P)}catch{}}}}return _}return Df=M,Df}FT();var Jh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=U.createContext(null)):U.createContext(null);Jh.Consumer;var VT=Jh.Provider,YT=VT,ZT=Jh;function Jo(){var n=U.useContext(ZT);return ib(n),n}var Ah;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(Ah||(Ah={}));var xh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(xh||(xh={}));function ob(n){var a=function(i){var s=Jo(),u=i.value,f=i.children,h=$o(i,["value","children"]),m=typeof u=="string"?new Date(u||0):u,g=n==="formatDate"?s.formatDateToParts(m,h):s.formatTimeToParts(m,h);return f(g)};return a.displayName=xh[n],a}function Yl(n){var a=function(i){var s=Jo(),u=i.value,f=i.children,h=$o(i,["value","children"]),m=s[n](u,h);if(typeof f=="function")return f(m);var g=s.textComponent||U.Fragment;return U.createElement(g,null,m)};return a.displayName=Ah[n],a}function ub(n){return n&&Object.keys(n).reduce(function(a,i){var s=n[i];return a[i]=W1(s)?IT(s):s,a},{})}var ty=function(n,a,i,s){for(var u=[],f=4;f<arguments.length;f++)u[f-4]=arguments[f];var h=ub(s),m=Th.apply(void 0,Gn([n,a,i,h],u,!1));return Array.isArray(m)?sb(m):m},ny=function(n,a){var i=n.defaultRichTextElements,s=$o(n,["defaultRichTextElements"]),u=ub(i),f=jT(le(le(le({},lb),s),{defaultRichTextElements:u}),a),h={locale:f.locale,timeZone:f.timeZone,fallbackOnEmptyString:f.fallbackOnEmptyString,formats:f.formats,defaultLocale:f.defaultLocale,defaultFormats:f.defaultFormats,messages:f.messages,onError:f.onError,defaultRichTextElements:u};return le(le({},f),{formatMessage:ty.bind(null,h,f.formatters),$t:ty.bind(null,h,f.formatters)})};function Lf(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var XT=(function(n){_n(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=nb(),i.state={cache:i.cache,intl:ny(Lf(i.props),i.cache),prevConfig:Lf(i.props)},i}return a.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,f=s.cache,h=Lf(i);return kT(u,h)?null:{intl:ny(h,f),prevConfig:h}},a.prototype.render=function(){return ib(this.state.intl),U.createElement(YT,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=lb,a})(U.PureComponent);Yl("formatDate");Yl("formatTime");Yl("formatNumber");Yl("formatList");Yl("formatDisplayName");ob("formatDate");ob("formatTime");const QT="_app_1rj0t_1",PT={app:QT},xa=dE,at=gE,cb="%[a-f0-9]{2}",ay=new RegExp("("+cb+")|([^%]+?)","gi"),ry=new RegExp("("+cb+")+","gi");function Oh(n,a){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;a=a||1;const i=n.slice(0,a),s=n.slice(a);return Array.prototype.concat.call([],Oh(i),Oh(s))}function KT(n){try{return decodeURIComponent(n)}catch{let a=n.match(ay)||[];for(let i=1;i<a.length;i++)n=Oh(a,i).join(""),a=n.match(ay)||[];return n}}function $T(n){const a={"%FE%FF":"��","%FF%FE":"��"};let i=ry.exec(n);for(;i;){try{a[i[0]]=decodeURIComponent(i[0])}catch{const u=KT(i[0]);u!==i[0]&&(a[i[0]]=u)}i=ry.exec(n)}a["%C2"]="�";const s=Object.keys(a);for(const u of s)n=n.replace(new RegExp(u,"g"),a[u]);return n}function JT(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return $T(n)}}function WT(n,a){const i={};if(Array.isArray(a))for(const s of a){const u=Object.getOwnPropertyDescriptor(n,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,s);if(u.enumerable){const f=n[s];a(s,f,n)&&Object.defineProperty(i,s,u)}}return i}function fb(n,a){if(!(typeof n=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||a==="")return[];const i=n.indexOf(a);return i===-1?[]:[n.slice(0,i),n.slice(i+a.length)]}const eA=n=>n==null,tA=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`),Ch=Symbol("encodeFragmentIdentifier");function nA(n){switch(n.arrayFormat){case"index":return a=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[dt(a,n),"[",u,"]"].join("")]:[...i,[dt(a,n),"[",dt(u,n),"]=",dt(s,n)].join("")]};case"bracket":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[dt(a,n),"[]"].join("")]:[...i,[dt(a,n),"[]=",dt(s,n)].join("")];case"colon-list-separator":return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[dt(a,n),":list="].join("")]:[...i,[dt(a,n),":list=",dt(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const a=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[dt(i,n),a,dt(u,n)].join("")]:[[s,dt(u,n)].join(n.arrayFormatSeparator)])}default:return a=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,dt(a,n)]:[...i,[dt(a,n),"=",dt(s,n)].join("")]}}function aA(n){let a;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(a=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!a){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][a[1]]=s};case"bracket":return(i,s,u)=>{if(a=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!a){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(a=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!a){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 h=typeof s=="string"&&s.includes(n.arrayFormatSeparator)?s.split(n.arrayFormatSeparator).map(m=>Nr(m,n)):s===null?s:Nr(s,n);u[i]=h};case"bracket-separator":return(i,s,u)=>{const f=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!f){u[i]=s&&Nr(s,n);return}const h=s===null?[]:Nr(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=h;return}u[i]=[...u[i],...h]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function hb(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function dt(n,a){return a.encode?a.strict?tA(n):encodeURIComponent(n):n}function Nr(n,a){return a.decode?JT(n):n}function db(n){return Array.isArray(n)?n.sort():typeof n=="object"?db(Object.keys(n)).sort((a,i)=>Number(a)-Number(i)).map(a=>n[a]):n}function mb(n){const a=n.indexOf("#");return a!==-1&&(n=n.slice(0,a)),n}function rA(n){let a="";const i=n.indexOf("#");return i!==-1&&(a=n.slice(i)),a}function iy(n,a,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n===null?!0:i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&a.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&a.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):a.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":a.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Wh(n){n=mb(n);const a=n.indexOf("?");return a===-1?"":n.slice(a+1)}function ed(n,a){a={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...a},hb(a.arrayFormatSeparator);const i=aA(a),s=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return s;for(const u of n.split("&")){if(u==="")continue;const f=a.decode?u.replaceAll("+"," "):u;let[h,m]=fb(f,"=");h===void 0&&(h=f),m=m===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?m:Nr(m,a),i(Nr(h,a),m,s)}for(const[u,f]of Object.entries(s))if(typeof f=="object"&&f!==null&&a.types[u]!=="string")for(const[h,m]of Object.entries(f)){const g=a.types[u],p=typeof g=="function"?g:g?g.replace("[]",""):void 0;f[h]=iy(m,a,p)}else typeof f=="object"&&f!==null&&a.types[u]==="string"?s[u]=Object.values(f).join(a.arrayFormatSeparator):s[u]=iy(f,a,a.types[u]);return a.sort===!1?s:(a.sort===!0?Object.keys(s).sort():Object.keys(s).sort(a.sort)).reduce((u,f)=>{const h=s[f];return u[f]=h&&typeof h=="object"&&!Array.isArray(h)?db(h):h,u},Object.create(null))}function pb(n,a){if(!n)return"";a={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...a},hb(a.arrayFormatSeparator);const i=h=>a.skipNull&&eA(n[h])||a.skipEmptyString&&n[h]==="",s=nA(a),u={};for(const[h,m]of Object.entries(n))i(h)||(u[h]=m);const f=Object.keys(u);return a.sort!==!1&&f.sort(a.sort),f.map(h=>{let m=n[h];if(a.replacer&&(m=a.replacer(h,m),m===void 0)||m===void 0)return"";if(m===null)return dt(h,a);if(Array.isArray(m)){if(m.length===0&&a.arrayFormat==="bracket-separator")return dt(h,a)+"[]";let g=m;return a.replacer&&(g=m.map((p,v)=>a.replacer(`${h}[${v}]`,p)).filter(p=>p!==void 0)),g.reduce(s(h),[]).join("&")}return dt(h,a)+"="+dt(m,a)}).filter(h=>h.length>0).join("&")}function gb(n,a){a={decode:!0,...a};let[i,s]=fb(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:ed(Wh(n),a),...a&&a.parseFragmentIdentifier&&s?{fragmentIdentifier:Nr(s,a)}:{}}}function yb(n,a){a={encode:!0,strict:!0,[Ch]:!0,...a};const i=mb(n.url).split("?")[0]||"",s=Wh(n.url),u={...ed(s,{sort:!1,...a}),...n.query};let f=pb(u,a);f&&=`?${f}`;let h=rA(n.url);if(typeof n.fragmentIdentifier=="string"){const m=new URL(i);m.hash=n.fragmentIdentifier,h=a[Ch]?m.hash:`#${n.fragmentIdentifier}`}return`${i}${f}${h}`}function bb(n,a,i){i={parseFragmentIdentifier:!0,[Ch]:!1,...i};const{url:s,query:u,fragmentIdentifier:f}=gb(n,i);return yb({url:s,query:WT(u,a),fragmentIdentifier:f},i)}function iA(n,a,i){const s=Array.isArray(a)?u=>!a.includes(u):(u,f)=>!a(u,f);return bb(n,s,i)}const td=Object.freeze(Object.defineProperty({__proto__:null,exclude:iA,extract:Wh,parse:ed,parseUrl:gb,pick:bb,stringify:pb,stringifyUrl:yb},Symbol.toStringTag,{value:"Module"})),vb="core.typing.on",_b="core.typing.off",nd="core.message.from.guest",Sb="core.message.without.analysis.from.guest",Eb="core.message.to.guest",lA="core.nlu.request.event",Tb="core.event.to.guest",sA="core.chat.restart.request",oA="core.transcript.mail.request",Ab="core.transcript.item.guest.reaction",ad="core.conversation.rating.from.guest",uA="core.drawer.open",cA="core.drawer.close",fA="core.guest.locale.changed";var zo;(function(n){n.WEB_URL="web_url",n.POSTBACK="postback"})(zo||(zo={}));var ly;(function(n){n.GOOD="GOOD",n.BAD="BAD"})(ly||(ly={}));let hA=class{type;sender;sources;quickReplies;constructor(a,i,s=[],u=[]){this.type=a,this.sender=i,this.sources=s,this.quickReplies=u}addQuickReply(a,i){this.quickReplies.push({label:a,payload:i})}},Wo=class extends hA{text;constructor(a,i,s=[],u=[]){super(vi.TEXT,i,s,u),this.text=a}};var vi;(function(n){n.TEXT="TEXT",n.DETAIL="DETAIL",n.MARKDOWN="MARKDOWN",n.VIDEO="VIDEO",n.IMAGE="IMAGE",n.FILE="FILE",n.AUDIO="AUDIO"})(vi||(vi={}));class xb{type;id;name;avatar;constructor(a,i,s,u){this.type=a,this.id=i,this.name=s,this.avatar=u}}class dA extends xb{constructor(){super(Ta.BOT,null,"Chatbot","bot.svg")}}class rd extends xb{constructor(){super(Ta.GUEST,null,"Guest","visitor.svg")}}var Ta;(function(n){n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON"})(Ta||(Ta={}));const mA=n=>{const a=new Wo(n,new rd);return{type:nd,message:a}},pA=(n,a={})=>{const i=new Wo(n,new rd);return{type:Sb,message:i,payload:a}},gA=n=>({type:lA,event:n}),yA=(n,a,i=null,s=null)=>({type:Ab,payload:{actionId:n,reaction:a,category:i,comment:s}}),Ob=n=>a=>(n.payload.type!==nd&&a(pA(n.label,n.payload)),a(n.payload)),Cb=n=>(a,i)=>{const{quickReplies:s}=i().chat,u=s.find(f=>n.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return a(u?Ob({...u,label:n}):JSON.parse(JSON.stringify(mA(n))))},id="MESSAGE_TO_PARENT_PAGE",ld="RESTORE_PREVIOUS_CHAT_MESSAGES",sd="AUDIO_MESSAGE_FROM_USER",od="RECEIVE_SPEECH_TRANSCRIPTION",ud="ENABLE_CONVERSATION_RATING",Rb="LOAD_SOURCE_INFOS_RESPONSE",cd="LOAD_SOURCE_INFOS_ERROR",fd="LOAD_SOURCE_INFOS_REQUEST",hd="CLOSE_SOURCE_INFOS",bA="webclient.get.started",Nb="webclient.window.expand",wb="webclient.window.close",Mb="webclient.transcript.pdf.download",vA=[id,ld,sd,od,ud,fd,hd],_A=n=>({type:sd,buffer:n}),SA=n=>({type:od,transcription:n}),EA=n=>({type:oA,payload:{parameters:{mailTo:n}}}),TA=()=>({type:Mb}),AA=({rating:n})=>({type:ud,payload:{rating:n}}),xA=(n,a)=>({type:ad,payload:{value:n,feedback:a}}),Db=n=>gA(n),OA=n=>({type:ld,messages:n}),CA=n=>{switch(n.type){case zo.WEB_URL:return Bb(n.url);case zo.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},Lb=n=>Bb(n),Bb=n=>({type:id,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function yo(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)n[s]=i[s]}return n}var RA={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Rh(n,a){function i(u,f,h){if(!(typeof document>"u")){h=yo({},a,h),typeof h.expires=="number"&&(h.expires=new Date(Date.now()+h.expires*864e5)),h.expires&&(h.expires=h.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var g in h)h[g]&&(m+="; "+g,h[g]!==!0&&(m+="="+h[g].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+m}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],h={},m=0;m<f.length;m++){var g=f[m].split("="),p=g.slice(1).join("=");try{var v=decodeURIComponent(g[0]);if(h[v]=n.read(p,v),u===v)break}catch{}}return u?h[u]:h}}return Object.create({set:i,get:s,remove:function(u,f){i(u,"",yo({},f,{expires:-1}))},withAttributes:function(u){return Rh(this.converter,yo({},this.attributes,u))},withConverter:function(u){return Rh(yo({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(n)}})}var bo=Rh(RA,{path:"/"});const Nt=[];for(let n=0;n<256;++n)Nt.push((n+256).toString(16).slice(1));function NA(n,a=0){return(Nt[n[a+0]]+Nt[n[a+1]]+Nt[n[a+2]]+Nt[n[a+3]]+"-"+Nt[n[a+4]]+Nt[n[a+5]]+"-"+Nt[n[a+6]]+Nt[n[a+7]]+"-"+Nt[n[a+8]]+Nt[n[a+9]]+"-"+Nt[n[a+10]]+Nt[n[a+11]]+Nt[n[a+12]]+Nt[n[a+13]]+Nt[n[a+14]]+Nt[n[a+15]]).toLowerCase()}let Bf;const wA=new Uint8Array(16);function MA(){if(!Bf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bf=crypto.getRandomValues.bind(crypto)}return Bf(wA)}const DA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sy={randomUUID:DA};function LA(n,a,i){n=n||{};const s=n.random??n.rng?.()??MA();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,NA(s)}function Io(n,a,i){return sy.randomUUID&&!n?sy.randomUUID():LA(n)}const dd=()=>BA(window.location.pathname),BA=n=>{const a=n.split("/"),i=n.endsWith("/");return a[a.length-(i?2:1)]};function wt(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var HA=typeof Symbol=="function"&&Symbol.observable||"@@observable",oy=HA,Hf=()=>Math.random().toString(36).substring(7).split("").join("."),jA={INIT:`@@redux/INIT${Hf()}`,REPLACE:`@@redux/REPLACE${Hf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Hf()}`},ko=jA;function md(n){if(typeof n!="object"||n===null)return!1;let a=n;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a||Object.getPrototypeOf(n)===null}function Hb(n,a,i){if(typeof n!="function")throw new Error(wt(2));if(typeof a=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(wt(0));if(typeof a=="function"&&typeof i>"u"&&(i=a,a=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(wt(1));return i(Hb)(n,a)}let s=n,u=a,f=new Map,h=f,m=0,g=!1;function p(){h===f&&(h=new Map,f.forEach((E,D)=>{h.set(D,E)}))}function v(){if(g)throw new Error(wt(3));return u}function S(E){if(typeof E!="function")throw new Error(wt(4));if(g)throw new Error(wt(5));let D=!0;p();const I=m++;return h.set(I,E),function(){if(D){if(g)throw new Error(wt(6));D=!1,p(),h.delete(I),f=null}}}function A(E){if(!md(E))throw new Error(wt(7));if(typeof E.type>"u")throw new Error(wt(8));if(typeof E.type!="string")throw new Error(wt(17));if(g)throw new Error(wt(9));try{g=!0,u=s(u,E)}finally{g=!1}return(f=h).forEach(I=>{I()}),E}function M(E){if(typeof E!="function")throw new Error(wt(10));s=E,A({type:ko.REPLACE})}function _(){const E=S;return{subscribe(D){if(typeof D!="object"||D===null)throw new Error(wt(11));function I(){const k=D;k.next&&k.next(v())}return I(),{unsubscribe:E(I)}},[oy](){return this}}}return A({type:ko.INIT}),{dispatch:A,subscribe:S,getState:v,replaceReducer:M,[oy]:_}}function UA(n){Object.keys(n).forEach(a=>{const i=n[a];if(typeof i(void 0,{type:ko.INIT})>"u")throw new Error(wt(12));if(typeof i(void 0,{type:ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wt(13))})}function jb(n){const a=Object.keys(n),i={};for(let f=0;f<a.length;f++){const h=a[f];typeof n[h]=="function"&&(i[h]=n[h])}const s=Object.keys(i);let u;try{UA(i)}catch(f){u=f}return function(h={},m){if(u)throw u;let g=!1;const p={};for(let v=0;v<s.length;v++){const S=s[v],A=i[S],M=h[S],_=A(M,m);if(typeof _>"u")throw m&&m.type,new Error(wt(14));p[S]=_,g=g||_!==M}return g=g||s.length!==Object.keys(h).length,g?p:h}}function Go(...n){return n.length===0?a=>a:n.length===1?n[0]:n.reduce((a,i)=>(...s)=>a(i(...s)))}function zA(...n){return a=>(i,s)=>{const u=a(i,s);let f=()=>{throw new Error(wt(15))};const h={getState:u.getState,dispatch:(g,...p)=>f(g,...p)},m=n.map(g=>g(h));return f=Go(...m)(u.dispatch),{...u,dispatch:f}}}function IA(n){return md(n)&&"type"in n&&typeof n.type=="string"}var Ub=Symbol.for("immer-nothing"),uy=Symbol.for("immer-draftable"),an=Symbol.for("immer-state");function wn(n,...a){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var Il=Object.getPrototypeOf;function Dr(n){return!!n&&!!n[an]}function Aa(n){return n?zb(n)||Array.isArray(n)||!!n[uy]||!!n.constructor?.[uy]||Zl(n)||tu(n):!1}var kA=Object.prototype.constructor.toString(),cy=new WeakMap;function zb(n){if(!n||typeof n!="object")return!1;const a=Object.getPrototypeOf(n);if(a===null||a===Object.prototype)return!0;const i=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;if(i===Object)return!0;if(typeof i!="function")return!1;let s=cy.get(i);return s===void 0&&(s=Function.toString.call(i),cy.set(i,s)),s===kA}function qo(n,a,i=!0){eu(n)===0?(i?Reflect.ownKeys(n):Object.keys(n)).forEach(u=>{a(u,n[u],n)}):n.forEach((s,u)=>a(u,s,n))}function eu(n){const a=n[an];return a?a.type_:Array.isArray(n)?1:Zl(n)?2:tu(n)?3:0}function Nh(n,a){return eu(n)===2?n.has(a):Object.prototype.hasOwnProperty.call(n,a)}function Ib(n,a,i){const s=eu(n);s===2?n.set(a,i):s===3?n.add(i):n[a]=i}function GA(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function Zl(n){return n instanceof Map}function tu(n){return n instanceof Set}function Rr(n){return n.copy_||n.base_}function wh(n,a){if(Zl(n))return new Map(n);if(tu(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=zb(n);if(a===!0||a==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[an];let u=Reflect.ownKeys(s);for(let f=0;f<u.length;f++){const h=u[f],m=s[h];m.writable===!1&&(m.writable=!0,m.configurable=!0),(m.get||m.set)&&(s[h]={configurable:!0,writable:!0,enumerable:m.enumerable,value:n[h]})}return Object.create(Il(n),s)}else{const s=Il(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function pd(n,a=!1){return nu(n)||Dr(n)||!Aa(n)||(eu(n)>1&&Object.defineProperties(n,{set:vo,add:vo,clear:vo,delete:vo}),Object.freeze(n),a&&Object.values(n).forEach(i=>pd(i,!0))),n}function qA(){wn(2)}var vo={value:qA};function nu(n){return n===null||typeof n!="object"?!0:Object.isFrozen(n)}var FA={};function Lr(n){const a=FA[n];return a||wn(0,n),a}var kl;function kb(){return kl}function VA(n,a){return{drafts_:[],parent_:n,immer_:a,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fy(n,a){a&&(Lr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=a)}function Mh(n){Dh(n),n.drafts_.forEach(YA),n.drafts_=null}function Dh(n){n===kl&&(kl=n.parent_)}function hy(n){return kl=VA(kl,n)}function YA(n){const a=n[an];a.type_===0||a.type_===1?a.revoke_():a.revoked_=!0}function dy(n,a){a.unfinalizedDrafts_=a.drafts_.length;const i=a.drafts_[0];return n!==void 0&&n!==i?(i[an].modified_&&(Mh(a),wn(4)),Aa(n)&&(n=Fo(a,n),a.parent_||Vo(a,n)),a.patches_&&Lr("Patches").generateReplacementPatches_(i[an].base_,n,a.patches_,a.inversePatches_)):n=Fo(a,i,[]),Mh(a),a.patches_&&a.patchListener_(a.patches_,a.inversePatches_),n!==Ub?n:void 0}function Fo(n,a,i){if(nu(a))return a;const s=n.immer_.shouldUseStrictIteration(),u=a[an];if(!u)return qo(a,(f,h)=>my(n,u,a,f,h,i),s),a;if(u.scope_!==n)return a;if(!u.modified_)return Vo(n,u.base_,!0),u.base_;if(!u.finalized_){u.finalized_=!0,u.scope_.unfinalizedDrafts_--;const f=u.copy_;let h=f,m=!1;u.type_===3&&(h=new Set(f),f.clear(),m=!0),qo(h,(g,p)=>my(n,u,f,g,p,i,m),s),Vo(n,f,!1),i&&n.patches_&&Lr("Patches").generatePatches_(u,i,n.patches_,n.inversePatches_)}return u.copy_}function my(n,a,i,s,u,f,h){if(u==null||typeof u!="object"&&!h)return;const m=nu(u);if(!(m&&!h)){if(Dr(u)){const g=f&&a&&a.type_!==3&&!Nh(a.assigned_,s)?f.concat(s):void 0,p=Fo(n,u,g);if(Ib(i,s,p),Dr(p))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Aa(u)&&!m){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||a&&a.base_&&a.base_[s]===u&&m)return;Fo(n,u),(!a||!a.scope_.parent_)&&typeof s!="symbol"&&(Zl(i)?i.has(s):Object.prototype.propertyIsEnumerable.call(i,s))&&Vo(n,u)}}}function Vo(n,a,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&pd(a,i)}function ZA(n,a){const i=Array.isArray(n),s={type_:i?1:0,scope_:a?a.scope_:kb(),modified_:!1,finalized_:!1,assigned_:{},parent_:a,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,f=gd;i&&(u=[s],f=Gl);const{revoke:h,proxy:m}=Proxy.revocable(u,f);return s.draft_=m,s.revoke_=h,m}var gd={get(n,a){if(a===an)return n;const i=Rr(n);if(!Nh(i,a))return XA(n,i,a);const s=i[a];return n.finalized_||!Aa(s)?s:s===jf(n.base_,a)?(Uf(n),n.copy_[a]=Bh(s,n)):s},has(n,a){return a in Rr(n)},ownKeys(n){return Reflect.ownKeys(Rr(n))},set(n,a,i){const s=Gb(Rr(n),a);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=jf(Rr(n),a),f=u?.[an];if(f&&f.base_===i)return n.copy_[a]=i,n.assigned_[a]=!1,!0;if(GA(i,u)&&(i!==void 0||Nh(n.base_,a)))return!0;Uf(n),Lh(n)}return n.copy_[a]===i&&(i!==void 0||a in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[a])||(n.copy_[a]=i,n.assigned_[a]=!0),!0},deleteProperty(n,a){return jf(n.base_,a)!==void 0||a in n.base_?(n.assigned_[a]=!1,Uf(n),Lh(n)):delete n.assigned_[a],n.copy_&&delete n.copy_[a],!0},getOwnPropertyDescriptor(n,a){const i=Rr(n),s=Reflect.getOwnPropertyDescriptor(i,a);return s&&{writable:!0,configurable:n.type_!==1||a!=="length",enumerable:s.enumerable,value:i[a]}},defineProperty(){wn(11)},getPrototypeOf(n){return Il(n.base_)},setPrototypeOf(){wn(12)}},Gl={};qo(gd,(n,a)=>{Gl[n]=function(){return arguments[0]=arguments[0][0],a.apply(this,arguments)}});Gl.deleteProperty=function(n,a){return Gl.set.call(this,n,a,void 0)};Gl.set=function(n,a,i){return gd.set.call(this,n[0],a,i,n[0])};function jf(n,a){const i=n[an];return(i?Rr(i):n)[a]}function XA(n,a,i){const s=Gb(a,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function Gb(n,a){if(!(a in n))return;let i=Il(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,a);if(s)return s;i=Il(i)}}function Lh(n){n.modified_||(n.modified_=!0,n.parent_&&Lh(n.parent_))}function Uf(n){n.copy_||(n.copy_=wh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var QA=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(a,i,s)=>{if(typeof a=="function"&&typeof i!="function"){const f=i;i=a;const h=this;return function(g=f,...p){return h.produce(g,v=>i.call(this,v,...p))}}typeof i!="function"&&wn(6),s!==void 0&&typeof s!="function"&&wn(7);let u;if(Aa(a)){const f=hy(this),h=Bh(a,void 0);let m=!0;try{u=i(h),m=!1}finally{m?Mh(f):Dh(f)}return fy(f,s),dy(u,f)}else if(!a||typeof a!="object"){if(u=i(a),u===void 0&&(u=a),u===Ub&&(u=void 0),this.autoFreeze_&&pd(u,!0),s){const f=[],h=[];Lr("Patches").generateReplacementPatches_(a,u,f,h),s(f,h)}return u}else wn(1,a)},this.produceWithPatches=(a,i)=>{if(typeof a=="function")return(h,...m)=>this.produceWithPatches(h,g=>a(g,...m));let s,u;return[this.produce(a,i,(h,m)=>{s=h,u=m}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy),typeof n?.useStrictIteration=="boolean"&&this.setUseStrictIteration(n.useStrictIteration)}createDraft(n){Aa(n)||wn(8),Dr(n)&&(n=PA(n));const a=hy(this),i=Bh(n,void 0);return i[an].isManual_=!0,Dh(a),i}finishDraft(n,a){const i=n&&n[an];(!i||!i.isManual_)&&wn(9);const{scope_:s}=i;return fy(s,a),dy(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}setUseStrictIteration(n){this.useStrictIteration_=n}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(n,a){let i;for(i=a.length-1;i>=0;i--){const u=a[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(a=a.slice(i+1));const s=Lr("Patches").applyPatches_;return Dr(n)?s(n,a):this.produce(n,u=>s(u,a))}};function Bh(n,a){const i=Zl(n)?Lr("MapSet").proxyMap_(n,a):tu(n)?Lr("MapSet").proxySet_(n,a):ZA(n,a);return(a?a.scope_:kb()).drafts_.push(i),i}function PA(n){return Dr(n)||wn(10,n),qb(n)}function qb(n){if(!Aa(n)||nu(n))return n;const a=n[an];let i,s=!0;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,i=wh(n,a.scope_.immer_.useStrictShallowCopy_),s=a.scope_.immer_.shouldUseStrictIteration()}else i=wh(n,!0);return qo(i,(u,f)=>{Ib(i,u,qb(f))},s),a&&(a.finalized_=!1),i}var Hh=new QA,Fb=Hh.produce,KA=Hh.setUseStrictIteration.bind(Hh);function Vb(n){return({dispatch:i,getState:s})=>u=>f=>typeof f=="function"?f(i,s,n):u(f)}var $A=Vb(),JA=Vb,WA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Go:Go.apply(null,arguments)};function py(n,a){function i(...s){if(a){let u=a(...s);if(!u)throw new Error(va(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:s[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=s=>IA(s)&&s.type===n,i}var Yb=class Hl extends Array{constructor(...a){super(...a),Object.setPrototypeOf(this,Hl.prototype)}static get[Symbol.species](){return Hl}concat(...a){return super.concat.apply(this,a)}prepend(...a){return a.length===1&&Array.isArray(a[0])?new Hl(...a[0].concat(this)):new Hl(...a.concat(this))}};function gy(n){return Aa(n)?Fb(n,()=>{}):n}function _o(n,a,i){return n.has(a)?n.get(a):n.set(a,i(a)).get(a)}function ex(n){return typeof n=="boolean"}var tx=()=>function(a){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:f=!0}=a??{};let h=new Yb;return i&&(ex(i)?h.push($A):h.push(JA(i.extraArgument))),h},nx="RTK_autoBatch",yy=n=>a=>{setTimeout(a,n)},ax=(n={type:"raf"})=>a=>(...i)=>{const s=a(...i);let u=!0,f=!1,h=!1;const m=new Set,g=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yy(10):n.type==="callback"?n.queueNotification:yy(n.timeout),p=()=>{h=!1,f&&(f=!1,m.forEach(v=>v()))};return Object.assign({},s,{subscribe(v){const S=()=>u&&v(),A=s.subscribe(S);return m.add(v),()=>{A(),m.delete(v)}},dispatch(v){try{return u=!v?.meta?.[nx],f=!u,f&&(h||(h=!0,g(p))),s.dispatch(v)}finally{u=!0}}})},rx=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new Yb(n);return s&&u.push(ax(typeof s=="object"?s:void 0)),u};function ix(n){const a=tx(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:f=void 0,enhancers:h=void 0}=n||{};let m;if(typeof i=="function")m=i;else if(md(i))m=jb(i);else throw new Error(va(1));let g;typeof s=="function"?g=s(a):g=a();let p=Go;u&&(p=WA({trace:!1,...typeof u=="object"&&u}));const v=zA(...g),S=rx(v);let A=typeof h=="function"?h(S):S();const M=p(...A);return Hb(m,f,M)}function Zb(n){const a={},i=[];let s;const u={addCase(f,h){const m=typeof f=="string"?f:f.type;if(!m)throw new Error(va(28));if(m in a)throw new Error(va(29));return a[m]=h,u},addAsyncThunk(f,h){return h.pending&&(a[f.pending.type]=h.pending),h.rejected&&(a[f.rejected.type]=h.rejected),h.fulfilled&&(a[f.fulfilled.type]=h.fulfilled),h.settled&&i.push({matcher:f.settled,reducer:h.settled}),u},addMatcher(f,h){return i.push({matcher:f,reducer:h}),u},addDefaultCase(f){return s=f,u}};return n(u),[a,i,s]}KA(!1);function lx(n){return typeof n=="function"}function sx(n,a){let[i,s,u]=Zb(a),f;if(lx(n))f=()=>gy(n());else{const m=gy(n);f=()=>m}function h(m=f(),g){let p=[i[g.type],...s.filter(({matcher:v})=>v(g)).map(({reducer:v})=>v)];return p.filter(v=>!!v).length===0&&(p=[u]),p.reduce((v,S)=>{if(S)if(Dr(v)){const M=S(v,g);return M===void 0?v:M}else{if(Aa(v))return Fb(v,A=>S(A,g));{const A=S(v,g);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return v},m)}return h.getInitialState=f,h}var ox=Symbol.for("rtk-slice-createasyncthunk");function ux(n,a){return`${n}/${a}`}function cx({creators:n}={}){const a=n?.asyncThunk?.[ox];return function(s){const{name:u,reducerPath:f=u}=s;if(!u)throw new Error(va(11));const h=(typeof s.reducers=="function"?s.reducers(hx()):s.reducers)||{},m=Object.keys(h),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(H,k){const w=typeof H=="string"?H:H.type;if(!w)throw new Error(va(12));if(w in g.sliceCaseReducersByType)throw new Error(va(13));return g.sliceCaseReducersByType[w]=k,p},addMatcher(H,k){return g.sliceMatchers.push({matcher:H,reducer:k}),p},exposeAction(H,k){return g.actionCreators[H]=k,p},exposeCaseReducer(H,k){return g.sliceCaseReducersByName[H]=k,p}};m.forEach(H=>{const k=h[H],w={reducerName:H,type:ux(u,H),createNotation:typeof s.reducers=="function"};mx(k)?gx(w,k,p,a):dx(w,k,p)});function v(){const[H={},k=[],w=void 0]=typeof s.extraReducers=="function"?Zb(s.extraReducers):[s.extraReducers],Z={...H,...g.sliceCaseReducersByType};return sx(s.initialState,P=>{for(let ae in Z)P.addCase(ae,Z[ae]);for(let ae of g.sliceMatchers)P.addMatcher(ae.matcher,ae.reducer);for(let ae of k)P.addMatcher(ae.matcher,ae.reducer);w&&P.addDefaultCase(w)})}const S=H=>H,A=new Map,M=new WeakMap;let _;function O(H,k){return _||(_=v()),_(H,k)}function E(){return _||(_=v()),_.getInitialState()}function D(H,k=!1){function w(P){let ae=P[H];return typeof ae>"u"&&k&&(ae=_o(M,w,E)),ae}function Z(P=S){const ae=_o(A,k,()=>new WeakMap);return _o(ae,P,()=>{const De={};for(const[He,pe]of Object.entries(s.selectors??{}))De[He]=fx(pe,P,()=>_o(M,P,E),k);return De})}return{reducerPath:H,getSelectors:Z,get selectors(){return Z(w)},selectSlice:w}}const I={name:u,reducer:O,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:E,...D(f),injectInto(H,{reducerPath:k,...w}={}){const Z=k??f;return H.inject({reducerPath:Z,reducer:O},w),{...I,...D(Z,!0)}}};return I}}function fx(n,a,i,s){function u(f,...h){let m=a(f);return typeof m>"u"&&s&&(m=i()),n(m,...h)}return u.unwrapped=n,u}var yd=cx();function hx(){function n(a,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:a,...i}}return n.withTypes=()=>n,{reducer(a){return Object.assign({[a.name](...i){return a(...i)}}[a.name],{_reducerDefinitionType:"reducer"})},preparedReducer(a,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:a,reducer:i}},asyncThunk:n}}function dx({type:n,reducerName:a,createNotation:i},s,u){let f,h;if("reducer"in s){if(i&&!px(s))throw new Error(va(17));f=s.reducer,h=s.prepare}else f=s;u.addCase(n,f).exposeCaseReducer(a,f).exposeAction(a,h?py(n,h):py(n))}function mx(n){return n._reducerDefinitionType==="asyncThunk"}function px(n){return n._reducerDefinitionType==="reducerWithPrepare"}function gx({type:n,reducerName:a},i,s,u){if(!u)throw new Error(va(18));const{payloadCreator:f,fulfilled:h,pending:m,rejected:g,settled:p,options:v}=i,S=u(n,f,v);s.exposeAction(a,S),h&&s.addCase(S.fulfilled,h),m&&s.addCase(S.pending,m),g&&s.addCase(S.rejected,g),p&&s.addMatcher(S.settled,p),s.exposeCaseReducer(a,{fulfilled:h||So,pending:m||So,rejected:g||So,settled:p||So})}function So(){}function va(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const yx={formValues:{}},Xb=yd({name:"start-screen",initialState:yx,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,a){n.startScreenStatus="HIDDEN",n.formValues=a.payload.formValues},startAuthenticatedChat(n,a){n.startScreenStatus="HIDDEN",n.loginToken=a.payload.loginToken,n.loginRequestToken=void 0},requestLogin(n,a){n.loginRequestToken=a.payload.loginRequestToken,n.formValues=a.payload.formValues},loginWindowClosed(n){n.loginRequestToken=void 0}}}),{startChat:bx,startAuthenticatedChat:vx,showStartScreen:_x,requestLogin:Sx,loginWindowClosed:Ex}=Xb.actions,Tx=Xb.reducer,Qb="RESET_CHAT_STATE",Pb="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Kb="SHOW_CONVERSATION_RATING_OVERLAY",$b="HIDE_CONVERSATION_RATING_OVERLAY",Jb=()=>({type:wb}),Ax=()=>({type:Qb}),Wb=()=>({type:Pb}),Yo=(n,a=void 0)=>({type:Kb,payload:{opener:n,defaultRating:a}}),xx=()=>({type:$b}),by=(n,a,i)=>(s,u)=>{try{const f=u().connection.sessionId;if(!f)throw new Error("Session ID is not available");s({type:fd,payload:{chunkId:i}}),vy(n,f,a,i,!1,s),vy(n,f,a,i,!0,s)}catch(f){console.error("Error loading source infos:",f),s({type:cd})}},vy=(n,a,i,s,u,f)=>{const h=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(h,{headers:{"x-bubble-chat-session-id":a}}).then(m=>{if(!m.ok)throw new Error(`HTTP error! Status: ${m.status}`);return m.json()}).then(m=>{const g={...m,chunkId:s,highlighted:u};f({type:Rb,payload:g})}).catch(m=>{console.error("Error fetching source infos:",m),f({type:cd,payload:{highlighted:u}})})},Ox=()=>({type:hd}),bd="CONNECT",vd="CONNECTING",_d="CONNECTED",Sd="DISCONNECTED",Ed="RECONNECTED",Td="RESTORE_SESSION_ID",au="START",ru="CLEAR_SESSION_ID",Cx=[bd,vd,_d,Sd,Ed,Td],Rx=(n,a)=>({type:bd,clientName:n,querystrings:a}),Nx=n=>({type:Td,sessionId:n}),wx=()=>({type:vd}),Mx=()=>({type:_d}),Dx=()=>({type:Sd}),Lx=()=>({type:Ed}),ev=n=>(a,i)=>{const s=i().connection,{formValues:u,loginToken:f}=i().startScreen;let h=s.sessionId;h===void 0&&(h=Io());let m=s.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||Io(),bo.set("bubble-chat-user-id",m)}const g=td.parse(i().connection.queryString||"");a({type:au,payload:{sessionId:h,userId:m,clientName:n,loginToken:f,querystrings:{...g,...u}}})},Xl=()=>(n,a)=>{const i=a().connection.sessionId||"";if(n(Bx(i)),n(Ax()),a().settings.enableStartScreen)n(_x());else{const s=dd();return n(ev(s))}},Bx=n=>({type:ru,payload:{sessionId:n}}),Je=()=>{const n=Jo();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var wr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(wr||{}),Zo=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(Zo||{});const Hx="_container_q2uun_1",jx="_chatcontent_q2uun_6",Ux="_accessabilityHidden_q2uun_12",zf={container:Hx,chatcontent:jx,accessabilityHidden:Ux},zx="_messageContainer_ofi0g_1",Ix="_messages_ofi0g_12",_y={messageContainer:zx,messages:Ix};function qn(){return qn=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var i=arguments[a];for(var s in i)({}).hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},qn.apply(null,arguments)}const Eo=["strong","em","del","mark"],Sy=[["**",Eo[0]],["__",Eo[0]],["~~",Eo[2]],["==",Eo[3]],["*","em"],["_","em"]];function kx(n,a){for(var i=1,s=a+1;s<n.length&&i>0;)n[s]!=="\\"?(n[s]==="["&&i++,n[s]==="]"&&i--,s++):s+=2;if(i===0&&s<n.length&&(n[s]==="("||n[s]==="[")){var u=n[s]==="("?")":"]",f=1;for(s++;s<n.length&&f>0;)n[s]!=="\\"?(n[s]==="("&&u===")"&&f++,n[s]===u&&f--,s++):s+=2;if(f===0)return s}return-1}function Gx(n,a){if(!a||!a.inline&&!a.simple)return null;var i=n[0];if(i!=="*"&&i!=="_"&&i!=="~"&&i!=="=")return null;for(var s="",u=0,f="",h=0;h<6;h++){var m=Sy[h][0];if(n.startsWith(m)&&n.length>=2*m.length){s=m,u=m.length,f=Sy[h][1];break}}if(!s)return null;for(var g=u,p=!1,v=!1,S="",A=0,M="",_=!1,O="";g<n.length;){var E=n[g];if(_)M+=E,_=!1,O=E,g++;else if(E!=="\\")if(E!=="`"||A!==0){if(E==="["&&!p&&A===0){var D=kx(n,g);if(D!==-1){M+=n.slice(g,D),g=D,O=n[D-1];continue}}if(v)M+=E,S?E===S&&(S=""):E==='"'||E==="'"?S=E:E===">"&&(v=!1),O=E,g++;else if(E!=="<"||p){if(E===`
94
+ `&&O===`
95
+ `&&!p&&A===0)return null;if(!p&&A===0){for(var I=0;g+I<n.length&&n[g+I]===s[0];)I++;if(I>=u&&(u!==1||s!=="*"&&s!=="_"||n[g-1]!==s&&n[g+1]!==s)){var H=[n.slice(0,g+I),f,M+n.slice(g+u,g+I)];return H.index=0,H.input=n,H}}M+=E,O=E,g++}else{var k=n[g+1],w=n.indexOf(">",g);if(w!==-1){var Z=n.slice(g,w+1).endsWith("/>");k==="/"?A=Math.max(0,A-1):Z||A++}v=!0,M+=E,O=E,g++}}else p=!p,M+=E,O=E,g++;else M+=E,_=!0,O=E,g++}return null}const qx=["children","options"],Fx={footnoteReference:"7"},Ey=["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((n,a)=>(n[a.toLowerCase()]=a,n),{class:"className",for:"htmlFor"}),Ty={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Vx=["style","script","pre"],Yx=["src","href","data","formAction","srcDoc","action"],Zx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Xx=/\n{2,}$/,Ay=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Qx=/^ *> ?/gm,Px=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Kx=/^ {2,}\n/,$x=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,xy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Oy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Jx=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Wx=/^(?:\n *)*\n/,eO=/\r\n?/g,tO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,nO=/^\[\^([^\]]+)]/,aO=/\f/g,rO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iO=/^\[(x|\s)\]/,Cy=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ry=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ny=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ad=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function lO(n){const a=Ad.exec(n);if(!a)return null;const i=a[1],s=i.toLowerCase(),u=s.length+1;let f=a[0].length;n[f]===`
96
+ `&&f++;const h=f;let m=f,g=1;const p=n.length;for(;g>0;){const S=n.indexOf("<",f);if(S===-1)return null;let A=-1,M=-1;if(n[S+1]==="/")M=S;else if(n[S+1]===s[0]||n[S+1]===i[0]){let _=!0;for(let O=0;O<s.length;O++){const E=n[S+1+O];if(E!==s[O]&&E!==i[O]){_=!1;break}}!_||n[S+u]!==" "&&n[S+u]!==">"||(A=S)}if(A!==-1||M!==-1)if(A!==-1&&(M===-1||A<M))f=A+u+1,g++;else{let _=M+2;for(;_<p;){const E=n[_];if(E!==" "&&E!==" "&&E!==`
97
+ `&&E!=="\r")break;_++}if(_+s.length>p)return null;let O=!0;for(let E=0;E<s.length;E++){const D=n[_+E];if(D!==s[E]&&D!==i[E]){O=!1;break}}if(!O){f=_;continue}for(_+=s.length;_<p;){const E=n[_];if(E!==" "&&E!==" "&&E!==`
98
+ `&&E!=="\r")break;_++}if(_>=p||n[_]!==">"){f=_;continue}m=M,f=_+1,g--}else f=S+1}let v=0;for(;f+v<p&&n[f+v]===`
99
+ `;)v++;return[n.slice(0,f+v),i,a[2],n.slice(h,m)]}const sO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,wy=/^<!--[\s\S]*?(?:-->)/,oO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,jh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,uO=/^\{.*\}$/,cO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,fO=/^<([^ >]+[:@\/][^ >]+)>/,hO=/-([a-z])?/gi,My=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dO=/^[^\n]+(?: \n|\n{2,})/,mO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,pO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,gO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,yO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,bO=/\t/g,vO=/(^ *\||\| *$)/g,_O=/^ *:-+: *$/,SO=/^ *:-+ *$/,EO=/^ *-+: *$/,TO=/^(:[a-zA-Z0-9-_]+:)/,AO=/^\\([^0-9A-Za-z\s])/,xO=/\\([^0-9A-Za-z\s])/g,OO=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,CO=/^\n+/,RO=/^([ \t]*)/,NO=/(?:^|\n)( *)$/,xd="(?:\\d+\\.)",Od="(?:[*+-])";function tv(n){return"( *)("+(n===1?xd:Od)+") +"}const nv=tv(1),av=tv(2);function rv(n){return RegExp("^"+(n===1?nv:av))}const wO=rv(1),MO=rv(2);function iv(n){return RegExp("^"+(n===1?nv:av)+"[^\\n]*(?:\\n(?!\\1"+(n===1?xd:Od)+" )[^\\n]*)*(\\n|$)","gm")}const DO=iv(1),LO=iv(2);function lv(n){const a=n===1?xd:Od;return RegExp("^( *)("+a+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+a+" (?!"+a+" ))\\n*|\\s*\\n*$)")}const sv=lv(1),ov=lv(2);function Dy(n,a){const i=a===1,s=i?sv:ov,u=i?DO:LO,f=i?wO:MO;return{t:h=>f.test(h),o:er(function(h,m){const g=NO.exec(m.prevCapture);return g&&(m.list||!m.inline&&!m.simple)?s.exec(h=g[1]+h):null}),u:1,i(h,m,g){const p=i?+h[2]:void 0,v=h[0].replace(Xx,`
100
+ `).match(u),S=f.exec(v[0]),A=RegExp("^ {1,"+(S?S[0].length:0)+"}","gm");let M=!1;return{items:v.map(function(_,O){const E=_.replace(A,"").replace(f,""),D=O===v.length-1,I=Un(E,`
101
+
102
+ `)||D&&M;M=I;const H=g.inline,k=g.list;let w;g.list=!0,I?(g.inline=!1,w=zl(E)+`
103
+
104
+ `):(g.inline=!0,w=zl(E));const Z=m(w,g);return g.inline=H,g.list=k,Z}),ordered:i,start:p}}}}const BO=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),HO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ly(n){return typeof n=="string"}function zl(n){let a=n.length;for(;a>0&&n[a-1]<=" ";)a--;return n.slice(0,a)}function Uh(n,a){return n.startsWith(a)}function Un(n,a){return n.indexOf(a)!==-1}function jO(n,a,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Uh(n,i[s]))return!0;return!1}return i(n,a)}function xl(n){return n.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 UO(n){return EO.test(n)?"right":_O.test(n)?"center":SO.test(n)?"left":null}function By(n,a,i,s){const u=i.inTable;i.inTable=!0;let f=[[]],h="";function m(){if(!h)return;const g=f[f.length-1];g.push.apply(g,a(h,i)),h=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((g,p,v)=>{g.trim()==="|"&&(m(),s)?p!==0&&p!==v.length-1&&f.push([]):h+=g}),m(),i.inTable=u,f}function zO(n,a,i){i.inline=!0;const s=n[2]?n[2].replace(vO,"").split("|").map(UO):[],u=n[3]?(function(h,m,g){return h.trim().split(`
105
+ `).map(function(p){return By(p,m,g,!0)})})(n[3],a,i):[],f=By(n[1],a,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:f,type:"25"}:{children:f,type:"21"}}function Hy(n,a){return n.align[a]==null?{}:{textAlign:n.align[a]}}function er(n){return n.inline=1,n}function Wa(n){return er(function(a,i){return i.inline?n.exec(a):null})}function To(n){return er(function(a,i){return i.inline||i.simple?n.exec(a):null})}function ya(n){return function(a,i){return i.inline||i.simple?null:n.exec(a)}}function jy(n){return er(function(a){return n.exec(a)})}const IO=/(javascript|vbscript|data(?!:image)):/i;function kO(n){try{const a=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(IO.test(a))return null}catch{return null}return n}function zn(n){return n&&n.replace(xO,"$1")}function Mo(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function GO(n,a,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const f=n(a,i);return i.inline=s,i.simple=u,f}function qO(n,a,i){const s=i.inline||!1;i.inline=!1;const u=n(a,i);return i.inline=s,u}const FO=(n,a,i)=>({children:Mo(a,n[2],i)});function If(){return{}}function VO(...n){return n.filter(Boolean).join(" ")}function kf(n,a,i){let s=n;const u=a.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function Gf(n,a,i,s){if(!a||!a.trim())return null;const u=a.match(Zx);return u?u.reduce(function(f,h){const m=h.indexOf("=");if(m!==-1){const g=(function(S){return S.indexOf("-")!==-1&&S.match(oO)===null&&(S=S.replace(hO,function(A,M){return M.toUpperCase()})),S})(h.slice(0,m)).trim(),p=Ey[g]||g;if(p==="ref")return f;const v=f[p]=(function(S,A,M,_){return A==="style"?(function(O){const E=[];if(!O)return E;let D="",I=0,H="";for(let w=0;w<O.length;w++){const Z=O[w];if(Z==='"'||Z==="'")H?Z===H&&(H="",I--):(H=Z,I++);else if(Z==="("&&D.endsWith("url"))I++;else if(Z===")"&&I>0)I--;else if(Z===";"&&I===0){const P=D.indexOf(":");P>0&&E.push([D.slice(0,P).trim(),D.slice(P+1).trim()]),D="";continue}D+=Z}const k=D.indexOf(":");return k>0&&E.push([D.slice(0,k).trim(),D.slice(k+1).trim()]),E})(M).reduce(function(O,[E,D]){return O[E.replace(/(-[a-z])/g,I=>I[1].toUpperCase())]=_(D,S,E),O},{}):Yx.indexOf(A)!==-1?_(zn(M),S,A):(M.match(uO)&&(M=zn(M.slice(1,M.length-1))),M==="true"||M!=="false"&&M)})(n,g,(function(S){const A=S[0];return(A==='"'||A==="'")&&S.length>=2&&S[S.length-1]===A?S.slice(1,-1):S})(h.slice(m+1).trim()),i);typeof v=="string"&&(Ad.test(v)||jh.test(v))&&(f[p]=s(v.trim()))}else h!=="style"&&(f[Ey[h]||h]=!0);return f},{}):null}function Uy(n,a){for(let i=0;i<n.length;i++)if(n[i].test(a))return!0;return!1}function YO(n="",a={}){a.overrides=a.overrides||{},a.namedCodesToUnicode=a.namedCodesToUnicode?qn({},Ty,a.namedCodesToUnicode):Ty;const i=a.slugify||xl,s=a.sanitizer||kO,u=a.createElement||U.createElement,f=[Ay,xy,Oy,a.enforceAtxHeadings?Ry:Cy,Ny,My,sv,ov],h=[...f,dO,Ad,wy,jh];function m(_,O,...E){const D=kf(a.overrides,_+".props",{});return u((function(I,H){const k=kf(H,I);return k?typeof k=="function"||typeof k=="object"&&"render"in k?k:kf(H,I+".component",I):I})(_,a.overrides),qn({},O,D,{className:VO(O?.className,D.className)||void 0}),...E)}function g(_){_=_.replace(rO,"");let O=!1;a.forceInline?O=!0:a.forceBlock||(O=yO.test(_)===!1);const E=A(O?_:zl(_).replace(CO,"")+`
106
+
107
+ `,{inline:O});if(a.ast)return E;const D=M(E);for(;Ly(D[D.length-1])&&!D[D.length-1].trim();)D.pop();if(p.length&&D.push(m("footer",{key:"footer"},p.map(function(k){return m("div",{id:i(k.identifier,xl),key:k.identifier},k.identifier,M(A(k.footnote,{inline:!0})))}))),a.wrapper===null)return D;const I=a.wrapper||(O?"span":"div");let H;if(D.length>1||a.forceWrapper)H=D;else{if(D.length===1)return H=D[0],typeof H=="string"?m("span",{key:"outer"},H):H;H=null}return u(I,qn({key:"outer"},a.wrapperProps),H)}const p=[],v={},S={0:{t:[">"],o:ya(Ay),u:1,i(_,O,E){const[,D,I]=_[0].replace(Qx,"").match(Px);return{alert:D,children:O(I,E)}}},1:{t:[" "],o:Wa(Kx),u:1,i:If},2:{t:function(_,O){if(O.inline||O.simple)return!1;var E=_[0];return E==="-"||E==="*"||E==="_"},o:ya($x),u:1,i:If},3:{t:[" "],o:ya(Oy),u:0,i:_=>({lang:void 0,text:zn(zl(_[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:ya(xy),u:0,i:_=>({attrs:Gf("code",_[3]||"",s,g),lang:_[2]||void 0,text:_[4],type:"3"})},5:{t:["`"],o:To(Jx),u:3,i:_=>({text:zn(_[2])})},6:{t:["[^"],o:ya(tO),u:0,i:_=>(p.push({footnote:_[2],identifier:_[1]}),{})},7:{t:["[^"],o:Wa(nO),u:1,i:_=>({target:"#"+i(_[1],xl),text:_[1]})},8:{t:["[ ]","[x]"],o:Wa(iO),u:1,i:_=>({completed:_[1].toLowerCase()==="x"})},9:{t:["#"],o:ya(a.enforceAtxHeadings?Ry:Cy),u:1,i:(_,O,E)=>({children:Mo(O,_[2],E),id:i(_[2],xl),level:_[1].length})},10:{t:_=>{const O=_.indexOf(`
108
+ `);return O>0&&O<_.length-1&&(_[O+1]==="="||_[O+1]==="-")},o:ya(Ny),u:1,i:(_,O,E)=>({children:Mo(O,_[1],E),level:_[2]==="="?1:2,type:"9"})},11:{t:["<"],o:er(lO),u:1,i(_,O,E){const[,D]=_[3].match(RO),I=RegExp("^"+D,"gm"),H=_[3].replace(I,""),k=Uy(h,H)?qO:Mo,w=_[1].toLowerCase(),Z=Vx.indexOf(w)!==-1,P=(Z?w:_[1]).trim(),ae={attrs:Gf(P,_[2],s,g),noInnerParse:Z,tag:P};if(E.inAnchor=E.inAnchor||w==="a",Z)ae.text=_[3];else{const De=E.inHTML;E.inHTML=!0,ae.children=k(O,H,E),E.inHTML=De}return E.inAnchor=!1,ae}},13:{t:["<"],o:jy(jh),u:1,i(_){const O=_[1].trim();return{attrs:Gf(O,_[2]||"",s,g),tag:O}}},12:{t:["<!--"],o:jy(wy),u:1,i:()=>({})},14:{t:["!["],o:To(HO),u:1,i:_=>({alt:zn(_[1]),target:zn(_[2]),title:zn(_[3])})},15:{t:["["],o:Wa(BO),u:3,i:(_,O,E)=>({children:GO(O,_[1],E),target:zn(_[2]),title:zn(_[3])})},16:{t:function(_,O){return!(!O.inline||O.inAnchor)&&_[0]==="<"&&(Un(_,":")||Un(_,"@")||Un(_,"/"))},o:Wa(fO),u:0,i(_){let O=_[1],E=!1;return Un(O,"@")&&!Un(O,"//")&&(E=!0,O=O.replace("mailto:","")),{children:[{text:O,type:"27"}],target:E?"mailto:"+O:O,type:"15"}}},17:{t:(_,O)=>!O.inAnchor&&!a.disableAutoLink&&Uh(_,"http"),o:Wa(cO),u:0,i:_=>({children:[{text:_[1],type:"27"}],target:_[1],title:void 0,type:"15"})},20:Dy(0,1),30:Dy(0,2),19:{t:[`
109
+ `],o:ya(Wx),u:3,i:If},21:{t:function(_,O){return!O.inline&&!O.simple},o:er(function(_,O){if(O.inline||O.simple||O.inHTML&&!Un(_,`
110
+
111
+ `)&&!Un(O.prevCapture,`
112
+
113
+ `))return null;let E="",D=0;for(;;){const H=_.indexOf(`
114
+ `,D),k=_.slice(D,H===-1?void 0:H+1),w=_[D];if((w===">"||w==="#"||w==="|"||w==="`"||w==="~"||w==="*"||w==="-"||w==="_"||w===" ")&&Uy(f,k)||(E+=k,H===-1||!k.trim()))break;D=H+1}const I=zl(E);return I===""?null:[E,,I]}),u:3,i:FO},22:{t:["["],o:Wa(mO),u:0,i:_=>(v[_[1]]={target:_[2],title:_[4]},{})},23:{t:["!["],o:To(pO),u:0,i:_=>({alt:_[1]?zn(_[1]):void 0,ref:_[2]})},24:{t:_=>_[0]==="["&&!Un(_,"]("),o:Wa(gO),u:0,i:(_,O,E)=>({children:O(_[1],E),fallbackChildren:_[0],ref:_[2]})},25:{t:["|"],o:ya(My),u:1,i:zO},27:{o:er(function(_,O){let E;return Uh(_,":")&&(E=TO.exec(_)),E||OO.exec(_)}),u:4,i(_){const O=_[0];return{text:Un(O,"&")?O.replace(sO,(E,D)=>a.namedCodesToUnicode[D]||E):O}}},34:{t:["*","_","~","="],o:er(Gx),u:2,i:(_,O,E)=>({children:O(_[2],E),tag:_[1]})},28:{t:["\\"],o:To(AO),u:1,i:_=>({text:_[1],type:"27"})}};a.disableParsingRawHTML===!0&&(delete S[11],delete S[13]);const A=(function(_){var O=Object.keys(_);function E(D,I){var H=[];if(I.prevCapture=I.prevCapture||"",D.trim())for(;D;)for(var k=0;k<O.length;){var w=O[k],Z=_[w];if(!Z.t||jO(D,I,Z.t)){var P=Z.o(D,I);if(P&&P[0]){D=D.substring(P[0].length);var ae=Z.i(P,E,I);I.prevCapture+=P[0],ae.type||(ae.type=w),H.push(ae);break}k++}else k++}return I.prevCapture="",H}return O.sort(function(D,I){return _[D].u-_[I].u||(D<I?-1:1)}),function(D,I){return E((function(H){return H.replace(eO,`
115
+ `).replace(aO,"").replace(bO," ")})(D),I)}})(S),M=(function(_,O,E,D,I){function H(k){return Array.isArray(k)?k.map(w=>"text"in w?w.text:""):"text"in k?k.text:""}return function k(w,Z={}){const P=(Z.renderDepth||0)+1;if(P>2500)return H(w);Z.renderDepth=P;try{if(Array.isArray(w)){const De=Z.key,He=[];let pe=!1;for(let be=0;be<w.length;be++){Z.key=be;const K=k(w[be],Z),Se=Ly(K);Se&&pe?He[He.length-1]+=K:K!==null&&He.push(K),pe=Se}return Z.key=De,Z.renderDepth=P-1,He}const ae=(function(De,He,pe){const be=()=>(function(K,Se,se,L,J,oe,ve){switch(K.type){case"0":{const de={key:se.key};return K.alert&&(de.className="markdown-alert-"+oe(K.alert.toLowerCase(),xl),K.children.unshift({attrs:{},children:[{type:"27",text:K.alert}],noInnerParse:!0,type:"11",tag:"header"})),L("blockquote",de,Se(K.children,se))}case"1":return L("br",{key:se.key});case"2":return L("hr",{key:se.key});case"3":return L("pre",{key:se.key},L("code",qn({},K.attrs,{className:K.lang?"lang-"+K.lang:""}),K.text));case"5":return L("code",{key:se.key},K.text);case"7":return L("a",{key:se.key,href:J(K.target,"a","href")},L("sup",{key:se.key},K.text));case"8":return L("input",{checked:K.completed,key:se.key,readOnly:!0,type:"checkbox"});case"9":return L("h"+K.level,{id:K.id,key:se.key},Se(K.children,se));case"11":return L(K.tag,qn({key:se.key},K.attrs),K.text||(K.children?Se(K.children,se):""));case"13":return L(K.tag,qn({},K.attrs,{key:se.key}));case"14":return L("img",{key:se.key,alt:K.alt||void 0,title:K.title||void 0,src:J(K.target,"img","src")});case"15":return L("a",{key:se.key,href:J(K.target,"a","href"),title:K.title},Se(K.children,se));case"23":return ve[K.ref]?L("img",{key:se.key,alt:K.alt,src:J(ve[K.ref].target,"img","src"),title:ve[K.ref].title}):null;case"24":return ve[K.ref]?L("a",{key:se.key,href:J(ve[K.ref].target,"a","href"),title:ve[K.ref].title},Se(K.children,se)):L("span",{key:se.key},K.fallbackChildren);case"25":{const de=K;return L("table",{key:se.key},L("thead",null,L("tr",null,de.header.map(function(x,F){return L("th",{key:F,style:Hy(de,F)},Se(x,se))}))),L("tbody",null,de.cells.map(function(x,F){return L("tr",{key:F},x.map(function(X,W){return L("td",{key:W,style:Hy(de,W)},Se(X,se))}))})))}case"27":return K.text;case"34":return L(K.tag,{key:se.key},Se(K.children,se));case"20":case"30":return L(K.ordered?"ol":"ul",{key:se.key,start:K.type==="20"?K.start:void 0},K.items.map(function(de,x){return L("li",{key:x},Se(de,se))}));case"19":return`
116
+ `;case"21":return L("p",{key:se.key},Se(K.children,se));default:return null}})(De,He,pe,O,E,D,I);return _?_(be,De,He,pe):be()})(w,k,Z);return Z.renderDepth=P-1,ae}catch(ae){if(ae instanceof RangeError&&ae.message.includes("Maximum call stack"))return H(w);throw ae}}})(a.renderRule,m,s,i,v);return g(n)}const _a=n=>{let{children:a,options:i}=n,s=(function(u,f){if(u==null)return{};var h={};for(var m in u)if({}.hasOwnProperty.call(u,m)){if(f.indexOf(m)!==-1)continue;h[m]=u[m]}return h})(n,qx);return YO(a??"",qn({},i,{wrapperProps:qn({},i?.wrapperProps,s)}))},ZO="_generalConditionsContainer_55hjg_1",XO="_generalConditions_55hjg_1",QO="_generalConditionsHeader_55hjg_15",PO="_generalConditionsBody_55hjg_26",KO="_generalConditionsAccept_55hjg_35",Ol={generalConditionsContainer:ZO,generalConditions:XO,generalConditionsHeader:QO,generalConditionsBody:PO,generalConditionsAccept:KO},$O=()=>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"})}),JO=()=>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"})}),WO="general-conditions.header",e6="general-conditions.body",zy="general-conditions.accept-conditions-note",t6=()=>{const n=Je(),[a,i]=U.useState(!1),s=()=>i(!a),u=m=>{m.key==="ArrowDown"||m.key==="ArrowRight"?i(!0):m.key==="ArrowUp"||m.key==="ArrowLeft"||m.key==="Escape"?i(!1):(m.key==="Enter"||m.key==="Space"||m.key===" ")&&s()},f=n(WO),h=n(zy);return y.jsxs("div",{className:$(Ol.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&y.jsxs("div",{className:Ol.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:$(Ol.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":a?"true":"false","aria-pressed":a?"true":"false",children:[y.jsx(_a,{children:f}),a?y.jsx(JO,{}):y.jsx($O,{})]}),y.jsx("div",{className:$(Ol.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:a&&y.jsx(_a,{children:n(e6)||""})})]}),!!h?.length&&y.jsx("div",{className:$(Ol.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(_a,{children:n(zy)||""})})]})},n6="_messageContainer_1rxi5_1",a6="_message_1rxi5_1",r6="_messageBot_1rxi5_14",i6="_messageBotLast_1rxi5_45",l6="_avatar_1rxi5_45",s6="_messageBotFirst_1rxi5_54",o6="_messageBotAnimated_1rxi5_67",u6="_messageGuest_1rxi5_78",c6="_messageGuestFirst_1rxi5_84",f6="_messageGuestLast_1rxi5_90",h6="_botAvatar_1rxi5_104",d6="_agentAvatar_1rxi5_108",m6="_bubble_1rxi5_112",p6="_bubbleContent_1rxi5_118",g6="_bubbleLeft_1rxi5_132",y6="_leftText_1rxi5_143",b6="_bubbleRight_1rxi5_150",v6="_rightText_1rxi5_160",_6="_sourceInfoReference_1rxi5_192",S6="_sourceInfoReferenceActive_1rxi5_204",me={messageContainer:n6,message:a6,messageBot:r6,messageBotLast:i6,avatar:l6,messageBotFirst:s6,messageBotAnimated:o6,messageGuest:u6,messageGuestFirst:c6,messageGuestLast:f6,botAvatar:h6,agentAvatar:d6,bubble:m6,bubbleContent:p6,bubbleLeft:g6,leftText:y6,bubbleRight:b6,rightText:v6,sourceInfoReference:_6,sourceInfoReferenceActive:S6},Cd=(n,a)=>{U.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&a()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,a])};var qf,Iy;function Rd(){if(Iy)return qf;Iy=1;function n(a){var i=typeof a;return a!=null&&(i=="object"||i=="function")}return qf=n,qf}var Ff,ky;function E6(){if(ky)return Ff;ky=1;var n=typeof mo=="object"&&mo&&mo.Object===Object&&mo;return Ff=n,Ff}var Vf,Gy;function uv(){if(Gy)return Vf;Gy=1;var n=E6(),a=typeof self=="object"&&self&&self.Object===Object&&self,i=n||a||Function("return this")();return Vf=i,Vf}var Yf,qy;function T6(){if(qy)return Yf;qy=1;var n=uv(),a=function(){return n.Date.now()};return Yf=a,Yf}var Zf,Fy;function A6(){if(Fy)return Zf;Fy=1;var n=/\s/;function a(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return Zf=a,Zf}var Xf,Vy;function x6(){if(Vy)return Xf;Vy=1;var n=A6(),a=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(a,"")}return Xf=i,Xf}var Qf,Yy;function cv(){if(Yy)return Qf;Yy=1;var n=uv(),a=n.Symbol;return Qf=a,Qf}var Pf,Zy;function O6(){if(Zy)return Pf;Zy=1;var n=cv(),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,u=n?n.toStringTag:void 0;function f(h){var m=i.call(h,u),g=h[u];try{h[u]=void 0;var p=!0}catch{}var v=s.call(h);return p&&(m?h[u]=g:delete h[u]),v}return Pf=f,Pf}var Kf,Xy;function C6(){if(Xy)return Kf;Xy=1;var n=Object.prototype,a=n.toString;function i(s){return a.call(s)}return Kf=i,Kf}var $f,Qy;function R6(){if(Qy)return $f;Qy=1;var n=cv(),a=O6(),i=C6(),s="[object Null]",u="[object Undefined]",f=n?n.toStringTag:void 0;function h(m){return m==null?m===void 0?u:s:f&&f in Object(m)?a(m):i(m)}return $f=h,$f}var Jf,Py;function N6(){if(Py)return Jf;Py=1;function n(a){return a!=null&&typeof a=="object"}return Jf=n,Jf}var Wf,Ky;function w6(){if(Ky)return Wf;Ky=1;var n=R6(),a=N6(),i="[object Symbol]";function s(u){return typeof u=="symbol"||a(u)&&n(u)==i}return Wf=s,Wf}var eh,$y;function M6(){if($y)return eh;$y=1;var n=x6(),a=Rd(),i=w6(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt;function g(p){if(typeof p=="number")return p;if(i(p))return s;if(a(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=a(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=n(p);var S=f.test(p);return S||h.test(p)?m(p.slice(2),S?2:8):u.test(p)?s:+p}return eh=g,eh}var th,Jy;function fv(){if(Jy)return th;Jy=1;var n=Rd(),a=T6(),i=M6(),s="Expected a function",u=Math.max,f=Math.min;function h(m,g,p){var v,S,A,M,_,O,E=0,D=!1,I=!1,H=!0;if(typeof m!="function")throw new TypeError(s);g=i(g)||0,n(p)&&(D=!!p.leading,I="maxWait"in p,A=I?u(i(p.maxWait)||0,g):A,H="trailing"in p?!!p.trailing:H);function k(K){var Se=v,se=S;return v=S=void 0,E=K,M=m.apply(se,Se),M}function w(K){return E=K,_=setTimeout(ae,g),D?k(K):M}function Z(K){var Se=K-O,se=K-E,L=g-Se;return I?f(L,A-se):L}function P(K){var Se=K-O,se=K-E;return O===void 0||Se>=g||Se<0||I&&se>=A}function ae(){var K=a();if(P(K))return De(K);_=setTimeout(ae,Z(K))}function De(K){return _=void 0,H&&v?k(K):(v=S=void 0,M)}function He(){_!==void 0&&clearTimeout(_),E=0,v=O=S=_=void 0}function pe(){return _===void 0?M:De(a())}function be(){var K=a(),Se=P(K);if(v=arguments,S=this,O=K,Se){if(_===void 0)return w(O);if(I)return clearTimeout(_),_=setTimeout(ae,g),k(O)}return _===void 0&&(_=setTimeout(ae,g)),M}return be.cancel=He,be.flush=pe,be}return th=h,th}var D6=fv();const L6=Po(D6),B6="_container_131ib_1",H6="_categoryContainer_131ib_13",j6="_categoryButton_131ib_20",U6="_active_131ib_35",z6="_commentTextarea_131ib_44",Cl={container:B6,categoryContainer:H6,categoryButton:j6,active:U6,commentTextarea:z6},I6=(n,a,i)=>{U.useEffect(()=>{if(n){const s=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),h=a.current?Array.from(a.current.querySelectorAll(f)):[],m=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...h,...m]},u=f=>{if(f.key==="Tab"){const h=s();if(h.length>0){const m=h[0],g=h[h.length-1],p=document.activeElement;!f.shiftKey&&p===g?(f.preventDefault(),m.focus()):f.shiftKey&&p===m&&(f.preventDefault(),g.focus())}}};return document.addEventListener("keydown",u,!0),()=>{document.removeEventListener("keydown",u,!0)}}},[n,a,i])},k6=({open:n,actionsRef:a,reaction:i,onReaction:s})=>{const u=Je(),f=U.useRef(null),h=L6(p=>{s({...i,comment:p})},300);U.useEffect(()=>()=>h.flush(),[h]),I6(n,a,f);const m=p=>{s({...i,category:i.category===p?void 0:p})},g=p=>h(p.target.value);return n?y.jsxs("div",{ref:f,className:Cl.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:Cl.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>y.jsx("button",{className:$(Cl.categoryButton,i?.category===p&&Cl.active),onClick:()=>m(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:g,className:Cl.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},G6="_botMessageActionContainer_18fjb_1",q6="_alwaysVisible_18fjb_15",F6="_active_18fjb_19",V6="_botMessageActionInnerContainer_18fjb_27",Y6="_header_18fjb_52",Z6="_botMessageActions_18fjb_57",X6="_reported_18fjb_68",Q6="_action_18fjb_72",P6="_wave_18fjb_86",K6="_anyReport_18fjb_156",$6="_closeButton_18fjb_172",nt={botMessageActionContainer:G6,alwaysVisible:q6,active:F6,botMessageActionInnerContainer:V6,header:Y6,botMessageActions:Z6,reported:X6,action:Q6,wave:P6,anyReport:K6,closeButton:$6},J6=({isSubmitting:n,onClick:a})=>{const i=Je();return y.jsx("button",{className:$(nt.action,nt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:a,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n?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"})})})},W6=({alwaysVisible:n,senderType:a,reaction:i,botMessageRef:s,message:u,animated:f,onReaction:h})=>{const m=Je(),[g,p]=U.useState(!1),[v,S]=U.useState(!1),[A,M]=U.useState(!1),_=U.useRef(null),O=U.useRef(null);Cd(_,()=>{M(!1)});const E=Z=>{Z.key==="Escape"&&M(!1)};U.useEffect(()=>(document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}),[]),U.useEffect(()=>{A&&_.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[A]);const D=Z=>{O.current&&clearTimeout(O.current),S(!0),h(Z),O.current=setTimeout(()=>{S(!1)},1e3)},I=U.useCallback(async()=>{if(s.current)try{p(!0);const Z=s.current.innerHTML,P=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([Z],{type:"text/html"}),"text/plain":new Blob([P],{type:"text/plain"})})]),await new Promise(ae=>setTimeout(ae,1500))}finally{p(!1)}},[s]),H=()=>{M(!1),h(i?.type==="GOOD"?null:{type:"GOOD"})},k=()=>{h({...u.reaction,type:"BAD"}),M(!A)},w=Z=>P=>{(P.key==="Enter"||P.key===" ")&&Z()};return y.jsx("div",{ref:_,className:$(nt.botMessageActionContainer,n&&nt.alwaysVisible,A&&nt.active),children:y.jsxs("div",{className:$(nt.botMessageActionInnerContainer,n&&nt.alwaysVisible,A&&nt.active,i&&nt.reported),role:"group",children:[y.jsxs("div",{className:nt.header,children:[y.jsxs("div",{className:$(nt.botMessageActions,i&&nt.reported),children:[a===Zo.BOT&&y.jsx("button",{className:$(nt.action,f&&nt.wave,i?.type&&nt.anyReport,i?.type==="GOOD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":m(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":m(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:H,onKeyDown:w(H),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"})})}),a===Zo.BOT&&y.jsx("button",{className:$(nt.action,f&&nt.wave,i?.type&&nt.anyReport,i?.type==="BAD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":m("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":m("bot-bubble.reaction.bad"),onPointerDown:k,onKeyDown:w(k),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:$(nt.action,f&&nt.wave,"tooltip--top-right"),style:{visibility:A?"hidden":"visible"},tabIndex:0,"aria-label":m("bot-bubble.copy"),"data-title":m("bot-bubble.copy"),onClick:I,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:g?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"})})})]}),A&&y.jsx(J6,{isSubmitting:v,onClick:()=>M(!1)})]}),u.reaction&&y.jsx(k6,{open:A,actionsRef:_,reaction:u.reaction,onReaction:D})]})})},hv=U.forwardRef(({message:n,isAnimated:a,isFirstMessage:i,isLastMessage:s,isFirstMessageBySender:u,isLastMessageBySender:f,children:h,onReaction:m},g)=>{const p=Je(),v=U.useRef(null),S=n.sender.type===Ta.BOT;return y.jsxs("li",{ref:g,className:$(me.message,me.messageBot,s&&me.lastMessage,u&&me.messageBotFirst,f&&me.messageBotLast,"chat__bubbleContainer",a&&me.messageBotAnimated,a&&"chat__bubbleContainer--animated",S?"chat__botBubbleContainer":"chat__agentBubbleContainer",u&&"chat__bubbleContainer--first",f&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:$(me.avatar,S?me.botAvatar:me.agentAvatar,"chat__avatar",S?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:S?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:me.messageContainer,children:[y.jsx("div",{ref:v,className:$(me.bubble,me.bubbleLeft,"chat__bubble",S?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(S?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:$(me.leftText),children:h})}),m&&y.jsx(W6,{alwaysVisible:s&&f,senderType:n.sender.type,reaction:n.reaction,message:n,botMessageRef:v,animated:i,onReaction:m})]})]})}),e3="_sourceList_1n31h_1",t3="_source_1n31h_1",n3="_label_1n31h_37",nh={sourceList:e3,source:t3,label:n3},dv=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),mv=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),pv=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),gv=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),a3=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(gv,{...a});case"PDF":return y.jsx(pv,{...a});case"DOCX":return y.jsx(dv,{...a});default:return y.jsx(mv,{...a})}},Nd=({sources:n,onLinkClick:a})=>{const i=Je(),s=f=>()=>{a(f.url)},u=f=>h=>{(h.key==="Enter"||h.key===" ")&&a(f.url)};return n.length?y.jsx("ul",{className:nh.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(f=>y.jsx("li",{className:nh.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:s(f),onKeyDown:u(f),children:[y.jsx(a3,{type:f.type,"aria-hidden":"true"}),y.jsx("div",{className:nh.label,children:f.label})]})},f.url))}):null},r3="_button_3ui4g_1",i3="_buttonDefault_3ui4g_13",l3="_buttonPrimary_3ui4g_28",ql={button:r3,buttonDefault:i3,buttonPrimary:l3},iu=({className:n,children:a,...i})=>y.jsx("button",{className:$(ql.button,n),type:"button",role:"button",...i,children:a}),s3="_title_137pi_1",o3="_buttons_137pi_6",u3="_button_137pi_6",c3="_imageContainer_137pi_29",f3="_image_137pi_29",h3="_video_container_137pi_44",d3="_video_137pi_44",m3="_only_137pi_58",nn={title:s3,buttons:o3,button:u3,imageContainer:c3,image:f3,video_container:h3,video:d3,only:m3},p3=({buttons:n,onButtonClick:a})=>y.jsx("div",{className:$(nn.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>y.jsx(iu,{className:$(nn.button,"chat__bubbleButton"),onClick:()=>a(i),children:i.title},s))}),Wy="newtab#",yv=({markdown:n,markdownOptions:a={},onLinkClick:i})=>{const s=f=>h=>(h.preventDefault(),f&&i(f),!1),u=({title:f,href:h,children:m})=>h.indexOf(Wy)===0?y.jsx("a",{href:h.slice(Wy.length),title:f,target:"_blank",rel:"noopener noreferrer",children:m}):y.jsx("a",{onClick:s(h),title:f,href:h,children:m});return y.jsx(_a,{options:{...a,overrides:{a:u}},children:n})},g3=({text:n,onLinkClick:a})=>n?y.jsx("div",{children:y.jsx(yv,{markdown:n,onLinkClick:a})}):null,y3=({title:n})=>n?y.jsx("h1",{className:nn.title,children:n}):null,b3=({title:n,text:a,buttons:i,onButtonClick:s,onLinkClick:u})=>n?.length||a?.length||i?.length?y.jsxs("div",{className:$(me.bubbleContent),children:[y.jsx(y3,{title:n}),y.jsx(g3,{text:a,onLinkClick:u}),y.jsx(p3,{buttons:i,onButtonClick:s})]}):null,v3=({alt:n,imageUrl:a,itemUrl:i,hasBody:s})=>a?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:nn.video_container,children:y.jsx("iframe",{className:$(nn.video,{[nn.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:nn.imageContainer,children:y.jsx("img",{className:$(nn.image,{[nn.only]:!s}),src:a,alt:n})})}):y.jsx("div",{className:nn.imageContainer,children:y.jsx("img",{className:$(nn.image,{[nn.only]:!s}),src:a,alt:n})}):null,_3=({title:n,text:a,imageUrl:i,itemUrl:s,buttons:u,sources:f,onButtonClick:h,onLinkClick:m})=>{const g=!!n?.length||!!a?.length||!!u?.length;return y.jsxs("div",{className:$(nn.detailMessage),children:[y.jsx(v3,{hasBody:g,imageUrl:i,itemUrl:s,alt:n||""}),g&&y.jsx(b3,{title:n,text:a,buttons:u,onLinkClick:m,onButtonClick:h}),y.jsx(Nd,{sources:f,onLinkClick:m})]})},S3=U.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:a,children:i},s)=>{const u=Je();return y.jsx("li",{ref:s,className:$(me.message,me.messageGuest,n&&me.messageGuestFirst,a&&me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:$(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:$(me.rightText),children:i})})})}),wd=()=>U.useMemo(()=>dd(),[]),E3="_markdown_nw7vg_1",bv={markdown:E3},Ao="source-info-reference",T3=({actionId:n,markdown:a,sources:i,onLinkClick:s})=>{const u=wd(),f=xa(),h=A3(),m=at(v=>{const S=v.chat.sourceInfos;if(S?.type==="loaded"||S?.type==="loading")return S.chunkId}),g=v=>S=>{const A=S.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(S.stopPropagation(),f(by(u,n,v)))},p=v=>()=>{f(by(u,n,v))};return U.useLayoutEffect(()=>{document.querySelectorAll(`.${Ao}`).forEach(v=>{const S=v.previousSibling;S&&S.nodeType===Node.TEXT_NODE&&S.textContent?.endsWith(" ")&&S.textContent?.trim().length&&v.classList.add(`${Ao}--before-space`);const A=v.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&v.classList.add(`${Ao}--after-space`)})},[a]),y.jsxs("div",{className:me.bubbleContent,children:[y.jsx("div",{className:bv.markdown,children:y.jsx(yv,{markdown:a,onLinkClick:s,markdownOptions:{renderRule(v,S,A,M){if(S.type===Fx.footnoteReference){const _=S.text===m;return y.jsx("span",{className:$(me.sourceInfoReference,_&&me.sourceInfoReferenceActive,Ao),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(S.text),onKeyDown:g(S.text),children:h(S.text)})},M.key)}return v()}}})}),y.jsx(Nd,{sources:i,onLinkClick:s})]})},A3=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},x3="_text_gp0s0_1",O3="_command_gp0s0_5",e1={text:x3,command:O3},C3=({text:n,commands:a=[]})=>{const i=a.find(u=>n.startsWith(`/${u}`)),s=i?n.slice(i.length+1):n;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:e1.command,children:["/",i]}),s.split(`
117
+ `).map((u,f)=>y.jsxs("span",{className:e1.text,children:[u,y.jsx("br",{})]},f))]})},R3=({text:n,commands:a,sources:i,onLinkClick:s})=>y.jsxs("div",{className:me.bubbleContent,children:[y.jsx(C3,{text:n,commands:a}),y.jsx(Nd,{sources:i,onLinkClick:s})]}),N3=U.forwardRef(({message:n,commands:a,isFirstMessage:i,isLastMessage:s,isFirstMessageBySender:u,isLastMessageBySender:f,onReaction:h,onButtonClick:m,onLinkClick:g},p)=>{const v=w3(n._id,n,a,m,g),S=A=>{h(n._id,A)};switch(n.sender.type){case Ta.GUEST:return y.jsx(S3,{ref:p,isFirstMessageBySender:u,isLastMessageBySender:f,children:v});default:return y.jsx(hv,{ref:p,message:n,isAnimated:!1,isFirstMessage:i,isLastMessage:s,isFirstMessageBySender:u,isLastMessageBySender:f,onReaction:S,children:v})}}),w3=(n,a,i,s,u)=>{switch(a.type){case vi.TEXT:{const f=a;return y.jsx(R3,{text:f.text,commands:i,sources:a.sources||[],onLinkClick:u})}case vi.DETAIL:{const f=a;return y.jsx(_3,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:a.sources||[],onButtonClick:s,onLinkClick:u})}case vi.MARKDOWN:{const f=a;return y.jsx(T3,{actionId:n,markdown:f.markdown,sources:f.sources||[],onLinkClick:u})}}},M3=(n,a)=>n.message._id===a.message._id&&n.message.reaction===a.message.reaction&&n.isFirstMessage===a.isFirstMessage&&n.isLastMessage===a.isLastMessage&&n.isFirstMessageBySender===a.isFirstMessageBySender&&n.isLastMessageBySender===a.isLastMessageBySender,D3=w1.memo(N3,M3),L3="_ticontainer_xg0dn_1",B3="_tiblock_xg0dn_5",H3="_tidot_xg0dn_12",Rl={ticontainer:L3,tiblock:B3,tidot:H3},j3=({isTyping:n=!1})=>y.jsx("div",{className:Rl.ticontainer,children:y.jsx("div",{className:Rl.tiblock,children:n?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:$(Rl.tidot,"chat__typingIndicator")}),y.jsx("div",{className:$(Rl.tidot,"chat__typingIndicator")}),y.jsx("div",{className:$(Rl.tidot,"chat__typingIndicator")})]}):null})}),U3=Object.assign({_id:"typing-indicator"},new Wo("",new dA)),z3=({messages:n,isBotTyping:a,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:f})=>{const h=U.useRef(0),m=U.useRef(!0),g=U.useRef(null),p=U.useRef(null),v=U.useRef(null),S=at(_=>_.settings.enableGeneralConditions);U.useLayoutEffect(()=>{if(n.length&&g.current&&(h.current<n.length||a)){if(p.current){const _=p.current.offsetTop;g.current.scrollTop=_}else if(v.current){const _=v.current.offsetTop;g.current.scrollTop=_}m.current&&(m.current=!1),h.current=n.length}},[n,m,a]);let A;const M=n.length;return y.jsxs("div",{ref:g,className:$(_y.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&m.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&y.jsx(t6,{}),y.jsxs("ul",{className:_y.messages,children:[n.map((_,O)=>{const E=I3(_,A),D=k3(_,O,n,a);A=_.sender.type;const I=O+1===M,H=O===0,k=_._id||`added-${O}`;return y.jsx(D3,{ref:I?v:null,message:_,commands:i,isFirstMessage:H,isLastMessage:I,isFirstMessageBySender:E,isLastMessageBySender:D,onButtonClick:u,onLinkClick:f,onReaction:s},I&&!a?"last":k)}),a&&y.jsx(hv,{ref:p,message:U3,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Ta.BOT,isLastMessageBySender:!0,children:y.jsx(j3,{isTyping:!0})},"last")]})]})},I3=(n,a)=>!a||a!==n.sender.type,k3=(n,a,i,s)=>{const u=n.sender.type,f=i.length;return a+1===f?!(u===Ta.BOT&&s):u!==i.at(a+1)?.sender.type},G3="_bottomSheet_jp8dl_1",q3="_bottomSheetOpen_jp8dl_15",F3="_bottomSheetClose_jp8dl_20",Sa={bottomSheet:G3,bottomSheetOpen:q3,bottomSheetClose:F3},V3="_container_xc2nx_1",t1={container:V3},Y3=({contentUrl:n})=>{const a=at(f=>f.connection.sessionId),[i,s]=U.useState(!1);U.useEffect(()=>{s(f=>f||!!n)},[n]);const u=U.useMemo(()=>{if(n&&a){const f=new URL(n,document.baseURI);return f.searchParams.set("sessionId",a),f.toString()}else return},[n,a]);return y.jsx("div",{className:$(t1.container,Sa.bottomSheet,{[Sa.bottomSheetOpen]:!!n,[Sa.bottomSheetClose]:i&&!n}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:t1.iframe})})},Z3="_container_6tt4m_1",X3={container:Z3},Q3=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),P3=()=>{const a=Je()("powered-by");return a&&a.length?y.jsx("div",{className:$(X3.container,"chat__poweredBy"),children:y.jsx(_a,{options:{overrides:{a:Q3}},children:a})}):null},vv=({className:n,children:a,...i})=>y.jsx(iu,{className:$(ql.buttonDefault,n),type:"button",...i,children:a}),Xo=({className:n,children:a,...i})=>y.jsx(iu,{className:$(ql.buttonPrimary,n),...i,children:a}),K3="_container_h23mk_1",$3="_formContainer_h23mk_17",J3="_emailInput_h23mk_22",W3="_description_h23mk_52",eC="_actions_h23mk_57",tC="_validationError_h23mk_67",nC="_submitted_h23mk_74",xr={container:K3,formContainer:$3,emailInput:J3,description:W3,actions:eC,validationError:tC,submitted:nC},aC=({visible:n,onEmailExport:a,onClose:i})=>{const s=Je(),[u,f]=U.useState(void 0),[h,m]=U.useState(!1),[g,p]=U.useState(void 0),v=U.useRef(null);U.useEffect(()=>{n?(v.current?.focus(),m(!1),f(n)):u===!0&&f(!1)},[n,u]);const S=M=>{M.preventDefault(),g&&g.length>0&&(a(g),m(!0),setTimeout(i,3*1e3))},A=M=>{const _=M.target.value.trim(),O=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(_);p(O?_:"")};return y.jsxs("div",{className:$(xr.container,Sa.bottomSheet,{[Sa.bottomSheetOpen]:u===!0,[Sa.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(_a,{className:xr.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:S,className:xr.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:h,ref:v,type:"email",placeholder:s("export-transcript.email.placeholder"),className:xr.emailInput,onChange:A}),g?.length===0?y.jsx("div",{className:xr.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:xr.actions,children:[y.jsx(vv,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(Xo,{type:"submit",disabled:h||g===void 0||g.length===0,children:s("export-transcript.email.send")})]})]}),h&&y.jsx("div",{className:xr.submitted,children:s("export-transcript.email.success")})]})},rC="_inputContainer_fi5ao_1",iC={inputContainer:rC},lC="_blockUserInput_pot9c_1",sC={blockUserInput:lC},oC=({visible:n})=>{const a=Je();return n?y.jsx("div",{className:$(sC.blockUserInput,"chat__blockUserInput"),children:a("block-user-input.title")}):null},uC="_commandsDropdown_5ytuv_1",cC="_commands_5ytuv_1",fC="_command_5ytuv_1",hC="_commandActive_5ytuv_46",dC="_commandsSelections_5ytuv_55",jl={commandsDropdown:uC,commands:cC,command:fC,commandActive:hC,commandsSelections:dC},mC=(n,a,i,s,u)=>{U.useEffect(()=>{const f=h=>{if(n.length)switch(h.key){case"Enter":i(n[a]);break;case"ArrowUp":s(m=>m>0?m-1:n.length-1);break;case"ArrowDown":s(m=>m<n.length-1?m+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[n,a,i,s,u])},pC=({text:n,commands:a,onSelectCommand:i,onVisibilityChange:s})=>{const u=U.useRef(null),f=Je(),[h,m]=U.useState([]),[g,p]=U.useState(n1(a)),[v,S]=U.useState(0),A=M=>i(`/${M}`);return Cd(u,()=>m([])),mC(h,v,A,S,m),U.useEffect(()=>{p(n1(a))},[a]),U.useEffect(()=>{const M=n.length||0;M===0||M>g||!n.startsWith("/")?m([]):m(a.filter(gC(n))),S(0)},[a,n,g]),U.useEffect(()=>{s(!!h.length)},[h,s]),h.length?y.jsx("div",{ref:u,className:jl.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:jl.commands,role:"listbox",children:h.map((M,_)=>y.jsxs("li",{className:$([jl.command,v===_&&jl.commandActive]),role:"option",onClick:()=>A(M),onMouseOver:()=>S(_),children:[y.jsxs("h1",{children:["/",M]}),y.jsx("p",{children:f(`commands.${M}`)})]},M))})}):null},n1=n=>Math.max(...n.map(a=>a.length+1)),gC=n=>a=>{const i=`/${a}`;return i.startsWith(n)&&i.length>=n.length},a1=3,yC=({commands:n,onSelectCommand:a})=>{const i=Je(),[s,u]=U.useState(!1),f=p=>()=>{a(`/${p}`),u(!1)},h=()=>{u(!0)},m=()=>{u(!1)},g=s?n:n.slice(0,a1);return y.jsxs("div",{className:jl.commandsSelections,children:[g.map(p=>y.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${p}`),"data-title":i(`commands.${p}`),tabIndex:0,onClick:f(p),children:["/",p]},p)),g.length<n.length?y.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-more.action")},"show-more"):g.length>a1?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:m,children:i("commands.show-less.action")},"show-less"):null]})},bC="_callToActionContainer_d8izj_1",vC="_callToActionTitle_d8izj_23",_C="_rateOverlay_d8izj_30",SC="_body_d8izj_52",EC="_footer_d8izj_60",TC="_actions_d8izj_75",AC="_bubbles_d8izj_89",xC="_stars_d8izj_191",OC="_starsSmall_d8izj_205",CC="_starsLarge_d8izj_211",RC="_star_d8izj_191",NC="_starReadonly_d8izj_225",wC="_starIcon_d8izj_235",MC="_starsDescriptionContainer_d8izj_253",DC="_starsDescription_d8izj_253",jt={callToActionContainer:bC,callToActionTitle:vC,rateOverlay:_C,body:SC,footer:EC,actions:TC,bubbles:AC,stars:xC,starsSmall:OC,starsLarge:CC,star:RC,starReadonly:NC,starIcon:wC,starsDescriptionContainer:MC,starsDescription:DC},LC=({value:n,index:a,count:i,readonly:s,onHover:u,onClick:f})=>{const h=m=>{f&&m.key==="Enter"&&f()};return y.jsx("li",{className:$(jt.star,{[jt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":n>a?"true":"false","aria-posinset":a+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:h,onClick:f,children:y.jsx("span",{role:"img","aria-label":"Star",className:$(jt.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"})})})})})},r1=5,_v=({value:n,size:a,readonly:i=!1,onChange:s})=>{const[u,f]=U.useState(void 0),h=()=>{f(void 0)},m=p=>()=>{if(!i){const v=p+1;f(v)}},g=p=>()=>{s&&!i&&(s(p===0&&n===1?0:p+1),f(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:$(jt.stars,{[jt.starsSmall]:a==="small",[jt.starsLarge]:a==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:a==="small",chat__conversationRating__stars__large:a==="large"}),onMouseOut:h,children:Array(r1).fill(0).map((p,v)=>y.jsx(LC,{value:u===void 0?n:u,index:v,count:r1,readonly:i,onHover:m(v),onClick:g(v)},v))})},BC=({visible:n,onRate:a})=>{const i=Je();return n?y.jsxs("div",{className:$(jt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:$(jt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(_v,{value:0,size:"small",onChange:a})]}):null},ah=({isFirstMessageBySender:n,isLastMessageBySender:a,children:i})=>y.jsxs("div",{className:$(me.message,me.messageBot,n&&me.messageBotFirst,a&&me.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",a&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:$(me.avatar,me.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:$(me.bubble,me.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:$(me.leftText,me.bubbleContent),children:i})})]}),HC=({children:n})=>y.jsx("div",{className:$(me.message,me.messageGuest,me.messageGuestFirst,me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:$(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:$(me.rightText,me.bubbleContent),children:n})})}),jC=()=>{const n=Je(),a=xa(),i=at(E=>E.chat.conversationRating),[s,u]=U.useState(i.rating?.value||0),[f,h]=U.useState(void 0),[m,g]=U.useState(void 0),[p,v]=U.useState({submitted:!1,feedback:""}),S=U.useRef(null),[A,M]=U.useState(!1);U.useEffect(()=>{i.opener?(v({submitted:!1,feedback:""}),g(!0)):m===!0&&g(!1)},[i.opener,m]),U.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),U.useEffect(()=>{S.current&&(S.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),U.useEffect(()=>{const E=s>0?n(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;h(E?.length?E:void 0)},[s,n]),U.useEffect(()=>{p.submitted?setTimeout(()=>M(!0),p.feedback.length?500:0):M(!1)},[p]);const _=E=>{E.preventDefault();const D=S.current?.value?.trim()||"";a(xA(s,D)),v({submitted:!0,feedback:D})},O=()=>{i.opener==="CLOSE_CHAT"?a(Jb()):i.opener==="RESTART_CHAT"?a(Xl()):a(xx())};return y.jsx("div",{className:$(jt.rateOverlay,Sa.bottomSheet,"chat__conversationRating__overlay",{[Sa.bottomSheetOpen]:m===!0,[Sa.bottomSheetClose]:m===!1}),children:y.jsxs("form",{onSubmit:_,children:[y.jsxs("div",{className:$(jt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:$(jt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(ah,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[y.jsx("h2",{children:n("conversation-rating.overlay.title")}),y.jsxs("div",{className:$(jt.starsDescriptionContainer),children:[y.jsx(_v,{value:s,size:"large",readonly:p.submitted,onChange:u}),y.jsxs("div",{className:$(jt.starsDescription),children:[y.jsx("div",{children:n("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:n("conversation-rating.overlay.star.very-good")})]})]})]}),f&&y.jsx(ah,{isFirstMessageBySender:!1,isLastMessageBySender:!A||!!p.feedback.length,children:y.jsx("div",{children:f})}),!!p.feedback.length&&y.jsx(HC,{children:p.feedback}),A&&y.jsx(ah,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:n("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:$(jt.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:S,defaultValue:i.rating?.feedback||"",placeholder:n("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:$(jt.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(Xo,{type:"button",disabled:!s,onClick:O,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(Xo,{type:"submit",disabled:!s,children:n("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(vv,{onClick:O,children:i.opener==="CLOSE_CHAT"?n("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?n("conversation-rating.overlay.action.restart-chat"):n("conversation-rating.overlay.action.cancel")})]})]})]})})},UC=({numberOfMessagesFromGuest:n})=>{const a=xa(),i=at(f=>f.chat.conversationRating),s=f=>{a(Yo("CHAT",f))},u=!i.rating?.value&&n>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(BC,{visible:u,onRate:s}),y.jsx(jC,{})]}):null},zC=U.memo(UC),IC="_inputWrapper_e3h44_1",kC="_withOpenCommands_e3h44_14",GC="_messageInputWrapper_e3h44_20",qC="_messageInput_e3h44_20",FC="_buttons_e3h44_44",VC="_button_e3h44_44",yi={inputWrapper:IC,withOpenCommands:kC,messageInputWrapper:GC,messageInput:qC,buttons:FC,button:VC},YC="_audioRecorder_g845f_1",ZC="_audioButton_g845f_6",XC="_recorderIcon_g845f_37",QC="_spinning_g845f_60",Or={audioRecorder:YC,audioButton:ZC,recorderIcon:XC,spinning:QC},i1=2048,Qo=16e3;class PC extends w1.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(a){super(a),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(a){this.mediaStream=a,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(a)}initRecording(a){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(a),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(i1,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(a){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=a.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=i1}}handleClickSubmitAudio(){const a=$C(this.leftchannel,this.recordingLength),i=JC(a,this.sampleRate||0),s=KC(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(a=>{a.stop()})}render(){return y.jsxs("div",{className:Or.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:$(Or.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:Or.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:Or.audioRecorder,children:[y.jsx("button",{className:$(Or.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:Or.recorderIcon}),y.jsx("button",{className:$(Or.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 KC=n=>{const a=new ArrayBuffer(44+n.length*2),i=new DataView(a);xo(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),xo(i,8,"WAVE"),xo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,Qo,!0),i.setUint32(28,Qo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),xo(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const f=1;for(let h=0;h<s;h++)i.setInt16(u,n[h]*(32767*f),!0),u+=2;return new Blob([i],{type:"audio/wav"})},xo=(n,a,i)=>{for(let s=0;s<i.length;s++)n.setUint8(a+s,i.charCodeAt(s))},$C=(n,a)=>{const i=new Float32Array(a);let s=0;const u=n.length;for(let f=0;f<u;f++){const h=n[f];i.set(h,s),s+=h.length}return i},JC=(n,a)=>{if(Qo===a)return n;const i=a/Qo,s=Math.round(n.length/i),u=new Float32Array(s);let f=0,h=0;for(;f<u.length;){const m=Math.round((f+1)*i);let g=0,p=0;for(let v=h;v<m&&v<n.length;v++)g+=n[v],p++;u[f]=g/p,f++,h=m}return u},WC=({disabled:n,textInput:a,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:f,onAudioRecorded:h})=>{const m=Je(),g=U.useRef(null),{enableSpeechSupport:p}=at(_=>_.settings);U.useEffect(()=>{g.current?.focus()},[a]);const v=()=>{const _=g.current;_&&a.trim().length>=1&&f(a.trim())&&(_.value="",_.style.height="",_.focus())},S=_=>{_.preventDefault(),v()},A=_=>{const O=_.target.value;u(O),_.target.style.height="";const{scrollHeight:E}=_.target;_.target.style.height=`${E>150?150:E}px`},M=_=>{_.code==="Enter"&&!_.shiftKey?(_.repeat||v(),_.preventDefault()):i&&(_.code==="ArrowUp"||_.code==="ArrowDown")&&_.preventDefault()};return y.jsxs("form",{className:$(yi.inputWrapper,i&&yi.withOpenCommands,"chat__textInput"),onSubmit:S,children:[y.jsx("div",{className:yi.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:g,className:yi.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:a,onChange:A,onKeyDown:M,"aria-label":m("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:$(yi.buttons,"chat__buttons"),children:a.length||!p||navigator.mediaDevices===void 0?y.jsx("button",{className:$(yi.button,"chat__button"),type:"submit","aria-label":m("message-input.actions.submit.label"),"data-title":m("message-input.actions.submit.label"),tabIndex:0,disabled:n,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(PC,{translate:m,onAudioRecorded:h})})]})},eR="_quickReplies_83npe_1",tR="_quickReply_83npe_9",l1={quickReplies:eR,quickReply:tR},nR=({quickReplies:n,onQuickReplyClick:a})=>n.length?y.jsx("div",{className:$(l1.quickReplies,"chat__quickReplies"),children:n.map(i=>y.jsx(iu,{tabIndex:0,className:$(l1.quickReply,"chat__button","chat__quickReply"),onClick:()=>a(i),children:i.label},i.label))}):null,s1=5e3,aR=1e3,rR=({isBotTyping:n,quickReplies:a,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:f,onAudioRecorded:h})=>{const[m,g]=U.useState(""),[p,v]=U.useState(!1),[S,A]=U.useState(!1),M=U.useRef(0),_=U.useRef(0);U.useEffect(()=>{if(p&&!n){const D=M.current?Date.now()-M.current:0;D>s1?v(!1):setTimeout(()=>{v(!1)},s1-D)}},[p,n]),U.useEffect(()=>{p&&(M.current=Date.now())},[p]);const O=D=>{const I=Date.now()-_.current<aR;return S?!1:n||I?(v(!0),!1):(u(D),g(""),_.current=Date.now(),!0)},E=D=>{g(D+" ")};return y.jsxs("div",{className:$(iC.inputContainer),children:[y.jsx(nR,{quickReplies:a,onQuickReplyClick:f}),y.jsx(oC,{visible:p}),!p&&y.jsx(zC,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(pC,{text:m,commands:s,onSelectCommand:E,onVisibilityChange:A}),y.jsx(WC,{textInput:m,disabled:p,commandsVisible:S,hasCommands:!!s?.length,onTextInput:g,onTextInputSubmit:O,onAudioRecorded:h}),!!s?.length&&y.jsx(yC,{commands:s,onSelectCommand:g})]})},iR=({clientName:n,messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:f,onQuickReplyClick:h,onButtonClick:m,onLinkClick:g,onAudioRecorded:p,onTranscriptExport:v,onTranscriptItemReaction:S})=>{const A=xa(),M=at(k=>k.connection.connectionState),{enableTranscriptExportEmail:_,commands:O}=at(k=>k.settings),{showTranscriptMailOverlay:E,conversationRating:D}=at(k=>k.chat),I=a.filter(k=>k.sender.type===Zo.GUEST).length;U.useEffect(()=>{M===wr.CONNECTED&&A(ev(n))},[n,M,A]);const H=()=>{A(Wb())};return y.jsxs("div",{className:zf.container,children:[y.jsxs("div",{className:$([zf.chatcontent,(E||D?.opener)&&zf.accessabilityHidden]),children:[y.jsx(z3,{messages:a,isBotTyping:s,commands:O,onButtonClick:m,onLinkClick:g,onTranscriptItemReaction:S}),y.jsx(rR,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:I,commands:O,onQuickReplyClick:h,onTextInput:f,onAudioRecorded:p}),y.jsx(P3,{})]}),_&&y.jsx(aC,{visible:!!E,onEmailExport:v,onClose:H}),y.jsx(Y3,{contentUrl:u})]})},lR=n=>{const{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=n.chat;return{messages:a,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},sR=n=>({onRestartChat:()=>n(Xl()),onMessageFromUser:a=>n(Cb(a)),onAudioRecorded:a=>n(_A(a)),onActionFromUser:a=>n(a),onQuickReplyClick:a=>n(Ob(a)),onNluEvent:a=>n(Db(a)),onButtonClick:a=>n(CA(a)),onLinkClick:a=>n(Lb(a)),onTranscriptExport:a=>n(EA(a)),onTranscriptItemReaction:(a,i)=>{n(yA(a,i?.type||null,i?.category,i?.comment))}}),oR=oE(lR,sR)(iR),Sv=()=>U.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),uR=n=>a=>{const i=a.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(a.stopPropagation(),n())},cR=({onClick:n})=>{const a=Je();return Sv()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":a("header.close-chat"),"data-title":a("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:uR(n),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},fR="_header_3gvbz_1",hR="_logoContainer_3gvbz_14",dR="_logo_3gvbz_14",mR="_actions_3gvbz_28",pR="_active_3gvbz_43",gR="_menuContainer_3gvbz_56",yR="_menu_3gvbz_56",bR="_divider_3gvbz_86",tr={header:fR,logoContainer:hR,logo:dR,actions:mR,active:pR,menuContainer:gR,menu:yR,divider:bR},vR=({icon:n})=>{switch(n){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",{})}},_R=U.forwardRef(({selected:n,item:a,onClick:i},s)=>{const u=Je(),f=h=>{h.preventDefault(),i()};return y.jsx("li",{"aria-selected":n,role:"option",className:a.withDivider?tr.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:f,children:[y.jsx(vR,{icon:a.icon}),y.jsx("span",{children:u(`header.menu.${a.id}`)})]})})}),SR=(n,a)=>{const i=Sv(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:f,enableTranscriptExportEmail:h}=at(p=>p.settings),m=at(p=>p.chat.conversationRating.enabled);return U.useMemo(()=>{const p=[],v=s.filter(({visibility:S})=>n?S==="always"||S==="chat-only":S==="always"||S==="start-screen-only");if(n&&(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"}),a&&f&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),a&&h&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),a&&m&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&v.length)){const S=p.pop();S&&s.length&&p.push({...S,withDivider:!0})}return p.push(...v),p},[n,a,f,h,u,m,i,s])},ER=({chatStarted:n,hasGuestMessages:a})=>{const i=xa(),s=Je(),[u,f]=U.useState(!1),[h,m]=U.useState(-1),g=U.useRef(null),p=U.useRef(null),v=U.useRef([]),S=SR(n,a);U.useEffect(()=>{v.current[h]?.focus()},[h]);const A=U.useCallback(()=>{i(a?Yo("RESTART_CHAT"):Xl()),f(!1),m(0)},[a,i]),M=U.useCallback(E=>{switch(E.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(TA());break;case"send-transcript":i(Wb());break;case"rate-conversation":i(Yo("MENU"));break;case"link":i(Lb(E.url));break;case"action":i(JSON.parse(JSON.stringify(E.action)));break}f(!1)},[i,A,f]);U.useEffect(()=>{const E=D=>{if(u)switch(D.key){case"Enter":D.preventDefault(),M(S[h]);break;case"ArrowUp":m(I=>I>0?I-1:S.length-1);break;case"ArrowDown":m(I=>I<S.length-1?I+1:0);break;case"Escape":f(!1);break;case"Tab":h>-1&&f(!1);break}};return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}},[u,h,S,m,f,M]),U.useEffect(()=>{u||m(-1)},[u,h]),Cd(p,()=>f(!1));const _=()=>{f(E=>!E)},O=()=>{setTimeout(()=>{const E=document.activeElement;p.current&&!p.current.contains(E)&&f(!1)},0)};return S.length?y.jsxs("div",{className:$(tr.menuContainer),ref:p,children:[y.jsx("button",{ref:g,className:$(u&&tr.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:_,onBlur:O,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:tr.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:S.map((E,D)=>y.jsx(_R,{ref:I=>{v.current[D]=I},selected:h===D,item:E,onClick:()=>M(E)},E.id))})})]}):null},o1=({className:n,chatStarted:a,...i})=>{const s=xa(),u=at(m=>m.chat.conversationRating),f=at(m=>m.chat.messages.some(g=>g.sender.type===Ta.GUEST)),h=()=>{u.enabled&&!u.opener&&f?s(Yo("CLOSE_CHAT")):s(Jb())};return y.jsxs("div",{className:$([tr.header,n]),...i,children:[y.jsx("div",{className:tr.logoContainer,children:y.jsx("div",{className:tr.logo})}),y.jsxs("div",{className:tr.actions,children:[y.jsx(ER,{chatStarted:a,hasGuestMessages:f}),y.jsx(cR,{onClick:h})]})]})},TR="_chatwindow_rkbir_1",AR="_chatwindowWithAside_rkbir_21",u1={chatwindow:TR,chatwindowWithAside:AR},Ev=()=>{const[n,a]=U.useState(!1);return U.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>a(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},xR="_sourceInfos_vei0l_1",OR="_waitForLoading_vei0l_24",CR="_loadingContent_vei0l_28",RR="_sourceHeader_vei0l_37",NR="_sourceHeaderIcon_vei0l_57",wR="_sourceContent_vei0l_61",MR="_openSourceButton_vei0l_69",DR="_sourceButtonLabel_vei0l_79",LR="_closeSourceInfosButton_vei0l_101",BR="_loadingSourceInfos_vei0l_125",HR="_loading_vei0l_28",jR="_loadingError_vei0l_139",UR="_highlightLoadingInfo_vei0l_155",zR="_highlightLoadingInfoInnerContainer_vei0l_169",IR="_highlightLoadingInfoContent_vei0l_178",kR="_highlightLoadingInfoCloseIcon_vei0l_198",GR="_highlightLoader_vei0l_203",qR="_highlightLoaderLoading_vei0l_210",Et={sourceInfos:xR,waitForLoading:OR,loadingContent:CR,sourceHeader:RR,sourceHeaderIcon:NR,sourceContent:wR,openSourceButton:MR,sourceButtonLabel:DR,closeSourceInfosButton:LR,loadingSourceInfos:BR,loading:HR,loadingError:jR,highlightLoadingInfo:UR,highlightLoadingInfoInnerContainer:zR,highlightLoadingInfoContent:IR,highlightLoadingInfoCloseIcon:kR,highlightLoader:GR,highlightLoaderLoading:qR},FR=({onClick:n})=>{const a=Je();return y.jsx("button",{className:$(Et.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":a("source-infos.close"),"data-title":a("source-infos.close"),tabIndex:0,onClick:n,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"})})})},VR=U.forwardRef(({sourceInfos:n,onClose:a,...i},s)=>y.jsxs("div",{className:Et.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:n?y.jsx("p",{id:"source-info-title",children:n.title}):y.jsx("p",{children:" "})}),y.jsx(FR,{onClick:a})]})),YR=({loading:n})=>y.jsx("div",{className:Et.highlightLoader,children:n&&y.jsx("div",{className:Et.highlightLoaderLoading})});/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:Tv,setPrototypeOf:c1,isFrozen:ZR,getPrototypeOf:XR,getOwnPropertyDescriptor:QR}=Object;let{freeze:Ut,seal:vn,create:zh}=Object,{apply:Ih,construct:kh}=typeof Reflect<"u"&&Reflect;Ut||(Ut=function(a){return a});vn||(vn=function(a){return a});Ih||(Ih=function(a,i){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(i,u)});kh||(kh=function(a){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 a(...s)});const Oo=zt(Array.prototype.forEach),PR=zt(Array.prototype.lastIndexOf),f1=zt(Array.prototype.pop),Nl=zt(Array.prototype.push),KR=zt(Array.prototype.splice),Do=zt(String.prototype.toLowerCase),rh=zt(String.prototype.toString),ih=zt(String.prototype.match),wl=zt(String.prototype.replace),$R=zt(String.prototype.indexOf),JR=zt(String.prototype.trim),Rn=zt(Object.prototype.hasOwnProperty),Bt=zt(RegExp.prototype.test),Ml=WR(TypeError);function zt(n){return function(a){a instanceof RegExp&&(a.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 Ih(n,a,s)}}function WR(n){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return kh(n,i)}}function xe(n,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Do;c1&&c1(n,null);let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=i(u);f!==u&&(ZR(a)||(a[s]=f),u=f)}n[u]=!0}return n}function e8(n){for(let a=0;a<n.length;a++)Rn(n,a)||(n[a]=null);return n}function ba(n){const a=zh(null);for(const[i,s]of Tv(n))Rn(n,i)&&(Array.isArray(s)?a[i]=e8(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=ba(s):a[i]=s);return a}function Dl(n,a){for(;n!==null;){const s=QR(n,a);if(s){if(s.get)return zt(s.get);if(typeof s.value=="function")return zt(s.value)}n=XR(n)}function i(){return null}return i}const h1=Ut(["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"]),lh=Ut(["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","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sh=Ut(["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"]),t8=Ut(["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"]),oh=Ut(["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"]),n8=Ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d1=Ut(["#text"]),m1=Ut(["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"]),uh=Ut(["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","mask-type","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"]),p1=Ut(["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"]),Co=Ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),a8=vn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),r8=vn(/<%[\w\W]*|[\w\W]*%>/gm),i8=vn(/\$\{[\w\W]*/gm),l8=vn(/^data-[\-\w.\u00B7-\uFFFF]+$/),s8=vn(/^aria-[\-\w]+$/),Av=vn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),o8=vn(/^(?:\w+script|data):/i),u8=vn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xv=vn(/^html$/i),c8=vn(/^[a-z][.\w]*(-[.\w]+)+$/i);var g1=Object.freeze({__proto__:null,ARIA_ATTR:s8,ATTR_WHITESPACE:u8,CUSTOM_ELEMENT:c8,DATA_ATTR:l8,DOCTYPE_NAME:xv,ERB_EXPR:r8,IS_ALLOWED_URI:Av,IS_SCRIPT_OR_DATA:o8,MUSTACHE_EXPR:a8,TMPLIT_EXPR:i8});const Ll={element:1,text:3,progressingInstruction:7,comment:8,document:9},f8=function(){return typeof window>"u"?null:window},h8=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},y1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ov(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f8();const a=re=>Ov(re);if(a.version="3.3.0",a.removed=[],!n||!n.document||n.document.nodeType!==Ll.document||!n.Element)return a.isSupported=!1,a;let{document:i}=n;const s=i,u=s.currentScript,{DocumentFragment:f,HTMLTemplateElement:h,Node:m,Element:g,NodeFilter:p,NamedNodeMap:v=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:S,DOMParser:A,trustedTypes:M}=n,_=g.prototype,O=Dl(_,"cloneNode"),E=Dl(_,"remove"),D=Dl(_,"nextSibling"),I=Dl(_,"childNodes"),H=Dl(_,"parentNode");if(typeof h=="function"){const re=i.createElement("template");re.content&&re.content.ownerDocument&&(i=re.content.ownerDocument)}let k,w="";const{implementation:Z,createNodeIterator:P,createDocumentFragment:ae,getElementsByTagName:De}=i,{importNode:He}=s;let pe=y1();a.isSupported=typeof Tv=="function"&&typeof H=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:K,TMPLIT_EXPR:Se,DATA_ATTR:se,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:oe,CUSTOM_ELEMENT:ve}=g1;let{IS_ALLOWED_URI:de}=g1,x=null;const F=xe({},[...h1,...lh,...sh,...oh,...d1]);let X=null;const W=xe({},[...m1,...uh,...p1,...Co]);let ee=Object.seal(zh(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}})),fe=null,Ee=null;const Pe=Object.seal(zh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Xt=!0,Oa=!1,pt=!0,Dt=!1,rn=!0,En=!1,rr=!1,Ti=!1,Zn=!1,Ca=!1,Ra=!1,Br=!0,Ql=!1;const ou="user-content-";let Tt=!0,ir=!1,Xn={},Qn=null;const lr=xe({},["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 Pl=null;const Ai=xe({},["audio","video","img","source","image","track"]);let xi=null;const Kl=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mn="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml";let lt=vt,Oi=!1,Ci=null;const uu=xe({},[Mn,bt,vt],rh);let Pn=xe({},["mi","mo","mn","ms","mtext"]),Kn=xe({},["annotation-xml"]);const Hr=xe({},["title","style","font","a","script"]);let Qt=null;const jr=["application/xhtml+xml","text/html"],sr="text/html";let st=null,$n=null;const Ri=i.createElement("form"),Na=function(C){return C instanceof RegExp||C instanceof Function},Ni=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($n&&$n===C)){if((!C||typeof C!="object")&&(C={}),C=ba(C),Qt=jr.indexOf(C.PARSER_MEDIA_TYPE)===-1?sr:C.PARSER_MEDIA_TYPE,st=Qt==="application/xhtml+xml"?rh:Do,x=Rn(C,"ALLOWED_TAGS")?xe({},C.ALLOWED_TAGS,st):F,X=Rn(C,"ALLOWED_ATTR")?xe({},C.ALLOWED_ATTR,st):W,Ci=Rn(C,"ALLOWED_NAMESPACES")?xe({},C.ALLOWED_NAMESPACES,rh):uu,xi=Rn(C,"ADD_URI_SAFE_ATTR")?xe(ba(Kl),C.ADD_URI_SAFE_ATTR,st):Kl,Pl=Rn(C,"ADD_DATA_URI_TAGS")?xe(ba(Ai),C.ADD_DATA_URI_TAGS,st):Ai,Qn=Rn(C,"FORBID_CONTENTS")?xe({},C.FORBID_CONTENTS,st):lr,fe=Rn(C,"FORBID_TAGS")?xe({},C.FORBID_TAGS,st):ba({}),Ee=Rn(C,"FORBID_ATTR")?xe({},C.FORBID_ATTR,st):ba({}),Xn=Rn(C,"USE_PROFILES")?C.USE_PROFILES:!1,Ie=C.ALLOW_ARIA_ATTR!==!1,Xt=C.ALLOW_DATA_ATTR!==!1,Oa=C.ALLOW_UNKNOWN_PROTOCOLS||!1,pt=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Dt=C.SAFE_FOR_TEMPLATES||!1,rn=C.SAFE_FOR_XML!==!1,En=C.WHOLE_DOCUMENT||!1,Zn=C.RETURN_DOM||!1,Ca=C.RETURN_DOM_FRAGMENT||!1,Ra=C.RETURN_TRUSTED_TYPE||!1,Ti=C.FORCE_BODY||!1,Br=C.SANITIZE_DOM!==!1,Ql=C.SANITIZE_NAMED_PROPS||!1,Tt=C.KEEP_CONTENT!==!1,ir=C.IN_PLACE||!1,de=C.ALLOWED_URI_REGEXP||Av,lt=C.NAMESPACE||vt,Pn=C.MATHML_TEXT_INTEGRATION_POINTS||Pn,Kn=C.HTML_INTEGRATION_POINTS||Kn,ee=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Na(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Na(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Xt=!1),Ca&&(Zn=!0),Xn&&(x=xe({},d1),X=[],Xn.html===!0&&(xe(x,h1),xe(X,m1)),Xn.svg===!0&&(xe(x,lh),xe(X,uh),xe(X,Co)),Xn.svgFilters===!0&&(xe(x,sh),xe(X,uh),xe(X,Co)),Xn.mathMl===!0&&(xe(x,oh),xe(X,p1),xe(X,Co))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?Pe.tagCheck=C.ADD_TAGS:(x===F&&(x=ba(x)),xe(x,C.ADD_TAGS,st))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?Pe.attributeCheck=C.ADD_ATTR:(X===W&&(X=ba(X)),xe(X,C.ADD_ATTR,st))),C.ADD_URI_SAFE_ATTR&&xe(xi,C.ADD_URI_SAFE_ATTR,st),C.FORBID_CONTENTS&&(Qn===lr&&(Qn=ba(Qn)),xe(Qn,C.FORBID_CONTENTS,st)),Tt&&(x["#text"]=!0),En&&xe(x,["html","head","body"]),x.table&&(xe(x,["tbody"]),delete fe.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ml('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ml('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=C.TRUSTED_TYPES_POLICY,w=k.createHTML("")}else k===void 0&&(k=h8(M,u)),k!==null&&typeof w=="string"&&(w=k.createHTML(""));Ut&&Ut(C),$n=C}},wi=xe({},[...lh,...sh,...t8]),Mi=xe({},[...oh,...n8]),$l=function(C){let Q=H(C);(!Q||!Q.tagName)&&(Q={namespaceURI:lt,tagName:"template"});const te=Do(C.tagName),Ue=Do(Q.tagName);return Ci[C.namespaceURI]?C.namespaceURI===bt?Q.namespaceURI===vt?te==="svg":Q.namespaceURI===Mn?te==="svg"&&(Ue==="annotation-xml"||Pn[Ue]):!!wi[te]:C.namespaceURI===Mn?Q.namespaceURI===vt?te==="math":Q.namespaceURI===bt?te==="math"&&Kn[Ue]:!!Mi[te]:C.namespaceURI===vt?Q.namespaceURI===bt&&!Kn[Ue]||Q.namespaceURI===Mn&&!Pn[Ue]?!1:!Mi[te]&&(Hr[te]||!wi[te]):!!(Qt==="application/xhtml+xml"&&Ci[C.namespaceURI]):!1},It=function(C){Nl(a.removed,{element:C});try{H(C).removeChild(C)}catch{E(C)}},Tn=function(C,Q){try{Nl(a.removed,{attribute:Q.getAttributeNode(C),from:Q})}catch{Nl(a.removed,{attribute:null,from:Q})}if(Q.removeAttribute(C),C==="is")if(Zn||Ca)try{It(Q)}catch{}else try{Q.setAttribute(C,"")}catch{}},Di=function(C){let Q=null,te=null;if(Ti)C="<remove></remove>"+C;else{const _e=ih(C,/^[\r\n\t ]+/);te=_e&&_e[0]}Qt==="application/xhtml+xml"&&lt===vt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const Ue=k?k.createHTML(C):C;if(lt===vt)try{Q=new A().parseFromString(Ue,Qt)}catch{}if(!Q||!Q.documentElement){Q=Z.createDocument(lt,"template",null);try{Q.documentElement.innerHTML=Oi?w:Ue}catch{}}const We=Q.body||Q.documentElement;return C&&te&&We.insertBefore(i.createTextNode(te),We.childNodes[0]||null),lt===vt?De.call(Q,En?"html":"body")[0]:En?Q.documentElement:We},Li=function(C){return P.call(C.ownerDocument||C,C,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},ln=function(C){return C instanceof S&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof v)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},ot=function(C){return typeof m=="function"&&C instanceof m};function Ke(re,C,Q){Oo(re,te=>{te.call(a,C,Q,$n)})}const Jn=function(C){let Q=null;if(Ke(pe.beforeSanitizeElements,C,null),ln(C))return It(C),!0;const te=st(C.nodeName);if(Ke(pe.uponSanitizeElement,C,{tagName:te,allowedTags:x}),rn&&C.hasChildNodes()&&!ot(C.firstElementChild)&&Bt(/<[/\w!]/g,C.innerHTML)&&Bt(/<[/\w!]/g,C.textContent)||C.nodeType===Ll.progressingInstruction||rn&&C.nodeType===Ll.comment&&Bt(/<[/\w]/g,C.data))return It(C),!0;if(!(Pe.tagCheck instanceof Function&&Pe.tagCheck(te))&&(!x[te]||fe[te])){if(!fe[te]&&Jl(te)&&(ee.tagNameCheck instanceof RegExp&&Bt(ee.tagNameCheck,te)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(te)))return!1;if(Tt&&!Qn[te]){const Ue=H(C)||C.parentNode,We=I(C)||C.childNodes;if(We&&Ue){const _e=We.length;for(let At=_e-1;At>=0;--At){const sn=O(We[At],!0);sn.__removalCount=(C.__removalCount||0)+1,Ue.insertBefore(sn,D(C))}}}return It(C),!0}return C instanceof g&&!$l(C)||(te==="noscript"||te==="noembed"||te==="noframes")&&Bt(/<\/no(script|embed|frames)/i,C.innerHTML)?(It(C),!0):(Dt&&C.nodeType===Ll.text&&(Q=C.textContent,Oo([be,K,Se],Ue=>{Q=wl(Q,Ue," ")}),C.textContent!==Q&&(Nl(a.removed,{element:C.cloneNode()}),C.textContent=Q)),Ke(pe.afterSanitizeElements,C,null),!1)},Ur=function(C,Q,te){if(Br&&(Q==="id"||Q==="name")&&(te in i||te in Ri))return!1;if(!(Xt&&!Ee[Q]&&Bt(se,Q))){if(!(Ie&&Bt(L,Q))){if(!(Pe.attributeCheck instanceof Function&&Pe.attributeCheck(Q,C))){if(!X[Q]||Ee[Q]){if(!(Jl(C)&&(ee.tagNameCheck instanceof RegExp&&Bt(ee.tagNameCheck,C)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(C))&&(ee.attributeNameCheck instanceof RegExp&&Bt(ee.attributeNameCheck,Q)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(Q,C))||Q==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&Bt(ee.tagNameCheck,te)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(te))))return!1}else if(!xi[Q]){if(!Bt(de,wl(te,oe,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&C!=="script"&&$R(te,"data:")===0&&Pl[C])){if(!(Oa&&!Bt(J,wl(te,oe,"")))){if(te)return!1}}}}}}}return!0},Jl=function(C){return C!=="annotation-xml"&&ih(C,ve)},Wl=function(C){Ke(pe.beforeSanitizeAttributes,C,null);const{attributes:Q}=C;if(!Q||ln(C))return;const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let Ue=Q.length;for(;Ue--;){const We=Q[Ue],{name:_e,namespaceURI:At,value:sn}=We,kt=st(_e),Dn=sn;let gt=_e==="value"?Dn:JR(Dn);if(te.attrName=kt,te.attrValue=gt,te.keepAttr=!0,te.forceKeepAttr=void 0,Ke(pe.uponSanitizeAttribute,C,te),gt=te.attrValue,Ql&&(kt==="id"||kt==="name")&&(Tn(_e,C),gt=ou+gt),rn&&Bt(/((--!?|])>)|<\/(style|title|textarea)/i,gt)){Tn(_e,C);continue}if(kt==="attributename"&&ih(gt,"href")){Tn(_e,C);continue}if(te.forceKeepAttr)continue;if(!te.keepAttr){Tn(_e,C);continue}if(!pt&&Bt(/\/>/i,gt)){Tn(_e,C);continue}Dt&&Oo([be,K,Se],Hi=>{gt=wl(gt,Hi," ")});const Bi=st(C.nodeName);if(!Ur(Bi,kt,gt)){Tn(_e,C);continue}if(k&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!At)switch(M.getAttributeType(Bi,kt)){case"TrustedHTML":{gt=k.createHTML(gt);break}case"TrustedScriptURL":{gt=k.createScriptURL(gt);break}}if(gt!==Dn)try{At?C.setAttributeNS(At,_e,gt):C.setAttribute(_e,gt),ln(C)?It(C):f1(a.removed)}catch{Tn(_e,C)}}Ke(pe.afterSanitizeAttributes,C,null)},es=function re(C){let Q=null;const te=Li(C);for(Ke(pe.beforeSanitizeShadowDOM,C,null);Q=te.nextNode();)Ke(pe.uponSanitizeShadowNode,Q,null),Jn(Q),Wl(Q),Q.content instanceof f&&re(Q.content);Ke(pe.afterSanitizeShadowDOM,C,null)};return a.sanitize=function(re){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,te=null,Ue=null,We=null;if(Oi=!re,Oi&&(re="<!-->"),typeof re!="string"&&!ot(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw Ml("dirty is not a string, aborting")}else throw Ml("toString is not a function");if(!a.isSupported)return re;if(rr||Ni(C),a.removed=[],typeof re=="string"&&(ir=!1),ir){if(re.nodeName){const sn=st(re.nodeName);if(!x[sn]||fe[sn])throw Ml("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof m)Q=Di("<!---->"),te=Q.ownerDocument.importNode(re,!0),te.nodeType===Ll.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?Q=te:Q.appendChild(te);else{if(!Zn&&!Dt&&!En&&re.indexOf("<")===-1)return k&&Ra?k.createHTML(re):re;if(Q=Di(re),!Q)return Zn?null:Ra?w:""}Q&&Ti&&It(Q.firstChild);const _e=Li(ir?re:Q);for(;Ue=_e.nextNode();)Jn(Ue),Wl(Ue),Ue.content instanceof f&&es(Ue.content);if(ir)return re;if(Zn){if(Ca)for(We=ae.call(Q.ownerDocument);Q.firstChild;)We.appendChild(Q.firstChild);else We=Q;return(X.shadowroot||X.shadowrootmode)&&(We=He.call(s,We,!0)),We}let At=En?Q.outerHTML:Q.innerHTML;return En&&x["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Bt(xv,Q.ownerDocument.doctype.name)&&(At="<!DOCTYPE "+Q.ownerDocument.doctype.name+`>
118
+ `+At),Dt&&Oo([be,K,Se],sn=>{At=wl(At,sn," ")}),k&&Ra?k.createHTML(At):At},a.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ni(re),rr=!0},a.clearConfig=function(){$n=null,rr=!1},a.isValidAttribute=function(re,C,Q){$n||Ni({});const te=st(re),Ue=st(C);return Ur(te,Ue,Q)},a.addHook=function(re,C){typeof C=="function"&&Nl(pe[re],C)},a.removeHook=function(re,C){if(C!==void 0){const Q=PR(pe[re],C);return Q===-1?void 0:KR(pe[re],Q,1)[0]}return f1(pe[re])},a.removeHooks=function(re){pe[re]=[]},a.removeAllHooks=function(){pe=y1()},a}var d8=Ov();const m8=({onClose:n})=>{const a=Je();return y.jsxs("div",{className:Et.highlightLoadingInfo,onClick:n,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:a("source-infos.highlight-loading.title")}),y.jsx("p",{children:a("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"})})]})]})},p8=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),g8=({className:n,children:a,...i})=>y.jsx("a",{className:$(ql.button,ql.buttonDefault,n),type:"button",role:"button",...i,children:a}),y8=n=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,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"})}),b8=({type:n,...a})=>{switch(n){case"WEBSITE":return y.jsx(gv,{...a});case"PDF":return y.jsx(pv,{...a});case"DOCX":return y.jsx(dv,{...a});case"TEXT":return y.jsx(y8,{...a});default:return y.jsx(mv,{...a})}},v8=({url:n,knowledgeBaseType:a})=>{const i=Je();return y.jsx(g8,{className:Et.openSourceButton,href:n,target:"_blank",children:y.jsxs("div",{className:Et.sourceButtonLabel,children:[y.jsx("div",{className:Et.sourceHeaderIcon,children:y.jsx(b8,{type:a})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},_8=({sourceInfos:{content:n,url:a,knowledgeBaseType:i,highlighted:s}})=>{const[u,f]=U.useState(!s);U.useEffect(()=>{s&&f(!1)},[s]);const h=d8.sanitize(n,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:$(Et.sourceContent,bv.markdown),children:[y.jsx(_a,{options:{overrides:{a:p8}},children:h}),u&&y.jsx(m8,{onClose:()=>f(!1)})]}),y.jsx(v8,{url:a,knowledgeBaseType:i})]})},S8=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,E8=()=>{const n=Je();return y.jsxs("div",{className:Et.loadingError,children:[y.jsx("h1",{children:n("source-infos.error.title")}),y.jsx("img",{src:S8,title:n("source-infos.error.title")}),y.jsx("p",{children:n("source-infos.error.info")})]})},T8=()=>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"})})}),A8=n=>{const[a,i]=U.useState(!0);return U.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),a};function x8({sourceInfos:n,onClose:a,threshold:i=100}){const s=U.useRef(null),[u,f]=U.useState(0),[h,m]=U.useState(!1),g=U.useRef(null),p=U.useRef(null),v=U.useCallback(_=>{g.current=_,m(!0)},[]),S=U.useCallback(_=>{if(g.current!==null&&h){const O=_-g.current;O>0&&f(O)}},[h]),A=U.useCallback(()=>{m(!1),u>i&&a(),f(0),g.current=null},[u,i,a]),M=U.useCallback(_=>{const O=w=>v(w.touches[0].clientY),E=w=>S(w.touches[0].clientY),D=()=>A(),I=w=>{w.preventDefault(),v(w.clientY),window.addEventListener("mousemove",H),window.addEventListener("mouseup",k)},H=w=>S(w.clientY),k=()=>{A(),window.removeEventListener("mousemove",H),window.removeEventListener("mouseup",k)};_.addEventListener("touchstart",O),_.addEventListener("touchmove",E),_.addEventListener("touchend",D),_.addEventListener("mousedown",I),p.current=()=>{_.removeEventListener("touchstart",O),_.removeEventListener("touchmove",E),_.removeEventListener("touchend",D),_.removeEventListener("mousedown",I),window.removeEventListener("mousemove",H),window.removeEventListener("mouseup",k)}},[v,S,A]);return U.useEffect(()=>{let _;return(()=>{s.current?(p.current?.(),M(s.current)):(_=new MutationObserver(()=>{s.current&&(p.current?.(),M(s.current),_?.disconnect())}),_.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{_?.disconnect(),p.current?.()}},[M,n]),{ref:s,dragOffsetY:u,isDragging:h}}const O8=()=>{const n=xa(),a=at(g=>g.chat.sourceInfos),i=Ev(),s=U.useRef(null),u=A8(a);U.useEffect(()=>{s.current&&a?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[a,i]);const f=U.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(Ox()))},[n,i]),{ref:h,dragOffsetY:m}=x8({onClose:f,sourceInfos:a});return a?y.jsx("dialog",{ref:s,className:$(Et.sourceInfos,u?Et.waitForLoading:a.type==="loading"?Et.loadingContent:""),style:i&&m?{transform:`translateY(${m}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(VR,{ref:h,tabIndex:-1,sourceInfos:a.type==="loaded"?a:void 0,onClose:f}),a.type==="loading"?y.jsx(T8,{}):a.type==="loading-error"?y.jsx(E8,{}):y.jsxs(y.Fragment,{children:[y.jsx(YR,{loading:!a.highlighted}),y.jsx(_8,{sourceInfos:a})]})]})}):null},C8="_container_1aof3_1",R8="_body_1aof3_7",N8="_intro_1aof3_14",w8="_footer_1aof3_39",M8="_footnote_1aof3_43",D8="_containerWithFootnote_1aof3_58",L8="_startChatButton_1aof3_73",B8="_spinner_1aof3_88",H8="_formFields_1aof3_92",j8="_formField_1aof3_92",U8="_radio_1aof3_104",z8="_checkbox_1aof3_111",I8="_input_1aof3_119",k8="_inputLabel_1aof3_153",G8="_selectWrapper_1aof3_157",q8="_select_1aof3_157",F8="_selectLabel_1aof3_203",St={container:C8,body:R8,intro:N8,footer:w8,footnote:M8,containerWithFootnote:D8,startChatButton:L8,spinner:B8,formFields:H8,formField:j8,radio:U8,checkbox:z8,input:I8,inputLabel:k8,selectWrapper:G8,select:q8,selectLabel:F8},V8=({name:n,label:a,defaultValue:i,required:s,onChange:u})=>{const f=h=>{u(h.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:$(St.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[y.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:f}),y.jsx("div",{children:a})]})},Y8=({type:n,name:a,label:i,defaultValue:s,placeholder:u,required:f,multiple:h,min:m,max:g,pattern:p,onChange:v})=>{const S=A=>{v(A.target.value)};return y.jsxs("label",{className:$(St.input,"chat__startScreen__input"),htmlFor:a,children:[y.jsx("div",{className:$(St.inputLabel),children:i}),y.jsx("input",{type:n,id:a,name:a,defaultValue:s,placeholder:u,required:f,multiple:h,min:m,max:g,pattern:p,onChange:S})]})},Z8=({name:n,value:a,label:i,defaultChecked:s,required:u,onChange:f})=>{const h=`${n}-${a}`,m=g=>{f(g.target.value)};return y.jsxs("label",{className:$(St.radio,"chat__startScreen__radio"),htmlFor:h,children:[y.jsx("input",{id:h,type:"radio",name:n,value:a,defaultChecked:s,required:u,onChange:m}),y.jsx("span",{className:$(St.label),children:i})]})},X8=({name:n,label:a,defaultValue:i,required:s,multiple:u,options:f,onChange:h})=>{const m=g=>{h(g.target.value)};return y.jsxs("label",{className:$(St.select,"chat__startScreen__select"),htmlFor:n,children:[y.jsx("div",{className:$(St.selectLabel),children:a}),y.jsx("div",{className:$(St.selectWrapper),children:y.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:m,children:Object.entries(f||{}).map(([g,p])=>y.jsx("option",{value:g,selected:p===i,children:p}))})})]})},Q8="start-screen.intro",P8="start-screen.start-chat",K8="start-screen.waiting-for-login",$8="start-screen.footnote",Cn="start-screen.form",b1=`${Cn}.fields`,J8=()=>{const n=Je(),a=xa(),i=wd(),s=at(_=>_.startScreen.loginRequestToken),u=at(_=>_.settings.requiresUserAuthentication);U.useEffect(()=>{let _;if(s){const D=window.screenX+(window.outerWidth-600)/2,I=window.screenY+(window.outerHeight-700)/2,H=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${D},top=${I},resizable=yes,scrollbars=yes`);_=setInterval(()=>{H?.closed&&(a(Ex()),clearInterval(_))},500)}return()=>{_&&clearInterval(_)}},[i,s,a]);const[f,h]=U.useState({}),m=()=>{const _=Object.entries(f).reduce((O,[E,D])=>({...O,[E]:D.value}),{});a(u?Sx({loginRequestToken:Io(),formValues:_}):bx({formValues:_}))},g=n(Q8),p=n(s?K8:P8),v=n($8),S=U.useMemo(()=>n(b1)?.split(";").map(_=>_.trim())??[],[n(b1)]);U.useEffect(()=>{S.length&&Object.keys(f).length===0&&h(S.reduce((_,O)=>({..._,[O]:W8(O,n)}),{}))},[n,S,f]);const A=_=>{_.preventDefault(),m()},M=_=>O=>{h(E=>({...E,[_]:{...E[_],value:O}}))};return y.jsxs("form",{onSubmit:A,className:$(St.container,v&&St.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:$(St.body,"chat__startScreen__body"),children:[g&&y.jsx("div",{className:$(St.intro,"chat__startScreen__intro"),children:y.jsx(_a,{options:{overrides:{a:v1}},children:g})}),y.jsx("div",{className:$(St.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:_,name:O,label:E,placeholder:D,defaultValue:I,options:H,required:k,multiple:w,min:Z,max:P,pattern:ae})=>y.jsx("div",{className:$(St.formField,"chat__startScreen__field"),children:(()=>{switch(_){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:E}),Object.entries(H||{}).map(([De,He])=>y.jsx(Z8,{name:O,value:De,label:He,defaultChecked:De===I,required:k,onChange:M(O)},De))]});case"checkbox":return y.jsx(V8,{name:O,label:E,defaultValue:I,required:k,onChange:M(O)});case"select":return y.jsx(X8,{name:O,label:E,defaultValue:I,required:k,multiple:w,options:H,onChange:M(O)});default:return y.jsx(Y8,{type:_,name:O,label:E,placeholder:D,defaultValue:I,required:k,multiple:w,min:Z,max:P,pattern:ae,onChange:M(O)})}})()},O))})]}),y.jsxs("div",{className:$(St.footer,"chat__startScreen__footer"),children:[y.jsxs(Xo,{type:"submit",className:St.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:St.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})]}),v&&y.jsx("div",{className:St.footnote,children:y.jsx(_a,{options:{overrides:{a:v1}},children:v})})]})]})},v1=({title:n,href:a,children:i})=>y.jsx("a",{href:a,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),W8=(n,a)=>{const i=a(`${Cn}.${n}.type`)||"text",s=a(`${Cn}.${n}.required`)==="true",u=a(`${Cn}.${n}.multiple`)==="true",f=a(`${Cn}.${n}.placeholder`),h=a(`${Cn}.${n}.label`)||"",m=a(`${Cn}.${n}.defaultValue`),g=a(`${Cn}.${n}.min`),p=a(`${Cn}.${n}.max`),v=a(`${Cn}.${n}.pattern`),S=tN(a(`${Cn}.${n}.options`));return{name:n,label:h,placeholder:f,value:eN(i,m,S)||"",defaultValue:m,options:S,type:i,required:s,multiple:u,min:g,max:p,pattern:v}},eN=(n,a,i)=>a||n==="select"&&Object.keys(i)[0]||"",tN=(n="")=>n.split(";").map(a=>a.trim()).reduce((a,i)=>{const[s,u]=i.split(":").map(f=>f.trim());return{...a,[s]:u}},{}),nN=()=>{const n=Jo();U.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},bi={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"},aN=({clientName:n})=>{nN();const a=xa(),i=at(v=>v.intl.messages),s=Je(),u=at(v=>v.settings.enableStartScreen),f=at(v=>v.startScreen.startScreenStatus),h=at(v=>v.connection.queryString),m=U.useMemo(()=>new URLSearchParams(h||"?").get("cssClassName"),[h]);U.useEffect(()=>{const v=td.parse(h||""),S=A=>{switch(A.data.type){case bi.TRIGGER_ACTION:a(A.data.action);break;case bi.TRIGGER_STORY:a(Db(A.data.story));break;case bi.ON_CHAT_WINDOW_OPEN:a({type:"webclient.chatwindow.opened"});break;case bi.ON_CHAT_WINDOW_CLOSE:a({type:"webclient.chatwindow.closed"});break;case bi.CHAT_MESSAGE_FROM_GUEST:a(Cb(A.data.text));break;case bi.RESTART_CHAT:a(Xl());break}};return a(Rx(n,v)),window.addEventListener("message",A=>S(A),!1),()=>window.removeEventListener("message",S)},[n,h,a]),U.useEffect(()=>{const v=s("page.title");v&&document&&(document.title=v)},[i,s]);const g=u===void 0,p=u===!1||f==="HIDDEN";return y.jsx("div",{className:$(u1.chatwindow,p&&u1.chatwindowWithAside,"chat__chatwindow",m),children:g?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(o1,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(oR,{clientName:n})}),y.jsx("aside",{children:y.jsx(O8,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(o1,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(J8,{})})]})})},rN=()=>{const n=wd(),a=Ev(),i=at(u=>u.intl.locale),s=at(u=>u.intl.messages);return y.jsx(XT,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:$([PT.app,a?"chat__small":"chat__large"]),children:y.jsx(aN,{clientName:n})})})};var ch,_1;function iN(){if(_1)return ch;_1=1;var n=fv(),a=Rd(),i="Expected a function";function s(u,f,h){var m=!0,g=!0;if(typeof u!="function")throw new TypeError(i);return a(h)&&(m="leading"in h?!!h.leading:m,g="trailing"in h?!!h.trailing:g),n(u,f,{leading:m,maxWait:f,trailing:g})}return ch=s,ch}var lN=iN();const sN=Po(lN);function oN(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function uN(n){return n}function cN(n,a){a=a||{};const i=a.delimiter||".",s=a.maxDepth,u=a.transformKey||uN,f={};function h(m,g,p){p=p||1,Object.keys(m).forEach(function(v){const S=m[v],A=a.safe&&Array.isArray(S),M=Object.prototype.toString.call(S),_=oN(S),O=M==="[object Object]"||M==="[object Array]",E=g?g+i+u(v):u(v);if(!A&&!_&&O&&Object.keys(S).length&&(!a.maxDepth||p<s))return h(S,E,p+1);f[E]=S})}return h(n),f}const Cv={"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:
119
+
120
+ - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
121
+ - 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"},fN={"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:
122
+
123
+ - The chat history is stored in the EU area and can only be viewed by authorized personnel.
124
+ - 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"},hN={"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:
125
+
126
+ - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
127
+ - 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"},dN={"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:
128
+
129
+ - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
130
+ - 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"},mN=["de","en","fr","it"],Rv={locale:"de",messages:Cv},pN=(n,a)=>{if(mN.includes(n)){const i=gN(n),s=cN(a);return{...i,...s}}return a},gN=n=>{switch(n.toString()){case"en":return fN;case"fr":return hN;case"it":return dN;default:return Cv}},yN=(n=bN,a)=>{switch(a.type){case vd:return Object.assign({},n,{connectionState:wr.CONNECTING});case _d:return Object.assign({},n,{connectionState:wr.CONNECTED});case Sd:return Object.assign({},n,{connectionState:wr.DISCONNECTED});case Ed:return Object.assign({},n,{connectionState:wr.RECONNECTED});case Td:return Object.assign({},n,{sessionId:a.sessionId});case au:return Object.assign({},n,{sessionId:a.payload.sessionId,userId:a.payload.userId});case ru:return Object.assign({},n,{sessionId:void 0});default:return n}},bN={connectionState:wr.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},vN=(n=E1,a)=>{switch(a.type){case Qb:return E1;case au:return Cr({type:"webclient.chat.started"}),n;case ru:return Cr({type:"webclient.chat.ended"}),n;case vb:return Object.assign({},n,{isBotTyping:!0});case _b:return Object.assign({},n,{isBotTyping:!1});case nd:case Sb:return S1(n,a.message);case Eb:{Cr(a);const i=Object.assign({},a.message,{_id:a.meta.actionId}),s=n.messages.filter(u=>u._id===a.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case ld:{const i=a.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case id:return Cr(a.message),n;case Tb:return Cr(a.event),n;case uA:return Object.assign({},n,{drawerContentUrl:a.payload.parameters.contentUrl});case cA:return Object.assign({},n,{drawerContentUrl:void 0});case fA:return Object.assign({},n,{locale:a.payload.locale});case Nb:return Cr(a),n;case wb:return Cr(a),{...n,conversationRating:{...n.conversationRating,opener:void 0}};case od:{const i=new Wo(a.transcription,new rd),s=Object.assign({},i,{_id:Io()});return S1(n,s)}case Ab:{const i=n.messages.map(s=>s._id===a.payload.actionId?Object.assign({},s,a.payload.reaction?{reaction:{type:a.payload.reaction,category:a.payload.category,comment:a.payload.comment}}:{reaction:void 0}):s);return Object.assign({},n,{messages:i})}case ud:{const i={enabled:!0,rating:a.payload.rating};return Object.assign({},n,{conversationRating:i})}case ad:{const i={...n.conversationRating,rating:a.payload};return Object.assign({},n,{conversationRating:i})}case Kb:{const i={...n.conversationRating,opener:a.payload.opener,...a.payload.defaultRating?{rating:{value:a.payload.defaultRating,feedback:n.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},n,{conversationRating:i})}case $b:{const i={...n.conversationRating,opener:void 0};return Object.assign({},n,{conversationRating:i})}case fd:return{...n,sourceInfos:{type:"loading",chunkId:a.payload.chunkId}};case cd:{const{highlighted:i}=a.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case Rb:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:f,content:h,highlighted:m,url:g}=a.payload,p=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return p&&p!==s?n:i==="loading"||i==="loaded"&&m?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:f,content:h,highlighted:m,url:g}}:n}case hd:return{...n,sourceInfos:void 0};case Pb:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay,conversationRating:{...n.conversationRating,opener:void 0}};default:return n}},S1=(n,a)=>{const i=n.messages[n.messages.length-1],s=i?.text===a.text;return i&&i.sender.type===a.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([a]),quickReplies:[]})},Cr=n=>{_N()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},_N=()=>typeof window<"u"&&window.self!==window.top,E1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},Nv=yd({name:"intl",initialState:Rv,reducers:{updateIntl:(n,a)=>{n.locale=a.payload.language,n.messages=a.payload.messages}}}),{updateIntl:SN}=Nv.actions,EN=Nv.reducer,TN={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},wv=yd({name:"settings",initialState:TN,reducers:{setSettings(n,a){n.version&&n.version!==a.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(n.version=a.payload.version,n.requiresUserAuthentication=a.payload.requiresUserAuthentication,n.enableStartScreen=a.payload.enableStartScreen,n.enableStandaloneView=a.payload.enableStandaloneView,n.enableTranscriptExportEmail=a.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=a.payload.enableTranscriptExportPdf,n.enableGeneralConditions=a.payload.enableGeneralConditions,n.enableSpeechSupport=a.payload.enableSpeechSupport,n.commands=a.payload.commands,n.menuItems=a.payload.menuItems||[])}}}),{setSettings:AN}=wv.actions,xN=wv.reducer,ON=jb({settings:xN,chat:vN,startScreen:Tx,connection:yN,intl:EN}),CN="bubble-chat",Mv="state-last-saved-at",Dv="state",RN=n=>{try{if(!MN())return;const a=T1(n,Mv);if(wN(a))return;{const i=T1(n,Dv);if(i===null)return;const s=JSON.parse(i),u=s.connection?.queryString;if(u!==void 0&&u!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return s}}catch(a){console.error(a);return}},NN=(n,a)=>{try{const i=JSON.stringify(a);A1(n,Dv,i);const s=new Date().toISOString();A1(n,Mv,s)}catch(i){console.error(i)}},wN=n=>{if(n===null)return!1;const a=new Date(n);return a.setHours(a.getHours()+12),new Date>a},MN=()=>typeof localStorage<"u",T1=(n,a)=>{const i=Lv(n,a);return localStorage.getItem(i)},A1=(n,a,i)=>{const s=Lv(n,a);return localStorage.setItem(s,i)},Lv=(n,a)=>`${CN}-${n}-${a}`,Yn=Object.create(null);Yn.open="0";Yn.close="1";Yn.ping="2";Yn.pong="3";Yn.message="4";Yn.upgrade="5";Yn.noop="6";const Lo=Object.create(null);Object.keys(Yn).forEach(n=>{Lo[Yn[n]]=n});const Gh={type:"error",data:"parser error"},Bv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Hv=typeof ArrayBuffer=="function",jv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Md=({type:n,data:a},i,s)=>Bv&&a instanceof Blob?i?s(a):x1(a,s):Hv&&(a instanceof ArrayBuffer||jv(a))?i?s(a):x1(new Blob([a]),s):s(Yn[n]+(a||"")),x1=(n,a)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];a("b"+(s||""))},i.readAsDataURL(n)};function O1(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let fh;function DN(n,a){if(Bv&&n.data instanceof Blob)return n.data.arrayBuffer().then(O1).then(a);if(Hv&&(n.data instanceof ArrayBuffer||jv(n.data)))return a(O1(n.data));Md(n,!1,i=>{fh||(fh=new TextEncoder),a(fh.encode(i))})}const C1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<C1.length;n++)Ul[C1.charCodeAt(n)]=n;const LN=n=>{let a=n.length*.75,i=n.length,s,u=0,f,h,m,g;n[n.length-1]==="="&&(a--,n[n.length-2]==="="&&a--);const p=new ArrayBuffer(a),v=new Uint8Array(p);for(s=0;s<i;s+=4)f=Ul[n.charCodeAt(s)],h=Ul[n.charCodeAt(s+1)],m=Ul[n.charCodeAt(s+2)],g=Ul[n.charCodeAt(s+3)],v[u++]=f<<2|h>>4,v[u++]=(h&15)<<4|m>>2,v[u++]=(m&3)<<6|g&63;return p},BN=typeof ArrayBuffer=="function",Dd=(n,a)=>{if(typeof n!="string")return{type:"message",data:Uv(n,a)};const i=n.charAt(0);return i==="b"?{type:"message",data:HN(n.substring(1),a)}:Lo[i]?n.length>1?{type:Lo[i],data:n.substring(1)}:{type:Lo[i]}:Gh},HN=(n,a)=>{if(BN){const i=LN(n);return Uv(i,a)}else return{base64:!0,data:n}},Uv=(n,a)=>{switch(a){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},zv="",jN=(n,a)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((f,h)=>{Md(f,!1,m=>{s[h]=m,++u===i&&a(s.join(zv))})})},UN=(n,a)=>{const i=n.split(zv),s=[];for(let u=0;u<i.length;u++){const f=Dd(i[u],a);if(s.push(f),f.type==="error")break}return s};function zN(){return new TransformStream({transform(n,a){DN(n,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 f=new DataView(u.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{u=new Uint8Array(9);const f=new DataView(u.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),a.enqueue(u),a.enqueue(i)})}})}let hh;function Ro(n){return n.reduce((a,i)=>a+i.length,0)}function No(n,a){if(n[0].length===a)return n.shift();const i=new Uint8Array(a);let s=0;for(let u=0;u<a;u++)i[u]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),i}function IN(n,a){hh||(hh=new TextDecoder);const i=[];let s=0,u=-1,f=!1;return new TransformStream({transform(h,m){for(i.push(h);;){if(s===0){if(Ro(i)<1)break;const g=No(i,1);f=(g[0]&128)===128,u=g[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(Ro(i)<2)break;const g=No(i,2);u=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),s=3}else if(s===2){if(Ro(i)<8)break;const g=No(i,8),p=new DataView(g.buffer,g.byteOffset,g.length),v=p.getUint32(0);if(v>Math.pow(2,21)-1){m.enqueue(Gh);break}u=v*Math.pow(2,32)+p.getUint32(4),s=3}else{if(Ro(i)<u)break;const g=No(i,u);m.enqueue(Dd(f?g:hh.decode(g),a)),s=0}if(u===0||u>n){m.enqueue(Gh);break}}}})}const Iv=4;function mt(n){if(n)return kN(n)}function kN(n){for(var a in mt.prototype)n[a]=mt.prototype[a];return n}mt.prototype.on=mt.prototype.addEventListener=function(n,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(a),this};mt.prototype.once=function(n,a){function i(){this.off(n,i),a.apply(this,arguments)}return i.fn=a,this.on(n,i),this};mt.prototype.off=mt.prototype.removeListener=mt.prototype.removeAllListeners=mt.prototype.removeEventListener=function(n,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===a||s.fn===a){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};mt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)a[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,a)}return this};mt.prototype.emitReserved=mt.prototype.emit;mt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};mt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const lu=typeof Promise=="function"&&typeof Promise.resolve=="function"?a=>Promise.resolve().then(a):(a,i)=>i(a,0),bn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),GN="arraybuffer";function kv(n,...a){return a.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const qN=bn.setTimeout,FN=bn.clearTimeout;function su(n,a){a.useNativeTimers?(n.setTimeoutFn=qN.bind(bn),n.clearTimeoutFn=FN.bind(bn)):(n.setTimeoutFn=bn.setTimeout.bind(bn),n.clearTimeoutFn=bn.clearTimeout.bind(bn))}const VN=1.33;function YN(n){return typeof n=="string"?ZN(n):Math.ceil((n.byteLength||n.size)*VN)}function ZN(n){let a=0,i=0;for(let s=0,u=n.length;s<u;s++)a=n.charCodeAt(s),a<128?i+=1:a<2048?i+=2:a<55296||a>=57344?i+=3:(s++,i+=4);return i}function Gv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function XN(n){let a="";for(let i in n)n.hasOwnProperty(i)&&(a.length&&(a+="&"),a+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return a}function QN(n){let a={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let f=i[s].split("=");a[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return a}class PN extends Error{constructor(a,i,s){super(a),this.description=i,this.context=s,this.type="TransportError"}}class Ld extends mt{constructor(a){super(),this.writable=!1,su(this,a),this.opts=a,this.query=a.query,this.socket=a.socket,this.supportsBinary=!a.forceBase64}onError(a,i,s){return super.emitReserved("error",new PN(a,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(a){this.readyState==="open"&&this.write(a)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(a){const i=Dd(a,this.socket.binaryType);this.onPacket(i)}onPacket(a){super.emitReserved("packet",a)}onClose(a){this.readyState="closed",super.emitReserved("close",a)}pause(a){}createUri(a,i={}){return a+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const a=this.opts.hostname;return a.indexOf(":")===-1?a:"["+a+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(a){const i=XN(a);return i.length?"?"+i:""}}class KN extends Ld{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(a){this.readyState="pausing";const i=()=>{this.readyState="paused",a()};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(a){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)};UN(a,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const a=()=>{this.write([{type:"close"}])};this.readyState==="open"?a():this.once("open",a)}write(a){this.writable=!1,jN(a,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const a=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Gv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(a,i)}}let qv=!1;try{qv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $N=qv;function JN(){}class WN extends KN{constructor(a){if(super(a),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&a.hostname!==location.hostname||s!==a.port}}doWrite(a,i){const s=this.request({method:"POST",data:a});s.on("success",i),s.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const a=this.request();a.on("data",this.onData.bind(this)),a.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=a}}class Fn extends mt{constructor(a,i,s){super(),this.createRequest=a,su(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 a;const i=kv(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{}(a=this._opts.cookieJar)===null||a===void 0||a.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=Fn.requestsCount++,Fn.requests[this._index]=this)}_onError(a){this.emitReserved("error",a,this._xhr),this._cleanup(!0)}_cleanup(a){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=JN,a)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Fn.requests[this._index],this._xhr=null}}_onLoad(){const a=this._xhr.responseText;a!==null&&(this.emitReserved("data",a),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Fn.requestsCount=0;Fn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",R1);else if(typeof addEventListener=="function"){const n="onpagehide"in bn?"pagehide":"unload";addEventListener(n,R1,!1)}}function R1(){for(let n in Fn.requests)Fn.requests.hasOwnProperty(n)&&Fn.requests[n].abort()}const ew=(function(){const n=Fv({xdomain:!1});return n&&n.responseType!==null})();class tw extends WN{constructor(a){super(a);const i=a&&a.forceBase64;this.supportsBinary=ew&&!i}request(a={}){return Object.assign(a,{xd:this.xd},this.opts),new Fn(Fv,this.uri(),a)}}function Fv(n){const a=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!a||$N))return new XMLHttpRequest}catch{}if(!a)try{return new bn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Vv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class nw extends Ld{get name(){return"websocket"}doOpen(){const a=this.uri(),i=this.opts.protocols,s=Vv?{}:kv(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(a,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=a=>this.onClose({description:"websocket connection closed",context:a}),this.ws.onmessage=a=>this.onData(a.data),this.ws.onerror=a=>this.onError("websocket error",a)}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;Md(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}u&&lu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const a=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Gv()),this.supportsBinary||(i.b64=1),this.createUri(a,i)}}const dh=bn.WebSocket||bn.MozWebSocket;class aw extends nw{createSocket(a,i,s){return Vv?new dh(a,i,s):i?new dh(a,i):new dh(a)}doWrite(a,i){this.ws.send(i)}}class rw extends Ld{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(a){return this.emitReserved("error",a)}this._transport.closed.then(()=>{this.onClose()}).catch(a=>{this.onError("webtransport error",a)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(a=>{const i=IN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=a.readable.pipeThrough(i).getReader(),u=zN();u.readable.pipeTo(a.writable),this._writer=u.writable.getWriter();const f=()=>{s.read().then(({done:m,value:g})=>{m||(this.onPacket(g),f())}).catch(m=>{})};f();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(a){this.writable=!1;for(let i=0;i<a.length;i++){const s=a[i],u=i===a.length-1;this._writer.write(s).then(()=>{u&&lu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var a;(a=this._transport)===null||a===void 0||a.close()}}const iw={websocket:aw,webtransport:rw,polling:tw},lw=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,sw=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function qh(n){if(n.length>8e3)throw"URI too long";const a=n,i=n.indexOf("["),s=n.indexOf("]");i!=-1&&s!=-1&&(n=n.substring(0,i)+n.substring(i,s).replace(/:/g,";")+n.substring(s,n.length));let u=lw.exec(n||""),f={},h=14;for(;h--;)f[sw[h]]=u[h]||"";return i!=-1&&s!=-1&&(f.source=a,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=ow(f,f.path),f.queryKey=uw(f,f.query),f}function ow(n,a){const i=/\/{2,9}/g,s=a.replace(i,"/").split("/");return(a.slice(0,1)=="/"||a.length===0)&&s.splice(0,1),a.slice(-1)=="/"&&s.splice(s.length-1,1),s}function uw(n,a){const i={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,f){u&&(i[u]=f)}),i}const Fh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Bo=[];Fh&&addEventListener("offline",()=>{Bo.forEach(n=>n())},!1);class nr extends mt{constructor(a,i){if(super(),this.binaryType=GN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,a&&typeof a=="object"&&(i=a,a=null),a){const s=qh(a);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=qh(i.host).host);su(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=QN(this.opts.query)),Fh&&(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"})},Bo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(a){const i=Object.assign({},this.opts.query);i.EIO=Iv,i.transport=a,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[a]);return new this._transportsByName[a](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const a=this.opts.rememberUpgrade&&nr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(a);i.open(),this.setTransport(i)}setTransport(a){this.transport&&this.transport.removeAllListeners(),this.transport=a,a.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",nr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",a),this.emitReserved("heartbeat"),a.type){case"open":this.onHandshake(JSON.parse(a.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=a.data,this._onError(i);break;case"message":this.emitReserved("data",a.data),this.emitReserved("message",a.data);break}}onHandshake(a){this.emitReserved("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this._pingInterval=a.pingInterval,this._pingTimeout=a.pingTimeout,this._maxPayload=a.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const a=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+a,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},a),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 a=this._getWritablePackets();this.transport.send(a),this._prevBufferLen=a.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+=YN(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const a=Date.now()>this._pingTimeoutTime;return a&&(this._pingTimeoutTime=0,lu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),a}write(a,i,s){return this._sendPacket("message",a,i,s),this}send(a,i,s){return this._sendPacket("message",a,i,s),this}_sendPacket(a,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 f={type:a,data:i,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const a=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),a()},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():a()}):this.upgrading?s():a()),this}_onError(a){if(nr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",a),this._onClose("transport error",a)}_onClose(a,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(),Fh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Bo.indexOf(this._offlineEventListener);s!==-1&&Bo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",a,i),this.writeBuffer=[],this._prevBufferLen=0}}}nr.protocol=Iv;class cw extends nr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let a=0;a<this._upgrades.length;a++)this._probe(this._upgrades[a])}_probe(a){let i=this.createTransport(a),s=!1;nr.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!s)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;nr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(v(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function f(){s||(s=!0,v(),i.close(),i=null)}const h=S=>{const A=new Error("probe error: "+S);A.transport=i.name,f(),this.emitReserved("upgradeError",A)};function m(){h("transport closed")}function g(){h("socket closed")}function p(S){i&&S.name!==i.name&&f()}const v=()=>{i.removeListener("open",u),i.removeListener("error",h),i.removeListener("close",m),this.off("close",g),this.off("upgrading",p)};i.once("open",u),i.once("error",h),i.once("close",m),this.once("close",g),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&a!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(a){this._upgrades=this._filterUpgrades(a.upgrades),super.onHandshake(a)}_filterUpgrades(a){const i=[];for(let s=0;s<a.length;s++)~this.transports.indexOf(a[s])&&i.push(a[s]);return i}}let fw=class extends cw{constructor(a,i={}){const s=typeof a=="object"?a:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>iw[u]).filter(u=>!!u)),super(a,s)}};function hw(n,a="",i){let s=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),s=qh(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+a,s.href=s.protocol+"://"+f+(i&&i.port===s.port?"":":"+s.port),s}const dw=typeof ArrayBuffer=="function",mw=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Yv=Object.prototype.toString,pw=typeof Blob=="function"||typeof Blob<"u"&&Yv.call(Blob)==="[object BlobConstructor]",gw=typeof File=="function"||typeof File<"u"&&Yv.call(File)==="[object FileConstructor]";function Bd(n){return dw&&(n instanceof ArrayBuffer||mw(n))||pw&&n instanceof Blob||gw&&n instanceof File}function Ho(n,a){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(Ho(n[i]))return!0;return!1}if(Bd(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Ho(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&Ho(n[i]))return!0;return!1}function yw(n){const a=[],i=n.data,s=n;return s.data=Vh(i,a),s.attachments=a.length,{packet:s,buffers:a}}function Vh(n,a){if(!n)return n;if(Bd(n)){const i={_placeholder:!0,num:a.length};return a.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=Vh(n[s],a);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=Vh(n[s],a));return i}return n}function bw(n,a){return n.data=Yh(n.data,a),delete n.attachments,n}function Yh(n,a){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<a.length)return a[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Yh(n[i],a);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Yh(n[i],a));return n}const vw=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],_w=5;var we;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(we||(we={}));class Sw{constructor(a){this.replacer=a}encode(a){return(a.type===we.EVENT||a.type===we.ACK)&&Ho(a)?this.encodeAsBinary({type:a.type===we.EVENT?we.BINARY_EVENT:we.BINARY_ACK,nsp:a.nsp,data:a.data,id:a.id}):[this.encodeAsString(a)]}encodeAsString(a){let i=""+a.type;return(a.type===we.BINARY_EVENT||a.type===we.BINARY_ACK)&&(i+=a.attachments+"-"),a.nsp&&a.nsp!=="/"&&(i+=a.nsp+","),a.id!=null&&(i+=a.id),a.data!=null&&(i+=JSON.stringify(a.data,this.replacer)),i}encodeAsBinary(a){const i=yw(a),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function N1(n){return Object.prototype.toString.call(n)==="[object Object]"}class Hd extends mt{constructor(a){super(),this.reviver=a}add(a){let i;if(typeof a=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(a);const s=i.type===we.BINARY_EVENT;s||i.type===we.BINARY_ACK?(i.type=s?we.EVENT:we.ACK,this.reconstructor=new Ew(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Bd(a)||a.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(a),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: "+a)}decodeString(a){let i=0;const s={type:Number(a.charAt(0))};if(we[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===we.BINARY_EVENT||s.type===we.BINARY_ACK){const f=i+1;for(;a.charAt(++i)!=="-"&&i!=a.length;);const h=a.substring(f,i);if(h!=Number(h)||a.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(h)}if(a.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(a.charAt(i)===","||i===a.length););s.nsp=a.substring(f,i)}else s.nsp="/";const u=a.charAt(i+1);if(u!==""&&Number(u)==u){const f=i+1;for(;++i;){const h=a.charAt(i);if(h==null||Number(h)!=h){--i;break}if(i===a.length)break}s.id=Number(a.substring(f,i+1))}if(a.charAt(++i)){const f=this.tryParse(a.substr(i));if(Hd.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(a){try{return JSON.parse(a,this.reviver)}catch{return!1}}static isPayloadValid(a,i){switch(a){case we.CONNECT:return N1(i);case we.DISCONNECT:return i===void 0;case we.CONNECT_ERROR:return typeof i=="string"||N1(i);case we.EVENT:case we.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&vw.indexOf(i[0])===-1);case we.ACK:case we.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Ew{constructor(a){this.packet=a,this.buffers=[],this.reconPack=a}takeBinaryData(a){if(this.buffers.push(a),this.buffers.length===this.reconPack.attachments){const i=bw(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Tw=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Hd,Encoder:Sw,get PacketType(){return we},protocol:_w},Symbol.toStringTag,{value:"Module"}));function Nn(n,a,i){return n.on(a,i),function(){n.off(a,i)}}const Aw=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Zv extends mt{constructor(a,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=a,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 a=this.io;this.subs=[Nn(a,"open",this.onopen.bind(this)),Nn(a,"packet",this.onpacket.bind(this)),Nn(a,"error",this.onerror.bind(this)),Nn(a,"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(...a){return a.unshift("message"),this.emit.apply(this,a),this}emit(a,...i){var s,u,f;if(Aw.hasOwnProperty(a))throw new Error('"'+a.toString()+'" is a reserved event name');if(i.unshift(a),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const h={type:we.EVENT,data:i};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const v=this.ids++,S=i.pop();this._registerAckCallback(v,S),h.id=v}const m=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!m||(g?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(a,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[a]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[a];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===a&&this.sendBuffer.splice(m,1);i.call(this,new Error("operation has timed out"))},u),h=(...m)=>{this.io.clearTimeoutFn(f),i.apply(this,m)};h.withError=!0,this.acks[a]=h}emitWithAck(a,...i){return new Promise((s,u)=>{const f=(h,m)=>h?u(h):s(m);f.withError=!0,i.push(f),this.emit(a,...i)})}_addToQueue(a){let i;typeof a[a.length-1]=="function"&&(i=a.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:a,flags:Object.assign({fromQueue:!0},this.flags)};a.push((u,...f)=>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,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(a=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!a||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(a){a.nsp=this.nsp,this.io._packet(a)}onopen(){typeof this.auth=="function"?this.auth(a=>{this._sendConnectPacket(a)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(a){this.packet({type:we.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},a):a})}onerror(a){this.connected||this.emitReserved("connect_error",a)}onclose(a,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",a,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(a=>{if(!this.sendBuffer.some(s=>String(s.id)===a)){const s=this.acks[a];delete this.acks[a],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(a){if(a.nsp===this.nsp)switch(a.type){case we.CONNECT:a.data&&a.data.sid?this.onconnect(a.data.sid,a.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 we.EVENT:case we.BINARY_EVENT:this.onevent(a);break;case we.ACK:case we.BINARY_ACK:this.onack(a);break;case we.DISCONNECT:this.ondisconnect();break;case we.CONNECT_ERROR:this.destroy();const s=new Error(a.data.message);s.data=a.data.data,this.emitReserved("connect_error",s);break}}onevent(a){const i=a.data||[];a.id!=null&&i.push(this.ack(a.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(a){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,a)}super.emit.apply(this,a),this._pid&&a.length&&typeof a[a.length-1]=="string"&&(this._lastOffset=a[a.length-1])}ack(a){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:we.ACK,id:a,data:u}))}}onack(a){const i=this.acks[a.id];typeof i=="function"&&(delete this.acks[a.id],i.withError&&a.data.unshift(null),i.apply(this,a.data))}onconnect(a,i){this.id=a,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(a=>this.emitEvent(a)),this.receiveBuffer=[],this.sendBuffer.forEach(a=>{this.notifyOutgoingListeners(a),this.packet(a)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(a=>a()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:we.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(a){return this.flags.compress=a,this}get volatile(){return this.flags.volatile=!0,this}timeout(a){return this.flags.timeout=a,this}onAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(a),this}prependAny(a){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(a),this}offAny(a){if(!this._anyListeners)return this;if(a){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(a),this}prependAnyOutgoing(a){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(a),this}offAnyOutgoing(a){if(!this._anyOutgoingListeners)return this;if(a){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(a===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(a){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,a.data)}}}function Ei(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Ei.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),i=Math.floor(a*this.jitter*n);n=(Math.floor(a*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Ei.prototype.reset=function(){this.attempts=0};Ei.prototype.setMin=function(n){this.ms=n};Ei.prototype.setMax=function(n){this.max=n};Ei.prototype.setJitter=function(n){this.jitter=n};class Zh extends mt{constructor(a,i){var s;super(),this.nsps={},this.subs=[],a&&typeof a=="object"&&(i=a,a=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,su(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 Ei({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=a;const u=i.parser||Tw;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(a){return arguments.length?(this._reconnection=!!a,a||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(a){return a===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=a,this)}reconnectionDelay(a){var i;return a===void 0?this._reconnectionDelay:(this._reconnectionDelay=a,(i=this.backoff)===null||i===void 0||i.setMin(a),this)}randomizationFactor(a){var i;return a===void 0?this._randomizationFactor:(this._randomizationFactor=a,(i=this.backoff)===null||i===void 0||i.setJitter(a),this)}reconnectionDelayMax(a){var i;return a===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=a,(i=this.backoff)===null||i===void 0||i.setMax(a),this)}timeout(a){return arguments.length?(this._timeout=a,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(a){if(~this._readyState.indexOf("open"))return this;this.engine=new fw(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=Nn(i,"open",function(){s.onopen(),a&&a()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),a?a(m):this.maybeReconnectOnOpen()},h=Nn(i,"error",f);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),i.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(u),this.subs.push(h),this}connect(a){return this.open(a)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const a=this.engine;this.subs.push(Nn(a,"ping",this.onping.bind(this)),Nn(a,"data",this.ondata.bind(this)),Nn(a,"error",this.onerror.bind(this)),Nn(a,"close",this.onclose.bind(this)),Nn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(a){try{this.decoder.add(a)}catch(i){this.onclose("parse error",i)}}ondecoded(a){lu(()=>{this.emitReserved("packet",a)},this.setTimeoutFn)}onerror(a){this.emitReserved("error",a)}socket(a,i){let s=this.nsps[a];return s?this._autoConnect&&!s.active&&s.connect():(s=new Zv(this,a,i),this.nsps[a]=s),s}_destroy(a){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(a){const i=this.encoder.encode(a);for(let s=0;s<i.length;s++)this.engine.write(i[s],a.options)}cleanup(){this.subs.forEach(a=>a()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(a,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",a,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const a=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(()=>{a.skipReconnect||(this.emitReserved("reconnect_attempt",a.backoff.attempts),!a.skipReconnect&&a.open(u=>{u?(a._reconnecting=!1,a.reconnect(),this.emitReserved("reconnect_error",u)):a.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const a=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",a)}}const Bl={};function jo(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};const i=hw(n,a.path||"/socket.io"),s=i.source,u=i.id,f=i.path,h=Bl[u]&&f in Bl[u].nsps,m=a.forceNew||a["force new connection"]||a.multiplex===!1||h;let g;return m?g=new Zh(s,a):(Bl[u]||(Bl[u]=new Zh(s,a)),g=Bl[u]),i.query&&!a.query&&(a.query=i.queryKey),g.socket(i.path,a)}Object.assign(jo,{Manager:Zh,Socket:Zv,io:jo,connect:jo});const xw=[Eb,Tb,vb,_b,sA,...Cx,...vA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],Ow=({dispatch:n,getState:a})=>i=>{let s=null;return u=>{const f=i(u);if(u.type===bd){s?.disconnect(),n(wx());const h=`/chat?${td.stringify(u.querystrings)}`;s=jo(`/${u.clientName}${h}`),s.on("action",n),s.on("connect",()=>n(Mx())),s.on("disconnect",()=>n(Dx())),s.on("reconnect",()=>n(Lx())),s.on("set-translations",(m,g)=>{n(SN({language:m,messages:pN(m,g)}))}),s.on("set-settings",m=>{n(AN(m))}),s.on("enable-conversation-rating",m=>n(AA(m))),s.on("speech-transcription",m=>n(SA(m))),s.on("restore-client-state",m=>{n(Nx(m.sessionId)),n(OA(m.messages))}),s.on("expand-window",({devices:m,initial:g=!1})=>{n({type:Nb,devices:m,initial:g})}),s.on("restart-chat",()=>{n(Xl())}),s.on("login-success",m=>{n(vx({loginToken:m.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===au)s?.emit("start-chat",u.payload);else if(u.type===ru)s?.emit("terminate-session",u.payload);else if(u.type===bA)s?.emit("get-started",JSON.stringify(u));else if(u.type===sd)s?.emit("audio-message",u.buffer);else if(u.type===ad)s?.emit("conversation-rating",u.payload);else if(u.type===Mb){const{connection:{sessionId:h}}=a();window.location.href=`/transcript-pdf/${h}`}else xw.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return f}},Xv=dd(),Cw={...RN(Xv),intl:Rv},Xh=ix({middleware:n=>n().concat(Ow),reducer:ON,preloadedState:Cw});Xh.subscribe(sN(()=>{const n=Xh.getState();NN(Xv,{connection:n.connection,startScreen:n.startScreen})},1e3));const Rw=document.getElementById("root"),Nw=fS.createRoot(Rw);Nw.render(y.jsx(cE,{store:Xh,children:y.jsx(rN,{})}));
131
+ //# sourceMappingURL=index-CxdFeuyf.js.map