@botfabrik/engine-webclient 4.116.4-alpha.0 → 4.116.5

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,75 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+te(a,u),c+=ne(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+te(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},M={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=M,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,j)}catch(e){j(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=d(),n=p(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),k=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},N=[],oe=-1;function P(e){return{current:e}}function F(e){0>oe||(e.current=N[oe],N[oe]=null,oe--)}function I(e,t){oe++,N[oe]=e.current,e.current=t}var L=P(null),se=P(null),ce=P(null),le=P(null);function ue(e,t){switch(I(ce,t),I(se,e),I(L,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}F(L),I(L,e)}function de(){F(L),F(se),F(ce)}function R(e){e.memoizedState!==null&&I(le,e);var t=L.current,n=Hd(t,e.type);t!==n&&(I(se,e),I(L,n))}function fe(e){se.current===e&&(F(L),F(se)),le.current===e&&(F(le),Qf._currentValue=ae)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+pe+e+me}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
+ `),l=s.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(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 nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function z(){var e=M.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function rt(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var it=Math.random().toString(36).slice(2),at=`__reactFiber$`+it,ot=`__reactProps$`+it,st=`__reactContainer$`+it,ct=`__reactEvents$`+it,lt=`__reactListeners$`+it,ut=`__reactHandles$`+it,dt=`__reactResources$`+it,ft=`__reactMarker$`+it;function pt(e){delete e[at],delete e[ot],delete e[ct],delete e[lt],delete e[ut]}function mt(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[at])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function ht(e){if(e=e[at]||e[st]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function gt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function _t(e){var t=e[dt];return t||=e[dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function vt(e){e[ft]=!0}var yt=new Set,bt={};function xt(e,t){St(e,t),St(e+`Capture`,t)}function St(e,t){for(bt[e]=t,e=0;e<t.length;e++)yt.add(t[e])}var Ct=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]*$`),wt={},Tt={};function Et(e){return be.call(Tt,e)?!0:be.call(wt,e)?!1:Ct.test(e)?Tt[e]=!0:(wt[e]=!0,!1)}function Dt(e,t,n){if(Et(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ot(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function At(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Mt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nt(e){if(!e._valueTracker){var t=jt(e)?`checked`:`value`;e._valueTracker=Mt(e,t,``+e[t])}}function Pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=jt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ft(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var It=/[\n"\\]/g;function Lt(e){return e.replace(It,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Rt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+At(t)):e.value!==``+At(t)&&(e.value=``+At(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Bt(e,o,At(n)):Bt(e,o,At(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+At(s):e.removeAttribute(`name`)}function zt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Nt(e);return}n=n==null?``:``+At(n),t=t==null?n:``+At(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Nt(e)}function Bt(e,t,n){t===`number`&&Ft(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Vt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+At(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ht(e,t,n){if(t!=null&&(t=``+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+At(n)}function Ut(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=At(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Nt(e)}function Wt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gt=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 Kt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Gt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Kt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Kt(e,o,t[o])}function Jt(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 Yt=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`]]),Xt=/^[\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 Zt(e){return Xt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Qt(){}var $t=null;function en(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tn=null,nn=null;function rn(e){var t=ht(e);if(t&&(e=t.stateNode)){var n=e[ot]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Rt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Lt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ot]||null;if(!a)throw Error(i(90));Rt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Pt(r)}break a;case`textarea`:Ht(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Vt(e,!!n.multiple,t,!1)}}}var an=!1;function on(e,t,n){if(an)return e(t,n);an=!0;try{return e(t)}finally{if(an=!1,(tn!==null||nn!==null)&&(_u(),tn&&(t=tn,e=nn,nn=tn=null,rn(t),e)))for(t=0;t<e.length;t++)rn(e[t])}}function sn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ot]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var cn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),ln=!1;if(cn)try{var un={};Object.defineProperty(un,`passive`,{get:function(){ln=!0}}),window.addEventListener(`test`,un,un),window.removeEventListener(`test`,un,un)}catch{ln=!1}var dn=null,fn=null,pn=null;function mn(){if(pn)return pn;var e,t=fn,n=t.length,r,i=`value`in dn?dn.value:dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return pn=i.slice(e,1<r?1-r:void 0)}function hn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gn(){return!0}function _n(){return!1}function vn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?gn:_n,this.isPropagationStopped=_n,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=gn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=gn)},persist:function(){},isPersistent:gn}),t}var yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bn=vn(yn),xn=m({},yn,{view:0,detail:0}),Sn=vn(xn),Cn,wn,Tn,En=m({},xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ln,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!==Tn&&(Tn&&e.type===`mousemove`?(Cn=e.screenX-Tn.screenX,wn=e.screenY-Tn.screenY):wn=Cn=0,Tn=e),Cn)},movementY:function(e){return`movementY`in e?e.movementY:wn}}),Dn=vn(En),On=vn(m({},En,{dataTransfer:0})),kn=vn(m({},xn,{relatedTarget:0})),An=vn(m({},yn,{animationName:0,elapsedTime:0,pseudoElement:0})),jn=vn(m({},yn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Mn=vn(m({},yn,{data:0})),Nn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Pn={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`},Fn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function In(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fn[e])?!!t[e]:!1}function Ln(){return In}var Rn=vn(m({},xn,{key:function(e){if(e.key){var t=Nn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=hn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Pn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ln,charCode:function(e){return e.type===`keypress`?hn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?hn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),zn=vn(m({},En,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Bn=vn(m({},xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ln})),Vn=vn(m({},yn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Hn=vn(m({},En,{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})),Un=vn(m({},yn,{newState:0,oldState:0})),Wn=[9,13,27,32],Gn=cn&&`CompositionEvent`in window,Kn=null;cn&&`documentMode`in document&&(Kn=document.documentMode);var qn=cn&&`TextEvent`in window&&!Kn,Jn=cn&&(!Gn||Kn&&8<Kn&&11>=Kn),Yn=` `,Xn=!1;function Zn(e,t){switch(e){case`keyup`:return Wn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var $n=!1;function er(e,t){switch(e){case`compositionend`:return Qn(t);case`keypress`:return t.which===32?(Xn=!0,Yn):null;case`textInput`:return e=t.data,e===Yn&&Xn?null:e;default:return null}}function tr(e,t){if($n)return e===`compositionend`||!Gn&&Zn(e,t)?(e=mn(),pn=fn=dn=null,$n=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Jn&&t.locale!==`ko`?null:t.data;default:return null}}var nr={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 rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!nr[e.type]:t===`textarea`}function ir(e,t,n,r){tn?nn?nn.push(r):nn=[r]:tn=r,t=Td(t,`onChange`),0<t.length&&(n=new bn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ar=null,or=null;function sr(e){_d(e,0)}function cr(e){if(Pt(gt(e)))return e}function lr(e,t){if(e===`change`)return t}var ur=!1;if(cn){var dr;if(cn){var fr=`oninput`in document;if(!fr){var pr=document.createElement(`div`);pr.setAttribute(`oninput`,`return;`),fr=typeof pr.oninput==`function`}dr=fr}else dr=!1;ur=dr&&(!document.documentMode||9<document.documentMode)}function mr(){ar&&(ar.detachEvent(`onpropertychange`,hr),or=ar=null)}function hr(e){if(e.propertyName===`value`&&cr(or)){var t=[];ir(t,or,e,en(e)),on(sr,t)}}function gr(e,t,n){e===`focusin`?(mr(),ar=t,or=n,ar.attachEvent(`onpropertychange`,hr)):e===`focusout`&&mr()}function _r(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return cr(or)}function vr(e,t){if(e===`click`)return cr(t)}function yr(e,t){if(e===`input`||e===`change`)return cr(t)}function br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var xr=typeof Object.is==`function`?Object.is:br;function Sr(e,t){if(xr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!be.call(t,i)||!xr(e[i],t[i]))return!1}return!0}function Cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wr(e,t){var n=Cr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ft(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ft(e.document)}return t}function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Or=cn&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==Ft(r)||(r=kr,`selectionStart`in r&&Dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Sr(jr,r)||(jr=r,r=Td(Ar,`onSelect`),0<r.length&&(t=new bn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function Pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Fr={animationend:Pr(`Animation`,`AnimationEnd`),animationiteration:Pr(`Animation`,`AnimationIteration`),animationstart:Pr(`Animation`,`AnimationStart`),transitionrun:Pr(`Transition`,`TransitionRun`),transitionstart:Pr(`Transition`,`TransitionStart`),transitioncancel:Pr(`Transition`,`TransitionCancel`),transitionend:Pr(`Transition`,`TransitionEnd`)},Ir={},Lr={};cn&&(Lr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),`TransitionEvent`in window||delete Fr.transitionend.transition);function Rr(e){if(Ir[e])return Ir[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lr)return Ir[e]=t[n];return e}var zr=Rr(`animationend`),Br=Rr(`animationiteration`),Vr=Rr(`animationstart`),Hr=Rr(`transitionrun`),Ur=Rr(`transitionstart`),Wr=Rr(`transitioncancel`),Gr=Rr(`transitionend`),Kr=new Map,qr=`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(` `);qr.push(`scrollEnd`);function Jr(e,t){Kr.set(e,t),xt(t,[e])}var Yr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<cu)throw cu=0,lu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function oi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(e,t,n,r){return new oi(e,t,n,r)}function ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,t){var n=e.alternate;return n===null?(n=si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ui(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function di(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ci(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,L.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=si(31,n,t,a),e.elementType=ee,e.lanes=o,e;case y:return fi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=si(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=si(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=si(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function fi(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function pi(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function mi(e){var t=si(18,null,null,0);return t.stateNode=e,t}function hi(e,t,n){return t=si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:ye(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:ye(t)}}var vi=[],yi=0,bi=null,xi=0,Si=[],Ci=0,wi=null,Ti=1,Ei=``;function Di(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Oi(e,t,n){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,wi=e;var r=Ti;e=Ei;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-Le(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ei=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null}function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,Pi=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[at]=e,t[ot]=r,n){case`dialog`:vd(`cancel`,t),vd(`close`,t);break;case`iframe`:case`object`:case`embed`:vd(`load`,t);break;case`video`:case`audio`:for(n=0;n<hd.length;n++)vd(hd[n],t);break;case`source`:vd(`error`,t);break;case`img`:case`image`:case`link`:vd(`error`,t),vd(`load`,t);break;case`details`:vd(`toggle`,t);break;case`input`:vd(`invalid`,t),zt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:vd(`invalid`,t);break;case`textarea`:vd(`invalid`,t),Ut(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&(vd(`beforetoggle`,t),vd(`toggle`,t)),r.onScroll!=null&&vd(`scroll`,t),r.onScrollEnd!=null&&vd(`scrollend`,t),r.onClick!=null&&(t.onclick=Qt),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Mi=Mi.return}}function Vi(e){if(e!==Mi)return!1;if(!Pi)return Bi(e),Pi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Ni&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=uf(e)}else t===27?(t=Ni,Zd(e.type)?(e=lf,lf=null,Ni=e):Ni=t):Ni=Mi?cf(e.stateNode.nextSibling):null;return!0}function Hi(){Ni=Mi=null,Pi=!1}function Ui(){var e=Fi;return e!==null&&(Jl===null?Jl=e:Jl.push.apply(Jl,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=P(null),Ki=null,qi=null;function Ji(e,t,n){I(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,F(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;xr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===le.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function B(e){return na(Ki,e)}function ta(e,t){return Ki===null&&ea(e),na(e,t)}function na(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ra=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ia=t.unstable_scheduleCallback,aa=t.unstable_NormalPriority,oa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function V(){return{controller:new ra,data:new Map,refCount:0}}function H(e){e.refCount--,e.refCount===0&&ia(aa,function(){e.controller.abort()})}var sa=null,U=0,W=0,ca=null;function la(e,t){if(sa===null){var n=sa=[];U=0,W=ld(),ca={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return U++,t.then(ua,ua),t}function ua(){if(--U===0&&sa!==null){ca!==null&&(ca.status=`fulfilled`);var e=sa;sa=null,W=0,ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function da(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var fa=j.S;j.S=function(e,t){Zl=Te(),typeof t==`object`&&t&&typeof t.then==`function`&&la(e,t),fa!==null&&fa(e,t)};var pa=P(null);function G(){var e=pa.current;return e===null?Pl.pooledCache:e}function ma(e,t){t===null?I(pa,pa.current):I(pa,t.pool)}function ha(){var e=G();return e===null?null:{parent:oa._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Qt,Qt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then(Qt,Qt);else{if(e=Pl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e}throw Ca=t,ga}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,ga):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===ga||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=di(n.type,n.key,n.props,null,e.mode,r),ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=pi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=di(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case v:return t=hi(t,e.mode,n),t.return=e,t;case O:return t=Sa(t),f(e,t,n)}if(ie(t)||A(t))return t=fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===C)return f(e,ta(e,t),n);Aa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Sa(n),p(e,t,n,r)}if(ie(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===C)return p(e,t,ta(e,n),r);Aa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Sa(r),m(e,t,n,r,i)}if(ie(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===C)return m(e,t,n,ta(t,r),i);Aa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Pi&&Di(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Pi&&Di(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Pi&&Di(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Pi&&Di(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Pi&&Di(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Pi&&Di(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(ie(o))return h(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,ta(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Nl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=ca;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($&f)===f:(r&f)===f){f!==0&&f===W&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Hl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wa(n[e],t)}var Ka=P(null),qa=P(0);function Ja(e,t){e=Bl,I(qa,e),I(Ka,t),Bl=e|t.baseLanes}function Ya(){I(qa,Bl),I(Ka,Ka.current)}function K(){Bl=qa.current,F(Ka),F(qa)}var q=P(null),Xa=null;function Za(e){var t=e.alternate;I(to,to.current&1),I(q,e),Xa===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(Xa=e)}function Qa(e){I(to,to.current),I(q,e),Xa===null&&(Xa=e)}function $a(e){e.tag===22?(I(to,to.current),I(q,e),Xa===null&&(Xa=e)):J(e)}function J(){I(to,to.current),I(q,q.current)}function eo(e){F(q),Xa===e&&(Xa=null),F(to)}var to=P(0);function no(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ro=0,Y=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(i(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return ro=a,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){j.H=Ms;var t=io!==null&&io.next!==null;if(ro=0,ao=io=Y=null,oo=!1,uo=0,fo=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&$i(e)&&(Zs=!0))}function vo(e,t,n,r){Y=e;var a=0;do{if(so&&(fo=null),uo=0,so=!1,25<=a)throw Error(i(301));if(a+=1,ao=io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Fs,o=t(n,r)}while(so);return o}function yo(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(Y.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}ro=0,ao=io=Y=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?Y.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=Y.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?Y.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw Y.alternate===null?Error(i(467)):Error(i(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?Y.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=xa(fo,e,t),t=Y,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===C)return B(e)}throw Error(i(438,String(e)))}function Oo(e){var t=null,n=Y.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Y.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=To(),Y.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ro&f)===f:($&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===W&&(d=!0);else if((ro&p)===p){u=u.next,p===W&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Y.lanes|=p,Hl|=p;f=u.action,co&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Y.lanes|=f,Hl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!xr(o,e.memoizedState)&&(Zs=!0,d&&(n=ca,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=wo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);xr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=Y,a=wo(),o=Pi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!xr((io||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Pl===null)throw Error(i(349));o||ro&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t=To(),Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xr(e,n)}catch{return!0}}function Ro(e){var t=ni(e,2);t!==null&&fu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(Pi){var n=Pl.formState;if(n!==null){a:{var r=Y;if(Pi){if(Ni){b:{for(var i=Ni,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=cf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,Y,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,Y,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,Y,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===ga?va:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Y.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Y.updateQueue,t===null&&(t=To(),Y.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();Y.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(Y.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){Y.flags|=4;var t=Y.updateQueue;if(t===null)t=To(),Y.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Nl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||ro&1073741824&&!($&261930)?e.memoizedState=t:(e.memoizedState=n,e=du(),Y.lanes|=e,Hl|=e,n)}function hs(e,t,n,r){return xr(n,t)?n:Ka.current===null?!(ro&42)||ro&1073741824&&!($&261930)?(Zs=!0,e.memoizedState=n):(e=du(),Y.lanes|=e,Hl|=e,t):(e=ms(e,n,r),xr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Os(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,da(c,r),uu(e)):Ds(e,t,r,uu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},uu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ys(e).queue;gs(e,a,t,ae,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},uu())}function xs(){return B(Qf)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=uu();e=La(n);var r=Ra(t,e,n);r!==null&&(fu(r,t,n),za(r,t,n)),t={cache:V()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=uu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=ti(e,t,n,r),n!==null&&(fu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,uu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,xr(s,o))return ei(e,t,i,0),Pl===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return fu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:ld(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&fu(t,e,2)}function ks(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ms={readContext:B,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:B,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:B,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,Y,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,Y,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Y,a=Co();if(Pi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Pl===null)throw Error(i(349));$&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Pl.identifierPrefix;if(Pi){var n=Ei,r=Ti;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,Y,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,Y)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Nl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:B,use:Do,useCallback:fs,useContext:B,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:B,use:Do,useCallback:fs,useContext:B,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uu(),i=La(r);i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(fu(t,e,r),za(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uu(),i=La(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(fu(t,e,r),za(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uu(),r=La(n);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,n),t!==null&&(fu(t,e,n),za(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Sr(n,r)||!Sr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Yr(e)}function Hs(e){console.error(e)}function Us(e){Yr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=La(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=La(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(eu===null?eu=new Set([this]):eu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=q.current,n!==null){switch(n.tag){case 31:case 13:return Xa===null?wu():n.alternate===null&&Vl===0&&(Vl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Uu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Uu(e,r,a)),!1}throw Error(i(435,n.tag))}return Uu(e,r,a),wu(),!1}if(Pi)return t=q.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=Ks(e.stateNode,r,a),Ba(e,a),Vl!==4&&(Vl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),ql===null?ql=[o]:ql.push(o),Vl!==4&&(Vl=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),Ba(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(eu===null||!eu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),Ba(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?Na(t,null,n,r):Ma(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(Pi&&s&&ki(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=di(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Sr:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=li(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Sr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ya():Ja(t,a),$a(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ya(),J(t)):(ma(t,a.cachePool),Ja(t,a),J(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=G();return a=a===null?null:{parent:oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ya(),$a(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Ma(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,eo(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Pi){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Qa(t),(e=Ni)?(e=rf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Qa(t),a)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Zs||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Pl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),fu(r,e,s),Xs;wu(),t=oc(e,t,n)}else e=o.treeContext,Ni=cf(s.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=ac(t,r),t.flags|=4096;return t}return e=li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return ea(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(Pi&&r&&ki(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),Cc(e,t,a)):(Pi&&r&&ki(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=ai,o=n.contextType;typeof o==`object`&&o&&(a=B(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Fa(t),o=n.contextType,a.context=typeof o==`object`&&o?B(o):ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Ua(t,r,a,i),Ha(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ai,typeof u==`object`&&u&&(o=B(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),Pa=!1;var f=t.memoizedState;a.state=f,Ua(t,r,a,i),Ha(),l=t.memoizedState,s||f!==l||Pa?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Pa||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ia(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ai,typeof l==`object`&&l&&(c=B(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),Pa=!1,f=t.memoizedState,a.state=f,Ua(t,r,a,i),Ha();var p=t.memoizedState;o!==d||f!==p||Pa||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Pa||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ma(t,e.child,null,i),t.child=Ma(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Hi(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:ha()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Gl),e}function gc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(to.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Pi){if(a?Za(t):J(t),(e=Ni)?(e=rf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(J(t),a=t.mode,c=vc({mode:`hidden`,children:c},a),r=fi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Za(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Za(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(J(t),c=r.fallback,a=t.mode,r=vc({mode:`visible`,children:r.children},a),c=fi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ma(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(J(t),t.child=e.child,t.flags|=128,t=null);else if(Za(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Pl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),fu(s,e,r),Xs;af(c)||wu(),t=yc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=cf(c.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=_c(t,r.children),t.flags|=4096);return t}return a?(J(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=li(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=fi(c,a,n,null),c.flags|=2):c=li(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(a=c.cachePool,a===null?a=ha():(l=oa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Za(t),n=e.child,e=n.sibling,n=li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=si(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Ma(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=to.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,I(to,o),Qs(e,t,r,n),r=Pi?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&no(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&no(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function Tc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Ji(t,oa,e.memoizedState.cache),Hi();break;case 27:case 5:R(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Za(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Za(t),t.flags|=128,null);Za(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),I(to,to.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Ji(t,oa,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Zs=!1,Tc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Pi&&t.flags&1048576&&Oi(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)ci(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=$s(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),dc(e,t,r,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ia(e,t),Ua(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,oa,r),r!==o.cache&&Zi(t,[oa],n,!0),Ha(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==a){a=_i(Error(i(424)),t),Wi(a),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ni=cf(e.firstChild),Mi=t,Pi=!0,Fi=null,Ii=!0,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Pi||(n=t.type,e=t.pendingProps,r=Bd(ce.current).createElement(n),r[at]=t,r[ot]=e,Pd(r,n,e),vt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return R(t),e===null&&Pi&&(r=t.stateNode=ff(t.type,t.pendingProps,ce.current),Mi=t,Ii=!0,a=Ni,Zd(t.type)?(lf=a,Ni=cf(r.firstChild)):Ni=a),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pi&&((a=r=Ni)&&(r=tf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=cf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),R(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=go(e,t,yo,null,null,n),Qf._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Pi&&((e=n=Ni)&&(n=nf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Ri(t)),null;case 13:return gc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ma(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=B(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return ea(t),r=B(oa),e===null?(a=G(),a===null&&(a=Pl,o=V(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Fa(t),Ji(t,oa,a)):((e.lanes&n)!==0&&(Ia(e,t),Ua(t,null,null,n),Ha()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,oa,r),r!==a.cache&&Zi(t,[oa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,oa,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Dc(e){e.flags|=4}function X(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(xu())e.flags|=8192;else throw Ca=ya,_a}else e.flags&=-16777217}function Oc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(xu())e.flags|=8192;else throw Ca=ya,_a}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,Kl|=t)}function Ac(e,t){if(!Pi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jc(t),null;case 1:return jc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(oa),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),jc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Dc(t),o===null?(jc(t),X(t,a,null,r,n)):(jc(t),Oc(t,o))):o?o===e.memoizedState?(jc(t),t.flags&=-16777217):(Dc(t),jc(t),Oc(t,o)):(e=e.memoizedProps,e!==r&&Dc(t),jc(t),X(t,a,e,r,n)),null;case 27:if(fe(t),n=ce.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}e=L.current,Vi(t)?zi(t,e):(e=ff(a,r,n),t.stateNode=e,Dc(t))}return jc(t),null;case 5:if(fe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}if(o=L.current,Vi(t))zi(t,o);else{var s=Bd(ce.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[at]=t,o[ot]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return jc(t),X(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ce.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Ri(t,!0)}else e=Bd(e).createTextNode(r),e[at]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[at]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(i(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[at]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),jc(t),null);case 4:return de(),e===null&&xd(t.stateNode.containerInfo),jc(t),null;case 10:return Yi(t.type),jc(t),null;case 19:if(F(to),r=t.memoizedState,r===null)return jc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Ac(r,!1);else{if(Vl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=no(e),o!==null){for(t.flags|=128,Ac(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return I(to,to.current&1|2),Pi&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>Ql&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}else{if(!a)if(e=no(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Pi)return jc(t),null}else 2*Te()-r.renderingStartTime>Ql&&n!==536870912&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=to.current,I(to,a?n&1|2:n&1),Pi&&Di(t,r.treeForkCount),e);case 22:case 23:return eo(t),K(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&F(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(oa),jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Nc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(oa),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(to),null;case 4:return de(),null;case 10:return Yi(t.type),null;case 22:case 23:return eo(t),K(),e!==null&&F(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(oa),null;case 25:return null;default:return null}}function Z(e,t){switch(Ai(t),t.tag){case 3:Yi(oa),de();break;case 26:case 27:case 5:fe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:F(to);break;case 10:Yi(t.type);break;case 22:case 23:eo(t),K(),e!==null&&F(pa);break;case 24:Yi(oa)}}function Pc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Hu(t,t.return,e)}}function Fc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Hu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Hu(t,t.return,e)}}function Ic(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Hu(e,e.return,t)}}}function Lc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Hu(e,t,n)}}function Rc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Hu(e,t,n)}}function zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Hu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Hu(e,t,n)}else n.current=null}function Bc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Hu(e,e.return,t)}}function Vc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ot]=t}catch(t){Hu(e,e.return,t)}}function Hc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Uc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Hc(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&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[at]=e,t[ot]=n}catch(t){Hu(e,e.return,t)}}var qc=!1,Jc=!1,Yc=!1,Xc=typeof WeakSet==`function`?WeakSet:Set,Zc=null;function Qc(e,t){if(e=e.containerInfo,Rd=sp,e=Er(e),Dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Zc=t;Zc!==null;)if(t=Zc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Zc=e;else for(;Zc!==null;){switch(t=Zc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Hu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Zc=e;break}Zc=t.return}}function $c(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ml(e,n),r&4&&Pc(5,n);break;case 1:if(ml(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Hu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Hu(n,n.return,e)}}r&64&&Ic(n),r&512&&Rc(n,n.return);break;case 3:if(ml(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ga(e,t)}catch(e){Hu(n,n.return,e)}}break;case 27:t===null&&r&4&&Kc(n);case 26:case 5:ml(e,n),t===null&&r&4&&Bc(n),r&512&&Rc(n,n.return);break;case 12:ml(e,n);break;case 31:ml(e,n),r&4&&al(e,n);break;case 13:ml(e,n),r&4&&ol(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ku.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||qc,!r){t=t!==null&&t.memoizedState!==null||Jc,i=qc;var a=Jc;qc=r,(Jc=t)&&!a?gl(e,n,(n.subtreeFlags&8772)!=0):ml(e,n),qc=i,Jc=a}break;case 30:break;default:ml(e,n)}}function el(e){var t=e.alternate;t!==null&&(e.alternate=null,el(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tl=null,nl=!1;function rl(e,t,n){for(n=n.child;n!==null;)il(e,t,n),n=n.sibling}function il(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:Jc||zc(n,t),rl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jc||zc(n,t);var r=tl,i=nl;Zd(n.type)&&(tl=n.stateNode,nl=!1),rl(e,t,n),pf(n.stateNode),tl=r,nl=i;break;case 5:Jc||zc(n,t);case 6:if(r=tl,i=nl,tl=null,rl(e,t,n),tl=r,nl=i,tl!==null)if(nl)try{(tl.nodeType===9?tl.body:tl.nodeName===`HTML`?tl.ownerDocument.body:tl).removeChild(n.stateNode)}catch(e){Hu(n,t,e)}else try{tl.removeChild(n.stateNode)}catch(e){Hu(n,t,e)}break;case 18:tl!==null&&(nl?(e=tl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(tl,n.stateNode));break;case 4:r=tl,i=nl,tl=n.stateNode.containerInfo,nl=!0,rl(e,t,n),tl=r,nl=i;break;case 0:case 11:case 14:case 15:Fc(2,n,t),Jc||Fc(4,n,t),rl(e,t,n);break;case 1:Jc||(zc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Lc(n,t,r)),rl(e,t,n);break;case 21:rl(e,t,n);break;case 22:Jc=(r=Jc)||n.memoizedState!==null,rl(e,t,n),Jc=r;break;default:rl(e,t,n)}}function al(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Hu(t,t.return,e)}}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Hu(t,t.return,e)}}function sl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xc),t;default:throw Error(i(435,e.tag))}}function cl(e,t){var n=sl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=qu.bind(null,e,t);t.then(r,r)}})}function ll(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){tl=c.stateNode,nl=!1;break a}break;case 5:tl=c.stateNode,nl=!1;break a;case 3:case 4:tl=c.stateNode.containerInfo,nl=!0;break a}c=c.return}if(tl===null)throw Error(i(160));il(o,s,a),tl=null,nl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dl(t,e),t=t.sibling}var ul=null;function dl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ll(t,e),fl(e),r&4&&(Fc(3,e,e.return),Pc(3,e),Fc(5,e,e.return));break;case 1:ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),r&64&&qc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ul;if(ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ft]||o[at]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[at]=e,vt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[at]=e,vt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Vc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),n!==null&&r&4&&Vc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),e.flags&32){a=e.stateNode;try{Wt(a,``)}catch(t){Hu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Vc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Yc=!0);break;case 6:if(ll(t,e),fl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Hu(e,e.return,t)}}break;case 3:if(Bf=null,a=ul,ul=gf(t.containerInfo),ll(t,e),ul=a,fl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Hu(e,e.return,t)}Yc&&(Yc=!1,pl(e));break;case 4:r=ul,ul=gf(e.stateNode.containerInfo),ll(t,e),fl(e),ul=r;break;case 12:ll(t,e),fl(e);break;case 31:ll(t,e),fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 13:ll(t,e),fl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xl=Te()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=qc,d=Jc;if(qc=u||a,Jc=d||l,ll(t,e),Jc=d,qc=u,fl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||qc||Jc||hl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Hu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Hu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Hu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,cl(e,n))));break;case 19:ll(t,e),fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 30:break;case 21:break;default:ll(t,e),fl(e)}}function fl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Hc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Gc(e,Uc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Wt(o,``),n.flags&=-33),Gc(e,Uc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Wc(e,Uc(e),s);break;default:throw Error(i(161))}}catch(t){Hu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$c(e,t.alternate,t),t=t.sibling}function hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Fc(4,t,t.return),hl(t);break;case 1:zc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Lc(t,t.return,n),hl(t);break;case 27:pf(t.stateNode);case 26:case 5:zc(t,t.return),hl(t);break;case 22:t.memoizedState===null&&hl(t);break;case 30:hl(t);break;default:hl(t)}e=e.sibling}}function gl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:gl(i,a,n),Pc(4,a);break;case 1:if(gl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Hu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Wa(c[i],s)}catch(e){Hu(r,r.return,e)}}n&&o&64&&Ic(a),Rc(a,a.return);break;case 27:Kc(a);case 26:case 5:gl(i,a,n),n&&r===null&&o&4&&Bc(a),Rc(a,a.return);break;case 12:gl(i,a,n);break;case 31:gl(i,a,n),n&&o&4&&al(i,a);break;case 13:gl(i,a,n),n&&o&4&&ol(i,a);break;case 22:a.memoizedState===null&&gl(i,a,n),Rc(a,a.return);break;case 30:break;default:gl(i,a,n)}t=t.sibling}}function _l(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&H(n))}function vl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&H(e))}function yl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bl(e,t,n,r),t=t.sibling}function bl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:yl(e,t,n,r),i&2048&&Pc(9,t);break;case 1:yl(e,t,n,r);break;case 3:yl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&H(e)));break;case 12:if(i&2048){yl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Hu(t,t.return,e)}}else yl(e,t,n,r);break;case 31:yl(e,t,n,r);break;case 13:yl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?yl(e,t,n,r):(a._visibility|=2,xl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?yl(e,t,n,r):Sl(e,t),i&2048&&_l(o,t);break;case 24:yl(e,t,n,r),i&2048&&vl(t.alternate,t);break;default:yl(e,t,n,r)}}function xl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:xl(a,o,s,c,i),Pc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,xl(a,o,s,c,i)):u._visibility&2?xl(a,o,s,c,i):Sl(a,o),i&&l&2048&&_l(o.alternate,o);break;case 24:xl(a,o,s,c,i),i&&l&2048&&vl(o.alternate,o);break;default:xl(a,o,s,c,i)}t=t.sibling}}function Sl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Sl(n,r),i&2048&&_l(r.alternate,r);break;case 24:Sl(n,r),i&2048&&vl(r.alternate,r);break;default:Sl(n,r)}t=t.sibling}}var Cl=8192;function wl(e,t,n){if(e.subtreeFlags&Cl)for(e=e.child;e!==null;)Tl(e,t,n),e=e.sibling}function Tl(e,t,n){switch(e.tag){case 26:wl(e,t,n),e.flags&Cl&&e.memoizedState!==null&&Gf(n,ul,e.memoizedState,e.memoizedProps);break;case 5:wl(e,t,n);break;case 3:case 4:var r=ul;ul=gf(e.stateNode.containerInfo),wl(e,t,n),ul=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Cl,Cl=16777216,wl(e,t,n),Cl=r):wl(e,t,n));break;default:wl(e,t,n)}}function El(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Dl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Zc=r,Al(r,e)}El(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ol(e),e=e.sibling}function Ol(e){switch(e.tag){case 0:case 11:case 15:Dl(e),e.flags&2048&&Fc(9,e,e.return);break;case 3:Dl(e);break;case 12:Dl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kl(e)):Dl(e);break;default:Dl(e)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Zc=r,Al(r,e)}El(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Fc(8,t,t.return),kl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,kl(t));break;default:kl(t)}e=e.sibling}}function Al(e,t){for(;Zc!==null;){var n=Zc;switch(n.tag){case 0:case 11:case 15:Fc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:H(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Zc=r;else a:for(n=e;Zc!==null;){r=Zc;var i=r.sibling,a=r.return;if(el(r),r===n){Zc=null;break a}if(i!==null){i.return=a,Zc=i;break a}Zc=a}}}var jl={getCacheForType:function(e){var t=B(oa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return B(oa).controller.signal}},Ml=typeof WeakMap==`function`?WeakMap:Map,Nl=0,Pl=null,Q=null,$=0,Fl=0,Il=null,Ll=!1,Rl=!1,zl=!1,Bl=0,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=null,Jl=null,Yl=!1,Xl=0,Zl=0,Ql=1/0,$l=null,eu=null,tu=0,nu=null,ru=null,iu=0,au=0,ou=null,su=null,cu=0,lu=null;function uu(){return Nl&2&&$!==0?$&-$:j.T===null?z():ld()}function du(){if(Gl===0)if(!($&536870912)||Pi){var e=He;He<<=1,!(He&3932160)&&(He=262144),Gl=e}else Gl=536870912;return e=q.current,e!==null&&(e.flags|=32),Gl}function fu(e,t,n){(e===Pl&&(Fl===2||Fl===9)||e.cancelPendingCommit!==null)&&(yu(e,0),gu(e,$,Gl,!1)),Xe(e,n),(!(Nl&2)||e!==Pl)&&(e===Pl&&(!(Nl&2)&&(Ul|=n),Vl===4&&gu(e,$,Gl,!1)),td(e))}function pu(e,t,n){if(Nl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ke(e,t),a=r?Du(e,t):Tu(e,t,!0),o=r;do{if(a===0){Rl&&!r&&gu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!hu(n)){a=Tu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ql;var l=c.current.memoizedState.isDehydrated;if(l&&(yu(c,s).flags|=256),s=Tu(c,s,!1),s!==2){if(zl&&!l){c.errorRecoveryDisabledLanes|=o,Ul|=o,a=4;break a}o=Jl,Jl=a,o!==null&&(Jl===null?Jl=o:Jl.push.apply(Jl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){yu(e,0),gu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:gu(r,t,Gl,!Ll);break a;case 2:Jl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Xl+300-Te(),10<a)){if(gu(r,t,Gl,!Ll),Ge(r,0,!0)!==0)break a;iu=t,r.timeoutHandle=Kd(mu.bind(null,r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,`Throttled`,-0,0),a);break a}mu(r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,null,-0,0)}}break}while(1);td(e)}function mu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qt},Tl(t,a,d);var m=(a&62914560)===a?Xl-Te():(a&4194048)===a?Zl-Te():0;if(m=qf(d,m),m!==null){iu=a,e.cancelPendingCommit=m(Pu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),gu(e,a,o,!l);return}}Pu(e,t,a,n,r,i,o,s,c)}function hu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!xr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function gu(e,t,n,r){t&=~Wl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function _u(){return Nl&6?!0:(nd(0,!1),!1)}function vu(){if(Q!==null){if(Fl===0)var e=Q.return;else e=Q,qi=Ki=null,So(e),Ea=null,Da=0,e=Q;for(;e!==null;)Z(e.alternate,e),e=e.return;Q=null}}function yu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),iu=0,vu(),Pl=e,Q=n=li(e.current,null),$=t,Fl=0,Il=null,Ll=!1,Rl=Ke(e,t),zl=!1,Kl=Gl=Wl=Ul=Hl=Vl=0,Jl=ql=null,Yl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return Bl=t,$r(),n}function bu(e,t){Y=null,j.H=Ms,t===ga||t===va?(t=wa(),Fl=3):t===_a?(t=wa(),Fl=4):Fl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Il=t,Q===null&&(Vl=1,Ws(e,_i(t,e.current)))}function xu(){var e=q.current;return e===null?!0:($&4194048)===$?Xa===null:($&62914560)===$||$&536870912?e===Xa:!1}function Su(){var e=j.H;return j.H=Ms,e===null?Ms:e}function Cu(){var e=j.A;return j.A=jl,e}function wu(){Vl=4,Ll||($&4194048)!==$&&q.current!==null||(Rl=!0),!(Hl&134217727)&&!(Ul&134217727)||Pl===null||gu(Pl,$,Gl,!1)}function Tu(e,t,n){var r=Nl;Nl|=2;var i=Su(),a=Cu();(Pl!==e||$!==t)&&($l=null,yu(e,t)),t=!1;var o=Vl;a:do try{if(Fl!==0&&Q!==null){var s=Q,c=Il;switch(Fl){case 8:vu(),o=6;break a;case 3:case 2:case 9:case 6:q.current===null&&(t=!0);var l=Fl;if(Fl=0,Il=null,ju(e,s,c,l),n&&Rl){o=0;break a}break;default:l=Fl,Fl=0,Il=null,ju(e,s,c,l)}}Eu(),o=Vl;break}catch(t){bu(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Nl=r,j.H=i,j.A=a,Q===null&&(Pl=null,$=0,$r()),o}function Eu(){for(;Q!==null;)ku(Q)}function Du(e,t){var n=Nl;Nl|=2;var r=Su(),a=Cu();Pl!==e||$!==t?($l=null,Ql=Te()+500,yu(e,t)):Rl=Ke(e,t);a:do try{if(Fl!==0&&Q!==null){t=Q;var o=Il;b:switch(Fl){case 1:Fl=0,Il=null,ju(e,t,o,1);break;case 2:case 9:if(ba(o)){Fl=0,Il=null,Au(t);break}t=function(){Fl!==2&&Fl!==9||Pl!==e||(Fl=7),td(e)},o.then(t,t);break a;case 3:Fl=7;break a;case 4:Fl=5;break a;case 7:ba(o)?(Fl=0,Il=null,Au(t)):(Fl=0,Il=null,ju(e,t,o,7));break;case 5:var s=null;switch(Q.tag){case 26:s=Q.memoizedState;case 5:case 27:var c=Q;if(s?Wf(s):c.stateNode.complete){Fl=0,Il=null;var l=c.sibling;if(l!==null)Q=l;else{var u=c.return;u===null?Q=null:(Q=u,Mu(u))}break b}}Fl=0,Il=null,ju(e,t,o,5);break;case 6:Fl=0,Il=null,ju(e,t,o,6);break;case 8:vu(),Vl=6;break a;default:throw Error(i(462))}}Ou();break}catch(t){bu(e,t)}while(1);return qi=Ki=null,j.H=r,j.A=a,Nl=n,Q===null?(Pl=null,$=0,$r(),Vl):0}function Ou(){for(;Q!==null&&!Ce();)ku(Q)}function ku(e){var t=Ec(e.alternate,e,Bl);e.memoizedProps=e.pendingProps,t===null?Mu(e):Q=t}function Au(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,$);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,$);break;case 5:So(t);default:Z(n,t),t=Q=ui(t,Bl),t=Ec(n,t,Bl)}e.memoizedProps=e.pendingProps,t===null?Mu(e):Q=t}function ju(e,t,n,r){qi=Ki=null,So(t),Ea=null,Da=0;var i=t.return;try{if(Ys(e,i,t,n,$)){Vl=1,Ws(e,_i(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;Vl=1,Ws(e,_i(n,e.current)),Q=null;return}t.flags&32768?(Pi||r===1?e=!0:Rl||$&536870912?e=!1:(Ll=e=!0,(r===2||r===9||r===3||r===6)&&(r=q.current,r!==null&&r.tag===13&&(r.flags|=16384))),Nu(t,e)):Mu(t)}function Mu(e){var t=e;do{if(t.flags&32768){Nu(t,Ll);return}e=t.return;var n=Mc(t.alternate,t,Bl);if(n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);Vl===0&&(Vl=5)}function Nu(e,t){do{var n=Nc(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);Vl=6,Q=null}function Pu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do zu();while(tu!==0);if(Nl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,Ze(e,n,o,s,c,l),e===Pl&&(Q=Pl=null,$=0),ru=t,nu=e,iu=n,au=o,ou=a,su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Ju(ke,function(){return Bu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=Nl,Nl|=4;try{Qc(e,t,n)}finally{Nl=s,M.p=a,j.T=r}}tu=1,Fu(),Iu(),Lu()}}function Fu(){if(tu===1){tu=0;var e=nu,t=ru,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Nl;Nl|=4;try{dl(t,e);var a=zd,o=Er(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Tr(s.ownerDocument.documentElement,s)){if(c!==null&&Dr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{Nl=i,M.p=r,j.T=n}}e.current=t,tu=2}}function Iu(){if(tu===2){tu=0;var e=nu,t=ru,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Nl;Nl|=4;try{$c(e,t.alternate,t)}finally{Nl=i,M.p=r,j.T=n}}tu=3}}function Lu(){if(tu===4||tu===3){tu=0,we();var e=nu,t=ru,n=iu,r=su;t.subtreeFlags&10256||t.flags&10256?tu=5:(tu=0,ru=nu=null,Ru(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(eu=null),nt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{j.T=t,M.p=i}}iu&3&&zu(),td(e),i=e.pendingLanes,n&261930&&i&42?e===lu?cu++:(cu=0,lu=e):cu=0,nd(0,!1)}}function Ru(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,H(t)))}function zu(){return Fu(),Iu(),Lu(),Bu()}function Bu(){if(tu!==5)return!1;var e=nu,t=au;au=0;var n=nt(iu),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=ou,ou=null;var o=nu,s=iu;if(tu=0,ru=nu=null,iu=0,Nl&6)throw Error(i(331));var c=Nl;if(Nl|=4,Ol(o.current),bl(o,o.current,s,n),Nl=c,nd(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{M.p=a,j.T=r,Ru(e,t)}}function Vu(e,t,n){t=_i(n,t),t=Ks(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Xe(e,2),td(e))}function Hu(e,t,n){if(e.tag===3)Vu(e,e,n);else for(;t!==null;){if(t.tag===3){Vu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(eu===null||!eu.has(r))){e=_i(n,e),n=qs(2),r=Ra(t,n,2),r!==null&&(Js(n,r,t,e),Xe(r,2),td(r));break}}t=t.return}}function Uu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ml;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(zl=!0,i.add(n),e=Wu.bind(null,e,t,n),t.then(e,e))}function Wu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Pl===e&&($&n)===n&&(Vl===4||Vl===3&&($&62914560)===$&&300>Te()-Xl?!(Nl&2)&&yu(e,0):Wl|=n,Kl===$&&(Kl=0)),td(e)}function Gu(e,t){t===0&&(t=Je()),e=ni(e,t),e!==null&&(Xe(e,t),td(e))}function Ku(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gu(e,n)}function qu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Gu(e,n)}function Ju(e,t){return xe(e,t)}var Yu=null,Xu=null,Zu=!1,Qu=!1,$u=!1,ed=0;function td(e){e!==Xu&&e.next===null&&(Xu===null?Yu=Xu=e:Xu=Xu.next=e),Qu=!0,Zu||(Zu=!0,cd())}function nd(e,t){if(!$u&&Qu){$u=!0;do for(var n=!1,r=Yu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,sd(r,a))}else a=$,a=Ge(r,r===Pl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,sd(r,a));r=r.next}while(n);$u=!1}}function rd(){id()}function id(){Qu=Zu=!1;var e=0;ed!==0&&Gd()&&(e=ed);for(var t=Te(),n=null,r=Yu;r!==null;){var i=r.next,a=ad(r,t);a===0?(r.next=null,n===null?Yu=i:n.next=i,i===null&&(Xu=n)):(n=r,(e!==0||a&3)&&(Qu=!0)),r=i}tu!==0&&tu!==5||nd(e,!1),ed!==0&&(ed=0)}function ad(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Pl,n=$,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Fl===2||Fl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Se(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Se(r),nt(n)){case 2:case 8:n=Oe;break;case 32:n=ke;break;case 268435456:n=je;break;default:n=ke}return r=od.bind(null,e),n=xe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Se(r),e.callbackPriority=2,e.callbackNode=null,2}function od(e,t){if(tu!==0&&tu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zu()&&e.callbackNode!==n)return null;var r=$;return r=Ge(e,e===Pl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(pu(e,r,t),ad(e,Te()),e.callbackNode!=null&&e.callbackNode===n?od.bind(null,e):null)}function sd(e,t){if(zu())return null;pu(e,t,!0)}function cd(){Yd(function(){Nl&6?xe(De,rd):id()})}function ld(){if(ed===0){var e=W;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),ed=e}return ed}function ud(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Zt(``+e)}function dd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function fd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=ud((i[ot]||null).action),o=r.submitter;o&&(t=(t=o[ot]||null)?ud(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new bn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ed!==0){var e=o?dd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?dd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var pd=0;pd<qr.length;pd++){var md=qr[pd];Jr(md.toLowerCase(),`on`+(md[0].toUpperCase()+md.slice(1)))}Jr(zr,`onAnimationEnd`),Jr(Br,`onAnimationIteration`),Jr(Vr,`onAnimationStart`),Jr(`dblclick`,`onDoubleClick`),Jr(`focusin`,`onFocus`),Jr(`focusout`,`onBlur`),Jr(Hr,`onTransitionRun`),Jr(Ur,`onTransitionStart`),Jr(Wr,`onTransitionCancel`),Jr(Gr,`onTransitionEnd`),St(`onMouseEnter`,[`mouseout`,`mouseover`]),St(`onMouseLeave`,[`mouseout`,`mouseover`]),St(`onPointerEnter`,[`pointerout`,`pointerover`]),St(`onPointerLeave`,[`pointerout`,`pointerover`]),xt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),xt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),xt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),xt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),xt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),xt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var hd=`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(` `),gd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(hd));function _d(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}}}}function vd(e,t){var n=t[ct];n===void 0&&(n=t[ct]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,yt.forEach(function(t){t!==`selectionchange`&&(gd.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!ln||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}on(function(){var r=a,i=en(n),s=[];a:{var c=Kr.get(e);if(c!==void 0){var l=bn,u=e;switch(e){case`keypress`:if(hn(n)===0)break a;case`keydown`:case`keyup`:l=Rn;break;case`focusin`:u=`focus`,l=kn;break;case`focusout`:u=`blur`,l=kn;break;case`beforeblur`:case`afterblur`:l=kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Dn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=On;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Bn;break;case zr:case Br:case Vr:l=An;break;case Gr:l=Vn;break;case`scroll`:case`scrollend`:l=Sn;break;case`wheel`:l=Hn;break;case`copy`:case`cut`:case`paste`:l=jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=zn;break;case`toggle`:case`beforetoggle`:l=Un}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=sn(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==$t&&(u=n.relatedTarget||n.fromElement)&&(mt(u)||u[st]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?mt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Dn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=zn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:gt(l),h=u==null?c:gt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,mt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?gt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=lr;else if(rr(c))if(ur)v=yr;else{v=_r;var y=gr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Jt(r.elementType)&&(v=lr):v=vr;if(v&&=v(e,r)){ir(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Bt(c,`number`,c.value)}switch(y=r?gt(r):window,e){case`focusin`:(rr(y)||y.contentEditable===`true`)&&(kr=y,Ar=r,jr=null);break;case`focusout`:jr=Ar=kr=null;break;case`mousedown`:Mr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Mr=!1,Nr(s,n,i);break;case`selectionchange`:if(Or)break;case`keydown`:case`keyup`:Nr(s,n,i)}var b;if(Gn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else $n?Zn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Jn&&n.locale!==`ko`&&($n||x!==`onCompositionStart`?x===`onCompositionEnd`&&$n&&(b=mn()):(dn=i,fn=`value`in dn?dn.value:dn.textContent,$n=!0)),y=Td(r,x),0<y.length&&(x=new Mn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Qn(n),b!==null&&(x.data=b)))),(b=qn?er(e,n):tr(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new Mn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),fd(s,e,r,n,i)}_d(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=sn(e,n),i!=null&&r.unshift(wd(e,i,a)),i=sn(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=sn(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=sn(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
9
+ `).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Wt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Wt(e,``+r);break;case`className`:Ot(e,`class`,r);break;case`tabIndex`:Ot(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ot(e,n,r);break;case`style`:qt(e,r,o);break;case`data`:if(t!==`object`){Ot(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Zt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Zt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Qt);break;case`onScroll`:r!=null&&vd(`scroll`,e);break;case`onScrollEnd`:r!=null&&vd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Zt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:vd(`beforetoggle`,e),vd(`toggle`,e),Dt(e,`popover`,r);break;case`xlinkActuate`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Dt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Yt.get(n)||n,Dt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:qt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Wt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Wt(e,``+r);break;case`onScroll`:r!=null&&vd(`scroll`,e);break;case`onScrollEnd`:r!=null&&vd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Qt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!bt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ot]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Dt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:vd(`error`,e),vd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:vd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}zt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in vd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Vt(e,!!r,n,!0):Vt(e,!!r,t,!1);return;case`textarea`:for(s in vd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}Ut(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:vd(`beforetoggle`,e),vd(`toggle`,e),vd(`cancel`,e),vd(`close`,e);break;case`iframe`:case`object`:vd(`load`,e);break;case`video`:case`audio`:for(r=0;r<hd.length;r++)vd(hd[r],e);break;case`image`:vd(`error`,e),vd(`load`,e);break;case`details`:vd(`toggle`,e);break;case`embed`:case`source`:case`link`:vd(`error`,e),vd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Jt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Rt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Vt(e,!!n,n?[]:``,!1):Vt(e,!!n,t,!0)):Vt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Ht(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Jt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(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 Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ft]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),pt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ft])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=M.d;M.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=_u();return e||t}function yf(e){var t=ht(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Lt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Lt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Lt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Lt(n.imageSizes)+`"]`)):i+=`[href="`+Lt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Lt(r)+`"][href="`+Lt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),vt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=_t(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);vt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=_t(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),vt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=_t(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),vt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=ce.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=_t(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=_t(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=_t(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Lt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),vt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Lt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Lt(n.href)+`"]`);if(r)return t.instance=r,vt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),vt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,vt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),vt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,vt(a),a):(r=n,(a=mf.get(o))&&(r=m({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),vt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ft]||a[at]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,vt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),vt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){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=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=V(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Fa(a),e}function tp(e){return e?(e=ai,e):ai}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=La(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ra(e,r,t),n!==null&&(fu(n,e,t),za(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&fu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=uu();t=tt(t);var n=ni(e,t);n!==null&&fu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,up(e,t,n,r)}finally{M.p=a,j.T=i}}function lp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,up(e,t,n,r)}finally{M.p=a,j.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=ht(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}td(a),!(Nl&6)&&(Ql=Te()+500,nd(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&fu(s,a,2),_u(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=en(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(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(Ee()){case De:return 2;case Oe:return 8;case ke:case Ae:return 32;case je:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ht(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,rt(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,rt(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$t=r,n.target.dispatchEvent(r),$t=null}else return t=ht(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=ht(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ot]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ot]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,uu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),_u(),t[st]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=z();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.5`)throw Error(i(527,Lp,`19.2.5`));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Pe=zp.inject(Rp),Fe=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[st]=t.current,xd(e),new Fp(t)}})),_=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=o((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),y=o(((e,t)=>{t.exports=v()})),b=_(),x=l(p(),1),S=y(),C=Symbol.for(`react.transitional.element`),w=Symbol.for(`react.portal`),T=Symbol.for(`react.fragment`),E=Symbol.for(`react.strict_mode`),D=Symbol.for(`react.profiler`),O=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),k=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),A=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=k,j=ne;function M(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case C:switch(e=e.type,e){case T:case D:case E:case te:case A:return e;default:switch(e&&=e.$$typeof,e){case ee:case k:case re:case ne:return e;case O:return e;default:return t}}case w:return t}}}function ae(e){return M(e)===ne}function N(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}function oe(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return N(t(e,i),n(e,i),r(e,i),e,i)}function P(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function F(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function I(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function L(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=I(i),i=r(t,n)),i},r}}function se(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function ce(e){return e&&typeof e==`object`?F(t=>P(e,t)):e?typeof e==`function`?L(e,`mapDispatchToProps`):se(e,`mapDispatchToProps`):F(e=>({dispatch:e}))}function le(e){return e?typeof e==`function`?L(e,`mapStateToProps`):se(e,`mapStateToProps`):F(()=>({}))}function ue(e,t,n){return{...n,...e,...t}}function de(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function R(e){return e?typeof e==`function`?de(e):se(e,`mergeProps`):()=>ue}function fe(e){e()}function pe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){fe(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var me={notify(){},get:()=>[]};function he(e,t){let n,r=me,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=pe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=me)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var ge=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,_e=typeof navigator<`u`&&navigator.product===`ReactNative`,ve=ge||_e?x.useLayoutEffect:x.useEffect;function ye(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function be(e,t){if(ye(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!ye(e[n[r]],t[n[r]]))return!1;return!0}var xe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Se={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ce={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},we={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Te={[ie]:Ce,[j]:we};function Ee(e){return ae(e)?we:Te[e.$$typeof]||xe}var De=Object.defineProperty,Oe=Object.getOwnPropertyNames,ke=Object.getOwnPropertySymbols,Ae=Object.getOwnPropertyDescriptor,je=Object.getPrototypeOf,Me=Object.prototype;function Ne(e,t){if(typeof t!=`string`){if(Me){let n=je(t);n&&n!==Me&&Ne(e,n)}let n=Oe(t);ke&&(n=n.concat(ke(t)));let r=Ee(e),i=Ee(t);for(let a=0;a<n.length;++a){let o=n[a];if(!Se[o]&&!(i&&i[o])&&!(r&&r[o])){let n=Ae(t,o);try{De(e,o,n)}catch{}}}}return e}var Pe=Symbol.for(`react-redux-context`),Fe=typeof globalThis<`u`?globalThis:{};function Ie(){if(!x.createContext)return{};let e=Fe[Pe]??=new Map,t=e.get(x.createContext);return t||(t=x.createContext(null),e.set(x.createContext,t)),t}var Le=Ie(),Re=[null,null];function ze(e,t,n){ve(()=>e(...t),n)}function Be(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function Ve(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function He(e,t){return e===t}function Ue(e,t,n,{pure:r,areStatesEqual:i=He,areOwnPropsEqual:a=be,areStatePropsEqual:o=be,areMergedPropsEqual:s=be,forwardRef:c=!1,context:l=Le}={}){let u=l,d=le(e),f=ce(t),p=R(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=x.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=x.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=x.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=x.useMemo(()=>oe(d.dispatch,r),[d]),[h,g]=x.useMemo(()=>{if(!m)return Re;let e=he(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=x.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=x.useRef(void 0),y=x.useRef(a),b=x.useRef(void 0),S=x.useRef(!1),C=x.useRef(!1),w=x.useRef(void 0);ve(()=>(C.current=!0,()=>{C.current=!1}),[]);let T=x.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),E=x.useMemo(()=>e=>h?Ve(m,d,h,p,y,v,S,C,b,g,e):()=>{},[h]);ze(Be,[y,v,S,a,b,g]);let D;try{D=x.useSyncExternalStore(E,T,f?()=>p(f(),a):T)}catch(e){throw w.current&&(e.message+=`
10
+ The error may be correlated with this previous error:
11
+ ${w.current.stack}
12
+
13
+ `),e}ve(()=>{w.current=void 0,b.current=void 0,v.current=D});let O=x.useMemo(()=>x.createElement(e,{...D,ref:i}),[i,e,D]);return x.useMemo(()=>m?x.createElement(o.Provider,{value:_},O):O,[o,O,_])}let h=x.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=x.forwardRef(function(e,t){return x.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,Ne(t,e)}return Ne(h,e)}}var We=Ue;function Ge(e){let{children:t,context:n,serverState:r,store:i}=e,a=x.useMemo(()=>({store:i,subscription:he(i),getServerState:r?()=>r:void 0}),[i,r]),o=x.useMemo(()=>i.getState(),[i]);ve(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Le;return x.createElement(s.Provider,{value:a},t)}var Ke=Ge;function qe(e=Le){return function(){return x.useContext(e)}}var Je=qe();function Ye(e=Le){let t=e===Le?Je:qe(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Xe=Ye();function Ze(e=Le){let t=e===Le?Xe:Ye(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Qe=Ze(),$e=(e,t)=>e===t;function et(e=Le){let t=e===Le?Je:qe(e),n=(e,n={})=>{let{equalityFn:r=$e}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();x.useRef(!0);let s=x.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,S.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return x.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var tt=et();function nt(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=nt(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function z(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=nt(e))&&(r&&(r+=` `),r+=t);return r}var rt={app:`_app_1rj0t_1`},it={TYPING_ON:`core.typing.on`,TYPING_OFF:`core.typing.off`,GUEST_CONNECTED:`core.guest.connected`,GUEST_DISCONNECTED:`core.guest.disconnected`,GUEST_FEEDBACK_RESPONSE:`core.guest.feedback.response`,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`,EXPERTS_CONNECT_REQUEST:`core.experts.connect.request`,EXPERTS_CONNECTED:`core.experts.connected`,EXPERTS_DISCONNECT_REQUEST:`core.experts.disconnect.request`,EXPERTS_DISCONNECTED:`core.experts.disconnected`,NLU_REQUEST_EVENT:`core.nlu.request.event`,EVENT_TO_GUEST:`core.event.to.guest`,RESTART_CHAT_REQUEST:`core.chat.restart.request`,INBOX_CONNECT_REQUEST:`core.inbox.connect.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`},at=function(e){return e.GUEST=`GUEST`,e.BOT=`BOT`,e.PERSON=`PERSON`,e}({}),ot=function(e){return e.WEB_URL=`web_url`,e.POSTBACK=`postback`,e}({}),st=function(e){return e.TEXT=`TEXT`,e.DETAIL=`DETAIL`,e.MARKDOWN=`MARKDOWN`,e.VIDEO=`VIDEO`,e.IMAGE=`IMAGE`,e.FILE=`FILE`,e.AUDIO=`AUDIO`,e}({}),ct=class{type;id;name;avatar;constructor(e,t,n,r){this.type=e,this.id=t,this.name=n,this.avatar=r}},lt=class extends ct{constructor(){super(at.BOT,null,`Chatbot`,`bot.svg`)}},ut=class extends ct{constructor(){super(at.GUEST,null,`Guest`,`visitor.svg`)}},dt=class{type;sender;sources;quickReplies;constructor(e,t,n=[],r=[]){this.type=e,this.sender=t,this.sources=n,this.quickReplies=r}},ft=class extends dt{text;constructor(e,t,n=[],r=[]){super(st.TEXT,t,n,r),this.text=e}},pt={receiveTextMessageFromGuest:e=>{let t=new ft(e,new ut);return{type:it.MESSAGE_FROM_GUEST,message:t}},receiveTextMessageWithoutAnalysisFromGuest:(e,t={})=>{let n=new ft(e,new ut);return{type:it.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}},requestNLUEvent:e=>({type:it.NLU_REQUEST_EVENT,event:e}),transcriptItemGuestReaction:(e,t,n=null,r=null)=>({type:it.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:e,reaction:t,category:n,comment:r}})},mt=e=>t=>(e.payload.type!==it.MESSAGE_FROM_GUEST&&t(pt.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),ht=e=>(t,n)=>{let{quickReplies:r}=n().chat,i=r.find(t=>e.toLocaleLowerCase().indexOf(t.label.toLocaleLowerCase())>-1);return t(i?mt({...i,label:e}):JSON.parse(JSON.stringify(pt.receiveTextMessageFromGuest(e))))},gt=`MESSAGE_TO_PARENT_PAGE`,_t=`RESTORE_PREVIOUS_CHAT_MESSAGES`,vt=`AUDIO_MESSAGE_FROM_USER`,yt=`RECEIVE_SPEECH_TRANSCRIPTION`,bt=`ENABLE_CONVERSATION_RATING`,xt=`LOAD_SOURCE_INFOS_RESPONSE`,St=`LOAD_SOURCE_INFOS_ERROR`,Ct=`LOAD_SOURCE_INFOS_REQUEST`,wt=`CLOSE_SOURCE_INFOS`,Tt=`webclient.window.expand`,Et=`webclient.window.close`,Dt=`webclient.transcript.pdf.download`,Ot=[gt,_t,vt,yt,bt,Ct,wt],kt=e=>({type:vt,buffer:e}),At=e=>({type:yt,transcription:e}),jt=e=>({type:it.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),Mt=()=>({type:Dt}),Nt=({rating:e})=>({type:bt,payload:{rating:e}}),Pt=(e,t)=>({type:it.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),Ft=e=>pt.requestNLUEvent(e),It=e=>({type:_t,messages:e}),Lt=e=>{switch(e.type){case ot.WEB_URL:return zt(e.url);case ot.POSTBACK:return e.payload;default:throw Error(`unknown button type ${e.type}`)}},Rt=e=>zt(e),zt=e=>({type:gt,message:{type:`webclient.change.url`,url:e}});function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Vt={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ht(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=Bt({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&=i.expires.toUTCString(),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(r[s]=e.read(o,s),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,Bt({},t,{expires:-1}))},withAttributes:function(e){return Ht(this.converter,Bt({},this.attributes,e))},withConverter:function(e){return Ht(Bt({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ut=Ht(Vt,{path:`/`}),Wt=[];for(let e=0;e<256;++e)Wt.push((e+256).toString(16).slice(1));function Gt(e,t=0){return(Wt[e[t+0]]+Wt[e[t+1]]+Wt[e[t+2]]+Wt[e[t+3]]+`-`+Wt[e[t+4]]+Wt[e[t+5]]+`-`+Wt[e[t+6]]+Wt[e[t+7]]+`-`+Wt[e[t+8]]+Wt[e[t+9]]+`-`+Wt[e[t+10]]+Wt[e[t+11]]+Wt[e[t+12]]+Wt[e[t+13]]+Wt[e[t+14]]+Wt[e[t+15]]).toLowerCase()}var Kt,qt=new Uint8Array(16);function Jt(){if(!Kt){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);Kt=crypto.getRandomValues.bind(crypto)}return Kt(qt)}var Yt={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xt(e,t,n){e||={};let r=e.random??e.rng?.()??Jt();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Gt(r)}function Zt(e,t,n){return Yt.randomUUID&&!t&&!e?Yt.randomUUID():Xt(e,t,n)}var Qt=()=>$t(window.location.pathname),$t=e=>{let t=e.split(`/`),n=e.endsWith(`/`);return t[t.length-(n?2:1)]};function en(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var tn=typeof Symbol==`function`&&Symbol.observable||`@@observable`,nn=()=>Math.random().toString(36).substring(7).split(``).join(`.`),rn={INIT:`@@redux/INIT${nn()}`,REPLACE:`@@redux/REPLACE${nn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${nn()}`};function an(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function on(e,t,n){if(typeof e!=`function`)throw Error(en(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(en(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(en(1));return n(on)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(en(3));return i}function d(e){if(typeof e!=`function`)throw Error(en(4));if(c)throw Error(en(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(en(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!an(e))throw Error(en(7));if(e.type===void 0)throw Error(en(8));if(typeof e.type!=`string`)throw Error(en(17));if(c)throw Error(en(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(en(10));r=e,f({type:rn.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(en(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[tn](){return this}}}return f({type:rn.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[tn]:m}}function sn(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:rn.INIT})===void 0)throw Error(en(12));if(n(void 0,{type:rn.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(en(13))})}function cn(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{sn(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(en(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function ln(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function un(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(en(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ln(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function dn(e){return an(e)&&`type`in e&&typeof e.type==`string`}var fn=Symbol.for(`immer-nothing`),pn=Symbol.for(`immer-draftable`),mn=Symbol.for(`immer-state`);function hn(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gn=Object,_n=gn.getPrototypeOf,vn=`constructor`,yn=`prototype`,bn=`configurable`,xn=`enumerable`,Sn=`writable`,Cn=`value`,wn=e=>!!e&&!!e[mn];function Tn(e){return e?On(e)||Fn(e)||!!e[pn]||!!e[vn]?.[pn]||In(e)||Ln(e):!1}var En=gn[yn][vn].toString(),Dn=new WeakMap;function On(e){if(!e||!Rn(e))return!1;let t=_n(e);if(t===null||t===gn[yn])return!0;let n=gn.hasOwnProperty.call(t,vn)&&t[vn];if(n===Object)return!0;if(!zn(n))return!1;let r=Dn.get(n);return r===void 0&&(r=Function.toString.call(n),Dn.set(n,r)),r===En}function kn(e,t,n=!0){An(e)===0?(n?Reflect.ownKeys(e):gn.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function An(e){let t=e[mn];return t?t.type_:Fn(e)?1:In(e)?2:Ln(e)?3:0}var jn=(e,t,n=An(e))=>n===2?e.has(t):gn[yn].hasOwnProperty.call(e,t),Mn=(e,t,n=An(e))=>n===2?e.get(t):e[t],Nn=(e,t,n,r=An(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Pn(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Fn=Array.isArray,In=e=>e instanceof Map,Ln=e=>e instanceof Set,Rn=e=>typeof e==`object`,zn=e=>typeof e==`function`,Bn=e=>typeof e==`boolean`;function Vn(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Hn=e=>e.copy_||e.base_,Un=e=>e.modified_?e.copy_:e.base_;function Wn(e,t){if(In(e))return new Map(e);if(Ln(e))return new Set(e);if(Fn(e))return Array[yn].slice.call(e);let n=On(e);if(t===!0||t===`class_only`&&!n){let t=gn.getOwnPropertyDescriptors(e);delete t[mn];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Sn]===!1&&(a[Sn]=!0,a[bn]=!0),(a.get||a.set)&&(t[i]={[bn]:!0,[Sn]:!0,[xn]:a[xn],[Cn]:e[i]})}return gn.create(_n(e),t)}else{let t=_n(e);if(t!==null&&n)return{...e};let r=gn.create(t);return gn.assign(r,e)}}function Gn(e,t=!1){return Jn(e)||wn(e)||!Tn(e)?e:(An(e)>1&&gn.defineProperties(e,{set:qn,add:qn,clear:qn,delete:qn}),gn.freeze(e),t&&kn(e,(e,t)=>{Gn(t,!0)},!1),e)}function Kn(){hn(2)}var qn={[Cn]:Kn};function Jn(e){return e===null||!Rn(e)?!0:gn.isFrozen(e)}var Yn=`MapSet`,Xn=`Patches`,Zn=`ArrayMethods`,Qn={};function $n(e){let t=Qn[e];return t||hn(0,e),t}var er=e=>!!Qn[e],tr,nr=()=>tr,rr=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:er(Yn)?$n(Yn):void 0,arrayMethodsPlugin_:er(Zn)?$n(Zn):void 0});function ir(e,t){t&&(e.patchPlugin_=$n(Xn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ar(e){or(e),e.drafts_.forEach(cr),e.drafts_=null}function or(e){e===tr&&(tr=e.parent_)}var sr=e=>tr=rr(tr,e);function cr(e){let t=e[mn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lr(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[mn].modified_&&(ar(t),hn(4)),Tn(e)&&(e=ur(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[mn].base_,e,t)}else e=ur(t,n);return dr(t,e,!0),ar(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===fn?void 0:e}function ur(e,t){if(Jn(t))return t;let n=t[mn];if(!n)return yr(t,e.handledSet_,e);if(!pr(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);_r(n,e)}return n.copy_}function dr(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Gn(t,n)}function fr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var pr=(e,t)=>e.scope_===t,mr=[];function hr(e,t,n,r){let i=Hn(e),a=e.type_;if(r!==void 0&&Mn(i,r,a)===t){Nn(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;kn(i,(e,n)=>{if(wn(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??mr;for(let e of o)Nn(i,e,n,a)}function gr(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!pr(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Un(i);hr(e,i.draft_??i,a,n),_r(i,r)})}function _r(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}fr(e)}}function vr(e,t,n){let{scope_:r}=e;if(wn(n)){let i=n[mn];pr(i,r)&&i.callbacks_.push(function(){Dr(e),hr(e,n,Un(i),t)})}else Tn(n)&&e.callbacks_.push(function(){let i=Hn(e);e.type_===3?i.has(n)&&yr(n,r.handledSet_,r):Mn(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&yr(Mn(e.copy_,t,e.type_),r.handledSet_,r)})}function yr(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||wn(e)||t.has(e)||!Tn(e)||Jn(e)?e:(t.add(e),kn(e,(r,i)=>{if(wn(i)){let t=i[mn];pr(t,n)&&(Nn(e,r,Un(t),e.type_),fr(t))}else Tn(i)&&yr(i,t,n)}),e)}function br(e,t){let n=Fn(e),r={type_:+!!n,scope_:t?t.scope_:nr(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=xr;n&&(i=[r],a=Sr);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var xr={get(e,t){if(t===mn)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Hn(e);if(!jn(i,t,e.type_))return wr(e,i,t);let a=i[t];if(e.finalized_||!Tn(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Vn(t))return a;if(a===Cr(e.base_,t)){Dr(e);let n=e.type_===1?+t:t,r=kr(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Hn(e)},ownKeys(e){return Reflect.ownKeys(Hn(e))},set(e,t,n){let r=Tr(Hn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Cr(Hn(e),t),i=r?.[mn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Pn(n,r)&&(n!==void 0||jn(e.base_,t,e.type_)))return!0;Dr(e),Er(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),vr(e,t,n),!0)},deleteProperty(e,t){return Dr(e),Cr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Er(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Hn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Sn]:!0,[bn]:e.type_!==1||t!==`length`,[xn]:r[xn],[Cn]:n[t]}},defineProperty(){hn(11)},getPrototypeOf(e){return _n(e.base_)},setPrototypeOf(){hn(12)}},Sr={};for(let e in xr){let t=xr[e];Sr[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Sr.deleteProperty=function(e,t){return Sr.set.call(this,e,t,void 0)},Sr.set=function(e,t,n){return xr.set.call(this,e[0],t,n,e[0])};function Cr(e,t){let n=e[mn];return(n?Hn(n):e)[t]}function wr(e,t,n){let r=Tr(t,n);return r?Cn in r?r[Cn]:r.get?.call(e.draft_):void 0}function Tr(e,t){if(!(t in e))return;let n=_n(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=_n(n)}}function Er(e){e.modified_||(e.modified_=!0,e.parent_&&Er(e.parent_))}function Dr(e){e.copy_||=(e.assigned_=new Map,Wn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Or=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(zn(e)&&!zn(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}zn(t)||hn(6),n!==void 0&&!zn(n)&&hn(7);let r;if(Tn(e)){let i=sr(this),a=kr(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ar(i):or(i)}return ir(i,n),lr(r,i)}else if(!e||!Rn(e)){if(r=t(e),r===void 0&&(r=e),r===fn&&(r=void 0),this.autoFreeze_&&Gn(r,!0),n){let t=[],i=[];$n(Xn).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else hn(1,e)},this.produceWithPatches=(e,t)=>{if(zn(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Bn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Bn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Bn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Tn(e)||hn(8),wn(e)&&(e=Ar(e));let t=sr(this),n=kr(t,e,void 0);return n[mn].isManual_=!0,or(t),n}finishDraft(e,t){let n=e&&e[mn];(!n||!n.isManual_)&&hn(9);let{scope_:r}=n;return ir(r,t),lr(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=$n(Xn).applyPatches_;return wn(e)?r(e,t):this.produce(e,e=>r(e,t))}};function kr(e,t,n,r){let[i,a]=In(t)?$n(Yn).proxyMap_(t,n):Ln(t)?$n(Yn).proxySet_(t,n):br(t,n);return(n?.scope_??nr()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?gr(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Ar(e){return wn(e)||hn(10,e),jr(e)}function jr(e){if(!Tn(e)||Jn(e))return e;let t=e[mn],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Wn(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Wn(e,!0);return kn(n,(e,t)=>{Nn(n,e,jr(t))},r),t&&(t.finalized_=!1),n}var Mr=new Or().produce;function Nr(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Pr=Nr(),Fr=Nr,Ir=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?ln:ln.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Lr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(hi(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>dn(t)&&t.type===e,n}var Rr=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function zr(e){return Tn(e)?Mr(e,()=>{}):e}function Br(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Vr(e){return typeof e==`boolean`}var Hr=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Rr;return t&&(Vr(t)?a.push(Pr):a.push(Fr(t.extraArgument))),a},Ur=`RTK_autoBatch`,Wr=e=>t=>{setTimeout(t,e)},Gr=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:Wr(10):e.type===`callback`?e.queueNotification:Wr(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Ur],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Kr=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Rr(e);return n&&r.push(Gr(typeof n==`object`?n:void 0)),r};function qr(e){let t=Hr(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(an(n))c=cn(n);else throw Error(hi(1));let l;l=typeof r==`function`?r(t):t();let u=ln;i&&(u=Ir({trace:!1,...typeof i==`object`&&i}));let d=Kr(un(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return on(c,o,p)}function Jr(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(hi(28));if(r in t)throw Error(hi(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Yr(e){return typeof e==`function`}function Xr(e,t){let[n,r,i]=Jr(t),a;if(Yr(e))a=()=>zr(e());else{let t=zr(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(wn(e)){let r=n(e,t);return r===void 0?e:r}else if(Tn(e))return Mr(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var Zr=Symbol.for(`rtk-slice-createasyncthunk`);function Qr(e,t){return`${e}/${t}`}function $r({creators:e}={}){let t=e?.asyncThunk?.[Zr];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(hi(11));let i=(typeof e.reducers==`function`?e.reducers(ni()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(hi(12));if(n in o.sliceCaseReducersByType)throw Error(hi(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Qr(n,r),createNotation:typeof e.reducers==`function`};ii(a)?oi(o,a,s,t):ri(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Jr(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Xr(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Br(d,r,m)),i}function i(t=l){return Br(Br(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=ei(a,t,()=>Br(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function ei(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var ti=$r();function ni(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function ri({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!ai(r))throw Error(hi(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Lr(e,o):Lr(e))}function ii(e){return e._reducerDefinitionType===`asyncThunk`}function ai(e){return e._reducerDefinitionType===`reducerWithPrepare`}function oi({type:e,reducerName:t},n,r,i){if(!i)throw Error(hi(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||si,pending:s||si,rejected:c||si,settled:l||si})}function si(){}var ci=`listener`,li=`completed`,ui=`cancelled`;`${ui}`,`${li}`,`${ci}${ui}`,`${ci}${li}`;var{assign:di}=Object,fi=`listenerMiddleware`,pi=di(Lr(`${fi}/add`),{withTypes:()=>pi});`${fi}`;var mi=di(Lr(`${fi}/remove`),{withTypes:()=>mi});function hi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var gi=ti({name:`start-screen`,initialState:{formValues:{}},reducers:{showStartScreen(e){e.startScreenStatus=`VISIBLE`,e.formValues={}},startChat(e,t){e.startScreenStatus=`HIDDEN`,e.formValues=t.payload.formValues},startAuthenticatedChat(e,t){e.startScreenStatus=`HIDDEN`,e.loginToken=t.payload.loginToken,e.loginRequestToken=void 0},requestLogin(e,t){e.loginRequestToken=t.payload.loginRequestToken,e.formValues=t.payload.formValues},loginWindowClosed(e){e.loginRequestToken=void 0}}}),{startChat:_i,startAuthenticatedChat:vi,showStartScreen:yi,requestLogin:bi,loginWindowClosed:xi}=gi.actions,Si=gi.reducer,Ci=`RESET_CHAT_STATE`,wi=`TOGGLE_TRANSCRIPT_MAIL_OVERLAY`,Ti=`SHOW_CONVERSATION_RATING_OVERLAY`,Ei=`HIDE_CONVERSATION_RATING_OVERLAY`,Di=()=>({type:Et}),Oi=()=>({type:Ci}),ki=()=>({type:wi}),Ai=(e,t=void 0)=>({type:Ti,payload:{opener:e,defaultRating:t}}),ji=()=>({type:Ei}),Mi=(e,t,n)=>(r,i)=>{try{let a=i().connection.sessionId;if(!a)throw Error(`Session ID is not available`);r({type:Ct,payload:{chunkId:n}}),Ni(e,a,t,n,!1,r),Ni(e,a,t,n,!0,r)}catch(e){console.error(`Error loading source infos:`,e),r({type:St})}},Ni=(e,t,n,r,i,a)=>{let o=`/${e}/me/chat-widget/transcript/${n}/chunks/${r}?highlight=${i}`;fetch(o,{headers:{"x-bubble-chat-session-id":t}}).then(e=>{if(!e.ok)throw Error(`HTTP error! Status: ${e.status}`);return e.json()}).then(e=>{a({type:xt,payload:{...e,chunkId:r,highlighted:i}})}).catch(e=>{console.error(`Error fetching source infos:`,e),a({type:St,payload:{highlighted:i}})})},Pi=()=>({type:wt}),Fi=`CONNECT`,Ii=`CONNECTING`,Li=`CONNECTED`,Ri=`DISCONNECTED`,zi=`RECONNECTED`,Bi=`RESTORE_SESSION_ID`,Vi=`START`,Hi=`CLEAR_SESSION_ID`,Ui=[Fi,Ii,Li,Ri,zi,Bi],Wi=(e,t)=>({type:Fi,clientName:e,querystrings:t}),Gi=e=>({type:Bi,sessionId:e}),Ki=()=>({type:Ii}),qi=()=>({type:Li}),Ji=()=>({type:Ri}),Yi=()=>({type:zi}),Xi=e=>(t,n)=>{let r=n().connection,{formValues:i,loginToken:a}=n().startScreen,o=r.sessionId;o===void 0&&(o=Zt());let s=r.userId;s===void 0&&(s=Ut.get(`bubble-chat-user-id`)||Ut.get(`bubble-chat-userId`)||Ut.get(`bf-webclient-userId`)||Zt(),Ut.set(`bubble-chat-user-id`,s,{expires:182,partitioned:!0}));let c=new URLSearchParams(n().connection.queryString||``),l=Object.fromEntries(c.entries());t({type:Vi,payload:{sessionId:o,userId:s,clientName:e,loginToken:a,querystrings:{...l,...i}}})},Zi=()=>(e,t)=>{if(e(Qi(t().connection.sessionId||``)),e(Oi()),t().settings.enableStartScreen)e(yi());else return e(Xi(Qt()))},Qi=e=>({type:Hi,payload:{sessionId:e}}),$i=Qe,ea=tt,B=()=>{let e=ea(e=>e.intl.messages);return t=>e[t]||void 0},ta=function(e){return e[e.CONNECTING=0]=`CONNECTING`,e[e.CONNECTED=1]=`CONNECTED`,e[e.RECONNECTED=2]=`RECONNECTED`,e[e.DISCONNECTED=3]=`DISCONNECTED`,e}({}),na=function(e){return e.GUEST=`GUEST`,e.BOT=`BOT`,e.PERSON=`PERSON`,e}({}),ra={container:`_container_q2uun_1`,chatcontent:`_chatcontent_q2uun_6`,accessabilityHidden:`_accessabilityHidden_q2uun_12`},ia={messageContainer:`_messageContainer_1t640_1`,messages:`_messages_1t640_13`},aa;function oa(e){if(!aa)if(typeof document<`u`)aa=document.createElement(`textarea`);else return;var t=`&`+e+`;`;aa.innerHTML=t;var n=aa.value;return n===t?void 0:n}var V=32,H=9,sa=13,U=10,W=96,ca=126,la=91,ua=94,da=62,fa=35,pa=37,G=45,ma=61,ha=92,ga=42,_a=95,va=60,ya=64,ba=93,xa=33,Sa=38,Ca=58,wa=70,Ta=102,Ea=104,Da=119,Oa=116,ka=112,Aa=115,ja=160,Ma=12,Na=44,Pa=59,Fa=63,Ia=46,La=47,Ra=39,za=34,Ba=43,Va=124,Ha=123,Ua=125,Wa=40,Ga=41,Ka=30,qa=31,Ja=48,Ya=57,K=65,q=90,Xa=97,Za=122,Qa=128,$a=32,J={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};function eo(e){if(!fo(e,`---`))return null;let t=3;for(;t<e.length&&(e[t]===` `||e[t]===` `);)t++;if(t<e.length&&e[t]===`\r`&&t++,t>=e.length||e[t]!==`
14
+ `)return null;t++;let n=!1;for(;t<e.length;){let r=t;for(;t<e.length&&e[t]!==`
15
+ `&&e[t]!==`\r`;)t++;if(t>=e.length)break;let i=t;if(e[t]===`\r`&&t++,t<e.length&&e[t]===`
16
+ `&&t++,fo(e,`---`,r))return{endPos:t,hasValidYaml:n};if(!n){let t=jo(e,r,i);if(t<i){let r=e.charCodeAt(t);if(r>=Xa&&r<=Za||r>=K&&r<=q||r>=Ja&&r<=Ya||r===_a){for(t++;t<i&&(r=e.charCodeAt(t),r>=Xa&&r<=Za||r>=K&&r<=q||r>=Ja&&r<=Ya||r===_a||r===G||r===Ia);)t++;t<i&&e.charCodeAt(t)===Ca&&(t++,t>=i?n=!0:(r=e.charCodeAt(t),(r===V||r===H)&&(n=!0)))}}}}return null}var to=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,no={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`,viewbox:`viewBox`};function ro(e){var t={};for(var n in e){var r=no[n.toLowerCase()];if(r)t[r]=e[n];else{var i=n.indexOf(`:`);i===-1?t[n]=e[n]:t[n.slice(0,i)+n[i+1].toUpperCase()+n.slice(i+2)]=e[n]}}return t}var Y=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function io(e){return e.indexOf(`&`)===-1?e:e.replace(to,(e,t)=>{var n=oa(t);if(n)return n;if(t[0]===`#`){var r=t[1]===`x`||t[1]===`X`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r===0||r>=55296&&r<=57343||r>1114111?`�`:r<=65535?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10),56320+(r-65536&1023))}return e})}var ao=/(javascript|vbscript|data(?!:image)):/i;function oo(e){if(ao.test(e))return null;if(e.indexOf(`%`)===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,``);if(ao.test(t))return null}catch{return null}return e}var so={},co,lo;for(co=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],lo=0;lo<co.length;lo++)so[co[lo]]=`a`;for(so[231]=so[199]=`c`,so[240]=so[208]=`d`,co=[200,201,202,203,233,232,234,235],lo=0;lo<co.length;lo++)so[co[lo]]=`e`;for(co=[207,239,206,238,205,237,204,236],lo=0;lo<co.length;lo++)so[co[lo]]=`i`;for(so[209]=so[241]=`n`,co=[248,216,339,338,213,245,212,244,211,243,210,242],lo=0;lo<co.length;lo++)so[co[lo]]=`o`;for(co=[220,252,219,251,218,250,217,249],lo=0;lo<co.length;lo++)so[co[lo]]=`u`;so[376]=so[255]=so[221]=so[253]=`y`;function uo(e){for(var t=``,n=-1,r=e.length,i=0;i<r;i++){var a=e.charCodeAt(i);if(a>=Xa&&a<=Za||a>=Ja&&a<=Ya){n<0&&(n=i);continue}if(a>=K&&a<=q){n>=0&&(t+=e.slice(n,i),n=-1),t+=String.fromCharCode(a+$a);continue}if(a===V||a===G){n>=0&&(t+=e.slice(n,i),n=-1),t+=`-`;continue}n>=0&&(t+=e.slice(n,i),n=-1);var o=so[a];o&&(t+=o)}return n>=0&&(t+=e.slice(n)),t}function fo(e,t,n){return e.startsWith(t,n)}var po=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`,`set`]);function mo(e){let t=e.toLowerCase();if(po.has(t))return!0;let n=t.indexOf(`:`);return n===-1?!1:(t=t.slice(n+1),po.has(t))}var ho=1,go=2,_o=4,vo=8,yo=16,bo=32,xo=64,So=1,Co=2,wo=3,To=4,Eo=(function(){var e=new Uint8Array(128),t;for(e[H]=ho,e[U]=ho|go,e[Ma]=ho,e[sa]=ho|go,e[V]=ho,t=xa;t<=La;t++)e[t]=_o;for(t=Ca;t<=ya;t++)e[t]=_o;for(t=la;t<=W;t++)e[t]=_o;for(t=Ha;t<=ca;t++)e[t]=_o;for(t=Ja;t<=Ya;t++)e[t]=yo;for(t=K;t<=q;t++)e[t]=vo;for(t=Xa;t<=Za;t++)e[t]=vo;return e})();(function(){let e=new Uint8Array(128);return e[ha]=Co,e[la]=To,e[ga]=e[_a]=e[ca]=e[ma]=wo,e[W]=e[va]=e[ya]=e[ba]=e[U]=e[V]=e[xa]=So,e[Ta]=e[Ea]=e[Da]=So,e})();var Do=/[\p{P}\p{S}]/u,Oo=/\p{Zs}/u,ko=[];function Ao(e){var t=e.indexOf(`\r`),n=e.indexOf(`\0`);if(t===-1&&n===-1)return e;var r=e.length;ko.length=0;var i=0,a=0;for(a=t===-1?n:n===-1||t<n?t:n;a<r;a++){var o=e.charCodeAt(a);o===sa?(i<a&&ko.push(e.slice(i,a)),a+1<r&&e.charCodeAt(a+1)===U&&a++,ko.push(`
17
+ `),i=a+1):o===0&&(i<a&&ko.push(e.slice(i,a)),ko.push(`�`),i=a+1)}return i<r&&ko.push(e.slice(i)),ko.join(``)}function jo(e,t,n){let r=n??e.length;for(;t<r&&(e[t]===` `||e[t]===` `);)t++;return t}function Mo(e,t,n){for(var r=e,i=t.split(`.`),a=0;a<i.length&&(r=r?.[i[a]],r!==void 0);)a++;return r||n}function No(e){for(var t=!1,n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=V||r===za||r===pa||r===va||r===da||r===la||r===ha||r===ba||r===ua||r===W||r>=123){t=!0;break}}if(!t)return e;for(var i=``,n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r===pa&&n+2<e.length){var a=e.charCodeAt(n+1),o=e.charCodeAt(n+2);if((a>=Ja&&a<=Ya||a>=K&&a<=wa||a>=Xa&&a<=Ta)&&(o>=Ja&&o<=Ya||o>=K&&o<=wa||o>=Xa&&o<=Ta)){i+=e[n]+e[n+1]+e[n+2],n+=2;continue}}i+=encodeURI(e[n])}return i}function Po(...e){return e.filter(Boolean).join(` `)}var Fo=new Set([`title`,`textarea`,`style`,`xmp`,`iframe`,`noembed`,`noframes`,`script`,`plaintext`]),Io=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Lo(e){return Fo.has(e.toLowerCase())}function Ro(e){return Io.lastIndex=0,Io.test(e)}function zo(e){return Io.lastIndex=0,e.replace(Io,function(e,t,n,r){return`&lt;`+t+n+r})}var Bo=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,Vo=/^<[A-Z]/,Ho=[`script`,`pre`,`style`,`textarea`],Uo=new Set(Ho),Wo=/<(?:pre|script|style|textarea)\b/i,Go=/<(?:pre|script|style|textarea)\b/iy,Ko=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,qo=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,Jo=new Uint8Array(128);(function(){for(var e=[W,ga,_a,ca,ma,la,xa,va,ha,qa,Ea,Da,Ta],t=0;t<e.length;t++)Jo[e[t]]=1})();var Yo=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function Xo(e){return Uo.has(e)}function Zo(e){return Wo.test(e)}function Qo(e,t,n){for(var r=t,i=n;r<i&&(e.charCodeAt(r)===V||e.charCodeAt(r)===H);)r++;if(r>=i)return!1;e.charCodeAt(r)===Va&&r++;for(var a=0;r<i;){for(;r<i&&(e.charCodeAt(r)===V||e.charCodeAt(r)===H);)r++;if(r>=i)break;if(e.charCodeAt(r)===Va&&a>0){for(var o=r+1;o<i&&(e.charCodeAt(o)===V||e.charCodeAt(o)===H);)o++;if(o>=i)return!0}if(e.charCodeAt(r)===Ca&&r++,r>=i||e.charCodeAt(r)!==G)return!1;for(;r<i&&e.charCodeAt(r)===G;)r++;for(r<i&&e.charCodeAt(r)===Ca&&r++,a++;r<i&&(e.charCodeAt(r)===V||e.charCodeAt(r)===H);)r++;if(r<i)if(e.charCodeAt(r)===Va)r++;else return!1}return a>0}function $o(e,t){if(e.charCodeAt(t)!==va)return null;let n=t+1,r=e.length,i=!1;e.charCodeAt(n)===La&&(n++,i=!0);let a=n,o=e.charCodeAt(n);if(!(o>=Xa&&o<=Za||o>=K&&o<=q))return null;for(;n<r&&(e.charCodeAt(n)>=Xa&&e.charCodeAt(n)<=Za||e.charCodeAt(n)>=K&&e.charCodeAt(n)<=q||e.charCodeAt(n)>=Ja&&e.charCodeAt(n)<=Ya||e.charCodeAt(n)===G);)n++;let s=e.slice(a,n);if(!s)return null;let c=n;for(;n<r&&(e.charCodeAt(n)===V||e.charCodeAt(n)===H||e.charCodeAt(n)===U);)n++;let l=e.slice(c,n);if(n===c&&n<r){var u=e.charCodeAt(n);if(u!==da&&u!==La)return null}let d=n,f={},p=!1;for(;n<r;){let t=e.charCodeAt(n);if(t===da){let t=e.slice(d,n);return{tag:s,attrs:f,selfClosing:!1,end:n+1,rawAttrs:t,whitespaceBeforeAttrs:l,isClosing:i,hasSpaceBeforeSlash:p}}if(t===V||t===H||t===U){n++;continue}if(t===La&&n+1<r&&e.charCodeAt(n+1)===da){let t=e.slice(d,n);return p=n>d&&e.charCodeAt(n-1)===V,{tag:s,attrs:f,selfClosing:!0,end:n+2,rawAttrs:t,whitespaceBeforeAttrs:l,isClosing:i,hasSpaceBeforeSlash:p}}var m=n,h=e.charCodeAt(n);if(!(h>=Xa&&h<=Za||h>=K&&h<=q||h===_a||h===Ca))return null;for(n++;n<r;){var g=e.charCodeAt(n);if(g>=Xa&&g<=Za||g>=K&&g<=q||g>=Ja&&g<=Ya||g===_a||g===Ia||g===Ca||g===G)n++;else break}for(var _=e.slice(m,n);n<r&&(e.charCodeAt(n)===V||e.charCodeAt(n)===H);)n++;if(e.charCodeAt(n)!==ma){f[_]=``;continue}for(n++;n<r&&(e.charCodeAt(n)===V||e.charCodeAt(n)===H);)n++;var v=e.charCodeAt(n);if(v===za||v===Ra){n++;for(var y=n;n<r&&e.charCodeAt(n)!==v;)n++;if(n>=r)return null;if(f[_]=e.slice(y,n),n++,n<r){var b=e.charCodeAt(n);if(b!==V&&b!==H&&b!==U&&b!==da&&b!==La)return null}}else if(v===Ha){var x=1,y=n;for(n++;n<r&&x>0;){var g=e.charCodeAt(n);g===Ha?x++:g===Ua&&x--,n++}f[_]=e.slice(y,n)}else{for(var y=n;n<r;){var S=e.charCodeAt(n);if(S===V||S===H||S===da||S===U||S===za||S===Ra||S===ma||S===va||S===W)break;n++}if(n===y)return null;f[_]=e.slice(y,n)}}return null}function es(e,t,n){if(!n.streaming&&!n.optimizeForStreaming&&e.indexOf(`[`)===-1)return!1;for(var r=0,i=e.length,a=!1,o=!1;r<i;){for(var s=e.indexOf(`
18
+ `,r),c=s<0?i:s,l=r,u=0;l<c&&u<4;)if(e.charCodeAt(l)===V)u++,l++;else if(e.charCodeAt(l)===H)u+=4,l++;else break;if(l>=c){a=!1,r=s<0?i:s+1;continue}if(u<4){var d=e.charCodeAt(l);if(d===W||d===ca){for(var f=d,p=0,m=l;m<c&&e.charCodeAt(m)===f;)p++,m++;if(p>=3){var h=!0;if(f===W){for(var g=m;g<c;g++)if(e.charCodeAt(g)===W){h=!1;break}}if(h){a=!1;for(var _=s<0?i:s+1;_<i;){for(var v=_,y=0;v<i&&y<4;){var b=e.charCodeAt(v);if(b===V)y++,v++;else if(b===H)y+=4,v++;else break}if(y<4&&v<i&&e.charCodeAt(v)===f){for(var x=0;v<i&&e.charCodeAt(v)===f;)x++,v++;if(x>=p){for(;v<i&&(e.charCodeAt(v)===V||e.charCodeAt(v)===H);)v++;if(v>=i||e.charCodeAt(v)===U){r=v>=i?i:v+1;break}}}for(;_<i&&e.charCodeAt(_)!==U;)_++;_<i&&_++}_>=i&&(r=i,o=!0);continue}}}}for(var S=l;S<c&&e.charCodeAt(S)===da;){S++,S<c&&e.charCodeAt(S)===V&&S++;for(var C=0;S<c&&C<4;)if(e.charCodeAt(S)===V)C++,S++;else if(e.charCodeAt(S)===H)C+=4,S++;else break;if(C>=4)break;a=!1}if(!a&&u<4&&S<c&&e.charCodeAt(S)===la&&!(S+1<i&&e.charCodeAt(S+1)===ua)){var w=ts(e,S,t);if(w){r=w,a=!1;continue}}var T=e.charCodeAt(l);if(T===fa&&u<4)a=!1;else if(u<4&&(T===G||T===ga||T===_a)){for(var E=l,D=0;E<c;){var O=e.charCodeAt(E);if(O===T)D++;else if(O!==V&&O!==H)break;E++}a=!(D>=3&&E>=c)}else a=!0;r=s<0?i:s+1}return o}function ts(e,t,n){let r=e.length;if(e.charCodeAt(t)!==la)return null;let i=t+1<r&&e.charCodeAt(t+1)===ua,a=t+1;for(;a<r;){var o=e.charCodeAt(a);if(o===ba){a++;break}if(o===la)return null;o===ha&&a+1<r&&a++,a++}if(a>r||e.charCodeAt(a-1)!==ba)return null;let s=e.slice(t+1,a-1);if(s.length>999)return null;let c=as(s);if(!c||a>=r||e.charCodeAt(a)!==Ca)return null;a++;let l=!1;for(;a<r;){let t=e.charCodeAt(a);if(t===V||t===H)a++;else if(t===U&&!l)l=!0,a++;else break}if(i){let t=e.indexOf(`
19
+ `,a),i=t<0?r:t;return n[c]={target:e.slice(a,i).trim(),title:void 0},t<0?r:t+1}var u;if(a<r&&e.charCodeAt(a)===va){a++;for(var d=a;a<r&&e.charCodeAt(a)!==da&&e.charCodeAt(a)!==U;)e.charCodeAt(a)===ha&&a+1<r&&a++,a++;if(a>=r||e.charCodeAt(a)!==da)return null;u=e.slice(d,a),a++;for(var f=e.indexOf(`
20
+ `,a),p=f<0?r:f,m=a;m<p&&(e.charCodeAt(m)===V||e.charCodeAt(m)===H);)m++;if(m<p){if(m===a)return null;var h=e.charCodeAt(m);if(h!==za&&h!==Ra&&h!==Wa)return null}}else{for(var d=a,g=0;a<r;){var o=e.charCodeAt(a);if(o===Wa)g++;else if(o===Ga){if(g===0)break;g--}else{if(o===V||o===H||o===U)break;o===ha&&a+1<r&&a++}a++}if(u=e.slice(d,a),!u)return null}for(;a<r&&(e.charCodeAt(a)===V||e.charCodeAt(a)===H);)a++;var _=e.indexOf(`
21
+ `,a),v=_<0?r:_,y,b=!1,x=a,S=a;if(a===v&&a<r)for(S=a+1;S<r&&(e.charCodeAt(S)===V||e.charCodeAt(S)===H);)S++;if(S<r){var C=e.charCodeAt(S);if(C===za||C===Ra||C===Wa){for(var w=C===Wa?41:C,T=S+1,E=T;T<r;){var D=e.charCodeAt(T);if(D===w){for(var O=T+1;O<r&&(e.charCodeAt(O)===V||e.charCodeAt(O)===H);)O++;(O>=r||e.charCodeAt(O)===U)&&(y=e.slice(E,T),b=!0,x=O<r?O+1:r);break}if(D===ha&&T+1<r){T+=2;continue}if(D===U&&T+1<r&&e.charCodeAt(T+1)===U)break;T++}if(!b&&S===a)return null}}if(b)return n[c]||(n[c]={target:ss(u),title:y===void 0?y:io(ss(y))}),x;for(;a<v&&(e.charCodeAt(a)===V||e.charCodeAt(a)===H);)a++;return a<v?null:(n[c]||(n[c]={target:ss(u),title:y}),_<0?r:_+1)}var ns=new Uint8Array(Eo);for(ns[qa]=ho,ns[fa]|=bo,ns[da]|=bo,ns[G]|=bo|xo,ns[Ba]|=bo,ns[ga]|=bo|xo,ns[_a]|=bo|xo,ns[W]|=bo|xo,ns[ca]|=bo|xo,ns[va]|=bo|xo,ns[la]|=xo,ns[xa]|=xo,ns[Va]|=bo,rs=Ja;rs<=Ya;rs++)ns[rs]|=bo;var rs;function is(e){if(e.indexOf(`[`)<0&&e.indexOf(`]`)<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===ha){t++;continue}if(e.charCodeAt(t)===la||e.charCodeAt(t)===ba)return!0}return!1}function as(e){var t=e.replace(/\s+/g,` `).trim();return t.indexOf(`ẞ`)===-1?t.toLowerCase():t.replace(/\u1E9E/g,`ss`).toLowerCase()}function os(e){return e<Qa?ns[e]:e===ja?ho:0}function ss(e){return e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,`$1`)}var cs=null,ls=-1,us=-1;function ds(e,t){if(t===ls&&e===cs)return us;var n=e.indexOf(`
22
+ `,t);return n<0?e.length:n}function fs(e,t){let n=ds(e,t);return n<e.length?n+1:n}function ps(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==V&&n!==H)break;t++}return t}function ms(e,t){let n=fs(e,t);for(;n<e.length;){let t=ds(e,n);if(ys(e,n,t))return n;n=fs(e,n)}return e.length}function hs(e,t,n,r){let i=0;for(;t+i<n&&e.charCodeAt(t+i)===r;)i++;return i}var gs=0,_s=0;function vs(e,t,n){for(gs=0,_s=0;t+_s<n;){let n=e.charCodeAt(t+_s);if(n===H)gs+=4-gs%4;else if(n===V)gs++;else break;_s++}}function ys(e,t,n){return ps(e,t,n)>=n}function bs(e,t,n,r){let i=ds(e,t);if(vs(e,t,i),gs>3)return null;let a=t+_s;if(e.charCodeAt(a)!==fa)return null;let o=hs(e,a,i,35);if(o<1||o>6||(a+=o,a<i&&e.charCodeAt(a)!==V&&e.charCodeAt(a)!==H))return null;a=ps(e,a,i);for(var s=i;s>a&&e.charCodeAt(s-1)===V;)s--;for(var c=s;s>a&&e.charCodeAt(s-1)===fa;)s--;if(s<c)if(s===a||e.charCodeAt(s-1)===V)for(;s>a&&e.charCodeAt(s-1)===V;)s--;else s=c;let l=e.slice(a,s),u=dc(l,0,l.length,n,r),d=(r?.slugify||uo)(l);return{node:{type:J.heading,level:o,children:u,id:d},end:fs(e,i)}}function xs(e,t,n){var r=e.charCodeAt(t);if(r!==ma&&r!==G)return!1;for(var i=t;i<n&&e.charCodeAt(i)===r;)i++;for(;i<n&&(e.charCodeAt(i)===V||e.charCodeAt(i)===H);)i++;return i>=n}function Ss(e,t){let n=ds(e,t);if(vs(e,t,n),gs>3)return null;let r=t+_s,i=e.charCodeAt(r);if(i!==G&&i!==ga&&i!==_a)return null;let a=0;for(;r<n;){let t=e.charCodeAt(r);if(t===i)a++;else if(t!==V&&t!==H)return null;r++}return a<3?null:{node:{type:J.breakThematic},end:fs(e,n)}}function Cs(e,t,n){let r=ds(e,t);if(vs(e,t,r),gs>3)return null;let i=gs,a=t+_s,o=e.charCodeAt(a);if(o!==W&&o!==ca)return null;let s=hs(e,a,r,o);if(s<3)return null;a+=s;let c=ps(e,a,r),l=r;if(o===W){for(let t=c;t<r;t++)if(e.charCodeAt(t)===W)return null}for(;l>c&&(e.charCodeAt(l-1)===V||e.charCodeAt(l-1)===H);)l--;let u=e.slice(c,l),d=``,f=``,p=u.indexOf(` `);p===-1?d=u:(d=u.slice(0,p),f=u.slice(p+1).trim()),d=ss(d);var m=void 0;if(f){Yo.lastIndex=0;for(var h;(h=Yo.exec(f))!==null;)m||={},m[h[1]]=h[2]===void 0?h[3]:h[2]}let g=fs(e,r),_=g,v=e.length;for(;_<e.length;){let t=ds(e,_);if(vs(e,_,t),gs<4){let n=_+_s;var y=hs(e,n,t,o);if(y>=s&&ys(e,n+y,t)){v=fs(e,t);break}}_=fs(e,t)}var b;if(i===0)b=_>g&&e.charCodeAt(_-1)===U?e.slice(g,_-1):e.slice(g,_);else{b=``;for(var x=g;x<_;){var S=ds(e,x);vs(e,x,S);var C=Math.min(_s,i);b+=e.slice(x+C,S)+`
23
+ `,x=fs(e,S)}b.length>0&&b.charCodeAt(b.length-1)===U&&(b=b.slice(0,-1))}return{node:{type:J.codeBlock,lang:d||void 0,text:b,infoString:f||void 0,attrs:m},end:v}}function ws(e,t){if(vs(e,t,ds(e,t)),gs<4)return null;let n=``,r=t;for(;r<e.length;){let t=ds(e,r);if(vs(e,r,t),ys(e,r,t)){for(var i=0,a=fs(e,t);a<e.length;){var o=ds(e,a);if(ys(e,a,o)){i++,a=fs(e,o);continue}if(vs(e,a,o),gs>=4){for(var s=0;s<=i;s++)n+=`
24
+ `;r=a;break}break}if(r!==a)break;continue}if(gs<4)break;let f=0,p=0;var c=0;for(let n=r;n<t&&p<4;n++){if(e.charCodeAt(n)===H){var l=4-p%4;p+l>4&&(c=p+l-4),p+=l}else p++;f++}var u=``;if(c>0)for(var d=0;d<c;d++)u+=` `;u+=e.slice(r+f,t),n+=u+`
25
+ `,r=fs(e,t)}for(;n.length>0&&n.charCodeAt(n.length-1)===U;)n=n.slice(0,-1);for(;n.length>0&&n.charCodeAt(n.length-1)===U;)n=n.slice(0,-1);return n?{node:{type:J.codeBlock,lang:void 0,text:n,infoString:void 0,attrs:void 0},end:r}:null}function Ts(e,t,n,r){if(vs(e,t,ds(e,t)),gs>3)return null;let i=t+_s;if(e.charCodeAt(i)!==da)return null;let a=``,o=t,s,c=!1,l=!1,u=!1;for(;o<e.length;){let t=ds(e,o);vs(e,o,t);let n=o+_s;if(e.charCodeAt(n)===da){let r=n+1;var d=gs+1,f=!1;if(r<t){var p=e.charCodeAt(r);p===V?(r++,d++,f=!0):p===H&&(f=!0)}for(var m=``,h=!1,g=r;g<t;g++)if(e.charCodeAt(g)===H){h=!0;break}if(h){var _=d;if(f&&r<t&&e.charCodeAt(r)===H){for(var v=4-_%4,y=0;y<v-1;y++)m+=` `;_+=v,r++}for(var b=r;b<t;b++)if(e.charCodeAt(b)===H){for(var x=4-_%4,S=0;S<x;S++)m+=` `;_+=x}else m+=e[b],_++}else m=e.slice(r,t);if(!a&&!s){let n=m.match(/^\[!([A-Za-z]+)\]\s*$/);if(n){s=n[1].toUpperCase(),o=fs(e,t);continue}}a+=m+`
26
+ `;var C=m.trimStart();C.startsWith("```")||C.startsWith(`~~~`)?u=!u:m.startsWith(` `)||m.startsWith(` `)?u=!0:C.length>0&&!u&&(u=!1),l=C.length>0,o=fs(e,t)}else if(a&&!ys(e,o,t)&&l){if(gs<4){var w=o+_s,T=w<t?e.charCodeAt(w):0;if(T===fa||T===da||T===W||T===ca||T===va||(T===G||T===ga||T===_a)&&Ss(e,o)||(T===G||T===ga||T===Ba)&&w+1<t&&(e.charCodeAt(w+1)===V||e.charCodeAt(w+1)===H))break;if(T>=Ja&&T<=Ya){for(var E=w;E<t&&e.charCodeAt(E)>=Ja&&e.charCodeAt(E)<=Ya;)E++;if(E<t&&(e.charCodeAt(E)===Ia||e.charCodeAt(E)===Ga))break}}if(u)break;a+=e.slice(o,t)+`
27
+ `,c=!0,o=fs(e,t)}else break}if(!a&&!s)return null;var{inBlockQuote:D,g:O}=n;n.inBlockQuote=!0,c&&(n.g=!0);let ee=pc(a||``,n,r);return n.inBlockQuote=D,n.g=O,{node:{type:J.blockQuote,children:ee,alert:s||void 0},end:o}}function Es(e,t,n){for(var r=0,i=t;i<n;i++)e.charCodeAt(i)===H?r+=4-r%4:r++;return r}function Ds(e,t,n){if(vs(e,t,n),gs>3)return null;var r=t+_s;if(r>=n)return null;var i=e.charCodeAt(r),a=gs,o=r;if(i===G||i===ga||i===Ba){if(o=r+1,o<n&&e.charCodeAt(o)!==V&&e.charCodeAt(o)!==H&&e.charCodeAt(o)!==U)return null}else if(i>=Ja&&i<=Ya){for(var s=r;s<n&&s-r<9;){var c=e.charCodeAt(s);if(c<Ja||c>Ya)break;s++}if(s>r&&s<n){var l=e.charCodeAt(s);if(l===Ia||l===Ga){if(o=s+1,o<n&&e.charCodeAt(o)!==V&&e.charCodeAt(o)!==H&&e.charCodeAt(o)!==U)return null}else return null}else return null}else return null;var u=o,d=Es(e,t,o),f=0,p=u,m=d;if(u>=n)return{ordered:i>=Ja&&i<=Ya,marker:i>=Ja&&i<=Ya?e[s]:e[r],start:i>=Ja&&i<=Ya?parseInt(e.slice(r,s),10):void 0,contentStart:u,contentCol:d+1,markerCol:a,isEmpty:!0};for(;p<n&&(e.charCodeAt(p)===V||e.charCodeAt(p)===H);){if(e.charCodeAt(p)===H){var h=4-m%4;m+=h}else m++;p++,f++}var g=p>=n,_=m-d;return g||_>4?(m=d+1,p=u+1,f=1):f===0&&(m=d+1,p=u,f=1),{ordered:i>=Ja&&i<=Ya,marker:i>=Ja&&i<=Ya?e[s]:e[r],start:i>=Ja&&i<=Ya?parseInt(e.slice(r,s),10):void 0,contentStart:p,contentCol:m,markerCol:a,isEmpty:g}}var Os=0;function ks(e,t,n,r){var i=0,a=t;for(Os=0;a<n&&i<r;){var o=e.charCodeAt(a);if(o===H){var s=4-i%4;if(i+s>r){Os=i+s-r,a++,i=r;break}i+=s}else if(o===V)i++;else break;a++}return a}function As(e,t,n,r){var i=ds(e,t),a=Ds(e,t,i);if(!a)return null;var o=[],s=t,c=a.contentCol,l=``,u=a.isEmpty,d=!1,f=!1;if(!a.isEmpty){for(var p=!1,m=a.contentStart;m<i;m++)if(e.charCodeAt(m)===H){p=!0;break}if(p){var h=``,g=Es(e,t,a.contentStart),_=g-a.contentCol;if(_>0)for(var v=0;v<_;v++)h+=` `;for(var y=a.contentStart;y<i;y++)if(e.charCodeAt(y)===H){for(var b=4-g%4,x=0;x<b;x++)h+=` `;g+=b}else h+=e[y],g++;l=h+`
28
+ `}else l=e.slice(a.contentStart,i)+`
29
+ `}for(s=fs(e,i);s<e.length;){var S=ds(e,s);vs(e,s,S);var C=e.charCodeAt(s+_s);if(gs<c&&(C===G||C===ga||C===_a)&&gs<=3&&Ss(e,s))break;var w=Ds(e,s,S);if(w&&w.ordered===a.ordered&&w.marker===a.marker&&w.markerCol<c){o.push({contentCol:c,raw:l,hasBlankAfter:d,isEmpty:u}),d&&(f=!0),c=w.contentCol,u=w.isEmpty,d=!1,l=w.isEmpty?``:e.slice(w.contentStart,S)+`
30
+ `,s=fs(e,S);continue}if(ys(e,s,S)){l+=`
31
+ `,s=fs(e,S);for(var T=!1,E=0;E<l.length;E++){var D=l.charCodeAt(E);if(D!==U&&D!==sa&&D!==V&&D!==H){T=!0;break}}if(u&&!T)if(s<e.length){var O=ds(e,s),ee=Ds(e,s,O);if(!ee||ee.ordered!==a.ordered||ee.marker!==a.marker)break;d=!0}else break;if(s<e.length){var k=ds(e,s);vs(e,s,k);var te=e.charCodeAt(s+_s);if((te===G||te===ga||te===_a)&&gs<=3&&Ss(e,s))break;var A=Ds(e,s,k);if(A&&A.ordered===a.ordered&&A.marker===a.marker&&A.markerCol<c){d=!0;continue}if(!ys(e,s,k)&&gs<c)break}continue}if(gs>=c){var ne=ks(e,s,S,c);if(Os>0){for(var re=``,ie=c,j=0;j<Os;j++)re+=` `,ie++;for(var M=ne;M<S;M++)if(e.charCodeAt(M)===H){for(var ae=4-ie%4,N=0;N<ae;N++)re+=` `;ie+=ae}else re+=e[M],ie++;l+=re+`
32
+ `}else l+=e.slice(ne,S)+`
33
+ `;s=fs(e,S);continue}for(var oe=!1,P=0;P<l.length;P++){var F=l.charCodeAt(P);if(F!==U&&F!==sa&&F!==V&&F!==H){oe=!0;break}}if(!d&&oe&&!u){var I=s+_s,L=e.charCodeAt(I);if(!(L===fa||L===da||L===va||L===W||L===ca||(L===G||L===ga||L===_a||L===Ba)&&(Ss(e,s)!==null||Ds(e,s,S)!==null)||L>=Ja&&L<=Ya&&Ds(e,s,S)!==null)){l+=``+e.slice(I,S)+`
34
+ `,s=fs(e,S);continue}}break}if(o.push({contentCol:c,raw:l,hasBlankAfter:d,isEmpty:u}),o.length===0)return null;var se=f;if(!se)for(var ce=0;ce<o.length;ce++){if(o[ce].hasBlankAfter&&ce<o.length-1){se=!0;break}if(!o[ce].isEmpty){for(var le=o[ce].raw,ue=le.length,de=0,R=!1,fe=!1,pe=!1,me=!1,he=0,ge=0,_e=-1;de<ue;){var ve=le.indexOf(`
35
+ `,de);if(ve<0&&(ve=ue),me){vs(le,de,ve);for(var ye=le.slice(de+_s,ve),be=0;be<ye.length&&ye.charCodeAt(be)===he;)be++;be>=ge&&ye.slice(be).trim()===``&&(me=!1),de=ve<ue?ve+1:ue;continue}if(ys(le,de,ve)){_e>=0?pe=!0:R&&(fe=!0),de=ve<ue?ve+1:ue;continue}if(vs(le,de,ve),_e>=0){if(gs>=_e){de=ve<ue?ve+1:ue;continue}var xe=Ds(le,de,ve);if(xe&&xe.markerCol<_e&&xe.contentCol<=_e){de=ve<ue?ve+1:ue;continue}if(xe){de=ve<ue?ve+1:ue;continue}_e=-1,pe&&=(fe=!0,!1)}var Se=le.slice(de+_s,ve),Ce=Se.charCodeAt(0);if((Ce===W||Ce===ca)&&gs<=3){for(var we=0;we<Se.length&&Se.charCodeAt(we)===Ce;)we++;if(we>=3){if(fe&&R){se=!0;break}me=!0,he=Ce,ge=we,R=!0,de=ve<ue?ve+1:ue;continue}}var Te=gs<=3?Ds(le,de,ve):null;if(Te&&R){if(fe){se=!0;break}_e=Te.contentCol,pe=!1,de=ve<ue?ve+1:ue,R=!0;continue}if(fe){se=!0;break}R=!0,de=ve<ue?ve+1:ue}if(se)break}}for(var Ee=[],De=0;De<o.length;De++){for(var Oe=o[De],ke=Oe.raw,Ae=ke.length;Ae>0&&ke.charCodeAt(Ae-1)===U;)Ae--;var je=Ae<ke.length?ke.slice(0,Ae):ke,Me=null;if(je.length>=3&&je.charCodeAt(0)===la){var Ne=je[1];(Ne===` `||Ne===`x`||Ne===`X`)&&je.charCodeAt(2)===ba&&(Me={type:J.gfmTask,completed:Ne===`x`||Ne===`X`},je=je.slice(3))}var Pe;if(Oe.isEmpty&&je.trim()===``)Pe=[];else if(se){var Fe=n.inList;n.inList=!0,Pe=pc(je,n,r),n.inList=Fe}else{var Ie=n.inList;if(n.inList=!0,Pe=pc(je,n,r),n.inList=Ie,Pe.length===1&&Pe[0].type===J.paragraph)Pe=Pe[0].children;else{for(var Le=[],Re=0;Re<Pe.length;Re++)if(Pe[Re].type===J.paragraph)for(var ze=Pe[Re].children,Be=0;Be<ze.length;Be++)Le.push(ze[Be]);else Le.push(Pe[Re]);Pe=Le}}Me?Ee.push([Me,{type:J.text,text:` `},...Pe]):Ee.push(Pe)}return{node:{type:a.ordered?J.orderedList:J.unorderedList,start:a.ordered?a.start:void 0,items:Ee},end:s}}var js=new Set(`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`));function Ms(e,t,n){let r={};for(let[o,s]of Object.entries(e)){let e=o,c=o.toLowerCase();if(c===`style`&&typeof s==`string`){let t={},n=[],i=0,a=0;for(let e=0;e<s.length;e++){let t=s.charCodeAt(e);t===Wa?i++:t===Ga?i--:t===Pa&&i===0&&(n.push(s.slice(a,e)),a=e+1)}a<s.length&&n.push(s.slice(a));let o=!1;n.forEach(e=>{let n=e.indexOf(`:`);if(n===-1)return;let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();if(r&&i){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(i)){o=!0;return}let e=r.indexOf(`-`)===-1?r:r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());t[e]=i}}),!o&&Object.keys(t).length>0&&(r[e]=t)}else if((c===`href`||c===`src`)&&n?.sanitizer){let i=n.sanitizer(s,t,c);i!==null&&(r[e]=i)}else if(s===``)r[e]=!0;else if(s.length>=2&&s.charCodeAt(0)===Ha&&s.charCodeAt(s.length-1)===Ua){var i=s.slice(1,-1);if(i.length>0){var a=i.charCodeAt(0);if(a===la||a===Ha)try{r[e]=JSON.parse(i);continue}catch{}}if(i===`true`){r[e]=!0;continue}if(i===`false`){r[e]=!1;continue}if(n?.evalUnserializableExpressions)try{r[e]=(0,eval)(`(`+i+`)`);continue}catch{}r[e]=i}else r[e]=s}return r}function Ns(e,t,n){let r=t.length;if(r===0)return n;var i=t.charCodeAt(0);if(!(i>=K&&i<=q||i>=Xa&&i<=Za)){for(var a=String.fromCharCode(i),o=e.length-r,s=n;s<=o;){var c=e.indexOf(a,s);if(c===-1||c>o)return-1;for(var l=!0,u=1;u<r;u++){var d=e.charCodeAt(c+u),f=t.charCodeAt(u);if(d>=K&&d<=q&&(d+=$a),f>=K&&f<=q&&(f+=$a),d!==f){l=!1;break}}if(l)return c;s=c+1}return-1}i>=K&&i<=q&&(i+=$a);for(let a=n;a<=e.length-r;a++){var p=e.charCodeAt(a);if(p>=K&&p<=q&&(p+=$a),p!==i)continue;let n=!0;for(let i=1;i<r;i++){let r=e.charCodeAt(a+i),o=t.charCodeAt(i);if(r>=K&&r<=q&&(r+=$a),o>=K&&o<=q&&(o+=$a),r!==o){n=!1;break}}if(n)return a}return-1}function Ps(e,t,n){let r=t.length;var i=t.charCodeAt(0);i>=K&&i<=q&&(i+=$a);for(let o=Math.min(n,e.length-r);o>=0;o--){var a=e.charCodeAt(o);if(a>=K&&a<=q&&(a+=$a),a!==i)continue;let n=!0;for(let i=1;i<r;i++){let r=e.charCodeAt(o+i),a=t.charCodeAt(i);if(r>=K&&r<=q&&(r+=$a),a>=K&&a<=q&&(a+=$a),r!==a){n=!1;break}}if(n)return o}return-1}var Fs=-1;function Is(e,t,n){let r=n.toLowerCase(),i=`<`+r,a=`</`+r,o=1,s=t,c=e.length;for(Fs=-1;s<c&&o>0;){let t=Ns(e,i,s),n=Ns(e,a,s);if(n===-1)return-1;if(t!==-1&&t<n){let n=$o(e,t);n?(n.tag.toLowerCase()===r&&!n.isClosing&&!n.selfClosing&&!mo(n.tag)&&o++,s=n.end):s=t+1}else{var l=n+a.length,u=l<c?e.charCodeAt(l):62;if((u===da||u===V||u===H||u===U)&&(o--,o===0)){Fs=n;let t=n+a.length;for(;t<c&&e.charCodeAt(t)!==da;)t++;return t+1}s=n+1}}return-1}function Ls(e,t,n,r){if(r.ignoreHTMLBlocks||r.disableParsingRawHTML)return null;var i=ds(e,t);if(vs(e,t,i),gs>3&&!n.inHTML)return null;var a=t+_s;if(e.charCodeAt(a)!==va)return null;var o=e.indexOf(`>`,a+1);if(o!==-1&&o<i){var s=e.slice(a+1,o);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\s@]+@[^\s@]+$/.test(s))return null}var c=Rs(e,a);if(c>=1&&c<=5){var l=e.length;if(c===1){for(var u=e.length,d=0;d<Ho.length;d++){var f=Ns(e,`</`+Ho[d]+`>`,a);f>=0&&f<u&&(u=f)}if(u<e.length){var p=e.indexOf(`>`,u);l=p>=0?fs(e,p+1):e.length}}else{var m=c===2?`-->`:c===3?`?>`:c===4?`>`:`]]>`,h=e.indexOf(m,a);h>=0&&(l=fs(e,h+m.length))}var g=e.slice(a,l);if(c>=2)return{node:{type:J.htmlComment,text:g,h:!1,raw:!0,endPos:l},end:l};var _=`div`,v=g.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);v&&(_=v[1]);var y=$o(e,a),b={},x;y&&!y.isClosing&&(b=Ms(y.attrs,_,r),x=y.whitespaceBeforeAttrs+y.rawAttrs);var S=[],C=Ns(g,`</`+_.toLowerCase(),0),w=g,T=``;if(y&&y.isClosing)for(w=g.slice(y.end-a);w.length>0&&w.charCodeAt(w.length-1)===U;)w=w.slice(0,-1);else if(y&&!y.isClosing){var E=y.end-a;if(C!==-1)for(w=g.slice(E),w.charCodeAt(0)===U&&(w=w.slice(1));w.length>0&&w.charCodeAt(w.length-1)===U;)w=w.slice(0,-1);else for(w=g;w.length>0&&w.charCodeAt(w.length-1)===U;)w=w.slice(0,-1);C!==-1&&(T=g.slice(E,C).trim())}var D=y?y.isClosing:!1;return{node:{type:J.htmlBlock,tag:_,attrs:b,f:x,children:S,a:w,text:T,c:!0,b:D,endPos:l,e:!0},end:l}}if(c===6||c===7){var O=ms(e,t),ee=O<e.length?O:e.length,k=e.slice(a,ee),te=O<e.length?fs(e,O):e.length,A=$o(e,a);if(A){var ne=A.tag,re=ne.toLowerCase();if(A.isClosing){var ie=e.slice(A.end,ee);return{node:{type:J.htmlBlock,tag:ne,attrs:{},children:[],a:ie,text:ie,c:!0,b:!0,endPos:ee,e:c===6},end:te}}if(A.selfClosing||mo(ne))return{node:{type:J.htmlBlock,tag:ne,attrs:Ms(A.attrs,ne,r),f:A.whitespaceBeforeAttrs+A.rawAttrs,children:[],a:``,text:``,c:!1,b:!1,endPos:A.end,e:c===6},end:A.end<e.length&&e.charCodeAt(A.end)===U?A.end+1:A.end};var j=n.d||0,M=e.slice(a,ee),ae=-1,N=-1;if(j<10){for(var oe=`</`+re,P=A.end-a,F=1,I=P;I<M.length&&F>0;){var L=Ns(M,`<`+re,I),se=Ns(M,oe,I);if(se===-1)break;if(L!==-1&&L<se){var ce=L+re.length+1;if(ce<M.length){var le=M.charCodeAt(ce);(le===V||le===H||le===U||le===da||le===La)&&F++}I=L+1}else{var ue=se+oe.length;if(ue<M.length){var de=M.charCodeAt(ue);if((de===da||de===V||de===H||de===U)&&(F--,F===0)){ae=se;for(var R=ue;R<M.length&&M.charCodeAt(R)!==da;)R++;N=R+1;break}}else if(F--,F===0){ae=se,N=M.length;break}I=se+1}}var fe=!1;if(ae===-1&&c===6&&!A.isClosing){var pe=Is(e,A.end,re);if(pe!==-1){for(var me=Fs,he=A.end,ge=!1,_e=!1,ve=!1,ye=0,be=!1,xe=!1,Se=he;Se<me;){var Ce=e.charCodeAt(Se);if(Ce===U)xe&&(ge=!0),be||ye++,xe=!0,Se++;else if(Ce===V||Ce===H)Se++;else{if(!be&&(be=!0,ye>=2&&Ce===va)){ve=!0;break}if(xe=!1,Ce===va){var we=e.charCodeAt(Se+1)|32;if((we===ka||we===Aa||we===Oa)&&(Go.lastIndex=Se,Go.test(e))){_e=!0;break}}Se++}}if(ge&&!ve&&!_e){var Te=ds(e,pe);ee=Te,te=fs(e,Te),M=e.slice(a,ee),k=e.slice(a,ee),ae=me-a,N=pe-a,fe=!0}}}}var Ee=A.rawAttrs.indexOf(`
36
+ `)!==-1||A.whitespaceBeforeAttrs.indexOf(`
37
+ `)!==-1,De=!1;ae!==-1&&(De=M.slice(N).trim().length===0);var Oe=!1,ke=ee,Ae=te;if(ae!==-1){var je=a+N,Me=ds(e,je-1);if(je<Me){for(var Ne=je;Ne<Me&&(e.charCodeAt(Ne)===V||e.charCodeAt(Ne)===H);)Ne++;if(Ne<Me&&e.charCodeAt(Ne)===va){var Pe=$o(e,Ne);Pe&&!Pe.isClosing&&(Oe=!0,ke=je,Ae=je,De=!0)}}if(!Oe){var Fe=fs(e,Me);if(Fe<ee){for(var Ie=Fe;Ie<ee&&(e.charCodeAt(Ie)===V||e.charCodeAt(Ie)===H);)Ie++;Ie<ee&&e.charCodeAt(Ie)===va&&$o(e,Ie)&&(Oe=!0,ke=Me,Ae=Fe,De=!0)}}!Oe&&n.inHTML&&(Oe=!0,ke=Me,Ae=fs(e,Me),De=e.slice(je,Me).trim().length===0)}var Le=[],Re=``;if(ae!==-1){Re=M.slice(A.end-a,ae);var ze=Re.trim();if(ze){var{inline:Be,inHTML:Ve,d:He}=n;if(n.inHTML=!0,n.d=j+1,re===`p`)n.inline=!0,Le=dc(ze,0,ze.length,n,r);else{var Ue=Re.indexOf(`
38
+
39
+ `)!==-1,We=Ko.test(ze),Ge=qo.test(ze),Ke=Ue||We||n.inHTML&&Ge;Re.length>=2&&Re.charCodeAt(0)===U&&Re.charCodeAt(Re.length-1)===U&&!Ue&&!We&&!Ge?Le=[{type:J.text,text:ze}]:Ke||Ge?(n.inline=!1,Le=pc(Re,n,r)):(n.inline=!0,Le=dc(ze,0,ze.length,n,r))}n.inline=Be,n.inHTML=Ve,n.d=He}}var qe=!1;if(c===6&&ae!==-1&&!n.inHTML&&!Ee){var Je=Re,Ye=/<[a-zA-Z][^>]*>/.test(Je),Xe=/\n\n/.test(Je)||/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Je);Ye&&!Xe&&(qe=!0)}if(!fe&&(n.inHTML||c===7||Ee||!De||qe)){var Ze,Qe=!1;if(ae!==-1&&Oe){var $e=!1;if(n.inHTML&&N<M.length){for(var et=N;et<M.length&&M.charCodeAt(et)!==U;)et++;var tt=M.slice(N,et).trim();$e=tt.length>1&&tt.charCodeAt(0)===va&&tt.charCodeAt(1)!==La}Ze=$e?M.slice(A.end-a):Re,Qe=!0}else (c===7||n.inHTML)&&ae!==-1?(Ze=M.slice(A.end-a),Ze.charCodeAt(0)===U&&(Ze=Ze.slice(1))):Oe?Ze=e.slice(a,ke):Ee?Ze=k:(Ze=M.slice(A.end-a),Ze.charCodeAt(0)===U&&(Ze=Ze.slice(1)));var nt={type:J.htmlBlock,tag:ne,attrs:Ms(A.attrs,ne,r),f:A.whitespaceBeforeAttrs+A.rawAttrs,children:Le,a:Ze,text:Ze,c:!0,b:!1,endPos:ke,e:c===6};return Qe&&(nt.k=!0),{node:nt,end:Ae}}return{node:{type:J.htmlBlock,tag:ne,attrs:Ms(A.attrs,ne,r),f:A.whitespaceBeforeAttrs+A.rawAttrs,children:Le,a:fe?``:Re,text:Re,c:!1,b:!1,endPos:ke,e:c===6},end:Ae}}var z=k.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),rt=z?z[2]:`div`,it=z?z[1]===`/`:!1,at=k;if(it){var ot=k.indexOf(`>`);ot!==-1&&(at=k.slice(ot+1))}return{node:{type:J.htmlBlock,tag:rt,attrs:{},children:[],a:at,text:at,c:!0,b:it,endPos:ee,e:c===6},end:te}}var st=$o(e,a);if(!st)return null;var ct=st.tag,lt=ct.toLowerCase(),ut=ct.charCodeAt(0),dt=ut>=K&&ut<=q;if(!dt&&!js.has(lt)&&!Uo.has(lt)&&!lt.includes(`-`))return null;if(st.isClosing)return{node:{type:J.htmlSelfClosing,tag:ct,attrs:{},a:e.slice(a,st.end),b:!0,endPos:st.end},end:st.end};var ft=Is(e,st.end,ct),pt=[];if(ft!==-1){var mt=Fs,ht=e.slice(st.end,mt),gt=ht.trim();if(gt){var _t=ht.indexOf(`
40
+
41
+ `)!==-1,vt=Ko.test(gt),yt=qo.test(gt),bt=n.inline,xt=n.inHTML,St=n.d;n.inHTML=!0,n.d=(n.d||0)+1,_t||vt||yt?(n.inline=!1,pt=pc(ht,n,r)):(n.inline=!0,pt=dc(gt,0,gt.length,n,r)),n.inline=bt,n.inHTML=xt,n.d=St}var Ct=ds(e,ft),wt=e.slice(ft,Ct).trim()?ft:fs(e,ft),Tt=dt?e.slice(a,ft):e.slice(a,wt),Et=dt?ft:wt;return{node:{type:J.htmlBlock,tag:ct,attrs:Ms(st.attrs,ct,r),f:st.whitespaceBeforeAttrs+st.rawAttrs,children:pt,a:Tt,text:dt?ht:Tt,c:!0,b:!1,endPos:Et,e:!1},end:wt}}var Dt=ms(e,st.end),Ot=Dt<e.length?fs(e,Dt):Dt,kt=e.slice(st.end,Dt);if(kt.trim()){var{inline:At,inHTML:jt,d:Mt}=n;n.inline=!1,n.inHTML=!0,n.d=(n.d||0)+1,pt=pc(kt,n,r),n.inline=At,n.inHTML=jt,n.d=Mt}var Nt=e.slice(st.end,Dt);return{node:{type:J.htmlBlock,tag:ct,attrs:Ms(st.attrs,ct,r),f:st.whitespaceBeforeAttrs+st.rawAttrs,children:pt,a:Nt,text:kt,c:!0,b:!1,endPos:Dt,e:!1},end:Ot}}function Rs(e,t){if(e.charCodeAt(t)!==va)return 0;var n=t+1,r=e.length;if(e.charCodeAt(n)===xa&&e.charCodeAt(n+1)===G&&e.charCodeAt(n+2)===G)return 2;if(e.charCodeAt(n)===Fa)return 3;if(e.charCodeAt(n)===xa){var i=e.charCodeAt(n+1);if(i>=K&&i<=q)return 4;if(e.slice(n+1,n+8)===`[CDATA[`)return 5}for(var a=e.charCodeAt(n)===La,o=a?n+1:n,s=o;s<r;){var c=e.charCodeAt(s);if(c>=K&&c<=q||c>=Xa&&c<=Za||c>=Ja&&c<=Ya||c===G)s++;else break}if(s===o)return 0;var l=e.slice(o,s);if(Uo.has(l.toLowerCase())){if(a)return 0;var u=e.charCodeAt(s);return+(u===V||u===H||u===da||u===U||s>=r)}if(js.has(l.toLowerCase())){if(a){for(var d=s;d<r&&(e.charCodeAt(d)===V||e.charCodeAt(d)===H);)d++;return d<r&&e.charCodeAt(d)===da?6:0}var f=s<r?e.charCodeAt(s):-1;return f===V||f===H||f===da||f===U||f===La||f===-1?6:0}if(a){for(var p=s;p<r&&(e.charCodeAt(p)===V||e.charCodeAt(p)===H);)p++;if(p<r&&e.charCodeAt(p)===da){var m=ds(e,t);if(e.slice(p+1,m).trim()===``)return 7}}else{var h=ds(e,t),g=$o(e,t);if(g&&g.end<=h&&e.slice(g.end,h).trim()===``)return 7}return 0}function zs(e,t,n){for(var r=0,i=e.length;r<i&&(e.charCodeAt(r)===V||e.charCodeAt(r)===H);)r++;for(;i>r&&(e.charCodeAt(i-1)===V||e.charCodeAt(i-1)===H);)i--;r<i&&e.charCodeAt(r)===Va&&r++,i>r&&e.charCodeAt(i-1)===Va&&(i-2<r||e.charCodeAt(i-2)!==ha)&&i--;for(var a=[],o=r,s=!1,c=[],l=r;l<i;){var u=e.charCodeAt(l);if(u===ha&&l+1<i){e.charCodeAt(l+1)===Va?(s||(s=!0,c=[]),c.push(e.slice(o,l)),c.push(`|`),l+=2,o=l):l+=2;continue}if(u===W){for(var d=0;l<i&&e.charCodeAt(l)===W;)d++,l++;for(var f=!1;l<i&&!f;){for(var p=0;l<i&&e.charCodeAt(l)===W;)p++,l++;p===d?f=!0:p===0&&l++}continue}if(u===Va){var m=s?(c.push(e.slice(o,l)),c.join(``)):e.slice(o,l);a.push(m.trim()),l++,o=l,s=!1,c=[];continue}l++}var h=s?(c.push(e.slice(o,i)),c.join(``)):e.slice(o,i);return a.push(h.trim()),a.map(function(e){var r=e.indexOf(`\\|`)===-1?e:e.replace(/\\\|/g,`|`);return dc(r,0,r.length,t,n)})}function Bs(e,t,n,r){let i=ds(e,t);var a=e.indexOf(`|`,t);if(a<0||a>=i)return null;let o=fs(e,i);if(o>=e.length)return null;let s=ds(e,o);if(!Qo(e,o,s))return null;let c=e.slice(t,i),l=e.slice(o,s);for(var u=[],d=0,f=l.length;d<f&&(l.charCodeAt(d)===V||l.charCodeAt(d)===H);)d++;for(d<f&&l.charCodeAt(d)===Va&&d++;d<f;){for(;d<f&&(l.charCodeAt(d)===V||l.charCodeAt(d)===H);)d++;if(d>=f||l.charCodeAt(d)===Va)break;var p=l.charCodeAt(d)===Ca;for(p&&d++;d<f&&l.charCodeAt(d)===G;)d++;var m=d<f&&l.charCodeAt(d)===Ca;for(m&&d++,u.push(p&&m?`center`:m?`right`:p?`left`:null);d<f&&(l.charCodeAt(d)===V||l.charCodeAt(d)===H);)d++;d<f&&l.charCodeAt(d)===Va&&d++}let h=zs(c,n,r);if(u.length!==h.length)return null;let g=[],_=fs(e,s);for(;_<e.length;){let t=ds(e,_),i=e.slice(_,t);if(ys(e,_,t))break;if(vs(e,_,t),gs<4){var v=e.charCodeAt(_+_s);if(v===da||v===fa||(v===G||v===ga||v===_a)&&Ss(e,_))break;if(v===W||v===ca){for(var y=_+_s,b=0;y<t&&e.charCodeAt(y)===v;)b++,y++;if(b>=3)break}}g.push(zs(i,n,r)),_=fs(e,t)}if((r.streaming||r.optimizeForStreaming)&&g.length===0)return null;for(var x=h.length,S=0;S<g.length;S++)if(g[S].length<x)for(;g[S].length<x;)g[S].push([]);else g[S].length>x&&(g[S].length=x);return{node:{type:J.table,header:h,cells:g,align:u},end:_}}function Vs(e,t,n){if(vs(e,t,ds(e,t)),gs>3)return null;var r=t+_s;if(e.charCodeAt(r)!==la)return null;if(r+1<e.length&&e.charCodeAt(r+1)===ua)return Hs(e,r,n)||null;n.refs||={};var i=ts(e,r,n.refs);return i===null?null:{node:{type:J.refCollection},end:i}}function Hs(e,t,n){var r=e.length;if(e.charCodeAt(t)!==la||t+1>=r||e.charCodeAt(t+1)!==ua)return null;for(var i=t+2,a=i;i<r&&e.charCodeAt(i)!==ba;){if(e.charCodeAt(i)===U)return null;i++}if(i>=r)return null;var o=(`^`+e.slice(a,i)).toLowerCase();if(i++,i>=r||e.charCodeAt(i)!==Ca)return null;for(i++;i<r&&(e.charCodeAt(i)===V||e.charCodeAt(i)===H);)i++;if(i<r&&e.charCodeAt(i)===U)for(i++;i<r&&(e.charCodeAt(i)===V||e.charCodeAt(i)===H);)i++;var s=e.indexOf(`
42
+ `,i);s<0&&(s=r);for(var c=e.slice(i,s).trim(),l=s<r?s+1:r;l<r;){var u=ds(e,l);if(vs(e,l,u),gs>=2&&!ys(e,l,u))c+=`
43
+ `+e.slice(l,u),l=fs(e,u);else if(ys(e,l,u)){var d=fs(e,u);if(d<r&&(vs(e,d,ds(e,d)),gs>=2)){c+=`
44
+ `,l=fs(e,u);continue}break}else break}return n.refs[o]||(n.refs[o]={target:c,title:void 0}),{node:{type:J.footnote},end:l}}function Us(e,t,n,r){let i=t,a=0,o=0,s=-1;for(;i<e.length;){let t=s>=0?s:ds(e,i);if(s=-1,ys(e,i,t))break;if(vs(e,i,t),gs<4&&o>0&&!n.g){let n=e.charCodeAt(i+_s);if(n===ma||n===G){let r=i+_s;for(;r<t&&e.charCodeAt(r)===n;)r++;for(;r<t&&(e.charCodeAt(r)===V||e.charCodeAt(r)===H);)r++;if(r>=t){a=n===ma?1:2,i=fs(e,t);break}}}o=t;let y=fs(e,t);if(y<e.length){if(e.charCodeAt(y)===Ka){var c=ds(e,y);i=fs(e,c),o=c;continue}let t=ds(e,y);if(s=t,vs(e,y,t),gs<4){let a=e.charCodeAt(y+_s);if(a===da){i=y;break}if(a===fa&&bs(e,y,n,r)){i=y;break}if(a===W||a===ca){for(var l=y+_s,u=0;l<t&&e.charCodeAt(l)===a;)u++,l++;if(u>=3){i=y;break}}if(a===va){var d=y+_s+1,f=d<t?e.charCodeAt(d):0,p=f===xa||f===Fa;if(!p&&f===La){for(var m=d+1,h=m;h<t&&(e.charCodeAt(h)>=K&&e.charCodeAt(h)<=q||e.charCodeAt(h)>=Xa&&e.charCodeAt(h)<=Za||e.charCodeAt(h)>=Ja&&e.charCodeAt(h)<=Ya||e.charCodeAt(h)===G);)h++;h>m&&(p=js.has(e.slice(m,h).toLowerCase()))}else if(!p){for(var g=d;g<t&&(e.charCodeAt(g)>=K&&e.charCodeAt(g)<=q||e.charCodeAt(g)>=Xa&&e.charCodeAt(g)<=Za||e.charCodeAt(g)>=Ja&&e.charCodeAt(g)<=Ya||e.charCodeAt(g)===G);)g++;if(g>d){var _=e.slice(d,g).toLowerCase();p=js.has(_)||Uo.has(_)}}if(p&&Ls(e,y,n,r)){i=y;break}}if(a===G||a===ga||a===Ba){let n=y+_s+1;if(n<t&&(e.charCodeAt(n)===V||e.charCodeAt(n)===H)&&ps(e,n,t)<t&&!Ss(e,y)){i=y;break}}if(a>=Ja&&a<=Ya){let n=y+_s;for(;n<t&&e.charCodeAt(n)>=Ja&&e.charCodeAt(n)<=Ya;)n++;if(n<t&&(e.charCodeAt(n)===Ia||e.charCodeAt(n)===Ga)&&n-(y+_s)===1&&e.charCodeAt(y+_s)===49){var v=n+1;if(v<t&&(e.charCodeAt(v)===V||e.charCodeAt(v)===H)&&ps(e,v,t)<t){i=y;break}}}if(a===Va){let n=fs(e,t);if(n<e.length&&Qo(e,n,ds(e,n))){i=y;break}}if((a===G||a===ga||a===_a)&&Ss(e,y)){if(a!==G){i=y;break}let n=0,r=y+_s;for(;r<t&&e.charCodeAt(r)===G;)n++,r++;for(;r<t&&(e.charCodeAt(r)===V||e.charCodeAt(r)===H);)r++;if(r<t){i=y;break}}}}i=fs(e,t)}for(var y=a?o:i;y>t&&(e.charCodeAt(y-1)===U||e.charCodeAt(y-1)===sa||e.charCodeAt(y-1)===V||e.charCodeAt(y-1)===H);)y--;for(var b=t;b<y&&(e.charCodeAt(b)===V||e.charCodeAt(b)===H);)b++;if(b>=y)return null;for(var x=!1,S=b;S<y;S++)if(e.charCodeAt(S)===Ka){x=!0;break}var C=x?e.slice(b,y).replace(/\u001E/g,``):e.slice(b,y);if(!C)return null;let w=Ws(C,0,C.length,n,r);if(a){let e=(r?.slugify||uo)(C);return{node:{type:J.heading,level:a,children:w,id:e},end:i}}return{node:{type:J.paragraph,children:w},end:i}}function Ws(e,t,n,r,i){var a=e.indexOf(`
45
+ `,t);if(a<0||a>=n)return dc(e,t,n,r,i);for(var o=``,s=t,c=t;c<n;){var l=e.charCodeAt(c);if(l===W){var u=Ks(e,c,n);if(u>c){for(var d=!1,f=c;f<u;f++)if(e.charCodeAt(f)===U){d=!0;break}d&&(o+=e.slice(s,c),o+=e.slice(c,u).replace(/\n/g,` `),s=u),c=u;continue}}if(l===va){var p=qs(e,c,n);if(p>c){c=p;continue}}if(l===U){var m=!1,h=0;if(c>t&&e.charCodeAt(c-1)===ha)m=!0,h=1;else{for(var g=0,_=c-1;_>=t&&e.charCodeAt(_)===V;)g++,_--;g>=2&&(m=!0,h=g)}if(m)o+=e.slice(s,c-h),o+=``;else{for(var v=c;v>s&&e.charCodeAt(v-1)===V;)v--;o+=e.slice(s,v)+`
46
+ `}for(c++;c<n&&e.charCodeAt(c)===V;)c++;s=c;continue}c++}return s<n&&(o+=e.slice(s,n)),dc(o,0,o.length,r,i)}function Gs(e,t,n){if(e.charCodeAt(t)!==W)return null;let r=hs(e,t,n,96),i=t+r;for(;i<n;){let a=e.indexOf("`",i);if(a<0||a>=n)return null;let o=hs(e,a,n,96);if(o===r){let n=e.slice(t+r,a);return n=n.replace(/\n/g,` `),n.length>0&&n[0]===` `&&n[n.length-1]===` `&&n.trim().length>0&&(n=n.slice(1,-1)),{node:{type:J.codeInline,text:n},end:a+o}}i=a+o}return null}function Ks(e,t,n){if(e.charCodeAt(t)!==W)return t;let r=hs(e,t,n,96),i=t+r;for(;i<n;){let a=e.indexOf("`",i);if(a<0||a>=n)return t;let o=hs(e,a,n,96);if(o===r)return a+o;i=a+o}return t}function qs(e,t,n){if(e.charCodeAt(t)!==va)return t;if(t+1<n&&e.charCodeAt(t+1)===La){let r=t+2;for(;r<n&&e.charCodeAt(r)!==da;)r++;return r<n?r+1:t}if(t+3<n&&e.charCodeAt(t+1)===xa&&e.charCodeAt(t+2)===G&&e.charCodeAt(t+3)===G){let n=e.indexOf(`-->`,t+4);return n>=0?n+3:t}let r=t+1,i=r;for(;r<n;){let t=e.charCodeAt(r);if(t>=K&&t<=q||t>=Xa&&t<=Za||t>=Ja&&t<=Ya||t===G)r++;else break}if(r===i)return t;let a=e.slice(i,r).toLowerCase(),o=!1;for(;r<n;){let i=e.charCodeAt(r);if(i===da){r++;break}if(i===La&&r+1<n&&e.charCodeAt(r+1)===da){r+=2,o=!0;break}if(i===za||i===Ra){var s=i;for(r++;r<n&&e.charCodeAt(r)!==s;)r++;r<n&&r++;continue}if(i===U)return t;r++}if(o||mo(a))return r;let c=1;for(;r<n&&c>0;)if(e.charCodeAt(r)===va)if(r+1<n&&e.charCodeAt(r+1)===La){let t=r+2,i=t;for(;i<n&&(e.charCodeAt(i)>=K&&e.charCodeAt(i)<=q||e.charCodeAt(i)>=Xa&&e.charCodeAt(i)<=Za);)i++;if(e.slice(t,i).toLowerCase()===a){for(;i<n&&e.charCodeAt(i)!==da;)i++;if(i<n&&i++,c--,c===0)return i}r=i}else{let t=r+1,i=t;for(;i<n&&(e.charCodeAt(i)>=K&&e.charCodeAt(i)<=q||e.charCodeAt(i)>=Xa&&e.charCodeAt(i)<=Za);)i++;e.slice(t,i).toLowerCase()===a&&c++,r++}else r++;return r}function Js(e,t,n,r,i){if(e.charCodeAt(t)!==ca||t+1>=n||e.charCodeAt(t+1)!==ca)return null;let a=t+2;for(;a+1<n;){let o=e.charCodeAt(a);if(o===W){let t=Ks(e,a,n);if(t>a){a=t;continue}}if(o===ca&&e.charCodeAt(a+1)===ca){let n=e.slice(t+2,a),o=dc(n,0,n.length,r,i);return{node:{type:J.textFormatted,tag:`del`,children:o},end:a+2}}o===ha&&a+1<n&&a++,a++}return null}function Ys(e,t,n,r,i){if(e.charCodeAt(t)!==ma||t+1>=n||e.charCodeAt(t+1)!==ma)return null;let a=t+2;for(;a+1<n;){let o=e.charCodeAt(a);if(o===W){let t=Ks(e,a,n);if(t>a){a=t;continue}}if(o===ma&&e.charCodeAt(a+1)===ma&&a>t+2){let n=e.slice(t+2,a),o=dc(n,0,n.length,r,i);return{node:{type:J.textFormatted,tag:`mark`,children:o},end:a+2}}o===ha&&a+1<n&&a++,a++}return null}function Xs(e,t,n){return e<Qa?!!(os(e)&_o):Do.test(t[n])}function Zs(e,t,n){return e<Qa?!!(os(e)&ho):Oo.test(t[n])}function Qs(e,t,n){var r=e.charCodeAt(t);if(r!==ga&&r!==_a)return null;var i=hs(e,t,n,r);if(i===0)return null;var a=t>0?e.charCodeAt(t-1):32,o=t+i<n?e.charCodeAt(t+i):32,s=Zs(a,e,t-1),c=Zs(o,e,t+i),l=t>0?Xs(a,e,t-1):!1,u=t+i<n?Xs(o,e,t+i):!1,d=!c&&(!u||s||l),f=!s&&(!l||c||u),p,m;return r===ga?(p=d,m=f):(p=d&&(!f||l),m=f&&(!d||u)),{len:i,canOpen:p,canClose:m}}function $s(e,t,n,r){if(t.length!==0){for(var i=[],a=0;a<12;a++)i[a]=-1;for(var o=0;o<t.length;){var s=t[o];if(!s.active||!s.canClose){o++;continue}for(var c=(s.ch===ga?0:1)*6+s.len%3*2+ +!!s.canOpen,l=i[c]===void 0?-1:i[c],u=-1,d=o-1;d>l;d--){var f=t[d];if(!(!f.active||f.ch!==s.ch||!f.canOpen)&&!((s.canOpen||f.canClose)&&(f.len+s.len)%3==0&&f.len%3!=0)){u=d;break}}if(u<0){i[c]=o-1,!s.canOpen&&(s.active=!1),o++;continue}var p=t[u],m=p.len>=2&&s.len>=2,h=m?2:1;p.len-=h,s.len-=h;var g=e[p.idx],_=e[s.idx];g.text=g.text.slice(0,g.text.length-h),_.text=_.text.slice(h);var v=p.idx+1,y=s.idx,b=e.slice(v,y),x={type:J.textFormatted,tag:m?`strong`:`em`,children:b};e.splice(v,y-v,x);for(var S=y-v-1,C=0;C<t.length;C++)t[C].idx>p.idx&&(t[C].idx-=S);for(var w=u+1;w<o;w++)t[w].active=!1;if(p.len===0&&(p.active=!1,g.text===``)){e.splice(p.idx,1);for(var T=0;T<t.length;T++)t[T].idx>p.idx?t[T].idx--:t[T].idx===p.idx&&(t[T].idx=-1)}if(s.len===0){s.active=!1;var E=s.idx;if(_.text===``){e.splice(E,1);for(var D=0;D<t.length;D++)t[D].idx>E?t[D].idx--:t[D].idx===E&&(t[D].idx=-1)}}else continue;o++}for(var O=0,ee=0;ee<e.length;ee++){var k=e[ee];if(k.type===J.text){var te=k;if(te.text===``)continue;if(O>0&&e[O-1].type===J.text){e[O-1].text+=te.text;continue}}e[O++]=k}e.length=O}}function ec(e,t,n,r,i){let a=e.charCodeAt(t)===xa,o=a?t+1:t;if(e.charCodeAt(o)!==la)return null;var s=e.indexOf(`]`,o+1);if(s<0||s>=n)return null;for(var c=o+1,l=1;c<n&&l>0;){var u=e.charCodeAt(c);if(u===ha&&c+1<n){c+=2;continue}if(u===W){var d=Ks(e,c,n);if(d>c){c=d;continue}}if(u===va){var f=tc(e,c,n);if(f){c=f.end;continue}var p=qs(e,c,n);if(p>c){c=p;continue}}u===la?l++:u===ba&&l--,c++}if(l!==0)return null;var m=c-1,h=e.slice(o+1,m),g=c<n?e.charCodeAt(c):0,_=!1;if(g===Wa){var v=!0;for(c++;c<n&&(e.charCodeAt(c)===V||e.charCodeAt(c)===U);)c++;var y=``,b=c;if(c<n&&e.charCodeAt(c)===va){for(c++,b=c;b<n&&e.charCodeAt(b)!==da;){if(e.charCodeAt(b)===ha&&b+1<n){b+=2;continue}if(e.charCodeAt(b)===U){v=!1;break}b++}v&&(b>=n||e.charCodeAt(b)!==da)&&(v=!1),v&&(y=e.slice(c,b),b++)}else if(v){for(var x=0;b<n;){var S=e.charCodeAt(b);if(S===ha&&b+1<n){b+=2;continue}if(S===Wa)x++;else if(S===Ga){if(x===0)break;x--}else if(S===V||S===U)break;b++}y=e.slice(c,b)}if(v){for(c=b;c<n&&(e.charCodeAt(c)===V||e.charCodeAt(c)===U);)c++;var C;if(c<n){var w=e.charCodeAt(c);if(w===za||w===Ra||w===Wa){var T=w===Wa?41:w;c++;for(var E=c;c<n&&e.charCodeAt(c)!==T;)e.charCodeAt(c)===ha&&c+1<n&&c++,c++;c>=n?v=!1:(C=e.slice(E,c),c++)}}if(v){for(;c<n&&(e.charCodeAt(c)===V||e.charCodeAt(c)===U);)c++;(c>=n||e.charCodeAt(c)!==Ga)&&(v=!1)}}if(v){c++,y=ss(y),C!==void 0&&(C=io(ss(C)));var D=(i?.sanitizer||oo)(y,a?`img`:`a`,a?`src`:`href`)===null?null:y;if(a){var O=oc(dc(h,0,h.length,r,i));return{node:{type:J.image,target:D,alt:O,title:C},end:c}}else{var ee=r.inAnchor;r.inAnchor=!0;var k=ee?[{type:J.text,text:h}]:dc(h,0,h.length,r,i);return r.inAnchor=ee,!r.inAnchor&&ac(k)?null:{node:{type:J.link,target:D,title:C,children:k},end:c}}}else c=m+1,_=!0}var te=``,A=c;if(!_&&g===la){var ne=c+1;A=ne;for(var re=!1;A<n&&e.charCodeAt(A)!==ba;){if(e.charCodeAt(A)===ha&&A+1<n){A+=2;continue}if(e.charCodeAt(A)===la){re=!0;break}A++}if(re||A>=n)return null;var ie=e.slice(ne,A);if(ie.trim())te=as(ie);else{if(is(h))return null;te=as(h)}A+=1}else{if(is(h))return null;te=as(h)}var j=r.refs[te];if(!j)return null;if(a)return{node:{type:J.image,target:j.target,alt:oc(dc(h,0,h.length,r,i)),title:j.title},end:A};var M=r.inAnchor;r.inAnchor=!0;var k=M?[{type:J.text,text:h}]:dc(h,0,h.length,r,i);return r.inAnchor=M,!r.inAnchor&&ac(k)?null:{node:{type:J.link,target:j.target,title:j.title,children:k},end:A}}function tc(e,t,n){if(e.charCodeAt(t)!==va)return null;for(var r=t+1;r<n;){var i=e.charCodeAt(r);if(i===da)break;if(i===V||i===U||i===sa||i===va)return null;r++}if(r>=n||e.charCodeAt(r)!==da)return null;var a=e.slice(t+1,r);return a.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/)?{node:{type:J.link,target:a,title:void 0,children:[{type:J.text,text:a}]},end:r+1}:a.indexOf(`@`)!==-1&&/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)?{node:{type:J.link,target:`mailto:`+a,title:void 0,children:[{type:J.text,text:a}]},end:r+1}:null}function nc(e,t,n,r){if(e.charCodeAt(t)!==la||t+1>=n||e.charCodeAt(t+1)!==ua)return null;let i=t+2;for(;i<n&&e.charCodeAt(i)!==ba&&e.charCodeAt(i)!==U;)i++;if(i>=n||e.charCodeAt(i)!==ba)return null;let a=e.slice(t+2,i);return a?{node:{type:J.footnoteReference,target:`#`+uo(a),text:a},end:i+1}:null}function rc(e,t,n,r){if(r.disableBareUrls)return null;var i=``,a=!1,o=e.charCodeAt(t);if(o===Ea||o===72?t+8<=n&&e.charCodeAt(t+1)===Oa&&e.charCodeAt(t+2)===Oa&&e.charCodeAt(t+3)===ka&&(e.charCodeAt(t+4)===Aa&&e.charCodeAt(t+5)===Ca&&e.charCodeAt(t+6)===La&&e.charCodeAt(t+7)===La?i=`https://`:e.charCodeAt(t+4)===Ca&&e.charCodeAt(t+5)===La&&e.charCodeAt(t+6)===La&&(i=`http://`)):o===Ta||o===70?t+6<=n&&e.charCodeAt(t+1)===Oa&&e.charCodeAt(t+2)===ka&&e.charCodeAt(t+3)===Ca&&e.charCodeAt(t+4)===La&&e.charCodeAt(t+5)===La&&(i=`ftp://`):(o===Da||o===87)&&t+4<=n&&e.charCodeAt(t+1)===Da&&e.charCodeAt(t+2)===Da&&e.charCodeAt(t+3)===Ia&&(i=`www.`,a=!0),!i)return null;let s=t+i.length;for(;s<n;){let t=e.charCodeAt(s);if(t===V||t===U||t===H||t===sa||t===va||t===da)break;s++}for(var c=0,l=0,u=t;u<s;u++){var d=e.charCodeAt(u);d===Wa?c++:d===Ga&&l++}let f=s;for(;f>t+i.length;){let n=e.charCodeAt(f-1);if(n===Ia||n===Na||n===Ca||n===xa||n===Fa||n===Ga||n===ga||n===_a||n===ca){if(n===Ga){if(c>=l)break;l--}f--}else if(n===Pa){for(var p=f-2;p>t&&(e.charCodeAt(p)>=K&&e.charCodeAt(p)<=q||e.charCodeAt(p)>=Xa&&e.charCodeAt(p)<=Za||e.charCodeAt(p)>=Ja&&e.charCodeAt(p)<=Ya);)p--;p>=t&&e.charCodeAt(p)===Sa?f=p:f--}else break}if(f<=t+i.length)return null;var m=t+(a?4:i.length),h=e.indexOf(`/`,m);if((h<0||h>f)&&(h=f),a&&e.indexOf(`.`,m)===-1)return null;for(var g=-1,_=-1,v=h-1;v>=m;v--)if(e.charCodeAt(v)===Ia)if(g<0)g=v;else{_=v;break}for(var v=_>=0?_+1:m;v<h;v++)if(e.charCodeAt(v)===_a)return null;var y=e.slice(t,f),b=a?`http://`+y:y;return{node:{type:J.link,target:b,title:void 0,children:[{type:J.text,text:y}]},end:f}}function ic(e,t,n,r){if(r.disableBareUrls)return null;for(var i=t,a=i;i<n;){var o=e.charCodeAt(i);if(o>=K&&o<=q||o>=Xa&&o<=Za||o>=Ja&&o<=Ya||o===Ia||o===xa||o===fa||o===36||o===pa||o===Sa||o===Ra||o===ga||o===Ba||o===La||o===ma||o===Fa||o===ua||o===_a||o===W||o===Ha||o===Va||o===Ua||o===ca||o===G)i++;else break}if(i===a||i>=n||e.charCodeAt(i)!==ya)return null;i++;for(var s=i,c=-1,l=i;i<n;){var o=e.charCodeAt(i);if(o>=K&&o<=q||o>=Xa&&o<=Za||o>=Ja&&o<=Ya)i++;else if((o===G||o===_a)&&i>s)i++;else if(o===Ia){if(i===s)break;var u=e.charCodeAt(i-1);if(u===G||u===_a||i-l>63)break;if(i+1<n){var d=e.charCodeAt(i+1);if(d>=K&&d<=q||d>=Xa&&d<=Za||d>=Ja&&d<=Ya)c=i,l=i+1,i++;else break}else break}else break}if(i-l>63||c<0)return null;var f=e.charCodeAt(i-1);if(!(f>=K&&f<=q||f>=Xa&&f<=Za||f>=Ja&&f<=Ya)||i<=c+1)return null;for(var p=-1,m=c-1;m>=s;m--)if(e.charCodeAt(m)===Ia){p=m;break}for(var m=p>=0?p+1:s;m<i;m++)if(e.charCodeAt(m)===_a)return null;var h=e.slice(t,i);return{node:{type:J.link,target:`mailto:`+h,title:void 0,children:[{type:J.text,text:h}]},end:i}}function ac(e){for(var t=0;t<e.length;t++)if(e[t].type===J.link||`children`in e[t]&&Array.isArray(e[t].children)&&ac(e[t].children))return!0;return!1}function oc(e){for(var t=``,n=0;n<e.length;n++){var r=e[n];r.type===J.text?t+=r.text:r.type===J.breakLine?t+=` `:r.type===J.codeInline?t+=r.text:`children`in r&&Array.isArray(r.children)?t+=oc(r.children):r.type===J.image?t+=r.alt||``:r.type===J.link&&(t+=oc(r.children))}return t}function sc(e){let t=e.includes(`&`)?io(e):e;return{type:J.text,text:t}}function cc(e,t,n,r,i){if(e.charCodeAt(t)!==va)return null;var a=t+1;if(a>=n)return null;var o=e.charCodeAt(a);if(o===xa&&a+1<n&&e.charCodeAt(a+1)===G&&a+2<n&&e.charCodeAt(a+2)===G){var s=a+3;if(s<n&&e.charCodeAt(s)===da)return{node:{type:J.htmlComment,text:``,h:!0},end:s+1};if(s+1<n&&e.charCodeAt(s)===G&&e.charCodeAt(s+1)===da)return{node:{type:J.htmlComment,text:`-`,h:!0},end:s+2};var c=e.indexOf(`-->`,s);return c!==-1&&c<=n-3?{node:{type:J.htmlComment,text:e.slice(t+4,c),h:!1},end:c+3}:null}if(o===Fa){var l=e.indexOf(`?>`,a+1);return l!==-1&&l<n?{node:{type:J.htmlSelfClosing,tag:`?`,attrs:{},a:e.slice(t,l+2),b:!1},end:l+2}:null}if(o===xa&&a+1<n){var u=e.charCodeAt(a+1);if(u===la&&e.slice(a+1,a+8)===`[CDATA[`){var d=e.indexOf(`]]>`,a+8);return d!==-1&&d<n?{node:{type:J.htmlSelfClosing,tag:`![CDATA[`,attrs:{},a:e.slice(t,d+3),b:!1},end:d+3}:null}if(u>=K&&u<=q){var f=e.indexOf(`>`,a+2);return f!==-1&&f<n?{node:{type:J.htmlSelfClosing,tag:`!`+e.slice(a+1,f),attrs:{},a:e.slice(t,f+1),b:!1},end:f+1}:null}}if(o===La){var p=a+1;if(p>=n)return null;var m=e.charCodeAt(p);if(!(m>=K&&m<=q||m>=Xa&&m<=Za))return null;for(p++;p<n;){var h=e.charCodeAt(p);if(h>=K&&h<=q||h>=Xa&&h<=Za||h>=Ja&&h<=Ya||h===G)p++;else break}for(;p<n&&(e.charCodeAt(p)===V||e.charCodeAt(p)===H||e.charCodeAt(p)===U);)p++;if(p<n&&e.charCodeAt(p)===da){var g=e.slice(a+1,p).trim();return{node:{type:J.htmlSelfClosing,tag:g,attrs:{},a:e.slice(t,p+1),b:!0},end:p+1}}return null}if(!(o>=K&&o<=q||o>=Xa&&o<=Za))return null;var _=$o(e,t);if(!_)return null;var v=_.tag,y=v.toLowerCase();if(_.selfClosing||mo(v))return{node:{type:J.htmlSelfClosing,tag:v,attrs:Ms(_.attrs,v,i),a:e.slice(t,_.end),b:!1},end:_.end};var b=Uo.has(y),x=Is(e.slice(0,n),_.end,v);if(x===-1)return{node:{type:J.htmlSelfClosing,tag:v,attrs:Ms(_.attrs,v,i),a:e.slice(t,_.end),b:!1},end:_.end};var S=Ps(e,`</`+y,x),C=e.slice(_.end,S),w=[];if(b)C.trim()&&(w=[{type:J.text,text:C}]);else{var T=C.trim();if(T){var{inAnchor:E,inline:D}=r;y===`a`&&(r.inAnchor=!0),T.indexOf(`
47
+
48
+ `)!==-1||/^#{1,6}\s/.test(T)?(r.inline=!1,w=pc(T,r,i)):w=dc(T,0,T.length,r,i),r.inAnchor=E,r.inline=D}}return{node:{type:J.htmlBlock,tag:v,attrs:Ms(_.attrs,v,i),f:_.rawAttrs,children:w,a:void 0,text:C,c:!1,b:!1,endPos:x,e:!1},end:x}}var lc=200,uc=0;function dc(e,t,n,r,i){if(uc++,uc>lc)return uc--,[{type:J.text,text:e.slice(t,n)}];let a=r;if(i.streaming||i.optimizeForStreaming){let r=function(e,t){for(var n=1,r=t+1;r<e.length;r++){var i=e.charCodeAt(r);if(i===la)n++;else if(i===ba&&(n--,n===0))return r}return-1},i=e.slice(t,n),a=i;for(var o=0,s=0,c=0,l=0,u=0,d=-1,f=-1,p=-1,m=-1,h=-1,g=0;g<i.length;g++){var _=i.charCodeAt(g);_===ga?g+1<i.length&&i.charCodeAt(g+1)===ga?(o++,d=g,g++):(s++,f=g):_===_a?g+1<i.length&&i.charCodeAt(g+1)===_a?(c++,p=g,g++):(l++,m=g):_===ca&&g+1<i.length&&i.charCodeAt(g+1)===ca&&(u++,h=g,g++)}var v=[];u%2==1&&h>=0&&v.push([h,2]),c%2==1&&p>=0&&v.push([p,2]),l%2==1&&m>=0&&v.push([m,1]),o%2==1&&d>=0&&v.push([d,2]),s%2==1&&f>=0&&v.push([f,1]),v.sort(function(e,t){return t[0]-e[0]});for(var y=0;y<v.length;y++){var b=v[y][0],x=v[y][1];i=i.slice(0,b)+i.slice(b+x)}let N=0,oe=-1;for(let e=0;e<i.length;e++)i.charCodeAt(e)===W&&(N++,oe=e);if(N%2==1&&oe!==-1){let e=!1,t=-1,n=0;for(;n<i.length;)i.charCodeAt(n)===W&&(e?(e=!1,t=-1):(t=n,e=!0)),n++;e&&t!==-1&&(i=i.slice(0,t))}for(var S=!0;S;){S=!1;for(var C=-1,w=-1,T=-1,E=!1,D=0;D<i.length;D++)if(i.charCodeAt(D)===la&&(D===0||i.charCodeAt(D-1)!==ha)){var O=D>0&&i.charCodeAt(D-1)===xa,ee=O?D-1:D,k=r(i,D);if(k===-1)C=ee,E=O,w=D+1,T=i.length;else{var te=k+1;if(te>=i.length)C=ee,E=O,w=D+1,T=k;else if(i.charCodeAt(te)===Wa){var A=i.indexOf(`)`,te+1);A===-1?(C=ee,E=O,w=D+1,T=k,D=i.length):D=A}else if(i.charCodeAt(te)===la){var ne=i.indexOf(`]`,te+1);ne===-1?(C=ee,E=O,w=D+1,T=k,D=i.length):D=ne}else D=k}}if(C>=0){var re=E?``:i.slice(w,T);i=i.slice(0,C)+re,S=!0}}let P=i.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(P&&P.index!==void 0){var ie=P[0].length-P[2].length;if(!(ie>=2&&P[0].charCodeAt(ie-2)===La)){for(var j=!1,M=0,ae=0;ae<P.index;ae++)i.charCodeAt(ae)===W&&M++;if(j=M%2==1,!j){let e=P[1];Ns(i,`</`+e,0)===-1&&(i=i.replace(/<[A-Z][A-Za-z0-9]*(?:\s[^>]*)?>([^<]*)$/,`$1`))}}}i!==a&&(e=e.slice(0,t)+i,n=t+i.length)}let N=[];var oe=[];let P=t;var F=i.disableAutoLink||i.disableBareUrls||a.inAnchor?-1:e.indexOf(`@`,t);for(F>=n&&(F=-1);t<n;){let r=e.charCodeAt(t),o=null;if(r===W){if(o=Gs(e,t,n),!o){var I=hs(e,t,n,W);t+=I-1}}else if(r===ga||r===_a){var L=Qs(e,t,n);if(L){if(L.canOpen||L.canClose){t>P&&N.push(sc(e.slice(P,t)));var se=sc(e.slice(t,t+L.len));oe.push({idx:N.length,ch:r,len:L.len,canOpen:L.canOpen,canClose:L.canClose,active:!0}),N.push(se),t+=L.len,P=t;continue}t+=L.len-1}}else if(r===ca)o=Js(e,t,n,a,i);else if(r===ma)o=Ys(e,t,n,a,i);else if(r===la)t+1<n&&e.charCodeAt(t+1)===ua&&(o=nc(e,t,n,a)),o||=ec(e,t,n,a,i);else if(r===xa&&t+1<n&&e.charCodeAt(t+1)===la)o=ec(e,t,n,a,i);else if(r===va)o=tc(e,t,n),!o&&!i.disableParsingRawHTML&&!i.ignoreHTMLBlocks&&(o=cc(e,t,n,a,i));else if((r===Ea||r===Da||r===Ta)&&!a.inAnchor&&!i.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==va)){var ce=t+1<n?e.charCodeAt(t+1):0;(r===Ea&&ce===Oa||r===Ta&&ce===Oa||r===Da&&ce===Da)&&(o=rc(e,t,n,i))}if(!o&&F>=0&&F-t<=64&&!a.inAnchor&&!i.disableAutoLink&&!i.disableBareUrls&&(r>=K&&r<=q||r>=Xa&&r<=Za||r>=Ja&&r<=Ya)&&(o=ic(e,t,n,i),!o&&t>=F&&(F=e.indexOf(`@`,t+1),F>=n&&(F=-1))),r===qa){t>P&&N.push(sc(e.slice(P,t))),N.push({type:J.breakLine}),t++,P=t;continue}if(o)t>P&&N.push(sc(e.slice(P,t))),N.push(o.node),t=o.end,P=t;else{if(r===ha&&t+1<n&&os(e.charCodeAt(t+1))&_o){t>P&&N.push(sc(e.slice(P,t))),N.push(sc(e[t+1])),t+=2,P=t;continue}if(t++,F<0||F-t>64)for(;t<n;){var le=e.charCodeAt(t);if(le<Qa&&!Jo[le])t++;else break}}}if(n>P){let t=e.slice(P,n);t&&N.push(sc(t))}return oe.length>0&&$s(N,oe,r,i),uc--,N}var fc=500;function pc(e,t,n){var r=t.i||0;if(r>fc)return[{type:J.text,text:e}];if(t.i=r+1,(n.streaming||n.optimizeForStreaming)&&!t.j){var i=e.length;i>0&&e.charCodeAt(i-1)===U&&i--;for(var a=i;a>0&&e.charCodeAt(a-1)!==U;)a--;if(a>0&&e.charCodeAt(a)===Va){for(var o=!0,s=a;s<i;s++){var c=e.charCodeAt(s);if(c!==V&&c!==H&&c!==G&&c!==Ca&&c!==Va){o=!1;break}}if(o){for(var l=a-1;l>0&&e.charCodeAt(l-1)!==U;)l--;e.charCodeAt(l)===Va&&(e=e.slice(0,l).trimEnd())}}var u=e.trim(),d=u.lastIndexOf(`
49
+ `),f=d===-1?u:u.slice(d+1);if(f.length>0&&f.charCodeAt(0)===Va){for(var p=!1,m=!1,h=1;h<f.length;h++){var g=f.charCodeAt(h);g===Va&&(p=!0),g===G&&(m=!0)}p&&m&&(e=d===-1?``:e.slice(0,e.lastIndexOf(f)).trimEnd())}for(var _=-1,v=-1,y=-1,b=e.length-1;b>=0;b--)if(e.charCodeAt(b)===va){var x=b+1<e.length?e.charCodeAt(b+1):0;if(x>=K&&x<=q||x>=Xa&&x<=Za){for(var S=b+2;S<e.length;){var C=e.charCodeAt(S);if(C>=K&&C<=q||C>=Xa&&C<=Za||C>=Ja&&C<=Ya)S++;else break}for(var w=S;w<e.length&&e.charCodeAt(w)!==da;)w++;if(w<e.length&&e.charCodeAt(w-1)!==La){for(var T=!1,E=w+1;E<e.length;E++)if(e.charCodeAt(E)===va){T=!0;break}T||(_=b,v=S,y=w+1)}}break}if(_>=0){for(var D=0,O=0;O<_;O++)e.charCodeAt(O)===W&&D++;if(D%2==0){var ee=e.slice(_+1,v);Ns(e,`</`+ee,0)===-1&&(e=e.slice(0,_)+e.slice(y))}}for(var k=e.length;k>0&&e.charCodeAt(k-1)===U;)k--;if(k>0){for(var te=k;te>0&&e.charCodeAt(te-1)!==U;)te--;for(var A=te,ne=0;A<k&&e.charCodeAt(A)===V&&ne<3;)A++,ne++;if(te>0&&A<k&&xs(e,A,k)){for(var re=te-1,ie=re;ie>0&&e.charCodeAt(ie-1)!==U;)ie--;ys(e,ie,re)||(e=e.slice(0,te).trimEnd())}}var j=e.length;if(j>0){for(var M=e.lastIndexOf(`
50
+ `),ae=M===-1?0:M+1,N=j,oe=ae,P=0;oe<N&&e.charCodeAt(oe)===V&&P<3;)oe++,P++;if(oe<N){var F=e.charCodeAt(oe),I=!1;if(F===ga||F===G||F===Ba){var L=oe+1;if(L>=N||e.charCodeAt(L)===V||e.charCodeAt(L)===H){for(var se=L;se<N&&(e.charCodeAt(se)===V||e.charCodeAt(se)===H);)se++;se>=N&&(I=!0)}}else if(F>=Ja&&F<=Ya){for(var ce=oe;ce<N&&e.charCodeAt(ce)>=Ja&&e.charCodeAt(ce)<=Ya;)ce++;if(ce<N&&(e.charCodeAt(ce)===Ia||e.charCodeAt(ce)===Ga)){var le=ce+1;if(le>=N||e.charCodeAt(le)===V||e.charCodeAt(le)===H){for(var ue=le;ue<N&&(e.charCodeAt(ue)===V||e.charCodeAt(ue)===H);)ue++;ue>=N&&(I=!0)}}}I&&(e=e.slice(0,ae).trimEnd())}}}if(t.inline)return dc(e,0,e.length,t,n);let de=[],R=0,fe=e.length;if(R===0&&!n.disableFrontmatter&&e.startsWith(`---`)){let t=eo(e);if(t&&t.hasValidYaml){if(n.preserveFrontmatter!==!1){let n=e.slice(0,t.endPos).trimEnd();de.push({type:J.frontmatter,text:n})}R=t.endPos}}for(;R<fe;){for(var pe=e.indexOf(`
51
+ `,R),me=pe<0?fe:pe;R<fe&&ys(e,R,me);)R=me<fe?me+1:me,R<fe&&(pe=e.indexOf(`
52
+ `,R),me=pe<0?fe:pe);if(R>=fe)break;e.charCodeAt(R),vs(e,R,me);let r=null;if(cs=e,ls=R,us=me,e.charCodeAt(R)!==Ka&&gs>=4&&!t.inHTML)r=ws(e,R);else if(e.charCodeAt(R)!==Ka){let i=R+_s,a=e.charCodeAt(i);a===fa?r=bs(e,R,t,n):a===da?r=Ts(e,R,t,n):a===W||a===ca?r=Cs(e,R,t):a===G||a===ga||a===_a?(r=Ss(e,R),!r&&(r=As(e,R,t,n))):a===Ba||a>=Ja&&a<=Ya?r=As(e,R,t,n):a===va?r=Ls(e,R,t,n):a===Va?r=Bs(e,R,t,n):a===la&&(r=Vs(e,R,t))}if(!r){for(var he=!1,ge=R;ge<me;ge++)if(e.charCodeAt(ge)===Va){he=!0;break}he&&(r=Bs(e,R,t,n))}if(r||=Us(e,R,t,n),r)r.node.type!==J.refCollection&&de.push(r.node),R=r.end;else{var _e=e.indexOf(`
53
+ `,R);R=_e<0?fe:_e+1}}return t.i=r,de}function mc(e,t,n,r){var i=$o(e,t);return i?{tagName:i.tag,tagLower:i.tag.toLowerCase(),attrs:i.rawAttrs,whitespaceBeforeAttrs:i.whitespaceBeforeAttrs,isSelfClosing:i.selfClosing,hasSpaceBeforeSlash:i.hasSpaceBeforeSlash,isClosing:i.isClosing,hasNewline:i.whitespaceBeforeAttrs.includes(`
54
+ `)||i.rawAttrs.includes(`
55
+ `),endPos:i.end}:null}function hc(e,t,n){uc=0,e=Ao(e),!t.refs&&(t.refs={}),t.j=es(e,t.refs,n);let r=pc(e,t,n);return t.refs&&Object.keys(t.refs).length>0?[{type:J.refCollection,refs:t.refs},...r]:r}var gc=/^\n+/,_c;try{_c=x.createElement(`div`).$$typeof}catch{_c=Symbol.for(`react.transitional.element`)}function vc(e,t,n){return{$$typeof:_c,type:e,key:n==null?null:``+n,ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}var yc=typeof x.createContext<`u`?x.createContext(void 0):void 0;function bc(e,t,n,r,i,a,o,s,c){switch(e.type){case J.blockQuote:{let i={key:n.key};return e.alert&&(i.className=`markdown-alert-`+a(e.alert.toLowerCase(),uo),e.children.unshift({attrs:{},children:[{type:J.text,text:e.alert}],c:!0,type:J.htmlBlock,tag:`header`})),r(`blockquote`,i,t(e.children,n))}case J.breakLine:return r(`br`,{key:n.key});case J.breakThematic:return r(`hr`,{key:n.key});case J.frontmatter:return s.preserveFrontmatter?r(`pre`,{key:n.key},e.text):null;case J.codeBlock:let h=e.lang?io(e.lang):``;return r(`pre`,{key:n.key},r(`code`,{...ro(e.attrs||{}),className:h?`language-${h} lang-${h}`:``},e.text));case J.codeInline:return r(`code`,{key:n.key},e.text);case J.footnoteReference:return r(`a`,{key:n.key,href:i(e.target,`a`,`href`)||void 0},r(`sup`,{key:n.key},e.text));case J.gfmTask:return r(`input`,{checked:e.completed,key:n.key,readOnly:!0,type:`checkbox`});case J.heading:return r(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n));case J.htmlBlock:{let h=e;if(s.tagfilter&&Lo(h.tag)){var l=``;if(h.attrs)for(var u in h.attrs){var d=h.attrs[u];d===!0?l+=` `+u:d!=null&&d!==!1&&(l+=` `+u+`="`+String(d)+`"`)}return r(`span`,{key:n.key},`<`+h.tag+l+`>`)}if(h.a&&h.c){let r=function(e){if((e.type===J.htmlSelfClosing||e.type===J.htmlBlock)&&e.b)return[];if(e.type===J.paragraph){let t=e.children;return t?t.flatMap(r):[]}return e.type===J.text?e.text?.trim()?[e]:[]:e.type===J.htmlBlock&&e.children?[{...e,children:e.children?.flatMap(r)}]:[e]},l=function(e){for(var t=0;t<e.length;t++)e[t].type===J.htmlBlock&&(e[t].c=!1),`children`in e[t]&&e[t].children&&l(e[t].children)},u=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.type===J.paragraph&&r.children)for(var i=r.children,a=0;a<i.length;a++){var o=i[a];if(o.type===J.htmlSelfClosing&&o.b&&o.tag.toLowerCase()===t){var s=e.slice(0,n);a>0&&s.push({type:J.paragraph,children:i.slice(0,a)});var c=[];if(a+1<i.length){var l=i.slice(a+1);l=l.filter(function(e){return!(e.type===J.htmlSelfClosing&&e.b)}),l.length>0&&(c=l)}return c=c.concat(e.slice(n+1)),{found:!0,beforeClose:s,afterClose:c}}}if((r.type===J.htmlSelfClosing||r.type===J.htmlBlock)&&r.b&&r.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,n),afterClose:e.slice(n+1)}}return{found:!1,beforeClose:e,afterClose:[]}},d=h.tag.toLowerCase(),g=Xo(d),_=h.children&&h.children.length>0,v=/<[a-z][^>]{0,100}>/i.test(h.a);if(g){let t=h.a.replace(RegExp(`\\s*</`+d+`>\\s*$`,`i`),``);return s.tagfilter&&(t=zo(t)),v?c(e.tag,{key:n.key,...ro(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}}):c(e.tag,{key:n.key,...ro(e.attrs||{})},t)}let y=RegExp(`^<${h.tag}(\\s|>)`,`i`).test(h.a);if(_&&!y&&s.tagfilter&&Ro(h.a))return c(e.tag,{key:n.key,...ro(e.attrs||{})},t(h.children,n));if(Zo(h.a)){let t=s.tagfilter?zo(h.a):h.a;return c(e.tag,{key:n.key,...ro(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}})}let b={slugify:e=>a(e,uo),sanitizer:i,tagfilter:!0},S=h.a.replace(/>\s+</g,`><`).replace(/\n+/g,` `).trim();if(RegExp(`^<${h.tag}(\\s[^>]*)?>(\\s*</${h.tag}>)?$`,`i`).test(S))return h.children&&h.children.length>0?c(e.tag,{key:n.key,...ro(e.attrs||{})},t(h.children,n)):c(e.tag,{key:n.key,...ro(e.attrs||{})});let C=hc(S,{inline:!1,refs:o,inHTML:!1},b);l(C);let w=h.tag.toLowerCase(),T=`</`+w+`>`,E=RegExp(`^<${h.tag}(\\s|>)`,`i`).test(S),D=S.toLowerCase().trimEnd().endsWith(T),O=E&&D;if(O&&_)return c(e.tag,{key:n.key,...ro(e.attrs||{})},t(h.children,n));if(O)return t(C.flatMap(r),n);var f=u(C,w);if(f.found&&f.afterClose.length>0){var p=f.beforeClose.flatMap(r),m=f.afterClose.flatMap(r);return vc(x.Fragment,{children:[c(e.tag,{key:n.key,...ro(e.attrs||{})},t(p,n)),t(m,n)]},null)}return c(e.tag,{key:n.key,...ro(e.attrs||{})},t(C.flatMap(r),n))}return mo(e.tag)?c(e.tag,{key:n.key,...ro(e.attrs||{})}):c(e.tag,{key:n.key,...ro(e.attrs||{})},e.children?t(e.children,n):``)}case J.htmlSelfClosing:{let t=e;if(s.tagfilter&&Lo(t.tag)){var l=``;if(t.attrs)for(var u in t.attrs){var d=t.attrs[u];d===!0?l+=` `+u:d!=null&&d!==!1&&(l+=` `+u+`="`+String(d)+`"`)}return r(`span`,{key:n.key},`<`+t.tag+l+` />`)}return c(e.tag,{key:n.key,...ro(e.attrs||{})})}case J.image:{let t=e.target==null?null:i(e.target,`img`,`src`);return r(`img`,{key:n.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:t||void 0})}case J.link:{let i={key:n.key};return e.target!=null&&(i.href=No(e.target)),e.title&&(i.title=e.title),r(`a`,i,t(e.children,n))}case J.table:{let i=e;return r(`table`,{key:n.key},r(`thead`,{key:`thead`},r(`tr`,null,i.header.map(function(e,a){return r(`th`,{key:a,style:i.align[a]==null?{}:{textAlign:i.align[a]}},t(e,n))}))),i.cells.length>0&&r(`tbody`,{key:`tbody`},i.cells.map(function(e,a){return r(`tr`,{key:a},e.map(function(e,a){return r(`td`,{key:a,style:i.align[a]==null?{}:{textAlign:i.align[a]}},t(e,n))}))})))}case J.text:return e.text;case J.textFormatted:return r(e.tag,{key:n.key},t(e.children,n));case J.orderedList:case J.unorderedList:return r(e.type===J.orderedList?`ol`:`ul`,{key:n.key,start:e.type===J.orderedList?e.start:void 0},e.items.map(function(e,i){return r(`li`,{key:i},t(e,n))}));case J.paragraph:return r(`p`,{key:n.key},t(e.children,n));case J.ref:return null;default:return null}}var xc=(e,t,n,r,i,a,o)=>{var s=e=>e.map(function(e){return`text`in e?e.text:``}),c=(l,u={})=>{var d=(u.renderDepth||0)+1;if(d>2500)return s(l);u.renderDepth=d;for(var f=u.key,p=[],m=!1,h=0;h<l.length;h++){u.key=h;var g=e?e(bc.bind(null,l[h],c,u,t,n,r,i,a,o),l[h],c,u):bc(l[h],c,u,t,n,r,i,a,o),_=typeof g==`string`;if(_&&m)p[p.length-1]+=g;else if(g!==null)if(Array.isArray(g))for(var v=0;v<g.length;v++)p.push(g[v]);else p.push(g);m=_}return u.key=f,u.renderDepth=d-1,p};return c},Sc=(e,t)=>{let n=Mo(t,e,void 0);return n?typeof n==`function`||typeof n==`object`&&`render`in n?n:Mo(t,`${e}.component`,e):e};function Cc(e,t){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||uo,i=n.sanitizer||oo,a=n.createElement,o=n.overrides&&Object.keys(n.overrides).length>0,s=e=>wc(e,{...n,wrapper:null});function c(e){for(var t in e){var n=e[t];if(typeof n==`string`&&n.length>0&&n.charCodeAt(0)===va&&(Bo.test(n)||Vo.test(n)||mc(n,0))){var r=s(n.trim());e[t]=t===`innerHTML`&&Array.isArray(r)?r[0]:r}}}function l(e,t,...r){var i=t||{},s=e;if(o){var c=Mo(n.overrides,e+`.props`,{});s=Sc(e,n.overrides),i={...i,...c,className:Po(i.className,c.className)||void 0}}if(!a){var l=i.key;return l!=null&&delete i.key,r.length===1?i.children=r[0]:r.length>1&&(i.children=r),vc(s,i,l)}return a(s,i,...r)}function u(e,t,...n){return t&&c(t),l(e,t,...n)}let d={...n,slugify:n.slugify?e=>n.slugify(e,uo):uo,sanitizer:i,tagfilter:n.tagfilter!==!1},f=e[0]&&e[0].type===J.refCollection?e[0].refs:{},p=xc(n.renderRule,l,i,r,f,n,u),m=p(e,{inline:n.forceInline,refs:f}),h=[];for(let e in f)e.charCodeAt(0)===ua&&h.push({identifier:e,footnote:f[e].target});if(h.length&&m.push(l(`footer`,{key:`footer`},h.map(function(e){let t=e.identifier.charCodeAt(0)===ua?e.identifier.slice(1):e.identifier,n=hc(e.footnote,{inline:!0,refs:f},d);return l(`div`,{id:r(t,uo),key:e.identifier},t+`: `,p(n,{inline:!0,refs:f}))}))),n.wrapper===null)return m;let g=n.wrapper||(n.forceInline?`span`:`div`),_;if(m.length>1||n.forceWrapper)_=m;else return m.length===1?m[0]:null;var v=n.wrapperProps?{...n.wrapperProps}:{};return v.children=_,vc(g,v,`outer`)}function wc(e=``,t={}){let n={...t||{}};n.overrides=n.overrides||{},n.slugify;let r=n.sanitizer||oo;function i(e){let t=n.forceInline||!n.forceBlock&&!Y.test(e),i={...n,slugify:n.slugify?e=>n.slugify(e,uo):uo,sanitizer:r,tagfilter:n.tagfilter!==!1},o=e;if(!t){let e=o.length;for(;e>0&&(o[e-1]===`
56
+ `||o[e-1]===`\r`);)e--;o=o.slice(0,e),o=`${o.replace(gc,``)}
57
+
58
+ `}if(n.optimizeForStreaming){var s=o.lastIndexOf(`<`);s!==-1&&o.indexOf(`>`,s)===-1&&(o=o.slice(0,s)),s=e.lastIndexOf(`<`),s!==-1&&e.indexOf(`>`,s)===-1&&(e=e.slice(0,s))}return Cc(hc(t?e:o,{inline:t,refs:a},i),{...i,forceInline:t})}let a={};return i(e)}var Tc=({children:e,options:t,...n})=>{if(!(typeof x.useContext<`u`)){let r={...t,overrides:{...t?.overrides},wrapperProps:{...t?.wrapperProps,...n}};return wc(e??``,r)}let r=x.useContext(yc),i=x.useMemo(()=>({...r,...t,overrides:{...r?.overrides,...t?.overrides},wrapperProps:{...r?.wrapperProps,...t?.wrapperProps,...n}}),[r,t,n]),a=e??``;return x.useMemo(()=>wc(a,i),[a,i])},Ec={generalConditionsContainer:`_generalConditionsContainer_55hjg_1`,generalConditions:`_generalConditions_55hjg_1`,generalConditionsHeader:`_generalConditionsHeader_55hjg_15`,generalConditionsBody:`_generalConditionsBody_55hjg_26`,generalConditionsAccept:`_generalConditionsAccept_55hjg_35`},Dc=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),X=o(((e,t)=>{t.exports=Dc()}))(),Oc=()=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1rem`,height:`1rem`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})}),kc=()=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1rem`,height:`1rem`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})}),Ac=`general-conditions.header`,jc=`general-conditions.body`,Mc=`general-conditions.accept-conditions-note`,Nc=()=>{let e=B(),[t,n]=(0,x.useState)(!1),r=()=>n(!t),i=e=>{e.key===`ArrowDown`||e.key===`ArrowRight`?n(!0):e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`Escape`?n(!1):(e.key===`Enter`||e.key===`Space`||e.key===` `)&&r()},a=e(Ac),o=e(Mc);return(0,X.jsxs)(`div`,{className:z(Ec.generalConditionsContainer,`chat__generalConditions`),children:[!!a?.length&&(0,X.jsxs)(`div`,{className:Ec.generalConditions,children:[(0,X.jsxs)(`div`,{role:`button`,onClick:r,onKeyDown:i,tabIndex:0,className:z(Ec.generalConditionsHeader,`chat__generalConditions__header`),"aria-controls":`general-conditions-body`,"aria-expanded":t?`true`:`false`,"aria-pressed":t?`true`:`false`,children:[(0,X.jsx)(Tc,{children:a}),t?(0,X.jsx)(kc,{}):(0,X.jsx)(Oc,{})]}),(0,X.jsx)(`div`,{className:z(Ec.generalConditionsBody,`chat__generalConditions__body`),id:`general-conditions-body`,role:`region`,tabIndex:-1,children:t&&(0,X.jsx)(Tc,{children:e(jc)||``})})]}),!!o?.length&&(0,X.jsx)(`div`,{className:z(Ec.generalConditionsAccept,`chat__generalConditions__accept`),tabIndex:0,children:(0,X.jsx)(Tc,{children:e(Mc)||``})})]})},Z={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`,fadeInLeft:`_fadeInLeft_1rxi5_1`,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`},Pc=(e,t)=>{(0,x.useEffect)(()=>{let n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener(`mousedown`,n),()=>document.removeEventListener(`mousedown`,n)},[e,t])};function Fc(e,t){let n=null,r=null,i=(...i)=>{r=i,n&&clearTimeout(n),n=setTimeout(()=>{e(...r),n=null,r=null},t)};return i.flush=()=>{n&&r&&(clearTimeout(n),e(...r),n=null,r=null)},i}function Ic(e,t){let n=0,r=null;return((...i)=>{let a=Date.now(),o=a-n;o>=t?(n=a,e(...i)):(r&&clearTimeout(r),r=setTimeout(()=>{n=Date.now(),e(...i)},t-o))})}var Lc={container:`_container_131ib_1`,categoryContainer:`_categoryContainer_131ib_13`,categoryButton:`_categoryButton_131ib_20`,active:`_active_131ib_35`,commentTextarea:`_commentTextarea_131ib_44`},Rc=(e,t,n)=>{(0,x.useEffect)(()=>{if(e){let e=()=>{let e=[`button:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`,`a[href]`,`input:not([disabled])`,`select:not([disabled])`].join(`,`),r=t.current?Array.from(t.current.querySelectorAll(e)):[],i=n.current?Array.from(n.current.querySelectorAll(e)):[];return[...r,...i]},r=t=>{if(t.key===`Tab`){let n=e();if(n.length>0){let e=n[0],r=n[n.length-1],i=document.activeElement;!t.shiftKey&&i===r?(t.preventDefault(),e.focus()):t.shiftKey&&i===e&&(t.preventDefault(),r.focus())}}};return document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`keydown`,r,!0)}}},[e,t,n])},zc=({open:e,actionsRef:t,reaction:n,onReaction:r})=>{let i=B(),a=(0,x.useRef)(null),o=Fc(e=>{r({...n,comment:e})},300);(0,x.useEffect)(()=>()=>o.flush(),[o]),Rc(e,t,a);let s=e=>{r({...n,category:n.category===e?void 0:e})};return e?(0,X.jsxs)(`div`,{ref:a,className:Lc.container,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`bad-reaction-title`,children:[(0,X.jsx)(`h2`,{id:`bad-reaction-title`,children:i(`bot-bubble.reaction.say-more`)}),(0,X.jsx)(`div`,{className:Lc.categoryContainer,role:`radiogroup`,children:[`WRONG_INFORMATION`,`MISSING_INFORMATION`,`OLD_INFORMATION`,`UNCLEAR`,`OFF_TOPIC`].map(e=>(0,X.jsx)(`button`,{className:z(Lc.categoryButton,n?.category===e&&Lc.active),onClick:()=>s(e),"aria-pressed":n?.category===e,"aria-label":i(`bot-bubble.reaction.category.${e}`),tabIndex:0,role:`radio`,children:i(`bot-bubble.reaction.category.${e}`)},e))}),(0,X.jsx)(`textarea`,{id:`comment`,name:`comment`,placeholder:i(`bot-bubble.reaction.comment`),defaultValue:n?.comment,onChange:e=>o(e.target.value),className:Lc.commentTextarea,rows:3,"aria-label":i(`bot-bubble.reaction.comment`)})]}):null},Bc={botMessageActionContainer:`_botMessageActionContainer_g6hpe_1`,alwaysVisible:`_alwaysVisible_g6hpe_15`,active:`_active_g6hpe_19`,botMessageActionInnerContainer:`_botMessageActionInnerContainer_g6hpe_27`,header:`_header_g6hpe_52`,botMessageActions:`_botMessageActions_g6hpe_57`,reported:`_reported_g6hpe_68`,action:`_action_g6hpe_72`,anyReport:`_anyReport_g6hpe_120`,closeButton:`_closeButton_g6hpe_136`},Vc=({isSubmitting:e,onClick:t})=>{let n=B();return(0,X.jsx)(`button`,{className:z(Bc.action,Bc.closeButton,`tooltip--bottom-left`),"aria-label":n(`bot-bubble.reaction.close`),"data-title":n(`bot-bubble.reaction.close`),tabIndex:0,onClick:t,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:e?(0,X.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`}):(0,X.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`})})})},Hc=({alwaysVisible:e,senderType:t,reaction:n,botMessageRef:r,message:i,onReaction:a})=>{let o=B(),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(!1),p=(0,x.useRef)(null),m=(0,x.useRef)(null);Pc(p,()=>{f(!1)});let h=e=>{e.key===`Escape`&&f(!1)};(0,x.useEffect)(()=>(document.addEventListener(`keydown`,h),()=>{document.removeEventListener(`keydown`,h)}),[]),(0,x.useEffect)(()=>{d&&p.current?.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`})},[d]);let g=e=>{m.current&&clearTimeout(m.current),u(!0),a(e),m.current=setTimeout(()=>{u(!1)},1e3)},_=(0,x.useCallback)(async()=>{if(r.current)try{c(!0);let e=r.current.innerHTML,t=r.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([t],{type:`text/plain`})})]),await new Promise(e=>setTimeout(e,1500))}finally{c(!1)}},[r]),v=()=>{f(!1),a(n?.type===`GOOD`?null:{type:`GOOD`})},y=()=>{a({...i.reaction,type:`BAD`}),f(!d)},b=e=>t=>{(t.key===`Enter`||t.key===` `)&&e()};return(0,X.jsx)(`div`,{ref:p,className:z(Bc.botMessageActionContainer,e&&Bc.alwaysVisible,d&&Bc.active),"aria-hidden":`true`,children:(0,X.jsxs)(`div`,{className:z(Bc.botMessageActionInnerContainer,e&&Bc.alwaysVisible,d&&Bc.active,n&&Bc.reported),role:`group`,"aria-label":o(`bot-bubble.actions.label`),children:[(0,X.jsxs)(`div`,{className:Bc.header,children:[(0,X.jsxs)(`div`,{className:z(Bc.botMessageActions,n&&Bc.reported),children:[t===na.BOT&&(0,X.jsx)(`button`,{className:z(Bc.action,n?.type&&Bc.anyReport,n?.type===`GOOD`&&Bc.reported,`tooltip--top-right`),tabIndex:0,"aria-label":o(n?.type===`GOOD`?`bot-bubble.reaction.remove`:`bot-bubble.reaction.good`),"aria-pressed":n?.type===`GOOD`,"data-title":o(n?.type===`GOOD`?`bot-bubble.reaction.remove`:`bot-bubble.reaction.good`),onPointerDown:v,onKeyDown:b(v),children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:n?.type===`GOOD`?(0,X.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`}):(0,X.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`})})}),t===na.BOT&&(0,X.jsx)(`button`,{className:z(Bc.action,n?.type&&Bc.anyReport,n?.type===`BAD`&&Bc.reported,`tooltip--top-right`),tabIndex:0,"aria-label":o(`bot-bubble.reaction.bad`),"aria-pressed":n?.type===`BAD`,"data-title":o(`bot-bubble.reaction.bad`),onPointerDown:y,onKeyDown:b(y),children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:n?.type===`BAD`?(0,X.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`}):(0,X.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`})})}),(0,X.jsx)(`button`,{className:z(Bc.action,`tooltip--top-right`),style:{visibility:d?`hidden`:`visible`},tabIndex:0,"aria-label":o(`bot-bubble.copy`),"data-title":o(`bot-bubble.copy`),onClick:_,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:s?(0,X.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`}):(0,X.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`})})})]}),d&&(0,X.jsx)(Vc,{isSubmitting:l,onClick:()=>f(!1)})]}),i.reaction&&(0,X.jsx)(zc,{open:d,actionsRef:p,reaction:i.reaction,onReaction:g})]})})},Uc=(0,x.forwardRef)(({message:e,isAnimated:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,children:a,onReaction:o},s)=>{let c=B(),l=(0,x.useRef)(null),u=e.sender.type===at.BOT;return(0,X.jsxs)(`li`,{ref:s,className:z(Z.message,Z.messageBot,n&&Z.lastMessage,r&&Z.messageBotFirst,i&&Z.messageBotLast,`chat__bubbleContainer`,t&&Z.messageBotAnimated,t&&`chat__bubbleContainer--animated`,u?`chat__botBubbleContainer`:`chat__agentBubbleContainer`,r&&`chat__bubbleContainer--first`,i&&`chat__bubbleContainer--last`),role:`article`,children:[(0,X.jsx)(`img`,{className:z(Z.avatar,u?Z.botAvatar:Z.agentAvatar,`chat__avatar`,u?`chat__botAvatar`:`chat__agentAvatar`),src:`${e.sender.avatar}`,alt:u?`Bot`:`Agent`,referrerPolicy:`no-referrer`,"aria-hidden":`true`}),(0,X.jsxs)(`div`,{className:Z.messageContainer,children:[(0,X.jsx)(`div`,{ref:l,className:z(Z.bubble,Z.bubbleLeft,`chat__bubble`,u?`chat__botBubble`:`chat__agentBubble`),tabIndex:0,role:`group`,"aria-label":c(u?`bot-bubble.label`:`agent-bubble.label`),children:(0,X.jsx)(`div`,{className:z(Z.leftText),children:a})}),o&&(0,X.jsx)(Hc,{alwaysVisible:n&&i,senderType:e.sender.type,reaction:e.reaction,message:e,botMessageRef:l,onReaction:o})]})]})}),Wc={sourceList:`_sourceList_1sc0q_1`,source:`_source_1sc0q_1`,label:`_label_1sc0q_39`},Gc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Kc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),qc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Jc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Yc=({type:e,...t})=>{switch(e){case`WEBSITE`:return(0,X.jsx)(Gc,{...t});case`PDF`:return(0,X.jsx)(Jc,{...t});case`DOCX`:return(0,X.jsx)(Kc,{...t});default:return(0,X.jsx)(qc,{...t})}},Xc=({sources:e,onLinkClick:t})=>{let n=B(),r=e=>()=>{t(e.url)},i=e=>n=>{(n.key===`Enter`||n.key===` `)&&t(e.url)};return e.length?(0,X.jsx)(`ul`,{className:Wc.sourceList,"aria-label":n(`bot-bubble.sources`),children:e.map(e=>(0,X.jsx)(`li`,{className:Wc.source,children:(0,X.jsxs)(`a`,{role:`button`,tabIndex:0,"aria-label":`${n(`bot-bubble.source.open`)}: ${e.label}`,onClick:r(e),onKeyDown:i(e),children:[(0,X.jsx)(Yc,{type:e.type,"aria-hidden":`true`}),(0,X.jsx)(`div`,{className:Wc.label,children:e.label})]})},e.url))}):null},Zc={button:`_button_3ui4g_1`,buttonDefault:`_buttonDefault_3ui4g_13`,buttonPrimary:`_buttonPrimary_3ui4g_28`},Qc=({className:e,children:t,...n})=>(0,X.jsx)(`button`,{className:z(Zc.button,e),type:`button`,role:`button`,...n,children:t}),$c={title:`_title_137pi_1`,buttons:`_buttons_137pi_6`,button:`_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`},el=({buttons:e,onButtonClick:t})=>(0,X.jsx)(`div`,{className:z($c.buttons,`chat__bubbleButtons`),children:e.map((e,n)=>(0,X.jsx)(Qc,{className:z($c.button,`chat__bubbleButton`),onClick:()=>t(e),children:e.title},n))}),tl=`newtab#`,nl=({markdown:e,markdownOptions:t={},onLinkClick:n})=>{let r=e=>t=>(t.preventDefault(),e&&n(e),!1),i=({title:e,href:t,children:n})=>t.indexOf(tl)===0?(0,X.jsx)(`a`,{href:t.slice(7),title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}):(0,X.jsx)(`a`,{onClick:r(t),title:e,href:t,children:n});return(0,X.jsx)(Tc,{options:{...t,overrides:{a:i}},children:e})},rl=({text:e,onLinkClick:t})=>e?(0,X.jsx)(`div`,{children:(0,X.jsx)(nl,{markdown:e,onLinkClick:t})}):null,il=({title:e})=>e?(0,X.jsx)(`h1`,{className:$c.title,children:e}):null,al=({title:e,text:t,buttons:n,onButtonClick:r,onLinkClick:i})=>e?.length||t?.length||n?.length?(0,X.jsxs)(`div`,{className:z(Z.bubbleContent),children:[(0,X.jsx)(il,{title:e}),(0,X.jsx)(rl,{text:t,onLinkClick:i}),(0,X.jsx)(el,{buttons:n,onButtonClick:r})]}):null,ol=({alt:e,imageUrl:t,itemUrl:n,hasBody:r})=>t?n?n.indexOf(`youtube.com`)>-1?(0,X.jsx)(`div`,{className:$c.video_container,children:(0,X.jsx)(`iframe`,{className:z($c.video,{[$c.only]:!r}),title:`Youtube`,width:`100%`,src:n+`?rel=0`,frameBorder:`0`,allowFullScreen:!0})}):(0,X.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,children:(0,X.jsx)(`div`,{className:$c.imageContainer,children:(0,X.jsx)(`img`,{className:z($c.image,{[$c.only]:!r}),src:t,alt:e})})}):(0,X.jsx)(`div`,{className:$c.imageContainer,children:(0,X.jsx)(`img`,{className:z($c.image,{[$c.only]:!r}),src:t,alt:e})}):null,sl=({title:e,text:t,imageUrl:n,itemUrl:r,buttons:i,sources:a,onButtonClick:o,onLinkClick:s})=>{let c=!!e?.length||!!t?.length||!!i?.length;return(0,X.jsxs)(`div`,{className:z($c.detailMessage),children:[(0,X.jsx)(ol,{hasBody:c,imageUrl:n,itemUrl:r,alt:e||``}),c&&(0,X.jsx)(al,{title:e,text:t,buttons:i,onLinkClick:s,onButtonClick:o}),(0,X.jsx)(Xc,{sources:a,onLinkClick:s})]})},cl=(0,x.forwardRef)(({isFirstMessageBySender:e,isLastMessageBySender:t,children:n},r)=>{let i=B();return(0,X.jsx)(`li`,{ref:r,className:z(Z.message,Z.messageGuest,e&&Z.messageGuestFirst,t&&Z.messageGuestLast,`chat__bubbleContainer`,`chat__guestBubbleContainer`,e&&`chat__bubbleContainer--first`,t&&`chat__bubbleContainer--last`),role:`article`,children:(0,X.jsx)(`div`,{className:z(Z.bubble,Z.bubbleRight,`chat__bubble`,`chat__guestBubble`),tabIndex:0,role:`group`,"aria-label":i(`guest-bubble.label`),children:(0,X.jsx)(`div`,{className:z(Z.rightText),children:n})})})}),ll=()=>(0,x.useMemo)(()=>Qt(),[]),ul={markdown:`_markdown_nw7vg_1`},dl=`source-info-reference`,fl=({actionId:e,markdown:t,sources:n,onLinkClick:r})=>{let i=ll(),a=$i(),o=pl(),s=ea(e=>{let t=e.chat.sourceInfos;if(t?.type===`loaded`||t?.type===`loading`)return t.chunkId}),c=t=>n=>{let r=n.key;(r===`ArrowDown`||r===`ArrowRight`||r===`Enter`||r===` `||r===`Space`)&&(n.stopPropagation(),a(Mi(i,e,t)))},l=t=>()=>{a(Mi(i,e,t))};return(0,x.useLayoutEffect)(()=>{document.querySelectorAll(`.${dl}`).forEach(e=>{let t=e.previousSibling;t&&t.nodeType===Node.TEXT_NODE&&t.textContent?.endsWith(` `)&&t.textContent?.trim().length&&e.classList.add(`${dl}--before-space`);let n=e.nextSibling;n&&n.nodeType===Node.TEXT_NODE&&n.textContent?.startsWith(` `)&&n.textContent?.trim().length&&e.classList.add(`${dl}--after-space`)})},[t]),(0,X.jsxs)(`div`,{className:Z.bubbleContent,children:[(0,X.jsx)(`div`,{className:ul.markdown,children:(0,X.jsx)(nl,{markdown:t,onLinkClick:r,markdownOptions:{renderRule(e,t,n,r){if(t.type===J.footnoteReference){let e=t.text===s;return(0,X.jsx)(`span`,{className:z(Z.sourceInfoReference,e&&Z.sourceInfoReferenceActive,dl),children:(0,X.jsx)(`a`,{type:`button`,tabIndex:0,onClick:l(t.text),onKeyDown:c(t.text),children:o(t.text)})},r.key)}return e()}}})}),(0,X.jsx)(Xc,{sources:n,onLinkClick:r})]})},pl=()=>{let e=[];return t=>{let n=e.indexOf(t);return n>-1?n+1:(e.push(t),e.length)}},ml={text:`_text_gp0s0_1`,command:`_command_gp0s0_5`},hl=({text:e,commands:t=[]})=>{let n=t.find(t=>e.startsWith(`/${t}`)),r=n?e.slice(n.length+1):e;return(0,X.jsxs)(`div`,{children:[n&&(0,X.jsxs)(`code`,{className:ml.command,children:[`/`,n]}),r.split(`
59
+ `).map((e,t)=>(0,X.jsxs)(`span`,{className:ml.text,children:[e,(0,X.jsx)(`br`,{})]},t))]})},gl=({text:e,commands:t,sources:n,onLinkClick:r})=>(0,X.jsxs)(`div`,{className:Z.bubbleContent,children:[(0,X.jsx)(hl,{text:e,commands:t}),(0,X.jsx)(Xc,{sources:n,onLinkClick:r})]}),_l=(0,x.forwardRef)(({message:e,commands:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,onReaction:a,onButtonClick:o,onLinkClick:s},c)=>{let l=vl(e._id,e,t,o,s),u=t=>{a(e._id,t)};switch(e.sender.type){case at.GUEST:return(0,X.jsx)(cl,{ref:c,isFirstMessageBySender:r,isLastMessageBySender:i,children:l});default:return(0,X.jsx)(Uc,{ref:c,message:e,isAnimated:!1,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,onReaction:u,children:l})}}),vl=(e,t,n,r,i)=>{switch(t.type){case st.TEXT:return(0,X.jsx)(gl,{text:t.text,commands:n,sources:t.sources||[],onLinkClick:i});case st.DETAIL:{let e=t;return(0,X.jsx)(sl,{title:e.title,text:e.text,imageUrl:e.imageUrl,itemUrl:e.itemUrl,buttons:e.buttons,sources:t.sources||[],onButtonClick:r,onLinkClick:i})}case st.MARKDOWN:{let n=t;return(0,X.jsx)(fl,{actionId:e,markdown:n.markdown,sources:n.sources||[],onLinkClick:i})}}},yl=x.memo(_l,(e,t)=>e.message._id===t.message._id&&e.message.reaction===t.message.reaction&&e.isLastMessage===t.isLastMessage&&e.isFirstMessageBySender===t.isFirstMessageBySender&&e.isLastMessageBySender===t.isLastMessageBySender),bl={ticontainer:`_ticontainer_xg0dn_1`,tiblock:`_tiblock_xg0dn_5`,tidot:`_tidot_xg0dn_12`,mercuryTypingAnimation:`_mercuryTypingAnimation_xg0dn_1`},xl=({isTyping:e=!1})=>(0,X.jsx)(`div`,{className:bl.ticontainer,children:(0,X.jsx)(`div`,{className:bl.tiblock,children:e?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`div`,{className:z(bl.tidot,`chat__typingIndicator`),"aria-hidden":`true`}),(0,X.jsx)(`div`,{className:z(bl.tidot,`chat__typingIndicator`),"aria-hidden":`true`}),(0,X.jsx)(`div`,{className:z(bl.tidot,`chat__typingIndicator`),"aria-hidden":`true`})]}):null})}),Sl=Object.assign({_id:`typing-indicator`},new ft(``,new lt)),Cl=({messages:e,isBotTyping:t,commands:n,onTranscriptItemReaction:r,onButtonClick:i,onLinkClick:a})=>{let o=B(),s=(0,x.useRef)(0),c=(0,x.useRef)(!0),l=(0,x.useRef)(null),u=(0,x.useRef)(null),d=(0,x.useRef)(null),f=ea(e=>e.settings.enableGeneralConditions);(0,x.useLayoutEffect)(()=>{if(e.length&&l.current&&(s.current<e.length||t)){if(u.current){let e=u.current.offsetTop;l.current.scrollTop=e}else if(d.current){let e=d.current.offsetTop;l.current.scrollTop=e}c.current&&=!1,s.current=e.length}},[e,c,t]);let p,m=e.length;return(0,X.jsxs)(`div`,{ref:l,className:z(ia.messageContainer,`chat__messageContainer`),style:{scrollBehavior:e.length&&c.current?`auto`:`smooth`},id:`MessageContainer`,"aria-label":o(`conversation.label`),children:[f&&(0,X.jsx)(Nc,{}),(0,X.jsxs)(`ul`,{className:ia.messages,role:`list`,children:[e.map((o,s)=>{let c=wl(o,p),l=Tl(o,s,e,t);p=o.sender.type;let u=s+1===m,f=o._id||`added-${s}`;return(0,X.jsx)(yl,{ref:u?d:null,message:o,commands:n,isLastMessage:u,isFirstMessageBySender:c,isLastMessageBySender:l,onButtonClick:i,onLinkClick:a,onReaction:r},f)}),t&&(0,X.jsx)(Uc,{ref:u,message:Sl,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:p!==at.BOT,isLastMessageBySender:!0,children:(0,X.jsx)(xl,{isTyping:!0})},`last`)]})]})},wl=(e,t)=>!t||t!==e.sender.type,Tl=(e,t,n,r)=>{let i=e.sender.type,a=n.length;return t+1===a?!(i===at.BOT&&r):i!==n.at(t+1)?.sender.type},El={bottomSheet:`_bottomSheet_jp8dl_1`,bottomSheetOpen:`_bottomSheetOpen_jp8dl_15`,"slide-in":`_slide-in_jp8dl_1`,bottomSheetClose:`_bottomSheetClose_jp8dl_20`,"slide-out":`_slide-out_jp8dl_1`},Dl={container:`_container_xc2nx_1`},Ol=({contentUrl:e})=>{let t=ea(e=>e.connection.sessionId),[n,r]=(0,x.useState)(!1);(0,x.useEffect)(()=>{r(t=>t||!!e)},[e]);let i=(0,x.useMemo)(()=>{if(e&&t){let n=new URL(e,document.baseURI);return n.searchParams.set(`sessionId`,t),n.toString()}else return},[e,t]);return(0,X.jsx)(`div`,{className:z(Dl.container,El.bottomSheet,{[El.bottomSheetOpen]:!!e,[El.bottomSheetClose]:n&&!e}),children:i&&(0,X.jsx)(`iframe`,{title:`Drawer`,id:`form-drawer`,src:i,className:Dl.iframe})})},kl={container:`_container_1634s_1`},Al=({title:e,href:t,children:n})=>(0,X.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),jl=()=>{let e=B()(`powered-by`);return e&&e.length?(0,X.jsx)(`div`,{className:z(kl.container,`chat__poweredBy`),children:(0,X.jsx)(Tc,{options:{overrides:{a:Al}},children:e})}):null},Ml=(e,t)=>{let n=new Map,r=0;return e.replace(/^#{1,6}\s+/gm,``).replace(/(\*\*|__)(.*?)\1/g,`$2`).replace(/(\*|_)(.*?)\1/g,`$2`).replace(/\[([^\]]+)\]\([^)]+\)/g,`$1`).replace(/\[\^([^\]]+)\]/g,(e,i)=>(n.has(i)||n.set(i,++r),`(${t} ${n.get(i)})`)).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,`
60
+
61
+ `).trim()},Nl=({messages:e,isBotTyping:t})=>{let n=(0,x.useRef)(``),r=B(),i=r(`bot-bubble.footnote`),a=e=>{switch(e.type){case`TEXT`:return e.text||``;case`MARKDOWN`:return Ml(e.markdown||``,i);case`DETAIL`:return e.text||e.title||``;default:return``}},o=(()=>{if(t)return r(`chatbot.typing`)??`Chatbot is typing`;let n=[...e].reverse().find(e=>e.sender.type===na.BOT);return n?a(n):``})();return(0,x.useEffect)(()=>{o!==n.current&&(n.current=o)},[o]),(0,X.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`sr-only`,children:o})},Pl=({className:e,children:t,...n})=>(0,X.jsx)(Qc,{className:z(Zc.buttonDefault,e),type:`button`,...n,children:t}),Q=({className:e,children:t,...n})=>(0,X.jsx)(Qc,{className:z(Zc.buttonPrimary,e),...n,children:t}),$={container:`_container_h23mk_1`,formContainer:`_formContainer_h23mk_17`,emailInput:`_emailInput_h23mk_22`,description:`_description_h23mk_52`,actions:`_actions_h23mk_57`,validationError:`_validationError_h23mk_67`,submitted:`_submitted_h23mk_74`},Fl=({visible:e,onEmailExport:t,onClose:n})=>{let r=B(),[i,a]=(0,x.useState)(void 0),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(void 0),u=(0,x.useRef)(null);(0,x.useEffect)(()=>{e?(u.current?.focus(),s(!1),a(e)):i===!0&&a(!1)},[e,i]);let d=e=>{e.preventDefault(),c&&c.length>0&&(t(c),s(!0),setTimeout(n,3*1e3))},f=e=>{let t=e.target.value.trim();l(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(t)?t:``)};return(0,X.jsxs)(`div`,{className:z($.container,El.bottomSheet,{[El.bottomSheetOpen]:i===!0,[El.bottomSheetClose]:i===!1}),children:[(0,X.jsx)(`h2`,{children:r(`export-transcript.email.title`)}),(0,X.jsx)(Tc,{className:$.description,children:r(`export-transcript.email.description`)||``}),(0,X.jsxs)(`form`,{onSubmit:d,className:$.formContainer,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`input`,{disabled:o,ref:u,type:`email`,placeholder:r(`export-transcript.email.placeholder`),className:$.emailInput,onChange:f}),c?.length===0?(0,X.jsx)(`div`,{className:$.validationError,children:r(`export-transcript.email.invalid`)}):null]}),(0,X.jsxs)(`div`,{className:$.actions,children:[(0,X.jsx)(Pl,{onClick:n,children:r(`export-transcript.email.cancel`)}),(0,X.jsx)(Q,{type:`submit`,disabled:o||c===void 0||c.length===0,children:r(`export-transcript.email.send`)})]})]}),o&&(0,X.jsx)(`div`,{className:$.submitted,children:r(`export-transcript.email.success`)})]})},Il={inputContainer:`_inputContainer_fi5ao_1`},Ll={blockUserInput:`_blockUserInput_pot9c_1`,"append-animate":`_append-animate_pot9c_1`},Rl=({visible:e})=>{let t=B();return e?(0,X.jsx)(`div`,{className:z(Ll.blockUserInput,`chat__blockUserInput`),children:t(`block-user-input.title`)}):null},zl={commandsDropdown:`_commandsDropdown_fmklx_1`,commands:`_commands_fmklx_1`,command:`_command_fmklx_1`,commandActive:`_commandActive_fmklx_49`},Bl=(e,t,n,r,i)=>{(0,x.useEffect)(()=>{let a=a=>{if(e.length)switch(a.key){case`Enter`:n(e[t]);break;case`ArrowUp`:r(t=>t>0?t-1:e.length-1);break;case`ArrowDown`:r(t=>t<e.length-1?t+1:0);break;case`Escape`:i([]);break;default:break}};return document.addEventListener(`keydown`,a),()=>{document.removeEventListener(`keydown`,a)}},[e,t,n,r,i])},Vl=({text:e,commands:t,onSelectCommand:n,onVisibilityChange:r})=>{let i=(0,x.useRef)(null),a=B(),[o,s]=(0,x.useState)([]),[c,l]=(0,x.useState)(Hl(t)),[u,d]=(0,x.useState)(0),f=e=>n(`/${e}`);return Pc(i,()=>s([])),Bl(o,u,f,d,s),(0,x.useEffect)(()=>{l(Hl(t))},[t]),(0,x.useEffect)(()=>{let n=e.length||0;n===0||n>c||!e.startsWith(`/`)?s([]):s(t.filter(Ul(e))),d(0)},[t,e,c]),(0,x.useEffect)(()=>{r(!!o.length)},[o,r]),o.length?(0,X.jsx)(`div`,{ref:i,className:zl.commandsDropdown,children:(0,X.jsx)(`ul`,{id:`command-list`,className:zl.commands,role:`listbox`,children:o.map((e,t)=>(0,X.jsxs)(`li`,{className:z([zl.command,u===t&&zl.commandActive]),role:`option`,onClick:()=>f(e),onMouseOver:()=>d(t),children:[(0,X.jsxs)(`h1`,{children:[`/`,e]}),(0,X.jsx)(`p`,{children:a(`commands.${e}`)})]},e))})}):null},Hl=e=>Math.max(...e.map(e=>e.length+1)),Ul=e=>t=>{let n=`/${t}`;return n.startsWith(e)&&n.length>=e.length},Wl={callToActionContainer:`_callToActionContainer_d8izj_1`,"append-animate":`_append-animate_d8izj_1`,callToActionTitle:`_callToActionTitle_d8izj_23`,rateOverlay:`_rateOverlay_d8izj_30`,body:`_body_d8izj_52`,footer:`_footer_d8izj_60`,actions:`_actions_d8izj_75`,bubbles:`_bubbles_d8izj_89`,rateFeedbackBotBubble:`_rateFeedbackBotBubble_d8izj_118`,rateFeedbackGuestBubble:`_rateFeedbackGuestBubble_d8izj_124`,avatar:`_avatar_d8izj_130`,fadeInLeft:`_fadeInLeft_d8izj_1`,bubble:`_bubble_d8izj_89`,appear:`_appear_d8izj_1`,botBubble:`_botBubble_d8izj_156`,guestBubble:`_guestBubble_d8izj_167`,rateText:`_rateText_d8izj_186`,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`},Gl=({value:e,index:t,count:n,readonly:r,onHover:i,onClick:a})=>{let o=e=>{a&&e.key===`Enter`&&a()};return(0,X.jsx)(`li`,{className:z(Wl.star,{[Wl.starReadonly]:r},`chat__conversationRating__star`),children:(0,X.jsx)(`div`,{role:`radio`,"aria-checked":e>t?`true`:`false`,"aria-posinset":t+1,"aria-setsize":n,tabIndex:0,onMouseOver:i,onKeyDown:o,onClick:a,children:(0,X.jsx)(`span`,{role:`img`,"aria-label":`Star`,className:z(Wl.starIcon),children:(0,X.jsx)(`svg`,{viewBox:`64 64 896 896`,focusable:`false`,"data-icon":`star`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,children:(0,X.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`})})})})})},Kl=5,ql=({value:e,size:t,readonly:n=!1,onChange:r})=>{let[i,a]=(0,x.useState)(void 0),o=()=>{a(void 0)},s=e=>()=>{n||a(e+1)},c=t=>()=>{r&&!n&&(r(t===0&&e===1?0:t+1),a(void 0))};return(0,X.jsx)(`ul`,{tabIndex:0,role:`radiogroup`,className:z(Wl.stars,{[Wl.starsSmall]:t===`small`,[Wl.starsLarge]:t===`large`},`chat__conversationRating__stars`,{chat__conversationRating__stars__small:t===`small`,chat__conversationRating__stars__large:t===`large`}),onMouseOut:o,children:Array(Kl).fill(0).map((t,r)=>(0,X.jsx)(Gl,{value:i===void 0?e:i,index:r,count:Kl,readonly:n,onHover:s(r),onClick:c(r)},r))})},Jl=({visible:e,onRate:t})=>{let n=B();return e?(0,X.jsxs)(`div`,{className:z(Wl.callToActionContainer,`chat__conversationRating__callToAction`),children:[(0,X.jsx)(`div`,{className:z(Wl.callToActionTitle,`chat__conversationRating__callToAction__title`),children:n(`conversation-rating.call-to-action.title`)}),(0,X.jsx)(ql,{value:0,size:`small`,onChange:t})]}):null},Yl=({isFirstMessageBySender:e,isLastMessageBySender:t,children:n})=>(0,X.jsxs)(`div`,{className:z(Z.message,Z.messageBot,e&&Z.messageBotFirst,t&&Z.messageBotLast,`chat__bubbleContainer`,`chat__botBubbleContainer`,e&&`chat__bubbleContainer--first`,t&&`chat__bubbleContainer--last`),children:[(0,X.jsx)(`img`,{className:z(Z.avatar,Z.botAvatar),src:`bot.svg`,alt:`Bot`}),(0,X.jsx)(`div`,{className:z(Z.bubble,Z.bubbleLeft,`chat__bubble`,`chat__botBubble`),children:(0,X.jsx)(`div`,{className:z(Z.leftText,Z.bubbleContent),children:n})})]}),Xl=({children:e})=>(0,X.jsx)(`div`,{className:z(Z.message,Z.messageGuest,Z.messageGuestFirst,Z.messageGuestLast,`chat__bubbleContainer`,`chat__guestBubbleContainer`,`chat__bubbleContainer--first`,`chat__bubbleContainer--last`),children:(0,X.jsx)(`div`,{className:z(Z.bubble,Z.bubbleRight,`chat__bubble`,`chat__guestBubble`),children:(0,X.jsx)(`div`,{className:z(Z.rightText,Z.bubbleContent),children:e})})}),Zl=()=>{let e=B(),t=$i(),n=ea(e=>e.chat.conversationRating),[r,i]=(0,x.useState)(n.rating?.value||0),[a,o]=(0,x.useState)(void 0),[s,c]=(0,x.useState)(void 0),[l,u]=(0,x.useState)({submitted:!1,feedback:``}),d=(0,x.useRef)(null),[f,p]=(0,x.useState)(!1);(0,x.useEffect)(()=>{n.opener?(u({submitted:!1,feedback:``}),c(!0)):s===!0&&c(!1)},[n.opener,s]),(0,x.useEffect)(()=>{i(n.rating?.value||0)},[n.rating?.value,n.opener]),(0,x.useEffect)(()=>{d.current&&(d.current.value=n.rating?.feedback||``)},[n.rating?.feedback]),(0,x.useEffect)(()=>{let t=r>0?e(`conversation-rating.overlay.bot-message.rate-feedback.value-${r}`):void 0;o(t?.length?t:void 0)},[r,e]),(0,x.useEffect)(()=>{l.submitted?setTimeout(()=>p(!0),l.feedback.length?500:0):p(!1)},[l]);let m=e=>{e.preventDefault();let n=d.current?.value?.trim()||``;t(Pt(r,n)),u({submitted:!0,feedback:n})},h=()=>{n.opener===`CLOSE_CHAT`?t(Di()):n.opener===`RESTART_CHAT`?t(Zi()):t(ji())};return(0,X.jsx)(`div`,{className:z(Wl.rateOverlay,El.bottomSheet,`chat__conversationRating__overlay`,{[El.bottomSheetOpen]:s===!0,[El.bottomSheetClose]:s===!1}),children:(0,X.jsxs)(`form`,{onSubmit:m,children:[(0,X.jsxs)(`div`,{className:z(Wl.body,`chat__conversationRating__overlay__body`),children:[(0,X.jsx)(`div`,{}),(0,X.jsx)(`div`,{className:z(Wl.bubbles),children:n.opener&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Yl,{isFirstMessageBySender:!0,isLastMessageBySender:!a,children:[(0,X.jsx)(`h2`,{children:e(`conversation-rating.overlay.title`)}),(0,X.jsxs)(`div`,{className:z(Wl.starsDescriptionContainer),children:[(0,X.jsx)(ql,{value:r,size:`large`,readonly:l.submitted,onChange:i}),(0,X.jsxs)(`div`,{className:z(Wl.starsDescription),children:[(0,X.jsx)(`div`,{children:e(`conversation-rating.overlay.star.very-bad`)}),(0,X.jsx)(`div`,{children:e(`conversation-rating.overlay.star.very-good`)})]})]})]}),a&&(0,X.jsx)(Yl,{isFirstMessageBySender:!1,isLastMessageBySender:!f||!!l.feedback.length,children:(0,X.jsx)(`div`,{children:a})}),!!l.feedback.length&&(0,X.jsx)(Xl,{children:l.feedback}),f&&(0,X.jsx)(Yl,{isFirstMessageBySender:!!l.feedback.length,isLastMessageBySender:!0,children:(0,X.jsx)(`div`,{children:e(`conversation-rating.overlay.bot-message.submit-feedback`)})})]})})]}),(0,X.jsxs)(`div`,{className:z(Wl.footer,`chat__conversationRating__overlay__footer`),children:[!l.submitted&&(0,X.jsx)(`input`,{ref:d,defaultValue:n.rating?.feedback||``,placeholder:e(`conversation-rating.overlay.guest-feedback.input-placeholder`)}),(0,X.jsxs)(`div`,{className:z(Wl.actions,`chat__conversationRating__overlay__footer__actions`),children:[l.submitted?(0,X.jsx)(Q,{type:`button`,disabled:!r,onClick:h,children:n.opener===`CLOSE_CHAT`?e(`conversation-rating.overlay.action.close-chat`):n.opener===`RESTART_CHAT`?e(`conversation-rating.overlay.action.restart-chat`):e(`conversation-rating.overlay.action.back-to-chat`)},`close-button`):(0,X.jsx)(Q,{type:`submit`,disabled:!r,children:e(`conversation-rating.overlay.action.submit`)},`submit-button`),n.opener!==`CHAT`&&!l.submitted&&(0,X.jsx)(Pl,{onClick:h,children:n.opener===`CLOSE_CHAT`?e(`conversation-rating.overlay.action.close-chat`):n.opener===`RESTART_CHAT`?e(`conversation-rating.overlay.action.restart-chat`):e(`conversation-rating.overlay.action.cancel`)})]})]})]})})},Ql=(0,x.memo)(({numberOfMessagesFromGuest:e})=>{let t=$i(),n=ea(e=>e.chat.conversationRating),r=e=>{t(Ai(`CHAT`,e))},i=!n.rating?.value&&e>=1;return n.enabled?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Jl,{visible:i,onRate:r}),(0,X.jsx)(Zl,{})]}):null}),$l={inputWrapper:`_inputWrapper_18j9q_1`,withOpenCommands:`_withOpenCommands_18j9q_13`,actions:`_actions_18j9q_18`,messageInputWrapper:`_messageInputWrapper_18j9q_53`,messageInput:`_messageInput_18j9q_53`,buttons:`_buttons_18j9q_78`,button:`_button_18j9q_78`},eu={audioRecorder:`_audioRecorder_g845f_1`,audioButton:`_audioButton_g845f_6`,recorderIcon:`_recorderIcon_g845f_37`,pulse:`_pulse_g845f_1`,spinning:`_spinning_g845f_60`,spin:`_spin_g845f_60`},tu=2048,nu=16e3,ru=class extends x.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(e){super(e),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(e){this.mediaStream=e,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(e)}initRecording(e){let t=new(window.AudioContext||window.webkitAudioContext);this.sampleRate=t.sampleRate,this.volume=t.createGain(),this.audioInput=t.createMediaStreamSource(e),this.audioInput.connect(this.volume),this.recorder=t.createScriptProcessor(tu,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(t.destination)}processRecordingInput(e){if(this.state.recordingState===`connecting`&&this.setState({recordingState:`recording`}),this.state.recordingState!==`none`){let t=e.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(t)),this.recordingLength+=tu}}handleClickSubmitAudio(){let e=iu(su(ou(this.leftchannel,this.recordingLength),this.sampleRate||0));this.props.onAudioRecorded(e),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:`none`}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(e=>{e.stop()})}render(){return(0,X.jsxs)(`div`,{className:eu.audioRecorder,children:[this.state.recordingState===`none`&&(0,X.jsx)(`button`,{className:z(eu.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:(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.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`}),(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]})}),this.state.recordingState===`connecting`&&(0,X.jsxs)(`svg`,{className:eu.spinning,xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.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`}),(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]}),this.state.recordingState===`recording`&&(0,X.jsxs)(`div`,{className:eu.audioRecorder,children:[(0,X.jsx)(`button`,{className:z(eu.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate(`message-input.actions.stop-audio-recording.label`),tabIndex:0,children:(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.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`}),(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]})}),(0,X.jsx)(`div`,{className:eu.recorderIcon}),(0,X.jsx)(`button`,{className:z(eu.audioButton),type:`submit`,onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate(`message-input.actions.submit-audio-recording.label`),tabIndex:0,autoFocus:!0,children:(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),(0,X.jsx)(`path`,{d:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`})]})})]})]})}},iu=e=>{let t=new ArrayBuffer(44+e.length*2),n=new DataView(t);au(n,0,`RIFF`),n.setUint32(4,44+e.length*2,!0),au(n,8,`WAVE`),au(n,12,`fmt `),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,nu,!0),n.setUint32(28,nu*4,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),au(n,36,`data`),n.setUint32(40,e.length*2,!0);let r=e.length,i=44;for(let t=0;t<r;t++)n.setInt16(i,e[t]*(32767*1),!0),i+=2;return new Blob([n],{type:`audio/wav`})},au=(e,t,n)=>{for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},ou=(e,t)=>{let n=new Float32Array(t),r=0,i=e.length;for(let t=0;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n},su=(e,t)=>{if(nu===t)return e;let n=t/nu,r=Math.round(e.length/n),i=new Float32Array(r),a=0,o=0;for(;a<i.length;){let t=Math.round((a+1)*n),r=0,s=0;for(let n=o;n<t&&n<e.length;n++)r+=e[n],s++;i[a]=r/s,a++,o=t}return i},cu=({onClick:e})=>{let t=B();return(0,X.jsxs)(`button`,{onClick:e,type:`button`,"aria-label":t(`message-input.actions.command.label`),children:[(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`32`,height:`32`,fill:`#000000`,viewBox:`0 0 256 256`,children:[(0,X.jsx)(`rect`,{x:`32`,y:`32`,width:`192`,height:`192`,rx:`16`,ry:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`16`}),(0,X.jsx)(`line`,{x1:`80`,y1:`176`,x2:`176`,y2:`80`,stroke:`currentColor`,"stroke-width":`16`,"stroke-linecap":`round`})]}),(0,X.jsx)(`span`,{children:t(`message-input.actions.command.label`)})]})},lu=({disabled:e,textInput:t,commandsVisible:n,hasCommands:r,onTextInput:i,onTextInputSubmit:a,onAudioRecorded:o})=>{let s=B(),c=(0,x.useRef)(null),l=(0,x.useRef)(0),{enableSpeechSupport:u}=ea(e=>e.settings),d=e=>{e.style.height=``;let{scrollHeight:t}=e,n=Math.max(l.current,Math.min(t,150));e.style.height=`${n}px`,e.style.overflowY=t>150?`auto`:`hidden`};(0,x.useEffect)(()=>{let e=c.current;e&&(l.current===0&&(l.current=e.scrollHeight),d(e),e.focus())},[t]);let f=()=>{let e=c.current;e&&t.trim().length>=1&&a(t.trim())&&(e.value=``,e.style.height=``,e.focus())};return(0,X.jsxs)(`form`,{className:z($l.inputWrapper,n&&$l.withOpenCommands,`chat__textInput`),onSubmit:e=>{e.preventDefault(),f()},children:[(0,X.jsxs)(`div`,{className:$l.messageInputWrapper,children:[(0,X.jsx)(`textarea`,{id:`user_input`,ref:c,className:$l.messageInput,tabIndex:0,placeholder:s(`message-input-placeholder`),value:t,onChange:e=>{let t=e.target.value;i(t),d(e.target)},onKeyDown:e=>{e.code===`Enter`&&!e.shiftKey?(e.repeat||f(),e.preventDefault()):n&&(e.code===`ArrowUp`||e.code===`ArrowDown`)&&e.preventDefault()},"aria-label":s(`message-input-label`),"aria-controls":r?`command-list`:void 0,"aria-haspopup":r?`listbox`:void 0}),r&&(0,X.jsx)(`div`,{className:$l.actions,children:(0,X.jsx)(cu,{onClick:()=>{t.startsWith(`/`)?i(``):i(`/`)}})})]}),(0,X.jsx)(`div`,{className:z($l.buttons,`chat__buttons`),children:t.length||!u||navigator.mediaDevices===void 0?(0,X.jsx)(`button`,{className:z($l.button,`chat__button`),type:`submit`,"aria-label":s(`message-input.actions.submit.label`),"data-title":s(`message-input.actions.submit.label`),tabIndex:0,disabled:e,children:(0,X.jsx)(`svg`,{viewBox:`64 64 896 896`,focusable:`false`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,children:(0,X.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`})})}):u&&navigator.mediaDevices!==void 0&&(0,X.jsx)(ru,{translate:s,onAudioRecorded:o})})]})},uu={quickReplies:`_quickReplies_83npe_1`,quickReply:`_quickReply_83npe_9`},du=({quickReplies:e,onQuickReplyClick:t})=>e.length?(0,X.jsx)(`div`,{className:z(uu.quickReplies,`chat__quickReplies`),children:e.map(e=>(0,X.jsx)(Qc,{tabIndex:0,className:z(uu.quickReply,`chat__button`,`chat__quickReply`),onClick:()=>t(e),children:e.label},e.label))}):null,fu=5e3,pu=1e3,mu=({isBotTyping:e,quickReplies:t,numberOfMessagesFromGuest:n,commands:r,onTextInput:i,onQuickReplyClick:a,onAudioRecorded:o})=>{let[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(!1),p=(0,x.useRef)(0),m=(0,x.useRef)(0);return(0,x.useEffect)(()=>{if(l&&!e){let e=p.current?Date.now()-p.current:0;e>fu?u(!1):setTimeout(()=>{u(!1)},fu-e)}},[l,e]),(0,x.useEffect)(()=>{l&&(p.current=Date.now())},[l]),(0,X.jsxs)(`div`,{className:z(Il.inputContainer),children:[(0,X.jsx)(du,{quickReplies:t,onQuickReplyClick:a}),(0,X.jsx)(Rl,{visible:l}),!l&&(0,X.jsx)(Ql,{numberOfMessagesFromGuest:n}),!!r?.length&&(0,X.jsx)(Vl,{text:s,commands:r,onSelectCommand:e=>{c(e+` `)},onVisibilityChange:f}),(0,X.jsx)(lu,{textInput:s,disabled:l,commandsVisible:d,hasCommands:!!r?.length,onTextInput:c,onTextInputSubmit:t=>{let n=Date.now()-m.current<pu;return d?!1:e||n?(u(!0),!1):(i(t),c(``),m.current=Date.now(),!0)},onAudioRecorded:o})]})},hu=We(e=>{let{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i}=e.chat;return{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i}},e=>({onRestartChat:()=>e(Zi()),onMessageFromUser:t=>e(ht(t)),onAudioRecorded:t=>e(kt(t)),onActionFromUser:t=>e(t),onQuickReplyClick:t=>e(mt(t)),onNluEvent:t=>e(Ft(t)),onButtonClick:t=>e(Lt(t)),onLinkClick:t=>e(Rt(t)),onTranscriptExport:t=>e(jt(t)),onTranscriptItemReaction:(t,n)=>{e(pt.transcriptItemGuestReaction(t,n?.type||null,n?.category,n?.comment))}}))(({clientName:e,messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,onMessageFromUser:a,onQuickReplyClick:o,onButtonClick:s,onLinkClick:c,onAudioRecorded:l,onTranscriptExport:u,onTranscriptItemReaction:d})=>{let f=$i(),p=ea(e=>e.connection.connectionState),{enableTranscriptExportEmail:m,commands:h}=ea(e=>e.settings),{showTranscriptMailOverlay:g,conversationRating:_}=ea(e=>e.chat),v=t.filter(e=>e.sender.type===na.GUEST).length;return(0,x.useEffect)(()=>{p===ta.CONNECTED&&f(Xi(e))},[e,p,f]),(0,X.jsxs)(`div`,{className:ra.container,children:[(0,X.jsx)(Nl,{messages:t,isBotTyping:r}),(0,X.jsxs)(`div`,{className:z([ra.chatcontent,(g||_?.opener)&&ra.accessabilityHidden]),children:[(0,X.jsx)(Cl,{messages:t,isBotTyping:r,commands:h,onButtonClick:s,onLinkClick:c,onTranscriptItemReaction:d}),(0,X.jsx)(mu,{isBotTyping:r,quickReplies:r?[]:n,numberOfMessagesFromGuest:v,commands:h,onQuickReplyClick:o,onTextInput:a,onAudioRecorded:l}),(0,X.jsx)(jl,{})]}),m&&(0,X.jsx)(Fl,{visible:!!g,onEmailExport:u,onClose:()=>{f(ki())}}),(0,X.jsx)(Ol,{contentUrl:i})]})}),gu=()=>(0,x.useMemo)(()=>{try{return window.self!==window.top}catch{return!0}},[]),_u=e=>t=>{let n=t.key;(n===`ArrowDown`||n===`ArrowRight`||n===`Enter`||n===` `||n===`Space`)&&(t.stopPropagation(),e())},vu=({onClick:e})=>{let t=B();return gu()?(0,X.jsx)(`button`,{className:`tooltip--bottom-left`,"aria-label":t(`header.close-chat`),"data-title":t(`header.close-chat`),tabIndex:0,onClick:e,onKeyDown:_u(e),children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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},yu={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`},bu=({icon:e})=>{switch(e){case`arrow-counter-clockwise`:return(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`div`,{})}},xu=(0,x.forwardRef)(({selected:e,item:t,onClick:n},r)=>{let i=B();return(0,X.jsx)(`li`,{"aria-selected":e,role:`option`,className:t.withDivider?yu.divider:void 0,children:(0,X.jsxs)(`a`,{ref:r,type:`button`,role:`button`,tabIndex:-1,onClick:e=>{e.preventDefault(),n()},children:[(0,X.jsx)(bu,{icon:t.icon}),(0,X.jsx)(`span`,{children:i(`header.menu.${t.id}`)})]})})}),Su=(e,t)=>{let n=gu(),{menuItems:r,enableStandaloneView:i,enableTranscriptExportPdf:a,enableTranscriptExportEmail:o}=ea(e=>e.settings),s=ea(e=>e.chat.conversationRating.enabled);return(0,x.useMemo)(()=>{let c=[],l=r.filter(({visibility:t})=>e?t===`always`||t===`chat-only`:t===`always`||t===`start-screen-only`);if(e&&(c.push({id:`restart-chat`,type:`restart-chat`,icon:`arrow-counter-clockwise`,visibility:`chat-only`}),n&&i&&c.push({id:`expand-chat-window`,type:`expand-chat-window`,icon:`expand`,visibility:`always`}),t&&a&&c.push({id:`download-transcript`,type:`download-transcript`,icon:`download`,visibility:`chat-only`}),t&&o&&c.push({id:`send-transcript`,type:`send-transcript`,icon:`mail`,visibility:`chat-only`}),t&&s&&c.push({id:`rate-conversation`,type:`rate-conversation`,icon:`star`,visibility:`chat-only`}),c.length>0&&l.length)){let e=c.pop();e&&r.length&&c.push({...e,withDivider:!0})}return c.push(...l),c},[e,t,a,o,i,s,n,r])},Cu=({chatStarted:e,hasGuestMessages:t})=>{let n=$i(),r=B(),{enabled:i,opener:a}=ea(e=>e.chat.conversationRating),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(-1),u=(0,x.useRef)(null),d=(0,x.useRef)(null),f=(0,x.useRef)([]),p=Su(e,t);(0,x.useEffect)(()=>{f.current[c]?.focus()},[c]);let m=(0,x.useCallback)(()=>{n(t&&i&&!a?Ai(`RESTART_CHAT`):Zi()),s(!1),l(0)},[t,i,a,n]),h=(0,x.useCallback)(e=>{switch(e.type){case`restart-chat`:m();break;case`expand-chat-window`:{let e=new URL(window.location.origin);e.pathname=window.location.pathname,e.search=window.location.search,e.hash=window.location.hash,window.open(e.href,`_blank`);break}case`download-transcript`:n(Mt());break;case`send-transcript`:n(ki());break;case`rate-conversation`:n(Ai(`MENU`));break;case`link`:n(Rt(e.url));break;case`action`:n(JSON.parse(JSON.stringify(e.action)));break;default:break}s(!1)},[n,m,s]);return(0,x.useEffect)(()=>{let e=e=>{if(o)switch(e.key){case`Enter`:e.preventDefault(),h(p[c]);break;case`ArrowUp`:l(e=>e>0?e-1:p.length-1);break;case`ArrowDown`:l(e=>e<p.length-1?e+1:0);break;case`Escape`:s(!1);break;case`Tab`:c>-1&&s(!1);break;default:break}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[o,c,p,l,s,h]),(0,x.useEffect)(()=>{o||l(-1)},[o,c]),Pc(d,()=>s(!1)),p.length?(0,X.jsxs)(`div`,{className:z(yu.menuContainer),ref:d,children:[(0,X.jsx)(`button`,{ref:u,className:z(o&&yu.active,o?`tooltip-hidden`:`tooltip--bottom-left`),"aria-label":r(`header.menu.title`),"data-title":r(`header.menu.title`),onClick:()=>{s(e=>!e)},onBlur:()=>{setTimeout(()=>{let e=document.activeElement;d.current&&!d.current.contains(e)&&s(!1)},0)},children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})})}),o&&(0,X.jsx)(`nav`,{className:yu.menu,"aria-label":r(`header.menu.title`),children:(0,X.jsx)(`ul`,{tabIndex:0,children:p.map((e,t)=>(0,X.jsx)(xu,{ref:e=>{f.current[t]=e},selected:c===t,item:e,onClick:()=>h(e)},e.id))})})]}):null},wu=({className:e,chatStarted:t,...n})=>{let r=$i(),i=ea(e=>e.chat.conversationRating),a=ea(e=>e.chat.messages.some(e=>e.sender.type===at.GUEST)),o=()=>{i.enabled&&!i.opener&&a?r(Ai(`CLOSE_CHAT`)):r(Di())};return(0,X.jsxs)(`div`,{className:z(yu.header,e),...n,children:[(0,X.jsx)(`div`,{className:yu.logoContainer,children:(0,X.jsx)(`div`,{className:yu.logo})}),(0,X.jsxs)(`div`,{className:yu.actions,children:[(0,X.jsx)(Cu,{chatStarted:t,hasGuestMessages:a}),(0,X.jsx)(vu,{onClick:o})]})]})},Tu={chatwindow:`_chatwindow_rkbir_1`,chatwindowWithAside:`_chatwindowWithAside_rkbir_21`},Eu=()=>{let[e,t]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{let e=window.matchMedia(`(max-width: 1023px)`),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e},Du={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`,rotate:`_rotate_vei0l_1`,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`,loadingAnim:`_loadingAnim_vei0l_1`},Ou=({onClick:e})=>{let t=B();return(0,X.jsx)(`button`,{className:z(Du.closeSourceInfosButton,`tooltip--bottom-left`),"aria-label":t(`source-infos.close`),"data-title":t(`source-infos.close`),tabIndex:0,onClick:e,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})})})},ku=(0,x.forwardRef)(({sourceInfos:e,onClose:t,...n},r)=>(0,X.jsxs)(`div`,{className:Du.sourceHeader,...n,ref:r,children:[(0,X.jsx)(`div`,{children:e?(0,X.jsx)(`p`,{id:`source-info-title`,children:e.title}):(0,X.jsx)(`p`,{children:`\xA0`})}),(0,X.jsx)(Ou,{onClick:t})]})),Au=({loading:e})=>(0,X.jsx)(`div`,{className:Du.highlightLoader,children:e&&(0,X.jsx)(`div`,{className:Du.highlightLoaderLoading})}),{entries:ju,setPrototypeOf:Mu,isFrozen:Nu,getPrototypeOf:Pu,getOwnPropertyDescriptor:Fu}=Object,{freeze:Iu,seal:Lu,create:Ru}=Object,{apply:zu,construct:Bu}=typeof Reflect<`u`&&Reflect;Iu||=function(e){return e},Lu||=function(e){return e},zu||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Bu||=function(e){return new e(...[...arguments].slice(1))};var Vu=td(Array.prototype.forEach),Hu=td(Array.prototype.lastIndexOf),Uu=td(Array.prototype.pop),Wu=td(Array.prototype.push),Gu=td(Array.prototype.splice),Ku=td(String.prototype.toLowerCase),qu=td(String.prototype.toString),Ju=td(String.prototype.match),Yu=td(String.prototype.replace),Xu=td(String.prototype.indexOf),Zu=td(String.prototype.trim),Qu=td(Object.prototype.hasOwnProperty),$u=td(RegExp.prototype.test),ed=nd(TypeError);function td(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return zu(e,t,n)}}function nd(e){return function(){return Bu(e,[...arguments])}}function rd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ku;Mu&&Mu(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Nu(t)||(t[r]=e),i=e)}e[i]=!0}return e}function id(e){for(let t=0;t<e.length;t++)Qu(e,t)||(e[t]=null);return e}function ad(e){let t=Ru(null);for(let[n,r]of ju(e))Qu(e,n)&&(Array.isArray(r)?t[n]=id(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=ad(r):t[n]=r);return t}function od(e,t){for(;e!==null;){let n=Fu(e,t);if(n){if(n.get)return td(n.get);if(typeof n.value==`function`)return td(n.value)}e=Pu(e)}function n(){return null}return n}var sd=Iu(`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`.split(`.`)),cd=Iu(`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`.split(`.`)),ld=Iu([`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`]),ud=Iu([`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`]),dd=Iu(`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`.split(`.`)),fd=Iu([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),pd=Iu([`#text`]),md=Iu(`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`.split(`.`)),hd=Iu(`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`.split(`.`)),gd=Iu(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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`.split(`.`)),_d=Iu([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),vd=Lu(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yd=Lu(/<%[\w\W]*|[\w\W]*%>/gm),bd=Lu(/\$\{[\w\W]*/gm),xd=Lu(/^data-[\-\w.\u00B7-\uFFFF]+$/),Sd=Lu(/^aria-[\-\w]+$/),Cd=Lu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wd=Lu(/^(?:\w+script|data):/i),Td=Lu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ed=Lu(/^html$/i),Dd=Lu(/^[a-z][.\w]*(-[.\w]+)+$/i),Od=Object.freeze({__proto__:null,ARIA_ATTR:Sd,ATTR_WHITESPACE:Td,CUSTOM_ELEMENT:Dd,DATA_ATTR:xd,DOCTYPE_NAME:Ed,ERB_EXPR:yd,IS_ALLOWED_URI:Cd,IS_SCRIPT_OR_DATA:wd,MUSTACHE_EXPR:vd,TMPLIT_EXPR:bd}),kd={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ad=function(){return typeof window>`u`?null:window},jd=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Md=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Nd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ad(),t=e=>Nd(e);if(t.version=`3.4.0`,t.removed=[],!e||!e.document||e.document.nodeType!==kd.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=od(m,`cloneNode`),g=od(m,`remove`),_=od(m,`nextSibling`),v=od(m,`childNodes`),y=od(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=Md();t.isSupported=typeof ju==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:ee,TMPLIT_EXPR:k,DATA_ATTR:te,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:ie}=Od,{IS_ALLOWED_URI:j}=Od,M=null,ae=rd({},[...sd,...cd,...ld,...dd,...pd]),N=null,oe=rd({},[...md,...hd,...gd,..._d]),P=Object.seal(Ru(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}})),F=null,I=null,L=Object.seal(Ru(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),se=!0,ce=!0,le=!1,ue=!0,de=!1,R=!0,fe=!1,pe=!1,me=!1,he=!1,ge=!1,_e=!1,ve=!0,ye=!1,be=!0,xe=!1,Se={},Ce=null,we=rd({},[`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`]),Te=null,Ee=rd({},[`audio`,`video`,`img`,`source`,`image`,`track`]),De=null,Oe=rd({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ke=`http://www.w3.org/1998/Math/MathML`,Ae=`http://www.w3.org/2000/svg`,je=`http://www.w3.org/1999/xhtml`,Me=je,Ne=!1,Pe=null,Fe=rd({},[ke,Ae,je],qu),Ie=rd({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Le=rd({},[`annotation-xml`]),Re=rd({},[`title`,`style`,`font`,`a`,`script`]),ze=null,Be=[`application/xhtml+xml`,`text/html`],Ve=null,He=null,Ue=n.createElement(`form`),We=function(e){return e instanceof RegExp||e instanceof Function},Ge=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(He&&He===e)){if((!e||typeof e!=`object`)&&(e={}),e=ad(e),ze=Be.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Ve=ze===`application/xhtml+xml`?qu:Ku,M=Qu(e,`ALLOWED_TAGS`)?rd({},e.ALLOWED_TAGS,Ve):ae,N=Qu(e,`ALLOWED_ATTR`)?rd({},e.ALLOWED_ATTR,Ve):oe,Pe=Qu(e,`ALLOWED_NAMESPACES`)?rd({},e.ALLOWED_NAMESPACES,qu):Fe,De=Qu(e,`ADD_URI_SAFE_ATTR`)?rd(ad(Oe),e.ADD_URI_SAFE_ATTR,Ve):Oe,Te=Qu(e,`ADD_DATA_URI_TAGS`)?rd(ad(Ee),e.ADD_DATA_URI_TAGS,Ve):Ee,Ce=Qu(e,`FORBID_CONTENTS`)?rd({},e.FORBID_CONTENTS,Ve):we,F=Qu(e,`FORBID_TAGS`)?rd({},e.FORBID_TAGS,Ve):ad({}),I=Qu(e,`FORBID_ATTR`)?rd({},e.FORBID_ATTR,Ve):ad({}),Se=Qu(e,`USE_PROFILES`)?e.USE_PROFILES:!1,se=e.ALLOW_ARIA_ATTR!==!1,ce=e.ALLOW_DATA_ATTR!==!1,le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,de=e.SAFE_FOR_TEMPLATES||!1,R=e.SAFE_FOR_XML!==!1,fe=e.WHOLE_DOCUMENT||!1,he=e.RETURN_DOM||!1,ge=e.RETURN_DOM_FRAGMENT||!1,_e=e.RETURN_TRUSTED_TYPE||!1,me=e.FORCE_BODY||!1,ve=e.SANITIZE_DOM!==!1,ye=e.SANITIZE_NAMED_PROPS||!1,be=e.KEEP_CONTENT!==!1,xe=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||Cd,Me=e.NAMESPACE||je,Ie=e.MATHML_TEXT_INTEGRATION_POINTS||Ie,Le=e.HTML_INTEGRATION_POINTS||Le,P=e.CUSTOM_ELEMENT_HANDLING||Ru(null),e.CUSTOM_ELEMENT_HANDLING&&We(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&We(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(P.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de&&(ce=!1),ge&&(he=!0),Se&&(M=rd({},pd),N=Ru(null),Se.html===!0&&(rd(M,sd),rd(N,md)),Se.svg===!0&&(rd(M,cd),rd(N,hd),rd(N,_d)),Se.svgFilters===!0&&(rd(M,ld),rd(N,hd),rd(N,_d)),Se.mathMl===!0&&(rd(M,dd),rd(N,gd),rd(N,_d))),L.tagCheck=null,L.attributeCheck=null,e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?L.tagCheck=e.ADD_TAGS:(M===ae&&(M=ad(M)),rd(M,e.ADD_TAGS,Ve))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?L.attributeCheck=e.ADD_ATTR:(N===oe&&(N=ad(N)),rd(N,e.ADD_ATTR,Ve))),e.ADD_URI_SAFE_ATTR&&rd(De,e.ADD_URI_SAFE_ATTR,Ve),e.FORBID_CONTENTS&&(Ce===we&&(Ce=ad(Ce)),rd(Ce,e.FORBID_CONTENTS,Ve)),e.ADD_FORBID_CONTENTS&&(Ce===we&&(Ce=ad(Ce)),rd(Ce,e.ADD_FORBID_CONTENTS,Ve)),be&&(M[`#text`]=!0),fe&&rd(M,[`html`,`head`,`body`]),M.table&&(rd(M,[`tbody`]),delete F.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ed(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ed(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=jd(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));Iu&&Iu(e),He=e}},Ke=rd({},[...cd,...ld,...ud]),qe=rd({},[...dd,...fd]),Je=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Me,tagName:`template`});let n=Ku(e.tagName),r=Ku(t.tagName);return Pe[e.namespaceURI]?e.namespaceURI===Ae?t.namespaceURI===je?n===`svg`:t.namespaceURI===ke?n===`svg`&&(r===`annotation-xml`||Ie[r]):!!Ke[n]:e.namespaceURI===ke?t.namespaceURI===je?n===`math`:t.namespaceURI===Ae?n===`math`&&Le[r]:!!qe[n]:e.namespaceURI===je?t.namespaceURI===Ae&&!Le[r]||t.namespaceURI===ke&&!Ie[r]?!1:!qe[n]&&(Re[n]||!Ke[n]):!!(ze===`application/xhtml+xml`&&Pe[e.namespaceURI]):!1},Ye=function(e){Wu(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},Xe=function(e,n){try{Wu(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Wu(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(he||ge)try{Ye(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Ze=function(e){let t=null,r=null;if(me)e=`<remove></remove>`+e;else{let t=Ju(e,/^[\r\n\t ]+/);r=t&&t[0]}ze===`application/xhtml+xml`&&Me===je&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Me===je)try{t=new f().parseFromString(i,ze)}catch{}if(!t||!t.documentElement){t=S.createDocument(Me,`template`,null);try{t.documentElement.innerHTML=Ne?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Me===je?T.call(t,fe?`html`:`body`)[0]:fe?t.documentElement:a},Qe=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},$e=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},et=function(e){return typeof s==`function`&&e instanceof s};function tt(e,n,r){Vu(e,e=>{e.call(t,n,r,He)})}let nt=function(e){let n=null;if(tt(D.beforeSanitizeElements,e,null),$e(e))return Ye(e),!0;let r=Ve(e.nodeName);if(tt(D.uponSanitizeElement,e,{tagName:r,allowedTags:M}),R&&e.hasChildNodes()&&!et(e.firstElementChild)&&$u(/<[/\w!]/g,e.innerHTML)&&$u(/<[/\w!]/g,e.textContent)||R&&e.namespaceURI===je&&r===`style`&&et(e.firstElementChild)||e.nodeType===kd.progressingInstruction||R&&e.nodeType===kd.comment&&$u(/<[/\w]/g,e.data))return Ye(e),!0;if(F[r]||!(L.tagCheck instanceof Function&&L.tagCheck(r))&&!M[r]){if(!F[r]&&rt(r)&&(P.tagNameCheck instanceof RegExp&&$u(P.tagNameCheck,r)||P.tagNameCheck instanceof Function&&P.tagNameCheck(r)))return!1;if(be&&!Ce[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Ye(e),!0}return e instanceof c&&!Je(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&$u(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ye(e),!0):(de&&e.nodeType===kd.text&&(n=e.textContent,Vu([O,ee,k],e=>{n=Yu(n,e,` `)}),e.textContent!==n&&(Wu(t.removed,{element:e.cloneNode()}),e.textContent=n)),tt(D.afterSanitizeElements,e,null),!1)},z=function(e,t,r){if(I[t]||ve&&(t===`id`||t===`name`)&&(r in n||r in Ue))return!1;if(!(ce&&!I[t]&&$u(te,t))&&!(se&&$u(A,t))&&!(L.attributeCheck instanceof Function&&L.attributeCheck(t,e))){if(!N[t]||I[t]){if(!(rt(e)&&(P.tagNameCheck instanceof RegExp&&$u(P.tagNameCheck,e)||P.tagNameCheck instanceof Function&&P.tagNameCheck(e))&&(P.attributeNameCheck instanceof RegExp&&$u(P.attributeNameCheck,t)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(t,e))||t===`is`&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&$u(P.tagNameCheck,r)||P.tagNameCheck instanceof Function&&P.tagNameCheck(r))))return!1}else if(!De[t]&&!$u(j,Yu(r,re,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Xu(r,`data:`)===0&&Te[e])&&!(le&&!$u(ne,Yu(r,re,``)))&&r)return!1}return!0},rt=function(e){return e!==`annotation-xml`&&Ju(e,ie)},it=function(e){tt(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||$e(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Ve(a),l=s,u=a===`value`?l:Zu(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,tt(D.uponSanitizeAttribute,e,r),u=r.attrValue,ye&&(c===`id`||c===`name`)&&(Xe(a,e),u=`user-content-`+u),R&&$u(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Xe(a,e);continue}if(c===`attributename`&&Ju(u,`href`)){Xe(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Xe(a,e);continue}if(!ue&&$u(/\/>/i,u)){Xe(a,e);continue}de&&Vu([O,ee,k],e=>{u=Yu(u,e,` `)});let d=Ve(e.nodeName);if(!z(d,c,u)){Xe(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),$e(e)?Ye(e):Uu(t.removed)}catch{Xe(a,e)}}tt(D.afterSanitizeAttributes,e,null)},at=function(e){let t=null,n=Qe(e);for(tt(D.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)tt(D.uponSanitizeShadowNode,t,null),nt(t),it(t),t.content instanceof a&&at(t.content);tt(D.afterSanitizeShadowDOM,e,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Ne=!e,Ne&&(e=`<!-->`),typeof e!=`string`&&!et(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw ed(`dirty is not a string, aborting`)}else throw ed(`toString is not a function`);if(!t.isSupported)return e;if(pe||Ge(n),t.removed=[],typeof e==`string`&&(xe=!1),xe){if(e.nodeName){let t=Ve(e.nodeName);if(!M[t]||F[t])throw ed(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Ze(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===kd.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!he&&!de&&!fe&&e.indexOf(`<`)===-1)return b&&_e?b.createHTML(e):e;if(i=Ze(e),!i)return he?null:_e?x:``}i&&me&&Ye(i.firstChild);let u=Qe(xe?e:i);for(;c=u.nextNode();)nt(c),it(c),c.content instanceof a&&at(c.content);if(xe)return e;if(he){if(de){i.normalize();let e=i.innerHTML;Vu([O,ee,k],t=>{e=Yu(e,t,` `)}),i.innerHTML=e}if(ge)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(N.shadowroot||N.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=fe?i.outerHTML:i.innerHTML;return fe&&M[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$u(Ed,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
62
+ `+d),de&&Vu([O,ee,k],e=>{d=Yu(d,e,` `)}),b&&_e?b.createHTML(d):d},t.setConfig=function(){Ge(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),pe=!0},t.clearConfig=function(){He=null,pe=!1},t.isValidAttribute=function(e,t,n){return He||Ge({}),z(Ve(e),Ve(t),n)},t.addHook=function(e,t){typeof t==`function`&&Wu(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Hu(D[e],t);return n===-1?void 0:Gu(D[e],n,1)[0]}return Uu(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=Md()},t}var Pd=Nd(),Fd=({onClose:e})=>{let t=B();return(0,X.jsxs)(`div`,{className:Du.highlightLoadingInfo,onClick:e,children:[(0,X.jsx)(`div`,{className:Du.highlightLoadingInfoCloseIcon,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})})}),(0,X.jsxs)(`div`,{className:Du.highlightLoadingInfoInnerContainer,children:[(0,X.jsxs)(`div`,{className:Du.highlightLoadingInfoContent,children:[(0,X.jsx)(`h3`,{children:t(`source-infos.highlight-loading.title`)}),(0,X.jsx)(`p`,{children:t(`source-infos.highlight-loading.description`)})]}),(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#000000`,viewBox:`0 0 256 256`,children:(0,X.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`})})]})]})},Id=({title:e,href:t,children:n})=>(0,X.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),Ld=({className:e,children:t,...n})=>(0,X.jsx)(`a`,{className:z(Zc.button,Zc.buttonDefault,e),type:`button`,role:`button`,...n,children:t}),Rd=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),zd=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Bd=({type:e,...t})=>{switch(e){case`WEBSITE`:return(0,X.jsx)(zd,{...t});case`PDF`:return(0,X.jsx)(Jc,{...t});case`DOCX`:return(0,X.jsx)(Kc,{...t});case`TEXT`:return(0,X.jsx)(Rd,{...t});default:return(0,X.jsx)(qc,{...t})}},Vd=({url:e,knowledgeBaseType:t})=>{let n=B();return(0,X.jsx)(Ld,{className:Du.openSourceButton,href:e,target:`_blank`,children:(0,X.jsxs)(`div`,{className:Du.sourceButtonLabel,children:[(0,X.jsx)(`div`,{className:Du.sourceHeaderIcon,children:(0,X.jsx)(Bd,{type:t})}),(0,X.jsx)(`p`,{children:n(`source-infos.open-source`)})]})})},Hd=({sourceInfos:{content:e,url:t,knowledgeBaseType:n,highlighted:r}})=>{let[i,a]=(0,x.useState)(!r);(0,x.useEffect)(()=>{r&&a(!1)},[r]);let o=Pd.sanitize(e,{USE_PROFILES:{html:!0}});return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(`div`,{className:z(Du.sourceContent,ul.markdown),children:[(0,X.jsx)(Tc,{options:{overrides:{a:Id}},children:o}),i&&(0,X.jsx)(Fd,{onClose:()=>a(!1)})]}),(0,X.jsx)(Vd,{url:t,knowledgeBaseType:n})]})},Ud=``+new URL(`undraw_fixing-bugs-D_eYxJc6.svg`,import.meta.url).href,Wd=()=>{let e=B();return(0,X.jsxs)(`div`,{className:Du.loadingError,children:[(0,X.jsx)(`h1`,{children:e(`source-infos.error.title`)}),(0,X.jsx)(`img`,{src:Ud,title:e(`source-infos.error.title`)}),(0,X.jsx)(`p`,{children:e(`source-infos.error.info`)})]})},Gd=()=>(0,X.jsx)(`div`,{className:Du.loadingSourceInfos,children:(0,X.jsx)(`svg`,{className:Du.loading,xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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 Kd({sourceInfos:e,onClose:t,threshold:n=100}){let r=(0,x.useRef)(null),[i,a]=(0,x.useState)(0),[o,s]=(0,x.useState)(!1),c=(0,x.useRef)(null),l=(0,x.useRef)(null),u=(0,x.useCallback)(e=>{c.current=e,s(!0)},[]),d=(0,x.useCallback)(e=>{if(c.current!==null&&o){let t=e-c.current;t>0&&a(t)}},[o]),f=(0,x.useCallback)(()=>{s(!1),i>n&&t(),a(0),c.current=null},[i,n,t]),p=(0,x.useCallback)(e=>{let t=e=>u(e.touches[0].clientY),n=e=>d(e.touches[0].clientY),r=()=>f(),i=e=>{e.preventDefault(),u(e.clientY),window.addEventListener(`mousemove`,a),window.addEventListener(`mouseup`,o)},a=e=>d(e.clientY),o=()=>{f(),window.removeEventListener(`mousemove`,a),window.removeEventListener(`mouseup`,o)};e.addEventListener(`touchstart`,t),e.addEventListener(`touchmove`,n),e.addEventListener(`touchend`,r),e.addEventListener(`mousedown`,i),l.current=()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchmove`,n),e.removeEventListener(`touchend`,r),e.removeEventListener(`mousedown`,i),window.removeEventListener(`mousemove`,a),window.removeEventListener(`mouseup`,o)}},[u,d,f]);return(0,x.useEffect)(()=>{let e;return r.current?(l.current?.(),p(r.current)):(e=new MutationObserver(()=>{r.current&&(l.current?.(),p(r.current),e?.disconnect())}),e.observe(document.body,{childList:!0,subtree:!0})),()=>{e?.disconnect(),l.current?.()}},[p,e]),{ref:r,dragOffsetY:i,isDragging:o}}var qd=e=>{let[t,n]=(0,x.useState)(!0);return(0,x.useEffect)(()=>{let t=null;return e?.type===`loading`?(n(!0),t=setTimeout(()=>{n(!1)},300)):n(!e),()=>{t&&clearTimeout(t)}},[e]),t},Jd=()=>{let e=$i(),t=ea(e=>e.chat.sourceInfos),n=Eu(),r=(0,x.useRef)(null),i=qd(t);(0,x.useEffect)(()=>{r.current&&t?.type===`loading`&&(n?r.current.showModal():(r.current.setAttribute(`open`,`true`),r.current?.focus()))},[t,n]);let a=(0,x.useCallback)(()=>{r.current&&(n?r.current.close():r.current.removeAttribute(`open`),e(Pi()))},[e,n]),{ref:o,dragOffsetY:s}=Kd({onClose:a,sourceInfos:t});return t?(0,X.jsx)(`dialog`,{ref:r,className:z(Du.sourceInfos,i?Du.waitForLoading:t.type===`loading`?Du.loadingContent:``),style:n&&s?{transform:`translateY(${s}px)`}:{},onClose:a,autoFocus:!0,role:`dialog`,"aria-labelledby":`source-info-title`,children:i?null:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ku,{ref:o,tabIndex:-1,sourceInfos:t.type===`loaded`?t:void 0,onClose:a}),t.type===`loading`?(0,X.jsx)(Gd,{}):t.type===`loading-error`?(0,X.jsx)(Wd,{}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Au,{loading:!t.highlighted}),(0,X.jsx)(Hd,{sourceInfos:t})]})]})}):null},Yd={container:`_container_5axup_1`,body:`_body_5axup_7`,intro:`_intro_5axup_14`,footer:`_footer_5axup_48`,footnote:`_footnote_5axup_52`,containerWithFootnote:`_containerWithFootnote_5axup_72`,startChatButton:`_startChatButton_5axup_87`,spinner:`_spinner_5axup_102`,spin:`_spin_5axup_102`,formFields:`_formFields_5axup_106`,formField:`_formField_5axup_106`,radio:`_radio_5axup_118`,checkbox:`_checkbox_5axup_125`,input:`_input_5axup_133`,inputLabel:`_inputLabel_5axup_167`,selectWrapper:`_selectWrapper_5axup_171`,select:`_select_5axup_171`,selectLabel:`_selectLabel_5axup_217`},Xd=({name:e,label:t,defaultValue:n,required:r,onChange:i})=>(0,X.jsxs)(`label`,{className:z(Yd.checkbox,`chat__startScreen__checkbox`),htmlFor:e,children:[(0,X.jsx)(`input`,{type:`checkbox`,id:e,name:e,defaultChecked:n===`true`,required:r,onChange:e=>{i(e.currentTarget.checked?`true`:`false`)}}),(0,X.jsx)(`div`,{children:t})]}),Zd=({type:e,name:t,label:n,defaultValue:r,placeholder:i,required:a,multiple:o,min:s,max:c,pattern:l,onChange:u})=>(0,X.jsxs)(`label`,{className:z(Yd.input,`chat__startScreen__input`),htmlFor:t,children:[(0,X.jsx)(`div`,{className:z(Yd.inputLabel),children:n}),(0,X.jsx)(`input`,{type:e,id:t,name:t,defaultValue:r,placeholder:i,required:a,multiple:o,min:s,max:c,pattern:l,onChange:e=>{u(e.target.value)}})]}),Qd=({name:e,value:t,label:n,defaultChecked:r,required:i,onChange:a})=>{let o=`${e}-${t}`;return(0,X.jsxs)(`label`,{className:z(Yd.radio,`chat__startScreen__radio`),htmlFor:o,children:[(0,X.jsx)(`input`,{id:o,type:`radio`,name:e,value:t,defaultChecked:r,required:i,onChange:e=>{a(e.target.value)}}),(0,X.jsx)(`span`,{className:z(Yd.label),children:n})]})},$d=({name:e,label:t,defaultValue:n,required:r,multiple:i,options:a,onChange:o})=>(0,X.jsxs)(`label`,{className:z(Yd.select,`chat__startScreen__select`),htmlFor:e,children:[(0,X.jsx)(`div`,{className:z(Yd.selectLabel),children:t}),(0,X.jsx)(`div`,{className:z(Yd.selectWrapper),children:(0,X.jsx)(`select`,{id:e,name:e,defaultValue:n,required:r,multiple:i,onChange:e=>{o(e.target.value)},children:Object.entries(a||{}).map(([e,t])=>(0,X.jsx)(`option`,{value:e,selected:t===n,children:t}))})})]}),ef=`start-screen.intro`,tf=`start-screen.start-chat`,nf=`start-screen.waiting-for-login`,rf=`start-screen.footnote`,af=`start-screen.form`,of=`${af}.fields`,sf=()=>{let e=B(),t=$i(),n=ll(),r=ea(e=>e.startScreen.loginRequestToken),i=ea(e=>e.settings.requiresUserAuthentication);(0,x.useEffect)(()=>{let e;if(r){let i=window.screenX+(window.outerWidth-600)/2,a=window.screenY+(window.outerHeight-700)/2,o=encodeURIComponent(n),s=new URL(window.location.origin);s.pathname=`/${o}/auth/login`,s.searchParams.set(`loginRequestToken`,r);let c=window.open(s.href,`Login`,`width=600,height=700,left=${i},top=${a},resizable=yes,scrollbars=yes`);e=setInterval(()=>{c?.closed&&(t(xi()),clearInterval(e))},500)}return()=>{e&&clearInterval(e)}},[n,r,t]);let[a,o]=(0,x.useState)({}),s=()=>{let e=Object.entries(a).reduce((e,[t,n])=>({...e,[t]:n.value}),{});t(i?bi({loginRequestToken:Zt(),formValues:e}):_i({formValues:e}))},c=e(ef),l=e(r?nf:tf),u=e(rf),d=(0,x.useMemo)(()=>e(of)?.split(`;`).map(e=>e.trim())??[],[e(of)]);(0,x.useEffect)(()=>{d.length&&Object.keys(a).length===0&&o(d.reduce((t,n)=>({...t,[n]:lf(n,e)}),{}))},[e,d,a]);let f=e=>{e.preventDefault(),s()},p=e=>t=>{o(n=>({...n,[e]:{...n[e],value:t}}))};return(0,X.jsxs)(`form`,{onSubmit:f,className:z(Yd.container,u&&Yd.containerWithFootnote,`chat__startScreen`),children:[(0,X.jsxs)(`div`,{className:z(Yd.body,`chat__startScreen__body`),children:[c&&(0,X.jsx)(`div`,{className:z(Yd.intro,`chat__startScreen__intro`),children:(0,X.jsx)(Tc,{options:{overrides:{a:cf}},children:c})}),(0,X.jsx)(`div`,{className:z(Yd.formFields,`chat__startScreen__fields`),children:Object.values(a).map(({type:e,name:t,label:n,placeholder:r,defaultValue:i,options:a,required:o,multiple:s,min:c,max:l,pattern:u})=>(0,X.jsx)(`div`,{className:z(Yd.formField,`chat__startScreen__field`),children:(()=>{switch(e){case`radio`:return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`div`,{children:n}),Object.entries(a||{}).map(([e,n])=>(0,X.jsx)(Qd,{name:t,value:e,label:n,defaultChecked:e===i,required:o,onChange:p(t)},e))]});case`checkbox`:return(0,X.jsx)(Xd,{name:t,label:n,defaultValue:i,required:o,onChange:p(t)});case`select`:return(0,X.jsx)($d,{name:t,label:n,defaultValue:i,required:o,multiple:s,options:a,onChange:p(t)});default:return(0,X.jsx)(Zd,{type:e,name:t,label:n,placeholder:r,defaultValue:i,required:o,multiple:s,min:c,max:l,pattern:u,onChange:p(t)})}})()},t))})]}),(0,X.jsxs)(`div`,{className:z(Yd.footer,`chat__startScreen__footer`),children:[(0,X.jsxs)(Q,{type:`submit`,className:Yd.startChatButton,disabled:!!r,children:[!!r&&(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,className:Yd.spinner,children:(0,X.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`})}),(0,X.jsx)(`div`,{children:l})]}),u&&(0,X.jsx)(`div`,{className:Yd.footnote,children:(0,X.jsx)(Tc,{options:{overrides:{a:cf}},children:u})})]})]})},cf=({title:e,href:t,children:n})=>(0,X.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),lf=(e,t)=>{let n=t(`${af}.${e}.type`)||`text`,r=t(`${af}.${e}.required`)===`true`,i=t(`${af}.${e}.multiple`)===`true`,a=t(`${af}.${e}.placeholder`),o=t(`${af}.${e}.label`)||``,s=t(`${af}.${e}.defaultValue`),c=t(`${af}.${e}.min`),l=t(`${af}.${e}.max`),u=t(`${af}.${e}.pattern`),d=df(t(`${af}.${e}.options`));return{name:e,label:o,placeholder:a,value:uf(n,s,d)||``,defaultValue:s,options:d,type:n,required:r,multiple:i,min:c,max:l,pattern:u}},uf=(e,t,n)=>t||e===`select`&&Object.keys(n)[0]||``,df=(e=``)=>e.split(`;`).map(e=>e.trim()).reduce((e,t)=>{let[n,r]=t.split(`:`).map(e=>e.trim());return{...e,[n]:r}},{}),ff=()=>{let e=ea(e=>e.intl.locale);(0,x.useEffect)(()=>{window.document.documentElement.lang=e},[e])},pf={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`},mf=({clientName:e})=>{ff();let t=$i(),n=ea(e=>e.intl.messages),r=B(),i=ea(e=>e.settings.enableStartScreen),a=ea(e=>e.startScreen.startScreenStatus),o=ea(e=>e.connection.queryString),s=ea(e=>e.settings.allowedEmbedOrigins),c=(0,x.useMemo)(()=>new URLSearchParams(o||`?`).get(`cssClassName`),[o]);(0,x.useEffect)(()=>{let n=new URLSearchParams(o||``);t(Wi(e,Object.fromEntries(n.entries())))},[e,o,t]),(0,x.useEffect)(()=>{let e=e=>{if(!e.data?.type||!Object.values(pf).includes(e.data.type))return;let n=e.origin===window.location.origin,r=e.source===window.parent,i=s===void 0||s.includes(e.origin);if(!(n||r&&i)){console.warn(`Rejected postMessage from untrusted origin:`,e.origin);return}switch(e.data.type){case pf.TRIGGER_ACTION:t(e.data.action);break;case pf.TRIGGER_STORY:t(Ft(e.data.story));break;case pf.ON_CHAT_WINDOW_OPEN:t({type:`webclient.chatwindow.opened`});break;case pf.ON_CHAT_WINDOW_CLOSE:t({type:`webclient.chatwindow.closed`});break;case pf.CHAT_MESSAGE_FROM_GUEST:t(ht(e.data.text));break;case pf.RESTART_CHAT:t(Zi());break}};return window.addEventListener(`message`,e,!1),()=>window.removeEventListener(`message`,e)},[s,t]),(0,x.useEffect)(()=>{let e=r(`page.title`);e&&document&&(document.title=e)},[n,r]);let l=i===void 0,u=i===!1||a===`HIDDEN`;return(0,X.jsx)(`div`,{className:z(Tu.chatwindow,u&&Tu.chatwindowWithAside,`chat__chatwindow`,c),children:l?null:u?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`header`,{children:(0,X.jsx)(wu,{chatStarted:!0})}),(0,X.jsx)(`main`,{children:(0,X.jsx)(hu,{clientName:e})}),(0,X.jsx)(`aside`,{children:(0,X.jsx)(Jd,{})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`header`,{children:(0,X.jsx)(wu,{chatStarted:!1})}),(0,X.jsx)(`main`,{children:(0,X.jsx)(sf,{})})]})})},hf=()=>{let e=ll(),t=Eu();return(0,X.jsx)(`div`,{className:z([rt.app,t?`chat__small`:`chat__large`]),children:(0,X.jsx)(mf,{clientName:e})})},gf={"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`,"bot-bubble.footnote":`Fussnote`,"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:
63
+
64
+ - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
65
+ - 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`},_f={"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`,"bot-bubble.footnote":`Footnote`,"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:
66
+
67
+ - The chat history is stored in the EU area and can only be viewed by authorized personnel.
68
+ - 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 vf(e,t=``,n=`.`){let r={};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=e[i],o=t?`${t}${n}${i}`:i;typeof a==`object`&&a&&!Array.isArray(a)?Object.assign(r,vf(a,o,n)):r[o]=String(a)}return r}var yf={"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`,"bot-bubble.footnote":`Note de bas de page`,"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:
69
+
70
+ - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
71
+ - 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`},bf={"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`,"bot-bubble.footnote":`Nota a piè di pagina`,"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:
72
+
73
+ - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
74
+ - 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`},xf=[`de`,`en`,`fr`,`it`],Sf={locale:`de`,messages:gf},Cf=(e,t)=>{if(xf.includes(e)){let n=wf(e),r=vf(t);return{...n,...r}}return t},wf=e=>{switch(e.toString()){case`en`:return _f;case`fr`:return yf;case`it`:return bf;default:return gf}},Tf=(e=Ef,t)=>{switch(t.type){case Ii:return Object.assign({},e,{connectionState:ta.CONNECTING});case Li:return Object.assign({},e,{connectionState:ta.CONNECTED});case Ri:return Object.assign({},e,{connectionState:ta.DISCONNECTED});case zi:return Object.assign({},e,{connectionState:ta.RECONNECTED});case Bi:return Object.assign({},e,{sessionId:t.sessionId});case Vi:return Object.assign({},e,{sessionId:t.payload.sessionId,userId:t.payload.userId});case Hi:return Object.assign({},e,{sessionId:void 0});default:return e}},Ef={connectionState:ta.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},Df=(e=Mf,t)=>{switch(t.type){case Ci:return Mf;case Vi:return kf({type:`webclient.chat.started`}),e;case Hi:return kf({type:`webclient.chat.ended`}),e;case it.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case it.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case it.MESSAGE_FROM_GUEST:case it.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Of(e,t.message,t.meta);case it.MESSAGE_TO_GUEST:{kf(t);let n=Object.assign({},t.message,{_id:t.meta.actionId}),r=e.messages.filter(e=>e._id===t.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:r?e.messages:e.messages.concat([n]),quickReplies:n.quickReplies?n.quickReplies:[]})}case _t:{let n=t.messages,r=n.length?n[n.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:n,quickReplies:r?.quickReplies||[]})}case gt:return kf(t.message),e;case it.EVENT_TO_GUEST:return kf(t.event),e;case it.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:t.payload.parameters.contentUrl});case it.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case it.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:t.payload.locale});case Tt:return kf(t),e;case Et:return kf(t),{...e,conversationRating:{...e.conversationRating,opener:void 0}};case yt:{let n=new ft(t.transcription,new ut);return Of(e,Object.assign({},n,{_id:Zt()}))}case it.TRANSCRIPT_ITEM_GUEST_REACTION:{let n=e.messages.map(e=>e._id===t.payload.actionId?Object.assign({},e,t.payload.reaction?{reaction:{type:t.payload.reaction,category:t.payload.category,comment:t.payload.comment}}:{reaction:void 0}):e);return Object.assign({},e,{messages:n})}case bt:{let n={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:n})}case it.CONVERSATION_RATING_FROM_GUEST:{let n={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:n})}case Ti:{let n={...e.conversationRating,opener:t.payload.opener,...t.payload.defaultRating?{rating:{value:t.payload.defaultRating,feedback:e.conversationRating.rating?.feedback||``}}:{}};return Object.assign({},e,{conversationRating:n})}case Ei:{let t={...e.conversationRating,opener:void 0};return Object.assign({},e,{conversationRating:t})}case Ct:return{...e,sourceInfos:{type:`loading`,chunkId:t.payload.chunkId}};case St:{let{highlighted:n}=t.payload;return e.sourceInfos?.type===`loaded`&&n?{...e,sourceInfos:{...e.sourceInfos,highlighted:!0}}:{...e,sourceInfos:{type:`loading-error`}}}case xt:{let n=e.sourceInfos?.type,{chunkId:r,knowledgeBaseType:i,title:a,content:o,highlighted:s,url:c}=t.payload,l=e.sourceInfos?.type===`loading`||e.sourceInfos?.type===`loaded`?e.sourceInfos?.chunkId:void 0;return l&&l!==r?e:n===`loading`||n===`loaded`&&s?{...e,sourceInfos:{type:`loaded`,chunkId:r,knowledgeBaseType:i,title:a,content:o,highlighted:s,url:c}}:e}case wt:return{...e,sourceInfos:void 0};case wi:return{...e,showTranscriptMailOverlay:!e.showTranscriptMailOverlay,conversationRating:{...e.conversationRating,opener:void 0}};default:return e}},Of=(e,t,n)=>{let r=e.messages[e.messages.length-1],i=r?.text===t.text,a=!!n?.actionId,o=r&&!r._id&&r.sender.type===t.sender.type;if(a&&o){let r=Object.assign({},t,{_id:n.actionId}),i=[...e.messages];return i[i.length-1]=r,Object.assign({},e,{messages:i,quickReplies:[]})}return r&&r.sender.type===t.sender.type&&i?e:Object.assign({},e,{messages:e.messages.concat([t]),quickReplies:[]})},kf=e=>{if(jf()){let t=Af();window.top?.postMessage(e,t)}else e.type===`webclient.change.url`&&window.open(e.url)},Af=()=>{try{return document.referrer?new URL(document.referrer).origin:`*`}catch{return`*`}},jf=()=>typeof window<`u`&&window.self!==window.top,Mf={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},Nf=ti({name:`intl`,initialState:Sf,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:Pf}=Nf.actions,Ff=Nf.reducer,If=ti({name:`settings`,initialState:{version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[],allowedEmbedOrigins:void 0},reducers:{setSettings(e,t){e.version&&e.version!==t.payload.version?(console.log(`version changed, reloading chat window`),window.location.reload()):(e.version=t.payload.version,e.requiresUserAuthentication=t.payload.requiresUserAuthentication,e.enableStartScreen=t.payload.enableStartScreen,e.enableStandaloneView=t.payload.enableStandaloneView,e.enableTranscriptExportEmail=t.payload.enableTranscriptExportEmail,e.enableTranscriptExportPdf=t.payload.enableTranscriptExportPdf,e.enableGeneralConditions=t.payload.enableGeneralConditions,e.enableSpeechSupport=t.payload.enableSpeechSupport,e.commands=t.payload.commands,e.menuItems=t.payload.menuItems||[],e.allowedEmbedOrigins=t.payload.allowedEmbedOrigins)}}}),{setSettings:Lf}=If.actions,Rf=If.reducer,zf=cn({settings:Rf,chat:Df,startScreen:Si,connection:Tf,intl:Ff}),Bf=`bubble-chat`,Vf=`state-last-saved-at`,Hf=`state`,Uf=e=>{try{if(!Kf()||Gf(qf(e,Vf)))return;{let t=qf(e,Hf);if(t===null)return;let n=JSON.parse(t),r=n.connection?.queryString;if(r!==void 0&&!Xf(r,window.location.search)){console.log(`Ignoring persisted state due to different query string`);return}else return n}}catch(e){console.error(e);return}},Wf=(e,t)=>{try{Jf(e,Hf,JSON.stringify(t)),Jf(e,Vf,new Date().toISOString())}catch(e){console.error(e)}},Gf=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},Kf=()=>typeof localStorage<`u`,qf=(e,t)=>{let n=Yf(e,t);return localStorage.getItem(n)},Jf=(e,t,n)=>{let r=Yf(e,t);return localStorage.setItem(r,n)},Yf=(e,t)=>`${Bf}-${e}-${t}`,Xf=(e,t)=>{let n=new URLSearchParams(e),r=new URLSearchParams(t);n.delete(`referrer`),r.delete(`referrer`);let i=Array.from(n.entries()).sort(),a=Array.from(r.entries()).sort();return i.length===a.length?i.every(([e,t],n)=>{let[r,i]=a[n];return e===r&&t===i}):!1},Zf=Object.create(null);Zf.open=`0`,Zf.close=`1`,Zf.ping=`2`,Zf.pong=`3`,Zf.message=`4`,Zf.upgrade=`5`,Zf.noop=`6`;var Qf=Object.create(null);Object.keys(Zf).forEach(e=>{Qf[Zf[e]]=e});var $f={type:`error`,data:`parser error`},ep=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,tp=typeof ArrayBuffer==`function`,np=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,rp=({type:e,data:t},n,r)=>ep&&t instanceof Blob?n?r(t):ip(t,r):tp&&(t instanceof ArrayBuffer||np(t))?n?r(t):ip(new Blob([t]),r):r(Zf[e]+(t||``)),ip=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function ap(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var op;function sp(e,t){if(ep&&e.data instanceof Blob)return e.data.arrayBuffer().then(ap).then(t);if(tp&&(e.data instanceof ArrayBuffer||np(e.data)))return t(ap(e.data));rp(e,!1,e=>{op||=new TextEncoder,t(op.encode(e))})}var cp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,lp=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)lp[cp.charCodeAt(e)]=e;var up=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=lp[e.charCodeAt(r)],o=lp[e.charCodeAt(r+1)],s=lp[e.charCodeAt(r+2)],c=lp[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},dp=typeof ArrayBuffer==`function`,fp=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:mp(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:pp(e.substring(1),t)}:Qf[n]?e.length>1?{type:Qf[n],data:e.substring(1)}:{type:Qf[n]}:$f},pp=(e,t)=>dp?mp(up(e),t):{base64:!0,data:e},mp=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},hp=``,gp=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{rp(e,!1,e=>{r[a]=e,++i===n&&t(r.join(hp))})})},_p=(e,t)=>{let n=e.split(hp),r=[];for(let e=0;e<n.length;e++){let i=fp(n[e],t);if(r.push(i),i.type===`error`)break}return r};function vp(){return new TransformStream({transform(e,t){sp(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var yp;function bp(e){return e.reduce((e,t)=>e+t.length,0)}function xp(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Sp(e,t){yp||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(bp(n)<1)break;let e=xp(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(bp(n)<2)break;let e=xp(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(bp(n)<8)break;let e=xp(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue($f);break}i=a*2**32+t.getUint32(4),r=3}else{if(bp(n)<i)break;let e=xp(n,i);s.enqueue(fp(a?e:yp.decode(e),t)),r=0}if(i===0||i>e){s.enqueue($f);break}}}})}function Cp(e){if(e)return wp(e)}function wp(e){for(var t in Cp.prototype)e[t]=Cp.prototype[t];return e}Cp.prototype.on=Cp.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},Cp.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Cp.prototype.off=Cp.prototype.removeListener=Cp.prototype.removeAllListeners=Cp.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},Cp.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},Cp.prototype.emitReserved=Cp.prototype.emit,Cp.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},Cp.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Tp=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Ep=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),Dp=`arraybuffer`;function Op(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var kp=Ep.setTimeout,Ap=Ep.clearTimeout;function jp(e,t){t.useNativeTimers?(e.setTimeoutFn=kp.bind(Ep),e.clearTimeoutFn=Ap.bind(Ep)):(e.setTimeoutFn=Ep.setTimeout.bind(Ep),e.clearTimeoutFn=Ep.clearTimeout.bind(Ep))}var Mp=1.33;function Np(e){return typeof e==`string`?Pp(e):Math.ceil((e.byteLength||e.size)*Mp)}function Pp(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Fp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ip(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function Lp(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var Rp=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},zp=class extends Cp{constructor(e){super(),this.writable=!1,jp(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new Rp(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=fp(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_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(e){let t=Ip(e);return t.length?`?`+t:``}},Bp=class extends zp{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){_p(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,gp(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Fp()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},Vp=!1;try{Vp=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Hp=Vp;function Up(){}var Wp=class extends Bp{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Gp=class e extends Cp{constructor(e,t,n){super(),this.createRequest=e,jp(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=Op(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=Up,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Gp.requestsCount=0,Gp.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,Kp);else if(typeof addEventListener==`function`){let e=`onpagehide`in Ep?`pagehide`:`unload`;addEventListener(e,Kp,!1)}}function Kp(){for(let e in Gp.requests)Gp.requests.hasOwnProperty(e)&&Gp.requests[e].abort()}var qp=(function(){let e=Yp({xdomain:!1});return e&&e.responseType!==null})(),Jp=class extends Wp{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=qp&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Gp(Yp,this.uri(),e)}};function Yp(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Hp))return new XMLHttpRequest}catch{}if(!t)try{return new Ep[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Xp=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Zp=class extends zp{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Xp?{}:Op(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;rp(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&Tp(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Fp()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Qp=Ep.WebSocket||Ep.MozWebSocket,$p={websocket:class extends Zp{createSocket(e,t,n){return Xp?new Qp(e,t,n):t?new Qp(e,t):new Qp(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends zp{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Sp(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=vp();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&Tp(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Jp},em=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tm=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function nm(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=em.exec(e||``),a={},o=14;for(;o--;)a[tm[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=rm(a,a.path),a.queryKey=im(a,a.query),a}function rm(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function im(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var am=typeof addEventListener==`function`&&typeof removeEventListener==`function`,om=[];am&&addEventListener(`offline`,()=>{om.forEach(e=>e())},!1);var sm=class e extends Cp{constructor(e,t){if(super(),this.binaryType=Dp,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=nm(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=nm(t.host).host);jp(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),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},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=Lp(this.opts.query)),am&&(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`})},om.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),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){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=Np(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Tp(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){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(),am&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=om.indexOf(this._offlineEventListener);e!==-1&&om.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};sm.protocol=4;var cm=class extends sm{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;sm.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;sm.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},lm=class extends cm{constructor(e,t={}){let n=typeof e==`object`?e:t;(!n.transports||n.transports&&typeof n.transports[0]==`string`)&&(n.transports=(n.transports||[`polling`,`websocket`,`webtransport`]).map(e=>$p[e]).filter(e=>!!e)),super(e,n)}};lm.protocol;function um(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=nm(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var dm=typeof ArrayBuffer==`function`,fm=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,pm=Object.prototype.toString,mm=typeof Blob==`function`||typeof Blob<`u`&&pm.call(Blob)===`[object BlobConstructor]`,hm=typeof File==`function`||typeof File<`u`&&pm.call(File)===`[object FileConstructor]`;function gm(e){return dm&&(e instanceof ArrayBuffer||fm(e))||mm&&e instanceof Blob||hm&&e instanceof File}function _m(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(_m(e[t]))return!0;return!1}if(gm(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return _m(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&_m(e[t]))return!0;return!1}function vm(e){let t=[],n=e.data,r=e;return r.data=ym(n,t),r.attachments=t.length,{packet:r,buffers:t}}function ym(e,t){if(!e)return e;if(gm(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=ym(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=ym(e[r],t));return n}return e}function bm(e,t){return e.data=xm(e.data,t),delete e.attachments,e}function xm(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=xm(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=xm(e[n],t));return e}var Sm=s({Decoder:()=>Em,Encoder:()=>Tm,PacketType:()=>wm,isPacketValid:()=>Nm,protocol:()=>5}),Cm=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],wm;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(wm||={});var Tm=class{constructor(e){this.replacer=e}encode(e){return(e.type===wm.EVENT||e.type===wm.ACK)&&_m(e)?this.encodeAsBinary({type:e.type===wm.EVENT?wm.BINARY_EVENT:wm.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===wm.BINARY_EVENT||e.type===wm.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=vm(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},Em=class e extends Cp{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===wm.BINARY_EVENT;n||t.type===wm.BINARY_ACK?(t.type=n?wm.EVENT:wm.ACK,this.reconstructor=new Dm(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(gm(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(wm[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===wm.BINARY_EVENT||r.type===wm.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!km(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case wm.CONNECT:return jm(t);case wm.DISCONNECT:return t===void 0;case wm.CONNECT_ERROR:return typeof t==`string`||jm(t);case wm.EVENT:case wm.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Cm.indexOf(t[0])===-1);case wm.ACK:case wm.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},Dm=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=bm(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Om(e){return typeof e==`string`}var km=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function Am(e){return e===void 0||km(e)}function jm(e){return Object.prototype.toString.call(e)===`[object Object]`}function Mm(e,t){switch(e){case wm.CONNECT:return t===void 0||jm(t);case wm.DISCONNECT:return t===void 0;case wm.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Cm.indexOf(t[0])===-1);case wm.ACK:return Array.isArray(t);case wm.CONNECT_ERROR:return typeof t==`string`||jm(t);default:return!1}}function Nm(e){return Om(e.nsp)&&Am(e.id)&&Mm(e.type,e.data)}function Pm(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Fm=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Im=class extends Cp{constructor(e,t,n){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=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Pm(e,`open`,this.onopen.bind(this)),Pm(e,`packet`,this.onpacket.bind(this)),Pm(e,`error`,this.onerror.bind(this)),Pm(e,`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(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(Fm.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:wm.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:wm.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case wm.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,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 wm.EVENT:case wm.BINARY_EVENT:this.onevent(e);break;case wm.ACK:case wm.BINARY_ACK:this.onack(e);break;case wm.DISCONNECT:this.ondisconnect();break;case wm.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:wm.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:wm.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function Lm(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Lm.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},Lm.prototype.reset=function(){this.attempts=0},Lm.prototype.setMin=function(e){this.ms=e},Lm.prototype.setMax=function(e){this.max=e},Lm.prototype.setJitter=function(e){this.jitter=e};var Rm=class extends Cp{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,jp(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new Lm({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||Sm;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new lm(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=Pm(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=Pm(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(Pm(e,`ping`,this.onping.bind(this)),Pm(e,`data`,this.ondata.bind(this)),Pm(e,`error`,this.onerror.bind(this)),Pm(e,`close`,this.onclose.bind(this)),Pm(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){Tp(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Im(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},zm={};function Bm(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=um(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=zm[i]&&a in zm[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new Rm(r,t):(zm[i]||(zm[i]=new Rm(r,t)),c=zm[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Bm,{Manager:Rm,Socket:Im,io:Bm,connect:Bm});var Vm=[it.MESSAGE_TO_GUEST,it.EVENT_TO_GUEST,it.TYPING_ON,it.TYPING_OFF,it.RESTART_CHAT_REQUEST,...Ui,...Ot,`@@localize/SET_ACTIVE_LANGUAGE`,`@@localize/ADD_TRANSLATION_FOR_LANGUAGE`],Hm=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let a=n(i);if(i.type===`CONNECT`)r?.disconnect(),e(Ki()),r=Bm({path:`/website-messenger/${i.clientName}/socket.io`,query:i.querystrings}),r.on(`action`,e),r.on(`connect`,()=>e(qi())),r.on(`disconnect`,()=>e(Ji())),r.on(`reconnect`,()=>e(Yi())),r.on(`set-translations`,(t,n)=>{e(Pf({language:t,messages:Cf(t,n)}))}),r.on(`set-settings`,t=>{e(Lf(t))}),r.on(`enable-conversation-rating`,t=>e(Nt(t))),r.on(`speech-transcription`,t=>e(At(t))),r.on(`restore-client-state`,t=>{e(Gi(t.sessionId)),e(It(t.messages))}),r.on(`expand-window`,({devices:t,initial:n=!1})=>{e({type:Tt,devices:t,initial:n})}),r.on(`restart-chat`,()=>{e(Zi())}),r.on(`login-success`,t=>{e(vi({loginToken:t.loginToken}))});else if(i.type===`start-screen/requestLogin`)r?.emit(`login-requested`,i.payload);else if(i.type===`START`)r?.emit(`start-chat`,i.payload);else if(i.type===`CLEAR_SESSION_ID`)r?.emit(`terminate-session`,i.payload);else if(i.type===`webclient.get.started`)r?.emit(`get-started`,JSON.stringify(i));else if(i.type===`AUDIO_MESSAGE_FROM_USER`)r?.emit(`audio-message`,i.buffer);else if(i.type===it.CONVERSATION_RATING_FROM_GUEST)r?.emit(`conversation-rating`,i.payload);else if(i.type===`webclient.transcript.pdf.download`){let{connection:{sessionId:e}}=t();if(e){let t=Qt(),n=new URL(`/${encodeURIComponent(t)}/transcript-pdf/${encodeURIComponent(e)}`,window.location.origin);window.location.href=n.toString()}}else Vm.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit(`action`,JSON.stringify(i));return a}},Um=Qt(),Wm=qr({middleware:e=>e().concat(Hm),reducer:zf,preloadedState:{...Uf(Um),intl:Sf}});Wm.subscribe(Ic(()=>{let e=Wm.getState();Wf(Um,{connection:e.connection,startScreen:e.startScreen})},1e3)),(0,b.createRoot)(document.getElementById(`root`)).render((0,X.jsx)(Ke,{store:Wm,children:(0,X.jsx)(hf,{})}));
75
+ //# sourceMappingURL=index-CtCTrwZP.js.map