@botfabrik/engine-webclient 4.104.18 → 4.104.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,132 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function l(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=l(d);fetch(d.href,m)}})();function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jsxRuntime={exports:{}},reactJsxRuntime_production={};var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(c,d,m){var y=null;if(m!==void 0&&(y=""+m),d.key!==void 0&&(y=""+d.key),"key"in d){m={};for(var _ in d)_!=="key"&&(m[_]=d[_])}else m=d;return d=m.ref,{$$typeof:t,type:c,key:y,ref:d!==void 0?d:null,props:m}}return reactJsxRuntime_production.Fragment=i,reactJsxRuntime_production.jsx=l,reactJsxRuntime_production.jsxs=l,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(t){function i(K,he){var ee=K.length;K.push(he);e:for(;0<ee;){var Re=ee-1>>>1,Te=K[Re];if(0<d(Te,he))K[Re]=he,K[ee]=Te,ee=Re;else break e}}function l(K){return K.length===0?null:K[0]}function c(K){if(K.length===0)return null;var he=K[0],ee=K.pop();if(ee!==he){K[0]=ee;e:for(var Re=0,Te=K.length,H=Te>>>1;Re<H;){var ie=2*(Re+1)-1,ue=K[ie],ve=ie+1,pe=K[ve];if(0>d(ue,ee))ve<Te&&0>d(pe,ue)?(K[Re]=pe,K[ve]=ee,Re=ve):(K[Re]=ue,K[ie]=ee,Re=ie);else if(ve<Te&&0>d(pe,ee))K[Re]=pe,K[ve]=ee,Re=ve;else break e}}return he}function d(K,he){var ee=K.sortIndex-he.sortIndex;return ee!==0?ee:K.id-he.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;t.unstable_now=function(){return m.now()}}else{var y=Date,_=y.now();t.unstable_now=function(){return y.now()-_}}var v=[],E=[],S=1,A=null,T=3,D=!1,k=!1,R=!1,N=!1,z=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function Y(K){for(var he=l(E);he!==null;){if(he.callback===null)c(E);else if(he.startTime<=K)c(E),he.sortIndex=he.expirationTime,i(v,he);else break;he=l(E)}}function X(K){if(R=!1,Y(K),!k)if(l(v)!==null)k=!0,Q||(Q=!0,se());else{var he=l(E);he!==null&&Ee(X,he.startTime-K)}}var Q=!1,G=-1,te=5,J=-1;function le(){return N?!0:!(t.unstable_now()-J<te)}function ae(){if(N=!1,Q){var K=t.unstable_now();J=K;var he=!0;try{e:{k=!1,R&&(R=!1,L(G),G=-1),D=!0;var ee=T;try{t:{for(Y(K),A=l(v);A!==null&&!(A.expirationTime>K&&le());){var Re=A.callback;if(typeof Re=="function"){A.callback=null,T=A.priorityLevel;var Te=Re(A.expirationTime<=K);if(K=t.unstable_now(),typeof Te=="function"){A.callback=Te,Y(K),he=!0;break t}A===l(v)&&c(v),Y(K)}else c(v);A=l(v)}if(A!==null)he=!0;else{var H=l(E);H!==null&&Ee(X,H.startTime-K),he=!1}}break e}finally{A=null,T=ee,D=!1}he=void 0}}finally{he?se():Q=!1}}}var se;if(typeof U=="function")se=function(){U(ae)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,ye=_e.port2;_e.port1.onmessage=ae,se=function(){ye.postMessage(null)}}else se=function(){z(ae,0)};function Ee(K,he){G=z(function(){K(t.unstable_now())},he)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_next=function(K){switch(T){case 1:case 2:case 3:var he=3;break;default:he=T}var ee=T;T=he;try{return K()}finally{T=ee}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(K,he){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ee=T;T=K;try{return he()}finally{T=ee}},t.unstable_scheduleCallback=function(K,he,ee){var Re=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Re+ee:Re):ee=Re,K){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ee+Te,K={id:S++,callback:he,priorityLevel:K,startTime:ee,expirationTime:Te,sortIndex:-1},ee>Re?(K.sortIndex=ee,i(E,K),l(v)===null&&K===l(E)&&(R?(L(G),G=-1):R=!0,Ee(X,ee-Re))):(K.sortIndex=Te,i(v,K),k||D||(k=!0,Q||(Q=!0,se()))),K},t.unstable_shouldYield=le,t.unstable_wrapCallback=function(K){var he=T;return function(){var ee=T;T=he;try{return K.apply(this,arguments)}finally{T=ee}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var react={exports:{}},react_production={};var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),T=Symbol.iterator;function D(H){return H===null||typeof H!="object"?null:(H=T&&H[T]||H["@@iterator"],typeof H=="function"?H:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,N={};function z(H,ie,ue){this.props=H,this.context=ie,this.refs=N,this.updater=ue||k}z.prototype.isReactComponent={},z.prototype.setState=function(H,ie){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,ie,"setState")},z.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function L(){}L.prototype=z.prototype;function U(H,ie,ue){this.props=H,this.context=ie,this.refs=N,this.updater=ue||k}var Y=U.prototype=new L;Y.constructor=U,R(Y,z.prototype),Y.isPureReactComponent=!0;var X=Array.isArray;function Q(){}var G={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function J(H,ie,ue){var ve=ue.ref;return{$$typeof:t,type:H,key:ie,ref:ve!==void 0?ve:null,props:ue}}function le(H,ie){return J(H.type,ie,H.props)}function ae(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function se(H){var ie={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(ue){return ie[ue]})}var _e=/\/+/g;function ye(H,ie){return typeof H=="object"&&H!==null&&H.key!=null?se(""+H.key):ie.toString(36)}function Ee(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(Q,Q):(H.status="pending",H.then(function(ie){H.status==="pending"&&(H.status="fulfilled",H.value=ie)},function(ie){H.status==="pending"&&(H.status="rejected",H.reason=ie)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function K(H,ie,ue,ve,pe){var be=typeof H;(be==="undefined"||be==="boolean")&&(H=null);var xe=!1;if(H===null)xe=!0;else switch(be){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(H.$$typeof){case t:case i:xe=!0;break;case S:return xe=H._init,K(xe(H._payload),ie,ue,ve,pe)}}if(xe)return pe=pe(H),xe=ve===""?"."+ye(H,0):ve,X(pe)?(ue="",xe!=null&&(ue=xe.replace(_e,"$&/")+"/"),K(pe,ie,ue,"",function(Ye){return Ye})):pe!=null&&(ae(pe)&&(pe=le(pe,ue+(pe.key==null||H&&H.key===pe.key?"":(""+pe.key).replace(_e,"$&/")+"/")+xe)),ie.push(pe)),1;xe=0;var De=ve===""?".":ve+":";if(X(H))for(var Me=0;Me<H.length;Me++)ve=H[Me],be=De+ye(ve,Me),xe+=K(ve,ie,ue,be,pe);else if(Me=D(H),typeof Me=="function")for(H=Me.call(H),Me=0;!(ve=H.next()).done;)ve=ve.value,be=De+ye(ve,Me++),xe+=K(ve,ie,ue,be,pe);else if(be==="object"){if(typeof H.then=="function")return K(Ee(H),ie,ue,ve,pe);throw ie=String(H),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return xe}function he(H,ie,ue){if(H==null)return H;var ve=[],pe=0;return K(H,ve,"","",function(be){return ie.call(ue,be,pe++)}),ve}function ee(H){if(H._status===-1){var ie=H._result;ie=ie(),ie.then(function(ue){(H._status===0||H._status===-1)&&(H._status=1,H._result=ue)},function(ue){(H._status===0||H._status===-1)&&(H._status=2,H._result=ue)}),H._status===-1&&(H._status=0,H._result=ie)}if(H._status===1)return H._result.default;throw H._result}var Re=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(ie))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",H);return}console.error(H)},Te={map:he,forEach:function(H,ie,ue){he(H,function(){ie.apply(this,arguments)},ue)},count:function(H){var ie=0;return he(H,function(){ie++}),ie},toArray:function(H){return he(H,function(ie){return ie})||[]},only:function(H){if(!ae(H))throw Error("React.Children.only expected to receive a single React element child.");return H}};return react_production.Activity=A,react_production.Children=Te,react_production.Component=z,react_production.Fragment=l,react_production.Profiler=d,react_production.PureComponent=U,react_production.StrictMode=c,react_production.Suspense=v,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(H){return G.H.useMemoCache(H)}},react_production.cache=function(H){return function(){return H.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(H,ie,ue){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var ve=R({},H.props),pe=H.key;if(ie!=null)for(be in ie.key!==void 0&&(pe=""+ie.key),ie)!te.call(ie,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&ie.ref===void 0||(ve[be]=ie[be]);var be=arguments.length-2;if(be===1)ve.children=ue;else if(1<be){for(var xe=Array(be),De=0;De<be;De++)xe[De]=arguments[De+2];ve.children=xe}return J(H.type,pe,ve)},react_production.createContext=function(H){return H={$$typeof:y,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:m,_context:H},H},react_production.createElement=function(H,ie,ue){var ve,pe={},be=null;if(ie!=null)for(ve in ie.key!==void 0&&(be=""+ie.key),ie)te.call(ie,ve)&&ve!=="key"&&ve!=="__self"&&ve!=="__source"&&(pe[ve]=ie[ve]);var xe=arguments.length-2;if(xe===1)pe.children=ue;else if(1<xe){for(var De=Array(xe),Me=0;Me<xe;Me++)De[Me]=arguments[Me+2];pe.children=De}if(H&&H.defaultProps)for(ve in xe=H.defaultProps,xe)pe[ve]===void 0&&(pe[ve]=xe[ve]);return J(H,be,pe)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(H){return{$$typeof:_,render:H}},react_production.isValidElement=ae,react_production.lazy=function(H){return{$$typeof:S,_payload:{_status:-1,_result:H},_init:ee}},react_production.memo=function(H,ie){return{$$typeof:E,type:H,compare:ie===void 0?null:ie}},react_production.startTransition=function(H){var ie=G.T,ue={};G.T=ue;try{var ve=H(),pe=G.S;pe!==null&&pe(ue,ve),typeof ve=="object"&&ve!==null&&typeof ve.then=="function"&&ve.then(Q,Re)}catch(be){Re(be)}finally{ie!==null&&ue.types!==null&&(ie.types=ue.types),G.T=ie}},react_production.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},react_production.use=function(H){return G.H.use(H)},react_production.useActionState=function(H,ie,ue){return G.H.useActionState(H,ie,ue)},react_production.useCallback=function(H,ie){return G.H.useCallback(H,ie)},react_production.useContext=function(H){return G.H.useContext(H)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(H,ie){return G.H.useDeferredValue(H,ie)},react_production.useEffect=function(H,ie){return G.H.useEffect(H,ie)},react_production.useEffectEvent=function(H){return G.H.useEffectEvent(H)},react_production.useId=function(){return G.H.useId()},react_production.useImperativeHandle=function(H,ie,ue){return G.H.useImperativeHandle(H,ie,ue)},react_production.useInsertionEffect=function(H,ie){return G.H.useInsertionEffect(H,ie)},react_production.useLayoutEffect=function(H,ie){return G.H.useLayoutEffect(H,ie)},react_production.useMemo=function(H,ie){return G.H.useMemo(H,ie)},react_production.useOptimistic=function(H,ie){return G.H.useOptimistic(H,ie)},react_production.useReducer=function(H,ie,ue){return G.H.useReducer(H,ie,ue)},react_production.useRef=function(H){return G.H.useRef(H)},react_production.useState=function(H){return G.H.useState(H)},react_production.useSyncExternalStore=function(H,ie,ue){return G.H.useSyncExternalStore(H,ie,ue)},react_production.useTransition=function(){return G.H.useTransition()},react_production.version="19.2.3",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactDom={exports:{}},reactDom_production={};var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var t=requireReact();function i(v){var E="https://react.dev/errors/"+v;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)E+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var c={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(v,E,S){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:A==null?null:""+A,children:v,containerInfo:E,implementation:S}}var y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(v,E){if(v==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,reactDom_production.createPortal=function(v,E){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(i(299));return m(v,E,null,S)},reactDom_production.flushSync=function(v){var E=y.T,S=c.p;try{if(y.T=null,c.p=2,v)return v()}finally{y.T=E,c.p=S,c.d.f()}},reactDom_production.preconnect=function(v,E){typeof v=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,c.d.C(v,E))},reactDom_production.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},reactDom_production.preinit=function(v,E){if(typeof v=="string"&&E&&typeof E.as=="string"){var S=E.as,A=_(S,E.crossOrigin),T=typeof E.integrity=="string"?E.integrity:void 0,D=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;S==="style"?c.d.S(v,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:A,integrity:T,fetchPriority:D}):S==="script"&&c.d.X(v,{crossOrigin:A,integrity:T,fetchPriority:D,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},reactDom_production.preinitModule=function(v,E){if(typeof v=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var S=_(E.as,E.crossOrigin);c.d.M(v,{crossOrigin:S,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&c.d.M(v)},reactDom_production.preload=function(v,E){if(typeof v=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var S=E.as,A=_(S,E.crossOrigin);c.d.L(v,S,{crossOrigin:A,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},reactDom_production.preloadModule=function(v,E){if(typeof v=="string")if(E){var S=_(E.as,E.crossOrigin);c.d.m(v,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:S,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else c.d.m(v)},reactDom_production.requestFormReset=function(v){c.d.r(v)},reactDom_production.unstable_batchedUpdates=function(v,E){return v(E)},reactDom_production.useFormState=function(v,E,S){return y.H.useFormState(v,E,S)},reactDom_production.useFormStatus=function(){return y.H.useHostTransitionStatus()},reactDom_production.version="19.2.3",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var t=requireScheduler(),i=requireReact(),l=requireReactDom();function c(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function y(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function _(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function v(e){if(m(e)!==e)throw Error(c(188))}function E(e){var n=e.alternate;if(!n){if(n=m(e),n===null)throw Error(c(188));return n!==e?null:e}for(var a=e,f=n;;){var h=a.return;if(h===null)break;var p=h.alternate;if(p===null){if(f=h.return,f!==null){a=f;continue}break}if(h.child===p.child){for(p=h.child;p;){if(p===a)return v(h),e;if(p===f)return v(h),n;p=p.sibling}throw Error(c(188))}if(a.return!==f.return)a=h,f=p;else{for(var x=!1,w=h.child;w;){if(w===a){x=!0,a=h,f=p;break}if(w===f){x=!0,f=h,a=p;break}w=w.sibling}if(!x){for(w=p.child;w;){if(w===a){x=!0,a=p,f=h;break}if(w===f){x=!0,f=p,a=h;break}w=w.sibling}if(!x)throw Error(c(189))}}if(a.alternate!==f)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:n}function S(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=S(e),n!==null)return n;e=e.sibling}return null}var A=Object.assign,T=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),U=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case z:return"Profiler";case N:return"StrictMode";case X:return"Suspense";case Q:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case U:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case Y:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return n=e.displayName||null,n!==null?n:ye(e.type)||"Memo";case te:n=e._payload,e=e._init;try{return ye(e(n))}catch{}}return null}var Ee=Array.isArray,K=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Re=[],Te=-1;function H(e){return{current:e}}function ie(e){0>Te||(e.current=Re[Te],Re[Te]=null,Te--)}function ue(e,n){Te++,Re[Te]=e.current,e.current=n}var ve=H(null),pe=H(null),be=H(null),xe=H(null);function De(e,n){switch(ue(be,n),ue(pe,e),ue(ve,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=od(n),e=ud(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(ve),ue(ve,e)}function Me(){ie(ve),ie(pe),ie(be)}function Ye(e){e.memoizedState!==null&&ue(xe,e);var n=ve.current,a=ud(n,e.type);n!==a&&(ue(pe,e),ue(ve,a))}function ut(e){pe.current===e&&(ie(ve),ie(pe)),xe.current===e&&(ie(xe),kr._currentValue=ee)}var je,yt;function Rt(e){if(je===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);je=n&&n[1]||"",yt=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+je+e+yt}var ze=!1;function ct(e,n){if(!e||ze)return"";ze=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(n){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ne){var $=ne}Reflect.construct(e,[],fe)}else{try{fe.call()}catch(ne){$=ne}e.call(fe.prototype)}}else{try{throw Error()}catch(ne){$=ne}(fe=e())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ne){if(ne&&$&&typeof ne.stack=="string")return[ne.stack,$.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=f.DetermineComponentFrameRoot(),x=p[0],w=p[1];if(x&&w){var q=x.split(`
4
+ `),W=w.split(`
5
+ `);for(h=f=0;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;for(;h<W.length&&!W[h].includes("DetermineComponentFrameRoot");)h++;if(f===q.length||h===W.length)for(f=q.length-1,h=W.length-1;1<=f&&0<=h&&q[f]!==W[h];)h--;for(;1<=f&&0<=h;f--,h--)if(q[f]!==W[h]){if(f!==1||h!==1)do if(f--,h--,0>h||q[f]!==W[h]){var oe=`
6
+ `+q[f].replace(" at new "," at ");return e.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",e.displayName)),oe}while(1<=f&&0<=h);break}}}finally{ze=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Rt(a):""}function $t(e,n){switch(e.tag){case 26:case 27:case 5:return Rt(e.type);case 16:return Rt("Lazy");case 13:return e.child!==n&&n!==null?Rt("Suspense Fallback"):Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return Rt("Activity");default:return""}}function gn(e){try{var n="",a=null;do n+=$t(e,a),a=e,e=e.return;while(e);return n}catch(f){return`
7
+ Error generating stack: `+f.message+`
8
+ `+f.stack}}var Ke=Object.prototype.hasOwnProperty,Gt=t.unstable_scheduleCallback,Ot=t.unstable_cancelCallback,tn=t.unstable_shouldYield,St=t.unstable_requestPaint,st=t.unstable_now,_n=t.unstable_getCurrentPriorityLevel,Ht=t.unstable_ImmediatePriority,Mt=t.unstable_UserBlockingPriority,Dt=t.unstable_NormalPriority,cn=t.unstable_LowPriority,fn=t.unstable_IdlePriority,Gn=t.log,nt=t.unstable_setDisableYieldValue,dn=null,vt=null;function ht(e){if(typeof Gn=="function"&&nt(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(dn,e)}catch{}}var $e=Math.clz32?Math.clz32:hn,tt=Math.log,nn=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(tt(e)/nn|0)|0}var kt=256,at=262144,Ft=4194304;function At(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xn(e,n,a){var f=e.pendingLanes;if(f===0)return 0;var h=0,p=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var w=f&134217727;return w!==0?(f=w&~p,f!==0?h=At(f):(x&=w,x!==0?h=At(x):a||(a=w&~e,a!==0&&(h=At(a))))):(w=f&~p,w!==0?h=At(w):x!==0?h=At(x):a||(a=f&~e,a!==0&&(h=At(a)))),h===0?0:n!==0&&n!==h&&(n&p)===0&&(p=h&-h,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:h}function Sn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function pt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function an(){var e=Ft;return Ft<<=1,(Ft&62914560)===0&&(Ft=4194304),e}function Fn(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Rn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xn(e,n,a,f,h,p){var x=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 w=e.entanglements,q=e.expirationTimes,W=e.hiddenUpdates;for(a=x&~a;0<a;){var oe=31-$e(a),fe=1<<oe;w[oe]=0,q[oe]=-1;var $=W[oe];if($!==null)for(W[oe]=null,oe=0;oe<$.length;oe++){var ne=$[oe];ne!==null&&(ne.lane&=-536870913)}a&=~fe}f!==0&&rn(e,f,0),p!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=p&~(x&~n))}function rn(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var f=31-$e(n);e.entangledLanes|=n,e.entanglements[f]=e.entanglements[f]|1073741824|a&261930}function ln(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var f=31-$e(a),h=1<<f;h&n|e[f]&n&&(e[f]|=n),a&=~h}}function Xt(e,n){var a=n&-n;return a=(a&42)!==0?1:Lt(a),(a&(e.suspendedLanes|n))!==0?0:a}function Lt(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 Ge(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function An(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:jd(e.type))}function Tn(e,n){var a=he.p;try{return he.p=e,n()}finally{he.p=a}}var qt=Math.random().toString(36).slice(2),Ct="__reactFiber$"+qt,ft="__reactProps$"+qt,sn="__reactContainer$"+qt,Kn="__reactEvents$"+qt,We="__reactListeners$"+qt,wn="__reactHandles$"+qt,Nn="__reactResources$"+qt,Se="__reactMarker$"+qt;function P(e){delete e[Ct],delete e[ft],delete e[Kn],delete e[We],delete e[wn]}function me(e){var n=e[Ct];if(n)return n;for(var a=e.parentNode;a;){if(n=a[sn]||a[Ct]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=gd(e);e!==null;){if(a=e[Ct])return a;e=gd(e)}return n}e=a,a=e.parentNode}return null}function ge(e){if(e=e[Ct]||e[sn]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Oe(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(c(33))}function Ue(e){var n=e[Nn];return n||(n=e[Nn]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ae(e){e[Se]=!0}var Ne=new Set,Ve={};function dt(e,n){Le(e,n),Le(e+"Capture",n)}function Le(e,n){for(Ve[e]=n,e=0;e<n.length;e++)Ne.add(n[e])}var et=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]*$"),He={},bt={};function Bt(e){return Ke.call(bt,e)?!0:Ke.call(He,e)?!1:et.test(e)?bt[e]=!0:(He[e]=!0,!1)}function Ie(e,n,a){if(Bt(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var f=n.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Kt(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function pn(e,n,a,f){if(f===null)e.removeAttribute(a);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+f)}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zt(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function mi(e,n,a){var f=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var h=f.get,p=f.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return h.call(this)},set:function(x){a=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:f.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function zn(e){if(!e._valueTracker){var n=zt(e)?"checked":"value";e._valueTracker=mi(e,n,""+e[n])}}function gi(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),f="";return e&&(f=zt(e)?e.checked?"true":"false":e.value),e=f,e!==a?(n.setValue(e),!0):!1}function Oa(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 yi=/[\n"\\]/g;function Cn(e){return e.replace(yi,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Kl(e,n,a,f,h,p,x,w){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Pt(n)):e.value!==""+Pt(n)&&(e.value=""+Pt(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Ql(e,x,Pt(n)):a!=null?Ql(e,x,Pt(a)):f!=null&&e.removeAttribute("value"),h==null&&p!=null&&(e.defaultChecked=!!p),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Pt(w):e.removeAttribute("name")}function Qi(e,n,a,f,h,p,x,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){zn(e);return}a=a!=null?""+Pt(a):"",n=n!=null?""+Pt(n):a,w||n===e.value||(e.value=n),e.defaultValue=n}f=f??h,f=typeof f!="function"&&typeof f!="symbol"&&!!f,e.checked=w?e.checked:!!f,e.defaultChecked=!!f,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),zn(e)}function Ql(e,n,a){n==="number"&&Oa(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function wa(e,n,a,f){if(e=e.options,n){n={};for(var h=0;h<a.length;h++)n["$"+a[h]]=!0;for(a=0;a<e.length;a++)h=n.hasOwnProperty("$"+e[a].value),e[a].selected!==h&&(e[a].selected=h),h&&f&&(e[a].defaultSelected=!0)}else{for(a=""+Pt(a),n=null,h=0;h<e.length;h++){if(e[h].value===a){e[h].selected=!0,f&&(e[h].defaultSelected=!0);return}n!==null||e[h].disabled||(n=e[h])}n!==null&&(n.selected=!0)}}function nu(e,n,a){if(n!=null&&(n=""+Pt(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+Pt(a):""}function au(e,n,a,f){if(n==null){if(f!=null){if(a!=null)throw Error(c(92));if(Ee(f)){if(1<f.length)throw Error(c(93));f=f[0]}a=f}a==null&&(a=""),n=a}a=Pt(n),e.defaultValue=a,f=e.textContent,f===a&&f!==""&&f!==null&&(e.value=f),zn(e)}function ca(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Id=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 iu(e,n,a){var f=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?f?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":f?e.setProperty(n,a):typeof a!="number"||a===0||Id.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function ru(e,n,a){if(n!=null&&typeof n!="object")throw Error(c(62));if(e=e.style,a!=null){for(var f in a)!a.hasOwnProperty(f)||n!=null&&n.hasOwnProperty(f)||(f.indexOf("--")===0?e.setProperty(f,""):f==="float"?e.cssFloat="":e[f]="");for(var h in n)f=n[h],n.hasOwnProperty(h)&&a[h]!==f&&iu(e,h,f)}else for(var p in n)n.hasOwnProperty(p)&&iu(e,p,n[p])}function Zl(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 Hd=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"]]),qd=/^[\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 Ir(e){return qd.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fa(){}var Wl=null;function Jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,bi=null;function lu(e){var n=ge(e);if(n&&(e=n.stateNode)){var a=e[ft]||null;e:switch(e=n.stateNode,n.type){case"input":if(Kl(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Cn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var f=a[n];if(f!==e&&f.form===e.form){var h=f[ft]||null;if(!h)throw Error(c(90));Kl(f,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(n=0;n<a.length;n++)f=a[n],f.form===e.form&&gi(f)}break e;case"textarea":nu(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&wa(e,!!a.multiple,n,!1)}}}var $l=!1;function su(e,n,a){if($l)return e(n,a);$l=!0;try{var f=e(n);return f}finally{if($l=!1,(vi!==null||bi!==null)&&(Al(),vi&&(n=vi,e=bi,bi=vi=null,lu(n),e)))for(n=0;n<e.length;n++)lu(e[n])}}function Zi(e,n){var a=e.stateNode;if(a===null)return null;var f=a[ft]||null;if(f===null)return null;a=f[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(e=e.type,f=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!f;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,n,typeof a));return a}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),es=!1;if(da)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){es=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{es=!1}var Na=null,ts=null,Hr=null;function ou(){if(Hr)return Hr;var e,n=ts,a=n.length,f,h="value"in Na?Na.value:Na.textContent,p=h.length;for(e=0;e<a&&n[e]===h[e];e++);var x=a-e;for(f=1;f<=x&&n[a-f]===h[p-f];f++);return Hr=h.slice(e,1<f?1-f:void 0)}function qr(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Pr(){return!0}function uu(){return!1}function Mn(e){function n(a,f,h,p,x){this._reactName=a,this._targetInst=h,this.type=f,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Pr:uu,this.isPropagationStopped=uu,this}return A(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Pr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Pr)},persist:function(){},isPersistent:Pr}),n}var $a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vr=Mn($a),Ji=A({},$a,{view:0,detail:0}),Pd=Mn(Ji),ns,as,$i,Yr=A({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ls,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!==$i&&($i&&e.type==="mousemove"?(ns=e.screenX-$i.screenX,as=e.screenY-$i.screenY):as=ns=0,$i=e),ns)},movementY:function(e){return"movementY"in e?e.movementY:as}}),cu=Mn(Yr),Vd=A({},Yr,{dataTransfer:0}),Yd=Mn(Vd),Gd=A({},Ji,{relatedTarget:0}),rs=Mn(Gd),Fd=A({},$a,{animationName:0,elapsedTime:0,pseudoElement:0}),Xd=Mn(Fd),Kd=A({},$a,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qd=Mn(Kd),Zd=A({},$a,{data:0}),fu=Mn(Zd),Wd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jd={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"},$d={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eh(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=$d[e])?!!n[e]:!1}function ls(){return eh}var th=A({},Ji,{key:function(e){if(e.key){var n=Wd[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ls,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nh=Mn(th),ah=A({},Yr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),du=Mn(ah),ih=A({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ls}),rh=Mn(ih),lh=A({},$a,{propertyName:0,elapsedTime:0,pseudoElement:0}),sh=Mn(lh),oh=A({},Yr,{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}),uh=Mn(oh),ch=A({},$a,{newState:0,oldState:0}),fh=Mn(ch),dh=[9,13,27,32],ss=da&&"CompositionEvent"in window,er=null;da&&"documentMode"in document&&(er=document.documentMode);var hh=da&&"TextEvent"in window&&!er,hu=da&&(!ss||er&&8<er&&11>=er),pu=" ",mu=!1;function gu(e,n){switch(e){case"keyup":return dh.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ei=!1;function ph(e,n){switch(e){case"compositionend":return yu(n);case"keypress":return n.which!==32?null:(mu=!0,pu);case"textInput":return e=n.data,e===pu&&mu?null:e;default:return null}}function mh(e,n){if(Ei)return e==="compositionend"||!ss&&gu(e,n)?(e=ou(),Hr=ts=Na=null,Ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return hu&&n.locale!=="ko"?null:n.data;default:return null}}var gh={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 vu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!gh[e.type]:n==="textarea"}function bu(e,n,a,f){vi?bi?bi.push(f):bi=[f]:vi=f,n=Dl(n,"onChange"),0<n.length&&(a=new Vr("onChange","change",null,a,f),e.push({event:a,listeners:n}))}var tr=null,nr=null;function yh(e){nd(e,0)}function Gr(e){var n=Oe(e);if(gi(n))return e}function Eu(e,n){if(e==="change")return n}var _u=!1;if(da){var os;if(da){var us="oninput"in document;if(!us){var xu=document.createElement("div");xu.setAttribute("oninput","return;"),us=typeof xu.oninput=="function"}os=us}else os=!1;_u=os&&(!document.documentMode||9<document.documentMode)}function Su(){tr&&(tr.detachEvent("onpropertychange",Tu),nr=tr=null)}function Tu(e){if(e.propertyName==="value"&&Gr(nr)){var n=[];bu(n,nr,e,Jl(e)),su(yh,n)}}function vh(e,n,a){e==="focusin"?(Su(),tr=n,nr=a,tr.attachEvent("onpropertychange",Tu)):e==="focusout"&&Su()}function bh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gr(nr)}function Eh(e,n){if(e==="click")return Gr(n)}function _h(e,n){if(e==="input"||e==="change")return Gr(n)}function xh(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Un=typeof Object.is=="function"?Object.is:xh;function ar(e,n){if(Un(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),f=Object.keys(n);if(a.length!==f.length)return!1;for(f=0;f<a.length;f++){var h=a[f];if(!Ke.call(n,h)||!Un(e[h],n[h]))return!1}return!0}function Ru(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Au(e,n){var a=Ru(e);e=0;for(var f;a;){if(a.nodeType===3){if(f=e+a.textContent.length,e<=n&&f>=n)return{node:a,offset:n-e};e=f}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ru(a)}}function Cu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Cu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ou(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Oa(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=Oa(e.document)}return n}function cs(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Sh=da&&"documentMode"in document&&11>=document.documentMode,_i=null,fs=null,ir=null,ds=!1;function wu(e,n,a){var f=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ds||_i==null||_i!==Oa(f)||(f=_i,"selectionStart"in f&&cs(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),ir&&ar(ir,f)||(ir=f,f=Dl(fs,"onSelect"),0<f.length&&(n=new Vr("onSelect","select",null,n,a),e.push({event:n,listeners:f}),n.target=_i)))}function ei(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var xi={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionrun:ei("Transition","TransitionRun"),transitionstart:ei("Transition","TransitionStart"),transitioncancel:ei("Transition","TransitionCancel"),transitionend:ei("Transition","TransitionEnd")},hs={},Nu={};da&&(Nu=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);function ti(e){if(hs[e])return hs[e];if(!xi[e])return e;var n=xi[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Nu)return hs[e]=n[a];return e}var Mu=ti("animationend"),ju=ti("animationiteration"),Du=ti("animationstart"),Th=ti("transitionrun"),Rh=ti("transitionstart"),Ah=ti("transitioncancel"),ku=ti("transitionend"),Lu=new Map,ps="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(" ");ps.push("scrollEnd");function aa(e,n){Lu.set(e,n),dt(n,[e])}var Fr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qn=[],Si=0,ms=0;function Xr(){for(var e=Si,n=ms=Si=0;n<e;){var a=Qn[n];Qn[n++]=null;var f=Qn[n];Qn[n++]=null;var h=Qn[n];Qn[n++]=null;var p=Qn[n];if(Qn[n++]=null,f!==null&&h!==null){var x=f.pending;x===null?h.next=h:(h.next=x.next,x.next=h),f.pending=h}p!==0&&Bu(a,h,p)}}function Kr(e,n,a,f){Qn[Si++]=e,Qn[Si++]=n,Qn[Si++]=a,Qn[Si++]=f,ms|=f,e.lanes|=f,e=e.alternate,e!==null&&(e.lanes|=f)}function gs(e,n,a,f){return Kr(e,n,a,f),Qr(e)}function ni(e,n){return Kr(e,null,null,n),Qr(e)}function Bu(e,n,a){e.lanes|=a;var f=e.alternate;f!==null&&(f.lanes|=a);for(var h=!1,p=e.return;p!==null;)p.childLanes|=a,f=p.alternate,f!==null&&(f.childLanes|=a),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(h=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,h&&n!==null&&(h=31-$e(a),e=p.hiddenUpdates,f=e[h],f===null?e[h]=[n]:f.push(n),n.lane=a|536870912),p):null}function Qr(e){if(50<Cr)throw Cr=0,Ao=null,Error(c(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ti={};function Ch(e,n,a,f){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,n,a,f){return new Ch(e,n,a,f)}function ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ha(e,n){var a=e.alternate;return a===null?(a=In(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function zu(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Zr(e,n,a,f,h,p){var x=0;if(f=e,typeof e=="function")ys(e)&&(x=1);else if(typeof e=="string")x=jp(e,a,ve.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=In(31,a,n,h),e.elementType=J,e.lanes=p,e;case R:return ai(a.children,h,p,n);case N:x=8,h|=24;break;case z:return e=In(12,a,n,h|2),e.elementType=z,e.lanes=p,e;case X:return e=In(13,a,n,h),e.elementType=X,e.lanes=p,e;case Q:return e=In(19,a,n,h),e.elementType=Q,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:x=10;break e;case L:x=9;break e;case Y:x=11;break e;case G:x=14;break e;case te:x=16,f=null;break e}x=29,a=Error(c(130,e===null?"null":typeof e,"")),f=null}return n=In(x,a,n,h),n.elementType=e,n.type=f,n.lanes=p,n}function ai(e,n,a,f){return e=In(7,e,f,n),e.lanes=a,e}function vs(e,n,a){return e=In(6,e,null,n),e.lanes=a,e}function Uu(e){var n=In(18,null,null,0);return n.stateNode=e,n}function bs(e,n,a){return n=In(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Iu=new WeakMap;function Zn(e,n){if(typeof e=="object"&&e!==null){var a=Iu.get(e);return a!==void 0?a:(n={value:e,source:n,stack:gn(n)},Iu.set(e,n),n)}return{value:e,source:n,stack:gn(n)}}var Ri=[],Ai=0,Wr=null,rr=0,Wn=[],Jn=0,Ma=null,la=1,sa="";function pa(e,n){Ri[Ai++]=rr,Ri[Ai++]=Wr,Wr=e,rr=n}function Hu(e,n,a){Wn[Jn++]=la,Wn[Jn++]=sa,Wn[Jn++]=Ma,Ma=e;var f=la;e=sa;var h=32-$e(f)-1;f&=~(1<<h),a+=1;var p=32-$e(n)+h;if(30<p){var x=h-h%5;p=(f&(1<<x)-1).toString(32),f>>=x,h-=x,la=1<<32-$e(n)+h|a<<h|f,sa=p+e}else la=1<<p|a<<h|f,sa=e}function Es(e){e.return!==null&&(pa(e,1),Hu(e,1,0))}function _s(e){for(;e===Wr;)Wr=Ri[--Ai],Ri[Ai]=null,rr=Ri[--Ai],Ri[Ai]=null;for(;e===Ma;)Ma=Wn[--Jn],Wn[Jn]=null,sa=Wn[--Jn],Wn[Jn]=null,la=Wn[--Jn],Wn[Jn]=null}function qu(e,n){Wn[Jn++]=la,Wn[Jn++]=sa,Wn[Jn++]=Ma,la=n.id,sa=n.overflow,Ma=e}var yn=null,wt=null,Je=!1,ja=null,$n=!1,xs=Error(c(519));function Da(e){var n=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lr(Zn(n,e)),xs}function Pu(e){var n=e.stateNode,a=e.type,f=e.memoizedProps;switch(n[Ct]=e,n[ft]=f,a){case"dialog":Xe("cancel",n),Xe("close",n);break;case"iframe":case"object":case"embed":Xe("load",n);break;case"video":case"audio":for(a=0;a<wr.length;a++)Xe(wr[a],n);break;case"source":Xe("error",n);break;case"img":case"image":case"link":Xe("error",n),Xe("load",n);break;case"details":Xe("toggle",n);break;case"input":Xe("invalid",n),Qi(n,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":Xe("invalid",n);break;case"textarea":Xe("invalid",n),au(n,f.value,f.defaultValue,f.children)}a=f.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||f.suppressHydrationWarning===!0||ld(n.textContent,a)?(f.popover!=null&&(Xe("beforetoggle",n),Xe("toggle",n)),f.onScroll!=null&&Xe("scroll",n),f.onScrollEnd!=null&&Xe("scrollend",n),f.onClick!=null&&(n.onclick=fa),n=!0):n=!1,n||Da(e,!0)}function Vu(e){for(yn=e.return;yn;)switch(yn.tag){case 5:case 31:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:yn=yn.return}}function Ci(e){if(e!==yn)return!1;if(!Je)return Vu(e),Je=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||qo(e.type,e.memoizedProps)),a=!a),a&&wt&&Da(e),Vu(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));wt=md(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));wt=md(e)}else n===27?(n=wt,Xa(e.type)?(e=Fo,Fo=null,wt=e):wt=n):wt=yn?ta(e.stateNode.nextSibling):null;return!0}function ii(){wt=yn=null,Je=!1}function Ss(){var e=ja;return e!==null&&(Ln===null?Ln=e:Ln.push.apply(Ln,e),ja=null),e}function lr(e){ja===null?ja=[e]:ja.push(e)}var Ts=H(null),ri=null,ma=null;function ka(e,n,a){ue(Ts,n._currentValue),n._currentValue=a}function ga(e){e._currentValue=Ts.current,ie(Ts)}function Rs(e,n,a){for(;e!==null;){var f=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,f!==null&&(f.childLanes|=n)):f!==null&&(f.childLanes&n)!==n&&(f.childLanes|=n),e===a)break;e=e.return}}function As(e,n,a,f){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var p=h.dependencies;if(p!==null){var x=h.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=h;for(var q=0;q<n.length;q++)if(w.context===n[q]){p.lanes|=a,w=p.alternate,w!==null&&(w.lanes|=a),Rs(p.return,a,e),f||(x=null);break e}p=w.next}}else if(h.tag===18){if(x=h.return,x===null)throw Error(c(341));x.lanes|=a,p=x.alternate,p!==null&&(p.lanes|=a),Rs(x,a,e),x=null}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===e){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}}function Oi(e,n,a,f){e=null;for(var h=n,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var x=h.alternate;if(x===null)throw Error(c(387));if(x=x.memoizedProps,x!==null){var w=h.type;Un(h.pendingProps.value,x.value)||(e!==null?e.push(w):e=[w])}}else if(h===xe.current){if(x=h.alternate,x===null)throw Error(c(387));x.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(kr):e=[kr])}h=h.return}e!==null&&As(n,e,a,f),n.flags|=262144}function Jr(e){for(e=e.firstContext;e!==null;){if(!Un(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function li(e){ri=e,ma=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vn(e){return Yu(ri,e)}function $r(e,n){return ri===null&&li(e),Yu(e,n)}function Yu(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},ma===null){if(e===null)throw Error(c(308));ma=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else ma=ma.next=n;return a}var Oh=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,f){e.push(f)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},wh=t.unstable_scheduleCallback,Nh=t.unstable_NormalPriority,Qt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cs(){return{controller:new Oh,data:new Map,refCount:0}}function sr(e){e.refCount--,e.refCount===0&&wh(Nh,function(){e.controller.abort()})}var or=null,Os=0,wi=0,Ni=null;function Mh(e,n){if(or===null){var a=or=[];Os=0,wi=jo(),Ni={status:"pending",value:void 0,then:function(f){a.push(f)}}}return Os++,n.then(Gu,Gu),n}function Gu(){if(--Os===0&&or!==null){Ni!==null&&(Ni.status="fulfilled");var e=or;or=null,wi=0,Ni=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function jh(e,n){var a=[],f={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return e.then(function(){f.status="fulfilled",f.value=n;for(var h=0;h<a.length;h++)(0,a[h])(n)},function(h){for(f.status="rejected",f.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),f}var Fu=K.S;K.S=function(e,n){Nf=st(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Mh(e,n),Fu!==null&&Fu(e,n)};var si=H(null);function ws(){var e=si.current;return e!==null?e:Tt.pooledCache}function el(e,n){n===null?ue(si,si.current):ue(si,n.pool)}function Xu(){var e=ws();return e===null?null:{parent:Qt._currentValue,pool:e}}var Mi=Error(c(460)),Ns=Error(c(474)),tl=Error(c(542)),nl={then:function(){}};function Ku(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Qu(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(fa,fa),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Wu(e),e;default:if(typeof n.status=="string")n.then(fa,fa);else{if(e=Tt,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=n,e.status="pending",e.then(function(f){if(n.status==="pending"){var h=n;h.status="fulfilled",h.value=f}},function(f){if(n.status==="pending"){var h=n;h.status="rejected",h.reason=f}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Wu(e),e}throw ui=n,Mi}}function oi(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ui=a,Mi):a}}var ui=null;function Zu(){if(ui===null)throw Error(c(459));var e=ui;return ui=null,e}function Wu(e){if(e===Mi||e===tl)throw Error(c(483))}var ji=null,ur=0;function al(e){var n=ur;return ur+=1,ji===null&&(ji=[]),Qu(ji,e,n)}function cr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function il(e,n){throw n.$$typeof===T?Error(c(525)):(e=Object.prototype.toString.call(n),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ju(e){function n(F,V){if(e){var Z=F.deletions;Z===null?(F.deletions=[V],F.flags|=16):Z.push(V)}}function a(F,V){if(!e)return null;for(;V!==null;)n(F,V),V=V.sibling;return null}function f(F){for(var V=new Map;F!==null;)F.key!==null?V.set(F.key,F):V.set(F.index,F),F=F.sibling;return V}function h(F,V){return F=ha(F,V),F.index=0,F.sibling=null,F}function p(F,V,Z){return F.index=Z,e?(Z=F.alternate,Z!==null?(Z=Z.index,Z<V?(F.flags|=67108866,V):Z):(F.flags|=67108866,V)):(F.flags|=1048576,V)}function x(F){return e&&F.alternate===null&&(F.flags|=67108866),F}function w(F,V,Z,ce){return V===null||V.tag!==6?(V=vs(Z,F.mode,ce),V.return=F,V):(V=h(V,Z),V.return=F,V)}function q(F,V,Z,ce){var ke=Z.type;return ke===R?oe(F,V,Z.props.children,ce,Z.key):V!==null&&(V.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===te&&oi(ke)===V.type)?(V=h(V,Z.props),cr(V,Z),V.return=F,V):(V=Zr(Z.type,Z.key,Z.props,null,F.mode,ce),cr(V,Z),V.return=F,V)}function W(F,V,Z,ce){return V===null||V.tag!==4||V.stateNode.containerInfo!==Z.containerInfo||V.stateNode.implementation!==Z.implementation?(V=bs(Z,F.mode,ce),V.return=F,V):(V=h(V,Z.children||[]),V.return=F,V)}function oe(F,V,Z,ce,ke){return V===null||V.tag!==7?(V=ai(Z,F.mode,ce,ke),V.return=F,V):(V=h(V,Z),V.return=F,V)}function fe(F,V,Z){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=vs(""+V,F.mode,Z),V.return=F,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case D:return Z=Zr(V.type,V.key,V.props,null,F.mode,Z),cr(Z,V),Z.return=F,Z;case k:return V=bs(V,F.mode,Z),V.return=F,V;case te:return V=oi(V),fe(F,V,Z)}if(Ee(V)||se(V))return V=ai(V,F.mode,Z,null),V.return=F,V;if(typeof V.then=="function")return fe(F,al(V),Z);if(V.$$typeof===U)return fe(F,$r(F,V),Z);il(F,V)}return null}function $(F,V,Z,ce){var ke=V!==null?V.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return ke!==null?null:w(F,V,""+Z,ce);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case D:return Z.key===ke?q(F,V,Z,ce):null;case k:return Z.key===ke?W(F,V,Z,ce):null;case te:return Z=oi(Z),$(F,V,Z,ce)}if(Ee(Z)||se(Z))return ke!==null?null:oe(F,V,Z,ce,null);if(typeof Z.then=="function")return $(F,V,al(Z),ce);if(Z.$$typeof===U)return $(F,V,$r(F,Z),ce);il(F,Z)}return null}function ne(F,V,Z,ce,ke){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return F=F.get(Z)||null,w(V,F,""+ce,ke);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case D:return F=F.get(ce.key===null?Z:ce.key)||null,q(V,F,ce,ke);case k:return F=F.get(ce.key===null?Z:ce.key)||null,W(V,F,ce,ke);case te:return ce=oi(ce),ne(F,V,Z,ce,ke)}if(Ee(ce)||se(ce))return F=F.get(Z)||null,oe(V,F,ce,ke,null);if(typeof ce.then=="function")return ne(F,V,Z,al(ce),ke);if(ce.$$typeof===U)return ne(F,V,Z,$r(V,ce),ke);il(V,ce)}return null}function Ce(F,V,Z,ce){for(var ke=null,rt=null,we=V,Pe=V=0,Ze=null;we!==null&&Pe<Z.length;Pe++){we.index>Pe?(Ze=we,we=null):Ze=we.sibling;var lt=$(F,we,Z[Pe],ce);if(lt===null){we===null&&(we=Ze);break}e&&we&&lt.alternate===null&&n(F,we),V=p(lt,V,Pe),rt===null?ke=lt:rt.sibling=lt,rt=lt,we=Ze}if(Pe===Z.length)return a(F,we),Je&&pa(F,Pe),ke;if(we===null){for(;Pe<Z.length;Pe++)we=fe(F,Z[Pe],ce),we!==null&&(V=p(we,V,Pe),rt===null?ke=we:rt.sibling=we,rt=we);return Je&&pa(F,Pe),ke}for(we=f(we);Pe<Z.length;Pe++)Ze=ne(we,F,Pe,Z[Pe],ce),Ze!==null&&(e&&Ze.alternate!==null&&we.delete(Ze.key===null?Pe:Ze.key),V=p(Ze,V,Pe),rt===null?ke=Ze:rt.sibling=Ze,rt=Ze);return e&&we.forEach(function(Ja){return n(F,Ja)}),Je&&pa(F,Pe),ke}function Be(F,V,Z,ce){if(Z==null)throw Error(c(151));for(var ke=null,rt=null,we=V,Pe=V=0,Ze=null,lt=Z.next();we!==null&&!lt.done;Pe++,lt=Z.next()){we.index>Pe?(Ze=we,we=null):Ze=we.sibling;var Ja=$(F,we,lt.value,ce);if(Ja===null){we===null&&(we=Ze);break}e&&we&&Ja.alternate===null&&n(F,we),V=p(Ja,V,Pe),rt===null?ke=Ja:rt.sibling=Ja,rt=Ja,we=Ze}if(lt.done)return a(F,we),Je&&pa(F,Pe),ke;if(we===null){for(;!lt.done;Pe++,lt=Z.next())lt=fe(F,lt.value,ce),lt!==null&&(V=p(lt,V,Pe),rt===null?ke=lt:rt.sibling=lt,rt=lt);return Je&&pa(F,Pe),ke}for(we=f(we);!lt.done;Pe++,lt=Z.next())lt=ne(we,F,Pe,lt.value,ce),lt!==null&&(e&&lt.alternate!==null&&we.delete(lt.key===null?Pe:lt.key),V=p(lt,V,Pe),rt===null?ke=lt:rt.sibling=lt,rt=lt);return e&&we.forEach(function(Vp){return n(F,Vp)}),Je&&pa(F,Pe),ke}function xt(F,V,Z,ce){if(typeof Z=="object"&&Z!==null&&Z.type===R&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case D:e:{for(var ke=Z.key;V!==null;){if(V.key===ke){if(ke=Z.type,ke===R){if(V.tag===7){a(F,V.sibling),ce=h(V,Z.props.children),ce.return=F,F=ce;break e}}else if(V.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===te&&oi(ke)===V.type){a(F,V.sibling),ce=h(V,Z.props),cr(ce,Z),ce.return=F,F=ce;break e}a(F,V);break}else n(F,V);V=V.sibling}Z.type===R?(ce=ai(Z.props.children,F.mode,ce,Z.key),ce.return=F,F=ce):(ce=Zr(Z.type,Z.key,Z.props,null,F.mode,ce),cr(ce,Z),ce.return=F,F=ce)}return x(F);case k:e:{for(ke=Z.key;V!==null;){if(V.key===ke)if(V.tag===4&&V.stateNode.containerInfo===Z.containerInfo&&V.stateNode.implementation===Z.implementation){a(F,V.sibling),ce=h(V,Z.children||[]),ce.return=F,F=ce;break e}else{a(F,V);break}else n(F,V);V=V.sibling}ce=bs(Z,F.mode,ce),ce.return=F,F=ce}return x(F);case te:return Z=oi(Z),xt(F,V,Z,ce)}if(Ee(Z))return Ce(F,V,Z,ce);if(se(Z)){if(ke=se(Z),typeof ke!="function")throw Error(c(150));return Z=ke.call(Z),Be(F,V,Z,ce)}if(typeof Z.then=="function")return xt(F,V,al(Z),ce);if(Z.$$typeof===U)return xt(F,V,$r(F,Z),ce);il(F,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,V!==null&&V.tag===6?(a(F,V.sibling),ce=h(V,Z),ce.return=F,F=ce):(a(F,V),ce=vs(Z,F.mode,ce),ce.return=F,F=ce),x(F)):a(F,V)}return function(F,V,Z,ce){try{ur=0;var ke=xt(F,V,Z,ce);return ji=null,ke}catch(we){if(we===Mi||we===tl)throw we;var rt=In(29,we,null,F.mode);return rt.lanes=ce,rt.return=F,rt}}}var ci=Ju(!0),$u=Ju(!1),La=!1;function Ms(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function js(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,n,a){var f=e.updateQueue;if(f===null)return null;if(f=f.shared,(ot&2)!==0){var h=f.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),f.pending=n,n=Qr(e),Bu(e,null,a),n}return Kr(e,f,n,a),Qr(e)}function dr(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var f=n.lanes;f&=e.pendingLanes,a|=f,n.lanes=a,ln(e,a)}}function Ds(e,n){var a=e.updateQueue,f=e.alternate;if(f!==null&&(f=f.updateQueue,a===f)){var h=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?h=p=x:p=p.next=x,a=a.next}while(a!==null);p===null?h=p=n:p=p.next=n}else h=p=n;a={baseState:f.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:f.shared,callbacks:f.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var ks=!1;function hr(){if(ks){var e=Ni;if(e!==null)throw e}}function pr(e,n,a,f){ks=!1;var h=e.updateQueue;La=!1;var p=h.firstBaseUpdate,x=h.lastBaseUpdate,w=h.shared.pending;if(w!==null){h.shared.pending=null;var q=w,W=q.next;q.next=null,x===null?p=W:x.next=W,x=q;var oe=e.alternate;oe!==null&&(oe=oe.updateQueue,w=oe.lastBaseUpdate,w!==x&&(w===null?oe.firstBaseUpdate=W:w.next=W,oe.lastBaseUpdate=q))}if(p!==null){var fe=h.baseState;x=0,oe=W=q=null,w=p;do{var $=w.lane&-536870913,ne=$!==w.lane;if(ne?(Qe&$)===$:(f&$)===$){$!==0&&$===wi&&(ks=!0),oe!==null&&(oe=oe.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var Ce=e,Be=w;$=n;var xt=a;switch(Be.tag){case 1:if(Ce=Be.payload,typeof Ce=="function"){fe=Ce.call(xt,fe,$);break e}fe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Be.payload,$=typeof Ce=="function"?Ce.call(xt,fe,$):Ce,$==null)break e;fe=A({},fe,$);break e;case 2:La=!0}}$=w.callback,$!==null&&(e.flags|=64,ne&&(e.flags|=8192),ne=h.callbacks,ne===null?h.callbacks=[$]:ne.push($))}else ne={lane:$,tag:w.tag,payload:w.payload,callback:w.callback,next:null},oe===null?(W=oe=ne,q=fe):oe=oe.next=ne,x|=$;if(w=w.next,w===null){if(w=h.shared.pending,w===null)break;ne=w,w=ne.next,ne.next=null,h.lastBaseUpdate=ne,h.shared.pending=null}}while(!0);oe===null&&(q=fe),h.baseState=q,h.firstBaseUpdate=W,h.lastBaseUpdate=oe,p===null&&(h.shared.lanes=0),Pa|=x,e.lanes=x,e.memoizedState=fe}}function ec(e,n){if(typeof e!="function")throw Error(c(191,e));e.call(n)}function tc(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ec(a[e],n)}var Di=H(null),rl=H(0);function nc(e,n){e=Ra,ue(rl,e),ue(Di,n),Ra=e|n.baseLanes}function Ls(){ue(rl,Ra),ue(Di,Di.current)}function Bs(){Ra=rl.current,ie(Di),ie(rl)}var Hn=H(null),ea=null;function Ua(e){var n=e.alternate;ue(Vt,Vt.current&1),ue(Hn,e),ea===null&&(n===null||Di.current!==null||n.memoizedState!==null)&&(ea=e)}function zs(e){ue(Vt,Vt.current),ue(Hn,e),ea===null&&(ea=e)}function ac(e){e.tag===22?(ue(Vt,Vt.current),ue(Hn,e),ea===null&&(ea=e)):Ia()}function Ia(){ue(Vt,Vt.current),ue(Hn,Hn.current)}function qn(e){ie(Hn),ea===e&&(ea=null),ie(Vt)}var Vt=H(0);function ll(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Yo(a)||Go(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ya=0,qe=null,Et=null,Zt=null,sl=!1,ki=!1,fi=!1,ol=0,mr=0,Li=null,Dh=0;function Ut(){throw Error(c(321))}function Us(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Un(e[a],n[a]))return!1;return!0}function Is(e,n,a,f,h,p){return ya=p,qe=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,K.H=e===null||e.memoizedState===null?Hc:eo,fi=!1,p=a(f,h),fi=!1,ki&&(p=rc(n,a,f,h)),ic(e),p}function ic(e){K.H=vr;var n=Et!==null&&Et.next!==null;if(ya=0,Zt=Et=qe=null,sl=!1,mr=0,Li=null,n)throw Error(c(300));e===null||Wt||(e=e.dependencies,e!==null&&Jr(e)&&(Wt=!0))}function rc(e,n,a,f){qe=e;var h=0;do{if(ki&&(Li=null),mr=0,ki=!1,25<=h)throw Error(c(301));if(h+=1,Zt=Et=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}K.H=qc,p=n(a,f)}while(ki);return p}function kh(){var e=K.H,n=e.useState()[0];return n=typeof n.then=="function"?gr(n):n,e=e.useState()[0],(Et!==null?Et.memoizedState:null)!==e&&(qe.flags|=1024),n}function Hs(){var e=ol!==0;return ol=0,e}function qs(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Ps(e){if(sl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}sl=!1}ya=0,Zt=Et=qe=null,ki=!1,mr=ol=0,Li=null}function On(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?qe.memoizedState=Zt=e:Zt=Zt.next=e,Zt}function Yt(){if(Et===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=Et.next;var n=Zt===null?qe.memoizedState:Zt.next;if(n!==null)Zt=n,Et=e;else{if(e===null)throw qe.alternate===null?Error(c(467)):Error(c(310));Et=e,e={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Zt===null?qe.memoizedState=Zt=e:Zt=Zt.next=e}return Zt}function ul(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gr(e){var n=mr;return mr+=1,Li===null&&(Li=[]),e=Qu(Li,e,n),n=qe,(Zt===null?n.memoizedState:Zt.next)===null&&(n=n.alternate,K.H=n===null||n.memoizedState===null?Hc:eo),e}function cl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gr(e);if(e.$$typeof===U)return vn(e)}throw Error(c(438,String(e)))}function Vs(e){var n=null,a=qe.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var f=qe.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(n={data:f.data.map(function(h){return h.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=ul(),qe.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),f=0;f<e;f++)a[f]=le;return n.index++,a}function va(e,n){return typeof n=="function"?n(e):n}function fl(e){var n=Yt();return Ys(n,Et,e)}function Ys(e,n,a){var f=e.queue;if(f===null)throw Error(c(311));f.lastRenderedReducer=a;var h=e.baseQueue,p=f.pending;if(p!==null){if(h!==null){var x=h.next;h.next=p.next,p.next=x}n.baseQueue=h=p,f.pending=null}if(p=e.baseState,h===null)e.memoizedState=p;else{n=h.next;var w=x=null,q=null,W=n,oe=!1;do{var fe=W.lane&-536870913;if(fe!==W.lane?(Qe&fe)===fe:(ya&fe)===fe){var $=W.revertLane;if($===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),fe===wi&&(oe=!0);else if((ya&$)===$){W=W.next,$===wi&&(oe=!0);continue}else fe={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},q===null?(w=q=fe,x=p):q=q.next=fe,qe.lanes|=$,Pa|=$;fe=W.action,fi&&a(p,fe),p=W.hasEagerState?W.eagerState:a(p,fe)}else $={lane:fe,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},q===null?(w=q=$,x=p):q=q.next=$,qe.lanes|=fe,Pa|=fe;W=W.next}while(W!==null&&W!==n);if(q===null?x=p:q.next=w,!Un(p,e.memoizedState)&&(Wt=!0,oe&&(a=Ni,a!==null)))throw a;e.memoizedState=p,e.baseState=x,e.baseQueue=q,f.lastRenderedState=p}return h===null&&(f.lanes=0),[e.memoizedState,f.dispatch]}function Gs(e){var n=Yt(),a=n.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var f=a.dispatch,h=a.pending,p=n.memoizedState;if(h!==null){a.pending=null;var x=h=h.next;do p=e(p,x.action),x=x.next;while(x!==h);Un(p,n.memoizedState)||(Wt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,f]}function lc(e,n,a){var f=qe,h=Yt(),p=Je;if(p){if(a===void 0)throw Error(c(407));a=a()}else a=n();var x=!Un((Et||h).memoizedState,a);if(x&&(h.memoizedState=a,Wt=!0),h=h.queue,Ks(uc.bind(null,f,h,e),[e]),h.getSnapshot!==n||x||Zt!==null&&Zt.memoizedState.tag&1){if(f.flags|=2048,Bi(9,{destroy:void 0},oc.bind(null,f,h,a,n),null),Tt===null)throw Error(c(349));p||(ya&127)!==0||sc(f,n,a)}return a}function sc(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=qe.updateQueue,n===null?(n=ul(),qe.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function oc(e,n,a,f){n.value=a,n.getSnapshot=f,cc(n)&&fc(e)}function uc(e,n,a){return a(function(){cc(n)&&fc(e)})}function cc(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Un(e,a)}catch{return!0}}function fc(e){var n=ni(e,2);n!==null&&Bn(n,e,2)}function Fs(e){var n=On();if(typeof e=="function"){var a=e;if(e=a(),fi){ht(!0);try{a()}finally{ht(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:e},n}function dc(e,n,a,f){return e.baseState=a,Ys(e,Et,typeof f=="function"?f:va)}function Lh(e,n,a,f,h){if(pl(e))throw Error(c(485));if(e=n.action,e!==null){var p={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){p.listeners.push(x)}};K.T!==null?a(!0):p.isTransition=!1,f(p),a=n.pending,a===null?(p.next=n.pending=p,hc(n,p)):(p.next=a.next,n.pending=a.next=p)}}function hc(e,n){var a=n.action,f=n.payload,h=e.state;if(n.isTransition){var p=K.T,x={};K.T=x;try{var w=a(h,f),q=K.S;q!==null&&q(x,w),pc(e,n,w)}catch(W){Xs(e,n,W)}finally{p!==null&&x.types!==null&&(p.types=x.types),K.T=p}}else try{p=a(h,f),pc(e,n,p)}catch(W){Xs(e,n,W)}}function pc(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(f){mc(e,n,f)},function(f){return Xs(e,n,f)}):mc(e,n,a)}function mc(e,n,a){n.status="fulfilled",n.value=a,gc(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,hc(e,a)))}function Xs(e,n,a){var f=e.pending;if(e.pending=null,f!==null){f=f.next;do n.status="rejected",n.reason=a,gc(n),n=n.next;while(n!==f)}e.action=null}function gc(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function yc(e,n){return n}function vc(e,n){if(Je){var a=Tt.formState;if(a!==null){e:{var f=qe;if(Je){if(wt){t:{for(var h=wt,p=$n;h.nodeType!==8;){if(!p){h=null;break t}if(h=ta(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){wt=ta(h.nextSibling),f=h.data==="F!";break e}}Da(f)}f=!1}f&&(n=a[0])}}return a=On(),a.memoizedState=a.baseState=n,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yc,lastRenderedState:n},a.queue=f,a=zc.bind(null,qe,f),f.dispatch=a,f=Fs(!1),p=$s.bind(null,qe,!1,f.queue),f=On(),h={state:n,dispatch:null,action:e,pending:null},f.queue=h,a=Lh.bind(null,qe,h,p,a),h.dispatch=a,f.memoizedState=e,[n,a,!1]}function bc(e){var n=Yt();return Ec(n,Et,e)}function Ec(e,n,a){if(n=Ys(e,n,yc)[0],e=fl(va)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var f=gr(n)}catch(x){throw x===Mi?tl:x}else f=n;n=Yt();var h=n.queue,p=h.dispatch;return a!==n.memoizedState&&(qe.flags|=2048,Bi(9,{destroy:void 0},Bh.bind(null,h,a),null)),[f,p,e]}function Bh(e,n){e.action=n}function _c(e){var n=Yt(),a=Et;if(a!==null)return Ec(n,a,e);Yt(),n=n.memoizedState,a=Yt();var f=a.queue.dispatch;return a.memoizedState=e,[n,f,!1]}function Bi(e,n,a,f){return e={tag:e,create:a,deps:f,inst:n,next:null},n=qe.updateQueue,n===null&&(n=ul(),qe.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(f=a.next,a.next=e,e.next=f,n.lastEffect=e),e}function xc(){return Yt().memoizedState}function dl(e,n,a,f){var h=On();qe.flags|=e,h.memoizedState=Bi(1|n,{destroy:void 0},a,f===void 0?null:f)}function hl(e,n,a,f){var h=Yt();f=f===void 0?null:f;var p=h.memoizedState.inst;Et!==null&&f!==null&&Us(f,Et.memoizedState.deps)?h.memoizedState=Bi(n,p,a,f):(qe.flags|=e,h.memoizedState=Bi(1|n,p,a,f))}function Sc(e,n){dl(8390656,8,e,n)}function Ks(e,n){hl(2048,8,e,n)}function zh(e){qe.flags|=4;var n=qe.updateQueue;if(n===null)n=ul(),qe.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function Tc(e){var n=Yt().memoizedState;return zh({ref:n,nextImpl:e}),function(){if((ot&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}function Rc(e,n){return hl(4,2,e,n)}function Ac(e,n){return hl(4,4,e,n)}function Cc(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Oc(e,n,a){a=a!=null?a.concat([e]):null,hl(4,4,Cc.bind(null,n,e),a)}function Qs(){}function wc(e,n){var a=Yt();n=n===void 0?null:n;var f=a.memoizedState;return n!==null&&Us(n,f[1])?f[0]:(a.memoizedState=[e,n],e)}function Nc(e,n){var a=Yt();n=n===void 0?null:n;var f=a.memoizedState;if(n!==null&&Us(n,f[1]))return f[0];if(f=e(),fi){ht(!0);try{e()}finally{ht(!1)}}return a.memoizedState=[f,n],f}function Zs(e,n,a){return a===void 0||(ya&1073741824)!==0&&(Qe&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=jf(),qe.lanes|=e,Pa|=e,a)}function Mc(e,n,a,f){return Un(a,n)?a:Di.current!==null?(e=Zs(e,a,f),Un(e,n)||(Wt=!0),e):(ya&42)===0||(ya&1073741824)!==0&&(Qe&261930)===0?(Wt=!0,e.memoizedState=a):(e=jf(),qe.lanes|=e,Pa|=e,n)}function jc(e,n,a,f,h){var p=he.p;he.p=p!==0&&8>p?p:8;var x=K.T,w={};K.T=w,$s(e,!1,n,a);try{var q=h(),W=K.S;if(W!==null&&W(w,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var oe=jh(q,f);yr(e,n,oe,Yn(e))}else yr(e,n,f,Yn(e))}catch(fe){yr(e,n,{then:function(){},status:"rejected",reason:fe},Yn())}finally{he.p=p,x!==null&&w.types!==null&&(x.types=w.types),K.T=x}}function Uh(){}function Ws(e,n,a,f){if(e.tag!==5)throw Error(c(476));var h=Dc(e).queue;jc(e,h,n,ee,a===null?Uh:function(){return kc(e),a(f)})}function Dc(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:ee},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function kc(e){var n=Dc(e);n.next===null&&(n=e.alternate.memoizedState),yr(e,n.next.queue,{},Yn())}function Js(){return vn(kr)}function Lc(){return Yt().memoizedState}function Bc(){return Yt().memoizedState}function Ih(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Yn();e=Ba(a);var f=za(n,e,a);f!==null&&(Bn(f,n,a),dr(f,n,a)),n={cache:Cs()},e.payload=n;return}n=n.return}}function Hh(e,n,a){var f=Yn();a={lane:f,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},pl(e)?Uc(n,a):(a=gs(e,n,a,f),a!==null&&(Bn(a,e,f),Ic(a,n,f)))}function zc(e,n,a){var f=Yn();yr(e,n,a,f)}function yr(e,n,a,f){var h={lane:f,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(pl(e))Uc(n,h);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,w=p(x,a);if(h.hasEagerState=!0,h.eagerState=w,Un(w,x))return Kr(e,n,h,0),Tt===null&&Xr(),!1}catch{}if(a=gs(e,n,h,f),a!==null)return Bn(a,e,f),Ic(a,n,f),!0}return!1}function $s(e,n,a,f){if(f={lane:2,revertLane:jo(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},pl(e)){if(n)throw Error(c(479))}else n=gs(e,a,f,2),n!==null&&Bn(n,e,2)}function pl(e){var n=e.alternate;return e===qe||n!==null&&n===qe}function Uc(e,n){ki=sl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function Ic(e,n,a){if((a&4194048)!==0){var f=n.lanes;f&=e.pendingLanes,a|=f,n.lanes=a,ln(e,a)}}var vr={readContext:vn,use:cl,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};vr.useEffectEvent=Ut;var Hc={readContext:vn,use:cl,useCallback:function(e,n){return On().memoizedState=[e,n===void 0?null:n],e},useContext:vn,useEffect:Sc,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,dl(4194308,4,Cc.bind(null,n,e),a)},useLayoutEffect:function(e,n){return dl(4194308,4,e,n)},useInsertionEffect:function(e,n){dl(4,2,e,n)},useMemo:function(e,n){var a=On();n=n===void 0?null:n;var f=e();if(fi){ht(!0);try{e()}finally{ht(!1)}}return a.memoizedState=[f,n],f},useReducer:function(e,n,a){var f=On();if(a!==void 0){var h=a(n);if(fi){ht(!0);try{a(n)}finally{ht(!1)}}}else h=n;return f.memoizedState=f.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},f.queue=e,e=e.dispatch=Hh.bind(null,qe,e),[f.memoizedState,e]},useRef:function(e){var n=On();return e={current:e},n.memoizedState=e},useState:function(e){e=Fs(e);var n=e.queue,a=zc.bind(null,qe,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Qs,useDeferredValue:function(e,n){var a=On();return Zs(a,e,n)},useTransition:function(){var e=Fs(!1);return e=jc.bind(null,qe,e.queue,!0,!1),On().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var f=qe,h=On();if(Je){if(a===void 0)throw Error(c(407));a=a()}else{if(a=n(),Tt===null)throw Error(c(349));(Qe&127)!==0||sc(f,n,a)}h.memoizedState=a;var p={value:a,getSnapshot:n};return h.queue=p,Sc(uc.bind(null,f,p,e),[e]),f.flags|=2048,Bi(9,{destroy:void 0},oc.bind(null,f,p,a,n),null),a},useId:function(){var e=On(),n=Tt.identifierPrefix;if(Je){var a=sa,f=la;a=(f&~(1<<32-$e(f)-1)).toString(32)+a,n="_"+n+"R_"+a,a=ol++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=Dh++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Js,useFormState:vc,useActionState:vc,useOptimistic:function(e){var n=On();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=$s.bind(null,qe,!0,a),a.dispatch=n,[e,n]},useMemoCache:Vs,useCacheRefresh:function(){return On().memoizedState=Ih.bind(null,qe)},useEffectEvent:function(e){var n=On(),a={impl:e};return n.memoizedState=a,function(){if((ot&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},eo={readContext:vn,use:cl,useCallback:wc,useContext:vn,useEffect:Ks,useImperativeHandle:Oc,useInsertionEffect:Rc,useLayoutEffect:Ac,useMemo:Nc,useReducer:fl,useRef:xc,useState:function(){return fl(va)},useDebugValue:Qs,useDeferredValue:function(e,n){var a=Yt();return Mc(a,Et.memoizedState,e,n)},useTransition:function(){var e=fl(va)[0],n=Yt().memoizedState;return[typeof e=="boolean"?e:gr(e),n]},useSyncExternalStore:lc,useId:Lc,useHostTransitionStatus:Js,useFormState:bc,useActionState:bc,useOptimistic:function(e,n){var a=Yt();return dc(a,Et,e,n)},useMemoCache:Vs,useCacheRefresh:Bc};eo.useEffectEvent=Tc;var qc={readContext:vn,use:cl,useCallback:wc,useContext:vn,useEffect:Ks,useImperativeHandle:Oc,useInsertionEffect:Rc,useLayoutEffect:Ac,useMemo:Nc,useReducer:Gs,useRef:xc,useState:function(){return Gs(va)},useDebugValue:Qs,useDeferredValue:function(e,n){var a=Yt();return Et===null?Zs(a,e,n):Mc(a,Et.memoizedState,e,n)},useTransition:function(){var e=Gs(va)[0],n=Yt().memoizedState;return[typeof e=="boolean"?e:gr(e),n]},useSyncExternalStore:lc,useId:Lc,useHostTransitionStatus:Js,useFormState:_c,useActionState:_c,useOptimistic:function(e,n){var a=Yt();return Et!==null?dc(a,Et,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Vs,useCacheRefresh:Bc};qc.useEffectEvent=Tc;function to(e,n,a,f){n=e.memoizedState,a=a(f,n),a=a==null?n:A({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var no={enqueueSetState:function(e,n,a){e=e._reactInternals;var f=Yn(),h=Ba(f);h.payload=n,a!=null&&(h.callback=a),n=za(e,h,f),n!==null&&(Bn(n,e,f),dr(n,e,f))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var f=Yn(),h=Ba(f);h.tag=1,h.payload=n,a!=null&&(h.callback=a),n=za(e,h,f),n!==null&&(Bn(n,e,f),dr(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Yn(),f=Ba(a);f.tag=2,n!=null&&(f.callback=n),n=za(e,f,a),n!==null&&(Bn(n,e,a),dr(n,e,a))}};function Pc(e,n,a,f,h,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(f,p,x):n.prototype&&n.prototype.isPureReactComponent?!ar(a,f)||!ar(h,p):!0}function Vc(e,n,a,f){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,f),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,f),n.state!==e&&no.enqueueReplaceState(n,n.state,null)}function di(e,n){var a=n;if("ref"in n){a={};for(var f in n)f!=="ref"&&(a[f]=n[f])}if(e=e.defaultProps){a===n&&(a=A({},a));for(var h in e)a[h]===void 0&&(a[h]=e[h])}return a}function Yc(e){Fr(e)}function Gc(e){console.error(e)}function Fc(e){Fr(e)}function ml(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(f){setTimeout(function(){throw f})}}function Xc(e,n,a){try{var f=e.onCaughtError;f(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function ao(e,n,a){return a=Ba(a),a.tag=3,a.payload={element:null},a.callback=function(){ml(e,n)},a}function Kc(e){return e=Ba(e),e.tag=3,e}function Qc(e,n,a,f){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var p=f.value;e.payload=function(){return h(p)},e.callback=function(){Xc(n,a,f)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Xc(n,a,f),typeof h!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var w=f.stack;this.componentDidCatch(f.value,{componentStack:w!==null?w:""})})}function qh(e,n,a,f,h){if(a.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(n=a.alternate,n!==null&&Oi(n,a,h,!0),a=Hn.current,a!==null){switch(a.tag){case 31:case 13:return ea===null?Cl():a.alternate===null&&It===0&&(It=3),a.flags&=-257,a.flags|=65536,a.lanes=h,f===nl?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([f]):n.add(f),wo(e,f,h)),!1;case 22:return a.flags|=65536,f===nl?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([f])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([f]):a.add(f)),wo(e,f,h)),!1}throw Error(c(435,a.tag))}return wo(e,f,h),Cl(),!1}if(Je)return n=Hn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=h,f!==xs&&(e=Error(c(422),{cause:f}),lr(Zn(e,a)))):(f!==xs&&(n=Error(c(423),{cause:f}),lr(Zn(n,a))),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,f=Zn(f,a),h=ao(e.stateNode,f,h),Ds(e,h),It!==4&&(It=2)),!1;var p=Error(c(520),{cause:f});if(p=Zn(p,a),Ar===null?Ar=[p]:Ar.push(p),It!==4&&(It=2),n===null)return!0;f=Zn(f,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=h&-h,a.lanes|=e,e=ao(a.stateNode,f,e),Ds(a,e),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Va===null||!Va.has(p))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Kc(h),Qc(h,e,a,f),Ds(a,h),!1}a=a.return}while(a!==null);return!1}var io=Error(c(461)),Wt=!1;function bn(e,n,a,f){n.child=e===null?$u(n,null,a,f):ci(n,e.child,a,f)}function Zc(e,n,a,f,h){a=a.render;var p=n.ref;if("ref"in f){var x={};for(var w in f)w!=="ref"&&(x[w]=f[w])}else x=f;return li(n),f=Is(e,n,a,x,p,h),w=Hs(),e!==null&&!Wt?(qs(e,n,h),ba(e,n,h)):(Je&&w&&Es(n),n.flags|=1,bn(e,n,f,h),n.child)}function Wc(e,n,a,f,h){if(e===null){var p=a.type;return typeof p=="function"&&!ys(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,Jc(e,n,p,f,h)):(e=Zr(a.type,null,f,n,n.mode,h),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!ho(e,h)){var x=p.memoizedProps;if(a=a.compare,a=a!==null?a:ar,a(x,f)&&e.ref===n.ref)return ba(e,n,h)}return n.flags|=1,e=ha(p,f),e.ref=n.ref,e.return=n,n.child=e}function Jc(e,n,a,f,h){if(e!==null){var p=e.memoizedProps;if(ar(p,f)&&e.ref===n.ref)if(Wt=!1,n.pendingProps=f=p,ho(e,h))(e.flags&131072)!==0&&(Wt=!0);else return n.lanes=e.lanes,ba(e,n,h)}return ro(e,n,a,f,h)}function $c(e,n,a,f){var h=f.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,e!==null){for(f=n.child=e.child,h=0;f!==null;)h=h|f.lanes|f.childLanes,f=f.sibling;f=h&~p}else f=0,n.child=null;return ef(e,n,p,a,f)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&el(n,p!==null?p.cachePool:null),p!==null?nc(n,p):Ls(),ac(n);else return f=n.lanes=536870912,ef(e,n,p!==null?p.baseLanes|a:a,a,f)}else p!==null?(el(n,p.cachePool),nc(n,p),Ia(),n.memoizedState=null):(e!==null&&el(n,null),Ls(),Ia());return bn(e,n,h,a),n.child}function br(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function ef(e,n,a,f,h){var p=ws();return p=p===null?null:{parent:Qt._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},e!==null&&el(n,null),Ls(),ac(n),e!==null&&Oi(e,n,f,!0),n.childLanes=h,null}function gl(e,n){return n=vl({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function tf(e,n,a){return ci(n,e.child,null,a),e=gl(n,n.pendingProps),e.flags|=2,qn(n),n.memoizedState=null,e}function Ph(e,n,a){var f=n.pendingProps,h=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Je){if(f.mode==="hidden")return e=gl(n,f),n.lanes=536870912,br(null,e);if(zs(n),(e=wt)?(e=pd(e,$n),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ma!==null?{id:la,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},a=Uu(e),a.return=n,n.child=a,yn=n,wt=null)):e=null,e===null)throw Da(n);return n.lanes=536870912,null}return gl(n,f)}var p=e.memoizedState;if(p!==null){var x=p.dehydrated;if(zs(n),h)if(n.flags&256)n.flags&=-257,n=tf(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(c(558));else if(Wt||Oi(e,n,a,!1),h=(a&e.childLanes)!==0,Wt||h){if(f=Tt,f!==null&&(x=Xt(f,a),x!==0&&x!==p.retryLane))throw p.retryLane=x,ni(e,x),Bn(f,e,x),io;Cl(),n=tf(e,n,a)}else e=p.treeContext,wt=ta(x.nextSibling),yn=n,Je=!0,ja=null,$n=!1,e!==null&&qu(n,e),n=gl(n,f),n.flags|=4096;return n}return e=ha(e.child,{mode:f.mode,children:f.children}),e.ref=n.ref,n.child=e,e.return=n,e}function yl(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function ro(e,n,a,f,h){return li(n),a=Is(e,n,a,f,void 0,h),f=Hs(),e!==null&&!Wt?(qs(e,n,h),ba(e,n,h)):(Je&&f&&Es(n),n.flags|=1,bn(e,n,a,h),n.child)}function nf(e,n,a,f,h,p){return li(n),n.updateQueue=null,a=rc(n,f,a,h),ic(e),f=Hs(),e!==null&&!Wt?(qs(e,n,p),ba(e,n,p)):(Je&&f&&Es(n),n.flags|=1,bn(e,n,a,p),n.child)}function af(e,n,a,f,h){if(li(n),n.stateNode===null){var p=Ti,x=a.contextType;typeof x=="object"&&x!==null&&(p=vn(x)),p=new a(f,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=no,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=f,p.state=n.memoizedState,p.refs={},Ms(n),x=a.contextType,p.context=typeof x=="object"&&x!==null?vn(x):Ti,p.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(to(n,a,x,f),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(x=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),x!==p.state&&no.enqueueReplaceState(p,p.state,null),pr(n,f,p,h),hr(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),f=!0}else if(e===null){p=n.stateNode;var w=n.memoizedProps,q=di(a,w);p.props=q;var W=p.context,oe=a.contextType;x=Ti,typeof oe=="object"&&oe!==null&&(x=vn(oe));var fe=a.getDerivedStateFromProps;oe=typeof fe=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,oe||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||W!==x)&&Vc(n,p,f,x),La=!1;var $=n.memoizedState;p.state=$,pr(n,f,p,h),hr(),W=n.memoizedState,w||$!==W||La?(typeof fe=="function"&&(to(n,a,fe,f),W=n.memoizedState),(q=La||Pc(n,a,q,f,$,W,x))?(oe||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=f,n.memoizedState=W),p.props=f,p.state=W,p.context=x,f=q):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),f=!1)}else{p=n.stateNode,js(e,n),x=n.memoizedProps,oe=di(a,x),p.props=oe,fe=n.pendingProps,$=p.context,W=a.contextType,q=Ti,typeof W=="object"&&W!==null&&(q=vn(W)),w=a.getDerivedStateFromProps,(W=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x!==fe||$!==q)&&Vc(n,p,f,q),La=!1,$=n.memoizedState,p.state=$,pr(n,f,p,h),hr();var ne=n.memoizedState;x!==fe||$!==ne||La||e!==null&&e.dependencies!==null&&Jr(e.dependencies)?(typeof w=="function"&&(to(n,a,w,f),ne=n.memoizedState),(oe=La||Pc(n,a,oe,f,$,ne,q)||e!==null&&e.dependencies!==null&&Jr(e.dependencies))?(W||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(f,ne,q),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(f,ne,q)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),n.memoizedProps=f,n.memoizedState=ne),p.props=f,p.state=ne,p.context=q,f=oe):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),f=!1)}return p=f,yl(e,n),f=(n.flags&128)!==0,p||f?(p=n.stateNode,a=f&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&f?(n.child=ci(n,e.child,null,h),n.child=ci(n,null,a,h)):bn(e,n,a,h),n.memoizedState=p.state,e=n.child):e=ba(e,n,h),e}function rf(e,n,a,f){return ii(),n.flags|=256,bn(e,n,a,f),n.child}var lo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function so(e){return{baseLanes:e,cachePool:Xu()}}function oo(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Vn),e}function lf(e,n,a){var f=n.pendingProps,h=!1,p=(n.flags&128)!==0,x;if((x=p)||(x=e!==null&&e.memoizedState===null?!1:(Vt.current&2)!==0),x&&(h=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Je){if(h?Ua(n):Ia(),(e=wt)?(e=pd(e,$n),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ma!==null?{id:la,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},a=Uu(e),a.return=n,n.child=a,yn=n,wt=null)):e=null,e===null)throw Da(n);return Go(e)?n.lanes=32:n.lanes=536870912,null}var w=f.children;return f=f.fallback,h?(Ia(),h=n.mode,w=vl({mode:"hidden",children:w},h),f=ai(f,h,a,null),w.return=n,f.return=n,w.sibling=f,n.child=w,f=n.child,f.memoizedState=so(a),f.childLanes=oo(e,x,a),n.memoizedState=lo,br(null,f)):(Ua(n),uo(n,w))}var q=e.memoizedState;if(q!==null&&(w=q.dehydrated,w!==null)){if(p)n.flags&256?(Ua(n),n.flags&=-257,n=co(e,n,a)):n.memoizedState!==null?(Ia(),n.child=e.child,n.flags|=128,n=null):(Ia(),w=f.fallback,h=n.mode,f=vl({mode:"visible",children:f.children},h),w=ai(w,h,a,null),w.flags|=2,f.return=n,w.return=n,f.sibling=w,n.child=f,ci(n,e.child,null,a),f=n.child,f.memoizedState=so(a),f.childLanes=oo(e,x,a),n.memoizedState=lo,n=br(null,f));else if(Ua(n),Go(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var W=x.dgst;x=W,f=Error(c(419)),f.stack="",f.digest=x,lr({value:f,source:null,stack:null}),n=co(e,n,a)}else if(Wt||Oi(e,n,a,!1),x=(a&e.childLanes)!==0,Wt||x){if(x=Tt,x!==null&&(f=Xt(x,a),f!==0&&f!==q.retryLane))throw q.retryLane=f,ni(e,f),Bn(x,e,f),io;Yo(w)||Cl(),n=co(e,n,a)}else Yo(w)?(n.flags|=192,n.child=e.child,n=null):(e=q.treeContext,wt=ta(w.nextSibling),yn=n,Je=!0,ja=null,$n=!1,e!==null&&qu(n,e),n=uo(n,f.children),n.flags|=4096);return n}return h?(Ia(),w=f.fallback,h=n.mode,q=e.child,W=q.sibling,f=ha(q,{mode:"hidden",children:f.children}),f.subtreeFlags=q.subtreeFlags&65011712,W!==null?w=ha(W,w):(w=ai(w,h,a,null),w.flags|=2),w.return=n,f.return=n,f.sibling=w,n.child=f,br(null,f),f=n.child,w=e.child.memoizedState,w===null?w=so(a):(h=w.cachePool,h!==null?(q=Qt._currentValue,h=h.parent!==q?{parent:q,pool:q}:h):h=Xu(),w={baseLanes:w.baseLanes|a,cachePool:h}),f.memoizedState=w,f.childLanes=oo(e,x,a),n.memoizedState=lo,br(e.child,f)):(Ua(n),a=e.child,e=a.sibling,a=ha(a,{mode:"visible",children:f.children}),a.return=n,a.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=a,n.memoizedState=null,a)}function uo(e,n){return n=vl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function vl(e,n){return e=In(22,e,null,n),e.lanes=0,e}function co(e,n,a){return ci(n,e.child,null,a),e=uo(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function sf(e,n,a){e.lanes|=n;var f=e.alternate;f!==null&&(f.lanes|=n),Rs(e.return,n,a)}function fo(e,n,a,f,h,p){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:f,tail:a,tailMode:h,treeForkCount:p}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=a,x.tailMode=h,x.treeForkCount=p)}function of(e,n,a){var f=n.pendingProps,h=f.revealOrder,p=f.tail;f=f.children;var x=Vt.current,w=(x&2)!==0;if(w?(x=x&1|2,n.flags|=128):x&=1,ue(Vt,x),bn(e,n,f,a),f=Je?rr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sf(e,a,n);else if(e.tag===19)sf(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(h){case"forwards":for(a=n.child,h=null;a!==null;)e=a.alternate,e!==null&&ll(e)===null&&(h=a),a=a.sibling;a=h,a===null?(h=n.child,n.child=null):(h=a.sibling,a.sibling=null),fo(n,!1,h,a,p,f);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=n.child,n.child=null;h!==null;){if(e=h.alternate,e!==null&&ll(e)===null){n.child=h;break}e=h.sibling,h.sibling=a,a=h,h=e}fo(n,!0,a,null,p,f);break;case"together":fo(n,!1,null,null,void 0,f);break;default:n.memoizedState=null}return n.child}function ba(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Pa|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Oi(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(c(153));if(n.child!==null){for(e=n.child,a=ha(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ha(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function ho(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Jr(e)))}function Vh(e,n,a){switch(n.tag){case 3:De(n,n.stateNode.containerInfo),ka(n,Qt,e.memoizedState.cache),ii();break;case 27:case 5:Ye(n);break;case 4:De(n,n.stateNode.containerInfo);break;case 10:ka(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,zs(n),null;break;case 13:var f=n.memoizedState;if(f!==null)return f.dehydrated!==null?(Ua(n),n.flags|=128,null):(a&n.child.childLanes)!==0?lf(e,n,a):(Ua(n),e=ba(e,n,a),e!==null?e.sibling:null);Ua(n);break;case 19:var h=(e.flags&128)!==0;if(f=(a&n.childLanes)!==0,f||(Oi(e,n,a,!1),f=(a&n.childLanes)!==0),h){if(f)return of(e,n,a);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ue(Vt,Vt.current),f)break;return null;case 22:return n.lanes=0,$c(e,n,a,n.pendingProps);case 24:ka(n,Qt,e.memoizedState.cache)}return ba(e,n,a)}function uf(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Wt=!0;else{if(!ho(e,a)&&(n.flags&128)===0)return Wt=!1,Vh(e,n,a);Wt=(e.flags&131072)!==0}else Wt=!1,Je&&(n.flags&1048576)!==0&&Hu(n,rr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var f=n.pendingProps;if(e=oi(n.elementType),n.type=e,typeof e=="function")ys(e)?(f=di(e,f),n.tag=1,n=af(null,n,e,f,a)):(n.tag=0,n=ro(null,n,e,f,a));else{if(e!=null){var h=e.$$typeof;if(h===Y){n.tag=11,n=Zc(null,n,e,f,a);break e}else if(h===G){n.tag=14,n=Wc(null,n,e,f,a);break e}}throw n=ye(e)||e,Error(c(306,n,""))}}return n;case 0:return ro(e,n,n.type,n.pendingProps,a);case 1:return f=n.type,h=di(f,n.pendingProps),af(e,n,f,h,a);case 3:e:{if(De(n,n.stateNode.containerInfo),e===null)throw Error(c(387));f=n.pendingProps;var p=n.memoizedState;h=p.element,js(e,n),pr(n,f,null,a);var x=n.memoizedState;if(f=x.cache,ka(n,Qt,f),f!==p.cache&&As(n,[Qt],a,!0),hr(),f=x.element,p.isDehydrated)if(p={element:f,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=rf(e,n,f,a);break e}else if(f!==h){h=Zn(Error(c(424)),n),lr(h),n=rf(e,n,f,a);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,wt=ta(e.firstChild),yn=n,Je=!0,ja=null,$n=!0,a=$u(n,null,f,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ii(),f===h){n=ba(e,n,a);break e}bn(e,n,f,a)}n=n.child}return n;case 26:return yl(e,n),e===null?(a=Ed(n.type,null,n.pendingProps,null))?n.memoizedState=a:Je||(a=n.type,e=n.pendingProps,f=kl(be.current).createElement(a),f[Ct]=n,f[ft]=e,En(f,a,e),Ae(f),n.stateNode=f):n.memoizedState=Ed(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ye(n),e===null&&Je&&(f=n.stateNode=yd(n.type,n.pendingProps,be.current),yn=n,$n=!0,h=wt,Xa(n.type)?(Fo=h,wt=ta(f.firstChild)):wt=h),bn(e,n,n.pendingProps.children,a),yl(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Je&&((h=f=wt)&&(f=bp(f,n.type,n.pendingProps,$n),f!==null?(n.stateNode=f,yn=n,wt=ta(f.firstChild),$n=!1,h=!0):h=!1),h||Da(n)),Ye(n),h=n.type,p=n.pendingProps,x=e!==null?e.memoizedProps:null,f=p.children,qo(h,p)?f=null:x!==null&&qo(h,x)&&(n.flags|=32),n.memoizedState!==null&&(h=Is(e,n,kh,null,null,a),kr._currentValue=h),yl(e,n),bn(e,n,f,a),n.child;case 6:return e===null&&Je&&((e=a=wt)&&(a=Ep(a,n.pendingProps,$n),a!==null?(n.stateNode=a,yn=n,wt=null,e=!0):e=!1),e||Da(n)),null;case 13:return lf(e,n,a);case 4:return De(n,n.stateNode.containerInfo),f=n.pendingProps,e===null?n.child=ci(n,null,f,a):bn(e,n,f,a),n.child;case 11:return Zc(e,n,n.type,n.pendingProps,a);case 7:return bn(e,n,n.pendingProps,a),n.child;case 8:return bn(e,n,n.pendingProps.children,a),n.child;case 12:return bn(e,n,n.pendingProps.children,a),n.child;case 10:return f=n.pendingProps,ka(n,n.type,f.value),bn(e,n,f.children,a),n.child;case 9:return h=n.type._context,f=n.pendingProps.children,li(n),h=vn(h),f=f(h),n.flags|=1,bn(e,n,f,a),n.child;case 14:return Wc(e,n,n.type,n.pendingProps,a);case 15:return Jc(e,n,n.type,n.pendingProps,a);case 19:return of(e,n,a);case 31:return Ph(e,n,a);case 22:return $c(e,n,a,n.pendingProps);case 24:return li(n),f=vn(Qt),e===null?(h=ws(),h===null&&(h=Tt,p=Cs(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=a),h=p),n.memoizedState={parent:f,cache:h},Ms(n),ka(n,Qt,h)):((e.lanes&a)!==0&&(js(e,n),pr(n,null,null,a),hr()),h=e.memoizedState,p=n.memoizedState,h.parent!==f?(h={parent:f,cache:f},n.memoizedState=h,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=h),ka(n,Qt,f)):(f=p.cache,ka(n,Qt,f),f!==h.cache&&As(n,[Qt],a,!0))),bn(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(c(156,n.tag))}function Ea(e){e.flags|=4}function po(e,n,a,f,h){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(h&335544128)===h)if(e.stateNode.complete)e.flags|=8192;else if(Bf())e.flags|=8192;else throw ui=nl,Ns}else e.flags&=-16777217}function cf(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Rd(n))if(Bf())e.flags|=8192;else throw ui=nl,Ns}function bl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?an():536870912,e.lanes|=n,Hi|=n)}function Er(e,n){if(!Je)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:f.sibling=null}}function Nt(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,f=0;if(n)for(var h=e.child;h!==null;)a|=h.lanes|h.childLanes,f|=h.subtreeFlags&65011712,f|=h.flags&65011712,h.return=e,h=h.sibling;else for(h=e.child;h!==null;)a|=h.lanes|h.childLanes,f|=h.subtreeFlags,f|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=f,e.childLanes=a,n}function Yh(e,n,a){var f=n.pendingProps;switch(_s(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(n),null;case 1:return Nt(n),null;case 3:return a=n.stateNode,f=null,e!==null&&(f=e.memoizedState.cache),n.memoizedState.cache!==f&&(n.flags|=2048),ga(Qt),Me(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ci(n)?Ea(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ss())),Nt(n),null;case 26:var h=n.type,p=n.memoizedState;return e===null?(Ea(n),p!==null?(Nt(n),cf(n,p)):(Nt(n),po(n,h,null,f,a))):p?p!==e.memoizedState?(Ea(n),Nt(n),cf(n,p)):(Nt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==f&&Ea(n),Nt(n),po(n,h,e,f,a)),null;case 27:if(ut(n),a=be.current,h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&Ea(n);else{if(!f){if(n.stateNode===null)throw Error(c(166));return Nt(n),null}e=ve.current,Ci(n)?Pu(n):(e=yd(h,f,a),n.stateNode=e,Ea(n))}return Nt(n),null;case 5:if(ut(n),h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==f&&Ea(n);else{if(!f){if(n.stateNode===null)throw Error(c(166));return Nt(n),null}if(p=ve.current,Ci(n))Pu(n);else{var x=kl(be.current);switch(p){case 1:p=x.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:p=x.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":p=x.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":p=x.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":p=x.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof f.is=="string"?x.createElement("select",{is:f.is}):x.createElement("select"),f.multiple?p.multiple=!0:f.size&&(p.size=f.size);break;default:p=typeof f.is=="string"?x.createElement(h,{is:f.is}):x.createElement(h)}}p[Ct]=n,p[ft]=f;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)p.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=p;e:switch(En(p,h,f),h){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&Ea(n)}}return Nt(n),po(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==f&&Ea(n);else{if(typeof f!="string"&&n.stateNode===null)throw Error(c(166));if(e=be.current,Ci(n)){if(e=n.stateNode,a=n.memoizedProps,f=null,h=yn,h!==null)switch(h.tag){case 27:case 5:f=h.memoizedProps}e[Ct]=n,e=!!(e.nodeValue===a||f!==null&&f.suppressHydrationWarning===!0||ld(e.nodeValue,a)),e||Da(n,!0)}else e=kl(e).createTextNode(f),e[Ct]=n,n.stateNode=e}return Nt(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(f=Ci(n),a!==null){if(e===null){if(!f)throw Error(c(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Ct]=n}else ii(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Nt(n),e=!1}else a=Ss(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(qn(n),n):(qn(n),null);if((n.flags&128)!==0)throw Error(c(558))}return Nt(n),null;case 13:if(f=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=Ci(n),f!==null&&f.dehydrated!==null){if(e===null){if(!h)throw Error(c(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(c(317));h[Ct]=n}else ii(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Nt(n),h=!1}else h=Ss(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return n.flags&256?(qn(n),n):(qn(n),null)}return qn(n),(n.flags&128)!==0?(n.lanes=a,n):(a=f!==null,e=e!==null&&e.memoizedState!==null,a&&(f=n.child,h=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(h=f.alternate.memoizedState.cachePool.pool),p=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(p=f.memoizedState.cachePool.pool),p!==h&&(f.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),bl(n,n.updateQueue),Nt(n),null);case 4:return Me(),e===null&&Bo(n.stateNode.containerInfo),Nt(n),null;case 10:return ga(n.type),Nt(n),null;case 19:if(ie(Vt),f=n.memoizedState,f===null)return Nt(n),null;if(h=(n.flags&128)!==0,p=f.rendering,p===null)if(h)Er(f,!1);else{if(It!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=ll(e),p!==null){for(n.flags|=128,Er(f,!1),e=p.updateQueue,n.updateQueue=e,bl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)zu(a,e),a=a.sibling;return ue(Vt,Vt.current&1|2),Je&&pa(n,f.treeForkCount),n.child}e=e.sibling}f.tail!==null&&st()>Tl&&(n.flags|=128,h=!0,Er(f,!1),n.lanes=4194304)}else{if(!h)if(e=ll(p),e!==null){if(n.flags|=128,h=!0,e=e.updateQueue,n.updateQueue=e,bl(n,e),Er(f,!0),f.tail===null&&f.tailMode==="hidden"&&!p.alternate&&!Je)return Nt(n),null}else 2*st()-f.renderingStartTime>Tl&&a!==536870912&&(n.flags|=128,h=!0,Er(f,!1),n.lanes=4194304);f.isBackwards?(p.sibling=n.child,n.child=p):(e=f.last,e!==null?e.sibling=p:n.child=p,f.last=p)}return f.tail!==null?(e=f.tail,f.rendering=e,f.tail=e.sibling,f.renderingStartTime=st(),e.sibling=null,a=Vt.current,ue(Vt,h?a&1|2:a&1),Je&&pa(n,f.treeForkCount),e):(Nt(n),null);case 22:case 23:return qn(n),Bs(),f=n.memoizedState!==null,e!==null?e.memoizedState!==null!==f&&(n.flags|=8192):f&&(n.flags|=8192),f?(a&536870912)!==0&&(n.flags&128)===0&&(Nt(n),n.subtreeFlags&6&&(n.flags|=8192)):Nt(n),a=n.updateQueue,a!==null&&bl(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),f=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(f=n.memoizedState.cachePool.pool),f!==a&&(n.flags|=2048),e!==null&&ie(si),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),ga(Qt),Nt(n),null;case 25:return null;case 30:return null}throw Error(c(156,n.tag))}function Gh(e,n){switch(_s(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ga(Qt),Me(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ut(n),null;case 31:if(n.memoizedState!==null){if(qn(n),n.alternate===null)throw Error(c(340));ii()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(qn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(c(340));ii()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return ie(Vt),null;case 4:return Me(),null;case 10:return ga(n.type),null;case 22:case 23:return qn(n),Bs(),e!==null&&ie(si),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return ga(Qt),null;case 25:return null;default:return null}}function ff(e,n){switch(_s(n),n.tag){case 3:ga(Qt),Me();break;case 26:case 27:case 5:ut(n);break;case 4:Me();break;case 31:n.memoizedState!==null&&qn(n);break;case 13:qn(n);break;case 19:ie(Vt);break;case 10:ga(n.type);break;case 22:case 23:qn(n),Bs(),e!==null&&ie(si);break;case 24:ga(Qt)}}function _r(e,n){try{var a=n.updateQueue,f=a!==null?a.lastEffect:null;if(f!==null){var h=f.next;a=h;do{if((a.tag&e)===e){f=void 0;var p=a.create,x=a.inst;f=p(),x.destroy=f}a=a.next}while(a!==h)}}catch(w){gt(n,n.return,w)}}function Ha(e,n,a){try{var f=n.updateQueue,h=f!==null?f.lastEffect:null;if(h!==null){var p=h.next;f=p;do{if((f.tag&e)===e){var x=f.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,h=n;var q=a,W=w;try{W()}catch(oe){gt(h,q,oe)}}}f=f.next}while(f!==p)}}catch(oe){gt(n,n.return,oe)}}function df(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{tc(n,a)}catch(f){gt(e,e.return,f)}}}function hf(e,n,a){a.props=di(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(f){gt(e,n,f)}}function xr(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var f=e.stateNode;break;case 30:f=e.stateNode;break;default:f=e.stateNode}typeof a=="function"?e.refCleanup=a(f):a.current=f}}catch(h){gt(e,n,h)}}function oa(e,n){var a=e.ref,f=e.refCleanup;if(a!==null)if(typeof f=="function")try{f()}catch(h){gt(e,n,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){gt(e,n,h)}else a.current=null}function pf(e){var n=e.type,a=e.memoizedProps,f=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&f.focus();break e;case"img":a.src?f.src=a.src:a.srcSet&&(f.srcset=a.srcSet)}}catch(h){gt(e,e.return,h)}}function mo(e,n,a){try{var f=e.stateNode;hp(f,e.type,a,n),f[ft]=n}catch(h){gt(e,e.return,h)}}function mf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function go(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yo(e,n,a){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=fa));else if(f!==4&&(f===27&&Xa(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(yo(e,n,a),e=e.sibling;e!==null;)yo(e,n,a),e=e.sibling}function El(e,n,a){var f=e.tag;if(f===5||f===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(f!==4&&(f===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(El(e,n,a),e=e.sibling;e!==null;)El(e,n,a),e=e.sibling}function gf(e){var n=e.stateNode,a=e.memoizedProps;try{for(var f=e.type,h=n.attributes;h.length;)n.removeAttributeNode(h[0]);En(n,f,a),n[Ct]=e,n[ft]=a}catch(p){gt(e,e.return,p)}}var _a=!1,Jt=!1,vo=!1,yf=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Fh(e,n){if(e=e.containerInfo,Io=ql,e=Ou(e),cs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var f=a.getSelection&&a.getSelection();if(f&&f.rangeCount!==0){a=f.anchorNode;var h=f.anchorOffset,p=f.focusNode;f=f.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var x=0,w=-1,q=-1,W=0,oe=0,fe=e,$=null;t:for(;;){for(var ne;fe!==a||h!==0&&fe.nodeType!==3||(w=x+h),fe!==p||f!==0&&fe.nodeType!==3||(q=x+f),fe.nodeType===3&&(x+=fe.nodeValue.length),(ne=fe.firstChild)!==null;)$=fe,fe=ne;for(;;){if(fe===e)break t;if($===a&&++W===h&&(w=x),$===p&&++oe===f&&(q=x),(ne=fe.nextSibling)!==null)break;fe=$,$=fe.parentNode}fe=ne}a=w===-1||q===-1?null:{start:w,end:q}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ho={focusedElem:e,selectionRange:a},ql=!1,mn=n;mn!==null;)if(n=mn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mn=e;else for(;mn!==null;){switch(n=mn,p=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)h=e[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,a=n,h=p.memoizedProps,p=p.memoizedState,f=a.stateNode;try{var Ce=di(a.type,h);e=f.getSnapshotBeforeUpdate(Ce,p),f.__reactInternalSnapshotBeforeUpdate=e}catch(Be){gt(a,a.return,Be)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)Vo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vo(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(c(163))}if(e=n.sibling,e!==null){e.return=n.return,mn=e;break}mn=n.return}}function vf(e,n,a){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Sa(e,a),f&4&&_r(5,a);break;case 1:if(Sa(e,a),f&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(x){gt(a,a.return,x)}else{var h=di(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(h,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){gt(a,a.return,x)}}f&64&&df(a),f&512&&xr(a,a.return);break;case 3:if(Sa(e,a),f&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{tc(e,n)}catch(x){gt(a,a.return,x)}}break;case 27:n===null&&f&4&&gf(a);case 26:case 5:Sa(e,a),n===null&&f&4&&pf(a),f&512&&xr(a,a.return);break;case 12:Sa(e,a);break;case 31:Sa(e,a),f&4&&_f(e,a);break;case 13:Sa(e,a),f&4&&xf(e,a),f&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=tp.bind(null,a),_p(e,a))));break;case 22:if(f=a.memoizedState!==null||_a,!f){n=n!==null&&n.memoizedState!==null||Jt,h=_a;var p=Jt;_a=f,(Jt=n)&&!p?Ta(e,a,(a.subtreeFlags&8772)!==0):Sa(e,a),_a=h,Jt=p}break;case 30:break;default:Sa(e,a)}}function bf(e){var n=e.alternate;n!==null&&(e.alternate=null,bf(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&P(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var jt=null,jn=!1;function xa(e,n,a){for(a=a.child;a!==null;)Ef(e,n,a),a=a.sibling}function Ef(e,n,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:Jt||oa(a,n),xa(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Jt||oa(a,n);var f=jt,h=jn;Xa(a.type)&&(jt=a.stateNode,jn=!1),xa(e,n,a),Mr(a.stateNode),jt=f,jn=h;break;case 5:Jt||oa(a,n);case 6:if(f=jt,h=jn,jt=null,xa(e,n,a),jt=f,jn=h,jt!==null)if(jn)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(a.stateNode)}catch(p){gt(a,n,p)}else try{jt.removeChild(a.stateNode)}catch(p){gt(a,n,p)}break;case 18:jt!==null&&(jn?(e=jt,dd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ki(e)):dd(jt,a.stateNode));break;case 4:f=jt,h=jn,jt=a.stateNode.containerInfo,jn=!0,xa(e,n,a),jt=f,jn=h;break;case 0:case 11:case 14:case 15:Ha(2,a,n),Jt||Ha(4,a,n),xa(e,n,a);break;case 1:Jt||(oa(a,n),f=a.stateNode,typeof f.componentWillUnmount=="function"&&hf(a,n,f)),xa(e,n,a);break;case 21:xa(e,n,a);break;case 22:Jt=(f=Jt)||a.memoizedState!==null,xa(e,n,a),Jt=f;break;default:xa(e,n,a)}}function _f(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ki(e)}catch(a){gt(n,n.return,a)}}}function xf(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ki(e)}catch(a){gt(n,n.return,a)}}function Xh(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new yf),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new yf),n;default:throw Error(c(435,e.tag))}}function _l(e,n){var a=Xh(e);n.forEach(function(f){if(!a.has(f)){a.add(f);var h=np.bind(null,e,f);f.then(h,h)}})}function Dn(e,n){var a=n.deletions;if(a!==null)for(var f=0;f<a.length;f++){var h=a[f],p=e,x=n,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(Xa(w.type)){jt=w.stateNode,jn=!1;break e}break;case 5:jt=w.stateNode,jn=!1;break e;case 3:case 4:jt=w.stateNode.containerInfo,jn=!0;break e}w=w.return}if(jt===null)throw Error(c(160));Ef(p,x,h),jt=null,jn=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Sf(n,e),n=n.sibling}var ia=null;function Sf(e,n){var a=e.alternate,f=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dn(n,e),kn(e),f&4&&(Ha(3,e,e.return),_r(3,e),Ha(5,e,e.return));break;case 1:Dn(n,e),kn(e),f&512&&(Jt||a===null||oa(a,a.return)),f&64&&_a&&(e=e.updateQueue,e!==null&&(f=e.callbacks,f!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?f:a.concat(f))));break;case 26:var h=ia;if(Dn(n,e),kn(e),f&512&&(Jt||a===null||oa(a,a.return)),f&4){var p=a!==null?a.memoizedState:null;if(f=e.memoizedState,a===null)if(f===null)if(e.stateNode===null){e:{f=e.type,a=e.memoizedProps,h=h.ownerDocument||h;t:switch(f){case"title":p=h.getElementsByTagName("title")[0],(!p||p[Se]||p[Ct]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(f),h.head.insertBefore(p,h.querySelector("head > title"))),En(p,f,a),p[Ct]=e,Ae(p),f=p;break e;case"link":var x=Sd("link","href",h).get(f+(a.href||""));if(x){for(var w=0;w<x.length;w++)if(p=x[w],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(w,1);break t}}p=h.createElement(f),En(p,f,a),h.head.appendChild(p);break;case"meta":if(x=Sd("meta","content",h).get(f+(a.content||""))){for(w=0;w<x.length;w++)if(p=x[w],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(w,1);break t}}p=h.createElement(f),En(p,f,a),h.head.appendChild(p);break;default:throw Error(c(468,f))}p[Ct]=e,Ae(p),f=p}e.stateNode=f}else Td(h,e.type,e.stateNode);else e.stateNode=xd(h,f,e.memoizedProps);else p!==f?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,f===null?Td(h,e.type,e.stateNode):xd(h,f,e.memoizedProps)):f===null&&e.stateNode!==null&&mo(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dn(n,e),kn(e),f&512&&(Jt||a===null||oa(a,a.return)),a!==null&&f&4&&mo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dn(n,e),kn(e),f&512&&(Jt||a===null||oa(a,a.return)),e.flags&32){h=e.stateNode;try{ca(h,"")}catch(Ce){gt(e,e.return,Ce)}}f&4&&e.stateNode!=null&&(h=e.memoizedProps,mo(e,h,a!==null?a.memoizedProps:h)),f&1024&&(vo=!0);break;case 6:if(Dn(n,e),kn(e),f&4){if(e.stateNode===null)throw Error(c(162));f=e.memoizedProps,a=e.stateNode;try{a.nodeValue=f}catch(Ce){gt(e,e.return,Ce)}}break;case 3:if(zl=null,h=ia,ia=Ll(n.containerInfo),Dn(n,e),ia=h,kn(e),f&4&&a!==null&&a.memoizedState.isDehydrated)try{Ki(n.containerInfo)}catch(Ce){gt(e,e.return,Ce)}vo&&(vo=!1,Tf(e));break;case 4:f=ia,ia=Ll(e.stateNode.containerInfo),Dn(n,e),kn(e),ia=f;break;case 12:Dn(n,e),kn(e);break;case 31:Dn(n,e),kn(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,_l(e,f)));break;case 13:Dn(n,e),kn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Sl=st()),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,_l(e,f)));break;case 22:h=e.memoizedState!==null;var q=a!==null&&a.memoizedState!==null,W=_a,oe=Jt;if(_a=W||h,Jt=oe||q,Dn(n,e),Jt=oe,_a=W,kn(e),f&8192)e:for(n=e.stateNode,n._visibility=h?n._visibility&-2:n._visibility|1,h&&(a===null||q||_a||Jt||hi(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){q=a=n;try{if(p=q.stateNode,h)x=p.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=q.stateNode;var fe=q.memoizedProps.style,$=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;w.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(Ce){gt(q,q.return,Ce)}}}else if(n.tag===6){if(a===null){q=n;try{q.stateNode.nodeValue=h?"":q.memoizedProps}catch(Ce){gt(q,q.return,Ce)}}}else if(n.tag===18){if(a===null){q=n;try{var ne=q.stateNode;h?hd(ne,!0):hd(q.stateNode,!1)}catch(Ce){gt(q,q.return,Ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}f&4&&(f=e.updateQueue,f!==null&&(a=f.retryQueue,a!==null&&(f.retryQueue=null,_l(e,a))));break;case 19:Dn(n,e),kn(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,_l(e,f)));break;case 30:break;case 21:break;default:Dn(n,e),kn(e)}}function kn(e){var n=e.flags;if(n&2){try{for(var a,f=e.return;f!==null;){if(mf(f)){a=f;break}f=f.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var h=a.stateNode,p=go(e);El(e,p,h);break;case 5:var x=a.stateNode;a.flags&32&&(ca(x,""),a.flags&=-33);var w=go(e);El(e,w,x);break;case 3:case 4:var q=a.stateNode.containerInfo,W=go(e);yo(e,W,q);break;default:throw Error(c(161))}}catch(oe){gt(e,e.return,oe)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Tf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Tf(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Sa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)vf(e,n.alternate,n),n=n.sibling}function hi(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ha(4,n,n.return),hi(n);break;case 1:oa(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&hf(n,n.return,a),hi(n);break;case 27:Mr(n.stateNode);case 26:case 5:oa(n,n.return),hi(n);break;case 22:n.memoizedState===null&&hi(n);break;case 30:hi(n);break;default:hi(n)}e=e.sibling}}function Ta(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var f=n.alternate,h=e,p=n,x=p.flags;switch(p.tag){case 0:case 11:case 15:Ta(h,p,a),_r(4,p);break;case 1:if(Ta(h,p,a),f=p,h=f.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(W){gt(f,f.return,W)}if(f=p,h=f.updateQueue,h!==null){var w=f.stateNode;try{var q=h.shared.hiddenCallbacks;if(q!==null)for(h.shared.hiddenCallbacks=null,h=0;h<q.length;h++)ec(q[h],w)}catch(W){gt(f,f.return,W)}}a&&x&64&&df(p),xr(p,p.return);break;case 27:gf(p);case 26:case 5:Ta(h,p,a),a&&f===null&&x&4&&pf(p),xr(p,p.return);break;case 12:Ta(h,p,a);break;case 31:Ta(h,p,a),a&&x&4&&_f(h,p);break;case 13:Ta(h,p,a),a&&x&4&&xf(h,p);break;case 22:p.memoizedState===null&&Ta(h,p,a),xr(p,p.return);break;case 30:break;default:Ta(h,p,a)}n=n.sibling}}function bo(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&sr(a))}function Eo(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&sr(e))}function ra(e,n,a,f){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Rf(e,n,a,f),n=n.sibling}function Rf(e,n,a,f){var h=n.flags;switch(n.tag){case 0:case 11:case 15:ra(e,n,a,f),h&2048&&_r(9,n);break;case 1:ra(e,n,a,f);break;case 3:ra(e,n,a,f),h&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&sr(e)));break;case 12:if(h&2048){ra(e,n,a,f),e=n.stateNode;try{var p=n.memoizedProps,x=p.id,w=p.onPostCommit;typeof w=="function"&&w(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(q){gt(n,n.return,q)}}else ra(e,n,a,f);break;case 31:ra(e,n,a,f);break;case 13:ra(e,n,a,f);break;case 23:break;case 22:p=n.stateNode,x=n.alternate,n.memoizedState!==null?p._visibility&2?ra(e,n,a,f):Sr(e,n):p._visibility&2?ra(e,n,a,f):(p._visibility|=2,zi(e,n,a,f,(n.subtreeFlags&10256)!==0||!1)),h&2048&&bo(x,n);break;case 24:ra(e,n,a,f),h&2048&&Eo(n.alternate,n);break;default:ra(e,n,a,f)}}function zi(e,n,a,f,h){for(h=h&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,x=n,w=a,q=f,W=x.flags;switch(x.tag){case 0:case 11:case 15:zi(p,x,w,q,h),_r(8,x);break;case 23:break;case 22:var oe=x.stateNode;x.memoizedState!==null?oe._visibility&2?zi(p,x,w,q,h):Sr(p,x):(oe._visibility|=2,zi(p,x,w,q,h)),h&&W&2048&&bo(x.alternate,x);break;case 24:zi(p,x,w,q,h),h&&W&2048&&Eo(x.alternate,x);break;default:zi(p,x,w,q,h)}n=n.sibling}}function Sr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,f=n,h=f.flags;switch(f.tag){case 22:Sr(a,f),h&2048&&bo(f.alternate,f);break;case 24:Sr(a,f),h&2048&&Eo(f.alternate,f);break;default:Sr(a,f)}n=n.sibling}}var Tr=8192;function Ui(e,n,a){if(e.subtreeFlags&Tr)for(e=e.child;e!==null;)Af(e,n,a),e=e.sibling}function Af(e,n,a){switch(e.tag){case 26:Ui(e,n,a),e.flags&Tr&&e.memoizedState!==null&&Dp(a,ia,e.memoizedState,e.memoizedProps);break;case 5:Ui(e,n,a);break;case 3:case 4:var f=ia;ia=Ll(e.stateNode.containerInfo),Ui(e,n,a),ia=f;break;case 22:e.memoizedState===null&&(f=e.alternate,f!==null&&f.memoizedState!==null?(f=Tr,Tr=16777216,Ui(e,n,a),Tr=f):Ui(e,n,a));break;default:Ui(e,n,a)}}function Cf(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Rr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var f=n[a];mn=f,wf(f,e)}Cf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Of(e),e=e.sibling}function Of(e){switch(e.tag){case 0:case 11:case 15:Rr(e),e.flags&2048&&Ha(9,e,e.return);break;case 3:Rr(e);break;case 12:Rr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,xl(e)):Rr(e);break;default:Rr(e)}}function xl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var f=n[a];mn=f,wf(f,e)}Cf(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ha(8,n,n.return),xl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,xl(n));break;default:xl(n)}e=e.sibling}}function wf(e,n){for(;mn!==null;){var a=mn;switch(a.tag){case 0:case 11:case 15:Ha(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var f=a.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:sr(a.memoizedState.cache)}if(f=a.child,f!==null)f.return=a,mn=f;else e:for(a=e;mn!==null;){f=mn;var h=f.sibling,p=f.return;if(bf(f),f===a){mn=null;break e}if(h!==null){h.return=p,mn=h;break e}mn=p}}}var Kh={getCacheForType:function(e){var n=vn(Qt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return vn(Qt).controller.signal}},Qh=typeof WeakMap=="function"?WeakMap:Map,ot=0,Tt=null,Fe=null,Qe=0,mt=0,Pn=null,qa=!1,Ii=!1,_o=!1,Ra=0,It=0,Pa=0,pi=0,xo=0,Vn=0,Hi=0,Ar=null,Ln=null,So=!1,Sl=0,Nf=0,Tl=1/0,Rl=null,Va=null,un=0,Ya=null,qi=null,Aa=0,To=0,Ro=null,Mf=null,Cr=0,Ao=null;function Yn(){return(ot&2)!==0&&Qe!==0?Qe&-Qe:K.T!==null?jo():An()}function jf(){if(Vn===0)if((Qe&536870912)===0||Je){var e=at;at<<=1,(at&3932160)===0&&(at=262144),Vn=e}else Vn=536870912;return e=Hn.current,e!==null&&(e.flags|=32),Vn}function Bn(e,n,a){(e===Tt&&(mt===2||mt===9)||e.cancelPendingCommit!==null)&&(Pi(e,0),Ga(e,Qe,Vn,!1)),Rn(e,a),((ot&2)===0||e!==Tt)&&(e===Tt&&((ot&2)===0&&(pi|=a),It===4&&Ga(e,Qe,Vn,!1)),ua(e))}function Df(e,n,a){if((ot&6)!==0)throw Error(c(327));var f=!a&&(n&127)===0&&(n&e.expiredLanes)===0||Sn(e,n),h=f?Jh(e,n):Oo(e,n,!0),p=f;do{if(h===0){Ii&&!f&&Ga(e,n,0,!1);break}else{if(a=e.current.alternate,p&&!Zh(a)){h=Oo(e,n,!1),p=!1;continue}if(h===2){if(p=n,e.errorRecoveryDisabledLanes&p)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var w=e;h=Ar;var q=w.current.memoizedState.isDehydrated;if(q&&(Pi(w,x).flags|=256),x=Oo(w,x,!1),x!==2){if(_o&&!q){w.errorRecoveryDisabledLanes|=p,pi|=p,h=4;break e}p=Ln,Ln=h,p!==null&&(Ln===null?Ln=p:Ln.push.apply(Ln,p))}h=x}if(p=!1,h!==2)continue}}if(h===1){Pi(e,0),Ga(e,n,0,!0);break}e:{switch(f=e,p=h,p){case 0:case 1:throw Error(c(345));case 4:if((n&4194048)!==n)break;case 6:Ga(f,n,Vn,!qa);break e;case 2:Ln=null;break;case 3:case 5:break;default:throw Error(c(329))}if((n&62914560)===n&&(h=Sl+300-st(),10<h)){if(Ga(f,n,Vn,!qa),xn(f,0,!0)!==0)break e;Aa=n,f.timeoutHandle=cd(kf.bind(null,f,a,Ln,Rl,So,n,Vn,pi,Hi,qa,p,"Throttled",-0,0),h);break e}kf(f,a,Ln,Rl,So,n,Vn,pi,Hi,qa,p,null,-0,0)}}break}while(!0);ua(e)}function kf(e,n,a,f,h,p,x,w,q,W,oe,fe,$,ne){if(e.timeoutHandle=-1,fe=n.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fa},Af(n,p,fe);var Ce=(p&62914560)===p?Sl-st():(p&4194048)===p?Nf-st():0;if(Ce=kp(fe,Ce),Ce!==null){Aa=p,e.cancelPendingCommit=Ce(Pf.bind(null,e,n,p,a,f,h,x,w,q,oe,fe,null,$,ne)),Ga(e,p,x,!W);return}}Pf(e,n,p,a,f,h,x,w,q)}function Zh(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var f=0;f<a.length;f++){var h=a[f],p=h.getSnapshot;h=h.value;try{if(!Un(p(),h))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ga(e,n,a,f){n&=~xo,n&=~pi,e.suspendedLanes|=n,e.pingedLanes&=~n,f&&(e.warmLanes|=n),f=e.expirationTimes;for(var h=n;0<h;){var p=31-$e(h),x=1<<p;f[p]=-1,h&=~x}a!==0&&rn(e,a,n)}function Al(){return(ot&6)===0?(Or(0),!1):!0}function Co(){if(Fe!==null){if(mt===0)var e=Fe.return;else e=Fe,ma=ri=null,Ps(e),ji=null,ur=0,e=Fe;for(;e!==null;)ff(e.alternate,e),e=e.return;Fe=null}}function Pi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,gp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Aa=0,Co(),Tt=e,Fe=a=ha(e.current,null),Qe=n,mt=0,Pn=null,qa=!1,Ii=Sn(e,n),_o=!1,Hi=Vn=xo=pi=Pa=It=0,Ln=Ar=null,So=!1,(n&8)!==0&&(n|=n&32);var f=e.entangledLanes;if(f!==0)for(e=e.entanglements,f&=n;0<f;){var h=31-$e(f),p=1<<h;n|=e[h],f&=~p}return Ra=n,Xr(),a}function Lf(e,n){qe=null,K.H=vr,n===Mi||n===tl?(n=Zu(),mt=3):n===Ns?(n=Zu(),mt=4):mt=n===io?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Pn=n,Fe===null&&(It=1,ml(e,Zn(n,e.current)))}function Bf(){var e=Hn.current;return e===null?!0:(Qe&4194048)===Qe?ea===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===ea:!1}function zf(){var e=K.H;return K.H=vr,e===null?vr:e}function Uf(){var e=K.A;return K.A=Kh,e}function Cl(){It=4,qa||(Qe&4194048)!==Qe&&Hn.current!==null||(Ii=!0),(Pa&134217727)===0&&(pi&134217727)===0||Tt===null||Ga(Tt,Qe,Vn,!1)}function Oo(e,n,a){var f=ot;ot|=2;var h=zf(),p=Uf();(Tt!==e||Qe!==n)&&(Rl=null,Pi(e,n)),n=!1;var x=It;e:do try{if(mt!==0&&Fe!==null){var w=Fe,q=Pn;switch(mt){case 8:Co(),x=6;break e;case 3:case 2:case 9:case 6:Hn.current===null&&(n=!0);var W=mt;if(mt=0,Pn=null,Vi(e,w,q,W),a&&Ii){x=0;break e}break;default:W=mt,mt=0,Pn=null,Vi(e,w,q,W)}}Wh(),x=It;break}catch(oe){Lf(e,oe)}while(!0);return n&&e.shellSuspendCounter++,ma=ri=null,ot=f,K.H=h,K.A=p,Fe===null&&(Tt=null,Qe=0,Xr()),x}function Wh(){for(;Fe!==null;)If(Fe)}function Jh(e,n){var a=ot;ot|=2;var f=zf(),h=Uf();Tt!==e||Qe!==n?(Rl=null,Tl=st()+500,Pi(e,n)):Ii=Sn(e,n);e:do try{if(mt!==0&&Fe!==null){n=Fe;var p=Pn;t:switch(mt){case 1:mt=0,Pn=null,Vi(e,n,p,1);break;case 2:case 9:if(Ku(p)){mt=0,Pn=null,Hf(n);break}n=function(){mt!==2&&mt!==9||Tt!==e||(mt=7),ua(e)},p.then(n,n);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:Ku(p)?(mt=0,Pn=null,Hf(n)):(mt=0,Pn=null,Vi(e,n,p,7));break;case 5:var x=null;switch(Fe.tag){case 26:x=Fe.memoizedState;case 5:case 27:var w=Fe;if(x?Rd(x):w.stateNode.complete){mt=0,Pn=null;var q=w.sibling;if(q!==null)Fe=q;else{var W=w.return;W!==null?(Fe=W,Ol(W)):Fe=null}break t}}mt=0,Pn=null,Vi(e,n,p,5);break;case 6:mt=0,Pn=null,Vi(e,n,p,6);break;case 8:Co(),It=6;break e;default:throw Error(c(462))}}$h();break}catch(oe){Lf(e,oe)}while(!0);return ma=ri=null,K.H=f,K.A=h,ot=a,Fe!==null?0:(Tt=null,Qe=0,Xr(),It)}function $h(){for(;Fe!==null&&!tn();)If(Fe)}function If(e){var n=uf(e.alternate,e,Ra);e.memoizedProps=e.pendingProps,n===null?Ol(e):Fe=n}function Hf(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=nf(a,n,n.pendingProps,n.type,void 0,Qe);break;case 11:n=nf(a,n,n.pendingProps,n.type.render,n.ref,Qe);break;case 5:Ps(n);default:ff(a,n),n=Fe=zu(n,Ra),n=uf(a,n,Ra)}e.memoizedProps=e.pendingProps,n===null?Ol(e):Fe=n}function Vi(e,n,a,f){ma=ri=null,Ps(n),ji=null,ur=0;var h=n.return;try{if(qh(e,h,n,a,Qe)){It=1,ml(e,Zn(a,e.current)),Fe=null;return}}catch(p){if(h!==null)throw Fe=h,p;It=1,ml(e,Zn(a,e.current)),Fe=null;return}n.flags&32768?(Je||f===1?e=!0:Ii||(Qe&536870912)!==0?e=!1:(qa=e=!0,(f===2||f===9||f===3||f===6)&&(f=Hn.current,f!==null&&f.tag===13&&(f.flags|=16384))),qf(n,e)):Ol(n)}function Ol(e){var n=e;do{if((n.flags&32768)!==0){qf(n,qa);return}e=n.return;var a=Yh(n.alternate,n,Ra);if(a!==null){Fe=a;return}if(n=n.sibling,n!==null){Fe=n;return}Fe=n=e}while(n!==null);It===0&&(It=5)}function qf(e,n){do{var a=Gh(e.alternate,e);if(a!==null){a.flags&=32767,Fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Fe=e;return}Fe=e=a}while(e!==null);It=6,Fe=null}function Pf(e,n,a,f,h,p,x,w,q){e.cancelPendingCommit=null;do wl();while(un!==0);if((ot&6)!==0)throw Error(c(327));if(n!==null){if(n===e.current)throw Error(c(177));if(p=n.lanes|n.childLanes,p|=ms,Xn(e,a,p,x,w,q),e===Tt&&(Fe=Tt=null,Qe=0),qi=n,Ya=e,Aa=a,To=p,Ro=h,Mf=f,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ap(Dt,function(){return Xf(),null})):(e.callbackNode=null,e.callbackPriority=0),f=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||f){f=K.T,K.T=null,h=he.p,he.p=2,x=ot,ot|=4;try{Fh(e,n,a)}finally{ot=x,he.p=h,K.T=f}}un=1,Vf(),Yf(),Gf()}}function Vf(){if(un===1){un=0;var e=Ya,n=qi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=K.T,K.T=null;var f=he.p;he.p=2;var h=ot;ot|=4;try{Sf(n,e);var p=Ho,x=Ou(e.containerInfo),w=p.focusedElem,q=p.selectionRange;if(x!==w&&w&&w.ownerDocument&&Cu(w.ownerDocument.documentElement,w)){if(q!==null&&cs(w)){var W=q.start,oe=q.end;if(oe===void 0&&(oe=W),"selectionStart"in w)w.selectionStart=W,w.selectionEnd=Math.min(oe,w.value.length);else{var fe=w.ownerDocument||document,$=fe&&fe.defaultView||window;if($.getSelection){var ne=$.getSelection(),Ce=w.textContent.length,Be=Math.min(q.start,Ce),xt=q.end===void 0?Be:Math.min(q.end,Ce);!ne.extend&&Be>xt&&(x=xt,xt=Be,Be=x);var F=Au(w,Be),V=Au(w,xt);if(F&&V&&(ne.rangeCount!==1||ne.anchorNode!==F.node||ne.anchorOffset!==F.offset||ne.focusNode!==V.node||ne.focusOffset!==V.offset)){var Z=fe.createRange();Z.setStart(F.node,F.offset),ne.removeAllRanges(),Be>xt?(ne.addRange(Z),ne.extend(V.node,V.offset)):(Z.setEnd(V.node,V.offset),ne.addRange(Z))}}}}for(fe=[],ne=w;ne=ne.parentNode;)ne.nodeType===1&&fe.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<fe.length;w++){var ce=fe[w];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}ql=!!Io,Ho=Io=null}finally{ot=h,he.p=f,K.T=a}}e.current=n,un=2}}function Yf(){if(un===2){un=0;var e=Ya,n=qi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=K.T,K.T=null;var f=he.p;he.p=2;var h=ot;ot|=4;try{vf(e,n.alternate,n)}finally{ot=h,he.p=f,K.T=a}}un=3}}function Gf(){if(un===4||un===3){un=0,St();var e=Ya,n=qi,a=Aa,f=Mf;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?un=5:(un=0,qi=Ya=null,Ff(e,e.pendingLanes));var h=e.pendingLanes;if(h===0&&(Va=null),Ge(a),n=n.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(f!==null){n=K.T,h=he.p,he.p=2,K.T=null;try{for(var p=e.onRecoverableError,x=0;x<f.length;x++){var w=f[x];p(w.value,{componentStack:w.stack})}}finally{K.T=n,he.p=h}}(Aa&3)!==0&&wl(),ua(e),h=e.pendingLanes,(a&261930)!==0&&(h&42)!==0?e===Ao?Cr++:(Cr=0,Ao=e):Cr=0,Or(0)}}function Ff(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,sr(n)))}function wl(){return Vf(),Yf(),Gf(),Xf()}function Xf(){if(un!==5)return!1;var e=Ya,n=To;To=0;var a=Ge(Aa),f=K.T,h=he.p;try{he.p=32>a?32:a,K.T=null,a=Ro,Ro=null;var p=Ya,x=Aa;if(un=0,qi=Ya=null,Aa=0,(ot&6)!==0)throw Error(c(331));var w=ot;if(ot|=4,Of(p.current),Rf(p,p.current,x,a),ot=w,Or(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(dn,p)}catch{}return!0}finally{he.p=h,K.T=f,Ff(e,n)}}function Kf(e,n,a){n=Zn(a,n),n=ao(e.stateNode,n,2),e=za(e,n,2),e!==null&&(Rn(e,2),ua(e))}function gt(e,n,a){if(e.tag===3)Kf(e,e,a);else for(;n!==null;){if(n.tag===3){Kf(n,e,a);break}else if(n.tag===1){var f=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Va===null||!Va.has(f))){e=Zn(a,e),a=Kc(2),f=za(n,a,2),f!==null&&(Qc(a,f,n,e),Rn(f,2),ua(f));break}}n=n.return}}function wo(e,n,a){var f=e.pingCache;if(f===null){f=e.pingCache=new Qh;var h=new Set;f.set(n,h)}else h=f.get(n),h===void 0&&(h=new Set,f.set(n,h));h.has(a)||(_o=!0,h.add(a),e=ep.bind(null,e,n,a),n.then(e,e))}function ep(e,n,a){var f=e.pingCache;f!==null&&f.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Tt===e&&(Qe&a)===a&&(It===4||It===3&&(Qe&62914560)===Qe&&300>st()-Sl?(ot&2)===0&&Pi(e,0):xo|=a,Hi===Qe&&(Hi=0)),ua(e)}function Qf(e,n){n===0&&(n=an()),e=ni(e,n),e!==null&&(Rn(e,n),ua(e))}function tp(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Qf(e,a)}function np(e,n){var a=0;switch(e.tag){case 31:case 13:var f=e.stateNode,h=e.memoizedState;h!==null&&(a=h.retryLane);break;case 19:f=e.stateNode;break;case 22:f=e.stateNode._retryCache;break;default:throw Error(c(314))}f!==null&&f.delete(n),Qf(e,a)}function ap(e,n){return Gt(e,n)}var Nl=null,Yi=null,No=!1,Ml=!1,Mo=!1,Fa=0;function ua(e){e!==Yi&&e.next===null&&(Yi===null?Nl=Yi=e:Yi=Yi.next=e),Ml=!0,No||(No=!0,rp())}function Or(e,n){if(!Mo&&Ml){Mo=!0;do for(var a=!1,f=Nl;f!==null;){if(e!==0){var h=f.pendingLanes;if(h===0)var p=0;else{var x=f.suspendedLanes,w=f.pingedLanes;p=(1<<31-$e(42|e)+1)-1,p&=h&~(x&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,$f(f,p))}else p=Qe,p=xn(f,f===Tt?p:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(p&3)===0||Sn(f,p)||(a=!0,$f(f,p));f=f.next}while(a);Mo=!1}}function ip(){Zf()}function Zf(){Ml=No=!1;var e=0;Fa!==0&&mp()&&(e=Fa);for(var n=st(),a=null,f=Nl;f!==null;){var h=f.next,p=Wf(f,n);p===0?(f.next=null,a===null?Nl=h:a.next=h,h===null&&(Yi=a)):(a=f,(e!==0||(p&3)!==0)&&(Ml=!0)),f=h}un!==0&&un!==5||Or(e),Fa!==0&&(Fa=0)}function Wf(e,n){for(var a=e.suspendedLanes,f=e.pingedLanes,h=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var x=31-$e(p),w=1<<x,q=h[x];q===-1?((w&a)===0||(w&f)!==0)&&(h[x]=pt(w,n)):q<=n&&(e.expiredLanes|=w),p&=~w}if(n=Tt,a=Qe,a=xn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f=e.callbackNode,a===0||e===n&&(mt===2||mt===9)||e.cancelPendingCommit!==null)return f!==null&&f!==null&&Ot(f),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Sn(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(f!==null&&Ot(f),Ge(a)){case 2:case 8:a=Mt;break;case 32:a=Dt;break;case 268435456:a=fn;break;default:a=Dt}return f=Jf.bind(null,e),a=Gt(a,f),e.callbackPriority=n,e.callbackNode=a,n}return f!==null&&f!==null&&Ot(f),e.callbackPriority=2,e.callbackNode=null,2}function Jf(e,n){if(un!==0&&un!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(wl()&&e.callbackNode!==a)return null;var f=Qe;return f=xn(e,e===Tt?f:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),f===0?null:(Df(e,f,n),Wf(e,st()),e.callbackNode!=null&&e.callbackNode===a?Jf.bind(null,e):null)}function $f(e,n){if(wl())return null;Df(e,n,!0)}function rp(){yp(function(){(ot&6)!==0?Gt(Ht,ip):Zf()})}function jo(){if(Fa===0){var e=wi;e===0&&(e=kt,kt<<=1,(kt&261888)===0&&(kt=256)),Fa=e}return Fa}function ed(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ir(""+e)}function td(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function lp(e,n,a,f,h){if(n==="submit"&&a&&a.stateNode===h){var p=ed((h[ft]||null).action),x=f.submitter;x&&(n=(n=x[ft]||null)?ed(n.formAction):x.getAttribute("formAction"),n!==null&&(p=n,x=null));var w=new Vr("action","action",null,f,h);e.push({event:w,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Fa!==0){var q=x?td(h,x):new FormData(h);Ws(a,{pending:!0,data:q,method:h.method,action:p},null,q)}}else typeof p=="function"&&(w.preventDefault(),q=x?td(h,x):new FormData(h),Ws(a,{pending:!0,data:q,method:h.method,action:p},p,q))},currentTarget:h}]})}}for(var Do=0;Do<ps.length;Do++){var ko=ps[Do],sp=ko.toLowerCase(),op=ko[0].toUpperCase()+ko.slice(1);aa(sp,"on"+op)}aa(Mu,"onAnimationEnd"),aa(ju,"onAnimationIteration"),aa(Du,"onAnimationStart"),aa("dblclick","onDoubleClick"),aa("focusin","onFocus"),aa("focusout","onBlur"),aa(Th,"onTransitionRun"),aa(Rh,"onTransitionStart"),aa(Ah,"onTransitionCancel"),aa(ku,"onTransitionEnd"),Le("onMouseEnter",["mouseout","mouseover"]),Le("onMouseLeave",["mouseout","mouseover"]),Le("onPointerEnter",["pointerout","pointerover"]),Le("onPointerLeave",["pointerout","pointerover"]),dt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dt("onBeforeInput",["compositionend","keypress","textInput","paste"]),dt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="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(" "),up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wr));function nd(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var f=e[a],h=f.event;f=f.listeners;e:{var p=void 0;if(n)for(var x=f.length-1;0<=x;x--){var w=f[x],q=w.instance,W=w.currentTarget;if(w=w.listener,q!==p&&h.isPropagationStopped())break e;p=w,h.currentTarget=W;try{p(h)}catch(oe){Fr(oe)}h.currentTarget=null,p=q}else for(x=0;x<f.length;x++){if(w=f[x],q=w.instance,W=w.currentTarget,w=w.listener,q!==p&&h.isPropagationStopped())break e;p=w,h.currentTarget=W;try{p(h)}catch(oe){Fr(oe)}h.currentTarget=null,p=q}}}}function Xe(e,n){var a=n[Kn];a===void 0&&(a=n[Kn]=new Set);var f=e+"__bubble";a.has(f)||(ad(n,e,2,!1),a.add(f))}function Lo(e,n,a){var f=0;n&&(f|=4),ad(a,e,f,n)}var jl="_reactListening"+Math.random().toString(36).slice(2);function Bo(e){if(!e[jl]){e[jl]=!0,Ne.forEach(function(a){a!=="selectionchange"&&(up.has(a)||Lo(a,!1,e),Lo(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[jl]||(n[jl]=!0,Lo("selectionchange",!1,n))}}function ad(e,n,a,f){switch(jd(n)){case 2:var h=zp;break;case 8:h=Up;break;default:h=Wo}a=h.bind(null,n,a,e),h=void 0,!es||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),f?h!==void 0?e.addEventListener(n,a,{capture:!0,passive:h}):e.addEventListener(n,a,!0):h!==void 0?e.addEventListener(n,a,{passive:h}):e.addEventListener(n,a,!1)}function zo(e,n,a,f,h){var p=f;if((n&1)===0&&(n&2)===0&&f!==null)e:for(;;){if(f===null)return;var x=f.tag;if(x===3||x===4){var w=f.stateNode.containerInfo;if(w===h)break;if(x===4)for(x=f.return;x!==null;){var q=x.tag;if((q===3||q===4)&&x.stateNode.containerInfo===h)return;x=x.return}for(;w!==null;){if(x=me(w),x===null)return;if(q=x.tag,q===5||q===6||q===26||q===27){f=p=x;continue e}w=w.parentNode}}f=f.return}su(function(){var W=p,oe=Jl(a),fe=[];e:{var $=Lu.get(e);if($!==void 0){var ne=Vr,Ce=e;switch(e){case"keypress":if(qr(a)===0)break e;case"keydown":case"keyup":ne=nh;break;case"focusin":Ce="focus",ne=rs;break;case"focusout":Ce="blur",ne=rs;break;case"beforeblur":case"afterblur":ne=rs;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":ne=cu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=Yd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=rh;break;case Mu:case ju:case Du:ne=Xd;break;case ku:ne=sh;break;case"scroll":case"scrollend":ne=Pd;break;case"wheel":ne=uh;break;case"copy":case"cut":case"paste":ne=Qd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=du;break;case"toggle":case"beforetoggle":ne=fh}var Be=(n&4)!==0,xt=!Be&&(e==="scroll"||e==="scrollend"),F=Be?$!==null?$+"Capture":null:$;Be=[];for(var V=W,Z;V!==null;){var ce=V;if(Z=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||Z===null||F===null||(ce=Zi(V,F),ce!=null&&Be.push(Nr(V,ce,Z))),xt)break;V=V.return}0<Be.length&&($=new ne($,Ce,null,a,oe),fe.push({event:$,listeners:Be}))}}if((n&7)===0){e:{if($=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",$&&a!==Wl&&(Ce=a.relatedTarget||a.fromElement)&&(me(Ce)||Ce[sn]))break e;if((ne||$)&&($=oe.window===oe?oe:($=oe.ownerDocument)?$.defaultView||$.parentWindow:window,ne?(Ce=a.relatedTarget||a.toElement,ne=W,Ce=Ce?me(Ce):null,Ce!==null&&(xt=m(Ce),Be=Ce.tag,Ce!==xt||Be!==5&&Be!==27&&Be!==6)&&(Ce=null)):(ne=null,Ce=W),ne!==Ce)){if(Be=cu,ce="onMouseLeave",F="onMouseEnter",V="mouse",(e==="pointerout"||e==="pointerover")&&(Be=du,ce="onPointerLeave",F="onPointerEnter",V="pointer"),xt=ne==null?$:Oe(ne),Z=Ce==null?$:Oe(Ce),$=new Be(ce,V+"leave",ne,a,oe),$.target=xt,$.relatedTarget=Z,ce=null,me(oe)===W&&(Be=new Be(F,V+"enter",Ce,a,oe),Be.target=Z,Be.relatedTarget=xt,ce=Be),xt=ce,ne&&Ce)t:{for(Be=cp,F=ne,V=Ce,Z=0,ce=F;ce;ce=Be(ce))Z++;ce=0;for(var ke=V;ke;ke=Be(ke))ce++;for(;0<Z-ce;)F=Be(F),Z--;for(;0<ce-Z;)V=Be(V),ce--;for(;Z--;){if(F===V||V!==null&&F===V.alternate){Be=F;break t}F=Be(F),V=Be(V)}Be=null}else Be=null;ne!==null&&id(fe,$,ne,Be,!1),Ce!==null&&xt!==null&&id(fe,xt,Ce,Be,!0)}}e:{if($=W?Oe(W):window,ne=$.nodeName&&$.nodeName.toLowerCase(),ne==="select"||ne==="input"&&$.type==="file")var rt=Eu;else if(vu($))if(_u)rt=_h;else{rt=bh;var we=vh}else ne=$.nodeName,!ne||ne.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?W&&Zl(W.elementType)&&(rt=Eu):rt=Eh;if(rt&&(rt=rt(e,W))){bu(fe,rt,a,oe);break e}we&&we(e,$,W),e==="focusout"&&W&&$.type==="number"&&W.memoizedProps.value!=null&&Ql($,"number",$.value)}switch(we=W?Oe(W):window,e){case"focusin":(vu(we)||we.contentEditable==="true")&&(_i=we,fs=W,ir=null);break;case"focusout":ir=fs=_i=null;break;case"mousedown":ds=!0;break;case"contextmenu":case"mouseup":case"dragend":ds=!1,wu(fe,a,oe);break;case"selectionchange":if(Sh)break;case"keydown":case"keyup":wu(fe,a,oe)}var Pe;if(ss)e:{switch(e){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else Ei?gu(e,a)&&(Ze="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ze="onCompositionStart");Ze&&(hu&&a.locale!=="ko"&&(Ei||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&Ei&&(Pe=ou()):(Na=oe,ts="value"in Na?Na.value:Na.textContent,Ei=!0)),we=Dl(W,Ze),0<we.length&&(Ze=new fu(Ze,e,null,a,oe),fe.push({event:Ze,listeners:we}),Pe?Ze.data=Pe:(Pe=yu(a),Pe!==null&&(Ze.data=Pe)))),(Pe=hh?ph(e,a):mh(e,a))&&(Ze=Dl(W,"onBeforeInput"),0<Ze.length&&(we=new fu("onBeforeInput","beforeinput",null,a,oe),fe.push({event:we,listeners:Ze}),we.data=Pe)),lp(fe,e,W,a,oe)}nd(fe,n)})}function Nr(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Dl(e,n){for(var a=n+"Capture",f=[];e!==null;){var h=e,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=Zi(e,a),h!=null&&f.unshift(Nr(e,h,p)),h=Zi(e,n),h!=null&&f.push(Nr(e,h,p))),e.tag===3)return f;e=e.return}return[]}function cp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function id(e,n,a,f,h){for(var p=n._reactName,x=[];a!==null&&a!==f;){var w=a,q=w.alternate,W=w.stateNode;if(w=w.tag,q!==null&&q===f)break;w!==5&&w!==26&&w!==27||W===null||(q=W,h?(W=Zi(a,p),W!=null&&x.unshift(Nr(a,W,q))):h||(W=Zi(a,p),W!=null&&x.push(Nr(a,W,q)))),a=a.return}x.length!==0&&e.push({event:n,listeners:x})}var fp=/\r\n?/g,dp=/\u0000|\uFFFD/g;function rd(e){return(typeof e=="string"?e:""+e).replace(fp,`
9
+ `).replace(dp,"")}function ld(e,n){return n=rd(n),rd(e)===n}function _t(e,n,a,f,h,p){switch(a){case"children":typeof f=="string"?n==="body"||n==="textarea"&&f===""||ca(e,f):(typeof f=="number"||typeof f=="bigint")&&n!=="body"&&ca(e,""+f);break;case"className":Kt(e,"class",f);break;case"tabIndex":Kt(e,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Kt(e,a,f);break;case"style":ru(e,f,p);break;case"data":if(n!=="object"){Kt(e,"data",f);break}case"src":case"href":if(f===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(a);break}f=Ir(""+f),e.setAttribute(a,f);break;case"action":case"formAction":if(typeof f=="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 p=="function"&&(a==="formAction"?(n!=="input"&&_t(e,n,"name",h.name,h,null),_t(e,n,"formEncType",h.formEncType,h,null),_t(e,n,"formMethod",h.formMethod,h,null),_t(e,n,"formTarget",h.formTarget,h,null)):(_t(e,n,"encType",h.encType,h,null),_t(e,n,"method",h.method,h,null),_t(e,n,"target",h.target,h,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){e.removeAttribute(a);break}f=Ir(""+f),e.setAttribute(a,f);break;case"onClick":f!=null&&(e.onclick=fa);break;case"onScroll":f!=null&&Xe("scroll",e);break;case"onScrollEnd":f!=null&&Xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(c(61));if(a=f.__html,a!=null){if(h.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":e.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){e.removeAttribute("xlink:href");break}a=Ir(""+f),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":f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(a,""+f):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":f&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":f===!0?e.setAttribute(a,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?e.setAttribute(a,f):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?e.setAttribute(a,f):e.removeAttribute(a);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?e.removeAttribute(a):e.setAttribute(a,f);break;case"popover":Xe("beforetoggle",e),Xe("toggle",e),Ie(e,"popover",f);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Ie(e,"is",f);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Hd.get(a)||a,Ie(e,a,f))}}function Uo(e,n,a,f,h,p){switch(a){case"style":ru(e,f,p);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(c(61));if(a=f.__html,a!=null){if(h.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof f=="string"?ca(e,f):(typeof f=="number"||typeof f=="bigint")&&ca(e,""+f);break;case"onScroll":f!=null&&Xe("scroll",e);break;case"onScrollEnd":f!=null&&Xe("scrollend",e);break;case"onClick":f!=null&&(e.onclick=fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ve.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),n=a.slice(2,h?a.length-7:void 0),p=e[ft]||null,p=p!=null?p[a]:null,typeof p=="function"&&e.removeEventListener(n,p,h),typeof f=="function")){typeof p!="function"&&p!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,f,h);break e}a in e?e[a]=f:f===!0?e.setAttribute(a,""):Ie(e,a,f)}}}function En(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",e),Xe("load",e);var f=!1,h=!1,p;for(p in a)if(a.hasOwnProperty(p)){var x=a[p];if(x!=null)switch(p){case"src":f=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:_t(e,n,p,x,a,null)}}h&&_t(e,n,"srcSet",a.srcSet,a,null),f&&_t(e,n,"src",a.src,a,null);return;case"input":Xe("invalid",e);var w=p=x=h=null,q=null,W=null;for(f in a)if(a.hasOwnProperty(f)){var oe=a[f];if(oe!=null)switch(f){case"name":h=oe;break;case"type":x=oe;break;case"checked":q=oe;break;case"defaultChecked":W=oe;break;case"value":p=oe;break;case"defaultValue":w=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(c(137,n));break;default:_t(e,n,f,oe,a,null)}}Qi(e,p,w,q,W,x,h,!1);return;case"select":Xe("invalid",e),f=x=p=null;for(h in a)if(a.hasOwnProperty(h)&&(w=a[h],w!=null))switch(h){case"value":p=w;break;case"defaultValue":x=w;break;case"multiple":f=w;default:_t(e,n,h,w,a,null)}n=p,a=x,e.multiple=!!f,n!=null?wa(e,!!f,n,!1):a!=null&&wa(e,!!f,a,!0);return;case"textarea":Xe("invalid",e),p=h=f=null;for(x in a)if(a.hasOwnProperty(x)&&(w=a[x],w!=null))switch(x){case"value":f=w;break;case"defaultValue":h=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(91));break;default:_t(e,n,x,w,a,null)}au(e,f,h,p);return;case"option":for(q in a)a.hasOwnProperty(q)&&(f=a[q],f!=null)&&(q==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":_t(e,n,q,f,a,null));return;case"dialog":Xe("beforetoggle",e),Xe("toggle",e),Xe("cancel",e),Xe("close",e);break;case"iframe":case"object":Xe("load",e);break;case"video":case"audio":for(f=0;f<wr.length;f++)Xe(wr[f],e);break;case"image":Xe("error",e),Xe("load",e);break;case"details":Xe("toggle",e);break;case"embed":case"source":case"link":Xe("error",e),Xe("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(W in a)if(a.hasOwnProperty(W)&&(f=a[W],f!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,n));default:_t(e,n,W,f,a,null)}return;default:if(Zl(n)){for(oe in a)a.hasOwnProperty(oe)&&(f=a[oe],f!==void 0&&Uo(e,n,oe,f,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(f=a[w],f!=null&&_t(e,n,w,f,a,null))}function hp(e,n,a,f){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,x=null,w=null,q=null,W=null,oe=null;for(ne in a){var fe=a[ne];if(a.hasOwnProperty(ne)&&fe!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":q=fe;default:f.hasOwnProperty(ne)||_t(e,n,ne,null,f,fe)}}for(var $ in f){var ne=f[$];if(fe=a[$],f.hasOwnProperty($)&&(ne!=null||fe!=null))switch($){case"type":p=ne;break;case"name":h=ne;break;case"checked":W=ne;break;case"defaultChecked":oe=ne;break;case"value":x=ne;break;case"defaultValue":w=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(c(137,n));break;default:ne!==fe&&_t(e,n,$,ne,f,fe)}}Kl(e,x,w,q,W,oe,p,h);return;case"select":ne=x=w=$=null;for(p in a)if(q=a[p],a.hasOwnProperty(p)&&q!=null)switch(p){case"value":break;case"multiple":ne=q;default:f.hasOwnProperty(p)||_t(e,n,p,null,f,q)}for(h in f)if(p=f[h],q=a[h],f.hasOwnProperty(h)&&(p!=null||q!=null))switch(h){case"value":$=p;break;case"defaultValue":w=p;break;case"multiple":x=p;default:p!==q&&_t(e,n,h,p,f,q)}n=w,a=x,f=ne,$!=null?wa(e,!!a,$,!1):!!f!=!!a&&(n!=null?wa(e,!!a,n,!0):wa(e,!!a,a?[]:"",!1));return;case"textarea":ne=$=null;for(w in a)if(h=a[w],a.hasOwnProperty(w)&&h!=null&&!f.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:_t(e,n,w,null,f,h)}for(x in f)if(h=f[x],p=a[x],f.hasOwnProperty(x)&&(h!=null||p!=null))switch(x){case"value":$=h;break;case"defaultValue":ne=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:h!==p&&_t(e,n,x,h,f,p)}nu(e,$,ne);return;case"option":for(var Ce in a)$=a[Ce],a.hasOwnProperty(Ce)&&$!=null&&!f.hasOwnProperty(Ce)&&(Ce==="selected"?e.selected=!1:_t(e,n,Ce,null,f,$));for(q in f)$=f[q],ne=a[q],f.hasOwnProperty(q)&&$!==ne&&($!=null||ne!=null)&&(q==="selected"?e.selected=$&&typeof $!="function"&&typeof $!="symbol":_t(e,n,q,$,f,ne));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 Be in a)$=a[Be],a.hasOwnProperty(Be)&&$!=null&&!f.hasOwnProperty(Be)&&_t(e,n,Be,null,f,$);for(W in f)if($=f[W],ne=a[W],f.hasOwnProperty(W)&&$!==ne&&($!=null||ne!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(c(137,n));break;default:_t(e,n,W,$,f,ne)}return;default:if(Zl(n)){for(var xt in a)$=a[xt],a.hasOwnProperty(xt)&&$!==void 0&&!f.hasOwnProperty(xt)&&Uo(e,n,xt,void 0,f,$);for(oe in f)$=f[oe],ne=a[oe],!f.hasOwnProperty(oe)||$===ne||$===void 0&&ne===void 0||Uo(e,n,oe,$,f,ne);return}}for(var F in a)$=a[F],a.hasOwnProperty(F)&&$!=null&&!f.hasOwnProperty(F)&&_t(e,n,F,null,f,$);for(fe in f)$=f[fe],ne=a[fe],!f.hasOwnProperty(fe)||$===ne||$==null&&ne==null||_t(e,n,fe,$,f,ne)}function sd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),f=0;f<a.length;f++){var h=a[f],p=h.transferSize,x=h.initiatorType,w=h.duration;if(p&&w&&sd(x)){for(x=0,w=h.responseEnd,f+=1;f<a.length;f++){var q=a[f],W=q.startTime;if(W>w)break;var oe=q.transferSize,fe=q.initiatorType;oe&&sd(fe)&&(q=q.responseEnd,x+=oe*(q<w?1:(w-W)/(q-W)))}if(--f,n+=8*(p+x)/(h.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Io=null,Ho=null;function kl(e){return e.nodeType===9?e:e.ownerDocument}function od(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 ud(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function qo(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Po=null;function mp(){var e=window.event;return e&&e.type==="popstate"?e===Po?!1:(Po=e,!0):(Po=null,!1)}var cd=typeof setTimeout=="function"?setTimeout:void 0,gp=typeof clearTimeout=="function"?clearTimeout:void 0,fd=typeof Promise=="function"?Promise:void 0,yp=typeof queueMicrotask=="function"?queueMicrotask:typeof fd<"u"?function(e){return fd.resolve(null).then(e).catch(vp)}:cd;function vp(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function dd(e,n){var a=n,f=0;do{var h=a.nextSibling;if(e.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(f===0){e.removeChild(h),Ki(n);return}f--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")f++;else if(a==="html")Mr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Mr(a);for(var p=a.firstChild;p;){var x=p.nextSibling,w=p.nodeName;p[Se]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=x}}else a==="body"&&Mr(e.ownerDocument.body);a=h}while(a);Ki(n)}function hd(e,n){var a=e;e=0;do{var f=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=f}while(a)}function Vo(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Vo(a),P(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function bp(e,n,a,f){for(;e.nodeType===1;){var h=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!f&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(f){if(!e[Se])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=ta(e.nextSibling),e===null)break}return null}function Ep(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ta(e.nextSibling),e===null))return null;return e}function pd(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ta(e.nextSibling),e===null))return null;return e}function Yo(e){return e.data==="$?"||e.data==="$~"}function Go(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _p(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var f=function(){n(),a.removeEventListener("DOMContentLoaded",f)};a.addEventListener("DOMContentLoaded",f),e._reactRetry=f}}function ta(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Fo=null;function md(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return ta(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function gd(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function yd(e,n,a){switch(n=kl(a),e){case"html":if(e=n.documentElement,!e)throw Error(c(452));return e;case"head":if(e=n.head,!e)throw Error(c(453));return e;case"body":if(e=n.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Mr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);P(e)}var na=new Map,vd=new Set;function Ll(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ca=he.d;he.d={f:xp,r:Sp,D:Tp,C:Rp,L:Ap,m:Cp,X:wp,S:Op,M:Np};function xp(){var e=Ca.f(),n=Al();return e||n}function Sp(e){var n=ge(e);n!==null&&n.tag===5&&n.type==="form"?kc(n):Ca.r(e)}var Gi=typeof document>"u"?null:document;function bd(e,n,a){var f=Gi;if(f&&typeof n=="string"&&n){var h=Cn(n);h='link[rel="'+e+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),vd.has(h)||(vd.add(h),e={rel:e,crossOrigin:a,href:n},f.querySelector(h)===null&&(n=f.createElement("link"),En(n,"link",e),Ae(n),f.head.appendChild(n)))}}function Tp(e){Ca.D(e),bd("dns-prefetch",e,null)}function Rp(e,n){Ca.C(e,n),bd("preconnect",e,n)}function Ap(e,n,a){Ca.L(e,n,a);var f=Gi;if(f&&e&&n){var h='link[rel="preload"][as="'+Cn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Cn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Cn(a.imageSizes)+'"]')):h+='[href="'+Cn(e)+'"]';var p=h;switch(n){case"style":p=Fi(e);break;case"script":p=Xi(e)}na.has(p)||(e=A({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),na.set(p,e),f.querySelector(h)!==null||n==="style"&&f.querySelector(jr(p))||n==="script"&&f.querySelector(Dr(p))||(n=f.createElement("link"),En(n,"link",e),Ae(n),f.head.appendChild(n)))}}function Cp(e,n){Ca.m(e,n);var a=Gi;if(a&&e){var f=n&&typeof n.as=="string"?n.as:"script",h='link[rel="modulepreload"][as="'+Cn(f)+'"][href="'+Cn(e)+'"]',p=h;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Xi(e)}if(!na.has(p)&&(e=A({rel:"modulepreload",href:e},n),na.set(p,e),a.querySelector(h)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Dr(p)))return}f=a.createElement("link"),En(f,"link",e),Ae(f),a.head.appendChild(f)}}}function Op(e,n,a){Ca.S(e,n,a);var f=Gi;if(f&&e){var h=Ue(f).hoistableStyles,p=Fi(e);n=n||"default";var x=h.get(p);if(!x){var w={loading:0,preload:null};if(x=f.querySelector(jr(p)))w.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":n},a),(a=na.get(p))&&Xo(e,a);var q=x=f.createElement("link");Ae(q),En(q,"link",e),q._p=new Promise(function(W,oe){q.onload=W,q.onerror=oe}),q.addEventListener("load",function(){w.loading|=1}),q.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Bl(x,n,f)}x={type:"stylesheet",instance:x,count:1,state:w},h.set(p,x)}}}function wp(e,n){Ca.X(e,n);var a=Gi;if(a&&e){var f=Ue(a).hoistableScripts,h=Xi(e),p=f.get(h);p||(p=a.querySelector(Dr(h)),p||(e=A({src:e,async:!0},n),(n=na.get(h))&&Ko(e,n),p=a.createElement("script"),Ae(p),En(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},f.set(h,p))}}function Np(e,n){Ca.M(e,n);var a=Gi;if(a&&e){var f=Ue(a).hoistableScripts,h=Xi(e),p=f.get(h);p||(p=a.querySelector(Dr(h)),p||(e=A({src:e,async:!0,type:"module"},n),(n=na.get(h))&&Ko(e,n),p=a.createElement("script"),Ae(p),En(p,"link",e),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},f.set(h,p))}}function Ed(e,n,a,f){var h=(h=be.current)?Ll(h):null;if(!h)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Fi(a.href),a=Ue(h).hoistableStyles,f=a.get(n),f||(f={type:"style",instance:null,count:0,state:null},a.set(n,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Fi(a.href);var p=Ue(h).hoistableStyles,x=p.get(e);if(x||(h=h.ownerDocument||h,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,x),(p=h.querySelector(jr(e)))&&!p._p&&(x.instance=p,x.state.loading=5),na.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},na.set(e,a),p||Mp(h,e,a,x.state))),n&&f===null)throw Error(c(528,""));return x}if(n&&f!==null)throw Error(c(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Xi(a),a=Ue(h).hoistableScripts,f=a.get(n),f||(f={type:"script",instance:null,count:0,state:null},a.set(n,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Fi(e){return'href="'+Cn(e)+'"'}function jr(e){return'link[rel="stylesheet"]['+e+"]"}function _d(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Mp(e,n,a,f){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?f.loading=1:(n=e.createElement("link"),f.preload=n,n.addEventListener("load",function(){return f.loading|=1}),n.addEventListener("error",function(){return f.loading|=2}),En(n,"link",a),Ae(n),e.head.appendChild(n))}function Xi(e){return'[src="'+Cn(e)+'"]'}function Dr(e){return"script[async]"+e}function xd(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var f=e.querySelector('style[data-href~="'+Cn(a.href)+'"]');if(f)return n.instance=f,Ae(f),f;var h=A({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return f=(e.ownerDocument||e).createElement("style"),Ae(f),En(f,"style",h),Bl(f,a.precedence,e),n.instance=f;case"stylesheet":h=Fi(a.href);var p=e.querySelector(jr(h));if(p)return n.state.loading|=4,n.instance=p,Ae(p),p;f=_d(a),(h=na.get(h))&&Xo(f,h),p=(e.ownerDocument||e).createElement("link"),Ae(p);var x=p;return x._p=new Promise(function(w,q){x.onload=w,x.onerror=q}),En(p,"link",f),n.state.loading|=4,Bl(p,a.precedence,e),n.instance=p;case"script":return p=Xi(a.src),(h=e.querySelector(Dr(p)))?(n.instance=h,Ae(h),h):(f=a,(h=na.get(p))&&(f=A({},a),Ko(f,h)),e=e.ownerDocument||e,h=e.createElement("script"),Ae(h),En(h,"link",f),e.head.appendChild(h),n.instance=h);case"void":return null;default:throw Error(c(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(f=n.instance,n.state.loading|=4,Bl(f,a.precedence,e));return n.instance}function Bl(e,n,a){for(var f=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=f.length?f[f.length-1]:null,p=h,x=0;x<f.length;x++){var w=f[x];if(w.dataset.precedence===n)p=w;else if(p!==h)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Xo(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Ko(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var zl=null;function Sd(e,n,a){if(zl===null){var f=new Map,h=zl=new Map;h.set(a,f)}else h=zl,f=h.get(a),f||(f=new Map,h.set(a,f));if(f.has(e))return f;for(f.set(e,null),a=a.getElementsByTagName(e),h=0;h<a.length;h++){var p=a[h];if(!(p[Se]||p[Ct]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var x=p.getAttribute(n)||"";x=e+x;var w=f.get(x);w?w.push(p):f.set(x,[p])}}return f}function Td(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function jp(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Rd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Dp(e,n,a,f){if(a.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=Fi(f.href),p=n.querySelector(jr(h));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ul.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=p,Ae(p);return}p=n.ownerDocument||n,f=_d(f),(h=na.get(h))&&Xo(f,h),p=p.createElement("link"),Ae(p);var x=p;x._p=new Promise(function(w,q){x.onload=w,x.onerror=q}),En(p,"link",f),a.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ul.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var Qo=0;function kp(e,n){return e.stylesheets&&e.count===0&&Hl(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var f=setTimeout(function(){if(e.stylesheets&&Hl(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&Qo===0&&(Qo=62500*pp());var h=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Hl(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>Qo?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(f),clearTimeout(h)}}:null}function Ul(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Il=null;function Hl(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Il=new Map,n.forEach(Lp,e),Il=null,Ul.call(e))}function Lp(e,n){if(!(n.state.loading&4)){var a=Il.get(e);if(a)var f=a.get(null);else{a=new Map,Il.set(e,a);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var x=h[p];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),f=x)}f&&a.set(null,f)}h=n.instance,x=h.getAttribute("data-precedence"),p=a.get(x)||f,p===f&&a.set(null,h),a.set(x,h),this.count++,f=Ul.bind(this),h.addEventListener("load",f),h.addEventListener("error",f),p?p.parentNode.insertBefore(h,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),n.state.loading|=4}}var kr={$$typeof:U,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Bp(e,n,a,f,h,p,x,w,q){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=Fn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fn(0),this.hiddenUpdates=Fn(null),this.identifierPrefix=f,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function Ad(e,n,a,f,h,p,x,w,q,W,oe,fe){return e=new Bp(e,n,a,x,q,W,oe,fe,w),n=1,p===!0&&(n|=24),p=In(3,null,null,n),e.current=p,p.stateNode=e,n=Cs(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:f,isDehydrated:a,cache:n},Ms(p),e}function Cd(e){return e?(e=Ti,e):Ti}function Od(e,n,a,f,h,p){h=Cd(h),f.context===null?f.context=h:f.pendingContext=h,f=Ba(n),f.payload={element:a},p=p===void 0?null:p,p!==null&&(f.callback=p),a=za(e,f,n),a!==null&&(Bn(a,e,n),dr(a,e,n))}function wd(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Zo(e,n){wd(e,n),(e=e.alternate)&&wd(e,n)}function Nd(e){if(e.tag===13||e.tag===31){var n=ni(e,67108864);n!==null&&Bn(n,e,67108864),Zo(e,67108864)}}function Md(e){if(e.tag===13||e.tag===31){var n=Yn();n=Lt(n);var a=ni(e,n);a!==null&&Bn(a,e,n),Zo(e,n)}}var ql=!0;function zp(e,n,a,f){var h=K.T;K.T=null;var p=he.p;try{he.p=2,Wo(e,n,a,f)}finally{he.p=p,K.T=h}}function Up(e,n,a,f){var h=K.T;K.T=null;var p=he.p;try{he.p=8,Wo(e,n,a,f)}finally{he.p=p,K.T=h}}function Wo(e,n,a,f){if(ql){var h=Jo(f);if(h===null)zo(e,n,f,Pl,a),Dd(e,f);else if(Hp(h,e,n,a,f))f.stopPropagation();else if(Dd(e,f),n&4&&-1<Ip.indexOf(e)){for(;h!==null;){var p=ge(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var x=At(p.pendingLanes);if(x!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var q=1<<31-$e(x);w.entanglements[1]|=q,x&=~q}ua(p),(ot&6)===0&&(Tl=st()+500,Or(0))}}break;case 31:case 13:w=ni(p,2),w!==null&&Bn(w,p,2),Al(),Zo(p,2)}if(p=Jo(f),p===null&&zo(e,n,f,Pl,a),p===h)break;h=p}h!==null&&f.stopPropagation()}else zo(e,n,f,null,a)}}function Jo(e){return e=Jl(e),$o(e)}var Pl=null;function $o(e){if(Pl=null,e=me(e),e!==null){var n=m(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=y(n),e!==null)return e;e=null}else if(a===31){if(e=_(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Pl=e,null}function jd(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(_n()){case Ht:return 2;case Mt:return 8;case Dt:case cn:return 32;case fn:return 268435456;default:return 32}default:return 32}}var eu=!1,Ka=null,Qa=null,Za=null,Lr=new Map,Br=new Map,Wa=[],Ip="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 Dd(e,n){switch(e){case"focusin":case"focusout":Ka=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":Lr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Br.delete(n.pointerId)}}function zr(e,n,a,f,h,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:a,eventSystemFlags:f,nativeEvent:p,targetContainers:[h]},n!==null&&(n=ge(n),n!==null&&Nd(n)),e):(e.eventSystemFlags|=f,n=e.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),e)}function Hp(e,n,a,f,h){switch(n){case"focusin":return Ka=zr(Ka,e,n,a,f,h),!0;case"dragenter":return Qa=zr(Qa,e,n,a,f,h),!0;case"mouseover":return Za=zr(Za,e,n,a,f,h),!0;case"pointerover":var p=h.pointerId;return Lr.set(p,zr(Lr.get(p)||null,e,n,a,f,h)),!0;case"gotpointercapture":return p=h.pointerId,Br.set(p,zr(Br.get(p)||null,e,n,a,f,h)),!0}return!1}function kd(e){var n=me(e.target);if(n!==null){var a=m(n);if(a!==null){if(n=a.tag,n===13){if(n=y(a),n!==null){e.blockedOn=n,Tn(e.priority,function(){Md(a)});return}}else if(n===31){if(n=_(a),n!==null){e.blockedOn=n,Tn(e.priority,function(){Md(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Jo(e.nativeEvent);if(a===null){a=e.nativeEvent;var f=new a.constructor(a.type,a);Wl=f,a.target.dispatchEvent(f),Wl=null}else return n=ge(a),n!==null&&Nd(n),e.blockedOn=a,!1;n.shift()}return!0}function Ld(e,n,a){Vl(e)&&a.delete(n)}function qp(){eu=!1,Ka!==null&&Vl(Ka)&&(Ka=null),Qa!==null&&Vl(Qa)&&(Qa=null),Za!==null&&Vl(Za)&&(Za=null),Lr.forEach(Ld),Br.forEach(Ld)}function Yl(e,n){e.blockedOn===n&&(e.blockedOn=null,eu||(eu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,qp)))}var Gl=null;function Bd(e){Gl!==e&&(Gl=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Gl===e&&(Gl=null);for(var n=0;n<e.length;n+=3){var a=e[n],f=e[n+1],h=e[n+2];if(typeof f!="function"){if($o(f||a)===null)continue;break}var p=ge(a);p!==null&&(e.splice(n,3),n-=3,Ws(p,{pending:!0,data:h,method:a.method,action:f},f,h))}}))}function Ki(e){function n(q){return Yl(q,e)}Ka!==null&&Yl(Ka,e),Qa!==null&&Yl(Qa,e),Za!==null&&Yl(Za,e),Lr.forEach(n),Br.forEach(n);for(var a=0;a<Wa.length;a++){var f=Wa[a];f.blockedOn===e&&(f.blockedOn=null)}for(;0<Wa.length&&(a=Wa[0],a.blockedOn===null);)kd(a),a.blockedOn===null&&Wa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(f=0;f<a.length;f+=3){var h=a[f],p=a[f+1],x=h[ft]||null;if(typeof p=="function")x||Bd(a);else if(x){var w=null;if(p&&p.hasAttribute("formAction")){if(h=p,x=p[ft]||null)w=x.formAction;else if($o(h)!==null)continue}else w=x.action;typeof w=="function"?a[f+1]=w:(a.splice(f,3),f-=3),Bd(a)}}}function zd(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(x){return h=x})},focusReset:"manual",scroll:"manual"})}function n(){h!==null&&(h(),h=null),f||setTimeout(a,20)}function a(){if(!f&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){f=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),h!==null&&(h(),h=null)}}}function tu(e){this._internalRoot=e}Fl.prototype.render=tu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(c(409));var a=n.current,f=Yn();Od(a,f,e,n,null,null)},Fl.prototype.unmount=tu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Od(e.current,2,null,e,null,null),Al(),n[sn]=null}};function Fl(e){this._internalRoot=e}Fl.prototype.unstable_scheduleHydration=function(e){if(e){var n=An();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Wa.length&&n!==0&&n<Wa[a].priority;a++);Wa.splice(a,0,e),a===0&&kd(e)}};var Ud=i.version;if(Ud!=="19.2.3")throw Error(c(527,Ud,"19.2.3"));he.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=E(n),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Pp={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xl.isDisabled&&Xl.supportsFiber)try{dn=Xl.inject(Pp),vt=Xl}catch{}}return reactDomClient_production.createRoot=function(e,n){if(!d(e))throw Error(c(299));var a=!1,f="",h=Yc,p=Gc,x=Fc;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(f=n.identifierPrefix),n.onUncaughtError!==void 0&&(h=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=Ad(e,1,!1,null,null,a,f,null,h,p,x,zd),e[sn]=n.current,Bo(e),new tu(n)},reactDomClient_production.hydrateRoot=function(e,n,a){if(!d(e))throw Error(c(299));var f=!1,h="",p=Yc,x=Gc,w=Fc,q=null;return a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(q=a.formState)),n=Ad(e,1,!0,n,a??null,f,h,q,p,x,w,zd),n.context=Cd(null),a=n.current,f=Yn(),f=Lt(f),h=Ba(f),h.callback=null,za(a,h,f),a=f,n.current.lanes=a,Rn(n,a),ua(n),e[sn]=n.current,Bo(e),new Fl(n)},reactDomClient_production.version="19.2.3",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient(),reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var withSelector={exports:{}},useSyncExternalStoreWithSelector_production={};var hasRequiredUseSyncExternalStoreWithSelector_production;function requireUseSyncExternalStoreWithSelector_production(){if(hasRequiredUseSyncExternalStoreWithSelector_production)return useSyncExternalStoreWithSelector_production;hasRequiredUseSyncExternalStoreWithSelector_production=1;var t=requireReact();function i(v,E){return v===E&&(v!==0||1/v===1/E)||v!==v&&E!==E}var l=typeof Object.is=="function"?Object.is:i,c=t.useSyncExternalStore,d=t.useRef,m=t.useEffect,y=t.useMemo,_=t.useDebugValue;return useSyncExternalStoreWithSelector_production.useSyncExternalStoreWithSelector=function(v,E,S,A,T){var D=d(null);if(D.current===null){var k={hasValue:!1,value:null};D.current=k}else k=D.current;D=y(function(){function N(X){if(!z){if(z=!0,L=X,X=A(X),T!==void 0&&k.hasValue){var Q=k.value;if(T(Q,X))return U=Q}return U=X}if(Q=U,l(L,X))return Q;var G=A(X);return T!==void 0&&T(Q,G)?(L=X,Q):(L=X,U=G)}var z=!1,L,U,Y=S===void 0?null:S;return[function(){return N(E())},Y===null?void 0:function(){return N(Y())}]},[E,S,A,T]);var R=c(v,D[0],D[1]);return m(function(){k.hasValue=!0,k.value=R},[R]),_(R),R},useSyncExternalStoreWithSelector_production}var hasRequiredWithSelector;function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,withSelector.exports=requireUseSyncExternalStoreWithSelector_production()),withSelector.exports}var withSelectorExports=requireWithSelector(),IS_REACT_19=reactExports.version.startsWith("19"),REACT_ELEMENT_TYPE=Symbol.for(IS_REACT_19?"react.transitional.element":"react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),ForwardRef=REACT_FORWARD_REF_TYPE,Memo=REACT_MEMO_TYPE;function typeOf(t){if(typeof t=="object"&&t!==null){const{$$typeof:i}=t;switch(i){case REACT_ELEMENT_TYPE:switch(t=t.type,t){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return t;default:switch(t=t&&t.$$typeof,t){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:return t;case REACT_CONSUMER_TYPE:return t;default:return i}}case REACT_PORTAL_TYPE:return i}}}function isMemo(t){return typeOf(t)===REACT_MEMO_TYPE}function pureFinalPropsSelectorFactory(t,i,l,c,{areStatesEqual:d,areOwnPropsEqual:m,areStatePropsEqual:y}){let _=!1,v,E,S,A,T;function D(L,U){return v=L,E=U,S=t(v,E),A=i(c,E),T=l(S,A,E),_=!0,T}function k(){return S=t(v,E),i.dependsOnOwnProps&&(A=i(c,E)),T=l(S,A,E),T}function R(){return t.dependsOnOwnProps&&(S=t(v,E)),i.dependsOnOwnProps&&(A=i(c,E)),T=l(S,A,E),T}function N(){const L=t(v,E),U=!y(L,S);return S=L,U&&(T=l(S,A,E)),T}function z(L,U){const Y=!m(U,E),X=!d(L,v,U,E);return v=L,E=U,Y&&X?k():Y?R():X?N():T}return function(U,Y){return _?z(U,Y):D(U,Y)}}function finalPropsSelectorFactory(t,{initMapStateToProps:i,initMapDispatchToProps:l,initMergeProps:c,...d}){const m=i(t,d),y=l(t,d),_=c(t,d);return pureFinalPropsSelectorFactory(m,y,_,t,d)}function bindActionCreators(t,i){const l={};for(const c in t){const d=t[c];typeof d=="function"&&(l[c]=(...m)=>i(d(...m)))}return l}function wrapMapToPropsConstant(t){return function(l){const c=t(l);function d(){return c}return d.dependsOnOwnProps=!1,d}}function getDependsOnOwnProps(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function wrapMapToPropsFunc(t,i){return function(c,{displayName:d}){const m=function(_,v){return m.dependsOnOwnProps?m.mapToProps(_,v):m.mapToProps(_,void 0)};return m.dependsOnOwnProps=!0,m.mapToProps=function(_,v){m.mapToProps=t,m.dependsOnOwnProps=getDependsOnOwnProps(t);let E=m(_,v);return typeof E=="function"&&(m.mapToProps=E,m.dependsOnOwnProps=getDependsOnOwnProps(E),E=m(_,v)),E},m}}function createInvalidArgFactory(t,i){return(l,c)=>{throw new Error(`Invalid value of type ${typeof t} for ${i} argument when connecting component ${c.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(t){return t&&typeof t=="object"?wrapMapToPropsConstant(i=>bindActionCreators(t,i)):t?typeof t=="function"?wrapMapToPropsFunc(t):createInvalidArgFactory(t,"mapDispatchToProps"):wrapMapToPropsConstant(i=>({dispatch:i}))}function mapStateToPropsFactory(t){return t?typeof t=="function"?wrapMapToPropsFunc(t):createInvalidArgFactory(t,"mapStateToProps"):wrapMapToPropsConstant(()=>({}))}function defaultMergeProps(t,i,l){return{...l,...t,...i}}function wrapMergePropsFunc(t){return function(l,{displayName:c,areMergedPropsEqual:d}){let m=!1,y;return function(v,E,S){const A=t(v,E,S);return m?d(A,y)||(y=A):(m=!0,y=A),y}}}function mergePropsFactory(t){return t?typeof t=="function"?wrapMergePropsFunc(t):createInvalidArgFactory(t,"mergeProps"):()=>defaultMergeProps}function defaultNoopBatch(t){t()}function createListenerCollection(){let t=null,i=null;return{clear(){t=null,i=null},notify(){defaultNoopBatch(()=>{let l=t;for(;l;)l.callback(),l=l.next})},get(){const l=[];let c=t;for(;c;)l.push(c),c=c.next;return l},subscribe(l){let c=!0;const d=i={callback:l,next:null,prev:i};return d.prev?d.prev.next=d:t=d,function(){!c||t===null||(c=!1,d.next?d.next.prev=d.prev:i=d.prev,d.prev?d.prev.next=d.next:t=d.next)}}}}var nullListeners={notify(){},get:()=>[]};function createSubscription(t,i){let l,c=nullListeners,d=0,m=!1;function y(R){S();const N=c.subscribe(R);let z=!1;return()=>{z||(z=!0,N(),A())}}function _(){c.notify()}function v(){k.onStateChange&&k.onStateChange()}function E(){return m}function S(){d++,l||(l=i?i.addNestedSub(v):t.subscribe(v),c=createListenerCollection())}function A(){d--,l&&d===0&&(l(),l=void 0,c.clear(),c=nullListeners)}function T(){m||(m=!0,S())}function D(){m&&(m=!1,A())}const k={addNestedSub:y,notifyNestedSubs:_,handleChangeWrapper:v,isSubscribed:E,trySubscribe:T,tryUnsubscribe:D,getListeners:()=>c};return k}var canUseDOM=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",isDOM=canUseDOM(),isRunningInReactNative=()=>typeof navigator<"u"&&navigator.product==="ReactNative",isReactNative$1=isRunningInReactNative(),getUseIsomorphicLayoutEffect=()=>isDOM||isReactNative$1?reactExports.useLayoutEffect:reactExports.useEffect,useIsomorphicLayoutEffect=getUseIsomorphicLayoutEffect();function is$1(t,i){return t===i?t!==0||i!==0||1/t===1/i:t!==t&&i!==i}function shallowEqual(t,i){if(is$1(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;const l=Object.keys(t),c=Object.keys(i);if(l.length!==c.length)return!1;for(let d=0;d<l.length;d++)if(!Object.prototype.hasOwnProperty.call(i,l[d])||!is$1(t[l[d]],i[l[d]]))return!1;return!0}var REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={[ForwardRef]:FORWARD_REF_STATICS,[Memo]:MEMO_STATICS};function getStatics(t){return isMemo(t)?MEMO_STATICS:TYPE_STATICS[t.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,getPrototypeOf$2=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(t,i){if(typeof i!="string"){if(objectPrototype){const m=getPrototypeOf$2(i);m&&m!==objectPrototype&&hoistNonReactStatics(t,m)}let l=getOwnPropertyNames(i);getOwnPropertySymbols&&(l=l.concat(getOwnPropertySymbols(i)));const c=getStatics(t),d=getStatics(i);for(let m=0;m<l.length;++m){const y=l[m];if(!KNOWN_STATICS[y]&&!(d&&d[y])&&!(c&&c[y])){const _=getOwnPropertyDescriptor$1(i,y);try{defineProperty(t,y,_)}catch{}}}}return t}var ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis<"u"?globalThis:{};function getContext(){if(!reactExports.createContext)return{};const t=gT[ContextKey]??=new Map;let i=t.get(reactExports.createContext);return i||(i=reactExports.createContext(null),t.set(reactExports.createContext,i)),i}var ReactReduxContext=getContext(),NO_SUBSCRIPTION_ARRAY=[null,null];function useIsomorphicLayoutEffectWithArgs(t,i,l){useIsomorphicLayoutEffect(()=>t(...i),l)}function captureWrapperProps(t,i,l,c,d,m){t.current=c,l.current=!1,d.current&&(d.current=null,m())}function subscribeUpdates(t,i,l,c,d,m,y,_,v,E,S){if(!t)return()=>{};let A=!1,T=null;const D=()=>{if(A||!_.current)return;const R=i.getState();let N,z;try{N=c(R,d.current)}catch(L){z=L,T=L}z||(T=null),N===m.current?y.current||E():(m.current=N,v.current=N,y.current=!0,S())};return l.onStateChange=D,l.trySubscribe(),D(),()=>{if(A=!0,l.tryUnsubscribe(),l.onStateChange=null,T)throw T}}function strictEqual(t,i){return t===i}function connect$1(t,i,l,{pure:c,areStatesEqual:d=strictEqual,areOwnPropsEqual:m=shallowEqual,areStatePropsEqual:y=shallowEqual,areMergedPropsEqual:_=shallowEqual,forwardRef:v=!1,context:E=ReactReduxContext}={}){const S=E,A=mapStateToPropsFactory(t),T=mapDispatchToPropsFactory(i),D=mergePropsFactory(l),k=!!t;return N=>{const z=N.displayName||N.name||"Component",L=`Connect(${z})`,U={shouldHandleStateChanges:k,displayName:L,wrappedComponentName:z,WrappedComponent:N,initMapStateToProps:A,initMapDispatchToProps:T,initMergeProps:D,areStatesEqual:d,areStatePropsEqual:y,areOwnPropsEqual:m,areMergedPropsEqual:_};function Y(G){const[te,J,le]=reactExports.useMemo(()=>{const{reactReduxForwardedRef:je,...yt}=G;return[G.context,je,yt]},[G]),ae=reactExports.useMemo(()=>{let je=S;return te?.Consumer,je},[te,S]),se=reactExports.useContext(ae),_e=!!G.store&&!!G.store.getState&&!!G.store.dispatch,ye=!!se&&!!se.store,Ee=_e?G.store:se.store,K=ye?se.getServerState:Ee.getState,he=reactExports.useMemo(()=>finalPropsSelectorFactory(Ee.dispatch,U),[Ee]),[ee,Re]=reactExports.useMemo(()=>{if(!k)return NO_SUBSCRIPTION_ARRAY;const je=createSubscription(Ee,_e?void 0:se.subscription),yt=je.notifyNestedSubs.bind(je);return[je,yt]},[Ee,_e,se]),Te=reactExports.useMemo(()=>_e?se:{...se,subscription:ee},[_e,se,ee]),H=reactExports.useRef(void 0),ie=reactExports.useRef(le),ue=reactExports.useRef(void 0),ve=reactExports.useRef(!1),pe=reactExports.useRef(!1),be=reactExports.useRef(void 0);useIsomorphicLayoutEffect(()=>(pe.current=!0,()=>{pe.current=!1}),[]);const xe=reactExports.useMemo(()=>()=>ue.current&&le===ie.current?ue.current:he(Ee.getState(),le),[Ee,le]),De=reactExports.useMemo(()=>yt=>ee?subscribeUpdates(k,Ee,ee,he,ie,H,ve,pe,ue,Re,yt):()=>{},[ee]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[ie,H,ve,le,ue,Re]);let Me;try{Me=reactExports.useSyncExternalStore(De,xe,K?()=>he(K(),le):xe)}catch(je){throw be.current&&(je.message+=`
10
+ The error may be correlated with this previous error:
11
+ ${be.current.stack}
12
+
13
+ `),je}useIsomorphicLayoutEffect(()=>{be.current=void 0,ue.current=void 0,H.current=Me});const Ye=reactExports.useMemo(()=>reactExports.createElement(N,{...Me,ref:J}),[J,N,Me]);return reactExports.useMemo(()=>k?reactExports.createElement(ae.Provider,{value:Te},Ye):Ye,[ae,Ye,Te])}const Q=reactExports.memo(Y);if(Q.WrappedComponent=N,Q.displayName=Y.displayName=L,v){const te=reactExports.forwardRef(function(le,ae){return reactExports.createElement(Q,{...le,reactReduxForwardedRef:ae})});return te.displayName=L,te.WrappedComponent=N,hoistNonReactStatics(te,N)}return hoistNonReactStatics(Q,N)}}var connect_default=connect$1;function Provider(t){const{children:i,context:l,serverState:c,store:d}=t,m=reactExports.useMemo(()=>{const v=createSubscription(d);return{store:d,subscription:v,getServerState:c?()=>c:void 0}},[d,c]),y=reactExports.useMemo(()=>d.getState(),[d]);useIsomorphicLayoutEffect(()=>{const{subscription:v}=m;return v.onStateChange=v.notifyNestedSubs,v.trySubscribe(),y!==d.getState()&&v.notifyNestedSubs(),()=>{v.tryUnsubscribe(),v.onStateChange=void 0}},[m,y]);const _=l||ReactReduxContext;return reactExports.createElement(_.Provider,{value:m},i)}var Provider_default=Provider;function createReduxContextHook(t=ReactReduxContext){return function(){return reactExports.useContext(t)}}var useReduxContext=createReduxContextHook();function createStoreHook(t=ReactReduxContext){const i=t===ReactReduxContext?useReduxContext:createReduxContextHook(t),l=()=>{const{store:c}=i();return c};return Object.assign(l,{withTypes:()=>l}),l}var useStore=createStoreHook();function createDispatchHook(t=ReactReduxContext){const i=t===ReactReduxContext?useStore:createStoreHook(t),l=()=>i().dispatch;return Object.assign(l,{withTypes:()=>l}),l}var useDispatch=createDispatchHook(),refEquality=(t,i)=>t===i;function createSelectorHook(t=ReactReduxContext){const i=t===ReactReduxContext?useReduxContext:createReduxContextHook(t),l=(c,d={})=>{const{equalityFn:m=refEquality}=typeof d=="function"?{equalityFn:d}:d,y=i(),{store:_,subscription:v,getServerState:E}=y;reactExports.useRef(!0);const S=reactExports.useCallback({[c.name](T){return c(T)}}[c.name],[c]),A=withSelectorExports.useSyncExternalStoreWithSelector(v.addNestedSub,_.getState,E||_.getState,S,m);return reactExports.useDebugValue(A),A};return Object.assign(l,{withTypes:()=>l}),l}var useSelector=createSelectorHook();function r$1(t){var i,l,c="";if(typeof t=="string"||typeof t=="number")c+=t;else if(typeof t=="object")if(Array.isArray(t)){var d=t.length;for(i=0;i<d;i++)t[i]&&(l=r$1(t[i]))&&(c&&(c+=" "),c+=l)}else for(l in t)t[l]&&(c&&(c+=" "),c+=l);return c}function clsx(){for(var t,i,l=0,c="",d=arguments.length;l<d;l++)(t=arguments[l])&&(i=r$1(t))&&(c&&(c+=" "),c+=i);return c}const app="_app_1rj0t_1",styles$o={app},TYPING_ON="core.typing.on",TYPING_OFF="core.typing.off",MESSAGE_FROM_GUEST="core.message.from.guest",MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",MESSAGE_TO_GUEST="core.message.to.guest",NLU_REQUEST_EVENT="core.nlu.request.event",EVENT_TO_GUEST="core.event.to.guest",RESTART_CHAT_REQUEST="core.chat.restart.request",TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",DRAWER_OPEN="core.drawer.open",DRAWER_CLOSE="core.drawer.close",GUEST_LOCALE_CHANGED="core.guest.locale.changed";var ButtonTypeEnum;(function(t){t.WEB_URL="web_url",t.POSTBACK="postback"})(ButtonTypeEnum||(ButtonTypeEnum={}));var SatisfactionEnum;(function(t){t.GOOD="GOOD",t.BAD="BAD"})(SatisfactionEnum||(SatisfactionEnum={}));let Message$2=class{type;sender;sources;quickReplies;constructor(i,l,c=[],d=[]){this.type=i,this.sender=l,this.sources=c,this.quickReplies=d}addQuickReply(i,l){this.quickReplies.push({label:i,payload:l})}},TextMessage$1=class extends Message$2{text;constructor(i,l,c=[],d=[]){super(MessageTypeEnum.TEXT,l,c,d),this.text=i}};var MessageTypeEnum;(function(t){t.TEXT="TEXT",t.DETAIL="DETAIL",t.MARKDOWN="MARKDOWN",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.FILE="FILE",t.AUDIO="AUDIO"})(MessageTypeEnum||(MessageTypeEnum={}));class User{type;id;name;avatar;constructor(i,l,c,d){this.type=i,this.id=l,this.name=c,this.avatar=d}}class BotUser extends User{constructor(){super(UserType$1.BOT,null,"Chatbot","bot.svg")}}class GuestUser extends User{constructor(){super(UserType$1.GUEST,null,"Guest","visitor.svg")}}var UserType$1;(function(t){t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON"})(UserType$1||(UserType$1={}));const receiveTextMessageFromGuest=t=>{const i=new TextMessage$1(t,new GuestUser);return{type:MESSAGE_FROM_GUEST,message:i}},receiveTextMessageWithoutAnalysisFromGuest=(t,i={})=>{const l=new TextMessage$1(t,new GuestUser);return{type:MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:l,payload:i}},requestNLUEvent$1=t=>({type:NLU_REQUEST_EVENT,event:t}),transcriptItemGuestReaction=(t,i,l=null,c=null)=>({type:TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:t,reaction:i,category:l,comment:c}}),handleQuickReplyClick=t=>i=>(t.payload.type!==MESSAGE_FROM_GUEST&&i(receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),i(t.payload)),sendMessageFromUser=t=>(i,l)=>{const{quickReplies:c}=l().chat,d=c.find(m=>t.toLocaleLowerCase().indexOf(m.label.toLocaleLowerCase())>-1);return i(d?handleQuickReplyClick({...d,label:t}):JSON.parse(JSON.stringify(receiveTextMessageFromGuest(t))))},MESSAGE_TO_PARENT_PAGE="MESSAGE_TO_PARENT_PAGE",RESTORE_PREVIOUS_CHAT_MESSAGES="RESTORE_PREVIOUS_CHAT_MESSAGES",AUDIO_MESSAGE_FROM_USER="AUDIO_MESSAGE_FROM_USER",RECEIVE_SPEECH_TRANSCRIPTION="RECEIVE_SPEECH_TRANSCRIPTION",ENABLE_CONVERSATION_RATING="ENABLE_CONVERSATION_RATING",LOAD_SOURCE_INFOS_RESPONSE="LOAD_SOURCE_INFOS_RESPONSE",LOAD_SOURCE_INFOS_ERROR="LOAD_SOURCE_INFOS_ERROR",LOAD_SOURCE_INFOS_REQUEST="LOAD_SOURCE_INFOS_REQUEST",CLOSE_SOURCE_INFOS="CLOSE_SOURCE_INFOS",GET_STARTED="webclient.get.started",EXPAND_WINDOW="webclient.window.expand",CLOSE_WINDOW="webclient.window.close",DOWNLOAD_TRANSCRIPT_PDF="webclient.transcript.pdf.download",INTERNAL_ACTIONS$1=[MESSAGE_TO_PARENT_PAGE,RESTORE_PREVIOUS_CHAT_MESSAGES,AUDIO_MESSAGE_FROM_USER,RECEIVE_SPEECH_TRANSCRIPTION,ENABLE_CONVERSATION_RATING,LOAD_SOURCE_INFOS_REQUEST,CLOSE_SOURCE_INFOS],sendAudioMessageFromUser=t=>({type:AUDIO_MESSAGE_FROM_USER,buffer:t}),receiveSpeechTranscription=t=>({type:RECEIVE_SPEECH_TRANSCRIPTION,transcription:t}),exportTranscript=t=>({type:TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),downloadTranscriptPdf=()=>({type:DOWNLOAD_TRANSCRIPT_PDF}),enableConversationRating=({rating:t})=>({type:ENABLE_CONVERSATION_RATING,payload:{rating:t}}),handleRatingFromUser=(t,i)=>({type:CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:i}}),requestNLUEvent=t=>requestNLUEvent$1(t),restorePreviousChatMessages=t=>({type:RESTORE_PREVIOUS_CHAT_MESSAGES,messages:t}),handleButtonClick=t=>{switch(t.type){case ButtonTypeEnum.WEB_URL:return notifyParentToChangePath(t.url);case ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},handleLinkClick=t=>notifyParentToChangePath(t),notifyParentToChangePath=t=>({type:MESSAGE_TO_PARENT_PAGE,message:{type:"webclient.change.url",url:t}});function assign(t){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var c in l)t[c]=l[c]}return t}var defaultConverter={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(t,i){function l(d,m,y){if(!(typeof document>"u")){y=assign({},i,y),typeof y.expires=="number"&&(y.expires=new Date(Date.now()+y.expires*864e5)),y.expires&&(y.expires=y.expires.toUTCString()),d=encodeURIComponent(d).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var _="";for(var v in y)y[v]&&(_+="; "+v,y[v]!==!0&&(_+="="+y[v].split(";")[0]));return document.cookie=d+"="+t.write(m,d)+_}}function c(d){if(!(typeof document>"u"||arguments.length&&!d)){for(var m=document.cookie?document.cookie.split("; "):[],y={},_=0;_<m.length;_++){var v=m[_].split("="),E=v.slice(1).join("=");try{var S=decodeURIComponent(v[0]);if(y[S]=t.read(E,S),d===S)break}catch{}}return d?y[d]:y}}return Object.create({set:l,get:c,remove:function(d,m){l(d,"",assign({},m,{expires:-1}))},withAttributes:function(d){return init(this.converter,assign({},this.attributes,d))},withConverter:function(d){return init(assign({},this.converter,d),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}var api=init(defaultConverter,{path:"/"});const byteToHex=[];for(let t=0;t<256;++t)byteToHex.push((t+256).toString(16).slice(1));function unsafeStringify(t,i=0){return(byteToHex[t[i+0]]+byteToHex[t[i+1]]+byteToHex[t[i+2]]+byteToHex[t[i+3]]+"-"+byteToHex[t[i+4]]+byteToHex[t[i+5]]+"-"+byteToHex[t[i+6]]+byteToHex[t[i+7]]+"-"+byteToHex[t[i+8]]+byteToHex[t[i+9]]+"-"+byteToHex[t[i+10]]+byteToHex[t[i+11]]+byteToHex[t[i+12]]+byteToHex[t[i+13]]+byteToHex[t[i+14]]+byteToHex[t[i+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(t,i,l){t=t||{};const c=t.random??t.rng?.()??rng();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,unsafeStringify(c)}function v4(t,i,l){return native.randomUUID&&!t?native.randomUUID():_v4(t)}const getClientName=()=>extractClientNameFromPathname(window.location.pathname),extractClientNameFromPathname=t=>{const i=t.split("/"),l=t.endsWith("/");return i[i.length-(l?2:1)]};function formatProdErrorMessage$1(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var $$observable=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes;function isPlainObject$1(t){if(typeof t!="object"||t===null)return!1;let i=t;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i||Object.getPrototypeOf(t)===null}function createStore(t,i,l){if(typeof t!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof i=="function"&&typeof l=="function"||typeof l=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof i=="function"&&typeof l>"u"&&(l=i,i=void 0),typeof l<"u"){if(typeof l!="function")throw new Error(formatProdErrorMessage$1(1));return l(createStore)(t,i)}let c=t,d=i,m=new Map,y=m,_=0,v=!1;function E(){y===m&&(y=new Map,m.forEach((N,z)=>{y.set(z,N)}))}function S(){if(v)throw new Error(formatProdErrorMessage$1(3));return d}function A(N){if(typeof N!="function")throw new Error(formatProdErrorMessage$1(4));if(v)throw new Error(formatProdErrorMessage$1(5));let z=!0;E();const L=_++;return y.set(L,N),function(){if(z){if(v)throw new Error(formatProdErrorMessage$1(6));z=!1,E(),y.delete(L),m=null}}}function T(N){if(!isPlainObject$1(N))throw new Error(formatProdErrorMessage$1(7));if(typeof N.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof N.type!="string")throw new Error(formatProdErrorMessage$1(17));if(v)throw new Error(formatProdErrorMessage$1(9));try{v=!0,d=c(d,N)}finally{v=!1}return(m=y).forEach(L=>{L()}),N}function D(N){if(typeof N!="function")throw new Error(formatProdErrorMessage$1(10));c=N,T({type:actionTypes_default.REPLACE})}function k(){const N=A;return{subscribe(z){if(typeof z!="object"||z===null)throw new Error(formatProdErrorMessage$1(11));function L(){const Y=z;Y.next&&Y.next(S())}return L(),{unsubscribe:N(L)}},[symbol_observable_default](){return this}}}return T({type:actionTypes_default.INIT}),{dispatch:T,subscribe:A,getState:S,replaceReducer:D,[symbol_observable_default]:k}}function assertReducerShape(t){Object.keys(t).forEach(i=>{const l=t[i];if(typeof l(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof l(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(t){const i=Object.keys(t),l={};for(let m=0;m<i.length;m++){const y=i[m];typeof t[y]=="function"&&(l[y]=t[y])}const c=Object.keys(l);let d;try{assertReducerShape(l)}catch(m){d=m}return function(y={},_){if(d)throw d;let v=!1;const E={};for(let S=0;S<c.length;S++){const A=c[S],T=l[A],D=y[A],k=T(D,_);if(typeof k>"u")throw _&&_.type,new Error(formatProdErrorMessage$1(14));E[A]=k,v=v||k!==D}return v=v||c.length!==Object.keys(y).length,v?E:y}}function compose(...t){return t.length===0?i=>i:t.length===1?t[0]:t.reduce((i,l)=>(...c)=>i(l(...c)))}function applyMiddleware(...t){return i=>(l,c)=>{const d=i(l,c);let m=()=>{throw new Error(formatProdErrorMessage$1(15))};const y={getState:d.getState,dispatch:(v,...E)=>m(v,...E)},_=t.map(v=>v(y));return m=compose(..._)(d.dispatch),{...d,dispatch:m}}}function isAction(t){return isPlainObject$1(t)&&"type"in t&&typeof t.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(t,...i){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var O=Object,getPrototypeOf$1=O.getPrototypeOf,CONSTRUCTOR="constructor",PROTOTYPE="prototype",CONFIGURABLE="configurable",ENUMERABLE="enumerable",WRITABLE="writable",VALUE="value",isDraft=t=>!!t&&!!t[DRAFT_STATE];function isDraftable(t){return t?isPlainObject(t)||isArray(t)||!!t[DRAFTABLE]||!!t[CONSTRUCTOR]?.[DRAFTABLE]||isMap(t)||isSet(t):!1}var objectCtorString=O[PROTOTYPE][CONSTRUCTOR].toString(),cachedCtorStrings=new WeakMap;function isPlainObject(t){if(!t||!isObjectish(t))return!1;const i=getPrototypeOf$1(t);if(i===null||i===O[PROTOTYPE])return!0;const l=O.hasOwnProperty.call(i,CONSTRUCTOR)&&i[CONSTRUCTOR];if(l===Object)return!0;if(!isFunction(l))return!1;let c=cachedCtorStrings.get(l);return c===void 0&&(c=Function.toString.call(l),cachedCtorStrings.set(l,c)),c===objectCtorString}function each(t,i,l=!0){getArchtype(t)===0?(l?Reflect.ownKeys(t):O.keys(t)).forEach(d=>{i(d,t[d],t)}):t.forEach((c,d)=>i(d,c,t))}function getArchtype(t){const i=t[DRAFT_STATE];return i?i.type_:isArray(t)?1:isMap(t)?2:isSet(t)?3:0}var has=(t,i,l=getArchtype(t))=>l===2?t.has(i):O[PROTOTYPE].hasOwnProperty.call(t,i),get=(t,i,l=getArchtype(t))=>l===2?t.get(i):t[i],set=(t,i,l,c=getArchtype(t))=>{c===2?t.set(i,l):c===3?t.add(l):t[i]=l};function is(t,i){return t===i?t!==0||1/t===1/i:t!==t&&i!==i}var isArray=Array.isArray,isMap=t=>t instanceof Map,isSet=t=>t instanceof Set,isObjectish=t=>typeof t=="object",isFunction=t=>typeof t=="function",isBoolean$1=t=>typeof t=="boolean";function isArrayIndex(t){const i=+t;return Number.isInteger(i)&&String(i)===t}var latest=t=>t.copy_||t.base_,getFinalValue=t=>t.modified_?t.copy_:t.base_;function shallowCopy(t,i){if(isMap(t))return new Map(t);if(isSet(t))return new Set(t);if(isArray(t))return Array[PROTOTYPE].slice.call(t);const l=isPlainObject(t);if(i===!0||i==="class_only"&&!l){const c=O.getOwnPropertyDescriptors(t);delete c[DRAFT_STATE];let d=Reflect.ownKeys(c);for(let m=0;m<d.length;m++){const y=d[m],_=c[y];_[WRITABLE]===!1&&(_[WRITABLE]=!0,_[CONFIGURABLE]=!0),(_.get||_.set)&&(c[y]={[CONFIGURABLE]:!0,[WRITABLE]:!0,[ENUMERABLE]:_[ENUMERABLE],[VALUE]:t[y]})}return O.create(getPrototypeOf$1(t),c)}else{const c=getPrototypeOf$1(t);if(c!==null&&l)return{...t};const d=O.create(c);return O.assign(d,t)}}function freeze$1(t,i=!1){return isFrozen$1(t)||isDraft(t)||!isDraftable(t)||(getArchtype(t)>1&&O.defineProperties(t,{set:dontMutateMethodOverride,add:dontMutateMethodOverride,clear:dontMutateMethodOverride,delete:dontMutateMethodOverride}),O.freeze(t),i&&each(t,(l,c)=>{freeze$1(c,!0)},!1)),t}function dontMutateFrozenCollections(){die(2)}var dontMutateMethodOverride={[VALUE]:dontMutateFrozenCollections};function isFrozen$1(t){return t===null||!isObjectish(t)?!0:O.isFrozen(t)}var PluginMapSet="MapSet",PluginPatches="Patches",PluginArrayMethods="ArrayMethods",plugins={};function getPlugin(t){const i=plugins[t];return i||die(0,t),i}var isPluginLoaded=t=>!!plugins[t],currentScope,getCurrentScope=()=>currentScope,createScope=(t,i)=>({drafts_:[],parent_:t,immer_:i,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:isPluginLoaded(PluginMapSet)?getPlugin(PluginMapSet):void 0,arrayMethodsPlugin_:isPluginLoaded(PluginArrayMethods)?getPlugin(PluginArrayMethods):void 0});function usePatchesInScope(t,i){i&&(t.patchPlugin_=getPlugin(PluginPatches),t.patches_=[],t.inversePatches_=[],t.patchListener_=i)}function revokeScope(t){leaveScope(t),t.drafts_.forEach(revokeDraft),t.drafts_=null}function leaveScope(t){t===currentScope&&(currentScope=t.parent_)}var enterScope=t=>currentScope=createScope(currentScope,t);function revokeDraft(t){const i=t[DRAFT_STATE];i.type_===0||i.type_===1?i.revoke_():i.revoked_=!0}function processResult(t,i){i.unfinalizedDrafts_=i.drafts_.length;const l=i.drafts_[0];if(t!==void 0&&t!==l){l[DRAFT_STATE].modified_&&(revokeScope(i),die(4)),isDraftable(t)&&(t=finalize(i,t));const{patchPlugin_:d}=i;d&&d.generateReplacementPatches_(l[DRAFT_STATE].base_,t,i)}else t=finalize(i,l);return maybeFreeze(i,t,!0),revokeScope(i),i.patches_&&i.patchListener_(i.patches_,i.inversePatches_),t!==NOTHING?t:void 0}function finalize(t,i){if(isFrozen$1(i))return i;const l=i[DRAFT_STATE];if(!l)return handleValue(i,t.handledSet_,t);if(!isSameScope(l,t))return i;if(!l.modified_)return l.base_;if(!l.finalized_){const{callbacks_:c}=l;if(c)for(;c.length>0;)c.pop()(t);generatePatchesAndFinalize(l,t)}return l.copy_}function maybeFreeze(t,i,l=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&freeze$1(i,l)}function markStateFinalized(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var isSameScope=(t,i)=>t.scope_===i,EMPTY_LOCATIONS_RESULT=[];function updateDraftInParent(t,i,l,c){const d=latest(t),m=t.type_;if(c!==void 0&&get(d,c,m)===i){set(d,c,l,m);return}if(!t.draftLocations_){const _=t.draftLocations_=new Map;each(d,(v,E)=>{if(isDraft(E)){const S=_.get(E)||[];S.push(v),_.set(E,S)}})}const y=t.draftLocations_.get(i)??EMPTY_LOCATIONS_RESULT;for(const _ of y)set(d,_,l,m)}function registerChildFinalizationCallback(t,i,l){t.callbacks_.push(function(d){const m=i;if(!m||!isSameScope(m,d))return;d.mapSetPlugin_?.fixSetContents(m);const y=getFinalValue(m);updateDraftInParent(t,m.draft_??m,y,l),generatePatchesAndFinalize(m,d)})}function generatePatchesAndFinalize(t,i){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){const{patchPlugin_:c}=i;if(c){const d=c.getPath(t);d&&c.generatePatches_(t,d,i)}markStateFinalized(t)}}function handleCrossReference(t,i,l){const{scope_:c}=t;if(isDraft(l)){const d=l[DRAFT_STATE];isSameScope(d,c)&&d.callbacks_.push(function(){prepareCopy(t);const y=getFinalValue(d);updateDraftInParent(t,l,y,i)})}else isDraftable(l)&&t.callbacks_.push(function(){const m=latest(t);t.type_===3?m.has(l)&&handleValue(l,c.handledSet_,c):get(m,i,t.type_)===l&&c.drafts_.length>1&&(t.assigned_.get(i)??!1)===!0&&t.copy_&&handleValue(get(t.copy_,i,t.type_),c.handledSet_,c)})}function handleValue(t,i,l){return!l.immer_.autoFreeze_&&l.unfinalizedDrafts_<1||isDraft(t)||i.has(t)||!isDraftable(t)||isFrozen$1(t)||(i.add(t),each(t,(c,d)=>{if(isDraft(d)){const m=d[DRAFT_STATE];if(isSameScope(m,l)){const y=getFinalValue(m);set(t,c,y,t.type_),markStateFinalized(m)}}else isDraftable(d)&&handleValue(d,i,l)})),t}function createProxyProxy(t,i){const l=isArray(t),c={type_:l?1:0,scope_:i?i.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:i,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let d=c,m=objectTraps;l&&(d=[c],m=arrayTraps);const{revoke:y,proxy:_}=Proxy.revocable(d,m);return c.draft_=_,c.revoke_=y,[_,c]}var objectTraps={get(t,i){if(i===DRAFT_STATE)return t;let l=t.scope_.arrayMethodsPlugin_;const c=t.type_===1&&typeof i=="string";if(c&&l?.isArrayOperationMethod(i))return l.createMethodInterceptor(t,i);const d=latest(t);if(!has(d,i,t.type_))return readPropFromProto(t,d,i);const m=d[i];if(t.finalized_||!isDraftable(m)||c&&t.operationMethod&&l?.isMutatingArrayMethod(t.operationMethod)&&isArrayIndex(i))return m;if(m===peek(t.base_,i)){prepareCopy(t);const y=t.type_===1?+i:i,_=createProxy(t.scope_,m,t,y);return t.copy_[y]=_}return m},has(t,i){return i in latest(t)},ownKeys(t){return Reflect.ownKeys(latest(t))},set(t,i,l){const c=getDescriptorFromProto(latest(t),i);if(c?.set)return c.set.call(t.draft_,l),!0;if(!t.modified_){const d=peek(latest(t),i),m=d?.[DRAFT_STATE];if(m&&m.base_===l)return t.copy_[i]=l,t.assigned_.set(i,!1),!0;if(is(l,d)&&(l!==void 0||has(t.base_,i,t.type_)))return!0;prepareCopy(t),markChanged(t)}return t.copy_[i]===l&&(l!==void 0||i in t.copy_)||Number.isNaN(l)&&Number.isNaN(t.copy_[i])||(t.copy_[i]=l,t.assigned_.set(i,!0),handleCrossReference(t,i,l)),!0},deleteProperty(t,i){return prepareCopy(t),peek(t.base_,i)!==void 0||i in t.base_?(t.assigned_.set(i,!1),markChanged(t)):t.assigned_.delete(i),t.copy_&&delete t.copy_[i],!0},getOwnPropertyDescriptor(t,i){const l=latest(t),c=Reflect.getOwnPropertyDescriptor(l,i);return c&&{[WRITABLE]:!0,[CONFIGURABLE]:t.type_!==1||i!=="length",[ENUMERABLE]:c[ENUMERABLE],[VALUE]:l[i]}},defineProperty(){die(11)},getPrototypeOf(t){return getPrototypeOf$1(t.base_)},setPrototypeOf(){die(12)}},arrayTraps={};for(let t in objectTraps){let i=objectTraps[t];arrayTraps[t]=function(){const l=arguments;return l[0]=l[0][0],i.apply(this,l)}}arrayTraps.deleteProperty=function(t,i){return arrayTraps.set.call(this,t,i,void 0)};arrayTraps.set=function(t,i,l){return objectTraps.set.call(this,t[0],i,l,t[0])};function peek(t,i){const l=t[DRAFT_STATE];return(l?latest(l):t)[i]}function readPropFromProto(t,i,l){const c=getDescriptorFromProto(i,l);return c?VALUE in c?c[VALUE]:c.get?.call(t.draft_):void 0}function getDescriptorFromProto(t,i){if(!(i in t))return;let l=getPrototypeOf$1(t);for(;l;){const c=Object.getOwnPropertyDescriptor(l,i);if(c)return c;l=getPrototypeOf$1(l)}}function markChanged(t){t.modified_||(t.modified_=!0,t.parent_&&markChanged(t.parent_))}function prepareCopy(t){t.copy_||(t.assigned_=new Map,t.copy_=shallowCopy(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(i,l,c)=>{if(isFunction(i)&&!isFunction(l)){const m=l;l=i;const y=this;return function(v=m,...E){return y.produce(v,S=>l.call(this,S,...E))}}isFunction(l)||die(6),c!==void 0&&!isFunction(c)&&die(7);let d;if(isDraftable(i)){const m=enterScope(this),y=createProxy(m,i,void 0);let _=!0;try{d=l(y),_=!1}finally{_?revokeScope(m):leaveScope(m)}return usePatchesInScope(m,c),processResult(d,m)}else if(!i||!isObjectish(i)){if(d=l(i),d===void 0&&(d=i),d===NOTHING&&(d=void 0),this.autoFreeze_&&freeze$1(d,!0),c){const m=[],y=[];getPlugin(PluginPatches).generateReplacementPatches_(i,d,{patches_:m,inversePatches_:y}),c(m,y)}return d}else die(1,i)},this.produceWithPatches=(i,l)=>{if(isFunction(i))return(y,..._)=>this.produceWithPatches(y,v=>i(v,..._));let c,d;return[this.produce(i,l,(y,_)=>{c=y,d=_}),c,d]},isBoolean$1(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),isBoolean$1(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),isBoolean$1(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){isDraftable(t)||die(8),isDraft(t)&&(t=current(t));const i=enterScope(this),l=createProxy(i,t,void 0);return l[DRAFT_STATE].isManual_=!0,leaveScope(i),l}finishDraft(t,i){const l=t&&t[DRAFT_STATE];(!l||!l.isManual_)&&die(9);const{scope_:c}=l;return usePatchesInScope(c,i),processResult(void 0,c)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,i){let l;for(l=i.length-1;l>=0;l--){const d=i[l];if(d.path.length===0&&d.op==="replace"){t=d.value;break}}l>-1&&(i=i.slice(l+1));const c=getPlugin(PluginPatches).applyPatches_;return isDraft(t)?c(t,i):this.produce(t,d=>c(d,i))}};function createProxy(t,i,l,c){const[d,m]=isMap(i)?getPlugin(PluginMapSet).proxyMap_(i,l):isSet(i)?getPlugin(PluginMapSet).proxySet_(i,l):createProxyProxy(i,l);return(l?.scope_??getCurrentScope()).drafts_.push(d),m.callbacks_=l?.callbacks_??[],m.key_=c,l&&c!==void 0?registerChildFinalizationCallback(l,m,c):m.callbacks_.push(function(v){v.mapSetPlugin_?.fixSetContents(m);const{patchPlugin_:E}=v;m.modified_&&E&&E.generatePatches_(m,[],v)}),d}function current(t){return isDraft(t)||die(10,t),currentImpl(t)}function currentImpl(t){if(!isDraftable(t)||isFrozen$1(t))return t;const i=t[DRAFT_STATE];let l,c=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,l=shallowCopy(t,i.scope_.immer_.useStrictShallowCopy_),c=i.scope_.immer_.shouldUseStrictIteration()}else l=shallowCopy(t,!0);return each(l,(d,m)=>{set(l,d,currentImpl(m))},c),i&&(i.finalized_=!1),l}var immer=new Immer2,produce=immer.produce;function createThunkMiddleware(t){return({dispatch:l,getState:c})=>d=>m=>typeof m=="function"?m(l,c,t):d(m)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)};function createAction(t,i){function l(...c){if(i){let d=i(...c);if(!d)throw new Error(formatProdErrorMessage(0));return{type:t,payload:d.payload,..."meta"in d&&{meta:d.meta},..."error"in d&&{error:d.error}}}return{type:t,payload:c[0]}}return l.toString=()=>`${t}`,l.type=t,l.match=c=>isAction(c)&&c.type===t,l}var Tuple=class Ur extends Array{constructor(...i){super(...i),Object.setPrototypeOf(this,Ur.prototype)}static get[Symbol.species](){return Ur}concat(...i){return super.concat.apply(this,i)}prepend(...i){return i.length===1&&Array.isArray(i[0])?new Ur(...i[0].concat(this)):new Ur(...i.concat(this))}};function freezeDraftable(t){return isDraftable(t)?produce(t,()=>{}):t}function getOrInsertComputed(t,i,l){return t.has(i)?t.get(i):t.set(i,l(i)).get(i)}function isBoolean(t){return typeof t=="boolean"}var buildGetDefaultMiddleware=()=>function(i){const{thunk:l=!0,immutableCheck:c=!0,serializableCheck:d=!0,actionCreatorCheck:m=!0}=i??{};let y=new Tuple;return l&&(isBoolean(l)?y.push(thunk):y.push(withExtraArgument(l.extraArgument))),y},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=t=>i=>{setTimeout(i,t)},autoBatchEnhancer=(t={type:"raf"})=>i=>(...l)=>{const c=i(...l);let d=!0,m=!1,y=!1;const _=new Set,v=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):t.type==="callback"?t.queueNotification:createQueueWithTimer(t.timeout),E=()=>{y=!1,m&&(m=!1,_.forEach(S=>S()))};return Object.assign({},c,{subscribe(S){const A=()=>d&&S(),T=c.subscribe(A);return _.add(S),()=>{T(),_.delete(S)}},dispatch(S){try{return d=!S?.meta?.[SHOULD_AUTOBATCH],m=!d,m&&(y||(y=!0,v(E))),c.dispatch(S)}finally{d=!0}}})},buildGetDefaultEnhancers=t=>function(l){const{autoBatch:c=!0}=l??{};let d=new Tuple(t);return c&&d.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),d};function configureStore(t){const i=buildGetDefaultMiddleware(),{reducer:l=void 0,middleware:c,devTools:d=!0,preloadedState:m=void 0,enhancers:y=void 0}=t||{};let _;if(typeof l=="function")_=l;else if(isPlainObject$1(l))_=combineReducers(l);else throw new Error(formatProdErrorMessage(1));let v;typeof c=="function"?v=c(i):v=i();let E=compose;d&&(E=composeWithDevTools({trace:!1,...typeof d=="object"&&d}));const S=applyMiddleware(...v),A=buildGetDefaultEnhancers(S);let T=typeof y=="function"?y(A):A();const D=E(...T);return createStore(_,m,D)}function executeReducerBuilderCallback(t){const i={},l=[];let c;const d={addCase(m,y){const _=typeof m=="string"?m:m.type;if(!_)throw new Error(formatProdErrorMessage(28));if(_ in i)throw new Error(formatProdErrorMessage(29));return i[_]=y,d},addAsyncThunk(m,y){return y.pending&&(i[m.pending.type]=y.pending),y.rejected&&(i[m.rejected.type]=y.rejected),y.fulfilled&&(i[m.fulfilled.type]=y.fulfilled),y.settled&&l.push({matcher:m.settled,reducer:y.settled}),d},addMatcher(m,y){return l.push({matcher:m,reducer:y}),d},addDefaultCase(m){return c=m,d}};return t(d),[i,l,c]}function isStateFunction(t){return typeof t=="function"}function createReducer(t,i){let[l,c,d]=executeReducerBuilderCallback(i),m;if(isStateFunction(t))m=()=>freezeDraftable(t());else{const _=freezeDraftable(t);m=()=>_}function y(_=m(),v){let E=[l[v.type],...c.filter(({matcher:S})=>S(v)).map(({reducer:S})=>S)];return E.filter(S=>!!S).length===0&&(E=[d]),E.reduce((S,A)=>{if(A)if(isDraft(S)){const D=A(S,v);return D===void 0?S:D}else{if(isDraftable(S))return produce(S,T=>A(T,v));{const T=A(S,v);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}}return S},_)}return y.getInitialState=m,y}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(t,i){return`${t}/${i}`}function buildCreateSlice({creators:t}={}){const i=t?.asyncThunk?.[asyncThunkSymbol];return function(c){const{name:d,reducerPath:m=d}=c;if(!d)throw new Error(formatProdErrorMessage(11));const y=(typeof c.reducers=="function"?c.reducers(buildReducerCreators()):c.reducers)||{},_=Object.keys(y),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},E={addCase(U,Y){const X=typeof U=="string"?U:U.type;if(!X)throw new Error(formatProdErrorMessage(12));if(X in v.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return v.sliceCaseReducersByType[X]=Y,E},addMatcher(U,Y){return v.sliceMatchers.push({matcher:U,reducer:Y}),E},exposeAction(U,Y){return v.actionCreators[U]=Y,E},exposeCaseReducer(U,Y){return v.sliceCaseReducersByName[U]=Y,E}};_.forEach(U=>{const Y=y[U],X={reducerName:U,type:getType(d,U),createNotation:typeof c.reducers=="function"};isAsyncThunkSliceReducerDefinition(Y)?handleThunkCaseReducerDefinition(X,Y,E,i):handleNormalReducerDefinition(X,Y,E)});function S(){const[U={},Y=[],X=void 0]=typeof c.extraReducers=="function"?executeReducerBuilderCallback(c.extraReducers):[c.extraReducers],Q={...U,...v.sliceCaseReducersByType};return createReducer(c.initialState,G=>{for(let te in Q)G.addCase(te,Q[te]);for(let te of v.sliceMatchers)G.addMatcher(te.matcher,te.reducer);for(let te of Y)G.addMatcher(te.matcher,te.reducer);X&&G.addDefaultCase(X)})}const A=U=>U,T=new Map,D=new WeakMap;let k;function R(U,Y){return k||(k=S()),k(U,Y)}function N(){return k||(k=S()),k.getInitialState()}function z(U,Y=!1){function X(G){let te=G[U];return typeof te>"u"&&Y&&(te=getOrInsertComputed(D,X,N)),te}function Q(G=A){const te=getOrInsertComputed(T,Y,()=>new WeakMap);return getOrInsertComputed(te,G,()=>{const J={};for(const[le,ae]of Object.entries(c.selectors??{}))J[le]=wrapSelector(ae,G,()=>getOrInsertComputed(D,G,N),Y);return J})}return{reducerPath:U,getSelectors:Q,get selectors(){return Q(X)},selectSlice:X}}const L={name:d,reducer:R,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:N,...z(m),injectInto(U,{reducerPath:Y,...X}={}){const Q=Y??m;return U.inject({reducerPath:Q,reducer:R},X),{...L,...z(Q,!0)}}};return L}}function wrapSelector(t,i,l,c){function d(m,...y){let _=i(m);return typeof _>"u"&&c&&(_=l()),t(_,...y)}return d.unwrapped=t,d}var createSlice=buildCreateSlice();function buildReducerCreators(){function t(i,l){return{_reducerDefinitionType:"asyncThunk",payloadCreator:i,...l}}return t.withTypes=()=>t,{reducer(i){return Object.assign({[i.name](...l){return i(...l)}}[i.name],{_reducerDefinitionType:"reducer"})},preparedReducer(i,l){return{_reducerDefinitionType:"reducerWithPrepare",prepare:i,reducer:l}},asyncThunk:t}}function handleNormalReducerDefinition({type:t,reducerName:i,createNotation:l},c,d){let m,y;if("reducer"in c){if(l&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage(17));m=c.reducer,y=c.prepare}else m=c;d.addCase(t,m).exposeCaseReducer(i,m).exposeAction(i,y?createAction(t,y):createAction(t))}function isAsyncThunkSliceReducerDefinition(t){return t._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(t){return t._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:t,reducerName:i},l,c,d){if(!d)throw new Error(formatProdErrorMessage(18));const{payloadCreator:m,fulfilled:y,pending:_,rejected:v,settled:E,options:S}=l,A=d(t,m,S);c.exposeAction(i,A),y&&c.addCase(A.fulfilled,y),_&&c.addCase(A.pending,_),v&&c.addCase(A.rejected,v),E&&c.addMatcher(A.settled,E),c.exposeCaseReducer(i,{fulfilled:y||noop,pending:_||noop,rejected:v||noop,settled:E||noop})}function noop(){}function formatProdErrorMessage(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const initialState$4={formValues:{}},startPageSlice=createSlice({name:"start-screen",initialState:initialState$4,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,i){t.startScreenStatus="HIDDEN",t.formValues=i.payload.formValues},startAuthenticatedChat(t,i){t.startScreenStatus="HIDDEN",t.loginToken=i.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,i){t.loginRequestToken=i.payload.loginRequestToken,t.formValues=i.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:startChat$1,startAuthenticatedChat,showStartScreen,requestLogin,loginWindowClosed}=startPageSlice.actions,startScreenReducer=startPageSlice.reducer,RESET_CHAT_STATE="RESET_CHAT_STATE",TOGGLE_TRANSCRIPT_MAIL_OVERLAY="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",SHOW_CONVERSATION_RATING_OVERLAY="SHOW_CONVERSATION_RATING_OVERLAY",HIDE_CONVERSATION_RATING_OVERLAY="HIDE_CONVERSATION_RATING_OVERLAY",closeChatWindow=()=>({type:CLOSE_WINDOW}),resetChatState=()=>({type:RESET_CHAT_STATE}),toggleTranscriptMailOverlay=()=>({type:TOGGLE_TRANSCRIPT_MAIL_OVERLAY}),showConversationRatingOverlay=(t,i=void 0)=>({type:SHOW_CONVERSATION_RATING_OVERLAY,payload:{opener:t,defaultRating:i}}),hideConversationRatingOverlay=()=>({type:HIDE_CONVERSATION_RATING_OVERLAY}),loadSourceInfosRequest=(t,i,l)=>(c,d)=>{try{const m=d().connection.sessionId;if(!m)throw new Error("Session ID is not available");c({type:LOAD_SOURCE_INFOS_REQUEST,payload:{chunkId:l}}),fetchSourceInfos(t,m,i,l,!1,c),fetchSourceInfos(t,m,i,l,!0,c)}catch(m){console.error("Error loading source infos:",m),c({type:LOAD_SOURCE_INFOS_ERROR})}},fetchSourceInfos=(t,i,l,c,d,m)=>{const y=`/${t}/me/chat-widget/transcript/${l}/chunks/${c}?highlight=${d}`;fetch(y,{headers:{"x-bubble-chat-session-id":i}}).then(_=>{if(!_.ok)throw new Error(`HTTP error! Status: ${_.status}`);return _.json()}).then(_=>{const v={..._,chunkId:c,highlighted:d};m({type:LOAD_SOURCE_INFOS_RESPONSE,payload:v})}).catch(_=>{console.error("Error fetching source infos:",_),m({type:LOAD_SOURCE_INFOS_ERROR,payload:{highlighted:d}})})},closeSourceInfos=()=>({type:CLOSE_SOURCE_INFOS}),CONNECT="CONNECT",CONNECTING="CONNECTING",CONNECTED="CONNECTED",DISCONNECTED="DISCONNECTED",RECONNECTED="RECONNECTED",RESTORE_SESSION_ID="RESTORE_SESSION_ID",START="START",TERMINATE_SESSION="CLEAR_SESSION_ID",INTERNAL_ACTIONS=[CONNECT,CONNECTING,CONNECTED,DISCONNECTED,RECONNECTED,RESTORE_SESSION_ID],connect=(t,i)=>({type:CONNECT,clientName:t,querystrings:i}),restoreSessionId=t=>({type:RESTORE_SESSION_ID,sessionId:t}),connecting=()=>({type:CONNECTING}),connected=()=>({type:CONNECTED}),disconnected=()=>({type:DISCONNECTED}),reconnected=()=>({type:RECONNECTED}),startChat=t=>(i,l)=>{const c=l().connection,{formValues:d,loginToken:m}=l().startScreen;let y=c.sessionId;y===void 0&&(y=v4());let _=c.userId;if(_===void 0){const S=api.get("bubble-chat-user-id")||api.get("bubble-chat-userId")||api.get("bf-webclient-userId");_=S||v4(),api.set("bubble-chat-user-id",_)}const v=new URLSearchParams(l().connection.queryString||""),E=Object.fromEntries(v.entries());i({type:START,payload:{sessionId:y,userId:_,clientName:t,loginToken:m,querystrings:{...E,...d}}})},restartChat=()=>(t,i)=>{const l=i().connection.sessionId||"";if(t(terminateSession(l)),t(resetChatState()),i().settings.enableStartScreen)t(showStartScreen());else{const c=getClientName();return t(startChat(c))}},terminateSession=t=>({type:TERMINATE_SESSION,payload:{sessionId:t}}),useAppDispatch=useDispatch,useAppSelector=useSelector,useTranslation=()=>{const t=useAppSelector(l=>l.intl.messages);return l=>t[l]||void 0};var ConnectionStateEnum=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(ConnectionStateEnum||{}),UserType=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(UserType||{});const container$6="_container_q2uun_1",chatcontent="_chatcontent_q2uun_6",accessabilityHidden="_accessabilityHidden_q2uun_12",styles$n={container:container$6,chatcontent,accessabilityHidden},messageContainer$1="_messageContainer_1t640_1",messages="_messages_1t640_13",styles$m={messageContainer:messageContainer$1,messages};var j;function B(t){if(!j)if(typeof document<"u")j=document.createElement("textarea");else return;var i="&"+t+";";j.innerHTML=i;var l=j.value;return l!==i?l:void 0}var C={},fZ=Object.defineProperty,gZ=(t,i)=>{for(var l in i)fZ(t,l,{get:i[l],enumerable:!0,configurable:!0,set:c=>i[l]=()=>c})},g=32,u=9,B0=13,X0=10,C0=96,d1=126,L1=91,X9=94,T1=62,w9=35,K1=45,I1=61,i1=92,B9=42,c1=95,K9=60,N9=64,V9=93,b9=33,y9=38,R9=58,f1=102,g1=104,A1=119,p9=116,j$=112,s$=115,o$=160,n$=12,L9=46,U9=47,t$=43,e$=124,$Z=123,H$=120,O$=88,a1=48,r1=57,C1=65,k1=90,s1=97,o1=122,$1=128,ZZ=32,CZ={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},M=CZ,N$={};gZ(N$,{startsWith:()=>r,slugify:()=>i0,skipWhitespace:()=>N0,shouldFilterTag:()=>a9,sanitizer:()=>m1,parseFrontmatterBounds:()=>M$,isVoidElement:()=>q9,isUnicodeWhitespace:()=>t1,isUnicodePunctuation:()=>i9,isAlnumCode:()=>l9,isASCIIWhitespace:()=>S9,isASCIIPunctuation:()=>iZ,inlineCharTypeTable:()=>T9,includes:()=>pZ,htmlAttrsToJSXProps:()=>u9,hasKeys:()=>c9,getTag:()=>rZ,getOverrideProps:()=>sZ,get:()=>B$,findLineEnd:()=>I,extractPlainText:()=>XZ,endsWith:()=>d9,decodeEntityReferences:()=>_9,charClassTable:()=>z9,applyTagFilterToText:()=>r9,VOID_ELEMENTS:()=>W$,SHOULD_RENDER_AS_BLOCK_R:()=>A$,SANITIZE_R:()=>Q9,NAMED_CODES_TO_UNICODE:()=>hZ,HTML_TO_JSX_MAP:()=>JZ,HTML_CHAR_CODE_R:()=>YZ,ATTRIBUTES_TO_SANITIZE:()=>v$});function M$(t){if(!r(t,"---"))return null;let i=3;for(;i<t.length&&(t[i]===" "||t[i]===" ");)i++;if(i>=t.length||t[i]!==`
14
+ `)return null;i++;let l=!1;for(;i<t.length;){let c=i;for(;i<t.length&&t[i]!==`
15
+ `;)i++;if(i>=t.length)break;let d=i++;if(r(t,"---",c))return{endPos:i,hasValidYaml:l};let m=t.indexOf(":",c);m!==-1&&m<d&&(l=!0)}return null}var hZ=C,YZ=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,JZ={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"};function u9(t){var i={};for(var l in t){var c=l.toLowerCase(),d=JZ[c];i[d||l]=t[l]}return i}var A$=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;function _9(t){return t.indexOf("&")===-1?t:t.replace(YZ,(i,l)=>{var c=B(l);if(c)return c;if(l[0]==="#"){var d=l[1]==="x"||l[1]==="X"?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return d===0||d>=55296&&d<=57343||d>1114111?"�":d<=65535?String.fromCharCode(d):String.fromCharCode(55296+(d-65536>>10),56320+(d-65536&1023))}return i})}var Q9=/(javascript|vbscript|data(?!:image)):/i;function m1(t){if(Q9.test(t))return null;if(t.indexOf("%")===-1)return t;try{let i=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(Q9.test(i))return null}catch{return null}return t}var S0={},k0,A0;k0=[192,193,194,195,196,197,224,225,226,227,228,229,230,198];for(A0=0;A0<k0.length;A0++)S0[k0[A0]]="a";S0[231]=S0[199]="c";S0[240]=S0[208]="d";k0=[200,201,202,203,233,232,234,235];for(A0=0;A0<k0.length;A0++)S0[k0[A0]]="e";k0=[207,239,206,238,205,237,204,236];for(A0=0;A0<k0.length;A0++)S0[k0[A0]]="i";S0[209]=S0[241]="n";k0=[248,216,339,338,213,245,212,244,211,243,210,242];for(A0=0;A0<k0.length;A0++)S0[k0[A0]]="o";k0=[220,252,219,251,218,250,217,249];for(A0=0;A0<k0.length;A0++)S0[k0[A0]]="u";S0[376]=S0[255]=S0[221]=S0[253]="y";function l9(t){return t>=a1&&t<=r1||t>=C1&&t<=k1||t>=s1&&t<=o1}function i0(t){for(var i=[],l=0;l<t.length;l++){var c=t.charCodeAt(l);if(l9(c))c>=C1&&c<=k1?i.push(String.fromCharCode(c+ZZ)):i.push(t[l]);else if(c===g||c===K1)i.push("-");else{var d=S0[c];d&&i.push(d)}}return i.join("")}function pZ(t,i){return t.indexOf(i)!==-1}function r(t,i,l){return t.startsWith(i,l)}function d9(t,i,l){return t.startsWith(i,(l===void 0?t.length:l)-i.length)}var W$=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","animateTransform","set"]);function q9(t){let i=t.toLowerCase();if(W$.has(i))return!0;let l=i.indexOf(":");return l!==-1?(i=i.slice(l+1),W$.has(i)):!1}var v$=["src","href","data","formAction","srcDoc","action"],w$=1,n1=2,GZ=1,uZ=2,lZ=3,dZ=4,z9=(function(){let t=new Uint8Array(128),i;for(t[u]=t[X0]=t[n$]=t[B0]=t[g]=w$,i=b9;i<=U9;i++)t[i]=n1;for(i=R9;i<=N9;i++)t[i]=n1;for(i=L1;i<=C0;i++)t[i]=n1;for(i=$Z;i<=d1;i++)t[i]=n1;return t})(),T9=(function(){let t=new Uint8Array(128);return t[i1]=uZ,t[L1]=dZ,t[B9]=t[c1]=t[d1]=t[I1]=lZ,t[C0]=t[K9]=t[N9]=t[V9]=t[X0]=t[g]=t[b9]=GZ,t[f1]=t[g1]=t[A1]=GZ,t})();function iZ(t){return t<$1&&(z9[t]&n1)!==0}function S9(t){return t<$1&&(z9[t]&w$)!==0}var cZ=/[\p{P}\p{S}]/u,aZ=new RegExp("\\p{Zs}","u");function t1(t){if(!t)return!0;let i=t.charCodeAt(0);return i<$1?(z9[i]&w$)!==0:aZ.test(t)}function i9(t){if(typeof t=="number")return t<$1&&(z9[t]&n1)!==0;if(!t)return!1;let i=t.charCodeAt(0);return i<$1?(z9[i]&n1)!==0:cZ.test(t)}function I(t,i){let l=t.indexOf(`
16
+ `,i);return l!==-1?l:t.length}function N0(t,i,l){let c=l??t.length;for(;i<c&&(t[i]===" "||t[i]===" ");)i++;return i}function c9(t){if(!t)return!1;for(var i in t)return!0;return!1}function B$(t,i,l){for(var c=t,d=i.split("."),m=0;m<d.length&&(c=c?.[d[m]],c!==void 0);)m++;return c||l}function rZ(t,i){if(!i)return t;let l=B$(i,t,void 0);return typeof l=="string"?l:typeof l=="object"&&l.component?l.component:t}function sZ(t,i){if(!i)return{};let l=B$(i,t,void 0);return typeof l=="object"&&l.props?l.props:{}}function XZ(t,i){for(var l="",c=0,d=t.length;c<d;c++){var m=t[c],y=m.type;if(y===i.text||y===i.codeInline){var _=m.text;_&&(l+=_)}else y===i.textFormatted||y===i.link?m.children&&(l+=XZ(m.children,i)):y===i.image&&m.alt&&(l+=m.alt)}return l}function a9(t){var i=t.toLowerCase();return i==="title"||i==="textarea"||i==="style"||i==="xmp"||i==="iframe"||i==="noembed"||i==="noframes"||i==="script"||i==="plaintext"}function r9(t){return t.replace(/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi,function(i,l,c,d){return"&lt;"+l+c+d})}function oZ(t){console.warn(t)}function j9(t,i,l,c){for(var d=b(l),m=t.length,y=c??m-i,_=0;_<y&&i+_<m&&b(t,i+_)===d;)_++;return _}function KZ(t,i,l,c,d){if(d===0?l>=c:i<=c)return!1;let m=d===0?t[l]:t[i-1],y=d===0?i>0?t[i-1]:null:l<t.length?t[l]:null;var _=b(m);if(_<$1?S9(_):t1(m))return!1;var v=y?b(y):null,E=y===null||y===`
17
+ `||y==="\r"||(v!==null?v<$1?S9(v):t1(y):!0),S=J$(_,m);return!S||E?!0:y?J$(b(y),y):!1}function Z$(t){for(var i="",l=0;l<t.length;)if(t[l]==="\\"&&l+1<t.length){var c=t[l+1];i+=i9(b(c))?c:"\\"+c,l+=2}else i+=t[l++];return _9(i)}function s(t,i){return i+(i<t.length?1:0)}function nZ(t,i){if(t>=$1)return 0;var l=T9[t];return i&&l===1&&(t===f1||t===g1||t===A1)?0:l}function tZ(t,i,l,c,d,m){if(!l.length||l[l.length-1].type!==M.blockQuote)return null;let y=N0(c,0,c.length);if(y>=c.length||c[y]!==">")return null;let _=bZ(t,i,d,m);if(!_)return null;let v=l[l.length-1],E=_;return E.children&&v.children.push(...E.children),E.endPos}function G$(t,i,l,c){return{type:M.heading,level:t,children:i,id:c(l)}}var x$=/\\(.)/g,eZ=/\s+#+\s*$/,p$=/^(?:(\d{1,9})([.)])\s+(.*)$|(\d{1,9})([.)])\s*$|([-*+])\s+(.*)$|([-*+])\s*$)/,E$=/^(\d{1,9})([.)])(\s+|$)/,P$=/^([*+\-])(\s+|$)/,V$=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/i,MZ=/^<([a-z][^ >/]*) ?(?:[^>/]+[^/]|)>/i,b=function(t,i=0){return t.charCodeAt(i)},Y$=function(t){return l9(b(t))},I$=function(t){return S9(b(t))},T0=function(t){return t===" "||t===" "},J$=function(t,i){return i9(t<$1?t:i)},$6=function(t){var i=b(t);return Y$(t)||i===K1||i===c1||i===R9||i===L9};function f$(t,i){var l=t.length;if(i>=l)return null;var c=b(t[i]);if(!Z9(c))return null;for(var d=i,m=i;m<l;){var y=b(t[m]);if(y>=s1&&y<=o1||y>=C1&&y<=k1||y>=a1&&y<=r1||y===K1)m++;else{var _=b(t[m]);if(_===g||_===u||_===X0||_===B0||_===T1||_===U9)break;return null}}if(m===d)return null;for(var v=t.slice(d,m),E=0;E<v.length;E++){var y=b(v[E]);if(!(y>=s1&&y<=o1||y>=C1&&y<=k1||y>=a1&&y<=r1||y===K1))return null}return{tagName:v,tagLower:v.toLowerCase(),nextPos:m}}function $9(t,i){var l=$$(t,i);return!l||l.kind!=="tag"?null:{tagName:l.tagName||"",tagLower:l.tagNameLower||"",attrs:l.attrs||"",endPos:l.endPos,isClosing:l.isClosing||!1,isSelfClosing:l.isSelfClosing||!1,hasNewline:l.hasNewline,hasSpaceBeforeSlash:!1,whitespaceBeforeAttrs:l.whitespaceBeforeAttrs||""}}function Z6(t,i,l){for(var c=1,d=i;c>0&&d<t.length;){var m=t.indexOf("<",d);if(m===-1)return null;var y=$9(t,m);if(!y){d=m+1;continue}if(y.isClosing&&y.tagLower===l&&--c===0)return[m,y.endPos];!y.isClosing&&!y.isSelfClosing&&y.tagLower===l&&c++,d=y.endPos}return null}var G6=/^\{.*\}$/,U$=/\n\n/,Q$=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Y6=/<\/?(?:pre|script|style|textarea)\b/i,AZ=/^<[A-Z]/,J6=/\n$/,X6=new Set(["#",">","-","*","+","`","|","0","1","2","3","4","5","6","7","8","9"]);function K6(t,i,l,c){let d=i;for(;d<l;){if(t[d]==="\\"&&d+1<l){d+=2;continue}if(t[d]===c)return d;d++}return-1}function VZ(t,i){var l=i.indexOf(":");if(l>0){var c=i.slice(l+1).trim(),d=c.length;if(d>=2){var m=c[0];(m==='"'||m==="'")&&c[d-1]===m&&(c=c.slice(1,-1))}t.push([i.slice(0,l).trim(),c])}}function V6(t){var i=[];if(!t)return i;for(var l="",c=0,d="",m=0;m<t.length;m++){var y=t[m];if(y==='"'||y==="'")d?y===d&&(d="",c--):(d=y,c++);else if(y==="("&&d9(l,"url"))c++;else if(y===")"&&c>0)c--;else if(y===";"&&c===0){VZ(i,l),l="";continue}l+=y}return VZ(i,l),i}function U6(tag,key,value,sanitizeUrlFn,options){if(key==="style")return V6(value).reduce(function(t,[i,l]){let c=sanitizeUrlFn(l,tag,i);return c!=null&&(t[i.replace(/(-[a-z])/g,d=>d[1].toUpperCase())]=c),t},{});if(value.match(G6)){if(value=value.slice(1,value.length-1),value=value&&value.replace(x$,"$1"),value.length>0){let t=value[0];if(t==="["||t==="{")try{return JSON.parse(value)}catch{return value}}if(value==="true")return!0;if(value==="false")return!1;if(options.evalUnserializableExpressions)try{return eval(`(${value})`)}catch(t){return value}return value}return v$.indexOf(key)!==-1?sanitizeUrlFn(value&&value.replace(x$,"$1"),tag,key):value==="true"?!0:value==="false"?!1:value}function e1(t,i,l,c){let d={};if(!t||!t.trim())return d;let m=[],y=0,_=t.length;for(;y<_;){for(;y<_&&T0(t[y]);)y++;if(y>=_)break;let A=y;for(;y<_&&$6(t[y]);)y++;if(y===A){y++;continue}let T=t.slice(A,y);for(;y<_&&T0(t[y]);)y++;if(y>=_||t[y]!=="="){m.push(T);continue}for(y++;y<_&&T0(t[y]);)y++;if(y>=_){m.push(T+"=");break}let D=y,k=t[y];if(k==='"'||k==="'")for(y++;y<_;){if(t[y]===k){if(y+1>=_){y++;break}let R=t[y+1];if(T0(R)||R==="/"){y++;break}}y++}else if(k==="{"){let R=1;for(y++;y<_&&R>0;){if(t[y]==="{")R++;else if(t[y]==="}"&&(R--,R===0)){y++;break}y++}}else for(;y<_&&!T0(t[y]);)y++;m.push(T+"="+t.slice(D,y))}if(!m?.length)return d;let v=i.toLowerCase(),E=l.length>0&&l[0]>="A"&&l[0]<="Z";for(let A=0;A<m.length;A++){let T=m[A],D=T.indexOf("=");if(D!==-1){let k=T.slice(0,D).trim(),R=k.toLowerCase();if(R==="ref")continue;let N=E?k:R,z=T.slice(D+1).trim(),L=(U=>{let Y=U[0];return(Y==='"'||Y==="'")&&U.length>=2&&U[U.length-1]===Y?U.slice(1,-1):U})(z);if(R==="href"&&v==="a"||R==="src"&&v==="img"){let U=c.sanitizer(L,v,R);if(U==null){oZ(`Stripped unsafe ${R} on <${l}>`);continue}d[N]=U}else{let U=U6(v,R,L,c.sanitizer,c);d[N]=U}}else T!=="style"&&(d[E?T:T.toLowerCase()]=!0)}if(t.indexOf("%")!==-1)try{if(Q9.test(decodeURIComponent(t)))for(var S in d)delete d[S]}catch{}else if(Q9.test(t))for(var S in d)delete d[S];return d}var I9=function(t){return X6.has(t)};function Q6(t,i,l){let c=i+1;for(;c<t.length&&t[c]!=="]";){if(t[c]==="\\"&&c+1<t.length){c+=2;continue}c++}if(c>=t.length)return{shouldSkip:!1,newPos:0};let d=i+1,m=c,y=d<m&&(t[d]===`
18
+ `||t[d]==="\r"),_=m>d&&(t[m-1]===`
19
+ `||t[m-1]==="\r"),v=c+1;if(v=N0(t,v),v>=t.length||t[v]!==":")return{shouldSkip:!1,newPos:0};if((y||_)&&l){let E=v+1;for(E=N0(t,E),E<t.length&&t[E]===`
20
+ `&&(E=N0(t,E+1));E<t.length&&t[E]!==`
21
+ `;)E++;return E<t.length&&E++,{shouldSkip:!0,newPos:E}}return z6(t,v)}function z6(t,i){let l=i+1;for(l=N0(t,l),l<t.length&&t[l]===`
22
+ `&&(l=N0(t,l+1));l<t.length&&t[l]!==`
23
+ `;)l++;if(l>=t.length)return{shouldSkip:!1,newPos:0};l++;let c=N0(t,l);if(c>=t.length||t[c]!=='"'&&t[c]!=="'")return{shouldSkip:!1,newPos:0};let d=t[c],m=c+1;for(;m<t.length&&t[m]!==d&&t[m]!==`
24
+ `;){if(t[m]==="\\"&&m+1<t.length){m+=2;continue}m++}if(m>=t.length||t[m]!==d)return{shouldSkip:!1,newPos:0};let y=N0(t,m+1);return y<t.length&&t[y]!==`
25
+ `&&t[y]!=="\r"?{shouldSkip:!0,newPos:l}:{shouldSkip:!1,newPos:0}}function vZ(t){for(var i=0;i<t.length;i++){var l=t[i];if(l.type===M.link)return!0;if(l.type===M.textFormatted){var c=l;if(c.children&&vZ(c.children))return!0}}return!1}function g$(t){for(var i="",l=0,c=t.length;l<c;l++){var d=t[l],m=d.type;if(m===M.text)i+=d.text;else if(m===M.image){var y=d;y.alt&&(i+=y.alt)}else if(m===M.textFormatted){var _=d;_.children&&(i+=g$(_.children))}else if(m===M.link){var v=d;v.children&&(i+=g$(v.children))}}return i}var _6=new Set([" "," ","\r",`
26
+ `,"\f","\v"]);function S1(t,i,l,c,d){for(var m=[],y=[],_=[],v=i,E=i,S=d.disableAutoLink||c.inAnchor,A=!1,T=!!c.inAnchor,D=!!d.disableParsingRawHTML,k=function(rn,ln){if(!T){var Xt=y$(t,v,c,d,"<");if(Xt)return R(v),m.push(Xt),v=Xt.endPos,E=v,!0}if(D)return!1;var Lt=_$(t,v,c,d);if(Lt)return R(v),m.push(Lt),v=Lt.endPos,E=v,!0;var Ge=$9(t,v);if(!Ge)return!1;var An=v+(Ge.isClosing?2:1);if(An>=t.length||T0(t[An]))return!1;var Tn=t.indexOf(">",v+1);if(Tn!==-1){var qt=v+1,Ct=Tn-qt;if(Ct>=7){var ft=r(t,"http://",qt);if(ft||r(t,"https://",qt)){for(var sn=qt;sn<Tn;sn++)if(T0(t[sn]))return!1}}}var Kn=b(t,An);if(Z9(Kn)&&An+1<t.length&&t[An+1]===":"||Ge.isClosing&&Ge.attrs.trim().length)return!1;if(Ge.attrs.length)for(var We=!1,wn="",Nn=0;Nn<Ge.attrs.length;Nn++){var Se=Ge.attrs[Nn];if(We&&Se===wn)We=!1;else if(!We&&(Se==='"'||Se==="'"))We=!0,wn=Se;else if(Se==="*"||Se==="#"||Se==="!"){for(var P=Nn+1;P<Ge.attrs.length&&Ge.attrs[P]!=="="&&Ge.attrs[P]!==" "&&Ge.attrs[P]!==" ";)P++;if(P<Ge.attrs.length&&Ge.attrs[P]==="=")return!1}}var me=t.slice(v,Ge.endPos),ge=Ge.tagName.toLowerCase(),Oe=me,Ue=Oe.indexOf(">");if(Ue!==-1){Oe=Oe.slice(Ue+1);var Ae="</"+ge+">",Ne=Oe.indexOf(Ae);Ne!==-1&&(Oe=Oe.slice(0,Ne))}var Ve=[];if(Oe.trim()&&d){var dt={...c,inline:!1,inHTML:!0},Le=Oe.trim();U$.test(Le)||Q$.test(Le)||V$.test(Le)?Ve=C9(Le,dt,d):Le&&(dt.inline=!0,Ve=S1(Le,0,Le.length,dt,d))}var et={type:M.htmlBlock,tag:Ge.tagName,attrs:{},children:Ve,rawText:me,text:me,verbatim:!0,endPos:Ge.endPos};return R(v),m.push(et),v=et.endPos,E=v,!0},R=function(rn){if(rn>E){var ln=t.slice(E,rn);m.push({type:M.text,text:A?_9(ln):ln}),E=rn,A=!1}};v<l;){var N=b(t,v),z=nZ(N,S);if(z===0){for(N===y9&&(A=!0),v++;v<l&&(N=b(t,v),!(N>=$1));){N===y9&&(A=!0);var L=T9[N];if(L!==0){if(S&&L===1&&(N===f1||N===g1||N===A1)){v++;continue}break}v++}continue}if(N===C0){for(var U=v,Y=0;v+Y<l&&b(t,v+Y)===C0;)Y++;if(Y>0){for(var X=v+Y,Q=-1,G=X;G<l;){for(;G<l&&b(t,G)!==C0;)G++;if(G>=l)break;for(var te=0;G+te<l&&b(t,G+te)===C0;)te++;te>Y&&(te=Y);var J=G+te;if(te===Y&&(G<=X||b(t,G-1)!==C0)&&(J>=l||b(t,J)!==C0)){Q=G,G=J;break}G++}if(Q!==-1){for(var le=t.slice(X,Q),ae=!1,se=0;se<le.length;se++){var _e=b(le,se);if(_e===X0||_e===B0){ae=!0;break}}var ye=le;if(ae&&(ye=le.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," ")),ye.length>0){var Ee=b(ye,0),K=b(ye,ye.length-1);if(Ee===g&&K===g){for(var he=1;he<ye.length-1;he++)if(b(ye,he)!==g){ye=ye.slice(1,ye.length-1);break}}}R(U),m.push({type:M.codeInline,text:ye}),v=G,E=v;continue}v=X;continue}}if(!T&&!S&&(N===f1||N===g1||N===A1)){var ee=null,Re=v+1<l?b(t,v+1):0,Te=v+2<l?b(t,v+2):0,H=v+3<l?b(t,v+3):0,ie=v+4<l?b(t,v+4):0,ue=v+5<l?b(t,v+5):0;if(N===g1&&Re===p9&&Te===p9&&H===j$?ee="h":N===A1&&Re===A1&&Te===A1&&H===L9?ee="w":N===f1&&Re===p9&&Te===j$&&H===R9&&ie===U9&&ue===U9&&(ee="f"),ee){var ve=y$(t,v,c,d,ee);if(ve){R(v),m.push(ve),v=ve.endPos,E=v;continue}}}if(!T&&!S&&N===N9){var pe=y$(t,v,c,d,"@");if(pe&&"emailStart"in pe){for(var{emailStart:be,endPos:xe}=pe,De=[],J=y.length-1;J>=0;J--){var Me=y[J];Me.sourcePos>=be&&Me.sourcePos<xe&&(Me.nodeIndex>=0&&Me.nodeIndex<m.length&&(m.splice(Me.nodeIndex,1),De.push(Me.nodeIndex)),y.splice(J,1))}if(be<E){for(var G=m.length-1;G>=0;G--)if(m[G].type===M.text){m.splice(G,1),De.push(G);break}E=be}if(De.length){De.sort(function(rn,ln){return rn-ln});for(var Ye=0,ut=0;ut<y.length;ut++){for(var Me=y[ut];Ye<De.length&&De[Ye]<Me.nodeIndex;)Ye++;Me.nodeIndex-=Ye}}R(be),m.push(pe),v=xe,E=v;continue}}if(!(N===K9&&k())){if(N===i1){if(v+1<l&&b(t,v+1)===X0){for(var je=v+2;je<l&&b(t,je)===g;)je++;if(je>=l){v++;continue}for(R(v),m.push({type:M.breakLine}),v+=2;v<l&&b(t,v)===g;)v++;E=v;continue}var yt=v+1<l?t[v+1]:"";if(yt&&"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".indexOf(yt)!==-1){R(v),m.push({type:M.text,text:yt==="&"?"&​":yt}),v+=2,E=v;continue}}if(N===L1){if(!T){if(v+1<l&&t[v+1]==="^"){for(var Rt=v+2;Rt<l&&t[Rt]!=="]";)Rt++;if(Rt<l){var ze=t.slice(v+2,Rt);R(v),m.push({type:M.footnoteReference,target:`#${d.slugify(ze)}`,text:ze}),v=Rt+1,E=v;continue}}if(c.inList&&v+2<l&&b(t,v+2)===V9){var ct=b(t,v+1);if(ct===g||ct===H$||ct===O$){R(v),m.push({type:M.gfmTask,completed:ct===H$||ct===O$}),v+=3,E=v;continue}}}var $t=!1;if(v>i&&t[v-1]==="!"){for(var gn=0,Ke=v-2;Ke>=i&&t[Ke]==="\\";Ke--)gn++;if((gn&1)===0&&($t=!0,E<v-1&&R(v-1),m.length>0&&m[m.length-1].type===M.text)){var Gt=m[m.length-1];Gt.text.endsWith("!")&&(Gt.text=Gt.text.slice(0,-1),!Gt.text&&m.pop())}}$t||R(v),E=v+1,(!T||$t)&&_.push({type:$t?"image":"link",pos:$t?v-1:v,resultIdx:m.length,inAnchor:T}),v++;continue}if(N===V9&&_.length>0){var Ot=_[_.length-1],tn=Ot.pos+(Ot.type==="image"?2:1),St=v;R(v);var st=v+1,_n=u$(m,Ot),Ht=Ot.type==="link"&&vZ(_n),Mt=!1;if(!Ht&&st<l&&t[st]==="("){var Dt=H6(t,st+1);if(Dt){UZ(m,y,_,Ot,tn,St,d.sanitizer(Z$(Dt.target),"a","href"),Dt.title?Z$(Dt.title):void 0),v=Dt.endPos,E=v;continue}}var cn=c.refs||{},fn=null,Gn=v;if(st<l&&t[st]==="["){for(var nt=st+1,G=nt;G<l&&t[G]!=="]";)G++;G<l&&(fn=t.slice(nt,G),Gn=G,Mt=!0)}(!Mt||fn==="")&&(fn=t.slice(tn,St));var dn=BZ(fn);if(!Ht&&cn&&cn[dn]){var vt=cn[dn];UZ(m,y,_,Ot,tn,St,vt.target,vt.title),v=Gn+1,E=v;continue}var ht=Ot.resultIdx;_.pop(),m.length=ht,Ot.type==="image"&&m.push({type:M.text,text:"!"}),m.push({type:M.text,text:"["},..._n,{type:M.text,text:"]"});for(var se=0;se<y.length;se++)y[se].nodeIndex>=ht&&y[se].nodeIndex++;v++,E=v;continue}if(N===B9||N===c1||N===d1||N===I1){var $e=t[v],tt=v,nn=j9(t,v,$e);if(($e==="~"||$e==="=")&&nn!==2){v++;continue}var hn=tt+nn,kt=KZ(t,tt,hn,l,0),at=KZ(t,tt,hn,i,1),Ft=kt,At=at;if($e==="_"&&kt&&at){if(tt>0){var xn=t[tt-1],Sn=b(xn);Ft=J$(Sn,xn)}if(hn<l){var pt=t[hn],an=b(pt);At=J$(an,pt)}}R(tt),y.push({nodeIndex:m.length,type:$e,length:nn,canOpen:Ft,canClose:At,active:!0,sourcePos:tt,inAnchor:T}),m.push({type:M.text,text:t.slice(tt,tt+nn)}),v=tt+nn,E=v;continue}if(N===X0){for(var Ke=v-1,Fn=0;Ke>=E&&b(t,Ke)===g;)Fn++,Ke--;if(Fn>=2){for(var je=v+1;je<l&&b(t,je)===g;)je++;if(je>=l){R(Ke+1),v=l,E=l;continue}for(R(Ke+1),m.push({type:M.breakLine}),v++;v<l&&b(t,v)===g;)v++;E=v;continue}var Rn=v>E?b(t,v-1):0,ct=v+1<l?b(t,v+1):0,Xn=v>E&&Rn===g&&ct===g?v-1:v;R(Xn),m.push({type:M.text,text:`
27
+ `}),E=v+1,v>i&&Rn===g&&E<l&&b(t,E)===g&&E++,v=E;continue}for(N===y9&&(A=!0),v++;v<l;){var N=b(t,v);if(N>=$1)break;N===y9&&(A=!0);var L=T9[N];if(L===0){v++;continue}if(L===1&&(N===f1||N===g1||N===A1)&&S){v++;continue}break}}}if(R(v),y.length&&xZ(m,y),_.length){_.sort(function(rn,ln){return rn.resultIdx-ln.resultIdx});for(var G=0;G<_.length;G++)m.splice(_[G].resultIdx+G,0,{type:M.text,text:_[G].type==="image"?"![":"["})}return m}function q6(t,i,l,c,d){for(var m=!1,y=0;y<i.length;y++)if(i[y].sourcePos>=c&&i[y].sourcePos<d){m=!0;break}if(m){for(var _=u$(t,l),v=[],y=0;y<i.length;y++){var E=i[y];E.sourcePos>=c&&E.sourcePos<d&&v.push({nodeIndex:E.nodeIndex-l.resultIdx,type:E.type,length:E.length,canOpen:E.canOpen,canClose:E.canClose,active:E.active,sourcePos:E.sourcePos,inAnchor:E.inAnchor})}xZ(_,v),t.length=l.resultIdx;for(var S=0;S<_.length;S++)t.push(_[S]);for(var A=[],y=0;y<i.length;y++)(i[y].sourcePos<c||i[y].sourcePos>=d)&&A.push(i[y]);i.length=0;for(var S=0;S<A.length;S++)i.push(A[S])}}function D6(t,i,l,c){return t.type==="link"?{type:M.link,target:l,title:c,children:i}:{type:M.image,target:l||"",alt:g$(i),title:c}}function u$(t,i){return t.slice(i.resultIdx)}function UZ(t,i,l,c,d,m,y,_){q6(t,i,c,d,m);var v=u$(t,c);l.pop(),t.length=c.resultIdx,t.push(D6(c,v,y,_))}function j6(t,i,l){let c=N0(t,i),d=c<t.length&&t[c]==="<";d&&c++;let m=c;if(d&&c<t.length&&t[c]===">")return{target:"",endPos:c+1,hadSpace:!1};let y,_;var v=!1;if(d){for(_=c;_<t.length&&t[_]!==">";){let A=t[_];if(A===`
28
+ `||A==="\r"||A==="<")return null;if(A==="\\"){_+=2;continue}_++}if(_>=t.length||t[_]!==">")return null;_++;let E=m;for(;E<_-1&&T0(t[E]);)E++;let S=_-1;for(;S>E&&T0(t[S-1]);)S--;y=t.slice(E,S),c=_}else{let E=0;for(_=c;_<t.length;){let S=t[_];if(S===" "||S===" "||S===`
29
+ `){v=!0;break}if(S==="("){if(_>0&&t[_-1]==="\\"){_++;continue}E++,_++;continue}if(S===")"){if(_>0&&t[_-1]==="\\"){_++;continue}if(E===0)break;E--,_++;continue}_++}y=t.slice(m,_),c=_}return{target:y,endPos:c,hadSpace:v}}function QZ(t,i,l,c){let d=i,m=0;for(;d<t.length;){let _=t[d];if(T0(_))d++;else if(_===`
30
+ `){if(m>=1)break;m++,d++}else{if(t1(_))break;break}}if(l&&!c&&(d>=t.length||t[d]!=='"'&&t[d]!=="'"&&t[d]!=="("))return{title:void 0,endPos:d};let y;if(d<t.length){let _=t[d];if(_==='"'||_==="'"){d++;let v=d;for(;d<t.length&&t[d]!==_;)t[d]==="\\"&&d++,d++;d<t.length&&(y=t.slice(v,d),d++)}else if(_==="("){d++;let v=d,E=1;for(;d<t.length&&E>0;)t[d]==="\\"&&d+1<t.length?d++:t[d]==="("?E++:t[d]===")"&&E--,d++;E===0&&(y=t.slice(v,d-1))}}return d=N0(t,d),{title:y,endPos:d}}function H6(t,i,l){let c=j6(t,i);if(!c)return null;let d=i;d=N0(t,d);let m=d<t.length&&t[d]==="<";if(m&&c.target===""&&c.endPos===d+2){let _=QZ(t,c.endPos,!1,m);return _.endPos>=t.length||t[_.endPos]!==")"?null:{target:"",title:_.title,endPos:_.endPos+1}}let y=QZ(t,c.endPos,c.hadSpace,m);return y.endPos>=t.length||t[y.endPos]!==")"?null:{target:c.target,title:y.title,endPos:y.endPos+1}}var O6;(t=>{t[t.URI=0]="URI",t[t.EMAIL=1]="EMAIL",t[t.ANGLE=2]="ANGLE"})(O6||={});function Z9(t){return t>=C1&&t<=k1||t>=s1&&t<=o1}function wZ(t){let i=t.indexOf(":");if(i<2||i>32)return!1;let l=b(t);if(!Z9(l))return!1;for(let c=1;c<i;c++){let d=t[c];if(b(d),!Y$(d)&&d!=="+"&&d!=="."&&d!=="-")return!1}return!0}function zZ(t,i,l){return i===0?!0:(l?`
31
+ \r*_~(`:`
32
+ *_~(`).indexOf(t[i-1])!==-1}function s9(t,i,l,c,d){let m=c(t,"a","href");return m?{type:M.link,target:m,children:[{type:M.text,text:i}],endPos:l,...d!==void 0?{emailStart:d}:{}}:null}function b$(t,i,l,c,d){if(l.inAnchor||d!==2&&c.disableAutoLink)return null;if(d===2){if(t[i]!=="<")return null;let R=i+1;for(;R<t.length&&t[R]!==">";){let te=b(t,R);if(te===g||te===u||te===X0||te===B0||te<g)return null;R++}if(R>=t.length||t[R]!==">")return null;let N=t.slice(i+1,R);if(!N.length)return null;let z=N.indexOf("\\")!==-1,L=wZ(N),U=r(N,"http://")||r(N,"https://"),Y=!1;if(!L&&!U&&N.length>=7){let te=N[0];if(te==="m"||te==="M"){let J=N.toLowerCase();if(r(J,"mailto:")){Y=!0;let le=J.indexOf(":"),ae=N.slice(le+1);return s9("mailto:"+ae,N,R+1,c.sanitizer)}}}let X=!z&&N.indexOf("@")!==-1&&N.indexOf("//")===-1&&!L;if(!U&&!Y&&!X&&!L)return null;let Q=N,G=N;return!Y&&!L&&!U&&X&&(Q="mailto:"+N),s9(Q,G,R+1,c.sanitizer)}if(d===1){let R=i;for(;R>0&&(Y$(t[R-1])||".+-_".indexOf(t[R-1])!==-1);)R--;if(R>=i||!zZ(t,R,!0))return null;let N=i+1,z=!1;for(;N<t.length;){let U=t[N];if(U===".")z=!0,N++;else if(Y$(U)||U==="-"||U==="_")N++;else break}if(!z||N<=i+1)return null;for(;N>i+1&&t[N-1]===".";)N--;if(N>i+1&&(t[N-1]==="-"||t[N-1]==="_"))return null;if(N-(i+1)<1e4){if(t.indexOf(".",i+1)>=N||t.indexOf(".",i+1)===-1)return null}else if(t.slice(i+1,N).indexOf(".")===-1)return null;let L=t.slice(R,N);return s9("mailto:"+L,L,N,c.sanitizer,R)}let m=r(t,"http://",i)||r(t,"https://",i),y=!m&&r(t,"ftp://",i),_=!m&&!y&&r(t,"www.",i);if(!(m||y||_)||!zZ(t,i,!1))return null;for(var v=i+(m?b(t,i+4)===s$?8:7:y?6:4),E=v;v<t.length;){let R=b(t,v);if(R===g||R===u||R===X0||R===K9||R===T1)break;v++}if(v<=E)return null;let S=v;for(;S>E;){let R=t[S-1];if(S>E+1&&t[S-2]==="\\")break;if(R==="?"||R==="!"||R==="."||R===","||R===":"||R==="*"||R==="_"||R==="~")S--;else if(R===";"){let N=S-2;for(;N>=E&&t[N]!=="&"&&t[N]!==" ";)N--;if(N>=E&&t[N]==="&"){let z=t.slice(N+1,S-1);if(z.length>=2&&z.length<=10&&/^[a-zA-Z0-9]+$/.test(z)&&(z==="lt"||z==="gt"||z.length>=3&&(r(z,"amp")||r(z,"apos")||r(z,"quot")||r(z,"nbsp")||/^[a-z]{3,10}$/.test(z))))break;S=N;break}S--}else if(R===")"){let N=0,z=0;for(let L=E;L<S;L++)t[L]==="("&&N++,t[L]===")"&&z++;if(z>N)S--;else break}else break}if(v=S,v<=E)return null;for(var A=E,T=-1,D=-1;A<v;){let R=b(t,A);if(R>=C1&&R<=k1||R>=s1&&R<=o1||R>=a1&&R<=r1||R===K1||R===c1||R===L9){R===L9&&(D=T,T=A),A++;continue}break}if(A===E||T===-1)return null;D===-1&&(D=E-1);for(let R=D+1;R<T;R++)if(t[R]==="_")return null;for(let R=T+1;R<A;R++)if(t[R]==="_")return null;let k=t.slice(i,v);return s9(_?"http://"+k:k,k,v,c.sanitizer)}function y$(t,i,l,c,d){return d==="<"?b$(t,i,l,c,2):d==="h"||d==="f"||d==="w"?b$(t,i,l,c,0):d==="@"?b$(t,i,l,c,1):null}function BZ(t){var i=t.trim(),l=i.replace(/[\s\t\n\r]+/g," ");return l.indexOf("ẞ")!==-1?l.replace(/\u1E9E/g,"ss").toLowerCase():l.toLowerCase()}function F6(t,i,l){if(i+3>=t.length||t[i]!=="[")return null;let c=t[i+1];return c!==" "&&c!=="x"&&c!=="X"||t[i+2]!=="]"?null:{type:M.gfmTask,completed:c.toLowerCase()==="x",endPos:i+3}}function l$(t,i,l,c){let{inline:d,inList:m,inBlockQuote:y}=i;c.inline!==void 0&&(i.inline=c.inline),c.list!==void 0&&(i.inList=c.list),c.inBlockQuote!==void 0&&(i.inBlockQuote=c.inBlockQuote);let _=C9(t,i,l);return i.inline=d,i.inList=m,i.inBlockQuote=y,_}function f9(t,i,l,c,d){return z$(c,!0,()=>S1(t,i,l,c,d))}function g9(t,i,l,c){var d=t[i];if(d===void 0)return null;var m=i,y=null,_=d,v=null,E=b(d),S=E===g||E===u;if(S){if(v=I(t,i),y=o(t,i,v),m=i+y.charCount,m>=t.length)return n9(t,i);_=t[m]}var A=y?y.spaceEquivalent:0;if(A>=4)return S?n9(t,i):null;var T=b(_);if(T===T1){var D=bZ(t,i,l,c);if(D)return D}else{if(T===c1)return X$(t,i);if(T===K1||T===B9||T===t$){var k=X$(t,i);if(k)return k;var R=h$(t,i,l,c);if(R)return R}else if(T>=a1&&T<=r1){var R=h$(t,i,l,c);if(R)return R}else{if(T===w9)return W6(t,m,l,c);if(T===L1)return O9(t,m,l,c,m+1<t.length&&b(t,m+1)===X9);if(T===K9&&!c.disableParsingRawHTML)return _$(t,m,l,c);if(T===C0||T===d1){if(v||(v=I(t,i)),y||(y=o(t,i,v)),y.spaceEquivalent<=3)return d$(t,m,l,c)}else if(T===e$)return SZ(t,i,l,c)}}return S?n9(t,i):null}function C9(t,i,l){let c=[],d=0;for(;d<t.length;){for(;d<t.length&&t[d]===`
33
+ `;)d++;if(d>=t.length)break;var m=t[d];if(i.inList&&c.length>0){var y=c[c.length-1];if(y?.type===M.paragraph){var _=y,v=b(m);if(v===K1||v===I1||v===g||v===u){var E=I(t,d),S=t.slice(d,E),A=o(t,d,E);if(A.spaceEquivalent<4){var T=S.slice(A.charCount).trim();if(TZ(c,T,l)){d=E+(E<t.length&&t[E]===`
34
+ `?1:0);continue}}}}}var D=g9(t,d,i,l);if(D){c.push(D),d=D.endPos;continue}var k=NZ(t,d,i,l);if(k){c.push(k),d=k.endPos;continue}var R=t.slice(d).trim();if(R){if(i.inBlockQuote&&c.length>0){let U=function(Y){if(Y.type===M.blockQuote){var X=Y;if(X.children&&X.children.length>0){var Q=X.children[X.children.length-1];if(Q.type===M.paragraph)return Q}}else if(Y.type===M.orderedList||Y.type===M.unorderedList){var G=Y;if(G.items&&G.items.length>0){var te=G.items[G.items.length-1];if(te&&te.length>0){var J=te[te.length-1],le=U(J);if(le)return le}}}return null};for(var N=c.length-1;N>=0;N--){var _=U(c[N]);if(_){var L=C$(t,d,i,l);if(L){var z=L;_.children&&z.children&&_.children.push({type:M.text,text:`
35
+ `},...z.children),d=L.endPos;continue}}}}var L=C$(t,d,i,l);if(L){c.push(L),d=L.endPos;continue}}d++}return c}function W6(t,i,l,c){if(l.inline)return null;let d=I(t,i),m=o(t,i,d,3);if(m.spaceEquivalent>3&&!l.inList)return null;var y=i+m.charCount;if(y>=t.length||t[y]!=="#")return null;let _=j9(t,y,"#",6);if(y+=_,y>=t.length)return null;let v=t[y];if(v===`
36
+ `||v==="\r"){let D=I(t,y);return{...G$(_,[],"",c.slugify),endPos:D+(D<t.length?1:0)}}if(v!==" "&&v!==" ")return null;let E=y,S=I(t,E);var A=t.slice(E,S).replace(eZ,"").trim();let T=f9(A,0,A.length,l,c);return{...G$(_,T,A,c.slugify),endPos:S+(S<t.length?1:0)}}function NZ(t,i,l,c){if(l.inline||l.inBlockQuote||l.inList)return null;let d=I(t,i);if(d>=t.length)return null;let m=d+1,y=-1,_=null;for(var v=0;m<t.length&&v<10;v++){let le=I(t,m);if(le>=t.length)break;for(var E=m;E<le&&(b(t,E)===g||b(t,E)===u||b(t,E)===B0);)E++;if(E>=le)break;for(var S=0,A=m;A<le&&S<3&&b(t,A)===g;)S++,A++;if(A<le){let ae=b(t,A);if(ae===I1||ae===K1){let se=t[A];for(var T=0,D=!1,k=A;k<le;){let _e=b(t,k);if(_e===ae){if(D){T=0;break}T++}else if(_e===g||_e===u)D=!0;else{T=0;break}k++}if(T>=1){y=le,_=se;break}}}m=le+1}if(!_)return null;let R=b(t,i);if(R===w9||R===T1||t[i]==="|")return null;let N=i;for(var z=i,L=!1;z<m;){let le=I(t,z);if(le>=m)break;for(var U=z;U<le&&(b(t,U)===g||b(t,U)===u||b(t,U)===B0);)U++;U<le&&(L=!0,N=le),z=le+1}if(!L)return null;let Y=t.slice(i,N);for(var X=0,Q=Y.length;X<Q&&(Y.charCodeAt(X)===g||Y.charCodeAt(X)===u||Y.charCodeAt(X)===B0||Y.charCodeAt(X)===X0);)X++;for(;Q>X&&(Y.charCodeAt(Q-1)===g||Y.charCodeAt(Q-1)===u||Y.charCodeAt(Q-1)===B0||Y.charCodeAt(Q-1)===X0);)Q--;let G=Y.slice(X,Q);if(!G)return null;let te=_==="="?1:2,J=f9(G,0,G.length,l,c);return{...G$(te,J,G,c.slugify),endPos:y+(y<t.length?1:0)}}function C$(t,i,l,c){if(l.inline)return null;let d=i,m=t.length;for(;d<m;){let be=I(t,d),xe=!0;for(let ze=d;ze<be;ze++){let ct=b(t,ze);if(ct!==g&&ct!==u&&ct!==B0){xe=!1;break}}if(xe){d=be;break}if(be>=m){d=m;break}let De=be+1;if(De>=m){d=m;break}let Me=I(t,De),Ye=!0,ut="";for(let ze=De;ze<Me;ze++){let ct=b(t,ze);if(ct!==g&&ct!==u&&ct!==B0){Ye=!1,ut===""&&(ut=t[ze]);break}}if(Ye){d=be;break}let je=!1,yt=o(t,De,Me),Rt=yt.spaceEquivalent===4&&yt.charCount===4;if(ut==="<"&&!Rt&&!c.disableParsingRawHTML){let ze=De,ct=0;for(;ze<Me&&ct<3;){let $t=b(t,ze);if($t===g||$t===u)ct++,ze++;else break}if(ze<Me&&t[ze]==="<"){var y=_$(t,ze,{...l,inline:!1},c);y&&(je=!("canInterruptParagraph"in y)||y.canInterruptParagraph)}}if(Rt)je=!1;else if(!je&&ut&&I9(ut))if(ut==="["){let ze=De;ze+1>=m||t[ze+1]!=="^"?je=!1:je=!0}else if(ut==="*"||ut==="+")if(X$(t,De))je=!0;else{let ze=De+1<m?t[De+1]:"";ze&&T0(ze)?je=!0:je=!1}else{let ze=g9(t,De,l,c);ze&&(ze.type===M.codeBlock?o(t,De,Me).spaceEquivalent>=4?je=!1:je=!0:ze.type===M.unorderedList||ze.type===M.orderedList?ze.type===M.orderedList?je=ze.start===1:je=!0:ut==="-"?(d>i,je=!0):ze.type===M.ref?je=!1:je=!0)}if(je){d=be;break}d=be+1}if(d<=i)return null;for(var _=i,v=d;_<v;){let be=b(t,_);if(be===g||be===u)_++;else break}let E=I(t,_);var S=v>E,A;if(!S)A=t.slice(_,v);else{for(var T=[],D=_,k=0;D<v;){var R=I(t,D);if(R>v&&(R=v),k===0)T.push(t.slice(D,R));else{for(var N=0;N<4&&D+N<R&&b(t,D+N)===g;)N++;var z=N===4?D+4:D;T.push(t.slice(z,R))}R<v&&b(t,R)===X0?(T.push(`
37
+ `),D=R+1):D=v,k++}A=T.join("")}for(var L=A.length;L>0;){var U=A.charCodeAt(L-1);if(U===g||U===u)L--;else break}L<A.length&&(A=A.slice(0,L));let Y=!1;for(let be=0;be<A.length;be++){let xe=A.charCodeAt(be);if(xe!==g&&xe!==u&&xe!==X0&&xe!==B0){Y=!0;break}}if(!Y)return null;for(var X=A,Q=d,G=-1,te=d-1;te>=_;){if(b(t,te)===X0){G=te;break}te--}if(G>=0){for(var J=!1,le=_;le<G;le++){let be=b(t,le);if(be!==g&&be!==u&&be!==X0&&be!==B0){J=!0;break}}if(!J){for(var ae=G+1;ae<t.length;){let be=b(t,ae);if(be===g||be===u)ae++;else break}var se=ae-(G+1);if(se<4&&ae<t.length&&t[ae]==="["){var _e={...l,inline:!1},ye=O9(t,ae,_e,c,!1);if(ye){for(var Ee=0,te=_;te<=G;){let xe=t.indexOf(`
38
+ `,te);if(xe===-1||xe>G)break;Ee++,te=xe+1}var K=0,he=0;for(te=0;te<A.length;){let xe=A.indexOf(`
39
+ `,te);if(xe===-1)break;if(he++,he===Ee){K=xe+1;break}te=xe+1}K>0&&(X=A.slice(0,K-1)),Q=ye.endPos,l.refs=_e.refs}}}}let ee=f9(X,0,X.length,l,c);var Re={type:M.paragraph,children:ee,endPos:Q};if(ee.length>0){for(var Te=[],H=ee.length-1;H>=0;H--){var ie=ee[H];if(ie.type===M.htmlSelfClosing&&ie.isClosingTag===!0)Te.push(H);else if(ie.type===M.text){var ue=ie;if(ue.text&&ue.text.trim().length>0)break}else break}if(Te.length>=3){var ve=Te[Te.length-1],pe=ee.slice(ve+1);ee.splice(ve+1),Re.removedClosingTags=pe}}return Re}function M6(t,i){if(i!==0)return null;let l=M$(t);return l?.hasValidYaml?{type:M.frontmatter,text:t.slice(0,l.endPos-1),endPos:l.endPos}:null}function X$(t,i,l,c){let d=I(t,i),m=o(t,i,d,3);if(m.spaceEquivalent>3)return null;var y=i+m.charCount;if(y>=d)return null;let _=t[y];if(_!=="-"&&_!=="*"&&_!=="_")return null;for(var v=0,E=y;E<d;){var S=t[E];if(S===_)v++;else if(S!==" "&&S!==" ")return null;E++}return v<3?null:{type:M.breakThematic,endPos:s(t,d)}}function o(t,i,l,c){let d=0,m=0,y=i;for(;y<l;){var _=b(t,y);if(_!==g&&_!==u||c!==void 0&&d>=c)break;_===u?d+=4-d%4:d+=1,m++,y++}return{spaceEquivalent:d,charCount:m}}function _Z(t,i,l,c){let d=0,m=0,y=c;for(let A=i;A<l&&m<4;A++){var _=b(t,A);if(_===u){let T=4-y%4;if(m+=T,d++,y+=T,m>=4)break}else if(_===g){if(m++,d++,y++,m>=4)break}else break}let v=t.slice(i+d,l);for(var E=0,S=i;S<l&&(t[S]===" "&&E++,!(E>=2));S++);return E>=2&&r(v," ")&&c>0&&(v=" "+v.slice(1)),v}function n9(t,i,l){let c=I(t,i),d=o(t,i,c);if(d.spaceEquivalent<4)return null;let m=d.spaceEquivalent,y=I(t,i+d.charCount),_=i,v=0;for(var E=_-1;E>=0&&t[E]!==`
40
+ `&&t[E]!=="\r";)E--;for(E++;E<_;)t[E]===" "?v=v+4-v%4:v++,E++;let S=_Z(t,_,y,v),A=s(t,y);if(A>=t.length)return S.trim()?{type:M.codeBlock,text:S,endPos:A}:null;var T=[];T.push(S);let D=A;for(;D<t.length;){let R=I(t,D);if(D1(t,D,R)){let N=R+1;if(N<t.length){let z=I(t,N),L=o(t,N,z),U=t[N+L.charCount];if(U&&U!==`
41
+ `&&(L.spaceEquivalent<4||U===">"&&L.spaceEquivalent<m))break}T.push(`
42
+ `)}else{if(o(t,D,R).spaceEquivalent<4)break;let N=_Z(t,D,R,0);T.push(`
43
+ `),T.push(N)}D=s(t,R)}let k=T.join("");return k=k.replace(J6,""),k.trim()?{type:M.codeBlock,text:k,endPos:D}:null}function d$(t,i,l,c){let d=t[i];if(d!=="`"&&d!=="~")return null;let m=j9(t,i,d);if(m<3)return null;let y=i;for(;y>0&&b(t,y-1)!==X0;)y--;let _=o(t,y,i),v=_.spaceEquivalent,E=v;if(v===4&&_.charCount===4&&(v=0,E=4),v>=4)return null;let S=N0(t,i+m),A=I(t,S),T=t.slice(S,A).trim();if(d==="`"&&T.indexOf("`")!==-1)return null;T=T.replace(x$,"$1");let D=T.indexOf(" "),k=D>0?T.slice(0,D):T,R=D>0?T.slice(D+1).trim():"",N=R&&/=\s*["']/.test(R)?e1(R,"code","code",c):void 0,z=s(t,A),L=z;for(;L<t.length;){let Q=I(t,L),G=L,te=0;for(;G<Q;){let J=b(t,G);if(J===g){if(te++,G++,te>=4)break}else if(J===u){if(te+=4-te%4,G++,te>=4)break}else break}if(te<4){let J=j9(t,G,d,Q-G);if(J>=m){let le=G+J;for(;le<Q;){let ae=b(t,le);if(ae===g||ae===u)le++;else break}if(le===Q)break}}else if(E===4&&v===0&&te===4){let J=j9(t,G,d,Q-G);if(J>=m&&D1(t,G+J,Q))break}L=s(t,Q)}let U=L>z&&t[L-1]===`
44
+ `?L-1:L,Y=t.slice(z,U);E&&(Y=k$(Y,E));let X=L<t.length?s(t,I(t,L)):L;return{type:M.codeBlock,text:Y,lang:k,attrs:N,endPos:X}}function A6(t,i,l){for(var c=0;c<t.length;c++)if(!I$(t[c])){let m=l$(t,i,l,{inline:!1,inBlockQuote:!0});for(var d=0;d<m.length;d++){let y=m[d];"endPos"in y&&delete y.endPos}return m}return[]}function bZ(t,i,l,c){if(l.inline)return null;let d=i;for(;d<t.length&&(t[d]===" "||t[d]===" ");)d++;if(d>=t.length||t[d]!==">")return null;let m=i;for(var y=[],_=void 0,v=-1,E=!1,S=null,A=null,T=0,D=!1;m<t.length;){let X=I(t,m),Q=m;for(;Q<X&&(t[Q]===" "||t[Q]===" ");)Q++;if(Q<X&&t[Q]===">"){let G=Q+1;G<X&&t[G]===" "&&G++;let te=o(t,G,X).spaceEquivalent>=4,J=!1,le=null,ae=0;if(G<X){let _e=t[G];if(_e==="`"||_e==="~"){let ye=0,Ee=G;for(;Ee<X&&t[Ee]===_e&&ye<20;)ye++,Ee++;ye>=3&&(J=!0,le=_e,ae=ye)}}E&&S==="fenced"&&le===A&&ae>=T?(E=!1,S=null,A=null,T=0):(te||J)&&(E=!0,S=te?"indented":"fenced",A=le,T=ae);var k=!te&&!J;if(k){for(var R=G;R<X;R++)if(!I$(t[R])){k=!1;break}}D=k,v===-1&&!k&&(v=y.length);let se=Q+1;if(se<X&&t[se]===" "){y.push(" ");let _e=4;for(let ye=se+1;ye<X;ye++){let Ee=t[ye];var N=b(Ee);if(N===u){let K=4-_e%4;K===1?y.push(" "):K===2?y.push(" "):K===3?y.push(" "):y.push(" ".repeat(K)),_e+=K}else y.push(Ee),_e++}X<t.length&&y.push(`
45
+ `)}else{let _e=se;_e<X&&t[_e]===" "&&_e++,y.push(t.slice(_e,X)),X<t.length&&y.push(`
46
+ `)}}else{for(var z=!0,R=m;R<X;R++)if(!I$(t[R])){z=!1;break}if(z||E)break;if(o(t,m,X).spaceEquivalent===0){let G=g9(t,m,l,c);if(G&&G.type!==M.ref&&G.type!==M.codeBlock||D)break}y.push(t.slice(m,X)),X<t.length&&y.push(`
47
+ `)}m=s(t,X)}if(m===i)return null;y.length>0&&y[y.length-1]===`
48
+ `&&y.pop();let L=y.join("");if(L.length>=4&&L.charCodeAt(0)===L1&&L.charCodeAt(1)===b9){let X=L.indexOf(`]
49
+ `,2);X>2&&(_=L.slice(2,X),L=L.slice(X+2))}let U=A6(L,l,c),Y={type:M.blockQuote,children:U,endPos:m};return _&&(Y.alert=_),Y}function k$(t,i){return t.split(`
50
+ `).map(function(l){if(l.length===0)return l;let c=i,d=0,m=0,y=0;for(;m<l.length&&d<c;)if(l[m]===" ")d++,y++,m++;else if(l[m]===" "){let _=4-y%4;if(d+_<=c)d+=_,y+=_,m++;else{let v=c-d,E=Math.max(0,_-v);return" ".repeat(E)+l.slice(m+1)}}else break;return l.slice(m)}).join(`
51
+ `)}function t9(t,i,l,c,d=!0){let m=(d?`
52
+ `:"")+t,y=f9(m,0,m.length,l,c);i.length>0&&i[i.length-1].type===M.paragraph?i[i.length-1].children.push(...y):i.push(...y)}function x9(t){return t.some(function(i){return i.type===M.codeBlock||i.type===M.paragraph||i.type===M.blockQuote||i.type===M.orderedList||i.type===M.unorderedList||i.type===M.heading})}function R$(t){return!!t.match(p$)}function yZ(t){if(t.length===0)return t;var i=t[t.length-1];return(i.type===M.orderedList||i.type===M.unorderedList)&&i.items?.length>0?yZ(i.items.slice(-1)[0]):t}function m$(t,i,l,c,d,m,y){if(!r(d,"["))return null;var _={inline:!1,refs:m.refs||{}},v=O9(t,i+c.charCount,_,y,!1);return v?v.endPos:null}function qZ(t,i,l,c){return t.length!==1||!l||t[0].length!==0?!1:!!(i||!i&&c.trim()==="")}function DZ(t,i){var l=t.index||0;return i?l+t[1].length+t[2].length+1:l+t[1].length+1}function K$(t,i,l,c,d){for(var m=0,y=c+d,_=i;_<l&&m<4;){var v=b(t,_);if(v===g)m++,y++;else if(v===u){var E=4-y%4;if(m+E>4)break;m+=E,y+=E}else break;_++}return{contentStartColumn:y,contentStartPos:_}}function L$(t){var i=t.match(p$);return i?i[1]?{match:[t,i[1],i[2],i[3]],ordered:!0,listItemRegex:E$}:i[4]?{match:[t,i[4],i[5],""],ordered:!0,listItemRegex:E$}:i[6]?{match:[t,i[6],i[7]],ordered:!1,listItemRegex:P$}:i[8]?{match:[t,i[8],""],ordered:!1,listItemRegex:P$}:null:null}function h1(t,i,l,c,d,m,y){if(i.spaceEquivalent!==m)return!1;var _=t.match(y);if(_)return l?_[2]===d:_[1]===c;var v=t.match(p$);return v?l?v[4]&&v[5]===d:v[8]===c:!1}function RZ(t,i,l,c){for(var d=i,m=l,y=i[0];m<t.length;){var _=I(t,m),v=t.slice(m,_),E=r(v," ".repeat(c))?v.slice(c):v;if(r(E.trim(),y)&&j9(E.trim(),0,y)>=3)return{content:d,endPos:s(t,_)};d+=`
53
+ `+E,m=s(t,_)}return{content:d,endPos:m}}function o9(t,i,l,c,d,m,y,_,v,E,S,A,T){var D=E?void 0:v[1],k=E?v[2]:void 0,R=E?E$:P$,N=S;if(!S)for(var z=s(t,m),L=z;L<t.length;){var U=I(t,L),Y=t.slice(L,U),X=o(t,L,U),Q=X.spaceEquivalent;if(D1(t,L,U)){var G=s(t,U);if(G<t.length){var te=I(t,G),J=o(t,G,te),le=J.spaceEquivalent,_e=DZ(v,E),ye=d+_+_e,Ee=K$(t,ye,m,y,_e),K=Ee.contentStartColumn;if(le+1>K){N=!0;break}}break}else if(Q<=y){var ae=Y.slice(X.charCount),se=ae.match(R);if(se&&(E?se[2]===k:se[1]===D))break}L=s(t,U)}var _e=DZ(v,E),ye=d+_+_e,Ee=K$(t,ye,m,y,_e),K=Ee.contentStartColumn,he=c,ee=s(t,m);if(r(c,"```")||r(c,"~~~")){var Re=E?v[1].length+v[2].length+1:v[1].length+1,Te=RZ(t,c,ee,Re);he=Te.content,ee=Te.endPos}return i.push(LZ(he,N,A,T)),l.push(K),{newCurrentPos:ee,itemHasBlankLine:N}}function jZ(t,i,l,c,d,m){if(d>c||m.disableParsingRawHTML)return!1;let y=i+l;return y>=t.length||t[y]!=="<"?!1:v6(t,y)}function v6(t,i){if(i>=t.length||t[i]!=="<")return!1;let l=t.length,c=i+1;if(c<l&&t[c]==="/"&&c++,c>=l)return!1;let d=b(t,c);if(!Z9(d))return!1;for(c++;c<l;){let y=t[c],_=b(t,c);if(y===">"||y===" "||y===" "||y===`
54
+ `||y==="\r"||y==="/")break;if(y==="-"||y==="_"||Z9(_)||_>=48&&_<=57)c++;else return!1}let m=0;for(;c<l;){let y=t[c],_=b(t,c);if(m===1)y==='"'&&(m=0),c++;else if(m===2)y==="'"&&(m=0),c++;else if(y==='"')m=1,c++;else if(y==="'")m=2,c++;else{if(y===">")return!0;if(y==="/"&&c+1<l&&t[c+1]===">")return!0;if(_===10||_===13)return!1;c++}}return!1}function HZ(t,i,l,c,d,m,y,_,v,E,S,A){let T=c,D=!1;for(;T<t.length;){let k=I(t,T),R=o(t,T,k),N=R.spaceEquivalent;if(D1(t,T,k)){D=!0,T=s(t,k);continue}let z=t.slice(T+R.charCount,k);if(N<=d&&h1(z,R,m,y,_,d,v))break;if(N>=l){if(A&&D){let U=m$(t,T,k,R,z,E,S);if(U){T=U,D=!1;continue}}let L=e9(t,T,k,R,l-1,l,i,D,E,S,void 0);if(L.processed){T=L.newPos,D=L.wasBlank;continue}}else break}return T}function OZ(t,i,l,c){let d=l$(t,l,c,{inline:!1,list:!0});if(d.length>0)return!i&&d.length===1&&d[0].type===M.paragraph?d[0].children:d;let m=z$(l,!0,()=>S1(t,0,t.length,l,c));return i&&m.length>0?[{type:M.paragraph,children:m}]:m}function LZ(t,i,l,c){let d=F6(t,0);if(!(d&&(d.endPos>=t.length||t[d.endPos]===" ")))return OZ(t,i,l,c);let m=d.endPos<t.length?d.endPos+1:d.endPos,y=t.slice(m),_=OZ(y,i,l,c),v=[d];return d.endPos<t.length&&v.push({type:M.text,text:" "}),v.push(..._),v}function FZ(t,i){if(!t[0])return!1;let l=t[0].indexOf(i);if(l===-1)return!1;let c=l+i.length;if(c>=t[0].length)return!1;let d=t[0][c];return d?b(d)===o$:!1}function TZ(t,i,l){if(t.length===0)return!1;let c=t[t.length-1],d=i.trim();if(!r(d,"=")&&!r(d,"-")||d.length<1||!/^[=-]+[ \t]*$/.test(d))return!1;let m=[],y="";if(c.type===M.paragraph){let v=c;m=v.children,y=v.children.map(E=>E.type===M.text?E.text:"").join("").trim()}else if(c.type===M.text){let v=[],E=t.length-1;for(;E>=0&&t[E].type===M.text;)v.unshift(t[E]),E--;v.length>0&&(m=v,y=v.map(S=>S.text).join("").trim())}if(!y)return!1;let _=d[0]==="="?1:2;if(c.type===M.paragraph)t.pop();else if(c.type===M.text)for(;t.length>0&&t[t.length-1].type===M.text;)t.pop();return t.push(G$(_,m,y,l.slugify)),!0}function e9(t,i,l,c,d,m,y,_,v,E,S,A){let T=c.spaceEquivalent,D=t.slice(i+c.charCount,l);if(T>=d+4){let z=n9(t,i);if(z){let L=z,U=k$(L.text||"",m);return y.push({...L,text:U}),{processed:!0,newPos:L.endPos,wasBlank:!1}}}let k=T-(m-1);if(T+1>=m&&k<=3){let z=i+c.charCount;if(z<l){let L=t[z];if(L==="`"||L==="~"){let U=d$(t,z,v,E);if(U){let Y=U,X=k$(Y.text||"",m-1);return y.push({...Y,text:X,endPos:Y.endPos}),{processed:!0,newPos:Y.endPos,wasBlank:!1}}}if(L==="|"){let U=SZ(t,z,v,E);if(U){let Y=U;return y.push(Y),{processed:!0,newPos:Y.endPos,wasBlank:!1}}}}}if(D.length>0&&(D[0]==="-"||D[0]==="*"||D[0]==="+"||D[0]>="0"&&D[0]<="9")&&/^([-*+]|\d{1,9}[.)])\s+/.test(D)){let z=f9(D,0,D.length,v,E);return y.push({type:M.text,text:`
55
+ `},...z),{processed:!0,newPos:s(t,l),wasBlank:!1}}let R=tZ(t,i,y,D,v,E);if(R!==null)return{processed:!0,newPos:R,wasBlank:!1};let N=l$(D,v,E,{inline:!1,list:!0});if(N.length>0){if(S&&N[0].type===M.paragraph){let z=N[0];y.push({type:M.text,text:`
56
+ `},...z.children),N.length>1&&y.push(...N.slice(1))}else if(!_&&N[0].type===M.paragraph&&y.length>0){let z=y[y.length-1],L=N[0];z.type===M.paragraph?z.children.push({type:M.text,text:`
57
+ `},...L.children):z.type===M.heading?y.push(...L.children):x9(y)?y.push(...N):y.push({type:M.text,text:" "},...L.children),N.length>1&&y.push(...N.slice(1))}else y.push(...N);return{processed:!0,newPos:s(t,l),wasBlank:!1}}if(_){let z=z$(v,!0,()=>S1(D,0,D.length,v,E));y.push({type:M.paragraph,children:z})}else t9(D,y,v,E);return{processed:!0,newPos:s(t,l),wasBlank:!1}}function h$(t,i,l,c){if(l.inline)return null;var d=l.inList;if(l.inList=!0,i>0){var m=b(t,i-1);if(m!==X0&&m!==B0)return l.inList=d,null}var y=I(t,i),_=o(t,i,y);if(_.spaceEquivalent>3&&!l.inList)return l.inList=d,null;var v=t.slice(i,y),E=_.charCount,S=v.slice(E),A=L$(S);if(!A)return l.inList=d,null;var{match:T,ordered:D,listItemRegex:k}=A,R=_.spaceEquivalent,N=D?parseInt(T[1],10):void 0,z=D?T[2]:void 0,L=D?void 0:T[1],U=D?T[3]==="":T[2]==="";function Y(ge,Oe){if(ge===0)return!0;var Ue=b(t,ge-1);if(Ue!==X0)return!1;if(!Oe)return!0;for(var Ae=ge-2;Ae>=0;){var Ne=b(t,Ae);if(Ne!==g&&Ne!==u)break;Ae--}return Ae<0||b(t,Ae)===X0}if(U&&!Y(i,!0))return l.inList=d,null;if(D&&N!==1&&!Y(i,!1)||!D&&FZ(T,L))return null;var X=T.index||0,Q=D?X+T[1].length+T[2].length+1:U?X+T[1].length:X+T[1].length+1,G=i+E+Q,te=K$(t,G,y,R,Q),J=te.contentStartColumn,le=R+X+T[1].length,ae=D?le+T[2].length+1:U?le:le+1,se=[],_e=[];function ye(ge,Oe,Ue){return Ue?ge>=Oe:ge>Oe}function Ee(){return se[se.length-1]}function K(){return _e[_e.length-1]??J}function he(ge,Oe){let Ue=yZ(Oe),Ae=l.inList;l.inList=!0;let Ne=h$(t,ge,l,c);return l.inList=Ae,Ne?(Ue.push(Ne),Ne):null}for(var ee=s(t,y),Re=ee,Te=!1;Re<t.length;){var H=I(t,Re),ie=t.slice(Re,H);if(ie.trim()===""){for(var ue=s(t,H);ue<t.length;){var ve=b(t,ue);if(ve!==X0){if(!_6.has(t[ue]))break}ue++}var pe=I(t,ue),be=t.slice(ue,pe),xe=o(t,ue,pe),De=be.slice(xe.charCount);if(h1(De,xe,D,L,z,R,k))Te=!0;else{var Me=m$(t,ue,pe,xe,De,l,c);if(Me){for(var Ye=Me;Ye<t.length&&b(t,Ye)===X0;)Ye++;if(Ye<t.length){var ut=I(t,Ye),je=t.slice(Ye,ut),yt=o(t,Ye,ut),Rt=je.slice(yt.charCount);h1(Rt,yt,D,L,z,R,k)&&(Te=!0)}}}break}var ze=o(t,Re,H),ct=ie.slice(ze.charCount),$t=L$(ct);if(!$t)break;var gn=$t.match;if(D){if(gn[2]!==z)break}else if(gn[1]!==L)break;Re=s(t,H)}var Ke=D?T[3]:T[2];Ke=Ke.trimStart();for(var Gt=i+E+(T.index||0),Ot=D?Gt+T[1].length+T[2].length:Gt+T[1].length,tn=Ot;tn<t.length;){var ve=b(t,tn);if(ve!==g&&ve!==u)break;tn++}for(var St=0,st=Ot;st<y;){var ve=b(t,st);if(ve===u)St+=4-St%4;else if(ve===g)St++;else break;st++}var _n=!1;if(Ot<t.length&&b(t,Ot)===u){for(var Ht=1,Mt=Ot+1;Mt<t.length&&b(t,Mt)===u;)Ht++,Mt++;Ht>=2&&(Ke=" "+Ke,_n=!0)}D||(U=U&&St===0),St>=4&&!_n&&(Ke=" ".repeat(St-1)+Ke.trimStart()),Ke.trim();let Dt=Te;if(!Te&&ee<t.length)for(var cn=ee;cn<t.length;){var fn=I(t,cn),Gn=t.slice(cn,fn);if(D1(t,cn,fn)){for(var nt=s(t,fn);nt<t.length;){var dn=I(t,nt);if(D1(t,nt,dn))nt=s(t,dn);else break}if(nt<t.length){var vt=o(t,nt,t.length),ht=vt.spaceEquivalent;if(ht>=R){for(var $e=t.slice(nt,I(t,nt)),tt=$e.slice(vt.charCount).match(k),nn=tt&&(D?tt[2]===z:tt[1]===L),hn=null,kt=ee;kt<cn;kt=I(t,kt)+1){var at=I(t,kt),Ft=o(t,kt,at),At=t.slice(kt,at).slice(Ft.charCount).match(k),xn=At&&Ft.spaceEquivalent>R&&Ft.spaceEquivalent>=J&&(D?At[2]===z:At[1]===L);if(xn){var Sn=Ft.spaceEquivalent+1,pt=D?Sn+At[1].length+At[2].length+1:Sn+At[1].length+1,an=kt+Ft.charCount+At[0].length,Fn=K$(t,an,at,Sn,pt-Sn);hn=Fn.contentStartColumn;break}}var Rn=St>=5?ae:J;!nn&&ht>=Rn&&(hn===null||ht+1<hn)&&(Dt=!0)}}break}var Xn=o(t,cn,fn),rn=Xn.spaceEquivalent,ln=Gn.slice(Xn.charCount),Xt=ln.match(k),Lt=Xt&&(D?Xt[2]===z:Xt[1]===L);if(Lt&&rn<=R)break;cn=s(t,fn)}var Ge=Ke;if(r(Ke,"```")||r(Ke,"~~~")){var An=D?T[1].length+T[2].length+1:T[1].length+1,Tn=RZ(t,Ke,ee,An);Ge=Tn.content,ee=Tn.endPos}var qt=!U&&Ke.trim()===""&&St>0&&St<5;if(!Dt)for(var Ct=Ge.length>0?Ge[0]:"",ft=Ct===">",i=ee;i<t.length;){var y=I(t,i),v=t.slice(i,y);if(v.trim()==="")break;var _=o(t,i,y);if(_.spaceEquivalent<ae)break;var S=v.slice(_.charCount);if(_.spaceEquivalent<=R&&h1(S,_,D,L,z,R,k)||R$(S)&&_.spaceEquivalent>R)break;var sn=S.length>0?S[0]:"",Kn=sn===">"&&ft;if(sn===">"&&!Kn||sn==="#"||r(S,"```")||r(S,"~~~"))break;Ge+=`
58
+ `+S,ee=i=s(t,y)}if(se.push(LZ(Ge,Dt,l,c)),_e.push(J),Dt&&(St>=5||qt)){let ge=Ee();ee=HZ(t,ge,ae,ee,R,D,L,z,k,l,c,!0)}else if(!Dt){let ge=ae-1;for(;ee<t.length;){let Oe=I(t,ee),Ue=t.slice(ee,Oe),Ae=o(t,ee,Oe),Ne=Ae.spaceEquivalent,Ve=Ue.slice(Ae.charCount);if(Ue.trim()===""||Ne<=R&&h1(Ve,Ae,D,L,z,R,k)||R$(Ve)&&Ne>R||Ne<ge)break;let dt=Ee(),Le=e9(t,ee,Oe,Ae,ge,J,dt,!1,l,c,!0);if(Le.processed)ee=Le.newPos;else break}}for(var We=!1;ee<t.length;){let ge=I(t,ee),Oe=t.slice(ee,ge),Ue=o(t,ee,ge),Ae=Ue.charCount,Ne=Ue.spaceEquivalent;if(Oe.trim()==="")Te=!0,We=!0,ee=s(t,ge);else if(Ne<R){let Ve=Oe.slice(Ae);if(Ve.startsWith("<")&&jZ(t,ee,Ae,R,Ne,c))break;let dt=Ve.trim();if(dt.length>0&&se.length>0&&!I9(dt[0])&&!h1(Ve,Ue,D,L,z,R,k)){let Le=Ee();if(Le.length>0){let et=Le[Le.length-1];if(et.type===M.paragraph||et.type===M.text){t9(Ve,Le,l,c),We=!1,ee=s(t,ge);continue}}}break}else{let Ve=Oe.slice(Ae);if(se.length>0){let He=_e[se.length-1]||J;if(Ne+1>=He&&!h1(Ve,Ue,D,L,z,R,k)){let bt=Ee();if(bt.length>0&&TZ(bt,Ve,c)){ee=s(t,ge);continue}}}if(X$(t,ee))break;if(We){let He=m$(t,ee,ge,Ue,Ve,l,c);if(He){ee=He,We=!1;continue}}if(Ne<=R){if(Ve.startsWith("<")&&jZ(t,ee,Ae,R,Ne,c))break;if(!h1(Ve,Ue,D,L,z,R,k)){if(Ne===R&&!We){let He=Ve.trim();if(He.length>0&&!I9(He[0])){let bt=g9(t,ee,l,c);if(bt&&bt.type!==M.paragraph)break;let Bt=Ee();if(Bt.length>0&&!x9(Bt)){t9(Ve,Bt,l,c,!1),We=!1,ee=s(t,ge);continue}}}break}}if(qZ(se,U,We,Ke))break;let dt=L$(Ve),Le=dt?dt.match:null,et=Le&&(D?Le[2]===z:Le[1]===L);if(et&&Ne>3&&We)break;if(et&&Ne<=R+3){if(Ne>=4&&We)break;if(Ne===R){let He=D?Le[3]:Le[2];if(He=He.trimStart(),ee=o9(t,se,_e,He,ee,ge,Ne,Ae,Le,D,Te,l,c).newCurrentPos,We=!1,He.trim()===""){let bt=se[se.length-1],Bt=K();ee=HZ(t,bt,Bt,ee,R,D,L,z,k,l,c)}continue}if(Ne>R){if(We){let Ie=D?Le[3]:Le[2];Ie=Ie.trimStart(),ee=o9(t,se,_e,Ie,ee,ge,Ne,Ae,Le,D,Te,l,c).newCurrentPos,We=!1;continue}let He=Ee(),bt=Ne+1,Bt=ye(bt,K(),x9(He));if(Bt){let Ie=he(ee,He);if(Ie){ee=Ie.endPos,We=!1;continue}}if(!Bt&&et){let Ie=D?Le[3]:Le[2];if(Ie=Ie.trimStart(),!Te){let Kt=s(t,ge);for(;Kt<t.length;){let pn=I(t,Kt),Pt=t.slice(Kt,pn),zt=o(t,Kt,pn),mi=zt.spaceEquivalent;if(Pt.trim()===""){let zn=s(t,pn);if(zn<t.length){let gi=o(t,zn,t.length).spaceEquivalent,Oa=Ne+(D?Le[1].length+Le[2].length+1:Le[1].length+1);if(gi+1>Oa)break}break}else if(mi<=R){let zn=Pt.slice(zt.charCount).match(k);if(zn&&(D?zn[2]===z:zn[1]===L)&&mi<=R)break}Kt=s(t,pn)}}ee=o9(t,se,_e,Ie,ee,ge,Ne,Ae,Le,D,Te,l,c).newCurrentPos,We=!1;continue}else if(!Bt&&!et)break;{let Ie=Ee(),Kt=Ie.length===0;if(Kt&&qZ(se,U,We,Ke))break;let pn=Ie.some(zt=>zt.type===M.codeBlock||zt.type===M.paragraph||zt.type===M.blockQuote||zt.type===M.orderedList||zt.type===M.unorderedList||zt.type===M.heading),Pt=Kt&&se.length===1?ae:J;if(pn?Ne>=Pt:Ne>Pt){let zt=e9(t,ee,ge,Ue,Pt,J,Ee(),We,l,c,void 0);if(zt.processed){We=zt.wasBlank,ee=zt.newPos;continue}}else break}}else if(Ne===R){if(!D&&Le&&FZ(Le,Le[1]))break;let He=D?Le[3]:Le[2];He=He.trimStart(),ee=o9(t,se,_e,He,ee,ge,R,Ae,Le,D,Te,l,c).newCurrentPos,We=!1}}else if(Ne>R){let He=Ee();if(R$(Ve)){let Bt=Ne+1;if(ye(Bt,K(),x9(He))){let Ie=he(ee,He);if(Ie){ee=Ie.endPos,We=!1;continue}}if(Ne-R>3){let Ie=He.length>0?He[He.length-1]:null;if(Ie&&(Ie.type===M.paragraph||Ie.type===M.text)){t9(Ve,He,l,c),We=!1,ee=s(t,ge);continue}}else break}else{let Bt=he(ee,He);if(Bt){ee=Bt.endPos,We=!1;continue}}let bt=J;if(x9(He)?Ne>=bt-1:Ne>bt-1){let Bt=e9(t,ee,ge,Ue,bt-1,J,Ee(),We,l,c,void 0);if(Bt.processed){We=Bt.wasBlank,ee=Bt.newPos;continue}}else break}else break}}if(Te&&se.length>1&&se[0].length>0&&se[0][0].type!==M.paragraph){for(var wn=1;wn<se.length;wn++)if(se[wn].length>0&&se[wn][0].type===M.paragraph){for(var Nn=!1,Se=0;Se<se[0].length;Se++){var P=se[0][Se].type;if(P===M.codeBlock||P===M.heading||P===M.blockQuote||P===M.orderedList||P===M.unorderedList||P===M.htmlBlock||P===M.breakThematic){Nn=!0;break}}Nn||(se[0]=[{type:M.paragraph,children:se[0]}]);break}}let me=D?{type:M.orderedList,items:se,ordered:!0,start:N}:{type:M.unorderedList,items:se,ordered:!1};return l.inList=d,{...me,endPos:ee}}function SZ(t,i,l,c){if(l.inline)return null;let d=[],m=i;for(;m<t.length;){let k=I(t,m);if(D1(t,m,k))break;let R=t.slice(m,k).trim();if(!(R.indexOf("|")!==-1||d.length>=3&&R&&!I9(R[0])))break;d.push(R),m=s(t,k)}if(d.length<2)return null;let y=k=>k[0]==="|"&&k[k.length-1]==="|"?k.slice(1,-1):k,_=k=>{let R=[],N="",z=!1;for(let L=0;L<k.length;L++){let U=k[L];U==="\\"&&L+1<k.length&&k[L+1]==="|"?(N+="|",L++):U==="`"?(z=!z,N+=U):U==="|"&&!z?(R.push(N.trim()),N=""):N+=U}return R.push(N.trim()),R},v=_(y(d[0]));if(!v.length)return null;let E=_(y(d[1]));if(E.length!==v.length||E.some(k=>!/^:?-+:?$/.test(k)))return null;let S=E.map(k=>{let R=k[0]===":",N=k[k.length-1]===":";return R&&N?"center":R?"left":N?"right":null}),A=k=>z$(l,!0,()=>k.map(R=>S1(R,0,R.length,l,c))),T=A(v),D=d.slice(2).map(k=>{let R=k.indexOf("|")!==-1?_(y(k)):[k.trim()],N=v.length;for(;R.length<N;)R.push("");return R.length=N,A(R)});return{type:M.table,header:T,cells:D,align:S,endPos:m}}var w6=["div","p","section","article","aside","nav","header","footer","main","h1","h2","h3","h4","h5","h6","blockquote","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","td","th","form","fieldset","hr","pre","details","summary","figure","figcaption"],B6=new Set(["pre","script","style","textarea"]);function E9(t){return w6.indexOf(t.toLowerCase())!==-1}function H9(t){return B6.has(t)}function D1(t,i,l){for(var c=i;c<l;c++){let d=b(t,c);if(d!==g&&d!==u&&d!==B0)return!1}return!0}function z$(t,i,l){let c=t.inline;t.inline=i;try{return l()}finally{t.inline=c}}function T$(t,i,l){for(var c=i;c<l;){var d=I(t,c);if(D1(t,c,d))return c;c=d+(d<l?1:0)}return l}function S$(t,i,l){return{type:M.htmlComment,text:t,endPos:i,...l}}function D9(t,i,l,c,d,m,y,_,v){var E=i;if(_&&_.forceBlock&&i&&!m){var S=new RegExp("^<"+t.toLowerCase()+"(\\s[^>]*)?>$","i");S.test(i.trim())&&(E="")}var A=E,T=t.toLowerCase(),D=new RegExp("^<"+T+"[\\s>]","i");if(D.test(A)){var k=A.indexOf(">");if(k!==-1){A=A.slice(k+1);var R="</"+T+">",N=A.indexOf(R);N!==-1&&(A=A.slice(0,N))}}else{var z="</"+T+">",L=A.indexOf(z);L!==-1&&(A=A.slice(0,L))}var U=[];if(A&&_){var Y=v||{inline:!1,inHTML:!0,inAnchor:!1},X=A.trim(),Q=U$.test(X),G=Q$.test(X),te=V$.test(X);if(Q||G||te){var J={...Y,inline:!1,inHTML:!0,inAnchor:Y.inAnchor||T==="a"};U=C9(X,J,_)}else if(X){var le={...Y,inline:!0,inAnchor:Y.inAnchor||T==="a"};U=S1(X,0,X.length,le,_)}}return{type:M.htmlBlock,tag:t,attrs:c||{},rawAttrs:d,children:U,rawText:E,text:E,verbatim:!0,isClosingTag:m,canInterruptParagraph:y,endPos:l}}function P9(t){let i=Q$.test(t),l=U$.test(t),c=Y6.test(t);return i||l&&!c}function WZ(t,i,l,c,d,m,y,_,v,E){if(!_.inHTML&&!_.inline&&!d9(d,`
59
+ `)){let xe=m,De=y.length;for(;xe<De;){let Me=I(y,xe);if(D1(y,xe,Me))break;let Ye=y.slice(xe,Me).trim();if(Ye.length>0&&I9(Ye[0])){let ut=_$(y,xe,_,E);if(ut){xe=ut.endPos;continue}let je=$9(y,xe);if(je){xe=je.endPos;continue}return null}xe=s(y,Me)}}let S=i,A=H9(S);var T=!A&&!q9(i),D=void 0;if(d){var k=d.indexOf(">");if(k!==-1){var R=d.slice(0,k+1);R.indexOf(`
60
+ `)!==-1&&(D=R);for(var N=k,z=1;z<k;z++){var L=R[z];if(L===" "||L===" "||L===`
61
+ `||L===">"){N=z;break}}l=R.slice(N,k)}}var U=l.replace(/^[\s\n\r\t]+/,""),Y=e1(U,i,t,E),X={...Y},Q=!1,G=!1;if(T&&c.length>0){var te="</"+S,J=c.indexOf(te);if(J>=0){for(var le=J+te.length;le<c.length&&(c[le]===" "||c[le]===" ");)le++;if(le<c.length&&c[le]===">"){var ae=c.slice(0,J);P9(ae)?(c=ae,G=!0):Q=!0}}if(!G){var se=c.length-1;if(c[se]===`
62
+ `){for(se--;se>=0&&(c[se]===" "||c[se]===" "||c[se]==="\r");)se--;se>=0&&c[se]===`
63
+ `&&(Q=!0)}}}var _e=A||T&&Q&&!P9(c),ye=c,Ee=ye;if(_e){ye.length>0&&ye[0]===`
64
+ `&&(ye=ye.slice(1),Ee=ye),ye.length>0&&ye[ye.length-1]===`
65
+ `&&(ye=ye.slice(0,-1),Ee=ye);var te="</"+S+">",J=ye.indexOf(te);J!==-1&&(ye=ye.slice(0,J))}let K=ye.match(/^([ \t]*)/),he=K?K[1]:"",ee=new RegExp(`^${he.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gm"),Re=ye.replace(ee,""),Te=U$.test(Re),H=Q$.test(Re),ie=S==="p",ue=V$.test(Re),ve=ie?Te:Te||H||_.inHTML&&ue,pe=[];if(Re)if(ve||ue){let xe={..._,inline:!1,inHTML:!0,inAnchor:_.inAnchor||S==="a"};pe=C9(Re,xe,E)}else{let xe={..._,inline:!0,inAnchor:_.inAnchor||S==="a"};pe=S1(Re,0,Re.length,xe,E)}var be=void 0;return _e&&(D!==void 0?be=D+Ee:be=Ee),{type:M.htmlBlock,tag:_e?i:t,attrs:X,rawAttrs:l,children:pe,rawText:be,text:be,verbatim:_e,canInterruptParagraph:!0,endPos:m}}function _$(t,i,l,c){if(t[i]!=="<")return null;if(l.inline,i+1<t.length){if(t[i+1]==="?"){var d=$$(t,i);if(d&&d.kind==="pi")return S$(d.text||"",d.endPos,{raw:!0})}else if(t[i+1]==="!"){if(i+3<t.length&&t.slice(i,i+4)==="<!--"){l.inline;var m=$$(t,i);if(m&&m.kind==="comment"){var y=m.text||"",_=!1;return y==="<!-->"?(y="",_=!0):y==="<!--->"?(y="-",_=!0):y.startsWith("<!--")&&y.endsWith("-->")&&(y=y.slice(4,-3)),l.inline,S$(y,m.endPos,{endsWithGreaterThan:_})}}var v=$$(t,i);if(v&&(v.kind==="declaration"||v.kind==="cdata"))return S$(v.text||"",v.endPos,{raw:!0})}}if(i+1<t.length){let yi=t[i+1];if(yi===" "||yi===`
66
+ `||yi===" "||yi==="\r")return null}var E=t.indexOf(">",i+1);if(E!==-1){var S=t.slice(i+1,E),A=S.indexOf(" ")!==-1||S.indexOf(" ")!==-1;if(!A&&(r(S,"http://")||r(S,"https://"))||!A&&wZ(S))return null}var T=$9(t,i);if(!T&&!l.inline){for(var D=t.length,k=I(t,i),R=i,N=0;R<k&&N<3&&(t[R]===" "||t[R]===" ");)N++,R++;if(R>=k||t[R]!=="<")return null;if(R+1<k){var He=f$(t,R+1);if(He){var bt=He.tagName,z=E9(bt);if(!z)return null;for(var L=He.nextPos,U=!1,Y=!1,X="",Q=k,G=!1;Q<D&&!G;){for(var te=!1;L<Q;){var J=t[L];if(Y)J===X&&(Y=!1,X=""),(J===`
67
+ `||J==="\r")&&(U=!0),L++,te=!0;else if(J==='"'||J==="'")Y=!0,X=J,L++,te=!0;else if(J===`
68
+ `||J==="\r"){U=!0,L++,te=!0;var le=I(t,L);if(le===L)break;Q=le}else if(J===">"){L++,G=!0;break}else L++,te=!0}if(G)break;if(!te&&L>=Q){var ae=I(t,Q+1);if(ae<=Q)break;Q=ae}else if(L>=Q&&Q<D){var ae=I(t,Q+1);if(ae<=Q)break;Q=ae}else break}if(!U&&G)return null;L>=k&&k<D&&(L=k);var se=z?"type6":"type7",_e=L,ye=T$(t,k+1,D),Ee=t.slice(_e,ye),K=i+1<t.length&&t[i+1]==="/";if(se==="type7"&&Ee.trim()===""){var he=t.slice(i,ye),ee=I(he,0);ee<he.length&&ee++;var Re=he.slice(0,ee);return D9(bt,Re,ye,{},void 0,K,!1,c,l)}var Te=t.slice(i,ye);return D9(bt,Te,ye,{},void 0,K,se==="type6",c,l)}}return null}if(!T)return null;if(E!==-1){var H=t.slice(i+1,E);if((r(H,"http://")||r(H,"https://"))&&(H.indexOf(" ")!==-1||H.indexOf(" ")!==-1))return null}var De=i+(T.isClosing?2:1);if(De<t.length){var ie=t[De],ue=b(ie);if((ue>=97&&ue<=122||ue>=65&&ue<=90)&&De+1<t.length&&t[De+1]===":")return null}if(T.isClosing){var ve=T.attrs.trim();if(ve.length>0)return null;if(!l.inline){for(var D=t.length,k=I(t,i),_e=T.endPos,pe=_e;pe<k&&(t[pe]===" "||t[pe]===" "||t[pe]==="\r");)pe++;var be=pe>=k||t[pe]==="<"&&(function(){var Qi=$9(t,pe);return Qi&&E9(Qi.tagLower)})();if(be){var ye=T$(t,k+1,D),Ee=t.slice(_e,ye);Ee.length>0&&Ee[0]===`
69
+ `&&(Ee=Ee.slice(1));let wa=T.tagLower||T.tagName.toLowerCase();return D9(T.tagName,Ee,ye,e1(T.whitespaceBeforeAttrs+T.attrs,wa,T.tagName,c),T.whitespaceBeforeAttrs+T.attrs,!0,!1,c,l)}}var xe=t.slice(i,T.endPos);return{type:M.htmlSelfClosing,tag:T.tagName,attrs:{},endPos:T.endPos,isClosingTag:!0,rawText:xe}}var De=i+(T.isClosing?2:1);if(De<t.length){var Me=t[De];if(Me===" "||Me===" "||Me===`
70
+ `||Me==="\r")return null}var Ye=T.tagLower,ut=q9(T.tagName);let je=T.tagName.length>0&&T.tagName[0]>="A"&&T.tagName[0]<="Z";if(T.isSelfClosing||ut&&Ye!=="a"){if(T.hasNewline&&!je||!l.inHTML&&!l.inline&&!je)return null;var yt=T.attrs.replace(/\/\s*$/,""),Rt=e1(yt,Ye,T.tagName,c),xe=l.inline?t.slice(i,T.endPos):void 0;let Cn={type:M.htmlSelfClosing,tag:T.tagName,attrs:Rt,endPos:T.endPos};return xe!==void 0&&(Cn.rawText=xe),Cn}if(l.inline){var ze=T.attrs.replace(/\/\s*$/,""),ct=T.whitespaceBeforeAttrs+ze,$t=e1(ze,Ye,T.tagName,c),gn={...$t},Ke=T.endPos,Gt=[];if(!q9(T.tagName)){var Ot=Z6(t,T.endPos,Ye);if(Ot!==null){var tn=t.slice(T.endPos,Ot[0]);tn&&(l.inHTML&&V$.test(tn)||P9(tn)?Gt=C9(tn,{...l,inline:!1,inHTML:!0,inAnchor:l.inAnchor||Ye==="a"},c):Gt=S1(tn,0,tn.length,{...l,inline:!0,inAnchor:l.inAnchor||Ye==="a"},c)),Ke=Ot[1]}}return{type:M.htmlBlock,tag:T.tagName,attrs:gn,rawAttrs:ct,children:Gt,verbatim:!1,endPos:Ke}}if(!l.inline){for(var D=t.length,k=I(t,i),St=T.tagLower,st=H9(St),_n=!st&&E9(T.tagName),Ht=!1,Mt=i;Mt<T.endPos;){if(t[Mt]===">"){Ht=!0;break}Mt++}for(var pe=T.endPos;pe<k&&(t[pe]===" "||t[pe]===" ");)pe++;var Dt=pe>=k||t[pe]===`
71
+ `||t[pe]==="\r"||_n&&pe<k||!Ht;if(st&&Ht&&!T.isClosing){var{tagName:cn,endPos:fn,attrs:Gn}=T,nt=fn;t[nt]===`
72
+ `&&nt++;for(var dn=nt,vt=nt,ht=1,$e=St.length+1;ht>0;){var tt=t.indexOf("<",nt);if(tt===-1){vt=D,nt=D;break}var nn=-1,hn=-1;if(t[tt+1]==="/")hn=tt;else if(tt+$e+1<=D&&(t[tt+1]===St[0]||t[tt+1]===cn[0])){var kt=t.substring(tt+1,tt+$e);kt.toLowerCase()===St&&(t[tt+$e]===" "||t[tt+$e]===">")&&(nn=tt)}if(nn===-1&&hn===-1){nt=tt+1;continue}if(nn!==-1&&(hn===-1||nn<hn))nt=nn+$e+1,ht++;else{for(var at=hn+2;at<D;){var Ft=t[at];if(Ft!==" "&&Ft!==" "&&Ft!==`
73
+ `&&Ft!=="\r")break;at++}if(at+St.length>D)break;var At=t.substring(at,at+St.length);if(At.toLowerCase()!==St){nt=at;continue}for(at+=St.length;at<D;){var xn=t[at];if(xn!==" "&&xn!==" "&&xn!==`
74
+ `&&xn!=="\r")break;at++}if(at>=D||t[at]!==">"){nt=at;continue}var Sn=at+1,pt=I(t,Sn);vt=pt,nt=pt+1,ht--}}for(var an=0;nt+an<D&&t[nt+an]===`
75
+ `;)an++;var Fn=t.slice(i,nt+an),Rn=t.slice(dn,vt),Xn=nt+an;return WZ(T.tagName,T.tagName,Gn,Rn,Fn,Xn,t,l,!1,c)}if(Dt||!Ht){var se=_n?"type6":"type7",_e=T.endPos,ye=T$(t,k+1,D);if(se==="type6"&&!T.isClosing){var rn="</"+(je?T.tagName:T.tagLower||T.tagName.toLowerCase()),ln=t.indexOf(rn,_e);if(ln!==-1){for(var Xt=ln+rn.length;Xt<D&&(t[Xt]===" "||t[Xt]===" ");)Xt++;if(Xt<D&&t[Xt]===">"){var Lt=t.slice(_e,ln),Ge=je||P9(Lt);if(Ge){var An=I(t,Xt+1);ye=An}}}}var Ee=t.slice(_e,ye),Tn=T.whitespaceBeforeAttrs+T.attrs,K=T.isClosing;if(se==="type7"&&Ee.trim()===""){var qt=t.slice(i,T.endPos),Ct=qt.indexOf(`
76
+ `)!==-1;if(Ct)return null;var ft=T.endPos,ee=I(t,ft);ee<t.length&&ee++;var Re=t.slice(i,ee);return D9(T.tagName,Re,ye,{},void 0,K,!1,c,l)}var sn=T.hasNewline,Kn=!Ht;if((sn||Kn)&&se==="type7"){var We=T.endPos,wn=t.slice(i,We),Nn=Ee,Te=wn+Nn;return D9(T.tagName,Te,ye,{},void 0,K,!1,c,l)}let ca=T.tagLower||T.tagName.toLowerCase();var Se=e1(Tn,ca,T.tagName,c),P={...Se};if(se==="type6"){var me=Ee,ge=Ee.indexOf("</"+ca);if(ge>=0){for(var pe=ge+2+T.tagName.length;pe<Ee.length&&(Ee[pe]===" "||Ee[pe]===" ");)pe++;pe<Ee.length&&Ee[pe]===">"&&(me=Ee.slice(0,ge))}if(P9(me))return WZ(T.tagName,T.tagName,Tn,me,t.slice(i,T.endPos),ye,t,l,!1,c)}var Oe=Ee;Oe.length>0&&Oe[0]===`
77
+ `&&(Oe=Oe.slice(1));for(var Ue=Oe.split(`
78
+ `),Ae=1/0,Ne=0;Ne<Ue.length;Ne++){var Ve=Ue[Ne];if(Ve.trim().length!==0){for(var N=0;N<Ve.length&&(Ve[N]===" "||Ve[N]===" ");)N++;N<Ae&&(Ae=N)}}if(Ae>0&&Ae<1/0){for(var dt=[],Le=0;Le<Ue.length;Le++){var et=Ue[Le];et.trim().length===0?dt.push(et):dt.push(et.slice(Ae))}Oe=dt.join(`
79
+ `)}return D9(T.tagName,Oe,ye,P,Tn,K,se==="type6",c,l)}}if(l.inline)return null;var He=f$(t,i+1);if(!He)return null;var bt=He.tagName;if(!q9(bt))return null;let Bt=He.tagLower;for(var Ie=He.nextPos,Kt=t.length;Ie<Kt&&T0(t[Ie]);)Ie++;for(var pn=Ie;Ie<Kt&&t[Ie]!==">";)Ie++;if(Ie>=Kt)return null;let Pt=t.slice(pn,Ie).trim(),zt=Ie+1;for(;zt<Kt&&T0(t[zt]);)zt++;let mi="</"+Bt+">",zn=t.toLowerCase().indexOf(mi,zt);if(zn!==-1&&t.slice(zt,zn).trim())return null;Ie++;let gi=Ie;for(;Ie<Kt&&T0(t[Ie]);)Ie++;Ie<Kt&&t[Ie]===`
80
+ `&&Ie++;let Oa=e1(Pt,bt,bt,c);return{type:M.htmlSelfClosing,tag:bt,attrs:Oa,endPos:gi}}function N6(t,i){if(t[i]!=="<")return null;var l=t.length,c=!1,d=i+1;i+1<l&&t[i+1]==="/"&&(c=!0,d=i+2);var m=f$(t,d);if(!m)return null;var{tagName:y,tagLower:_,nextPos:v}=m;if(v<l){var E=t[v];if(E===">"||E==="/"){var S=E===">"?v+1:v+2;if(E==="/"&&(v+1>=l||t[v+1]!==">"))return null;var A=E==="/",T=E9(y),D=!H9(_)&&!T;return{kind:"tag",tagNameLower:_,tagName:y,isClosing:c,isSelfClosing:A,hasNewline:!1,type6Candidate:T,type7Candidate:D,endPos:S,attrs:"",whitespaceBeforeAttrs:""}}}for(var k=v,R=!1;v<l;){var N=t[v],z=b(t,v);if(!(N===" "||N===" "))if(z===10||z===13)R=!0;else break;v++}for(var L=t.slice(k,v),U=v,Y=0,X=!1,Q=!1,G=0;U<l;){var te=t[U],z=b(t,U);if(G===1){if(te==='"'){if(U+1<l&&t[U+1]==='"')return null;G=0}U++}else if(G===2)te==="'"&&(G=0),U++;else if(te==='"')G=1,U++;else if(te==="'")G=2,U++;else if(te==="{"||te==="}"&&Y>0)Y+=te==="{"?1:-1,U++;else if(te===">"&&Y===0){if(U>v){for(var J=U-1;J>=v;){var le=t[J];if(le!==" "&&le!==" ")break;J--}J>=v&&t[J]==="/"&&(X=!0,Q=J<U-1)}U++;break}else{if(te==="*"||te==="#"||te==="!"){for(var ae=U+1;ae<l;){var se=t[ae];if(se==="="||se===" "||se===" "||se===`
81
+ `||se==="\r"||se===">")break;ae++}if(ae<l&&t[ae]==="=")return null}(z===10||z===13)&&(R=!0),U++}}if(U>l||t[U-1]!==">"||G===1||G===2||Y>0||Q)return null;var _e=U-1;X&&_e--;for(var ye=t.slice(v,_e),Ee=X,K=-1,he=!1,ee="",Re=!1,Te=0;Te<ye.length;Te++){var N=ye[Te];if(he)N===ee&&(he=!1,K=Te,ee="",Re=!1);else if(N==='"'||N==="'")he=!0,ee=N,Re=!1;else if(N==="=")Re=!0;else if(K!==-1&&Te===K+1){var z=N.charCodeAt(0);if(Z9(z))return null}else{if(Re&&!he&&(N==="*"||N==="#"||N==="!"))return null;T0(N)&&(Re=!1)}}var H=E9(y),ie=!H9(_)&&!H;return{kind:"tag",tagNameLower:_,tagName:y,isClosing:c,isSelfClosing:Ee,hasNewline:R,type6Candidate:H,type7Candidate:ie,endPos:U,attrs:ye,whitespaceBeforeAttrs:L}}function $$(t,i){if(i>=t.length||t[i]!=="<")return null;var l=t.length;if(i+1>=l)return null;var c=t[i+1];if(c==="!"){if(i+4<=l&&t.slice(i,i+4)==="<!--"){var d=i+4;if(d<l&&t[d]===">")return{kind:"comment",hasNewline:!1,endPos:d+1,text:t.slice(i,d+1),raw:!0};if(d+1<l&&t[d]==="-"&&t[d+1]===">")return{kind:"comment",hasNewline:!1,endPos:d+2,text:t.slice(i,d+2),raw:!0};for(;d+2<l;){if(t.slice(d,d+3)==="-->")return{kind:"comment",hasNewline:!1,endPos:d+3,text:t.slice(i,d+3),raw:!0};d++}return null}if(i+9<=l&&t.slice(i,i+9)==="<![CDATA["){for(var d=i+9;d+2<l;){if(t.slice(d,d+3)==="]]>")return{kind:"cdata",hasNewline:!1,endPos:d+3,text:t.slice(i,d+3),raw:!0};d++}return null}if(i+2<l&&Z9(t.charCodeAt(i+2))){for(var d=i+2;d<l&&t[d]!==">";)d++;return d>=l?null:{kind:"declaration",hasNewline:!1,endPos:d+1,text:t.slice(i,d+1),raw:!0}}return null}if(c==="?"){for(var d=i+2;d+1<l;){if(t.slice(d,d+2)==="?>")return{kind:"pi",hasNewline:!1,endPos:d+2,text:t.slice(i,d+2),raw:!0};d++}return null}return N6(t,i)}function b6(t,i,l){let c=t.length,d=i,m=d<c&&t[d]==="<";m&&d++;let y=d,_=y;if(y>=c){if(!m)return null;_=y}else{if(l>0&&y<c&&t[y]===`
82
+ `)return null;for(;_<c&&!(m&&t[_]===">");){if(t[_]===`
83
+ `){let J=_+1;if(J>=c||J<c&&t[J]===`
84
+ `)break;let le=J;for(;le<c&&(t[le]===" "||t[le]===" ");)le++;if(le<c&&(t[le]==='"'||t[le]==="'"||t[le]==="(")||le<c&&t[le]==="[")break;if(le<c){let ae=t[le];if(ae==="="||ae==="-"||ae==="_"||ae==="*"||ae==="#"||ae===">"||ae==="`"||ae==="~"||ae==="["||ae>="0"&&ae<="9")break;if(ae>="a"&&ae<="z"){let se=le+1;for(;se<c&&se<le+32&&(t[se]>="a"&&t[se]<="z"||t[se]>="A"&&t[se]<="Z"||t[se]>="0"&&t[se]<="9"||t[se]==="+"||t[se]==="."||t[se]==="-");)se++;if(!(se<c&&t[se]===":"))break}}_=le;continue}if(!m&&(t[_]===" "||t[_]===" ")){let J=_+1;for(;J<c&&(t[J]===" "||t[J]===" ");)J++;if(J<c&&(t[J]==='"'||t[J]==="'"||t[J]==="("))break;if(J<c&&t[J]===`
85
+ `){let le=J+1;if(le<c&&t[le]===`
86
+ `)break;let ae=le;for(;ae<c&&(t[ae]===" "||t[ae]===" ");)ae++;if(ae<c&&(t[ae]==='"'||t[ae]==="'"||t[ae]==="("))break}}_++}}if(m&&(_>=c||t[_]!==">"))return null;let v=t.slice(y,_),E=[],S=0;for(let J=0;J<=v.length;J++)if(J===v.length||v[J]===`
87
+ `){let le=v.slice(S,J);le=le.trim(),(le.length>0||E.length===0)&&E.push(le),J<v.length&&E.push(`
88
+ `),S=J+1}v=E.join(""),v=v.trim(),d=m?_+1:_;var A=!1;if(d<c&&t[d]===`
89
+ `){for(var T=d+1,D=T;D<c&&(t[D]===" "||t[D]===" ");)D++;if(D<c){let J=t[D];if((J==="["||J==="="||J==="-"||J==="_"||J==="*"||J==="#"||J===">"||J==="`"||J==="~"||J>="0"&&J<="9")&&(A=!0),!A&&J!=="="&&J!=="-"){var k=I(t,D);if(k<c){for(var R=k+1,N=R;N<c&&(t[N]===" "||t[N]===" ");)N++;if(N<c){var z=t[N];(z==="="||z==="-")&&(A=!0)}}}}}if(!A&&d<c&&(t[d]==='"'||t[d]==="'"||t[d]==="("))return null;let L=0;for(;d<c&&!A;){let J=t[d];if(J===`
90
+ `){if(L++,L>1)break;d++;var U=d;if(d=N0(t,d),d<c&&t1(t[d])&&t[d]!==`
91
+ `){d=U-1;break}if(d<c){let le=t[d];if(le==="["||le==="="||le==="-"||le==="_"||le==="*"||le==="#"||le===">"||le==="`"||le==="~"||le>="0"&&le<="9"){A=!0,d=U-1;break}}}else if(J===" "||J===" ")d++;else{if(t1(J))break;break}}let Y,X=d;if(d<c){let J=t[d];if(J==='"'||J==="'"){d++;let le=d,ae=!1,se=!1;for(;d<c&&t[d]!==J;)if(t[d]===`
92
+ `){if(se){ae=!0;break}se=!0,d++}else se=!1,t[d]==="\\"&&d+1<c&&d++,d++;if(ae)return null;if(d<c&&t[d]===J){Y=t.slice(le,d),X=d+1,d=X;for(var Q=d;Q<c&&(t[Q]===" "||t[Q]===" ");)Q++;if(Q<c&&t[Q]!==`
93
+ `&&t[Q]!=="\r")return null;d=Q}}else if(J==="("){d++;let le=d,ae=1,se=!1,_e=!1;for(;d<c&&ae>0;)if(t[d]===`
94
+ `){if(_e){se=!0;break}_e=!0,d++}else _e=!1,t[d]==="\\"&&d+1<c?d++:t[d]==="("?ae++:t[d]===")"&&ae--,d++;if(se)return null;ae===0&&(Y=t.slice(le,d-1),X=d,d=X)}}if(d=N0(t,d),d<c&&t[d]!==`
95
+ `)for(var G=d;G<c&&t[G]!==`
96
+ `;){if(t[G]!==" "&&t[G]!==" ")return null;G++}if(Y===void 0&&d<c&&t[d]!==`
97
+ `)for(var te=d;te<c&&t[te]!==`
98
+ `;){if(t[te]!==" "&&t[te]!==" ")return null;te++}return{endPos:d<c&&t[d]===`
99
+ `?d+1:d,target:v,title:Y}}function y6(t,i){let l=i,c=l,d=!1;for(;c<t.length;){let k=c===0||t[c-1]===`
100
+ `;if(c+1<t.length&&t[c]===`
101
+ `&&t[c+1]===`
102
+ `&&c>l){let R=c+2;for(;R<t.length&&(t[R]===" "||t[R]===" ");)R++;if(R<t.length&&t[R]!==`
103
+ `&&R-(c+2)<4){d=!0;break}}if(k&&r(t,"[^",c)){let R=c+2;for(;R<t.length&&t[R]!=="]";)R++;if(R<t.length&&t[R]==="]"&&R+1<t.length&&t[R+1]===":")break}c++}let m=c,y=i;var _=[];let v=y,E=0,S=!1;for(;v<m;){let k=v;for(;k<m&&t[k]!==`
104
+ `;)k++;if(E===0){let R=k;for(;R>v&&(t[R-1]===" "||t[R-1]===" ");)R--;let N=t.slice(v,R);_.push(N),S=N.length===0}else{let R=0,N=v;for(;N<k&&N<v+4&&t[N]===" ";)R++,N++;let z=!1;for(let U=v;U<k;U++)if(t[U]!==" "&&t[U]!==" "&&t[U]!=="\r"){z=!0;break}let L=!z;R>=4&&S?_.push(t.slice(v,k)):R===4&&!S?_.push(t.slice(v+4,k)):_.push(t.slice(v,k)),S=L}k<m&&t[k]===`
105
+ `?(_.push(`
106
+ `),v=k+1):v=m,E++}let A=_.join("");d&&(A=A.replace(/\n$/,""));for(var T=A.length;T>0;){var D=A[T-1];if(D===`
107
+ `||D===" ")T--;else break}return T<A.length&&(A=A.slice(0,T)),{endPos:c,target:A,title:void 0}}function O9(t,i,l,c,d){if(t[i]!=="[")return null;var m=i+1<t.length&&t[i+1]==="^";if(d?!m:m)return null;for(var y=i;y>0&&t[y-1]!==`
108
+ `;)y--;if(o(t,y,i).spaceEquivalent>=4||l.inline)return null;var _=i+(d?2:1),v=t.length,E=K6(t,_,v,"]");if(E===-1)return null;var S=t.slice(_,E);if(S.length>999)return null;for(var A=!1,T=!1,D=!1,k=0;k<S.length;k++){var R=S[k];if(R==="\\"&&k+1<S.length){k++;continue}var N=b(R);N===L1||N===V9?T=!0:N===X0||N===B0?D=!0:N!==g&&N!==u&&(A=!0)}if(!A||T)return null;var z=E+1;if(D){var L=b(t,_),U=b(t,E-1);if(L===X0||L===B0||U===X0||U===B0||z>=v||t[z]!==":")return null}else if((z>=v||t[z]!==":")&&(z=N0(t,z),z<v&&b(t,z)===X0&&(z=N0(t,z+1)),z>=v||t[z]!==":"))return null;z++;for(var Y=0;z<v;){var X=b(t,z);if(X===X0){if(++Y>1)break;z=N0(t,z+1)}else if(X===g||X===u)z++;else break}let Q=d?y6(t,z):b6(t,z,Y);if(!Q)return null;let G=BZ(S),te=l.refs||{},J=d?`^${G}`:G;return te[J]||(te[J]={target:Z$(Q.target.trim()),title:Q.title?Z$(Q.title):void 0},l.refs=te),{type:d?M.footnote:M.ref,endPos:Q.endPos}}function xZ(t,i,l){for(var c=[],d=0;d<i.length;){var m=i[d];if(!m||m.type!=="*"&&m.type!=="_"&&m.type!=="~"&&m.type!=="="){d++;continue}if(!m.canClose||!m.active){d++;continue}for(var y=m.type==="*"?0:m.type==="_"?1:m.type==="~"?2:3,_=y*6+m.length%3*2+(m.canOpen?1:0),v=c[_]!==void 0?c[_]:-1,E=-1,S=m.type,A=m.inAnchor,T=m.canOpen,D=m.length,k=D%3,R=d-1;R>v;R--){var N=i[R];if(!(!N||!N.active||N.type!==S||!N.canOpen||N.inAnchor!==A)){var z=N.length;if(!T&&!N.canClose||k===0||(z+D)%3!==0){E=R;break}}}if(E>=0){var L=i[E],z=L.length,U=z>=2&&D>=2,Y=U?2:1;if(Y>z||Y>D){d++;continue}var X=L.nodeIndex,Q=m.nodeIndex,G=X+1,te=Q,J=t.slice(G,te);if(J.length>0){var le=te-G;t.splice(G,le);for(var ae=0;ae<i.length;ae++)i[ae].nodeIndex>G&&(i[ae].nodeIndex-=le);Q>G&&(Q-=le)}var se=L.type==="~"?"del":L.type==="="?"mark":U?"strong":"em",_e={type:M.textFormatted,tag:se,children:J},ye=t[X];if(!ye||!ye.text){L.active=m.active=!1;continue}var Ee=ye.text.length<=Y;if(Ee){t.splice(X,1);for(var ae=0;ae<i.length;ae++)i[ae].nodeIndex>X&&i[ae].nodeIndex--;Q>X&&Q--}else ye.text=ye.text.slice(Y);var K=t[Q];if(!K||!K.text){L.active=m.active=!1;continue}var he=K.text.length<=Y;if(he){t.splice(Q,1);for(var ae=0;ae<i.length;ae++)i[ae].nodeIndex>Q&&i[ae].nodeIndex--}else K.text=K.text.slice(Y);var ee=Ee?X<Q?Q-1:X:X+1;(ee<0||ee>t.length)&&(ee=ee<0?0:t.length),t.splice(ee,0,_e);for(var ae=0;ae<i.length;ae++)i[ae].nodeIndex>=ee&&i[ae].nodeIndex++;for(var ae=E+1;ae<d;ae++)i[ae].active=!1;Ee?L.active=!1:(L.length-=Y,L.length===0&&(L.active=!1)),he?(m.active=!1,d++):(m.length-=Y,m.length===0&&(m.active=!1,d++))}else c[_]=d-1,!m.canOpen&&(m.active=!1),d++}for(var Re=0,R=0;R<i.length;R++)i[R].active&&(i[Re++]=i[R]);i.length=Re}function k9(t,i,l){var c=[],d=0,m=-3,y=m;if(i.inline)return S1(t,0,t.length,i,l);if(d===0&&t.startsWith("---")){var _=M6(t,d);_&&(c.push(_),d=_.endPos)}for(;d<t.length;){for(;d<t.length&&t[d]===`
109
+ `;)d++;if(d>=t.length)break;y=m;let A=t[d],T=g9(t,d,i,l);if(T){if(T.type===M.codeBlock){var v=A==="`"||A==="~";if(!v&&(A===" "||A===" ")){let L=I(t,d),U=o(t,d,L);v=U.spaceEquivalent<=3&&d+U.charCount<t.length&&(t[d+U.charCount]==="`"||t[d+U.charCount]==="~")}}if(T.type===M.htmlComment){c.push(T);let L=d;d=T.endPos;let U=I(t,L);if(d<U){let Y=t.slice(d,U);Y.trim().length>0&&c.push({type:M.text,text:Y}),d=U,d<t.length&&t[d]===`
110
+ `&&d++}continue}if(T.type===M.htmlBlock||T.type===M.htmlSelfClosing){if(!(T.type===M.htmlSelfClosing&&T.isClosingTag===!0&&!i.inline&&!i.inHTML)){c.push(T),d=T.endPos;continue}}else{c.push(T),d=T.endPos;continue}}let D=y!==m?y:d;if(y===m){if(T0(A)){let z=I(t,d),L=o(t,d,z),U=d+L.charCount;L.spaceEquivalent<=3&&U<t.length&&t[U]==="["?D=U:D=-1}else A==="["?D=d:D=-1;y=D}if(D>=0&&D+1<t.length&&t[D+1]==="^"&&(D=-1),D>=0){let z=O9(t,D,i,l,!1);if(z){c.push(z),d=z.endPos;continue}let L=Q6(t,D,d===0);if(L.shouldSkip){d=L.newPos;continue}}let k=NZ(t,d,i,l);if(k){c.push(k),d=k.endPos;continue}let R=d;if(T0(t[R])){let z=I(t,d),L=o(t,d,z);R=d+L.charCount}if(R<t.length&&t[R]==="["&&R+1<t.length&&t[R+1]==="^"){let z=O9(t,R,i,l,!0);if(z){d=z.endPos;continue}}let N=C$(t,d,i,l);if(N){c.push(N),d=N.endPos;continue}d++}let E=i.refs||{},S={};for(let A in E)S[A]=E[A];return c9(S)?[{type:M.refCollection,refs:S},...c]:c}function q$(t,i,l){var c=0,d=!0;let m=t.length;for(;c<m;){for(var y=0;c<m&&b(t,c)===X0;)y++,c++;if(c>=m)break;y>0&&(d=!0);let U=b(t,c);if(U===C0||U===d1){var _=d$(t,c,{},l);if(_){c=_.endPos,d=!0;continue}}for(var v=c,E=0;v<m&&E<4;){let Y=b(t,v);if(Y===g)E++,v++;else if(Y===u)E+=4-E%4,v++;else break}if(E<4&&v<m&&b(t,v)===L1&&d)if(v+1<m&&b(t,v+1)===X9){d=!1;var z=I(t,c);c=z>=m?m:z+1;continue}else{var S=O9(t,v,{inline:!1,refs:i},l,!1);if(S){c=S.endPos,d=!0;continue}var z=I(t,c),A=t.indexOf(":",v+1);if(A===-1||A>=z){var T=o(t,c,z);!D1(t,c,z)&&U!==w9&&U!==T1&&U!==K1&&U!==I1&&T.spaceEquivalent<4&&(d=!1)}c=z>=m?m:z+1;continue}if(U===T1&&d){for(var D=c,k=[];D<m;){for(var z=I(t,D),R=D;R<z;){let X=b(t,R);if(X===g||X===u)R++;else break}if(R>=z||b(t,R)!==T1)break;var N=R+1;N<z&&(b(t,N)===g||b(t,N)===u)&&N++,k.push(t.slice(N,z)),D=z+1}if(k.length){q$(k.join(`
111
+ `),i,l),c=D,d=!0;continue}}var z=I(t,c);if(z>=m)c=m;else{var L=D1(t,c,z),T=o(t,c,z);c=z+1,d=U===w9||U===T1||U===K1||U===I1||L||T.spaceEquivalent>=4}}}var L6=/^\n+/,i$=typeof reactExports.createContext<"u"?reactExports.createContext(void 0):void 0;function T6(t){let i=!1;for(let c=0;c<t.length;c++){let d=t.charCodeAt(c);if(d>127||d===i1||d===C0){i=!0;break}}if(!i)return t;let l="";for(let c=0;c<t.length;c++){let d=t[c];if(d==="%"&&c+2<t.length&&/[0-9A-Fa-f]/.test(t[c+1])&&/[0-9A-Fa-f]/.test(t[c+2]))l+=t[c]+t[c+1]+t[c+2],c+=2;else if(d.charCodeAt(0)===i1)l+="%5C";else if(d.charCodeAt(0)===C0)l+="%60";else{let m=d.charCodeAt(0);l+=m>127?encodeURIComponent(d):d}}return l}function S6(t,i,l,c,d,m,y,_){switch(t.type){case M.blockQuote:{let E={key:l.key};return t.alert&&(E.className="markdown-alert-"+m(t.alert.toLowerCase(),i0),t.children.unshift({attrs:{},children:[{type:M.text,text:t.alert}],verbatim:!0,type:M.htmlBlock,tag:"header"})),c("blockquote",E,i(t.children,l))}case M.breakLine:return c("br",{key:l.key});case M.breakThematic:return c("hr",{key:l.key});case M.frontmatter:return _.preserveFrontmatter?c("pre",{key:l.key},t.text):null;case M.codeBlock:let v=t.lang?_9(t.lang):"";return c("pre",{key:l.key},c("code",{...u9(t.attrs||{}),className:v?`language-${v} lang-${v}`:""},t.text));case M.codeInline:return c("code",{key:l.key},t.text);case M.footnoteReference:return c("a",{key:l.key,href:d(t.target,"a","href")},c("sup",{key:l.key},t.text));case M.gfmTask:return c("input",{checked:t.completed,key:l.key,readOnly:!0,type:"checkbox"});case M.heading:return c(`h${t.level}`,{id:t.id,key:l.key},i(t.children,l));case M.htmlBlock:{let E=t;if(_.tagfilter&&a9(E.tag)){let S;if("rawText"in E&&typeof E.rawText=="string")S=E.rawText;else{let A="";if(E.attrs)for(let[T,D]of Object.entries(E.attrs))D===!0?A+=` ${T}`:D!=null&&D!==!1&&(A+=` ${T}="${String(D)}"`);S=`<${E.tag}${A}>`}return c("span",{key:l.key},S)}if(E.rawText&&E.verbatim){let S=function(L){if(L.type===M.htmlSelfClosing&&"isClosingTag"in L&&L.isClosingTag)return[];if(L.type===M.paragraph){let U=L.children;return U?U.flatMap(S):[]}return L.type===M.text?L.text?.trim()?[L]:[]:L.type===M.htmlBlock&&L.children?[{...L,children:L.children?.flatMap(S)}]:[L]},A=E.tag.toLowerCase(),T=H9(A),D=/<[a-z][^>]{0,100}>/i.test(E.rawText),k=/<\/?pre\b/i.test(E.rawText);if(T&&!D){let L=E.rawText.replace(new RegExp("\\s*</"+A+">\\s*$","i"),"");return _.tagfilter&&(L=r9(L)),c(t.tag,{key:l.key,...t.attrs},L)}if(k){let L=_.tagfilter?r9(E.rawText):E.rawText;return c(t.tag,{key:l.key,...t.attrs,dangerouslySetInnerHTML:{__html:L}})}let R={slugify:L=>m(L,i0),sanitizer:d,tagfilter:!0},N=E.rawText.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${E.tag}(\\s[^>]*)?>(\\s*</${E.tag}>)?$`,"i").test(N))return c(t.tag,{key:l.key,...t.attrs});let z=k9(N,{inline:!1,refs:y,inHTML:!1},R);return c(t.tag,{key:l.key,...t.attrs},i(z.flatMap(S),l))}return c(t.tag,{key:l.key,...t.attrs},t.children?i(t.children,l):"")}case M.htmlSelfClosing:{let E=t;if(_.tagfilter&&a9(E.tag)){let S;if("rawText"in E&&typeof E.rawText=="string")S=E.rawText;else{let A="";if(E.attrs)for(let[T,D]of Object.entries(E.attrs))D===!0?A+=` ${T}`:D!=null&&D!==!1&&(A+=` ${T}="${String(D)}"`);S=`<${E.tag}${A} />`}return c("span",{key:l.key},S)}return c(t.tag,{key:l.key,...t.attrs})}case M.image:return c("img",{key:l.key,alt:t.alt&&t.alt.length>0?t.alt:void 0,title:t.title||void 0,src:d(t.target,"img","src")});case M.link:{let E={key:l.key};return t.target!=null&&(E.href=T6(t.target)),t.title&&(E.title=t.title),c("a",E,i(t.children,l))}case M.table:{let E=t;return c("table",{key:l.key},c("thead",null,c("tr",null,E.header.map(function(S,A){return c("th",{key:A,style:E.align[A]==null?{}:{textAlign:E.align[A]}},i(S,l))}))),c("tbody",null,E.cells.map(function(S,A){return c("tr",{key:A},S.map(function(T,D){return c("td",{key:D,style:E.align[D]==null?{}:{textAlign:E.align[D]}},i(T,l))}))})))}case M.text:return t.text;case M.textFormatted:return c(t.tag,{key:l.key},i(t.children,l));case M.orderedList:case M.unorderedList:{let E=t.type===M.orderedList?"ol":"ul";return c(E,{key:l.key,start:t.type===M.orderedList?t.start:void 0},t.items.map(function(S,A){return c("li",{key:A},i(S,l))}))}case M.paragraph:return c("p",{key:l.key},i(t.children,l));case M.ref:return null;default:return null}}var x6=(t,i,l,c,d,m)=>{let y=(E,S,A)=>{let T=()=>S6(E,S,A,i,l,c,d,m);return t?t(T,E,S,A):T()},_=E=>E.map(S=>"text"in S?S.text:""),v=(E,S={})=>{let A=(S.renderDepth||0)+1;if(A>2500)return _(E);S.renderDepth=A;let T=S.key,D=[],k=!1;for(let R=0;R<E.length;R++){S.key=R;let N=y(E[R],v,S),z=typeof N=="string";if(z&&k)D[D.length-1]+=N;else if(N!==null)if(Array.isArray(N))for(let L=0;L<N.length;L++)D.push(N[L]);else D.push(N);k=z}return S.key=T,S.renderDepth=A-1,D};return v},E6=(...t)=>t.filter(Boolean).join(" "),c$=(t,i,l)=>{let c=t,d=i.split("."),m=0;for(;m<d.length&&(c=c?.[d[m]],c!==void 0);)m++;return c||l},P6=(t,i)=>{let l=c$(i,t,void 0);return l?typeof l=="function"||typeof l=="object"&&"render"in l?l:c$(i,`${t}.component`,t):t};function I6(t,i){let l={...i||{}};l.overrides=l.overrides||{};let c=l.slugify||i0,d=l.sanitizer||m1,m=l.createElement||reactExports.createElement,y=N=>D$(N,{...l,wrapper:null});function _(N,z,...L){let U=c$(l.overrides,`${N}.props`,{}),Y=u9(z||{});if(y)for(let[X,Q]of Object.entries(Y))typeof Q=="string"&&Q.length>0&&Q[0]==="<"&&(MZ.test(Q)||AZ.test(Q)||$9(Q,0))&&(Y[X]=y(Q.trim()));return m(P6(N,l.overrides),{...Y,...U,className:E6(Y?.className,U.className)||void 0},...L)}let v=[];for(let N=0;N<t.length;N++){let z=t[N];if(z.type===M.htmlBlock&&"rawText"in z&&z.rawText&&/<\/?pre\b/i.test(z.rawText)&&N+1<t.length&&t[N+1].type===M.paragraph&&"removedClosingTags"in t[N+1]&&t[N+1].removedClosingTags){let L=function(Q){let G="";for(let te of Q){let J=te.type;if(J===M.text)G+=te.text;else if(J===M.htmlSelfClosing&&"rawText"in te&&te.rawText)G+=te.rawText;else if(J===M.textFormatted){let le=te,ae=le.tag==="em"?"_":le.tag==="strong"?"**":"";G+=ae+L(le.children)+ae}else"children"in te&&te.children&&(G+=L(te.children))}return G},U=z,Y=t[N+1],X=L(Y.children);Y.removedClosingTags&&(X+=Y.removedClosingTags.filter(Q=>Q.type===M.htmlSelfClosing&&"rawText"in Q&&Q.rawText&&Q.rawText.indexOf(`</${U.tag}>`)===-1).map(Q=>Q.type===M.htmlSelfClosing&&"rawText"in Q&&Q.rawText||"").join("")),U.rawText=(U.rawText||"")+`
112
+ `+X,U.text=U.rawText,N++}v.push(z)}t=v;let E={...l,slugify:N=>c(N,i0),sanitizer:d,tagfilter:l.tagfilter!==!1},S=t[0]&&t[0].type===M.refCollection?t[0].refs:{},A=x6(l.renderRule,_,d,c,S,l),T=A(t,{inline:l.forceInline,refs:S}),D=[];for(let N in S)N.charCodeAt(0)===X9&&D.push({identifier:N,footnote:S[N].target});if(D.length&&T.push(_("footer",{key:"footer"},D.map(function(N){let z=N.identifier.charCodeAt(0)===X9?N.identifier.slice(1):N.identifier,L=k9(N.footnote,{inline:!0,refs:S},E);return _("div",{id:c(z,i0),key:N.identifier},z+": ",A(L,{inline:!0,refs:S}))}))),l.wrapper===null)return T;let k=l.wrapper||(l.forceInline?"span":"div"),R;if(T.length>1||l.forceWrapper)R=T;else return T.length===1?T[0]:null;return m(k,{key:"outer",...l.wrapperProps},R)}function D$(t="",i={}){let l={...i||{}};l.overrides=l.overrides||{};let c=l.slugify||i0,d=l.sanitizer||m1;function m(_){let v=l.forceInline||!l.forceBlock&&!A$.test(_),E={...l,slugify:T=>c(T,i0),sanitizer:d,tagfilter:l.tagfilter!==!1};v||q$(_,y,E);let S=_;if(!v){let T=S.length;for(;T>0&&(S[T-1]===`
113
+ `||S[T-1]==="\r");)T--;S=S.slice(0,T),S=`${S.replace(L6,"")}
114
+
115
+ `}let A=k9(v?_:S,{inline:v,refs:y},E);return I6(A,{...E,forceInline:v})}let y={};return m(t)}var PZ=({children:t,options:i,...l})=>{if(!(typeof reactExports.useContext<"u")){let y={...i,overrides:{...i?.overrides},wrapperProps:{...i?.wrapperProps,...l}};return D$(t??"",y)}let c=reactExports.useContext(i$),d=reactExports.useMemo(()=>({...c,...i,overrides:{...c?.overrides,...i?.overrides},wrapperProps:{...c?.wrapperProps,...i?.wrapperProps,...l}}),[c,i,l]),m=t??"";return reactExports.useMemo(()=>D$(m,d),[m,d])},f6=PZ;const generalConditionsContainer="_generalConditionsContainer_55hjg_1",generalConditions="_generalConditions_55hjg_1",generalConditionsHeader="_generalConditionsHeader_55hjg_15",generalConditionsBody="_generalConditionsBody_55hjg_26",generalConditionsAccept="_generalConditionsAccept_55hjg_35",styles$l={generalConditionsContainer,generalConditions,generalConditionsHeader,generalConditionsBody,generalConditionsAccept},CaretDown=()=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})}),CaretUp=()=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})}),HEADER_KEY="general-conditions.header",BODY_KEY="general-conditions.body",ACCEPT_KEY="general-conditions.accept-conditions-note",GeneralConditions=()=>{const t=useTranslation(),[i,l]=reactExports.useState(!1),c=()=>l(!i),d=_=>{_.key==="ArrowDown"||_.key==="ArrowRight"?l(!0):_.key==="ArrowUp"||_.key==="ArrowLeft"||_.key==="Escape"?l(!1):(_.key==="Enter"||_.key==="Space"||_.key===" ")&&c()},m=t(HEADER_KEY),y=t(ACCEPT_KEY);return jsxRuntimeExports.jsxs("div",{className:clsx(styles$l.generalConditionsContainer,"chat__generalConditions"),children:[!!m?.length&&jsxRuntimeExports.jsxs("div",{className:styles$l.generalConditions,children:[jsxRuntimeExports.jsxs("div",{role:"button",onClick:c,onKeyDown:d,tabIndex:0,className:clsx(styles$l.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":i?"true":"false","aria-pressed":i?"true":"false",children:[jsxRuntimeExports.jsx(f6,{children:m}),i?jsxRuntimeExports.jsx(CaretUp,{}):jsxRuntimeExports.jsx(CaretDown,{})]}),jsxRuntimeExports.jsx("div",{className:clsx(styles$l.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:i&&jsxRuntimeExports.jsx(f6,{children:t(BODY_KEY)||""})})]}),!!y?.length&&jsxRuntimeExports.jsx("div",{className:clsx(styles$l.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:jsxRuntimeExports.jsx(f6,{children:t(ACCEPT_KEY)||""})})]})},messageContainer="_messageContainer_1rxi5_1",message="_message_1rxi5_1",messageBot="_messageBot_1rxi5_14",messageBotLast="_messageBotLast_1rxi5_45",avatar="_avatar_1rxi5_45",messageBotFirst="_messageBotFirst_1rxi5_54",messageBotAnimated="_messageBotAnimated_1rxi5_67",messageGuest="_messageGuest_1rxi5_78",messageGuestFirst="_messageGuestFirst_1rxi5_84",messageGuestLast="_messageGuestLast_1rxi5_90",botAvatar="_botAvatar_1rxi5_104",agentAvatar="_agentAvatar_1rxi5_108",bubble="_bubble_1rxi5_112",bubbleContent="_bubbleContent_1rxi5_118",bubbleLeft="_bubbleLeft_1rxi5_132",leftText="_leftText_1rxi5_143",bubbleRight="_bubbleRight_1rxi5_150",rightText="_rightText_1rxi5_160",sourceInfoReference="_sourceInfoReference_1rxi5_192",sourceInfoReferenceActive="_sourceInfoReferenceActive_1rxi5_204",styles$k={messageContainer,message,messageBot,messageBotLast,avatar,messageBotFirst,messageBotAnimated,messageGuest,messageGuestFirst,messageGuestLast,botAvatar,agentAvatar,bubble,bubbleContent,bubbleLeft,leftText,bubbleRight,rightText,sourceInfoReference,sourceInfoReferenceActive},useClickOutsideEventListener=(t,i)=>{reactExports.useEffect(()=>{const l=c=>{t.current&&!t.current.contains(c.target)&&i()};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[t,i])};function debounce(t,i){let l=null,c=null;const d=(...m)=>{c=m,l&&clearTimeout(l),l=setTimeout(()=>{t(...c),l=null,c=null},i)};return d.flush=()=>{l&&c&&(clearTimeout(l),t(...c),l=null,c=null)},d}function throttle(t,i){let l=0,c=null;return((...d)=>{const m=Date.now(),y=m-l;y>=i?(l=m,t(...d)):(c&&clearTimeout(c),c=setTimeout(()=>{l=Date.now(),t(...d)},i-y))})}const container$5="_container_131ib_1",categoryContainer="_categoryContainer_131ib_13",categoryButton="_categoryButton_131ib_20",active$2="_active_131ib_35",commentTextarea="_commentTextarea_131ib_44",styles$j={container:container$5,categoryContainer,categoryButton,active:active$2,commentTextarea},useTrapFocusEffect=(t,i,l)=>{reactExports.useEffect(()=>{if(t){const c=()=>{const m=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),y=i.current?Array.from(i.current.querySelectorAll(m)):[],_=l.current?Array.from(l.current.querySelectorAll(m)):[];return[...y,..._]},d=m=>{if(m.key==="Tab"){const y=c();if(y.length>0){const _=y[0],v=y[y.length-1],E=document.activeElement;!m.shiftKey&&E===v?(m.preventDefault(),_.focus()):m.shiftKey&&E===_&&(m.preventDefault(),v.focus())}}};return document.addEventListener("keydown",d,!0),()=>{document.removeEventListener("keydown",d,!0)}}},[t,i,l])},BadReactionForm=({open:t,actionsRef:i,reaction:l,onReaction:c})=>{const d=useTranslation(),m=reactExports.useRef(null),y=debounce(E=>{c({...l,comment:E})},300);reactExports.useEffect(()=>()=>y.flush(),[y]),useTrapFocusEffect(t,i,m);const _=E=>{c({...l,category:l.category===E?void 0:E})},v=E=>y(E.target.value);return t?jsxRuntimeExports.jsxs("div",{ref:m,className:styles$j.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[jsxRuntimeExports.jsx("h2",{id:"bad-reaction-title",children:d("bot-bubble.reaction.say-more")}),jsxRuntimeExports.jsx("div",{className:styles$j.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(E=>jsxRuntimeExports.jsx("button",{className:clsx(styles$j.categoryButton,l?.category===E&&styles$j.active),onClick:()=>_(E),"aria-pressed":l?.category===E,"aria-label":d(`bot-bubble.reaction.category.${E}`),tabIndex:0,role:"radio",children:d(`bot-bubble.reaction.category.${E}`)},E))}),jsxRuntimeExports.jsx("textarea",{id:"comment",name:"comment",placeholder:d("bot-bubble.reaction.comment"),defaultValue:l?.comment,onChange:v,className:styles$j.commentTextarea,rows:3,"aria-label":d("bot-bubble.reaction.comment")})]}):null},botMessageActionContainer="_botMessageActionContainer_18fjb_1",alwaysVisible="_alwaysVisible_18fjb_15",active$1="_active_18fjb_19",botMessageActionInnerContainer="_botMessageActionInnerContainer_18fjb_27",header$1="_header_18fjb_52",botMessageActions="_botMessageActions_18fjb_57",reported="_reported_18fjb_68",action="_action_18fjb_72",wave="_wave_18fjb_86",anyReport="_anyReport_18fjb_156",closeButton="_closeButton_18fjb_172",styles$i={botMessageActionContainer,alwaysVisible,active:active$1,botMessageActionInnerContainer,header:header$1,botMessageActions,reported,action,wave,anyReport,closeButton},CloseButton=({isSubmitting:t,onClick:i})=>{const l=useTranslation();return jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,styles$i.closeButton,"tooltip--bottom-left"),"aria-label":l("bot-bubble.reaction.close"),"data-title":l("bot-bubble.reaction.close"),tabIndex:0,onClick:i,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})})},BotMessageActions=({alwaysVisible:t,senderType:i,reaction:l,botMessageRef:c,message:d,animated:m,onReaction:y})=>{const _=useTranslation(),[v,E]=reactExports.useState(!1),[S,A]=reactExports.useState(!1),[T,D]=reactExports.useState(!1),k=reactExports.useRef(null),R=reactExports.useRef(null);useClickOutsideEventListener(k,()=>{D(!1)});const N=Q=>{Q.key==="Escape"&&D(!1)};reactExports.useEffect(()=>(document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}),[]),reactExports.useEffect(()=>{T&&k.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[T]);const z=Q=>{R.current&&clearTimeout(R.current),A(!0),y(Q),R.current=setTimeout(()=>{A(!1)},1e3)},L=reactExports.useCallback(async()=>{if(c.current)try{E(!0);const Q=c.current.innerHTML,G=c.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([Q],{type:"text/html"}),"text/plain":new Blob([G],{type:"text/plain"})})]),await new Promise(te=>setTimeout(te,1500))}finally{E(!1)}},[c]),U=()=>{D(!1),y(l?.type==="GOOD"?null:{type:"GOOD"})},Y=()=>{y({...d.reaction,type:"BAD"}),D(!T)},X=Q=>G=>{(G.key==="Enter"||G.key===" ")&&Q()};return jsxRuntimeExports.jsx("div",{ref:k,className:clsx(styles$i.botMessageActionContainer,t&&styles$i.alwaysVisible,T&&styles$i.active),"aria-hidden":"true",children:jsxRuntimeExports.jsxs("div",{className:clsx(styles$i.botMessageActionInnerContainer,t&&styles$i.alwaysVisible,T&&styles$i.active,l&&styles$i.reported),role:"group","aria-label":_("bot-bubble.actions.label"),children:[jsxRuntimeExports.jsxs("div",{className:styles$i.header,children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$i.botMessageActions,l&&styles$i.reported),children:[i===UserType.BOT&&jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,m&&styles$i.wave,l?.type&&styles$i.anyReport,l?.type==="GOOD"&&styles$i.reported,"tooltip--top-right"),tabIndex:0,"aria-label":_(l?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":l?.type==="GOOD","data-title":_(l?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:U,onKeyDown:X(U),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:l?.type==="GOOD"?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})}),i===UserType.BOT&&jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,m&&styles$i.wave,l?.type&&styles$i.anyReport,l?.type==="BAD"&&styles$i.reported,"tooltip--top-right"),tabIndex:0,"aria-label":_("bot-bubble.reaction.bad"),"aria-pressed":l?.type==="BAD","data-title":_("bot-bubble.reaction.bad"),onPointerDown:Y,onKeyDown:X(Y),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:l?.type==="BAD"?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})}),jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,m&&styles$i.wave,"tooltip--top-right"),style:{visibility:T?"hidden":"visible"},tabIndex:0,"aria-label":_("bot-bubble.copy"),"data-title":_("bot-bubble.copy"),onClick:L,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v?jsxRuntimeExports.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"}):jsxRuntimeExports.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"})})})]}),T&&jsxRuntimeExports.jsx(CloseButton,{isSubmitting:S,onClick:()=>D(!1)})]}),d.reaction&&jsxRuntimeExports.jsx(BadReactionForm,{open:T,actionsRef:k,reaction:d.reaction,onReaction:z})]})})},BotMessage=reactExports.forwardRef(({message:t,isAnimated:i,isFirstMessage:l,isLastMessage:c,isFirstMessageBySender:d,isLastMessageBySender:m,children:y,onReaction:_},v)=>{const E=useTranslation(),S=reactExports.useRef(null),A=t.sender.type===UserType$1.BOT;return jsxRuntimeExports.jsxs("li",{ref:v,className:clsx(styles$k.message,styles$k.messageBot,c&&styles$k.lastMessage,d&&styles$k.messageBotFirst,m&&styles$k.messageBotLast,"chat__bubbleContainer",i&&styles$k.messageBotAnimated,i&&"chat__bubbleContainer--animated",A?"chat__botBubbleContainer":"chat__agentBubbleContainer",d&&"chat__bubbleContainer--first",m&&"chat__bubbleContainer--last"),role:"article",children:[jsxRuntimeExports.jsx("img",{className:clsx(styles$k.avatar,A?styles$k.botAvatar:styles$k.agentAvatar,"chat__avatar",A?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:A?"Bot":"Agent",referrerPolicy:"no-referrer","aria-hidden":"true"}),jsxRuntimeExports.jsxs("div",{className:styles$k.messageContainer,children:[jsxRuntimeExports.jsx("div",{ref:S,className:clsx(styles$k.bubble,styles$k.bubbleLeft,"chat__bubble",A?"chat__botBubble":"chat__agentBubble"),tabIndex:0,role:"group","aria-label":E(A?"bot-bubble.label":"agent-bubble.label"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.leftText),children:y})}),_&&jsxRuntimeExports.jsx(BotMessageActions,{alwaysVisible:c&&m,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:S,animated:l,onReaction:_})]})]})}),sourceList="_sourceList_1sc0q_1",source="_source_1sc0q_1",label="_label_1sc0q_39",styles$h={sourceList,source,label},Docx=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),File$1=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),Pdf=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),Web=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),SourceIcon=({type:t,...i})=>{switch(t){case"WEBSITE":return jsxRuntimeExports.jsx(Web,{...i});case"PDF":return jsxRuntimeExports.jsx(Pdf,{...i});case"DOCX":return jsxRuntimeExports.jsx(Docx,{...i});default:return jsxRuntimeExports.jsx(File$1,{...i})}},MessageSources=({sources:t,onLinkClick:i})=>{const l=useTranslation(),c=m=>()=>{i(m.url)},d=m=>y=>{(y.key==="Enter"||y.key===" ")&&i(m.url)};return t.length?jsxRuntimeExports.jsx("ul",{className:styles$h.sourceList,"aria-label":l("bot-bubble.sources"),children:t.map(m=>jsxRuntimeExports.jsx("li",{className:styles$h.source,children:jsxRuntimeExports.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${l("bot-bubble.source.open")}: ${m.label}`,onClick:c(m),onKeyDown:d(m),children:[jsxRuntimeExports.jsx(SourceIcon,{type:m.type,"aria-hidden":"true"}),jsxRuntimeExports.jsx("div",{className:styles$h.label,children:m.label})]})},m.url))}):null},button$2="_button_3ui4g_1",buttonDefault="_buttonDefault_3ui4g_13",buttonPrimary="_buttonPrimary_3ui4g_28",styles$g={button:button$2,buttonDefault,buttonPrimary},Button=({className:t,children:i,...l})=>jsxRuntimeExports.jsx("button",{className:clsx(styles$g.button,t),type:"button",role:"button",...l,children:i}),title="_title_137pi_1",buttons$1="_buttons_137pi_6",button$1="_button_137pi_6",imageContainer="_imageContainer_137pi_29",image="_image_137pi_29",video_container="_video_container_137pi_44",video="_video_137pi_44",only="_only_137pi_58",styles$f={title,buttons:buttons$1,button:button$1,imageContainer,image,video_container,video,only},Buttons=({buttons:t,onButtonClick:i})=>jsxRuntimeExports.jsx("div",{className:clsx(styles$f.buttons,"chat__bubbleButtons"),children:t.map((l,c)=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$f.button,"chat__bubbleButton"),onClick:()=>i(l),children:l.title},c))}),OPEN_LINK_IN_NEW_TAB_INDICATOR="newtab#",MarkdownText=({markdown:t,markdownOptions:i={},onLinkClick:l})=>{const c=m=>y=>(y.preventDefault(),m&&l(m),!1),d=({title:m,href:y,children:_})=>y.indexOf(OPEN_LINK_IN_NEW_TAB_INDICATOR)===0?jsxRuntimeExports.jsx("a",{href:y.slice(OPEN_LINK_IN_NEW_TAB_INDICATOR.length),title:m,target:"_blank",rel:"noopener noreferrer",children:_}):jsxRuntimeExports.jsx("a",{onClick:c(y),title:m,href:y,children:_});return jsxRuntimeExports.jsx(f6,{options:{...i,overrides:{a:d}},children:t})},Text$2=({text:t,onLinkClick:i})=>t?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(MarkdownText,{markdown:t,onLinkClick:i})}):null,Title=({title:t})=>t?jsxRuntimeExports.jsx("h1",{className:styles$f.title,children:t}):null,Body=({title:t,text:i,buttons:l,onButtonClick:c,onLinkClick:d})=>t?.length||i?.length||l?.length?jsxRuntimeExports.jsxs("div",{className:clsx(styles$k.bubbleContent),children:[jsxRuntimeExports.jsx(Title,{title:t}),jsxRuntimeExports.jsx(Text$2,{text:i,onLinkClick:d}),jsxRuntimeExports.jsx(Buttons,{buttons:l,onButtonClick:c})]}):null,Image=({alt:t,imageUrl:i,itemUrl:l,hasBody:c})=>i?l?l.indexOf("youtube.com")>-1?jsxRuntimeExports.jsx("div",{className:styles$f.video_container,children:jsxRuntimeExports.jsx("iframe",{className:clsx(styles$f.video,{[styles$f.only]:!c}),title:"Youtube",width:"100%",src:l+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):jsxRuntimeExports.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",children:jsxRuntimeExports.jsx("div",{className:styles$f.imageContainer,children:jsxRuntimeExports.jsx("img",{className:clsx(styles$f.image,{[styles$f.only]:!c}),src:i,alt:t})})}):jsxRuntimeExports.jsx("div",{className:styles$f.imageContainer,children:jsxRuntimeExports.jsx("img",{className:clsx(styles$f.image,{[styles$f.only]:!c}),src:i,alt:t})}):null,DetailMessage=({title:t,text:i,imageUrl:l,itemUrl:c,buttons:d,sources:m,onButtonClick:y,onLinkClick:_})=>{const v=!!t?.length||!!i?.length||!!d?.length;return jsxRuntimeExports.jsxs("div",{className:clsx(styles$f.detailMessage),children:[jsxRuntimeExports.jsx(Image,{hasBody:v,imageUrl:l,itemUrl:c,alt:t||""}),v&&jsxRuntimeExports.jsx(Body,{title:t,text:i,buttons:d,onLinkClick:_,onButtonClick:y}),jsxRuntimeExports.jsx(MessageSources,{sources:m,onLinkClick:_})]})},UserMessage=reactExports.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:i,children:l},c)=>{const d=useTranslation();return jsxRuntimeExports.jsx("li",{ref:c,className:clsx(styles$k.message,styles$k.messageGuest,t&&styles$k.messageGuestFirst,i&&styles$k.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),role:"article",children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,role:"group","aria-label":d("guest-bubble.label"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.rightText),children:l})})})}),useClientName=()=>reactExports.useMemo(()=>getClientName(),[]),markdown="_markdown_nw7vg_1",markdownStyle={markdown},SOURCE_REFERENCE_CLASS="source-info-reference",MarkdownMessage=({actionId:t,markdown:i,sources:l,onLinkClick:c})=>{const d=useClientName(),m=useAppDispatch(),y=getFootnoteReferenceCounter(),_=useAppSelector(S=>{const A=S.chat.sourceInfos;if(A?.type==="loaded"||A?.type==="loading")return A.chunkId}),v=S=>A=>{const T=A.key;(T==="ArrowDown"||T==="ArrowRight"||T==="Enter"||T===" "||T==="Space")&&(A.stopPropagation(),m(loadSourceInfosRequest(d,t,S)))},E=S=>()=>{m(loadSourceInfosRequest(d,t,S))};return reactExports.useLayoutEffect(()=>{document.querySelectorAll(`.${SOURCE_REFERENCE_CLASS}`).forEach(S=>{const A=S.previousSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.endsWith(" ")&&A.textContent?.trim().length&&S.classList.add(`${SOURCE_REFERENCE_CLASS}--before-space`);const T=S.nextSibling;T&&T.nodeType===Node.TEXT_NODE&&T.textContent?.startsWith(" ")&&T.textContent?.trim().length&&S.classList.add(`${SOURCE_REFERENCE_CLASS}--after-space`)})},[i]),jsxRuntimeExports.jsxs("div",{className:styles$k.bubbleContent,children:[jsxRuntimeExports.jsx("div",{className:markdownStyle.markdown,children:jsxRuntimeExports.jsx(MarkdownText,{markdown:i,onLinkClick:c,markdownOptions:{renderRule(S,A,T,D){if(A.type===M.footnoteReference){const k=A.text===_;return jsxRuntimeExports.jsx("span",{className:clsx(styles$k.sourceInfoReference,k&&styles$k.sourceInfoReferenceActive,SOURCE_REFERENCE_CLASS),children:jsxRuntimeExports.jsx("a",{type:"button",tabIndex:0,onClick:E(A.text),onKeyDown:v(A.text),children:y(A.text)})},D.key)}return S()}}})}),jsxRuntimeExports.jsx(MessageSources,{sources:l,onLinkClick:c})]})},getFootnoteReferenceCounter=()=>{const t=[];return l=>{const c=t.indexOf(l);return c>-1?c+1:(t.push(l),t.length)}},text$1="_text_gp0s0_1",command$1="_command_gp0s0_5",styles$e={text:text$1,command:command$1},Text$1=({text:t,commands:i=[]})=>{const l=i.find(d=>t.startsWith(`/${d}`)),c=l?t.slice(l.length+1):t;return jsxRuntimeExports.jsxs("div",{children:[l&&jsxRuntimeExports.jsxs("code",{className:styles$e.command,children:["/",l]}),c.split(`
116
+ `).map((d,m)=>jsxRuntimeExports.jsxs("span",{className:styles$e.text,children:[d,jsxRuntimeExports.jsx("br",{})]},m))]})},TextMessage=({text:t,commands:i,sources:l,onLinkClick:c})=>jsxRuntimeExports.jsxs("div",{className:styles$k.bubbleContent,children:[jsxRuntimeExports.jsx(Text$1,{text:t,commands:i}),jsxRuntimeExports.jsx(MessageSources,{sources:l,onLinkClick:c})]}),Message=reactExports.forwardRef(({message:t,commands:i,isFirstMessage:l,isLastMessage:c,isFirstMessageBySender:d,isLastMessageBySender:m,onReaction:y,onButtonClick:_,onLinkClick:v},E)=>{const S=getMessageCmp(t._id,t,i,_,v),A=T=>{y(t._id,T)};return t.sender.type===UserType$1.GUEST?jsxRuntimeExports.jsx(UserMessage,{ref:E,isFirstMessageBySender:d,isLastMessageBySender:m,children:S}):jsxRuntimeExports.jsx(BotMessage,{ref:E,message:t,isAnimated:!1,isFirstMessage:l,isLastMessage:c,isFirstMessageBySender:d,isLastMessageBySender:m,onReaction:A,children:S})}),getMessageCmp=(t,i,l,c,d)=>{switch(i.type){case MessageTypeEnum.TEXT:{const m=i;return jsxRuntimeExports.jsx(TextMessage,{text:m.text,commands:l,sources:i.sources||[],onLinkClick:d})}case MessageTypeEnum.DETAIL:{const m=i;return jsxRuntimeExports.jsx(DetailMessage,{title:m.title,text:m.text,imageUrl:m.imageUrl,itemUrl:m.itemUrl,buttons:m.buttons,sources:i.sources||[],onButtonClick:c,onLinkClick:d})}case MessageTypeEnum.MARKDOWN:{const m=i;return jsxRuntimeExports.jsx(MarkdownMessage,{actionId:t,markdown:m.markdown,sources:m.sources||[],onLinkClick:d})}}},areEqual=(t,i)=>t.message._id===i.message._id&&t.message.reaction===i.message.reaction&&t.isFirstMessage===i.isFirstMessage&&t.isLastMessage===i.isLastMessage&&t.isFirstMessageBySender===i.isFirstMessageBySender&&t.isLastMessageBySender===i.isLastMessageBySender,Message$1=React.memo(Message,areEqual),ticontainer="_ticontainer_xg0dn_1",tiblock="_tiblock_xg0dn_5",tidot="_tidot_xg0dn_12",styles$d={ticontainer,tiblock,tidot},TypingIndicator=({isTyping:t=!1})=>jsxRuntimeExports.jsx("div",{className:styles$d.ticontainer,children:jsxRuntimeExports.jsx("div",{className:styles$d.tiblock,children:t?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator"),"aria-hidden":"true"})]}):null})}),BotTypingMessage=Object.assign({_id:"typing-indicator"},new TextMessage$1("",new BotUser)),Conversation=({messages:t,isBotTyping:i,commands:l,onTranscriptItemReaction:c,onButtonClick:d,onLinkClick:m})=>{const y=useTranslation(),_=reactExports.useRef(0),v=reactExports.useRef(!0),E=reactExports.useRef(null),S=reactExports.useRef(null),A=reactExports.useRef(null),T=useAppSelector(R=>R.settings.enableGeneralConditions);reactExports.useLayoutEffect(()=>{if(t.length&&E.current&&(_.current<t.length||i)){if(S.current){const R=S.current.offsetTop;E.current.scrollTop=R}else if(A.current){const R=A.current.offsetTop;E.current.scrollTop=R}v.current&&(v.current=!1),_.current=t.length}},[t,v,i]);let D;const k=t.length;return jsxRuntimeExports.jsxs("div",{ref:E,className:clsx(styles$m.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&v.current?"auto":"smooth"},id:"MessageContainer","aria-label":y("conversation.label"),children:[T&&jsxRuntimeExports.jsx(GeneralConditions,{}),jsxRuntimeExports.jsxs("ul",{className:styles$m.messages,role:"list",children:[t.map((R,N)=>{const z=getIsFirstMessageBySender(R,D),L=getIsLastMessageBySender(R,N,t,i);D=R.sender.type;const U=N+1===k,Y=N===0,X=R._id||`added-${N}`;return jsxRuntimeExports.jsx(Message$1,{ref:U?A:null,message:R,commands:l,isFirstMessage:Y,isLastMessage:U,isFirstMessageBySender:z,isLastMessageBySender:L,onButtonClick:d,onLinkClick:m,onReaction:c},X)}),i&&jsxRuntimeExports.jsx(BotMessage,{ref:S,message:BotTypingMessage,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:D!==UserType$1.BOT,isLastMessageBySender:!0,children:jsxRuntimeExports.jsx(TypingIndicator,{isTyping:!0})},"last")]})]})},getIsFirstMessageBySender=(t,i)=>!i||i!==t.sender.type,getIsLastMessageBySender=(t,i,l,c)=>{const d=t.sender.type,m=l.length;return i+1===m?!(d===UserType$1.BOT&&c):d!==l.at(i+1)?.sender.type},bottomSheet="_bottomSheet_jp8dl_1",bottomSheetOpen="_bottomSheetOpen_jp8dl_15",bottomSheetClose="_bottomSheetClose_jp8dl_20",bottomSheetStyles={bottomSheet,bottomSheetOpen,bottomSheetClose},container$4="_container_xc2nx_1",styles$c={container:container$4},Drawer=({contentUrl:t})=>{const i=useAppSelector(m=>m.connection.sessionId),[l,c]=reactExports.useState(!1);reactExports.useEffect(()=>{c(m=>m||!!t)},[t]);const d=reactExports.useMemo(()=>{if(t&&i){const m=new URL(t,document.baseURI);return m.searchParams.set("sessionId",i),m.toString()}else return},[t,i]);return jsxRuntimeExports.jsx("div",{className:clsx(styles$c.container,bottomSheetStyles.bottomSheet,{[bottomSheetStyles.bottomSheetOpen]:!!t,[bottomSheetStyles.bottomSheetClose]:l&&!t}),children:d&&jsxRuntimeExports.jsx("iframe",{title:"Drawer",id:"form-drawer",src:d,className:styles$c.iframe})})},container$3="_container_vvbth_1",styles$b={container:container$3},Link$1=({title:t,href:i,children:l})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:l}),PoweredBy=()=>{const i=useTranslation()("powered-by");return i&&i.length?jsxRuntimeExports.jsx("div",{className:clsx(styles$b.container,"chat__poweredBy"),children:jsxRuntimeExports.jsx(f6,{options:{overrides:{a:Link$1}},children:i})}):null},markdownToPlainText=t=>t.replace(/^#{1,6}\s+/gm,"").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/^>\s+/gm,"").replace(/^(-{3,}|_{3,}|\*{3,})$/gm,"").replace(/^[\s]*[-*+]\s+/gm,"").replace(/^[\s]*\d+\.\s+/gm,"").replace(/\n{3,}/g,`
117
+
118
+ `).trim(),ScreenReaderAnnouncer=({messages:t,isBotTyping:i})=>{const l=reactExports.useRef(""),c=useTranslation(),d=_=>{switch(_.type){case"TEXT":return _.text||"";case"MARKDOWN":{const v=_.markdown||"";return markdownToPlainText(v)}case"DETAIL":return _.text||_.title||"";default:return""}},y=(()=>{if(i)return c("chatbot.typing")??"Chatbot is typing";const _=[...t].reverse().find(v=>v.sender.type===UserType.BOT);return _?d(_):""})();return reactExports.useEffect(()=>{y!==l.current&&(l.current=y)},[y]),jsxRuntimeExports.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:y})},DefaultButton=({className:t,children:i,...l})=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$g.buttonDefault,t),type:"button",...l,children:i}),PrimaryButton=({className:t,children:i,...l})=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$g.buttonPrimary,t),...l,children:i}),container$2="_container_h23mk_1",formContainer="_formContainer_h23mk_17",emailInput="_emailInput_h23mk_22",description="_description_h23mk_52",actions$3="_actions_h23mk_57",validationError="_validationError_h23mk_67",submitted="_submitted_h23mk_74",styles$a={container:container$2,formContainer,emailInput,description,actions:actions$3,validationError,submitted},TranscriptExport=({visible:t,onEmailExport:i,onClose:l})=>{const c=useTranslation(),[d,m]=reactExports.useState(void 0),[y,_]=reactExports.useState(!1),[v,E]=reactExports.useState(void 0),S=reactExports.useRef(null);reactExports.useEffect(()=>{t?(S.current?.focus(),_(!1),m(t)):d===!0&&m(!1)},[t,d]);const A=D=>{D.preventDefault(),v&&v.length>0&&(i(v),_(!0),setTimeout(l,3*1e3))},T=D=>{const k=D.target.value.trim(),R=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(k);E(R?k:"")};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$a.container,bottomSheetStyles.bottomSheet,{[bottomSheetStyles.bottomSheetOpen]:d===!0,[bottomSheetStyles.bottomSheetClose]:d===!1}),children:[jsxRuntimeExports.jsx("h2",{children:c("export-transcript.email.title")}),jsxRuntimeExports.jsx(f6,{className:styles$a.description,children:c("export-transcript.email.description")||""}),jsxRuntimeExports.jsxs("form",{onSubmit:A,className:styles$a.formContainer,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("input",{disabled:y,ref:S,type:"email",placeholder:c("export-transcript.email.placeholder"),className:styles$a.emailInput,onChange:T}),v?.length===0?jsxRuntimeExports.jsx("div",{className:styles$a.validationError,children:c("export-transcript.email.invalid")}):null]}),jsxRuntimeExports.jsxs("div",{className:styles$a.actions,children:[jsxRuntimeExports.jsx(DefaultButton,{onClick:l,children:c("export-transcript.email.cancel")}),jsxRuntimeExports.jsx(PrimaryButton,{type:"submit",disabled:y||v===void 0||v.length===0,children:c("export-transcript.email.send")})]})]}),y&&jsxRuntimeExports.jsx("div",{className:styles$a.submitted,children:c("export-transcript.email.success")})]})},inputContainer="_inputContainer_fi5ao_1",styles$9={inputContainer},blockUserInput="_blockUserInput_pot9c_1",styles$8={blockUserInput},BlockUserInput=({visible:t})=>{const i=useTranslation();return t?jsxRuntimeExports.jsx("div",{className:clsx(styles$8.blockUserInput,"chat__blockUserInput"),children:i("block-user-input.title")}):null},commandsDropdown="_commandsDropdown_fmklx_1",commands="_commands_fmklx_1",command="_command_fmklx_1",commandActive="_commandActive_fmklx_49",style={commandsDropdown,commands,command,commandActive},useKeyboardEffect=(t,i,l,c,d)=>{reactExports.useEffect(()=>{const m=y=>{if(t.length)switch(y.key){case"Enter":l(t[i]);break;case"ArrowUp":c(_=>_>0?_-1:t.length-1);break;case"ArrowDown":c(_=>_<t.length-1?_+1:0);break;case"Escape":d([]);break}};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[t,i,l,c,d])},CommandsDropdown=({text:t,commands:i,onSelectCommand:l,onVisibilityChange:c})=>{const d=reactExports.useRef(null),m=useTranslation(),[y,_]=reactExports.useState([]),[v,E]=reactExports.useState(calcMaxCommandLength(i)),[S,A]=reactExports.useState(0),T=D=>l(`/${D}`);return useClickOutsideEventListener(d,()=>_([])),useKeyboardEffect(y,S,T,A,_),reactExports.useEffect(()=>{E(calcMaxCommandLength(i))},[i]),reactExports.useEffect(()=>{const D=t.length||0;D===0||D>v||!t.startsWith("/")?_([]):_(i.filter(byText(t))),A(0)},[i,t,v]),reactExports.useEffect(()=>{c(!!y.length)},[y,c]),y.length?jsxRuntimeExports.jsx("div",{ref:d,className:style.commandsDropdown,children:jsxRuntimeExports.jsx("ul",{id:"command-list",className:style.commands,role:"listbox",children:y.map((D,k)=>jsxRuntimeExports.jsxs("li",{className:clsx([style.command,S===k&&style.commandActive]),role:"option",onClick:()=>T(D),onMouseOver:()=>A(k),children:[jsxRuntimeExports.jsxs("h1",{children:["/",D]}),jsxRuntimeExports.jsx("p",{children:m(`commands.${D}`)})]},D))})}):null},calcMaxCommandLength=t=>Math.max(...t.map(i=>i.length+1)),byText=t=>i=>{const l=`/${i}`;return l.startsWith(t)&&l.length>=t.length},callToActionContainer="_callToActionContainer_d8izj_1",callToActionTitle="_callToActionTitle_d8izj_23",rateOverlay="_rateOverlay_d8izj_30",body$1="_body_d8izj_52",footer$1="_footer_d8izj_60",actions$2="_actions_d8izj_75",bubbles="_bubbles_d8izj_89",stars="_stars_d8izj_191",starsSmall="_starsSmall_d8izj_205",starsLarge="_starsLarge_d8izj_211",star="_star_d8izj_191",starReadonly="_starReadonly_d8izj_225",starIcon="_starIcon_d8izj_235",starsDescriptionContainer="_starsDescriptionContainer_d8izj_253",starsDescription="_starsDescription_d8izj_253",styles$7={callToActionContainer,callToActionTitle,rateOverlay,body:body$1,footer:footer$1,actions:actions$2,bubbles,stars,starsSmall,starsLarge,star,starReadonly,starIcon,starsDescriptionContainer,starsDescription},Star=({value:t,index:i,count:l,readonly:c,onHover:d,onClick:m})=>{const y=_=>{m&&_.key==="Enter"&&m()};return jsxRuntimeExports.jsx("li",{className:clsx(styles$7.star,{[styles$7.starReadonly]:c},"chat__conversationRating__star"),children:jsxRuntimeExports.jsx("div",{role:"radio","aria-checked":t>i?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:0,onMouseOver:d,onKeyDown:y,onClick:m,children:jsxRuntimeExports.jsx("span",{role:"img","aria-label":"Star",className:clsx(styles$7.starIcon),children:jsxRuntimeExports.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:jsxRuntimeExports.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"})})})})})},STAR_COUNT=5,Stars=({value:t,size:i,readonly:l=!1,onChange:c})=>{const[d,m]=reactExports.useState(void 0),y=()=>{m(void 0)},_=E=>()=>{if(!l){const S=E+1;m(S)}},v=E=>()=>{c&&!l&&(c(E===0&&t===1?0:E+1),m(void 0))};return jsxRuntimeExports.jsx("ul",{tabIndex:0,role:"radiogroup",className:clsx(styles$7.stars,{[styles$7.starsSmall]:i==="small",[styles$7.starsLarge]:i==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:i==="small",chat__conversationRating__stars__large:i==="large"}),onMouseOut:y,children:Array(STAR_COUNT).fill(0).map((E,S)=>jsxRuntimeExports.jsx(Star,{value:d===void 0?t:d,index:S,count:STAR_COUNT,readonly:l,onHover:_(S),onClick:v(S)},S))})},CallToAction=({visible:t,onRate:i})=>{const l=useTranslation();return t?jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.callToActionContainer,"chat__conversationRating__callToAction"),children:[jsxRuntimeExports.jsx("div",{className:clsx(styles$7.callToActionTitle,"chat__conversationRating__callToAction__title"),children:l("conversation-rating.call-to-action.title")}),jsxRuntimeExports.jsx(Stars,{value:0,size:"small",onChange:i})]}):null},BotBubble=({isFirstMessageBySender:t,isLastMessageBySender:i,children:l})=>jsxRuntimeExports.jsxs("div",{className:clsx(styles$k.message,styles$k.messageBot,t&&styles$k.messageBotFirst,i&&styles$k.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),children:[jsxRuntimeExports.jsx("img",{className:clsx(styles$k.avatar,styles$k.botAvatar),src:"bot.svg",alt:"Bot"}),jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleLeft,"chat__bubble","chat__botBubble"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.leftText,styles$k.bubbleContent),children:l})})]}),GuestBubble=({children:t})=>jsxRuntimeExports.jsx("div",{className:clsx(styles$k.message,styles$k.messageGuest,styles$k.messageGuestFirst,styles$k.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleRight,"chat__bubble","chat__guestBubble"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.rightText,styles$k.bubbleContent),children:t})})}),RateOverlay=()=>{const t=useTranslation(),i=useAppDispatch(),l=useAppSelector(N=>N.chat.conversationRating),[c,d]=reactExports.useState(l.rating?.value||0),[m,y]=reactExports.useState(void 0),[_,v]=reactExports.useState(void 0),[E,S]=reactExports.useState({submitted:!1,feedback:""}),A=reactExports.useRef(null),[T,D]=reactExports.useState(!1);reactExports.useEffect(()=>{l.opener?(S({submitted:!1,feedback:""}),v(!0)):_===!0&&v(!1)},[l.opener,_]),reactExports.useEffect(()=>{d(l.rating?.value||0)},[l.rating?.value,l.opener]),reactExports.useEffect(()=>{A.current&&(A.current.value=l.rating?.feedback||"")},[l.rating?.feedback]),reactExports.useEffect(()=>{const N=c>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;y(N?.length?N:void 0)},[c,t]),reactExports.useEffect(()=>{E.submitted?setTimeout(()=>D(!0),E.feedback.length?500:0):D(!1)},[E]);const k=N=>{N.preventDefault();const z=A.current?.value?.trim()||"";i(handleRatingFromUser(c,z)),S({submitted:!0,feedback:z})},R=()=>{l.opener==="CLOSE_CHAT"?i(closeChatWindow()):l.opener==="RESTART_CHAT"?i(restartChat()):i(hideConversationRatingOverlay())};return jsxRuntimeExports.jsx("div",{className:clsx(styles$7.rateOverlay,bottomSheetStyles.bottomSheet,"chat__conversationRating__overlay",{[bottomSheetStyles.bottomSheetOpen]:_===!0,[bottomSheetStyles.bottomSheetClose]:_===!1}),children:jsxRuntimeExports.jsxs("form",{onSubmit:k,children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.body,"chat__conversationRating__overlay__body"),children:[jsxRuntimeExports.jsx("div",{}),jsxRuntimeExports.jsx("div",{className:clsx(styles$7.bubbles),children:l.opener&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(BotBubble,{isFirstMessageBySender:!0,isLastMessageBySender:!m,children:[jsxRuntimeExports.jsx("h2",{children:t("conversation-rating.overlay.title")}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.starsDescriptionContainer),children:[jsxRuntimeExports.jsx(Stars,{value:c,size:"large",readonly:E.submitted,onChange:d}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.starsDescription),children:[jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),m&&jsxRuntimeExports.jsx(BotBubble,{isFirstMessageBySender:!1,isLastMessageBySender:!T||!!E.feedback.length,children:jsxRuntimeExports.jsx("div",{children:m})}),!!E.feedback.length&&jsxRuntimeExports.jsx(GuestBubble,{children:E.feedback}),T&&jsxRuntimeExports.jsx(BotBubble,{isFirstMessageBySender:!!E.feedback.length,isLastMessageBySender:!0,children:jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.footer,"chat__conversationRating__overlay__footer"),children:[!E.submitted&&jsxRuntimeExports.jsx("input",{ref:A,defaultValue:l.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.actions,"chat__conversationRating__overlay__footer__actions"),children:[E.submitted?jsxRuntimeExports.jsx(PrimaryButton,{type:"button",disabled:!c,onClick:R,children:l.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):l.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):jsxRuntimeExports.jsx(PrimaryButton,{type:"submit",disabled:!c,children:t("conversation-rating.overlay.action.submit")},"submit-button"),l.opener!=="CHAT"&&!E.submitted&&jsxRuntimeExports.jsx(DefaultButton,{onClick:R,children:l.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):l.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},ConversationRating=({numberOfMessagesFromGuest:t})=>{const i=useAppDispatch(),l=useAppSelector(m=>m.chat.conversationRating),c=m=>{i(showConversationRatingOverlay("CHAT",m))},d=!l.rating?.value&&t>=1;return l.enabled?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CallToAction,{visible:d,onRate:c}),jsxRuntimeExports.jsx(RateOverlay,{})]}):null},ConversationRating$1=reactExports.memo(ConversationRating),inputWrapper="_inputWrapper_m3q4d_1",withOpenCommands="_withOpenCommands_m3q4d_13",actions$1="_actions_m3q4d_18",messageInputWrapper="_messageInputWrapper_m3q4d_53",messageInput="_messageInput_m3q4d_53",buttons="_buttons_m3q4d_78",button="_button_m3q4d_78",styles$6={inputWrapper,withOpenCommands,actions:actions$1,messageInputWrapper,messageInput,buttons,button},audioRecorder="_audioRecorder_g845f_1",audioButton="_audioButton_g845f_6",recorderIcon="_recorderIcon_g845f_37",spinning="_spinning_g845f_60",styles$5={audioRecorder,audioButton,recorderIcon,spinning},BUFFER_SIZE=2048,OUTPUT_SAMPLE_RATE=16e3;class AudioRecorder extends React.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(i){super(i),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,c=new l;this.sampleRate=c.sampleRate,this.volume=c.createGain(),this.audioInput=c.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=c.createScriptProcessor(BUFFER_SIZE,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(c.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+=BUFFER_SIZE}}handleClickSubmitAudio(){const i=mergeBuffers(this.leftchannel,this.recordingLength),l=downsampleBuffer(i,this.sampleRate||0),c=createWav(l);this.props.onAudioRecorded(c),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(i=>{i.stop()})}render(){return jsxRuntimeExports.jsxs("div",{className:styles$5.audioRecorder,children:[this.state.recordingState==="none"&&jsxRuntimeExports.jsx("button",{className:clsx(styles$5.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:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&jsxRuntimeExports.jsxs("svg",{className:styles$5.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&jsxRuntimeExports.jsxs("div",{className:styles$5.audioRecorder,children:[jsxRuntimeExports.jsx("button",{className:clsx(styles$5.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.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"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),jsxRuntimeExports.jsx("div",{className:styles$5.recorderIcon}),jsxRuntimeExports.jsx("button",{className:clsx(styles$5.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),jsxRuntimeExports.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const createWav=t=>{const i=new ArrayBuffer(44+t.length*2),l=new DataView(i);writeUTFBytes(l,0,"RIFF"),l.setUint32(4,44+t.length*2,!0),writeUTFBytes(l,8,"WAVE"),writeUTFBytes(l,12,"fmt "),l.setUint32(16,16,!0),l.setUint16(20,1,!0),l.setUint16(22,1,!0),l.setUint32(24,OUTPUT_SAMPLE_RATE,!0),l.setUint32(28,OUTPUT_SAMPLE_RATE*4,!0),l.setUint16(32,4,!0),l.setUint16(34,16,!0),writeUTFBytes(l,36,"data"),l.setUint32(40,t.length*2,!0);const c=t.length;let d=44;const m=1;for(let y=0;y<c;y++)l.setInt16(d,t[y]*(32767*m),!0),d+=2;return new Blob([l],{type:"audio/wav"})},writeUTFBytes=(t,i,l)=>{for(let c=0;c<l.length;c++)t.setUint8(i+c,l.charCodeAt(c))},mergeBuffers=(t,i)=>{const l=new Float32Array(i);let c=0;const d=t.length;for(let m=0;m<d;m++){const y=t[m];l.set(y,c),c+=y.length}return l},downsampleBuffer=(t,i)=>{if(OUTPUT_SAMPLE_RATE===i)return t;const l=i/OUTPUT_SAMPLE_RATE,c=Math.round(t.length/l),d=new Float32Array(c);let m=0,y=0;for(;m<d.length;){const _=Math.round((m+1)*l);let v=0,E=0;for(let S=y;S<_&&S<t.length;S++)v+=t[S],E++;d[m]=v/E,m++,y=_}return d},CommandButton=({onClick:t})=>{const i=useTranslation();return jsxRuntimeExports.jsxs("button",{onClick:t,type:"button","aria-label":i("message-input.actions.command.label"),children:[jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:[jsxRuntimeExports.jsx("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16",ry:"16",fill:"none",stroke:"currentColor","stroke-width":"16"}),jsxRuntimeExports.jsx("line",{x1:"80",y1:"176",x2:"176",y2:"80",stroke:"currentColor","stroke-width":"16","stroke-linecap":"round"})]}),jsxRuntimeExports.jsx("span",{children:i("message-input.actions.command.label")})]})},TextInput=({disabled:t,textInput:i,commandsVisible:l,hasCommands:c,onTextInput:d,onTextInputSubmit:m,onAudioRecorded:y})=>{const _=useTranslation(),v=reactExports.useRef(null),{enableSpeechSupport:E}=useAppSelector(R=>R.settings);reactExports.useEffect(()=>{v.current?.focus()},[i]);const S=()=>{const R=v.current;R&&i.trim().length>=1&&m(i.trim())&&(R.value="",R.style.height="",R.focus())},A=R=>{R.preventDefault(),S()},T=R=>{const N=R.target.value;d(N),R.target.style.height="";const{scrollHeight:z}=R.target;R.target.style.height=`${z>150?150:z}px`},D=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||S(),R.preventDefault()):l&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()},k=()=>{i.startsWith("/")?d(""):d("/")};return jsxRuntimeExports.jsxs("form",{className:clsx(styles$6.inputWrapper,l&&styles$6.withOpenCommands,"chat__textInput"),onSubmit:A,children:[jsxRuntimeExports.jsxs("div",{className:styles$6.messageInputWrapper,children:[jsxRuntimeExports.jsx("textarea",{id:"user_input",ref:v,className:styles$6.messageInput,tabIndex:0,placeholder:_("message-input-placeholder"),value:i,onChange:T,onKeyDown:D,"aria-label":_("message-input-label"),"aria-controls":c?"command-list":void 0,"aria-haspopup":c?"listbox":void 0}),c&&jsxRuntimeExports.jsx("div",{className:styles$6.actions,children:jsxRuntimeExports.jsx(CommandButton,{onClick:k})})]}),jsxRuntimeExports.jsx("div",{className:clsx(styles$6.buttons,"chat__buttons"),children:i.length||!E||navigator.mediaDevices===void 0?jsxRuntimeExports.jsx("button",{className:clsx(styles$6.button,"chat__button"),type:"submit","aria-label":_("message-input.actions.submit.label"),"data-title":_("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:jsxRuntimeExports.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):E&&navigator.mediaDevices!==void 0&&jsxRuntimeExports.jsx(AudioRecorder,{translate:_,onAudioRecorded:y})})]})},quickReplies="_quickReplies_83npe_1",quickReply="_quickReply_83npe_9",styles$4={quickReplies,quickReply},QuickReplies=({quickReplies:t,onQuickReplyClick:i})=>t.length?jsxRuntimeExports.jsx("div",{className:clsx(styles$4.quickReplies,"chat__quickReplies"),children:t.map(l=>jsxRuntimeExports.jsx(Button,{tabIndex:0,className:clsx(styles$4.quickReply,"chat__button","chat__quickReply"),onClick:()=>i(l),children:l.label},l.label))}):null,MIN_USER_BLOCKED_TIME=5e3,MIN_TIME_BETWEEN_USER_REQUESTS=1e3,UserInput=({isBotTyping:t,quickReplies:i,numberOfMessagesFromGuest:l,commands:c,onTextInput:d,onQuickReplyClick:m,onAudioRecorded:y})=>{const[_,v]=reactExports.useState(""),[E,S]=reactExports.useState(!1),[A,T]=reactExports.useState(!1),D=reactExports.useRef(0),k=reactExports.useRef(0);reactExports.useEffect(()=>{if(E&&!t){const z=D.current?Date.now()-D.current:0;z>MIN_USER_BLOCKED_TIME?S(!1):setTimeout(()=>{S(!1)},MIN_USER_BLOCKED_TIME-z)}},[E,t]),reactExports.useEffect(()=>{E&&(D.current=Date.now())},[E]);const R=z=>{const L=Date.now()-k.current<MIN_TIME_BETWEEN_USER_REQUESTS;return A?!1:t||L?(S(!0),!1):(d(z),v(""),k.current=Date.now(),!0)},N=z=>{v(z+" ")};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$9.inputContainer),children:[jsxRuntimeExports.jsx(QuickReplies,{quickReplies:i,onQuickReplyClick:m}),jsxRuntimeExports.jsx(BlockUserInput,{visible:E}),!E&&jsxRuntimeExports.jsx(ConversationRating$1,{numberOfMessagesFromGuest:l}),!!c?.length&&jsxRuntimeExports.jsx(CommandsDropdown,{text:_,commands:c,onSelectCommand:N,onVisibilityChange:T}),jsxRuntimeExports.jsx(TextInput,{textInput:_,disabled:E,commandsVisible:A,hasCommands:!!c?.length,onTextInput:v,onTextInputSubmit:R,onAudioRecorded:y})]})},ChatComponent=({clientName:t,messages:i,quickReplies:l,isBotTyping:c,drawerContentUrl:d,onMessageFromUser:m,onQuickReplyClick:y,onButtonClick:_,onLinkClick:v,onAudioRecorded:E,onTranscriptExport:S,onTranscriptItemReaction:A})=>{const T=useAppDispatch(),D=useAppSelector(Y=>Y.connection.connectionState),{enableTranscriptExportEmail:k,commands:R}=useAppSelector(Y=>Y.settings),{showTranscriptMailOverlay:N,conversationRating:z}=useAppSelector(Y=>Y.chat),L=i.filter(Y=>Y.sender.type===UserType.GUEST).length;reactExports.useEffect(()=>{D===ConnectionStateEnum.CONNECTED&&T(startChat(t))},[t,D,T]);const U=()=>{T(toggleTranscriptMailOverlay())};return jsxRuntimeExports.jsxs("div",{className:styles$n.container,children:[jsxRuntimeExports.jsx(ScreenReaderAnnouncer,{messages:i,isBotTyping:c}),jsxRuntimeExports.jsxs("div",{className:clsx([styles$n.chatcontent,(N||z?.opener)&&styles$n.accessabilityHidden]),children:[jsxRuntimeExports.jsx(Conversation,{messages:i,isBotTyping:c,commands:R,onButtonClick:_,onLinkClick:v,onTranscriptItemReaction:A}),jsxRuntimeExports.jsx(UserInput,{isBotTyping:c,quickReplies:c?[]:l,numberOfMessagesFromGuest:L,commands:R,onQuickReplyClick:y,onTextInput:m,onAudioRecorded:E}),jsxRuntimeExports.jsx(PoweredBy,{})]}),k&&jsxRuntimeExports.jsx(TranscriptExport,{visible:!!N,onEmailExport:S,onClose:U}),jsxRuntimeExports.jsx(Drawer,{contentUrl:d})]})},mapStateToProps=t=>{const{messages:i,quickReplies:l,isBotTyping:c,drawerContentUrl:d}=t.chat;return{messages:i,quickReplies:l,isBotTyping:c,drawerContentUrl:d}},bindAction=t=>({onRestartChat:()=>t(restartChat()),onMessageFromUser:i=>t(sendMessageFromUser(i)),onAudioRecorded:i=>t(sendAudioMessageFromUser(i)),onActionFromUser:i=>t(i),onQuickReplyClick:i=>t(handleQuickReplyClick(i)),onNluEvent:i=>t(requestNLUEvent(i)),onButtonClick:i=>t(handleButtonClick(i)),onLinkClick:i=>t(handleLinkClick(i)),onTranscriptExport:i=>t(exportTranscript(i)),onTranscriptItemReaction:(i,l)=>{t(transcriptItemGuestReaction(i,l?.type||null,l?.category,l?.comment))}}),Chat=connect_default(mapStateToProps,bindAction)(ChatComponent),useIsInIframe=()=>reactExports.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),onButtonKeyDownHandler=t=>i=>{const l=i.key;(l==="ArrowDown"||l==="ArrowRight"||l==="Enter"||l===" "||l==="Space")&&(i.stopPropagation(),t())},CloseChatWindowButton=({onClick:t})=>{const i=useTranslation();return useIsInIframe()?jsxRuntimeExports.jsx("button",{className:"tooltip--bottom-left","aria-label":i("header.close-chat"),"data-title":i("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:onButtonKeyDownHandler(t),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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},header="_header_3gvbz_1",logoContainer="_logoContainer_3gvbz_14",logo="_logo_3gvbz_14",actions="_actions_3gvbz_28",active="_active_3gvbz_43",menuContainer="_menuContainer_3gvbz_56",menu="_menu_3gvbz_56",divider="_divider_3gvbz_86",styles$3={header,logoContainer,logo,actions,active,menuContainer,menu,divider},MenuItemIcon=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return jsxRuntimeExports.jsx("div",{})}},MenuItem=reactExports.forwardRef(({selected:t,item:i,onClick:l},c)=>{const d=useTranslation(),m=y=>{y.preventDefault(),l()};return jsxRuntimeExports.jsx("li",{"aria-selected":t,role:"option",className:i.withDivider?styles$3.divider:void 0,children:jsxRuntimeExports.jsxs("a",{ref:c,type:"button",role:"button",tabIndex:-1,onClick:m,children:[jsxRuntimeExports.jsx(MenuItemIcon,{icon:i.icon}),jsxRuntimeExports.jsx("span",{children:d(`header.menu.${i.id}`)})]})})}),useMenuItems=(t,i)=>{const l=useIsInIframe(),{menuItems:c,enableStandaloneView:d,enableTranscriptExportPdf:m,enableTranscriptExportEmail:y}=useAppSelector(E=>E.settings),_=useAppSelector(E=>E.chat.conversationRating.enabled);return reactExports.useMemo(()=>{const E=[],S=c.filter(({visibility:A})=>t?A==="always"||A==="chat-only":A==="always"||A==="start-screen-only");if(t&&(E.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),l&&d&&E.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),i&&m&&E.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),i&&y&&E.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),i&&_&&E.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),E.length>0&&S.length)){const A=E.pop();A&&c.length&&E.push({...A,withDivider:!0})}return E.push(...S),E},[t,i,m,y,d,_,l,c])},Menu=({chatStarted:t,hasGuestMessages:i})=>{const l=useAppDispatch(),c=useTranslation(),{enabled:d,opener:m}=useAppSelector(L=>L.chat.conversationRating),[y,_]=reactExports.useState(!1),[v,E]=reactExports.useState(-1),S=reactExports.useRef(null),A=reactExports.useRef(null),T=reactExports.useRef([]),D=useMenuItems(t,i);reactExports.useEffect(()=>{T.current[v]?.focus()},[v]);const k=reactExports.useCallback(()=>{l(i&&d&&!m?showConversationRatingOverlay("RESTART_CHAT"):restartChat()),_(!1),E(0)},[i,d,m,l]),R=reactExports.useCallback(L=>{switch(L.type){case"restart-chat":k();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":l(downloadTranscriptPdf());break;case"send-transcript":l(toggleTranscriptMailOverlay());break;case"rate-conversation":l(showConversationRatingOverlay("MENU"));break;case"link":l(handleLinkClick(L.url));break;case"action":l(JSON.parse(JSON.stringify(L.action)));break}_(!1)},[l,k,_]);reactExports.useEffect(()=>{const L=U=>{if(y)switch(U.key){case"Enter":U.preventDefault(),R(D[v]);break;case"ArrowUp":E(Y=>Y>0?Y-1:D.length-1);break;case"ArrowDown":E(Y=>Y<D.length-1?Y+1:0);break;case"Escape":_(!1);break;case"Tab":v>-1&&_(!1);break}};return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[y,v,D,E,_,R]),reactExports.useEffect(()=>{y||E(-1)},[y,v]),useClickOutsideEventListener(A,()=>_(!1));const N=()=>{_(L=>!L)},z=()=>{setTimeout(()=>{const L=document.activeElement;A.current&&!A.current.contains(L)&&_(!1)},0)};return D.length?jsxRuntimeExports.jsxs("div",{className:clsx(styles$3.menuContainer),ref:A,children:[jsxRuntimeExports.jsx("button",{ref:S,className:clsx(y&&styles$3.active,y?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":c("header.menu.title"),"data-title":c("header.menu.title"),onClick:N,onBlur:z,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),y&&jsxRuntimeExports.jsx("nav",{className:styles$3.menu,"aria-label":c("header.menu.title"),children:jsxRuntimeExports.jsx("ul",{tabIndex:0,children:D.map((L,U)=>jsxRuntimeExports.jsx(MenuItem,{ref:Y=>{T.current[U]=Y},selected:v===U,item:L,onClick:()=>R(L)},L.id))})})]}):null},Header$1=({className:t,chatStarted:i,...l})=>{const c=useAppDispatch(),d=useAppSelector(_=>_.chat.conversationRating),m=useAppSelector(_=>_.chat.messages.some(v=>v.sender.type===UserType$1.GUEST)),y=()=>{d.enabled&&!d.opener&&m?c(showConversationRatingOverlay("CLOSE_CHAT")):c(closeChatWindow())};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$3.header,t),...l,children:[jsxRuntimeExports.jsx("div",{className:styles$3.logoContainer,children:jsxRuntimeExports.jsx("div",{className:styles$3.logo})}),jsxRuntimeExports.jsxs("div",{className:styles$3.actions,children:[jsxRuntimeExports.jsx(Menu,{chatStarted:i,hasGuestMessages:m}),jsxRuntimeExports.jsx(CloseChatWindowButton,{onClick:y})]})]})},chatwindow="_chatwindow_rkbir_1",chatwindowWithAside="_chatwindowWithAside_rkbir_21",styles$2={chatwindow,chatwindowWithAside},useIsSmallScreen=()=>{const[t,i]=reactExports.useState(!1);return reactExports.useEffect(()=>{const l=window.matchMedia("(max-width: 1023px)"),c=()=>i(l.matches);return c(),l.addEventListener("change",c),()=>l.removeEventListener("change",c)},[]),t},sourceInfos="_sourceInfos_vei0l_1",waitForLoading="_waitForLoading_vei0l_24",loadingContent="_loadingContent_vei0l_28",sourceHeader="_sourceHeader_vei0l_37",sourceHeaderIcon="_sourceHeaderIcon_vei0l_57",sourceContent="_sourceContent_vei0l_61",openSourceButton="_openSourceButton_vei0l_69",sourceButtonLabel="_sourceButtonLabel_vei0l_79",closeSourceInfosButton="_closeSourceInfosButton_vei0l_101",loadingSourceInfos="_loadingSourceInfos_vei0l_125",loading="_loading_vei0l_28",loadingError="_loadingError_vei0l_139",highlightLoadingInfo="_highlightLoadingInfo_vei0l_155",highlightLoadingInfoInnerContainer="_highlightLoadingInfoInnerContainer_vei0l_169",highlightLoadingInfoContent="_highlightLoadingInfoContent_vei0l_178",highlightLoadingInfoCloseIcon="_highlightLoadingInfoCloseIcon_vei0l_198",highlightLoader="_highlightLoader_vei0l_203",highlightLoaderLoading="_highlightLoaderLoading_vei0l_210",styles$1={sourceInfos,waitForLoading,loadingContent,sourceHeader,sourceHeaderIcon,sourceContent,openSourceButton,sourceButtonLabel,closeSourceInfosButton,loadingSourceInfos,loading,loadingError,highlightLoadingInfo,highlightLoadingInfoInnerContainer,highlightLoadingInfoContent,highlightLoadingInfoCloseIcon,highlightLoader,highlightLoaderLoading},CloseSourceInfosButton=({onClick:t})=>{const i=useTranslation();return jsxRuntimeExports.jsx("button",{className:clsx(styles$1.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":i("source-infos.close"),"data-title":i("source-infos.close"),tabIndex:0,onClick:t,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})})})},Header=reactExports.forwardRef(({sourceInfos:t,onClose:i,...l},c)=>jsxRuntimeExports.jsxs("div",{className:styles$1.sourceHeader,...l,ref:c,children:[jsxRuntimeExports.jsx("div",{children:t?jsxRuntimeExports.jsx("p",{id:"source-info-title",children:t.title}):jsxRuntimeExports.jsx("p",{children:" "})}),jsxRuntimeExports.jsx(CloseSourceInfosButton,{onClick:i})]})),HighlightLoader=({loading:t})=>jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoader,children:t&&jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoaderLoading})});const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(i){return i});seal||(seal=function(i){return i});apply||(apply=function(i,l){for(var c=arguments.length,d=new Array(c>2?c-2:0),m=2;m<c;m++)d[m-2]=arguments[m];return i.apply(l,d)});construct||(construct=function(i){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];return new i(...c)});const arrayForEach=unapply(Array.prototype.forEach),arrayLastIndexOf=unapply(Array.prototype.lastIndexOf),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),arraySplice=unapply(Array.prototype.splice),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(t){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];return apply(t,i,c)}}function unconstruct(t){return function(){for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];return construct(t,l)}}function addToSet(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(t,null);let c=i.length;for(;c--;){let d=i[c];if(typeof d=="string"){const m=l(d);m!==d&&(isFrozen(i)||(i[c]=m),d=m)}t[d]=!0}return t}function cleanArray(t){for(let i=0;i<t.length;i++)objectHasOwnProperty(t,i)||(t[i]=null);return t}function clone(t){const i=create(null);for(const[l,c]of entries(t))objectHasOwnProperty(t,l)&&(Array.isArray(c)?i[l]=cleanArray(c):c&&typeof c=="object"&&c.constructor===Object?i[l]=clone(c):i[l]=c);return i}function lookupGetter(t,i){for(;t!==null;){const c=getOwnPropertyDescriptor(t,i);if(c){if(c.get)return unapply(c.get);if(typeof c.value=="function")return unapply(c.value)}t=getPrototypeOf(t)}function l(){return null}return l}const html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR,ATTR_WHITESPACE,CUSTOM_ELEMENT,DATA_ATTR,DOCTYPE_NAME,ERB_EXPR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,MUSTACHE_EXPR,TMPLIT_EXPR});const NODE_TYPE={element:1,text:3,progressingInstruction:7,comment:8,document:9},getGlobal=function t(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function t(i,l){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let c=null;const d="data-tt-policy-suffix";l&&l.hasAttribute(d)&&(c=l.getAttribute(d));const m="dompurify"+(c?"#"+c:"");try{return i.createPolicy(m,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},_createHooksMap=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const i=Se=>createDOMPurify(Se);if(i.version="3.3.1",i.removed=[],!t||!t.document||t.document.nodeType!==NODE_TYPE.document||!t.Element)return i.isSupported=!1,i;let{document:l}=t;const c=l,d=c.currentScript,{DocumentFragment:m,HTMLTemplateElement:y,Node:_,Element:v,NodeFilter:E,NamedNodeMap:S=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:A,DOMParser:T,trustedTypes:D}=t,k=v.prototype,R=lookupGetter(k,"cloneNode"),N=lookupGetter(k,"remove"),z=lookupGetter(k,"nextSibling"),L=lookupGetter(k,"childNodes"),U=lookupGetter(k,"parentNode");if(typeof y=="function"){const Se=l.createElement("template");Se.content&&Se.content.ownerDocument&&(l=Se.content.ownerDocument)}let Y,X="";const{implementation:Q,createNodeIterator:G,createDocumentFragment:te,getElementsByTagName:J}=l,{importNode:le}=c;let ae=_createHooksMap();i.isSupported=typeof entries=="function"&&typeof U=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:_e,TMPLIT_EXPR:ye,DATA_ATTR:Ee,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Re}=EXPRESSIONS;let{IS_ALLOWED_URI:Te}=EXPRESSIONS,H=null;const ie=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let ue=null;const ve=addToSet({},[...html,...svg,...mathMl,...xml]);let pe=Object.seal(create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,xe=null;const De=Object.seal(create(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Me=!0,Ye=!0,ut=!1,je=!0,yt=!1,Rt=!0,ze=!1,ct=!1,$t=!1,gn=!1,Ke=!1,Gt=!1,Ot=!0,tn=!1;const St="user-content-";let st=!0,_n=!1,Ht={},Mt=null;const Dt=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let cn=null;const fn=addToSet({},["audio","video","img","source","image","track"]);let Gn=null;const nt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",vt="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let $e=ht,tt=!1,nn=null;const hn=addToSet({},[dn,vt,ht],stringToString);let kt=addToSet({},["mi","mo","mn","ms","mtext"]),at=addToSet({},["annotation-xml"]);const Ft=addToSet({},["title","style","font","a","script"]);let At=null;const xn=["application/xhtml+xml","text/html"],Sn="text/html";let pt=null,an=null;const Fn=l.createElement("form"),Rn=function(P){return P instanceof RegExp||P instanceof Function},Xn=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(an&&an===P)){if((!P||typeof P!="object")&&(P={}),P=clone(P),At=xn.indexOf(P.PARSER_MEDIA_TYPE)===-1?Sn:P.PARSER_MEDIA_TYPE,pt=At==="application/xhtml+xml"?stringToString:stringToLowerCase,H=objectHasOwnProperty(P,"ALLOWED_TAGS")?addToSet({},P.ALLOWED_TAGS,pt):ie,ue=objectHasOwnProperty(P,"ALLOWED_ATTR")?addToSet({},P.ALLOWED_ATTR,pt):ve,nn=objectHasOwnProperty(P,"ALLOWED_NAMESPACES")?addToSet({},P.ALLOWED_NAMESPACES,stringToString):hn,Gn=objectHasOwnProperty(P,"ADD_URI_SAFE_ATTR")?addToSet(clone(nt),P.ADD_URI_SAFE_ATTR,pt):nt,cn=objectHasOwnProperty(P,"ADD_DATA_URI_TAGS")?addToSet(clone(fn),P.ADD_DATA_URI_TAGS,pt):fn,Mt=objectHasOwnProperty(P,"FORBID_CONTENTS")?addToSet({},P.FORBID_CONTENTS,pt):Dt,be=objectHasOwnProperty(P,"FORBID_TAGS")?addToSet({},P.FORBID_TAGS,pt):clone({}),xe=objectHasOwnProperty(P,"FORBID_ATTR")?addToSet({},P.FORBID_ATTR,pt):clone({}),Ht=objectHasOwnProperty(P,"USE_PROFILES")?P.USE_PROFILES:!1,Me=P.ALLOW_ARIA_ATTR!==!1,Ye=P.ALLOW_DATA_ATTR!==!1,ut=P.ALLOW_UNKNOWN_PROTOCOLS||!1,je=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,yt=P.SAFE_FOR_TEMPLATES||!1,Rt=P.SAFE_FOR_XML!==!1,ze=P.WHOLE_DOCUMENT||!1,gn=P.RETURN_DOM||!1,Ke=P.RETURN_DOM_FRAGMENT||!1,Gt=P.RETURN_TRUSTED_TYPE||!1,$t=P.FORCE_BODY||!1,Ot=P.SANITIZE_DOM!==!1,tn=P.SANITIZE_NAMED_PROPS||!1,st=P.KEEP_CONTENT!==!1,_n=P.IN_PLACE||!1,Te=P.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,$e=P.NAMESPACE||ht,kt=P.MATHML_TEXT_INTEGRATION_POINTS||kt,at=P.HTML_INTEGRATION_POINTS||at,pe=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&Rn(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(pe.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&Rn(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(pe.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),yt&&(Ye=!1),Ke&&(gn=!0),Ht&&(H=addToSet({},text),ue=[],Ht.html===!0&&(addToSet(H,html$1),addToSet(ue,html)),Ht.svg===!0&&(addToSet(H,svg$1),addToSet(ue,svg),addToSet(ue,xml)),Ht.svgFilters===!0&&(addToSet(H,svgFilters),addToSet(ue,svg),addToSet(ue,xml)),Ht.mathMl===!0&&(addToSet(H,mathMl$1),addToSet(ue,mathMl),addToSet(ue,xml))),P.ADD_TAGS&&(typeof P.ADD_TAGS=="function"?De.tagCheck=P.ADD_TAGS:(H===ie&&(H=clone(H)),addToSet(H,P.ADD_TAGS,pt))),P.ADD_ATTR&&(typeof P.ADD_ATTR=="function"?De.attributeCheck=P.ADD_ATTR:(ue===ve&&(ue=clone(ue)),addToSet(ue,P.ADD_ATTR,pt))),P.ADD_URI_SAFE_ATTR&&addToSet(Gn,P.ADD_URI_SAFE_ATTR,pt),P.FORBID_CONTENTS&&(Mt===Dt&&(Mt=clone(Mt)),addToSet(Mt,P.FORBID_CONTENTS,pt)),P.ADD_FORBID_CONTENTS&&(Mt===Dt&&(Mt=clone(Mt)),addToSet(Mt,P.ADD_FORBID_CONTENTS,pt)),st&&(H["#text"]=!0),ze&&addToSet(H,["html","head","body"]),H.table&&(addToSet(H,["tbody"]),delete be.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Y=P.TRUSTED_TYPES_POLICY,X=Y.createHTML("")}else Y===void 0&&(Y=_createTrustedTypesPolicy(D,d)),Y!==null&&typeof X=="string"&&(X=Y.createHTML(""));freeze&&freeze(P),an=P}},rn=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),ln=addToSet({},[...mathMl$1,...mathMlDisallowed]),Xt=function(P){let me=U(P);(!me||!me.tagName)&&(me={namespaceURI:$e,tagName:"template"});const ge=stringToLowerCase(P.tagName),Oe=stringToLowerCase(me.tagName);return nn[P.namespaceURI]?P.namespaceURI===vt?me.namespaceURI===ht?ge==="svg":me.namespaceURI===dn?ge==="svg"&&(Oe==="annotation-xml"||kt[Oe]):!!rn[ge]:P.namespaceURI===dn?me.namespaceURI===ht?ge==="math":me.namespaceURI===vt?ge==="math"&&at[Oe]:!!ln[ge]:P.namespaceURI===ht?me.namespaceURI===vt&&!at[Oe]||me.namespaceURI===dn&&!kt[Oe]?!1:!ln[ge]&&(Ft[ge]||!rn[ge]):!!(At==="application/xhtml+xml"&&nn[P.namespaceURI]):!1},Lt=function(P){arrayPush(i.removed,{element:P});try{U(P).removeChild(P)}catch{N(P)}},Ge=function(P,me){try{arrayPush(i.removed,{attribute:me.getAttributeNode(P),from:me})}catch{arrayPush(i.removed,{attribute:null,from:me})}if(me.removeAttribute(P),P==="is")if(gn||Ke)try{Lt(me)}catch{}else try{me.setAttribute(P,"")}catch{}},An=function(P){let me=null,ge=null;if($t)P="<remove></remove>"+P;else{const Ae=stringMatch(P,/^[\r\n\t ]+/);ge=Ae&&Ae[0]}At==="application/xhtml+xml"&&$e===ht&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const Oe=Y?Y.createHTML(P):P;if($e===ht)try{me=new T().parseFromString(Oe,At)}catch{}if(!me||!me.documentElement){me=Q.createDocument($e,"template",null);try{me.documentElement.innerHTML=tt?X:Oe}catch{}}const Ue=me.body||me.documentElement;return P&&ge&&Ue.insertBefore(l.createTextNode(ge),Ue.childNodes[0]||null),$e===ht?J.call(me,ze?"html":"body")[0]:ze?me.documentElement:Ue},Tn=function(P){return G.call(P.ownerDocument||P,P,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},qt=function(P){return P instanceof A&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof S)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Ct=function(P){return typeof _=="function"&&P instanceof _};function ft(Se,P,me){arrayForEach(Se,ge=>{ge.call(i,P,me,an)})}const sn=function(P){let me=null;if(ft(ae.beforeSanitizeElements,P,null),qt(P))return Lt(P),!0;const ge=pt(P.nodeName);if(ft(ae.uponSanitizeElement,P,{tagName:ge,allowedTags:H}),Rt&&P.hasChildNodes()&&!Ct(P.firstElementChild)&&regExpTest(/<[/\w!]/g,P.innerHTML)&&regExpTest(/<[/\w!]/g,P.textContent)||P.nodeType===NODE_TYPE.progressingInstruction||Rt&&P.nodeType===NODE_TYPE.comment&&regExpTest(/<[/\w]/g,P.data))return Lt(P),!0;if(!(De.tagCheck instanceof Function&&De.tagCheck(ge))&&(!H[ge]||be[ge])){if(!be[ge]&&We(ge)&&(pe.tagNameCheck instanceof RegExp&&regExpTest(pe.tagNameCheck,ge)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(ge)))return!1;if(st&&!Mt[ge]){const Oe=U(P)||P.parentNode,Ue=L(P)||P.childNodes;if(Ue&&Oe){const Ae=Ue.length;for(let Ne=Ae-1;Ne>=0;--Ne){const Ve=R(Ue[Ne],!0);Ve.__removalCount=(P.__removalCount||0)+1,Oe.insertBefore(Ve,z(P))}}}return Lt(P),!0}return P instanceof v&&!Xt(P)||(ge==="noscript"||ge==="noembed"||ge==="noframes")&&regExpTest(/<\/no(script|embed|frames)/i,P.innerHTML)?(Lt(P),!0):(yt&&P.nodeType===NODE_TYPE.text&&(me=P.textContent,arrayForEach([se,_e,ye],Oe=>{me=stringReplace(me,Oe," ")}),P.textContent!==me&&(arrayPush(i.removed,{element:P.cloneNode()}),P.textContent=me)),ft(ae.afterSanitizeElements,P,null),!1)},Kn=function(P,me,ge){if(Ot&&(me==="id"||me==="name")&&(ge in l||ge in Fn))return!1;if(!(Ye&&!xe[me]&&regExpTest(Ee,me))){if(!(Me&&regExpTest(K,me))){if(!(De.attributeCheck instanceof Function&&De.attributeCheck(me,P))){if(!ue[me]||xe[me]){if(!(We(P)&&(pe.tagNameCheck instanceof RegExp&&regExpTest(pe.tagNameCheck,P)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(P))&&(pe.attributeNameCheck instanceof RegExp&&regExpTest(pe.attributeNameCheck,me)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(me,P))||me==="is"&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&regExpTest(pe.tagNameCheck,ge)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(ge))))return!1}else if(!Gn[me]){if(!regExpTest(Te,stringReplace(ge,ee,""))){if(!((me==="src"||me==="xlink:href"||me==="href")&&P!=="script"&&stringIndexOf(ge,"data:")===0&&cn[P])){if(!(ut&&!regExpTest(he,stringReplace(ge,ee,"")))){if(ge)return!1}}}}}}}return!0},We=function(P){return P!=="annotation-xml"&&stringMatch(P,Re)},wn=function(P){ft(ae.beforeSanitizeAttributes,P,null);const{attributes:me}=P;if(!me||qt(P))return;const ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ue,forceKeepAttr:void 0};let Oe=me.length;for(;Oe--;){const Ue=me[Oe],{name:Ae,namespaceURI:Ne,value:Ve}=Ue,dt=pt(Ae),Le=Ve;let et=Ae==="value"?Le:stringTrim(Le);if(ge.attrName=dt,ge.attrValue=et,ge.keepAttr=!0,ge.forceKeepAttr=void 0,ft(ae.uponSanitizeAttribute,P,ge),et=ge.attrValue,tn&&(dt==="id"||dt==="name")&&(Ge(Ae,P),et=St+et),Rt&&regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i,et)){Ge(Ae,P);continue}if(dt==="attributename"&&stringMatch(et,"href")){Ge(Ae,P);continue}if(ge.forceKeepAttr)continue;if(!ge.keepAttr){Ge(Ae,P);continue}if(!je&&regExpTest(/\/>/i,et)){Ge(Ae,P);continue}yt&&arrayForEach([se,_e,ye],bt=>{et=stringReplace(et,bt," ")});const He=pt(P.nodeName);if(!Kn(He,dt,et)){Ge(Ae,P);continue}if(Y&&typeof D=="object"&&typeof D.getAttributeType=="function"&&!Ne)switch(D.getAttributeType(He,dt)){case"TrustedHTML":{et=Y.createHTML(et);break}case"TrustedScriptURL":{et=Y.createScriptURL(et);break}}if(et!==Le)try{Ne?P.setAttributeNS(Ne,Ae,et):P.setAttribute(Ae,et),qt(P)?Lt(P):arrayPop(i.removed)}catch{Ge(Ae,P)}}ft(ae.afterSanitizeAttributes,P,null)},Nn=function Se(P){let me=null;const ge=Tn(P);for(ft(ae.beforeSanitizeShadowDOM,P,null);me=ge.nextNode();)ft(ae.uponSanitizeShadowNode,me,null),sn(me),wn(me),me.content instanceof m&&Se(me.content);ft(ae.afterSanitizeShadowDOM,P,null)};return i.sanitize=function(Se){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=null,ge=null,Oe=null,Ue=null;if(tt=!Se,tt&&(Se="<!-->"),typeof Se!="string"&&!Ct(Se))if(typeof Se.toString=="function"){if(Se=Se.toString(),typeof Se!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!i.isSupported)return Se;if(ct||Xn(P),i.removed=[],typeof Se=="string"&&(_n=!1),_n){if(Se.nodeName){const Ve=pt(Se.nodeName);if(!H[Ve]||be[Ve])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Se instanceof _)me=An("<!---->"),ge=me.ownerDocument.importNode(Se,!0),ge.nodeType===NODE_TYPE.element&&ge.nodeName==="BODY"||ge.nodeName==="HTML"?me=ge:me.appendChild(ge);else{if(!gn&&!yt&&!ze&&Se.indexOf("<")===-1)return Y&&Gt?Y.createHTML(Se):Se;if(me=An(Se),!me)return gn?null:Gt?X:""}me&&$t&&Lt(me.firstChild);const Ae=Tn(_n?Se:me);for(;Oe=Ae.nextNode();)sn(Oe),wn(Oe),Oe.content instanceof m&&Nn(Oe.content);if(_n)return Se;if(gn){if(Ke)for(Ue=te.call(me.ownerDocument);me.firstChild;)Ue.appendChild(me.firstChild);else Ue=me;return(ue.shadowroot||ue.shadowrootmode)&&(Ue=le.call(c,Ue,!0)),Ue}let Ne=ze?me.outerHTML:me.innerHTML;return ze&&H["!doctype"]&&me.ownerDocument&&me.ownerDocument.doctype&&me.ownerDocument.doctype.name&&regExpTest(DOCTYPE_NAME,me.ownerDocument.doctype.name)&&(Ne="<!DOCTYPE "+me.ownerDocument.doctype.name+`>
119
+ `+Ne),yt&&arrayForEach([se,_e,ye],Ve=>{Ne=stringReplace(Ne,Ve," ")}),Y&&Gt?Y.createHTML(Ne):Ne},i.setConfig=function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xn(Se),ct=!0},i.clearConfig=function(){an=null,ct=!1},i.isValidAttribute=function(Se,P,me){an||Xn({});const ge=pt(Se),Oe=pt(P);return Kn(ge,Oe,me)},i.addHook=function(Se,P){typeof P=="function"&&arrayPush(ae[Se],P)},i.removeHook=function(Se,P){if(P!==void 0){const me=arrayLastIndexOf(ae[Se],P);return me===-1?void 0:arraySplice(ae[Se],me,1)[0]}return arrayPop(ae[Se])},i.removeHooks=function(Se){ae[Se]=[]},i.removeAllHooks=function(){ae=_createHooksMap()},i}var purify=createDOMPurify();const HighlightLoadingInfo=({onClose:t})=>{const i=useTranslation();return jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfo,onClick:t,children:[jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoadingInfoCloseIcon,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})})}),jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfoInnerContainer,children:[jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfoContent,children:[jsxRuntimeExports.jsx("h3",{children:i("source-infos.highlight-loading.title")}),jsxRuntimeExports.jsx("p",{children:i("source-infos.highlight-loading.description")})]}),jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:jsxRuntimeExports.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"})})]})]})},MarkdownLink=({title:t,href:i,children:l})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:l}),DefaultLinkButton=({className:t,children:i,...l})=>jsxRuntimeExports.jsx("a",{className:clsx(styles$g.button,styles$g.buttonDefault,t),type:"button",role:"button",...l,children:i}),Text=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.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"})}),KnowledgeBaseTypeIcon=({type:t,...i})=>{switch(t){case"WEBSITE":return jsxRuntimeExports.jsx(Web,{...i});case"PDF":return jsxRuntimeExports.jsx(Pdf,{...i});case"DOCX":return jsxRuntimeExports.jsx(Docx,{...i});case"TEXT":return jsxRuntimeExports.jsx(Text,{...i});default:return jsxRuntimeExports.jsx(File$1,{...i})}},OpenButton=({url:t,knowledgeBaseType:i})=>{const l=useTranslation();return jsxRuntimeExports.jsx(DefaultLinkButton,{className:styles$1.openSourceButton,href:t,target:"_blank",children:jsxRuntimeExports.jsxs("div",{className:styles$1.sourceButtonLabel,children:[jsxRuntimeExports.jsx("div",{className:styles$1.sourceHeaderIcon,children:jsxRuntimeExports.jsx(KnowledgeBaseTypeIcon,{type:i})}),jsxRuntimeExports.jsx("p",{children:l("source-infos.open-source")})]})})},LoadedSourceInfos=({sourceInfos:{content:t,url:i,knowledgeBaseType:l,highlighted:c}})=>{const[d,m]=reactExports.useState(!c);reactExports.useEffect(()=>{c&&m(!1)},[c]);const y=purify.sanitize(t,{USE_PROFILES:{html:!0}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$1.sourceContent,markdownStyle.markdown),children:[jsxRuntimeExports.jsx(f6,{options:{overrides:{a:MarkdownLink}},children:y}),d&&jsxRuntimeExports.jsx(HighlightLoadingInfo,{onClose:()=>m(!1)})]}),jsxRuntimeExports.jsx(OpenButton,{url:i,knowledgeBaseType:l})]})},fixingError=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,LoadingError=()=>{const t=useTranslation();return jsxRuntimeExports.jsxs("div",{className:styles$1.loadingError,children:[jsxRuntimeExports.jsx("h1",{children:t("source-infos.error.title")}),jsxRuntimeExports.jsx("img",{src:fixingError,title:t("source-infos.error.title")}),jsxRuntimeExports.jsx("p",{children:t("source-infos.error.info")})]})},LoadingSourceInfos=()=>jsxRuntimeExports.jsx("div",{className:styles$1.loadingSourceInfos,children:jsxRuntimeExports.jsx("svg",{className:styles$1.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.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 useSwipeToClose({sourceInfos:t,onClose:i,threshold:l=100}){const c=reactExports.useRef(null),[d,m]=reactExports.useState(0),[y,_]=reactExports.useState(!1),v=reactExports.useRef(null),E=reactExports.useRef(null),S=reactExports.useCallback(k=>{v.current=k,_(!0)},[]),A=reactExports.useCallback(k=>{if(v.current!==null&&y){const R=k-v.current;R>0&&m(R)}},[y]),T=reactExports.useCallback(()=>{_(!1),d>l&&i(),m(0),v.current=null},[d,l,i]),D=reactExports.useCallback(k=>{const R=X=>S(X.touches[0].clientY),N=X=>A(X.touches[0].clientY),z=()=>T(),L=X=>{X.preventDefault(),S(X.clientY),window.addEventListener("mousemove",U),window.addEventListener("mouseup",Y)},U=X=>A(X.clientY),Y=()=>{T(),window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",Y)};k.addEventListener("touchstart",R),k.addEventListener("touchmove",N),k.addEventListener("touchend",z),k.addEventListener("mousedown",L),E.current=()=>{k.removeEventListener("touchstart",R),k.removeEventListener("touchmove",N),k.removeEventListener("touchend",z),k.removeEventListener("mousedown",L),window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",Y)}},[S,A,T]);return reactExports.useEffect(()=>{let k;return c.current?(E.current?.(),D(c.current)):(k=new MutationObserver(()=>{c.current&&(E.current?.(),D(c.current),k?.disconnect())}),k.observe(document.body,{childList:!0,subtree:!0})),()=>{k?.disconnect(),E.current?.()}},[D,t]),{ref:c,dragOffsetY:d,isDragging:y}}const useWaitForLoadingEffect=t=>{const[i,l]=reactExports.useState(!0);return reactExports.useEffect(()=>{let c=null;return t?.type==="loading"?(l(!0),c=setTimeout(()=>{l(!1)},300)):l(!t),()=>{c&&clearTimeout(c)}},[t]),i},SourceInfos=()=>{const t=useAppDispatch(),i=useAppSelector(v=>v.chat.sourceInfos),l=useIsSmallScreen(),c=reactExports.useRef(null),d=useWaitForLoadingEffect(i);reactExports.useEffect(()=>{c.current&&i?.type==="loading"&&(l?c.current.showModal():(c.current.setAttribute("open","true"),c.current?.focus()))},[i,l]);const m=reactExports.useCallback(()=>{c.current&&(l?c.current.close():c.current.removeAttribute("open"),t(closeSourceInfos()))},[t,l]),{ref:y,dragOffsetY:_}=useSwipeToClose({onClose:m,sourceInfos:i});return i?jsxRuntimeExports.jsx("dialog",{ref:c,className:clsx(styles$1.sourceInfos,d?styles$1.waitForLoading:i.type==="loading"?styles$1.loadingContent:""),style:l&&_?{transform:`translateY(${_}px)`}:{},onClose:m,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:d?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header,{ref:y,tabIndex:-1,sourceInfos:i.type==="loaded"?i:void 0,onClose:m}),i.type==="loading"?jsxRuntimeExports.jsx(LoadingSourceInfos,{}):i.type==="loading-error"?jsxRuntimeExports.jsx(LoadingError,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HighlightLoader,{loading:!i.highlighted}),jsxRuntimeExports.jsx(LoadedSourceInfos,{sourceInfos:i})]})]})}):null},container$1="_container_1aof3_1",body="_body_1aof3_7",intro="_intro_1aof3_14",footer="_footer_1aof3_39",footnote="_footnote_1aof3_43",containerWithFootnote="_containerWithFootnote_1aof3_58",startChatButton="_startChatButton_1aof3_73",spinner="_spinner_1aof3_88",formFields="_formFields_1aof3_92",formField="_formField_1aof3_92",radio="_radio_1aof3_104",checkbox="_checkbox_1aof3_111",input="_input_1aof3_119",inputLabel="_inputLabel_1aof3_153",selectWrapper="_selectWrapper_1aof3_157",select="_select_1aof3_157",selectLabel="_selectLabel_1aof3_203",styles={container:container$1,body,intro,footer,footnote,containerWithFootnote,startChatButton,spinner,formFields,formField,radio,checkbox,input,inputLabel,selectWrapper,select,selectLabel},Checkbox=({name:t,label:i,defaultValue:l,required:c,onChange:d})=>{const m=y=>{d(y.currentTarget.checked?"true":"false")};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:l==="true",required:c,onChange:m}),jsxRuntimeExports.jsx("div",{children:i})]})},Input=({type:t,name:i,label:l,defaultValue:c,placeholder:d,required:m,multiple:y,min:_,max:v,pattern:E,onChange:S})=>{const A=T=>{S(T.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.input,"chat__startScreen__input"),htmlFor:i,children:[jsxRuntimeExports.jsx("div",{className:clsx(styles.inputLabel),children:l}),jsxRuntimeExports.jsx("input",{type:t,id:i,name:i,defaultValue:c,placeholder:d,required:m,multiple:y,min:_,max:v,pattern:E,onChange:A})]})},Radio=({name:t,value:i,label:l,defaultChecked:c,required:d,onChange:m})=>{const y=`${t}-${i}`,_=v=>{m(v.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.radio,"chat__startScreen__radio"),htmlFor:y,children:[jsxRuntimeExports.jsx("input",{id:y,type:"radio",name:t,value:i,defaultChecked:c,required:d,onChange:_}),jsxRuntimeExports.jsx("span",{className:clsx(styles.label),children:l})]})},Select=({name:t,label:i,defaultValue:l,required:c,multiple:d,options:m,onChange:y})=>{const _=v=>{y(v.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.select,"chat__startScreen__select"),htmlFor:t,children:[jsxRuntimeExports.jsx("div",{className:clsx(styles.selectLabel),children:i}),jsxRuntimeExports.jsx("div",{className:clsx(styles.selectWrapper),children:jsxRuntimeExports.jsx("select",{id:t,name:t,defaultValue:l,required:c,multiple:d,onChange:_,children:Object.entries(m||{}).map(([v,E])=>jsxRuntimeExports.jsx("option",{value:v,selected:E===l,children:E}))})})]})},INTRO_KEY="start-screen.intro",START_CHAT_KEY="start-screen.start-chat",WAITING_FOR_LOGIN_KEY="start-screen.waiting-for-login",FOOTNOTE_KEY="start-screen.footnote",FORM_KEY="start-screen.form",FORM_FIELDS_KEY=`${FORM_KEY}.fields`,StartScreen=()=>{const t=useTranslation(),i=useAppDispatch(),l=useClientName(),c=useAppSelector(k=>k.startScreen.loginRequestToken),d=useAppSelector(k=>k.settings.requiresUserAuthentication);reactExports.useEffect(()=>{let k;if(c){const z=window.screenX+(window.outerWidth-600)/2,L=window.screenY+(window.outerHeight-700)/2,U=window.open(`/${l}/auth/login?loginRequestToken=${c}`,"Login",`width=600,height=700,left=${z},top=${L},resizable=yes,scrollbars=yes`);k=setInterval(()=>{U?.closed&&(i(loginWindowClosed()),clearInterval(k))},500)}return()=>{k&&clearInterval(k)}},[l,c,i]);const[m,y]=reactExports.useState({}),_=()=>{const k=Object.entries(m).reduce((R,[N,z])=>({...R,[N]:z.value}),{});i(d?requestLogin({loginRequestToken:v4(),formValues:k}):startChat$1({formValues:k}))},v=t(INTRO_KEY),E=t(c?WAITING_FOR_LOGIN_KEY:START_CHAT_KEY),S=t(FOOTNOTE_KEY),A=reactExports.useMemo(()=>t(FORM_FIELDS_KEY)?.split(";").map(k=>k.trim())??[],[t(FORM_FIELDS_KEY)]);reactExports.useEffect(()=>{A.length&&Object.keys(m).length===0&&y(A.reduce((k,R)=>({...k,[R]:toFormField(R,t)}),{}))},[t,A,m]);const T=k=>{k.preventDefault(),_()},D=k=>R=>{y(N=>({...N,[k]:{...N[k],value:R}}))};return jsxRuntimeExports.jsxs("form",{onSubmit:T,className:clsx(styles.container,S&&styles.containerWithFootnote,"chat__startScreen"),children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles.body,"chat__startScreen__body"),children:[v&&jsxRuntimeExports.jsx("div",{className:clsx(styles.intro,"chat__startScreen__intro"),children:jsxRuntimeExports.jsx(f6,{options:{overrides:{a:Link}},children:v})}),jsxRuntimeExports.jsx("div",{className:clsx(styles.formFields,"chat__startScreen__fields"),children:Object.values(m).map(({type:k,name:R,label:N,placeholder:z,defaultValue:L,options:U,required:Y,multiple:X,min:Q,max:G,pattern:te})=>jsxRuntimeExports.jsx("div",{className:clsx(styles.formField,"chat__startScreen__field"),children:(()=>{switch(k){case"radio":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:N}),Object.entries(U||{}).map(([J,le])=>jsxRuntimeExports.jsx(Radio,{name:R,value:J,label:le,defaultChecked:J===L,required:Y,onChange:D(R)},J))]});case"checkbox":return jsxRuntimeExports.jsx(Checkbox,{name:R,label:N,defaultValue:L,required:Y,onChange:D(R)});case"select":return jsxRuntimeExports.jsx(Select,{name:R,label:N,defaultValue:L,required:Y,multiple:X,options:U,onChange:D(R)});default:return jsxRuntimeExports.jsx(Input,{type:k,name:R,label:N,placeholder:z,defaultValue:L,required:Y,multiple:X,min:Q,max:G,pattern:te,onChange:D(R)})}})()},R))})]}),jsxRuntimeExports.jsxs("div",{className:clsx(styles.footer,"chat__startScreen__footer"),children:[jsxRuntimeExports.jsxs(PrimaryButton,{type:"submit",className:styles.startChatButton,disabled:!!c,children:[!!c&&jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:styles.spinner,children:jsxRuntimeExports.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),jsxRuntimeExports.jsx("div",{children:E})]}),S&&jsxRuntimeExports.jsx("div",{className:styles.footnote,children:jsxRuntimeExports.jsx(f6,{options:{overrides:{a:Link}},children:S})})]})]})},Link=({title:t,href:i,children:l})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:l}),toFormField=(t,i)=>{const l=i(`${FORM_KEY}.${t}.type`)||"text",c=i(`${FORM_KEY}.${t}.required`)==="true",d=i(`${FORM_KEY}.${t}.multiple`)==="true",m=i(`${FORM_KEY}.${t}.placeholder`),y=i(`${FORM_KEY}.${t}.label`)||"",_=i(`${FORM_KEY}.${t}.defaultValue`),v=i(`${FORM_KEY}.${t}.min`),E=i(`${FORM_KEY}.${t}.max`),S=i(`${FORM_KEY}.${t}.pattern`),A=toFormFieldOptions(i(`${FORM_KEY}.${t}.options`));return{name:t,label:y,placeholder:m,value:getTypeSpecificValue(l,_,A)||"",defaultValue:_,options:A,type:l,required:c,multiple:d,min:v,max:E,pattern:S}},getTypeSpecificValue=(t,i,l)=>i||t==="select"&&Object.keys(l)[0]||"",toFormFieldOptions=(t="")=>t.split(";").map(i=>i.trim()).reduce((i,l)=>{const[c,d]=l.split(":").map(m=>m.trim());return{...i,[c]:d}},{}),useSetDocumentLanguageEffect=()=>{const t=useAppSelector(i=>i.intl.locale);reactExports.useEffect(()=>{window.document.documentElement.lang=t},[t])},INCOMMING_EVENTS={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"},RootScene=({clientName:t})=>{useSetDocumentLanguageEffect();const i=useAppDispatch(),l=useAppSelector(S=>S.intl.messages),c=useTranslation(),d=useAppSelector(S=>S.settings.enableStartScreen),m=useAppSelector(S=>S.startScreen.startScreenStatus),y=useAppSelector(S=>S.connection.queryString),_=reactExports.useMemo(()=>new URLSearchParams(y||"?").get("cssClassName"),[y]);reactExports.useEffect(()=>{const S=new URLSearchParams(y||""),A=Object.fromEntries(S.entries()),T=D=>{switch(D.data.type){case INCOMMING_EVENTS.TRIGGER_ACTION:i(D.data.action);break;case INCOMMING_EVENTS.TRIGGER_STORY:i(requestNLUEvent(D.data.story));break;case INCOMMING_EVENTS.ON_CHAT_WINDOW_OPEN:i({type:"webclient.chatwindow.opened"});break;case INCOMMING_EVENTS.ON_CHAT_WINDOW_CLOSE:i({type:"webclient.chatwindow.closed"});break;case INCOMMING_EVENTS.CHAT_MESSAGE_FROM_GUEST:i(sendMessageFromUser(D.data.text));break;case INCOMMING_EVENTS.RESTART_CHAT:i(restartChat());break}};return i(connect(t,A)),window.addEventListener("message",D=>T(D),!1),()=>window.removeEventListener("message",T)},[t,y,i]),reactExports.useEffect(()=>{const S=c("page.title");S&&document&&(document.title=S)},[l,c]);const v=d===void 0,E=d===!1||m==="HIDDEN";return jsxRuntimeExports.jsx("div",{className:clsx(styles$2.chatwindow,E&&styles$2.chatwindowWithAside,"chat__chatwindow",_),children:v?null:E?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("header",{children:jsxRuntimeExports.jsx(Header$1,{chatStarted:!0})}),jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsx(Chat,{clientName:t})}),jsxRuntimeExports.jsx("aside",{children:jsxRuntimeExports.jsx(SourceInfos,{})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("header",{children:jsxRuntimeExports.jsx(Header$1,{chatStarted:!1})}),jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsx(StartScreen,{})})]})})},App=()=>{const t=useClientName(),i=useIsSmallScreen();return jsxRuntimeExports.jsx("div",{className:clsx([styles$o.app,i?"chat__small":"chat__large"]),children:jsxRuntimeExports.jsx(RootScene,{clientName:t})})},de={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","message-input.actions.command.label":"Aktion ausführen","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.actions.label":"Nachricht-Aktionen","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","conversation.label":"Chat Verlauf","chatbot.typing":"Chatbot schreibt","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
120
+
121
+ - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
122
+ - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},en={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","message-input.actions.command.label":"Perform action","bot-bubble.label":"Message from the chatbot","bot-bubble.actions.label":"Message actions","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","conversation.label":"Chat history","chatbot.typing":"Chatbot is typing","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
123
+
124
+ - The chat history is stored in the EU area and can only be viewed by authorized personnel.
125
+ - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"};function flattenObject(t,i="",l="."){const c={};for(const d in t)if(Object.prototype.hasOwnProperty.call(t,d)){const m=t[d],y=i?`${i}${l}${d}`:d;m!==null&&typeof m=="object"&&!Array.isArray(m)?Object.assign(c,flattenObject(m,y,l)):c[y]=String(m)}return c}const fr={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","message-input.actions.command.label":"Exécuter l'action","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.actions.label":"Actions du message","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","conversation.label":"Historique du chat","chatbot.typing":"Le chatbot écrit","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
126
+
127
+ - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
128
+ - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},it={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","message-input.actions.command.label":"Esegui azione","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.actions.label":"Azioni del messaggio","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","conversation.label":"Cronologia chat","chatbot.typing":"Il chatbot sta scrivendo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
129
+
130
+ - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
131
+ - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},supportedLocales=["de","en","fr","it"],initialState$3={locale:"de",messages:de},mergeMessages=(t,i)=>{if(supportedLocales.includes(t)){const l=getMessagesByLanguage(t),c=flattenObject(i);return{...l,...c}}return i},getMessagesByLanguage=t=>{switch(t.toString()){case"en":return en;case"fr":return fr;case"it":return it;default:return de}},backendConnectionReducer=(t=initialState$2,i)=>{switch(i.type){case CONNECTING:return Object.assign({},t,{connectionState:ConnectionStateEnum.CONNECTING});case CONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.CONNECTED});case DISCONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.DISCONNECTED});case RECONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.RECONNECTED});case RESTORE_SESSION_ID:return Object.assign({},t,{sessionId:i.sessionId});case START:return Object.assign({},t,{sessionId:i.payload.sessionId,userId:i.payload.userId});case TERMINATE_SESSION:return Object.assign({},t,{sessionId:void 0});default:return t}},initialState$2={connectionState:ConnectionStateEnum.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},chatReducer=(t=initialState$1,i)=>{switch(i.type){case RESET_CHAT_STATE:return initialState$1;case START:return sendToParentPage({type:"webclient.chat.started"}),t;case TERMINATE_SESSION:return sendToParentPage({type:"webclient.chat.ended"}),t;case TYPING_ON:return Object.assign({},t,{isBotTyping:!0});case TYPING_OFF:return Object.assign({},t,{isBotTyping:!1});case MESSAGE_FROM_GUEST:case MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return appendMessageFromGuestToState(t,i.message);case MESSAGE_TO_GUEST:{sendToParentPage(i);const l=Object.assign({},i.message,{_id:i.meta.actionId}),c=t.messages.filter(d=>d._id===i.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:c?t.messages:t.messages.concat([l]),quickReplies:l.quickReplies?l.quickReplies:[]})}case RESTORE_PREVIOUS_CHAT_MESSAGES:{const l=i.messages,c=l.length?l[l.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:l,quickReplies:c?.quickReplies||[]})}case MESSAGE_TO_PARENT_PAGE:return sendToParentPage(i.message),t;case EVENT_TO_GUEST:return sendToParentPage(i.event),t;case DRAWER_OPEN:return Object.assign({},t,{drawerContentUrl:i.payload.parameters.contentUrl});case DRAWER_CLOSE:return Object.assign({},t,{drawerContentUrl:void 0});case GUEST_LOCALE_CHANGED:return Object.assign({},t,{locale:i.payload.locale});case EXPAND_WINDOW:return sendToParentPage(i),t;case CLOSE_WINDOW:return sendToParentPage(i),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case RECEIVE_SPEECH_TRANSCRIPTION:{const l=new TextMessage$1(i.transcription,new GuestUser),c=Object.assign({},l,{_id:v4()});return appendMessageFromGuestToState(t,c)}case TRANSCRIPT_ITEM_GUEST_REACTION:{const l=t.messages.map(c=>c._id===i.payload.actionId?Object.assign({},c,i.payload.reaction?{reaction:{type:i.payload.reaction,category:i.payload.category,comment:i.payload.comment}}:{reaction:void 0}):c);return Object.assign({},t,{messages:l})}case ENABLE_CONVERSATION_RATING:{const l={enabled:!0,rating:i.payload.rating};return Object.assign({},t,{conversationRating:l})}case CONVERSATION_RATING_FROM_GUEST:{const l={...t.conversationRating,rating:i.payload};return Object.assign({},t,{conversationRating:l})}case SHOW_CONVERSATION_RATING_OVERLAY:{const l={...t.conversationRating,opener:i.payload.opener,...i.payload.defaultRating?{rating:{value:i.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:l})}case HIDE_CONVERSATION_RATING_OVERLAY:{const l={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:l})}case LOAD_SOURCE_INFOS_REQUEST:return{...t,sourceInfos:{type:"loading",chunkId:i.payload.chunkId}};case LOAD_SOURCE_INFOS_ERROR:{const{highlighted:l}=i.payload;return t.sourceInfos?.type==="loaded"&&l?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case LOAD_SOURCE_INFOS_RESPONSE:{const l=t.sourceInfos?.type,{chunkId:c,knowledgeBaseType:d,title:m,content:y,highlighted:_,url:v}=i.payload,E=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return E&&E!==c?t:l==="loading"||l==="loaded"&&_?{...t,sourceInfos:{type:"loaded",chunkId:c,knowledgeBaseType:d,title:m,content:y,highlighted:_,url:v}}:t}case CLOSE_SOURCE_INFOS:return{...t,sourceInfos:void 0};case TOGGLE_TRANSCRIPT_MAIL_OVERLAY:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},appendMessageFromGuestToState=(t,i)=>{const l=t.messages[t.messages.length-1],c=l?.text===i.text;return l&&l.sender.type===i.sender.type&&c?t:Object.assign({},t,{messages:t.messages.concat([i]),quickReplies:[]})},sendToParentPage=t=>{isIframe()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},isIframe=()=>typeof window<"u"&&window.self!==window.top,initialState$1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},counterSlice=createSlice({name:"intl",initialState:initialState$3,reducers:{updateIntl:(t,i)=>{t.locale=i.payload.language,t.messages=i.payload.messages}}}),{updateIntl}=counterSlice.actions,intlReducer=counterSlice.reducer,initialState={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},settingsSlice=createSlice({name:"settings",initialState,reducers:{setSettings(t,i){t.version&&t.version!==i.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=i.payload.version,t.requiresUserAuthentication=i.payload.requiresUserAuthentication,t.enableStartScreen=i.payload.enableStartScreen,t.enableStandaloneView=i.payload.enableStandaloneView,t.enableTranscriptExportEmail=i.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=i.payload.enableTranscriptExportPdf,t.enableGeneralConditions=i.payload.enableGeneralConditions,t.enableSpeechSupport=i.payload.enableSpeechSupport,t.commands=i.payload.commands,t.menuItems=i.payload.menuItems||[])}}}),{setSettings}=settingsSlice.actions,settingsSlice$1=settingsSlice.reducer,rootReducer=combineReducers({settings:settingsSlice$1,chat:chatReducer,startScreen:startScreenReducer,connection:backendConnectionReducer,intl:intlReducer}),LOCAL_STORAGE_ITEM_PREFIX="bubble-chat",LOCAL_STORAGE_LAST_SAVED_ITEM_NAME="state-last-saved-at",LOCAL_STORAGE_STATE_ITEM_NAME="state",loadState=t=>{try{if(!supportsLocalStorage())return;const i=getStoreItem(t,LOCAL_STORAGE_LAST_SAVED_ITEM_NAME);if(isExpired(i))return;{const l=getStoreItem(t,LOCAL_STORAGE_STATE_ITEM_NAME);if(l===null)return;const c=JSON.parse(l),d=c.connection?.queryString;if(d!==void 0&&d!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return c}}catch(i){console.error(i);return}},saveState=(t,i)=>{try{const l=JSON.stringify(i);setStoreItem(t,LOCAL_STORAGE_STATE_ITEM_NAME,l);const c=new Date().toISOString();setStoreItem(t,LOCAL_STORAGE_LAST_SAVED_ITEM_NAME,c)}catch(l){console.error(l)}},isExpired=t=>{if(t===null)return!1;const i=new Date(t);return i.setHours(i.getHours()+12),new Date>i},supportsLocalStorage=()=>typeof localStorage<"u",getStoreItem=(t,i)=>{const l=getStoreItemName(t,i);return localStorage.getItem(l)},setStoreItem=(t,i,l)=>{const c=getStoreItemName(t,i);return localStorage.setItem(c,l)},getStoreItemName=(t,i)=>`${LOCAL_STORAGE_ITEM_PREFIX}-${t}-${i}`,PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(t=>{PACKET_TYPES_REVERSE[PACKET_TYPES[t]]=t});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,encodePacket=({type:t,data:i},l,c)=>withNativeBlob$1&&i instanceof Blob?l?c(i):encodeBlobAsBase64(i,c):withNativeArrayBuffer$2&&(i instanceof ArrayBuffer||isView$1(i))?l?c(i):encodeBlobAsBase64(new Blob([i]),c):c(PACKET_TYPES[t]+(i||"")),encodeBlobAsBase64=(t,i)=>{const l=new FileReader;return l.onload=function(){const c=l.result.split(",")[1];i("b"+(c||""))},l.readAsDataURL(t)};function toArray(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(t,i){if(withNativeBlob$1&&t.data instanceof Blob)return t.data.arrayBuffer().then(toArray).then(i);if(withNativeArrayBuffer$2&&(t.data instanceof ArrayBuffer||isView$1(t.data)))return i(toArray(t.data));encodePacket(t,!1,l=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),i(TEXT_ENCODER.encode(l))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<chars.length;t++)lookup$1[chars.charCodeAt(t)]=t;const decode$1=t=>{let i=t.length*.75,l=t.length,c,d=0,m,y,_,v;t[t.length-1]==="="&&(i--,t[t.length-2]==="="&&i--);const E=new ArrayBuffer(i),S=new Uint8Array(E);for(c=0;c<l;c+=4)m=lookup$1[t.charCodeAt(c)],y=lookup$1[t.charCodeAt(c+1)],_=lookup$1[t.charCodeAt(c+2)],v=lookup$1[t.charCodeAt(c+3)],S[d++]=m<<2|y>>4,S[d++]=(y&15)<<4|_>>2,S[d++]=(_&3)<<6|v&63;return E},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(t,i)=>{if(typeof t!="string")return{type:"message",data:mapBinary(t,i)};const l=t.charAt(0);return l==="b"?{type:"message",data:decodeBase64Packet(t.substring(1),i)}:PACKET_TYPES_REVERSE[l]?t.length>1?{type:PACKET_TYPES_REVERSE[l],data:t.substring(1)}:{type:PACKET_TYPES_REVERSE[l]}:ERROR_PACKET},decodeBase64Packet=(t,i)=>{if(withNativeArrayBuffer$1){const l=decode$1(t);return mapBinary(l,i)}else return{base64:!0,data:t}},mapBinary=(t,i)=>i==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,SEPARATOR="",encodePayload=(t,i)=>{const l=t.length,c=new Array(l);let d=0;t.forEach((m,y)=>{encodePacket(m,!1,_=>{c[y]=_,++d===l&&i(c.join(SEPARATOR))})})},decodePayload=(t,i)=>{const l=t.split(SEPARATOR),c=[];for(let d=0;d<l.length;d++){const m=decodePacket(l[d],i);if(c.push(m),m.type==="error")break}return c};function createPacketEncoderStream(){return new TransformStream({transform(t,i){encodePacketToBinary(t,l=>{const c=l.length;let d;if(c<126)d=new Uint8Array(1),new DataView(d.buffer).setUint8(0,c);else if(c<65536){d=new Uint8Array(3);const m=new DataView(d.buffer);m.setUint8(0,126),m.setUint16(1,c)}else{d=new Uint8Array(9);const m=new DataView(d.buffer);m.setUint8(0,127),m.setBigUint64(1,BigInt(c))}t.data&&typeof t.data!="string"&&(d[0]|=128),i.enqueue(d),i.enqueue(l)})}})}let TEXT_DECODER;function totalLength(t){return t.reduce((i,l)=>i+l.length,0)}function concatChunks(t,i){if(t[0].length===i)return t.shift();const l=new Uint8Array(i);let c=0;for(let d=0;d<i;d++)l[d]=t[0][c++],c===t[0].length&&(t.shift(),c=0);return t.length&&c<t[0].length&&(t[0]=t[0].slice(c)),l}function createPacketDecoderStream(t,i){TEXT_DECODER||(TEXT_DECODER=new TextDecoder);const l=[];let c=0,d=-1,m=!1;return new TransformStream({transform(y,_){for(l.push(y);;){if(c===0){if(totalLength(l)<1)break;const v=concatChunks(l,1);m=(v[0]&128)===128,d=v[0]&127,d<126?c=3:d===126?c=1:c=2}else if(c===1){if(totalLength(l)<2)break;const v=concatChunks(l,2);d=new DataView(v.buffer,v.byteOffset,v.length).getUint16(0),c=3}else if(c===2){if(totalLength(l)<8)break;const v=concatChunks(l,8),E=new DataView(v.buffer,v.byteOffset,v.length),S=E.getUint32(0);if(S>Math.pow(2,21)-1){_.enqueue(ERROR_PACKET);break}d=S*Math.pow(2,32)+E.getUint32(4),c=3}else{if(totalLength(l)<d)break;const v=concatChunks(l,d);_.enqueue(decodePacket(m?v:TEXT_DECODER.decode(v),i)),c=0}if(d===0||d>t){_.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(t){if(t)return mixin(t)}function mixin(t){for(var i in Emitter.prototype)t[i]=Emitter.prototype[i];return t}Emitter.prototype.on=Emitter.prototype.addEventListener=function(t,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(i),this};Emitter.prototype.once=function(t,i){function l(){this.off(t,l),i.apply(this,arguments)}return l.fn=i,this.on(t,l),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(t,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l=this._callbacks["$"+t];if(!l)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var c,d=0;d<l.length;d++)if(c=l[d],c===i||c.fn===i){l.splice(d,1);break}return l.length===0&&delete this._callbacks["$"+t],this};Emitter.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),l=this._callbacks["$"+t],c=1;c<arguments.length;c++)i[c-1]=arguments[c];if(l){l=l.slice(0);for(var c=0,d=l.length;c<d;++c)l[c].apply(this,i)}return this};Emitter.prototype.emitReserved=Emitter.prototype.emit;Emitter.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Emitter.prototype.hasListeners=function(t){return!!this.listeners(t).length};const nextTick=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,l)=>l(i,0),globalThisShim=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),defaultBinaryType="arraybuffer";function createCookieJar(){}function pick(t,...i){return i.reduce((l,c)=>(t.hasOwnProperty(c)&&(l[c]=t[c]),l),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(t,i){i.useNativeTimers?(t.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),t.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(t.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),t.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(t){return typeof t=="string"?utf8Length(t):Math.ceil((t.byteLength||t.size)*BASE64_OVERHEAD)}function utf8Length(t){let i=0,l=0;for(let c=0,d=t.length;c<d;c++)i=t.charCodeAt(c),i<128?l+=1:i<2048?l+=2:i<55296||i>=57344?l+=3:(c++,l+=4);return l}function randomString(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function encode(t){let i="";for(let l in t)t.hasOwnProperty(l)&&(i.length&&(i+="&"),i+=encodeURIComponent(l)+"="+encodeURIComponent(t[l]));return i}function decode(t){let i={},l=t.split("&");for(let c=0,d=l.length;c<d;c++){let m=l[c].split("=");i[decodeURIComponent(m[0])]=decodeURIComponent(m[1])}return i}class TransportError extends Error{constructor(i,l,c){super(i),this.description=l,this.context=c,this.type="TransportError"}}class Transport extends Emitter{constructor(i){super(),this.writable=!1,installTimerFunctions(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,l,c){return super.emitReserved("error",new TransportError(i,l,c)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const l=decodePacket(i,this.socket.binaryType);this.onPacket(l)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,l={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(l)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const l=encode(i);return l.length?"?"+l:""}}class Polling extends Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const l=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let c=0;this._polling&&(c++,this.once("pollComplete",function(){--c||l()})),this.writable||(c++,this.once("drain",function(){--c||l()}))}else l()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const l=c=>{if(this.readyState==="opening"&&c.type==="open"&&this.onOpen(),c.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(c)};decodePayload(i,this.socket.binaryType).forEach(l),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,encodePayload(i,l=>{this.doWrite(l,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",l=this.query||{};return this.opts.timestampRequests!==!1&&(l[this.opts.timestampParam]=randomString()),!this.supportsBinary&&!l.sid&&(l.b64=1),this.createUri(i,l)}}let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(t){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(i){if(super(i),typeof location<"u"){const l=location.protocol==="https:";let c=location.port;c||(c=l?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||c!==i.port}}doWrite(i,l){const c=this.request({method:"POST",data:i});c.on("success",l),c.on("error",(d,m)=>{this.onError("xhr post error",d,m)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(l,c)=>{this.onError("xhr poll error",l,c)}),this.pollXhr=i}}class Request extends Emitter{constructor(i,l,c){super(),this.createRequest=i,installTimerFunctions(this,c),this._opts=c,this._method=c.method||"GET",this._uri=l,this._data=c.data!==void 0?c.data:null,this._create()}_create(){var i;const l=pick(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");l.xdomain=!!this._opts.xd;const c=this._xhr=this.createRequest(l);try{c.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){c.setDisableHeaderCheck&&c.setDisableHeaderCheck(!0);for(let d in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(d)&&c.setRequestHeader(d,this._opts.extraHeaders[d])}}catch{}if(this._method==="POST")try{c.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{c.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(c),"withCredentials"in c&&(c.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(c.timeout=this._opts.requestTimeout),c.onreadystatechange=()=>{var d;c.readyState===3&&((d=this._opts.cookieJar)===null||d===void 0||d.parseCookies(c.getResponseHeader("set-cookie"))),c.readyState===4&&(c.status===200||c.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof c.status=="number"?c.status:0)},0))},c.send(this._data)}catch(d){this.setTimeoutFn(()=>{this._onError(d)},0);return}typeof document<"u"&&(this._index=Request.requestsCount++,Request.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=empty,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const t="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(t,unloadHandler,!1)}}function unloadHandler(){for(let t in Request.requests)Request.requests.hasOwnProperty(t)&&Request.requests[t].abort()}const hasXHR2=(function(){const t=newRequest({xdomain:!1});return t&&t.responseType!==null})();class XHR extends BaseXHR{constructor(i){super(i);const l=i&&i.forceBase64;this.supportsBinary=hasXHR2&&!l}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Request(newRequest,this.uri(),i)}}function newRequest(t){const i=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class BaseWS extends Transport{get name(){return"websocket"}doOpen(){const i=this.uri(),l=this.opts.protocols,c=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,l,c)}catch(d){return this.emitReserved("error",d)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const c=i[l],d=l===i.length-1;encodePacket(c,this.supportsBinary,m=>{try{this.doWrite(c,m)}catch{}d&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",l=this.query||{};return this.opts.timestampRequests&&(l[this.opts.timestampParam]=randomString()),this.supportsBinary||(l.b64=1),this.createUri(i,l)}}const WebSocketCtor=globalThisShim.WebSocket||globalThisShim.MozWebSocket;class WS extends BaseWS{createSocket(i,l,c){return isReactNative?new WebSocketCtor(i,l,c):l?new WebSocketCtor(i,l):new WebSocketCtor(i)}doWrite(i,l){this.ws.send(l)}}class WT extends Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const l=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=i.readable.pipeThrough(l).getReader(),d=createPacketEncoderStream();d.readable.pipeTo(i.writable),this._writer=d.writable.getWriter();const m=()=>{c.read().then(({done:_,value:v})=>{_||(this.onPacket(v),m())}).catch(_=>{})};m();const y={type:"open"};this.query.sid&&(y.data=`{"sid":"${this.query.sid}"}`),this._writer.write(y).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const c=i[l],d=l===i.length-1;this._writer.write(c).then(()=>{d&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const transports={websocket:WS,webtransport:WT,polling:XHR},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(t){if(t.length>8e3)throw"URI too long";const i=t,l=t.indexOf("["),c=t.indexOf("]");l!=-1&&c!=-1&&(t=t.substring(0,l)+t.substring(l,c).replace(/:/g,";")+t.substring(c,t.length));let d=re.exec(t||""),m={},y=14;for(;y--;)m[parts[y]]=d[y]||"";return l!=-1&&c!=-1&&(m.source=i,m.host=m.host.substring(1,m.host.length-1).replace(/;/g,":"),m.authority=m.authority.replace("[","").replace("]","").replace(/;/g,":"),m.ipv6uri=!0),m.pathNames=pathNames(m,m.path),m.queryKey=queryKey(m,m.query),m}function pathNames(t,i){const l=/\/{2,9}/g,c=i.replace(l,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&c.splice(0,1),i.slice(-1)=="/"&&c.splice(c.length-1,1),c}function queryKey(t,i){const l={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,d,m){d&&(l[d]=m)}),l}const withEventListeners=typeof addEventListener=="function"&&typeof removeEventListener=="function",OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener("offline",()=>{OFFLINE_EVENT_LISTENERS.forEach(t=>t())},!1);class SocketWithoutUpgrade extends Emitter{constructor(i,l){if(super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(l=i,i=null),i){const c=parse(i);l.hostname=c.host,l.secure=c.protocol==="https"||c.protocol==="wss",l.port=c.port,c.query&&(l.query=c.query)}else l.host&&(l.hostname=parse(l.host).host);installTimerFunctions(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},l.transports.forEach(c=>{const d=c.prototype.name;this.transports.push(d),this._transportsByName[d]=c}),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},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),withEventListeners&&(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"})},OFFLINE_EVENT_LISTENERS.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const l=Object.assign({},this.opts.query);l.EIO=protocol$1,l.transport=i,this.id&&(l.sid=this.id);const c=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](c)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&SocketWithoutUpgrade.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const l=this.createTransport(i);l.open(),this.setTransport(l)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",l=>this._onClose("transport close",l))}onOpen(){this.readyState="open",SocketWithoutUpgrade.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const l=new Error("server error");l.code=i.data,this._onError(l);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),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 i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let c=0;c<this.writeBuffer.length;c++){const d=this.writeBuffer[c].data;if(d&&(l+=byteLength(d)),c>0&&l>this._maxPayload)return this.writeBuffer.slice(0,c);l+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,nextTick(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,l,c){return this._sendPacket("message",i,l,c),this}send(i,l,c){return this._sendPacket("message",i,l,c),this}_sendPacket(i,l,c,d){if(typeof l=="function"&&(d=l,l=void 0),typeof c=="function"&&(d=c,c=null),this.readyState==="closing"||this.readyState==="closed")return;c=c||{},c.compress=c.compress!==!1;const m={type:i,data:l,options:c};this.emitReserved("packetCreate",m),this.writeBuffer.push(m),d&&this.once("flush",d),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),i()},c=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?c():i()}):this.upgrading?c():i()),this}_onError(i){if(SocketWithoutUpgrade.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,l){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(),withEventListeners&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const c=OFFLINE_EVENT_LISTENERS.indexOf(this._offlineEventListener);c!==-1&&OFFLINE_EVENT_LISTENERS.splice(c,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,l),this.writeBuffer=[],this._prevBufferLen=0}}}SocketWithoutUpgrade.protocol=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let l=this.createTransport(i),c=!1;SocketWithoutUpgrade.priorWebsocketSuccess=!1;const d=()=>{c||(l.send([{type:"ping",data:"probe"}]),l.once("packet",A=>{if(!c)if(A.type==="pong"&&A.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;SocketWithoutUpgrade.priorWebsocketSuccess=l.name==="websocket",this.transport.pause(()=>{c||this.readyState!=="closed"&&(S(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=l.name,this.emitReserved("upgradeError",T)}}))};function m(){c||(c=!0,S(),l.close(),l=null)}const y=A=>{const T=new Error("probe error: "+A);T.transport=l.name,m(),this.emitReserved("upgradeError",T)};function _(){y("transport closed")}function v(){y("socket closed")}function E(A){l&&A.name!==l.name&&m()}const S=()=>{l.removeListener("open",d),l.removeListener("error",y),l.removeListener("close",_),this.off("close",v),this.off("upgrading",E)};l.once("open",d),l.once("error",y),l.once("close",_),this.once("close",v),this.once("upgrading",E),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{c||l.open()},200):l.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const l=[];for(let c=0;c<i.length;c++)~this.transports.indexOf(i[c])&&l.push(i[c]);return l}}let Socket$1=class extends SocketWithUpgrade{constructor(i,l={}){const c=typeof i=="object"?i:l;(!c.transports||c.transports&&typeof c.transports[0]=="string")&&(c.transports=(c.transports||["polling","websocket","webtransport"]).map(d=>transports[d]).filter(d=>!!d)),super(i,c)}};function url(t,i="",l){let c=t;l=l||typeof location<"u"&&location,t==null&&(t=l.protocol+"//"+l.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=l.protocol+t:t=l.host+t),/^(https?|wss?):\/\//.test(t)||(typeof l<"u"?t=l.protocol+"//"+t:t="https://"+t),c=parse(t)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const m=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+m+":"+c.port+i,c.href=c.protocol+"://"+m+(l&&l.port===c.port?"":":"+c.port),c}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(t){return withNativeArrayBuffer&&(t instanceof ArrayBuffer||isView(t))||withNativeBlob&&t instanceof Blob||withNativeFile&&t instanceof File}function hasBinary(t,i){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let l=0,c=t.length;l<c;l++)if(hasBinary(t[l]))return!0;return!1}if(isBinary(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return hasBinary(t.toJSON(),!0);for(const l in t)if(Object.prototype.hasOwnProperty.call(t,l)&&hasBinary(t[l]))return!0;return!1}function deconstructPacket(t){const i=[],l=t.data,c=t;return c.data=_deconstructPacket(l,i),c.attachments=i.length,{packet:c,buffers:i}}function _deconstructPacket(t,i){if(!t)return t;if(isBinary(t)){const l={_placeholder:!0,num:i.length};return i.push(t),l}else if(Array.isArray(t)){const l=new Array(t.length);for(let c=0;c<t.length;c++)l[c]=_deconstructPacket(t[c],i);return l}else if(typeof t=="object"&&!(t instanceof Date)){const l={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(l[c]=_deconstructPacket(t[c],i));return l}return t}function reconstructPacket(t,i){return t.data=_reconstructPacket(t.data,i),delete t.attachments,t}function _reconstructPacket(t,i){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<i.length)return i[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let l=0;l<t.length;l++)t[l]=_reconstructPacket(t[l],i);else if(typeof t=="object")for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(t[l]=_reconstructPacket(t[l],i));return t}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(i){this.replacer=i}encode(i){return(i.type===PacketType.EVENT||i.type===PacketType.ACK)&&hasBinary(i)?this.encodeAsBinary({type:i.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let l=""+i.type;return(i.type===PacketType.BINARY_EVENT||i.type===PacketType.BINARY_ACK)&&(l+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(l+=i.nsp+","),i.id!=null&&(l+=i.id),i.data!=null&&(l+=JSON.stringify(i.data,this.replacer)),l}encodeAsBinary(i){const l=deconstructPacket(i),c=this.encodeAsString(l.packet),d=l.buffers;return d.unshift(c),d}}class Decoder extends Emitter{constructor(i){super(),this.reviver=i}add(i){let l;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");l=this.decodeString(i);const c=l.type===PacketType.BINARY_EVENT;c||l.type===PacketType.BINARY_ACK?(l.type=c?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(l),l.attachments===0&&super.emitReserved("decoded",l)):super.emitReserved("decoded",l)}else if(isBinary(i)||i.base64)if(this.reconstructor)l=this.reconstructor.takeBinaryData(i),l&&(this.reconstructor=null,super.emitReserved("decoded",l));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let l=0;const c={type:Number(i.charAt(0))};if(PacketType[c.type]===void 0)throw new Error("unknown packet type "+c.type);if(c.type===PacketType.BINARY_EVENT||c.type===PacketType.BINARY_ACK){const m=l+1;for(;i.charAt(++l)!=="-"&&l!=i.length;);const y=i.substring(m,l);if(y!=Number(y)||i.charAt(l)!=="-")throw new Error("Illegal attachments");c.attachments=Number(y)}if(i.charAt(l+1)==="/"){const m=l+1;for(;++l&&!(i.charAt(l)===","||l===i.length););c.nsp=i.substring(m,l)}else c.nsp="/";const d=i.charAt(l+1);if(d!==""&&Number(d)==d){const m=l+1;for(;++l;){const y=i.charAt(l);if(y==null||Number(y)!=y){--l;break}if(l===i.length)break}c.id=Number(i.substring(m,l+1))}if(i.charAt(++l)){const m=this.tryParse(i.substr(l));if(Decoder.isPayloadValid(c.type,m))c.data=m;else throw new Error("invalid payload")}return c}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,l){switch(i){case PacketType.CONNECT:return isObject(l);case PacketType.DISCONNECT:return l===void 0;case PacketType.CONNECT_ERROR:return typeof l=="string"||isObject(l);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(l)&&(typeof l[0]=="number"||typeof l[0]=="string"&&RESERVED_EVENTS$1.indexOf(l[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(l)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const l=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),l}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function isNamespaceValid(t){return typeof t=="string"}const isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function isAckIdValid(t){return t===void 0||isInteger(t)}function isObject(t){return Object.prototype.toString.call(t)==="[object Object]"}function isDataValid(t,i){switch(t){case PacketType.CONNECT:return i===void 0||isObject(i);case PacketType.DISCONNECT:return i===void 0;case PacketType.EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&RESERVED_EVENTS$1.indexOf(i[0])===-1);case PacketType.ACK:return Array.isArray(i);case PacketType.CONNECT_ERROR:return typeof i=="string"||isObject(i);default:return!1}}function isPacketValid(t){return isNamespaceValid(t.nsp)&&isAckIdValid(t.id)&&isDataValid(t.type,t.data)}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},isPacketValid,protocol},Symbol.toStringTag,{value:"Module"}));function on(t,i,l){return t.on(i,l),function(){t.off(i,l)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(i,l,c){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=i,this.nsp=l,c&&c.auth&&(this.auth=c.auth),this._opts=Object.assign({},c),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[on(i,"open",this.onopen.bind(this)),on(i,"packet",this.onpacket.bind(this)),on(i,"error",this.onerror.bind(this)),on(i,"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(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...l){var c,d,m;if(RESERVED_EVENTS.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(l.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(l),this;const y={type:PacketType.EVENT,data:l};if(y.options={},y.options.compress=this.flags.compress!==!1,typeof l[l.length-1]=="function"){const S=this.ids++,A=l.pop();this._registerAckCallback(S,A),y.id=S}const _=(d=(c=this.io.engine)===null||c===void 0?void 0:c.transport)===null||d===void 0?void 0:d.writable,v=this.connected&&!(!((m=this.io.engine)===null||m===void 0)&&m._hasPingExpired());return this.flags.volatile&&!_||(v?(this.notifyOutgoingListeners(y),this.packet(y)):this.sendBuffer.push(y)),this.flags={},this}_registerAckCallback(i,l){var c;const d=(c=this.flags.timeout)!==null&&c!==void 0?c:this._opts.ackTimeout;if(d===void 0){this.acks[i]=l;return}const m=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let _=0;_<this.sendBuffer.length;_++)this.sendBuffer[_].id===i&&this.sendBuffer.splice(_,1);l.call(this,new Error("operation has timed out"))},d),y=(..._)=>{this.io.clearTimeoutFn(m),l.apply(this,_)};y.withError=!0,this.acks[i]=y}emitWithAck(i,...l){return new Promise((c,d)=>{const m=(y,_)=>y?d(y):c(_);m.withError=!0,l.push(m),this.emit(i,...l)})}_addToQueue(i){let l;typeof i[i.length-1]=="function"&&(l=i.pop());const c={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((d,...m)=>(this._queue[0],d!==null?c.tryCount>this._opts.retries&&(this._queue.shift(),l&&l(d)):(this._queue.shift(),l&&l(null,...m)),c.pending=!1,this._drainQueue())),this._queue.push(c),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const l=this._queue[0];l.pending&&!i||(l.pending=!0,l.tryCount++,this.flags=l.flags,this.emit.apply(this,l.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,l){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,l),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(c=>String(c.id)===i)){const c=this.acks[i];delete this.acks[i],c.withError&&c.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case PacketType.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.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 PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(i);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(i);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const c=new Error(i.data.message);c.data=i.data.data,this.emitReserved("connect_error",c);break}}onevent(i){const l=i.data||[];i.id!=null&&l.push(this.ack(i.id)),this.connected?this.emitEvent(l):this.receiveBuffer.push(Object.freeze(l))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const l=this._anyListeners.slice();for(const c of l)c.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const l=this;let c=!1;return function(...d){c||(c=!0,l.packet({type:PacketType.ACK,id:i,data:d}))}}onack(i){const l=this.acks[i.id];typeof l=="function"&&(delete this.acks[i.id],l.withError&&i.data.unshift(null),l.apply(this,i.data))}onconnect(i,l){this.id=i,this.recovered=l&&this._pid===l,this._pid=l,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const l=this._anyListeners;for(let c=0;c<l.length;c++)if(i===l[c])return l.splice(c,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const l=this._anyOutgoingListeners;for(let c=0;c<l.length;c++)if(i===l[c])return l.splice(c,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const l=this._anyOutgoingListeners.slice();for(const c of l)c.apply(this,i.data)}}}function Backoff(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),l=Math.floor(i*this.jitter*t);t=(Math.floor(i*10)&1)==0?t-l:t+l}return Math.min(t,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(t){this.ms=t};Backoff.prototype.setMax=function(t){this.max=t};Backoff.prototype.setJitter=function(t){this.jitter=t};class Manager extends Emitter{constructor(i,l){var c;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(l=i,i=void 0),l=l||{},l.path=l.path||"/socket.io",this.opts=l,installTimerFunctions(this,l),this.reconnection(l.reconnection!==!1),this.reconnectionAttempts(l.reconnectionAttempts||1/0),this.reconnectionDelay(l.reconnectionDelay||1e3),this.reconnectionDelayMax(l.reconnectionDelayMax||5e3),this.randomizationFactor((c=l.randomizationFactor)!==null&&c!==void 0?c:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(l.timeout==null?2e4:l.timeout),this._readyState="closed",this.uri=i;const d=l.parser||parser;this.encoder=new d.Encoder,this.decoder=new d.Decoder,this._autoConnect=l.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var l;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(l=this.backoff)===null||l===void 0||l.setMin(i),this)}randomizationFactor(i){var l;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(l=this.backoff)===null||l===void 0||l.setJitter(i),this)}reconnectionDelayMax(i){var l;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(l=this.backoff)===null||l===void 0||l.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const l=this.engine,c=this;this._readyState="opening",this.skipReconnect=!1;const d=on(l,"open",function(){c.onopen(),i&&i()}),m=_=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",_),i?i(_):this.maybeReconnectOnOpen()},y=on(l,"error",m);if(this._timeout!==!1){const _=this._timeout,v=this.setTimeoutFn(()=>{d(),m(new Error("timeout")),l.close()},_);this.opts.autoUnref&&v.unref(),this.subs.push(()=>{this.clearTimeoutFn(v)})}return this.subs.push(d),this.subs.push(y),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(on(i,"ping",this.onping.bind(this)),on(i,"data",this.ondata.bind(this)),on(i,"error",this.onerror.bind(this)),on(i,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(l){this.onclose("parse error",l)}}ondecoded(i){nextTick(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,l){let c=this.nsps[i];return c?this._autoConnect&&!c.active&&c.connect():(c=new Socket(this,i,l),this.nsps[i]=c),c}_destroy(i){const l=Object.keys(this.nsps);for(const c of l)if(this.nsps[c].active)return;this._close()}_packet(i){const l=this.encoder.encode(i);for(let c=0;c<l.length;c++)this.engine.write(l[c],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,l){var c;this.cleanup(),(c=this.engine)===null||c===void 0||c.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,l),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const l=this.backoff.duration();this._reconnecting=!0;const c=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(d=>{d?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",d)):i.onreconnect()}))},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const cache={};function lookup(t,i){typeof t=="object"&&(i=t,t=void 0),i=i||{};const l=url(t,i.path||"/socket.io"),c=l.source,d=l.id,m=l.path,y=cache[d]&&m in cache[d].nsps,_=i.forceNew||i["force new connection"]||i.multiplex===!1||y;let v;return _?v=new Manager(c,i):(cache[d]||(cache[d]=new Manager(c,i)),v=cache[d]),l.query&&!i.query&&(i.query=l.queryKey),v.socket(l.path,i)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const blacklist=[MESSAGE_TO_GUEST,EVENT_TO_GUEST,TYPING_ON,TYPING_OFF,RESTART_CHAT_REQUEST,...INTERNAL_ACTIONS,...INTERNAL_ACTIONS$1,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],socketMiddleware=({dispatch:t,getState:i})=>l=>{let c=null;return d=>{const m=l(d);if(d.type===CONNECT){c?.disconnect(),t(connecting());const y=`/chat?${new URLSearchParams(d.querystrings).toString()}`;c=lookup(`/${d.clientName}${y}`),c.on("action",t),c.on("connect",()=>t(connected())),c.on("disconnect",()=>t(disconnected())),c.on("reconnect",()=>t(reconnected())),c.on("set-translations",(_,v)=>{t(updateIntl({language:_,messages:mergeMessages(_,v)}))}),c.on("set-settings",_=>{t(setSettings(_))}),c.on("enable-conversation-rating",_=>t(enableConversationRating(_))),c.on("speech-transcription",_=>t(receiveSpeechTranscription(_))),c.on("restore-client-state",_=>{t(restoreSessionId(_.sessionId)),t(restorePreviousChatMessages(_.messages))}),c.on("expand-window",({devices:_,initial:v=!1})=>{t({type:EXPAND_WINDOW,devices:_,initial:v})}),c.on("restart-chat",()=>{t(restartChat())}),c.on("login-success",_=>{t(startAuthenticatedChat({loginToken:_.loginToken}))})}else if(d.type==="start-screen/requestLogin")c?.emit("login-requested",d.payload);else if(d.type===START)c?.emit("start-chat",d.payload);else if(d.type===TERMINATE_SESSION)c?.emit("terminate-session",d.payload);else if(d.type===GET_STARTED)c?.emit("get-started",JSON.stringify(d));else if(d.type===AUDIO_MESSAGE_FROM_USER)c?.emit("audio-message",d.buffer);else if(d.type===CONVERSATION_RATING_FROM_GUEST)c?.emit("conversation-rating",d.payload);else if(d.type===DOWNLOAD_TRANSCRIPT_PDF){const{connection:{sessionId:y}}=i();window.location.href=`/transcript-pdf/${y}`}else blacklist.indexOf(d.type)===-1&&d.meta===void 0&&c&&c.emit("action",JSON.stringify(d));return m}},clientName=getClientName(),preloadedState={...loadState(clientName),intl:initialState$3},store=configureStore({middleware:t=>t().concat(socketMiddleware),reducer:rootReducer,preloadedState});store.subscribe(throttle(()=>{const t=store.getState();saveState(clientName,{connection:t.connection,startScreen:t.startScreen})},1e3));const container=document.getElementById("root"),root=clientExports.createRoot(container);root.render(jsxRuntimeExports.jsx(Provider_default,{store,children:jsxRuntimeExports.jsx(App,{})}));
132
+ //# sourceMappingURL=index-CkA9BwOn.js.map