@botfabrik/engine-webclient 4.94.2 → 4.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,124 @@
1
+ (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wf={exports:{}},Ds={};/**
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 Ng;function NS(){if(Ng)return Ds;Ng=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:c}}return Ds.Fragment=r,Ds.jsx=i,Ds.jsxs=i,Ds}var Mg;function MS(){return Mg||(Mg=1,wf.exports=NS()),wf.exports}var v=MS(),Cf={exports:{}},Bs={},Nf={exports:{}},Mf={};/**
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 Dg;function DS(){return Dg||(Dg=1,function(n){function r(z,K){var ee=z.length;z.push(K);e:for(;0<ee;){var Se=ee-1>>>1,O=z[Se];if(0<u(O,K))z[Se]=K,z[ee]=O,ee=Se;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var K=z[0],ee=z.pop();if(ee!==K){z[0]=ee;e:for(var Se=0,O=z.length,k=O>>>1;Se<k;){var W=2*(Se+1)-1,Y=z[W],te=W+1,re=z[te];if(0>u(Y,ee))te<O&&0>u(re,Y)?(z[Se]=re,z[te]=ee,Se=te):(z[Se]=Y,z[W]=ee,Se=W);else if(te<O&&0>u(re,ee))z[Se]=re,z[te]=ee,Se=te;else break e}}return K}function u(z,K){var ee=z.sortIndex-K.sortIndex;return ee!==0?ee:z.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],g=[],y=1,_=null,T=3,L=!1,N=!1,V=!1,G=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function I(z){for(var K=i(g);K!==null;){if(K.callback===null)s(g);else if(K.startTime<=z)s(g),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(g)}}function x(z){if(V=!1,I(z),!N)if(i(m)!==null)N=!0,Z||(Z=!0,me());else{var K=i(g);K!==null&&ve(x,K.startTime-z)}}var Z=!1,$=-1,ie=5,_e=-1;function Re(){return G?!0:!(n.unstable_now()-_e<ie)}function se(){if(G=!1,Z){var z=n.unstable_now();_e=z;var K=!0;try{e:{N=!1,V&&(V=!1,w($),$=-1),L=!0;var ee=T;try{t:{for(I(z),_=i(m);_!==null&&!(_.expirationTime>z&&Re());){var Se=_.callback;if(typeof Se=="function"){_.callback=null,T=_.priorityLevel;var O=Se(_.expirationTime<=z);if(z=n.unstable_now(),typeof O=="function"){_.callback=O,I(z),K=!0;break t}_===i(m)&&s(m),I(z)}else s(m);_=i(m)}if(_!==null)K=!0;else{var k=i(g);k!==null&&ve(x,k.startTime-z),K=!1}}break e}finally{_=null,T=ee,L=!1}K=void 0}}finally{K?me():Z=!1}}}var me;if(typeof S=="function")me=function(){S(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Ve=ce.port2;ce.port1.onmessage=se,me=function(){Ve.postMessage(null)}}else me=function(){E(se,0)};function ve(z,K){$=E(function(){z(n.unstable_now())},K)}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(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(z){switch(T){case 1:case 2:case 3:var K=3;break;default:K=T}var ee=T;T=K;try{return z()}finally{T=ee}},n.unstable_requestPaint=function(){G=!0},n.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=T;T=z;try{return K()}finally{T=ee}},n.unstable_scheduleCallback=function(z,K,ee){var Se=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Se+ee:Se):ee=Se,z){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=ee+O,z={id:y++,callback:K,priorityLevel:z,startTime:ee,expirationTime:O,sortIndex:-1},ee>Se?(z.sortIndex=ee,r(g,z),i(m)===null&&z===i(g)&&(V?(w($),$=-1):V=!0,ve(x,ee-Se))):(z.sortIndex=O,r(m,z),N||L||(N=!0,Z||(Z=!0,me()))),z},n.unstable_shouldYield=Re,n.unstable_wrapCallback=function(z){var K=T;return function(){var ee=T;T=K;try{return z.apply(this,arguments)}finally{T=ee}}}}(Mf)),Mf}var Bg;function BS(){return Bg||(Bg=1,Nf.exports=DS()),Nf.exports}var Df={exports:{}},ye={};/**
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 Lg;function LS(){if(Lg)return ye;Lg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.iterator;function T(O){return O===null||typeof O!="object"?null:(O=_&&O[_]||O["@@iterator"],typeof O=="function"?O:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,V={};function G(O,k,W){this.props=O,this.context=k,this.refs=V,this.updater=W||L}G.prototype.isReactComponent={},G.prototype.setState=function(O,k){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,k,"setState")},G.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function E(){}E.prototype=G.prototype;function w(O,k,W){this.props=O,this.context=k,this.refs=V,this.updater=W||L}var S=w.prototype=new E;S.constructor=w,N(S,G.prototype),S.isPureReactComponent=!0;var I=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function $(O,k,W,Y,te,re){return W=re.ref,{$$typeof:n,type:O,key:k,ref:W!==void 0?W:null,props:re}}function ie(O,k){return $(O.type,k,void 0,void 0,void 0,O.props)}function _e(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function Re(O){var k={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(W){return k[W]})}var se=/\/+/g;function me(O,k){return typeof O=="object"&&O!==null&&O.key!=null?Re(""+O.key):k.toString(36)}function ce(){}function Ve(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(k){O.status==="pending"&&(O.status="fulfilled",O.value=k)},function(k){O.status==="pending"&&(O.status="rejected",O.reason=k)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ve(O,k,W,Y,te){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var ue=!1;if(O===null)ue=!0;else switch(re){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(O.$$typeof){case n:case r:ue=!0;break;case y:return ue=O._init,ve(ue(O._payload),k,W,Y,te)}}if(ue)return te=te(O),ue=Y===""?"."+me(O,0):Y,I(te)?(W="",ue!=null&&(W=ue.replace(se,"$&/")+"/"),ve(te,k,W,"",function(bt){return bt})):te!=null&&(_e(te)&&(te=ie(te,W+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ue)),k.push(te)),1;ue=0;var $e=Y===""?".":Y+":";if(I(O))for(var Ue=0;Ue<O.length;Ue++)Y=O[Ue],re=$e+me(Y,Ue),ue+=ve(Y,k,W,re,te);else if(Ue=T(O),typeof Ue=="function")for(O=Ue.call(O),Ue=0;!(Y=O.next()).done;)Y=Y.value,re=$e+me(Y,Ue++),ue+=ve(Y,k,W,re,te);else if(re==="object"){if(typeof O.then=="function")return ve(Ve(O),k,W,Y,te);throw k=String(O),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ue}function z(O,k,W){if(O==null)return O;var Y=[],te=0;return ve(O,Y,"","",function(re){return k.call(W,re,te++)}),Y}function K(O){if(O._status===-1){var k=O._result;k=k(),k.then(function(W){(O._status===0||O._status===-1)&&(O._status=1,O._result=W)},function(W){(O._status===0||O._status===-1)&&(O._status=2,O._result=W)}),O._status===-1&&(O._status=0,O._result=k)}if(O._status===1)return O._result.default;throw O._result}var ee=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function Se(){}return ye.Children={map:z,forEach:function(O,k,W){z(O,function(){k.apply(this,arguments)},W)},count:function(O){var k=0;return z(O,function(){k++}),k},toArray:function(O){return z(O,function(k){return k})||[]},only:function(O){if(!_e(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},ye.Component=G,ye.Fragment=i,ye.Profiler=u,ye.PureComponent=w,ye.StrictMode=s,ye.Suspense=m,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,ye.__COMPILER_RUNTIME={__proto__:null,c:function(O){return x.H.useMemoCache(O)}},ye.cache=function(O){return function(){return O.apply(null,arguments)}},ye.cloneElement=function(O,k,W){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var Y=N({},O.props),te=O.key,re=void 0;if(k!=null)for(ue in k.ref!==void 0&&(re=void 0),k.key!==void 0&&(te=""+k.key),k)!Z.call(k,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&k.ref===void 0||(Y[ue]=k[ue]);var ue=arguments.length-2;if(ue===1)Y.children=W;else if(1<ue){for(var $e=Array(ue),Ue=0;Ue<ue;Ue++)$e[Ue]=arguments[Ue+2];Y.children=$e}return $(O.type,te,void 0,void 0,re,Y)},ye.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},ye.createElement=function(O,k,W){var Y,te={},re=null;if(k!=null)for(Y in k.key!==void 0&&(re=""+k.key),k)Z.call(k,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=k[Y]);var ue=arguments.length-2;if(ue===1)te.children=W;else if(1<ue){for(var $e=Array(ue),Ue=0;Ue<ue;Ue++)$e[Ue]=arguments[Ue+2];te.children=$e}if(O&&O.defaultProps)for(Y in ue=O.defaultProps,ue)te[Y]===void 0&&(te[Y]=ue[Y]);return $(O,re,void 0,void 0,null,te)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(O){return{$$typeof:h,render:O}},ye.isValidElement=_e,ye.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:K}},ye.memo=function(O,k){return{$$typeof:g,type:O,compare:k===void 0?null:k}},ye.startTransition=function(O){var k=x.T,W={};x.T=W;try{var Y=O(),te=x.S;te!==null&&te(W,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Se,ee)}catch(re){ee(re)}finally{x.T=k}},ye.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},ye.use=function(O){return x.H.use(O)},ye.useActionState=function(O,k,W){return x.H.useActionState(O,k,W)},ye.useCallback=function(O,k){return x.H.useCallback(O,k)},ye.useContext=function(O){return x.H.useContext(O)},ye.useDebugValue=function(){},ye.useDeferredValue=function(O,k){return x.H.useDeferredValue(O,k)},ye.useEffect=function(O,k,W){var Y=x.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(O,k)},ye.useId=function(){return x.H.useId()},ye.useImperativeHandle=function(O,k,W){return x.H.useImperativeHandle(O,k,W)},ye.useInsertionEffect=function(O,k){return x.H.useInsertionEffect(O,k)},ye.useLayoutEffect=function(O,k){return x.H.useLayoutEffect(O,k)},ye.useMemo=function(O,k){return x.H.useMemo(O,k)},ye.useOptimistic=function(O,k){return x.H.useOptimistic(O,k)},ye.useReducer=function(O,k,W){return x.H.useReducer(O,k,W)},ye.useRef=function(O){return x.H.useRef(O)},ye.useState=function(O){return x.H.useState(O)},ye.useSyncExternalStore=function(O,k,W){return x.H.useSyncExternalStore(O,k,W)},ye.useTransition=function(){return x.H.useTransition()},ye.version="19.1.0",ye}var Ug;function au(){return Ug||(Ug=1,Df.exports=LS()),Df.exports}var Bf={exports:{}},Bt={};/**
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 Hg;function US(){if(Hg)return Bt;Hg=1;var n=au();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,g,y){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:_==null?null:""+_,children:m,containerInfo:g,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Bt.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return c(m,g,null,y)},Bt.flushSync=function(m){var g=d.T,y=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=g,s.p=y,s.d.f()}},Bt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Bt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Bt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,_=h(y,g.crossOrigin),T=typeof g.integrity=="string"?g.integrity:void 0,L=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:_,integrity:T,fetchPriority:L}):y==="script"&&s.d.X(m,{crossOrigin:_,integrity:T,fetchPriority:L,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Bt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},Bt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,_=h(y,g.crossOrigin);s.d.L(m,y,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Bt.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},Bt.requestFormReset=function(m){s.d.r(m)},Bt.unstable_batchedUpdates=function(m,g){return m(g)},Bt.useFormState=function(m,g,y){return d.H.useFormState(m,g,y)},Bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Bt.version="19.1.0",Bt}var jg;function HS(){if(jg)return Bf.exports;jg=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(r){console.error(r)}}return n(),Bf.exports=US(),Bf.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 Ig;function jS(){if(Ig)return Bs;Ig=1;var n=BS(),r=au(),i=HS();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return h(o),e;if(f===l)return h(o),t;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var p=!1,b=o.child;b;){if(b===a){p=!0,a=o,l=f;break}if(b===l){p=!0,l=o,a=f;break}b=b.sibling}if(!p){for(b=f.child;b;){if(b===a){p=!0,a=f,l=o;break}if(b===l){p=!0,l=f,a=o;break}b=b.sibling}if(!p)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,_=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),S=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),_e=Symbol.for("react.activity"),Re=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case G:return"Profiler";case V:return"StrictMode";case x:return"Suspense";case Z:return"SuspenseList";case _e:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case S:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:Ve(e.type)||"Memo";case ie:t=e._payload,e=e._init;try{return Ve(e(t))}catch{}}return null}var ve=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],O=-1;function k(e){return{current:e}}function W(e){0>O||(e.current=Se[O],Se[O]=null,O--)}function Y(e,t){O++,Se[O]=e.current,e.current=t}var te=k(null),re=k(null),ue=k(null),$e=k(null);function Ue(e,t){switch(Y(ue,t),Y(re,e),Y(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ag(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ag(t),e=ig(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(te),Y(te,e)}function bt(){W(te),W(re),W(ue)}function zn(e){e.memoizedState!==null&&Y($e,e);var t=te.current,a=ig(t,e.type);t!==a&&(Y(re,e),Y(te,a))}function Cr(e){re.current===e&&(W(te),W(re)),$e.current===e&&(W($e),Rs._currentValue=ee)}var Ze=Object.prototype.hasOwnProperty,Gt=n.unstable_scheduleCallback,xn=n.unstable_cancelCallback,Mi=n.unstable_shouldYield,Di=n.unstable_requestPaint,_t=n.unstable_now,qa=n.unstable_getCurrentPriorityLevel,oa=n.unstable_ImmediatePriority,Bi=n.unstable_UserBlockingPriority,ua=n.unstable_NormalPriority,bu=n.unstable_LowPriority,Fa=n.unstable_IdlePriority,ca=n.log,Nr=n.unstable_setDisableYieldValue,fn=null,wt=null;function On(e){if(typeof ca=="function"&&Nr(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(fn,e)}catch{}}var Ct=Math.clz32?Math.clz32:Pa,Li=Math.log,al=Math.LN2;function Pa(e){return e>>>=0,e===0?32:31-(Li(e)/al|0)|0}var tr=256,kt=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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Mr(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~f,l!==0?o=qt(l):(p&=b,p!==0?o=qt(p):a||(a=b&~e,a!==0&&(o=qt(a))))):(b=l&~f,b!==0?o=qt(b):p!==0?o=qt(p):a||(a=l&~e,a!==0&&(o=qt(a)))),o===0?0:t!==0&&t!==o&&(t&f)===0&&(f=o&-o,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:o}function nr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _u(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 fa(){var e=tr;return tr<<=1,(tr&4194048)===0&&(tr=256),e}function da(){var e=kt;return kt<<=1,(kt&62914560)===0&&(kt=4194304),e}function Ui(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Eu(e,t,a,l,o,f){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(a=p&~a;0<a;){var q=31-Ct(a),P=1<<q;b[q]=0,A[q]=-1;var U=B[q];if(U!==null)for(B[q]=null,q=0;q<U.length;q++){var j=U[q];j!==null&&(j.lane&=-536870913)}a&=~P}l!==0&&il(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function il(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function nt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ct(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function Gn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ji(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Ag(e.type))}function Ii(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var wn=Math.random().toString(36).slice(2),ft="__reactFiber$"+wn,Nt="__reactProps$"+wn,Et="__reactContainer$"+wn,kn="__reactEvents$"+wn,sl="__reactListeners$"+wn,ll="__reactHandles$"+wn,Va="__reactResources$"+wn,Dr="__reactMarker$"+wn;function Qt(e){delete e[ft],delete e[Nt],delete e[kn],delete e[sl],delete e[ll]}function rr(e){var t=e[ft];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Et]||a[ft]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ug(e);e!==null;){if(a=e[ft])return a;e=ug(e)}return t}e=a,a=e.parentNode}return null}function ar(e){if(e=e[ft]||e[Et]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Br(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ir(e){var t=e[Va];return t||(t=e[Va]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[Dr]=!0}var le=new Set,C={};function X(e,t){J(e,t),J(e+"Capture",t)}function J(e,t){for(C[e]=t,e=0;e<t.length;e++)le.add(t[e])}var Fe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dt={},We={};function Mt(e){return Ze.call(We,e)?!0:Ze.call(dt,e)?!1:Fe.test(e)?We[e]=!0:(dt[e]=!0,!1)}function Ft(e,t,a){if(Mt(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){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,""+a)}}function qn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Kt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var st,zi;function sr(e){if(st===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);st=t&&t[1]||"",zi=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+st+e+zi}var Su=!1;function Tu(e,t){if(!e||Su)return"";Su=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(j){var U=j}Reflect.construct(e,[],P)}else{try{P.call()}catch(j){U=j}e.call(P.prototype)}}else{try{throw Error()}catch(j){U=j}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(j){if(j&&U&&typeof j.stack=="string")return[j.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),p=f[0],b=f[1];if(p&&b){var A=p.split(`
44
+ `),B=b.split(`
45
+ `);for(o=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===A.length||o===B.length)for(l=A.length-1,o=B.length-1;1<=l&&0<=o&&A[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(A[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||A[l]!==B[o]){var q=`
46
+ `+A[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{Su=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?sr(a):""}function A_(e){switch(e.tag){case 26:case 27:case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 15:return Tu(e.type,!1);case 11:return Tu(e.type.render,!1);case 1:return Tu(e.type,!0);case 31:return sr("Activity");default:return""}}function Wh(e){try{var t="";do t+=A_(e),e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}function dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x_(e){var t=Jh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){l=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ol(e){e._valueTracker||(e._valueTracker=x_(e))}function em(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Jh(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ul(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 O_=/[\n"\\]/g;function hn(e){return e.replace(O_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Au(e,t,a,l,o,f,p,b){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dn(t)):e.value!==""+dn(t)&&(e.value=""+dn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?xu(e,p,dn(t)):a!=null?xu(e,p,dn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+dn(b):e.removeAttribute("name")}function tm(e,t,a,l,o,f,p,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+dn(a):"",t=t!=null?""+dn(t):a,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,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function xu(e,t,a){t==="number"&&ul(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ya(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+dn(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function nm(e,t,a){if(t!=null&&(t=""+dn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+dn(a):""}function rm(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=dn(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Xa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var R_=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 am(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||R_.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function im(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.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)&&a[o]!==l&&am(e,o,l)}else for(var f in t)t.hasOwnProperty(f)&&am(e,f,t[f])}function Ou(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 w_=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"]]),C_=/^[\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 cl(e){return C_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ru=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Qa=null;function sm(e){var t=ar(e);if(t&&(e=t.stateNode)){var a=e[Nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Au(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+hn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[Nt]||null;if(!o)throw Error(s(90));Au(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&em(l)}break e;case"textarea":nm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ya(e,!!a.multiple,t,!1)}}}var Cu=!1;function lm(e,t,a){if(Cu)return e(t,a);Cu=!0;try{var l=e(t);return l}finally{if(Cu=!1,(Za!==null||Qa!==null)&&(Ql(),Za&&(t=Za,e=Qa,Qa=Za=null,sm(t),e)))for(t=0;t<e.length;t++)sm(e[t])}}function Gi(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Nt]||null;if(l===null)return null;a=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(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nu=!1;if(lr)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){Nu=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{Nu=!1}var Lr=null,Mu=null,fl=null;function om(){if(fl)return fl;var e,t=Mu,a=t.length,l,o="value"in Lr?Lr.value:Lr.textContent,f=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(l=1;l<=p&&t[a-l]===o[f-l];l++);return fl=o.slice(e,1<l?1-l:void 0)}function dl(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 hl(){return!0}function um(){return!1}function Pt(e){function t(a,l,o,f,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(a=e[b],this[b]=a?a(f):f[b]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?hl:um,this.isPropagationStopped=um,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),t}var ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=Pt(ha),qi=y({},ha,{view:0,detail:0}),N_=Pt(qi),Du,Bu,Fi,pl=y({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uu,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!==Fi&&(Fi&&e.type==="mousemove"?(Du=e.screenX-Fi.screenX,Bu=e.screenY-Fi.screenY):Bu=Du=0,Fi=e),Du)},movementY:function(e){return"movementY"in e?e.movementY:Bu}}),cm=Pt(pl),M_=y({},pl,{dataTransfer:0}),D_=Pt(M_),B_=y({},qi,{relatedTarget:0}),Lu=Pt(B_),L_=y({},ha,{animationName:0,elapsedTime:0,pseudoElement:0}),U_=Pt(L_),H_=y({},ha,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j_=Pt(H_),I_=y({},ha,{data:0}),fm=Pt(I_),z_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G_={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"},k_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=k_[e])?!!t[e]:!1}function Uu(){return q_}var F_=y({},qi,{key:function(e){if(e.key){var t=z_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?G_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uu,charCode:function(e){return e.type==="keypress"?dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),P_=Pt(F_),V_=y({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dm=Pt(V_),Y_=y({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uu}),X_=Pt(Y_),Z_=y({},ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q_=Pt(Z_),K_=y({},pl,{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}),$_=Pt(K_),W_=y({},ha,{newState:0,oldState:0}),J_=Pt(W_),eE=[9,13,27,32],Hu=lr&&"CompositionEvent"in window,Pi=null;lr&&"documentMode"in document&&(Pi=document.documentMode);var tE=lr&&"TextEvent"in window&&!Pi,hm=lr&&(!Hu||Pi&&8<Pi&&11>=Pi),mm=" ",pm=!1;function gm(e,t){switch(e){case"keyup":return eE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ym(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function nE(e,t){switch(e){case"compositionend":return ym(t);case"keypress":return t.which!==32?null:(pm=!0,mm);case"textInput":return e=t.data,e===mm&&pm?null:e;default:return null}}function rE(e,t){if(Ka)return e==="compositionend"||!Hu&&gm(e,t)?(e=om(),fl=Mu=Lr=null,Ka=!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 hm&&t.locale!=="ko"?null:t.data;default:return null}}var aE={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 vm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aE[e.type]:t==="textarea"}function bm(e,t,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,t=to(t,"onChange"),0<t.length&&(a=new ml("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Vi=null,Yi=null;function iE(e){J0(e,0)}function gl(e){var t=Br(e);if(em(t))return e}function _m(e,t){if(e==="change")return t}var Em=!1;if(lr){var ju;if(lr){var Iu="oninput"in document;if(!Iu){var Sm=document.createElement("div");Sm.setAttribute("oninput","return;"),Iu=typeof Sm.oninput=="function"}ju=Iu}else ju=!1;Em=ju&&(!document.documentMode||9<document.documentMode)}function Tm(){Vi&&(Vi.detachEvent("onpropertychange",Am),Yi=Vi=null)}function Am(e){if(e.propertyName==="value"&&gl(Yi)){var t=[];bm(t,Yi,e,wu(e)),lm(iE,t)}}function sE(e,t,a){e==="focusin"?(Tm(),Vi=t,Yi=a,Vi.attachEvent("onpropertychange",Am)):e==="focusout"&&Tm()}function lE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(Yi)}function oE(e,t){if(e==="click")return gl(t)}function uE(e,t){if(e==="input"||e==="change")return gl(t)}function cE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:cE;function Xi(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Ze.call(t,o)||!$t(e[o],t[o]))return!1}return!0}function xm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Om(e,t){var a=xm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=xm(a)}}function Rm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ul(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ul(e.document)}return t}function zu(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 fE=lr&&"documentMode"in document&&11>=document.documentMode,$a=null,Gu=null,Zi=null,ku=!1;function Cm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ku||$a==null||$a!==ul(l)||(l=$a,"selectionStart"in l&&zu(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}),Zi&&Xi(Zi,l)||(Zi=l,l=to(Gu,"onSelect"),0<l.length&&(t=new ml("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=$a)))}function ma(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wa={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},qu={},Nm={};lr&&(Nm=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function pa(e){if(qu[e])return qu[e];if(!Wa[e])return e;var t=Wa[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Nm)return qu[e]=t[a];return e}var Mm=pa("animationend"),Dm=pa("animationiteration"),Bm=pa("animationstart"),dE=pa("transitionrun"),hE=pa("transitionstart"),mE=pa("transitioncancel"),Lm=pa("transitionend"),Um=new Map,Fu="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(" ");Fu.push("scrollEnd");function Cn(e,t){Um.set(e,t),X(t,[e])}var Hm=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var a=Hm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Wh(t)},Hm.set(e,t),t)}return{value:e,source:t,stack:Wh(t)}}var pn=[],Ja=0,Pu=0;function yl(){for(var e=Ja,t=Pu=Ja=0;t<e;){var a=pn[t];pn[t++]=null;var l=pn[t];pn[t++]=null;var o=pn[t];pn[t++]=null;var f=pn[t];if(pn[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}f!==0&&jm(a,o,f)}}function vl(e,t,a,l){pn[Ja++]=e,pn[Ja++]=t,pn[Ja++]=a,pn[Ja++]=l,Pu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Vu(e,t,a,l){return vl(e,t,a,l),bl(e)}function ei(e,t){return vl(e,null,null,t),bl(e)}function jm(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&t!==null&&(o=31-Ct(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),f):null}function bl(e){if(50<bs)throw bs=0,$c=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function pE(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=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 Wt(e,t,a,l){return new pE(e,t,a,l)}function Yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function or(e,t){var a=e.alternate;return a===null?(a=Wt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Im(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _l(e,t,a,l,o,f){var p=0;if(l=e,typeof e=="function")Yu(e)&&(p=1);else if(typeof e=="string")p=yS(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case _e:return e=Wt(31,a,t,o),e.elementType=_e,e.lanes=f,e;case N:return ga(a.children,o,f,t);case V:p=8,o|=24;break;case G:return e=Wt(12,a,t,o|2),e.elementType=G,e.lanes=f,e;case x:return e=Wt(13,a,t,o),e.elementType=x,e.lanes=f,e;case Z:return e=Wt(19,a,t,o),e.elementType=Z,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case S:p=10;break e;case w:p=9;break e;case I:p=11;break e;case $:p=14;break e;case ie:p=16,l=null;break e}p=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wt(p,a,t,o),t.elementType=e,t.type=l,t.lanes=f,t}function ga(e,t,a,l){return e=Wt(7,e,l,t),e.lanes=a,e}function Xu(e,t,a){return e=Wt(6,e,null,t),e.lanes=a,e}function Zu(e,t,a){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ni=[],ri=0,El=null,Sl=0,gn=[],yn=0,ya=null,ur=1,cr="";function va(e,t){ni[ri++]=Sl,ni[ri++]=El,El=e,Sl=t}function zm(e,t,a){gn[yn++]=ur,gn[yn++]=cr,gn[yn++]=ya,ya=e;var l=ur;e=cr;var o=32-Ct(l)-1;l&=~(1<<o),a+=1;var f=32-Ct(t)+o;if(30<f){var p=o-o%5;f=(l&(1<<p)-1).toString(32),l>>=p,o-=p,ur=1<<32-Ct(t)+o|a<<o|l,cr=f+e}else ur=1<<f|a<<o|l,cr=e}function Qu(e){e.return!==null&&(va(e,1),zm(e,1,0))}function Ku(e){for(;e===El;)El=ni[--ri],ni[ri]=null,Sl=ni[--ri],ni[ri]=null;for(;e===ya;)ya=gn[--yn],gn[yn]=null,cr=gn[--yn],gn[yn]=null,ur=gn[--yn],gn[yn]=null}var Lt=null,Je=null,Be=!1,ba=null,Fn=!1,$u=Error(s(519));function _a(e){var t=Error(s(418,""));throw $i(mn(t,e)),$u}function Gm(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ft]=e,t[Nt]=l,a){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(a=0;a<Es.length;a++)Ae(Es[a],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),tm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ol(t);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),rm(t,l.value,l.defaultValue,l.children),ol(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||rg(t.textContent,a)?(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=no),t=!0):t=!1,t||_a(e)}function km(e){for(Lt=e.return;Lt;)switch(Lt.tag){case 5:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:Lt=Lt.return}}function Qi(e){if(e!==Lt)return!1;if(!Be)return km(e),Be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||mf(e.type,e.memoizedProps)),a=!a),a&&Je&&_a(e),km(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Je=Mn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Je=null}}else t===27?(t=Je,Kr(e.type)?(e=vf,vf=null,Je=e):Je=t):Je=Lt?Mn(e.stateNode.nextSibling):null;return!0}function Ki(){Je=Lt=null,Be=!1}function qm(){var e=ba;return e!==null&&(Xt===null?Xt=e:Xt.push.apply(Xt,e),ba=null),e}function $i(e){ba===null?ba=[e]:ba.push(e)}var Wu=k(null),Ea=null,fr=null;function Ur(e,t,a){Y(Wu,t._currentValue),t._currentValue=a}function dr(e){e._currentValue=Wu.current,W(Wu)}function Ju(e,t,a){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===a)break;e=e.return}}function ec(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;e:for(;f!==null;){var b=f;f=o;for(var A=0;A<t.length;A++)if(b.context===t[A]){f.lanes|=a,b=f.alternate,b!==null&&(b.lanes|=a),Ju(f.return,a,e),l||(p=null);break e}f=b.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),Ju(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Wi(e,t,a,l){e=null;for(var o=t,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var b=o.type;$t(o.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}else if(o===$e.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rs):e=[Rs])}o=o.return}e!==null&&ec(t,e,a,l),t.flags|=262144}function Tl(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){Ea=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return Fm(Ea,e)}function Al(e,t){return Ea===null&&Sa(e),Fm(e,t)}function Fm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fr===null){if(e===null)throw Error(s(308));fr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fr=fr.next=t;return a}var gE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},yE=n.unstable_scheduleCallback,vE=n.unstable_NormalPriority,ht={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tc(){return{controller:new gE,data:new Map,refCount:0}}function Ji(e){e.refCount--,e.refCount===0&&yE(vE,function(){e.controller.abort()})}var es=null,nc=0,ai=0,ii=null;function bE(e,t){if(es===null){var a=es=[];nc=0,ai=af(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return nc++,t.then(Pm,Pm),t}function Pm(){if(--nc===0&&es!==null){ii!==null&&(ii.status="fulfilled");var e=es;es=null,ai=0,ii=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _E(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Vm=z.S;z.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&bE(e,t),Vm!==null&&Vm(e,t)};var Ta=k(null);function rc(){var e=Ta.current;return e!==null?e:Pe.pooledCache}function xl(e,t){t===null?Y(Ta,Ta.current):Y(Ta,t.pool)}function Ym(){var e=rc();return e===null?null:{parent:ht._currentValue,pool:e}}var ts=Error(s(460)),Xm=Error(s(474)),Ol=Error(s(542)),ac={then:function(){}};function Zm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rl(){}function Qm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Rl,Rl),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$m(e),e;default:if(typeof t.status=="string")t.then(Rl,Rl);else{if(e=Pe,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,$m(e),e}throw ns=t,ts}}var ns=null;function Km(){if(ns===null)throw Error(s(459));var e=ns;return ns=null,e}function $m(e){if(e===ts||e===Ol)throw Error(s(483))}var Hr=!1;function ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(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 jr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ir(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=bl(e),jm(e,null,a),t}return vl(e,l,t,a),bl(e)}function rs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,nt(e,a)}}function lc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?o=f=t:f=f.next=t}else o=f=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var oc=!1;function as(){if(oc){var e=ii;if(e!==null)throw e}}function is(e,t,a,l){oc=!1;var o=e.updateQueue;Hr=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var A=b,B=A.next;A.next=null,p===null?f=B:p.next=B,p=A;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==p&&(b===null?q.firstBaseUpdate=B:b.next=B,q.lastBaseUpdate=A))}if(f!==null){var P=o.baseState;p=0,q=B=A=null,b=f;do{var U=b.lane&-536870913,j=U!==b.lane;if(j?(Ne&U)===U:(l&U)===U){U!==0&&U===ai&&(oc=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var he=e,fe=b;U=t;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,U);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,U=typeof he=="function"?he.call(ke,P,U):he,U==null)break e;P=y({},P,U);break e;case 2:Hr=!0}}U=b.callback,U!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[U]:j.push(U))}else j={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(B=q=j,A=P):q=q.next=j,p|=U;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;j=b,b=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);q===null&&(A=P),o.baseState=A,o.firstBaseUpdate=B,o.lastBaseUpdate=q,f===null&&(o.shared.lanes=0),Yr|=p,e.lanes=p,e.memoizedState=P}}function Wm(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Jm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Wm(a[e],t)}var si=k(null),wl=k(0);function ep(e,t){e=br,Y(wl,e),Y(si,t),br=e|t.baseLanes}function uc(){Y(wl,br),Y(si,si.current)}function cc(){br=wl.current,W(si),W(wl)}var zr=0,be=null,ze=null,lt=null,Cl=!1,li=!1,Aa=!1,Nl=0,ss=0,oi=null,EE=0;function rt(){throw Error(s(321))}function fc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!$t(e[a],t[a]))return!1;return!0}function dc(e,t,a,l,o,f){return zr=f,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?jp:Ip,Aa=!1,f=a(l,o),Aa=!1,li&&(f=np(t,a,l,o)),tp(e),f}function tp(e){z.H=Hl;var t=ze!==null&&ze.next!==null;if(zr=0,lt=ze=be=null,Cl=!1,ss=0,oi=null,t)throw Error(s(300));e===null||pt||(e=e.dependencies,e!==null&&Tl(e)&&(pt=!0))}function np(e,t,a,l){be=e;var o=0;do{if(li&&(oi=null),ss=0,li=!1,25<=o)throw Error(s(301));if(o+=1,lt=ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=wE,f=t(a,l)}while(li);return f}function SE(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?ls(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(be.flags|=1024),t}function hc(){var e=Nl!==0;return Nl=0,e}function mc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function pc(e){if(Cl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cl=!1}zr=0,lt=ze=be=null,li=!1,ss=Nl=0,oi=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?be.memoizedState=lt=e:lt=lt.next=e,lt}function ot(){if(ze===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=lt===null?be.memoizedState:lt.next;if(t!==null)lt=t,ze=e;else{if(e===null)throw be.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},lt===null?be.memoizedState=lt=e:lt=lt.next=e}return lt}function gc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(e){var t=ss;return ss+=1,oi===null&&(oi=[]),e=Qm(oi,e,t),t=be,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?jp:Ip),e}function Ml(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ls(e);if(e.$$typeof===S)return Dt(e)}throw Error(s(438,String(e)))}function yc(e){var t=null,a=be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=be.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}),a===null&&(a=gc(),be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Re;return t.index++,a}function hr(e,t){return typeof t=="function"?t(e):t}function Dl(e){var t=ot();return vc(t,ze,e)}function vc(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}t.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var b=p=null,A=null,B=t,q=!1;do{var P=B.lane&-536870913;if(P!==B.lane?(Ne&P)===P:(zr&P)===P){var U=B.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),P===ai&&(q=!0);else if((zr&U)===U){B=B.next,U===ai&&(q=!0);continue}else P={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(b=A=P,p=f):A=A.next=P,be.lanes|=U,Yr|=U;P=B.action,Aa&&a(f,P),f=B.hasEagerState?B.eagerState:a(f,P)}else U={lane:P,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(b=A=U,p=f):A=A.next=U,be.lanes|=P,Yr|=P;B=B.next}while(B!==null&&B!==t);if(A===null?p=f:A.next=b,!$t(f,e.memoizedState)&&(pt=!0,q&&(a=ii,a!==null)))throw a;e.memoizedState=f,e.baseState=p,e.baseQueue=A,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function bc(e){var t=ot(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do f=e(f,p.action),p=p.next;while(p!==o);$t(f,t.memoizedState)||(pt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,l]}function rp(e,t,a){var l=be,o=ot(),f=Be;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=t();var p=!$t((ze||o).memoizedState,a);p&&(o.memoizedState=a,pt=!0),o=o.queue;var b=sp.bind(null,l,o,e);if(os(2048,8,b,[e]),o.getSnapshot!==t||p||lt!==null&&lt.memoizedState.tag&1){if(l.flags|=2048,ui(9,Bl(),ip.bind(null,l,o,a,t),null),Pe===null)throw Error(s(349));f||(zr&124)!==0||ap(l,t,a)}return a}function ap(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t=gc(),be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function ip(e,t,a,l){t.value=a,t.getSnapshot=l,lp(t)&&op(e)}function sp(e,t,a){return a(function(){lp(t)&&op(e)})}function lp(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!$t(e,a)}catch{return!0}}function op(e){var t=ei(e,2);t!==null&&rn(t,e,2)}function _c(e){var t=Vt();if(typeof e=="function"){var a=e;if(e=a(),Aa){On(!0);try{a()}finally{On(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},t}function up(e,t,a,l){return e.baseState=a,vc(e,ze,typeof l=="function"?l:hr)}function TE(e,t,a,l,o){if(Ul(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};z.T!==null?a(!0):f.isTransition=!1,l(f),a=t.pending,a===null?(f.next=t.pending=f,cp(t,f)):(f.next=a.next,t.pending=a.next=f)}}function cp(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var f=z.T,p={};z.T=p;try{var b=a(o,l),A=z.S;A!==null&&A(p,b),fp(e,t,b)}catch(B){Ec(e,t,B)}finally{z.T=f}}else try{f=a(o,l),fp(e,t,f)}catch(B){Ec(e,t,B)}}function fp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){dp(e,t,l)},function(l){return Ec(e,t,l)}):dp(e,t,a)}function dp(e,t,a){t.status="fulfilled",t.value=a,hp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,cp(e,a)))}function Ec(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,hp(t),t=t.next;while(t!==l)}e.action=null}function hp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mp(e,t){return t}function pp(e,t){if(Be){var a=Pe.formState;if(a!==null){e:{var l=be;if(Be){if(Je){t:{for(var o=Je,f=Fn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Mn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Je=Mn(o.nextSibling),l=o.data==="F!";break e}}_a(l)}l=!1}l&&(t=a[0])}}return a=Vt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mp,lastRenderedState:t},a.queue=l,a=Lp.bind(null,be,l),l.dispatch=a,l=_c(!1),f=Oc.bind(null,be,!1,l.queue),l=Vt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=TE.bind(null,be,o,f,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function gp(e){var t=ot();return yp(t,ze,e)}function yp(e,t,a){if(t=vc(e,t,mp)[0],e=Dl(hr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ls(t)}catch(p){throw p===ts?Ol:p}else l=t;t=ot();var o=t.queue,f=o.dispatch;return a!==t.memoizedState&&(be.flags|=2048,ui(9,Bl(),AE.bind(null,o,a),null)),[l,f,e]}function AE(e,t){e.action=t}function vp(e){var t=ot(),a=ze;if(a!==null)return yp(t,a,e);ot(),t=t.memoizedState,a=ot();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ui(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=be.updateQueue,t===null&&(t=gc(),be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Bl(){return{destroy:void 0,resource:void 0}}function bp(){return ot().memoizedState}function Ll(e,t,a,l){var o=Vt();l=l===void 0?null:l,be.flags|=e,o.memoizedState=ui(1|t,Bl(),a,l)}function os(e,t,a,l){var o=ot();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&fc(l,ze.memoizedState.deps)?o.memoizedState=ui(t,f,a,l):(be.flags|=e,o.memoizedState=ui(1|t,f,a,l))}function _p(e,t){Ll(8390656,8,e,t)}function Ep(e,t){os(2048,8,e,t)}function Sp(e,t){return os(4,2,e,t)}function Tp(e,t){return os(4,4,e,t)}function Ap(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xp(e,t,a){a=a!=null?a.concat([e]):null,os(4,4,Ap.bind(null,t,e),a)}function Sc(){}function Op(e,t){var a=ot();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&fc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Rp(e,t){var a=ot();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&fc(t,l[1]))return l[0];if(l=e(),Aa){On(!0);try{e()}finally{On(!1)}}return a.memoizedState=[l,t],l}function Tc(e,t,a){return a===void 0||(zr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=N0(),be.lanes|=e,Yr|=e,a)}function wp(e,t,a,l){return $t(a,t)?a:si.current!==null?(e=Tc(e,a,l),$t(e,t)||(pt=!0),e):(zr&42)===0?(pt=!0,e.memoizedState=a):(e=N0(),be.lanes|=e,Yr|=e,t)}function Cp(e,t,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var p=z.T,b={};z.T=b,Oc(e,!1,t,a);try{var A=o(),B=z.S;if(B!==null&&B(b,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=_E(A,l);us(e,t,q,nn(e))}else us(e,t,l,nn(e))}catch(P){us(e,t,{then:function(){},status:"rejected",reason:P},nn())}finally{K.p=f,z.T=p}}function xE(){}function Ac(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=Np(e).queue;Cp(e,o,t,ee,a===null?xE:function(){return Mp(e),a(l)})}function Np(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mp(e){var t=Np(e).next.queue;us(e,t,{},nn())}function xc(){return Dt(Rs)}function Dp(){return ot().memoizedState}function Bp(){return ot().memoizedState}function OE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=jr(a);var l=Ir(t,e,a);l!==null&&(rn(l,t,a),rs(l,t,a)),t={cache:tc()},e.payload=t;return}t=t.return}}function RE(e,t,a){var l=nn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ul(e)?Up(t,a):(a=Vu(e,t,a,l),a!==null&&(rn(a,e,l),Hp(a,t,l)))}function Lp(e,t,a){var l=nn();us(e,t,a,l)}function us(e,t,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ul(e))Up(t,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,b=f(p,a);if(o.hasEagerState=!0,o.eagerState=b,$t(b,p))return vl(e,t,o,0),Pe===null&&yl(),!1}catch{}finally{}if(a=Vu(e,t,o,l),a!==null)return rn(a,e,l),Hp(a,t,l),!0}return!1}function Oc(e,t,a,l){if(l={lane:2,revertLane:af(),action:l,hasEagerState:!1,eagerState:null,next:null},Ul(e)){if(t)throw Error(s(479))}else t=Vu(e,a,l,2),t!==null&&rn(t,e,2)}function Ul(e){var t=e.alternate;return e===be||t!==null&&t===be}function Up(e,t){li=Cl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hp(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,nt(e,a)}}var Hl={readContext:Dt,use:Ml,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},jp={readContext:Dt,use:Ml,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:_p,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ll(4194308,4,Ap.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ll(4194308,4,e,t)},useInsertionEffect:function(e,t){Ll(4,2,e,t)},useMemo:function(e,t){var a=Vt();t=t===void 0?null:t;var l=e();if(Aa){On(!0);try{e()}finally{On(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Vt();if(a!==void 0){var o=a(t);if(Aa){On(!0);try{a(t)}finally{On(!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=RE.bind(null,be,e),[l.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:function(e){e=_c(e);var t=e.queue,a=Lp.bind(null,be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Sc,useDeferredValue:function(e,t){var a=Vt();return Tc(a,e,t)},useTransition:function(){var e=_c(!1);return e=Cp.bind(null,be,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=be,o=Vt();if(Be){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Pe===null)throw Error(s(349));(Ne&124)!==0||ap(l,t,a)}o.memoizedState=a;var f={value:a,getSnapshot:t};return o.queue=f,_p(sp.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Bl(),ip.bind(null,l,f,a,t),null),a},useId:function(){var e=Vt(),t=Pe.identifierPrefix;if(Be){var a=cr,l=ur;a=(l&~(1<<32-Ct(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=Nl++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=EE++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:xc,useFormState:pp,useActionState:pp,useOptimistic:function(e){var t=Vt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Oc.bind(null,be,!0,a),a.dispatch=t,[e,t]},useMemoCache:yc,useCacheRefresh:function(){return Vt().memoizedState=OE.bind(null,be)}},Ip={readContext:Dt,use:Ml,useCallback:Op,useContext:Dt,useEffect:Ep,useImperativeHandle:xp,useInsertionEffect:Sp,useLayoutEffect:Tp,useMemo:Rp,useReducer:Dl,useRef:bp,useState:function(){return Dl(hr)},useDebugValue:Sc,useDeferredValue:function(e,t){var a=ot();return wp(a,ze.memoizedState,e,t)},useTransition:function(){var e=Dl(hr)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:ls(e),t]},useSyncExternalStore:rp,useId:Dp,useHostTransitionStatus:xc,useFormState:gp,useActionState:gp,useOptimistic:function(e,t){var a=ot();return up(a,ze,e,t)},useMemoCache:yc,useCacheRefresh:Bp},wE={readContext:Dt,use:Ml,useCallback:Op,useContext:Dt,useEffect:Ep,useImperativeHandle:xp,useInsertionEffect:Sp,useLayoutEffect:Tp,useMemo:Rp,useReducer:bc,useRef:bp,useState:function(){return bc(hr)},useDebugValue:Sc,useDeferredValue:function(e,t){var a=ot();return ze===null?Tc(a,e,t):wp(a,ze.memoizedState,e,t)},useTransition:function(){var e=bc(hr)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:ls(e),t]},useSyncExternalStore:rp,useId:Dp,useHostTransitionStatus:xc,useFormState:vp,useActionState:vp,useOptimistic:function(e,t){var a=ot();return ze!==null?up(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:yc,useCacheRefresh:Bp},ci=null,cs=0;function jl(e){var t=cs;return cs+=1,ci===null&&(ci=[]),Qm(ci,e,t)}function fs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Il(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zp(e){var t=e._init;return t(e._payload)}function Gp(e){function t(M,R){if(e){var D=M.deletions;D===null?(M.deletions=[R],M.flags|=16):D.push(R)}}function a(M,R){if(!e)return null;for(;R!==null;)t(M,R),R=R.sibling;return null}function l(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function o(M,R){return M=or(M,R),M.index=0,M.sibling=null,M}function f(M,R,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<R?(M.flags|=67108866,R):D):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,R,D,F){return R===null||R.tag!==6?(R=Xu(D,M.mode,F),R.return=M,R):(R=o(R,D),R.return=M,R)}function A(M,R,D,F){var ne=D.type;return ne===N?q(M,R,D.props.children,F,D.key):R!==null&&(R.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ie&&zp(ne)===R.type)?(R=o(R,D.props),fs(R,D),R.return=M,R):(R=_l(D.type,D.key,D.props,null,M.mode,F),fs(R,D),R.return=M,R)}function B(M,R,D,F){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=Zu(D,M.mode,F),R.return=M,R):(R=o(R,D.children||[]),R.return=M,R)}function q(M,R,D,F,ne){return R===null||R.tag!==7?(R=ga(D,M.mode,F,ne),R.return=M,R):(R=o(R,D),R.return=M,R)}function P(M,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Xu(""+R,M.mode,D),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return D=_l(R.type,R.key,R.props,null,M.mode,D),fs(D,R),D.return=M,D;case L:return R=Zu(R,M.mode,D),R.return=M,R;case ie:var F=R._init;return R=F(R._payload),P(M,R,D)}if(ve(R)||me(R))return R=ga(R,M.mode,D,null),R.return=M,R;if(typeof R.then=="function")return P(M,jl(R),D);if(R.$$typeof===S)return P(M,Al(M,R),D);Il(M,R)}return null}function U(M,R,D,F){var ne=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:b(M,R,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case T:return D.key===ne?A(M,R,D,F):null;case L:return D.key===ne?B(M,R,D,F):null;case ie:return ne=D._init,D=ne(D._payload),U(M,R,D,F)}if(ve(D)||me(D))return ne!==null?null:q(M,R,D,F,null);if(typeof D.then=="function")return U(M,R,jl(D),F);if(D.$$typeof===S)return U(M,R,Al(M,D),F);Il(M,D)}return null}function j(M,R,D,F,ne){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return M=M.get(D)||null,b(R,M,""+F,ne);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case T:return M=M.get(F.key===null?D:F.key)||null,A(R,M,F,ne);case L:return M=M.get(F.key===null?D:F.key)||null,B(R,M,F,ne);case ie:var Ee=F._init;return F=Ee(F._payload),j(M,R,D,F,ne)}if(ve(F)||me(F))return M=M.get(D)||null,q(R,M,F,ne,null);if(typeof F.then=="function")return j(M,R,D,jl(F),ne);if(F.$$typeof===S)return j(M,R,D,Al(R,F),ne);Il(R,F)}return null}function he(M,R,D,F){for(var ne=null,Ee=null,oe=R,de=R=0,yt=null;oe!==null&&de<D.length;de++){oe.index>de?(yt=oe,oe=null):yt=oe.sibling;var De=U(M,oe,D[de],F);if(De===null){oe===null&&(oe=yt);break}e&&oe&&De.alternate===null&&t(M,oe),R=f(De,R,de),Ee===null?ne=De:Ee.sibling=De,Ee=De,oe=yt}if(de===D.length)return a(M,oe),Be&&va(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],F),oe!==null&&(R=f(oe,R,de),Ee===null?ne=oe:Ee.sibling=oe,Ee=oe);return Be&&va(M,de),ne}for(oe=l(oe);de<D.length;de++)yt=j(oe,M,de,D[de],F),yt!==null&&(e&&yt.alternate!==null&&oe.delete(yt.key===null?de:yt.key),R=f(yt,R,de),Ee===null?ne=yt:Ee.sibling=yt,Ee=yt);return e&&oe.forEach(function(ta){return t(M,ta)}),Be&&va(M,de),ne}function fe(M,R,D,F){if(D==null)throw Error(s(151));for(var ne=null,Ee=null,oe=R,de=R=0,yt=null,De=D.next();oe!==null&&!De.done;de++,De=D.next()){oe.index>de?(yt=oe,oe=null):yt=oe.sibling;var ta=U(M,oe,De.value,F);if(ta===null){oe===null&&(oe=yt);break}e&&oe&&ta.alternate===null&&t(M,oe),R=f(ta,R,de),Ee===null?ne=ta:Ee.sibling=ta,Ee=ta,oe=yt}if(De.done)return a(M,oe),Be&&va(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,F),De!==null&&(R=f(De,R,de),Ee===null?ne=De:Ee.sibling=De,Ee=De);return Be&&va(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=j(oe,M,de,De.value,F),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),R=f(De,R,de),Ee===null?ne=De:Ee.sibling=De,Ee=De);return e&&oe.forEach(function(CS){return t(M,CS)}),Be&&va(M,de),ne}function ke(M,R,D,F){if(typeof D=="object"&&D!==null&&D.type===N&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case T:e:{for(var ne=D.key;R!==null;){if(R.key===ne){if(ne=D.type,ne===N){if(R.tag===7){a(M,R.sibling),F=o(R,D.props.children),F.return=M,M=F;break e}}else if(R.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ie&&zp(ne)===R.type){a(M,R.sibling),F=o(R,D.props),fs(F,D),F.return=M,M=F;break e}a(M,R);break}else t(M,R);R=R.sibling}D.type===N?(F=ga(D.props.children,M.mode,F,D.key),F.return=M,M=F):(F=_l(D.type,D.key,D.props,null,M.mode,F),fs(F,D),F.return=M,M=F)}return p(M);case L:e:{for(ne=D.key;R!==null;){if(R.key===ne)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){a(M,R.sibling),F=o(R,D.children||[]),F.return=M,M=F;break e}else{a(M,R);break}else t(M,R);R=R.sibling}F=Zu(D,M.mode,F),F.return=M,M=F}return p(M);case ie:return ne=D._init,D=ne(D._payload),ke(M,R,D,F)}if(ve(D))return he(M,R,D,F);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,R,D,F)}if(typeof D.then=="function")return ke(M,R,jl(D),F);if(D.$$typeof===S)return ke(M,R,Al(M,D),F);Il(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(a(M,R.sibling),F=o(R,D),F.return=M,M=F):(a(M,R),F=Xu(D,M.mode,F),F.return=M,M=F),p(M)):a(M,R)}return function(M,R,D,F){try{cs=0;var ne=ke(M,R,D,F);return ci=null,ne}catch(oe){if(oe===ts||oe===Ol)throw oe;var Ee=Wt(29,oe,null,M.mode);return Ee.lanes=F,Ee.return=M,Ee}finally{}}}var fi=Gp(!0),kp=Gp(!1),vn=k(null),Pn=null;function Gr(e){var t=e.alternate;Y(mt,mt.current&1),Y(vn,e),Pn===null&&(t===null||si.current!==null||t.memoizedState!==null)&&(Pn=e)}function qp(e){if(e.tag===22){if(Y(mt,mt.current),Y(vn,e),Pn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Pn=e)}}else kr()}function kr(){Y(mt,mt.current),Y(vn,vn.current)}function mr(e){W(vn),Pn===e&&(Pn=null),W(mt)}var mt=k(0);function zl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||yf(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Rc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var wc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=nn(),o=jr(l);o.payload=t,a!=null&&(o.callback=a),t=Ir(e,o,l),t!==null&&(rn(t,e,l),rs(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=nn(),o=jr(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Ir(e,o,l),t!==null&&(rn(t,e,l),rs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(),l=jr(a);l.tag=2,t!=null&&(l.callback=t),t=Ir(e,l,a),t!==null&&(rn(t,e,a),rs(t,e,a))}};function Fp(e,t,a,l,o,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,p):t.prototype&&t.prototype.isPureReactComponent?!Xi(a,l)||!Xi(o,f):!0}function Pp(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&wc.enqueueReplaceState(t,t.state,null)}function xa(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Gl=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)};function Vp(e){Gl(e)}function Yp(e){console.error(e)}function Xp(e){Gl(e)}function kl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Zp(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Cc(e,t,a){return a=jr(a),a.tag=3,a.payload={element:null},a.callback=function(){kl(e,t)},a}function Qp(e){return e=jr(e),e.tag=3,e}function Kp(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){Zp(t,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Zp(t,a,l),typeof o!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function CE(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Wi(t,a,o,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Pn===null?Jc():a.alternate===null&&et===0&&(et=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===ac?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),tf(e,l,o)),!1;case 22:return a.flags|=65536,l===ac?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),tf(e,l,o)),!1}throw Error(s(435,a.tag))}return tf(e,l,o),Jc(),!1}if(Be)return t=vn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==$u&&(e=Error(s(422),{cause:l}),$i(mn(e,a)))):(l!==$u&&(t=Error(s(423),{cause:l}),$i(mn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=mn(l,a),o=Cc(e.stateNode,l,o),lc(e,o),et!==4&&(et=2)),!1;var f=Error(s(520),{cause:l});if(f=mn(f,a),vs===null?vs=[f]:vs.push(f),et!==4&&(et=2),t===null)return!0;l=mn(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Cc(a.stateNode,l,e),lc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Xr===null||!Xr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Qp(o),Kp(o,e,a,l),lc(a,o),!1}a=a.return}while(a!==null);return!1}var $p=Error(s(461)),pt=!1;function St(e,t,a,l){t.child=e===null?kp(t,null,a,l):fi(t,e.child,a,l)}function Wp(e,t,a,l,o){a=a.render;var f=t.ref;if("ref"in l){var p={};for(var b in l)b!=="ref"&&(p[b]=l[b])}else p=l;return Sa(t),l=dc(e,t,a,p,f,o),b=hc(),e!==null&&!pt?(mc(e,t,o),pr(e,t,o)):(Be&&b&&Qu(t),t.flags|=1,St(e,t,l,o),t.child)}function Jp(e,t,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!Yu(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,e0(e,t,f,l,o)):(e=_l(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!jc(e,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:Xi,a(p,l)&&e.ref===t.ref)return pr(e,t,o)}return t.flags|=1,e=or(f,l),e.ref=t.ref,e.return=t,t.child=e}function e0(e,t,a,l,o){if(e!==null){var f=e.memoizedProps;if(Xi(f,l)&&e.ref===t.ref)if(pt=!1,t.pendingProps=l=f,jc(e,o))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,pr(e,t,o)}return Nc(e,t,a,l,o)}function t0(e,t,a){var l=t.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=t.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return n0(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xl(t,f!==null?f.cachePool:null),f!==null?ep(t,f):uc(),qp(t);else return t.lanes=t.childLanes=536870912,n0(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(xl(t,f.cachePool),ep(t,f),kr(),t.memoizedState=null):(e!==null&&xl(t,null),uc(),kr());return St(e,t,o,a),t.child}function n0(e,t,a,l){var o=rc();return o=o===null?null:{parent:ht._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&xl(t,null),uc(),qp(t),e!==null&&Wi(e,t,l,!0),null}function ql(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Nc(e,t,a,l,o){return Sa(t),a=dc(e,t,a,l,void 0,o),l=hc(),e!==null&&!pt?(mc(e,t,o),pr(e,t,o)):(Be&&l&&Qu(t),t.flags|=1,St(e,t,a,o),t.child)}function r0(e,t,a,l,o,f){return Sa(t),t.updateQueue=null,a=np(t,l,a,o),tp(e),l=hc(),e!==null&&!pt?(mc(e,t,f),pr(e,t,f)):(Be&&l&&Qu(t),t.flags|=1,St(e,t,a,f),t.child)}function a0(e,t,a,l,o){if(Sa(t),t.stateNode===null){var f=ti,p=a.contextType;typeof p=="object"&&p!==null&&(f=Dt(p)),f=new a(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=wc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},ic(t),p=a.contextType,f.context=typeof p=="object"&&p!==null?Dt(p):ti,f.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Rc(t,a,p,l),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&wc.enqueueReplaceState(f,f.state,null),is(t,l,f,o),as(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,A=xa(a,b);f.props=A;var B=f.context,q=a.contextType;p=ti,typeof q=="object"&&q!==null&&(p=Dt(q));var P=a.getDerivedStateFromProps;q=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||B!==p)&&Pp(t,f,l,p),Hr=!1;var U=t.memoizedState;f.state=U,is(t,l,f,o),as(),B=t.memoizedState,b||U!==B||Hr?(typeof P=="function"&&(Rc(t,a,P,l),B=t.memoizedState),(A=Hr||Fp(t,a,A,l,U,B,p))?(q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),f.props=l,f.state=B,f.context=p,l=A):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,sc(e,t),p=t.memoizedProps,q=xa(a,p),f.props=q,P=t.pendingProps,U=f.context,B=a.contextType,A=ti,typeof B=="object"&&B!==null&&(A=Dt(B)),b=a.getDerivedStateFromProps,(B=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==P||U!==A)&&Pp(t,f,l,A),Hr=!1,U=t.memoizedState,f.state=U,is(t,l,f,o),as();var j=t.memoizedState;p!==P||U!==j||Hr||e!==null&&e.dependencies!==null&&Tl(e.dependencies)?(typeof b=="function"&&(Rc(t,a,b,l),j=t.memoizedState),(q=Hr||Fp(t,a,q,l,U,j,A)||e!==null&&e.dependencies!==null&&Tl(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,j,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,j,A)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=j),f.props=l,f.state=j,f.context=A,l=q):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,ql(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=fi(t,e.child,null,o),t.child=fi(t,null,a,o)):St(e,t,a,o),t.memoizedState=f.state,e=t.child):e=pr(e,t,o),e}function i0(e,t,a,l){return Ki(),t.flags|=256,St(e,t,a,l),t.child}var Mc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dc(e){return{baseLanes:e,cachePool:Ym()}}function Bc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=bn),e}function s0(e,t,a){var l=t.pendingProps,o=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Be){if(o?Gr(t):kr(),Be){var b=Je,A;if(A=b){e:{for(A=b,b=Fn;A.nodeType!==8;){if(!b){b=null;break e}if(A=Mn(A.nextSibling),A===null){b=null;break e}}b=A}b!==null?(t.memoizedState={dehydrated:b,treeContext:ya!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},A=Wt(18,null,null,0),A.stateNode=b,A.return=t,t.child=A,Lt=t,Je=null,A=!0):A=!1}A||_a(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return yf(b)?t.lanes=32:t.lanes=536870912,null;mr(t)}return b=l.children,l=l.fallback,o?(kr(),o=t.mode,b=Fl({mode:"hidden",children:b},o),l=ga(l,o,a,null),b.return=t,l.return=t,b.sibling=l,t.child=b,o=t.child,o.memoizedState=Dc(a),o.childLanes=Bc(e,p,a),t.memoizedState=Mc,l):(Gr(t),Lc(t,b))}if(A=e.memoizedState,A!==null&&(b=A.dehydrated,b!==null)){if(f)t.flags&256?(Gr(t),t.flags&=-257,t=Uc(e,t,a)):t.memoizedState!==null?(kr(),t.child=e.child,t.flags|=128,t=null):(kr(),o=l.fallback,b=t.mode,l=Fl({mode:"visible",children:l.children},b),o=ga(o,b,a,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,fi(t,e.child,null,a),l=t.child,l.memoizedState=Dc(a),l.childLanes=Bc(e,p,a),t.memoizedState=Mc,t=o);else if(Gr(t),yf(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var B=p.dgst;p=B,l=Error(s(419)),l.stack="",l.digest=p,$i({value:l,source:null,stack:null}),t=Uc(e,t,a)}else if(pt||Wi(e,t,a,!1),p=(a&e.childLanes)!==0,pt||p){if(p=Pe,p!==null&&(l=a&-a,l=(l&42)!==0?1:Gn(l),l=(l&(p.suspendedLanes|a))!==0?0:l,l!==0&&l!==A.retryLane))throw A.retryLane=l,ei(e,l),rn(p,e,l),$p;b.data==="$?"||Jc(),t=Uc(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Je=Mn(b.nextSibling),Lt=t,Be=!0,ba=null,Fn=!1,e!==null&&(gn[yn++]=ur,gn[yn++]=cr,gn[yn++]=ya,ur=e.id,cr=e.overflow,ya=t),t=Lc(t,l.children),t.flags|=4096);return t}return o?(kr(),o=l.fallback,b=t.mode,A=e.child,B=A.sibling,l=or(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,B!==null?o=or(B,o):(o=ga(o,b,a,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,l=o,o=t.child,b=e.child.memoizedState,b===null?b=Dc(a):(A=b.cachePool,A!==null?(B=ht._currentValue,A=A.parent!==B?{parent:B,pool:B}:A):A=Ym(),b={baseLanes:b.baseLanes|a,cachePool:A}),o.memoizedState=b,o.childLanes=Bc(e,p,a),t.memoizedState=Mc,l):(Gr(t),a=e.child,e=a.sibling,a=or(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Lc(e,t){return t=Fl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fl(e,t){return e=Wt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Uc(e,t,a){return fi(t,e.child,null,a),e=Lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function l0(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ju(e.return,t,a)}function Hc(e,t,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function o0(e,t,a){var l=t.pendingProps,o=l.revealOrder,f=l.tail;if(St(e,t,l.children,a),l=mt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&l0(e,a,t);else if(e.tag===19)l0(e,a,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}l&=1}switch(Y(mt,l),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&zl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Hc(t,!1,o,a,f);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&zl(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Hc(t,!0,a,null,f);break;case"together":Hc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Yr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Wi(e,t,a,!1),(a&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,a=or(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=or(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Tl(e)))}function NE(e,t,a){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Ur(t,ht,e.memoizedState.cache),Ki();break;case 27:case 5:zn(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Ur(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Gr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?s0(e,t,a):(Gr(t),e=pr(e,t,a),e!==null?e.sibling:null);Gr(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Wi(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return o0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(mt,mt.current),l)break;return null;case 22:case 23:return t.lanes=0,t0(e,t,a);case 24:Ur(t,ht,e.memoizedState.cache)}return pr(e,t,a)}function u0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!jc(e,a)&&(t.flags&128)===0)return pt=!1,NE(e,t,a);pt=(e.flags&131072)!==0}else pt=!1,Be&&(t.flags&1048576)!==0&&zm(t,Sl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,o=l._init;if(l=o(l._payload),t.type=l,typeof l=="function")Yu(l)?(e=xa(l,e),t.tag=1,t=a0(null,t,l,e,a)):(t.tag=0,t=Nc(null,t,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===I){t.tag=11,t=Wp(null,t,l,e,a);break e}else if(o===$){t.tag=14,t=Jp(null,t,l,e,a);break e}}throw t=Ve(l)||l,Error(s(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=xa(l,t.pendingProps),a0(e,t,l,o,a);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;o=f.element,sc(e,t),is(t,l,null,a);var p=t.memoizedState;if(l=p.cache,Ur(t,ht,l),l!==f.cache&&ec(t,[ht],a,!0),as(),l=p.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=i0(e,t,l,a);break e}else if(l!==o){o=mn(Error(s(424)),t),$i(o),t=i0(e,t,l,a);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(Je=Mn(e.firstChild),Lt=t,Be=!0,ba=null,Fn=!0,a=kp(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ki(),l===o){t=pr(e,t,a);break e}St(e,t,l,a)}t=t.child}return t;case 26:return ql(e,t),e===null?(a=hg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Be||(a=t.type,e=t.pendingProps,l=ro(ue.current).createElement(a),l[ft]=t,l[Nt]=e,At(l,a,e),it(l),t.stateNode=l):t.memoizedState=hg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zn(t),e===null&&Be&&(l=t.stateNode=cg(t.type,t.pendingProps,ue.current),Lt=t,Fn=!0,o=Je,Kr(t.type)?(vf=o,Je=Mn(l.firstChild)):Je=o),St(e,t,t.pendingProps.children,a),ql(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Be&&((o=l=Je)&&(l=aS(l,t.type,t.pendingProps,Fn),l!==null?(t.stateNode=l,Lt=t,Je=Mn(l.firstChild),Fn=!1,o=!0):o=!1),o||_a(t)),zn(t),o=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,l=f.children,mf(o,f)?l=null:p!==null&&mf(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=dc(e,t,SE,null,null,a),Rs._currentValue=o),ql(e,t),St(e,t,l,a),t.child;case 6:return e===null&&Be&&((e=a=Je)&&(a=iS(a,t.pendingProps,Fn),a!==null?(t.stateNode=a,Lt=t,Je=null,e=!0):e=!1),e||_a(t)),null;case 13:return s0(e,t,a);case 4:return Ue(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=fi(t,null,l,a):St(e,t,l,a),t.child;case 11:return Wp(e,t,t.type,t.pendingProps,a);case 7:return St(e,t,t.pendingProps,a),t.child;case 8:return St(e,t,t.pendingProps.children,a),t.child;case 12:return St(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ur(t,t.type,l.value),St(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Sa(t),o=Dt(o),l=l(o),t.flags|=1,St(e,t,l,a),t.child;case 14:return Jp(e,t,t.type,t.pendingProps,a);case 15:return e0(e,t,t.type,t.pendingProps,a);case 19:return o0(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=Fl(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=or(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return t0(e,t,a);case 24:return Sa(t),l=Dt(ht),e===null?(o=rc(),o===null&&(o=Pe,f=tc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),t.memoizedState={parent:l,cache:o},ic(t),Ur(t,ht,o)):((e.lanes&a)!==0&&(sc(e,t),is(t,null,null,a),as()),o=e.memoizedState,f=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ur(t,ht,l)):(l=f.cache,Ur(t,ht,l),l!==o.cache&&ec(t,[ht],a,!0))),St(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function gr(e){e.flags|=4}function c0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vg(t)){if(t=vn.current,t!==null&&((Ne&4194048)===Ne?Pn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||t!==Pn))throw ns=ac,Xm;e.flags|=8192}}function Pl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?da():536870912,e.lanes|=t,pi|=t)}function ds(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function ME(e,t,a){var l=t.pendingProps;switch(Ku(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),dr(ht),bt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Qi(t)?gr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qm())),Qe(t),null;case 26:return a=t.memoizedState,e===null?(gr(t),a!==null?(Qe(t),c0(t,a)):(Qe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(gr(t),Qe(t),c0(t,a)):(Qe(t),t.flags&=-16777217):(e.memoizedProps!==l&&gr(t),Qe(t),t.flags&=-16777217),null;case 27:Cr(t),a=ue.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&gr(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}e=te.current,Qi(t)?Gm(t):(e=cg(o,l,a),t.stateNode=e,gr(t))}return Qe(t),null;case 5:if(Cr(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&gr(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}if(e=te.current,Qi(t))Gm(t);else{switch(o=ro(ue.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[ft]=t,e[Nt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(At(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gr(t)}}return Qe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&gr(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Qi(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=Lt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ft]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||rg(e.nodeValue,a)),e||_a(t)}else e=ro(e).createTextNode(l),e[ft]=t,t.stateNode=e}return Qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Qi(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[ft]=t}else Ki(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),o=!1}else o=qm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(mr(t),t):(mr(t),null)}if(mr(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Pl(t,t.updateQueue),Qe(t),null;case 4:return bt(),e===null&&uf(t.stateNode.containerInfo),Qe(t),null;case 10:return dr(t.type),Qe(t),null;case 19:if(W(mt),o=t.memoizedState,o===null)return Qe(t),null;if(l=(t.flags&128)!==0,f=o.rendering,f===null)if(l)ds(o,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=zl(e),f!==null){for(t.flags|=128,ds(o,!1),e=f.updateQueue,t.updateQueue=e,Pl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Im(a,e),a=a.sibling;return Y(mt,mt.current&1|2),t.child}e=e.sibling}o.tail!==null&&_t()>Xl&&(t.flags|=128,l=!0,ds(o,!1),t.lanes=4194304)}else{if(!l)if(e=zl(f),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Pl(t,e),ds(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Be)return Qe(t),null}else 2*_t()-o.renderingStartTime>Xl&&a!==536870912&&(t.flags|=128,l=!0,ds(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_t(),t.sibling=null,e=mt.current,Y(mt,l?e&1|2:e&1),t):(Qe(t),null);case 22:case 23:return mr(t),cc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),a=t.updateQueue,a!==null&&Pl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&W(Ta),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),dr(ht),Qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function DE(e,t){switch(Ku(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(ht),bt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Cr(t),null;case 13:if(mr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(mt),null;case 4:return bt(),null;case 10:return dr(t.type),null;case 22:case 23:return mr(t),cc(),e!==null&&W(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dr(ht),null;case 25:return null;default:return null}}function f0(e,t){switch(Ku(t),t.tag){case 3:dr(ht),bt();break;case 26:case 27:case 5:Cr(t);break;case 4:bt();break;case 13:mr(t);break;case 19:W(mt);break;case 10:dr(t.type);break;case 22:case 23:mr(t),cc(),e!==null&&W(Ta);break;case 24:dr(ht)}}function hs(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,p=a.inst;l=f(),p.destroy=l}a=a.next}while(a!==o)}}catch(b){qe(t,t.return,b)}}function qr(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var p=l.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,o=t;var A=a,B=b;try{B()}catch(q){qe(o,A,q)}}}l=l.next}while(l!==f)}}catch(q){qe(t,t.return,q)}}function d0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Jm(t,a)}catch(l){qe(e,e.return,l)}}}function h0(e,t,a){a.props=xa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){qe(e,t,l)}}function ms(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){qe(e,t,o)}}function Vn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){qe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){qe(e,t,o)}else a.current=null}function m0(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){qe(e,e.return,o)}}function Ic(e,t,a){try{var l=e.stateNode;JE(l,e.type,a,t),l[Nt]=t}catch(o){qe(e,e.return,o)}}function p0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kr(e.type)||e.tag===4}function zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p0(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&&Kr(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 Gc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=no));else if(l!==4&&(l===27&&Kr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,a),e=e.sibling;e!==null;)Gc(e,t,a),e=e.sibling}function Vl(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Kr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vl(e,t,a),e=e.sibling;e!==null;)Vl(e,t,a),e=e.sibling}function g0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);At(t,l,a),t[ft]=e,t[Nt]=a}catch(f){qe(e,e.return,f)}}var yr=!1,at=!1,kc=!1,y0=typeof WeakSet=="function"?WeakSet:Set,gt=null;function BE(e,t){if(e=e.containerInfo,df=uo,e=wm(e),zu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var p=0,b=-1,A=-1,B=0,q=0,P=e,U=null;t:for(;;){for(var j;P!==a||o!==0&&P.nodeType!==3||(b=p+o),P!==f||l!==0&&P.nodeType!==3||(A=p+l),P.nodeType===3&&(p+=P.nodeValue.length),(j=P.firstChild)!==null;)U=P,P=j;for(;;){if(P===e)break t;if(U===a&&++B===o&&(b=p),U===f&&++q===l&&(A=p),(j=P.nextSibling)!==null)break;P=U,U=P.parentNode}P=j}a=b===-1||A===-1?null:{start:b,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(hf={focusedElem:e,selectionRange:a},uo=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var he=xa(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(he,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){qe(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)gf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gf(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,gt=e;break}gt=t.return}}function v0(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Fr(e,a),l&4&&hs(5,a);break;case 1:if(Fr(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){qe(a,a.return,p)}else{var o=xa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){qe(a,a.return,p)}}l&64&&d0(a),l&512&&ms(a,a.return);break;case 3:if(Fr(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Jm(e,t)}catch(p){qe(a,a.return,p)}}break;case 27:t===null&&l&4&&g0(a);case 26:case 5:Fr(e,a),t===null&&l&4&&m0(a),l&512&&ms(a,a.return);break;case 12:Fr(e,a);break;case 13:Fr(e,a),l&4&&E0(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=qE.bind(null,a),sS(e,a))));break;case 22:if(l=a.memoizedState!==null||yr,!l){t=t!==null&&t.memoizedState!==null||at,o=yr;var f=at;yr=l,(at=t)&&!f?Pr(e,a,(a.subtreeFlags&8772)!==0):Fr(e,a),yr=o,at=f}break;case 30:break;default:Fr(e,a)}}function b0(e){var t=e.alternate;t!==null&&(e.alternate=null,b0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qt(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 Xe=null,Yt=!1;function vr(e,t,a){for(a=a.child;a!==null;)_0(e,t,a),a=a.sibling}function _0(e,t,a){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(fn,a)}catch{}switch(a.tag){case 26:at||Vn(a,t),vr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||Vn(a,t);var l=Xe,o=Yt;Kr(a.type)&&(Xe=a.stateNode,Yt=!1),vr(e,t,a),Ts(a.stateNode),Xe=l,Yt=o;break;case 5:at||Vn(a,t);case 6:if(l=Xe,o=Yt,Xe=null,vr(e,t,a),Xe=l,Yt=o,Xe!==null)if(Yt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(f){qe(a,t,f)}else try{Xe.removeChild(a.stateNode)}catch(f){qe(a,t,f)}break;case 18:Xe!==null&&(Yt?(e=Xe,og(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ms(e)):og(Xe,a.stateNode));break;case 4:l=Xe,o=Yt,Xe=a.stateNode.containerInfo,Yt=!0,vr(e,t,a),Xe=l,Yt=o;break;case 0:case 11:case 14:case 15:at||qr(2,a,t),at||qr(4,a,t),vr(e,t,a);break;case 1:at||(Vn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&h0(a,t,l)),vr(e,t,a);break;case 21:vr(e,t,a);break;case 22:at=(l=at)||a.memoizedState!==null,vr(e,t,a),at=l;break;default:vr(e,t,a)}}function E0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ms(e)}catch(a){qe(t,t.return,a)}}function LE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new y0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new y0),t;default:throw Error(s(435,e.tag))}}function qc(e,t){var a=LE(e);t.forEach(function(l){var o=FE.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function Jt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,p=t,b=p;e:for(;b!==null;){switch(b.tag){case 27:if(Kr(b.type)){Xe=b.stateNode,Yt=!1;break e}break;case 5:Xe=b.stateNode,Yt=!1;break e;case 3:case 4:Xe=b.stateNode.containerInfo,Yt=!0;break e}b=b.return}if(Xe===null)throw Error(s(160));_0(f,p,o),Xe=null,Yt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)S0(t,e),t=t.sibling}var Nn=null;function S0(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(t,e),en(e),l&4&&(qr(3,e,e.return),hs(3,e),qr(5,e,e.return));break;case 1:Jt(t,e),en(e),l&512&&(at||a===null||Vn(a,a.return)),l&64&&yr&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Nn;if(Jt(t,e),en(e),l&512&&(at||a===null||Vn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Dr]||f[ft]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),At(f,l,a),f[ft]=e,it(f),l=f;break e;case"link":var p=gg("link","href",o).get(l+(a.href||""));if(p){for(var b=0;b<p.length;b++)if(f=p[b],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(b,1);break t}}f=o.createElement(l),At(f,l,a),o.head.appendChild(f);break;case"meta":if(p=gg("meta","content",o).get(l+(a.content||""))){for(b=0;b<p.length;b++)if(f=p[b],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(b,1);break t}}f=o.createElement(l),At(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[ft]=e,it(f),l=f}e.stateNode=l}else yg(o,e.type,e.stateNode);else e.stateNode=pg(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?yg(o,e.type,e.stateNode):pg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ic(e,e.memoizedProps,a.memoizedProps)}break;case 27:Jt(t,e),en(e),l&512&&(at||a===null||Vn(a,a.return)),a!==null&&l&4&&Ic(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Jt(t,e),en(e),l&512&&(at||a===null||Vn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(j){qe(e,e.return,j)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Ic(e,o,a!==null?a.memoizedProps:o)),l&1024&&(kc=!0);break;case 6:if(Jt(t,e),en(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(j){qe(e,e.return,j)}}break;case 3:if(so=null,o=Nn,Nn=ao(t.containerInfo),Jt(t,e),Nn=o,en(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ms(t.containerInfo)}catch(j){qe(e,e.return,j)}kc&&(kc=!1,T0(e));break;case 4:l=Nn,Nn=ao(e.stateNode.containerInfo),Jt(t,e),en(e),Nn=l;break;case 12:Jt(t,e),en(e);break;case 13:Jt(t,e),en(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Zc=_t()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,B=yr,q=at;if(yr=B||o,at=q||A,Jt(t,e),at=q,yr=B,en(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||yr||at||Oa(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(f=A.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=A.stateNode;var P=A.memoizedProps.style,U=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(j){qe(A,A.return,j)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(j){qe(A,A.return,j)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,qc(e,a))));break;case 19:Jt(t,e),en(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 30:break;case 21:break;default:Jt(t,e),en(e)}}function en(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(p0(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=zc(e);Vl(e,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(Xa(p,""),a.flags&=-33);var b=zc(e);Vl(e,b,p);break;case 3:case 4:var A=a.stateNode.containerInfo,B=zc(e);Gc(e,B,A);break;default:throw Error(s(161))}}catch(q){qe(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function T0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;T0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Fr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)v0(e,t.alternate,t),t=t.sibling}function Oa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qr(4,t,t.return),Oa(t);break;case 1:Vn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&h0(t,t.return,a),Oa(t);break;case 27:Ts(t.stateNode);case 26:case 5:Vn(t,t.return),Oa(t);break;case 22:t.memoizedState===null&&Oa(t);break;case 30:Oa(t);break;default:Oa(t)}e=e.sibling}}function Pr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:Pr(o,f,a),hs(4,f);break;case 1:if(Pr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){qe(l,l.return,B)}if(l=f,o=l.updateQueue,o!==null){var b=l.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)Wm(A[o],b)}catch(B){qe(l,l.return,B)}}a&&p&64&&d0(f),ms(f,f.return);break;case 27:g0(f);case 26:case 5:Pr(o,f,a),a&&l===null&&p&4&&m0(f),ms(f,f.return);break;case 12:Pr(o,f,a);break;case 13:Pr(o,f,a),a&&p&4&&E0(o,f);break;case 22:f.memoizedState===null&&Pr(o,f,a),ms(f,f.return);break;case 30:break;default:Pr(o,f,a)}t=t.sibling}}function Fc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ji(a))}function Pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e))}function Yn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)A0(e,t,a,l),t=t.sibling}function A0(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Yn(e,t,a,l),o&2048&&hs(9,t);break;case 1:Yn(e,t,a,l);break;case 3:Yn(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e)));break;case 12:if(o&2048){Yn(e,t,a,l),e=t.stateNode;try{var f=t.memoizedProps,p=f.id,b=f.onPostCommit;typeof b=="function"&&b(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){qe(t,t.return,A)}}else Yn(e,t,a,l);break;case 13:Yn(e,t,a,l);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?Yn(e,t,a,l):ps(e,t):f._visibility&2?Yn(e,t,a,l):(f._visibility|=2,di(e,t,a,l,(t.subtreeFlags&10256)!==0)),o&2048&&Fc(p,t);break;case 24:Yn(e,t,a,l),o&2048&&Pc(t.alternate,t);break;default:Yn(e,t,a,l)}}function di(e,t,a,l,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,p=t,b=a,A=l,B=p.flags;switch(p.tag){case 0:case 11:case 15:di(f,p,b,A,o),hs(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?di(f,p,b,A,o):ps(f,p):(q._visibility|=2,di(f,p,b,A,o)),o&&B&2048&&Fc(p.alternate,p);break;case 24:di(f,p,b,A,o),o&&B&2048&&Pc(p.alternate,p);break;default:di(f,p,b,A,o)}t=t.sibling}}function ps(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:ps(a,l),o&2048&&Fc(l.alternate,l);break;case 24:ps(a,l),o&2048&&Pc(l.alternate,l);break;default:ps(a,l)}t=t.sibling}}var gs=8192;function hi(e){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)x0(e),e=e.sibling}function x0(e){switch(e.tag){case 26:hi(e),e.flags&gs&&e.memoizedState!==null&&bS(Nn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var t=Nn;Nn=ao(e.stateNode.containerInfo),hi(e),Nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=gs,gs=16777216,hi(e),gs=t):hi(e));break;default:hi(e)}}function O0(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 ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];gt=l,w0(l,e)}O0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)R0(e),e=e.sibling}function R0(e){switch(e.tag){case 0:case 11:case 15:ys(e),e.flags&2048&&qr(9,e,e.return);break;case 3:ys(e);break;case 12:ys(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yl(e)):ys(e);break;default:ys(e)}}function Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];gt=l,w0(l,e)}O0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qr(8,t,t.return),Yl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Yl(t));break;default:Yl(t)}e=e.sibling}}function w0(e,t){for(;gt!==null;){var a=gt;switch(a.tag){case 0:case 11:case 15:qr(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ji(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,gt=l;else e:for(a=e;gt!==null;){l=gt;var o=l.sibling,f=l.return;if(b0(l),l===a){gt=null;break e}if(o!==null){o.return=f,gt=o;break e}gt=f}}}var UE={getCacheForType:function(e){var t=Dt(ht),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},HE=typeof WeakMap=="function"?WeakMap:Map,He=0,Pe=null,Te=null,Ne=0,je=0,tn=null,Vr=!1,mi=!1,Vc=!1,br=0,et=0,Yr=0,Ra=0,Yc=0,bn=0,pi=0,vs=null,Xt=null,Xc=!1,Zc=0,Xl=1/0,Zl=null,Xr=null,Tt=0,Zr=null,gi=null,yi=0,Qc=0,Kc=null,C0=null,bs=0,$c=null;function nn(){if((He&2)!==0&&Ne!==0)return Ne&-Ne;if(z.T!==null){var e=ai;return e!==0?e:af()}return ji()}function N0(){bn===0&&(bn=(Ne&536870912)===0||Be?fa():536870912);var e=vn.current;return e!==null&&(e.flags|=32),bn}function rn(e,t,a){(e===Pe&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(vi(e,0),Qr(e,Ne,bn,!1)),Rn(e,a),((He&2)===0||e!==Pe)&&(e===Pe&&((He&2)===0&&(Ra|=a),et===4&&Qr(e,Ne,bn,!1)),Xn(e))}function M0(e,t,a){if((He&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||nr(e,t),o=l?zE(e,t):ef(e,t,!0),f=l;do{if(o===0){mi&&!l&&Qr(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!jE(a)){o=ef(e,t,!1),f=!1;continue}if(o===2){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var b=e;o=vs;var A=b.current.memoizedState.isDehydrated;if(A&&(vi(b,p).flags|=256),p=ef(b,p,!1),p!==2){if(Vc&&!A){b.errorRecoveryDisabledLanes|=f,Ra|=f,o=4;break e}f=Xt,Xt=o,f!==null&&(Xt===null?Xt=f:Xt.push.apply(Xt,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){vi(e,0),Qr(e,t,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qr(l,t,bn,!Vr);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Zc+300-_t(),10<o)){if(Qr(l,t,bn,!Vr),Mr(l,0,!0)!==0)break e;l.timeoutHandle=sg(D0.bind(null,l,a,Xt,Zl,Xc,t,bn,Ra,pi,Vr,f,2,-0,0),o);break e}D0(l,a,Xt,Zl,Xc,t,bn,Ra,pi,Vr,f,0,-0,0)}}break}while(!0);Xn(e)}function D0(e,t,a,l,o,f,p,b,A,B,q,P,U,j){if(e.timeoutHandle=-1,P=t.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Os={stylesheets:null,count:0,unsuspend:vS},x0(t),P=_S(),P!==null)){e.cancelPendingCommit=P(z0.bind(null,e,t,f,a,l,o,p,b,A,q,1,U,j)),Qr(e,f,p,!B);return}z0(e,t,f,a,l,o,p,b,A)}function jE(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!$t(f(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Qr(e,t,a,l){t&=~Yc,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var f=31-Ct(o),p=1<<f;l[f]=-1,o&=~p}a!==0&&il(e,a,t)}function Ql(){return(He&6)===0?(_s(0),!1):!0}function Wc(){if(Te!==null){if(je===0)var e=Te.return;else e=Te,fr=Ea=null,pc(e),ci=null,cs=0,e=Te;for(;e!==null;)f0(e.alternate,e),e=e.return;Te=null}}function vi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,tS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Wc(),Pe=e,Te=a=or(e.current,null),Ne=t,je=0,tn=null,Vr=!1,mi=nr(e,t),Vc=!1,pi=bn=Yc=Ra=Yr=et=0,Xt=vs=null,Xc=!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-Ct(l),f=1<<o;t|=e[o],l&=~f}return br=t,yl(),a}function B0(e,t){be=null,z.H=Hl,t===ts||t===Ol?(t=Km(),je=3):t===Xm?(t=Km(),je=4):je=t===$p?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Te===null&&(et=1,kl(e,mn(t,e.current)))}function L0(){var e=z.H;return z.H=Hl,e===null?Hl:e}function U0(){var e=z.A;return z.A=UE,e}function Jc(){et=4,Vr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Yr&134217727)===0&&(Ra&134217727)===0||Pe===null||Qr(Pe,Ne,bn,!1)}function ef(e,t,a){var l=He;He|=2;var o=L0(),f=U0();(Pe!==e||Ne!==t)&&(Zl=null,vi(e,t)),t=!1;var p=et;e:do try{if(je!==0&&Te!==null){var b=Te,A=tn;switch(je){case 8:Wc(),p=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(t=!0);var B=je;if(je=0,tn=null,bi(e,b,A,B),a&&mi){p=0;break e}break;default:B=je,je=0,tn=null,bi(e,b,A,B)}}IE(),p=et;break}catch(q){B0(e,q)}while(!0);return t&&e.shellSuspendCounter++,fr=Ea=null,He=l,z.H=o,z.A=f,Te===null&&(Pe=null,Ne=0,yl()),p}function IE(){for(;Te!==null;)H0(Te)}function zE(e,t){var a=He;He|=2;var l=L0(),o=U0();Pe!==e||Ne!==t?(Zl=null,Xl=_t()+500,vi(e,t)):mi=nr(e,t);e:do try{if(je!==0&&Te!==null){t=Te;var f=tn;t:switch(je){case 1:je=0,tn=null,bi(e,t,f,1);break;case 2:case 9:if(Zm(f)){je=0,tn=null,j0(t);break}t=function(){je!==2&&je!==9||Pe!==e||(je=7),Xn(e)},f.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Zm(f)?(je=0,tn=null,j0(t)):(je=0,tn=null,bi(e,t,f,7));break;case 5:var p=null;switch(Te.tag){case 26:p=Te.memoizedState;case 5:case 27:var b=Te;if(!p||vg(p)){je=0,tn=null;var A=b.sibling;if(A!==null)Te=A;else{var B=b.return;B!==null?(Te=B,Kl(B)):Te=null}break t}}je=0,tn=null,bi(e,t,f,5);break;case 6:je=0,tn=null,bi(e,t,f,6);break;case 8:Wc(),et=6;break e;default:throw Error(s(462))}}GE();break}catch(q){B0(e,q)}while(!0);return fr=Ea=null,z.H=l,z.A=o,He=a,Te!==null?0:(Pe=null,Ne=0,yl(),et)}function GE(){for(;Te!==null&&!Mi();)H0(Te)}function H0(e){var t=u0(e.alternate,e,br);e.memoizedProps=e.pendingProps,t===null?Kl(e):Te=t}function j0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=r0(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=r0(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:pc(t);default:f0(a,t),t=Te=Im(t,br),t=u0(a,t,br)}e.memoizedProps=e.pendingProps,t===null?Kl(e):Te=t}function bi(e,t,a,l){fr=Ea=null,pc(t),ci=null,cs=0;var o=t.return;try{if(CE(e,o,t,a,Ne)){et=1,kl(e,mn(a,e.current)),Te=null;return}}catch(f){if(o!==null)throw Te=o,f;et=1,kl(e,mn(a,e.current)),Te=null;return}t.flags&32768?(Be||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Vr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),I0(t,e)):Kl(t)}function Kl(e){var t=e;do{if((t.flags&32768)!==0){I0(t,Vr);return}e=t.return;var a=ME(t.alternate,t,br);if(a!==null){Te=a;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);et===0&&(et=5)}function I0(e,t){do{var a=DE(e.alternate,e);if(a!==null){a.flags&=32767,Te=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=a}while(e!==null);et=6,Te=null}function z0(e,t,a,l,o,f,p,b,A){e.cancelPendingCommit=null;do $l();while(Tt!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=Pu,Eu(e,a,f,p,b,A),e===Pe&&(Te=Pe=null,Ne=0),gi=t,Zr=e,yi=a,Qc=f,Kc=o,C0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,PE(ua,function(){return P0(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,o=K.p,K.p=2,p=He,He|=4;try{BE(e,t,a)}finally{He=p,K.p=o,z.T=l}}Tt=1,G0(),k0(),q0()}}function G0(){if(Tt===1){Tt=0;var e=Zr,t=gi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{S0(t,e);var f=hf,p=wm(e.containerInfo),b=f.focusedElem,A=f.selectionRange;if(p!==b&&b&&b.ownerDocument&&Rm(b.ownerDocument.documentElement,b)){if(A!==null&&zu(b)){var B=A.start,q=A.end;if(q===void 0&&(q=B),"selectionStart"in b)b.selectionStart=B,b.selectionEnd=Math.min(q,b.value.length);else{var P=b.ownerDocument||document,U=P&&P.defaultView||window;if(U.getSelection){var j=U.getSelection(),he=b.textContent.length,fe=Math.min(A.start,he),ke=A.end===void 0?fe:Math.min(A.end,he);!j.extend&&fe>ke&&(p=ke,ke=fe,fe=p);var M=Om(b,fe),R=Om(b,ke);if(M&&R&&(j.rangeCount!==1||j.anchorNode!==M.node||j.anchorOffset!==M.offset||j.focusNode!==R.node||j.focusOffset!==R.offset)){var D=P.createRange();D.setStart(M.node,M.offset),j.removeAllRanges(),fe>ke?(j.addRange(D),j.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),j.addRange(D))}}}}for(P=[],j=b;j=j.parentNode;)j.nodeType===1&&P.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var F=P[b];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}uo=!!df,hf=df=null}finally{He=o,K.p=l,z.T=a}}e.current=t,Tt=2}}function k0(){if(Tt===2){Tt=0;var e=Zr,t=gi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{v0(e,t.alternate,t)}finally{He=o,K.p=l,z.T=a}}Tt=3}}function q0(){if(Tt===4||Tt===3){Tt=0,Di();var e=Zr,t=gi,a=yi,l=C0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Tt=5:(Tt=0,gi=Zr=null,F0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Xr=null),Hi(a),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(fn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=z.T,o=K.p,K.p=2,z.T=null;try{for(var f=e.onRecoverableError,p=0;p<l.length;p++){var b=l[p];f(b.value,{componentStack:b.stack})}}finally{z.T=t,K.p=o}}(yi&3)!==0&&$l(),Xn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===$c?bs++:(bs=0,$c=e):bs=0,_s(0)}}function F0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ji(t)))}function $l(e){return G0(),k0(),q0(),P0()}function P0(){if(Tt!==5)return!1;var e=Zr,t=Qc;Qc=0;var a=Hi(yi),l=z.T,o=K.p;try{K.p=32>a?32:a,z.T=null,a=Kc,Kc=null;var f=Zr,p=yi;if(Tt=0,gi=Zr=null,yi=0,(He&6)!==0)throw Error(s(331));var b=He;if(He|=4,R0(f.current),A0(f,f.current,p,a),He=b,_s(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(fn,f)}catch{}return!0}finally{K.p=o,z.T=l,F0(e,t)}}function V0(e,t,a){t=mn(a,t),t=Cc(e.stateNode,t,2),e=Ir(e,t,2),e!==null&&(Rn(e,2),Xn(e))}function qe(e,t,a){if(e.tag===3)V0(e,e,a);else for(;t!==null;){if(t.tag===3){V0(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xr===null||!Xr.has(l))){e=mn(a,e),a=Qp(2),l=Ir(t,a,2),l!==null&&(Kp(a,l,t,e),Rn(l,2),Xn(l));break}}t=t.return}}function tf(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new HE;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(a)||(Vc=!0,o.add(a),e=kE.bind(null,e,t,a),t.then(e,e))}function kE(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Pe===e&&(Ne&a)===a&&(et===4||et===3&&(Ne&62914560)===Ne&&300>_t()-Zc?(He&2)===0&&vi(e,0):Yc|=a,pi===Ne&&(pi=0)),Xn(e)}function Y0(e,t){t===0&&(t=da()),e=ei(e,t),e!==null&&(Rn(e,t),Xn(e))}function qE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Y0(e,a)}function FE(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Y0(e,a)}function PE(e,t){return Gt(e,t)}var Wl=null,_i=null,nf=!1,Jl=!1,rf=!1,wa=0;function Xn(e){e!==_i&&e.next===null&&(_i===null?Wl=_i=e:_i=_i.next=e),Jl=!0,nf||(nf=!0,YE())}function _s(e,t){if(!rf&&Jl){rf=!0;do for(var a=!1,l=Wl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var p=l.suspendedLanes,b=l.pingedLanes;f=(1<<31-Ct(42|e)+1)-1,f&=o&~(p&~b),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,K0(l,f))}else f=Ne,f=Mr(l,l===Pe?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||nr(l,f)||(a=!0,K0(l,f));l=l.next}while(a);rf=!1}}function VE(){X0()}function X0(){Jl=nf=!1;var e=0;wa!==0&&(eS()&&(e=wa),wa=0);for(var t=_t(),a=null,l=Wl;l!==null;){var o=l.next,f=Z0(l,t);f===0?(l.next=null,a===null?Wl=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(Jl=!0)),l=o}_s(e)}function Z0(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-Ct(f),b=1<<p,A=o[p];A===-1?((b&a)===0||(b&l)!==0)&&(o[p]=_u(b,t)):A<=t&&(e.expiredLanes|=b),f&=~b}if(t=Pe,a=Ne,a=Mr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&xn(l),Hi(a)){case 2:case 8:a=Bi;break;case 32:a=ua;break;case 268435456:a=Fa;break;default:a=ua}return l=Q0.bind(null,e),a=Gt(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&xn(l),e.callbackPriority=2,e.callbackNode=null,2}function Q0(e,t){if(Tt!==0&&Tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if($l()&&e.callbackNode!==a)return null;var l=Ne;return l=Mr(e,e===Pe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(M0(e,l,t),Z0(e,_t()),e.callbackNode!=null&&e.callbackNode===a?Q0.bind(null,e):null)}function K0(e,t){if($l())return null;M0(e,t,!0)}function YE(){nS(function(){(He&6)!==0?Gt(oa,VE):X0()})}function af(){return wa===0&&(wa=fa()),wa}function $0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cl(""+e)}function W0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function XE(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var f=$0((o[Nt]||null).action),p=l.submitter;p&&(t=(t=p[Nt]||null)?$0(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var b=new ml("action","action",null,l,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(wa!==0){var A=p?W0(o,p):new FormData(o);Ac(a,{pending:!0,data:A,method:o.method,action:f},null,A)}}else typeof f=="function"&&(b.preventDefault(),A=p?W0(o,p):new FormData(o),Ac(a,{pending:!0,data:A,method:o.method,action:f},f,A))},currentTarget:o}]})}}for(var sf=0;sf<Fu.length;sf++){var lf=Fu[sf],ZE=lf.toLowerCase(),QE=lf[0].toUpperCase()+lf.slice(1);Cn(ZE,"on"+QE)}Cn(Mm,"onAnimationEnd"),Cn(Dm,"onAnimationIteration"),Cn(Bm,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(dE,"onTransitionRun"),Cn(hE,"onTransitionStart"),Cn(mE,"onTransitionCancel"),Cn(Lm,"onTransitionEnd"),J("onMouseEnter",["mouseout","mouseover"]),J("onMouseLeave",["mouseout","mouseover"]),J("onPointerEnter",["pointerout","pointerover"]),J("onPointerLeave",["pointerout","pointerover"]),X("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),X("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),X("onBeforeInput",["compositionend","keypress","textInput","paste"]),X("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="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(" "),KE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Es));function J0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var p=l.length-1;0<=p;p--){var b=l[p],A=b.instance,B=b.currentTarget;if(b=b.listener,A!==f&&o.isPropagationStopped())break e;f=b,o.currentTarget=B;try{f(o)}catch(q){Gl(q)}o.currentTarget=null,f=A}else for(p=0;p<l.length;p++){if(b=l[p],A=b.instance,B=b.currentTarget,b=b.listener,A!==f&&o.isPropagationStopped())break e;f=b,o.currentTarget=B;try{f(o)}catch(q){Gl(q)}o.currentTarget=null,f=A}}}}function Ae(e,t){var a=t[kn];a===void 0&&(a=t[kn]=new Set);var l=e+"__bubble";a.has(l)||(eg(t,e,2,!1),a.add(l))}function of(e,t,a){var l=0;t&&(l|=4),eg(a,e,l,t)}var eo="_reactListening"+Math.random().toString(36).slice(2);function uf(e){if(!e[eo]){e[eo]=!0,le.forEach(function(a){a!=="selectionchange"&&(KE.has(a)||of(a,!1,e),of(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eo]||(t[eo]=!0,of("selectionchange",!1,t))}}function eg(e,t,a,l){switch(Ag(t)){case 2:var o=TS;break;case 8:o=AS;break;default:o=Tf}a=o.bind(null,t,a,e),o=void 0,!Nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function cf(e,t,a,l,o){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var b=l.stateNode.containerInfo;if(b===o)break;if(p===4)for(p=l.return;p!==null;){var A=p.tag;if((A===3||A===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;b!==null;){if(p=rr(b),p===null)return;if(A=p.tag,A===5||A===6||A===26||A===27){l=f=p;continue e}b=b.parentNode}}l=l.return}lm(function(){var B=f,q=wu(a),P=[];e:{var U=Um.get(e);if(U!==void 0){var j=ml,he=e;switch(e){case"keypress":if(dl(a)===0)break e;case"keydown":case"keyup":j=P_;break;case"focusin":he="focus",j=Lu;break;case"focusout":he="blur",j=Lu;break;case"beforeblur":case"afterblur":j=Lu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=D_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=X_;break;case Mm:case Dm:case Bm:j=U_;break;case Lm:j=Q_;break;case"scroll":case"scrollend":j=N_;break;case"wheel":j=$_;break;case"copy":case"cut":case"paste":j=j_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=dm;break;case"toggle":case"beforetoggle":j=J_}var fe=(t&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?U!==null?U+"Capture":null:U;fe=[];for(var R=B,D;R!==null;){var F=R;if(D=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||D===null||M===null||(F=Gi(R,M),F!=null&&fe.push(Ss(R,F,D))),ke)break;R=R.return}0<fe.length&&(U=new j(U,he,null,a,q),P.push({event:U,listeners:fe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",U&&a!==Ru&&(he=a.relatedTarget||a.fromElement)&&(rr(he)||he[Et]))break e;if((j||U)&&(U=q.window===q?q:(U=q.ownerDocument)?U.defaultView||U.parentWindow:window,j?(he=a.relatedTarget||a.toElement,j=B,he=he?rr(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(j=null,he=B),j!==he)){if(fe=cm,F="onMouseLeave",M="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(fe=dm,F="onPointerLeave",M="onPointerEnter",R="pointer"),ke=j==null?U:Br(j),D=he==null?U:Br(he),U=new fe(F,R+"leave",j,a,q),U.target=ke,U.relatedTarget=D,F=null,rr(q)===B&&(fe=new fe(M,R+"enter",he,a,q),fe.target=D,fe.relatedTarget=ke,F=fe),ke=F,j&&he)t:{for(fe=j,M=he,R=0,D=fe;D;D=Ei(D))R++;for(D=0,F=M;F;F=Ei(F))D++;for(;0<R-D;)fe=Ei(fe),R--;for(;0<D-R;)M=Ei(M),D--;for(;R--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;j!==null&&tg(P,U,j,fe,!1),he!==null&&ke!==null&&tg(P,ke,he,fe,!0)}}e:{if(U=B?Br(B):window,j=U.nodeName&&U.nodeName.toLowerCase(),j==="select"||j==="input"&&U.type==="file")var ne=_m;else if(vm(U))if(Em)ne=uE;else{ne=lE;var Ee=sE}else j=U.nodeName,!j||j.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&Ou(B.elementType)&&(ne=_m):ne=oE;if(ne&&(ne=ne(e,B))){bm(P,ne,a,q);break e}Ee&&Ee(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&xu(U,"number",U.value)}switch(Ee=B?Br(B):window,e){case"focusin":(vm(Ee)||Ee.contentEditable==="true")&&($a=Ee,Gu=B,Zi=null);break;case"focusout":Zi=Gu=$a=null;break;case"mousedown":ku=!0;break;case"contextmenu":case"mouseup":case"dragend":ku=!1,Cm(P,a,q);break;case"selectionchange":if(fE)break;case"keydown":case"keyup":Cm(P,a,q)}var oe;if(Hu)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ka?gm(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(hm&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=om()):(Lr=q,Mu="value"in Lr?Lr.value:Lr.textContent,Ka=!0)),Ee=to(B,de),0<Ee.length&&(de=new fm(de,e,null,a,q),P.push({event:de,listeners:Ee}),oe?de.data=oe:(oe=ym(a),oe!==null&&(de.data=oe)))),(oe=tE?nE(e,a):rE(e,a))&&(de=to(B,"onBeforeInput"),0<de.length&&(Ee=new fm("onBeforeInput","beforeinput",null,a,q),P.push({event:Ee,listeners:de}),Ee.data=oe)),XE(P,e,B,a,q)}J0(P,t)})}function Ss(e,t,a){return{instance:e,listener:t,currentTarget:a}}function to(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=Gi(e,a),o!=null&&l.unshift(Ss(e,o,f)),o=Gi(e,t),o!=null&&l.push(Ss(e,o,f))),e.tag===3)return l;e=e.return}return[]}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,a,l,o){for(var f=t._reactName,p=[];a!==null&&a!==l;){var b=a,A=b.alternate,B=b.stateNode;if(b=b.tag,A!==null&&A===l)break;b!==5&&b!==26&&b!==27||B===null||(A=B,o?(B=Gi(a,f),B!=null&&p.unshift(Ss(a,B,A))):o||(B=Gi(a,f),B!=null&&p.push(Ss(a,B,A)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var $E=/\r\n?/g,WE=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace($E,`
49
+ `).replace(WE,"")}function rg(e,t){return t=ng(t),ng(e)===t}function no(){}function Ge(e,t,a,l,o,f){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xa(e,""+l);break;case"className":qn(e,"class",l);break;case"tabIndex":qn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(e,a,l);break;case"style":im(e,l,f);break;case"data":if(t!=="object"){qn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cl(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Ge(e,t,"name",o.name,o,null),Ge(e,t,"formEncType",o.formEncType,o,null),Ge(e,t,"formMethod",o.formMethod,o,null),Ge(e,t,"formTarget",o.formTarget,o,null)):(Ge(e,t,"encType",o.encType,o,null),Ge(e,t,"method",o.method,o,null),Ge(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cl(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=no);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(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=cl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),Ft(e,"popover",l);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ft(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=w_.get(a)||a,Ft(e,a,l))}}function ff(e,t,a,l,o,f){switch(a){case"style":im(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&Xa(e,""+l);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"onClick":l!=null&&(e.onclick=no);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!C.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),f=e[Nt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ft(e,a,l)}}}function At(e,t,a){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,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ge(e,t,f,p,a,null)}}o&&Ge(e,t,"srcSet",a.srcSet,a,null),l&&Ge(e,t,"src",a.src,a,null);return;case"input":Ae("invalid",e);var b=f=p=o=null,A=null,B=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":o=q;break;case"type":p=q;break;case"checked":A=q;break;case"defaultChecked":B=q;break;case"value":f=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:Ge(e,t,l,q,a,null)}}tm(e,f,b,A,B,p,o,!1),ol(e);return;case"select":Ae("invalid",e),l=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(b=a[o],b!=null))switch(o){case"value":f=b;break;case"defaultValue":p=b;break;case"multiple":l=b;default:Ge(e,t,o,b,a,null)}t=f,a=p,e.multiple=!!l,t!=null?Ya(e,!!l,t,!1):a!=null&&Ya(e,!!l,a,!0);return;case"textarea":Ae("invalid",e),f=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(b=a[p],b!=null))switch(p){case"value":l=b;break;case"defaultValue":o=b;break;case"children":f=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Ge(e,t,p,b,a,null)}rm(e,l,o,f),ol(e);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,t,A,l,a,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<Es.length;l++)Ae(Es[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(B in a)if(a.hasOwnProperty(B)&&(l=a[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ge(e,t,B,l,a,null)}return;default:if(Ou(t)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&ff(e,t,q,l,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(l=a[b],l!=null&&Ge(e,t,b,l,a,null))}function JE(e,t,a,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,f=null,p=null,b=null,A=null,B=null,q=null;for(j in a){var P=a[j];if(a.hasOwnProperty(j)&&P!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":A=P;default:l.hasOwnProperty(j)||Ge(e,t,j,null,l,P)}}for(var U in l){var j=l[U];if(P=a[U],l.hasOwnProperty(U)&&(j!=null||P!=null))switch(U){case"type":f=j;break;case"name":o=j;break;case"checked":B=j;break;case"defaultChecked":q=j;break;case"value":p=j;break;case"defaultValue":b=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==P&&Ge(e,t,U,j,l,P)}}Au(e,p,b,A,B,q,f,o);return;case"select":j=p=b=U=null;for(f in a)if(A=a[f],a.hasOwnProperty(f)&&A!=null)switch(f){case"value":break;case"multiple":j=A;default:l.hasOwnProperty(f)||Ge(e,t,f,null,l,A)}for(o in l)if(f=l[o],A=a[o],l.hasOwnProperty(o)&&(f!=null||A!=null))switch(o){case"value":U=f;break;case"defaultValue":b=f;break;case"multiple":p=f;default:f!==A&&Ge(e,t,o,f,l,A)}t=b,a=p,l=j,U!=null?Ya(e,!!a,U,!1):!!l!=!!a&&(t!=null?Ya(e,!!a,t,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":j=U=null;for(b in a)if(o=a[b],a.hasOwnProperty(b)&&o!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ge(e,t,b,null,l,o)}for(p in l)if(o=l[p],f=a[p],l.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":U=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&Ge(e,t,p,o,l,f)}nm(e,U,j);return;case"option":for(var he in a)if(U=a[he],a.hasOwnProperty(he)&&U!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,t,he,null,l,U)}for(A in l)if(U=l[A],j=a[A],l.hasOwnProperty(A)&&U!==j&&(U!=null||j!=null))switch(A){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ge(e,t,A,U,l,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in a)U=a[fe],a.hasOwnProperty(fe)&&U!=null&&!l.hasOwnProperty(fe)&&Ge(e,t,fe,null,l,U);for(B in l)if(U=l[B],j=a[B],l.hasOwnProperty(B)&&U!==j&&(U!=null||j!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:Ge(e,t,B,U,l,j)}return;default:if(Ou(t)){for(var ke in a)U=a[ke],a.hasOwnProperty(ke)&&U!==void 0&&!l.hasOwnProperty(ke)&&ff(e,t,ke,void 0,l,U);for(q in l)U=l[q],j=a[q],!l.hasOwnProperty(q)||U===j||U===void 0&&j===void 0||ff(e,t,q,U,l,j);return}}for(var M in a)U=a[M],a.hasOwnProperty(M)&&U!=null&&!l.hasOwnProperty(M)&&Ge(e,t,M,null,l,U);for(P in l)U=l[P],j=a[P],!l.hasOwnProperty(P)||U===j||U==null&&j==null||Ge(e,t,P,U,l,j)}var df=null,hf=null;function ro(e){return e.nodeType===9?e:e.ownerDocument}function ag(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 ig(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 mf(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 pf=null;function eS(){var e=window.event;return e&&e.type==="popstate"?e===pf?!1:(pf=e,!0):(pf=null,!1)}var sg=typeof setTimeout=="function"?setTimeout:void 0,tS=typeof clearTimeout=="function"?clearTimeout:void 0,lg=typeof Promise=="function"?Promise:void 0,nS=typeof queueMicrotask=="function"?queueMicrotask:typeof lg<"u"?function(e){return lg.resolve(null).then(e).catch(rS)}:sg;function rS(e){setTimeout(function(){throw e})}function Kr(e){return e==="head"}function og(e,t){var a=t,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var p=e.ownerDocument;if(a&1&&Ts(p.documentElement),a&2&&Ts(p.body),a&4)for(a=p.head,Ts(a),p=a.firstChild;p;){var b=p.nextSibling,A=p.nodeName;p[Dr]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=b}}if(o===0){e.removeChild(f),Ms(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);Ms(t)}function gf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":gf(a),Qt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function aS(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Dr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Mn(e.nextSibling),e===null)break}return null}function iS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Mn(e.nextSibling),e===null))return null;return e}function yf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function sS(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Mn(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var vf=null;function ug(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function cg(e,t,a){switch(t=ro(a),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 Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qt(e)}var _n=new Map,fg=new Set;function ao(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _r=K.d;K.d={f:lS,r:oS,D:uS,C:cS,L:fS,m:dS,X:mS,S:hS,M:pS};function lS(){var e=_r.f(),t=Ql();return e||t}function oS(e){var t=ar(e);t!==null&&t.tag===5&&t.type==="form"?Mp(t):_r.r(e)}var Si=typeof document>"u"?null:document;function dg(e,t,a){var l=Si;if(l&&typeof t=="string"&&t){var o=hn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),fg.has(o)||(fg.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),At(t,"link",e),it(t),l.head.appendChild(t)))}}function uS(e){_r.D(e),dg("dns-prefetch",e,null)}function cS(e,t){_r.C(e,t),dg("preconnect",e,t)}function fS(e,t,a){_r.L(e,t,a);var l=Si;if(l&&e&&t){var o='link[rel="preload"][as="'+hn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+hn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+hn(a.imageSizes)+'"]')):o+='[href="'+hn(e)+'"]';var f=o;switch(t){case"style":f=Ti(e);break;case"script":f=Ai(e)}_n.has(f)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),_n.set(f,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(As(f))||t==="script"&&l.querySelector(xs(f))||(t=l.createElement("link"),At(t,"link",e),it(t),l.head.appendChild(t)))}}function dS(e,t){_r.m(e,t);var a=Si;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+hn(l)+'"][href="'+hn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!_n.has(f)&&(e=y({rel:"modulepreload",href:e},t),_n.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xs(f)))return}l=a.createElement("link"),At(l,"link",e),it(l),a.head.appendChild(l)}}}function hS(e,t,a){_r.S(e,t,a);var l=Si;if(l&&e){var o=ir(l).hoistableStyles,f=Ti(e);t=t||"default";var p=o.get(f);if(!p){var b={loading:0,preload:null};if(p=l.querySelector(As(f)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=_n.get(f))&&bf(e,a);var A=p=l.createElement("link");it(A),At(A,"link",e),A._p=new Promise(function(B,q){A.onload=B,A.onerror=q}),A.addEventListener("load",function(){b.loading|=1}),A.addEventListener("error",function(){b.loading|=2}),b.loading|=4,io(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:b},o.set(f,p)}}}function mS(e,t){_r.X(e,t);var a=Si;if(a&&e){var l=ir(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(xs(o)),f||(e=y({src:e,async:!0},t),(t=_n.get(o))&&_f(e,t),f=a.createElement("script"),it(f),At(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function pS(e,t){_r.M(e,t);var a=Si;if(a&&e){var l=ir(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(xs(o)),f||(e=y({src:e,async:!0,type:"module"},t),(t=_n.get(o))&&_f(e,t),f=a.createElement("script"),it(f),At(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function hg(e,t,a,l){var o=(o=ue.current)?ao(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ti(a.href),a=ir(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ti(a.href);var f=ir(o).hoistableStyles,p=f.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=o.querySelector(As(e)))&&!f._p&&(p.instance=f,p.state.loading=5),_n.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},_n.set(e,a),f||gS(o,e,a,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ai(a),a=ir(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ti(e){return'href="'+hn(e)+'"'}function As(e){return'link[rel="stylesheet"]['+e+"]"}function mg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function gS(e,t,a,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}),At(t,"link",a),it(t),e.head.appendChild(t))}function Ai(e){return'[src="'+hn(e)+'"]'}function xs(e){return"script[async]"+e}function pg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+hn(a.href)+'"]');if(l)return t.instance=l,it(l),l;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),it(l),At(l,"style",o),io(l,a.precedence,e),t.instance=l;case"stylesheet":o=Ti(a.href);var f=e.querySelector(As(o));if(f)return t.state.loading|=4,t.instance=f,it(f),f;l=mg(a),(o=_n.get(o))&&bf(l,o),f=(e.ownerDocument||e).createElement("link"),it(f);var p=f;return p._p=new Promise(function(b,A){p.onload=b,p.onerror=A}),At(f,"link",l),t.state.loading|=4,io(f,a.precedence,e),t.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(xs(f)))?(t.instance=o,it(o),o):(l=a,(o=_n.get(f))&&(l=y({},a),_f(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),it(o),At(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,io(l,a.precedence,e));return t.instance}function io(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,p=0;p<l.length;p++){var b=l[p];if(b.dataset.precedence===t)f=b;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function bf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function _f(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var so=null;function gg(e,t,a){if(so===null){var l=new Map,o=so=new Map;o.set(a,l)}else o=so,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Dr]||f[ft]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var b=l.get(p);b?b.push(f):l.set(p,[f])}}return l}function yg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function yS(e,t,a){if(a===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 vg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Os=null;function vS(){}function bS(e,t,a){if(Os===null)throw Error(s(475));var l=Os;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ti(a.href),f=e.querySelector(As(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=lo.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=f,it(f);return}f=e.ownerDocument||e,a=mg(a),(o=_n.get(o))&&bf(a,o),f=f.createElement("link"),it(f);var p=f;p._p=new Promise(function(b,A){p.onload=b,p.onerror=A}),At(f,"link",a),t.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=lo.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function _S(){if(Os===null)throw Error(s(475));var e=Os;return e.stylesheets&&e.count===0&&Ef(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Ef(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function lo(){if(this.count--,this.count===0){if(this.stylesheets)Ef(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oo=null;function Ef(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oo=new Map,t.forEach(ES,e),oo=null,lo.call(e))}function ES(e,t){if(!(t.state.loading&4)){var a=oo.get(e);if(a)var l=a.get(null);else{a=new Map,oo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||l,f===l&&a.set(null,o),a.set(p,o),this.count++,l=lo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rs={$$typeof:S,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function SS(e,t,a,l,o,f,p,b){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=Ui(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ui(0),this.hiddenUpdates=Ui(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function bg(e,t,a,l,o,f,p,b,A,B,q,P){return e=new SS(e,t,a,p,b,A,B,P),t=1,f===!0&&(t|=24),f=Wt(3,null,null,t),e.current=f,f.stateNode=e,t=tc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:t},ic(f),e}function _g(e){return e?(e=ti,e):ti}function Eg(e,t,a,l,o,f){o=_g(o),l.context===null?l.context=o:l.pendingContext=o,l=jr(t),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Ir(e,l,t),a!==null&&(rn(a,e,t),rs(a,e,t))}function Sg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Sf(e,t){Sg(e,t),(e=e.alternate)&&Sg(e,t)}function Tg(e){if(e.tag===13){var t=ei(e,67108864);t!==null&&rn(t,e,67108864),Sf(e,67108864)}}var uo=!0;function TS(e,t,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=2,Tf(e,t,a,l)}finally{K.p=f,z.T=o}}function AS(e,t,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=8,Tf(e,t,a,l)}finally{K.p=f,z.T=o}}function Tf(e,t,a,l){if(uo){var o=Af(l);if(o===null)cf(e,t,l,co,a),xg(e,l);else if(OS(o,e,t,a,l))l.stopPropagation();else if(xg(e,l),t&4&&-1<xS.indexOf(e)){for(;o!==null;){var f=ar(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=qt(f.pendingLanes);if(p!==0){var b=f;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var A=1<<31-Ct(p);b.entanglements[1]|=A,p&=~A}Xn(f),(He&6)===0&&(Xl=_t()+500,_s(0))}}break;case 13:b=ei(f,2),b!==null&&rn(b,f,2),Ql(),Sf(f,2)}if(f=Af(l),f===null&&cf(e,t,l,co,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else cf(e,t,l,null,a)}}function Af(e){return e=wu(e),xf(e)}var co=null;function xf(e){if(co=null,e=rr(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return co=e,null}function Ag(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qa()){case oa:return 2;case Bi:return 8;case ua:case bu:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Of=!1,$r=null,Wr=null,Jr=null,ws=new Map,Cs=new Map,ea=[],xS="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 xg(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":Jr=null;break;case"pointerover":case"pointerout":ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(t.pointerId)}}function Ns(e,t,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},t!==null&&(t=ar(t),t!==null&&Tg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function OS(e,t,a,l,o){switch(t){case"focusin":return $r=Ns($r,e,t,a,l,o),!0;case"dragenter":return Wr=Ns(Wr,e,t,a,l,o),!0;case"mouseover":return Jr=Ns(Jr,e,t,a,l,o),!0;case"pointerover":var f=o.pointerId;return ws.set(f,Ns(ws.get(f)||null,e,t,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Cs.set(f,Ns(Cs.get(f)||null,e,t,a,l,o)),!0}return!1}function Og(e){var t=rr(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Ii(e.priority,function(){if(a.tag===13){var l=nn();l=Gn(l);var o=ei(a,l);o!==null&&rn(o,a,l),Sf(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Af(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ru=l,a.target.dispatchEvent(l),Ru=null}else return t=ar(a),t!==null&&Tg(t),e.blockedOn=a,!1;t.shift()}return!0}function Rg(e,t,a){fo(e)&&a.delete(t)}function RS(){Of=!1,$r!==null&&fo($r)&&($r=null),Wr!==null&&fo(Wr)&&(Wr=null),Jr!==null&&fo(Jr)&&(Jr=null),ws.forEach(Rg),Cs.forEach(Rg)}function ho(e,t){e.blockedOn===t&&(e.blockedOn=null,Of||(Of=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,RS)))}var mo=null;function wg(e){mo!==e&&(mo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){mo===e&&(mo=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(xf(l||a)===null)continue;break}var f=ar(a);f!==null&&(e.splice(t,3),t-=3,Ac(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ms(e){function t(A){return ho(A,e)}$r!==null&&ho($r,e),Wr!==null&&ho(Wr,e),Jr!==null&&ho(Jr,e),ws.forEach(t),Cs.forEach(t);for(var a=0;a<ea.length;a++){var l=ea[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ea.length&&(a=ea[0],a.blockedOn===null);)Og(a),a.blockedOn===null&&ea.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],p=o[Nt]||null;if(typeof f=="function")p||wg(a);else if(p){var b=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[Nt]||null)b=p.formAction;else if(xf(o)!==null)continue}else b=p.action;typeof b=="function"?a[l+1]=b:(a.splice(l,3),l-=3),wg(a)}}}function Rf(e){this._internalRoot=e}po.prototype.render=Rf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=nn();Eg(a,l,e,t,null,null)},po.prototype.unmount=Rf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Eg(e.current,2,null,e,null,null),Ql(),t[Et]=null}};function po(e){this._internalRoot=e}po.prototype.unstable_scheduleHydration=function(e){if(e){var t=ji();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ea.length&&t!==0&&t<ea[a].priority;a++);ea.splice(a,0,e),a===0&&Og(e)}};var Cg=r.version;if(Cg!=="19.1.0")throw Error(s(527,Cg,"19.1.0"));K.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=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var wS={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!go.isDisabled&&go.supportsFiber)try{fn=go.inject(wS),wt=go}catch{}}return Bs.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,l="",o=Vp,f=Yp,p=Xp,b=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(b=t.unstable_transitionCallbacks)),t=bg(e,1,!1,null,null,a,l,o,f,p,b,null),e[Et]=t.current,uf(e),new Rf(t)},Bs.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=Vp,p=Yp,b=Xp,A=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),t=bg(e,1,!0,t,a??null,l,o,f,p,b,A,B),t.context=_g(null),a=t.current,l=nn(),l=Gn(l),o=jr(l),o.callback=null,Ir(a,o,l),a=l,t.current.lanes=a,Rn(t,a),Xn(t),e[Et]=t.current,uf(e),new po(t)},Bs.version="19.1.0",Bs}var zg;function IS(){if(zg)return Cf.exports;zg=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(r){console.error(r)}}return n(),Cf.exports=jS(),Cf.exports}var zS=IS(),H=au();const g1=mh(H);var Lf={exports:{}},Uf={};/**
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 Gg;function GS(){if(Gg)return Uf;Gg=1;var n=au();function r(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:r,s=n.useSyncExternalStore,u=n.useRef,c=n.useEffect,d=n.useMemo,h=n.useDebugValue;return Uf.useSyncExternalStoreWithSelector=function(m,g,y,_,T){var L=u(null);if(L.current===null){var N={hasValue:!1,value:null};L.current=N}else N=L.current;L=d(function(){function G(x){if(!E){if(E=!0,w=x,x=_(x),T!==void 0&&N.hasValue){var Z=N.value;if(T(Z,x))return S=Z}return S=x}if(Z=S,i(w,x))return Z;var $=_(x);return T!==void 0&&T(Z,$)?(w=x,Z):(w=x,S=$)}var E=!1,w,S,I=y===void 0?null:y;return[function(){return G(g())},I===null?void 0:function(){return G(I())}]},[g,y,_,T]);var V=s(m,L[0],L[1]);return c(function(){N.hasValue=!0,N.value=V},[V]),h(V),V},Uf}var kg;function kS(){return kg||(kg=1,Lf.exports=GS()),Lf.exports}var qS=kS(),FS=H.version.startsWith("19"),PS=Symbol.for(FS?"react.transitional.element":"react.element"),VS=Symbol.for("react.portal"),YS=Symbol.for("react.fragment"),XS=Symbol.for("react.strict_mode"),ZS=Symbol.for("react.profiler"),QS=Symbol.for("react.consumer"),KS=Symbol.for("react.context"),y1=Symbol.for("react.forward_ref"),$S=Symbol.for("react.suspense"),WS=Symbol.for("react.suspense_list"),ph=Symbol.for("react.memo"),JS=Symbol.for("react.lazy"),e2=y1,t2=ph;function n2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case PS:switch(n=n.type,n){case YS:case ZS:case XS:case $S:case WS:return n;default:switch(n=n&&n.$$typeof,n){case KS:case y1:case JS:case ph:return n;case QS:return n;default:return r}}case VS:return r}}}function r2(n){return n2(n)===ph}function a2(n,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,g,y,_,T;function L(w,S){return m=w,g=S,y=n(m,g),_=r(s,g),T=i(y,_,g),h=!0,T}function N(){return y=n(m,g),r.dependsOnOwnProps&&(_=r(s,g)),T=i(y,_,g),T}function V(){return n.dependsOnOwnProps&&(y=n(m,g)),r.dependsOnOwnProps&&(_=r(s,g)),T=i(y,_,g),T}function G(){const w=n(m,g),S=!d(w,y);return y=w,S&&(T=i(y,_,g)),T}function E(w,S){const I=!c(S,g),x=!u(w,m,S,g);return m=w,g=S,I&&x?N():I?V():x?G():T}return function(S,I){return h?E(S,I):L(S,I)}}function i2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(n,u),d=i(n,u),h=s(n,u);return a2(c,d,h,n,u)}function s2(n,r){const i={};for(const s in n){const u=n[s];typeof u=="function"&&(i[s]=(...c)=>r(u(...c)))}return i}function Hd(n){return function(i){const s=n(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function qg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function v1(n,r){return function(s,{displayName:u}){const c=function(h,m){return c.dependsOnOwnProps?c.mapToProps(h,m):c.mapToProps(h,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(h,m){c.mapToProps=n,c.dependsOnOwnProps=qg(n);let g=c(h,m);return typeof g=="function"&&(c.mapToProps=g,c.dependsOnOwnProps=qg(g),g=c(h,m)),g},c}}function gh(n,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function l2(n){return n&&typeof n=="object"?Hd(r=>s2(n,r)):n?typeof n=="function"?v1(n):gh(n,"mapDispatchToProps"):Hd(r=>({dispatch:r}))}function o2(n){return n?typeof n=="function"?v1(n):gh(n,"mapStateToProps"):Hd(()=>({}))}function u2(n,r,i){return{...i,...n,...r}}function c2(n){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,d;return function(m,g,y){const _=n(m,g,y);return c?u(_,d)||(d=_):(c=!0,d=_),d}}}function f2(n){return n?typeof n=="function"?c2(n):gh(n,"mergeProps"):()=>u2}function d2(n){n()}function h2(){let n=null,r=null;return{clear(){n=null,r=null},notify(){d2(()=>{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=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:n=u,function(){!s||n===null||(s=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var Fg={notify(){},get:()=>[]};function b1(n,r){let i,s=Fg,u=0,c=!1;function d(V){y();const G=s.subscribe(V);let E=!1;return()=>{E||(E=!0,G(),_())}}function h(){s.notify()}function m(){N.onStateChange&&N.onStateChange()}function g(){return c}function y(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),s=h2())}function _(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Fg)}function T(){c||(c=!0,y())}function L(){c&&(c=!1,_())}const N={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:g,trySubscribe:T,tryUnsubscribe:L,getListeners:()=>s};return N}var m2=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",p2=m2(),g2=()=>typeof navigator<"u"&&navigator.product==="ReactNative",y2=g2(),v2=()=>p2||y2?H.useLayoutEffect:H.useEffect,Qo=v2();function Pg(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Hf(n,r){if(Pg(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),s=Object.keys(r);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!Pg(n[i[u]],r[i[u]]))return!1;return!0}var b2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},E2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},S2={[e2]:E2,[t2]:_1};function Vg(n){return r2(n)?_1:S2[n.$$typeof]||b2}var T2=Object.defineProperty,A2=Object.getOwnPropertyNames,Yg=Object.getOwnPropertySymbols,x2=Object.getOwnPropertyDescriptor,O2=Object.getPrototypeOf,Xg=Object.prototype;function jd(n,r){if(typeof r!="string"){if(Xg){const c=O2(r);c&&c!==Xg&&jd(n,c)}let i=A2(r);Yg&&(i=i.concat(Yg(r)));const s=Vg(n),u=Vg(r);for(let c=0;c<i.length;++c){const d=i[c];if(!_2[d]&&!(u&&u[d])&&!(s&&s[d])){const h=x2(r,d);try{T2(n,d,h)}catch{}}}}return n}var R2=Symbol.for("react-redux-context"),w2=typeof globalThis<"u"?globalThis:{};function C2(){if(!H.createContext)return{};const n=w2[R2]??=new Map;let r=n.get(H.createContext);return r||(r=H.createContext(null),n.set(H.createContext,r)),r}var Rr=C2(),N2=[null,null];function M2(n,r,i){Qo(()=>n(...r),i)}function D2(n,r,i,s,u,c){n.current=s,i.current=!1,u.current&&(u.current=null,c())}function B2(n,r,i,s,u,c,d,h,m,g,y){if(!n)return()=>{};let _=!1,T=null;const L=()=>{if(_||!h.current)return;const V=r.getState();let G,E;try{G=s(V,u.current)}catch(w){E=w,T=w}E||(T=null),G===c.current?d.current||g():(c.current=G,m.current=G,d.current=!0,y())};return i.onStateChange=L,i.trySubscribe(),L(),()=>{if(_=!0,i.tryUnsubscribe(),i.onStateChange=null,T)throw T}}function L2(n,r){return n===r}function U2(n,r,i,{pure:s,areStatesEqual:u=L2,areOwnPropsEqual:c=Hf,areStatePropsEqual:d=Hf,areMergedPropsEqual:h=Hf,forwardRef:m=!1,context:g=Rr}={}){const y=g,_=o2(n),T=l2(r),L=f2(i),N=!!n;return G=>{const E=G.displayName||G.name||"Component",w=`Connect(${E})`,S={shouldHandleStateChanges:N,displayName:w,wrappedComponentName:E,WrappedComponent:G,initMapStateToProps:_,initMapDispatchToProps:T,initMergeProps:L,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function I($){const[ie,_e,Re]=H.useMemo(()=>{const{reactReduxForwardedRef:Ze,...Gt}=$;return[$.context,Ze,Gt]},[$]),se=H.useMemo(()=>{let Ze=y;return ie?.Consumer,Ze},[ie,y]),me=H.useContext(se),ce=!!$.store&&!!$.store.getState&&!!$.store.dispatch,Ve=!!me&&!!me.store,ve=ce?$.store:me.store,z=Ve?me.getServerState:ve.getState,K=H.useMemo(()=>i2(ve.dispatch,S),[ve]),[ee,Se]=H.useMemo(()=>{if(!N)return N2;const Ze=b1(ve,ce?void 0:me.subscription),Gt=Ze.notifyNestedSubs.bind(Ze);return[Ze,Gt]},[ve,ce,me]),O=H.useMemo(()=>ce?me:{...me,subscription:ee},[ce,me,ee]),k=H.useRef(void 0),W=H.useRef(Re),Y=H.useRef(void 0),te=H.useRef(!1),re=H.useRef(!1),ue=H.useRef(void 0);Qo(()=>(re.current=!0,()=>{re.current=!1}),[]);const $e=H.useMemo(()=>()=>Y.current&&Re===W.current?Y.current:K(ve.getState(),Re),[ve,Re]),Ue=H.useMemo(()=>Gt=>ee?B2(N,ve,ee,K,W,k,te,re,Y,Se,Gt):()=>{},[ee]);M2(D2,[W,k,te,Re,Y,Se]);let bt;try{bt=H.useSyncExternalStore(Ue,$e,z?()=>K(z(),Re):$e)}catch(Ze){throw ue.current&&(Ze.message+=`
58
+ The error may be correlated with this previous error:
59
+ ${ue.current.stack}
60
+
61
+ `),Ze}Qo(()=>{ue.current=void 0,Y.current=void 0,k.current=bt});const zn=H.useMemo(()=>H.createElement(G,{...bt,ref:_e}),[_e,G,bt]);return H.useMemo(()=>N?H.createElement(se.Provider,{value:O},zn):zn,[se,zn,O])}const Z=H.memo(I);if(Z.WrappedComponent=G,Z.displayName=I.displayName=w,m){const ie=H.forwardRef(function(Re,se){return H.createElement(Z,{...Re,reactReduxForwardedRef:se})});return ie.displayName=w,ie.WrappedComponent=G,jd(ie,G)}return jd(Z,G)}}var H2=U2;function j2(n){const{children:r,context:i,serverState:s,store:u}=n,c=H.useMemo(()=>{const m=b1(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=H.useMemo(()=>u.getState(),[u]);Qo(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,d]);const h=i||Rr;return H.createElement(h.Provider,{value:c},r)}var I2=j2;function yh(n=Rr){return function(){return H.useContext(n)}}var E1=yh();function S1(n=Rr){const r=n===Rr?E1:yh(n),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var z2=S1();function G2(n=Rr){const r=n===Rr?z2:S1(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var k2=G2(),q2=(n,r)=>n===r;function F2(n=Rr){const r=n===Rr?E1:yh(n),i=(s,u={})=>{const{equalityFn:c=q2}=typeof u=="function"?{equalityFn:u}:u,d=r(),{store:h,subscription:m,getServerState:g}=d;H.useRef(!0);const y=H.useCallback({[s.name](T){return s(T)}}[s.name],[s]),_=qS.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,g||h.getState,y,c);return H.useDebugValue(_),_};return Object.assign(i,{withTypes:()=>i}),i}var P2=F2(),jf={exports:{}};/*!
62
+ Copyright (c) 2018 Jed Watson.
63
+ Licensed under the MIT License (MIT), see
64
+ http://jedwatson.github.io/classnames
65
+ */var Zg;function V2(){return Zg||(Zg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(c=u(c,s(h)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var h in c)r.call(c,h)&&c[h]&&(d=u(d,h));return d}function u(c,d){return d?c?c+" "+d:c+d:c}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}(jf)),jf.exports}var Y2=V2();const Q=mh(Y2);var Id=function(n,r){return Id=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])},Id(n,r)};function Tn(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Id(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ae=function(){return ae=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ae.apply(this,arguments)};function iu(n,r){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.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++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(i[s[u]]=n[s[u]]);return i}function $n(n,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return n.concat(c||Array.prototype.slice.call(r))}function Qn(n,r){var i=r&&r.cache?r.cache:J2,s=r&&r.serializer?r.serializer:$2,u=r&&r.strategy?r.strategy:Q2;return u(n,{cache:i,serializer:s})}function X2(n){return n==null||typeof n=="number"||typeof n=="boolean"}function Z2(n,r,i,s){var u=X2(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=n.call(this,s),r.set(u,c)),c}function T1(n,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=n.apply(this,s),r.set(u,c)),c}function A1(n,r,i,s,u){return i.bind(r,n,s,u)}function Q2(n,r){var i=n.length===1?Z2:T1;return A1(n,this,i,r.cache.create(),r.serializer)}function K2(n,r){return A1(n,this,T1,r.cache.create(),r.serializer)}var $2=function(){return JSON.stringify(arguments)},W2=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(r){return this.cache[r]},n.prototype.set=function(r,i){this.cache[r]=i},n}(),J2={create:function(){return new W2}},Kn={variadic:K2},we;(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"})(we||(we={}));var Ye;(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"})(Ye||(Ye={}));var Ri;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ri||(Ri={}));function Qg(n){return n.type===Ye.literal}function eT(n){return n.type===Ye.argument}function x1(n){return n.type===Ye.number}function O1(n){return n.type===Ye.date}function R1(n){return n.type===Ye.time}function w1(n){return n.type===Ye.select}function C1(n){return n.type===Ye.plural}function tT(n){return n.type===Ye.pound}function N1(n){return n.type===Ye.tag}function M1(n){return!!(n&&typeof n=="object"&&n.type===Ri.number)}function zd(n){return!!(n&&typeof n=="object"&&n.type===Ri.dateTime)}var D1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,nT=/(?:[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 rT(n){var r={};return n.replace(nT,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var aT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function iT(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(aT).filter(function(T){return T.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],d=c.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),g=0,y=m;g<y.length;g++){var _=y[g];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function sT(n){return n.replace(/^(.*?)-/,"")}var Kg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,B1=/^(@+)?(\+|#+)?[rs]?$/g,lT=/(\*)(0+)|(#+)(0+)|(0+)/g,L1=/^(0+)$/;function $g(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(B1,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function U1(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 oT(n){var r;if(n[0]==="E"&&n[1]==="E"?(r={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(r={notation:"scientific"},n=n.slice(1)),r){var i=n.slice(0,2);if(i==="+!"?(r.signDisplay="always",n=n.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",n=n.slice(2)),!L1.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Wg(n){var r={},i=U1(n);return i||r}function uT(n){for(var r={},i=0,s=n;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=sT(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ae(ae(ae({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return ae(ae({},m),Wg(g))},{}));continue;case"engineering":r=ae(ae(ae({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return ae(ae({},m),Wg(g))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(lT,function(m,g,y,_,T,L){if(g)r.minimumIntegerDigits=y.length;else{if(_&&T)throw new Error("We currently do not support maximum integer digits");if(L)throw new Error("We currently do not support exact integer digits")}return""});continue}if(L1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(Kg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Kg,function(m,g,y,_,T,L){return y==="*"?r.minimumFractionDigits=g.length:_&&_[0]==="#"?r.maximumFractionDigits=_.length:T&&L?(r.minimumFractionDigits=T.length,r.maximumFractionDigits=T.length+L.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var c=u.options[0];c==="w"?r=ae(ae({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ae(ae({},r),$g(c)));continue}if(B1.test(u.stem)){r=ae(ae({},r),$g(u.stem));continue}var d=U1(u.stem);d&&(r=ae(ae({},r),d));var h=oT(u.stem);h&&(r=ae(ae({},r),h))}return r}var vo={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function cT(n,r){for(var i="",s=0;s<n.length;s++){var u=n.charAt(s);if(u==="j"){for(var c=0;s+1<n.length&&n.charAt(s+1)===u;)c++,s++;var d=1+(c&1),h=c<2?1:3+(c>>1),m="a",g=fT(r);for((g=="H"||g=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function fT(n){var r=n.hourCycle;if(r===void 0&&n.hourCycles&&n.hourCycles.length&&(r=n.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,s;i!=="root"&&(s=n.maximize().region);var u=vo[s||""]||vo[i||""]||vo["".concat(i,"-001")]||vo["001"];return u[0]}var If,dT=new RegExp("^".concat(D1.source,"*")),hT=new RegExp("".concat(D1.source,"*$"));function Me(n,r){return{start:n,end:r}}var mT=!!String.prototype.startsWith&&"_a".startsWith("a",1),pT=!!String.fromCodePoint,gT=!!Object.fromEntries,yT=!!String.prototype.codePointAt,vT=!!String.prototype.trimStart,bT=!!String.prototype.trimEnd,_T=!!Number.isSafeInteger,ET=_T?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Gd=!0;try{var ST=j1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gd=((If=ST.exec("a"))===null||If===void 0?void 0:If[0])==="a"}catch{Gd=!1}var Jg=mT?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},kd=pT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,d;u>c;){if(d=r[c++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},ey=gT?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],d=c[0],h=c[1];i[d]=h}return i},H1=yT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},TT=vT?function(r){return r.trimStart()}:function(r){return r.replace(dT,"")},AT=bT?function(r){return r.trimEnd()}:function(r){return r.replace(hT,"")};function j1(n,r){return new RegExp(n,r)}var qd;if(Gd){var ty=j1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qd=function(r,i){var s;ty.lastIndex=i;var u=ty.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else qd=function(r,i){for(var s=[];;){var u=H1(r,i);if(u===void 0||I1(u)||wT(u))break;s.push(u),i+=u>=65536?2:1}return kd.apply(void 0,s)};var xT=function(){function n(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return 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(r,i,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var d=this.parseArgument(r,s);if(d.err)return d;u.push(d.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:Ye.pound,location:Me(h,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(we.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&Fd(this.peek()||0)){var d=this.parseTag(r,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(r,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ye.literal,value:"<".concat(u,"/>"),location:Me(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var d=c.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Fd(this.char()))return this.error(we.INVALID_TAG,Me(h,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(we.UNMATCHED_CLOSING_TAG,Me(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ye.tag,value:u,children:d,location:Me(s,this.clonePosition())},err:null}:this.error(we.INVALID_TAG,Me(h,this.clonePosition())))}else return this.error(we.UNCLOSED_TAG,Me(s,this.clonePosition()))}else return this.error(we.INVALID_TAG,Me(s,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&RT(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var d=this.tryParseUnquoted(r,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Me(s,this.clonePosition());return{val:{type:Ye.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!OT(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return kd.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),kd(s))},n.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(we.EMPTY_ARGUMENT,Me(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ye.argument,value:u,location:Me(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=qd(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),d=Me(r,c);return{value:s,location:d}},n.prototype.parseArgumentOptions=function(r,i,s,u){var c,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(we.EXPECT_ARGUMENT_TYPE,Me(d,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var T=AT(_.val);if(T.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var L=Me(y,this.clonePosition());g={style:T,styleLocation:L}}var N=this.tryParseArgumentClose(u);if(N.err)return N;var V=Me(u,this.clonePosition());if(g&&Jg(g?.style,"::",0)){var G=TT(g.style.slice(2));if(h==="number"){var _=this.parseNumberSkeletonFromString(G,g.styleLocation);return _.err?_:{val:{type:Ye.number,value:s,location:V,style:_.val},err:null}}else{if(G.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,V);var E=G;this.locale&&(E=cT(G,this.locale));var T={type:Ri.dateTime,pattern:E,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?rT(E):{}},w=h==="date"?Ye.date:Ye.time;return{val:{type:w,value:s,location:V,style:T},err:null}}}return{val:{type:h==="number"?Ye.number:h==="date"?Ye.date:Ye.time,value:s,location:V,style:(c=g?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(we.EXPECT_SELECT_ARGUMENT_OPTIONS,Me(S,ae({},S)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),x=0;if(h!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),I=this.parseIdentifierIfPossible(),x=_.val}var Z=this.tryParsePluralOrSelectOptions(r,h,i,I);if(Z.err)return Z;var N=this.tryParseArgumentClose(u);if(N.err)return N;var $=Me(u,this.clonePosition());return h==="select"?{val:{type:Ye.select,value:s,options:ey(Z.val),location:$},err:null}:{val:{type:Ye.plural,value:s,options:ey(Z.val),offset:x,pluralType:h==="plural"?"cardinal":"ordinal",location:$},err:null}}default:return this.error(we.INVALID_ARGUMENT_TYPE,Me(d,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Me(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=iT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?uT(s):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,g=u.value,y=u.location;;){if(g.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var T=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(T.err)return T;y=Me(_,this.clonePosition()),g=this.message.slice(_.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?we.DUPLICATE_SELECT_ARGUMENT_SELECTOR:we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);g==="other"&&(d=!0),this.bumpSpace();var L=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Me(this.clonePosition(),this.clonePosition()));var N=this.parseMessage(r+1,i,s);if(N.err)return N;var V=this.tryParseArgumentClose(L);if(V.err)return V;h.push([g,{value:N.val,location:Me(L,this.clonePosition())}]),m.add(g),this.bumpSpace(),c=this.parseIdentifierIfPossible(),g=c.value,y=c.location}return h.length===0?this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR:we.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(we.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:h,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)c=!0,d=d*10+(h-48),this.bump();else break}var m=Me(u,this.clonePosition());return c?(d*=s,ET(d)?{val:d,err:null}:this.error(i,m)):this.error(r,m)},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 r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=H1(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},n.prototype.bumpIf=function(r){if(Jg(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&I1(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},n}();function Fd(n){return n>=97&&n<=122||n>=65&&n<=90}function OT(n){return Fd(n)||n===47}function RT(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 I1(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function wT(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 Pd(n){n.forEach(function(r){if(delete r.location,w1(r)||C1(r))for(var i in r.options)delete r.options[i].location,Pd(r.options[i].value);else x1(r)&&M1(r.style)||(O1(r)||R1(r))&&zd(r.style)?delete r.style.location:N1(r)&&Pd(r.children)})}function CT(n,r){r===void 0&&(r={}),r=ae({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new xT(n,r).parse();if(i.err){var s=SyntaxError(we[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||Pd(i.val),i.val}var Jn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Jn||(Jn={}));var la=function(n){Tn(r,n);function r(i,s,u){var c=n.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),ny=function(n){Tn(r,n);function r(i,s,u,c){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Jn.INVALID_VALUE,c)||this}return r}(la),NT=function(n){Tn(r,n);function r(i,s,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),Jn.INVALID_VALUE,u)||this}return r}(la),MT=function(n){Tn(r,n);function r(i,s){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),Jn.MISSING_VALUE,s)||this}return r}(la),Ht;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(Ht||(Ht={}));function DT(n){return n.length<2?n:n.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==Ht.literal||i.type!==Ht.literal?r.push(i):s.value+=i.value,r},[])}function z1(n){return typeof n=="function"}function qo(n,r,i,s,u,c,d){if(n.length===1&&Qg(n[0]))return[{type:Ht.literal,value:n[0].value}];for(var h=[],m=0,g=n;m<g.length;m++){var y=g[m];if(Qg(y)){h.push({type:Ht.literal,value:y.value});continue}if(tT(y)){typeof c=="number"&&h.push({type:Ht.literal,value:i.getNumberFormat(r).format(c)});continue}var _=y.value;if(!(u&&_ in u))throw new MT(_,d);var T=u[_];if(eT(y)){(!T||typeof T=="string"||typeof T=="number")&&(T=typeof T=="string"||typeof T=="number"?String(T):""),h.push({type:typeof T=="string"?Ht.literal:Ht.object,value:T});continue}if(O1(y)){var L=typeof y.style=="string"?s.date[y.style]:zd(y.style)?y.style.parsedOptions:void 0;h.push({type:Ht.literal,value:i.getDateTimeFormat(r,L).format(T)});continue}if(R1(y)){var L=typeof y.style=="string"?s.time[y.style]:zd(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:Ht.literal,value:i.getDateTimeFormat(r,L).format(T)});continue}if(x1(y)){var L=typeof y.style=="string"?s.number[y.style]:M1(y.style)?y.style.parsedOptions:void 0;L&&L.scale&&(T=T*(L.scale||1)),h.push({type:Ht.literal,value:i.getNumberFormat(r,L).format(T)});continue}if(N1(y)){var N=y.children,V=y.value,G=u[V];if(!z1(G))throw new NT(V,"function",d);var E=qo(N,r,i,s,u,c),w=G(E.map(function(x){return x.value}));Array.isArray(w)||(w=[w]),h.push.apply(h,w.map(function(x){return{type:typeof x=="string"?Ht.literal:Ht.object,value:x}}))}if(w1(y)){var S=y.options[T]||y.options.other;if(!S)throw new ny(y.value,T,Object.keys(y.options),d);h.push.apply(h,qo(S.value,r,i,s,u));continue}if(C1(y)){var S=y.options["=".concat(T)];if(!S){if(!Intl.PluralRules)throw new la(`Intl.PluralRules is not available in this environment.
66
+ Try polyfilling it using "@formatjs/intl-pluralrules"
67
+ `,Jn.MISSING_INTL_API,d);var I=i.getPluralRules(r,{type:y.pluralType}).select(T-(y.offset||0));S=y.options[I]||y.options.other}if(!S)throw new ny(y.value,T,Object.keys(y.options),d);h.push.apply(h,qo(S.value,r,i,s,u,T-(y.offset||0)));continue}}return DT(h)}function BT(n,r){return r?ae(ae(ae({},n||{}),r||{}),Object.keys(n).reduce(function(i,s){return i[s]=ae(ae({},n[s]),r[s]||{}),i},{})):n}function LT(n,r){return r?Object.keys(n).reduce(function(i,s){return i[s]=BT(n[s],r[s]),i},ae({},n)):n}function zf(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function UT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,$n([void 0],i,!1)))},{cache:zf(n.number),strategy:Kn.variadic}),getDateTimeFormat:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,$n([void 0],i,!1)))},{cache:zf(n.dateTime),strategy:Kn.variadic}),getPluralRules:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,$n([void 0],i,!1)))},{cache:zf(n.pluralRules),strategy:Kn.variadic})}}var G1=function(){function n(r,i,s,u){i===void 0&&(i=n.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=c.formatToParts(m);if(g.length===1)return g[0].value;var y=g.reduce(function(_,T){return!_.length||T.type!==Ht.literal||typeof _[_.length-1]!="string"?_.push(T.value):_[_.length-1]+=T.value,_},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(m){return qo(c.ast,c.locales,c.formatters,c.formats,m,void 0,c.message)},this.resolvedOptions=function(){var m;return{locale:((m=c.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof r=="string"){if(this.message=r,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=iu(d,["formatters"]);this.ast=n.__parse(r,ae(ae({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=LT(n.formats,s),this.formatters=u&&u.formatters||UT(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(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},n.__parse=CT,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}(),Ia;(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"})(Ia||(Ia={}));var el=function(n){Tn(r,n);function r(i,s,u){var c=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return c=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
68
+ `).concat(d?`
69
+ `.concat(d.message,`
70
+ `).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),HT=function(n){Tn(r,n);function r(i,s){return n.call(this,Ia.UNSUPPORTED_FORMATTER,i,s)||this}return r}(el),jT=function(n){Tn(r,n);function r(i,s){return n.call(this,Ia.INVALID_CONFIG,i,s)||this}return r}(el),ry=function(n){Tn(r,n);function r(i,s){return n.call(this,Ia.MISSING_DATA,i,s)||this}return r}(el),An=function(n){Tn(r,n);function r(i,s,u){var c=n.call(this,Ia.FORMAT_ERROR,"".concat(i,`
71
+ Locale: `).concat(s,`
72
+ `),u)||this;return c.locale=s,c}return r}(el),Gf=function(n){Tn(r,n);function r(i,s,u,c){var d=n.call(this,"".concat(i,`
73
+ MessageID: `).concat(u?.id,`
74
+ Default Message: `).concat(u?.defaultMessage,`
75
+ Description: `).concat(u?.description,`
76
+ `),s,c)||this;return d.descriptor=u,d.locale=s,d}return r}(An),IT=function(n){Tn(r,n);function r(i,s){var u=n.call(this,Ia.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var d;return(d=c.value)!==null&&d!==void 0?d:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(el);function zT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Ci(n,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in n?s[u]=n[u]:u in i&&(s[u]=i[u]),s},{})}var GT=function(n){},kT=function(n){},k1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:GT,onWarn:kT};function q1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ca(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function qT(n){n===void 0&&(n=q1());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.DateTimeFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Ca(n.dateTime),strategy:Kn.variadic}),c=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.NumberFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Ca(n.number),strategy:Kn.variadic}),d=Qn(function(){for(var h,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((h=Intl.PluralRules).bind.apply(h,$n([void 0],m,!1)))},{cache:Ca(n.pluralRules),strategy:Kn.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:Qn(function(h,m,g,y){return new G1(h,m,g,ae({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:d}},y||{}))},{cache:Ca(n.message),strategy:Kn.variadic}),getRelativeTimeFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(r.bind.apply(r,$n([void 0],h,!1)))},{cache:Ca(n.relativeTime),strategy:Kn.variadic}),getPluralRules:d,getListFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,$n([void 0],h,!1)))},{cache:Ca(n.list),strategy:Kn.variadic}),getDisplayNames:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,$n([void 0],h,!1)))},{cache:Ca(n.displayNames),strategy:Kn.variadic})}}function vh(n,r,i,s){var u=n&&n[r],c;if(u&&(c=u[i]),c)return c;s(new HT("No ".concat(r," format named: ").concat(i)))}function bo(n,r){return Object.keys(n).reduce(function(i,s){return i[s]=ae({timeZone:r},n[s]),i},{})}function ay(n,r){var i=Object.keys(ae(ae({},n),r));return i.reduce(function(s,u){return s[u]=ae(ae({},n[u]||{}),r[u]||{}),s},{})}function iy(n,r){if(!r)return n;var i=G1.formats;return ae(ae(ae({},i),n),{date:ay(bo(i.date,r),bo(n.date||{},r)),time:ay(bo(i.time,r),bo(n.time||{},r))})}var Vd=function(n,r,i,s,u){var c=n.locale,d=n.formats,h=n.messages,m=n.defaultLocale,g=n.defaultFormats,y=n.fallbackOnEmptyString,_=n.onError,T=n.timeZone,L=n.defaultRichTextElements;i===void 0&&(i={id:""});var N=i.id,V=i.defaultMessage;zT(!!N,"[@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 G=String(N),E=h&&Object.prototype.hasOwnProperty.call(h,G)&&h[G];if(Array.isArray(E)&&E.length===1&&E[0].type===Ye.literal)return E[0].value;if(!s&&E&&typeof E=="string"&&!L)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ae(ae({},L),s||{}),d=iy(d,T),g=iy(g,T),!E){if(y===!1&&E==="")return E;if((!V||c&&c.toLowerCase()!==m.toLowerCase())&&_(new IT(i,c)),V)try{var w=r.getMessageFormat(V,m,g,u);return w.format(s)}catch(S){return _(new Gf('Error formatting default message for: "'.concat(G,'", rendering default message verbatim'),c,i,S)),typeof V=="string"?V:G}return G}try{var w=r.getMessageFormat(E,c,d,ae({formatters:r},u||{}));return w.format(s)}catch(S){_(new Gf('Error formatting message: "'.concat(G,'", using ').concat(V?"default message":"id"," as fallback."),c,i,S))}if(V)try{var w=r.getMessageFormat(V,m,g,u);return w.format(s)}catch(S){_(new Gf('Error formatting the default message for: "'.concat(G,'", rendering message verbatim'),c,i,S))}return typeof E=="string"?E:typeof V=="string"?V:G},FT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function tl(n,r,i,s){var u=n.locale,c=n.formats,d=n.onError,h=n.timeZone;s===void 0&&(s={});var m=s.format,g=ae(ae({},h&&{timeZone:h}),m&&vh(c,r,m,d)),y=Ci(s,FT,g);return r==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=ae(ae({},y),{hour:"numeric",minute:"numeric"})),i(u,y)}function PT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"date",r,d).format(h)}catch(m){n.onError(new An("Error formatting date.",n.locale,m))}return String(h)}function VT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"time",r,d).format(h)}catch(m){n.onError(new An("Error formatting time.",n.locale,m))}return String(h)}function YT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,g=typeof c=="string"?new Date(c||0):c;try{return tl(n,"dateTimeRange",r,h).formatRange(m,g)}catch(y){n.onError(new An("Error formatting date time range.",n.locale,y))}return String(m)}function XT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"date",r,d).formatToParts(h)}catch(m){n.onError(new An("Error formatting date.",n.locale,m))}return[]}function ZT(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(n,"time",r,d).formatToParts(h)}catch(m){n.onError(new An("Error formatting time.",n.locale,m))}return[]}var QT=["style","type","fallback","languageDisplay"];function KT(n,r,i,s){var u=n.locale,c=n.onError,d=Intl.DisplayNames;d||c(new la(`Intl.DisplayNames is not available in this environment.
77
+ Try polyfilling it using "@formatjs/intl-displaynames"
78
+ `,Jn.MISSING_INTL_API));var h=Ci(s,QT);try{return r(u,h).of(i)}catch(m){c(new An("Error formatting display name.",u,m))}}var $T=["type","style"],sy=Date.now();function WT(n){return"".concat(sy,"_").concat(n,"_").concat(sy)}function JT(n,r,i,s){s===void 0&&(s={});var u=F1(n,r,i,s).reduce(function(c,d){var h=d.value;return typeof h!="string"?c.push(h):typeof c[c.length-1]=="string"?c[c.length-1]+=h:c.push(h),c},[]);return u.length===1?u[0]:u.length===0?"":u}function F1(n,r,i,s){var u=n.locale,c=n.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||c(new la(`Intl.ListFormat is not available in this environment.
79
+ Try polyfilling it using "@formatjs/intl-listformat"
80
+ `,Jn.MISSING_INTL_API));var h=Ci(s,$T);try{var m={},g=i.map(function(y,_){if(typeof y=="object"){var T=WT(_);return m[T]=y,T}return String(y)});return r(u,h).formatToParts(g).map(function(y){return y.type==="literal"?y:ae(ae({},y),{value:m[y.value]||y.value})})}catch(y){c(new An("Error formatting list.",u,y))}return i}var eA=["type"];function tA(n,r,i,s){var u=n.locale,c=n.onError;s===void 0&&(s={}),Intl.PluralRules||c(new la(`Intl.PluralRules is not available in this environment.
81
+ Try polyfilling it using "@formatjs/intl-pluralrules"
82
+ `,Jn.MISSING_INTL_API));var d=Ci(s,eA);try{return r(u,d).select(i)}catch(h){c(new An("Error formatting plural.",u,h))}return"other"}var nA=["numeric","style"];function rA(n,r,i){var s=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var d=i.format,h=!!d&&vh(u,"relative",d,c)||{},m=Ci(i,nA,h);return r(s,m)}function aA(n,r,i,s,u){u===void 0&&(u={}),s||(s="second");var c=Intl.RelativeTimeFormat;c||n.onError(new la(`Intl.RelativeTimeFormat is not available in this environment.
83
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
+ `,Jn.MISSING_INTL_API));try{return rA(n,r,u).format(i,s)}catch(d){n.onError(new An("Error formatting relative time.",n.locale,d))}return String(i)}var iA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function P1(n,r,i){var s=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var d=i.format,h=d&&vh(u,"number",d,c)||{},m=Ci(i,iA,h);return r(s,m)}function sA(n,r,i,s){s===void 0&&(s={});try{return P1(n,r,s).format(i)}catch(u){n.onError(new An("Error formatting number.",n.locale,u))}return String(i)}function lA(n,r,i,s){s===void 0&&(s={});try{return P1(n,r,s).formatToParts(i)}catch(u){n.onError(new An("Error formatting number.",n.locale,u))}return[]}function oA(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function uA(n){n.onWarn&&n.defaultRichTextElements&&oA(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 cA(n,r){var i=qT(r),s=ae(ae({},k1),n),u=s.locale,c=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new ry('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new ry('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new jT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),uA(s),ae(ae({},s),{formatters:i,formatNumber:sA.bind(null,s,i.getNumberFormat),formatNumberToParts:lA.bind(null,s,i.getNumberFormat),formatRelativeTime:aA.bind(null,s,i.getRelativeTimeFormat),formatDate:PT.bind(null,s,i.getDateTimeFormat),formatDateToParts:XT.bind(null,s,i.getDateTimeFormat),formatTime:VT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:YT.bind(null,s,i.getDateTimeFormat),formatTimeToParts:ZT.bind(null,s,i.getDateTimeFormat),formatPlural:tA.bind(null,s,i.getPluralRules),formatMessage:Vd.bind(null,s,i),$t:Vd.bind(null,s,i),formatList:JT.bind(null,s,i.getListFormat),formatListToParts:F1.bind(null,s,i.getListFormat),formatDisplayName:KT.bind(null,s,i.getDisplayNames)})}function fA(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function V1(n){fA(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Y1=ae(ae({},k1),{textComponent:H.Fragment}),dA={key:42},hA=function(n){return H.isValidElement(n)?H.createElement(H.Fragment,dA,n):n},mA=function(n){var r;return(r=H.Children.map(n,hA))!==null&&r!==void 0?r:[]};function pA(n){return function(r){return n(H.Children.toArray(r))}}function gA(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=Object.keys(n),s=Object.keys(r),u=i.length;if(s.length!==u)return!1;for(var c=0;c<u;c++){var d=i[c];if(n[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var kf={exports:{}},Le={};/** @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 ly;function yA(){if(ly)return Le;ly=1;var n=typeof Symbol=="function"&&Symbol.for,r=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,c=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,y=n?Symbol.for("react.forward_ref"):60112,_=n?Symbol.for("react.suspense"):60113,T=n?Symbol.for("react.suspense_list"):60120,L=n?Symbol.for("react.memo"):60115,N=n?Symbol.for("react.lazy"):60116,V=n?Symbol.for("react.block"):60121,G=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var Z=x.$$typeof;switch(Z){case r:switch(x=x.type,x){case m:case g:case s:case c:case u:case _:return x;default:switch(x=x&&x.$$typeof,x){case h:case y:case N:case L:case d:return x;default:return Z}}case i:return Z}}}function I(x){return S(x)===g}return Le.AsyncMode=m,Le.ConcurrentMode=g,Le.ContextConsumer=h,Le.ContextProvider=d,Le.Element=r,Le.ForwardRef=y,Le.Fragment=s,Le.Lazy=N,Le.Memo=L,Le.Portal=i,Le.Profiler=c,Le.StrictMode=u,Le.Suspense=_,Le.isAsyncMode=function(x){return I(x)||S(x)===m},Le.isConcurrentMode=I,Le.isContextConsumer=function(x){return S(x)===h},Le.isContextProvider=function(x){return S(x)===d},Le.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},Le.isForwardRef=function(x){return S(x)===y},Le.isFragment=function(x){return S(x)===s},Le.isLazy=function(x){return S(x)===N},Le.isMemo=function(x){return S(x)===L},Le.isPortal=function(x){return S(x)===i},Le.isProfiler=function(x){return S(x)===c},Le.isStrictMode=function(x){return S(x)===u},Le.isSuspense=function(x){return S(x)===_},Le.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===s||x===g||x===c||x===u||x===_||x===T||typeof x=="object"&&x!==null&&(x.$$typeof===N||x.$$typeof===L||x.$$typeof===d||x.$$typeof===h||x.$$typeof===y||x.$$typeof===G||x.$$typeof===E||x.$$typeof===w||x.$$typeof===V)},Le.typeOf=S,Le}var oy;function vA(){return oy||(oy=1,kf.exports=yA()),kf.exports}var qf,uy;function bA(){if(uy)return qf;uy=1;var n=vA(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=s,c[n.Memo]=u;function d(N){return n.isMemo(N)?u:c[N.$$typeof]||r}var h=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,T=Object.prototype;function L(N,V,G){if(typeof V!="string"){if(T){var E=_(V);E&&E!==T&&L(N,E,G)}var w=m(V);g&&(w=w.concat(g(V)));for(var S=d(N),I=d(V),x=0;x<w.length;++x){var Z=w[x];if(!i[Z]&&!(G&&G[Z])&&!(I&&I[Z])&&!(S&&S[Z])){var $=y(V,Z);try{h(N,Z,$)}catch{}}}}return N}return qf=L,qf}bA();var bh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=H.createContext(null)):H.createContext(null);bh.Consumer;var _A=bh.Provider,EA=_A,SA=bh;function su(){var n=H.useContext(SA);return V1(n),n}var Yd;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(Yd||(Yd={}));var Xd;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(Xd||(Xd={}));function X1(n){var r=function(i){var s=su(),u=i.value,c=i.children,d=iu(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return c(m)};return r.displayName=Xd[n],r}function nl(n){var r=function(i){var s=su(),u=i.value,c=i.children,d=iu(i,["value","children"]),h=s[n](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||H.Fragment;return H.createElement(m,null,h)};return r.displayName=Yd[n],r}function Z1(n){return n&&Object.keys(n).reduce(function(r,i){var s=n[i];return r[i]=z1(s)?pA(s):s,r},{})}var cy=function(n,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=Z1(s),h=Vd.apply(void 0,$n([n,r,i,d],u,!1));return Array.isArray(h)?mA(h):h},fy=function(n,r){var i=n.defaultRichTextElements,s=iu(n,["defaultRichTextElements"]),u=Z1(i),c=cA(ae(ae(ae({},Y1),s),{defaultRichTextElements:u}),r),d={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return ae(ae({},c),{formatMessage:cy.bind(null,d,c.formatters),$t:cy.bind(null,d,c.formatters)})};function Ff(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 TA=function(n){Tn(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=q1(),i.state={cache:i.cache,intl:fy(Ff(i.props),i.cache),prevConfig:Ff(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Ff(i);return gA(u,d)?null:{intl:fy(d,c),prevConfig:d}},r.prototype.render=function(){return V1(this.state.intl),H.createElement(EA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Y1,r}(H.PureComponent);nl("formatDate");nl("formatTime");nl("formatNumber");nl("formatList");nl("formatDisplayName");X1("formatDate");X1("formatTime");const AA="_app_1rj0t_1",xA={app:AA},ka=k2,Zt=P2,Q1="%[a-f0-9]{2}",dy=new RegExp("("+Q1+")|([^%]+?)","gi"),hy=new RegExp("("+Q1+")+","gi");function Zd(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),s=n.slice(r);return Array.prototype.concat.call([],Zd(i),Zd(s))}function OA(n){try{return decodeURIComponent(n)}catch{let r=n.match(dy)||[];for(let i=1;i<r.length;i++)n=Zd(r,i).join(""),r=n.match(dy)||[];return n}}function RA(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=hy.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=OA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=hy.exec(n)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)n=n.replace(new RegExp(u,"g"),r[u]);return n}function wA(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return RA(n)}}function CA(n,r){const i={};if(Array.isArray(r))for(const s of r){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 c=n[s];r(s,c,n)&&Object.defineProperty(i,s,u)}}return i}function K1(n,r){if(!(typeof n=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||r==="")return[];const i=n.indexOf(r);return i===-1?[]:[n.slice(0,i),n.slice(i+r.length)]}const NA=n=>n==null,MA=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Qd=Symbol("encodeFragmentIdentifier");function DA(n){switch(n.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[ut(r,n),"[",u,"]"].join("")]:[...i,[ut(r,n),"[",ut(u,n),"]=",ut(s,n)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[ut(r,n),"[]"].join("")]:[...i,[ut(r,n),"[]=",ut(s,n)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,[ut(r,n),":list="].join("")]:[...i,[ut(r,n),":list=",ut(s,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=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?[[ut(i,n),r,ut(u,n)].join("")]:[[s,ut(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||n.skipNull&&s===null||n.skipEmptyString&&s===""?i:s===null?[...i,ut(r,n)]:[...i,[ut(r,n),"=",ut(s,n)].join("")]}}function BA(n){let r;switch(n.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const c=typeof s=="string"&&s.includes(n.arrayFormatSeparator),d=typeof s=="string"&&!c&&Tr(s,n).includes(n.arrayFormatSeparator);s=d?Tr(s,n):s;const h=c||d?s.split(n.arrayFormatSeparator).map(m=>Tr(m,n)):s===null?s:Tr(s,n);u[i]=h};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Tr(s,n);return}const d=s===null?[]:Tr(s,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function $1(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ut(n,r){return r.encode?r.strict?MA(n):encodeURIComponent(n):n}function Tr(n,r){return r.decode?wA(n):n}function W1(n){return Array.isArray(n)?n.sort():typeof n=="object"?W1(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function J1(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function LA(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function my(n,r,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[]"&&r.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&r.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):r.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function _h(n){n=J1(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Eh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},$1(r.arrayFormatSeparator);const i=BA(r),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 c=r.decode?u.replaceAll("+"," "):u;let[d,h]=K1(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Tr(h,r),i(Tr(d,r),h,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[d,h]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[d]=my(h,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=my(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const d=s[c];return u[c]=d&&typeof d=="object"&&!Array.isArray(d)?W1(d):d,u},Object.create(null))}function eb(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},$1(r.arrayFormatSeparator);const i=d=>r.skipNull&&NA(n[d])||r.skipEmptyString&&n[d]==="",s=DA(r),u={};for(const[d,h]of Object.entries(n))i(d)||(u[d]=h);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(d=>{const h=n[d];return h===void 0?"":h===null?ut(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?ut(d,r)+"[]":h.reduce(s(d),[]).join("&"):ut(d,r)+"="+ut(h,r)}).filter(d=>d.length>0).join("&")}function tb(n,r){r={decode:!0,...r};let[i,s]=K1(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:Eh(_h(n),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Tr(s,r)}:{}}}function nb(n,r){r={encode:!0,strict:!0,[Qd]:!0,...r};const i=J1(n.url).split("?")[0]||"",s=_h(n.url),u={...Eh(s,{sort:!1,...r}),...n.query};let c=eb(u,r);c&&=`?${c}`;let d=LA(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(i);h.hash=n.fragmentIdentifier,d=r[Qd]?h.hash:`#${n.fragmentIdentifier}`}return`${i}${c}${d}`}function rb(n,r,i){i={parseFragmentIdentifier:!0,[Qd]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=tb(n,i);return nb({url:s,query:CA(u,r),fragmentIdentifier:c},i)}function UA(n,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return rb(n,s,i)}const lu=Object.freeze(Object.defineProperty({__proto__:null,exclude:UA,extract:_h,parse:Eh,parseUrl:tb,pick:rb,stringify:eb,stringifyUrl:nb},Symbol.toStringTag,{value:"Module"}));var Dn={},Bn={},Ie={},_o={},pe={},py;function cn(){return py||(py=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.GUEST_LOCALE_CHANGED=pe.DRAWER_CLOSE=pe.DRAWER_OPEN=pe.CONVERSATION_RATING_FROM_GUEST=pe.TRANSCRIPT_ITEM_GUEST_REACTION=pe.TRANSCRIPT_MAIL_REQUEST=pe.INBOX_CONNECT_REQUEST=pe.RESTART_CHAT_REQUEST=pe.EVENT_TO_GUEST=pe.NLU_REQUEST_EVENT=pe.EXPERTS_DISCONNECTED=pe.EXPERTS_DISCONNECT_REQUEST=pe.EXPERTS_CONNECTED=pe.EXPERTS_CONNECT_REQUEST=pe.MESSAGE_TO_GUEST=pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=pe.MESSAGE_FROM_GUEST=pe.GUEST_FEEDBACK_RESPONSE=pe.GUEST_DISCONNECTED=pe.GUEST_CONNECTED=pe.TYPING_OFF=pe.TYPING_ON=void 0,pe.TYPING_ON="core.typing.on",pe.TYPING_OFF="core.typing.off",pe.GUEST_CONNECTED="core.guest.connected",pe.GUEST_DISCONNECTED="core.guest.disconnected",pe.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",pe.MESSAGE_FROM_GUEST="core.message.from.guest",pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",pe.MESSAGE_TO_GUEST="core.message.to.guest",pe.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",pe.EXPERTS_CONNECTED="core.experts.connected",pe.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",pe.EXPERTS_DISCONNECTED="core.experts.disconnected",pe.NLU_REQUEST_EVENT="core.nlu.request.event",pe.EVENT_TO_GUEST="core.event.to.guest",pe.RESTART_CHAT_REQUEST="core.chat.restart.request",pe.INBOX_CONNECT_REQUEST="core.inbox.connect.request",pe.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",pe.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",pe.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",pe.DRAWER_OPEN="core.drawer.open",pe.DRAWER_CLOSE="core.drawer.close",pe.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),pe}var gy;function HA(){if(gy)return _o;gy=1,Object.defineProperty(_o,"__esModule",{value:!0});const n=cn(),r=()=>({type:n.DRAWER_CLOSE});return _o.default=r,_o}var Eo={},yy;function jA(){if(yy)return Eo;yy=1,Object.defineProperty(Eo,"__esModule",{value:!0});const n=cn(),r=(i,s)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Eo.default=r,Eo}var So={},vy;function IA(){if(vy)return So;vy=1,Object.defineProperty(So,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return So.default=r,So}var To={},by;function zA(){if(by)return To;by=1,Object.defineProperty(To,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return To.default=r,To}var Ao={},_y;function GA(){if(_y)return Ao;_y=1,Object.defineProperty(Ao,"__esModule",{value:!0});const n=cn(),r=(i,s)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ao.default=r,Ao}var xo={},Ey;function kA(){if(Ey)return xo;Ey=1,Object.defineProperty(xo,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return xo.default=r,xo}var Oo={},Ke={},Sy;function Sh(){if(Sy)return Ke;Sy=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.getStringRepresentationFromMessage=Ke.MessageTypeEnum=Ke.AudioMessage=Ke.FileMessage=Ke.ImageMessage=Ke.VideoMessage=Ke.MarkdownMessage=Ke.DetailMessage=Ke.TextMessage=Ke.Message=void 0;class n{type;sender;sources;quickReplies;constructor(_,T,L=[],N=[]){this.type=_,this.sender=T,this.sources=L,this.quickReplies=N}addQuickReply(_,T){this.quickReplies.push({label:_,payload:T})}}Ke.Message=n;class r extends n{text;constructor(_,T,L=[],N=[]){super(m.TEXT,T,L,N),this.text=_}}Ke.TextMessage=r;class i extends n{title;subtitle;text;imageUrl;itemUrl;buttons;constructor(_,T){super(m.DETAIL,T),this.title=_,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(_){this.imageUrl=_}setItemUrl(_){this.itemUrl=_}setSubtitle(_){this.subtitle=_}setText(_){this.text=_}addButton(_){this.buttons.push(_)}}Ke.DetailMessage=i;class s extends n{markdown;constructor(_,T,L=[],N=[]){super(m.MARKDOWN,T,L,N),this.markdown=_}}Ke.MarkdownMessage=s;class u extends n{url;constructor(_,T){super(m.VIDEO,T),this.url=_}}Ke.VideoMessage=u;class c extends n{url;constructor(_,T){super(m.IMAGE,T),this.url=_}}Ke.ImageMessage=c;class d extends n{url;constructor(_,T){super(m.FILE,T),this.url=_}}Ke.FileMessage=d;class h extends n{url;constructor(_,T){super(m.AUDIO,T),this.url=_}}Ke.AudioMessage=h;var m;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(m||(Ke.MessageTypeEnum=m={}));const g=y=>{switch(y.type){case m.TEXT:return y.text;case m.DETAIL:{const _=y;return`${_.title} // ${_.subtitle}`}case m.MARKDOWN:return y.markdown;case m.VIDEO:return`Video Url: ${y.url}`;case m.IMAGE:return`Image Url: ${y.url}`;case m.FILE:return`File Url: ${y.url}`;case m.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return Ke.getStringRepresentationFromMessage=g,Ke}var an={},Ty;function Th(){if(Ty)return an;Ty=1,Object.defineProperty(an,"__esModule",{value:!0}),an.UserType=an.PersonUser=an.GuestUser=an.BotUser=an.User=void 0;class n{type;id;name;avatar;constructor(d,h,m,g){this.type=d,this.id=h,this.name=m,this.avatar=g}}an.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}an.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}an.GuestUser=i;class s extends n{constructor(d,h,m){super(u.PERSON,d,h,m)}}an.PersonUser=s;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(an.UserType=u={})),an}var Ay;function qA(){if(Ay)return Oo;Ay=1,Object.defineProperty(Oo,"__esModule",{value:!0});const n=Sh(),r=Th(),i=cn(),s=u=>{const c=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Oo.default=s,Oo}var Ro={},xy;function FA(){if(xy)return Ro;xy=1,Object.defineProperty(Ro,"__esModule",{value:!0});const n=Sh(),r=Th(),i=cn(),s=(u,c={})=>{const d=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:c}};return Ro.default=s,Ro}var wo={},Oy;function PA(){if(Oy)return wo;Oy=1,Object.defineProperty(wo,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return wo.default=r,wo}var Co={},Ry;function VA(){if(Ry)return Co;Ry=1,Object.defineProperty(Co,"__esModule",{value:!0});const n=cn(),r=()=>({type:n.RESTART_CHAT_REQUEST});return Co.default=r,Co}var No={},wy;function YA(){if(wy)return No;wy=1,Object.defineProperty(No,"__esModule",{value:!0});const n=cn(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return No.default=r,No}var Mo={},Cy;function XA(){if(Cy)return Mo;Cy=1,Object.defineProperty(Mo,"__esModule",{value:!0});const n=cn(),r=(i,s)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Mo.default=r,Mo}var Ny;function ZA(){if(Ny)return Ie;Ny=1;var n=Ie&&Ie.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.transcriptItemGuestReaction=Ie.sendMessageToGuest=Ie.restartChatRequest=Ie.requestNLUEvent=Ie.receiveTextMessageWithoutAnalysisFromGuest=Ie.receiveTextMessageFromGuest=Ie.openDrawer=Ie.guestLocaleChanged=Ie.guestDisconnected=Ie.guestConnected=Ie.feedbackFromGuestResponse=Ie.closeDrawer=void 0;const r=n(HA());Ie.closeDrawer=r.default;const i=n(jA());Ie.feedbackFromGuestResponse=i.default;const s=n(IA());Ie.guestConnected=s.default;const u=n(zA());Ie.guestDisconnected=u.default;const c=n(GA());Ie.guestLocaleChanged=c.default;const d=n(kA());Ie.openDrawer=d.default;const h=n(qA());Ie.receiveTextMessageFromGuest=h.default;const m=n(FA());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(PA());Ie.requestNLUEvent=g.default;const y=n(VA());Ie.restartChatRequest=y.default;const _=n(YA());Ie.sendMessageToGuest=_.default;const T=n(XA());return Ie.transcriptItemGuestReaction=T.default,Ie}var Pf={},My;function QA(){return My||(My=1,Object.defineProperty(Pf,"__esModule",{value:!0})),Pf}var Dy;function KA(){return Dy||(Dy=1,function(n){var r=Bn&&Bn.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,g)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Bn&&Bn.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Bn&&Bn.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),g=0;g<m.length;g++)m[g]!=="default"&&r(h,d,m[g]);return i(h,d),h}}(),u=Bn&&Bn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=s(ZA()),n.ActionTypes=s(cn()),u(QA(),n)}(Bn)),Bn}var sn={},Vf={},By;function $A(){return By||(By=1,Object.defineProperty(Vf,"__esModule",{value:!0})),Vf}var Ls={},Ly;function WA(){if(Ly)return Ls;Ly=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Ls.NullableKnowledgeBaseAdapter=n,Ls}var Uy;function JA(){if(Uy)return sn;Uy=1;var n=sn&&sn.__createBinding||(Object.create?function(u,c,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(c,d);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(u,h,m)}:function(u,c,d,h){h===void 0&&(h=d),u[h]=c[d]}),r=sn&&sn.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=sn&&sn.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(c)};return function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var h=u(c),m=0;m<h.length;m++)h[m]!=="default"&&n(d,c,h[m]);return r(d,c),d}}();Object.defineProperty(sn,"__esModule",{value:!0}),sn.NullableCmsAdapter=sn.KnowledgeBase=void 0,sn.KnowledgeBase=i($A());const s=WA();return sn.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},sn}var Na={},Yf={},Hy;function ex(){return Hy||(Hy=1,Object.defineProperty(Yf,"__esModule",{value:!0})),Yf}var Xf={},jy;function tx(){return jy||(jy=1,Object.defineProperty(Xf,"__esModule",{value:!0})),Xf}var Zf={},Iy;function nx(){return Iy||(Iy=1,Object.defineProperty(Zf,"__esModule",{value:!0})),Zf}var Qf={},zy;function rx(){return zy||(zy=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var Us={},Gy;function ax(){if(Gy)return Us;Gy=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.checkMiddlewareCondition=void 0;const n=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,d)=>await c?await d(i,s):!1,Promise.resolve(!0));return Us.checkMiddlewareCondition=n,Us}var Kf={},ky;function ix(){return ky||(ky=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var $f={},qy;function sx(){return qy||(qy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var Wf={},Fy;function lx(){return Fy||(Fy=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Py;function ox(){return Py||(Py=1,function(n){var r=Na&&Na.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Na&&Na.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(ex(),n),i(tx(),n),i(nx(),n),i(rx(),n),i(ax(),n),i(ix(),n),i(sx(),n),i(lx(),n)}(Na)),Na}var Ma={},Ln={},Vy;function ux(){if(Vy)return Ln;Vy=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.ButtonTypeEnum=Ln.PostbackButton=Ln.UrlButton=Ln.Button=void 0;class n{title;type;constructor(c,d){this.title=c,this.type=d}}Ln.Button=n;class r extends n{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Ln.UrlButton=r;class i extends n{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Ln.PostbackButton=i;var s;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(s||(Ln.ButtonTypeEnum=s={})),Ln}var Jf={},Yy;function cx(){return Yy||(Yy=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var Hs={},Xy;function fx(){if(Xy)return Hs;Xy=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Hs.SatisfactionEnum=n={})),Hs}var Zy;function Qy(){return Zy||(Zy=1,function(n){var r=Ma&&Ma.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Ma&&Ma.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(ux(),n),i(cx(),n),i(fx(),n),i(Sh(),n),i(Th(),n)}(Ma)),Ma}var Ky;function dx(){return Ky||(Ky=1,function(n){var r=Dn&&Dn.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var g=Object.getOwnPropertyDescriptor(d,h);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,g)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Dn&&Dn.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Dn&&Dn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=Dn&&Dn.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[m.length]=g);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),g=0;g<m.length;g++)m[g]!=="default"&&r(h,d,m[g]);return i(h,d),h}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,s(KA(),n),n.CMS=u(JA()),s(ox(),n),s(Qy(),n),n.Model=u(Qy())}(Dn)),Dn}var Oe=dx();const ab=n=>r=>(n.payload.type!==Oe.ActionTypes.MESSAGE_FROM_GUEST&&r(Oe.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),ib=n=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>n.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?ab({...u,label:n}):JSON.parse(JSON.stringify(Oe.Actions.receiveTextMessageFromGuest(n))))},Ah="MESSAGE_TO_PARENT_PAGE",xh="RESTORE_PREVIOUS_CHAT_MESSAGES",Oh="AUDIO_MESSAGE_FROM_USER",Rh="RECEIVE_SPEECH_TRANSCRIPTION",wh="ENABLE_CONVERSATION_RATING",sb="LOAD_SOURCE_INFOS_RESPONSE",Ch="LOAD_SOURCE_INFOS_ERROR",Nh="LOAD_SOURCE_INFOS_REQUEST",Mh="CLOSE_SOURCE_INFOS",hx="webclient.get.started",lb="webclient.window.expand",ob="webclient.window.close",ub="webclient.transcript.pdf.download",mx=[Ah,xh,Oh,Rh,wh,Nh,Mh],px=n=>({type:Oh,buffer:n}),gx=n=>({type:Rh,transcription:n}),yx=n=>({type:Oe.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),vx=()=>({type:ub}),bx=({rating:n})=>({type:wh,payload:{rating:n}}),_x=(n,r)=>({type:Oe.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),cb=n=>Oe.Actions.requestNLUEvent(n),Ex=n=>({type:xh,messages:n}),Sx=n=>{switch(n.type){case Oe.ButtonTypeEnum.WEB_URL:return db(n.url);case Oe.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},fb=n=>db(n),db=n=>({type:Ah,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function Do(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)n[s]=i[s]}return n}var Tx={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 Kd(n,r){function i(u,c,d){if(!(typeof document>"u")){d=Do({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+n.write(c,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],d={},h=0;h<c.length;h++){var m=c[h].split("="),g=m.slice(1).join("=");try{var y=decodeURIComponent(m[0]);if(d[y]=n.read(g,y),u===y)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Do({},c,{expires:-1}))},withAttributes:function(u){return Kd(this.converter,Do({},this.attributes,u))},withConverter:function(u){return Kd(Do({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var Bo=Kd(Tx,{path:"/"});const xt=[];for(let n=0;n<256;++n)xt.push((n+256).toString(16).slice(1));function Ax(n,r=0){return(xt[n[r+0]]+xt[n[r+1]]+xt[n[r+2]]+xt[n[r+3]]+"-"+xt[n[r+4]]+xt[n[r+5]]+"-"+xt[n[r+6]]+xt[n[r+7]]+"-"+xt[n[r+8]]+xt[n[r+9]]+"-"+xt[n[r+10]]+xt[n[r+11]]+xt[n[r+12]]+xt[n[r+13]]+xt[n[r+14]]+xt[n[r+15]]).toLowerCase()}let ed;const xx=new Uint8Array(16);function Ox(){if(!ed){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ed=crypto.getRandomValues.bind(crypto)}return ed(xx)}const Rx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$y={randomUUID:Rx};function $d(n,r,i){if($y.randomUUID&&!n)return $y.randomUUID();n=n||{};const s=n.random??n.rng?.()??Ox();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,Ax(s)}function Ot(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 wx=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wy=wx,td=()=>Math.random().toString(36).substring(7).split("").join("."),Cx={INIT:`@@redux/INIT${td()}`,REPLACE:`@@redux/REPLACE${td()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${td()}`},Ko=Cx;function Dh(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function hb(n,r,i){if(typeof n!="function")throw new Error(Ot(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Ot(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Ot(1));return i(hb)(n,r)}let s=n,u=r,c=new Map,d=c,h=0,m=!1;function g(){d===c&&(d=new Map,c.forEach((G,E)=>{d.set(E,G)}))}function y(){if(m)throw new Error(Ot(3));return u}function _(G){if(typeof G!="function")throw new Error(Ot(4));if(m)throw new Error(Ot(5));let E=!0;g();const w=h++;return d.set(w,G),function(){if(E){if(m)throw new Error(Ot(6));E=!1,g(),d.delete(w),c=null}}}function T(G){if(!Dh(G))throw new Error(Ot(7));if(typeof G.type>"u")throw new Error(Ot(8));if(typeof G.type!="string")throw new Error(Ot(17));if(m)throw new Error(Ot(9));try{m=!0,u=s(u,G)}finally{m=!1}return(c=d).forEach(w=>{w()}),G}function L(G){if(typeof G!="function")throw new Error(Ot(10));s=G,T({type:Ko.REPLACE})}function N(){const G=_;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Ot(11));function w(){const I=E;I.next&&I.next(y())}return w(),{unsubscribe:G(w)}},[Wy](){return this}}}return T({type:Ko.INIT}),{dispatch:T,subscribe:_,getState:y,replaceReducer:L,[Wy]:N}}function Nx(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:Ko.INIT})>"u")throw new Error(Ot(12));if(typeof i(void 0,{type:Ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ot(13))})}function mb(n){const r=Object.keys(n),i={};for(let c=0;c<r.length;c++){const d=r[c];typeof n[d]=="function"&&(i[d]=n[d])}const s=Object.keys(i);let u;try{Nx(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const g={};for(let y=0;y<s.length;y++){const _=s[y],T=i[_],L=d[_],N=T(L,h);if(typeof N>"u")throw h&&h.type,new Error(Ot(14));g[_]=N,m=m||N!==L}return m=m||s.length!==Object.keys(d).length,m?g:d}}function $o(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...s)=>r(i(...s)))}function Mx(...n){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(Ot(15))};const d={getState:u.getState,dispatch:(m,...g)=>c(m,...g)},h=n.map(m=>m(d));return c=$o(...h)(u.dispatch),{...u,dispatch:c}}}function Dx(n){return Dh(n)&&"type"in n&&typeof n.type=="string"}var pb=Symbol.for("immer-nothing"),Jy=Symbol.for("immer-draftable"),on=Symbol.for("immer-state");function In(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var wi=Object.getPrototypeOf;function za(n){return!!n&&!!n[on]}function wr(n){return n?gb(n)||Array.isArray(n)||!!n[Jy]||!!n.constructor?.[Jy]||uu(n)||cu(n):!1}var Bx=Object.prototype.constructor.toString();function gb(n){if(!n||typeof n!="object")return!1;const r=wi(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===Bx}function Wo(n,r){ou(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,s)=>r(s,i,n))}function ou(n){const r=n[on];return r?r.type_:Array.isArray(n)?1:uu(n)?2:cu(n)?3:0}function Wd(n,r){return ou(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function yb(n,r,i){const s=ou(n);s===2?n.set(r,i):s===3?n.add(i):n[r]=i}function Lx(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function uu(n){return n instanceof Map}function cu(n){return n instanceof Set}function Ua(n){return n.copy_||n.base_}function Jd(n,r){if(uu(n))return new Map(n);if(cu(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=gb(n);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(n);delete s[on];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const d=u[c],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:n[d]})}return Object.create(wi(n),s)}else{const s=wi(n);if(s!==null&&i)return{...n};const u=Object.create(s);return Object.assign(u,n)}}function Bh(n,r=!1){return fu(n)||za(n)||!wr(n)||(ou(n)>1&&(n.set=n.add=n.clear=n.delete=Ux),Object.freeze(n),r&&Object.entries(n).forEach(([i,s])=>Bh(s,!0))),n}function Ux(){In(2)}function fu(n){return Object.isFrozen(n)}var Hx={};function Ga(n){const r=Hx[n];return r||In(0,n),r}var $s;function vb(){return $s}function jx(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ev(n,r){r&&(Ga("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function eh(n){th(n),n.drafts_.forEach(Ix),n.drafts_=null}function th(n){n===$s&&($s=n.parent_)}function tv(n){return $s=jx($s,n)}function Ix(n){const r=n[on];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function nv(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[on].modified_&&(eh(r),In(4)),wr(n)&&(n=Jo(r,n),r.parent_||eu(r,n)),r.patches_&&Ga("Patches").generateReplacementPatches_(i[on].base_,n,r.patches_,r.inversePatches_)):n=Jo(r,i,[]),eh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==pb?n:void 0}function Jo(n,r,i){if(fu(r))return r;const s=r[on];if(!s)return Wo(r,(u,c)=>rv(n,s,r,u,c,i)),r;if(s.scope_!==n)return r;if(!s.modified_)return eu(n,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,d=!1;s.type_===3&&(c=new Set(u),u.clear(),d=!0),Wo(c,(h,m)=>rv(n,s,u,h,m,i,d)),eu(n,u,!1),i&&n.patches_&&Ga("Patches").generatePatches_(s,i,n.patches_,n.inversePatches_)}return s.copy_}function rv(n,r,i,s,u,c,d){if(za(u)){const h=c&&r&&r.type_!==3&&!Wd(r.assigned_,s)?c.concat(s):void 0,m=Jo(n,u,h);if(yb(i,s,m),za(m))n.canAutoFreeze_=!1;else return}else d&&i.add(u);if(wr(u)&&!fu(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Jo(n,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&eu(n,u)}}function eu(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Bh(r,i)}function zx(n,r){const i=Array.isArray(n),s={type_:i?1:0,scope_:r?r.scope_:vb(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=Lh;i&&(u=[s],c=Ws);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var Lh={get(n,r){if(r===on)return n;const i=Ua(n);if(!Wd(i,r))return Gx(n,i,r);const s=i[r];return n.finalized_||!wr(s)?s:s===nd(n.base_,r)?(rd(n),n.copy_[r]=rh(s,n)):s},has(n,r){return r in Ua(n)},ownKeys(n){return Reflect.ownKeys(Ua(n))},set(n,r,i){const s=bb(Ua(n),r);if(s?.set)return s.set.call(n.draft_,i),!0;if(!n.modified_){const u=nd(Ua(n),r),c=u?.[on];if(c&&c.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(Lx(i,u)&&(i!==void 0||Wd(n.base_,r)))return!0;rd(n),nh(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return nd(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,rd(n),nh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Ua(n),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){In(11)},getPrototypeOf(n){return wi(n.base_)},setPrototypeOf(){In(12)}},Ws={};Wo(Lh,(n,r)=>{Ws[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Ws.deleteProperty=function(n,r){return Ws.set.call(this,n,r,void 0)};Ws.set=function(n,r,i){return Lh.set.call(this,n[0],r,i,n[0])};function nd(n,r){const i=n[on];return(i?Ua(i):n)[r]}function Gx(n,r,i){const s=bb(r,i);return s?"value"in s?s.value:s.get?.call(n.draft_):void 0}function bb(n,r){if(!(r in n))return;let i=wi(n);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=wi(i)}}function nh(n){n.modified_||(n.modified_=!0,n.parent_&&nh(n.parent_))}function rd(n){n.copy_||(n.copy_=Jd(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var kx=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const d=this;return function(m=c,...g){return d.produce(m,y=>i.call(this,y,...g))}}typeof i!="function"&&In(6),s!==void 0&&typeof s!="function"&&In(7);let u;if(wr(r)){const c=tv(this),d=rh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?eh(c):th(c)}return ev(c,s),nv(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===pb&&(u=void 0),this.autoFreeze_&&Bh(u,!0),s){const c=[],d=[];Ga("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else In(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(d,...h)=>this.produceWithPatches(d,m=>r(m,...h));let s,u;return[this.produce(r,i,(d,h)=>{s=d,u=h}),s,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){wr(n)||In(8),za(n)&&(n=qx(n));const r=tv(this),i=rh(n,void 0);return i[on].isManual_=!0,th(r),i}finishDraft(n,r){const i=n&&n[on];(!i||!i.isManual_)&&In(9);const{scope_:s}=i;return ev(s,r),nv(void 0,s)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(r=r.slice(i+1));const s=Ga("Patches").applyPatches_;return za(n)?s(n,r):this.produce(n,u=>s(u,r))}};function rh(n,r){const i=uu(n)?Ga("MapSet").proxyMap_(n,r):cu(n)?Ga("MapSet").proxySet_(n,r):zx(n,r);return(r?r.scope_:vb()).drafts_.push(i),i}function qx(n){return za(n)||In(10,n),_b(n)}function _b(n){if(!wr(n)||fu(n))return n;const r=n[on];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=Jd(n,r.scope_.immer_.useStrictShallowCopy_)}else i=Jd(n,!0);return Wo(i,(s,u)=>{yb(i,s,_b(u))}),r&&(r.finalized_=!1),i}var un=new kx,Eb=un.produce;un.produceWithPatches.bind(un);un.setAutoFreeze.bind(un);un.setUseStrictShallowCopy.bind(un);un.applyPatches.bind(un);un.createDraft.bind(un);un.finishDraft.bind(un);function Sb(n){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,n):u(c)}var Fx=Sb(),Px=Sb,Vx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$o:$o.apply(null,arguments)};function av(n,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(Ar(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=>Dx(s)&&s.type===n,i}var Tb=class Xs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Xs.prototype)}static get[Symbol.species](){return Xs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Xs(...r[0].concat(this)):new Xs(...r.concat(this))}};function iv(n){return wr(n)?Eb(n,()=>{}):n}function Lo(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function Yx(n){return typeof n=="boolean"}var Xx=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new Tb;return i&&(Yx(i)?d.push(Fx):d.push(Px(i.extraArgument))),d},Zx="RTK_autoBatch",sv=n=>r=>{setTimeout(r,n)},Qx=(n={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,d=!1;const h=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sv(10):n.type==="callback"?n.queueNotification:sv(n.timeout),g=()=>{d=!1,c&&(c=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const _=()=>u&&y(),T=s.subscribe(_);return h.add(y),()=>{T(),h.delete(y)}},dispatch(y){try{return u=!y?.meta?.[Zx],c=!u,c&&(d||(d=!0,m(g))),s.dispatch(y)}finally{u=!0}}})},Kx=n=>function(i){const{autoBatch:s=!0}=i??{};let u=new Tb(n);return s&&u.push(Qx(typeof s=="object"?s:void 0)),u};function $x(n){const r=Xx(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:d=void 0}=n||{};let h;if(typeof i=="function")h=i;else if(Dh(i))h=mb(i);else throw new Error(Ar(1));let m;typeof s=="function"?m=s(r):m=r();let g=$o;u&&(g=Vx({trace:!1,...typeof u=="object"&&u}));const y=Mx(...m),_=Kx(y);let T=typeof d=="function"?d(_):_();const L=g(...T);return hb(h,c,L)}function Ab(n){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(Ar(28));if(h in r)throw new Error(Ar(29));return r[h]=d,u},addMatcher(c,d){return i.push({matcher:c,reducer:d}),u},addDefaultCase(c){return s=c,u}};return n(u),[r,i,s]}function Wx(n){return typeof n=="function"}function Jx(n,r){let[i,s,u]=Ab(r),c;if(Wx(n))c=()=>iv(n());else{const h=iv(n);c=()=>h}function d(h=c(),m){let g=[i[m.type],...s.filter(({matcher:y})=>y(m)).map(({reducer:y})=>y)];return g.filter(y=>!!y).length===0&&(g=[u]),g.reduce((y,_)=>{if(_)if(za(y)){const L=_(y,m);return L===void 0?y:L}else{if(wr(y))return Eb(y,T=>_(T,m));{const T=_(y,m);if(T===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}}return y},h)}return d.getInitialState=c,d}var eO=Symbol.for("rtk-slice-createasyncthunk");function tO(n,r){return`${n}/${r}`}function nO({creators:n}={}){const r=n?.asyncThunk?.[eO];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(Ar(11));const d=(typeof s.reducers=="function"?s.reducers(aO()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(S,I){const x=typeof S=="string"?S:S.type;if(!x)throw new Error(Ar(12));if(x in m.sliceCaseReducersByType)throw new Error(Ar(13));return m.sliceCaseReducersByType[x]=I,g},addMatcher(S,I){return m.sliceMatchers.push({matcher:S,reducer:I}),g},exposeAction(S,I){return m.actionCreators[S]=I,g},exposeCaseReducer(S,I){return m.sliceCaseReducersByName[S]=I,g}};h.forEach(S=>{const I=d[S],x={reducerName:S,type:tO(u,S),createNotation:typeof s.reducers=="function"};sO(I)?oO(x,I,g,r):iO(x,I,g)});function y(){const[S={},I=[],x=void 0]=typeof s.extraReducers=="function"?Ab(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return Jx(s.initialState,$=>{for(let ie in Z)$.addCase(ie,Z[ie]);for(let ie of m.sliceMatchers)$.addMatcher(ie.matcher,ie.reducer);for(let ie of I)$.addMatcher(ie.matcher,ie.reducer);x&&$.addDefaultCase(x)})}const _=S=>S,T=new Map,L=new WeakMap;let N;function V(S,I){return N||(N=y()),N(S,I)}function G(){return N||(N=y()),N.getInitialState()}function E(S,I=!1){function x($){let ie=$[S];return typeof ie>"u"&&I&&(ie=Lo(L,x,G)),ie}function Z($=_){const ie=Lo(T,I,()=>new WeakMap);return Lo(ie,$,()=>{const _e={};for(const[Re,se]of Object.entries(s.selectors??{}))_e[Re]=rO(se,$,()=>Lo(L,$,G),I);return _e})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(x)},selectSlice:x}}const w={name:u,reducer:V,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:G,...E(c),injectInto(S,{reducerPath:I,...x}={}){const Z=I??c;return S.inject({reducerPath:Z,reducer:V},x),{...w,...E(Z,!0)}}};return w}}function rO(n,r,i,s){function u(c,...d){let h=r(c);return typeof h>"u"&&s&&(h=i()),n(h,...d)}return u.unwrapped=n,u}var Uh=nO();function aO(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function iO({type:n,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!lO(s))throw new Error(Ar(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(n,c).exposeCaseReducer(r,c).exposeAction(r,d?av(n,d):av(n))}function sO(n){return n._reducerDefinitionType==="asyncThunk"}function lO(n){return n._reducerDefinitionType==="reducerWithPrepare"}function oO({type:n,reducerName:r},i,s,u){if(!u)throw new Error(Ar(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:g,options:y}=i,_=u(n,c,y);s.exposeAction(r,_),d&&s.addCase(_.fulfilled,d),h&&s.addCase(_.pending,h),m&&s.addCase(_.rejected,m),g&&s.addMatcher(_.settled,g),s.exposeCaseReducer(r,{fulfilled:d||Uo,pending:h||Uo,rejected:m||Uo,settled:g||Uo})}function Uo(){}function Ar(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 uO={formValues:{}},xb=Uh({name:"start-screen",initialState:uO,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:cO,showStartScreen:fO}=xb.actions,dO=xb.reducer,Ob="RESET_CHAT_STATE",Rb="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",hO=()=>({type:ob}),mO=()=>({type:Ob}),wb=()=>({type:Rb}),lv=(n,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Nh,payload:{chunkId:i}}),ov(n,c,r,i,!1,s),ov(n,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Ch})}},ov=(n,r,i,s,u,c)=>{const d=`/${n}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":r}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};c({type:sb,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Ch,payload:{highlighted:u}})})},pO=()=>({type:Mh}),Hh="CONNECT",jh="CONNECTING",Ih="CONNECTED",zh="DISCONNECTED",Gh="RECONNECTED",kh="RESTORE_SESSION_ID",du="START",hu="CLEAR_SESSION_ID",gO=[Hh,jh,Ih,zh,Gh,kh],yO=(n,r)=>({type:Hh,clientName:n,querystrings:r}),vO=n=>({type:kh,sessionId:n}),bO=()=>({type:jh}),_O=()=>({type:Ih}),EO=()=>({type:zh}),SO=()=>({type:Gh}),Cb=(n,r)=>(i,s)=>{const u=s().connection,c=s().startScreen.formValues;let d=u.sessionId;d===void 0&&(d=$d());let h=u.userId;if(h===void 0){const m=Bo.get("bubble-chat-user-id")||Bo.get("bubble-chat-userId")||Bo.get("bf-webclient-userId");h=m||$d(),Bo.set("bubble-chat-user-id",h)}i({type:du,payload:{sessionId:d,userId:h,clientName:n,querystrings:{...r,...c}}})},mu=(n,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(TO(u)),i(mO()),s().settings.enableStartScreen)i(fO());else return i(Cb(n,r))},TO=n=>({type:hu,payload:{sessionId:n}}),tt=()=>{const n=su();return i=>{const s=n.formatMessage({id:i});return s===i?void 0:s}};var ja=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(ja||{}),tu=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(tu||{});const AO="_container_q2uun_1",xO="_chatcontent_q2uun_6",OO="_accessabilityHidden_q2uun_12",ad={container:AO,chatcontent:xO,accessabilityHidden:OO},RO="_messageContainer_ofi0g_1",wO="_messages_ofi0g_12",uv={messageContainer:RO,messages:wO};function Ha(){return Ha=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},Ha.apply(this,arguments)}const CO=["children","options"],NO={footnoteReference:"7"},cv=["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,r)=>(n[r.toLowerCase()]=r,n),{class:"className",for:"htmlFor"}),fv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},MO=["style","script","pre"],DO=["src","href","data","formAction","srcDoc","action"],BO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,LO=/mailto:/i,UO=/\n{2,}$/,dv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,HO=/^ *> ?/gm,jO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,IO=/^ {2,}\n/,zO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,hv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,GO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,kO=/^(?:\n *)*\n/,qO=/\r\n?/g,FO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,PO=/^\[\^([^\]]+)]/,VO=/\f/g,YO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,XO=/^\s*?\[(x|\s)\]/,pv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yv=/^([^\n]+)\n *(=|-){3,} *\n/,id=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,ZO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,vv=/^<!--[\s\S]*?(?:-->)/,QO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,sd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,KO=/^\{.*\}$/,$O=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,WO=/^<([^ >]+@[^ >]+)>/,JO=/^<([^ >]+:\/[^ >]+)>/,eR=/-([a-z])?/gi,bv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,tR=/^[^\n]+(?: \n|\n{2,})/,nR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,rR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,aR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,iR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sR=/\t/g,lR=/(^ *\||\| *$)/g,oR=/^ *:-+: *$/,uR=/^ *:-+ *$/,cR=/^ *-+: *$/,pu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",fR=RegExp(`^([*_])\\1${pu}\\1\\1(?!\\1)`),dR=RegExp(`^([*_])${pu}\\1(?!\\1)`),hR=RegExp(`^(==)${pu}\\1`),mR=RegExp(`^(~~)${pu}\\1`),pR=/^\\([^0-9A-Za-z\s])/,gR=/\\([^0-9A-Za-z\s])/g,yR=/^[\s\S](?:(?! |[0-9]\.|http)[^=*_~\-\n<`\\\[!])*/,vR=/^\n+/,bR=/^([ \t]*)/,_R=/(?:^|\n)( *)$/,qh="(?:\\d+\\.)",Fh="(?:[*+-])";function Nb(n){return"( *)("+(n===1?qh:Fh)+") +"}const Mb=Nb(1),Db=Nb(2);function Bb(n){return RegExp("^"+(n===1?Mb:Db))}const ER=Bb(1),SR=Bb(2);function Lb(n){return RegExp("^"+(n===1?Mb:Db)+"[^\\n]*(?:\\n(?!\\1"+(n===1?qh:Fh)+" )[^\\n]*)*(\\n|$)","gm")}const TR=Lb(1),AR=Lb(2);function Ub(n){const r=n===1?qh:Fh;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Hb=Ub(1),jb=Ub(2);function _v(n,r){const i=r===1,s=i?Hb:jb,u=i?TR:AR,c=i?ER:SR;return{t:d=>c.test(d),o:rl(function(d,h){const m=_R.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const g=i?+d[2]:void 0,y=d[0].replace(UO,`
94
+ `).match(u);let _=!1;return{items:y.map(function(T,L){const N=c.exec(T)[0].length,V=RegExp("^ {1,"+N+"}","gm"),G=T.replace(V,"").replace(c,""),E=L===y.length-1,w=G.indexOf(`
95
+
96
+ `)!==-1||E&&_;_=w;const S=m.inline,I=m.list;let x;m.list=!0,w?(m.inline=!1,x=Ks(G)+`
97
+
98
+ `):(m.inline=!0,x=Ks(G));const Z=h(x,m);return m.inline=S,m.list=I,Z}),ordered:i,start:g}},l:(d,h,m)=>n(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(g,y){return n("li",{key:y},h(g,m))}))}}const xR=RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),OR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ks(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function ah(n,r){return n.startsWith(r)}function RR(n,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(ah(n,i[s]))return!0;return!1}return i(n,r)}function js(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 wR(n){return cR.test(n)?"right":oR.test(n)?"center":uR.test(n)?"left":null}function Ev(n,r,i,s){const u=i.inTable;i.inTable=!0;let c=[[]],d="";function h(){if(!d)return;const m=c[c.length-1];m.push.apply(m,r(d,i)),d=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,y)=>{m.trim()==="|"&&(h(),s)?g!==0&&g!==y.length-1&&c.push([]):d+=m}),h(),i.inTable=u,c}function CR(n,r,i){i.inline=!0;const s=n[2]?n[2].replace(lR,"").split("|").map(wR):[],u=n[3]?function(d,h,m){return d.trim().split(`
99
+ `).map(function(g){return Ev(g,h,m,!0)})}(n[3],r,i):[],c=Ev(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function Sv(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function rl(n){return n.inline=1,n}function na(n){return rl(function(r,i){return i.inline?n.exec(r):null})}function ra(n){return rl(function(r,i){return i.inline||i.simple?n.exec(r):null})}function Er(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function Is(n){return rl(function(r){return n.exec(r)})}const NR=/(javascript|vbscript|data(?!:image)):/i;function MR(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(NR.test(r))return null}catch{return null}return n}function Zn(n){return n&&n.replace(gR,"$1")}function Fo(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function DR(n,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=n(r,i);return i.inline=s,i.simple=u,c}function BR(n,r,i){const s=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=s,u}const ld=(n,r,i)=>({children:Fo(r,n[2],i)});function od(){return{}}function ud(){return null}function LR(...n){return n.filter(Boolean).join(" ")}function cd(n,r,i){let s=n;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function UR(n="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?Ha({},fv,r.namedCodesToUnicode):fv;const i=r.slugify||js,s=r.sanitizer||MR,u=r.createElement||H.createElement,c=[dv,hv,mv,r.enforceAtxHeadings?gv:pv,yv,bv,Hb,jb],d=[...c,tR,id,vv,sd];function h(E,w,...S){const I=cd(r.overrides,E+".props",{});return u(function(x,Z){const $=cd(Z,x);return $?typeof $=="function"||typeof $=="object"&&"render"in $?$:cd(Z,x+".component",x):x}(E,r.overrides),Ha({},w,I,{className:LR(w?.className,I.className)||void 0}),...S)}function m(E){E=E.replace(YO,"");let w=!1;r.forceInline?w=!0:r.forceBlock||(w=iR.test(E)===!1);const S=N(L(w?E:Ks(E).replace(vR,"")+`
100
+
101
+ `,{inline:w}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const I=r.wrapper||(w?"span":"div");let x;if(S.length>1||r.forceWrapper)x=S;else{if(S.length===1)return x=S[0],typeof x=="string"?h("span",{key:"outer"},x):x;x=null}return u(I,{key:"outer"},x)}function g(E,w){if(!w||!w.trim())return null;const S=w.match(BO);return S?S.reduce(function(I,x){const Z=x.indexOf("=");if(Z!==-1){const $=function(se){return se.indexOf("-")!==-1&&se.match(QO)===null&&(se=se.replace(eR,function(me,ce){return ce.toUpperCase()})),se}(x.slice(0,Z)).trim(),ie=function(se){const me=se[0];return(me==='"'||me==="'")&&se.length>=2&&se[se.length-1]===me?se.slice(1,-1):se}(x.slice(Z+1).trim()),_e=cv[$]||$;if(_e==="ref")return I;const Re=I[_e]=function(se,me,ce,Ve){return me==="style"?function(ve){const z=[];let K="",ee=!1,Se=!1,O="";if(!ve)return z;for(let W=0;W<ve.length;W++){const Y=ve[W];if(Y!=='"'&&Y!=="'"||ee||(Se?Y===O&&(Se=!1,O=""):(Se=!0,O=Y)),Y==="("&&K.endsWith("url")?ee=!0:Y===")"&&ee&&(ee=!1),Y!==";"||Se||ee)K+=Y;else{const te=K.trim();if(te){const re=te.indexOf(":");if(re>0){const ue=te.slice(0,re).trim(),$e=te.slice(re+1).trim();z.push([ue,$e])}}K=""}}const k=K.trim();if(k){const W=k.indexOf(":");if(W>0){const Y=k.slice(0,W).trim(),te=k.slice(W+1).trim();z.push([Y,te])}}return z}(ce).reduce(function(ve,[z,K]){return ve[z.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Ve(K,se,z),ve},{}):DO.indexOf(me)!==-1?Ve(Zn(ce),se,me):(ce.match(KO)&&(ce=Zn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)}(E,$,ie,s);typeof Re=="string"&&(id.test(Re)||sd.test(Re))&&(I[_e]=m(Re.trim()))}else x!=="style"&&(I[cv[x]||x]=!0);return I},{}):null}const y=[],_={},T={0:{t:[">"],o:Er(dv),i:1,u(E,w,S){const[,I,x]=E[0].replace(HO,"").match(jO);return{alert:I,children:w(x,S)}},l(E,w,S){const I={key:S.key};return E.alert&&(I.className="markdown-alert-"+i(E.alert.toLowerCase(),js),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",I,w(E.children,S))}},1:{o:Is(IO),i:1,u:od,l:(E,w,S)=>h("br",{key:S.key})},2:{t:E=>{const w=E[0];return w==="-"||w==="*"||w==="_"},o:Er(zO),i:1,u:od,l:(E,w,S)=>h("hr",{key:S.key})},3:{t:[" "],o:Er(mv),i:0,u:E=>({lang:void 0,text:Zn(Ks(E[0].replace(/^ {4}/gm,"")))}),l:(E,w,S)=>h("pre",{key:S.key},h("code",Ha({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:Er(hv),i:0,u:E=>({attrs:g("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:ra(GO),i:3,u:E=>({text:Zn(E[2])}),l:(E,w,S)=>h("code",{key:S.key},E.text)},6:{t:["[^"],o:Er(FO),i:0,u:E=>(y.push({footnote:E[2],identifier:E[1]}),{}),l:ud},7:{t:["[^"],o:na(PO),i:1,u:E=>({target:"#"+i(E[1],js),text:E[1]}),l:(E,w,S)=>h("a",{key:S.key,href:s(E.target,"a","href")},h("sup",{key:S.key},E.text))},8:{t:["[ ]","[x]"],o:na(XO),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,w,S)=>h("input",{checked:E.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Er(r.enforceAtxHeadings?gv:pv),i:1,u:(E,w,S)=>({children:Fo(w,E[2],S),id:i(E[2],js),level:E[1].length}),l:(E,w,S)=>h("h"+E.level,{id:E.id,key:S.key},w(E.children,S))},10:{o:Er(yv),i:0,u:(E,w,S)=>({children:Fo(w,E[1],S),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Is(id),i:1,u(E,w,S){const[,I]=E[3].match(bR),x=RegExp("^"+I,"gm"),Z=E[3].replace(x,""),$=(ie=Z,d.some(ce=>ce.test(ie))?BR:Fo);var ie;const _e=E[1].toLowerCase(),Re=MO.indexOf(_e)!==-1,se=(Re?_e:E[1]).trim(),me={attrs:g(se,E[2]),noInnerParse:Re,tag:se};if(S.inAnchor=S.inAnchor||_e==="a",Re)me.text=E[3];else{const ce=S.inHTML;S.inHTML=!0,me.children=$(w,Z,S),S.inHTML=ce}return S.inAnchor=!1,me},l:(E,w,S)=>h(E.tag,Ha({key:S.key},E.attrs),E.text||(E.children?w(E.children,S):""))},13:{t:["<"],o:Is(sd),i:1,u(E){const w=E[1].trim();return{attrs:g(w,E[2]||""),tag:w}},l:(E,w,S)=>h(E.tag,Ha({},E.attrs,{key:S.key}))},12:{t:["<!--"],o:Is(vv),i:1,u:()=>({}),l:ud},14:{t:["!["],o:ra(OR),i:1,u:E=>({alt:Zn(E[1]),target:Zn(E[2]),title:Zn(E[3])}),l:(E,w,S)=>h("img",{key:S.key,alt:E.alt||void 0,title:E.title||void 0,src:s(E.target,"img","src")})},15:{t:["["],o:na(xR),i:3,u:(E,w,S)=>({children:DR(w,E[1],S),target:Zn(E[2]),title:Zn(E[3])}),l:(E,w,S)=>h("a",{key:S.key,href:s(E.target,"a","href"),title:E.title},w(E.children,S))},16:{t:["<"],o:na(JO),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],type:"15"})},17:{t:(E,w)=>!w.inAnchor&&!r.disableAutoLink&&(ah(E,"http://")||ah(E,"https://")),o:na($O),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},18:{t:["<"],o:na(WO),i:0,u(E){let w=E[1],S=E[1];return LO.test(S)||(S="mailto:"+S),{children:[{text:w.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:_v(h,1),33:_v(h,2),19:{o:Er(kO),i:3,u:od,l:()=>`
102
+ `},21:{o:rl(function(E,w){if(w.inline||w.simple||w.inHTML&&E.indexOf(`
103
+
104
+ `)===-1&&w.prevCapture.indexOf(`
105
+
106
+ `)===-1)return null;let S="";E.split(`
107
+ `).every(x=>(x+=`
108
+ `,!c.some(Z=>Z.test(x))&&(S+=x,!!x.trim())));const I=Ks(S);return I===""?null:[S,,I]}),i:3,u:ld,l:(E,w,S)=>h("p",{key:S.key},w(E.children,S))},22:{t:["["],o:na(nR),i:0,u:E=>(_[E[1]]={target:E[2],title:E[4]},{}),l:ud},23:{t:["!["],o:ra(rR),i:0,u:E=>({alt:E[1]?Zn(E[1]):void 0,ref:E[2]}),l:(E,w,S)=>_[E.ref]?h("img",{key:S.key,alt:E.alt,src:s(_[E.ref].target,"img","src"),title:_[E.ref].title}):null},24:{t:["["],o:na(aR),i:0,u:(E,w,S)=>({children:w(E[1],S),fallbackChildren:E[0],ref:E[2]}),l:(E,w,S)=>_[E.ref]?h("a",{key:S.key,href:s(_[E.ref].target,"a","href"),title:_[E.ref].title},w(E.children,S)):h("span",{key:S.key},E.fallbackChildren)},25:{t:["|"],o:Er(bv),i:1,u:CR,l(E,w,S){const I=E;return h("table",{key:S.key},h("thead",null,h("tr",null,I.header.map(function(x,Z){return h("th",{key:Z,style:Sv(I,Z)},w(x,S))}))),h("tbody",null,I.cells.map(function(x,Z){return h("tr",{key:Z},x.map(function($,ie){return h("td",{key:ie,style:Sv(I,ie)},w($,S))}))})))}},27:{o:Is(yR),i:4,u(E){const w=E[0];return{text:w.indexOf("&")===-1?w:w.replace(ZO,(S,I)=>r.namedCodesToUnicode[I]||S)}},l:E=>E.text},28:{t:["**","__"],o:ra(fR),i:2,u:(E,w,S)=>({children:w(E[2],S)}),l:(E,w,S)=>h("strong",{key:S.key},w(E.children,S))},29:{t:E=>{const w=E[0];return(w==="*"||w==="_")&&E[1]!==w},o:ra(dR),i:3,u:(E,w,S)=>({children:w(E[2],S)}),l:(E,w,S)=>h("em",{key:S.key},w(E.children,S))},30:{t:["\\"],o:ra(pR),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:ra(hR),i:3,u:ld,l:(E,w,S)=>h("mark",{key:S.key},w(E.children,S))},32:{t:["~~"],o:ra(mR),i:3,u:ld,l:(E,w,S)=>h("del",{key:S.key},w(E.children,S))}};r.disableParsingRawHTML===!0&&(delete T[11],delete T[13]);const L=function(E){var w=Object.keys(E);function S(I,x){var Z=[];if(x.prevCapture=x.prevCapture||"",I.trim())for(;I;)for(var $=0;$<w.length;){var ie=w[$],_e=E[ie];if(!_e.t||RR(I,x,_e.t)){var Re=_e.o(I,x);if(Re&&Re[0]){I=I.substring(Re[0].length);var se=_e.u(Re,S,x);x.prevCapture+=Re[0],se.type||(se.type=ie),Z.push(se);break}$++}else $++}return x.prevCapture="",Z}return w.sort(function(I,x){return E[I].i-E[x].i||(I<x?-1:1)}),function(I,x){return S(function(Z){return Z.replace(qO,`
109
+ `).replace(VO,"").replace(sR," ")}(I),x)}}(T),N=(V=function(E,w){return function(S,I,x){const Z=E[S.type].l;return w?w(()=>Z(S,I,x),S,I,x):Z(S,I,x)}}(T,r.renderRule),function E(w,S={}){if(Array.isArray(w)){const I=S.key,x=[];let Z=!1;for(let $=0;$<w.length;$++){S.key=$;const ie=E(w[$],S),_e=typeof ie=="string";_e&&Z?x[x.length-1]+=ie:ie!==null&&x.push(ie),Z=_e}return S.key=I,x}return V(w,E,S)});var V;const G=m(n);return y.length?h("div",null,G,h("footer",{key:"footer"},y.map(function(E){return h("div",{id:i(E.identifier,js),key:E.identifier},E.identifier,N(L(E.footnote,{inline:!0})))}))):G}const xr=n=>{let{children:r="",options:i}=n,s=function(u,c){if(u==null)return{};var d,h,m={},g=Object.keys(u);for(h=0;h<g.length;h++)c.indexOf(d=g[h])>=0||(m[d]=u[d]);return m}(n,CO);return H.cloneElement(UR(r,i),s)},HR="_generalConditionsContainer_55hjg_1",jR="_generalConditions_55hjg_1",IR="_generalConditionsHeader_55hjg_15",zR="_generalConditionsBody_55hjg_26",GR="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:HR,generalConditions:jR,generalConditionsHeader:IR,generalConditionsBody:zR,generalConditionsAccept:GR},kR=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})}),qR=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})}),FR="general-conditions.header",PR="general-conditions.body",Tv="general-conditions.accept-conditions-note",VR=()=>{const n=tt(),[r,i]=H.useState(!1),s=()=>i(!r),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},c=n(FR),d=n(Tv);return v.jsxs("div",{className:Q(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&v.jsxs("div",{className:zs.generalConditions,children:[v.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:Q(zs.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[v.jsx(xr,{children:c}),r?v.jsx(qR,{}):v.jsx(kR,{})]}),v.jsx("div",{className:Q(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&v.jsx(xr,{children:n(PR)||""})})]}),!!d?.length&&v.jsx("div",{className:Q(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(xr,{children:n(Tv)||""})})]})},YR="_message_6i1zm_1",XR="_messageBot_6i1zm_9",ZR="_messageBotLast_6i1zm_19",QR="_avatar_6i1zm_19",KR="_messageBotFirst_6i1zm_24",$R="_messageBotAnimated_6i1zm_37",WR="_messageGuest_6i1zm_48",JR="_messageGuestFirst_6i1zm_54",ew="_messageGuestLast_6i1zm_60",tw="_botAvatar_6i1zm_74",nw="_agentAvatar_6i1zm_78",rw="_bubble_6i1zm_82",aw="_bubbleContent_6i1zm_88",iw="_bubbleLeft_6i1zm_102",sw="_leftText_6i1zm_113",lw="_bubbleRight_6i1zm_120",ow="_rightText_6i1zm_130",uw="_sourceInfoReference_6i1zm_162",cw="_sourceInfoReferenceActive_6i1zm_174",ge={message:YR,messageBot:XR,messageBotLast:ZR,avatar:QR,messageBotFirst:KR,messageBotAnimated:$R,messageGuest:WR,messageGuestFirst:JR,messageGuestLast:ew,botAvatar:tw,agentAvatar:nw,bubble:rw,bubbleContent:aw,bubbleLeft:iw,leftText:sw,bubbleRight:lw,rightText:ow,sourceInfoReference:uw,sourceInfoReferenceActive:cw},fw="_botMessageActions_1dl7x_1",dw="_alwaysVisible_1dl7x_22",hw="_reported_1dl7x_29",mw="_action_1dl7x_33",aa={botMessageActions:fw,alwaysVisible:dw,reported:hw,action:mw},pw=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:s,onReaction:u})=>{const c=tt(),[d,h]=H.useState(!1),m=y=>()=>u(y),g=H.useCallback(async()=>{if(s.current)try{h(!0);const y=s.current.innerHTML,_=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([y],{type:"text/html"}),"text/plain":new Blob([_],{type:"text/plain"})})]),await new Promise(T=>setTimeout(T,1500))}finally{h(!1)}},[s]);return v.jsxs("div",{className:Q(aa.botMessageActions,n&&aa.alwaysVisible,i&&aa.reported),children:[r===tu.BOT&&v.jsx("button",{className:Q(aa.action,i==="GOOD"&&aa.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:m(i==="GOOD"?null:"GOOD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="GOOD"?v.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"}):v.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),r===tu.BOT&&v.jsx("button",{className:Q(aa.action,i==="BAD"&&aa.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:m(i==="BAD"?null:"BAD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="BAD"?v.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"}):v.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"})})}),v.jsx("button",{className:Q(aa.action,"tooltip--top-right"),tabIndex:0,"aria-label":c("bot-bubble.copy"),"data-title":c("bot-bubble.copy"),onClick:g,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:d?v.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"}):v.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"})})})]})},Ib=H.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=tt(),g=H.useRef(null),y=n.sender.type===Oe.UserType.BOT;return v.jsxs("li",{ref:h,className:Q(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",r&&ge.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:Q(ge.avatar,y?ge.botAvatar:ge.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),v.jsx("div",{ref:g,className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(y?"bot-bubble.label":"agent-bubble.label"),children:v.jsx("div",{className:Q(ge.leftText),children:c})}),d&&v.jsx(pw,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:d})]})}),gw="_sourceList_1n31h_1",yw="_source_1n31h_1",vw="_label_1n31h_37",fd={sourceList:gw,source:yw,label:vw},zb=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),Gb=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),kb=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),qb=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),bw=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(qb,{...r});case"PDF":return v.jsx(kb,{...r});case"DOCX":return v.jsx(zb,{...r});default:return v.jsx(Gb,{...r})}},Ph=({sources:n,onLinkClick:r})=>{const i=tt(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return n.length?v.jsx("ul",{className:fd.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(c=>v.jsx("li",{className:fd.source,children:v.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[v.jsx(bw,{type:c.type,"aria-hidden":"true"}),v.jsx("div",{className:fd.label,children:c.label})]})},c.url))}):null},_w="_button_3ui4g_1",Ew="_buttonDefault_3ui4g_13",Sw="_buttonPrimary_3ui4g_28",Js={button:_w,buttonDefault:Ew,buttonPrimary:Sw},gu=({className:n,children:r,...i})=>v.jsx("button",{className:Q(Js.button,n),type:"button",role:"button",...i,children:r}),Tw="_title_137pi_1",Aw="_buttons_137pi_6",xw="_button_137pi_6",Ow="_imageContainer_137pi_29",Rw="_image_137pi_29",ww="_video_container_137pi_44",Cw="_video_137pi_44",Nw="_only_137pi_58",ln={title:Tw,buttons:Aw,button:xw,imageContainer:Ow,image:Rw,video_container:ww,video:Cw,only:Nw},Mw=({buttons:n,onButtonClick:r})=>v.jsx("div",{className:Q(ln.buttons,"chat__bubbleButtons"),children:n.map((i,s)=>v.jsx(gu,{className:Q(ln.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),Av="newtab#",Fb=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const s=c=>d=>(d.preventDefault(),c&&i(c),!1),u=({title:c,href:d,children:h})=>d.indexOf(Av)===0?v.jsx("a",{href:d.slice(Av.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):v.jsx("a",{onClick:s(d),title:c,href:d,children:h});return v.jsx(xr,{options:{...r,overrides:{a:u}},children:n})},Dw=({text:n,onLinkClick:r})=>n?v.jsx("div",{children:v.jsx(Fb,{markdown:n,onLinkClick:r})}):null,Bw=({title:n})=>n?v.jsx("h1",{className:ln.title,children:n}):null,Lw=({title:n,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>n?.length||r?.length||i?.length?v.jsxs("div",{className:Q(ge.bubbleContent),children:[v.jsx(Bw,{title:n}),v.jsx(Dw,{text:r,onLinkClick:u}),v.jsx(Mw,{buttons:i,onButtonClick:s})]}):null,Uw=({alt:n,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?v.jsx("div",{className:ln.video_container,children:v.jsx("iframe",{className:Q(ln.video,{[ln.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):v.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:v.jsx("div",{className:ln.imageContainer,children:v.jsx("img",{className:Q(ln.image,{[ln.only]:!s}),src:r,alt:n})})}):v.jsx("div",{className:ln.imageContainer,children:v.jsx("img",{className:Q(ln.image,{[ln.only]:!s}),src:r,alt:n})}):null,Hw=({title:n,text:r,imageUrl:i,itemUrl:s,buttons:u,sources:c,onButtonClick:d,onLinkClick:h})=>{const m=!!n?.length||!!r?.length||!!u?.length;return v.jsxs("div",{className:Q(ln.detailMessage),children:[v.jsx(Uw,{hasBody:m,imageUrl:i,itemUrl:s,alt:n||""}),m&&v.jsx(Lw,{title:n,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),v.jsx(Ph,{sources:c,onLinkClick:h})]})},jw=H.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},s)=>{const u=tt();return v.jsx("li",{ref:s,className:Q(ge.message,ge.messageGuest,n&&ge.messageGuestFirst,r&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:v.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:v.jsx("div",{className:Q(ge.rightText),children:i})})})}),Iw="_markdown_nw7vg_1",Pb={markdown:Iw},Vb=()=>zw(window.location.pathname),zw=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},Vh=()=>H.useMemo(()=>Vb(),[]),Ho="source-info-reference",Gw=({actionId:n,markdown:r,sources:i,onLinkClick:s})=>{const u=Vh(),c=ka(),d=kw(),h=Zt(y=>{const _=y.chat.sourceInfos;if(_?.type==="loaded"||_?.type==="loading")return _.chunkId}),m=y=>_=>{const T=_.key;(T==="ArrowDown"||T==="ArrowRight"||T==="Enter"||T===" "||T==="Space")&&(_.stopPropagation(),c(lv(u,n,y)))},g=y=>()=>{c(lv(u,n,y))};return H.useLayoutEffect(()=>{document.querySelectorAll(`.${Ho}`).forEach(y=>{const _=y.previousSibling;_&&_.nodeType===Node.TEXT_NODE&&_.textContent?.endsWith(" ")&&_.textContent?.trim().length&&y.classList.add(`${Ho}--before-space`);const T=y.nextSibling;T&&T.nodeType===Node.TEXT_NODE&&T.textContent?.startsWith(" ")&&T.textContent?.trim().length&&y.classList.add(`${Ho}--after-space`)})},[r]),v.jsxs("div",{className:ge.bubbleContent,children:[v.jsx("div",{className:Pb.markdown,children:v.jsx(Fb,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(y,_,T,L){if(_.type===NO.footnoteReference){const N=_.text===h;return v.jsx("span",{className:Q(ge.sourceInfoReference,N&&ge.sourceInfoReferenceActive,Ho),children:v.jsx("a",{type:"button",tabIndex:0,onClick:g(_.text),onKeyDown:m(_.text),children:d(_.text)})},L.key)}return y()}}})}),v.jsx(Ph,{sources:i,onLinkClick:s})]})},kw=()=>{const n=[];return i=>{const s=n.indexOf(i);return s>-1?s+1:(n.push(i),n.length)}},qw="_text_gp0s0_1",Fw="_command_gp0s0_5",xv={text:qw,command:Fw},Pw=({text:n,commands:r=[]})=>{const i=r.find(u=>n.startsWith(`/${u}`)),s=i?n.slice(i.length+1):n;return v.jsxs("div",{children:[i&&v.jsxs("code",{className:xv.command,children:["/",i]}),s.split(`
110
+ `).map((u,c)=>v.jsxs("span",{className:xv.text,children:[u,v.jsx("br",{})]},c))]})},Vw=({text:n,commands:r,sources:i,onLinkClick:s})=>v.jsxs("div",{className:ge.bubbleContent,children:[v.jsx(Pw,{text:n,commands:r}),v.jsx(Ph,{sources:i,onLinkClick:s})]}),Yw=H.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const g=Xw(n._id,n,r,d,h);switch(n.sender.type){case Oe.UserType.GUEST:return v.jsx(jw,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:g});default:{const y=_=>c(n._id,_);return v.jsx(Ib,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:y,children:g})}}}),Xw=(n,r,i,s,u)=>{switch(r.type){case Oe.MessageTypeEnum.TEXT:{const c=r;return v.jsx(Vw,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Oe.MessageTypeEnum.DETAIL:{const c=r;return v.jsx(Hw,{title:c.title,text:c.text,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Oe.MessageTypeEnum.MARKDOWN:{const c=r;return v.jsx(Gw,{actionId:n,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},Zw=(n,r)=>n.message._id===r.message._id&&n.message.reaction===r.message.reaction&&n.isLastMessage===r.isLastMessage&&n.isFirstMessageBySender===r.isFirstMessageBySender&&n.isLastMessageBySender===r.isLastMessageBySender,Qw=g1.memo(Yw,Zw),Kw="_ticontainer_xg0dn_1",$w="_tiblock_xg0dn_5",Ww="_tidot_xg0dn_12",Gs={ticontainer:Kw,tiblock:$w,tidot:Ww},Jw=({isTyping:n=!1})=>v.jsx("div",{className:Gs.ticontainer,children:v.jsx("div",{className:Gs.tiblock,children:n?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")})]}):null})}),eC=Object.assign({_id:"typing-indicator"},new Oe.TextMessage("",new Oe.BotUser)),tC=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=H.useRef(0),h=H.useRef(!0),m=H.useRef(null),g=H.useRef(null),y=H.useRef(null),_=Zt(N=>N.settings.enableGeneralConditions);H.useLayoutEffect(()=>{if(n.length&&m.current&&(d.current<n.length||r)){if(g.current){const N=g.current.offsetTop;m.current.scrollTop=N}else if(y.current){const N=y.current.offsetTop;m.current.scrollTop=N}h.current&&(h.current=!1),d.current=n.length}},[n,h,r]);let T;const L=n.length;return v.jsxs("div",{ref:m,className:Q(uv.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[_&&v.jsx(VR,{}),v.jsxs("ul",{className:uv.messages,children:[n.map((N,V)=>{const G=nC(N,T),E=rC(N,V,n,r);T=N.sender.type;const w=V+1===L,S=N._id||`added-${V}`;return v.jsx(Qw,{ref:w?y:null,message:N,commands:i,isLastMessage:w,isFirstMessageBySender:G,isLastMessageBySender:E,onButtonClick:u,onLinkClick:c,onReaction:s},w&&!r?"last":S)}),r&&v.jsx(Ib,{ref:g,message:eC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:T!==Oe.UserType.BOT,isLastMessageBySender:!0,children:v.jsx(Jw,{isTyping:!0})},"last")]})]})},nC=(n,r)=>!r||r!==n.sender.type,rC=(n,r,i,s)=>{const u=n.sender.type,c=i.length;return r+1===c?!(u===Oe.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},aC="_bottomSheet_jp8dl_1",iC="_bottomSheetOpen_jp8dl_15",sC="_bottomSheetClose_jp8dl_20",Or={bottomSheet:aC,bottomSheetOpen:iC,bottomSheetClose:sC},lC="_container_xc2nx_1",Ov={container:lC},oC=({contentUrl:n})=>{const r=Zt(c=>c.connection.sessionId),[i,s]=H.useState(!1);H.useEffect(()=>{s(c=>c||!!n)},[n]);const u=H.useMemo(()=>{if(n&&r){const c=new URL(n,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[n,r]);return v.jsx("div",{className:Q(Ov.container,Or.bottomSheet,{[Or.bottomSheetOpen]:!!n,[Or.bottomSheetClose]:i&&!n}),children:u&&v.jsx("iframe",{title:"Drawer",src:u,className:Ov.iframe})})},uC="_container_z787n_1",cC={container:uC},fC=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),dC=()=>{const r=tt()("powered-by");return r&&r.length?v.jsx("div",{className:Q(cC.container,"chat__poweredBy"),children:v.jsx(xr,{options:{overrides:{a:fC}},children:r})}):null},hC=({className:n,children:r,...i})=>v.jsx(gu,{className:Q(Js.buttonDefault,n),type:"button",...i,children:r}),nu=({className:n,children:r,...i})=>v.jsx(gu,{className:Q(Js.buttonPrimary,n),...i,children:r}),mC="_container_h23mk_1",pC="_formContainer_h23mk_17",gC="_emailInput_h23mk_22",yC="_description_h23mk_52",vC="_actions_h23mk_57",bC="_validationError_h23mk_67",_C="_submitted_h23mk_74",Da={container:mC,formContainer:pC,emailInput:gC,description:yC,actions:vC,validationError:bC,submitted:_C},EC=({visible:n,onEmailExport:r,onClose:i})=>{const s=tt(),[u,c]=H.useState(void 0),[d,h]=H.useState(!1),[m,g]=H.useState(void 0),y=H.useRef(null);H.useEffect(()=>{n?(y.current?.focus(),h(!1),c(n)):u===!0&&c(!1)},[n,u]);const _=L=>{L.preventDefault(),m&&m.length>0&&(r(m),h(!0),setTimeout(i,3*1e3))},T=L=>{const N=L.target.value.trim(),V=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(N);g(V?N:"")};return v.jsxs("div",{className:Q(Da.container,Or.bottomSheet,{[Or.bottomSheetOpen]:u===!0,[Or.bottomSheetClose]:u===!1}),children:[v.jsx("h2",{children:s("export-transcript.email.title")}),v.jsx(xr,{className:Da.description,children:s("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:_,className:Da.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:d,ref:y,type:"email",placeholder:s("export-transcript.email.placeholder"),className:Da.emailInput,onChange:T}),m?.length===0?v.jsx("div",{className:Da.validationError,children:s("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:Da.actions,children:[v.jsx(hC,{onClick:i,children:s("export-transcript.email.cancel")}),v.jsx(nu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&v.jsx("div",{className:Da.submitted,children:s("export-transcript.email.success")})]})},SC="_inputContainer_fi5ao_1",TC={inputContainer:SC},AC="_blockUserInput_pot9c_1",xC={blockUserInput:AC},OC=({visible:n})=>{const r=tt();return n?v.jsx("div",{className:Q(xC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},RC="_commandsDropdown_5ytuv_1",wC="_commands_5ytuv_1",CC="_command_5ytuv_1",NC="_commandActive_5ytuv_46",MC="_commandsSelections_5ytuv_55",Zs={commandsDropdown:RC,commands:wC,command:CC,commandActive:NC,commandsSelections:MC},Yb=(n,r)=>{H.useEffect(()=>{const i=s=>{n.current&&!n.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},DC=(n,r,i,s,u)=>{H.useEffect(()=>{const c=d=>{if(n.length)switch(d.key){case"Enter":i(n[r]);break;case"ArrowUp":s(h=>h>0?h-1:n.length-1);break;case"ArrowDown":s(h=>h<n.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[n,r,i,s,u])},BC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=H.useRef(null),c=tt(),[d,h]=H.useState([]),[m,g]=H.useState(Rv(r)),[y,_]=H.useState(0),T=L=>i(`/${L}`);return Yb(u,()=>h([])),DC(d,y,T,_,h),H.useEffect(()=>{g(Rv(r))},[r]),H.useEffect(()=>{const L=n.length||0;L===0||L>m||!n.startsWith("/")?h([]):h(r.filter(LC(n))),_(0)},[r,n,m]),H.useEffect(()=>{s(!!d.length)},[d,s]),d.length?v.jsx("div",{ref:u,className:Zs.commandsDropdown,children:v.jsx("ul",{id:"command-list",className:Zs.commands,role:"listbox",children:d.map((L,N)=>v.jsxs("li",{className:Q([Zs.command,y===N&&Zs.commandActive]),role:"option",onClick:()=>T(L),onMouseOver:()=>_(N),children:[v.jsxs("h1",{children:["/",L]}),v.jsx("p",{children:c(`commands.${L}`)})]},L))})}):null},Rv=n=>Math.max(...n.map(r=>r.length+1)),LC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},wv=3,UC=({commands:n,onSelectCommand:r})=>{const i=tt(),[s,u]=H.useState(!1),c=g=>()=>{r(`/${g}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?n:n.slice(0,wv);return v.jsxs("div",{className:Zs.commandsSelections,children:[m.map(g=>v.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${g}`),"data-title":i(`commands.${g}`),tabIndex:0,onClick:c(g),children:["/",g]},g)),m.length<n.length?v.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):m.length>wv?v.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},HC="_callToActionContainer_1pojq_1",jC="_callToActionTitle_1pojq_23",IC="_rateOverlay_1pojq_30",zC="_body_1pojq_52",GC="_footer_1pojq_60",kC="_actions_1pojq_73",qC="_bubbles_1pojq_101",FC="_stars_1pojq_203",PC="_starsSmall_1pojq_217",VC="_starsLarge_1pojq_223",YC="_star_1pojq_203",XC="_starReadonly_1pojq_237",ZC="_starIcon_1pojq_247",QC="_starsDescriptionContainer_1pojq_265",KC="_starsDescription_1pojq_265",jt={callToActionContainer:HC,callToActionTitle:jC,rateOverlay:IC,body:zC,footer:GC,actions:kC,bubbles:qC,stars:FC,starsSmall:PC,starsLarge:VC,star:YC,starReadonly:XC,starIcon:ZC,starsDescriptionContainer:QC,starsDescription:KC},$C=({value:n,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return v.jsx("li",{className:Q(jt.star,{[jt.starReadonly]:s},"chat__conversationRating__star"),children:v.jsx("div",{role:"radio","aria-checked":n>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:c,children:v.jsx("span",{role:"img","aria-label":"Star",className:Q(jt.starIcon),children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.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"})})})})})},Cv=5,Xb=({value:n,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=H.useState(void 0),d=()=>{c(void 0)},h=g=>()=>{if(!i){const y=g+1;c(y)}},m=g=>()=>{s&&!i&&(s(g===0&&n===1?0:g+1),c(void 0))};return v.jsx("ul",{tabIndex:0,role:"radiogroup",className:Q(jt.stars,{[jt.starsSmall]:r==="small",[jt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Cv).fill(0).map((g,y)=>v.jsx($C,{value:u===void 0?n:u,index:y,count:Cv,readonly:i,onHover:h(y),onClick:m(y)},y))})},WC=({visible:n,onRate:r})=>{const i=tt();return n?v.jsxs("div",{className:Q(jt.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:Q(jt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),v.jsx(Xb,{value:0,size:"small",onChange:r})]}):null},dd=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>v.jsxs("div",{className:Q(ge.message,ge.messageBot,n&&ge.messageBotFirst,r&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:Q(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:Q(ge.leftText,ge.bubbleContent),children:i})})]}),JC=({children:n})=>v.jsx("div",{className:Q(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:Q(ge.rightText,ge.bubbleContent),children:n})})}),e6=({visible:n,rating:r,onRate:i,onClose:s})=>{const u=tt(),[c,d]=H.useState(r),[h,m]=H.useState(void 0),[g,y]=H.useState(void 0),[_,T]=H.useState({submitted:!1,feedback:""}),[L,N]=H.useState(!1),V=H.useRef(null);H.useEffect(()=>{n?(T({submitted:!1,feedback:""}),y(n)):g===!0&&y(!1)},[n,g]),H.useEffect(()=>{d(r)},[r]),H.useEffect(()=>{const E=c>0?u(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;m(E?.length?E:void 0)},[c,u]),H.useEffect(()=>{_.submitted?setTimeout(()=>N(!0),_.feedback.length?500:0):N(!1)},[_]);const G=E=>{E.preventDefault();const w=V.current?.value?.trim()||"";i(c,w),T({submitted:!0,feedback:w})};return v.jsx("div",{className:Q(jt.rateOverlay,Or.bottomSheet,"chat__conversationRating__overlay",{[Or.bottomSheetOpen]:g===!0,[Or.bottomSheetClose]:g===!1}),children:v.jsxs("form",{onSubmit:G,children:[v.jsxs("div",{className:Q(jt.body,"chat__conversationRating__overlay__body"),children:[v.jsx("div",{}),v.jsx("div",{className:Q(jt.bubbles),children:n&&h&&v.jsxs(v.Fragment,{children:[v.jsxs(dd,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[v.jsx("h2",{children:u("conversation-rating.overlay.title")}),v.jsxs("div",{className:Q(jt.starsDescriptionContainer),children:[v.jsx(Xb,{value:c,size:"large",readonly:_.submitted,onChange:d}),v.jsxs("div",{className:Q(jt.starsDescription),children:[v.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),v.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),v.jsx(dd,{isFirstMessageBySender:!1,isLastMessageBySender:!L||!!_.feedback.length,children:v.jsx("div",{children:h})}),!!_.feedback.length&&v.jsx(JC,{children:_.feedback}),L&&v.jsx(dd,{isFirstMessageBySender:!!_.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:Q(jt.footer,"chat__conversationRating__overlay__footer"),children:[!_.submitted&&v.jsx("input",{ref:V,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsx("div",{className:Q(jt.actions,"chat__conversationRating__overlay__footer__actions"),children:_.submitted?v.jsx(nu,{type:"button",onClick:s,children:u("conversation-rating.overlay.action.close")}):v.jsx(nu,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},t6=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:u,onRate:c})=>{const[d,h]=H.useState(0),m=_=>{h(_),u(!0)},g=()=>u(!1),y=!r&&i>=1;return n?v.jsxs(v.Fragment,{children:[v.jsx(WC,{visible:y,onRate:m}),v.jsx(e6,{visible:s,rating:d,onRate:c,onClose:g})]}):null},n6=H.memo(t6),r6="_inputWrapper_e3h44_1",a6="_withOpenCommands_e3h44_14",i6="_messageInputWrapper_e3h44_20",s6="_messageInput_e3h44_20",l6="_buttons_e3h44_44",o6="_button_e3h44_44",xi={inputWrapper:r6,withOpenCommands:a6,messageInputWrapper:i6,messageInput:s6,buttons:l6,button:o6},u6="_audioRecorder_g845f_1",c6="_audioButton_g845f_6",f6="_recorderIcon_g845f_37",d6="_spinning_g845f_60",Ba={audioRecorder:u6,audioButton:c6,recorderIcon:f6,spinning:d6},Nv=2048,ru=16e3;class h6 extends g1.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(Nv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=Nv}}handleClickSubmitAudio(){const r=p6(this.leftchannel,this.recordingLength),i=g6(r,this.sampleRate||0),s=m6(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return v.jsxs("div",{className:Ba.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:Q(Ba.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:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.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"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&v.jsxs("svg",{className:Ba.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.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"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&v.jsxs("div",{className:Ba.audioRecorder,children:[v.jsx("button",{className:Q(Ba.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.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"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),v.jsx("div",{className:Ba.recorderIcon}),v.jsx("button",{className:Q(Ba.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const m6=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);jo(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),jo(i,8,"WAVE"),jo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,ru,!0),i.setUint32(28,ru*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),jo(i,36,"data"),i.setUint32(40,n.length*2,!0);const s=n.length;let u=44;const c=1;for(let d=0;d<s;d++)i.setInt16(u,n[d]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},jo=(n,r,i)=>{for(let s=0;s<i.length;s++)n.setUint8(r+s,i.charCodeAt(s))},p6=(n,r)=>{const i=new Float32Array(r);let s=0;const u=n.length;for(let c=0;c<u;c++){const d=n[c];i.set(d,s),s+=d.length}return i},g6=(n,r)=>{if(ru===r)return n;const i=r/ru,s=Math.round(n.length/i),u=new Float32Array(s);let c=0,d=0;for(;c<u.length;){const h=Math.round((c+1)*i);let m=0,g=0;for(let y=d;y<h&&y<n.length;y++)m+=n[y],g++;u[c]=m/g,c++,d=h}return u},y6=({disabled:n,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=tt(),m=H.useRef(null),{enableSpeechSupport:g}=Zt(N=>N.settings);H.useEffect(()=>{m.current?.focus()},[r]);const y=()=>{const N=m.current;N&&r.trim().length>=1&&c(r.trim())&&(N.value="",N.style.height="",N.focus())},_=N=>{N.preventDefault(),y()},T=N=>{const V=N.target.value;u(V),N.target.style.height="";const{scrollHeight:G}=N.target;N.target.style.height=`${G>150?150:G}px`},L=N=>{N.code==="Enter"&&!N.shiftKey?(N.repeat||y(),N.preventDefault()):i&&(N.code==="ArrowUp"||N.code==="ArrowDown")&&N.preventDefault()};return v.jsxs("form",{className:Q(xi.inputWrapper,i&&xi.withOpenCommands,"chat__textInput"),onSubmit:_,children:[v.jsx("div",{className:xi.messageInputWrapper,children:v.jsx("textarea",{id:"user_input",ref:m,className:xi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:T,onKeyDown:L,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),v.jsx("div",{className:Q(xi.buttons,"chat__buttons"),children:r.length||!g||navigator.mediaDevices===void 0?v.jsx("button",{className:Q(xi.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.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"})})}):g&&navigator.mediaDevices!==void 0&&v.jsx(h6,{translate:h,onAudioRecorded:d})})]})},v6="_quickReplies_83npe_1",b6="_quickReply_83npe_9",Mv={quickReplies:v6,quickReply:b6},_6=({quickReplies:n,onQuickReplyClick:r})=>n.length?v.jsx("div",{className:Q(Mv.quickReplies,"chat__quickReplies"),children:n.map(i=>v.jsx(gu,{tabIndex:0,className:Q(Mv.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Dv=5e3,E6=1e3,S6=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:s,showRatingOverlay:u,commands:c,setShowRatingOverlay:d,onTextInput:h,onRate:m,onQuickReplyClick:g,onAudioRecorded:y})=>{const[_,T]=H.useState(""),[L,N]=H.useState(!1),[V,G]=H.useState(!1),E=H.useRef(0),w=H.useRef(0);H.useEffect(()=>{if(L&&!n){const x=E.current?Date.now()-E.current:0;x>Dv?N(!1):setTimeout(()=>{N(!1)},Dv-x)}},[L,n]),H.useEffect(()=>{L&&(E.current=Date.now())},[L]);const S=x=>{const Z=Date.now()-w.current<E6;return V?!1:n||Z?(N(!0),!1):(h(x),T(""),w.current=Date.now(),!0)},I=x=>{T(x+" ")};return v.jsxs("div",{className:Q(TC.inputContainer),children:[v.jsx(_6,{quickReplies:r,onQuickReplyClick:g}),v.jsx(OC,{visible:L}),!L&&v.jsx(n6,{conversationRating:i,numberOfMessagesFromGuest:s,onRate:m,showRatingOverlay:u,setShowRatingOverlay:d}),!!c?.length&&v.jsx(BC,{text:_,commands:c,onSelectCommand:I,onVisibilityChange:G}),v.jsx(y6,{textInput:_,disabled:L,commandsVisible:V,hasCommands:!!c?.length,onTextInput:T,onTextInputSubmit:S,onAudioRecorded:y}),!!c?.length&&v.jsx(UC,{commands:c,onSelectCommand:T})]})},T6=({clientName:n,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c,onMessageFromUser:d,onRate:h,onQuickReplyClick:m,onButtonClick:g,onLinkClick:y,onAudioRecorded:_,onTranscriptExport:T,onTranscriptItemReaction:L})=>{const N=ka(),V=Zt($=>$.connection.connectionState),{enableTranscriptExportEmail:G,commands:E}=Zt($=>$.settings),{showTranscriptMailOverlay:w}=Zt($=>$.chat),[S,I]=H.useState(!1),x=r.filter($=>$.sender.type===tu.GUEST).length;H.useEffect(()=>{if(V===ja.CONNECTED){const $=lu.parse(window.location.search);N(Cb(n,$))}},[n,V,N]);const Z=()=>{N(wb())};return v.jsxs("div",{className:ad.container,children:[v.jsxs("div",{className:Q([ad.chatcontent,(w||S)&&ad.accessabilityHidden]),children:[v.jsx(tC,{messages:r,isBotTyping:s,commands:E,onButtonClick:g,onLinkClick:y,onTranscriptItemReaction:L}),v.jsx(S6,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:x,conversationRating:c,showRatingOverlay:S,setShowRatingOverlay:I,commands:E,onRate:h,onQuickReplyClick:m,onTextInput:d,onAudioRecorded:_}),v.jsx(dC,{})]}),G&&v.jsx(EC,{visible:!!w,onEmailExport:T,onClose:Z}),v.jsx(oC,{contentUrl:u})]})},A6=n=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}=n.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,conversationRating:c}},x6=n=>({onRestartChat:(r,i)=>n(mu(r,i)),onMessageFromUser:r=>n(ib(r)),onRate:(r,i)=>n(_x(r,i)),onAudioRecorded:r=>n(px(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(ab(r)),onNluEvent:r=>n(cb(r)),onButtonClick:r=>n(Sx(r)),onLinkClick:r=>n(fb(r)),onTranscriptExport:r=>n(yx(r)),onTranscriptItemReaction:(r,i)=>n(Oe.Actions.transcriptItemGuestReaction(r,i||null))}),O6=H2(A6,x6)(T6),Zb=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},R6=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},w6=({onClick:n})=>{const r=tt();return Zb()?v.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:R6(n),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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},C6="_header_3gvbz_1",N6="_logoContainer_3gvbz_14",M6="_logo_3gvbz_14",D6="_actions_3gvbz_28",B6="_active_3gvbz_43",L6="_menuContainer_3gvbz_56",U6="_menu_3gvbz_56",H6="_divider_3gvbz_86",ia={header:C6,logoContainer:N6,logo:M6,actions:D6,active:B6,menuContainer:L6,menu:U6,divider:H6},j6=({icon:n})=>{switch(n){case"arrow-counter-clockwise":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.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 v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.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 v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.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 v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.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 v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.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 v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.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"link":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.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 v.jsx("div",{})}},I6=H.forwardRef(({selected:n,item:r,onClick:i},s)=>{const u=tt(),c=d=>{d.preventDefault(),i()};return v.jsx("li",{"aria-selected":n,role:"option",className:r.withDivider?ia.divider:void 0,children:v.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[v.jsx(j6,{icon:r.icon}),v.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),z6=n=>{const r=Zb(),{menuItems:i,enableStandaloneView:s,enableTranscriptExportPdf:u,enableTranscriptExportEmail:c}=Zt(h=>h.settings);return H.useMemo(()=>{const h=[];if(n&&(h.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),r&&s&&h.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),u&&h.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),c&&h.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),h.length>1)){const m=h.pop();m&&i.length&&h.push({...m,withDivider:!0})}return h.push(...i),h.filter(({visibility:m})=>n?m==="always"||m==="chat-only":m==="always"||m==="start-screen-only")},[n,u,c,s,r,i])},G6=({chatStarted:n})=>{const r=ka(),i=Vh(),s=tt(),[u,c]=H.useState(!1),[d,h]=H.useState(-1),m=H.useRef(null),g=H.useRef(null),y=H.useRef([]),_=z6(n);H.useEffect(()=>{y.current[d]?.focus()},[d]);const T=H.useCallback(()=>{const G=lu.parse(window.location.search);r(mu(i,G)),c(!1),h(0)},[r,i]),L=H.useCallback(G=>{switch(G.type){case"restart-chat":T();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":r(vx());break;case"send-transcript":r(wb());break;case"link":r(fb(G.url));break;case"action":r(JSON.parse(JSON.stringify(G.action)));break}c(!1)},[r,T,c]);H.useEffect(()=>{const G=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),L(_[d]);break;case"ArrowUp":h(w=>w>0?w-1:_.length-1);break;case"ArrowDown":h(w=>w<_.length-1?w+1:0);break;case"Escape":c(!1);break;case"Tab":d>-1&&c(!1);break}};return document.addEventListener("keydown",G),()=>{document.removeEventListener("keydown",G)}},[u,d,_,h,c,L]),H.useEffect(()=>{u||h(-1)},[u,d]),Yb(g,()=>c(!1));const N=()=>{c(G=>!G)},V=()=>{setTimeout(()=>{const G=document.activeElement;g.current&&!g.current.contains(G)&&c(!1)},0)};return _.length?v.jsxs("div",{className:Q(ia.menuContainer),ref:g,children:[v.jsx("button",{ref:m,className:Q(u&&ia.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:N,onBlur:V,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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&&v.jsx("nav",{className:ia.menu,"aria-label":s("header.menu.title"),children:v.jsx("ul",{tabIndex:0,children:_.map((G,E)=>v.jsx(I6,{ref:w=>{y.current[E]=w},selected:d===E,item:G,onClick:()=>L(G)},G.id))})})]}):null},Bv=({className:n,chatStarted:r,...i})=>{const s=ka(),u=()=>{s(hO())};return v.jsxs("div",{className:Q([ia.header,n]),...i,children:[v.jsx("div",{className:ia.logoContainer,children:v.jsx("div",{className:ia.logo})}),v.jsxs("div",{className:ia.actions,children:[v.jsx(G6,{chatStarted:r}),v.jsx(w6,{onClick:u})]})]})},k6="_chatwindow_rkbir_1",q6="_chatwindowWithAside_rkbir_21",Lv={chatwindow:k6,chatwindowWithAside:q6},Qb=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),n},F6="_sourceInfos_vei0l_1",P6="_waitForLoading_vei0l_24",V6="_loadingContent_vei0l_28",Y6="_sourceHeader_vei0l_37",X6="_sourceHeaderIcon_vei0l_57",Z6="_sourceContent_vei0l_61",Q6="_openSourceButton_vei0l_69",K6="_sourceButtonLabel_vei0l_79",$6="_closeSourceInfosButton_vei0l_101",W6="_loadingSourceInfos_vei0l_125",J6="_loading_vei0l_28",eN="_loadingError_vei0l_139",tN="_highlightLoadingInfo_vei0l_155",nN="_highlightLoadingInfoInnerContainer_vei0l_169",rN="_highlightLoadingInfoContent_vei0l_178",aN="_highlightLoadingInfoCloseIcon_vei0l_198",iN="_highlightLoader_vei0l_203",sN="_highlightLoaderLoading_vei0l_210",vt={sourceInfos:F6,waitForLoading:P6,loadingContent:V6,sourceHeader:Y6,sourceHeaderIcon:X6,sourceContent:Z6,openSourceButton:Q6,sourceButtonLabel:K6,closeSourceInfosButton:$6,loadingSourceInfos:W6,loading:J6,loadingError:eN,highlightLoadingInfo:tN,highlightLoadingInfoInnerContainer:nN,highlightLoadingInfoContent:rN,highlightLoadingInfoCloseIcon:aN,highlightLoader:iN,highlightLoaderLoading:sN},lN=({onClick:n})=>{const r=tt();return v.jsx("button",{className:Q(vt.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:n,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})})})},oN=H.forwardRef(({sourceInfos:n,onClose:r,...i},s)=>v.jsxs("div",{className:vt.sourceHeader,...i,ref:s,children:[v.jsx("div",{children:n?v.jsx("p",{id:"source-info-title",children:n.title}):v.jsx("p",{children:" "})}),v.jsx(lN,{onClick:r})]})),uN=({loading:n})=>v.jsx("div",{className:vt.highlightLoader,children:n&&v.jsx("div",{className:vt.highlightLoaderLoading})});/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:Kb,setPrototypeOf:Uv,isFrozen:cN,getPrototypeOf:fN,getOwnPropertyDescriptor:dN}=Object;let{freeze:It,seal:Sn,create:$b}=Object,{apply:ih,construct:sh}=typeof Reflect<"u"&&Reflect;It||(It=function(r){return r});Sn||(Sn=function(r){return r});ih||(ih=function(r,i,s){return r.apply(i,s)});sh||(sh=function(r,i){return new r(...i)});const Io=zt(Array.prototype.forEach),hN=zt(Array.prototype.lastIndexOf),Hv=zt(Array.prototype.pop),ks=zt(Array.prototype.push),mN=zt(Array.prototype.splice),Po=zt(String.prototype.toLowerCase),hd=zt(String.prototype.toString),jv=zt(String.prototype.match),qs=zt(String.prototype.replace),pN=zt(String.prototype.indexOf),gN=zt(String.prototype.trim),Hn=zt(Object.prototype.hasOwnProperty),Ut=zt(RegExp.prototype.test),Fs=yN(TypeError);function zt(n){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return ih(n,r,s)}}function yN(n){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return sh(n,i)}}function xe(n,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Po;Uv&&Uv(n,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(cN(r)||(r[s]=c),u=c)}n[u]=!0}return n}function vN(n){for(let r=0;r<n.length;r++)Hn(n,r)||(n[r]=null);return n}function Sr(n){const r=$b(null);for(const[i,s]of Kb(n))Hn(n,i)&&(Array.isArray(s)?r[i]=vN(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Sr(s):r[i]=s);return r}function Ps(n,r){for(;n!==null;){const s=dN(n,r);if(s){if(s.get)return zt(s.get);if(typeof s.value=="function")return zt(s.value)}n=fN(n)}function i(){return null}return i}const Iv=It(["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","section","select","shadow","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"]),md=It(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pd=It(["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"]),bN=It(["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"]),gd=It(["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"]),_N=It(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zv=It(["#text"]),Gv=It(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),yd=It(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kv=It(["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"]),zo=It(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),EN=Sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SN=Sn(/<%[\w\W]*|[\w\W]*%>/gm),TN=Sn(/\$\{[\w\W]*/gm),AN=Sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),xN=Sn(/^aria-[\-\w]+$/),Wb=Sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ON=Sn(/^(?:\w+script|data):/i),RN=Sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Jb=Sn(/^html$/i),wN=Sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var qv=Object.freeze({__proto__:null,ARIA_ATTR:xN,ATTR_WHITESPACE:RN,CUSTOM_ELEMENT:wN,DATA_ATTR:AN,DOCTYPE_NAME:Jb,ERB_EXPR:SN,IS_ALLOWED_URI:Wb,IS_SCRIPT_OR_DATA:ON,MUSTACHE_EXPR:EN,TMPLIT_EXPR:TN});const Vs={element:1,text:3,progressingInstruction:7,comment:8,document:9},CN=function(){return typeof window>"u"?null:window},NN=function(r,i){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const c="dompurify"+(s?"#"+s:"");try{return r.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Fv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function e_(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CN();const r=le=>e_(le);if(r.version="3.2.6",r.removed=[],!n||!n.document||n.document.nodeType!==Vs.document||!n.Element)return r.isSupported=!1,r;let{document:i}=n;const s=i,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:g,NamedNodeMap:y=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:_,DOMParser:T,trustedTypes:L}=n,N=m.prototype,V=Ps(N,"cloneNode"),G=Ps(N,"remove"),E=Ps(N,"nextSibling"),w=Ps(N,"childNodes"),S=Ps(N,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let I,x="";const{implementation:Z,createNodeIterator:$,createDocumentFragment:ie,getElementsByTagName:_e}=i,{importNode:Re}=s;let se=Fv();r.isSupported=typeof Kb=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Ve,DATA_ATTR:ve,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Se}=qv;let{IS_ALLOWED_URI:O}=qv,k=null;const W=xe({},[...Iv,...md,...pd,...gd,...zv]);let Y=null;const te=xe({},[...Gv,...yd,...kv,...zo]);let re=Object.seal($b(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,$e=null,Ue=!0,bt=!0,zn=!1,Cr=!0,Ze=!1,Gt=!0,xn=!1,Mi=!1,Di=!1,_t=!1,qa=!1,oa=!1,Bi=!0,ua=!1;const bu="user-content-";let Fa=!0,ca=!1,Nr={},fn=null;const wt=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 On=null;const Ct=xe({},["audio","video","img","source","image","track"]);let Li=null;const al=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pa="http://www.w3.org/1998/Math/MathML",tr="http://www.w3.org/2000/svg",kt="http://www.w3.org/1999/xhtml";let qt=kt,Mr=!1,nr=null;const _u=xe({},[Pa,tr,kt],hd);let fa=xe({},["mi","mo","mn","ms","mtext"]),da=xe({},["annotation-xml"]);const Ui=xe({},["title","style","font","a","script"]);let Rn=null;const Eu=["application/xhtml+xml","text/html"],il="text/html";let nt=null,Gn=null;const Hi=i.createElement("form"),ji=function(C){return C instanceof RegExp||C instanceof Function},Ii=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Gn&&Gn===C)){if((!C||typeof C!="object")&&(C={}),C=Sr(C),Rn=Eu.indexOf(C.PARSER_MEDIA_TYPE)===-1?il:C.PARSER_MEDIA_TYPE,nt=Rn==="application/xhtml+xml"?hd:Po,k=Hn(C,"ALLOWED_TAGS")?xe({},C.ALLOWED_TAGS,nt):W,Y=Hn(C,"ALLOWED_ATTR")?xe({},C.ALLOWED_ATTR,nt):te,nr=Hn(C,"ALLOWED_NAMESPACES")?xe({},C.ALLOWED_NAMESPACES,hd):_u,Li=Hn(C,"ADD_URI_SAFE_ATTR")?xe(Sr(al),C.ADD_URI_SAFE_ATTR,nt):al,On=Hn(C,"ADD_DATA_URI_TAGS")?xe(Sr(Ct),C.ADD_DATA_URI_TAGS,nt):Ct,fn=Hn(C,"FORBID_CONTENTS")?xe({},C.FORBID_CONTENTS,nt):wt,ue=Hn(C,"FORBID_TAGS")?xe({},C.FORBID_TAGS,nt):Sr({}),$e=Hn(C,"FORBID_ATTR")?xe({},C.FORBID_ATTR,nt):Sr({}),Nr=Hn(C,"USE_PROFILES")?C.USE_PROFILES:!1,Ue=C.ALLOW_ARIA_ATTR!==!1,bt=C.ALLOW_DATA_ATTR!==!1,zn=C.ALLOW_UNKNOWN_PROTOCOLS||!1,Cr=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=C.SAFE_FOR_TEMPLATES||!1,Gt=C.SAFE_FOR_XML!==!1,xn=C.WHOLE_DOCUMENT||!1,_t=C.RETURN_DOM||!1,qa=C.RETURN_DOM_FRAGMENT||!1,oa=C.RETURN_TRUSTED_TYPE||!1,Di=C.FORCE_BODY||!1,Bi=C.SANITIZE_DOM!==!1,ua=C.SANITIZE_NAMED_PROPS||!1,Fa=C.KEEP_CONTENT!==!1,ca=C.IN_PLACE||!1,O=C.ALLOWED_URI_REGEXP||Wb,qt=C.NAMESPACE||kt,fa=C.MATHML_TEXT_INTEGRATION_POINTS||fa,da=C.HTML_INTEGRATION_POINTS||da,re=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&ji(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&ji(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(bt=!1),qa&&(_t=!0),Nr&&(k=xe({},zv),Y=[],Nr.html===!0&&(xe(k,Iv),xe(Y,Gv)),Nr.svg===!0&&(xe(k,md),xe(Y,yd),xe(Y,zo)),Nr.svgFilters===!0&&(xe(k,pd),xe(Y,yd),xe(Y,zo)),Nr.mathMl===!0&&(xe(k,gd),xe(Y,kv),xe(Y,zo))),C.ADD_TAGS&&(k===W&&(k=Sr(k)),xe(k,C.ADD_TAGS,nt)),C.ADD_ATTR&&(Y===te&&(Y=Sr(Y)),xe(Y,C.ADD_ATTR,nt)),C.ADD_URI_SAFE_ATTR&&xe(Li,C.ADD_URI_SAFE_ATTR,nt),C.FORBID_CONTENTS&&(fn===wt&&(fn=Sr(fn)),xe(fn,C.FORBID_CONTENTS,nt)),Fa&&(k["#text"]=!0),xn&&xe(k,["html","head","body"]),k.table&&(xe(k,["tbody"]),delete ue.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw Fs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Fs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=C.TRUSTED_TYPES_POLICY,x=I.createHTML("")}else I===void 0&&(I=NN(L,u)),I!==null&&typeof x=="string"&&(x=I.createHTML(""));It&&It(C),Gn=C}},wn=xe({},[...md,...pd,...bN]),ft=xe({},[...gd,..._N]),Nt=function(C){let X=S(C);(!X||!X.tagName)&&(X={namespaceURI:qt,tagName:"template"});const J=Po(C.tagName),Fe=Po(X.tagName);return nr[C.namespaceURI]?C.namespaceURI===tr?X.namespaceURI===kt?J==="svg":X.namespaceURI===Pa?J==="svg"&&(Fe==="annotation-xml"||fa[Fe]):!!wn[J]:C.namespaceURI===Pa?X.namespaceURI===kt?J==="math":X.namespaceURI===tr?J==="math"&&da[Fe]:!!ft[J]:C.namespaceURI===kt?X.namespaceURI===tr&&!da[Fe]||X.namespaceURI===Pa&&!fa[Fe]?!1:!ft[J]&&(Ui[J]||!wn[J]):!!(Rn==="application/xhtml+xml"&&nr[C.namespaceURI]):!1},Et=function(C){ks(r.removed,{element:C});try{S(C).removeChild(C)}catch{G(C)}},kn=function(C,X){try{ks(r.removed,{attribute:X.getAttributeNode(C),from:X})}catch{ks(r.removed,{attribute:null,from:X})}if(X.removeAttribute(C),C==="is")if(_t||qa)try{Et(X)}catch{}else try{X.setAttribute(C,"")}catch{}},sl=function(C){let X=null,J=null;if(Di)C="<remove></remove>"+C;else{const We=jv(C,/^[\r\n\t ]+/);J=We&&We[0]}Rn==="application/xhtml+xml"&&qt===kt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const Fe=I?I.createHTML(C):C;if(qt===kt)try{X=new T().parseFromString(Fe,Rn)}catch{}if(!X||!X.documentElement){X=Z.createDocument(qt,"template",null);try{X.documentElement.innerHTML=Mr?x:Fe}catch{}}const dt=X.body||X.documentElement;return C&&J&&dt.insertBefore(i.createTextNode(J),dt.childNodes[0]||null),qt===kt?_e.call(X,xn?"html":"body")[0]:xn?X.documentElement:dt},ll=function(C){return $.call(C.ownerDocument||C,C,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Va=function(C){return C instanceof _&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof y)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Dr=function(C){return typeof h=="function"&&C instanceof h};function Qt(le,C,X){Io(le,J=>{J.call(r,C,X,Gn)})}const rr=function(C){let X=null;if(Qt(se.beforeSanitizeElements,C,null),Va(C))return Et(C),!0;const J=nt(C.nodeName);if(Qt(se.uponSanitizeElement,C,{tagName:J,allowedTags:k}),Gt&&C.hasChildNodes()&&!Dr(C.firstElementChild)&&Ut(/<[/\w!]/g,C.innerHTML)&&Ut(/<[/\w!]/g,C.textContent)||C.nodeType===Vs.progressingInstruction||Gt&&C.nodeType===Vs.comment&&Ut(/<[/\w]/g,C.data))return Et(C),!0;if(!k[J]||ue[J]){if(!ue[J]&&Br(J)&&(re.tagNameCheck instanceof RegExp&&Ut(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!fn[J]){const Fe=S(C)||C.parentNode,dt=w(C)||C.childNodes;if(dt&&Fe){const We=dt.length;for(let Mt=We-1;Mt>=0;--Mt){const Ft=V(dt[Mt],!0);Ft.__removalCount=(C.__removalCount||0)+1,Fe.insertBefore(Ft,E(C))}}}return Et(C),!0}return C instanceof m&&!Nt(C)||(J==="noscript"||J==="noembed"||J==="noframes")&&Ut(/<\/no(script|embed|frames)/i,C.innerHTML)?(Et(C),!0):(Ze&&C.nodeType===Vs.text&&(X=C.textContent,Io([me,ce,Ve],Fe=>{X=qs(X,Fe," ")}),C.textContent!==X&&(ks(r.removed,{element:C.cloneNode()}),C.textContent=X)),Qt(se.afterSanitizeElements,C,null),!1)},ar=function(C,X,J){if(Bi&&(X==="id"||X==="name")&&(J in i||J in Hi))return!1;if(!(bt&&!$e[X]&&Ut(ve,X))){if(!(Ue&&Ut(z,X))){if(!Y[X]||$e[X]){if(!(Br(C)&&(re.tagNameCheck instanceof RegExp&&Ut(re.tagNameCheck,C)||re.tagNameCheck instanceof Function&&re.tagNameCheck(C))&&(re.attributeNameCheck instanceof RegExp&&Ut(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Ut(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J))))return!1}else if(!Li[X]){if(!Ut(O,qs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&C!=="script"&&pN(J,"data:")===0&&On[C])){if(!(zn&&!Ut(K,qs(J,ee,"")))){if(J)return!1}}}}}}return!0},Br=function(C){return C!=="annotation-xml"&&jv(C,Se)},ir=function(C){Qt(se.beforeSanitizeAttributes,C,null);const{attributes:X}=C;if(!X||Va(C))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Fe=X.length;for(;Fe--;){const dt=X[Fe],{name:We,namespaceURI:Mt,value:Ft}=dt,qn=nt(We),Kt=Ft;let st=We==="value"?Kt:gN(Kt);if(J.attrName=qn,J.attrValue=st,J.keepAttr=!0,J.forceKeepAttr=void 0,Qt(se.uponSanitizeAttribute,C,J),st=J.attrValue,ua&&(qn==="id"||qn==="name")&&(kn(We,C),st=bu+st),Gt&&Ut(/((--!?|])>)|<\/(style|title)/i,st)){kn(We,C);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){kn(We,C);continue}if(!Cr&&Ut(/\/>/i,st)){kn(We,C);continue}Ze&&Io([me,ce,Ve],sr=>{st=qs(st,sr," ")});const zi=nt(C.nodeName);if(!ar(zi,qn,st)){kn(We,C);continue}if(I&&typeof L=="object"&&typeof L.getAttributeType=="function"&&!Mt)switch(L.getAttributeType(zi,qn)){case"TrustedHTML":{st=I.createHTML(st);break}case"TrustedScriptURL":{st=I.createScriptURL(st);break}}if(st!==Kt)try{Mt?C.setAttributeNS(Mt,We,st):C.setAttribute(We,st),Va(C)?Et(C):Hv(r.removed)}catch{kn(We,C)}}Qt(se.afterSanitizeAttributes,C,null)},it=function le(C){let X=null;const J=ll(C);for(Qt(se.beforeSanitizeShadowDOM,C,null);X=J.nextNode();)Qt(se.uponSanitizeShadowNode,X,null),rr(X),ir(X),X.content instanceof c&&le(X.content);Qt(se.afterSanitizeShadowDOM,C,null)};return r.sanitize=function(le){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,J=null,Fe=null,dt=null;if(Mr=!le,Mr&&(le="<!-->"),typeof le!="string"&&!Dr(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Fs("dirty is not a string, aborting")}else throw Fs("toString is not a function");if(!r.isSupported)return le;if(Mi||Ii(C),r.removed=[],typeof le=="string"&&(ca=!1),ca){if(le.nodeName){const Ft=nt(le.nodeName);if(!k[Ft]||ue[Ft])throw Fs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=sl("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Vs.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!_t&&!Ze&&!xn&&le.indexOf("<")===-1)return I&&oa?I.createHTML(le):le;if(X=sl(le),!X)return _t?null:oa?x:""}X&&Di&&Et(X.firstChild);const We=ll(ca?le:X);for(;Fe=We.nextNode();)rr(Fe),ir(Fe),Fe.content instanceof c&&it(Fe.content);if(ca)return le;if(_t){if(qa)for(dt=ie.call(X.ownerDocument);X.firstChild;)dt.appendChild(X.firstChild);else dt=X;return(Y.shadowroot||Y.shadowrootmode)&&(dt=Re.call(s,dt,!0)),dt}let Mt=xn?X.outerHTML:X.innerHTML;return xn&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ut(Jb,X.ownerDocument.doctype.name)&&(Mt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
111
+ `+Mt),Ze&&Io([me,ce,Ve],Ft=>{Mt=qs(Mt,Ft," ")}),I&&oa?I.createHTML(Mt):Mt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ii(le),Mi=!0},r.clearConfig=function(){Gn=null,Mi=!1},r.isValidAttribute=function(le,C,X){Gn||Ii({});const J=nt(le),Fe=nt(C);return ar(J,Fe,X)},r.addHook=function(le,C){typeof C=="function"&&ks(se[le],C)},r.removeHook=function(le,C){if(C!==void 0){const X=hN(se[le],C);return X===-1?void 0:mN(se[le],X,1)[0]}return Hv(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=Fv()},r}var MN=e_();const DN=({onClose:n})=>{const r=tt();return v.jsxs("div",{className:vt.highlightLoadingInfo,onClick:n,children:[v.jsx("div",{className:vt.highlightLoadingInfoCloseIcon,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})})}),v.jsxs("div",{className:vt.highlightLoadingInfoInnerContainer,children:[v.jsxs("div",{className:vt.highlightLoadingInfoContent,children:[v.jsx("h3",{children:r("source-infos.highlight-loading.title")}),v.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:v.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"})})]})]})},BN=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),LN=({className:n,children:r,...i})=>v.jsx("a",{className:Q(Js.button,Js.buttonDefault,n),type:"button",role:"button",...i,children:r}),UN=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),HN=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(qb,{...r});case"PDF":return v.jsx(kb,{...r});case"DOCX":return v.jsx(zb,{...r});case"TEXT":return v.jsx(UN,{...r});default:return v.jsx(Gb,{...r})}},jN=({url:n,knowledgeBaseType:r})=>{const i=tt();return v.jsx(LN,{className:vt.openSourceButton,href:n,target:"_blank",children:v.jsxs("div",{className:vt.sourceButtonLabel,children:[v.jsx("div",{className:vt.sourceHeaderIcon,children:v.jsx(HN,{type:r})}),v.jsx("p",{children:i("source-infos.open-source")})]})})},IN=({sourceInfos:{content:n,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=H.useState(!s);H.useEffect(()=>{s&&c(!1)},[s]);const d=MN.sanitize(n,{USE_PROFILES:{html:!0}});return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Q(vt.sourceContent,Pb.markdown),children:[v.jsx(xr,{options:{overrides:{a:BN}},children:d}),u&&v.jsx(DN,{onClose:()=>c(!1)})]}),v.jsx(jN,{url:r,knowledgeBaseType:i})]})},zN=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,GN=()=>{const n=tt();return v.jsxs("div",{className:vt.loadingError,children:[v.jsx("h1",{children:n("source-infos.error.title")}),v.jsx("img",{src:zN,title:n("source-infos.error.title")}),v.jsx("p",{children:n("source-infos.error.info")})]})},kN=()=>v.jsx("div",{className:vt.loadingSourceInfos,children:v.jsx("svg",{className:vt.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function qN({sourceInfos:n,onClose:r,threshold:i=100}){const s=H.useRef(null),[u,c]=H.useState(0),[d,h]=H.useState(!1),m=H.useRef(null),g=H.useRef(null),y=H.useCallback(N=>{m.current=N,h(!0)},[]),_=H.useCallback(N=>{if(m.current!==null&&d){const V=N-m.current;V>0&&c(V)}},[d]),T=H.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),L=H.useCallback(N=>{const V=x=>y(x.touches[0].clientY),G=x=>_(x.touches[0].clientY),E=()=>T(),w=x=>{x.preventDefault(),y(x.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",I)},S=x=>_(x.clientY),I=()=>{T(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)};N.addEventListener("touchstart",V),N.addEventListener("touchmove",G),N.addEventListener("touchend",E),N.addEventListener("mousedown",w),g.current=()=>{N.removeEventListener("touchstart",V),N.removeEventListener("touchmove",G),N.removeEventListener("touchend",E),N.removeEventListener("mousedown",w),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)}},[y,_,T]);return H.useEffect(()=>{let N;return(()=>{s.current?(g.current?.(),L(s.current)):(N=new MutationObserver(()=>{s.current&&(g.current?.(),L(s.current),N?.disconnect())}),N.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{N?.disconnect(),g.current?.()}},[L,n]),{ref:s,dragOffsetY:u,isDragging:d}}const FN=n=>{const[r,i]=H.useState(!0);return H.useEffect(()=>{let s=null;return n?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!n),()=>{s&&clearTimeout(s)}},[n]),r},PN=()=>{const n=ka(),r=Zt(m=>m.chat.sourceInfos),i=Qb(),s=H.useRef(null),u=FN(r);H.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=H.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),n(pO()))},[n,i]),{ref:d,dragOffsetY:h}=qN({onClose:c,sourceInfos:r});return r?v.jsx("dialog",{ref:s,className:Q(vt.sourceInfos,u?vt.waitForLoading:r.type==="loading"?vt.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:v.jsxs(v.Fragment,{children:[v.jsx(oN,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?v.jsx(kN,{}):r.type==="loading-error"?v.jsx(GN,{}):v.jsxs(v.Fragment,{children:[v.jsx(uN,{loading:!r.highlighted}),v.jsx(IN,{sourceInfos:r})]})]})}):null},VN="_container_114wy_1",YN="_body_114wy_7",XN="_intro_114wy_14",ZN="_footer_114wy_39",QN="_footnote_114wy_43",KN="_containerWithFootnote_114wy_58",$N="_startChatButton_114wy_73",WN="_formFields_114wy_77",JN="_formField_114wy_77",e3="_radio_114wy_89",t3="_checkbox_114wy_96",n3="_input_114wy_104",r3="_inputLabel_114wy_138",a3="_selectWrapper_114wy_142",i3="_select_114wy_142",s3="_selectLabel_114wy_188",Rt={container:VN,body:YN,intro:XN,footer:ZN,footnote:QN,containerWithFootnote:KN,startChatButton:$N,formFields:WN,formField:JN,radio:e3,checkbox:t3,input:n3,inputLabel:r3,selectWrapper:a3,select:i3,selectLabel:s3},l3=({name:n,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:Q(Rt.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[v.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:s,onChange:c}),v.jsx("div",{children:r})]})},o3=({type:n,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:g,onChange:y})=>{const _=T=>{y(T.target.value)};return v.jsxs("label",{className:Q(Rt.input,"chat__startScreen__input"),htmlFor:r,children:[v.jsx("div",{className:Q(Rt.inputLabel),children:i}),v.jsx("input",{type:n,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:g,onChange:_})]})},u3=({name:n,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${n}-${r}`,h=m=>{c(m.target.value)};return v.jsxs("label",{className:Q(Rt.radio,"chat__startScreen__radio"),htmlFor:d,children:[v.jsx("input",{id:d,type:"radio",name:n,value:r,defaultChecked:s,required:u,onChange:h}),v.jsx("span",{className:Q(Rt.label),children:i})]})},c3=({name:n,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return v.jsxs("label",{className:Q(Rt.select,"chat__startScreen__select"),htmlFor:n,children:[v.jsx("div",{className:Q(Rt.selectLabel),children:r}),v.jsx("div",{className:Q(Rt.selectWrapper),children:v.jsx("select",{id:n,name:n,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,g])=>v.jsx("option",{value:m,selected:g===i,children:g}))})})]})},f3="start-screen.intro",d3="start-screen.start-chat",h3="start-screen.footnote",Un="start-screen.form",Pv=`${Un}.fields`,m3=()=>{const n=tt(),r=ka(),[i,s]=H.useState({}),u=()=>{const _=Object.entries(i).reduce((T,[L,N])=>({...T,[L]:N.value}),{});r(cO(_))},c=n(f3),d=n(d3),h=n(h3),m=H.useMemo(()=>n(Pv)?.split(";").map(_=>_.trim())??[],[n(Pv)]);H.useEffect(()=>{m.length&&Object.keys(i).length===0&&s(m.reduce((_,T)=>({..._,[T]:p3(T,n)}),{}))},[n,m,i]);const g=_=>{_.preventDefault(),u()},y=_=>T=>{s(L=>({...L,[_]:{...L[_],value:T}}))};return v.jsxs("form",{onSubmit:g,className:Q(Rt.container,h&&Rt.containerWithFootnote,"chat__startScreen"),children:[v.jsxs("div",{className:Q(Rt.body,"chat__startScreen__body"),children:[c&&v.jsx("div",{className:Q(Rt.intro,"chat__startScreen__intro"),children:v.jsx(xr,{options:{overrides:{a:Vv}},children:c})}),v.jsx("div",{className:Q(Rt.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:_,name:T,label:L,placeholder:N,defaultValue:V,options:G,required:E,multiple:w,min:S,max:I,pattern:x})=>v.jsx("div",{className:Q(Rt.formField,"chat__startScreen__field"),children:(()=>{switch(_){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:L}),Object.entries(G||{}).map(([Z,$])=>v.jsx(u3,{name:T,value:Z,label:$,defaultChecked:Z===V,required:E,onChange:y(T)},Z))]});case"checkbox":return v.jsx(l3,{name:T,label:L,defaultValue:V,required:E,onChange:y(T)});case"select":return v.jsx(c3,{name:T,label:L,defaultValue:V,required:E,multiple:w,options:G,onChange:y(T)});default:return v.jsx(o3,{type:_,name:T,label:L,placeholder:N,defaultValue:V,required:E,multiple:w,min:S,max:I,pattern:x,onChange:y(T)})}})()},T))})]}),v.jsxs("div",{className:Q(Rt.footer,"chat__startScreen__footer"),children:[v.jsx(nu,{type:"submit",className:Rt.startChatButton,children:d}),h&&v.jsx("div",{className:Rt.footnote,children:v.jsx(xr,{options:{overrides:{a:Vv}},children:h})})]})]})},Vv=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),p3=(n,r)=>{const i=r(`${Un}.${n}.type`)||"text",s=r(`${Un}.${n}.required`)==="true",u=r(`${Un}.${n}.multiple`)==="true",c=r(`${Un}.${n}.placeholder`),d=r(`${Un}.${n}.label`)||"",h=r(`${Un}.${n}.defaultValue`),m=r(`${Un}.${n}.min`),g=r(`${Un}.${n}.max`),y=r(`${Un}.${n}.pattern`),_=y3(r(`${Un}.${n}.options`));return{name:n,label:d,placeholder:c,value:g3(i,h,_)||"",defaultValue:h,options:_,type:i,required:s,multiple:u,min:m,max:g,pattern:y}},g3=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",y3=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),v3=()=>{const n=su();H.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},Oi={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},b3=({clientName:n})=>{v3();const r=ka(),i=Zt(y=>y.intl.messages),s=tt(),u=Zt(y=>y.settings.enableStartScreen),c=Zt(y=>y.startScreen.startScreenStatus),[d,h]=H.useState(void 0);H.useEffect(()=>{const y=lu.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const _=T=>{switch(T.data.type){case Oi.TRIGGER_ACTION:r(T.data.action);break;case Oi.TRIGGER_STORY:r(cb(T.data.story));break;case Oi.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Oi.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Oi.CHAT_MESSAGE_FROM_GUEST:r(ib(T.data.text));break;case Oi.RESTART_CHAT:r(mu(n,y));break}};return r(yO(n,y)),window.addEventListener("message",T=>_(T),!1),()=>window.removeEventListener("message",_)},[n,r]),H.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const m=u===void 0,g=u===!1||c==="HIDDEN";return v.jsx("div",{className:Q(Lv.chatwindow,g&&Lv.chatwindowWithAside,"chat__chatwindow",d),children:m?null:g?v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Bv,{chatStarted:!0})}),v.jsx("main",{children:v.jsx(O6,{clientName:n})}),v.jsx("aside",{children:v.jsx(PN,{})})]}):v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Bv,{chatStarted:!1})}),v.jsx("main",{children:v.jsx(m3,{})})]})})},_3=()=>{const n=Vh(),r=Qb(),i=Zt(u=>u.intl.locale),s=Zt(u=>u.intl.messages);return v.jsx(TA,{locale:i,messages:s,onError:()=>{},children:v.jsx("div",{className:Q([xA.app,r?"chat__small":"chat__large"]),children:v.jsx(b3,{clientName:n})})})};var vd,Yv;function Yh(){if(Yv)return vd;Yv=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return vd=n,vd}var bd,Xv;function E3(){if(Xv)return bd;Xv=1;var n=typeof yo=="object"&&yo&&yo.Object===Object&&yo;return bd=n,bd}var _d,Zv;function t_(){if(Zv)return _d;Zv=1;var n=E3(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return _d=i,_d}var Ed,Qv;function S3(){if(Qv)return Ed;Qv=1;var n=t_(),r=function(){return n.Date.now()};return Ed=r,Ed}var Sd,Kv;function T3(){if(Kv)return Sd;Kv=1;var n=/\s/;function r(i){for(var s=i.length;s--&&n.test(i.charAt(s)););return s}return Sd=r,Sd}var Td,$v;function A3(){if($v)return Td;$v=1;var n=T3(),r=/^\s+/;function i(s){return s&&s.slice(0,n(s)+1).replace(r,"")}return Td=i,Td}var Ad,Wv;function n_(){if(Wv)return Ad;Wv=1;var n=t_(),r=n.Symbol;return Ad=r,Ad}var xd,Jv;function x3(){if(Jv)return xd;Jv=1;var n=n_(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=n?n.toStringTag:void 0;function c(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var g=!0}catch{}var y=s.call(d);return g&&(h?d[u]=m:delete d[u]),y}return xd=c,xd}var Od,e1;function O3(){if(e1)return Od;e1=1;var n=Object.prototype,r=n.toString;function i(s){return r.call(s)}return Od=i,Od}var Rd,t1;function R3(){if(t1)return Rd;t1=1;var n=n_(),r=x3(),i=O3(),s="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:c&&c in Object(h)?r(h):i(h)}return Rd=d,Rd}var wd,n1;function w3(){if(n1)return wd;n1=1;function n(r){return r!=null&&typeof r=="object"}return wd=n,wd}var Cd,r1;function C3(){if(r1)return Cd;r1=1;var n=R3(),r=w3(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Cd=s,Cd}var Nd,a1;function N3(){if(a1)return Nd;a1=1;var n=A3(),r=Yh(),i=C3(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return s;if(r(g)){var y=typeof g.valueOf=="function"?g.valueOf():g;g=r(y)?y+"":y}if(typeof g!="string")return g===0?g:+g;g=n(g);var _=c.test(g);return _||d.test(g)?h(g.slice(2),_?2:8):u.test(g)?s:+g}return Nd=m,Nd}var Md,i1;function M3(){if(i1)return Md;i1=1;var n=Yh(),r=S3(),i=N3(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,g){var y,_,T,L,N,V,G=0,E=!1,w=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,n(g)&&(E=!!g.leading,w="maxWait"in g,T=w?u(i(g.maxWait)||0,m):T,S="trailing"in g?!!g.trailing:S);function I(ce){var Ve=y,ve=_;return y=_=void 0,G=ce,L=h.apply(ve,Ve),L}function x(ce){return G=ce,N=setTimeout(ie,m),E?I(ce):L}function Z(ce){var Ve=ce-V,ve=ce-G,z=m-Ve;return w?c(z,T-ve):z}function $(ce){var Ve=ce-V,ve=ce-G;return V===void 0||Ve>=m||Ve<0||w&&ve>=T}function ie(){var ce=r();if($(ce))return _e(ce);N=setTimeout(ie,Z(ce))}function _e(ce){return N=void 0,S&&y?I(ce):(y=_=void 0,L)}function Re(){N!==void 0&&clearTimeout(N),G=0,y=V=_=N=void 0}function se(){return N===void 0?L:_e(r())}function me(){var ce=r(),Ve=$(ce);if(y=arguments,_=this,V=ce,Ve){if(N===void 0)return x(V);if(w)return clearTimeout(N),N=setTimeout(ie,m),I(V)}return N===void 0&&(N=setTimeout(ie,m)),L}return me.cancel=Re,me.flush=se,me}return Md=d,Md}var Dd,s1;function D3(){if(s1)return Dd;s1=1;var n=M3(),r=Yh(),i="Expected a function";function s(u,c,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),n(u,c,{leading:h,maxWait:c,trailing:m})}return Dd=s,Dd}var B3=D3();const L3=mh(B3);function U3(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function H3(n){return n}function j3(n,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||H3,c={};function d(h,m,g){g=g||1,Object.keys(h).forEach(function(y){const _=h[y],T=r.safe&&Array.isArray(_),L=Object.prototype.toString.call(_),N=U3(_),V=L==="[object Object]"||L==="[object Array]",G=m?m+i+u(y):u(y);if(!T&&!N&&V&&Object.keys(_).length&&(!r.maxDepth||g<s))return d(_,G,g+1);c[G]=_})}return d(n),c}const r_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","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.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
112
+
113
+ - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
114
+ - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","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","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"},I3={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"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.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
115
+
116
+ - The chat history is stored in the EU area and can only be viewed by authorized personnel.
117
+ - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","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","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"},z3={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
118
+
119
+ - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
120
+ - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","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","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"},G3={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
121
+
122
+ - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
123
+ - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","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","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"},k3=["de","en","fr","it"],a_={locale:"de",messages:r_},q3=(n,r)=>{if(k3.includes(n)){const i=F3(n),s=j3(r);return{...i,...s}}return r},F3=n=>{switch(n.toString()){case"en":return I3;case"fr":return z3;case"it":return G3;default:return r_}},P3=(n=V3,r)=>{switch(r.type){case jh:return Object.assign({},n,{connectionState:ja.CONNECTING});case Ih:return Object.assign({},n,{connectionState:ja.CONNECTED});case zh:return Object.assign({},n,{connectionState:ja.DISCONNECTED});case Gh:return Object.assign({},n,{connectionState:ja.RECONNECTED});case kh:return Object.assign({},n,{sessionId:r.sessionId});case du:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case hu:return Object.assign({},n,{sessionId:void 0});default:return n}},V3={connectionState:ja.DISCONNECTED,sessionId:void 0,userId:void 0},Y3=(n=o1,r)=>{switch(r.type){case Ob:return o1;case du:return La({type:"webclient.chat.started"}),n;case hu:return La({type:"webclient.chat.ended"}),n;case Oe.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Oe.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Oe.ActionTypes.MESSAGE_FROM_GUEST:case Oe.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return l1(n,r.message);case Oe.ActionTypes.MESSAGE_TO_GUEST:{La(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=n.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:s?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case xh:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Ah:return La(r.message),n;case Oe.ActionTypes.EVENT_TO_GUEST:return La(r.event),n;case Oe.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Oe.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Oe.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case lb:return La(r),n;case ob:return La(r),n;case Rh:{const i=new Oe.TextMessage(r.transcription,new Oe.GuestUser),s=Object.assign({},i,{_id:$d()});return l1(n,s)}case Oe.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,{reaction:r.payload.reaction}):s);return Object.assign({},n,{messages:i})}case wh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:i})}case Oe.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:i})}case Nh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Ch:{const{highlighted:i}=r.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case sb:{const i=n.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}=r.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==s?n:i==="loading"||i==="loaded"&&h?{...n,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}}:n}case Mh:return{...n,sourceInfos:void 0};case Rb:return{...n,showTranscriptMailOverlay:!n.showTranscriptMailOverlay};default:return n}},l1=(n,r)=>{const i=n.messages[n.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},La=n=>{X3()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},X3=()=>typeof window<"u"&&window.self!==window.top,o1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},i_=Uh({name:"intl",initialState:a_,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:Z3}=i_.actions,Q3=i_.reducer,K3={version:void 0,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},s_=Uh({name:"settings",initialState:K3,reducers:{setSettings(n,r){n.version&&n.version!==r.payload.version?(console.log("version changed, reloading chat window"),location.replace(location.href)):(n.version=r.payload.version,n.enableStartScreen=r.payload.enableStartScreen,n.enableStandaloneView=r.payload.enableStandaloneView,n.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,n.enableGeneralConditions=r.payload.enableGeneralConditions,n.enableSpeechSupport=r.payload.enableSpeechSupport,n.commands=r.payload.commands,n.menuItems=r.payload.menuItems||[])}}}),{setSettings:$3}=s_.actions,W3=s_.reducer,J3=mb({settings:W3,chat:Y3,startScreen:dO,connection:P3,intl:Q3}),eM="bubble-chat",l_="state-last-saved-at",o_="state",tM=n=>{try{if(!aM())return;const r=u1(n,l_);if(rM(r))return;{const i=u1(n,o_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},nM=(n,r)=>{try{const i=JSON.stringify(r);c1(n,o_,i);const s=new Date().toISOString();c1(n,l_,s)}catch(i){console.error(i)}},rM=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},aM=()=>typeof localStorage<"u",u1=(n,r)=>{const i=u_(n,r);return localStorage.getItem(i)},c1=(n,r,i)=>{const s=u_(n,r);return localStorage.setItem(s,i)},u_=(n,r)=>`${eM}-${n}-${r}`,er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";const Vo=Object.create(null);Object.keys(er).forEach(n=>{Vo[er[n]]=n});const lh={type:"error",data:"parser error"},c_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",f_=typeof ArrayBuffer=="function",d_=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Xh=({type:n,data:r},i,s)=>c_&&r instanceof Blob?i?s(r):f1(r,s):f_&&(r instanceof ArrayBuffer||d_(r))?i?s(r):f1(new Blob([r]),s):s(er[n]+(r||"")),f1=(n,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(n)};function d1(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Bd;function iM(n,r){if(c_&&n.data instanceof Blob)return n.data.arrayBuffer().then(d1).then(r);if(f_&&(n.data instanceof ArrayBuffer||d_(n.data)))return r(d1(n.data));Xh(n,!1,i=>{Bd||(Bd=new TextEncoder),r(Bd.encode(i))})}const h1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<h1.length;n++)Qs[h1.charCodeAt(n)]=n;const sM=n=>{let r=n.length*.75,i=n.length,s,u=0,c,d,h,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),y=new Uint8Array(g);for(s=0;s<i;s+=4)c=Qs[n.charCodeAt(s)],d=Qs[n.charCodeAt(s+1)],h=Qs[n.charCodeAt(s+2)],m=Qs[n.charCodeAt(s+3)],y[u++]=c<<2|d>>4,y[u++]=(d&15)<<4|h>>2,y[u++]=(h&3)<<6|m&63;return g},lM=typeof ArrayBuffer=="function",Zh=(n,r)=>{if(typeof n!="string")return{type:"message",data:h_(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:oM(n.substring(1),r)}:Vo[i]?n.length>1?{type:Vo[i],data:n.substring(1)}:{type:Vo[i]}:lh},oM=(n,r)=>{if(lM){const i=sM(n);return h_(i,r)}else return{base64:!0,data:n}},h_=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},m_="",uM=(n,r)=>{const i=n.length,s=new Array(i);let u=0;n.forEach((c,d)=>{Xh(c,!1,h=>{s[d]=h,++u===i&&r(s.join(m_))})})},cM=(n,r)=>{const i=n.split(m_),s=[];for(let u=0;u<i.length;u++){const c=Zh(i[u],r);if(s.push(c),c.type==="error")break}return s};function fM(){return new TransformStream({transform(n,r){iM(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 c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Ld;function Go(n){return n.reduce((r,i)=>r+i.length,0)}function ko(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;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 dM(n,r){Ld||(Ld=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(Go(i)<1)break;const m=ko(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(Go(i)<2)break;const m=ko(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(Go(i)<8)break;const m=ko(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),y=g.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(lh);break}u=y*Math.pow(2,32)+g.getUint32(4),s=3}else{if(Go(i)<u)break;const m=ko(i,u);h.enqueue(Zh(c?m:Ld.decode(m),r)),s=0}if(u===0||u>n){h.enqueue(lh);break}}}})}const p_=4;function ct(n){if(n)return hM(n)}function hM(n){for(var r in ct.prototype)n[r]=ct.prototype[r];return n}ct.prototype.on=ct.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};ct.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};ct.prototype.off=ct.prototype.removeListener=ct.prototype.removeAllListeners=ct.prototype.removeEventListener=function(n,r){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===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};ct.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};ct.prototype.emitReserved=ct.prototype.emit;ct.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};ct.prototype.hasListeners=function(n){return!!this.listeners(n).length};const yu=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),En=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),mM="arraybuffer";function g_(n,...r){return r.reduce((i,s)=>(n.hasOwnProperty(s)&&(i[s]=n[s]),i),{})}const pM=En.setTimeout,gM=En.clearTimeout;function vu(n,r){r.useNativeTimers?(n.setTimeoutFn=pM.bind(En),n.clearTimeoutFn=gM.bind(En)):(n.setTimeoutFn=En.setTimeout.bind(En),n.clearTimeoutFn=En.clearTimeout.bind(En))}const yM=1.33;function vM(n){return typeof n=="string"?bM(n):Math.ceil((n.byteLength||n.size)*yM)}function bM(n){let r=0,i=0;for(let s=0,u=n.length;s<u;s++)r=n.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function y_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function _M(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function EM(n){let r={},i=n.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class SM extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class Qh extends ct{constructor(r){super(),this.writable=!1,vu(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new SM(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=Zh(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=_M(r);return i.length?"?"+i:""}}class TM extends Qh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};cM(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,uM(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=y_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let v_=!1;try{v_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const AM=v_;function xM(){}class OM extends TM{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class Wn extends ct{constructor(r,i,s){super(),this.createRequest=r,vu(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=g_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Wn.requestsCount++,Wn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=xM,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Wn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Wn.requestsCount=0;Wn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",m1);else if(typeof addEventListener=="function"){const n="onpagehide"in En?"pagehide":"unload";addEventListener(n,m1,!1)}}function m1(){for(let n in Wn.requests)Wn.requests.hasOwnProperty(n)&&Wn.requests[n].abort()}const RM=function(){const n=b_({xdomain:!1});return n&&n.responseType!==null}();class wM extends OM{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=RM&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Wn(b_,this.uri(),r)}}function b_(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||AM))return new XMLHttpRequest}catch{}if(!r)try{return new En[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const __=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class CM extends Qh{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=__?{}:g_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;Xh(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&yu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=y_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Ud=En.WebSocket||En.MozWebSocket;class NM extends CM{createSocket(r,i,s){return __?new Ud(r,i,s):i?new Ud(r,i):new Ud(r)}doWrite(r,i){this.ws.send(i)}}class MM extends Qh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=dM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=fM();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),c())}).catch(h=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&yu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const DM={websocket:NM,webtransport:MM,polling:wM},BM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,LM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function oh(n){if(n.length>8e3)throw"URI too long";const r=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=BM.exec(n||""),c={},d=14;for(;d--;)c[LM[d]]=u[d]||"";return i!=-1&&s!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=UM(c,c.path),c.queryKey=HM(c,c.query),c}function UM(n,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function HM(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const uh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Yo=[];uh&&addEventListener("offline",()=>{Yo.forEach(n=>n())},!1);class sa extends ct{constructor(r,i){if(super(),this.binaryType=mM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const s=oh(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=oh(i.host).host);vu(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=EM(this.opts.query)),uh&&(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"})},Yo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=p_,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&sa.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",sa.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=vM(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,yu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(sa.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),uh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Yo.indexOf(this._offlineEventListener);s!==-1&&Yo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}sa.protocol=p_;class jM extends sa{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;sa.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;sa.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=i.name,this.emitReserved("upgradeError",T)}}))};function c(){s||(s=!0,y(),i.close(),i=null)}const d=_=>{const T=new Error("probe error: "+_);T.transport=i.name,c(),this.emitReserved("upgradeError",T)};function h(){d("transport closed")}function m(){d("socket closed")}function g(_){i&&_.name!==i.name&&c()}const y=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let IM=class extends jM{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>DM[u]).filter(u=>!!u)),super(r,s)}};function zM(n,r="",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=oh(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 c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const GM=typeof ArrayBuffer=="function",kM=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,E_=Object.prototype.toString,qM=typeof Blob=="function"||typeof Blob<"u"&&E_.call(Blob)==="[object BlobConstructor]",FM=typeof File=="function"||typeof File<"u"&&E_.call(File)==="[object FileConstructor]";function Kh(n){return GM&&(n instanceof ArrayBuffer||kM(n))||qM&&n instanceof Blob||FM&&n instanceof File}function Xo(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)if(Xo(n[i]))return!0;return!1}if(Kh(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Xo(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&Xo(n[i]))return!0;return!1}function PM(n){const r=[],i=n.data,s=n;return s.data=ch(i,r),s.attachments=r.length,{packet:s,buffers:r}}function ch(n,r){if(!n)return n;if(Kh(n)){const i={_placeholder:!0,num:r.length};return r.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let s=0;s<n.length;s++)i[s]=ch(n[s],r);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]=ch(n[s],r));return i}return n}function VM(n,r){return n.data=fh(n.data,r),delete n.attachments,n}function fh(n,r){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<r.length)return r[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=fh(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=fh(n[i],r));return n}const YM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],XM=5;var Ce;(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"})(Ce||(Ce={}));class ZM{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Xo(r)?this.encodeAsBinary({type:r.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ce.BINARY_EVENT||r.type===Ce.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=PM(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function p1(n){return Object.prototype.toString.call(n)==="[object Object]"}class $h extends ct{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const s=i.type===Ce.BINARY_EVENT;s||i.type===Ce.BINARY_ACK?(i.type=s?Ce.EVENT:Ce.ACK,this.reconstructor=new QM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Kh(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const s={type:Number(r.charAt(0))};if(Ce[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ce.BINARY_EVENT||s.type===Ce.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const d=r.substring(c,i);if(d!=Number(d)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const d=r.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if($h.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ce.CONNECT:return p1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||p1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&YM.indexOf(i[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class QM{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=VM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const KM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:$h,Encoder:ZM,get PacketType(){return Ce},protocol:XM},Symbol.toStringTag,{value:"Module"}));function jn(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const $M=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class S_ extends ct{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[jn(r,"open",this.onopen.bind(this)),jn(r,"packet",this.onpacket.bind(this)),jn(r,"error",this.onerror.bind(this)),jn(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var s,u,c;if($M.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ce.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,_=i.pop();this._registerAckCallback(y,_),d.id=y}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(c),i.apply(this,h)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(d,h)=>d?u(d):s(h);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ce.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ce.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(r);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(r);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:Ce.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ce.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,r.data)}}}function Ni(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}Ni.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Ni.prototype.reset=function(){this.attempts=0};Ni.prototype.setMin=function(n){this.ms=n};Ni.prototype.setMax=function(n){this.max=n};Ni.prototype.setJitter=function(n){this.jitter=n};class dh extends ct{constructor(r,i){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,vu(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 Ni({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||KM;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new IM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=jn(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=jn(i,"error",c);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(jn(r,"ping",this.onping.bind(this)),jn(r,"data",this.ondata.bind(this)),jn(r,"error",this.onerror.bind(this)),jn(r,"close",this.onclose.bind(this)),jn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){yu(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new S_(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Ys={};function Zo(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=zM(n,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Ys[u]&&c in Ys[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new dh(s,r):(Ys[u]||(Ys[u]=new dh(s,r)),m=Ys[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(Zo,{Manager:dh,Socket:S_,io:Zo,connect:Zo});const WM=[Oe.ActionTypes.MESSAGE_TO_GUEST,Oe.ActionTypes.EVENT_TO_GUEST,Oe.ActionTypes.TYPING_ON,Oe.ActionTypes.TYPING_OFF,Oe.ActionTypes.RESTART_CHAT_REQUEST,...gO,...mx,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],JM=({dispatch:n,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===Hh){s?.disconnect(),n(bO());const d=`/chat?${lu.stringify(u.querystrings)}`;s=Zo(`/${u.clientName}${d}`),s.on("action",n),s.on("connect",()=>n(_O())),s.on("disconnect",()=>n(EO())),s.on("reconnect",()=>n(SO())),s.on("set-translations",(h,m)=>{n(Z3({language:h,messages:q3(h,m)}))}),s.on("set-settings",h=>{n($3(h))}),s.on("enable-conversation-rating",h=>n(bx(h))),s.on("speech-transcription",h=>n(gx(h))),s.on("restore-client-state",h=>{n(vO(h.sessionId)),n(Ex(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{n({type:lb,devices:h,initial:m})}),s.on("restart-chat",()=>{n(mu(u.clientName,u.querystrings))})}else if(u.type===du)s?.emit("start-chat",u.payload);else if(u.type===hu)s?.emit("terminate-session",u.payload);else if(u.type===hx)s?.emit("get-started",JSON.stringify(u));else if(u.type===Oh)s?.emit("audio-message",u.buffer);else if(u.type===Oe.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===ub){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else WM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},T_=Vb(),e4={...tM(T_),intl:a_},hh=$x({middleware:n=>n().concat(JM),reducer:J3,preloadedState:e4});hh.subscribe(L3(()=>{const n=hh.getState();nM(T_,{connection:n.connection,startScreen:n.startScreen})},1e3));const t4=document.getElementById("root"),n4=zS.createRoot(t4);n4.render(v.jsx(I2,{store:hh,children:v.jsx(_3,{})}));
124
+ //# sourceMappingURL=index-DusT2GOr.js.map