@botfabrik/engine-webclient 4.93.1 → 4.93.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-BwGiWG8Z.js +351 -0
- package/dist/client/assets/index-BwGiWG8Z.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/createSessionInfo.test.js +1 -6
- package/dist/embed/bundle.js +17 -14
- package/dist/index.d.ts +0 -6
- package/dist/index.js +15 -80
- package/dist/requestSessionData.d.ts +1 -0
- package/dist/requestSessionData.js +5 -0
- package/dist/requestSessionData.test.js +16 -9
- package/package.json +2 -4
- package/dist/client/assets/index-J_X7d2_u.js +0 -119
- package/dist/client/assets/index-J_X7d2_u.js.map +0 -1
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
var y2=Object.defineProperty;var _2=(n,r,i)=>r in n?y2(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var Ce=(n,r,i)=>_2(n,typeof r!="symbol"?r+"":r,i);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).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 l(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var qc={exports:{}},Pi={};/**
|
|
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 tg;function v2(){if(tg)return Pi;tg=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(l,u,c){var h=null;if(c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),"key"in u){c={};for(var d in u)d!=="key"&&(c[d]=u[d])}else c=u;return u=c.ref,{$$typeof:n,type:l,key:h,ref:u!==void 0?u:null,props:c}}return Pi.Fragment=r,Pi.jsx=i,Pi.jsxs=i,Pi}var ng;function b2(){return ng||(ng=1,qc.exports=v2()),qc.exports}var _=b2(),Ic={exports:{}},Yi={},Fc={exports:{}},Vc={};/**
|
|
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 rg;function E2(){return rg||(rg=1,function(n){function r(q,K){var ne=q.length;q.push(K);e:for(;0<ne;){var _e=ne-1>>>1,R=q[_e];if(0<u(R,K))q[_e]=K,q[ne]=R,ne=_e;else break e}}function i(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var K=q[0],ne=q.pop();if(ne!==K){q[0]=ne;e:for(var _e=0,R=q.length,V=R>>>1;_e<V;){var $=2*(_e+1)-1,Q=q[$],ae=$+1,Te=q[ae];if(0>u(Q,ne))ae<R&&0>u(Te,Q)?(q[_e]=Te,q[ae]=ne,_e=ae):(q[_e]=Q,q[$]=ne,_e=$);else if(ae<R&&0>u(Te,ne))q[_e]=Te,q[ae]=ne,_e=ae;else break e}}return K}function u(q,K){var ne=q.sortIndex-K.sortIndex;return ne!==0?ne:q.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 h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var m=[],g=[],y=1,E=null,T=3,j=!1,b=!1,C=!1,x=!1,M=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function w(q){for(var K=i(g);K!==null;){if(K.callback===null)l(g);else if(K.startTime<=q)l(g),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(g)}}function S(q){if(C=!1,w(q),!b)if(i(m)!==null)b=!0,G||(G=!0,ie());else{var K=i(g);K!==null&&ge(S,K.startTime-q)}}var G=!1,Y=-1,X=5,J=-1;function W(){return x?!0:!(n.unstable_now()-J<X)}function de(){if(x=!1,G){var q=n.unstable_now();J=q;var K=!0;try{e:{b=!1,C&&(C=!1,D(Y),Y=-1),j=!0;var ne=T;try{t:{for(w(q),E=i(m);E!==null&&!(E.expirationTime>q&&W());){var _e=E.callback;if(typeof _e=="function"){E.callback=null,T=E.priorityLevel;var R=_e(E.expirationTime<=q);if(q=n.unstable_now(),typeof R=="function"){E.callback=R,w(q),K=!0;break t}E===i(m)&&l(m),w(q)}else l(m);E=i(m)}if(E!==null)K=!0;else{var V=i(g);V!==null&&ge(S,V.startTime-q),K=!1}}break e}finally{E=null,T=ne,j=!1}K=void 0}}finally{K?ie():G=!1}}}var ie;if(typeof A=="function")ie=function(){A(de)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ke=he.port2;he.port1.onmessage=de,ie=function(){ke.postMessage(null)}}else ie=function(){M(de,0)};function ge(q,K){Y=M(function(){q(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(q){q.callback=null},n.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<q?Math.floor(1e3/q):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(q){switch(T){case 1:case 2:case 3:var K=3;break;default:K=T}var ne=T;T=K;try{return q()}finally{T=ne}},n.unstable_requestPaint=function(){x=!0},n.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ne=T;T=q;try{return K()}finally{T=ne}},n.unstable_scheduleCallback=function(q,K,ne){var _e=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?_e+ne:_e):ne=_e,q){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ne+R,q={id:y++,callback:K,priorityLevel:q,startTime:ne,expirationTime:R,sortIndex:-1},ne>_e?(q.sortIndex=ne,r(g,q),i(m)===null&&q===i(g)&&(C?(D(Y),Y=-1):C=!0,ge(S,ne-_e))):(q.sortIndex=R,r(m,q),b||j||(b=!0,G||(G=!0,ie()))),q},n.unstable_shouldYield=W,n.unstable_wrapCallback=function(q){var K=T;return function(){var ne=T;T=K;try{return q.apply(this,arguments)}finally{T=ne}}}}(Vc)),Vc}var ag;function S2(){return ag||(ag=1,Fc.exports=E2()),Fc.exports}var Pc={exports:{}},pe={};/**
|
|
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 ig;function T2(){if(ig)return pe;ig=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.iterator;function T(R){return R===null||typeof R!="object"?null:(R=E&&R[E]||R["@@iterator"],typeof R=="function"?R:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function x(R,V,$){this.props=R,this.context=V,this.refs=C,this.updater=$||j}x.prototype.isReactComponent={},x.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,V,"setState")},x.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function M(){}M.prototype=x.prototype;function D(R,V,$){this.props=R,this.context=V,this.refs=C,this.updater=$||j}var A=D.prototype=new M;A.constructor=D,b(A,x.prototype),A.isPureReactComponent=!0;var w=Array.isArray,S={H:null,A:null,T:null,S:null,V:null},G=Object.prototype.hasOwnProperty;function Y(R,V,$,Q,ae,Te){return $=Te.ref,{$$typeof:n,type:R,key:V,ref:$!==void 0?$:null,props:Te}}function X(R,V){return Y(R.type,V,void 0,void 0,void 0,R.props)}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function W(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function($){return V[$]})}var de=/\/+/g;function ie(R,V){return typeof R=="object"&&R!==null&&R.key!=null?W(""+R.key):V.toString(36)}function he(){}function ke(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(he,he):(R.status="pending",R.then(function(V){R.status==="pending"&&(R.status="fulfilled",R.value=V)},function(V){R.status==="pending"&&(R.status="rejected",R.reason=V)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function ge(R,V,$,Q,ae){var Te=typeof R;(Te==="undefined"||Te==="boolean")&&(R=null);var ue=!1;if(R===null)ue=!0;else switch(Te){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(R.$$typeof){case n:case r:ue=!0;break;case y:return ue=R._init,ge(ue(R._payload),V,$,Q,ae)}}if(ue)return ae=ae(R),ue=Q===""?"."+ie(R,0):Q,w(ae)?($="",ue!=null&&($=ue.replace(de,"$&/")+"/"),ge(ae,V,$,"",function(Rt){return Rt})):ae!=null&&(J(ae)&&(ae=X(ae,$+(ae.key==null||R&&R.key===ae.key?"":(""+ae.key).replace(de,"$&/")+"/")+ue)),V.push(ae)),1;ue=0;var mt=Q===""?".":Q+":";if(w(R))for(var Ge=0;Ge<R.length;Ge++)Q=R[Ge],Te=mt+ie(Q,Ge),ue+=ge(Q,V,$,Te,ae);else if(Ge=T(R),typeof Ge=="function")for(R=Ge.call(R),Ge=0;!(Q=R.next()).done;)Q=Q.value,Te=mt+ie(Q,Ge++),ue+=ge(Q,V,$,Te,ae);else if(Te==="object"){if(typeof R.then=="function")return ge(ke(R),V,$,Q,ae);throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ue}function q(R,V,$){if(R==null)return R;var Q=[],ae=0;return ge(R,Q,"","",function(Te){return V.call($,Te,ae++)}),Q}function K(R){if(R._status===-1){var V=R._result;V=V(),V.then(function($){(R._status===0||R._status===-1)&&(R._status=1,R._result=$)},function($){(R._status===0||R._status===-1)&&(R._status=2,R._result=$)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var ne=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function _e(){}return pe.Children={map:q,forEach:function(R,V,$){q(R,function(){V.apply(this,arguments)},$)},count:function(R){var V=0;return q(R,function(){V++}),V},toArray:function(R){return q(R,function(V){return V})||[]},only:function(R){if(!J(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},pe.Component=x,pe.Fragment=i,pe.Profiler=u,pe.PureComponent=D,pe.StrictMode=l,pe.Suspense=m,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,pe.__COMPILER_RUNTIME={__proto__:null,c:function(R){return S.H.useMemoCache(R)}},pe.cache=function(R){return function(){return R.apply(null,arguments)}},pe.cloneElement=function(R,V,$){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Q=b({},R.props),ae=R.key,Te=void 0;if(V!=null)for(ue in V.ref!==void 0&&(Te=void 0),V.key!==void 0&&(ae=""+V.key),V)!G.call(V,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&V.ref===void 0||(Q[ue]=V[ue]);var ue=arguments.length-2;if(ue===1)Q.children=$;else if(1<ue){for(var mt=Array(ue),Ge=0;Ge<ue;Ge++)mt[Ge]=arguments[Ge+2];Q.children=mt}return Y(R.type,ae,void 0,void 0,Te,Q)},pe.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},pe.createElement=function(R,V,$){var Q,ae={},Te=null;if(V!=null)for(Q in V.key!==void 0&&(Te=""+V.key),V)G.call(V,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ae[Q]=V[Q]);var ue=arguments.length-2;if(ue===1)ae.children=$;else if(1<ue){for(var mt=Array(ue),Ge=0;Ge<ue;Ge++)mt[Ge]=arguments[Ge+2];ae.children=mt}if(R&&R.defaultProps)for(Q in ue=R.defaultProps,ue)ae[Q]===void 0&&(ae[Q]=ue[Q]);return Y(R,Te,void 0,void 0,null,ae)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(R){return{$$typeof:d,render:R}},pe.isValidElement=J,pe.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:K}},pe.memo=function(R,V){return{$$typeof:g,type:R,compare:V===void 0?null:V}},pe.startTransition=function(R){var V=S.T,$={};S.T=$;try{var Q=R(),ae=S.S;ae!==null&&ae($,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(_e,ne)}catch(Te){ne(Te)}finally{S.T=V}},pe.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},pe.use=function(R){return S.H.use(R)},pe.useActionState=function(R,V,$){return S.H.useActionState(R,V,$)},pe.useCallback=function(R,V){return S.H.useCallback(R,V)},pe.useContext=function(R){return S.H.useContext(R)},pe.useDebugValue=function(){},pe.useDeferredValue=function(R,V){return S.H.useDeferredValue(R,V)},pe.useEffect=function(R,V,$){var Q=S.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(R,V)},pe.useId=function(){return S.H.useId()},pe.useImperativeHandle=function(R,V,$){return S.H.useImperativeHandle(R,V,$)},pe.useInsertionEffect=function(R,V){return S.H.useInsertionEffect(R,V)},pe.useLayoutEffect=function(R,V){return S.H.useLayoutEffect(R,V)},pe.useMemo=function(R,V){return S.H.useMemo(R,V)},pe.useOptimistic=function(R,V){return S.H.useOptimistic(R,V)},pe.useReducer=function(R,V,$){return S.H.useReducer(R,V,$)},pe.useRef=function(R){return S.H.useRef(R)},pe.useState=function(R){return S.H.useState(R)},pe.useSyncExternalStore=function(R,V,$){return S.H.useSyncExternalStore(R,V,$)},pe.useTransition=function(){return S.H.useTransition()},pe.version="19.1.0",pe}var sg;function Fa(){return sg||(sg=1,Pc.exports=T2()),Pc.exports}var Yc={exports:{}},_t={};/**
|
|
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 lg;function x2(){if(lg)return _t;lg=1;var n=Fa();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 l={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 E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:g,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,_t.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)},_t.flushSync=function(m){var g=h.T,y=l.p;try{if(h.T=null,l.p=2,m)return m()}finally{h.T=g,l.p=y,l.d.f()}},_t.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(m,g))},_t.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},_t.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,E=d(y,g.crossOrigin),T=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?l.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:T,fetchPriority:j}):y==="script"&&l.d.X(m,{crossOrigin:E,integrity:T,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},_t.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=d(g.as,g.crossOrigin);l.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&&l.d.M(m)},_t.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,E=d(y,g.crossOrigin);l.d.L(m,y,{crossOrigin:E,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})}},_t.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=d(g.as,g.crossOrigin);l.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 l.d.m(m)},_t.requestFormReset=function(m){l.d.r(m)},_t.unstable_batchedUpdates=function(m,g){return m(g)},_t.useFormState=function(m,g,y){return h.H.useFormState(m,g,y)},_t.useFormStatus=function(){return h.H.useHostTransitionStatus()},_t.version="19.1.0",_t}var og;function A2(){if(og)return Yc.exports;og=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(),Yc.exports=x2(),Yc.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 ug;function O2(){if(ug)return Yi;ug=1;var n=S2(),r=Fa(),i=A2();function l(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 h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,s=t;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),e;if(f===s)return d(o),t;f=f.sibling}throw Error(l(188))}if(a.return!==s.return)a=o,s=f;else{for(var p=!1,v=o.child;v;){if(v===a){p=!0,a=o,s=f;break}if(v===s){p=!0,s=o,a=f;break}v=v.sibling}if(!p){for(v=f.child;v;){if(v===a){p=!0,a=f,s=o;break}if(v===s){p=!0,s=f,a=o;break}v=v.sibling}if(!p)throw Error(l(189))}}if(a.alternate!==s)throw Error(l(190))}if(a.tag!==3)throw Error(l(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,E=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),A=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function ke(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case x:return"Profiler";case C:return"StrictMode";case S:return"Suspense";case G:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case A:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ke(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return ke(e(t))}catch{}}return null}var ge=Array.isArray,q=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,ne={pending:!1,data:null,method:null,action:null},_e=[],R=-1;function V(e){return{current:e}}function $(e){0>R||(e.current=_e[R],_e[R]=null,R--)}function Q(e,t){R++,_e[R]=e.current,e.current=t}var ae=V(null),Te=V(null),ue=V(null),mt=V(null);function Ge(e,t){switch(Q(ue,t),Q(Te,e),Q(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cp(t),e=Np(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ae),Q(ae,e)}function Rt(){$(ae),$(Te),$(ue)}function Tr(e){e.memoizedState!==null&&Q(mt,e);var t=ae.current,a=Np(t,e.type);t!==a&&(Q(Te,e),Q(ae,a))}function Za(e){Te.current===e&&($(ae),$(Te)),mt.current===e&&($(mt),Gi._currentValue=ne)}var pt=Object.prototype.hasOwnProperty,An=n.unstable_scheduleCallback,Co=n.unstable_cancelCallback,Qb=n.unstable_shouldYield,Kb=n.unstable_requestPaint,hn=n.unstable_now,$b=n.unstable_getCurrentPriorityLevel,ud=n.unstable_ImmediatePriority,cd=n.unstable_UserBlockingPriority,hs=n.unstable_NormalPriority,Jb=n.unstable_LowPriority,fd=n.unstable_IdlePriority,Wb=n.log,e1=n.unstable_setDisableYieldValue,Xa=null,Ct=null;function Xn(e){if(typeof Wb=="function"&&e1(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Xa,e)}catch{}}var Nt=Math.clz32?Math.clz32:r1,t1=Math.log,n1=Math.LN2;function r1(e){return e>>>=0,e===0?32:31-(t1(e)/n1|0)|0}var ds=256,ms=4194304;function xr(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 ps(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var o=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=s&134217727;return v!==0?(s=v&~f,s!==0?o=xr(s):(p&=v,p!==0?o=xr(p):a||(a=v&~e,a!==0&&(o=xr(a))))):(v=s&~f,v!==0?o=xr(v):p!==0?o=xr(p):a||(a=s&~e,a!==0&&(o=xr(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 Qa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function a1(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 hd(){var e=ds;return ds<<=1,(ds&4194048)===0&&(ds=256),e}function dd(){var e=ms;return ms<<=1,(ms&62914560)===0&&(ms=4194304),e}function No(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function i1(e,t,a,s,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 v=e.entanglements,O=e.expirationTimes,U=e.hiddenUpdates;for(a=p&~a;0<a;){var I=31-Nt(a),P=1<<I;v[I]=0,O[I]=-1;var H=U[I];if(H!==null)for(U[I]=null,I=0;I<H.length;I++){var z=H[I];z!==null&&(z.lane&=-536870913)}a&=~P}s!==0&&md(e,s,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function md(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Nt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function pd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-Nt(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function Do(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 Mo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function gd(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Qp(e.type))}function s1(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var Qn=Math.random().toString(36).slice(2),gt="__reactFiber$"+Qn,St="__reactProps$"+Qn,ea="__reactContainer$"+Qn,Bo="__reactEvents$"+Qn,l1="__reactListeners$"+Qn,o1="__reactHandles$"+Qn,yd="__reactResources$"+Qn,$a="__reactMarker$"+Qn;function jo(e){delete e[gt],delete e[St],delete e[Bo],delete e[l1],delete e[o1]}function ta(e){var t=e[gt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ea]||a[gt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=jp(e);e!==null;){if(a=e[gt])return a;e=jp(e)}return t}e=a,a=e.parentNode}return null}function na(e){if(e=e[gt]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ja(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ra(e){var t=e[yd];return t||(t=e[yd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[$a]=!0}var _d=new Set,vd={};function Ar(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(vd[e]=t,e=0;e<t.length;e++)_d.add(t[e])}var u1=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]*$"),bd={},Ed={};function c1(e){return pt.call(Ed,e)?!0:pt.call(bd,e)?!1:u1.test(e)?Ed[e]=!0:(bd[e]=!0,!1)}function gs(e,t,a){if(c1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ys(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 On(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}var Lo,Sd;function ia(e){if(Lo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Lo=t&&t[1]||"",Sd=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Lo+e+Sd}var Uo=!1;function Ho(e,t){if(!e||Uo)return"";Uo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={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(z){var H=z}Reflect.construct(e,[],P)}else{try{P.call()}catch(z){H=z}e.call(P.prototype)}}else{try{throw Error()}catch(z){H=z}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(z){if(z&&H&&typeof z.stack=="string")return[z.stack,H.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),p=f[0],v=f[1];if(p&&v){var O=p.split(`
|
|
44
|
-
`),U=v.split(`
|
|
45
|
-
`);for(o=s=0;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;for(;o<U.length&&!U[o].includes("DetermineComponentFrameRoot");)o++;if(s===O.length||o===U.length)for(s=O.length-1,o=U.length-1;1<=s&&0<=o&&O[s]!==U[o];)o--;for(;1<=s&&0<=o;s--,o--)if(O[s]!==U[o]){if(s!==1||o!==1)do if(s--,o--,0>o||O[s]!==U[o]){var I=`
|
|
46
|
-
`+O[s].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=s&&0<=o);break}}}finally{Uo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ia(a):""}function f1(e){switch(e.tag){case 26:case 27:case 5:return ia(e.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Ho(e.type,!1);case 11:return Ho(e.type.render,!1);case 1:return Ho(e.type,!0);case 31:return ia("Activity");default:return""}}function Td(e){try{var t="";do t+=f1(e),e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e){var t=xd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+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){s=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _s(e){e._valueTracker||(e._valueTracker=h1(e))}function Ad(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=xd(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function vs(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 d1=/[\n"\\]/g;function Vt(e){return e.replace(d1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zo(e,t,a,s,o,f,p,v){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=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?ko(e,p,Ft(t)):a!=null?ko(e,p,Ft(a)):s!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Ft(v):e.removeAttribute("name")}function Od(e,t,a,s,o,f,p,v){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?""+Ft(a):"",t=t!=null?""+Ft(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=v?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function ko(e,t,a){t==="number"&&vs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function sa(e,t,a,s){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&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Ft(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function wd(e,t,a){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ft(a):""}function Rd(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(l(92));if(ge(s)){if(1<s.length)throw Error(l(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=Ft(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s)}function la(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var m1=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 Cd(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||m1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Nd(e,t,a){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&a[o]!==s&&Cd(e,o,s)}else for(var f in t)t.hasOwnProperty(f)&&Cd(e,f,t[f])}function Go(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 p1=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"]]),g1=/^[\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 bs(e){return g1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var qo=null;function Io(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,ua=null;function Dd(e){var t=na(e);if(t&&(e=t.stateNode)){var a=e[St]||null;e:switch(e=t.stateNode,t.type){case"input":if(zo(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="'+Vt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var o=s[St]||null;if(!o)throw Error(l(90));zo(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&Ad(s)}break e;case"textarea":wd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&sa(e,!!a.multiple,t,!1)}}}var Fo=!1;function Md(e,t,a){if(Fo)return e(t,a);Fo=!0;try{var s=e(t);return s}finally{if(Fo=!1,(oa!==null||ua!==null)&&(il(),oa&&(t=oa,e=ua,ua=oa=null,Dd(t),e)))for(t=0;t<e.length;t++)Dd(e[t])}}function Wa(e,t){var a=e.stateNode;if(a===null)return null;var s=a[St]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,t,typeof a));return a}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vo=!1;if(wn)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Vo=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Vo=!1}var Kn=null,Po=null,Es=null;function Bd(){if(Es)return Es;var e,t=Po,a=t.length,s,o="value"in Kn?Kn.value:Kn.textContent,f=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(s=1;s<=p&&t[a-s]===o[f-s];s++);return Es=o.slice(e,1<s?1-s:void 0)}function Ss(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 Ts(){return!0}function jd(){return!1}function Tt(e){function t(a,s,o,f,p){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Ts:jd,this.isPropagationStopped=jd,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=Ts)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ts)},persist:function(){},isPersistent:Ts}),t}var Or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=Tt(Or),ti=y({},Or,{view:0,detail:0}),y1=Tt(ti),Yo,Zo,ni,As=y({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qo,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!==ni&&(ni&&e.type==="mousemove"?(Yo=e.screenX-ni.screenX,Zo=e.screenY-ni.screenY):Zo=Yo=0,ni=e),Yo)},movementY:function(e){return"movementY"in e?e.movementY:Zo}}),Ld=Tt(As),_1=y({},As,{dataTransfer:0}),v1=Tt(_1),b1=y({},ti,{relatedTarget:0}),Xo=Tt(b1),E1=y({},Or,{animationName:0,elapsedTime:0,pseudoElement:0}),S1=Tt(E1),T1=y({},Or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),x1=Tt(T1),A1=y({},Or,{data:0}),Ud=Tt(A1),O1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w1={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"},R1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=R1[e])?!!t[e]:!1}function Qo(){return C1}var N1=y({},ti,{key:function(e){if(e.key){var t=O1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qo,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D1=Tt(N1),M1=y({},As,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hd=Tt(M1),B1=y({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qo}),j1=Tt(B1),L1=y({},Or,{propertyName:0,elapsedTime:0,pseudoElement:0}),U1=Tt(L1),H1=y({},As,{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}),z1=Tt(H1),k1=y({},Or,{newState:0,oldState:0}),G1=Tt(k1),q1=[9,13,27,32],Ko=wn&&"CompositionEvent"in window,ri=null;wn&&"documentMode"in document&&(ri=document.documentMode);var I1=wn&&"TextEvent"in window&&!ri,zd=wn&&(!Ko||ri&&8<ri&&11>=ri),kd=" ",Gd=!1;function qd(e,t){switch(e){case"keyup":return q1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Id(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function F1(e,t){switch(e){case"compositionend":return Id(t);case"keypress":return t.which!==32?null:(Gd=!0,kd);case"textInput":return e=t.data,e===kd&&Gd?null:e;default:return null}}function V1(e,t){if(ca)return e==="compositionend"||!Ko&&qd(e,t)?(e=Bd(),Es=Po=Kn=null,ca=!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 zd&&t.locale!=="ko"?null:t.data;default:return null}}var P1={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 Fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!P1[e.type]:t==="textarea"}function Vd(e,t,a,s){oa?ua?ua.push(s):ua=[s]:oa=s,t=fl(t,"onChange"),0<t.length&&(a=new xs("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ai=null,ii=null;function Y1(e){xp(e,0)}function Os(e){var t=Ja(e);if(Ad(t))return e}function Pd(e,t){if(e==="change")return t}var Yd=!1;if(wn){var $o;if(wn){var Jo="oninput"in document;if(!Jo){var Zd=document.createElement("div");Zd.setAttribute("oninput","return;"),Jo=typeof Zd.oninput=="function"}$o=Jo}else $o=!1;Yd=$o&&(!document.documentMode||9<document.documentMode)}function Xd(){ai&&(ai.detachEvent("onpropertychange",Qd),ii=ai=null)}function Qd(e){if(e.propertyName==="value"&&Os(ii)){var t=[];Vd(t,ii,e,Io(e)),Md(Y1,t)}}function Z1(e,t,a){e==="focusin"?(Xd(),ai=t,ii=a,ai.attachEvent("onpropertychange",Qd)):e==="focusout"&&Xd()}function X1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(ii)}function Q1(e,t){if(e==="click")return Os(t)}function K1(e,t){if(e==="input"||e==="change")return Os(t)}function $1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:$1;function si(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!pt.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function Kd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $d(e,t){var a=Kd(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Kd(a)}}function Jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vs(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=vs(e.document)}return t}function Wo(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 J1=wn&&"documentMode"in document&&11>=document.documentMode,fa=null,eu=null,li=null,tu=!1;function em(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;tu||fa==null||fa!==vs(s)||(s=fa,"selectionStart"in s&&Wo(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),li&&si(li,s)||(li=s,s=fl(eu,"onSelect"),0<s.length&&(t=new xs("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=fa)))}function wr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ha={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionrun:wr("Transition","TransitionRun"),transitionstart:wr("Transition","TransitionStart"),transitioncancel:wr("Transition","TransitionCancel"),transitionend:wr("Transition","TransitionEnd")},nu={},tm={};wn&&(tm=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Rr(e){if(nu[e])return nu[e];if(!ha[e])return e;var t=ha[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in tm)return nu[e]=t[a];return e}var nm=Rr("animationend"),rm=Rr("animationiteration"),am=Rr("animationstart"),W1=Rr("transitionrun"),eE=Rr("transitionstart"),tE=Rr("transitioncancel"),im=Rr("transitionend"),sm=new Map,ru="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(" ");ru.push("scrollEnd");function nn(e,t){sm.set(e,t),Ar(t,[e])}var lm=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var a=lm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Td(t)},lm.set(e,t),t)}return{value:e,source:t,stack:Td(t)}}var Yt=[],da=0,au=0;function ws(){for(var e=da,t=au=da=0;t<e;){var a=Yt[t];Yt[t++]=null;var s=Yt[t];Yt[t++]=null;var o=Yt[t];Yt[t++]=null;var f=Yt[t];if(Yt[t++]=null,s!==null&&o!==null){var p=s.pending;p===null?o.next=o:(o.next=p.next,p.next=o),s.pending=o}f!==0&&om(a,o,f)}}function Rs(e,t,a,s){Yt[da++]=e,Yt[da++]=t,Yt[da++]=a,Yt[da++]=s,au|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function iu(e,t,a,s){return Rs(e,t,a,s),Cs(e)}function ma(e,t){return Rs(e,null,null,t),Cs(e)}function om(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,s=f.alternate,s!==null&&(s.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-Nt(a),e=f.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),f):null}function Cs(e){if(50<Mi)throw Mi=0,fc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function nE(e,t,a,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,a,s){return new nE(e,t,a,s)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,t){var a=e.alternate;return a===null?(a=Mt(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 um(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 Ns(e,t,a,s,o,f){var p=0;if(s=e,typeof e=="function")su(e)&&(p=1);else if(typeof e=="string")p=a2(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=Mt(31,a,t,o),e.elementType=J,e.lanes=f,e;case b:return Cr(a.children,o,f,t);case C:p=8,o|=24;break;case x:return e=Mt(12,a,t,o|2),e.elementType=x,e.lanes=f,e;case S:return e=Mt(13,a,t,o),e.elementType=S,e.lanes=f,e;case G:return e=Mt(19,a,t,o),e.elementType=G,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:case A:p=10;break e;case D:p=9;break e;case w:p=11;break e;case Y:p=14;break e;case X:p=16,s=null;break e}p=29,a=Error(l(130,e===null?"null":typeof e,"")),s=null}return t=Mt(p,a,t,o),t.elementType=e,t.type=s,t.lanes=f,t}function Cr(e,t,a,s){return e=Mt(7,e,s,t),e.lanes=a,e}function lu(e,t,a){return e=Mt(6,e,null,t),e.lanes=a,e}function ou(e,t,a){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ga=[],ya=0,Ds=null,Ms=0,Zt=[],Xt=0,Nr=null,Cn=1,Nn="";function Dr(e,t){ga[ya++]=Ms,ga[ya++]=Ds,Ds=e,Ms=t}function cm(e,t,a){Zt[Xt++]=Cn,Zt[Xt++]=Nn,Zt[Xt++]=Nr,Nr=e;var s=Cn;e=Nn;var o=32-Nt(s)-1;s&=~(1<<o),a+=1;var f=32-Nt(t)+o;if(30<f){var p=o-o%5;f=(s&(1<<p)-1).toString(32),s>>=p,o-=p,Cn=1<<32-Nt(t)+o|a<<o|s,Nn=f+e}else Cn=1<<f|a<<o|s,Nn=e}function uu(e){e.return!==null&&(Dr(e,1),cm(e,1,0))}function cu(e){for(;e===Ds;)Ds=ga[--ya],ga[ya]=null,Ms=ga[--ya],ga[ya]=null;for(;e===Nr;)Nr=Zt[--Xt],Zt[Xt]=null,Nn=Zt[--Xt],Zt[Xt]=null,Cn=Zt[--Xt],Zt[Xt]=null}var vt=null,Ye=null,Ne=!1,Mr=null,dn=!1,fu=Error(l(519));function Br(e){var t=Error(l(418,""));throw ci(Pt(t,e)),fu}function fm(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[gt]=e,t[St]=s,a){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(a=0;a<ji.length;a++)Ee(ji[a],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Od(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),_s(t);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Rd(t,s.value,s.defaultValue,s.children),_s(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||Rp(t.textContent,a)?(s.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),s.onScroll!=null&&Ee("scroll",t),s.onScrollEnd!=null&&Ee("scrollend",t),s.onClick!=null&&(t.onclick=hl),t=!0):t=!1,t||Br(e)}function hm(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:vt=vt.return}}function oi(e){if(e!==vt)return!1;if(!Ne)return hm(e),Ne=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||wc(e.type,e.memoizedProps)),a=!a),a&&Ye&&Br(e),hm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Ye=an(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ye=null}}else t===27?(t=Ye,hr(e.type)?(e=Dc,Dc=null,Ye=e):Ye=t):Ye=vt?an(e.stateNode.nextSibling):null;return!0}function ui(){Ye=vt=null,Ne=!1}function dm(){var e=Mr;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),Mr=null),e}function ci(e){Mr===null?Mr=[e]:Mr.push(e)}var hu=V(null),jr=null,Dn=null;function $n(e,t,a){Q(hu,t._currentValue),t._currentValue=a}function Mn(e){e._currentValue=hu.current,$(hu)}function du(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function mu(e,t,a,s){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 v=f;f=o;for(var O=0;O<t.length;O++)if(v.context===t[O]){f.lanes|=a,v=f.alternate,v!==null&&(v.lanes|=a),du(f.return,a,e),s||(p=null);break e}f=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(l(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),du(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 fi(e,t,a,s){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(l(387));if(p=p.memoizedProps,p!==null){var v=o.type;Dt(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===mt.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Gi):e=[Gi])}o=o.return}e!==null&&mu(t,e,a,s),t.flags|=262144}function Bs(e){for(e=e.firstContext;e!==null;){if(!Dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Lr(e){jr=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return mm(jr,e)}function js(e,t){return jr===null&&Lr(e),mm(e,t)}function mm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Dn===null){if(e===null)throw Error(l(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return a}var rE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},aE=n.unstable_scheduleCallback,iE=n.unstable_NormalPriority,tt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pu(){return{controller:new rE,data:new Map,refCount:0}}function hi(e){e.refCount--,e.refCount===0&&aE(iE,function(){e.controller.abort()})}var di=null,gu=0,_a=0,va=null;function sE(e,t){if(di===null){var a=di=[];gu=0,_a=_c(),va={status:"pending",value:void 0,then:function(s){a.push(s)}}}return gu++,t.then(pm,pm),t}function pm(){if(--gu===0&&di!==null){va!==null&&(va.status="fulfilled");var e=di;di=null,_a=0,va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function lE(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var gm=q.S;q.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&sE(e,t),gm!==null&&gm(e,t)};var Ur=V(null);function yu(){var e=Ur.current;return e!==null?e:qe.pooledCache}function Ls(e,t){t===null?Q(Ur,Ur.current):Q(Ur,t.pool)}function ym(){var e=yu();return e===null?null:{parent:tt._currentValue,pool:e}}var mi=Error(l(460)),_m=Error(l(474)),Us=Error(l(542)),_u={then:function(){}};function vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hs(){}function bm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Hs,Hs),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sm(e),e;default:if(typeof t.status=="string")t.then(Hs,Hs);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Sm(e),e}throw pi=t,mi}}var pi=null;function Em(){if(pi===null)throw Error(l(459));var e=pi;return pi=null,e}function Sm(e){if(e===mi||e===Us)throw Error(l(483))}var Jn=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(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 Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function er(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Me&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=Cs(e),om(e,null,a),t}return Rs(e,s,t,a),Cs(e)}function gi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,pd(e,a)}}function Eu(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){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:s.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Su=!1;function yi(){if(Su){var e=va;if(e!==null)throw e}}function _i(e,t,a,s){Su=!1;var o=e.updateQueue;Jn=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var O=v,U=O.next;O.next=null,p===null?f=U:p.next=U,p=O;var I=e.alternate;I!==null&&(I=I.updateQueue,v=I.lastBaseUpdate,v!==p&&(v===null?I.firstBaseUpdate=U:v.next=U,I.lastBaseUpdate=O))}if(f!==null){var P=o.baseState;p=0,I=U=O=null,v=f;do{var H=v.lane&-536870913,z=H!==v.lane;if(z?(Oe&H)===H:(s&H)===H){H!==0&&H===_a&&(Su=!0),I!==null&&(I=I.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ce=e,se=v;H=t;var He=a;switch(se.tag){case 1:if(ce=se.payload,typeof ce=="function"){P=ce.call(He,P,H);break e}P=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=se.payload,H=typeof ce=="function"?ce.call(He,P,H):ce,H==null)break e;P=y({},P,H);break e;case 2:Jn=!0}}H=v.callback,H!==null&&(e.flags|=64,z&&(e.flags|=8192),z=o.callbacks,z===null?o.callbacks=[H]:z.push(H))}else z={lane:H,tag:v.tag,payload:v.payload,callback:v.callback,next:null},I===null?(U=I=z,O=P):I=I.next=z,p|=H;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;z=v,v=z.next,z.next=null,o.lastBaseUpdate=z,o.shared.pending=null}}while(!0);I===null&&(O=P),o.baseState=O,o.firstBaseUpdate=U,o.lastBaseUpdate=I,f===null&&(o.shared.lanes=0),or|=p,e.lanes=p,e.memoizedState=P}}function Tm(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function xm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Tm(a[e],t)}var ba=V(null),zs=V(0);function Am(e,t){e=kn,Q(zs,e),Q(ba,t),kn=e|t.baseLanes}function Tu(){Q(zs,kn),Q(ba,ba.current)}function xu(){kn=zs.current,$(ba),$(zs)}var tr=0,ye=null,Le=null,$e=null,ks=!1,Ea=!1,Hr=!1,Gs=0,vi=0,Sa=null,oE=0;function Qe(){throw Error(l(321))}function Au(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Dt(e[a],t[a]))return!1;return!0}function Ou(e,t,a,s,o,f){return tr=f,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?o0:u0,Hr=!1,f=a(s,o),Hr=!1,Ea&&(f=wm(t,a,s,o)),Om(e),f}function Om(e){q.H=Ys;var t=Le!==null&&Le.next!==null;if(tr=0,$e=Le=ye=null,ks=!1,vi=0,Sa=null,t)throw Error(l(300));e===null||at||(e=e.dependencies,e!==null&&Bs(e)&&(at=!0))}function wm(e,t,a,s){ye=e;var o=0;do{if(Ea&&(Sa=null),vi=0,Ea=!1,25<=o)throw Error(l(301));if(o+=1,$e=Le=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}q.H=pE,f=t(a,s)}while(Ea);return f}function uE(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?bi(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(ye.flags|=1024),t}function wu(){var e=Gs!==0;return Gs=0,e}function Ru(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Cu(e){if(ks){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ks=!1}tr=0,$e=Le=ye=null,Ea=!1,vi=Gs=0,Sa=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ye.memoizedState=$e=e:$e=$e.next=e,$e}function Je(){if(Le===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=$e===null?ye.memoizedState:$e.next;if(t!==null)$e=t,Le=e;else{if(e===null)throw ye.alternate===null?Error(l(467)):Error(l(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},$e===null?ye.memoizedState=$e=e:$e=$e.next=e}return $e}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(e){var t=vi;return vi+=1,Sa===null&&(Sa=[]),e=bm(Sa,e,t),t=ye,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?o0:u0),e}function qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bi(e);if(e.$$typeof===A)return yt(e)}throw Error(l(438,String(e)))}function Du(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=ye.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Nu(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=W;return t.index++,a}function Bn(e,t){return typeof t=="function"?t(e):t}function Is(e){var t=Je();return Mu(t,Le,e)}function Mu(e,t,a){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=a;var o=e.baseQueue,f=s.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}t.baseQueue=o=f,s.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var v=p=null,O=null,U=t,I=!1;do{var P=U.lane&-536870913;if(P!==U.lane?(Oe&P)===P:(tr&P)===P){var H=U.revertLane;if(H===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),P===_a&&(I=!0);else if((tr&H)===H){U=U.next,H===_a&&(I=!0);continue}else P={lane:0,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},O===null?(v=O=P,p=f):O=O.next=P,ye.lanes|=H,or|=H;P=U.action,Hr&&a(f,P),f=U.hasEagerState?U.eagerState:a(f,P)}else H={lane:P,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},O===null?(v=O=H,p=f):O=O.next=H,ye.lanes|=P,or|=P;U=U.next}while(U!==null&&U!==t);if(O===null?p=f:O.next=v,!Dt(f,e.memoizedState)&&(at=!0,I&&(a=va,a!==null)))throw a;e.memoizedState=f,e.baseState=p,e.baseQueue=O,s.lastRenderedState=f}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Bu(e){var t=Je(),a=t.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var s=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);Dt(f,t.memoizedState)||(at=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,s]}function Rm(e,t,a){var s=ye,o=Je(),f=Ne;if(f){if(a===void 0)throw Error(l(407));a=a()}else a=t();var p=!Dt((Le||o).memoizedState,a);p&&(o.memoizedState=a,at=!0),o=o.queue;var v=Dm.bind(null,s,o,e);if(Ei(2048,8,v,[e]),o.getSnapshot!==t||p||$e!==null&&$e.memoizedState.tag&1){if(s.flags|=2048,Ta(9,Fs(),Nm.bind(null,s,o,a,t),null),qe===null)throw Error(l(349));f||(tr&124)!==0||Cm(s,t,a)}return a}function Cm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=Nu(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Nm(e,t,a,s){t.value=a,t.getSnapshot=s,Mm(t)&&Bm(e)}function Dm(e,t,a){return a(function(){Mm(t)&&Bm(e)})}function Mm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Dt(e,a)}catch{return!0}}function Bm(e){var t=ma(e,2);t!==null&&Ht(t,e,2)}function ju(e){var t=xt();if(typeof e=="function"){var a=e;if(e=a(),Hr){Xn(!0);try{a()}finally{Xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:e},t}function jm(e,t,a,s){return e.baseState=a,Mu(e,Le,typeof s=="function"?s:Bn)}function cE(e,t,a,s,o){if(Ps(e))throw Error(l(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)}};q.T!==null?a(!0):f.isTransition=!1,s(f),a=t.pending,a===null?(f.next=t.pending=f,Lm(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Lm(e,t){var a=t.action,s=t.payload,o=e.state;if(t.isTransition){var f=q.T,p={};q.T=p;try{var v=a(o,s),O=q.S;O!==null&&O(p,v),Um(e,t,v)}catch(U){Lu(e,t,U)}finally{q.T=f}}else try{f=a(o,s),Um(e,t,f)}catch(U){Lu(e,t,U)}}function Um(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Hm(e,t,s)},function(s){return Lu(e,t,s)}):Hm(e,t,a)}function Hm(e,t,a){t.status="fulfilled",t.value=a,zm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Lm(e,a)))}function Lu(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,zm(t),t=t.next;while(t!==s)}e.action=null}function zm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function km(e,t){return t}function Gm(e,t){if(Ne){var a=qe.formState;if(a!==null){e:{var s=ye;if(Ne){if(Ye){t:{for(var o=Ye,f=dn;o.nodeType!==8;){if(!f){o=null;break t}if(o=an(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Ye=an(o.nextSibling),s=o.data==="F!";break e}}Br(s)}s=!1}s&&(t=a[0])}}return a=xt(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:km,lastRenderedState:t},a.queue=s,a=i0.bind(null,ye,s),s.dispatch=a,s=ju(!1),f=Gu.bind(null,ye,!1,s.queue),s=xt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=cE.bind(null,ye,o,f,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function qm(e){var t=Je();return Im(t,Le,e)}function Im(e,t,a){if(t=Mu(e,t,km)[0],e=Is(Bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=bi(t)}catch(p){throw p===mi?Us:p}else s=t;t=Je();var o=t.queue,f=o.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,Ta(9,Fs(),fE.bind(null,o,a),null)),[s,f,e]}function fE(e,t){e.action=t}function Fm(e){var t=Je(),a=Le;if(a!==null)return Im(t,a,e);Je(),t=t.memoizedState,a=Je();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ta(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Nu(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Fs(){return{destroy:void 0,resource:void 0}}function Vm(){return Je().memoizedState}function Vs(e,t,a,s){var o=xt();s=s===void 0?null:s,ye.flags|=e,o.memoizedState=Ta(1|t,Fs(),a,s)}function Ei(e,t,a,s){var o=Je();s=s===void 0?null:s;var f=o.memoizedState.inst;Le!==null&&s!==null&&Au(s,Le.memoizedState.deps)?o.memoizedState=Ta(t,f,a,s):(ye.flags|=e,o.memoizedState=Ta(1|t,f,a,s))}function Pm(e,t){Vs(8390656,8,e,t)}function Ym(e,t){Ei(2048,8,e,t)}function Zm(e,t){return Ei(4,2,e,t)}function Xm(e,t){return Ei(4,4,e,t)}function Qm(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 Km(e,t,a){a=a!=null?a.concat([e]):null,Ei(4,4,Qm.bind(null,t,e),a)}function Uu(){}function $m(e,t){var a=Je();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Au(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function Jm(e,t){var a=Je();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Au(t,s[1]))return s[0];if(s=e(),Hr){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[s,t],s}function Hu(e,t,a){return a===void 0||(tr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=tp(),ye.lanes|=e,or|=e,a)}function Wm(e,t,a,s){return Dt(a,t)?a:ba.current!==null?(e=Hu(e,a,s),Dt(e,t)||(at=!0),e):(tr&42)===0?(at=!0,e.memoizedState=a):(e=tp(),ye.lanes|=e,or|=e,t)}function e0(e,t,a,s,o){var f=K.p;K.p=f!==0&&8>f?f:8;var p=q.T,v={};q.T=v,Gu(e,!1,t,a);try{var O=o(),U=q.S;if(U!==null&&U(v,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var I=lE(O,s);Si(e,t,I,Ut(e))}else Si(e,t,s,Ut(e))}catch(P){Si(e,t,{then:function(){},status:"rejected",reason:P},Ut())}finally{K.p=f,q.T=p}}function hE(){}function zu(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=t0(e).queue;e0(e,o,t,ne,a===null?hE:function(){return n0(e),a(s)})}function t0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function n0(e){var t=t0(e).next.queue;Si(e,t,{},Ut())}function ku(){return yt(Gi)}function r0(){return Je().memoizedState}function a0(){return Je().memoizedState}function dE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ut();e=Wn(a);var s=er(t,e,a);s!==null&&(Ht(s,t,a),gi(s,t,a)),t={cache:pu()},e.payload=t;return}t=t.return}}function mE(e,t,a){var s=Ut();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ps(e)?s0(t,a):(a=iu(e,t,a,s),a!==null&&(Ht(a,e,s),l0(a,t,s)))}function i0(e,t,a){var s=Ut();Si(e,t,a,s)}function Si(e,t,a,s){var o={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))s0(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,v=f(p,a);if(o.hasEagerState=!0,o.eagerState=v,Dt(v,p))return Rs(e,t,o,0),qe===null&&ws(),!1}catch{}finally{}if(a=iu(e,t,o,s),a!==null)return Ht(a,e,s),l0(a,t,s),!0}return!1}function Gu(e,t,a,s){if(s={lane:2,revertLane:_c(),action:s,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(l(479))}else t=iu(e,a,s,2),t!==null&&Ht(t,e,2)}function Ps(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function s0(e,t){Ea=ks=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function l0(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,pd(e,a)}}var Ys={readContext:yt,use:qs,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe},o0={readContext:yt,use:qs,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Pm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vs(4194308,4,Qm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var a=xt();t=t===void 0?null:t;var s=e();if(Hr){Xn(!0);try{e()}finally{Xn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=xt();if(a!==void 0){var o=a(t);if(Hr){Xn(!0);try{a(t)}finally{Xn(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=mE.bind(null,ye,e),[s.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=ju(e);var t=e.queue,a=i0.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uu,useDeferredValue:function(e,t){var a=xt();return Hu(a,e,t)},useTransition:function(){var e=ju(!1);return e=e0.bind(null,ye,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ye,o=xt();if(Ne){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),qe===null)throw Error(l(349));(Oe&124)!==0||Cm(s,t,a)}o.memoizedState=a;var f={value:a,getSnapshot:t};return o.queue=f,Pm(Dm.bind(null,s,f,e),[e]),s.flags|=2048,Ta(9,Fs(),Nm.bind(null,s,f,a,t),null),a},useId:function(){var e=xt(),t=qe.identifierPrefix;if(Ne){var a=Nn,s=Cn;a=(s&~(1<<32-Nt(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=Gs++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=oE++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:ku,useFormState:Gm,useActionState:Gm,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Gu.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Du,useCacheRefresh:function(){return xt().memoizedState=dE.bind(null,ye)}},u0={readContext:yt,use:qs,useCallback:$m,useContext:yt,useEffect:Ym,useImperativeHandle:Km,useInsertionEffect:Zm,useLayoutEffect:Xm,useMemo:Jm,useReducer:Is,useRef:Vm,useState:function(){return Is(Bn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Je();return Wm(a,Le.memoizedState,e,t)},useTransition:function(){var e=Is(Bn)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Rm,useId:r0,useHostTransitionStatus:ku,useFormState:qm,useActionState:qm,useOptimistic:function(e,t){var a=Je();return jm(a,Le,e,t)},useMemoCache:Du,useCacheRefresh:a0},pE={readContext:yt,use:qs,useCallback:$m,useContext:yt,useEffect:Ym,useImperativeHandle:Km,useInsertionEffect:Zm,useLayoutEffect:Xm,useMemo:Jm,useReducer:Bu,useRef:Vm,useState:function(){return Bu(Bn)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Je();return Le===null?Hu(a,e,t):Wm(a,Le.memoizedState,e,t)},useTransition:function(){var e=Bu(Bn)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:bi(e),t]},useSyncExternalStore:Rm,useId:r0,useHostTransitionStatus:ku,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,t){var a=Je();return Le!==null?jm(a,Le,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Du,useCacheRefresh:a0},xa=null,Ti=0;function Zs(e){var t=Ti;return Ti+=1,xa===null&&(xa=[]),bm(xa,e,t)}function xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xs(e,t){throw t.$$typeof===E?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function c0(e){var t=e._init;return t(e._payload)}function f0(e){function t(B,N){if(e){var L=B.deletions;L===null?(B.deletions=[N],B.flags|=16):L.push(N)}}function a(B,N){if(!e)return null;for(;N!==null;)t(B,N),N=N.sibling;return null}function s(B){for(var N=new Map;B!==null;)B.key!==null?N.set(B.key,B):N.set(B.index,B),B=B.sibling;return N}function o(B,N){return B=Rn(B,N),B.index=0,B.sibling=null,B}function f(B,N,L){return B.index=L,e?(L=B.alternate,L!==null?(L=L.index,L<N?(B.flags|=67108866,N):L):(B.flags|=67108866,N)):(B.flags|=1048576,N)}function p(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function v(B,N,L,F){return N===null||N.tag!==6?(N=lu(L,B.mode,F),N.return=B,N):(N=o(N,L),N.return=B,N)}function O(B,N,L,F){var ee=L.type;return ee===b?I(B,N,L.props.children,F,L.key):N!==null&&(N.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===X&&c0(ee)===N.type)?(N=o(N,L.props),xi(N,L),N.return=B,N):(N=Ns(L.type,L.key,L.props,null,B.mode,F),xi(N,L),N.return=B,N)}function U(B,N,L,F){return N===null||N.tag!==4||N.stateNode.containerInfo!==L.containerInfo||N.stateNode.implementation!==L.implementation?(N=ou(L,B.mode,F),N.return=B,N):(N=o(N,L.children||[]),N.return=B,N)}function I(B,N,L,F,ee){return N===null||N.tag!==7?(N=Cr(L,B.mode,F,ee),N.return=B,N):(N=o(N,L),N.return=B,N)}function P(B,N,L){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=lu(""+N,B.mode,L),N.return=B,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case T:return L=Ns(N.type,N.key,N.props,null,B.mode,L),xi(L,N),L.return=B,L;case j:return N=ou(N,B.mode,L),N.return=B,N;case X:var F=N._init;return N=F(N._payload),P(B,N,L)}if(ge(N)||ie(N))return N=Cr(N,B.mode,L,null),N.return=B,N;if(typeof N.then=="function")return P(B,Zs(N),L);if(N.$$typeof===A)return P(B,js(B,N),L);Xs(B,N)}return null}function H(B,N,L,F){var ee=N!==null?N.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ee!==null?null:v(B,N,""+L,F);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return L.key===ee?O(B,N,L,F):null;case j:return L.key===ee?U(B,N,L,F):null;case X:return ee=L._init,L=ee(L._payload),H(B,N,L,F)}if(ge(L)||ie(L))return ee!==null?null:I(B,N,L,F,null);if(typeof L.then=="function")return H(B,N,Zs(L),F);if(L.$$typeof===A)return H(B,N,js(B,L),F);Xs(B,L)}return null}function z(B,N,L,F,ee){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return B=B.get(L)||null,v(N,B,""+F,ee);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case T:return B=B.get(F.key===null?L:F.key)||null,O(N,B,F,ee);case j:return B=B.get(F.key===null?L:F.key)||null,U(N,B,F,ee);case X:var ve=F._init;return F=ve(F._payload),z(B,N,L,F,ee)}if(ge(F)||ie(F))return B=B.get(L)||null,I(N,B,F,ee,null);if(typeof F.then=="function")return z(B,N,L,Zs(F),ee);if(F.$$typeof===A)return z(B,N,L,js(N,F),ee);Xs(N,F)}return null}function ce(B,N,L,F){for(var ee=null,ve=null,re=N,le=N=0,st=null;re!==null&&le<L.length;le++){re.index>le?(st=re,re=null):st=re.sibling;var Re=H(B,re,L[le],F);if(Re===null){re===null&&(re=st);break}e&&re&&Re.alternate===null&&t(B,re),N=f(Re,N,le),ve===null?ee=Re:ve.sibling=Re,ve=Re,re=st}if(le===L.length)return a(B,re),Ne&&Dr(B,le),ee;if(re===null){for(;le<L.length;le++)re=P(B,L[le],F),re!==null&&(N=f(re,N,le),ve===null?ee=re:ve.sibling=re,ve=re);return Ne&&Dr(B,le),ee}for(re=s(re);le<L.length;le++)st=z(re,B,le,L[le],F),st!==null&&(e&&st.alternate!==null&&re.delete(st.key===null?le:st.key),N=f(st,N,le),ve===null?ee=st:ve.sibling=st,ve=st);return e&&re.forEach(function(yr){return t(B,yr)}),Ne&&Dr(B,le),ee}function se(B,N,L,F){if(L==null)throw Error(l(151));for(var ee=null,ve=null,re=N,le=N=0,st=null,Re=L.next();re!==null&&!Re.done;le++,Re=L.next()){re.index>le?(st=re,re=null):st=re.sibling;var yr=H(B,re,Re.value,F);if(yr===null){re===null&&(re=st);break}e&&re&&yr.alternate===null&&t(B,re),N=f(yr,N,le),ve===null?ee=yr:ve.sibling=yr,ve=yr,re=st}if(Re.done)return a(B,re),Ne&&Dr(B,le),ee;if(re===null){for(;!Re.done;le++,Re=L.next())Re=P(B,Re.value,F),Re!==null&&(N=f(Re,N,le),ve===null?ee=Re:ve.sibling=Re,ve=Re);return Ne&&Dr(B,le),ee}for(re=s(re);!Re.done;le++,Re=L.next())Re=z(re,B,le,Re.value,F),Re!==null&&(e&&Re.alternate!==null&&re.delete(Re.key===null?le:Re.key),N=f(Re,N,le),ve===null?ee=Re:ve.sibling=Re,ve=Re);return e&&re.forEach(function(g2){return t(B,g2)}),Ne&&Dr(B,le),ee}function He(B,N,L,F){if(typeof L=="object"&&L!==null&&L.type===b&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case T:e:{for(var ee=L.key;N!==null;){if(N.key===ee){if(ee=L.type,ee===b){if(N.tag===7){a(B,N.sibling),F=o(N,L.props.children),F.return=B,B=F;break e}}else if(N.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===X&&c0(ee)===N.type){a(B,N.sibling),F=o(N,L.props),xi(F,L),F.return=B,B=F;break e}a(B,N);break}else t(B,N);N=N.sibling}L.type===b?(F=Cr(L.props.children,B.mode,F,L.key),F.return=B,B=F):(F=Ns(L.type,L.key,L.props,null,B.mode,F),xi(F,L),F.return=B,B=F)}return p(B);case j:e:{for(ee=L.key;N!==null;){if(N.key===ee)if(N.tag===4&&N.stateNode.containerInfo===L.containerInfo&&N.stateNode.implementation===L.implementation){a(B,N.sibling),F=o(N,L.children||[]),F.return=B,B=F;break e}else{a(B,N);break}else t(B,N);N=N.sibling}F=ou(L,B.mode,F),F.return=B,B=F}return p(B);case X:return ee=L._init,L=ee(L._payload),He(B,N,L,F)}if(ge(L))return ce(B,N,L,F);if(ie(L)){if(ee=ie(L),typeof ee!="function")throw Error(l(150));return L=ee.call(L),se(B,N,L,F)}if(typeof L.then=="function")return He(B,N,Zs(L),F);if(L.$$typeof===A)return He(B,N,js(B,L),F);Xs(B,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,N!==null&&N.tag===6?(a(B,N.sibling),F=o(N,L),F.return=B,B=F):(a(B,N),F=lu(L,B.mode,F),F.return=B,B=F),p(B)):a(B,N)}return function(B,N,L,F){try{Ti=0;var ee=He(B,N,L,F);return xa=null,ee}catch(re){if(re===mi||re===Us)throw re;var ve=Mt(29,re,null,B.mode);return ve.lanes=F,ve.return=B,ve}finally{}}}var Aa=f0(!0),h0=f0(!1),Qt=V(null),mn=null;function nr(e){var t=e.alternate;Q(nt,nt.current&1),Q(Qt,e),mn===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(mn=e)}function d0(e){if(e.tag===22){if(Q(nt,nt.current),Q(Qt,e),mn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(mn=e)}}else rr()}function rr(){Q(nt,nt.current),Q(Qt,Qt.current)}function jn(e){$(Qt),mn===e&&(mn=null),$(nt)}var nt=V(0);function Qs(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==="$?"||Nc(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 qu(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Iu={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=Ut(),o=Wn(s);o.payload=t,a!=null&&(o.callback=a),t=er(e,o,s),t!==null&&(Ht(t,e,s),gi(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=Ut(),o=Wn(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=er(e,o,s),t!==null&&(Ht(t,e,s),gi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ut(),s=Wn(a);s.tag=2,t!=null&&(s.callback=t),t=er(e,s,a),t!==null&&(Ht(t,e,a),gi(t,e,a))}};function m0(e,t,a,s,o,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,p):t.prototype&&t.prototype.isPureReactComponent?!si(a,s)||!si(o,f):!0}function p0(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&Iu.enqueueReplaceState(t,t.state,null)}function zr(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}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 Ks=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 g0(e){Ks(e)}function y0(e){console.error(e)}function _0(e){Ks(e)}function $s(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function v0(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Fu(e,t,a){return a=Wn(a),a.tag=3,a.payload={element:null},a.callback=function(){$s(e,t)},a}function b0(e){return e=Wn(e),e.tag=3,e}function E0(e,t,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=s.value;e.payload=function(){return o(f)},e.callback=function(){v0(t,a,s)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){v0(t,a,s),typeof o!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}function gE(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&fi(t,a,o,!0),a=Qt.current,a!==null){switch(a.tag){case 13:return mn===null?dc():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===_u?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),pc(e,s,o)),!1;case 22:return a.flags|=65536,s===_u?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),pc(e,s,o)),!1}throw Error(l(435,a.tag))}return pc(e,s,o),dc(),!1}if(Ne)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==fu&&(e=Error(l(422),{cause:s}),ci(Pt(e,a)))):(s!==fu&&(t=Error(l(423),{cause:s}),ci(Pt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Pt(s,a),o=Fu(e.stateNode,s,o),Eu(e,o),Ze!==4&&(Ze=2)),!1;var f=Error(l(520),{cause:s});if(f=Pt(f,a),Di===null?Di=[f]:Di.push(f),Ze!==4&&(Ze=2),t===null)return!0;s=Pt(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Fu(a.stateNode,s,e),Eu(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"&&(ur===null||!ur.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=b0(o),E0(o,e,a,s),Eu(a,o),!1}a=a.return}while(a!==null);return!1}var S0=Error(l(461)),at=!1;function ot(e,t,a,s){t.child=e===null?h0(t,null,a,s):Aa(t,e.child,a,s)}function T0(e,t,a,s,o){a=a.render;var f=t.ref;if("ref"in s){var p={};for(var v in s)v!=="ref"&&(p[v]=s[v])}else p=s;return Lr(t),s=Ou(e,t,a,p,f,o),v=wu(),e!==null&&!at?(Ru(e,t,o),Ln(e,t,o)):(Ne&&v&&uu(t),t.flags|=1,ot(e,t,s,o),t.child)}function x0(e,t,a,s,o){if(e===null){var f=a.type;return typeof f=="function"&&!su(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,A0(e,t,f,s,o)):(e=Ns(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!$u(e,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:si,a(p,s)&&e.ref===t.ref)return Ln(e,t,o)}return t.flags|=1,e=Rn(f,s),e.ref=t.ref,e.return=t,t.child=e}function A0(e,t,a,s,o){if(e!==null){var f=e.memoizedProps;if(si(f,s)&&e.ref===t.ref)if(at=!1,t.pendingProps=s=f,$u(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Ln(e,t,o)}return Vu(e,t,a,s,o)}function O0(e,t,a){var s=t.pendingProps,o=s.children,f=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=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&~s}else t.childLanes=0,t.child=null;return w0(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ls(t,f!==null?f.cachePool:null),f!==null?Am(t,f):Tu(),d0(t);else return t.lanes=t.childLanes=536870912,w0(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(Ls(t,f.cachePool),Am(t,f),rr(),t.memoizedState=null):(e!==null&&Ls(t,null),Tu(),rr());return ot(e,t,o,a),t.child}function w0(e,t,a,s){var o=yu();return o=o===null?null:{parent:tt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ls(t,null),Tu(),d0(t),e!==null&&fi(e,t,s,!0),null}function Js(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(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Vu(e,t,a,s,o){return Lr(t),a=Ou(e,t,a,s,void 0,o),s=wu(),e!==null&&!at?(Ru(e,t,o),Ln(e,t,o)):(Ne&&s&&uu(t),t.flags|=1,ot(e,t,a,o),t.child)}function R0(e,t,a,s,o,f){return Lr(t),t.updateQueue=null,a=wm(t,s,a,o),Om(e),s=wu(),e!==null&&!at?(Ru(e,t,f),Ln(e,t,f)):(Ne&&s&&uu(t),t.flags|=1,ot(e,t,a,f),t.child)}function C0(e,t,a,s,o){if(Lr(t),t.stateNode===null){var f=pa,p=a.contextType;typeof p=="object"&&p!==null&&(f=yt(p)),f=new a(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Iu,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},vu(t),p=a.contextType,f.context=typeof p=="object"&&p!==null?yt(p):pa,f.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(qu(t,a,p,s),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&&Iu.enqueueReplaceState(f,f.state,null),_i(t,s,f,o),yi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var v=t.memoizedProps,O=zr(a,v);f.props=O;var U=f.context,I=a.contextType;p=pa,typeof I=="object"&&I!==null&&(p=yt(I));var P=a.getDerivedStateFromProps;I=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,I||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||U!==p)&&p0(t,f,s,p),Jn=!1;var H=t.memoizedState;f.state=H,_i(t,s,f,o),yi(),U=t.memoizedState,v||H!==U||Jn?(typeof P=="function"&&(qu(t,a,P,s),U=t.memoizedState),(O=Jn||m0(t,a,O,s,H,U,p))?(I||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=s,t.memoizedState=U),f.props=s,f.state=U,f.context=p,s=O):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,bu(e,t),p=t.memoizedProps,I=zr(a,p),f.props=I,P=t.pendingProps,H=f.context,U=a.contextType,O=pa,typeof U=="object"&&U!==null&&(O=yt(U)),v=a.getDerivedStateFromProps,(U=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==P||H!==O)&&p0(t,f,s,O),Jn=!1,H=t.memoizedState,f.state=H,_i(t,s,f,o),yi();var z=t.memoizedState;p!==P||H!==z||Jn||e!==null&&e.dependencies!==null&&Bs(e.dependencies)?(typeof v=="function"&&(qu(t,a,v,s),z=t.memoizedState),(I=Jn||m0(t,a,I,s,H,z,O)||e!==null&&e.dependencies!==null&&Bs(e.dependencies))?(U||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,z,O),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,z,O)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=z),f.props=s,f.state=z,f.context=O,s=I):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,Js(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=Aa(t,e.child,null,o),t.child=Aa(t,null,a,o)):ot(e,t,a,o),t.memoizedState=f.state,e=t.child):e=Ln(e,t,o),e}function N0(e,t,a,s){return ui(),t.flags|=256,ot(e,t,a,s),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yu(e){return{baseLanes:e,cachePool:ym()}}function Zu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Kt),e}function D0(e,t,a){var s=t.pendingProps,o=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?nr(t):rr(),Ne){var v=Ye,O;if(O=v){e:{for(O=v,v=dn;O.nodeType!==8;){if(!v){v=null;break e}if(O=an(O.nextSibling),O===null){v=null;break e}}v=O}v!==null?(t.memoizedState={dehydrated:v,treeContext:Nr!==null?{id:Cn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},O=Mt(18,null,null,0),O.stateNode=v,O.return=t,t.child=O,vt=t,Ye=null,O=!0):O=!1}O||Br(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Nc(v)?t.lanes=32:t.lanes=536870912,null;jn(t)}return v=s.children,s=s.fallback,o?(rr(),o=t.mode,v=Ws({mode:"hidden",children:v},o),s=Cr(s,o,a,null),v.return=t,s.return=t,v.sibling=s,t.child=v,o=t.child,o.memoizedState=Yu(a),o.childLanes=Zu(e,p,a),t.memoizedState=Pu,s):(nr(t),Xu(t,v))}if(O=e.memoizedState,O!==null&&(v=O.dehydrated,v!==null)){if(f)t.flags&256?(nr(t),t.flags&=-257,t=Qu(e,t,a)):t.memoizedState!==null?(rr(),t.child=e.child,t.flags|=128,t=null):(rr(),o=s.fallback,v=t.mode,s=Ws({mode:"visible",children:s.children},v),o=Cr(o,v,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,Aa(t,e.child,null,a),s=t.child,s.memoizedState=Yu(a),s.childLanes=Zu(e,p,a),t.memoizedState=Pu,t=o);else if(nr(t),Nc(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var U=p.dgst;p=U,s=Error(l(419)),s.stack="",s.digest=p,ci({value:s,source:null,stack:null}),t=Qu(e,t,a)}else if(at||fi(e,t,a,!1),p=(a&e.childLanes)!==0,at||p){if(p=qe,p!==null&&(s=a&-a,s=(s&42)!==0?1:Do(s),s=(s&(p.suspendedLanes|a))!==0?0:s,s!==0&&s!==O.retryLane))throw O.retryLane=s,ma(e,s),Ht(p,e,s),S0;v.data==="$?"||dc(),t=Qu(e,t,a)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Ye=an(v.nextSibling),vt=t,Ne=!0,Mr=null,dn=!1,e!==null&&(Zt[Xt++]=Cn,Zt[Xt++]=Nn,Zt[Xt++]=Nr,Cn=e.id,Nn=e.overflow,Nr=t),t=Xu(t,s.children),t.flags|=4096);return t}return o?(rr(),o=s.fallback,v=t.mode,O=e.child,U=O.sibling,s=Rn(O,{mode:"hidden",children:s.children}),s.subtreeFlags=O.subtreeFlags&65011712,U!==null?o=Rn(U,o):(o=Cr(o,v,a,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,v=e.child.memoizedState,v===null?v=Yu(a):(O=v.cachePool,O!==null?(U=tt._currentValue,O=O.parent!==U?{parent:U,pool:U}:O):O=ym(),v={baseLanes:v.baseLanes|a,cachePool:O}),o.memoizedState=v,o.childLanes=Zu(e,p,a),t.memoizedState=Pu,s):(nr(t),a=e.child,e=a.sibling,a=Rn(a,{mode:"visible",children:s.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 Xu(e,t){return t=Ws({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ws(e,t){return e=Mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Qu(e,t,a){return Aa(t,e.child,null,a),e=Xu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function M0(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),du(e.return,t,a)}function Ku(e,t,a,s,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=s,f.tail=a,f.tailMode=o)}function B0(e,t,a){var s=t.pendingProps,o=s.revealOrder,f=s.tail;if(ot(e,t,s.children,a),s=nt.current,(s&2)!==0)s=s&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&&M0(e,a,t);else if(e.tag===19)M0(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}s&=1}switch(Q(nt,s),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Qs(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Ku(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&&Qs(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Ku(t,!0,a,null,f);break;case"together":Ku(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ln(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Rn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Rn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function $u(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bs(e)))}function yE(e,t,a){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),$n(t,tt,e.memoizedState.cache),ui();break;case 27:case 5:Tr(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(nr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?D0(e,t,a):(nr(t),e=Ln(e,t,a),e!==null?e.sibling:null);nr(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(fi(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return B0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(nt,nt.current),s)break;return null;case 22:case 23:return t.lanes=0,O0(e,t,a);case 24:$n(t,tt,e.memoizedState.cache)}return Ln(e,t,a)}function j0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!$u(e,a)&&(t.flags&128)===0)return at=!1,yE(e,t,a);at=(e.flags&131072)!==0}else at=!1,Ne&&(t.flags&1048576)!==0&&cm(t,Ms,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var s=t.elementType,o=s._init;if(s=o(s._payload),t.type=s,typeof s=="function")su(s)?(e=zr(s,e),t.tag=1,t=C0(null,t,s,e,a)):(t.tag=0,t=Vu(null,t,s,e,a));else{if(s!=null){if(o=s.$$typeof,o===w){t.tag=11,t=T0(null,t,s,e,a);break e}else if(o===Y){t.tag=14,t=x0(null,t,s,e,a);break e}}throw t=ke(s)||s,Error(l(306,t,""))}}return t;case 0:return Vu(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=zr(s,t.pendingProps),C0(e,t,s,o,a);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var f=t.memoizedState;o=f.element,bu(e,t),_i(t,s,null,a);var p=t.memoizedState;if(s=p.cache,$n(t,tt,s),s!==f.cache&&mu(t,[tt],a,!0),yi(),s=p.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=N0(e,t,s,a);break e}else if(s!==o){o=Pt(Error(l(424)),t),ci(o),t=N0(e,t,s,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(Ye=an(e.firstChild),vt=t,Ne=!0,Mr=null,dn=!0,a=h0(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ui(),s===o){t=Ln(e,t,a);break e}ot(e,t,s,a)}t=t.child}return t;case 26:return Js(e,t),e===null?(a=zp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ne||(a=t.type,e=t.pendingProps,s=dl(ue.current).createElement(a),s[gt]=t,s[St]=e,ct(s,a,e),rt(s),t.stateNode=s):t.memoizedState=zp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Tr(t),e===null&&Ne&&(s=t.stateNode=Lp(t.type,t.pendingProps,ue.current),vt=t,dn=!0,o=Ye,hr(t.type)?(Dc=o,Ye=an(s.firstChild)):Ye=o),ot(e,t,t.pendingProps.children,a),Js(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=s=Ye)&&(s=PE(s,t.type,t.pendingProps,dn),s!==null?(t.stateNode=s,vt=t,Ye=an(s.firstChild),dn=!1,o=!0):o=!1),o||Br(t)),Tr(t),o=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,s=f.children,wc(o,f)?s=null:p!==null&&wc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Ou(e,t,uE,null,null,a),Gi._currentValue=o),Js(e,t),ot(e,t,s,a),t.child;case 6:return e===null&&Ne&&((e=a=Ye)&&(a=YE(a,t.pendingProps,dn),a!==null?(t.stateNode=a,vt=t,Ye=null,e=!0):e=!1),e||Br(t)),null;case 13:return D0(e,t,a);case 4:return Ge(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Aa(t,null,s,a):ot(e,t,s,a),t.child;case 11:return T0(e,t,t.type,t.pendingProps,a);case 7:return ot(e,t,t.pendingProps,a),t.child;case 8:return ot(e,t,t.pendingProps.children,a),t.child;case 12:return ot(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,$n(t,t.type,s.value),ot(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Lr(t),o=yt(o),s=s(o),t.flags|=1,ot(e,t,s,a),t.child;case 14:return x0(e,t,t.type,t.pendingProps,a);case 15:return A0(e,t,t.type,t.pendingProps,a);case 19:return B0(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=Ws(s,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=Rn(e.child,s),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return O0(e,t,a);case 24:return Lr(t),s=yt(tt),e===null?(o=yu(),o===null&&(o=qe,f=pu(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),t.memoizedState={parent:s,cache:o},vu(t),$n(t,tt,o)):((e.lanes&a)!==0&&(bu(e,t),_i(t,null,null,a),yi()),o=e.memoizedState,f=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),$n(t,tt,s)):(s=f.cache,$n(t,tt,s),s!==o.cache&&mu(t,[tt],a,!0))),ot(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Un(e){e.flags|=4}function L0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fp(t)){if(t=Qt.current,t!==null&&((Oe&4194048)===Oe?mn!==null:(Oe&62914560)!==Oe&&(Oe&536870912)===0||t!==mn))throw pi=_u,_m;e.flags|=8192}}function el(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?dd():536870912,e.lanes|=t,Ca|=t)}function Ai(e,t){if(!Ne)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 s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function _E(e,t,a){var s=t.pendingProps;switch(cu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Mn(tt),Rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?Un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dm())),Ve(t),null;case 26:return a=t.memoizedState,e===null?(Un(t),a!==null?(Ve(t),L0(t,a)):(Ve(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Un(t),Ve(t),L0(t,a)):(Ve(t),t.flags&=-16777217):(e.memoizedProps!==s&&Un(t),Ve(t),t.flags&=-16777217),null;case 27:Za(t),a=ue.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ve(t),null}e=ae.current,oi(t)?fm(t):(e=Lp(o,s,a),t.stateNode=e,Un(t))}return Ve(t),null;case 5:if(Za(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return Ve(t),null}if(e=ae.current,oi(t))fm(t);else{switch(o=dl(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 s.is=="string"?o.createElement("select",{is:s.is}):o.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?o.createElement(a,{is:s.is}):o.createElement(a)}}e[gt]=t,e[St]=s;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(ct(e,a,s),a){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Un(t)}}return Ve(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Un(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=ue.current,oi(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=vt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[gt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Rp(e.nodeValue,a)),e||Br(t)}else e=dl(e).createTextNode(s),e[gt]=t,t.stateNode=e}return Ve(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=oi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[gt]=t}else ui(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=dm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(jn(t),t):(jn(t),null)}if(jn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=s!==null,e=e!==null&&e.memoizedState!==null,a){s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool);var f=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==o&&(s.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),el(t,t.updateQueue),Ve(t),null;case 4:return Rt(),e===null&&Sc(t.stateNode.containerInfo),Ve(t),null;case 10:return Mn(t.type),Ve(t),null;case 19:if($(nt),o=t.memoizedState,o===null)return Ve(t),null;if(s=(t.flags&128)!==0,f=o.rendering,f===null)if(s)Ai(o,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Qs(e),f!==null){for(t.flags|=128,Ai(o,!1),e=f.updateQueue,t.updateQueue=e,el(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)um(a,e),a=a.sibling;return Q(nt,nt.current&1|2),t.child}e=e.sibling}o.tail!==null&&hn()>rl&&(t.flags|=128,s=!0,Ai(o,!1),t.lanes=4194304)}else{if(!s)if(e=Qs(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,el(t,e),Ai(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Ne)return Ve(t),null}else 2*hn()-o.renderingStartTime>rl&&a!==536870912&&(t.flags|=128,s=!0,Ai(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=hn(),t.sibling=null,e=nt.current,Q(nt,s?e&1|2:e&1),t):(Ve(t),null);case 22:case 23:return jn(t),xu(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),a=t.updateQueue,a!==null&&el(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&$(Ur),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mn(tt),Ve(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function vE(e,t){switch(cu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(tt),Rt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Za(t),null;case 13:if(jn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(nt),null;case 4:return Rt(),null;case 10:return Mn(t.type),null;case 22:case 23:return jn(t),xu(),e!==null&&$(Ur),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mn(tt),null;case 25:return null;default:return null}}function U0(e,t){switch(cu(t),t.tag){case 3:Mn(tt),Rt();break;case 26:case 27:case 5:Za(t);break;case 4:Rt();break;case 13:jn(t);break;case 19:$(nt);break;case 10:Mn(t.type);break;case 22:case 23:jn(t),xu(),e!==null&&$(Ur);break;case 24:Mn(tt)}}function Oi(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){s=void 0;var f=a.create,p=a.inst;s=f(),p.destroy=s}a=a.next}while(a!==o)}}catch(v){ze(t,t.return,v)}}function ar(e,t,a){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var f=o.next;s=f;do{if((s.tag&e)===e){var p=s.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var O=a,U=v;try{U()}catch(I){ze(o,O,I)}}}s=s.next}while(s!==f)}}catch(I){ze(t,t.return,I)}}function H0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{xm(t,a)}catch(s){ze(e,e.return,s)}}}function z0(e,t,a){a.props=zr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){ze(e,t,s)}}function wi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(o){ze(e,t,o)}}function pn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){ze(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){ze(e,t,o)}else a.current=null}function k0(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){ze(e,e.return,o)}}function Ju(e,t,a){try{var s=e.stateNode;GE(s,e.type,a,t),s[St]=t}catch(o){ze(e,e.return,o)}}function G0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hr(e.type)||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||G0(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&&hr(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 ec(e,t,a){var s=e.tag;if(s===5||s===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=hl));else if(s!==4&&(s===27&&hr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ec(e,t,a),e=e.sibling;e!==null;)ec(e,t,a),e=e.sibling}function tl(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&hr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tl(e,t,a),e=e.sibling;e!==null;)tl(e,t,a),e=e.sibling}function q0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ct(t,s,a),t[gt]=e,t[St]=a}catch(f){ze(e,e.return,f)}}var Hn=!1,Ke=!1,tc=!1,I0=typeof WeakSet=="function"?WeakSet:Set,it=null;function bE(e,t){if(e=e.containerInfo,Ac=vl,e=Wd(e),Wo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var p=0,v=-1,O=-1,U=0,I=0,P=e,H=null;t:for(;;){for(var z;P!==a||o!==0&&P.nodeType!==3||(v=p+o),P!==f||s!==0&&P.nodeType!==3||(O=p+s),P.nodeType===3&&(p+=P.nodeValue.length),(z=P.firstChild)!==null;)H=P,P=z;for(;;){if(P===e)break t;if(H===a&&++U===o&&(v=p),H===f&&++I===s&&(O=p),(z=P.nextSibling)!==null)break;P=H,H=P.parentNode}P=z}a=v===-1||O===-1?null:{start:v,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Oc={focusedElem:e,selectionRange:a},vl=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,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,s=a.stateNode;try{var ce=zr(a.type,o,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(ce,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(se){ze(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Cc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cc(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function F0(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ir(e,a),s&4&&Oi(5,a);break;case 1:if(ir(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){ze(a,a.return,p)}else{var o=zr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){ze(a,a.return,p)}}s&64&&H0(a),s&512&&wi(a,a.return);break;case 3:if(ir(e,a),s&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{xm(e,t)}catch(p){ze(a,a.return,p)}}break;case 27:t===null&&s&4&&q0(a);case 26:case 5:ir(e,a),t===null&&s&4&&k0(a),s&512&&wi(a,a.return);break;case 12:ir(e,a);break;case 13:ir(e,a),s&4&&Y0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=CE.bind(null,a),ZE(e,a))));break;case 22:if(s=a.memoizedState!==null||Hn,!s){t=t!==null&&t.memoizedState!==null||Ke,o=Hn;var f=Ke;Hn=s,(Ke=t)&&!f?sr(e,a,(a.subtreeFlags&8772)!==0):ir(e,a),Hn=o,Ke=f}break;case 30:break;default:ir(e,a)}}function V0(e){var t=e.alternate;t!==null&&(e.alternate=null,V0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jo(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 Fe=null,At=!1;function zn(e,t,a){for(a=a.child;a!==null;)P0(e,t,a),a=a.sibling}function P0(e,t,a){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Xa,a)}catch{}switch(a.tag){case 26:Ke||pn(a,t),zn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||pn(a,t);var s=Fe,o=At;hr(a.type)&&(Fe=a.stateNode,At=!1),zn(e,t,a),Ui(a.stateNode),Fe=s,At=o;break;case 5:Ke||pn(a,t);case 6:if(s=Fe,o=At,Fe=null,zn(e,t,a),Fe=s,At=o,Fe!==null)if(At)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(a.stateNode)}catch(f){ze(a,t,f)}else try{Fe.removeChild(a.stateNode)}catch(f){ze(a,t,f)}break;case 18:Fe!==null&&(At?(e=Fe,Bp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Vi(e)):Bp(Fe,a.stateNode));break;case 4:s=Fe,o=At,Fe=a.stateNode.containerInfo,At=!0,zn(e,t,a),Fe=s,At=o;break;case 0:case 11:case 14:case 15:Ke||ar(2,a,t),Ke||ar(4,a,t),zn(e,t,a);break;case 1:Ke||(pn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&z0(a,t,s)),zn(e,t,a);break;case 21:zn(e,t,a);break;case 22:Ke=(s=Ke)||a.memoizedState!==null,zn(e,t,a),Ke=s;break;default:zn(e,t,a)}}function Y0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vi(e)}catch(a){ze(t,t.return,a)}}function EE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new I0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new I0),t;default:throw Error(l(435,e.tag))}}function nc(e,t){var a=EE(e);t.forEach(function(s){var o=NE.bind(null,e,s);a.has(s)||(a.add(s),s.then(o,o))})}function Bt(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],f=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(hr(v.type)){Fe=v.stateNode,At=!1;break e}break;case 5:Fe=v.stateNode,At=!1;break e;case 3:case 4:Fe=v.stateNode.containerInfo,At=!0;break e}v=v.return}if(Fe===null)throw Error(l(160));P0(f,p,o),Fe=null,At=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Z0(t,e),t=t.sibling}var rn=null;function Z0(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(t,e),jt(e),s&4&&(ar(3,e,e.return),Oi(3,e),ar(5,e,e.return));break;case 1:Bt(t,e),jt(e),s&512&&(Ke||a===null||pn(a,a.return)),s&64&&Hn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=rn;if(Bt(t,e),jt(e),s&512&&(Ke||a===null||pn(a,a.return)),s&4){var f=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":f=o.getElementsByTagName("title")[0],(!f||f[$a]||f[gt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(s),o.head.insertBefore(f,o.querySelector("head > title"))),ct(f,s,a),f[gt]=e,rt(f),s=f;break e;case"link":var p=qp("link","href",o).get(s+(a.href||""));if(p){for(var v=0;v<p.length;v++)if(f=p[v],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(v,1);break t}}f=o.createElement(s),ct(f,s,a),o.head.appendChild(f);break;case"meta":if(p=qp("meta","content",o).get(s+(a.content||""))){for(v=0;v<p.length;v++)if(f=p[v],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(v,1);break t}}f=o.createElement(s),ct(f,s,a),o.head.appendChild(f);break;default:throw Error(l(468,s))}f[gt]=e,rt(f),s=f}e.stateNode=s}else Ip(o,e.type,e.stateNode);else e.stateNode=Gp(o,s,e.memoizedProps);else f!==s?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,s===null?Ip(o,e.type,e.stateNode):Gp(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Ju(e,e.memoizedProps,a.memoizedProps)}break;case 27:Bt(t,e),jt(e),s&512&&(Ke||a===null||pn(a,a.return)),a!==null&&s&4&&Ju(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Bt(t,e),jt(e),s&512&&(Ke||a===null||pn(a,a.return)),e.flags&32){o=e.stateNode;try{la(o,"")}catch(z){ze(e,e.return,z)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,Ju(e,o,a!==null?a.memoizedProps:o)),s&1024&&(tc=!0);break;case 6:if(Bt(t,e),jt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(z){ze(e,e.return,z)}}break;case 3:if(gl=null,o=rn,rn=ml(t.containerInfo),Bt(t,e),rn=o,jt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Vi(t.containerInfo)}catch(z){ze(e,e.return,z)}tc&&(tc=!1,X0(e));break;case 4:s=rn,rn=ml(e.stateNode.containerInfo),Bt(t,e),jt(e),rn=s;break;case 12:Bt(t,e),jt(e);break;case 13:Bt(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(oc=hn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,nc(e,s)));break;case 22:o=e.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,U=Hn,I=Ke;if(Hn=U||o,Ke=I||O,Bt(t,e),Ke=I,Hn=U,jt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||O||Hn||Ke||kr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){O=a=t;try{if(f=O.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=O.stateNode;var P=O.memoizedProps.style,H=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(z){ze(O,O.return,z)}}}else if(t.tag===6){if(a===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(z){ze(O,O.return,z)}}}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}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,nc(e,a))));break;case 19:Bt(t,e),jt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,nc(e,s)));break;case 30:break;case 21:break;default:Bt(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(G0(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,f=Wu(e);tl(e,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(la(p,""),a.flags&=-33);var v=Wu(e);tl(e,v,p);break;case 3:case 4:var O=a.stateNode.containerInfo,U=Wu(e);ec(e,U,O);break;default:throw Error(l(161))}}catch(I){ze(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function X0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;X0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ir(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)F0(e,t.alternate,t),t=t.sibling}function kr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ar(4,t,t.return),kr(t);break;case 1:pn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&z0(t,t.return,a),kr(t);break;case 27:Ui(t.stateNode);case 26:case 5:pn(t,t.return),kr(t);break;case 22:t.memoizedState===null&&kr(t);break;case 30:kr(t);break;default:kr(t)}e=e.sibling}}function sr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:sr(o,f,a),Oi(4,f);break;case 1:if(sr(o,f,a),s=f,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(U){ze(s,s.return,U)}if(s=f,o=s.updateQueue,o!==null){var v=s.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)Tm(O[o],v)}catch(U){ze(s,s.return,U)}}a&&p&64&&H0(f),wi(f,f.return);break;case 27:q0(f);case 26:case 5:sr(o,f,a),a&&s===null&&p&4&&k0(f),wi(f,f.return);break;case 12:sr(o,f,a);break;case 13:sr(o,f,a),a&&p&4&&Y0(o,f);break;case 22:f.memoizedState===null&&sr(o,f,a),wi(f,f.return);break;case 30:break;default:sr(o,f,a)}t=t.sibling}}function rc(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&&hi(a))}function ac(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hi(e))}function gn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Q0(e,t,a,s),t=t.sibling}function Q0(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,a,s),o&2048&&Oi(9,t);break;case 1:gn(e,t,a,s);break;case 3:gn(e,t,a,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hi(e)));break;case 12:if(o&2048){gn(e,t,a,s),e=t.stateNode;try{var f=t.memoizedProps,p=f.id,v=f.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){ze(t,t.return,O)}}else gn(e,t,a,s);break;case 13:gn(e,t,a,s);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?gn(e,t,a,s):Ri(e,t):f._visibility&2?gn(e,t,a,s):(f._visibility|=2,Oa(e,t,a,s,(t.subtreeFlags&10256)!==0)),o&2048&&rc(p,t);break;case 24:gn(e,t,a,s),o&2048&&ac(t.alternate,t);break;default:gn(e,t,a,s)}}function Oa(e,t,a,s,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,p=t,v=a,O=s,U=p.flags;switch(p.tag){case 0:case 11:case 15:Oa(f,p,v,O,o),Oi(8,p);break;case 23:break;case 22:var I=p.stateNode;p.memoizedState!==null?I._visibility&2?Oa(f,p,v,O,o):Ri(f,p):(I._visibility|=2,Oa(f,p,v,O,o)),o&&U&2048&&rc(p.alternate,p);break;case 24:Oa(f,p,v,O,o),o&&U&2048&&ac(p.alternate,p);break;default:Oa(f,p,v,O,o)}t=t.sibling}}function Ri(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,o=s.flags;switch(s.tag){case 22:Ri(a,s),o&2048&&rc(s.alternate,s);break;case 24:Ri(a,s),o&2048&&ac(s.alternate,s);break;default:Ri(a,s)}t=t.sibling}}var Ci=8192;function wa(e){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)K0(e),e=e.sibling}function K0(e){switch(e.tag){case 26:wa(e),e.flags&Ci&&e.memoizedState!==null&&s2(rn,e.memoizedState,e.memoizedProps);break;case 5:wa(e);break;case 3:case 4:var t=rn;rn=ml(e.stateNode.containerInfo),wa(e),rn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ci,Ci=16777216,wa(e),Ci=t):wa(e));break;default:wa(e)}}function $0(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 Ni(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];it=s,W0(s,e)}$0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)J0(e),e=e.sibling}function J0(e){switch(e.tag){case 0:case 11:case 15:Ni(e),e.flags&2048&&ar(9,e,e.return);break;case 3:Ni(e);break;case 12:Ni(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nl(e)):Ni(e);break;default:Ni(e)}}function nl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];it=s,W0(s,e)}$0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ar(8,t,t.return),nl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nl(t));break;default:nl(t)}e=e.sibling}}function W0(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:ar(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:hi(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,it=s;else e:for(a=e;it!==null;){s=it;var o=s.sibling,f=s.return;if(V0(s),s===a){it=null;break e}if(o!==null){o.return=f,it=o;break e}it=f}}}var SE={getCacheForType:function(e){var t=yt(tt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},TE=typeof WeakMap=="function"?WeakMap:Map,Me=0,qe=null,be=null,Oe=0,Be=0,Lt=null,lr=!1,Ra=!1,ic=!1,kn=0,Ze=0,or=0,Gr=0,sc=0,Kt=0,Ca=0,Di=null,Ot=null,lc=!1,oc=0,rl=1/0,al=null,ur=null,ut=0,cr=null,Na=null,Da=0,uc=0,cc=null,ep=null,Mi=0,fc=null;function Ut(){if((Me&2)!==0&&Oe!==0)return Oe&-Oe;if(q.T!==null){var e=_a;return e!==0?e:_c()}return gd()}function tp(){Kt===0&&(Kt=(Oe&536870912)===0||Ne?hd():536870912);var e=Qt.current;return e!==null&&(e.flags|=32),Kt}function Ht(e,t,a){(e===qe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),fr(e,Oe,Kt,!1)),Ka(e,a),((Me&2)===0||e!==qe)&&(e===qe&&((Me&2)===0&&(Gr|=a),Ze===4&&fr(e,Oe,Kt,!1)),yn(e))}function np(e,t,a){if((Me&6)!==0)throw Error(l(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Qa(e,t),o=s?OE(e,t):mc(e,t,!0),f=s;do{if(o===0){Ra&&!s&&fr(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!xE(a)){o=mc(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 v=e;o=Di;var O=v.current.memoizedState.isDehydrated;if(O&&(Ma(v,p).flags|=256),p=mc(v,p,!1),p!==2){if(ic&&!O){v.errorRecoveryDisabledLanes|=f,Gr|=f,o=4;break e}f=Ot,Ot=o,f!==null&&(Ot===null?Ot=f:Ot.push.apply(Ot,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){Ma(e,0),fr(e,t,0,!0);break}e:{switch(s=e,f=o,f){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:fr(s,t,Kt,!lr);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=oc+300-hn(),10<o)){if(fr(s,t,Kt,!lr),ps(s,0,!0)!==0)break e;s.timeoutHandle=Dp(rp.bind(null,s,a,Ot,al,lc,t,Kt,Gr,Ca,lr,f,2,-0,0),o);break e}rp(s,a,Ot,al,lc,t,Kt,Gr,Ca,lr,f,0,-0,0)}}break}while(!0);yn(e)}function rp(e,t,a,s,o,f,p,v,O,U,I,P,H,z){if(e.timeoutHandle=-1,P=t.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(ki={stylesheets:null,count:0,unsuspend:i2},K0(t),P=l2(),P!==null)){e.cancelPendingCommit=P(cp.bind(null,e,t,f,a,s,o,p,v,O,I,1,H,z)),fr(e,f,p,!U);return}cp(e,t,f,a,s,o,p,v,O)}function xE(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 s=0;s<a.length;s++){var o=a[s],f=o.getSnapshot;o=o.value;try{if(!Dt(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 fr(e,t,a,s){t&=~sc,t&=~Gr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var f=31-Nt(o),p=1<<f;s[f]=-1,o&=~p}a!==0&&md(e,a,t)}function il(){return(Me&6)===0?(Bi(0),!1):!0}function hc(){if(be!==null){if(Be===0)var e=be.return;else e=be,Dn=jr=null,Cu(e),xa=null,Ti=0,e=be;for(;e!==null;)U0(e.alternate,e),e=e.return;be=null}}function Ma(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,IE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),hc(),qe=e,be=a=Rn(e.current,null),Oe=t,Be=0,Lt=null,lr=!1,Ra=Qa(e,t),ic=!1,Ca=Kt=sc=Gr=or=Ze=0,Ot=Di=null,lc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-Nt(s),f=1<<o;t|=e[o],s&=~f}return kn=t,ws(),a}function ap(e,t){ye=null,q.H=Ys,t===mi||t===Us?(t=Em(),Be=3):t===_m?(t=Em(),Be=4):Be=t===S0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,be===null&&(Ze=1,$s(e,Pt(t,e.current)))}function ip(){var e=q.H;return q.H=Ys,e===null?Ys:e}function sp(){var e=q.A;return q.A=SE,e}function dc(){Ze=4,lr||(Oe&4194048)!==Oe&&Qt.current!==null||(Ra=!0),(or&134217727)===0&&(Gr&134217727)===0||qe===null||fr(qe,Oe,Kt,!1)}function mc(e,t,a){var s=Me;Me|=2;var o=ip(),f=sp();(qe!==e||Oe!==t)&&(al=null,Ma(e,t)),t=!1;var p=Ze;e:do try{if(Be!==0&&be!==null){var v=be,O=Lt;switch(Be){case 8:hc(),p=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var U=Be;if(Be=0,Lt=null,Ba(e,v,O,U),a&&Ra){p=0;break e}break;default:U=Be,Be=0,Lt=null,Ba(e,v,O,U)}}AE(),p=Ze;break}catch(I){ap(e,I)}while(!0);return t&&e.shellSuspendCounter++,Dn=jr=null,Me=s,q.H=o,q.A=f,be===null&&(qe=null,Oe=0,ws()),p}function AE(){for(;be!==null;)lp(be)}function OE(e,t){var a=Me;Me|=2;var s=ip(),o=sp();qe!==e||Oe!==t?(al=null,rl=hn()+500,Ma(e,t)):Ra=Qa(e,t);e:do try{if(Be!==0&&be!==null){t=be;var f=Lt;t:switch(Be){case 1:Be=0,Lt=null,Ba(e,t,f,1);break;case 2:case 9:if(vm(f)){Be=0,Lt=null,op(t);break}t=function(){Be!==2&&Be!==9||qe!==e||(Be=7),yn(e)},f.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:vm(f)?(Be=0,Lt=null,op(t)):(Be=0,Lt=null,Ba(e,t,f,7));break;case 5:var p=null;switch(be.tag){case 26:p=be.memoizedState;case 5:case 27:var v=be;if(!p||Fp(p)){Be=0,Lt=null;var O=v.sibling;if(O!==null)be=O;else{var U=v.return;U!==null?(be=U,sl(U)):be=null}break t}}Be=0,Lt=null,Ba(e,t,f,5);break;case 6:Be=0,Lt=null,Ba(e,t,f,6);break;case 8:hc(),Ze=6;break e;default:throw Error(l(462))}}wE();break}catch(I){ap(e,I)}while(!0);return Dn=jr=null,q.H=s,q.A=o,Me=a,be!==null?0:(qe=null,Oe=0,ws(),Ze)}function wE(){for(;be!==null&&!Qb();)lp(be)}function lp(e){var t=j0(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?sl(e):be=t}function op(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=R0(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=R0(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Cu(t);default:U0(a,t),t=be=um(t,kn),t=j0(a,t,kn)}e.memoizedProps=e.pendingProps,t===null?sl(e):be=t}function Ba(e,t,a,s){Dn=jr=null,Cu(t),xa=null,Ti=0;var o=t.return;try{if(gE(e,o,t,a,Oe)){Ze=1,$s(e,Pt(a,e.current)),be=null;return}}catch(f){if(o!==null)throw be=o,f;Ze=1,$s(e,Pt(a,e.current)),be=null;return}t.flags&32768?(Ne||s===1?e=!0:Ra||(Oe&536870912)!==0?e=!1:(lr=e=!0,(s===2||s===9||s===3||s===6)&&(s=Qt.current,s!==null&&s.tag===13&&(s.flags|=16384))),up(t,e)):sl(t)}function sl(e){var t=e;do{if((t.flags&32768)!==0){up(t,lr);return}e=t.return;var a=_E(t.alternate,t,kn);if(a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ze===0&&(Ze=5)}function up(e,t){do{var a=vE(e.alternate,e);if(a!==null){a.flags&=32767,be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=a}while(e!==null);Ze=6,be=null}function cp(e,t,a,s,o,f,p,v,O){e.cancelPendingCommit=null;do ll();while(ut!==0);if((Me&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(f=t.lanes|t.childLanes,f|=au,i1(e,a,f,p,v,O),e===qe&&(be=qe=null,Oe=0),Na=t,cr=e,Da=a,uc=f,cc=o,ep=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,DE(hs,function(){return pp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=q.T,q.T=null,o=K.p,K.p=2,p=Me,Me|=4;try{bE(e,t,a)}finally{Me=p,K.p=o,q.T=s}}ut=1,fp(),hp(),dp()}}function fp(){if(ut===1){ut=0;var e=cr,t=Na,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null;var s=K.p;K.p=2;var o=Me;Me|=4;try{Z0(t,e);var f=Oc,p=Wd(e.containerInfo),v=f.focusedElem,O=f.selectionRange;if(p!==v&&v&&v.ownerDocument&&Jd(v.ownerDocument.documentElement,v)){if(O!==null&&Wo(v)){var U=O.start,I=O.end;if(I===void 0&&(I=U),"selectionStart"in v)v.selectionStart=U,v.selectionEnd=Math.min(I,v.value.length);else{var P=v.ownerDocument||document,H=P&&P.defaultView||window;if(H.getSelection){var z=H.getSelection(),ce=v.textContent.length,se=Math.min(O.start,ce),He=O.end===void 0?se:Math.min(O.end,ce);!z.extend&&se>He&&(p=He,He=se,se=p);var B=$d(v,se),N=$d(v,He);if(B&&N&&(z.rangeCount!==1||z.anchorNode!==B.node||z.anchorOffset!==B.offset||z.focusNode!==N.node||z.focusOffset!==N.offset)){var L=P.createRange();L.setStart(B.node,B.offset),z.removeAllRanges(),se>He?(z.addRange(L),z.extend(N.node,N.offset)):(L.setEnd(N.node,N.offset),z.addRange(L))}}}}for(P=[],z=v;z=z.parentNode;)z.nodeType===1&&P.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var F=P[v];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}vl=!!Ac,Oc=Ac=null}finally{Me=o,K.p=s,q.T=a}}e.current=t,ut=2}}function hp(){if(ut===2){ut=0;var e=cr,t=Na,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=q.T,q.T=null;var s=K.p;K.p=2;var o=Me;Me|=4;try{F0(e,t.alternate,t)}finally{Me=o,K.p=s,q.T=a}}ut=3}}function dp(){if(ut===4||ut===3){ut=0,Kb();var e=cr,t=Na,a=Da,s=ep;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,Na=cr=null,mp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ur=null),Mo(a),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Xa,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=q.T,o=K.p,K.p=2,q.T=null;try{for(var f=e.onRecoverableError,p=0;p<s.length;p++){var v=s[p];f(v.value,{componentStack:v.stack})}}finally{q.T=t,K.p=o}}(Da&3)!==0&&ll(),yn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===fc?Mi++:(Mi=0,fc=e):Mi=0,Bi(0)}}function mp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hi(t)))}function ll(e){return fp(),hp(),dp(),pp()}function pp(){if(ut!==5)return!1;var e=cr,t=uc;uc=0;var a=Mo(Da),s=q.T,o=K.p;try{K.p=32>a?32:a,q.T=null,a=cc,cc=null;var f=cr,p=Da;if(ut=0,Na=cr=null,Da=0,(Me&6)!==0)throw Error(l(331));var v=Me;if(Me|=4,J0(f.current),Q0(f,f.current,p,a),Me=v,Bi(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Xa,f)}catch{}return!0}finally{K.p=o,q.T=s,mp(e,t)}}function gp(e,t,a){t=Pt(a,t),t=Fu(e.stateNode,t,2),e=er(e,t,2),e!==null&&(Ka(e,2),yn(e))}function ze(e,t,a){if(e.tag===3)gp(e,e,a);else for(;t!==null;){if(t.tag===3){gp(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ur===null||!ur.has(s))){e=Pt(a,e),a=b0(2),s=er(t,a,2),s!==null&&(E0(a,s,t,e),Ka(s,2),yn(s));break}}t=t.return}}function pc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new TE;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(a)||(ic=!0,o.add(a),e=RE.bind(null,e,t,a),t.then(e,e))}function RE(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(Oe&a)===a&&(Ze===4||Ze===3&&(Oe&62914560)===Oe&&300>hn()-oc?(Me&2)===0&&Ma(e,0):sc|=a,Ca===Oe&&(Ca=0)),yn(e)}function yp(e,t){t===0&&(t=dd()),e=ma(e,t),e!==null&&(Ka(e,t),yn(e))}function CE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),yp(e,a)}function NE(e,t){var a=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(t),yp(e,a)}function DE(e,t){return An(e,t)}var ol=null,ja=null,gc=!1,ul=!1,yc=!1,qr=0;function yn(e){e!==ja&&e.next===null&&(ja===null?ol=ja=e:ja=ja.next=e),ul=!0,gc||(gc=!0,BE())}function Bi(e,t){if(!yc&&ul){yc=!0;do for(var a=!1,s=ol;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var f=0;else{var p=s.suspendedLanes,v=s.pingedLanes;f=(1<<31-Nt(42|e)+1)-1,f&=o&~(p&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Ep(s,f))}else f=Oe,f=ps(s,s===qe?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||Qa(s,f)||(a=!0,Ep(s,f));s=s.next}while(a);yc=!1}}function ME(){_p()}function _p(){ul=gc=!1;var e=0;qr!==0&&(qE()&&(e=qr),qr=0);for(var t=hn(),a=null,s=ol;s!==null;){var o=s.next,f=vp(s,t);f===0?(s.next=null,a===null?ol=o:a.next=o,o===null&&(ja=a)):(a=s,(e!==0||(f&3)!==0)&&(ul=!0)),s=o}Bi(e)}function vp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-Nt(f),v=1<<p,O=o[p];O===-1?((v&a)===0||(v&s)!==0)&&(o[p]=a1(v,t)):O<=t&&(e.expiredLanes|=v),f&=~v}if(t=qe,a=Oe,a=ps(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Co(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Qa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&Co(s),Mo(a)){case 2:case 8:a=cd;break;case 32:a=hs;break;case 268435456:a=fd;break;default:a=hs}return s=bp.bind(null,e),a=An(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&Co(s),e.callbackPriority=2,e.callbackNode=null,2}function bp(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ll()&&e.callbackNode!==a)return null;var s=Oe;return s=ps(e,e===qe?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(np(e,s,t),vp(e,hn()),e.callbackNode!=null&&e.callbackNode===a?bp.bind(null,e):null)}function Ep(e,t){if(ll())return null;np(e,t,!0)}function BE(){FE(function(){(Me&6)!==0?An(ud,ME):_p()})}function _c(){return qr===0&&(qr=hd()),qr}function Sp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bs(""+e)}function Tp(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 jE(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var f=Sp((o[St]||null).action),p=s.submitter;p&&(t=(t=p[St]||null)?Sp(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var v=new xs("action","action",null,s,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(qr!==0){var O=p?Tp(o,p):new FormData(o);zu(a,{pending:!0,data:O,method:o.method,action:f},null,O)}}else typeof f=="function"&&(v.preventDefault(),O=p?Tp(o,p):new FormData(o),zu(a,{pending:!0,data:O,method:o.method,action:f},f,O))},currentTarget:o}]})}}for(var vc=0;vc<ru.length;vc++){var bc=ru[vc],LE=bc.toLowerCase(),UE=bc[0].toUpperCase()+bc.slice(1);nn(LE,"on"+UE)}nn(nm,"onAnimationEnd"),nn(rm,"onAnimationIteration"),nn(am,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(W1,"onTransitionRun"),nn(eE,"onTransitionStart"),nn(tE,"onTransitionCancel"),nn(im,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),HE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ji));function xp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],o=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var p=s.length-1;0<=p;p--){var v=s[p],O=v.instance,U=v.currentTarget;if(v=v.listener,O!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=U;try{f(o)}catch(I){Ks(I)}o.currentTarget=null,f=O}else for(p=0;p<s.length;p++){if(v=s[p],O=v.instance,U=v.currentTarget,v=v.listener,O!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=U;try{f(o)}catch(I){Ks(I)}o.currentTarget=null,f=O}}}}function Ee(e,t){var a=t[Bo];a===void 0&&(a=t[Bo]=new Set);var s=e+"__bubble";a.has(s)||(Ap(t,e,2,!1),a.add(s))}function Ec(e,t,a){var s=0;t&&(s|=4),Ap(a,e,s,t)}var cl="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[cl]){e[cl]=!0,_d.forEach(function(a){a!=="selectionchange"&&(HE.has(a)||Ec(a,!1,e),Ec(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cl]||(t[cl]=!0,Ec("selectionchange",!1,t))}}function Ap(e,t,a,s){switch(Qp(t)){case 2:var o=c2;break;case 8:o=f2;break;default:o=Uc}a=o.bind(null,t,a,e),o=void 0,!Vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?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 Tc(e,t,a,s,o){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var v=s.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=s.return;p!==null;){var O=p.tag;if((O===3||O===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=ta(v),p===null)return;if(O=p.tag,O===5||O===6||O===26||O===27){s=f=p;continue e}v=v.parentNode}}s=s.return}Md(function(){var U=f,I=Io(a),P=[];e:{var H=sm.get(e);if(H!==void 0){var z=xs,ce=e;switch(e){case"keypress":if(Ss(a)===0)break e;case"keydown":case"keyup":z=D1;break;case"focusin":ce="focus",z=Xo;break;case"focusout":ce="blur",z=Xo;break;case"beforeblur":case"afterblur":z=Xo;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":z=Ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=v1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=j1;break;case nm:case rm:case am:z=S1;break;case im:z=U1;break;case"scroll":case"scrollend":z=y1;break;case"wheel":z=z1;break;case"copy":case"cut":case"paste":z=x1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Hd;break;case"toggle":case"beforetoggle":z=G1}var se=(t&4)!==0,He=!se&&(e==="scroll"||e==="scrollend"),B=se?H!==null?H+"Capture":null:H;se=[];for(var N=U,L;N!==null;){var F=N;if(L=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||L===null||B===null||(F=Wa(N,B),F!=null&&se.push(Li(N,F,L))),He)break;N=N.return}0<se.length&&(H=new z(H,ce,null,a,I),P.push({event:H,listeners:se}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",H&&a!==qo&&(ce=a.relatedTarget||a.fromElement)&&(ta(ce)||ce[ea]))break e;if((z||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,z?(ce=a.relatedTarget||a.toElement,z=U,ce=ce?ta(ce):null,ce!==null&&(He=c(ce),se=ce.tag,ce!==He||se!==5&&se!==27&&se!==6)&&(ce=null)):(z=null,ce=U),z!==ce)){if(se=Ld,F="onMouseLeave",B="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(se=Hd,F="onPointerLeave",B="onPointerEnter",N="pointer"),He=z==null?H:Ja(z),L=ce==null?H:Ja(ce),H=new se(F,N+"leave",z,a,I),H.target=He,H.relatedTarget=L,F=null,ta(I)===U&&(se=new se(B,N+"enter",ce,a,I),se.target=L,se.relatedTarget=He,F=se),He=F,z&&ce)t:{for(se=z,B=ce,N=0,L=se;L;L=La(L))N++;for(L=0,F=B;F;F=La(F))L++;for(;0<N-L;)se=La(se),N--;for(;0<L-N;)B=La(B),L--;for(;N--;){if(se===B||B!==null&&se===B.alternate)break t;se=La(se),B=La(B)}se=null}else se=null;z!==null&&Op(P,H,z,se,!1),ce!==null&&He!==null&&Op(P,He,ce,se,!0)}}e:{if(H=U?Ja(U):window,z=H.nodeName&&H.nodeName.toLowerCase(),z==="select"||z==="input"&&H.type==="file")var ee=Pd;else if(Fd(H))if(Yd)ee=K1;else{ee=X1;var ve=Z1}else z=H.nodeName,!z||z.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&Go(U.elementType)&&(ee=Pd):ee=Q1;if(ee&&(ee=ee(e,U))){Vd(P,ee,a,I);break e}ve&&ve(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&ko(H,"number",H.value)}switch(ve=U?Ja(U):window,e){case"focusin":(Fd(ve)||ve.contentEditable==="true")&&(fa=ve,eu=U,li=null);break;case"focusout":li=eu=fa=null;break;case"mousedown":tu=!0;break;case"contextmenu":case"mouseup":case"dragend":tu=!1,em(P,a,I);break;case"selectionchange":if(J1)break;case"keydown":case"keyup":em(P,a,I)}var re;if(Ko)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else ca?qd(e,a)&&(le="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(le="onCompositionStart");le&&(zd&&a.locale!=="ko"&&(ca||le!=="onCompositionStart"?le==="onCompositionEnd"&&ca&&(re=Bd()):(Kn=I,Po="value"in Kn?Kn.value:Kn.textContent,ca=!0)),ve=fl(U,le),0<ve.length&&(le=new Ud(le,e,null,a,I),P.push({event:le,listeners:ve}),re?le.data=re:(re=Id(a),re!==null&&(le.data=re)))),(re=I1?F1(e,a):V1(e,a))&&(le=fl(U,"onBeforeInput"),0<le.length&&(ve=new Ud("onBeforeInput","beforeinput",null,a,I),P.push({event:ve,listeners:le}),ve.data=re)),jE(P,e,U,a,I)}xp(P,t)})}function Li(e,t,a){return{instance:e,listener:t,currentTarget:a}}function fl(e,t){for(var a=t+"Capture",s=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=Wa(e,a),o!=null&&s.unshift(Li(e,o,f)),o=Wa(e,t),o!=null&&s.push(Li(e,o,f))),e.tag===3)return s;e=e.return}return[]}function La(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Op(e,t,a,s,o){for(var f=t._reactName,p=[];a!==null&&a!==s;){var v=a,O=v.alternate,U=v.stateNode;if(v=v.tag,O!==null&&O===s)break;v!==5&&v!==26&&v!==27||U===null||(O=U,o?(U=Wa(a,f),U!=null&&p.unshift(Li(a,U,O))):o||(U=Wa(a,f),U!=null&&p.push(Li(a,U,O)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var zE=/\r\n?/g,kE=/\u0000|\uFFFD/g;function wp(e){return(typeof e=="string"?e:""+e).replace(zE,`
|
|
49
|
-
`).replace(kE,"")}function Rp(e,t){return t=wp(t),wp(e)===t}function hl(){}function Ue(e,t,a,s,o,f){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||la(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&la(e,""+s);break;case"className":ys(e,"class",s);break;case"tabIndex":ys(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ys(e,a,s);break;case"style":Nd(e,s,f);break;case"data":if(t!=="object"){ys(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=bs(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="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"&&Ue(e,t,"name",o.name,o,null),Ue(e,t,"formEncType",o.formEncType,o,null),Ue(e,t,"formMethod",o.formMethod,o,null),Ue(e,t,"formTarget",o.formTarget,o,null)):(Ue(e,t,"encType",o.encType,o,null),Ue(e,t,"method",o.method,o,null),Ue(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=bs(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=hl);break;case"onScroll":s!=null&&Ee("scroll",e);break;case"onScrollEnd":s!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=bs(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),gs(e,"popover",s);break;case"xlinkActuate":On(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":On(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":On(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":On(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":On(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":On(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":On(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":On(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":On(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":gs(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=p1.get(a)||a,gs(e,a,s))}}function xc(e,t,a,s,o,f){switch(a){case"style":Nd(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof s=="string"?la(e,s):(typeof s=="number"||typeof s=="bigint")&&la(e,""+s);break;case"onScroll":s!=null&&Ee("scroll",e);break;case"onScrollEnd":s!=null&&Ee("scrollend",e);break;case"onClick":s!=null&&(e.onclick=hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vd.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[St]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof s=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,o);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):gs(e,a,s)}}}function ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var s=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,f,p,a,null)}}o&&Ue(e,t,"srcSet",a.srcSet,a,null),s&&Ue(e,t,"src",a.src,a,null);return;case"input":Ee("invalid",e);var v=f=p=o=null,O=null,U=null;for(s in a)if(a.hasOwnProperty(s)){var I=a[s];if(I!=null)switch(s){case"name":o=I;break;case"type":p=I;break;case"checked":O=I;break;case"defaultChecked":U=I;break;case"value":f=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,t));break;default:Ue(e,t,s,I,a,null)}}Od(e,f,v,O,U,p,o,!1),_s(e);return;case"select":Ee("invalid",e),s=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":f=v;break;case"defaultValue":p=v;break;case"multiple":s=v;default:Ue(e,t,o,v,a,null)}t=f,a=p,e.multiple=!!s,t!=null?sa(e,!!s,t,!1):a!=null&&sa(e,!!s,a,!0);return;case"textarea":Ee("invalid",e),f=o=s=null;for(p in a)if(a.hasOwnProperty(p)&&(v=a[p],v!=null))switch(p){case"value":s=v;break;case"defaultValue":o=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:Ue(e,t,p,v,a,null)}Rd(e,s,o,f),_s(e);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(s=a[O],s!=null))switch(O){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ue(e,t,O,s,a,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(s=0;s<ji.length;s++)Ee(ji[s],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(U in a)if(a.hasOwnProperty(U)&&(s=a[U],s!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,U,s,a,null)}return;default:if(Go(t)){for(I in a)a.hasOwnProperty(I)&&(s=a[I],s!==void 0&&xc(e,t,I,s,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(s=a[v],s!=null&&Ue(e,t,v,s,a,null))}function GE(e,t,a,s){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,v=null,O=null,U=null,I=null;for(z in a){var P=a[z];if(a.hasOwnProperty(z)&&P!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":O=P;default:s.hasOwnProperty(z)||Ue(e,t,z,null,s,P)}}for(var H in s){var z=s[H];if(P=a[H],s.hasOwnProperty(H)&&(z!=null||P!=null))switch(H){case"type":f=z;break;case"name":o=z;break;case"checked":U=z;break;case"defaultChecked":I=z;break;case"value":p=z;break;case"defaultValue":v=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(l(137,t));break;default:z!==P&&Ue(e,t,H,z,s,P)}}zo(e,p,v,O,U,I,f,o);return;case"select":z=p=v=H=null;for(f in a)if(O=a[f],a.hasOwnProperty(f)&&O!=null)switch(f){case"value":break;case"multiple":z=O;default:s.hasOwnProperty(f)||Ue(e,t,f,null,s,O)}for(o in s)if(f=s[o],O=a[o],s.hasOwnProperty(o)&&(f!=null||O!=null))switch(o){case"value":H=f;break;case"defaultValue":v=f;break;case"multiple":p=f;default:f!==O&&Ue(e,t,o,f,s,O)}t=v,a=p,s=z,H!=null?sa(e,!!a,H,!1):!!s!=!!a&&(t!=null?sa(e,!!a,t,!0):sa(e,!!a,a?[]:"",!1));return;case"textarea":z=H=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!s.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,s,o)}for(p in s)if(o=s[p],f=a[p],s.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":H=o;break;case"defaultValue":z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==f&&Ue(e,t,p,o,s,f)}wd(e,H,z);return;case"option":for(var ce in a)if(H=a[ce],a.hasOwnProperty(ce)&&H!=null&&!s.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Ue(e,t,ce,null,s,H)}for(O in s)if(H=s[O],z=a[O],s.hasOwnProperty(O)&&H!==z&&(H!=null||z!=null))switch(O){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ue(e,t,O,H,s,z)}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 se in a)H=a[se],a.hasOwnProperty(se)&&H!=null&&!s.hasOwnProperty(se)&&Ue(e,t,se,null,s,H);for(U in s)if(H=s[U],z=a[U],s.hasOwnProperty(U)&&H!==z&&(H!=null||z!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,t));break;default:Ue(e,t,U,H,s,z)}return;default:if(Go(t)){for(var He in a)H=a[He],a.hasOwnProperty(He)&&H!==void 0&&!s.hasOwnProperty(He)&&xc(e,t,He,void 0,s,H);for(I in s)H=s[I],z=a[I],!s.hasOwnProperty(I)||H===z||H===void 0&&z===void 0||xc(e,t,I,H,s,z);return}}for(var B in a)H=a[B],a.hasOwnProperty(B)&&H!=null&&!s.hasOwnProperty(B)&&Ue(e,t,B,null,s,H);for(P in s)H=s[P],z=a[P],!s.hasOwnProperty(P)||H===z||H==null&&z==null||Ue(e,t,P,H,s,z)}var Ac=null,Oc=null;function dl(e){return e.nodeType===9?e:e.ownerDocument}function Cp(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 Np(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 wc(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 Rc=null;function qE(){var e=window.event;return e&&e.type==="popstate"?e===Rc?!1:(Rc=e,!0):(Rc=null,!1)}var Dp=typeof setTimeout=="function"?setTimeout:void 0,IE=typeof clearTimeout=="function"?clearTimeout:void 0,Mp=typeof Promise=="function"?Promise:void 0,FE=typeof queueMicrotask=="function"?queueMicrotask:typeof Mp<"u"?function(e){return Mp.resolve(null).then(e).catch(VE)}:Dp;function VE(e){setTimeout(function(){throw e})}function hr(e){return e==="head"}function Bp(e,t){var a=t,s=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<s&&8>s){a=s;var p=e.ownerDocument;if(a&1&&Ui(p.documentElement),a&2&&Ui(p.body),a&4)for(a=p.head,Ui(a),p=a.firstChild;p;){var v=p.nextSibling,O=p.nodeName;p[$a]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=v}}if(o===0){e.removeChild(f),Vi(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:s=a.charCodeAt(0)-48;else s=0;a=f}while(a);Vi(t)}function Cc(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":Cc(a),jo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function PE(e,t,a,s){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[$a])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=an(e.nextSibling),e===null)break}return null}function YE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=an(e.nextSibling),e===null))return null;return e}function Nc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function ZE(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function an(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 Dc=null;function jp(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 Lp(e,t,a){switch(t=dl(a),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ui(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jo(e)}var $t=new Map,Up=new Set;function ml(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gn=K.d;K.d={f:XE,r:QE,D:KE,C:$E,L:JE,m:WE,X:t2,S:e2,M:n2};function XE(){var e=Gn.f(),t=il();return e||t}function QE(e){var t=na(e);t!==null&&t.tag===5&&t.type==="form"?n0(t):Gn.r(e)}var Ua=typeof document>"u"?null:document;function Hp(e,t,a){var s=Ua;if(s&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Up.has(o)||(Up.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ct(t,"link",e),rt(t),s.head.appendChild(t)))}}function KE(e){Gn.D(e),Hp("dns-prefetch",e,null)}function $E(e,t){Gn.C(e,t),Hp("preconnect",e,t)}function JE(e,t,a){Gn.L(e,t,a);var s=Ua;if(s&&e&&t){var o='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Vt(a.imageSizes)+'"]')):o+='[href="'+Vt(e)+'"]';var f=o;switch(t){case"style":f=Ha(e);break;case"script":f=za(e)}$t.has(f)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(f,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(Hi(f))||t==="script"&&s.querySelector(zi(f))||(t=s.createElement("link"),ct(t,"link",e),rt(t),s.head.appendChild(t)))}}function WE(e,t){Gn.m(e,t);var a=Ua;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Vt(s)+'"][href="'+Vt(e)+'"]',f=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=za(e)}if(!$t.has(f)&&(e=y({rel:"modulepreload",href:e},t),$t.set(f,e),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(zi(f)))return}s=a.createElement("link"),ct(s,"link",e),rt(s),a.head.appendChild(s)}}}function e2(e,t,a){Gn.S(e,t,a);var s=Ua;if(s&&e){var o=ra(s).hoistableStyles,f=Ha(e);t=t||"default";var p=o.get(f);if(!p){var v={loading:0,preload:null};if(p=s.querySelector(Hi(f)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(f))&&Mc(e,a);var O=p=s.createElement("link");rt(O),ct(O,"link",e),O._p=new Promise(function(U,I){O.onload=U,O.onerror=I}),O.addEventListener("load",function(){v.loading|=1}),O.addEventListener("error",function(){v.loading|=2}),v.loading|=4,pl(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(f,p)}}}function t2(e,t){Gn.X(e,t);var a=Ua;if(a&&e){var s=ra(a).hoistableScripts,o=za(e),f=s.get(o);f||(f=a.querySelector(zi(o)),f||(e=y({src:e,async:!0},t),(t=$t.get(o))&&Bc(e,t),f=a.createElement("script"),rt(f),ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(o,f))}}function n2(e,t){Gn.M(e,t);var a=Ua;if(a&&e){var s=ra(a).hoistableScripts,o=za(e),f=s.get(o);f||(f=a.querySelector(zi(o)),f||(e=y({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&Bc(e,t),f=a.createElement("script"),rt(f),ct(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(o,f))}}function zp(e,t,a,s){var o=(o=ue.current)?ml(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ha(a.href),a=ra(o).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ha(a.href);var f=ra(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(Hi(e)))&&!f._p&&(p.instance=f,p.state.loading=5),$t.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},$t.set(e,a),f||r2(o,e,a,p.state))),t&&s===null)throw Error(l(528,""));return p}if(t&&s!==null)throw Error(l(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=za(a),a=ra(o).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ha(e){return'href="'+Vt(e)+'"'}function Hi(e){return'link[rel="stylesheet"]['+e+"]"}function kp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function r2(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),ct(t,"link",a),rt(t),e.head.appendChild(t))}function za(e){return'[src="'+Vt(e)+'"]'}function zi(e){return"script[async]"+e}function Gp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(s)return t.instance=s,rt(s),s;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),rt(s),ct(s,"style",o),pl(s,a.precedence,e),t.instance=s;case"stylesheet":o=Ha(a.href);var f=e.querySelector(Hi(o));if(f)return t.state.loading|=4,t.instance=f,rt(f),f;s=kp(a),(o=$t.get(o))&&Mc(s,o),f=(e.ownerDocument||e).createElement("link"),rt(f);var p=f;return p._p=new Promise(function(v,O){p.onload=v,p.onerror=O}),ct(f,"link",s),t.state.loading|=4,pl(f,a.precedence,e),t.instance=f;case"script":return f=za(a.src),(o=e.querySelector(zi(f)))?(t.instance=o,rt(o),o):(s=a,(o=$t.get(f))&&(s=y({},a),Bc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),rt(o),ct(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,pl(s,a.precedence,e));return t.instance}function pl(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,f=o,p=0;p<s.length;p++){var v=s[p];if(v.dataset.precedence===t)f=v;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 Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gl=null;function qp(e,t,a){if(gl===null){var s=new Map,o=gl=new Map;o.set(a,s)}else o=gl,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[$a]||f[gt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var v=s.get(p);v?v.push(f):s.set(p,[f])}}return s}function Ip(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function a2(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 Fp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ki=null;function i2(){}function s2(e,t,a){if(ki===null)throw Error(l(475));var s=ki;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ha(a.href),f=e.querySelector(Hi(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=yl.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=f,rt(f);return}f=e.ownerDocument||e,a=kp(a),(o=$t.get(o))&&Mc(a,o),f=f.createElement("link"),rt(f);var p=f;p._p=new Promise(function(v,O){p.onload=v,p.onerror=O}),ct(f,"link",a),t.instance=f}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(s.count++,t=yl.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function l2(){if(ki===null)throw Error(l(475));var e=ki;return e.stylesheets&&e.count===0&&jc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function yl(){if(this.count--,this.count===0){if(this.stylesheets)jc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _l=null;function jc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_l=new Map,t.forEach(o2,e),_l=null,yl.call(e))}function o2(e,t){if(!(t.state.loading&4)){var a=_l.get(e);if(a)var s=a.get(null);else{a=new Map,_l.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),s=p)}s&&a.set(null,s)}o=t.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||s,f===s&&a.set(null,o),a.set(p,o),this.count++,s=yl.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Gi={$$typeof:A,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function u2(e,t,a,s,o,f,p,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=No(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=No(0),this.hiddenUpdates=No(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Vp(e,t,a,s,o,f,p,v,O,U,I,P){return e=new u2(e,t,a,p,v,O,U,P),t=1,f===!0&&(t|=24),f=Mt(3,null,null,t),e.current=f,f.stateNode=e,t=pu(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:a,cache:t},vu(f),e}function Pp(e){return e?(e=pa,e):pa}function Yp(e,t,a,s,o,f){o=Pp(o),s.context===null?s.context=o:s.pendingContext=o,s=Wn(t),s.payload={element:a},f=f===void 0?null:f,f!==null&&(s.callback=f),a=er(e,s,t),a!==null&&(Ht(a,e,t),gi(a,e,t))}function Zp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lc(e,t){Zp(e,t),(e=e.alternate)&&Zp(e,t)}function Xp(e){if(e.tag===13){var t=ma(e,67108864);t!==null&&Ht(t,e,67108864),Lc(e,67108864)}}var vl=!0;function c2(e,t,a,s){var o=q.T;q.T=null;var f=K.p;try{K.p=2,Uc(e,t,a,s)}finally{K.p=f,q.T=o}}function f2(e,t,a,s){var o=q.T;q.T=null;var f=K.p;try{K.p=8,Uc(e,t,a,s)}finally{K.p=f,q.T=o}}function Uc(e,t,a,s){if(vl){var o=Hc(s);if(o===null)Tc(e,t,s,bl,a),Kp(e,s);else if(d2(o,e,t,a,s))s.stopPropagation();else if(Kp(e,s),t&4&&-1<h2.indexOf(e)){for(;o!==null;){var f=na(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=xr(f.pendingLanes);if(p!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var O=1<<31-Nt(p);v.entanglements[1]|=O,p&=~O}yn(f),(Me&6)===0&&(rl=hn()+500,Bi(0))}}break;case 13:v=ma(f,2),v!==null&&Ht(v,f,2),il(),Lc(f,2)}if(f=Hc(s),f===null&&Tc(e,t,s,bl,a),f===o)break;o=f}o!==null&&s.stopPropagation()}else Tc(e,t,s,null,a)}}function Hc(e){return e=Io(e),zc(e)}var bl=null;function zc(e){if(bl=null,e=ta(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(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 bl=e,null}function Qp(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($b()){case ud:return 2;case cd:return 8;case hs:case Jb:return 32;case fd:return 268435456;default:return 32}default:return 32}}var kc=!1,dr=null,mr=null,pr=null,qi=new Map,Ii=new Map,gr=[],h2="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 Kp(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ii.delete(t.pointerId)}}function Fi(e,t,a,s,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:f,targetContainers:[o]},t!==null&&(t=na(t),t!==null&&Xp(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function d2(e,t,a,s,o){switch(t){case"focusin":return dr=Fi(dr,e,t,a,s,o),!0;case"dragenter":return mr=Fi(mr,e,t,a,s,o),!0;case"mouseover":return pr=Fi(pr,e,t,a,s,o),!0;case"pointerover":var f=o.pointerId;return qi.set(f,Fi(qi.get(f)||null,e,t,a,s,o)),!0;case"gotpointercapture":return f=o.pointerId,Ii.set(f,Fi(Ii.get(f)||null,e,t,a,s,o)),!0}return!1}function $p(e){var t=ta(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,s1(e.priority,function(){if(a.tag===13){var s=Ut();s=Do(s);var o=ma(a,s);o!==null&&Ht(o,a,s),Lc(a,s)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function El(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);qo=s,a.target.dispatchEvent(s),qo=null}else return t=na(a),t!==null&&Xp(t),e.blockedOn=a,!1;t.shift()}return!0}function Jp(e,t,a){El(e)&&a.delete(t)}function m2(){kc=!1,dr!==null&&El(dr)&&(dr=null),mr!==null&&El(mr)&&(mr=null),pr!==null&&El(pr)&&(pr=null),qi.forEach(Jp),Ii.forEach(Jp)}function Sl(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,m2)))}var Tl=null;function Wp(e){Tl!==e&&(Tl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Tl===e&&(Tl=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(zc(s||a)===null)continue;break}var f=na(a);f!==null&&(e.splice(t,3),t-=3,zu(f,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Vi(e){function t(O){return Sl(O,e)}dr!==null&&Sl(dr,e),mr!==null&&Sl(mr,e),pr!==null&&Sl(pr,e),qi.forEach(t),Ii.forEach(t);for(var a=0;a<gr.length;a++){var s=gr[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<gr.length&&(a=gr[0],a.blockedOn===null);)$p(a),a.blockedOn===null&&gr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],f=a[s+1],p=o[St]||null;if(typeof f=="function")p||Wp(a);else if(p){var v=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[St]||null)v=p.formAction;else if(zc(o)!==null)continue}else v=p.action;typeof v=="function"?a[s+1]=v:(a.splice(s,3),s-=3),Wp(a)}}}function Gc(e){this._internalRoot=e}xl.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=Ut();Yp(a,s,e,t,null,null)},xl.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yp(e.current,2,null,e,null,null),il(),t[ea]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=gd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<gr.length&&t!==0&&t<gr[a].priority;a++);gr.splice(a,0,e),a===0&&$p(e)}};var eg=r.version;if(eg!=="19.1.0")throw Error(l(527,eg,"19.1.0"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var p2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Al.isDisabled&&Al.supportsFiber)try{Xa=Al.inject(p2),Ct=Al}catch{}}return Yi.createRoot=function(e,t){if(!u(e))throw Error(l(299));var a=!1,s="",o=g0,f=y0,p=_0,v=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=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&&(v=t.unstable_transitionCallbacks)),t=Vp(e,1,!1,null,null,a,s,o,f,p,v,null),e[ea]=t.current,Sc(e),new Gc(t)},Yi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(l(299));var s=!1,o="",f=g0,p=y0,v=_0,O=null,U=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!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&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(O=a.unstable_transitionCallbacks),a.formState!==void 0&&(U=a.formState)),t=Vp(e,1,!0,t,a??null,s,o,f,p,v,O,U),t.context=Pp(null),a=t.current,s=Ut(),s=Do(s),o=Wn(s),o.callback=null,er(a,o,s),a=s,t.current.lanes=a,Ka(t,a),yn(t),e[ea]=t.current,Sc(e),new xl(t)},Yi.version="19.1.0",Yi}var cg;function w2(){if(cg)return Ic.exports;cg=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(),Ic.exports=O2(),Ic.exports}var R2=w2(),k=Fa();const X_=po(k);var Zc={exports:{}},Xc={};/**
|
|
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 fg;function C2(){if(fg)return Xc;fg=1;var n=Fa();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,l=n.useSyncExternalStore,u=n.useRef,c=n.useEffect,h=n.useMemo,d=n.useDebugValue;return Xc.useSyncExternalStoreWithSelector=function(m,g,y,E,T){var j=u(null);if(j.current===null){var b={hasValue:!1,value:null};j.current=b}else b=j.current;j=h(function(){function x(S){if(!M){if(M=!0,D=S,S=E(S),T!==void 0&&b.hasValue){var G=b.value;if(T(G,S))return A=G}return A=S}if(G=A,i(D,S))return G;var Y=E(S);return T!==void 0&&T(G,Y)?(D=S,G):(D=S,A=Y)}var M=!1,D,A,w=y===void 0?null:y;return[function(){return x(g())},w===null?void 0:function(){return x(w())}]},[g,y,E,T]);var C=l(m,j[0],j[1]);return c(function(){b.hasValue=!0,b.value=C},[C]),d(C),C},Xc}var hg;function N2(){return hg||(hg=1,Zc.exports=C2()),Zc.exports}var D2=N2(),M2=k.version.startsWith("19"),B2=Symbol.for(M2?"react.transitional.element":"react.element"),j2=Symbol.for("react.portal"),L2=Symbol.for("react.fragment"),U2=Symbol.for("react.strict_mode"),H2=Symbol.for("react.profiler"),z2=Symbol.for("react.consumer"),k2=Symbol.for("react.context"),Q_=Symbol.for("react.forward_ref"),G2=Symbol.for("react.suspense"),q2=Symbol.for("react.suspense_list"),Oh=Symbol.for("react.memo"),I2=Symbol.for("react.lazy"),F2=Q_,V2=Oh;function P2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case B2:switch(n=n.type,n){case L2:case H2:case U2:case G2:case q2:return n;default:switch(n=n&&n.$$typeof,n){case k2:case Q_:case I2:case Oh:return n;case z2:return n;default:return r}}case j2:return r}}}function Y2(n){return P2(n)===Oh}function Z2(n,r,i,l,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:h}){let d=!1,m,g,y,E,T;function j(D,A){return m=D,g=A,y=n(m,g),E=r(l,g),T=i(y,E,g),d=!0,T}function b(){return y=n(m,g),r.dependsOnOwnProps&&(E=r(l,g)),T=i(y,E,g),T}function C(){return n.dependsOnOwnProps&&(y=n(m,g)),r.dependsOnOwnProps&&(E=r(l,g)),T=i(y,E,g),T}function x(){const D=n(m,g),A=!h(D,y);return y=D,A&&(T=i(y,E,g)),T}function M(D,A){const w=!c(A,g),S=!u(D,m,A,g);return m=D,g=A,w&&S?b():w?C():S?x():T}return function(A,w){return d?M(A,w):j(A,w)}}function X2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const c=r(n,u),h=i(n,u),d=l(n,u);return Z2(c,h,d,n,u)}function Q2(n,r){const i={};for(const l in n){const u=n[l];typeof u=="function"&&(i[l]=(...c)=>r(u(...c)))}return i}function Wf(n){return function(i){const l=n(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function dg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function K_(n,r){return function(l,{displayName:u}){const c=function(d,m){return c.dependsOnOwnProps?c.mapToProps(d,m):c.mapToProps(d,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(d,m){c.mapToProps=n,c.dependsOnOwnProps=dg(n);let g=c(d,m);return typeof g=="function"&&(c.mapToProps=g,c.dependsOnOwnProps=dg(g),g=c(d,m)),g},c}}function wh(n,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function K2(n){return n&&typeof n=="object"?Wf(r=>Q2(n,r)):n?typeof n=="function"?K_(n):wh(n,"mapDispatchToProps"):Wf(r=>({dispatch:r}))}function $2(n){return n?typeof n=="function"?K_(n):wh(n,"mapStateToProps"):Wf(()=>({}))}function J2(n,r,i){return{...i,...n,...r}}function W2(n){return function(i,{displayName:l,areMergedPropsEqual:u}){let c=!1,h;return function(m,g,y){const E=n(m,g,y);return c?u(E,h)||(h=E):(c=!0,h=E),h}}}function eS(n){return n?typeof n=="function"?W2(n):wh(n,"mergeProps"):()=>J2}function tS(n){n()}function nS(){let n=null,r=null;return{clear(){n=null,r=null},notify(){tS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let l=n;for(;l;)i.push(l),l=l.next;return i},subscribe(i){let l=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:n=u,function(){!l||n===null||(l=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var mg={notify(){},get:()=>[]};function $_(n,r){let i,l=mg,u=0,c=!1;function h(C){y();const x=l.subscribe(C);let M=!1;return()=>{M||(M=!0,x(),E())}}function d(){l.notify()}function m(){b.onStateChange&&b.onStateChange()}function g(){return c}function y(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),l=nS())}function E(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=mg)}function T(){c||(c=!0,y())}function j(){c&&(c=!1,E())}const b={addNestedSub:h,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:g,trySubscribe:T,tryUnsubscribe:j,getListeners:()=>l};return b}var rS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aS=rS(),iS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",sS=iS(),lS=()=>aS||sS?k.useLayoutEffect:k.useEffect,so=lS();function pg(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Qc(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),l=Object.keys(r);if(i.length!==l.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 oS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},J_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fS={[F2]:cS,[V2]:J_};function gg(n){return Y2(n)?J_:fS[n.$$typeof]||oS}var hS=Object.defineProperty,dS=Object.getOwnPropertyNames,yg=Object.getOwnPropertySymbols,mS=Object.getOwnPropertyDescriptor,pS=Object.getPrototypeOf,_g=Object.prototype;function eh(n,r){if(typeof r!="string"){if(_g){const c=pS(r);c&&c!==_g&&eh(n,c)}let i=dS(r);yg&&(i=i.concat(yg(r)));const l=gg(n),u=gg(r);for(let c=0;c<i.length;++c){const h=i[c];if(!uS[h]&&!(u&&u[h])&&!(l&&l[h])){const d=mS(r,h);try{hS(n,h,d)}catch{}}}}return n}var Kc=Symbol.for("react-redux-context"),$c=typeof globalThis<"u"?globalThis:{};function gS(){if(!k.createContext)return{};const n=$c[Kc]??($c[Kc]=new Map);let r=n.get(k.createContext);return r||(r=k.createContext(null),n.set(k.createContext,r)),r}var Yn=gS(),yS=[null,null];function _S(n,r,i){so(()=>n(...r),i)}function vS(n,r,i,l,u,c){n.current=l,i.current=!1,u.current&&(u.current=null,c())}function bS(n,r,i,l,u,c,h,d,m,g,y){if(!n)return()=>{};let E=!1,T=null;const j=()=>{if(E||!d.current)return;const C=r.getState();let x,M;try{x=l(C,u.current)}catch(D){M=D,T=D}M||(T=null),x===c.current?h.current||g():(c.current=x,m.current=x,h.current=!0,y())};return i.onStateChange=j,i.trySubscribe(),j(),()=>{if(E=!0,i.tryUnsubscribe(),i.onStateChange=null,T)throw T}}function ES(n,r){return n===r}function SS(n,r,i,{pure:l,areStatesEqual:u=ES,areOwnPropsEqual:c=Qc,areStatePropsEqual:h=Qc,areMergedPropsEqual:d=Qc,forwardRef:m=!1,context:g=Yn}={}){const y=g,E=$2(n),T=K2(r),j=eS(i),b=!!n;return x=>{const M=x.displayName||x.name||"Component",D=`Connect(${M})`,A={shouldHandleStateChanges:b,displayName:D,wrappedComponentName:M,WrappedComponent:x,initMapStateToProps:E,initMapDispatchToProps:T,initMergeProps:j,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:c,areMergedPropsEqual:d};function w(Y){const[X,J,W]=k.useMemo(()=>{const{reactReduxForwardedRef:pt,...An}=Y;return[Y.context,pt,An]},[Y]),de=k.useMemo(()=>{let pt=y;return X!=null&&X.Consumer,pt},[X,y]),ie=k.useContext(de),he=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,ke=!!ie&&!!ie.store,ge=he?Y.store:ie.store,q=ke?ie.getServerState:ge.getState,K=k.useMemo(()=>X2(ge.dispatch,A),[ge]),[ne,_e]=k.useMemo(()=>{if(!b)return yS;const pt=$_(ge,he?void 0:ie.subscription),An=pt.notifyNestedSubs.bind(pt);return[pt,An]},[ge,he,ie]),R=k.useMemo(()=>he?ie:{...ie,subscription:ne},[he,ie,ne]),V=k.useRef(void 0),$=k.useRef(W),Q=k.useRef(void 0),ae=k.useRef(!1),Te=k.useRef(!1),ue=k.useRef(void 0);so(()=>(Te.current=!0,()=>{Te.current=!1}),[]);const mt=k.useMemo(()=>()=>Q.current&&W===$.current?Q.current:K(ge.getState(),W),[ge,W]),Ge=k.useMemo(()=>An=>ne?bS(b,ge,ne,K,$,V,ae,Te,Q,_e,An):()=>{},[ne]);_S(vS,[$,V,ae,W,Q,_e]);let Rt;try{Rt=k.useSyncExternalStore(Ge,mt,q?()=>K(q(),W):mt)}catch(pt){throw ue.current&&(pt.message+=`
|
|
58
|
-
The error may be correlated with this previous error:
|
|
59
|
-
${ue.current.stack}
|
|
60
|
-
|
|
61
|
-
`),pt}so(()=>{ue.current=void 0,Q.current=void 0,V.current=Rt});const Tr=k.useMemo(()=>k.createElement(x,{...Rt,ref:J}),[J,x,Rt]);return k.useMemo(()=>b?k.createElement(de.Provider,{value:R},Tr):Tr,[de,Tr,R])}const G=k.memo(w);if(G.WrappedComponent=x,G.displayName=w.displayName=D,m){const X=k.forwardRef(function(W,de){return k.createElement(G,{...W,reactReduxForwardedRef:de})});return X.displayName=D,X.WrappedComponent=x,eh(X,x)}return eh(G,x)}}var TS=SS;function xS(n){const{children:r,context:i,serverState:l,store:u}=n,c=k.useMemo(()=>{const m=$_(u);return{store:u,subscription:m,getServerState:l?()=>l:void 0}},[u,l]),h=k.useMemo(()=>u.getState(),[u]);so(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),h!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,h]);const d=i||Yn;return k.createElement(d.Provider,{value:c},r)}var AS=xS;function Rh(n=Yn){return function(){return k.useContext(n)}}var W_=Rh();function ev(n=Yn){const r=n===Yn?W_:Rh(n),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var OS=ev();function wS(n=Yn){const r=n===Yn?OS:ev(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var RS=wS(),CS=(n,r)=>n===r;function NS(n=Yn){const r=n===Yn?W_:Rh(n),i=(l,u={})=>{const{equalityFn:c=CS}=typeof u=="function"?{equalityFn:u}:u,h=r(),{store:d,subscription:m,getServerState:g}=h;k.useRef(!0);const y=k.useCallback({[l.name](T){return l(T)}}[l.name],[l]),E=D2.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,g||d.getState,y,c);return k.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var DS=NS(),Jc={exports:{}};/*!
|
|
62
|
-
Copyright (c) 2018 Jed Watson.
|
|
63
|
-
Licensed under the MIT License (MIT), see
|
|
64
|
-
http://jedwatson.github.io/classnames
|
|
65
|
-
*/var vg;function MS(){return vg||(vg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var c="",h=0;h<arguments.length;h++){var d=arguments[h];d&&(c=u(c,l(d)))}return c}function l(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 h="";for(var d in c)r.call(c,d)&&c[d]&&(h=u(h,d));return h}function u(c,h){return h?c?c+" "+h:c+h:c}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}(Jc)),Jc.exports}var BS=MS();const Z=po(BS);var th=function(n,r){return th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])},th(n,r)};function en(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");th(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var te=function(){return te=Object.assign||function(r){for(var i,l=1,u=arguments.length;l<u;l++){i=arguments[l];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},te.apply(this,arguments)};function go(n,r){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&r.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(n);u<l.length;u++)r.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(n,l[u])&&(i[l[u]]=n[l[u]]);return i}function bn(n,r,i){if(i||arguments.length===2)for(var l=0,u=r.length,c;l<u;l++)(c||!(l in r))&&(c||(c=Array.prototype.slice.call(r,0,l)),c[l]=r[l]);return n.concat(c||Array.prototype.slice.call(r))}function _n(n,r){var i=r&&r.cache?r.cache:GS,l=r&&r.serializer?r.serializer:zS,u=r&&r.strategy?r.strategy:US;return u(n,{cache:i,serializer:l})}function jS(n){return n==null||typeof n=="number"||typeof n=="boolean"}function LS(n,r,i,l){var u=jS(l)?l:i(l),c=r.get(u);return typeof c>"u"&&(c=n.call(this,l),r.set(u,c)),c}function tv(n,r,i){var l=Array.prototype.slice.call(arguments,3),u=i(l),c=r.get(u);return typeof c>"u"&&(c=n.apply(this,l),r.set(u,c)),c}function nv(n,r,i,l,u){return i.bind(r,n,l,u)}function US(n,r){var i=n.length===1?LS:tv;return nv(n,this,i,r.cache.create(),r.serializer)}function HS(n,r){return nv(n,this,tv,r.cache.create(),r.serializer)}var zS=function(){return JSON.stringify(arguments)},kS=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}(),GS={create:function(){return new kS}},vn={variadic:HS},xe;(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"})(xe||(xe={}));var Ie;(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"})(Ie||(Ie={}));var Ga;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Ga||(Ga={}));function bg(n){return n.type===Ie.literal}function qS(n){return n.type===Ie.argument}function rv(n){return n.type===Ie.number}function av(n){return n.type===Ie.date}function iv(n){return n.type===Ie.time}function sv(n){return n.type===Ie.select}function lv(n){return n.type===Ie.plural}function IS(n){return n.type===Ie.pound}function ov(n){return n.type===Ie.tag}function uv(n){return!!(n&&typeof n=="object"&&n.type===Ga.number)}function nh(n){return!!(n&&typeof n=="object"&&n.type===Ga.dateTime)}var cv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,FS=/(?:[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 VS(n){var r={};return n.replace(FS,function(i){var l=i.length;switch(i[0]){case"G":r.era=l===4?"long":l===5?"narrow":"short";break;case"y":r.year=l===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"][l-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][l-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=l===4?"long":l===5?"narrow":"short";break;case"e":if(l<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"c":if(l<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-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"][l-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][l-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][l-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][l-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"][l-1];break;case"s":r.second=["numeric","2-digit"][l-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=l<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 PS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function YS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(PS).filter(function(T){return T.length>0}),i=[],l=0,u=r;l<u.length;l++){var c=u[l],h=c.split("/");if(h.length===0)throw new Error("Invalid number skeleton");for(var d=h[0],m=h.slice(1),g=0,y=m;g<y.length;g++){var E=y[g];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function ZS(n){return n.replace(/^(.*?)-/,"")}var Eg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,fv=/^(@+)?(\+|#+)?[rs]?$/g,XS=/(\*)(0+)|(#+)(0+)|(0+)/g,hv=/^(0+)$/;function Sg(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(fv,function(i,l,u){return typeof u!="string"?(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length):u==="+"?r.minimumSignificantDigits=l.length:l[0]==="#"?r.maximumSignificantDigits=l.length:(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length+(typeof u=="string"?u.length:0)),""}),r}function dv(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 QS(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)),!hv.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Tg(n){var r={},i=dv(n);return i||r}function KS(n){for(var r={},i=0,l=n;i<l.length;i++){var u=l[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=ZS(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=te(te(te({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return te(te({},m),Tg(g))},{}));continue;case"engineering":r=te(te(te({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return te(te({},m),Tg(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(XS,function(m,g,y,E,T,j){if(g)r.minimumIntegerDigits=y.length;else{if(E&&T)throw new Error("We currently do not support maximum integer digits");if(j)throw new Error("We currently do not support exact integer digits")}return""});continue}if(hv.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(Eg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Eg,function(m,g,y,E,T,j){return y==="*"?r.minimumFractionDigits=g.length:E&&E[0]==="#"?r.maximumFractionDigits=E.length:T&&j?(r.minimumFractionDigits=T.length,r.maximumFractionDigits=T.length+j.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var c=u.options[0];c==="w"?r=te(te({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=te(te({},r),Sg(c)));continue}if(fv.test(u.stem)){r=te(te({},r),Sg(u.stem));continue}var h=dv(u.stem);h&&(r=te(te({},r),h));var d=QS(u.stem);d&&(r=te(te({},r),d))}return r}var wl={"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 $S(n,r){for(var i="",l=0;l<n.length;l++){var u=n.charAt(l);if(u==="j"){for(var c=0;l+1<n.length&&n.charAt(l+1)===u;)c++,l++;var h=1+(c&1),d=c<2?1:3+(c>>1),m="a",g=JS(r);for((g=="H"||g=="k")&&(d=0);d-- >0;)i+=m;for(;h-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function JS(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,l;i!=="root"&&(l=n.maximize().region);var u=wl[l||""]||wl[i||""]||wl["".concat(i,"-001")]||wl["001"];return u[0]}var Wc,WS=new RegExp("^".concat(cv.source,"*")),eT=new RegExp("".concat(cv.source,"*$"));function we(n,r){return{start:n,end:r}}var tT=!!String.prototype.startsWith&&"_a".startsWith("a",1),nT=!!String.fromCodePoint,rT=!!Object.fromEntries,aT=!!String.prototype.codePointAt,iT=!!String.prototype.trimStart,sT=!!String.prototype.trimEnd,lT=!!Number.isSafeInteger,oT=lT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},rh=!0;try{var uT=pv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rh=((Wc=uT.exec("a"))===null||Wc===void 0?void 0:Wc[0])==="a"}catch{rh=!1}var xg=tT?function(r,i,l){return r.startsWith(i,l)}:function(r,i,l){return r.slice(l,l+i.length)===i},ah=nT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var l="",u=r.length,c=0,h;u>c;){if(h=r[c++],h>1114111)throw RangeError(h+" is not a valid code point");l+=h<65536?String.fromCharCode(h):String.fromCharCode(((h-=65536)>>10)+55296,h%1024+56320)}return l},Ag=rT?Object.fromEntries:function(r){for(var i={},l=0,u=r;l<u.length;l++){var c=u[l],h=c[0],d=c[1];i[h]=d}return i},mv=aT?function(r,i){return r.codePointAt(i)}:function(r,i){var l=r.length;if(!(i<0||i>=l)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===l||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},cT=iT?function(r){return r.trimStart()}:function(r){return r.replace(WS,"")},fT=sT?function(r){return r.trimEnd()}:function(r){return r.replace(eT,"")};function pv(n,r){return new RegExp(n,r)}var ih;if(rh){var Og=pv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ih=function(r,i){var l;Og.lastIndex=i;var u=Og.exec(r);return(l=u[1])!==null&&l!==void 0?l:""}}else ih=function(r,i){for(var l=[];;){var u=mv(r,i);if(u===void 0||gv(u)||pT(u))break;l.push(u),i+=u>=65536?2:1}return ah.apply(void 0,l)};var hT=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,l){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var h=this.parseArgument(r,l);if(h.err)return h;u.push(h.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),u.push({type:Ie.pound,location:we(d,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(xe.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&sh(this.peek()||0)){var h=this.parseTag(r,i);if(h.err)return h;u.push(h.val)}else{var h=this.parseLiteral(r,i);if(h.err)return h;u.push(h.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var l=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ie.literal,value:"<".concat(u,"/>"),location:we(l,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var h=c.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!sh(this.char()))return this.error(xe.INVALID_TAG,we(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(xe.UNMATCHED_CLOSING_TAG,we(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ie.tag,value:u,children:h,location:we(l,this.clonePosition())},err:null}:this.error(xe.INVALID_TAG,we(d,this.clonePosition())))}else return this.error(xe.UNCLOSED_TAG,we(l,this.clonePosition()))}else return this.error(xe.INVALID_TAG,we(l,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&mT(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var l=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var h=this.tryParseUnquoted(r,i);if(h){u+=h;continue}var d=this.tryParseLeftAngleBracket();if(d){u+=d;continue}break}var m=we(l,this.clonePosition());return{val:{type:Ie.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!dT(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 l=this.char();if(l===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(l);this.bump()}return ah.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var l=this.char();return l===60||l===123||l===35&&(i==="plural"||i==="selectordinal")||l===125&&r>0?null:(this.bump(),ah(l))},n.prototype.parseArgument=function(r,i){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xe.EMPTY_ARGUMENT,we(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(xe.MALFORMED_ARGUMENT,we(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ie.argument,value:u,location:we(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(l,this.clonePosition())):this.parseArgumentOptions(r,i,u,l);default:return this.error(xe.MALFORMED_ARGUMENT,we(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),l=ih(this.message,i),u=i+l.length;this.bumpTo(u);var c=this.clonePosition(),h=we(r,c);return{value:l,location:h}},n.prototype.parseArgumentOptions=function(r,i,l,u){var c,h=this.clonePosition(),d=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(d){case"":return this.error(xe.EXPECT_ARGUMENT_TYPE,we(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var T=fT(E.val);if(T.length===0)return this.error(xe.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var j=we(y,this.clonePosition());g={style:T,styleLocation:j}}var b=this.tryParseArgumentClose(u);if(b.err)return b;var C=we(u,this.clonePosition());if(g&&xg(g==null?void 0:g.style,"::",0)){var x=cT(g.style.slice(2));if(d==="number"){var E=this.parseNumberSkeletonFromString(x,g.styleLocation);return E.err?E:{val:{type:Ie.number,value:l,location:C,style:E.val},err:null}}else{if(x.length===0)return this.error(xe.EXPECT_DATE_TIME_SKELETON,C);var M=x;this.locale&&(M=$S(x,this.locale));var T={type:Ga.dateTime,pattern:M,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?VS(M):{}},D=d==="date"?Ie.date:Ie.time;return{val:{type:D,value:l,location:C,style:T},err:null}}}return{val:{type:d==="number"?Ie.number:d==="date"?Ie.date:Ie.time,value:l,location:C,style:(c=g==null?void 0:g.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(xe.EXPECT_SELECT_ARGUMENT_OPTIONS,we(A,te({},A)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),S=0;if(d!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),w=this.parseIdentifierIfPossible(),S=E.val}var G=this.tryParsePluralOrSelectOptions(r,d,i,w);if(G.err)return G;var b=this.tryParseArgumentClose(u);if(b.err)return b;var Y=we(u,this.clonePosition());return d==="select"?{val:{type:Ie.select,value:l,options:Ag(G.val),location:Y},err:null}:{val:{type:Ie.plural,value:l,options:Ag(G.val),offset:S,pluralType:d==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(xe.INVALID_ARGUMENT_TYPE,we(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(xe.EXPECT_ARGUMENT_CLOSING_BRACE,we(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var l=this.char();switch(l){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(xe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,we(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 l=[];try{l=YS(r)}catch{return this.error(xe.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ga.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?KS(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,l,u){for(var c,h=!1,d=[],m=new Set,g=u.value,y=u.location;;){if(g.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var T=this.tryParseDecimalInteger(xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,xe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(T.err)return T;y=we(E,this.clonePosition()),g=this.message.slice(E.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?xe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);g==="other"&&(h=!0),this.bumpSpace();var j=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?xe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:xe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(r+1,i,l);if(b.err)return b;var C=this.tryParseArgumentClose(j);if(C.err)return C;d.push([g,{value:b.val,location:we(j,this.clonePosition())}]),m.add(g),this.bumpSpace(),c=this.parseIdentifierIfPossible(),g=c.value,y=c.location}return d.length===0?this.error(i==="select"?xe.EXPECT_SELECT_ARGUMENT_SELECTOR:xe.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(xe.MISSING_OTHER_CLAUSE,we(this.clonePosition(),this.clonePosition())):{val:d,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var l=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(l=-1);for(var c=!1,h=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)c=!0,h=h*10+(d-48),this.bump();else break}var m=we(u,this.clonePosition());return c?(h*=l,oT(h)?{val:h,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=mv(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(xg(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(),l=this.message.indexOf(r,i);return l>=0?(this.bumpTo(l),!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()&&gv(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),l=this.message.charCodeAt(i+(r>=65536?2:1));return l??null},n}();function sh(n){return n>=97&&n<=122||n>=65&&n<=90}function dT(n){return sh(n)||n===47}function mT(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 gv(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function pT(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 lh(n){n.forEach(function(r){if(delete r.location,sv(r)||lv(r))for(var i in r.options)delete r.options[i].location,lh(r.options[i].value);else rv(r)&&uv(r.style)||(av(r)||iv(r))&&nh(r.style)?delete r.style.location:ov(r)&&lh(r.children)})}function gT(n,r){r===void 0&&(r={}),r=te({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new hT(n,r).parse();if(i.err){var l=SyntaxError(xe[i.err.kind]);throw l.location=i.err.location,l.originalMessage=i.err.message,l}return r!=null&&r.captureLocation||lh(i.val),i.val}var Tn;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Tn||(Tn={}));var Sr=function(n){en(r,n);function r(i,l,u){var c=n.call(this,i)||this;return c.code=l,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),wg=function(n){en(r,n);function r(i,l,u,c){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(l,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Tn.INVALID_VALUE,c)||this}return r}(Sr),yT=function(n){en(r,n);function r(i,l,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),Tn.INVALID_VALUE,u)||this}return r}(Sr),_T=function(n){en(r,n);function r(i,l){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(l,'"'),Tn.MISSING_VALUE,l)||this}return r}(Sr),bt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(bt||(bt={}));function vT(n){return n.length<2?n:n.reduce(function(r,i){var l=r[r.length-1];return!l||l.type!==bt.literal||i.type!==bt.literal?r.push(i):l.value+=i.value,r},[])}function yv(n){return typeof n=="function"}function eo(n,r,i,l,u,c,h){if(n.length===1&&bg(n[0]))return[{type:bt.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var y=g[m];if(bg(y)){d.push({type:bt.literal,value:y.value});continue}if(IS(y)){typeof c=="number"&&d.push({type:bt.literal,value:i.getNumberFormat(r).format(c)});continue}var E=y.value;if(!(u&&E in u))throw new _T(E,h);var T=u[E];if(qS(y)){(!T||typeof T=="string"||typeof T=="number")&&(T=typeof T=="string"||typeof T=="number"?String(T):""),d.push({type:typeof T=="string"?bt.literal:bt.object,value:T});continue}if(av(y)){var j=typeof y.style=="string"?l.date[y.style]:nh(y.style)?y.style.parsedOptions:void 0;d.push({type:bt.literal,value:i.getDateTimeFormat(r,j).format(T)});continue}if(iv(y)){var j=typeof y.style=="string"?l.time[y.style]:nh(y.style)?y.style.parsedOptions:l.time.medium;d.push({type:bt.literal,value:i.getDateTimeFormat(r,j).format(T)});continue}if(rv(y)){var j=typeof y.style=="string"?l.number[y.style]:uv(y.style)?y.style.parsedOptions:void 0;j&&j.scale&&(T=T*(j.scale||1)),d.push({type:bt.literal,value:i.getNumberFormat(r,j).format(T)});continue}if(ov(y)){var b=y.children,C=y.value,x=u[C];if(!yv(x))throw new yT(C,"function",h);var M=eo(b,r,i,l,u,c),D=x(M.map(function(S){return S.value}));Array.isArray(D)||(D=[D]),d.push.apply(d,D.map(function(S){return{type:typeof S=="string"?bt.literal:bt.object,value:S}}))}if(sv(y)){var A=y.options[T]||y.options.other;if(!A)throw new wg(y.value,T,Object.keys(y.options),h);d.push.apply(d,eo(A.value,r,i,l,u));continue}if(lv(y)){var A=y.options["=".concat(T)];if(!A){if(!Intl.PluralRules)throw new Sr(`Intl.PluralRules is not available in this environment.
|
|
66
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,Tn.MISSING_INTL_API,h);var w=i.getPluralRules(r,{type:y.pluralType}).select(T-(y.offset||0));A=y.options[w]||y.options.other}if(!A)throw new wg(y.value,T,Object.keys(y.options),h);d.push.apply(d,eo(A.value,r,i,l,u,T-(y.offset||0)));continue}}return vT(d)}function bT(n,r){return r?te(te(te({},n||{}),r||{}),Object.keys(n).reduce(function(i,l){return i[l]=te(te({},n[l]),r[l]||{}),i},{})):n}function ET(n,r){return r?Object.keys(n).reduce(function(i,l){return i[l]=bT(n[l],r[l]),i},te({},n)):n}function ef(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function ST(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_n(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.NumberFormat).bind.apply(r,bn([void 0],i,!1)))},{cache:ef(n.number),strategy:vn.variadic}),getDateTimeFormat:_n(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.DateTimeFormat).bind.apply(r,bn([void 0],i,!1)))},{cache:ef(n.dateTime),strategy:vn.variadic}),getPluralRules:_n(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.PluralRules).bind.apply(r,bn([void 0],i,!1)))},{cache:ef(n.pluralRules),strategy:vn.variadic})}}var _v=function(){function n(r,i,l,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(E,T){return!E.length||T.type!==bt.literal||typeof E[E.length-1]!="string"?E.push(T.value):E[E.length-1]+=T.value,E},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(m){return eo(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 h=u||{};h.formatters;var d=go(h,["formatters"]);this.ast=n.__parse(r,te(te({},d),{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=ET(n.formats,l),this.formatters=u&&u.formatters||ST(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(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=gT,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}(),$r;(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"})($r||($r={}));var us=function(n){en(r,n);function r(i,l,u){var c=this,h=u?u instanceof Error?u:new Error(String(u)):void 0;return c=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(l,`
|
|
68
|
-
`).concat(h?`
|
|
69
|
-
`.concat(h.message,`
|
|
70
|
-
`).concat(h.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),TT=function(n){en(r,n);function r(i,l){return n.call(this,$r.UNSUPPORTED_FORMATTER,i,l)||this}return r}(us),xT=function(n){en(r,n);function r(i,l){return n.call(this,$r.INVALID_CONFIG,i,l)||this}return r}(us),Rg=function(n){en(r,n);function r(i,l){return n.call(this,$r.MISSING_DATA,i,l)||this}return r}(us),tn=function(n){en(r,n);function r(i,l,u){var c=n.call(this,$r.FORMAT_ERROR,"".concat(i,`
|
|
71
|
-
Locale: `).concat(l,`
|
|
72
|
-
`),u)||this;return c.locale=l,c}return r}(us),tf=function(n){en(r,n);function r(i,l,u,c){var h=n.call(this,"".concat(i,`
|
|
73
|
-
MessageID: `).concat(u==null?void 0:u.id,`
|
|
74
|
-
Default Message: `).concat(u==null?void 0:u.defaultMessage,`
|
|
75
|
-
Description: `).concat(u==null?void 0:u.description,`
|
|
76
|
-
`),l,c)||this;return h.descriptor=u,h.locale=l,h}return r}(tn),AT=function(n){en(r,n);function r(i,l){var u=n.call(this,$r.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(l,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var h;return(h=c.value)!==null&&h!==void 0?h:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(us);function OT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Va(n,r,i){return i===void 0&&(i={}),r.reduce(function(l,u){return u in n?l[u]=n[u]:u in i&&(l[u]=i[u]),l},{})}var wT=function(n){},RT=function(n){},vv={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:wT,onWarn:RT};function bv(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ir(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function CT(n){n===void 0&&(n=bv());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,l=Intl.DisplayNames,u=_n(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.DateTimeFormat).bind.apply(d,bn([void 0],m,!1)))},{cache:Ir(n.dateTime),strategy:vn.variadic}),c=_n(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.NumberFormat).bind.apply(d,bn([void 0],m,!1)))},{cache:Ir(n.number),strategy:vn.variadic}),h=_n(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.PluralRules).bind.apply(d,bn([void 0],m,!1)))},{cache:Ir(n.pluralRules),strategy:vn.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:_n(function(d,m,g,y){return new _v(d,m,g,te({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:h}},y||{}))},{cache:Ir(n.message),strategy:vn.variadic}),getRelativeTimeFormat:_n(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(r.bind.apply(r,bn([void 0],d,!1)))},{cache:Ir(n.relativeTime),strategy:vn.variadic}),getPluralRules:h,getListFormat:_n(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(i.bind.apply(i,bn([void 0],d,!1)))},{cache:Ir(n.list),strategy:vn.variadic}),getDisplayNames:_n(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(l.bind.apply(l,bn([void 0],d,!1)))},{cache:Ir(n.displayNames),strategy:vn.variadic})}}function Ch(n,r,i,l){var u=n&&n[r],c;if(u&&(c=u[i]),c)return c;l(new TT("No ".concat(r," format named: ").concat(i)))}function Rl(n,r){return Object.keys(n).reduce(function(i,l){return i[l]=te({timeZone:r},n[l]),i},{})}function Cg(n,r){var i=Object.keys(te(te({},n),r));return i.reduce(function(l,u){return l[u]=te(te({},n[u]||{}),r[u]||{}),l},{})}function Ng(n,r){if(!r)return n;var i=_v.formats;return te(te(te({},i),n),{date:Cg(Rl(i.date,r),Rl(n.date||{},r)),time:Cg(Rl(i.time,r),Rl(n.time||{},r))})}var oh=function(n,r,i,l,u){var c=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,y=n.fallbackOnEmptyString,E=n.onError,T=n.timeZone,j=n.defaultRichTextElements;i===void 0&&(i={id:""});var b=i.id,C=i.defaultMessage;OT(!!b,"[@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 x=String(b),M=d&&Object.prototype.hasOwnProperty.call(d,x)&&d[x];if(Array.isArray(M)&&M.length===1&&M[0].type===Ie.literal)return M[0].value;if(!l&&M&&typeof M=="string"&&!j)return M.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=te(te({},j),l||{}),h=Ng(h,T),g=Ng(g,T),!M){if(y===!1&&M==="")return M;if((!C||c&&c.toLowerCase()!==m.toLowerCase())&&E(new AT(i,c)),C)try{var D=r.getMessageFormat(C,m,g,u);return D.format(l)}catch(A){return E(new tf('Error formatting default message for: "'.concat(x,'", rendering default message verbatim'),c,i,A)),typeof C=="string"?C:x}return x}try{var D=r.getMessageFormat(M,c,h,te({formatters:r},u||{}));return D.format(l)}catch(A){E(new tf('Error formatting message: "'.concat(x,'", using ').concat(C?"default message":"id"," as fallback."),c,i,A))}if(C)try{var D=r.getMessageFormat(C,m,g,u);return D.format(l)}catch(A){E(new tf('Error formatting the default message for: "'.concat(x,'", rendering message verbatim'),c,i,A))}return typeof M=="string"?M:typeof C=="string"?C:x},NT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function cs(n,r,i,l){var u=n.locale,c=n.formats,h=n.onError,d=n.timeZone;l===void 0&&(l={});var m=l.format,g=te(te({},d&&{timeZone:d}),m&&Ch(c,r,m,h)),y=Va(l,NT,g);return r==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=te(te({},y),{hour:"numeric",minute:"numeric"})),i(u,y)}function DT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"date",r,h).format(d)}catch(m){n.onError(new tn("Error formatting date.",n.locale,m))}return String(d)}function MT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"time",r,h).format(d)}catch(m){n.onError(new tn("Error formatting time.",n.locale,m))}return String(d)}function BT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=i[2],d=h===void 0?{}:h,m=typeof u=="string"?new Date(u||0):u,g=typeof c=="string"?new Date(c||0):c;try{return cs(n,"dateTimeRange",r,d).formatRange(m,g)}catch(y){n.onError(new tn("Error formatting date time range.",n.locale,y))}return String(m)}function jT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"date",r,h).formatToParts(d)}catch(m){n.onError(new tn("Error formatting date.",n.locale,m))}return[]}function LT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return cs(n,"time",r,h).formatToParts(d)}catch(m){n.onError(new tn("Error formatting time.",n.locale,m))}return[]}var UT=["style","type","fallback","languageDisplay"];function HT(n,r,i,l){var u=n.locale,c=n.onError,h=Intl.DisplayNames;h||c(new Sr(`Intl.DisplayNames is not available in this environment.
|
|
77
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,Tn.MISSING_INTL_API));var d=Va(l,UT);try{return r(u,d).of(i)}catch(m){c(new tn("Error formatting display name.",u,m))}}var zT=["type","style"],Dg=Date.now();function kT(n){return"".concat(Dg,"_").concat(n,"_").concat(Dg)}function GT(n,r,i,l){l===void 0&&(l={});var u=Ev(n,r,i,l).reduce(function(c,h){var d=h.value;return typeof d!="string"?c.push(d):typeof c[c.length-1]=="string"?c[c.length-1]+=d:c.push(d),c},[]);return u.length===1?u[0]:u.length===0?"":u}function Ev(n,r,i,l){var u=n.locale,c=n.onError;l===void 0&&(l={});var h=Intl.ListFormat;h||c(new Sr(`Intl.ListFormat is not available in this environment.
|
|
79
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,Tn.MISSING_INTL_API));var d=Va(l,zT);try{var m={},g=i.map(function(y,E){if(typeof y=="object"){var T=kT(E);return m[T]=y,T}return String(y)});return r(u,d).formatToParts(g).map(function(y){return y.type==="literal"?y:te(te({},y),{value:m[y.value]||y.value})})}catch(y){c(new tn("Error formatting list.",u,y))}return i}var qT=["type"];function IT(n,r,i,l){var u=n.locale,c=n.onError;l===void 0&&(l={}),Intl.PluralRules||c(new Sr(`Intl.PluralRules is not available in this environment.
|
|
81
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
-
`,Tn.MISSING_INTL_API));var h=Va(l,qT);try{return r(u,h).select(i)}catch(d){c(new tn("Error formatting plural.",u,d))}return"other"}var FT=["numeric","style"];function VT(n,r,i){var l=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var h=i.format,d=!!h&&Ch(u,"relative",h,c)||{},m=Va(i,FT,d);return r(l,m)}function PT(n,r,i,l,u){u===void 0&&(u={}),l||(l="second");var c=Intl.RelativeTimeFormat;c||n.onError(new Sr(`Intl.RelativeTimeFormat is not available in this environment.
|
|
83
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,Tn.MISSING_INTL_API));try{return VT(n,r,u).format(i,l)}catch(h){n.onError(new tn("Error formatting relative time.",n.locale,h))}return String(i)}var YT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Sv(n,r,i){var l=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var h=i.format,d=h&&Ch(u,"number",h,c)||{},m=Va(i,YT,d);return r(l,m)}function ZT(n,r,i,l){l===void 0&&(l={});try{return Sv(n,r,l).format(i)}catch(u){n.onError(new tn("Error formatting number.",n.locale,u))}return String(i)}function XT(n,r,i,l){l===void 0&&(l={});try{return Sv(n,r,l).formatToParts(i)}catch(u){n.onError(new tn("Error formatting number.",n.locale,u))}return[]}function QT(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function KT(n){n.onWarn&&n.defaultRichTextElements&&QT(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 $T(n,r){var i=CT(r),l=te(te({},vv),n),u=l.locale,c=l.defaultLocale,h=l.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Rg('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&&h&&h(new Rg('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'))):(h&&h(new xT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),l.locale=l.defaultLocale||"en"),KT(l),te(te({},l),{formatters:i,formatNumber:ZT.bind(null,l,i.getNumberFormat),formatNumberToParts:XT.bind(null,l,i.getNumberFormat),formatRelativeTime:PT.bind(null,l,i.getRelativeTimeFormat),formatDate:DT.bind(null,l,i.getDateTimeFormat),formatDateToParts:jT.bind(null,l,i.getDateTimeFormat),formatTime:MT.bind(null,l,i.getDateTimeFormat),formatDateTimeRange:BT.bind(null,l,i.getDateTimeFormat),formatTimeToParts:LT.bind(null,l,i.getDateTimeFormat),formatPlural:IT.bind(null,l,i.getPluralRules),formatMessage:oh.bind(null,l,i),$t:oh.bind(null,l,i),formatList:GT.bind(null,l,i.getListFormat),formatListToParts:Ev.bind(null,l,i.getListFormat),formatDisplayName:HT.bind(null,l,i.getDisplayNames)})}function JT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function Tv(n){JT(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var xv=te(te({},vv),{textComponent:k.Fragment}),WT={key:42},ex=function(n){return k.isValidElement(n)?k.createElement(k.Fragment,WT,n):n},tx=function(n){var r;return(r=k.Children.map(n,ex))!==null&&r!==void 0?r:[]};function nx(n){return function(r){return n(k.Children.toArray(r))}}function rx(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=Object.keys(n),l=Object.keys(r),u=i.length;if(l.length!==u)return!1;for(var c=0;c<u;c++){var h=i[c];if(n[h]!==r[h]||!Object.prototype.hasOwnProperty.call(r,h))return!1}return!0}var nf={exports:{}},De={};/** @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 Mg;function ax(){if(Mg)return De;Mg=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,d=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,E=n?Symbol.for("react.suspense"):60113,T=n?Symbol.for("react.suspense_list"):60120,j=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,C=n?Symbol.for("react.block"):60121,x=n?Symbol.for("react.fundamental"):60117,M=n?Symbol.for("react.responder"):60118,D=n?Symbol.for("react.scope"):60119;function A(S){if(typeof S=="object"&&S!==null){var G=S.$$typeof;switch(G){case r:switch(S=S.type,S){case m:case g:case l:case c:case u:case E:return S;default:switch(S=S&&S.$$typeof,S){case d:case y:case b:case j:case h:return S;default:return G}}case i:return G}}}function w(S){return A(S)===g}return De.AsyncMode=m,De.ConcurrentMode=g,De.ContextConsumer=d,De.ContextProvider=h,De.Element=r,De.ForwardRef=y,De.Fragment=l,De.Lazy=b,De.Memo=j,De.Portal=i,De.Profiler=c,De.StrictMode=u,De.Suspense=E,De.isAsyncMode=function(S){return w(S)||A(S)===m},De.isConcurrentMode=w,De.isContextConsumer=function(S){return A(S)===d},De.isContextProvider=function(S){return A(S)===h},De.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===r},De.isForwardRef=function(S){return A(S)===y},De.isFragment=function(S){return A(S)===l},De.isLazy=function(S){return A(S)===b},De.isMemo=function(S){return A(S)===j},De.isPortal=function(S){return A(S)===i},De.isProfiler=function(S){return A(S)===c},De.isStrictMode=function(S){return A(S)===u},De.isSuspense=function(S){return A(S)===E},De.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===l||S===g||S===c||S===u||S===E||S===T||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===j||S.$$typeof===h||S.$$typeof===d||S.$$typeof===y||S.$$typeof===x||S.$$typeof===M||S.$$typeof===D||S.$$typeof===C)},De.typeOf=A,De}var Bg;function ix(){return Bg||(Bg=1,nf.exports=ax()),nf.exports}var rf,jg;function sx(){if(jg)return rf;jg=1;var n=ix(),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},l={$$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]=l,c[n.Memo]=u;function h(b){return n.isMemo(b)?u:c[b.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,T=Object.prototype;function j(b,C,x){if(typeof C!="string"){if(T){var M=E(C);M&&M!==T&&j(b,M,x)}var D=m(C);g&&(D=D.concat(g(C)));for(var A=h(b),w=h(C),S=0;S<D.length;++S){var G=D[S];if(!i[G]&&!(x&&x[G])&&!(w&&w[G])&&!(A&&A[G])){var Y=y(C,G);try{d(b,G,Y)}catch{}}}}return b}return rf=j,rf}sx();var Nh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=k.createContext(null)):k.createContext(null);Nh.Consumer;var lx=Nh.Provider,ox=lx,ux=Nh;function yo(){var n=k.useContext(ux);return Tv(n),n}var uh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(uh||(uh={}));var ch;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(ch||(ch={}));function Av(n){var r=function(i){var l=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?l.formatDateToParts(d,h):l.formatTimeToParts(d,h);return c(m)};return r.displayName=ch[n],r}function fs(n){var r=function(i){var l=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=l[n](u,h);if(typeof c=="function")return c(d);var m=l.textComponent||k.Fragment;return k.createElement(m,null,d)};return r.displayName=uh[n],r}function Ov(n){return n&&Object.keys(n).reduce(function(r,i){var l=n[i];return r[i]=yv(l)?nx(l):l,r},{})}var Lg=function(n,r,i,l){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var h=Ov(l),d=oh.apply(void 0,bn([n,r,i,h],u,!1));return Array.isArray(d)?tx(d):d},Ug=function(n,r){var i=n.defaultRichTextElements,l=go(n,["defaultRichTextElements"]),u=Ov(i),c=$T(te(te(te({},xv),l),{defaultRichTextElements:u}),r),h={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 te(te({},c),{formatMessage:Lg.bind(null,h,c.formatters),$t:Lg.bind(null,h,c.formatters)})};function af(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 cx=function(n){en(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=bv(),i.state={cache:i.cache,intl:Ug(af(i.props),i.cache),prevConfig:af(i.props)},i}return r.getDerivedStateFromProps=function(i,l){var u=l.prevConfig,c=l.cache,h=af(i);return rx(u,h)?null:{intl:Ug(h,c),prevConfig:h}},r.prototype.render=function(){return Tv(this.state.intl),k.createElement(ox,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=xv,r}(k.PureComponent);fs("formatDate");fs("formatTime");fs("formatNumber");fs("formatList");fs("formatDisplayName");Av("formatDate");Av("formatTime");const fx="_app_1rj0t_1",hx={app:fx},Pa=RS,Wt=DS,wv="%[a-f0-9]{2}",Hg=new RegExp("("+wv+")|([^%]+?)","gi"),zg=new RegExp("("+wv+")+","gi");function fh(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),l=n.slice(r);return Array.prototype.concat.call([],fh(i),fh(l))}function dx(n){try{return decodeURIComponent(n)}catch{let r=n.match(Hg)||[];for(let i=1;i<r.length;i++)n=fh(r,i).join(""),r=n.match(Hg)||[];return n}}function mx(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=zg.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=dx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=zg.exec(n)}r["%C2"]="�";const l=Object.keys(r);for(const u of l)n=n.replace(new RegExp(u,"g"),r[u]);return n}function px(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return mx(n)}}function gx(n,r){const i={};if(Array.isArray(r))for(const l of r){const u=Object.getOwnPropertyDescriptor(n,l);u!=null&&u.enumerable&&Object.defineProperty(i,l,u)}else for(const l of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,l);if(u.enumerable){const c=n[l];r(l,c,n)&&Object.defineProperty(i,l,u)}}return i}function Rv(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 yx=n=>n==null,_x=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),hh=Symbol("encodeFragmentIdentifier");function vx(n){switch(n.arrayFormat){case"index":return r=>(i,l)=>{const u=i.length;return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[We(r,n),"[",u,"]"].join("")]:[...i,[We(r,n),"[",We(u,n),"]=",We(l,n)].join("")]};case"bracket":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[We(r,n),"[]"].join("")]:[...i,[We(r,n),"[]=",We(l,n)].join("")];case"colon-list-separator":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[We(r,n),":list="].join("")]:[...i,[We(r,n),":list=",We(l,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(l,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?l:(u=u===null?"":u,l.length===0?[[We(i,n),r,We(u,n)].join("")]:[[l,We(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,We(r,n)]:[...i,[We(r,n),"=",We(l,n)].join("")]}}function bx(n){let r;switch(n.arrayFormat){case"index":return(i,l,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=l;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=l};case"bracket":return(i,l,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"colon-list-separator":return(i,l,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"comma":case"separator":return(i,l,u)=>{const c=typeof l=="string"&&l.includes(n.arrayFormatSeparator),h=typeof l=="string"&&!c&&Fn(l,n).includes(n.arrayFormatSeparator);l=h?Fn(l,n):l;const d=c||h?l.split(n.arrayFormatSeparator).map(m=>Fn(m,n)):l===null?l:Fn(l,n);u[i]=d};case"bracket-separator":return(i,l,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=l&&Fn(l,n);return}const h=l===null?[]:Fn(l,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=h;return}u[i]=[...u[i],...h]};default:return(i,l,u)=>{if(u[i]===void 0){u[i]=l;return}u[i]=[...[u[i]].flat(),l]}}}function Cv(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function We(n,r){return r.encode?r.strict?_x(n):encodeURIComponent(n):n}function Fn(n,r){return r.decode?px(n):n}function Nv(n){return Array.isArray(n)?n.sort():typeof n=="object"?Nv(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function Dv(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function Ex(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function kg(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):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 Dh(n){n=Dv(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function Mh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},Cv(r.arrayFormatSeparator);const i=bx(r),l=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return l;for(const u of n.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[h,d]=Rv(c,"=");h===void 0&&(h=c),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:Fn(d,r),i(Fn(h,r),d,l)}for(const[u,c]of Object.entries(l))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[h,d]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[h]=kg(d,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?l[u]=Object.values(c).join(r.arrayFormatSeparator):l[u]=kg(c,r,r.types[u]);return r.sort===!1?l:(r.sort===!0?Object.keys(l).sort():Object.keys(l).sort(r.sort)).reduce((u,c)=>{const h=l[c];return u[c]=h&&typeof h=="object"&&!Array.isArray(h)?Nv(h):h,u},Object.create(null))}function Mv(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},Cv(r.arrayFormatSeparator);const i=h=>r.skipNull&&yx(n[h])||r.skipEmptyString&&n[h]==="",l=vx(r),u={};for(const[h,d]of Object.entries(n))i(h)||(u[h]=d);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(h=>{const d=n[h];return d===void 0?"":d===null?We(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?We(h,r)+"[]":d.reduce(l(h),[]).join("&"):We(h,r)+"="+We(d,r)}).filter(h=>h.length>0).join("&")}function Bv(n,r){var u;r={decode:!0,...r};let[i,l]=Rv(n,"#");return i===void 0&&(i=n),{url:((u=i==null?void 0:i.split("?"))==null?void 0:u[0])??"",query:Mh(Dh(n),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:Fn(l,r)}:{}}}function jv(n,r){r={encode:!0,strict:!0,[hh]:!0,...r};const i=Dv(n.url).split("?")[0]||"",l=Dh(n.url),u={...Mh(l,{sort:!1,...r}),...n.query};let c=Mv(u,r);c&&(c=`?${c}`);let h=Ex(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[hh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${c}${h}`}function Lv(n,r,i){i={parseFragmentIdentifier:!0,[hh]:!1,...i};const{url:l,query:u,fragmentIdentifier:c}=Bv(n,i);return jv({url:l,query:gx(u,r),fragmentIdentifier:c},i)}function Sx(n,r,i){const l=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return Lv(n,l,i)}const _o=Object.freeze(Object.defineProperty({__proto__:null,exclude:Sx,extract:Dh,parse:Mh,parseUrl:Bv,pick:Lv,stringify:Mv,stringifyUrl:jv},Symbol.toStringTag,{value:"Module"}));var sn={},ln={},je={},Cl={},fe={},Gg;function It(){return Gg||(Gg=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.GUEST_LOCALE_CHANGED=fe.DRAWER_CLOSE=fe.DRAWER_OPEN=fe.CONVERSATION_RATING_FROM_GUEST=fe.TRANSCRIPT_ITEM_GUEST_REACTION=fe.TRANSCRIPT_MAIL_REQUEST=fe.INBOX_CONNECT_REQUEST=fe.RESTART_CHAT_REQUEST=fe.EVENT_TO_GUEST=fe.NLU_REQUEST_EVENT=fe.EXPERTS_DISCONNECTED=fe.EXPERTS_DISCONNECT_REQUEST=fe.EXPERTS_CONNECTED=fe.EXPERTS_CONNECT_REQUEST=fe.MESSAGE_TO_GUEST=fe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=fe.MESSAGE_FROM_GUEST=fe.GUEST_FEEDBACK_RESPONSE=fe.GUEST_DISCONNECTED=fe.GUEST_CONNECTED=fe.TYPING_OFF=fe.TYPING_ON=void 0,fe.TYPING_ON="core.typing.on",fe.TYPING_OFF="core.typing.off",fe.GUEST_CONNECTED="core.guest.connected",fe.GUEST_DISCONNECTED="core.guest.disconnected",fe.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",fe.MESSAGE_FROM_GUEST="core.message.from.guest",fe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",fe.MESSAGE_TO_GUEST="core.message.to.guest",fe.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",fe.EXPERTS_CONNECTED="core.experts.connected",fe.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",fe.EXPERTS_DISCONNECTED="core.experts.disconnected",fe.NLU_REQUEST_EVENT="core.nlu.request.event",fe.EVENT_TO_GUEST="core.event.to.guest",fe.RESTART_CHAT_REQUEST="core.chat.restart.request",fe.INBOX_CONNECT_REQUEST="core.inbox.connect.request",fe.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",fe.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",fe.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",fe.DRAWER_OPEN="core.drawer.open",fe.DRAWER_CLOSE="core.drawer.close",fe.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),fe}var qg;function Tx(){if(qg)return Cl;qg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=It(),r=()=>({type:n.DRAWER_CLOSE});return Cl.default=r,Cl}var Nl={},Ig;function xx(){if(Ig)return Nl;Ig=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Nl.default=r,Nl}var Dl={},Fg;function Ax(){if(Fg)return Dl;Fg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Dl.default=r,Dl}var Ml={},Vg;function Ox(){if(Vg)return Ml;Vg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=It(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Ml.default=r,Ml}var Bl={},Pg;function wx(){if(Pg)return Bl;Pg=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Bl.default=r,Bl}var jl={},Yg;function Rx(){if(Yg)return jl;Yg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return jl.default=r,jl}var Ll={},Pe={},Zg;function Bh(){if(Zg)return Pe;Zg=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.getStringRepresentationFromMessage=Pe.MessageTypeEnum=Pe.AudioMessage=Pe.FileMessage=Pe.ImageMessage=Pe.VideoMessage=Pe.MarkdownMessage=Pe.DetailMessage=Pe.TextMessage=Pe.Message=void 0;class n{constructor(E,T,j=[],b=[]){Ce(this,"type");Ce(this,"sender");Ce(this,"sources");Ce(this,"quickReplies");this.type=E,this.sender=T,this.sources=j,this.quickReplies=b}addQuickReply(E,T){this.quickReplies.push({label:E,payload:T})}}Pe.Message=n;class r extends n{constructor(T,j,b=[],C=[]){super(m.TEXT,j,b,C);Ce(this,"text");this.text=T}}Pe.TextMessage=r;class i extends n{constructor(T,j){super(m.DETAIL,j);Ce(this,"title");Ce(this,"subtitle");Ce(this,"text");Ce(this,"imageUrl");Ce(this,"itemUrl");Ce(this,"buttons");this.title=T,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(T){this.imageUrl=T}setItemUrl(T){this.itemUrl=T}setSubtitle(T){this.subtitle=T}setText(T){this.text=T}addButton(T){this.buttons.push(T)}}Pe.DetailMessage=i;class l extends n{constructor(T,j,b=[],C=[]){super(m.MARKDOWN,j,b,C);Ce(this,"markdown");this.markdown=T}}Pe.MarkdownMessage=l;class u extends n{constructor(T,j){super(m.VIDEO,j);Ce(this,"url");this.url=T}}Pe.VideoMessage=u;class c extends n{constructor(T,j){super(m.IMAGE,j);Ce(this,"url");this.url=T}}Pe.ImageMessage=c;class h extends n{constructor(T,j){super(m.FILE,j);Ce(this,"url");this.url=T}}Pe.FileMessage=h;class d extends n{constructor(T,j){super(m.AUDIO,j);Ce(this,"url");this.url=T}}Pe.AudioMessage=d;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||(Pe.MessageTypeEnum=m={}));const g=y=>{switch(y.type){case m.TEXT:return y.text;case m.DETAIL:{const E=y;return`${E.title} // ${E.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 Pe.getStringRepresentationFromMessage=g,Pe}var zt={},Xg;function jh(){if(Xg)return zt;Xg=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.UserType=zt.PersonUser=zt.GuestUser=zt.BotUser=zt.User=void 0;class n{constructor(h,d,m,g){Ce(this,"type");Ce(this,"id");Ce(this,"name");Ce(this,"avatar");this.type=h,this.id=d,this.name=m,this.avatar=g}}zt.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}zt.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}zt.GuestUser=i;class l extends n{constructor(h,d,m){super(u.PERSON,h,d,m)}}zt.PersonUser=l;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(zt.UserType=u={})),zt}var Qg;function Cx(){if(Qg)return Ll;Qg=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=Bh(),r=jh(),i=It(),l=u=>{const c=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Ll.default=l,Ll}var Ul={},Kg;function Nx(){if(Kg)return Ul;Kg=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=Bh(),r=jh(),i=It(),l=(u,c={})=>{const h=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:h,payload:c}};return Ul.default=l,Ul}var Hl={},$g;function Dx(){if($g)return Hl;$g=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Hl.default=r,Hl}var zl={},Jg;function Mx(){if(Jg)return zl;Jg=1,Object.defineProperty(zl,"__esModule",{value:!0});const n=It(),r=()=>({type:n.RESTART_CHAT_REQUEST});return zl.default=r,zl}var kl={},Wg;function Bx(){if(Wg)return kl;Wg=1,Object.defineProperty(kl,"__esModule",{value:!0});const n=It(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return kl.default=r,kl}var Gl={},ey;function jx(){if(ey)return Gl;ey=1,Object.defineProperty(Gl,"__esModule",{value:!0});const n=It(),r=(i,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l}});return Gl.default=r,Gl}var ty;function Lx(){if(ty)return je;ty=1;var n=je&&je.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(je,"__esModule",{value:!0}),je.transcriptItemGuestReaction=je.sendMessageToGuest=je.restartChatRequest=je.requestNLUEvent=je.receiveTextMessageWithoutAnalysisFromGuest=je.receiveTextMessageFromGuest=je.openDrawer=je.guestLocaleChanged=je.guestDisconnected=je.guestConnected=je.feedbackFromGuestResponse=je.closeDrawer=void 0;const r=n(Tx());je.closeDrawer=r.default;const i=n(xx());je.feedbackFromGuestResponse=i.default;const l=n(Ax());je.guestConnected=l.default;const u=n(Ox());je.guestDisconnected=u.default;const c=n(wx());je.guestLocaleChanged=c.default;const h=n(Rx());je.openDrawer=h.default;const d=n(Cx());je.receiveTextMessageFromGuest=d.default;const m=n(Nx());je.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(Dx());je.requestNLUEvent=g.default;const y=n(Mx());je.restartChatRequest=y.default;const E=n(Bx());je.sendMessageToGuest=E.default;const T=n(jx());return je.transcriptItemGuestReaction=T.default,je}var sf={},ny;function Ux(){return ny||(ny=1,Object.defineProperty(sf,"__esModule",{value:!0})),sf}var ry;function Hx(){return ry||(ry=1,function(n){var r=ln&&ln.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=ln&&ln.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),l=ln&&ln.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}(),u=ln&&ln.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(Lx()),n.ActionTypes=l(It()),u(Ux(),n)}(ln)),ln}var kt={},lf={},ay;function zx(){return ay||(ay=1,Object.defineProperty(lf,"__esModule",{value:!0})),lf}var Zi={},iy;function kx(){if(iy)return Zi;iy=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,l){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,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,l){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,l,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,l){throw new Error("Method not implemented.")}async subscribeToReindex(i,l){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,l){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Zi.NullableKnowledgeBaseAdapter=n,Zi}var sy;function Gx(){if(sy)return kt;sy=1;var n=kt&&kt.__createBinding||(Object.create?function(u,c,h,d){d===void 0&&(d=h);var m=Object.getOwnPropertyDescriptor(c,h);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[h]}}),Object.defineProperty(u,d,m)}:function(u,c,h,d){d===void 0&&(d=h),u[d]=c[h]}),r=kt&&kt.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=kt&&kt.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(h){var d=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[d.length]=m);return d},u(c)};return function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var d=u(c),m=0;m<d.length;m++)d[m]!=="default"&&n(h,c,d[m]);return r(h,c),h}}();Object.defineProperty(kt,"__esModule",{value:!0}),kt.NullableCmsAdapter=kt.KnowledgeBase=void 0,kt.KnowledgeBase=i(zx());const l=kx();return kt.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},kt}var Fr={},of={},ly;function qx(){return ly||(ly=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var uf={},oy;function Ix(){return oy||(oy=1,Object.defineProperty(uf,"__esModule",{value:!0})),uf}var cf={},uy;function Fx(){return uy||(uy=1,Object.defineProperty(cf,"__esModule",{value:!0})),cf}var ff={},cy;function Vx(){return cy||(cy=1,Object.defineProperty(ff,"__esModule",{value:!0})),ff}var Xi={},fy;function Px(){if(fy)return Xi;fy=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.checkMiddlewareCondition=void 0;const n=async(r,i,l)=>(Array.isArray(r)?r:[r]).reduce(async(c,h)=>await c?await h(i,l):!1,Promise.resolve(!0));return Xi.checkMiddlewareCondition=n,Xi}var hf={},hy;function Yx(){return hy||(hy=1,Object.defineProperty(hf,"__esModule",{value:!0})),hf}var df={},dy;function Zx(){return dy||(dy=1,Object.defineProperty(df,"__esModule",{value:!0})),df}var mf={},my;function Xx(){return my||(my=1,Object.defineProperty(mf,"__esModule",{value:!0})),mf}var py;function Qx(){return py||(py=1,function(n){var r=Fr&&Fr.__createBinding||(Object.create?function(l,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(l,h,d)}:function(l,u,c,h){h===void 0&&(h=c),l[h]=u[c]}),i=Fr&&Fr.__exportStar||function(l,u){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,l,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(qx(),n),i(Ix(),n),i(Fx(),n),i(Vx(),n),i(Px(),n),i(Yx(),n),i(Zx(),n),i(Xx(),n)}(Fr)),Fr}var Vr={},on={},gy;function Kx(){if(gy)return on;gy=1,Object.defineProperty(on,"__esModule",{value:!0}),on.ButtonTypeEnum=on.PostbackButton=on.UrlButton=on.Button=void 0;class n{constructor(c,h){Ce(this,"title");Ce(this,"type");this.title=c,this.type=h}}on.Button=n;class r extends n{constructor(h,d){super(h,l.WEB_URL);Ce(this,"url");this.url=d}}on.UrlButton=r;class i extends n{constructor(h,d){super(h,l.POSTBACK);Ce(this,"payload");this.payload=d}}on.PostbackButton=i;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(on.ButtonTypeEnum=l={})),on}var pf={},yy;function $x(){return yy||(yy=1,Object.defineProperty(pf,"__esModule",{value:!0})),pf}var Qi={},_y;function Jx(){if(_y)return Qi;_y=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Qi.SatisfactionEnum=n={})),Qi}var vy;function by(){return vy||(vy=1,function(n){var r=Vr&&Vr.__createBinding||(Object.create?function(l,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(l,h,d)}:function(l,u,c,h){h===void 0&&(h=c),l[h]=u[c]}),i=Vr&&Vr.__exportStar||function(l,u){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,l,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(Kx(),n),i($x(),n),i(Jx(),n),i(Bh(),n),i(jh(),n)}(Vr)),Vr}var Ey;function Wx(){return Ey||(Ey=1,function(n){var r=sn&&sn.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=sn&&sn.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),l=sn&&sn.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)},u=sn&&sn.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,l(Hx(),n),n.CMS=u(Gx()),l(Qx(),n),l(by(),n),n.Model=u(by())}(sn)),sn}var Se=Wx();const Uv=n=>r=>(n.payload.type!==Se.ActionTypes.MESSAGE_FROM_GUEST&&r(Se.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),Hv=n=>(r,i)=>{const{quickReplies:l}=i().chat,u=l.find(c=>n.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?Uv({...u,label:n}):Se.Actions.receiveTextMessageFromGuest(n))},Lh="MESSAGE_TO_PARENT_PAGE",Uh="RESTORE_PREVIOUS_CHAT_MESSAGES",Hh="AUDIO_MESSAGE_FROM_USER",eA="EXPORT_TRANSCRIPT",zh="RECEIVE_SPEECH_TRANSCRIPTION",kh="ENABLE_CONVERSATION_RATING",zv="LOAD_SOURCE_INFOS_RESPONSE",Gh="LOAD_SOURCE_INFOS_ERROR",qh="LOAD_SOURCE_INFOS_REQUEST",Ih="CLOSE_SOURCE_INFOS",tA="webclient.get.started",kv="webclient.window.expand",Gv="webclient.window.close",qv="webclient.transcript.pdf.download",nA=[Lh,Uh,Hh,eA,zh,kh,qh,Ih],rA=n=>({type:Hh,buffer:n}),aA=n=>({type:zh,transcription:n}),iA=n=>({type:Se.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),sA=n=>({type:qv,payload:{clientName:n}}),lA=({rating:n})=>({type:kh,payload:{rating:n}}),oA=(n,r)=>({type:Se.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),Iv=n=>Se.Actions.requestNLUEvent(n),uA=n=>({type:Uh,messages:n}),cA=n=>{switch(n.type){case Se.ButtonTypeEnum.WEB_URL:return Fv(n.url);case Se.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},fA=n=>Fv(n),Fv=n=>({type:Lh,message:{type:"webclient.change.url",url:n}});function ht(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var hA=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sy=hA,gf=()=>Math.random().toString(36).substring(7).split("").join("."),dA={INIT:`@@redux/INIT${gf()}`,REPLACE:`@@redux/REPLACE${gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gf()}`},lo=dA;function Fh(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 Vv(n,r,i){if(typeof n!="function")throw new Error(ht(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ht(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ht(1));return i(Vv)(n,r)}let l=n,u=r,c=new Map,h=c,d=0,m=!1;function g(){h===c&&(h=new Map,c.forEach((x,M)=>{h.set(M,x)}))}function y(){if(m)throw new Error(ht(3));return u}function E(x){if(typeof x!="function")throw new Error(ht(4));if(m)throw new Error(ht(5));let M=!0;g();const D=d++;return h.set(D,x),function(){if(M){if(m)throw new Error(ht(6));M=!1,g(),h.delete(D),c=null}}}function T(x){if(!Fh(x))throw new Error(ht(7));if(typeof x.type>"u")throw new Error(ht(8));if(typeof x.type!="string")throw new Error(ht(17));if(m)throw new Error(ht(9));try{m=!0,u=l(u,x)}finally{m=!1}return(c=h).forEach(D=>{D()}),x}function j(x){if(typeof x!="function")throw new Error(ht(10));l=x,T({type:lo.REPLACE})}function b(){const x=E;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(ht(11));function D(){const w=M;w.next&&w.next(y())}return D(),{unsubscribe:x(D)}},[Sy](){return this}}}return T({type:lo.INIT}),{dispatch:T,subscribe:E,getState:y,replaceReducer:j,[Sy]:b}}function mA(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:lo.INIT})>"u")throw new Error(ht(12));if(typeof i(void 0,{type:lo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ht(13))})}function Pv(n){const r=Object.keys(n),i={};for(let c=0;c<r.length;c++){const h=r[c];typeof n[h]=="function"&&(i[h]=n[h])}const l=Object.keys(i);let u;try{mA(i)}catch(c){u=c}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let y=0;y<l.length;y++){const E=l[y],T=i[E],j=h[E],b=T(j,d);if(typeof b>"u")throw d&&d.type,new Error(ht(14));g[E]=b,m=m||b!==j}return m=m||l.length!==Object.keys(h).length,m?g:h}}function oo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...l)=>r(i(...l)))}function pA(...n){return r=>(i,l)=>{const u=r(i,l);let c=()=>{throw new Error(ht(15))};const h={getState:u.getState,dispatch:(m,...g)=>c(m,...g)},d=n.map(m=>m(h));return c=oo(...d)(u.dispatch),{...u,dispatch:c}}}function gA(n){return Fh(n)&&"type"in n&&typeof n.type=="string"}var Yv=Symbol.for("immer-nothing"),Ty=Symbol.for("immer-draftable"),Gt=Symbol.for("immer-state");function fn(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var qa=Object.getPrototypeOf;function Jr(n){return!!n&&!!n[Gt]}function Zn(n){var r;return n?Zv(n)||Array.isArray(n)||!!n[Ty]||!!((r=n.constructor)!=null&&r[Ty])||bo(n)||Eo(n):!1}var yA=Object.prototype.constructor.toString();function Zv(n){if(!n||typeof n!="object")return!1;const r=qa(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)===yA}function uo(n,r){vo(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,l)=>r(l,i,n))}function vo(n){const r=n[Gt];return r?r.type_:Array.isArray(n)?1:bo(n)?2:Eo(n)?3:0}function dh(n,r){return vo(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function Xv(n,r,i){const l=vo(n);l===2?n.set(r,i):l===3?n.add(i):n[r]=i}function _A(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function bo(n){return n instanceof Map}function Eo(n){return n instanceof Set}function Xr(n){return n.copy_||n.base_}function mh(n,r){if(bo(n))return new Map(n);if(Eo(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=Zv(n);if(r===!0||r==="class_only"&&!i){const l=Object.getOwnPropertyDescriptors(n);delete l[Gt];let u=Reflect.ownKeys(l);for(let c=0;c<u.length;c++){const h=u[c],d=l[h];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(l[h]={configurable:!0,writable:!0,enumerable:d.enumerable,value:n[h]})}return Object.create(qa(n),l)}else{const l=qa(n);if(l!==null&&i)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function Vh(n,r=!1){return So(n)||Jr(n)||!Zn(n)||(vo(n)>1&&(n.set=n.add=n.clear=n.delete=vA),Object.freeze(n),r&&Object.entries(n).forEach(([i,l])=>Vh(l,!0))),n}function vA(){fn(2)}function So(n){return Object.isFrozen(n)}var bA={};function Wr(n){const r=bA[n];return r||fn(0,n),r}var is;function Qv(){return is}function EA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xy(n,r){r&&(Wr("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function ph(n){gh(n),n.drafts_.forEach(SA),n.drafts_=null}function gh(n){n===is&&(is=n.parent_)}function Ay(n){return is=EA(is,n)}function SA(n){const r=n[Gt];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Oy(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[Gt].modified_&&(ph(r),fn(4)),Zn(n)&&(n=co(r,n),r.parent_||fo(r,n)),r.patches_&&Wr("Patches").generateReplacementPatches_(i[Gt].base_,n,r.patches_,r.inversePatches_)):n=co(r,i,[]),ph(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==Yv?n:void 0}function co(n,r,i){if(So(r))return r;const l=r[Gt];if(!l)return uo(r,(u,c)=>wy(n,l,r,u,c,i)),r;if(l.scope_!==n)return r;if(!l.modified_)return fo(n,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const u=l.copy_;let c=u,h=!1;l.type_===3&&(c=new Set(u),u.clear(),h=!0),uo(c,(d,m)=>wy(n,l,u,d,m,i,h)),fo(n,u,!1),i&&n.patches_&&Wr("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function wy(n,r,i,l,u,c,h){if(Jr(u)){const d=c&&r&&r.type_!==3&&!dh(r.assigned_,l)?c.concat(l):void 0,m=co(n,u,d);if(Xv(i,l,m),Jr(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Zn(u)&&!So(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;co(n,u),(!r||!r.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,l)&&fo(n,u)}}function fo(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Vh(r,i)}function TA(n,r){const i=Array.isArray(n),l={type_:i?1:0,scope_:r?r.scope_:Qv(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,c=Ph;i&&(u=[l],c=ss);const{revoke:h,proxy:d}=Proxy.revocable(u,c);return l.draft_=d,l.revoke_=h,d}var Ph={get(n,r){if(r===Gt)return n;const i=Xr(n);if(!dh(i,r))return xA(n,i,r);const l=i[r];return n.finalized_||!Zn(l)?l:l===yf(n.base_,r)?(_f(n),n.copy_[r]=_h(l,n)):l},has(n,r){return r in Xr(n)},ownKeys(n){return Reflect.ownKeys(Xr(n))},set(n,r,i){const l=Kv(Xr(n),r);if(l!=null&&l.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const u=yf(Xr(n),r),c=u==null?void 0:u[Gt];if(c&&c.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(_A(i,u)&&(i!==void 0||dh(n.base_,r)))return!0;_f(n),yh(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 yf(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,_f(n),yh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Xr(n),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){fn(11)},getPrototypeOf(n){return qa(n.base_)},setPrototypeOf(){fn(12)}},ss={};uo(Ph,(n,r)=>{ss[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});ss.deleteProperty=function(n,r){return ss.set.call(this,n,r,void 0)};ss.set=function(n,r,i){return Ph.set.call(this,n[0],r,i,n[0])};function yf(n,r){const i=n[Gt];return(i?Xr(i):n)[r]}function xA(n,r,i){var u;const l=Kv(r,i);return l?"value"in l?l.value:(u=l.get)==null?void 0:u.call(n.draft_):void 0}function Kv(n,r){if(!(r in n))return;let i=qa(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=qa(i)}}function yh(n){n.modified_||(n.modified_=!0,n.parent_&&yh(n.parent_))}function _f(n){n.copy_||(n.copy_=mh(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var AA=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,l)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const h=this;return function(m=c,...g){return h.produce(m,y=>i.call(this,y,...g))}}typeof i!="function"&&fn(6),l!==void 0&&typeof l!="function"&&fn(7);let u;if(Zn(r)){const c=Ay(this),h=_h(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?ph(c):gh(c)}return xy(c,l),Oy(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===Yv&&(u=void 0),this.autoFreeze_&&Vh(u,!0),l){const c=[],h=[];Wr("Patches").generateReplacementPatches_(r,u,c,h),l(c,h)}return u}else fn(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...d)=>this.produceWithPatches(h,m=>r(m,...d));let l,u;return[this.produce(r,i,(h,d)=>{l=h,u=d}),l,u]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){Zn(n)||fn(8),Jr(n)&&(n=OA(n));const r=Ay(this),i=_h(n,void 0);return i[Gt].isManual_=!0,gh(r),i}finishDraft(n,r){const i=n&&n[Gt];(!i||!i.isManual_)&&fn(9);const{scope_:l}=i;return xy(l,r),Oy(void 0,l)}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 l=Wr("Patches").applyPatches_;return Jr(n)?l(n,r):this.produce(n,u=>l(u,r))}};function _h(n,r){const i=bo(n)?Wr("MapSet").proxyMap_(n,r):Eo(n)?Wr("MapSet").proxySet_(n,r):TA(n,r);return(r?r.scope_:Qv()).drafts_.push(i),i}function OA(n){return Jr(n)||fn(10,n),$v(n)}function $v(n){if(!Zn(n)||So(n))return n;const r=n[Gt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=mh(n,r.scope_.immer_.useStrictShallowCopy_)}else i=mh(n,!0);return uo(i,(l,u)=>{Xv(i,l,$v(u))}),r&&(r.finalized_=!1),i}var qt=new AA,Jv=qt.produce;qt.produceWithPatches.bind(qt);qt.setAutoFreeze.bind(qt);qt.setUseStrictShallowCopy.bind(qt);qt.applyPatches.bind(qt);qt.createDraft.bind(qt);qt.finishDraft.bind(qt);function Wv(n){return({dispatch:i,getState:l})=>u=>c=>typeof c=="function"?c(i,l,n):u(c)}var wA=Wv(),RA=Wv,CA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)};function Ry(n,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(Vn(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:l[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=l=>gA(l)&&l.type===n,i}var eb=class ts extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,ts.prototype)}static get[Symbol.species](){return ts}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new ts(...r[0].concat(this)):new ts(...r.concat(this))}};function Cy(n){return Zn(n)?Jv(n,()=>{}):n}function ql(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function NA(n){return typeof n=="boolean"}var DA=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let h=new eb;return i&&(NA(i)?h.push(wA):h.push(RA(i.extraArgument))),h},MA="RTK_autoBatch",Ny=n=>r=>{setTimeout(r,n)},BA=(n={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,c=!1,h=!1;const d=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ny(10):n.type==="callback"?n.queueNotification:Ny(n.timeout),g=()=>{h=!1,c&&(c=!1,d.forEach(y=>y()))};return Object.assign({},l,{subscribe(y){const E=()=>u&&y(),T=l.subscribe(E);return d.add(y),()=>{T(),d.delete(y)}},dispatch(y){var E;try{return u=!((E=y==null?void 0:y.meta)!=null&&E[MA]),c=!u,c&&(h||(h=!0,m(g))),l.dispatch(y)}finally{u=!0}}})},jA=n=>function(i){const{autoBatch:l=!0}=i??{};let u=new eb(n);return l&&u.push(BA(typeof l=="object"?l:void 0)),u};function LA(n){const r=DA(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:c=void 0,enhancers:h=void 0}=n||{};let d;if(typeof i=="function")d=i;else if(Fh(i))d=Pv(i);else throw new Error(Vn(1));let m;typeof l=="function"?m=l(r):m=r();let g=oo;u&&(g=CA({trace:!1,...typeof u=="object"&&u}));const y=pA(...m),E=jA(y);let T=typeof h=="function"?h(E):E();const j=g(...T);return Vv(d,c,j)}function tb(n){const r={},i=[];let l;const u={addCase(c,h){const d=typeof c=="string"?c:c.type;if(!d)throw new Error(Vn(28));if(d in r)throw new Error(Vn(29));return r[d]=h,u},addMatcher(c,h){return i.push({matcher:c,reducer:h}),u},addDefaultCase(c){return l=c,u}};return n(u),[r,i,l]}function UA(n){return typeof n=="function"}function HA(n,r){let[i,l,u]=tb(r),c;if(UA(n))c=()=>Cy(n());else{const d=Cy(n);c=()=>d}function h(d=c(),m){let g=[i[m.type],...l.filter(({matcher:y})=>y(m)).map(({reducer:y})=>y)];return g.filter(y=>!!y).length===0&&(g=[u]),g.reduce((y,E)=>{if(E)if(Jr(y)){const j=E(y,m);return j===void 0?y:j}else{if(Zn(y))return Jv(y,T=>E(T,m));{const T=E(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},d)}return h.getInitialState=c,h}var zA=Symbol.for("rtk-slice-createasyncthunk");function kA(n,r){return`${n}/${r}`}function GA({creators:n}={}){var i;const r=(i=n==null?void 0:n.asyncThunk)==null?void 0:i[zA];return function(u){const{name:c,reducerPath:h=c}=u;if(!c)throw new Error(Vn(11));const d=(typeof u.reducers=="function"?u.reducers(IA()):u.reducers)||{},m=Object.keys(d),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(w,S){const G=typeof w=="string"?w:w.type;if(!G)throw new Error(Vn(12));if(G in g.sliceCaseReducersByType)throw new Error(Vn(13));return g.sliceCaseReducersByType[G]=S,y},addMatcher(w,S){return g.sliceMatchers.push({matcher:w,reducer:S}),y},exposeAction(w,S){return g.actionCreators[w]=S,y},exposeCaseReducer(w,S){return g.sliceCaseReducersByName[w]=S,y}};m.forEach(w=>{const S=d[w],G={reducerName:w,type:kA(c,w),createNotation:typeof u.reducers=="function"};VA(S)?YA(G,S,y,r):FA(G,S,y)});function E(){const[w={},S=[],G=void 0]=typeof u.extraReducers=="function"?tb(u.extraReducers):[u.extraReducers],Y={...w,...g.sliceCaseReducersByType};return HA(u.initialState,X=>{for(let J in Y)X.addCase(J,Y[J]);for(let J of g.sliceMatchers)X.addMatcher(J.matcher,J.reducer);for(let J of S)X.addMatcher(J.matcher,J.reducer);G&&X.addDefaultCase(G)})}const T=w=>w,j=new Map,b=new WeakMap;let C;function x(w,S){return C||(C=E()),C(w,S)}function M(){return C||(C=E()),C.getInitialState()}function D(w,S=!1){function G(X){let J=X[w];return typeof J>"u"&&S&&(J=ql(b,G,M)),J}function Y(X=T){const J=ql(j,S,()=>new WeakMap);return ql(J,X,()=>{const W={};for(const[de,ie]of Object.entries(u.selectors??{}))W[de]=qA(ie,X,()=>ql(b,X,M),S);return W})}return{reducerPath:w,getSelectors:Y,get selectors(){return Y(G)},selectSlice:G}}const A={name:c,reducer:x,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:M,...D(h),injectInto(w,{reducerPath:S,...G}={}){const Y=S??h;return w.inject({reducerPath:Y,reducer:x},G),{...A,...D(Y,!0)}}};return A}}function qA(n,r,i,l){function u(c,...h){let d=r(c);return typeof d>"u"&&l&&(d=i()),n(d,...h)}return u.unwrapped=n,u}var Yh=GA();function IA(){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 FA({type:n,reducerName:r,createNotation:i},l,u){let c,h;if("reducer"in l){if(i&&!PA(l))throw new Error(Vn(17));c=l.reducer,h=l.prepare}else c=l;u.addCase(n,c).exposeCaseReducer(r,c).exposeAction(r,h?Ry(n,h):Ry(n))}function VA(n){return n._reducerDefinitionType==="asyncThunk"}function PA(n){return n._reducerDefinitionType==="reducerWithPrepare"}function YA({type:n,reducerName:r},i,l,u){if(!u)throw new Error(Vn(18));const{payloadCreator:c,fulfilled:h,pending:d,rejected:m,settled:g,options:y}=i,E=u(n,c,y);l.exposeAction(r,E),h&&l.addCase(E.fulfilled,h),d&&l.addCase(E.pending,d),m&&l.addCase(E.rejected,m),g&&l.addMatcher(E.settled,g),l.exposeCaseReducer(r,{fulfilled:h||Il,pending:d||Il,rejected:m||Il,settled:g||Il})}function Il(){}function Vn(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 ZA={formValues:{}},nb=Yh({name:"start-screen",initialState:ZA,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:XA,showStartScreen:QA}=nb.actions,KA=nb.reducer,rb="RESET_CHAT_STATE",$A=()=>({type:Gv}),JA=()=>({type:rb}),Dy=(n,r,i)=>l=>{try{l({type:qh,payload:{chunkId:i}}),My(n,r,i,!1,l),My(n,r,i,!0,l)}catch(u){console.error("Error loading source infos:",u),l({type:Gh})}},My=(n,r,i,l,u)=>{const c=`/${n}/me/chat-widget/transcript/${r}/chunks/${i}?highlight=${l}`;fetch(c).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const d={...h,chunkId:i,highlighted:l};u({type:zv,payload:d})}).catch(h=>{console.error("Error fetching source infos:",h),u({type:Gh,payload:{highlighted:l}})})},WA=()=>({type:Ih}),Zh="CONNECT",Xh="CONNECTING",Qh="CONNECTED",Kh="DISCONNECTED",$h="RECONNECTED",Jh="START",ab="CLEAR_SESSION_ID",eO=[Zh,Xh,Qh,Kh,$h],tO=(n,r)=>({type:Zh,clientName:n,querystrings:r}),nO=()=>({type:Xh}),rO=()=>({type:Qh}),aO=()=>({type:Kh}),iO=()=>({type:$h}),ib=(n,r)=>async(i,l)=>{const u=l().startScreen.formValues,c=await fetch(`/${n}/me/session`,{method:"GET",credentials:"include"});if(!c.ok)throw new Error(`Failed to start chat session: ${c.status} ${c.statusText}`);const{sessionIdToken:h,userIdToken:d}=await c.json();i({type:Jh,payload:{sessionIdToken:h,userIdToken:d,clientName:n,querystrings:{...r,...u}}})},To=(n,r)=>async(i,l)=>{if(await sO(n),i(JA()),l().settings.enableStartScreen)i(QA());else return i(ib(n,r))},sO=async n=>{const r=await fetch(`/${n}/me/session`,{method:"DELETE",credentials:"include"});if(!r.ok)throw new Error(`Failed to terminate session: ${r.status} ${r.statusText}`)},Xe=()=>{const n=yo();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var Kr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Kr||{}),ho=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(ho||{});const lO="_container_q2uun_1",oO="_chatcontent_q2uun_6",uO="_accessabilityHidden_q2uun_12",vf={container:lO,chatcontent:oO,accessabilityHidden:uO},cO="_messageContainer_ofi0g_1",fO="_messages_ofi0g_12",By={messageContainer:cO,messages:fO};function Qr(){return Qr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(n[l]=i[l])}return n},Qr.apply(this,arguments)}const hO=["children","options"],oe={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var jy;(function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"})(jy||(jy={}));const Ly=["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"}),Uy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},dO=["style","script"],mO=["src","href","data","formAction","srcDoc","action"],pO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,gO=/mailto:/i,yO=/\n{2,}$/,Hy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,_O=/^ *> ?/gm,vO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,bO=/^ {2,}\n/,EO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,zy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ky=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,SO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,TO=/^(?:\n *)*\n/,xO=/\r\n?/g,AO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,OO=/^\[\^([^\]]+)]/,wO=/\f/g,RO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,CO=/^\s*?\[(x|\s)\]/,Gy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,qy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Iy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,bf=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,NO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Fy=/^<!--[\s\S]*?(?:-->)/,DO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ef=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,MO=/^\{.*\}$/,BO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,jO=/^<([^ >]+@[^ >]+)>/,LO=/^<([^ >]+:\/[^ >]+)>/,UO=/-([a-z])?/gi,Vy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,HO=/^[^\n]+(?: \n|\n{2,})/,zO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,kO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,GO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,qO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,IO=/\t/g,FO=/(^ *\||\| *$)/g,VO=/^ *:-+: *$/,PO=/^ *:-+ *$/,YO=/^ *-+: *$/,xo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",ZO=new RegExp(`^([*_])\\1${xo}\\1\\1(?!\\1)`),XO=new RegExp(`^([*_])${xo}\\1(?!\\1)`),QO=new RegExp(`^(==)${xo}\\1`),KO=new RegExp(`^(~~)${xo}\\1`),$O=/^\\([^0-9A-Za-z\s])/,Py=/\\([^0-9A-Za-z\s])/g,JO=/^(?: |[\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[! ])*)/,WO=/^\n+/,ew=/^([ \t]*)/,tw=/\\([^\\])/g,nw=/(?:^|\n)( *)$/,Wh="(?:\\d+\\.)",ed="(?:[*+-])";function sb(n){return"( *)("+(n===1?Wh:ed)+") +"}const lb=sb(1),ob=sb(2);function ub(n){return new RegExp("^"+(n===1?lb:ob))}const rw=ub(1),aw=ub(2);function cb(n){return new RegExp("^"+(n===1?lb:ob)+"[^\\n]*(?:\\n(?!\\1"+(n===1?Wh:ed)+" )[^\\n]*)*(\\n|$)","gm")}const iw=cb(1),sw=cb(2);function fb(n){const r=n===1?Wh:ed;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const hb=fb(1),db=fb(2);function Yy(n,r){const i=r===1,l=i?hb:db,u=i?iw:sw,c=i?rw:aw;return{match:Ia(function(h,d){const m=nw.exec(d.prevCapture);return m&&(d.list||!d.inline&&!d.simple)?l.exec(h=m[1]+h):null}),order:1,parse(h,d,m){const g=i?+h[2]:void 0,y=h[0].replace(yO,`
|
|
94
|
-
`).match(u);let E=!1;return{items:y.map(function(T,j){const b=c.exec(T)[0].length,C=new RegExp("^ {1,"+b+"}","gm"),x=T.replace(C,"").replace(c,""),M=j===y.length-1,D=x.indexOf(`
|
|
95
|
-
|
|
96
|
-
`)!==-1||M&&E;E=D;const A=m.inline,w=m.list;let S;m.list=!0,D?(m.inline=!1,S=as(x)+`
|
|
97
|
-
|
|
98
|
-
`):(m.inline=!0,S=as(x));const G=d(S,m);return m.inline=A,m.list=w,G}),ordered:i,start:g}},render:(h,d,m)=>n(h.ordered?"ol":"ul",{key:m.key,start:h.type===oe.orderedList?h.start:void 0},h.items.map(function(g,y){return n("li",{key:y},d(g,m))}))}}const lw=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),ow=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function as(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function Ki(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 uw(n){return YO.test(n)?"right":VO.test(n)?"center":PO.test(n)?"left":null}function Zy(n,r,i,l){const u=i.inTable;i.inTable=!0;let c=[[]],h="";function d(){if(!h)return;const m=c[c.length-1];m.push.apply(m,r(h,i)),h=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,y)=>{m.trim()==="|"&&(d(),l)?g!==0&&g!==y.length-1&&c.push([]):h+=m}),d(),i.inTable=u,c}function cw(n,r,i){i.inline=!0;const l=n[2]?n[2].replace(FO,"").split("|").map(uw):[],u=n[3]?function(h,d,m){return h.trim().split(`
|
|
99
|
-
`).map(function(g){return Zy(g,d,m,!0)})}(n[3],r,i):[],c=Zy(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:l,cells:u,header:c,type:oe.table}:{children:c,type:oe.paragraph}}function Xy(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function Ia(n){return n.inline=1,n}function _r(n){return Ia(function(r,i){return i.inline?n.exec(r):null})}function vr(n){return Ia(function(r,i){return i.inline||i.simple?n.exec(r):null})}function qn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function $i(n){return Ia(function(r){return n.exec(r)})}const fw=/(javascript|vbscript|data(?!:image)):/i;function hw(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(fw.test(r))return null}catch{return null}return n}function Qy(n){return n.replace(tw,"$1")}function to(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=n(r,i);return i.inline=l,i.simple=u,c}function dw(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=n(r,i);return i.inline=l,i.simple=u,c}function mw(n,r,i){const l=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=l,u}const Sf=(n,r,i)=>({children:to(r,n[2],i)});function Tf(){return{}}function xf(){return null}function pw(...n){return n.filter(Boolean).join(" ")}function Af(n,r,i){let l=n;const u=r.split(".");for(;u.length&&(l=l[u[0]],l!==void 0);)u.shift();return l||i}function gw(n="",r={}){r.overrides=r.overrides||{},r.sanitizer=r.sanitizer||hw,r.slugify=r.slugify||Ki,r.namedCodesToUnicode=r.namedCodesToUnicode?Qr({},Uy,r.namedCodesToUnicode):Uy,r.createElement=r.createElement||k.createElement;const i=[Hy,zy,ky,r.enforceAtxHeadings?qy:Gy,Iy,Vy,hb,db],l=[...i,HO,bf,Fy,Ef];function u(b,C,...x){const M=Af(r.overrides,`${b}.props`,{});return r.createElement(function(D,A){const w=Af(A,D);return w?typeof w=="function"||typeof w=="object"&&"render"in w?w:Af(A,`${D}.component`,D):D}(b,r.overrides),Qr({},C,M,{className:pw(C==null?void 0:C.className,M.className)||void 0}),...x)}function c(b){b=b.replace(RO,"");let C=!1;r.forceInline?C=!0:r.forceBlock||(C=qO.test(b)===!1);const x=E(y(C?b:`${as(b).replace(WO,"")}
|
|
100
|
-
|
|
101
|
-
`,{inline:C}));for(;typeof x[x.length-1]=="string"&&!x[x.length-1].trim();)x.pop();if(r.wrapper===null)return x;const M=r.wrapper||(C?"span":"div");let D;if(x.length>1||r.forceWrapper)D=x;else{if(x.length===1)return D=x[0],typeof D=="string"?u("span",{key:"outer"},D):D;D=null}return r.createElement(M,{key:"outer"},D)}function h(b,C){const x=C.match(pO);return x?x.reduce(function(M,D){const A=D.indexOf("=");if(A!==-1){const w=function(X){return X.indexOf("-")!==-1&&X.match(DO)===null&&(X=X.replace(UO,function(J,W){return W.toUpperCase()})),X}(D.slice(0,A)).trim(),S=function(X){const J=X[0];return(J==='"'||J==="'")&&X.length>=2&&X[X.length-1]===J?X.slice(1,-1):X}(D.slice(A+1).trim()),G=Ly[w]||w;if(G==="ref")return M;const Y=M[G]=function(X,J,W,de){return J==="style"?function(ie){const he=[];let ke="",ge=!1,q=!1,K="";if(!ie)return he;for(let _e=0;_e<ie.length;_e++){const R=ie[_e];if(R!=='"'&&R!=="'"||ge||(q?R===K&&(q=!1,K=""):(q=!0,K=R)),R==="("&&ke.endsWith("url")?ge=!0:R===")"&&ge&&(ge=!1),R!==";"||q||ge)ke+=R;else{const V=ke.trim();if(V){const $=V.indexOf(":");if($>0){const Q=V.slice(0,$).trim(),ae=V.slice($+1).trim();he.push([Q,ae])}}ke=""}}const ne=ke.trim();if(ne){const _e=ne.indexOf(":");if(_e>0){const R=ne.slice(0,_e).trim(),V=ne.slice(_e+1).trim();he.push([R,V])}}return he}(W).reduce(function(ie,[he,ke]){return ie[he.replace(/(-[a-z])/g,ge=>ge[1].toUpperCase())]=de(ke,X,he),ie},{}):mO.indexOf(J)!==-1?de(W,X,J):(W.match(MO)&&(W=W.slice(1,W.length-1)),W==="true"||W!=="false"&&W)}(b,w,S,r.sanitizer);typeof Y=="string"&&(bf.test(Y)||Ef.test(Y))&&(M[G]=c(Y.trim()))}else D!=="style"&&(M[Ly[D]||D]=!0);return M},{}):null}const d=[],m={},g={[oe.blockQuote]:{match:qn(Hy),order:1,parse(b,C,x){const[,M,D]=b[0].replace(_O,"").match(vO);return{alert:M,children:C(D,x)}},render(b,C,x){const M={key:x.key};return b.alert&&(M.className="markdown-alert-"+r.slugify(b.alert.toLowerCase(),Ki),b.children.unshift({attrs:{},children:[{type:oe.text,text:b.alert}],noInnerParse:!0,type:oe.htmlBlock,tag:"header"})),u("blockquote",M,C(b.children,x))}},[oe.breakLine]:{match:$i(bO),order:1,parse:Tf,render:(b,C,x)=>u("br",{key:x.key})},[oe.breakThematic]:{match:qn(EO),order:1,parse:Tf,render:(b,C,x)=>u("hr",{key:x.key})},[oe.codeBlock]:{match:qn(ky),order:0,parse:b=>({lang:void 0,text:as(b[0].replace(/^ {4}/gm,"")).replace(Py,"$1")}),render:(b,C,x)=>u("pre",{key:x.key},u("code",Qr({},b.attrs,{className:b.lang?`lang-${b.lang}`:""}),b.text))},[oe.codeFenced]:{match:qn(zy),order:0,parse:b=>({attrs:h("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:oe.codeBlock})},[oe.codeInline]:{match:vr(SO),order:3,parse:b=>({text:b[2].replace(Py,"$1")}),render:(b,C,x)=>u("code",{key:x.key},b.text)},[oe.footnote]:{match:qn(AO),order:0,parse:b=>(d.push({footnote:b[2],identifier:b[1]}),{}),render:xf},[oe.footnoteReference]:{match:_r(OO),order:1,parse:b=>({target:`#${r.slugify(b[1],Ki)}`,text:b[1]}),render:(b,C,x)=>u("a",{key:x.key,href:r.sanitizer(b.target,"a","href")},u("sup",{key:x.key},b.text))},[oe.gfmTask]:{match:_r(CO),order:1,parse:b=>({completed:b[1].toLowerCase()==="x"}),render:(b,C,x)=>u("input",{checked:b.completed,key:x.key,readOnly:!0,type:"checkbox"})},[oe.heading]:{match:qn(r.enforceAtxHeadings?qy:Gy),order:1,parse:(b,C,x)=>({children:to(C,b[2],x),id:r.slugify(b[2],Ki),level:b[1].length}),render:(b,C,x)=>u(`h${b.level}`,{id:b.id,key:x.key},C(b.children,x))},[oe.headingSetext]:{match:qn(Iy),order:0,parse:(b,C,x)=>({children:to(C,b[1],x),level:b[2]==="="?1:2,type:oe.heading})},[oe.htmlBlock]:{match:$i(bf),order:1,parse(b,C,x){const[,M]=b[3].match(ew),D=new RegExp(`^${M}`,"gm"),A=b[3].replace(D,""),w=(S=A,l.some(W=>W.test(S))?mw:to);var S;const G=b[1].toLowerCase(),Y=dO.indexOf(G)!==-1,X=(Y?G:b[1]).trim(),J={attrs:h(X,b[2]),noInnerParse:Y,tag:X};return x.inAnchor=x.inAnchor||G==="a",Y?J.text=b[3]:J.children=w(C,A,x),x.inAnchor=!1,J},render:(b,C,x)=>u(b.tag,Qr({key:x.key},b.attrs),b.text||(b.children?C(b.children,x):""))},[oe.htmlSelfClosing]:{match:$i(Ef),order:1,parse(b){const C=b[1].trim();return{attrs:h(C,b[2]||""),tag:C}},render:(b,C,x)=>u(b.tag,Qr({},b.attrs,{key:x.key}))},[oe.htmlComment]:{match:$i(Fy),order:1,parse:()=>({}),render:xf},[oe.image]:{match:vr(ow),order:1,parse:b=>({alt:b[1],target:Qy(b[2]),title:b[3]}),render:(b,C,x)=>u("img",{key:x.key,alt:b.alt||void 0,title:b.title||void 0,src:r.sanitizer(b.target,"img","src")})},[oe.link]:{match:_r(lw),order:3,parse:(b,C,x)=>({children:dw(C,b[1],x),target:Qy(b[2]),title:b[3]}),render:(b,C,x)=>u("a",{key:x.key,href:r.sanitizer(b.target,"a","href"),title:b.title},C(b.children,x))},[oe.linkAngleBraceStyleDetector]:{match:_r(LO),order:0,parse:b=>({children:[{text:b[1],type:oe.text}],target:b[1],type:oe.link})},[oe.linkBareUrlDetector]:{match:Ia((b,C)=>C.inAnchor||r.disableAutoLink?null:_r(BO)(b,C)),order:0,parse:b=>({children:[{text:b[1],type:oe.text}],target:b[1],title:void 0,type:oe.link})},[oe.linkMailtoDetector]:{match:_r(jO),order:0,parse(b){let C=b[1],x=b[1];return gO.test(x)||(x="mailto:"+x),{children:[{text:C.replace("mailto:",""),type:oe.text}],target:x,type:oe.link}}},[oe.orderedList]:Yy(u,1),[oe.unorderedList]:Yy(u,2),[oe.newlineCoalescer]:{match:qn(TO),order:3,parse:Tf,render:()=>`
|
|
102
|
-
`},[oe.paragraph]:{match:Ia(function(b,C){if(C.inline||C.simple)return null;let x="";b.split(`
|
|
103
|
-
`).every(D=>(D+=`
|
|
104
|
-
`,!i.some(A=>A.test(D))&&(x+=D,!!D.trim())));const M=as(x);return M==""?null:[x,,M]}),order:3,parse:Sf,render:(b,C,x)=>u("p",{key:x.key},C(b.children,x))},[oe.ref]:{match:_r(zO),order:0,parse:b=>(m[b[1]]={target:b[2],title:b[4]},{}),render:xf},[oe.refImage]:{match:vr(kO),order:0,parse:b=>({alt:b[1]||void 0,ref:b[2]}),render:(b,C,x)=>m[b.ref]?u("img",{key:x.key,alt:b.alt,src:r.sanitizer(m[b.ref].target,"img","src"),title:m[b.ref].title}):null},[oe.refLink]:{match:_r(GO),order:0,parse:(b,C,x)=>({children:C(b[1],x),fallbackChildren:b[0],ref:b[2]}),render:(b,C,x)=>m[b.ref]?u("a",{key:x.key,href:r.sanitizer(m[b.ref].target,"a","href"),title:m[b.ref].title},C(b.children,x)):u("span",{key:x.key},b.fallbackChildren)},[oe.table]:{match:qn(Vy),order:1,parse:cw,render(b,C,x){const M=b;return u("table",{key:x.key},u("thead",null,u("tr",null,M.header.map(function(D,A){return u("th",{key:A,style:Xy(M,A)},C(D,x))}))),u("tbody",null,M.cells.map(function(D,A){return u("tr",{key:A},D.map(function(w,S){return u("td",{key:S,style:Xy(M,S)},C(w,x))}))})))}},[oe.text]:{match:$i(JO),order:4,parse:b=>({text:b[0].replace(NO,(C,x)=>r.namedCodesToUnicode[x]?r.namedCodesToUnicode[x]:C)}),render:b=>b.text},[oe.textBolded]:{match:vr(ZO),order:2,parse:(b,C,x)=>({children:C(b[2],x)}),render:(b,C,x)=>u("strong",{key:x.key},C(b.children,x))},[oe.textEmphasized]:{match:vr(XO),order:3,parse:(b,C,x)=>({children:C(b[2],x)}),render:(b,C,x)=>u("em",{key:x.key},C(b.children,x))},[oe.textEscaped]:{match:vr($O),order:1,parse:b=>({text:b[1],type:oe.text})},[oe.textMarked]:{match:vr(QO),order:3,parse:Sf,render:(b,C,x)=>u("mark",{key:x.key},C(b.children,x))},[oe.textStrikethroughed]:{match:vr(KO),order:3,parse:Sf,render:(b,C,x)=>u("del",{key:x.key},C(b.children,x))}};r.disableParsingRawHTML===!0&&(delete g[oe.htmlBlock],delete g[oe.htmlSelfClosing]);const y=function(b){let C=Object.keys(b);function x(M,D){let A,w,S=[],G="",Y="";for(D.prevCapture=D.prevCapture||"";M;){let X=0;for(;X<C.length;){if(G=C[X],A=b[G],D.inline&&!A.match.inline){X++;continue}const J=A.match(M,D);if(J){Y=J[0],D.prevCapture+=Y,M=M.substring(Y.length),w=A.parse(J,x,D),w.type==null&&(w.type=G),S.push(w);break}X++}}return D.prevCapture="",S}return C.sort(function(M,D){let A=b[M].order,w=b[D].order;return A!==w?A-w:M<D?-1:1}),function(M,D){return x(function(A){return A.replace(xO,`
|
|
105
|
-
`).replace(wO,"").replace(IO," ")}(M),D)}}(g),E=(T=function(b,C){return function(x,M,D){const A=b[x.type].render;return C?C(()=>A(x,M,D),x,M,D):A(x,M,D)}}(g,r.renderRule),function b(C,x={}){if(Array.isArray(C)){const M=x.key,D=[];let A=!1;for(let w=0;w<C.length;w++){x.key=w;const S=b(C[w],x),G=typeof S=="string";G&&A?D[D.length-1]+=S:S!==null&&D.push(S),A=G}return x.key=M,D}return T(C,b,x)});var T;const j=c(n);return d.length?u("div",null,j,u("footer",{key:"footer"},d.map(function(b){return u("div",{id:r.slugify(b.identifier,Ki),key:b.identifier},b.identifier,E(y(b.footnote,{inline:!0})))}))):j}const En=n=>{let{children:r="",options:i}=n,l=function(u,c){if(u==null)return{};var h,d,m={},g=Object.keys(u);for(d=0;d<g.length;d++)c.indexOf(h=g[d])>=0||(m[h]=u[h]);return m}(n,hO);return k.cloneElement(gw(r,i),l)},yw="_generalConditionsContainer_55hjg_1",_w="_generalConditions_55hjg_1",vw="_generalConditionsHeader_55hjg_15",bw="_generalConditionsBody_55hjg_26",Ew="_generalConditionsAccept_55hjg_35",Ji={generalConditionsContainer:yw,generalConditions:_w,generalConditionsHeader:vw,generalConditionsBody:bw,generalConditionsAccept:Ew},Sw=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})}),Tw=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})}),xw="general-conditions.header",Aw="general-conditions.body",Ky="general-conditions.accept-conditions-note",Ow=()=>{const n=Xe(),[r,i]=k.useState(!1),l=()=>i(!r),u=d=>{d.key==="ArrowDown"||d.key==="ArrowRight"?i(!0):d.key==="ArrowUp"||d.key==="ArrowLeft"||d.key==="Escape"?i(!1):(d.key==="Enter"||d.key==="Space"||d.key===" ")&&l()},c=n(xw),h=n(Ky);return _.jsxs("div",{className:Z(Ji.generalConditionsContainer,"chat__generalConditions"),children:[!!(c!=null&&c.length)&&_.jsxs("div",{className:Ji.generalConditions,children:[_.jsxs("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:Z(Ji.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[_.jsx(En,{children:c}),r?_.jsx(Tw,{}):_.jsx(Sw,{})]}),_.jsx("div",{className:Z(Ji.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&_.jsx(En,{children:n(Aw)||""})})]}),!!(h!=null&&h.length)&&_.jsx("div",{className:Z(Ji.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:_.jsx(En,{children:n(Ky)||""})})]})},ww="_message_6i1zm_1",Rw="_messageBot_6i1zm_9",Cw="_messageBotLast_6i1zm_19",Nw="_avatar_6i1zm_19",Dw="_messageBotFirst_6i1zm_24",Mw="_messageBotAnimated_6i1zm_37",Bw="_messageGuest_6i1zm_48",jw="_messageGuestFirst_6i1zm_54",Lw="_messageGuestLast_6i1zm_60",Uw="_botAvatar_6i1zm_74",Hw="_agentAvatar_6i1zm_78",zw="_bubble_6i1zm_82",kw="_bubbleContent_6i1zm_88",Gw="_bubbleLeft_6i1zm_102",qw="_leftText_6i1zm_113",Iw="_bubbleRight_6i1zm_120",Fw="_rightText_6i1zm_130",Vw="_sourceInfoReference_6i1zm_162",Pw="_sourceInfoReferenceActive_6i1zm_174",me={message:ww,messageBot:Rw,messageBotLast:Cw,avatar:Nw,messageBotFirst:Dw,messageBotAnimated:Mw,messageGuest:Bw,messageGuestFirst:jw,messageGuestLast:Lw,botAvatar:Uw,agentAvatar:Hw,bubble:zw,bubbleContent:kw,bubbleLeft:Gw,leftText:qw,bubbleRight:Iw,rightText:Fw,sourceInfoReference:Vw,sourceInfoReferenceActive:Pw},Yw="_botMessageActions_1dl7x_1",Zw="_alwaysVisible_1dl7x_22",Xw="_reported_1dl7x_29",Qw="_action_1dl7x_33",br={botMessageActions:Yw,alwaysVisible:Zw,reported:Xw,action:Qw},Kw=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:l,onReaction:u})=>{const c=Xe(),[h,d]=k.useState(!1),m=y=>()=>u(y),g=k.useCallback(async()=>{if(l.current)try{d(!0);const y=l.current.innerHTML,E=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([y],{type:"text/html"}),"text/plain":new Blob([E],{type:"text/plain"})})]),await new Promise(T=>setTimeout(T,1500))}finally{d(!1)}},[l]);return _.jsxs("div",{className:Z(br.botMessageActions,n&&br.alwaysVisible,i&&br.reported),children:[r===ho.BOT&&_.jsx("button",{className:Z(br.action,i==="GOOD"&&br.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:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="GOOD"?_.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"}):_.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===ho.BOT&&_.jsx("button",{className:Z(br.action,i==="BAD"&&br.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:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="BAD"?_.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"}):_.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"})})}),_.jsx("button",{className:Z(br.action,"tooltip--top-right"),tabIndex:0,"aria-label":c("bot-bubble.copy"),"data-title":c("bot-bubble.copy"),onClick:g,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?_.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"}):_.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"})})})]})},mb=k.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,children:c,onReaction:h},d)=>{const m=Xe(),g=k.useRef(null),y=n.sender.type===Se.UserType.BOT;return _.jsxs("li",{ref:d,className:Z(me.message,me.messageBot,i&&me.lastMessage,l&&me.messageBotFirst,u&&me.messageBotLast,"chat__bubbleContainer",r&&me.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[_.jsx("img",{className:Z(me.avatar,y?me.botAvatar:me.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),_.jsx("div",{ref:g,className:Z(me.bubble,me.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(y?"bot-bubble.label":"agent-bubble.label"),children:_.jsx("div",{className:Z(me.leftText),children:c})}),h&&_.jsx(Kw,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),$w="_sourceList_1n31h_1",Jw="_source_1n31h_1",Ww="_label_1n31h_37",Of={sourceList:$w,source:Jw,label:Ww},pb=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),yb=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),_b=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),eR=({type:n,...r})=>{switch(n){case"WEBSITE":return _.jsx(_b,{...r});case"PDF":return _.jsx(yb,{...r});case"DOCX":return _.jsx(pb,{...r});default:return _.jsx(gb,{...r})}},td=({sources:n,onLinkClick:r})=>{const i=Xe(),l=c=>()=>{r(c.url)},u=c=>h=>{(h.key==="Enter"||h.key===" ")&&r(c.url)};return n.length?_.jsx("ul",{className:Of.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(c=>_.jsx("li",{className:Of.source,children:_.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:l(c),onKeyDown:u(c),children:[_.jsx(eR,{type:c.type,"aria-hidden":"true"}),_.jsx("div",{className:Of.label,children:c.label})]})},c.url))}):null},tR="_button_3ui4g_1",nR="_buttonDefault_3ui4g_13",rR="_buttonPrimary_3ui4g_28",ls={button:tR,buttonDefault:nR,buttonPrimary:rR},Ao=({className:n,children:r,...i})=>_.jsx("button",{className:Z(ls.button,n),type:"button",role:"button",...i,children:r}),aR="_title_b904h_1",iR="_subtitle_b904h_6",sR="_buttons_b904h_11",lR="_button_b904h_11",oR="_imageContainer_b904h_34",uR="_image_b904h_34",cR="_video_container_b904h_49",fR="_video_b904h_49",hR="_only_b904h_63",wt={title:aR,subtitle:iR,buttons:sR,button:lR,imageContainer:oR,image:uR,video_container:cR,video:fR,only:hR},dR=({buttons:n,onButtonClick:r})=>_.jsx("div",{className:Z(wt.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>_.jsx(Ao,{className:Z(wt.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},l))});var Fl={},Vl={},Pl={},$y;function mR(){if($y)return Pl;$y=1,Object.defineProperty(Pl,"__esModule",{value:!0});var n=Fa(),r=i(n);function i(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c]);return u.default=l,u}return Pl.default=function(l,u,c){return r.createElement("a",{href:l,key:c},u)},Pl}var Yl={},Jy;function pR(){return Jy||(Jy=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=function(n){return n}),Yl}var Zl={},wf,Wy;function gR(){return Wy||(Wy=1,wf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),wf}var Rf,e_;function yR(){return e_||(e_=1,Rf=/[\0-\x1F\x7F-\x9F]/),Rf}var Cf,t_;function _R(){return t_||(t_=1,Cf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Cf}var Nf,n_;function vR(){return n_||(n_=1,Nf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Nf}var Df,r_;function bR(){return r_||(r_=1,Df=function(n){var r={};r.src_Any=gR().source,r.src_Cc=yR().source,r.src_Z=_R().source,r.src_P=vR().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var i="[><|]";return r.src_pseudo_letter="(?:(?!"+i+"|"+r.src_ZPCc+")"+r.src_Any+")",r.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+i+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(n&&n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Df}var Mf,a_;function ER(){if(a_)return Mf;a_=1;function n(A){var w=Array.prototype.slice.call(arguments,1);return w.forEach(function(S){S&&Object.keys(S).forEach(function(G){A[G]=S[G]})}),A}function r(A){return Object.prototype.toString.call(A)}function i(A){return r(A)==="[object String]"}function l(A){return r(A)==="[object Object]"}function u(A){return r(A)==="[object RegExp]"}function c(A){return r(A)==="[object Function]"}function h(A){return A.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(A){return Object.keys(A||{}).reduce(function(w,S){return w||d.hasOwnProperty(S)},!1)}var g={"http:":{validate:function(A,w,S){var G=A.slice(w);return S.re.http||(S.re.http=new RegExp("^\\/\\/"+S.re.src_auth+S.re.src_host_port_strict+S.re.src_path,"i")),S.re.http.test(G)?G.match(S.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(A,w,S){var G=A.slice(w);return S.re.no_http||(S.re.no_http=new RegExp("^"+S.re.src_auth+"(?:localhost|(?:(?:"+S.re.src_domain+")\\.)+"+S.re.src_domain_root+")"+S.re.src_port+S.re.src_host_terminator+S.re.src_path,"i")),S.re.no_http.test(G)?w>=3&&A[w-3]===":"||w>=3&&A[w-3]==="/"?0:G.match(S.re.no_http)[0].length:0}},"mailto:":{validate:function(A,w,S){var G=A.slice(w);return S.re.mailto||(S.re.mailto=new RegExp("^"+S.re.src_email_name+"@"+S.re.src_host_strict,"i")),S.re.mailto.test(G)?G.match(S.re.mailto)[0].length:0}}},y="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",E="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function T(A){A.__index__=-1,A.__text_cache__=""}function j(A){return function(w,S){var G=w.slice(S);return A.test(G)?G.match(A)[0].length:0}}function b(){return function(A,w){w.normalize(A)}}function C(A){var w=A.re=bR()(A.__opts__),S=A.__tlds__.slice();A.onCompile(),A.__tlds_replaced__||S.push(y),S.push(w.src_xn),w.src_tlds=S.join("|");function G(W){return W.replace("%TLDS%",w.src_tlds)}w.email_fuzzy=RegExp(G(w.tpl_email_fuzzy),"i"),w.link_fuzzy=RegExp(G(w.tpl_link_fuzzy),"i"),w.link_no_ip_fuzzy=RegExp(G(w.tpl_link_no_ip_fuzzy),"i"),w.host_fuzzy_test=RegExp(G(w.tpl_host_fuzzy_test),"i");var Y=[];A.__compiled__={};function X(W,de){throw new Error('(LinkifyIt) Invalid schema "'+W+'": '+de)}Object.keys(A.__schemas__).forEach(function(W){var de=A.__schemas__[W];if(de!==null){var ie={validate:null,link:null};if(A.__compiled__[W]=ie,l(de)){u(de.validate)?ie.validate=j(de.validate):c(de.validate)?ie.validate=de.validate:X(W,de),c(de.normalize)?ie.normalize=de.normalize:de.normalize?X(W,de):ie.normalize=b();return}if(i(de)){Y.push(W);return}X(W,de)}}),Y.forEach(function(W){A.__compiled__[A.__schemas__[W]]&&(A.__compiled__[W].validate=A.__compiled__[A.__schemas__[W]].validate,A.__compiled__[W].normalize=A.__compiled__[A.__schemas__[W]].normalize)}),A.__compiled__[""]={validate:null,normalize:b()};var J=Object.keys(A.__compiled__).filter(function(W){return W.length>0&&A.__compiled__[W]}).map(h).join("|");A.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+w.src_ZPCc+"))("+J+")","i"),A.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+w.src_ZPCc+"))("+J+")","ig"),A.re.pretest=RegExp("("+A.re.schema_test.source+")|("+A.re.host_fuzzy_test.source+")|@","i"),T(A)}function x(A,w){var S=A.__index__,G=A.__last_index__,Y=A.__text_cache__.slice(S,G);this.schema=A.__schema__.toLowerCase(),this.index=S+w,this.lastIndex=G+w,this.raw=Y,this.text=Y,this.url=Y}function M(A,w){var S=new x(A,w);return A.__compiled__[S.schema].normalize(S,A),S}function D(A,w){if(!(this instanceof D))return new D(A,w);w||m(A)&&(w=A,A={}),this.__opts__=n({},d,w),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},g,A),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},C(this)}return D.prototype.add=function(w,S){return this.__schemas__[w]=S,C(this),this},D.prototype.set=function(w){return this.__opts__=n(this.__opts__,w),this},D.prototype.test=function(w){if(this.__text_cache__=w,this.__index__=-1,!w.length)return!1;var S,G,Y,X,J,W,de,ie,he;if(this.re.schema_test.test(w)){for(de=this.re.schema_search,de.lastIndex=0;(S=de.exec(w))!==null;)if(X=this.testSchemaAt(w,S[2],de.lastIndex),X){this.__schema__=S[2],this.__index__=S.index+S[1].length,this.__last_index__=S.index+S[0].length+X;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(ie=w.search(this.re.host_fuzzy_test),ie>=0&&(this.__index__<0||ie<this.__index__)&&(G=w.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(J=G.index+G[1].length,(this.__index__<0||J<this.__index__)&&(this.__schema__="",this.__index__=J,this.__last_index__=G.index+G[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(he=w.indexOf("@"),he>=0&&(Y=w.match(this.re.email_fuzzy))!==null&&(J=Y.index+Y[1].length,W=Y.index+Y[0].length,(this.__index__<0||J<this.__index__||J===this.__index__&&W>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=J,this.__last_index__=W))),this.__index__>=0},D.prototype.pretest=function(w){return this.re.pretest.test(w)},D.prototype.testSchemaAt=function(w,S,G){return this.__compiled__[S.toLowerCase()]?this.__compiled__[S.toLowerCase()].validate(w,G,this):0},D.prototype.match=function(w){var S=0,G=[];this.__index__>=0&&this.__text_cache__===w&&(G.push(M(this,S)),S=this.__last_index__);for(var Y=S?w.slice(S):w;this.test(Y);)G.push(M(this,S)),Y=Y.slice(this.__last_index__),S+=this.__last_index__;return G.length?G:null},D.prototype.tlds=function(w,S){return w=Array.isArray(w)?w:[w],S?(this.__tlds__=this.__tlds__.concat(w).sort().filter(function(G,Y,X){return G!==X[Y-1]}).reverse(),C(this),this):(this.__tlds__=w.slice(),this.__tlds_replaced__=!0,C(this),this)},D.prototype.normalize=function(w){w.schema||(w.url="http://"+w.url),w.schema==="mailto:"&&!/^mailto:/i.test(w.url)&&(w.url="mailto:"+w.url)},D.prototype.onCompile=function(){},Mf=D,Mf}const SR=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var i_;function TR(){if(i_)return Zl;i_=1,Object.defineProperty(Zl,"__esModule",{value:!0});var n=ER(),r=u(n),i=SR,l=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var c=new r.default;return c.tlds(l.default),Zl.default=function(h){return c.match(h)},Zl}var Xl={},s_;function xR(){return s_||(s_=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=function(n){return n}),Xl}var l_;function AR(){if(l_)return Vl;l_=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=function(){function M(D,A){for(var w=0;w<A.length;w++){var S=A[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(D,S.key,S)}}return function(D,A,w){return A&&M(D.prototype,A),w&&M(D,w),D}}(),r=Fa(),i=T(r),l=mR(),u=E(l),c=pR(),h=E(c),d=TR(),m=E(d),g=xR(),y=E(g);function E(M){return M&&M.__esModule?M:{default:M}}function T(M){if(M&&M.__esModule)return M;var D={};if(M!=null)for(var A in M)Object.prototype.hasOwnProperty.call(M,A)&&(D[A]=M[A]);return D.default=M,D}function j(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}function b(M,D){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:M}function C(M,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);M.prototype=Object.create(D&&D.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(M,D):M.__proto__=D)}var x=function(M){C(D,M);function D(){return j(this,D),b(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return n(D,[{key:"parseString",value:function(w){var S=this;if(w==="")return w;var G=this.props.matchDecorator(w);if(!G)return w;var Y=[],X=0;return G.forEach(function(J,W){J.index>X&&Y.push(w.substring(X,J.index));var de=S.props.hrefDecorator(J.url),ie=S.props.textDecorator(J.text),he=S.props.componentDecorator(de,ie,W);Y.push(he),X=J.lastIndex}),w.length>X&&Y.push(w.substring(X)),Y.length===1?Y[0]:Y}},{key:"parse",value:function(w){var S=this,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof w=="string"?this.parseString(w):i.isValidElement(w)&&w.type!=="a"&&w.type!=="button"?i.cloneElement(w,{key:G},this.parse(w.props.children)):Array.isArray(w)?w.map(function(Y,X){return S.parse(Y,X)}):w}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),D}(i.Component);return x.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:y.default},Vl.default=x,Vl}var o_;function OR(){if(o_)return Fl;o_=1,Object.defineProperty(Fl,"__esModule",{value:!0});var n=AR(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}return Fl.default=r.default,Fl}var wR=OR();const RR=po(wR),CR="_text_gp0s0_1",NR="_command_gp0s0_5",u_={text:CR,command:NR},vb=({text:n,commands:r=[],onLinkClick:i})=>{const l=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>_.jsx("a",{onClick:l(d),role:"button",children:m},g),c=r.find(d=>n.startsWith(`/${d}`)),h=c?n.slice(c.length+1):n;return _.jsxs("div",{children:[c&&_.jsxs("code",{className:u_.command,children:["/",c]}),h.split(`
|
|
106
|
-
`).map((d,m)=>_.jsxs("span",{className:u_.text,children:[_.jsx(RR,{componentDecorator:u,children:d}),_.jsx("br",{})]},m))]})},DR=({subtitle:n,onLinkClick:r})=>n?_.jsx("div",{className:wt.subtitle,children:_.jsx(vb,{text:n,onLinkClick:r})}):null,c_="newtab#",bb=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const l=c=>h=>(h.preventDefault(),c&&i(c),!1),u=({title:c,href:h,children:d})=>h.indexOf(c_)===0?_.jsx("a",{href:h.slice(c_.length),title:c,target:"_blank",rel:"noopener noreferrer",children:d}):_.jsx("a",{onClick:l(h),title:c,href:h,children:d});return _.jsx(En,{options:{...r,overrides:{a:u}},children:n})},MR=({text:n,onLinkClick:r})=>n?_.jsx("div",{children:_.jsx(bb,{markdown:n,onLinkClick:r})}):null,BR=({title:n})=>n?_.jsx("h1",{className:wt.title,children:n}):null,jR=({title:n,text:r,subtitle:i,buttons:l,onButtonClick:u,onLinkClick:c})=>(n==null?void 0:n.length)||(r==null?void 0:r.length)||(i==null?void 0:i.length)||(l==null?void 0:l.length)?_.jsxs("div",{className:Z(me.bubbleContent),children:[_.jsx(BR,{title:n}),_.jsx(MR,{text:r,onLinkClick:c}),_.jsx(DR,{subtitle:i,onLinkClick:c}),_.jsx(dR,{buttons:l,onButtonClick:u})]}):null,LR=({alt:n,imageUrl:r,itemUrl:i,hasBody:l})=>r?i?i.indexOf("youtube.com")>-1?_.jsx("div",{className:wt.video_container,children:_.jsx("iframe",{className:Z(wt.video,{[wt.only]:!l}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):_.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:_.jsx("div",{className:wt.imageContainer,children:_.jsx("img",{className:Z(wt.image,{[wt.only]:!l}),src:r,alt:n})})}):_.jsx("div",{className:wt.imageContainer,children:_.jsx("img",{className:Z(wt.image,{[wt.only]:!l}),src:r,alt:n})}):null,UR=({title:n,text:r,subtitle:i,imageUrl:l,itemUrl:u,buttons:c,sources:h,onButtonClick:d,onLinkClick:m})=>{const g=!!(n!=null&&n.length)||!!(r!=null&&r.length)||!!(i!=null&&i.length)||!!(c!=null&&c.length);return _.jsxs("div",{className:Z(wt.detailMessage),children:[_.jsx(LR,{hasBody:g,imageUrl:l,itemUrl:u,alt:n||i}),g&&_.jsx(jR,{title:n,text:r,subtitle:i,buttons:c,onLinkClick:m,onButtonClick:d}),_.jsx(td,{sources:h,onLinkClick:m})]})},HR=k.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},l)=>{const u=Xe();return _.jsx("li",{ref:l,className:Z(me.message,me.messageGuest,n&&me.messageGuestFirst,r&&me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:_.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:_.jsx("div",{className:Z(me.rightText),children:i})})})}),zR="_markdown_nw7vg_1",Eb={markdown:zR},Sb=()=>kR(window.location.pathname),kR=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},Oo=()=>k.useMemo(()=>Sb(),[]),Ql="source-info-reference",GR=({actionId:n,markdown:r,sources:i,onLinkClick:l})=>{const u=Oo(),c=Pa(),h=qR(),d=Wt(y=>{const E=y.chat.sourceInfos;if((E==null?void 0:E.type)==="loaded"||(E==null?void 0:E.type)==="loading")return E.chunkId}),m=y=>E=>{const T=E.key;(T==="ArrowDown"||T==="ArrowRight"||T==="Enter"||T===" "||T==="Space")&&(E.stopPropagation(),c(Dy(u,n,y)))},g=y=>()=>{c(Dy(u,n,y))};return k.useLayoutEffect(()=>{document.querySelectorAll(`.${Ql}`).forEach(y=>{var j,b,C,x;const E=y.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&((j=E.textContent)!=null&&j.endsWith(" "))&&((b=E.textContent)!=null&&b.trim().length)&&y.classList.add(`${Ql}--before-space`);const T=y.nextSibling;T&&T.nodeType===Node.TEXT_NODE&&((C=T.textContent)!=null&&C.startsWith(" "))&&((x=T.textContent)!=null&&x.trim().length)&&y.classList.add(`${Ql}--after-space`)})},[r]),_.jsxs("div",{className:me.bubbleContent,children:[_.jsx("div",{className:Eb.markdown,children:_.jsx(bb,{markdown:r,onLinkClick:l,markdownOptions:{renderRule(y,E,T,j){if(E.type===oe.footnoteReference){const b=E.text===d;return _.jsx("span",{className:Z(me.sourceInfoReference,b&&me.sourceInfoReferenceActive,Ql),children:_.jsx("a",{type:"button",tabIndex:0,onClick:g(E.text),onKeyDown:m(E.text),children:h(E.text)})},j.key)}return y()}}})}),_.jsx(td,{sources:i,onLinkClick:l})]})},qR=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},IR=({text:n,commands:r,sources:i,onLinkClick:l})=>_.jsxs("div",{className:me.bubbleContent,children:[_.jsx(vb,{text:n,commands:r,onLinkClick:l}),_.jsx(td,{sources:i,onLinkClick:l})]}),FR=k.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:c,onButtonClick:h,onLinkClick:d},m)=>{const g=VR(n._id,n,r,h,d);switch(n.sender.type){case Se.UserType.GUEST:return _.jsx(HR,{ref:m,isFirstMessageBySender:l,isLastMessageBySender:u,children:g});default:{const y=E=>c(n._id,E);return _.jsx(mb,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:y,children:g})}}}),VR=(n,r,i,l,u)=>{switch(r.type){case Se.MessageTypeEnum.TEXT:{const c=r;return _.jsx(IR,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Se.MessageTypeEnum.DETAIL:{const c=r;return _.jsx(UR,{title:c.title,text:c.text,subtitle:c.subtitle,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:l,onLinkClick:u})}case Se.MessageTypeEnum.MARKDOWN:{const c=r;return _.jsx(GR,{actionId:n,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},PR=(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,YR=X_.memo(FR,PR),ZR="_ticontainer_xg0dn_1",XR="_tiblock_xg0dn_5",QR="_tidot_xg0dn_12",Wi={ticontainer:ZR,tiblock:XR,tidot:QR},KR=({isTyping:n=!1})=>_.jsx("div",{className:Wi.ticontainer,children:_.jsx("div",{className:Wi.tiblock,children:n?_.jsxs(_.Fragment,{children:[_.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")}),_.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")}),_.jsx("div",{className:Z(Wi.tidot,"chat__typingIndicator")})]}):null})}),$R=Object.assign({_id:"typing-indicator"},new Se.TextMessage("",new Se.BotUser)),JR=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:c})=>{const h=k.useRef(0),d=k.useRef(!0),m=k.useRef(null),g=k.useRef(null),y=k.useRef(null),E=Wt(b=>b.settings.enableGeneralConditions);k.useLayoutEffect(()=>{if(n.length&&m.current&&(h.current<n.length||r)){if(g.current){const b=g.current.offsetTop;m.current.scrollTop=b}else if(y.current){const b=y.current.offsetTop;m.current.scrollTop=b}d.current&&(d.current=!1),h.current=n.length}},[n,d,r]);let T;const j=n.length;return _.jsxs("div",{ref:m,className:Z(By.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&_.jsx(Ow,{}),_.jsxs("ul",{className:By.messages,children:[n.map((b,C)=>{const x=WR(b,T),M=eC(b,C,n,r);T=b.sender.type;const D=C+1===j;return _.jsx(YR,{ref:D?y:null,message:b,commands:i,isLastMessage:D,isFirstMessageBySender:x,isLastMessageBySender:M,onButtonClick:u,onLinkClick:c,onReaction:l},D&&!r?"last":b._id)}),r&&_.jsx(mb,{ref:g,message:$R,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:T!==Se.UserType.BOT,isLastMessageBySender:!0,children:_.jsx(KR,{isTyping:!0})},"last")]})]})},WR=(n,r)=>!r||r!==n.sender.type,eC=(n,r,i,l)=>{var d;const u=n.sender.type,c=i.length;return r+1===c?!(u===Se.UserType.BOT&&l):u!==((d=i.at(r+1))==null?void 0:d.sender.type)},tC="_bottomSheet_jp8dl_1",nC="_bottomSheetOpen_jp8dl_15",rC="_bottomSheetClose_jp8dl_20",Pn={bottomSheet:tC,bottomSheetOpen:nC,bottomSheetClose:rC},aC="_container_xc2nx_1",f_={container:aC},iC=({contentUrl:n})=>{const r=Oo(),[i,l]=k.useState(!1);k.useEffect(()=>{l(c=>c||!!n)},[n]);const u=k.useMemo(()=>{if(n&&n.startsWith("/"))return new URL(`/${r}${n}`,document.baseURI).toString()},[n,r]);return _.jsx("div",{className:Z(f_.container,Pn.bottomSheet,{[Pn.bottomSheetOpen]:!!n,[Pn.bottomSheetClose]:i&&!n}),children:u&&_.jsx("iframe",{title:"Drawer",src:u,className:f_.iframe})})},sC="_container_z787n_1",lC={container:sC},oC=({title:n,href:r,children:i})=>_.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),uC=()=>{const r=Xe()("powered-by");return r&&r.length?_.jsx("div",{className:Z(lC.container,"chat__poweredBy"),children:_.jsx(En,{options:{overrides:{a:oC}},children:r})}):null},h_=({className:n,children:r,...i})=>_.jsx(Ao,{className:Z(ls.buttonDefault,n),type:"button",...i,children:r}),os=({className:n,children:r,...i})=>_.jsx(Ao,{className:Z(ls.buttonPrimary,n),...i,children:r}),cC="_container_h23mk_1",fC="_formContainer_h23mk_17",hC="_emailInput_h23mk_22",dC="_description_h23mk_52",mC="_actions_h23mk_57",pC="_validationError_h23mk_67",gC="_submitted_h23mk_74",In={container:cC,formContainer:fC,emailInput:hC,description:dC,actions:mC,validationError:pC,submitted:gC},yC=({visible:n,enableTranscriptExportPdf:r,enableTranscriptExportEmail:i,onEmailExport:l,onPdfExport:u,onClose:c})=>{const h=Xe(),[d,m]=k.useState(void 0),[g,y]=k.useState(!1),[E,T]=k.useState(!1),[j,b]=k.useState(void 0),C=k.useRef(null);k.useEffect(()=>{var A;n?((A=C.current)==null||A.focus(),y(!1),T(!1),m(n)):d===!0&&m(!1)},[n,d]);const x=A=>{A.preventDefault(),j&&j.length>0&&(l(j),y(!0),setTimeout(c,3*1e3))},M=A=>{const w=A.target.value.trim(),S=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(w);b(S?w:"")},D=()=>{T(!0),u(),setTimeout(c,3*1e3)};return _.jsxs("div",{className:Z(In.container,Pn.bottomSheet,{[Pn.bottomSheetOpen]:d===!0,[Pn.bottomSheetClose]:d===!1}),children:[r&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:h("export-transcript.pdf.title")}),_.jsx(En,{className:In.description,children:h("export-transcript.pdf.description")||""}),_.jsxs("div",{className:In.actions,children:[_.jsx(h_,{onClick:c,children:h("export-transcript.pdf.cancel")}),_.jsx(os,{onClick:D,disabled:E,children:h("export-transcript.pdf.download")})]})]}),i&&_.jsxs(_.Fragment,{children:[_.jsx("h2",{children:h("export-transcript.email.title")}),_.jsx(En,{className:In.description,children:h("export-transcript.email.description")||""}),_.jsxs("form",{onSubmit:x,className:In.formContainer,children:[_.jsxs("div",{children:[_.jsx("input",{disabled:g,ref:C,type:"email",placeholder:h("export-transcript.email.placeholder"),className:In.emailInput,onChange:M}),(j==null?void 0:j.length)===0?_.jsx("div",{className:In.validationError,children:h("export-transcript.email.invalid")}):null]}),_.jsxs("div",{className:In.actions,children:[_.jsx(h_,{onClick:c,children:h("export-transcript.email.cancel")}),_.jsx(os,{type:"submit",disabled:g||j===void 0||j.length===0,children:h("export-transcript.email.send")})]})]}),g&&_.jsx("div",{className:In.submitted,children:h("export-transcript.email.success")})]})]})},_C="_inputContainer_fi5ao_1",vC={inputContainer:_C},bC="_blockUserInput_pot9c_1",EC={blockUserInput:bC},SC=({visible:n})=>{const r=Xe();return n?_.jsx("div",{className:Z(EC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},TC="_commandsDropdown_5ytuv_1",xC="_commands_5ytuv_1",AC="_command_5ytuv_1",OC="_commandActive_5ytuv_46",wC="_commandsSelections_5ytuv_55",ns={commandsDropdown:TC,commands:xC,command:AC,commandActive:OC,commandsSelections:wC},RC=(n,r)=>{k.useEffect(()=>{const i=l=>{n.current&&!n.current.contains(l.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},CC=(n,r,i,l,u)=>{k.useEffect(()=>{const c=h=>{if(n.length)switch(h.key){case"Enter":i(n[r]);break;case"ArrowUp":l(d=>d>0?d-1:n.length-1);break;case"ArrowDown":l(d=>d<n.length-1?d+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[n,r,i,l,u])},NC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:l})=>{const u=k.useRef(null),c=Xe(),[h,d]=k.useState([]),[m,g]=k.useState(d_(r)),[y,E]=k.useState(0),T=j=>i(`/${j}`);return RC(u,()=>d([])),CC(h,y,T,E,d),k.useEffect(()=>{g(d_(r))},[r]),k.useEffect(()=>{const j=n.length||0;j===0||j>m||!n.startsWith("/")?d([]):d(r.filter(DC(n))),E(0)},[r,n,m]),k.useEffect(()=>{l(!!h.length)},[h,l]),h.length?_.jsx("div",{ref:u,className:ns.commandsDropdown,children:_.jsx("ul",{id:"command-list",className:ns.commands,role:"listbox",children:h.map((j,b)=>_.jsxs("li",{className:Z([ns.command,y===b&&ns.commandActive]),role:"option",onClick:()=>T(j),onMouseOver:()=>E(b),children:[_.jsxs("h1",{children:["/",j]}),_.jsx("p",{children:c(`commands.${j}`)})]},j))})}):null},d_=n=>Math.max(...n.map(r=>r.length+1)),DC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},m_=3,MC=({commands:n,onSelectCommand:r})=>{const i=Xe(),[l,u]=k.useState(!1),c=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=l?n:n.slice(0,m_);return _.jsxs("div",{className:ns.commandsSelections,children:[m.map(g=>_.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?_.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-more.action")},"show-more"):m.length>m_?_.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-less.action")},"show-less"):null]})},BC="_callToActionContainer_bkfcm_1",jC="_callToActionTitle_bkfcm_23",LC="_rateOverlay_bkfcm_30",UC="_body_bkfcm_52",HC="_footer_bkfcm_60",zC="_actions_bkfcm_73",kC="_bubbles_bkfcm_101",GC="_stars_bkfcm_203",qC="_starsSmall_bkfcm_215",IC="_starsLarge_bkfcm_219",FC="_star_bkfcm_203",VC="_starReadonly_bkfcm_236",PC="_starIcon_bkfcm_246",YC="_starsDescriptionContainer_bkfcm_264",ZC="_starsDescription_bkfcm_264",Et={callToActionContainer:BC,callToActionTitle:jC,rateOverlay:LC,body:UC,footer:HC,actions:zC,bubbles:kC,stars:GC,starsSmall:qC,starsLarge:IC,star:FC,starReadonly:VC,starIcon:PC,starsDescriptionContainer:YC,starsDescription:ZC},XC=({value:n,index:r,count:i,readonly:l,onHover:u,onClick:c})=>{const h=d=>{c&&d.key==="Enter"&&c()};return _.jsx("li",{className:Z(Et.star,{[Et.starReadonly]:l},"chat__conversationRating__star"),children:_.jsx("div",{role:"radio","aria-checked":n>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:h,onClick:c,children:_.jsx("span",{role:"img","aria-label":"Star",className:Z(Et.starIcon),children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},p_=5,Tb=({value:n,size:r,readonly:i=!1,onChange:l})=>{const[u,c]=k.useState(void 0),h=()=>{c(void 0)},d=g=>()=>{if(!i){const y=g+1;c(y)}},m=g=>()=>{l&&!i&&(l(g===0&&n===1?0:g+1),c(void 0))};return _.jsx("ul",{tabIndex:0,role:"radiogroup",className:Z(Et.stars,{[Et.starsSmall]:r==="small",[Et.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(p_).fill(0).map((g,y)=>_.jsx(XC,{value:u===void 0?n:u,index:y,count:p_,readonly:i,onHover:d(y),onClick:m(y)},y))})},QC=({visible:n,onRate:r})=>{const i=Xe();return n?_.jsxs("div",{className:Z(Et.callToActionContainer,"chat__conversationRating__callToAction"),children:[_.jsx("div",{className:Z(Et.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),_.jsx(Tb,{value:0,size:"small",onChange:r})]}):null},Bf=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>_.jsxs("div",{className:Z(me.message,me.messageBot,n&&me.messageBotFirst,r&&me.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[_.jsx("img",{className:Z(me.avatar,me.botAvatar),src:"bot.svg",alt:"Bot"}),_.jsx("div",{className:Z(me.bubble,me.bubbleLeft,"chat__bubble","chat__botBubble"),children:_.jsx("div",{className:Z(me.leftText,me.bubbleContent),children:i})})]}),KC=({children:n})=>_.jsx("div",{className:Z(me.message,me.messageGuest,me.messageGuestFirst,me.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:_.jsx("div",{className:Z(me.bubble,me.bubbleRight,"chat__bubble","chat__guestBubble"),children:_.jsx("div",{className:Z(me.rightText,me.bubbleContent),children:n})})}),$C=({visible:n,rating:r,onRate:i,onClose:l})=>{const u=Xe(),[c,h]=k.useState(r),[d,m]=k.useState(void 0),[g,y]=k.useState(void 0),[E,T]=k.useState({submitted:!1,feedback:""}),[j,b]=k.useState(!1),C=k.useRef(null);k.useEffect(()=>{n?(T({submitted:!1,feedback:""}),y(n)):g===!0&&y(!1)},[n,g]),k.useEffect(()=>{h(r)},[r]),k.useEffect(()=>{const M=u(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`);m(M!=null&&M.length?M:void 0)},[c,u]),k.useEffect(()=>{E.submitted?setTimeout(()=>b(!0),E.feedback.length?500:0):b(!1)},[E]);const x=M=>{var A,w;M.preventDefault();const D=((w=(A=C.current)==null?void 0:A.value)==null?void 0:w.trim())||"";i(c,D),T({submitted:!0,feedback:D})};return _.jsx("div",{className:Z(Et.rateOverlay,Pn.bottomSheet,"chat__conversationRating__overlay",{[Pn.bottomSheetOpen]:g===!0,[Pn.bottomSheetClose]:g===!1}),children:_.jsxs("form",{onSubmit:x,children:[_.jsxs("div",{className:Z(Et.body,"chat__conversationRating__overlay__body"),children:[_.jsx("div",{}),_.jsx("div",{className:Z(Et.bubbles),children:n&&d&&_.jsxs(_.Fragment,{children:[_.jsxs(Bf,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[_.jsx("h2",{children:u("conversation-rating.overlay.title")}),_.jsxs("div",{className:Z(Et.starsDescriptionContainer),children:[_.jsx(Tb,{value:c,size:"large",readonly:E.submitted,onChange:h}),_.jsxs("div",{className:Z(Et.starsDescription),children:[_.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),_.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),_.jsx(Bf,{isFirstMessageBySender:!1,isLastMessageBySender:!j||!!E.feedback.length,children:_.jsx("div",{children:d})}),!!E.feedback.length&&_.jsx(KC,{children:E.feedback}),j&&_.jsx(Bf,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:_.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),_.jsxs("div",{className:Z(Et.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&_.jsx("input",{ref:C,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),_.jsx("div",{className:Z(Et.actions,"chat__conversationRating__overlay__footer__actions"),children:E.submitted?_.jsx(os,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")}):_.jsx(os,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},JC=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:l,setShowRatingOverlay:u,onRate:c})=>{const[h,d]=k.useState(0),m=E=>{d(E),u(!0)},g=()=>u(!1),y=!r&&i>=1;return n?_.jsxs(_.Fragment,{children:[_.jsx(QC,{visible:y,onRate:m}),_.jsx($C,{visible:l,rating:h,onRate:c,onClose:g})]}):null},WC=k.memo(JC),e3="_inputWrapper_e3h44_1",t3="_withOpenCommands_e3h44_14",n3="_messageInputWrapper_e3h44_20",r3="_messageInput_e3h44_20",a3="_buttons_e3h44_44",i3="_button_e3h44_44",Pr={inputWrapper:e3,withOpenCommands:t3,messageInputWrapper:n3,messageInput:r3,buttons:a3,button:i3},s3="_audioRecorder_g845f_1",l3="_audioButton_g845f_6",o3="_recorderIcon_g845f_37",u3="_spinning_g845f_60",Yr={audioRecorder:s3,audioButton:l3,recorderIcon:o3,spinning:u3},g_=2048,mo=16e3;class c3 extends X_.Component{constructor(i){super(i);Ce(this,"audioInput",null);Ce(this,"volume",null);Ce(this,"leftchannel",[]);Ce(this,"recorder",null);Ce(this,"recordingLength",0);Ce(this,"sampleRate",null);Ce(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const l=window.AudioContext||window.webkitAudioContext,u=new l;this.sampleRate=u.sampleRate,this.volume=u.createGain(),this.audioInput=u.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=u.createScriptProcessor(g_,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(u.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const l=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(l)),this.recordingLength+=g_}}handleClickSubmitAudio(){const i=h3(this.leftchannel,this.recordingLength),l=d3(i,this.sampleRate||0),u=f3(l);this.props.onAudioRecorded(u),this.handleClickStopAudio()}handleClickStopAudio(){var i,l,u,c;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(l=this.volume)==null||l.disconnect(),(u=this.recorder)==null||u.disconnect(),this.mediaStream&&((c=this.mediaStream)==null||c.getAudioTracks().forEach(h=>{h.stop()}))}render(){return _.jsxs("div",{className:Yr.audioRecorder,children:[this.state.recordingState==="none"&&_.jsx("button",{className:Z(Yr.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:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&_.jsxs("svg",{className:Yr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&_.jsxs("div",{className:Yr.audioRecorder,children:[_.jsx("button",{className:Z(Yr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),_.jsx("div",{className:Yr.recorderIcon}),_.jsx("button",{className:Z(Yr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[_.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),_.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const f3=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Kl(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Kl(i,8,"WAVE"),Kl(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,mo,!0),i.setUint32(28,mo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Kl(i,36,"data"),i.setUint32(40,n.length*2,!0);const l=n.length;let u=44;const c=1;for(let h=0;h<l;h++)i.setInt16(u,n[h]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Kl=(n,r,i)=>{for(let l=0;l<i.length;l++)n.setUint8(r+l,i.charCodeAt(l))},h3=(n,r)=>{const i=new Float32Array(r);let l=0;const u=n.length;for(let c=0;c<u;c++){const h=n[c];i.set(h,l),l+=h.length}return i},d3=(n,r)=>{if(mo===r)return n;const i=r/mo,l=Math.round(n.length/i),u=new Float32Array(l);let c=0,h=0;for(;c<u.length;){const d=Math.round((c+1)*i);let m=0,g=0;for(let y=h;y<d&&y<n.length;y++)m+=n[y],g++;u[c]=m/g,c++,h=d}return u},m3=({disabled:n,textInput:r,commandsVisible:i,hasCommands:l,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:h,onOpenTranscriptExportModal:d})=>{const m=Xe(),g=k.useRef(null),{enableTranscriptExportPdf:y,enableTranscriptExportEmail:E,enableSpeechSupport:T}=Wt(M=>M.settings);k.useEffect(()=>{var M;(M=g.current)==null||M.focus()},[r]);const j=()=>{const M=g.current;M&&r.trim().length>=1&&c(r.trim())&&(M.value="",M.style.height="",M.focus())},b=M=>{M.preventDefault(),j()},C=M=>{const D=M.target.value;u(D),M.target.style.height="";const{scrollHeight:A}=M.target;M.target.style.height=`${A>150?150:A}px`},x=M=>{M.code==="Enter"&&!M.shiftKey?(M.repeat||j(),M.preventDefault()):i&&(M.code==="ArrowUp"||M.code==="ArrowDown")&&M.preventDefault()};return _.jsxs("form",{className:Z(Pr.inputWrapper,i&&Pr.withOpenCommands,"chat__textInput"),onSubmit:b,children:[_.jsx("div",{className:Pr.messageInputWrapper,children:_.jsx("textarea",{id:"user_input",ref:g,className:Pr.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:r,onChange:C,onKeyDown:x,"aria-label":m("message-input-label"),"aria-controls":l?"command-list":void 0,"aria-haspopup":l?"listbox":void 0})}),_.jsxs("div",{className:Z(Pr.buttons,"chat__buttons"),children:[!r.length&&(y||E)&&_.jsx("button",{type:"button",className:Z(Pr.button,"chat__button"),"aria-label":m("message-input.actions.export-transcript.label"),"data-title":m("message-input.actions.export-transcript.label"),tabIndex:0,onClick:d,children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),r.length||!T||navigator.mediaDevices===void 0?_.jsx("button",{className:Z(Pr.button,"chat__button"),type:"submit","aria-label":m("message-input.actions.submit.label"),"data-title":m("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:_.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_.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"})})}):T&&navigator.mediaDevices!==void 0&&_.jsx(c3,{translate:m,onAudioRecorded:h})]})]})},p3="_quickReplies_83npe_1",g3="_quickReply_83npe_9",y_={quickReplies:p3,quickReply:g3},y3=({quickReplies:n,onQuickReplyClick:r})=>n.length?_.jsx("div",{className:Z(y_.quickReplies,"chat__quickReplies"),children:n.map(i=>_.jsx(Ao,{tabIndex:0,className:Z(y_.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,__=5e3,_3=1e3,v3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:c,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:y,onOpenTranscriptExportModal:E})=>{const[T,j]=k.useState(""),[b,C]=k.useState(!1),[x,M]=k.useState(!1),D=k.useRef(0),A=k.useRef(0);k.useEffect(()=>{if(b&&!n){const G=D.current?Date.now()-D.current:0;G>__?C(!1):setTimeout(()=>{C(!1)},__-G)}},[b,n]),k.useEffect(()=>{b&&(D.current=Date.now())},[b]);const w=G=>{const Y=Date.now()-A.current<_3;return x?!1:n||Y?(C(!0),!1):(d(G),j(""),A.current=Date.now(),!0)},S=G=>{j(G+" ")};return _.jsxs("div",{className:Z(vC.inputContainer),children:[_.jsx(y3,{quickReplies:r,onQuickReplyClick:g}),_.jsx(SC,{visible:b}),!b&&_.jsx(WC,{conversationRating:i,numberOfMessagesFromGuest:l,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!(c!=null&&c.length)&&_.jsx(NC,{text:T,commands:c,onSelectCommand:S,onVisibilityChange:M}),_.jsx(m3,{textInput:T,disabled:b,commandsVisible:x,hasCommands:!!(c!=null&&c.length),onTextInput:j,onTextInputSubmit:w,onOpenTranscriptExportModal:E,onAudioRecorded:y}),!!(c!=null&&c.length)&&_.jsx(MC,{commands:c,onSelectCommand:j})]})},b3=({clientName:n,messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:c,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:y,onAudioRecorded:E,onTranscriptExport:T,onPdfExport:j,onTranscriptItemReaction:b})=>{const C=Pa(),x=Wt(W=>W.connection.connectionState),{enableTranscriptExportPdf:M,enableTranscriptExportEmail:D,commands:A}=Wt(W=>W.settings),[w,S]=k.useState(!1),[G,Y]=k.useState(!1),X=M||D,J=r.filter(W=>W.sender.type===ho.GUEST).length;return k.useEffect(()=>{if(x===Kr.CONNECTED){const W=_o.parse(window.location.search);C(ib(n,W))}},[n,x,C]),_.jsxs("div",{className:vf.container,children:[_.jsxs("div",{className:Z([vf.chatcontent,(w||G)&&vf.accessabilityHidden]),children:[_.jsx(JR,{messages:r,isBotTyping:l,commands:A,onButtonClick:g,onLinkClick:y,onTranscriptItemReaction:b}),_.jsx(v3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:J,conversationRating:w?{enabled:!1}:c,showRatingOverlay:G,setShowRatingOverlay:Y,commands:A,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:E,onOpenTranscriptExportModal:()=>S(!w)}),_.jsx(uC,{})]}),X&&_.jsx(yC,{enableTranscriptExportPdf:M,enableTranscriptExportEmail:D,visible:w,onEmailExport:T,onPdfExport:()=>j(n),onClose:()=>S(!1)}),_.jsx(iC,{contentUrl:u})]})},E3=n=>{const{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:c}=n.chat;return{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:c}},S3=n=>({onRestartChat:(r,i)=>n(To(r,i)),onMessageFromUser:r=>n(Hv(r)),onRate:(r,i)=>n(oA(r,i)),onAudioRecorded:r=>n(rA(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(Uv(r)),onNluEvent:r=>n(Iv(r)),onButtonClick:r=>n(cA(r)),onLinkClick:r=>n(fA(r)),onTranscriptExport:r=>n(iA(r)),onPdfExport:r=>n(sA(r)),onTranscriptItemReaction:(r,i)=>n(Se.Actions.transcriptItemGuestReaction(r,i||null))}),T3=TS(E3,S3)(b3),xb=()=>{const[n,r]=k.useState(!1);return k.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},nd=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},x3=({onClick:n})=>{const r=Xe();return xb()?_.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:nd(n),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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},A3=()=>{const n=Xe(),r=xb(),i=Wt(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return r&&i?_.jsx("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:nd(l),children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})}):null},O3="_header_1hky6_1",w3="_logoContainer_1hky6_13",R3="_logo_1hky6_13",C3="_actions_1hky6_27",$l={header:O3,logoContainer:w3,logo:R3,actions:C3},N3=({onClick:n})=>{const r=Xe();return _.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:nd(n),children:_.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[_.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),_.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},v_=({className:n,withActions:r=!0,...i})=>{const l=Pa(),u=Oo(),c=()=>{const d=_o.parse(window.location.search);l(To(u,d))},h=()=>{l($A())};return _.jsxs("div",{className:Z([$l.header,n]),...i,children:[_.jsx("div",{className:$l.logoContainer,children:_.jsx("div",{className:$l.logo})}),_.jsxs("div",{className:$l.actions,children:[r&&_.jsx(N3,{onClick:c}),_.jsx(A3,{}),_.jsx(x3,{onClick:h})]})]})},D3="_chatwindow_rkbir_1",M3="_chatwindowWithAside_rkbir_21",b_={chatwindow:D3,chatwindowWithAside:M3},Ab=()=>{const[n,r]=k.useState(!1);return k.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),l=()=>r(i.matches);return l(),i.addEventListener("change",l),()=>i.removeEventListener("change",l)},[]),n},B3="_sourceInfos_vei0l_1",j3="_waitForLoading_vei0l_24",L3="_loadingContent_vei0l_28",U3="_sourceHeader_vei0l_37",H3="_sourceHeaderIcon_vei0l_57",z3="_sourceContent_vei0l_61",k3="_openSourceButton_vei0l_69",G3="_sourceButtonLabel_vei0l_79",q3="_closeSourceInfosButton_vei0l_101",I3="_loadingSourceInfos_vei0l_125",F3="_loading_vei0l_28",V3="_loadingError_vei0l_139",P3="_highlightLoadingInfo_vei0l_155",Y3="_highlightLoadingInfoInnerContainer_vei0l_169",Z3="_highlightLoadingInfoContent_vei0l_178",X3="_highlightLoadingInfoCloseIcon_vei0l_198",Q3="_highlightLoader_vei0l_203",K3="_highlightLoaderLoading_vei0l_210",lt={sourceInfos:B3,waitForLoading:j3,loadingContent:L3,sourceHeader:U3,sourceHeaderIcon:H3,sourceContent:z3,openSourceButton:k3,sourceButtonLabel:G3,closeSourceInfosButton:q3,loadingSourceInfos:I3,loading:F3,loadingError:V3,highlightLoadingInfo:P3,highlightLoadingInfoInnerContainer:Y3,highlightLoadingInfoContent:Z3,highlightLoadingInfoCloseIcon:X3,highlightLoader:Q3,highlightLoaderLoading:K3},$3=({onClick:n})=>{const r=Xe();return _.jsx("button",{className:Z(lt.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:n,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})})},J3=k.forwardRef(({sourceInfos:n,onClose:r,...i},l)=>_.jsxs("div",{className:lt.sourceHeader,...i,ref:l,children:[_.jsx("div",{children:n?_.jsx("p",{id:"source-info-title",children:n.title}):_.jsx("p",{children:" "})}),_.jsx($3,{onClick:r})]})),W3=({loading:n})=>_.jsx("div",{className:lt.highlightLoader,children:n&&_.jsx("div",{className:lt.highlightLoaderLoading})}),e6=({onClose:n})=>{const r=Xe();return _.jsxs("div",{className:lt.highlightLoadingInfo,onClick:n,children:[_.jsx("div",{className:lt.highlightLoadingInfoCloseIcon,children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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"})})}),_.jsxs("div",{className:lt.highlightLoadingInfoInnerContainer,children:[_.jsxs("div",{className:lt.highlightLoadingInfoContent,children:[_.jsx("h3",{children:r("source-infos.highlight-loading.title")}),_.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:_.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"})})]})]})},t6=({title:n,href:r,children:i})=>_.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),n6=({className:n,children:r,...i})=>_.jsx("a",{className:Z(ls.button,ls.buttonDefault,n),type:"button",role:"button",...i,children:r}),r6=n=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:_.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"})}),a6=({type:n,...r})=>{switch(n){case"WEBSITE":return _.jsx(_b,{...r});case"PDF":return _.jsx(yb,{...r});case"DOCX":return _.jsx(pb,{...r});case"TEXT":return _.jsx(r6,{...r});default:return _.jsx(gb,{...r})}},i6=({url:n,knowledgeBaseType:r})=>{const i=Xe();return _.jsx(n6,{className:lt.openSourceButton,href:n,target:"_blank",children:_.jsxs("div",{className:lt.sourceButtonLabel,children:[_.jsx("div",{className:lt.sourceHeaderIcon,children:_.jsx(a6,{type:r})}),_.jsx("p",{children:i("source-infos.open-source")})]})})},s6=({sourceInfos:{content:n,url:r,knowledgeBaseType:i,highlighted:l}})=>{const[u,c]=k.useState(!l);return k.useEffect(()=>{l&&c(!1)},[l]),_.jsxs(_.Fragment,{children:[_.jsxs("div",{className:Z(lt.sourceContent,Eb.markdown),children:[_.jsx(En,{options:{overrides:{a:t6}},children:n}),u&&_.jsx(e6,{onClose:()=>c(!1)})]}),_.jsx(i6,{url:r,knowledgeBaseType:i})]})},l6=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,o6=()=>{const n=Xe();return _.jsxs("div",{className:lt.loadingError,children:[_.jsx("h1",{children:n("source-infos.error.title")}),_.jsx("img",{src:l6,title:n("source-infos.error.title")}),_.jsx("p",{children:n("source-infos.error.info")})]})},u6=()=>_.jsx("div",{className:lt.loadingSourceInfos,children:_.jsx("svg",{className:lt.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:_.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 c6({sourceInfos:n,onClose:r,threshold:i=100}){const l=k.useRef(null),[u,c]=k.useState(0),[h,d]=k.useState(!1),m=k.useRef(null),g=k.useRef(null),y=k.useCallback(b=>{m.current=b,d(!0)},[]),E=k.useCallback(b=>{if(m.current!==null&&h){const C=b-m.current;C>0&&c(C)}},[h]),T=k.useCallback(()=>{d(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),j=k.useCallback(b=>{const C=S=>y(S.touches[0].clientY),x=S=>E(S.touches[0].clientY),M=()=>T(),D=S=>{S.preventDefault(),y(S.clientY),window.addEventListener("mousemove",A),window.addEventListener("mouseup",w)},A=S=>E(S.clientY),w=()=>{T(),window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",w)};b.addEventListener("touchstart",C),b.addEventListener("touchmove",x),b.addEventListener("touchend",M),b.addEventListener("mousedown",D),g.current=()=>{b.removeEventListener("touchstart",C),b.removeEventListener("touchmove",x),b.removeEventListener("touchend",M),b.removeEventListener("mousedown",D),window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",w)}},[y,E,T]);return k.useEffect(()=>{let b;return(()=>{var x;l.current?((x=g.current)==null||x.call(g),j(l.current)):(b=new MutationObserver(()=>{var M;l.current&&((M=g.current)==null||M.call(g),j(l.current),b==null||b.disconnect())}),b.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{var x;b==null||b.disconnect(),(x=g.current)==null||x.call(g)}},[j,n]),{ref:l,dragOffsetY:u,isDragging:h}}const f6=n=>{const[r,i]=k.useState(!0);return k.useEffect(()=>{let l=null;return(n==null?void 0:n.type)==="loading"?(i(!0),l=setTimeout(()=>{i(!1)},300)):i(!n),()=>{l&&clearTimeout(l)}},[n]),r},h6=()=>{const n=Pa(),r=Wt(m=>m.chat.sourceInfos),i=Ab(),l=k.useRef(null),u=f6(r);k.useEffect(()=>{var m;l.current&&(r==null?void 0:r.type)==="loading"&&(i?l.current.showModal():(l.current.setAttribute("open","true"),(m=l.current)==null||m.focus()))},[r,i]);const c=k.useCallback(()=>{l.current&&(i?l.current.close():l.current.removeAttribute("open"),n(WA()))},[n,i]),{ref:h,dragOffsetY:d}=c6({onClose:c,sourceInfos:r});return r?_.jsx("dialog",{ref:l,className:Z(lt.sourceInfos,u?lt.waitForLoading:r.type==="loading"?lt.loadingContent:""),style:i&&d?{transform:`translateY(${d}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:_.jsxs(_.Fragment,{children:[_.jsx(J3,{ref:h,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?_.jsx(u6,{}):r.type==="loading-error"?_.jsx(o6,{}):_.jsxs(_.Fragment,{children:[_.jsx(W3,{loading:!r.highlighted}),_.jsx(s6,{sourceInfos:r})]})]})}):null},d6="_container_114wy_1",m6="_body_114wy_7",p6="_intro_114wy_14",g6="_footer_114wy_39",y6="_footnote_114wy_43",_6="_containerWithFootnote_114wy_58",v6="_startChatButton_114wy_73",b6="_formFields_114wy_77",E6="_formField_114wy_77",S6="_radio_114wy_89",T6="_checkbox_114wy_96",x6="_input_114wy_104",A6="_inputLabel_114wy_138",O6="_selectWrapper_114wy_142",w6="_select_114wy_142",R6="_selectLabel_114wy_188",dt={container:d6,body:m6,intro:p6,footer:g6,footnote:y6,containerWithFootnote:_6,startChatButton:v6,formFields:b6,formField:E6,radio:S6,checkbox:T6,input:x6,inputLabel:A6,selectWrapper:O6,select:w6,selectLabel:R6},C6=({name:n,label:r,defaultValue:i,required:l,onChange:u})=>{const c=h=>{u(h.currentTarget.checked?"true":"false")};return _.jsxs("label",{className:Z(dt.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[_.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:l,onChange:c}),_.jsx("div",{children:r})]})},N6=({type:n,name:r,label:i,defaultValue:l,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:y})=>{const E=T=>{y(T.target.value)};return _.jsxs("label",{className:Z(dt.input,"chat__startScreen__input"),htmlFor:r,children:[_.jsx("div",{className:Z(dt.inputLabel),children:i}),_.jsx("input",{type:n,id:r,name:r,defaultValue:l,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:E})]})},D6=({name:n,value:r,label:i,defaultChecked:l,required:u,onChange:c})=>{const h=`${n}-${r}`,d=m=>{c(m.target.value)};return _.jsxs("label",{className:Z(dt.radio,"chat__startScreen__radio"),htmlFor:h,children:[_.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:l,required:u,onChange:d}),_.jsx("span",{className:Z(dt.label),children:i})]})},M6=({name:n,label:r,defaultValue:i,required:l,multiple:u,options:c,onChange:h})=>{const d=m=>{h(m.target.value)};return _.jsxs("label",{className:Z(dt.select,"chat__startScreen__select"),htmlFor:n,children:[_.jsx("div",{className:Z(dt.selectLabel),children:r}),_.jsx("div",{className:Z(dt.selectWrapper),children:_.jsx("select",{id:n,name:n,defaultValue:i,required:l,multiple:u,onChange:d,children:Object.entries(c||{}).map(([m,g])=>_.jsx("option",{value:m,selected:g===i,children:g}))})})]})},B6="start-screen.intro",j6="start-screen.start-chat",L6="start-screen.footnote",un="start-screen.form",E_=`${un}.fields`,U6=()=>{const n=Xe(),r=Pa(),[i,l]=k.useState({}),u=()=>{const E=Object.entries(i).reduce((T,[j,b])=>({...T,[j]:b.value}),{});r(XA(E))},c=n(B6),h=n(j6),d=n(L6),m=k.useMemo(()=>{var E;return((E=n(E_))==null?void 0:E.split(";").map(T=>T.trim()))??[]},[n(E_)]);k.useEffect(()=>{m.length&&Object.keys(i).length===0&&l(m.reduce((E,T)=>({...E,[T]:H6(T,n)}),{}))},[n,m,i]);const g=E=>{E.preventDefault(),u()},y=E=>T=>{l(j=>({...j,[E]:{...j[E],value:T}}))};return _.jsxs("form",{onSubmit:g,className:Z(dt.container,d&&dt.containerWithFootnote,"chat__startScreen"),children:[_.jsxs("div",{className:Z(dt.body,"chat__startScreen__body"),children:[c&&_.jsx("div",{className:Z(dt.intro,"chat__startScreen__intro"),children:_.jsx(En,{options:{overrides:{a:S_}},children:c})}),_.jsx("div",{className:Z(dt.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:E,name:T,label:j,placeholder:b,defaultValue:C,options:x,required:M,multiple:D,min:A,max:w,pattern:S})=>_.jsx("div",{className:Z(dt.formField,"chat__startScreen__field"),children:(()=>{switch(E){case"radio":return _.jsxs(_.Fragment,{children:[_.jsx("div",{children:j}),Object.entries(x||{}).map(([G,Y])=>_.jsx(D6,{name:T,value:G,label:Y,defaultChecked:G===C,required:M,onChange:y(T)}))]});case"checkbox":return _.jsx(C6,{name:T,label:j,defaultValue:C,required:M,onChange:y(T)});case"select":return _.jsx(M6,{name:T,label:j,defaultValue:C,required:M,multiple:D,options:x,onChange:y(T)});default:return _.jsx(N6,{type:E,name:T,label:j,placeholder:b,defaultValue:C,required:M,multiple:D,min:A,max:w,pattern:S,onChange:y(T)})}})()},T))})]}),_.jsxs("div",{className:Z(dt.footer,"chat__startScreen__footer"),children:[_.jsx(os,{type:"submit",className:dt.startChatButton,children:h}),d&&_.jsx("div",{className:dt.footnote,children:_.jsx(En,{options:{overrides:{a:S_}},children:d})})]})]})},S_=({title:n,href:r,children:i})=>_.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),H6=(n,r)=>{const i=r(`${un}.${n}.type`)||"text",l=r(`${un}.${n}.required`)==="true",u=r(`${un}.${n}.multiple`)==="true",c=r(`${un}.${n}.placeholder`),h=r(`${un}.${n}.label`)||"",d=r(`${un}.${n}.defaultValue`),m=r(`${un}.${n}.min`),g=r(`${un}.${n}.max`),y=r(`${un}.${n}.pattern`),E=k6(r(`${un}.${n}.options`));return{name:n,label:h,placeholder:c,value:z6(i,d,E)||"",defaultValue:d,options:E,type:i,required:l,multiple:u,min:m,max:g,pattern:y}},z6=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",k6=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[l,u]=i.split(":").map(c=>c.trim());return{...r,[l]:u}},{}),G6=()=>{const n=yo();k.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},ka={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"},q6=({clientName:n})=>{G6();const r=Pa(),i=Wt(y=>y.intl.messages),l=Xe(),u=Wt(y=>y.settings.enableStartScreen),c=Wt(y=>y.startScreen.startScreenStatus),[h,d]=k.useState(void 0);k.useEffect(()=>{const y=_o.parse(window.location.search);y.cssClassName&&d(y.cssClassName);const E=T=>{switch(T.data.type){case ka.TRIGGER_ACTION:r(T.data.action);break;case ka.TRIGGER_STORY:r(Iv(T.data.story));break;case ka.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case ka.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case ka.CHAT_MESSAGE_FROM_GUEST:r(Hv(T.data.text));break;case ka.RESTART_CHAT:r(To(n,y));break}};return r(tO(n,y)),window.addEventListener("message",T=>E(T),!1),()=>window.removeEventListener("message",E)},[n,r]),k.useEffect(()=>{const y=l("page.title");y&&document&&(document.title=y)},[i,l]);const m=u===void 0,g=u===!1||c==="HIDDEN";return _.jsx("div",{className:Z(b_.chatwindow,g&&b_.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?_.jsxs(_.Fragment,{children:[_.jsx("header",{children:_.jsx(v_,{})}),_.jsx("main",{children:_.jsx(T3,{clientName:n})}),_.jsx("aside",{children:_.jsx(h6,{})})]}):_.jsxs(_.Fragment,{children:[_.jsx("header",{children:_.jsx(v_,{withActions:!1})}),_.jsx("main",{children:_.jsx(U6,{})})]})})},I6=()=>{const n=Oo(),r=Ab(),i=Wt(u=>u.intl.locale),l=Wt(u=>u.intl.messages);return _.jsx(cx,{locale:i,messages:l,children:_.jsx("div",{className:Z([hx.app,r?"chat__small":"chat__large"]),children:_.jsx(q6,{clientName:n})})})};var jf,T_;function rd(){if(T_)return jf;T_=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return jf=n,jf}var Lf,x_;function F6(){if(x_)return Lf;x_=1;var n=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol;return Lf=n,Lf}var Uf,A_;function Ob(){if(A_)return Uf;A_=1;var n=F6(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return Uf=i,Uf}var Hf,O_;function V6(){if(O_)return Hf;O_=1;var n=Ob(),r=function(){return n.Date.now()};return Hf=r,Hf}var zf,w_;function P6(){if(w_)return zf;w_=1;var n=/\s/;function r(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return zf=r,zf}var kf,R_;function Y6(){if(R_)return kf;R_=1;var n=P6(),r=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(r,"")}return kf=i,kf}var Gf,C_;function wb(){if(C_)return Gf;C_=1;var n=Ob(),r=n.Symbol;return Gf=r,Gf}var qf,N_;function Z6(){if(N_)return qf;N_=1;var n=wb(),r=Object.prototype,i=r.hasOwnProperty,l=r.toString,u=n?n.toStringTag:void 0;function c(h){var d=i.call(h,u),m=h[u];try{h[u]=void 0;var g=!0}catch{}var y=l.call(h);return g&&(d?h[u]=m:delete h[u]),y}return qf=c,qf}var If,D_;function X6(){if(D_)return If;D_=1;var n=Object.prototype,r=n.toString;function i(l){return r.call(l)}return If=i,If}var Ff,M_;function Q6(){if(M_)return Ff;M_=1;var n=wb(),r=Z6(),i=X6(),l="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;function h(d){return d==null?d===void 0?u:l:c&&c in Object(d)?r(d):i(d)}return Ff=h,Ff}var Vf,B_;function K6(){if(B_)return Vf;B_=1;function n(r){return r!=null&&typeof r=="object"}return Vf=n,Vf}var Pf,j_;function $6(){if(j_)return Pf;j_=1;var n=Q6(),r=K6(),i="[object Symbol]";function l(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Pf=l,Pf}var Yf,L_;function J6(){if(L_)return Yf;L_=1;var n=Y6(),r=rd(),i=$6(),l=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return l;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 E=c.test(g);return E||h.test(g)?d(g.slice(2),E?2:8):u.test(g)?l:+g}return Yf=m,Yf}var Zf,U_;function W6(){if(U_)return Zf;U_=1;var n=rd(),r=V6(),i=J6(),l="Expected a function",u=Math.max,c=Math.min;function h(d,m,g){var y,E,T,j,b,C,x=0,M=!1,D=!1,A=!0;if(typeof d!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(M=!!g.leading,D="maxWait"in g,T=D?u(i(g.maxWait)||0,m):T,A="trailing"in g?!!g.trailing:A);function w(he){var ke=y,ge=E;return y=E=void 0,x=he,j=d.apply(ge,ke),j}function S(he){return x=he,b=setTimeout(X,m),M?w(he):j}function G(he){var ke=he-C,ge=he-x,q=m-ke;return D?c(q,T-ge):q}function Y(he){var ke=he-C,ge=he-x;return C===void 0||ke>=m||ke<0||D&&ge>=T}function X(){var he=r();if(Y(he))return J(he);b=setTimeout(X,G(he))}function J(he){return b=void 0,A&&y?w(he):(y=E=void 0,j)}function W(){b!==void 0&&clearTimeout(b),x=0,y=C=E=b=void 0}function de(){return b===void 0?j:J(r())}function ie(){var he=r(),ke=Y(he);if(y=arguments,E=this,C=he,ke){if(b===void 0)return S(C);if(D)return clearTimeout(b),b=setTimeout(X,m),w(C)}return b===void 0&&(b=setTimeout(X,m)),j}return ie.cancel=W,ie.flush=de,ie}return Zf=h,Zf}var Xf,H_;function e4(){if(H_)return Xf;H_=1;var n=W6(),r=rd(),i="Expected a function";function l(u,c,h){var d=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(h)&&(d="leading"in h?!!h.leading:d,m="trailing"in h?!!h.trailing:m),n(u,c,{leading:d,maxWait:c,trailing:m})}return Xf=l,Xf}var t4=e4();const n4=po(t4);function r4(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function a4(n){return n}function i4(n,r){r=r||{};const i=r.delimiter||".",l=r.maxDepth,u=r.transformKey||a4,c={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(y){const E=d[y],T=r.safe&&Array.isArray(E),j=Object.prototype.toString.call(E),b=r4(E),C=j==="[object Object]"||j==="[object Array]",x=m?m+i+u(y):u(y);if(!T&&!b&&C&&Object.keys(E).length&&(!r.maxDepth||g<l))return h(E,x,g+1);c[x]=E})}return h(n),c}const Rb={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
107
|
-
|
|
108
|
-
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
109
|
-
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.expand-chat":"Chat vergrössern","header.close-chat":"Chat minimieren","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"},s4={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
110
|
-
|
|
111
|
-
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
112
|
-
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.expand-chat":"Expand chat","header.close-chat":"Minimize chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},l4={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","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 conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
113
|
-
|
|
114
|
-
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
115
|
-
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.expand-chat":"Agrandir le chat","header.close-chat":"Minimiser le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},o4={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","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 conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
116
|
-
|
|
117
|
-
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
118
|
-
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.expand-chat":"Allarga la chat","header.close-chat":"Ridurre al minimo la chat","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"},u4=["de","en","fr","it"],Cb={locale:"de",messages:Rb},c4=(n,r)=>{if(u4.includes(n)){const i=f4(n),l=i4(r);return{...i,...l}}return r},f4=n=>{switch(n.toString()){case"en":return s4;case"fr":return l4;case"it":return o4;default:return Rb}},h4=(n=d4,r)=>{switch(r.type){case Xh:return Object.assign({},n,{connectionState:Kr.CONNECTING});case Qh:return Object.assign({},n,{connectionState:Kr.CONNECTED});case Kh:return Object.assign({},n,{connectionState:Kr.DISCONNECTED});case $h:return Object.assign({},n,{connectionState:Kr.RECONNECTED});default:return n}},d4={connectionState:Kr.DISCONNECTED},ft=[];for(let n=0;n<256;++n)ft.push((n+256).toString(16).slice(1));function m4(n,r=0){return(ft[n[r+0]]+ft[n[r+1]]+ft[n[r+2]]+ft[n[r+3]]+"-"+ft[n[r+4]]+ft[n[r+5]]+"-"+ft[n[r+6]]+ft[n[r+7]]+"-"+ft[n[r+8]]+ft[n[r+9]]+"-"+ft[n[r+10]]+ft[n[r+11]]+ft[n[r+12]]+ft[n[r+13]]+ft[n[r+14]]+ft[n[r+15]]).toLowerCase()}let Qf;const p4=new Uint8Array(16);function g4(){if(!Qf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Qf=crypto.getRandomValues.bind(crypto)}return Qf(p4)}const y4=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),z_={randomUUID:y4};function _4(n,r,i){var u;if(z_.randomUUID&&!n)return z_.randomUUID();n=n||{};const l=n.random??((u=n.rng)==null?void 0:u.call(n))??g4();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,m4(l)}const v4=(n=G_,r)=>{var i,l,u,c,h;switch(r.type){case rb:return G_;case Jh:return Zr({type:"webclient.chat.started"}),n;case ab:return Zr({type:"webclient.chat.ended"}),n;case Se.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Se.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Se.ActionTypes.MESSAGE_FROM_GUEST:case Se.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return k_(n,r.message);case Se.ActionTypes.MESSAGE_TO_GUEST:{Zr(r);const d=Object.assign({},r.message,{_id:r.meta.actionId}),m=n.messages.filter(g=>g._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:m?n.messages:n.messages.concat([d]),quickReplies:d.quickReplies?d.quickReplies:[]})}case Uh:{const d=r.messages,m=d.length?d[d.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:d,quickReplies:(m==null?void 0:m.quickReplies)||[]})}case Lh:return Zr(r.message),n;case Se.ActionTypes.EVENT_TO_GUEST:return Zr(r.event),n;case Se.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Se.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Se.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case kv:return Zr(r),n;case Gv:return Zr(r),n;case zh:{const d=new Se.TextMessage(r.transcription,new Se.GuestUser),m=Object.assign({},d,{_id:_4()});return k_(n,m)}case Se.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const d=n.messages.map(m=>m._id===r.payload.actionId?Object.assign({},m,{reaction:r.payload.reaction}):m);return Object.assign({},n,{messages:d})}case kh:{const d={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:d})}case Se.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const d={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:d})}case qh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Gh:{const{highlighted:d}=r.payload;return((i=n.sourceInfos)==null?void 0:i.type)==="loaded"&&d?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case zv:{const d=(l=n.sourceInfos)==null?void 0:l.type,{chunkId:m,knowledgeBaseType:g,title:y,content:E,highlighted:T,url:j}=r.payload,b=((u=n.sourceInfos)==null?void 0:u.type)==="loading"||((c=n.sourceInfos)==null?void 0:c.type)==="loaded"?(h=n.sourceInfos)==null?void 0:h.chunkId:void 0;return b&&b!==m?n:d==="loading"||d==="loaded"&&T?{...n,sourceInfos:{type:"loaded",chunkId:m,knowledgeBaseType:g,title:y,content:E,highlighted:T,url:j}}:n}case Ih:return{...n,sourceInfos:void 0};default:return n}},k_=(n,r)=>{const i=n.messages[n.messages.length-1],l=(i==null?void 0:i.text)===r.text;return i&&i.sender.type===r.sender.type&&l?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},Zr=n=>{var r;b4()?(r=window.top)==null||r.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},b4=()=>typeof window<"u"&&window.self!==window.top,G_={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},Nb=Yh({name:"intl",initialState:Cb,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:E4}=Nb.actions,S4=Nb.reducer,T4={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},Db=Yh({name:"settings",initialState:T4,reducers:{setSettings(n,r){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}}}),{setSettings:x4}=Db.actions,A4=Db.reducer,O4=Pv({settings:A4,chat:v4,startScreen:KA,connection:h4,intl:S4}),w4="bubble-chat",Mb="state-last-saved-at",Bb="state",R4=n=>{try{if(!D4())return;const r=q_(n,Mb);if(N4(r))return;{const i=q_(n,Bb);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},C4=(n,r)=>{try{const i=JSON.stringify(r);I_(n,Bb,i);const l=new Date().toISOString();I_(n,Mb,l)}catch(i){console.error(i)}},N4=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},D4=()=>typeof localStorage<"u",q_=(n,r)=>{const i=jb(n,r);return localStorage.getItem(i)},I_=(n,r,i)=>{const l=jb(n,r);return localStorage.setItem(l,i)},jb=(n,r)=>`${w4}-${n}-${r}`,xn=Object.create(null);xn.open="0";xn.close="1";xn.ping="2";xn.pong="3";xn.message="4";xn.upgrade="5";xn.noop="6";const no=Object.create(null);Object.keys(xn).forEach(n=>{no[xn[n]]=n});const vh={type:"error",data:"parser error"},Lb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ub=typeof ArrayBuffer=="function",Hb=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,ad=({type:n,data:r},i,l)=>Lb&&r instanceof Blob?i?l(r):F_(r,l):Ub&&(r instanceof ArrayBuffer||Hb(r))?i?l(r):F_(new Blob([r]),l):l(xn[n]+(r||"")),F_=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function V_(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Kf;function M4(n,r){if(Lb&&n.data instanceof Blob)return n.data.arrayBuffer().then(V_).then(r);if(Ub&&(n.data instanceof ArrayBuffer||Hb(n.data)))return r(V_(n.data));ad(n,!1,i=>{Kf||(Kf=new TextEncoder),r(Kf.encode(i))})}const P_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<P_.length;n++)rs[P_.charCodeAt(n)]=n;const B4=n=>{let r=n.length*.75,i=n.length,l,u=0,c,h,d,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),y=new Uint8Array(g);for(l=0;l<i;l+=4)c=rs[n.charCodeAt(l)],h=rs[n.charCodeAt(l+1)],d=rs[n.charCodeAt(l+2)],m=rs[n.charCodeAt(l+3)],y[u++]=c<<2|h>>4,y[u++]=(h&15)<<4|d>>2,y[u++]=(d&3)<<6|m&63;return g},j4=typeof ArrayBuffer=="function",id=(n,r)=>{if(typeof n!="string")return{type:"message",data:zb(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:L4(n.substring(1),r)}:no[i]?n.length>1?{type:no[i],data:n.substring(1)}:{type:no[i]}:vh},L4=(n,r)=>{if(j4){const i=B4(n);return zb(i,r)}else return{base64:!0,data:n}},zb=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},kb="",U4=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((c,h)=>{ad(c,!1,d=>{l[h]=d,++u===i&&r(l.join(kb))})})},H4=(n,r)=>{const i=n.split(kb),l=[];for(let u=0;u<i.length;u++){const c=id(i[u],r);if(l.push(c),c.type==="error")break}return l};function z4(){return new TransformStream({transform(n,r){M4(n,i=>{const l=i.length;let u;if(l<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,l);else if(l<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,l)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let $f;function Jl(n){return n.reduce((r,i)=>r+i.length,0)}function Wl(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let l=0;for(let u=0;u<r;u++)i[u]=n[0][l++],l===n[0].length&&(n.shift(),l=0);return n.length&&l<n[0].length&&(n[0]=n[0].slice(l)),i}function k4(n,r){$f||($f=new TextDecoder);const i=[];let l=0,u=-1,c=!1;return new TransformStream({transform(h,d){for(i.push(h);;){if(l===0){if(Jl(i)<1)break;const m=Wl(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?l=3:u===126?l=1:l=2}else if(l===1){if(Jl(i)<2)break;const m=Wl(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if(Jl(i)<8)break;const m=Wl(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),y=g.getUint32(0);if(y>Math.pow(2,21)-1){d.enqueue(vh);break}u=y*Math.pow(2,32)+g.getUint32(4),l=3}else{if(Jl(i)<u)break;const m=Wl(i,u);d.enqueue(id(c?m:$f.decode(m),r)),l=0}if(u===0||u>n){d.enqueue(vh);break}}}})}const Gb=4;function et(n){if(n)return G4(n)}function G4(n){for(var r in et.prototype)n[r]=et.prototype[r];return n}et.prototype.on=et.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};et.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};et.prototype.off=et.prototype.removeListener=et.prototype.removeAllListeners=et.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 l,u=0;u<i.length;u++)if(l=i[u],l===r||l.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};et.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],l=1;l<arguments.length;l++)r[l-1]=arguments[l];if(i){i=i.slice(0);for(var l=0,u=i.length;l<u;++l)i[l].apply(this,r)}return this};et.prototype.emitReserved=et.prototype.emit;et.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};et.prototype.hasListeners=function(n){return!!this.listeners(n).length};const wo=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Jt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),q4="arraybuffer";function qb(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const I4=Jt.setTimeout,F4=Jt.clearTimeout;function Ro(n,r){r.useNativeTimers?(n.setTimeoutFn=I4.bind(Jt),n.clearTimeoutFn=F4.bind(Jt)):(n.setTimeoutFn=Jt.setTimeout.bind(Jt),n.clearTimeoutFn=Jt.clearTimeout.bind(Jt))}const V4=1.33;function P4(n){return typeof n=="string"?Y4(n):Math.ceil((n.byteLength||n.size)*V4)}function Y4(n){let r=0,i=0;for(let l=0,u=n.length;l<u;l++)r=n.charCodeAt(l),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(l++,i+=4);return i}function Ib(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Z4(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function X4(n){let r={},i=n.split("&");for(let l=0,u=i.length;l<u;l++){let c=i[l].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class Q4 extends Error{constructor(r,i,l){super(r),this.description=i,this.context=l,this.type="TransportError"}}class sd extends et{constructor(r){super(),this.writable=!1,Ro(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,l){return super.emitReserved("error",new Q4(r,i,l)),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=id(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=Z4(r);return i.length?"?"+i:""}}class K4 extends sd{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 l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||i()})),this.writable||(l++,this.once("drain",function(){--l||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};H4(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,U4(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]=Ib()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Fb=!1;try{Fb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $4=Fb;function J4(){}class W4 extends K4{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let l=location.port;l||(l=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||l!==r.port}}doWrite(r,i){const l=this.request({method:"POST",data:r});l.on("success",i),l.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,l)=>{this.onError("xhr poll error",i,l)}),this.pollXhr=r}}class Sn extends et{constructor(r,i,l){super(),this.createRequest=r,Ro(this,l),this._opts=l,this._method=l.method||"GET",this._uri=i,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var r;const i=qb(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(i);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&l.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var u;l.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Sn.requestsCount++,Sn.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=J4,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Sn.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()}}Sn.requestsCount=0;Sn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Y_);else if(typeof addEventListener=="function"){const n="onpagehide"in Jt?"pagehide":"unload";addEventListener(n,Y_,!1)}}function Y_(){for(let n in Sn.requests)Sn.requests.hasOwnProperty(n)&&Sn.requests[n].abort()}const eN=function(){const n=Vb({xdomain:!1});return n&&n.responseType!==null}();class tN extends W4{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=eN&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Sn(Vb,this.uri(),r)}}function Vb(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||$4))return new XMLHttpRequest}catch{}if(!r)try{return new Jt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Pb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class nN extends sd{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=Pb?{}:qb(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,l)}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 l=r[i],u=i===r.length-1;ad(l,this.supportsBinary,c=>{try{this.doWrite(l,c)}catch{}u&&wo(()=>{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]=Ib()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Jf=Jt.WebSocket||Jt.MozWebSocket;class rN extends nN{createSocket(r,i,l){return Pb?new Jf(r,i,l):i?new Jf(r,i):new Jf(r)}doWrite(r,i){this.ws.send(i)}}class aN extends sd{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=k4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=z4();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{l.read().then(({done:d,value:m})=>{d||(this.onPacket(m),c())}).catch(d=>{})};c();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const l=r[i],u=i===r.length-1;this._writer.write(l).then(()=>{u&&wo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const iN={websocket:rN,webtransport:aN,polling:tN},sN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function bh(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),l=n.indexOf("]");i!=-1&&l!=-1&&(n=n.substring(0,i)+n.substring(i,l).replace(/:/g,";")+n.substring(l,n.length));let u=sN.exec(n||""),c={},h=14;for(;h--;)c[lN[h]]=u[h]||"";return i!=-1&&l!=-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=oN(c,c.path),c.queryKey=uN(c,c.query),c}function oN(n,r){const i=/\/{2,9}/g,l=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&l.splice(0,1),r.slice(-1)=="/"&&l.splice(l.length-1,1),l}function uN(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,c){u&&(i[u]=c)}),i}const Eh=typeof addEventListener=="function"&&typeof removeEventListener=="function",ro=[];Eh&&addEventListener("offline",()=>{ro.forEach(n=>n())},!1);class Er extends et{constructor(r,i){if(super(),this.binaryType=q4,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 l=bh(r);i.hostname=l.host,i.secure=l.protocol==="https"||l.protocol==="wss",i.port=l.port,l.query&&(i.query=l.query)}else i.host&&(i.hostname=bh(i.host).host);Ro(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(l=>{const u=l.prototype.name;this.transports.push(u),this._transportsByName[u]=l}),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=X4(this.opts.query)),Eh&&(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"})},ro.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=Gb,i.transport=r,this.id&&(i.sid=this.id);const l=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](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&Er.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",Er.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 l=0;l<this.writeBuffer.length;l++){const u=this.writeBuffer[l].data;if(u&&(i+=P4(u)),l>0&&i>this._maxPayload)return this.writeBuffer.slice(0,l);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,wo(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,l){return this._sendPacket("message",r,i,l),this}send(r,i,l){return this._sendPacket("message",r,i,l),this}_sendPacket(r,i,l,u){if(typeof i=="function"&&(u=i,i=void 0),typeof l=="function"&&(u=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const c={type:r,data:i,options:l};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()},l=()=>{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?l():r()}):this.upgrading?l():r()),this}_onError(r){if(Er.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(),Eh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=ro.indexOf(this._offlineEventListener);l!==-1&&ro.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}Er.protocol=Gb;class cN extends Er{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),l=!1;Er.priorWebsocketSuccess=!1;const u=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!l)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Er.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||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(){l||(l=!0,y(),i.close(),i=null)}const h=E=>{const T=new Error("probe error: "+E);T.transport=i.name,c(),this.emitReserved("upgradeError",T)};function d(){h("transport closed")}function m(){h("socket closed")}function g(E){i&&E.name!==i.name&&c()}const y=()=>{i.removeListener("open",u),i.removeListener("error",h),i.removeListener("close",d),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",h),i.once("close",d),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{l||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let l=0;l<r.length;l++)~this.transports.indexOf(r[l])&&i.push(r[l]);return i}}let fN=class extends cN{constructor(r,i={}){const l=typeof r=="object"?r:i;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(u=>iN[u]).filter(u=>!!u)),super(r,l)}};function hN(n,r="",i){let l=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),l=bh(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+r,l.href=l.protocol+"://"+c+(i&&i.port===l.port?"":":"+l.port),l}const dN=typeof ArrayBuffer=="function",mN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Yb=Object.prototype.toString,pN=typeof Blob=="function"||typeof Blob<"u"&&Yb.call(Blob)==="[object BlobConstructor]",gN=typeof File=="function"||typeof File<"u"&&Yb.call(File)==="[object FileConstructor]";function ld(n){return dN&&(n instanceof ArrayBuffer||mN(n))||pN&&n instanceof Blob||gN&&n instanceof File}function ao(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(ao(n[i]))return!0;return!1}if(ld(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ao(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&ao(n[i]))return!0;return!1}function yN(n){const r=[],i=n.data,l=n;return l.data=Sh(i,r),l.attachments=r.length,{packet:l,buffers:r}}function Sh(n,r){if(!n)return n;if(ld(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 l=0;l<n.length;l++)i[l]=Sh(n[l],r);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=Sh(n[l],r));return i}return n}function _N(n,r){return n.data=Th(n.data,r),delete n.attachments,n}function Th(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]=Th(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Th(n[i],r));return n}const vN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],bN=5;var Ae;(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"})(Ae||(Ae={}));class EN{constructor(r){this.replacer=r}encode(r){return(r.type===Ae.EVENT||r.type===Ae.ACK)&&ao(r)?this.encodeAsBinary({type:r.type===Ae.EVENT?Ae.BINARY_EVENT:Ae.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ae.BINARY_EVENT||r.type===Ae.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=yN(r),l=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(l),u}}function Z_(n){return Object.prototype.toString.call(n)==="[object Object]"}class od extends et{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 l=i.type===Ae.BINARY_EVENT;l||i.type===Ae.BINARY_ACK?(i.type=l?Ae.EVENT:Ae.ACK,this.reconstructor=new SN(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(ld(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 l={type:Number(r.charAt(0))};if(Ae[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ae.BINARY_EVENT||l.type===Ae.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const h=r.substring(c,i);if(h!=Number(h)||r.charAt(i)!=="-")throw new Error("Illegal attachments");l.attachments=Number(h)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););l.nsp=r.substring(c,i)}else l.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const h=r.charAt(i);if(h==null||Number(h)!=h){--i;break}if(i===r.length)break}l.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(od.isPayloadValid(l.type,c))l.data=c;else throw new Error("invalid payload")}return l}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ae.CONNECT:return Z_(i);case Ae.DISCONNECT:return i===void 0;case Ae.CONNECT_ERROR:return typeof i=="string"||Z_(i);case Ae.EVENT:case Ae.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&vN.indexOf(i[0])===-1);case Ae.ACK:case Ae.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class SN{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=_N(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const TN=Object.freeze(Object.defineProperty({__proto__:null,Decoder:od,Encoder:EN,get PacketType(){return Ae},protocol:bN},Symbol.toStringTag,{value:"Module"}));function cn(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const xN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Zb extends et{constructor(r,i,l){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,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[cn(r,"open",this.onopen.bind(this)),cn(r,"packet",this.onpacket.bind(this)),cn(r,"error",this.onerror.bind(this)),cn(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 l,u,c;if(xN.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 h={type:Ae.EVENT,data:i};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,E=i.pop();this._registerAckCallback(y,E),h.id=y}const d=(u=(l=this.io.engine)===null||l===void 0?void 0:l.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&&!d||(m?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(r,i){var l;const u=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===r&&this.sendBuffer.splice(d,1);i.call(this,new Error("operation has timed out"))},u),h=(...d)=>{this.io.clearTimeoutFn(c),i.apply(this,d)};h.withError=!0,this.acks[r]=h}emitWithAck(r,...i){return new Promise((l,u)=>{const c=(h,d)=>h?u(h):l(d);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>l!==this._queue[0]?void 0:(u!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),l.pending=!1,this._drainQueue())),this._queue.push(l),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:Ae.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(l=>String(l.id)===r)){const l=this.acks[r];delete this.acks[r],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ae.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 Ae.EVENT:case Ae.BINARY_EVENT:this.onevent(r);break;case Ae.ACK:case Ae.BINARY_ACK:this.onack(r);break;case Ae.DISCONNECT:this.ondisconnect();break;case Ae.CONNECT_ERROR:this.destroy();const l=new Error(r.data.message);l.data=r.data.data,this.emitReserved("connect_error",l);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 l of i)l.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 l=!1;return function(...u){l||(l=!0,i.packet({type:Ae.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:Ae.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 l=0;l<i.length;l++)if(r===i[l])return i.splice(l,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 l=0;l<i.length;l++)if(r===i[l])return i.splice(l,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 l of i)l.apply(this,r.data)}}}function Ya(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}Ya.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};Ya.prototype.reset=function(){this.attempts=0};Ya.prototype.setMin=function(n){this.ms=n};Ya.prototype.setMax=function(n){this.max=n};Ya.prototype.setJitter=function(n){this.jitter=n};class xh extends et{constructor(r,i){var l;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,Ro(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((l=i.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new Ya({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||TN;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 fN(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=cn(i,"open",function(){l.onopen(),r&&r()}),c=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=cn(i,"error",c);if(this._timeout!==!1){const d=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},d);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(h),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(cn(r,"ping",this.onping.bind(this)),cn(r,"data",this.ondata.bind(this)),cn(r,"error",this.onerror.bind(this)),cn(r,"close",this.onclose.bind(this)),cn(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){wo(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let l=this.nsps[r];return l?this._autoConnect&&!l.active&&l.connect():(l=new Zb(this,r,i),this.nsps[r]=l),l}_destroy(r){const i=Object.keys(this.nsps);for(const l of i)if(this.nsps[l].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let l=0;l<i.length;l++)this.engine.write(i[l],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 l;this.cleanup(),(l=this.engine)===null||l===void 0||l.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 l=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&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const es={};function io(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=hN(n,r.path||"/socket.io"),l=i.source,u=i.id,c=i.path,h=es[u]&&c in es[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new xh(l,r):(es[u]||(es[u]=new xh(l,r)),m=es[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(io,{Manager:xh,Socket:Zb,io,connect:io});const AN=[Se.ActionTypes.MESSAGE_TO_GUEST,Se.ActionTypes.EVENT_TO_GUEST,Se.ActionTypes.TYPING_ON,Se.ActionTypes.TYPING_OFF,Se.ActionTypes.RESTART_CHAT_REQUEST,...eO,...nA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],ON=({dispatch:n})=>r=>{let i=null;return l=>{const u=r(l);if(l.type===Zh){i!=null&&i.disconnect(),n(nO());const c=`/chat?${_o.stringify(l.querystrings)}`;i=io(`/${l.clientName}${c}`),i.on("action",n),i.on("connect",()=>n(rO())),i.on("disconnect",()=>n(aO())),i.on("reconnect",()=>n(iO())),i.on("set-translations",(h,d)=>{n(E4({language:h,messages:c4(h,d)}))}),i.on("set-settings",h=>{n(x4(h))}),i.on("enable-conversation-rating",h=>n(lA(h))),i.on("speech-transcription",h=>n(aA(h))),i.on("restore-client-state",h=>{n(uA(h.messages))}),i.on("expand-window",({devices:h,initial:d=!1})=>{n({type:kv,devices:h,initial:d})}),i.on("restart-chat",()=>{n(To(l.clientName,l.querystrings))})}else if(l.type===Jh)i==null||i.emit("start-chat",l.payload);else if(l.type===ab)i==null||i.emit("terminate-session",l.payload);else if(l.type===tA)i==null||i.emit("get-started",JSON.stringify(l));else if(l.type===Hh)i==null||i.emit("audio-message",l.buffer);else if(l.type===Se.ActionTypes.CONVERSATION_RATING_FROM_GUEST)i==null||i.emit("conversation-rating",l.payload);else if(l.type===qv){const{clientName:c}=l.payload;window.location.href=`/${c}/transcript-pdf`}else AN.indexOf(l.type)===-1&&l.meta===void 0&&i&&i.emit("action",JSON.stringify(l));return u}},Xb=Sb(),wN={...R4(Xb),intl:Cb},Ah=LA({middleware:n=>n().concat(ON),reducer:O4,preloadedState:wN});Ah.subscribe(n4(()=>{const n=Ah.getState();C4(Xb,{connection:n.connection,startScreen:n.startScreen})},1e3));const RN=document.getElementById("root"),CN=R2.createRoot(RN);CN.render(_.jsx(AS,{store:Ah,children:_.jsx(I6,{})}));
|
|
119
|
-
//# sourceMappingURL=index-J_X7d2_u.js.map
|