@nlxai/touchpoint-ui 1.0.4-alpha.1 → 1.0.4-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/App.d.ts +9 -2
- package/lib/components/ChatHeader.d.ts +2 -2
- package/lib/components/ChatSettings.d.ts +1 -4
- package/lib/components/ui/LaunchButton.d.ts +1 -0
- package/lib/index.js +1860 -1888
- package/lib/index.umd.js +161 -0
- package/lib/types.d.ts +8 -4
- package/package.json +2 -2
- package/tailwind.config.js +2 -2
- package/vite.config.ts +2 -1
- package/lib/index.umd.cjs +0 -161
package/lib/index.umd.cjs
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
(function(V,_e){typeof exports=="object"&&typeof module<"u"?_e(exports):typeof define=="function"&&define.amd?define(["exports"],_e):(V=typeof globalThis<"u"?globalThis:V||self,_e((V.nlxai=V.nlxai||{},V.nlxai.touchpointUi={})))})(this,function(V){"use strict";var eg=Object.defineProperty;var tg=(V,_e,Ht)=>_e in V?eg(V,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):V[_e]=Ht;var A=(V,_e,Ht)=>tg(V,typeof _e!="symbol"?_e+"":_e,Ht);function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht={exports:{}},$r={},Xs={exports:{}},I={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Vn=Symbol.for("react.element"),Sf=Symbol.for("react.portal"),bf=Symbol.for("react.fragment"),_f=Symbol.for("react.strict_mode"),Ef=Symbol.for("react.profiler"),Lf=Symbol.for("react.provider"),Tf=Symbol.for("react.context"),jf=Symbol.for("react.forward_ref"),zf=Symbol.for("react.suspense"),Rf=Symbol.for("react.memo"),Pf=Symbol.for("react.lazy"),Ys=Symbol.iterator;function Mf(e){return e===null||typeof e!="object"?null:(e=Ys&&e[Ys]||e["@@iterator"],typeof e=="function"?e:null)}var Ks={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qs=Object.assign,Js={};function an(e,t,n){this.props=e,this.context=t,this.refs=Js,this.updater=n||Ks}an.prototype.isReactComponent={},an.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")},an.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ea(){}ea.prototype=an.prototype;function fi(e,t,n){this.props=e,this.context=t,this.refs=Js,this.updater=n||Ks}var pi=fi.prototype=new ea;pi.constructor=fi,qs(pi,an.prototype),pi.isPureReactComponent=!0;var ta=Array.isArray,na=Object.prototype.hasOwnProperty,hi={current:null},ra={key:!0,ref:!0,__self:!0,__source:!0};function oa(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)na.call(t,r)&&!ra.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Vn,type:e,key:i,ref:l,props:o,_owner:hi.current}}function Nf(e,t){return{$$typeof:Vn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function mi(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vn}function If(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ia=/\/+/g;function gi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?If(""+e.key):t.toString(36)}function Ar(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Vn:case Sf:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+gi(l,0):r,ta(o)?(n="",e!=null&&(n=e.replace(ia,"$&/")+"/"),Ar(o,t,n,"",function(u){return u})):o!=null&&(mi(o)&&(o=Nf(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(ia,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",ta(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+gi(i,s);l+=Ar(i,t,n,a,o)}else if(a=Mf(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+gi(i,s++),l+=Ar(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Br(e,t,n){if(e==null)return e;var r=[],o=0;return Ar(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Of(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ve={current:null},Vr={transition:null},Hf={ReactCurrentDispatcher:ve,ReactCurrentBatchConfig:Vr,ReactCurrentOwner:hi};function la(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:Br,forEach:function(e,t,n){Br(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Br(e,function(){t++}),t},toArray:function(e){return Br(e,function(t){return t})||[]},only:function(e){if(!mi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},I.Component=an,I.Fragment=bf,I.Profiler=Ef,I.PureComponent=fi,I.StrictMode=_f,I.Suspense=zf,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hf,I.act=la,I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=qs({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=hi.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)na.call(t,a)&&!ra.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Vn,type:e.type,key:o,ref:i,props:r,_owner:l}},I.createContext=function(e){return e={$$typeof:Tf,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Lf,_context:e},e.Consumer=e},I.createElement=oa,I.createFactory=function(e){var t=oa.bind(null,e);return t.type=e,t},I.createRef=function(){return{current:null}},I.forwardRef=function(e){return{$$typeof:jf,render:e}},I.isValidElement=mi,I.lazy=function(e){return{$$typeof:Pf,_payload:{_status:-1,_result:e},_init:Of}},I.memo=function(e,t){return{$$typeof:Rf,type:e,compare:t===void 0?null:t}},I.startTransition=function(e){var t=Vr.transition;Vr.transition={};try{e()}finally{Vr.transition=t}},I.unstable_act=la,I.useCallback=function(e,t){return ve.current.useCallback(e,t)},I.useContext=function(e){return ve.current.useContext(e)},I.useDebugValue=function(){},I.useDeferredValue=function(e){return ve.current.useDeferredValue(e)},I.useEffect=function(e,t){return ve.current.useEffect(e,t)},I.useId=function(){return ve.current.useId()},I.useImperativeHandle=function(e,t,n){return ve.current.useImperativeHandle(e,t,n)},I.useInsertionEffect=function(e,t){return ve.current.useInsertionEffect(e,t)},I.useLayoutEffect=function(e,t){return ve.current.useLayoutEffect(e,t)},I.useMemo=function(e,t){return ve.current.useMemo(e,t)},I.useReducer=function(e,t,n){return ve.current.useReducer(e,t,n)},I.useRef=function(e){return ve.current.useRef(e)},I.useState=function(e){return ve.current.useState(e)},I.useSyncExternalStore=function(e,t,n){return ve.current.useSyncExternalStore(e,t,n)},I.useTransition=function(){return ve.current.useTransition()},I.version="18.3.1",Xs.exports=I;var z=Xs.exports;const un=_e(z);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Df=z,$f=Symbol.for("react.element"),Af=Symbol.for("react.fragment"),Bf=Object.prototype.hasOwnProperty,Vf=Df.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ff={key:!0,ref:!0,__self:!0,__source:!0};function sa(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Bf.call(t,r)&&!Ff.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:$f,type:e,key:i,ref:l,props:o,_owner:Vf.current}}$r.Fragment=Af,$r.jsx=sa,$r.jsxs=sa,Ht.exports=$r;var p=Ht.exports,aa={exports:{}},Re={},ua={exports:{}},ca={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(L,R){var N=L.length;L.push(R);e:for(;0<N;){var ee=N-1>>>1,ae=L[ee];if(0<o(ae,R))L[ee]=R,L[N]=ae,N=ee;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var R=L[0],N=L.pop();if(N!==R){L[0]=N;e:for(var ee=0,ae=L.length,ci=ae>>>1;ee<ci;){var ln=2*(ee+1)-1,Gs=L[ln],sn=ln+1,di=L[sn];if(0>o(Gs,N))sn<ae&&0>o(di,Gs)?(L[ee]=di,L[sn]=N,ee=sn):(L[ee]=Gs,L[ln]=N,ee=ln);else if(sn<ae&&0>o(di,N))L[ee]=di,L[sn]=N,ee=sn;else break e}}return R}function o(L,R){var N=L.sortIndex-R.sortIndex;return N!==0?N:L.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,h=null,f=3,y=!1,x=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(L){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=L)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function k(L){if(w=!1,g(L),!x)if(n(a)!==null)x=!0,Ws(v);else{var R=n(u);R!==null&&Qs(k,R.startTime-L)}}function v(L,R){x=!1,w&&(w=!1,m(_),_=-1),y=!0;var N=f;try{for(g(R),h=n(a);h!==null&&(!(h.expirationTime>R)||L&&!H());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,f=h.priorityLevel;var ae=ee(h.expirationTime<=R);R=e.unstable_now(),typeof ae=="function"?h.callback=ae:h===n(a)&&r(a),g(R)}else r(a);h=n(a)}if(h!==null)var ci=!0;else{var ln=n(u);ln!==null&&Qs(k,ln.startTime-R),ci=!1}return ci}finally{h=null,f=N,y=!1}}var S=!1,C=null,_=-1,M=5,T=-1;function H(){return!(e.unstable_now()-T<M)}function ie(){if(C!==null){var L=e.unstable_now();T=L;var R=!0;try{R=C(!0,L)}finally{R?it():(S=!1,C=null)}}else S=!1}var it;if(typeof d=="function")it=function(){d(ie)};else if(typeof MessageChannel<"u"){var Dr=new MessageChannel,Jm=Dr.port2;Dr.port1.onmessage=ie,it=function(){Jm.postMessage(null)}}else it=function(){j(ie,0)};function Ws(L){C=L,S||(S=!0,it())}function Qs(L,R){_=j(function(){L(e.unstable_now())},R)}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(L){L.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,Ws(v))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var N=f;f=R;try{return L()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,R){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var N=f;f=L;try{return R()}finally{f=N}},e.unstable_scheduleCallback=function(L,R,N){var ee=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?ee+N:ee):N=ee,L){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=N+ae,L={id:c++,callback:R,priorityLevel:L,startTime:N,expirationTime:ae,sortIndex:-1},N>ee?(L.sortIndex=N,t(u,L),n(a)===null&&L===n(u)&&(w?(m(_),_=-1):w=!0,Qs(k,N-ee))):(L.sortIndex=ae,t(a,L),x||y||(x=!0,Ws(v))),L},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(L){var R=f;return function(){var N=f;f=R;try{return L.apply(this,arguments)}finally{f=N}}}})(ca),ua.exports=ca;var Uf=ua.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Zf=z,Pe=Uf;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var da=new Set,Fn={};function Dt(e,t){cn(e,t),cn(e+"Capture",t)}function cn(e,t){for(Fn[e]=t,e=0;e<t.length;e++)da.add(t[e])}var lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yi=Object.prototype.hasOwnProperty,Wf=/^[: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]*$/,fa={},pa={};function Qf(e){return yi.call(pa,e)?!0:yi.call(fa,e)?!1:Wf.test(e)?pa[e]=!0:(fa[e]=!0,!1)}function Gf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Xf(e,t,n,r){if(t===null||typeof t>"u"||Gf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function we(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new we(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new we(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new we(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ue[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new we(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ue[e]=new we(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ue[e]=new we(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ue[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var vi=/[\-:]([a-z])/g;function wi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vi,wi);ue[t]=new we(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vi,wi);ue[t]=new we(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vi,wi);ue[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)}),ue.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ue[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function xi(e,t,n,r){var o=ue.hasOwnProperty(t)?ue[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Xf(t,n,o,r)&&(n=null),r||o===null?Qf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var st=Zf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fr=Symbol.for("react.element"),dn=Symbol.for("react.portal"),fn=Symbol.for("react.fragment"),ki=Symbol.for("react.strict_mode"),Ci=Symbol.for("react.profiler"),ha=Symbol.for("react.provider"),ma=Symbol.for("react.context"),Si=Symbol.for("react.forward_ref"),bi=Symbol.for("react.suspense"),_i=Symbol.for("react.suspense_list"),Ei=Symbol.for("react.memo"),gt=Symbol.for("react.lazy"),ga=Symbol.for("react.offscreen"),ya=Symbol.iterator;function Un(e){return e===null||typeof e!="object"?null:(e=ya&&e[ya]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,Li;function Zn(e){if(Li===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Li=t&&t[1]||""}return`
|
|
34
|
-
`+Li+e}var Ti=!1;function ji(e,t){if(!e||Ti)return"";Ti=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
-
`),i=r.stack.split(`
|
|
36
|
-
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var a=`
|
|
37
|
-
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Ti=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zn(e):""}function Yf(e){switch(e.tag){case 5:return Zn(e.type);case 16:return Zn("Lazy");case 13:return Zn("Suspense");case 19:return Zn("SuspenseList");case 0:case 2:case 15:return e=ji(e.type,!1),e;case 11:return e=ji(e.type.render,!1),e;case 1:return e=ji(e.type,!0),e;default:return""}}function zi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fn:return"Fragment";case dn:return"Portal";case Ci:return"Profiler";case ki:return"StrictMode";case bi:return"Suspense";case _i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ma:return(e.displayName||"Context")+".Consumer";case ha:return(e._context.displayName||"Context")+".Provider";case Si:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ei:return t=e.displayName||null,t!==null?t:zi(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return zi(e(t))}catch{}}return null}function Kf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zi(t);case 8:return t===ki?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function va(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qf(e){var t=va(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ur(e){e._valueTracker||(e._valueTracker=qf(e))}function wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=va(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ri(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ka(e,t){t=t.checked,t!=null&&xi(e,"checked",t,!1)}function Pi(e,t){ka(e,t);var n=yt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Mi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Mi(e,t.type,yt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ca(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Mi(e,t,n){(t!=="number"||Zr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wn=Array.isArray;function pn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ni(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(b(92));if(Wn(n)){if(1<n.length)throw Error(b(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:yt(n)}}function ba(e,t){var n=yt(t.value),r=yt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function _a(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ea(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ii(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ea(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wr,La=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wr=Wr||document.createElement("div"),Wr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jf=["Webkit","ms","Moz","O"];Object.keys(Gn).forEach(function(e){Jf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gn[t]=Gn[e]})});function Ta(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gn.hasOwnProperty(e)&&Gn[e]?(""+t).trim():t+"px"}function ja(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ta(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ep=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oi(e,t){if(t){if(ep[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Hi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Di=null;function $i(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ai=null,hn=null,mn=null;function za(e){if(e=gr(e)){if(typeof Ai!="function")throw Error(b(280));var t=e.stateNode;t&&(t=go(t),Ai(e.stateNode,e.type,t))}}function Ra(e){hn?mn?mn.push(e):mn=[e]:hn=e}function Pa(){if(hn){var e=hn,t=mn;if(mn=hn=null,za(e),t)for(e=0;e<t.length;e++)za(t[e])}}function Ma(e,t){return e(t)}function Na(){}var Bi=!1;function Ia(e,t,n){if(Bi)return e(t,n);Bi=!0;try{return Ma(e,t,n)}finally{Bi=!1,(hn!==null||mn!==null)&&(Na(),Pa())}}function Xn(e,t){var n=e.stateNode;if(n===null)return null;var r=go(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(b(231,t,typeof n));return n}var Vi=!1;if(lt)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Vi=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch{Vi=!1}function tp(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Kn=!1,Qr=null,Gr=!1,Fi=null,np={onError:function(e){Kn=!0,Qr=e}};function rp(e,t,n,r,o,i,l,s,a){Kn=!1,Qr=null,tp.apply(np,arguments)}function op(e,t,n,r,o,i,l,s,a){if(rp.apply(this,arguments),Kn){if(Kn){var u=Qr;Kn=!1,Qr=null}else throw Error(b(198));Gr||(Gr=!0,Fi=u)}}function $t(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 Oa(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 Ha(e){if($t(e)!==e)throw Error(b(188))}function ip(e){var t=e.alternate;if(!t){if(t=$t(e),t===null)throw Error(b(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ha(o),e;if(i===r)return Ha(o),t;i=i.sibling}throw Error(b(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(b(189))}}if(n.alternate!==r)throw Error(b(190))}if(n.tag!==3)throw Error(b(188));return n.stateNode.current===n?e:t}function Da(e){return e=ip(e),e!==null?$a(e):null}function $a(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$a(e);if(t!==null)return t;e=e.sibling}return null}var Aa=Pe.unstable_scheduleCallback,Ba=Pe.unstable_cancelCallback,lp=Pe.unstable_shouldYield,sp=Pe.unstable_requestPaint,J=Pe.unstable_now,ap=Pe.unstable_getCurrentPriorityLevel,Ui=Pe.unstable_ImmediatePriority,Va=Pe.unstable_UserBlockingPriority,Xr=Pe.unstable_NormalPriority,up=Pe.unstable_LowPriority,Fa=Pe.unstable_IdlePriority,Yr=null,qe=null;function cp(e){if(qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Yr,e,void 0,(e.current.flags&128)===128)}catch{}}var Ze=Math.clz32?Math.clz32:pp,dp=Math.log,fp=Math.LN2;function pp(e){return e>>>=0,e===0?32:31-(dp(e)/fp|0)|0}var Kr=64,qr=4194304;function qn(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=qn(s):(i&=l,i!==0&&(r=qn(i)))}else l=n&~o,l!==0?r=qn(l):i!==0&&(r=qn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ze(t),o=1<<n,r|=e[n],t&=~o;return r}function hp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Ze(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=hp(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function Zi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ua(){var e=Kr;return Kr<<=1,!(Kr&4194240)&&(Kr=64),e}function Wi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function gp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ze(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Qi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var D=0;function Za(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wa,Gi,Qa,Ga,Xa,Xi=!1,eo=[],vt=null,wt=null,xt=null,er=new Map,tr=new Map,kt=[],yp="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 submit".split(" ");function Ya(e,t){switch(e){case"focusin":case"focusout":vt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":er.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tr.delete(t.pointerId)}}function nr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=gr(t),t!==null&&Gi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function vp(e,t,n,r,o){switch(t){case"focusin":return vt=nr(vt,e,t,n,r,o),!0;case"dragenter":return wt=nr(wt,e,t,n,r,o),!0;case"mouseover":return xt=nr(xt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return er.set(i,nr(er.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,tr.set(i,nr(tr.get(i)||null,e,t,n,r,o)),!0}return!1}function Ka(e){var t=At(e.target);if(t!==null){var n=$t(t);if(n!==null){if(t=n.tag,t===13){if(t=Oa(n),t!==null){e.blockedOn=t,Xa(e.priority,function(){Qa(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 to(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ki(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Di=r,n.target.dispatchEvent(r),Di=null}else return t=gr(n),t!==null&&Gi(t),e.blockedOn=n,!1;t.shift()}return!0}function qa(e,t,n){to(e)&&n.delete(t)}function wp(){Xi=!1,vt!==null&&to(vt)&&(vt=null),wt!==null&&to(wt)&&(wt=null),xt!==null&&to(xt)&&(xt=null),er.forEach(qa),tr.forEach(qa)}function rr(e,t){e.blockedOn===t&&(e.blockedOn=null,Xi||(Xi=!0,Pe.unstable_scheduleCallback(Pe.unstable_NormalPriority,wp)))}function or(e){function t(o){return rr(o,e)}if(0<eo.length){rr(eo[0],e);for(var n=1;n<eo.length;n++){var r=eo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vt!==null&&rr(vt,e),wt!==null&&rr(wt,e),xt!==null&&rr(xt,e),er.forEach(t),tr.forEach(t),n=0;n<kt.length;n++)r=kt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<kt.length&&(n=kt[0],n.blockedOn===null);)Ka(n),n.blockedOn===null&&kt.shift()}var gn=st.ReactCurrentBatchConfig,no=!0;function xp(e,t,n,r){var o=D,i=gn.transition;gn.transition=null;try{D=1,Yi(e,t,n,r)}finally{D=o,gn.transition=i}}function kp(e,t,n,r){var o=D,i=gn.transition;gn.transition=null;try{D=4,Yi(e,t,n,r)}finally{D=o,gn.transition=i}}function Yi(e,t,n,r){if(no){var o=Ki(e,t,n,r);if(o===null)hl(e,t,r,ro,n),Ya(e,r);else if(vp(o,e,t,n,r))r.stopPropagation();else if(Ya(e,r),t&4&&-1<yp.indexOf(e)){for(;o!==null;){var i=gr(o);if(i!==null&&Wa(i),i=Ki(e,t,n,r),i===null&&hl(e,t,r,ro,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else hl(e,t,r,null,n)}}var ro=null;function Ki(e,t,n,r){if(ro=null,e=$i(r),e=At(e),e!==null)if(t=$t(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Oa(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 ro=e,null}function Ja(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ap()){case Ui:return 1;case Va:return 4;case Xr:case up:return 16;case Fa:return 536870912;default:return 16}default:return 16}}var Ct=null,qi=null,oo=null;function eu(){if(oo)return oo;var e,t=qi,n=t.length,r,o="value"in Ct?Ct.value:Ct.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return oo=o.slice(e,1<r?1-r:void 0)}function io(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 lo(){return!0}function tu(){return!1}function Me(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?lo:tu,this.isPropagationStopped=tu,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lo)},persist:function(){},isPersistent:lo}),t}var yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ji=Me(yn),ir=G({},yn,{view:0,detail:0}),Cp=Me(ir),el,tl,lr,so=G({},ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rl,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!==lr&&(lr&&e.type==="mousemove"?(el=e.screenX-lr.screenX,tl=e.screenY-lr.screenY):tl=el=0,lr=e),el)},movementY:function(e){return"movementY"in e?e.movementY:tl}}),nu=Me(so),Sp=G({},so,{dataTransfer:0}),bp=Me(Sp),_p=G({},ir,{relatedTarget:0}),nl=Me(_p),Ep=G({},yn,{animationName:0,elapsedTime:0,pseudoElement:0}),Lp=Me(Ep),Tp=G({},yn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jp=Me(Tp),zp=G({},yn,{data:0}),ru=Me(zp),Rp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pp={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"},Mp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Np(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mp[e])?!!t[e]:!1}function rl(){return Np}var Ip=G({},ir,{key:function(e){if(e.key){var t=Rp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=io(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rl,charCode:function(e){return e.type==="keypress"?io(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?io(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Op=Me(Ip),Hp=G({},so,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ou=Me(Hp),Dp=G({},ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rl}),$p=Me(Dp),Ap=G({},yn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bp=Me(Ap),Vp=G({},so,{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}),Fp=Me(Vp),Up=[9,13,27,32],ol=lt&&"CompositionEvent"in window,sr=null;lt&&"documentMode"in document&&(sr=document.documentMode);var Zp=lt&&"TextEvent"in window&&!sr,iu=lt&&(!ol||sr&&8<sr&&11>=sr),lu=" ",su=!1;function au(e,t){switch(e){case"keyup":return Up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vn=!1;function Wp(e,t){switch(e){case"compositionend":return uu(t);case"keypress":return t.which!==32?null:(su=!0,lu);case"textInput":return e=t.data,e===lu&&su?null:e;default:return null}}function Qp(e,t){if(vn)return e==="compositionend"||!ol&&au(e,t)?(e=eu(),oo=qi=Ct=null,vn=!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 iu&&t.locale!=="ko"?null:t.data;default:return null}}var Gp={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 cu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gp[e.type]:t==="textarea"}function du(e,t,n,r){Ra(r),t=po(t,"onChange"),0<t.length&&(n=new Ji("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ar=null,ur=null;function Xp(e){ju(e,0)}function ao(e){var t=Sn(e);if(wa(t))return e}function Yp(e,t){if(e==="change")return t}var fu=!1;if(lt){var il;if(lt){var ll="oninput"in document;if(!ll){var pu=document.createElement("div");pu.setAttribute("oninput","return;"),ll=typeof pu.oninput=="function"}il=ll}else il=!1;fu=il&&(!document.documentMode||9<document.documentMode)}function hu(){ar&&(ar.detachEvent("onpropertychange",mu),ur=ar=null)}function mu(e){if(e.propertyName==="value"&&ao(ur)){var t=[];du(t,ur,e,$i(e)),Ia(Xp,t)}}function Kp(e,t,n){e==="focusin"?(hu(),ar=t,ur=n,ar.attachEvent("onpropertychange",mu)):e==="focusout"&&hu()}function qp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ao(ur)}function Jp(e,t){if(e==="click")return ao(t)}function e1(e,t){if(e==="input"||e==="change")return ao(t)}function t1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var We=typeof Object.is=="function"?Object.is:t1;function cr(e,t){if(We(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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 o=n[r];if(!yi.call(t,o)||!We(e[o],t[o]))return!1}return!0}function gu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yu(e,t){var n=gu(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}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gu(n)}}function vu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wu(){for(var e=window,t=Zr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zr(e.document)}return t}function sl(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")}function n1(e){var t=wu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vu(n.ownerDocument.documentElement,n)){if(r!==null&&sl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=yu(n,i);var l=yu(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var r1=lt&&"documentMode"in document&&11>=document.documentMode,wn=null,al=null,dr=null,ul=!1;function xu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ul||wn==null||wn!==Zr(r)||(r=wn,"selectionStart"in r&&sl(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}),dr&&cr(dr,r)||(dr=r,r=po(al,"onSelect"),0<r.length&&(t=new Ji("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wn)))}function uo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xn={animationend:uo("Animation","AnimationEnd"),animationiteration:uo("Animation","AnimationIteration"),animationstart:uo("Animation","AnimationStart"),transitionend:uo("Transition","TransitionEnd")},cl={},ku={};lt&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete xn.animationend.animation,delete xn.animationiteration.animation,delete xn.animationstart.animation),"TransitionEvent"in window||delete xn.transitionend.transition);function co(e){if(cl[e])return cl[e];if(!xn[e])return e;var t=xn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ku)return cl[e]=t[n];return e}var Cu=co("animationend"),Su=co("animationiteration"),bu=co("animationstart"),_u=co("transitionend"),Eu=new Map,Lu="abort auxClick 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(" ");function St(e,t){Eu.set(e,t),Dt(t,[e])}for(var dl=0;dl<Lu.length;dl++){var fl=Lu[dl],o1=fl.toLowerCase(),i1=fl[0].toUpperCase()+fl.slice(1);St(o1,"on"+i1)}St(Cu,"onAnimationEnd"),St(Su,"onAnimationIteration"),St(bu,"onAnimationStart"),St("dblclick","onDoubleClick"),St("focusin","onFocus"),St("focusout","onBlur"),St(_u,"onTransitionEnd"),cn("onMouseEnter",["mouseout","mouseover"]),cn("onMouseLeave",["mouseout","mouseover"]),cn("onPointerEnter",["pointerout","pointerover"]),cn("onPointerLeave",["pointerout","pointerover"]),Dt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fr="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(" "),l1=new Set("cancel close invalid load scroll toggle".split(" ").concat(fr));function Tu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,op(r,t,void 0,e),e.currentTarget=null}function ju(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;Tu(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;Tu(o,s,u),i=a}}}if(Gr)throw e=Fi,Gr=!1,Fi=null,e}function U(e,t){var n=t[xl];n===void 0&&(n=t[xl]=new Set);var r=e+"__bubble";n.has(r)||(zu(t,e,2,!1),n.add(r))}function pl(e,t,n){var r=0;t&&(r|=4),zu(n,e,r,t)}var fo="_reactListening"+Math.random().toString(36).slice(2);function pr(e){if(!e[fo]){e[fo]=!0,da.forEach(function(n){n!=="selectionchange"&&(l1.has(n)||pl(n,!1,e),pl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fo]||(t[fo]=!0,pl("selectionchange",!1,t))}}function zu(e,t,n,r){switch(Ja(t)){case 1:var o=xp;break;case 4:o=kp;break;default:o=Yi}n=o.bind(null,t,n,e),o=void 0,!Vi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function hl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=At(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}Ia(function(){var u=i,c=$i(n),h=[];e:{var f=Eu.get(e);if(f!==void 0){var y=Ji,x=e;switch(e){case"keypress":if(io(n)===0)break e;case"keydown":case"keyup":y=Op;break;case"focusin":x="focus",y=nl;break;case"focusout":x="blur",y=nl;break;case"beforeblur":case"afterblur":y=nl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=nu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=bp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=$p;break;case Cu:case Su:case bu:y=Lp;break;case _u:y=Bp;break;case"scroll":y=Cp;break;case"wheel":y=Fp;break;case"copy":case"cut":case"paste":y=jp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=ou}var w=(t&4)!==0,j=!w&&e==="scroll",m=w?f!==null?f+"Capture":null:f;w=[];for(var d=u,g;d!==null;){g=d;var k=g.stateNode;if(g.tag===5&&k!==null&&(g=k,m!==null&&(k=Xn(d,m),k!=null&&w.push(hr(d,k,g)))),j)break;d=d.return}0<w.length&&(f=new y(f,x,null,n,c),h.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==Di&&(x=n.relatedTarget||n.fromElement)&&(At(x)||x[at]))break e;if((y||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=u,x=x?At(x):null,x!==null&&(j=$t(x),x!==j||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=u),y!==x)){if(w=nu,k="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(w=ou,k="onPointerLeave",m="onPointerEnter",d="pointer"),j=y==null?f:Sn(y),g=x==null?f:Sn(x),f=new w(k,d+"leave",y,n,c),f.target=j,f.relatedTarget=g,k=null,At(c)===u&&(w=new w(m,d+"enter",x,n,c),w.target=g,w.relatedTarget=j,k=w),j=k,y&&x)t:{for(w=y,m=x,d=0,g=w;g;g=kn(g))d++;for(g=0,k=m;k;k=kn(k))g++;for(;0<d-g;)w=kn(w),d--;for(;0<g-d;)m=kn(m),g--;for(;d--;){if(w===m||m!==null&&w===m.alternate)break t;w=kn(w),m=kn(m)}w=null}else w=null;y!==null&&Ru(h,f,y,w,!1),x!==null&&j!==null&&Ru(h,j,x,w,!0)}}e:{if(f=u?Sn(u):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var v=Yp;else if(cu(f))if(fu)v=e1;else{v=qp;var S=Kp}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(v=Jp);if(v&&(v=v(e,u))){du(h,v,n,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Mi(f,"number",f.value)}switch(S=u?Sn(u):window,e){case"focusin":(cu(S)||S.contentEditable==="true")&&(wn=S,al=u,dr=null);break;case"focusout":dr=al=wn=null;break;case"mousedown":ul=!0;break;case"contextmenu":case"mouseup":case"dragend":ul=!1,xu(h,n,c);break;case"selectionchange":if(r1)break;case"keydown":case"keyup":xu(h,n,c)}var C;if(ol)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else vn?au(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(iu&&n.locale!=="ko"&&(vn||_!=="onCompositionStart"?_==="onCompositionEnd"&&vn&&(C=eu()):(Ct=c,qi="value"in Ct?Ct.value:Ct.textContent,vn=!0)),S=po(u,_),0<S.length&&(_=new ru(_,e,null,n,c),h.push({event:_,listeners:S}),C?_.data=C:(C=uu(n),C!==null&&(_.data=C)))),(C=Zp?Wp(e,n):Qp(e,n))&&(u=po(u,"onBeforeInput"),0<u.length&&(c=new ru("onBeforeInput","beforeinput",null,n,c),h.push({event:c,listeners:u}),c.data=C))}ju(h,t)})}function hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function po(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Xn(e,n),i!=null&&r.unshift(hr(e,i,o)),i=Xn(e,t),i!=null&&r.push(hr(e,i,o))),e=e.return}return r}function kn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ru(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=Xn(n,i),a!=null&&l.unshift(hr(n,a,s))):o||(a=Xn(n,i),a!=null&&l.push(hr(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var s1=/\r\n?/g,a1=/\u0000|\uFFFD/g;function Pu(e){return(typeof e=="string"?e:""+e).replace(s1,`
|
|
38
|
-
`).replace(a1,"")}function ho(e,t,n){if(t=Pu(t),Pu(e)!==t&&n)throw Error(b(425))}function mo(){}var ml=null,gl=null;function yl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vl=typeof setTimeout=="function"?setTimeout:void 0,u1=typeof clearTimeout=="function"?clearTimeout:void 0,Mu=typeof Promise=="function"?Promise:void 0,c1=typeof queueMicrotask=="function"?queueMicrotask:typeof Mu<"u"?function(e){return Mu.resolve(null).then(e).catch(d1)}:vl;function d1(e){setTimeout(function(){throw e})}function wl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),or(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);or(t)}function bt(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==="$?")break;if(t==="/$")return null}}return e}function Nu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Je="__reactFiber$"+Cn,mr="__reactProps$"+Cn,at="__reactContainer$"+Cn,xl="__reactEvents$"+Cn,f1="__reactListeners$"+Cn,p1="__reactHandles$"+Cn;function At(e){var t=e[Je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[at]||n[Je]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Nu(e);e!==null;){if(n=e[Je])return n;e=Nu(e)}return t}e=n,n=e.parentNode}return null}function gr(e){return e=e[Je]||e[at],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function go(e){return e[mr]||null}var kl=[],bn=-1;function _t(e){return{current:e}}function Z(e){0>bn||(e.current=kl[bn],kl[bn]=null,bn--)}function F(e,t){bn++,kl[bn]=e.current,e.current=t}var Et={},he=_t(Et),Ee=_t(!1),Bt=Et;function _n(e,t){var n=e.type.contextTypes;if(!n)return Et;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Le(e){return e=e.childContextTypes,e!=null}function yo(){Z(Ee),Z(he)}function Iu(e,t,n){if(he.current!==Et)throw Error(b(168));F(he,t),F(Ee,n)}function Ou(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,Kf(e)||"Unknown",o));return G({},n,r)}function vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Et,Bt=he.current,F(he,e),F(Ee,Ee.current),!0}function Hu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Ou(e,t,Bt),r.__reactInternalMemoizedMergedChildContext=e,Z(Ee),Z(he),F(he,e)):Z(Ee),F(Ee,n)}var ut=null,wo=!1,Cl=!1;function Du(e){ut===null?ut=[e]:ut.push(e)}function h1(e){wo=!0,Du(e)}function Lt(){if(!Cl&&ut!==null){Cl=!0;var e=0,t=D;try{var n=ut;for(D=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ut=null,wo=!1}catch(o){throw ut!==null&&(ut=ut.slice(e+1)),Aa(Ui,Lt),o}finally{D=t,Cl=!1}}return null}var En=[],Ln=0,xo=null,ko=0,He=[],De=0,Vt=null,ct=1,dt="";function Ft(e,t){En[Ln++]=ko,En[Ln++]=xo,xo=e,ko=t}function $u(e,t,n){He[De++]=ct,He[De++]=dt,He[De++]=Vt,Vt=e;var r=ct;e=dt;var o=32-Ze(r)-1;r&=~(1<<o),n+=1;var i=32-Ze(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,ct=1<<32-Ze(t)+o|n<<o|r,dt=i+e}else ct=1<<i|n<<o|r,dt=e}function Sl(e){e.return!==null&&(Ft(e,1),$u(e,1,0))}function bl(e){for(;e===xo;)xo=En[--Ln],En[Ln]=null,ko=En[--Ln],En[Ln]=null;for(;e===Vt;)Vt=He[--De],He[De]=null,dt=He[--De],He[De]=null,ct=He[--De],He[De]=null}var Ne=null,Ie=null,W=!1,Qe=null;function Au(e,t){var n=Ve(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Bu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ne=e,Ie=bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ne=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vt!==null?{id:ct,overflow:dt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ve(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ne=e,Ie=null,!0):!1;default:return!1}}function _l(e){return(e.mode&1)!==0&&(e.flags&128)===0}function El(e){if(W){var t=Ie;if(t){var n=t;if(!Bu(e,t)){if(_l(e))throw Error(b(418));t=bt(n.nextSibling);var r=Ne;t&&Bu(e,t)?Au(r,n):(e.flags=e.flags&-4097|2,W=!1,Ne=e)}}else{if(_l(e))throw Error(b(418));e.flags=e.flags&-4097|2,W=!1,Ne=e}}}function Vu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ne=e}function Co(e){if(e!==Ne)return!1;if(!W)return Vu(e),W=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yl(e.type,e.memoizedProps)),t&&(t=Ie)){if(_l(e))throw Fu(),Error(b(418));for(;t;)Au(e,t),t=bt(t.nextSibling)}if(Vu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ie=bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=Ne?bt(e.stateNode.nextSibling):null;return!0}function Fu(){for(var e=Ie;e;)e=bt(e.nextSibling)}function Tn(){Ie=Ne=null,W=!1}function Ll(e){Qe===null?Qe=[e]:Qe.push(e)}var m1=st.ReactCurrentBatchConfig;function yr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(b(309));var r=n.stateNode}if(!r)throw Error(b(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(b(284));if(!n._owner)throw Error(b(290,e))}return e}function So(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Uu(e){var t=e._init;return t(e._payload)}function Zu(e){function t(m,d){if(e){var g=m.deletions;g===null?(m.deletions=[d],m.flags|=16):g.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function o(m,d){return m=It(m,d),m.index=0,m.sibling=null,m}function i(m,d,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<d?(m.flags|=2,d):g):(m.flags|=2,d)):(m.flags|=1048576,d)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,d,g,k){return d===null||d.tag!==6?(d=vs(g,m.mode,k),d.return=m,d):(d=o(d,g),d.return=m,d)}function a(m,d,g,k){var v=g.type;return v===fn?c(m,d,g.props.children,k,g.key):d!==null&&(d.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===gt&&Uu(v)===d.type)?(k=o(d,g.props),k.ref=yr(m,d,g),k.return=m,k):(k=Qo(g.type,g.key,g.props,null,m.mode,k),k.ref=yr(m,d,g),k.return=m,k)}function u(m,d,g,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=ws(g,m.mode,k),d.return=m,d):(d=o(d,g.children||[]),d.return=m,d)}function c(m,d,g,k,v){return d===null||d.tag!==7?(d=Kt(g,m.mode,k,v),d.return=m,d):(d=o(d,g),d.return=m,d)}function h(m,d,g){if(typeof d=="string"&&d!==""||typeof d=="number")return d=vs(""+d,m.mode,g),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Fr:return g=Qo(d.type,d.key,d.props,null,m.mode,g),g.ref=yr(m,null,d),g.return=m,g;case dn:return d=ws(d,m.mode,g),d.return=m,d;case gt:var k=d._init;return h(m,k(d._payload),g)}if(Wn(d)||Un(d))return d=Kt(d,m.mode,g,null),d.return=m,d;So(m,d)}return null}function f(m,d,g,k){var v=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return v!==null?null:s(m,d,""+g,k);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fr:return g.key===v?a(m,d,g,k):null;case dn:return g.key===v?u(m,d,g,k):null;case gt:return v=g._init,f(m,d,v(g._payload),k)}if(Wn(g)||Un(g))return v!==null?null:c(m,d,g,k,null);So(m,g)}return null}function y(m,d,g,k,v){if(typeof k=="string"&&k!==""||typeof k=="number")return m=m.get(g)||null,s(d,m,""+k,v);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Fr:return m=m.get(k.key===null?g:k.key)||null,a(d,m,k,v);case dn:return m=m.get(k.key===null?g:k.key)||null,u(d,m,k,v);case gt:var S=k._init;return y(m,d,g,S(k._payload),v)}if(Wn(k)||Un(k))return m=m.get(g)||null,c(d,m,k,v,null);So(d,k)}return null}function x(m,d,g,k){for(var v=null,S=null,C=d,_=d=0,M=null;C!==null&&_<g.length;_++){C.index>_?(M=C,C=null):M=C.sibling;var T=f(m,C,g[_],k);if(T===null){C===null&&(C=M);break}e&&C&&T.alternate===null&&t(m,C),d=i(T,d,_),S===null?v=T:S.sibling=T,S=T,C=M}if(_===g.length)return n(m,C),W&&Ft(m,_),v;if(C===null){for(;_<g.length;_++)C=h(m,g[_],k),C!==null&&(d=i(C,d,_),S===null?v=C:S.sibling=C,S=C);return W&&Ft(m,_),v}for(C=r(m,C);_<g.length;_++)M=y(C,m,_,g[_],k),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?_:M.key),d=i(M,d,_),S===null?v=M:S.sibling=M,S=M);return e&&C.forEach(function(H){return t(m,H)}),W&&Ft(m,_),v}function w(m,d,g,k){var v=Un(g);if(typeof v!="function")throw Error(b(150));if(g=v.call(g),g==null)throw Error(b(151));for(var S=v=null,C=d,_=d=0,M=null,T=g.next();C!==null&&!T.done;_++,T=g.next()){C.index>_?(M=C,C=null):M=C.sibling;var H=f(m,C,T.value,k);if(H===null){C===null&&(C=M);break}e&&C&&H.alternate===null&&t(m,C),d=i(H,d,_),S===null?v=H:S.sibling=H,S=H,C=M}if(T.done)return n(m,C),W&&Ft(m,_),v;if(C===null){for(;!T.done;_++,T=g.next())T=h(m,T.value,k),T!==null&&(d=i(T,d,_),S===null?v=T:S.sibling=T,S=T);return W&&Ft(m,_),v}for(C=r(m,C);!T.done;_++,T=g.next())T=y(C,m,_,T.value,k),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?_:T.key),d=i(T,d,_),S===null?v=T:S.sibling=T,S=T);return e&&C.forEach(function(ie){return t(m,ie)}),W&&Ft(m,_),v}function j(m,d,g,k){if(typeof g=="object"&&g!==null&&g.type===fn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Fr:e:{for(var v=g.key,S=d;S!==null;){if(S.key===v){if(v=g.type,v===fn){if(S.tag===7){n(m,S.sibling),d=o(S,g.props.children),d.return=m,m=d;break e}}else if(S.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===gt&&Uu(v)===S.type){n(m,S.sibling),d=o(S,g.props),d.ref=yr(m,S,g),d.return=m,m=d;break e}n(m,S);break}else t(m,S);S=S.sibling}g.type===fn?(d=Kt(g.props.children,m.mode,k,g.key),d.return=m,m=d):(k=Qo(g.type,g.key,g.props,null,m.mode,k),k.ref=yr(m,d,g),k.return=m,m=k)}return l(m);case dn:e:{for(S=g.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=o(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=ws(g,m.mode,k),d.return=m,m=d}return l(m);case gt:return S=g._init,j(m,d,S(g._payload),k)}if(Wn(g))return x(m,d,g,k);if(Un(g))return w(m,d,g,k);So(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,g),d.return=m,m=d):(n(m,d),d=vs(g,m.mode,k),d.return=m,m=d),l(m)):n(m,d)}return j}var jn=Zu(!0),Wu=Zu(!1),bo=_t(null),_o=null,zn=null,Tl=null;function jl(){Tl=zn=_o=null}function zl(e){var t=bo.current;Z(bo),e._currentValue=t}function Rl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rn(e,t){_o=e,Tl=zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Te=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(Tl!==e)if(e={context:e,memoizedValue:t,next:null},zn===null){if(_o===null)throw Error(b(308));zn=e,_o.dependencies={lanes:0,firstContext:e}}else zn=zn.next=e;return t}var Ut=null;function Pl(e){Ut===null?Ut=[e]:Ut.push(e)}function Qu(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Pl(t)):(n.next=o.next,o.next=n),t.interleaved=n,ft(e,r)}function ft(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Tt=!1;function Ml(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ft(e,n)}return o=r.interleaved,o===null?(t.next=t,Pl(r)):(t.next=o.next,o.next=t),r.interleaved=t,ft(e,n)}function Eo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qi(e,n)}}function Xu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lo(e,t,n,r){var o=e.updateQueue;Tt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(i!==null){var h=o.baseState;l=0,c=u=a=null,s=i;do{var f=s.lane,y=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,w=s;switch(f=t,y=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){h=x.call(y,h,f);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,f=typeof x=="function"?x.call(y,h,f):x,f==null)break e;h=G({},h,f);break e;case 2:Tt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else y={eventTime:y,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=y,a=h):c=c.next=y,l|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(a=h),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Qt|=l,e.lanes=l,e.memoizedState=h}}function Yu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(b(191,o));o.call(r)}}}var vr={},et=_t(vr),wr=_t(vr),xr=_t(vr);function Zt(e){if(e===vr)throw Error(b(174));return e}function Nl(e,t){switch(F(xr,t),F(wr,e),F(et,vr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ii(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ii(t,e)}Z(et),F(et,t)}function Pn(){Z(et),Z(wr),Z(xr)}function Ku(e){Zt(xr.current);var t=Zt(et.current),n=Ii(t,e.type);t!==n&&(F(wr,e),F(et,n))}function Il(e){wr.current===e&&(Z(et),Z(wr))}var X=_t(0);function To(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Ol=[];function Hl(){for(var e=0;e<Ol.length;e++)Ol[e]._workInProgressVersionPrimary=null;Ol.length=0}var jo=st.ReactCurrentDispatcher,Dl=st.ReactCurrentBatchConfig,Wt=0,Y=null,ne=null,le=null,zo=!1,kr=!1,Cr=0,g1=0;function me(){throw Error(b(321))}function $l(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!We(e[n],t[n]))return!1;return!0}function Al(e,t,n,r,o,i){if(Wt=i,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,jo.current=e===null||e.memoizedState===null?x1:k1,e=n(r,o),kr){i=0;do{if(kr=!1,Cr=0,25<=i)throw Error(b(301));i+=1,le=ne=null,t.updateQueue=null,jo.current=C1,e=n(r,o)}while(kr)}if(jo.current=Mo,t=ne!==null&&ne.next!==null,Wt=0,le=ne=Y=null,zo=!1,t)throw Error(b(300));return e}function Bl(){var e=Cr!==0;return Cr=0,e}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?Y.memoizedState=le=e:le=le.next=e,le}function Ae(){if(ne===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=ne.next;var t=le===null?Y.memoizedState:le.next;if(t!==null)le=t,ne=e;else{if(e===null)throw Error(b(310));ne=e,e={memoizedState:ne.memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},le===null?Y.memoizedState=le=e:le=le.next=e}return le}function Sr(e,t){return typeof t=="function"?t(e):t}function Vl(e){var t=Ae(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=ne,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,u=i;do{var c=u.lane;if((Wt&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=h,l=r):a=a.next=h,Y.lanes|=c,Qt|=c}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,We(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Y.lanes|=i,Qt|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fl(e){var t=Ae(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);We(i,t.memoizedState)||(Te=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function qu(){}function Ju(e,t){var n=Y,r=Ae(),o=t(),i=!We(r.memoizedState,o);if(i&&(r.memoizedState=o,Te=!0),r=r.queue,Ul(nc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,br(9,tc.bind(null,n,r,o,t),void 0,null),se===null)throw Error(b(349));Wt&30||ec(n,t,o)}return o}function ec(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tc(e,t,n,r){t.value=n,t.getSnapshot=r,rc(t)&&oc(e)}function nc(e,t,n){return n(function(){rc(t)&&oc(e)})}function rc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!We(e,n)}catch{return!0}}function oc(e){var t=ft(e,1);t!==null&&Ke(t,e,1,-1)}function ic(e){var t=tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:e},t.queue=e,e=e.dispatch=w1.bind(null,Y,e),[t.memoizedState,e]}function br(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function lc(){return Ae().memoizedState}function Ro(e,t,n,r){var o=tt();Y.flags|=e,o.memoizedState=br(1|t,n,void 0,r===void 0?null:r)}function Po(e,t,n,r){var o=Ae();r=r===void 0?null:r;var i=void 0;if(ne!==null){var l=ne.memoizedState;if(i=l.destroy,r!==null&&$l(r,l.deps)){o.memoizedState=br(t,n,i,r);return}}Y.flags|=e,o.memoizedState=br(1|t,n,i,r)}function sc(e,t){return Ro(8390656,8,e,t)}function Ul(e,t){return Po(2048,8,e,t)}function ac(e,t){return Po(4,2,e,t)}function uc(e,t){return Po(4,4,e,t)}function cc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dc(e,t,n){return n=n!=null?n.concat([e]):null,Po(4,4,cc.bind(null,t,e),n)}function Zl(){}function fc(e,t){var n=Ae();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$l(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pc(e,t){var n=Ae();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$l(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hc(e,t,n){return Wt&21?(We(n,t)||(n=Ua(),Y.lanes|=n,Qt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Te=!0),e.memoizedState=n)}function y1(e,t){var n=D;D=n!==0&&4>n?n:4,e(!0);var r=Dl.transition;Dl.transition={};try{e(!1),t()}finally{D=n,Dl.transition=r}}function mc(){return Ae().memoizedState}function v1(e,t,n){var r=Mt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gc(e))yc(t,n);else if(n=Qu(e,t,n,r),n!==null){var o=ke();Ke(n,e,r,o),vc(n,t,r)}}function w1(e,t,n){var r=Mt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gc(e))yc(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,We(s,l)){var a=t.interleaved;a===null?(o.next=o,Pl(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Qu(e,t,o,r),n!==null&&(o=ke(),Ke(n,e,r,o),vc(n,t,r))}}function gc(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function yc(e,t){kr=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qi(e,n)}}var Mo={readContext:$e,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},x1={readContext:$e,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:sc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ro(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ro(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ro(4,2,e,t)},useMemo:function(e,t){var n=tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=v1.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:ic,useDebugValue:Zl,useDeferredValue:function(e){return tt().memoizedState=e},useTransition:function(){var e=ic(!1),t=e[0];return e=y1.bind(null,e[1]),tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,o=tt();if(W){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),se===null)throw Error(b(349));Wt&30||ec(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,sc(nc.bind(null,r,i,e),[e]),r.flags|=2048,br(9,tc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=tt(),t=se.identifierPrefix;if(W){var n=dt,r=ct;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=g1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},k1={readContext:$e,useCallback:fc,useContext:$e,useEffect:Ul,useImperativeHandle:dc,useInsertionEffect:ac,useLayoutEffect:uc,useMemo:pc,useReducer:Vl,useRef:lc,useState:function(){return Vl(Sr)},useDebugValue:Zl,useDeferredValue:function(e){var t=Ae();return hc(t,ne.memoizedState,e)},useTransition:function(){var e=Vl(Sr)[0],t=Ae().memoizedState;return[e,t]},useMutableSource:qu,useSyncExternalStore:Ju,useId:mc,unstable_isNewReconciler:!1},C1={readContext:$e,useCallback:fc,useContext:$e,useEffect:Ul,useImperativeHandle:dc,useInsertionEffect:ac,useLayoutEffect:uc,useMemo:pc,useReducer:Fl,useRef:lc,useState:function(){return Fl(Sr)},useDebugValue:Zl,useDeferredValue:function(e){var t=Ae();return ne===null?t.memoizedState=e:hc(t,ne.memoizedState,e)},useTransition:function(){var e=Fl(Sr)[0],t=Ae().memoizedState;return[e,t]},useMutableSource:qu,useSyncExternalStore:Ju,useId:mc,unstable_isNewReconciler:!1};function Ge(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Wl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var No={isMounted:function(e){return(e=e._reactInternals)?$t(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ke(),o=Mt(e),i=pt(r,o);i.payload=t,n!=null&&(i.callback=n),t=jt(e,i,o),t!==null&&(Ke(t,e,o,r),Eo(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ke(),o=Mt(e),i=pt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=jt(e,i,o),t!==null&&(Ke(t,e,o,r),Eo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ke(),r=Mt(e),o=pt(n,r);o.tag=2,t!=null&&(o.callback=t),t=jt(e,o,r),t!==null&&(Ke(t,e,r,n),Eo(t,e,r))}};function wc(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!cr(n,r)||!cr(o,i):!0}function xc(e,t,n){var r=!1,o=Et,i=t.contextType;return typeof i=="object"&&i!==null?i=$e(i):(o=Le(t)?Bt:he.current,r=t.contextTypes,i=(r=r!=null)?_n(e,o):Et),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=No,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function kc(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&&No.enqueueReplaceState(t,t.state,null)}function Ql(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ml(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=$e(i):(i=Le(t)?Bt:he.current,o.context=_n(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Wl(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&No.enqueueReplaceState(o,o.state,null),Lo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Mn(e,t){try{var n="",r=t;do n+=Yf(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
|
-
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Gl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var S1=typeof WeakMap=="function"?WeakMap:Map;function Cc(e,t,n){n=pt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bo||(Bo=!0,cs=r),Xl(e,t)},n}function Sc(e,t,n){n=pt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Xl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Xl(e,t),typeof r!="function"&&(Rt===null?Rt=new Set([this]):Rt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function bc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new S1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=H1.bind(null,e,t,n),t.then(e,e))}function _c(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ec(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=pt(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e)}var b1=st.ReactCurrentOwner,Te=!1;function xe(e,t,n,r){t.child=e===null?Wu(t,null,n,r):jn(t,e.child,n,r)}function Lc(e,t,n,r,o){n=n.render;var i=t.ref;return Rn(t,o),r=Al(e,t,n,r,i,o),n=Bl(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ht(e,t,o)):(W&&n&&Sl(t),t.flags|=1,xe(e,t,r,o),t.child)}function Tc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!ys(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,jc(e,t,i,r,o)):(e=Qo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:cr,n(l,r)&&e.ref===t.ref)return ht(e,t,o)}return t.flags|=1,e=It(i,r),e.ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Te=!0);else return t.lanes=e.lanes,ht(e,t,o)}return Yl(e,t,n,r,o)}function zc(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(In,Oe),Oe|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(In,Oe),Oe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,F(In,Oe),Oe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,F(In,Oe),Oe|=r;return xe(e,t,o,n),t.child}function Rc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yl(e,t,n,r,o){var i=Le(n)?Bt:he.current;return i=_n(t,i),Rn(t,o),n=Al(e,t,n,r,i,o),r=Bl(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ht(e,t,o)):(W&&r&&Sl(t),t.flags|=1,xe(e,t,n,o),t.child)}function Pc(e,t,n,r,o){if(Le(n)){var i=!0;vo(t)}else i=!1;if(Rn(t,o),t.stateNode===null)Oo(e,t),xc(t,n,r),Ql(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=$e(u):(u=Le(n)?Bt:he.current,u=_n(t,u));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&kc(t,l,r,u),Tt=!1;var f=t.memoizedState;l.state=f,Lo(t,r,l,o),a=t.memoizedState,s!==r||f!==a||Ee.current||Tt?(typeof c=="function"&&(Wl(t,n,c,r),a=t.memoizedState),(s=Tt||wc(t,n,s,r,f,a,u))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Gu(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ge(t.type,s),l.props=u,h=t.pendingProps,f=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=$e(a):(a=Le(n)?Bt:he.current,a=_n(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==h||f!==a)&&kc(t,l,r,a),Tt=!1,f=t.memoizedState,l.state=f,Lo(t,r,l,o);var x=t.memoizedState;s!==h||f!==x||Ee.current||Tt?(typeof y=="function"&&(Wl(t,n,y,r),x=t.memoizedState),(u=Tt||wc(t,n,u,r,f,x,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Kl(e,t,n,r,i,o)}function Kl(e,t,n,r,o,i){Rc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Hu(t,n,!1),ht(e,t,i);r=t.stateNode,b1.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=jn(t,e.child,null,i),t.child=jn(t,null,s,i)):xe(e,t,s,i),t.memoizedState=r.state,o&&Hu(t,n,!0),t.child}function Mc(e){var t=e.stateNode;t.pendingContext?Iu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Iu(e,t.context,!1),Nl(e,t.containerInfo)}function Nc(e,t,n,r,o){return Tn(),Ll(o),t.flags|=256,xe(e,t,n,r),t.child}var ql={dehydrated:null,treeContext:null,retryLane:0};function Jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ic(e,t,n){var r=t.pendingProps,o=X.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),F(X,o&1),e===null)return El(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Go(l,r,0,null),e=Kt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Jl(n),t.memoizedState=ql,e):es(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return _1(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=It(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=It(s,i):(i=Kt(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Jl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ql,r}return i=e.child,e=i.sibling,r=It(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function es(e,t){return t=Go({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Io(e,t,n,r){return r!==null&&Ll(r),jn(t,e.child,null,n),e=es(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _1(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Gl(Error(b(422))),Io(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Go({mode:"visible",children:r.children},o,0,null),i=Kt(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&jn(t,e.child,null,l),t.child.memoizedState=Jl(l),t.memoizedState=ql,i);if(!(t.mode&1))return Io(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(b(419)),r=Gl(i,r,void 0),Io(e,t,l,r)}if(s=(l&e.childLanes)!==0,Te||s){if(r=se,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ft(e,o),Ke(r,e,o,-1))}return gs(),r=Gl(Error(b(421))),Io(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=D1.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ie=bt(o.nextSibling),Ne=t,W=!0,Qe=null,e!==null&&(He[De++]=ct,He[De++]=dt,He[De++]=Vt,ct=e.id,dt=e.overflow,Vt=t),t=es(t,r.children),t.flags|=4096,t)}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Rl(e.return,t,n)}function ts(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xe(e,t,r.children,n),r=X.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oc(e,n,t);else if(e.tag===19)Oc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(F(X,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&To(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ts(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&To(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ts(t,!0,n,null,i);break;case"together":ts(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function E1(e,t,n){switch(t.tag){case 3:Mc(t),Tn();break;case 5:Ku(t);break;case 1:Le(t.type)&&vo(t);break;case 4:Nl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;F(bo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?Ic(e,t,n):(F(X,X.current&1),e=ht(e,t,n),e!==null?e.sibling:null);F(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),F(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,zc(e,t,n)}return ht(e,t,n)}var Dc,ns,$c,Ac;Dc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ns=function(){},$c=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zt(et.current);var i=null;switch(n){case"input":o=Ri(e,o),r=Ri(e,r),i=[];break;case"select":o=G({},o,{value:void 0}),r=G({},r,{value:void 0}),i=[];break;case"textarea":o=Ni(e,o),r=Ni(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=mo)}Oi(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fn.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&U("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ac=function(e,t,n,r){n!==r&&(t.flags|=4)};function _r(e,t){if(!W)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 ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function L1(e,t,n){var r=t.pendingProps;switch(bl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return Le(t.type)&&yo(),ge(t),null;case 3:return r=t.stateNode,Pn(),Z(Ee),Z(he),Hl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Co(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qe!==null&&(ps(Qe),Qe=null))),ns(e,t),ge(t),null;case 5:Il(t);var o=Zt(xr.current);if(n=t.type,e!==null&&t.stateNode!=null)$c(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return ge(t),null}if(e=Zt(et.current),Co(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Je]=t,r[mr]=i,e=(t.mode&1)!==0,n){case"dialog":U("cancel",r),U("close",r);break;case"iframe":case"object":case"embed":U("load",r);break;case"video":case"audio":for(o=0;o<fr.length;o++)U(fr[o],r);break;case"source":U("error",r);break;case"img":case"image":case"link":U("error",r),U("load",r);break;case"details":U("toggle",r);break;case"input":xa(r,i),U("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},U("invalid",r);break;case"textarea":Sa(r,i),U("invalid",r)}Oi(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&ho(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ho(r.textContent,s,e),o=["children",""+s]):Fn.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&U("scroll",r)}switch(n){case"input":Ur(r),Ca(r,i,!0);break;case"textarea":Ur(r),_a(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=mo)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ea(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Je]=t,e[mr]=r,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Hi(n,r),n){case"dialog":U("cancel",e),U("close",e),o=r;break;case"iframe":case"object":case"embed":U("load",e),o=r;break;case"video":case"audio":for(o=0;o<fr.length;o++)U(fr[o],e);o=r;break;case"source":U("error",e),o=r;break;case"img":case"image":case"link":U("error",e),U("load",e),o=r;break;case"details":U("toggle",e),o=r;break;case"input":xa(e,r),o=Ri(e,r),U("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=G({},r,{value:void 0}),U("invalid",e);break;case"textarea":Sa(e,r),o=Ni(e,r),U("invalid",e);break;default:o=r}Oi(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?ja(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&La(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Qn(e,a):typeof a=="number"&&Qn(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Fn.hasOwnProperty(i)?a!=null&&i==="onScroll"&&U("scroll",e):a!=null&&xi(e,i,a,l))}switch(n){case"input":Ur(e),Ca(e,r,!1);break;case"textarea":Ur(e),_a(e);break;case"option":r.value!=null&&e.setAttribute("value",""+yt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?pn(e,!!r.multiple,i,!1):r.defaultValue!=null&&pn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=mo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ge(t),null;case 6:if(e&&t.stateNode!=null)Ac(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(b(166));if(n=Zt(xr.current),Zt(et.current),Co(t)){if(r=t.stateNode,n=t.memoizedProps,r[Je]=t,(i=r.nodeValue!==n)&&(e=Ne,e!==null))switch(e.tag){case 3:ho(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ho(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Je]=t,t.stateNode=r}return ge(t),null;case 13:if(Z(X),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&Ie!==null&&t.mode&1&&!(t.flags&128))Fu(),Tn(),t.flags|=98560,i=!1;else if(i=Co(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(b(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(b(317));i[Je]=t}else Tn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ge(t),i=!1}else Qe!==null&&(ps(Qe),Qe=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||X.current&1?re===0&&(re=3):gs())),t.updateQueue!==null&&(t.flags|=4),ge(t),null);case 4:return Pn(),ns(e,t),e===null&&pr(t.stateNode.containerInfo),ge(t),null;case 10:return zl(t.type._context),ge(t),null;case 17:return Le(t.type)&&yo(),ge(t),null;case 19:if(Z(X),i=t.memoizedState,i===null)return ge(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)_r(i,!1);else{if(re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=To(e),l!==null){for(t.flags|=128,_r(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return F(X,X.current&1|2),t.child}e=e.sibling}i.tail!==null&&J()>On&&(t.flags|=128,r=!0,_r(i,!1),t.lanes=4194304)}else{if(!r)if(e=To(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!W)return ge(t),null}else 2*J()-i.renderingStartTime>On&&n!==1073741824&&(t.flags|=128,r=!0,_r(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=J(),t.sibling=null,n=X.current,F(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return ms(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function T1(e,t){switch(bl(t),t.tag){case 1:return Le(t.type)&&yo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(),Z(Ee),Z(he),Hl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Il(t),null;case 13:if(Z(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(X),null;case 4:return Pn(),null;case 10:return zl(t.type._context),null;case 22:case 23:return ms(),null;case 24:return null;default:return null}}var Ho=!1,ye=!1,j1=typeof WeakSet=="function"?WeakSet:Set,E=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function rs(e,t,n){try{n()}catch(r){q(e,t,r)}}var Bc=!1;function z1(e,t){if(ml=no,e=wu(),sl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,h=e,f=null;t:for(;;){for(var y;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(y=h.firstChild)!==null;)f=h,h=y;for(;;){if(h===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++c===r&&(a=l),(y=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(gl={focusedElem:e,selectionRange:n},no=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,j=x.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ge(t.type,w),j);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(k){q(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return x=Bc,Bc=!1,x}function Er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rs(t,n,i)}o=o.next}while(o!==r)}}function Do(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vc(e){var t=e.alternate;t!==null&&(e.alternate=null,Vc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[mr],delete t[xl],delete t[f1],delete t[p1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fc(e){return e.tag===5||e.tag===3||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fc(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function is(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mo));else if(r!==4&&(e=e.child,e!==null))for(is(e,t,n),e=e.sibling;e!==null;)is(e,t,n),e=e.sibling}function ls(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&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}var ce=null,Xe=!1;function zt(e,t,n){for(n=n.child;n!==null;)Zc(e,t,n),n=n.sibling}function Zc(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Yr,n)}catch{}switch(n.tag){case 5:ye||Nn(n,t);case 6:var r=ce,o=Xe;ce=null,zt(e,t,n),ce=r,Xe=o,ce!==null&&(Xe?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(Xe?(e=ce,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),or(e)):wl(ce,n.stateNode));break;case 4:r=ce,o=Xe,ce=n.stateNode.containerInfo,Xe=!0,zt(e,t,n),ce=r,Xe=o;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&rs(n,t,l),o=o.next}while(o!==r)}zt(e,t,n);break;case 1:if(!ye&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){q(n,t,s)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,zt(e,t,n),ye=r):zt(e,t,n);break;default:zt(e,t,n)}}function Wc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j1),t.forEach(function(r){var o=$1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:ce=s.stateNode,Xe=!1;break e;case 3:ce=s.stateNode.containerInfo,Xe=!0;break e;case 4:ce=s.stateNode.containerInfo,Xe=!0;break e}s=s.return}if(ce===null)throw Error(b(160));Zc(i,l,o),ce=null,Xe=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){q(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qc(t,e),t=t.sibling}function Qc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ye(t,e),nt(e),r&4){try{Er(3,e,e.return),Do(3,e)}catch(w){q(e,e.return,w)}try{Er(5,e,e.return)}catch(w){q(e,e.return,w)}}break;case 1:Ye(t,e),nt(e),r&512&&n!==null&&Nn(n,n.return);break;case 5:if(Ye(t,e),nt(e),r&512&&n!==null&&Nn(n,n.return),e.flags&32){var o=e.stateNode;try{Qn(o,"")}catch(w){q(e,e.return,w)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&ka(o,i),Hi(s,l);var u=Hi(s,i);for(l=0;l<a.length;l+=2){var c=a[l],h=a[l+1];c==="style"?ja(o,h):c==="dangerouslySetInnerHTML"?La(o,h):c==="children"?Qn(o,h):xi(o,c,h,u)}switch(s){case"input":Pi(o,i);break;case"textarea":ba(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?pn(o,!!i.multiple,y,!1):f!==!!i.multiple&&(i.defaultValue!=null?pn(o,!!i.multiple,i.defaultValue,!0):pn(o,!!i.multiple,i.multiple?[]:"",!1))}o[mr]=i}catch(w){q(e,e.return,w)}}break;case 6:if(Ye(t,e),nt(e),r&4){if(e.stateNode===null)throw Error(b(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(w){q(e,e.return,w)}}break;case 3:if(Ye(t,e),nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{or(t.containerInfo)}catch(w){q(e,e.return,w)}break;case 4:Ye(t,e),nt(e);break;case 13:Ye(t,e),nt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(us=J())),r&4&&Wc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||c,Ye(t,e),ye=u):Ye(t,e),nt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(E=e,c=e.child;c!==null;){for(h=E=c;E!==null;){switch(f=E,y=f.child,f.tag){case 0:case 11:case 14:case 15:Er(4,f,f.return);break;case 1:Nn(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(w){q(r,n,w)}}break;case 5:Nn(f,f.return);break;case 22:if(f.memoizedState!==null){Yc(h);continue}}y!==null?(y.return=f,E=y):Yc(h)}c=c.sibling}e:for(c=null,h=e;;){if(h.tag===5){if(c===null){c=h;try{o=h.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=h.stateNode,a=h.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Ta("display",l))}catch(w){q(e,e.return,w)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(w){q(e,e.return,w)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;c===h&&(c=null),h=h.return}c===h&&(c=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ye(t,e),nt(e),r&4&&Wc(e);break;case 21:break;default:Ye(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Fc(n)){var r=n;break e}n=n.return}throw Error(b(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Qn(o,""),r.flags&=-33);var i=Uc(e);ls(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Uc(e);is(e,s,l);break;default:throw Error(b(161))}}catch(a){q(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function R1(e,t,n){E=e,Gc(e)}function Gc(e,t,n){for(var r=(e.mode&1)!==0;E!==null;){var o=E,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Ho;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||ye;s=Ho;var u=ye;if(Ho=l,(ye=a)&&!u)for(E=o;E!==null;)l=E,a=l.child,l.tag===22&&l.memoizedState!==null?Kc(o):a!==null?(a.return=l,E=a):Kc(o);for(;i!==null;)E=i,Gc(i),i=i.sibling;E=o,Ho=s,ye=u}Xc(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,E=i):Xc(e)}}function Xc(e){for(;E!==null;){var t=E;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||Do(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ge(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Yu(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yu(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var h=c.dehydrated;h!==null&&or(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}ye||t.flags&512&&os(t)}catch(f){q(t,t.return,f)}}if(t===e){E=null;break}if(n=t.sibling,n!==null){n.return=t.return,E=n;break}E=t.return}}function Yc(e){for(;E!==null;){var t=E;if(t===e){E=null;break}var n=t.sibling;if(n!==null){n.return=t.return,E=n;break}E=t.return}}function Kc(e){for(;E!==null;){var t=E;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Do(4,t)}catch(a){q(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){q(t,o,a)}}var i=t.return;try{os(t)}catch(a){q(t,i,a)}break;case 5:var l=t.return;try{os(t)}catch(a){q(t,l,a)}}}catch(a){q(t,t.return,a)}if(t===e){E=null;break}var s=t.sibling;if(s!==null){s.return=t.return,E=s;break}E=t.return}}var P1=Math.ceil,$o=st.ReactCurrentDispatcher,ss=st.ReactCurrentOwner,Be=st.ReactCurrentBatchConfig,O=0,se=null,te=null,de=0,Oe=0,In=_t(0),re=0,Lr=null,Qt=0,Ao=0,as=0,Tr=null,je=null,us=0,On=1/0,mt=null,Bo=!1,cs=null,Rt=null,Vo=!1,Pt=null,Fo=0,jr=0,ds=null,Uo=-1,Zo=0;function ke(){return O&6?J():Uo!==-1?Uo:Uo=J()}function Mt(e){return e.mode&1?O&2&&de!==0?de&-de:m1.transition!==null?(Zo===0&&(Zo=Ua()),Zo):(e=D,e!==0||(e=window.event,e=e===void 0?16:Ja(e.type)),e):1}function Ke(e,t,n,r){if(50<jr)throw jr=0,ds=null,Error(b(185));Jn(e,n,r),(!(O&2)||e!==se)&&(e===se&&(!(O&2)&&(Ao|=n),re===4&&Nt(e,de)),ze(e,r),n===1&&O===0&&!(t.mode&1)&&(On=J()+500,wo&&Lt()))}function ze(e,t){var n=e.callbackNode;mp(e,t);var r=Jr(e,e===se?de:0);if(r===0)n!==null&&Ba(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ba(n),t===1)e.tag===0?h1(Jc.bind(null,e)):Du(Jc.bind(null,e)),c1(function(){!(O&6)&&Lt()}),n=null;else{switch(Za(r)){case 1:n=Ui;break;case 4:n=Va;break;case 16:n=Xr;break;case 536870912:n=Fa;break;default:n=Xr}n=sd(n,qc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qc(e,t){if(Uo=-1,Zo=0,O&6)throw Error(b(327));var n=e.callbackNode;if(Hn()&&e.callbackNode!==n)return null;var r=Jr(e,e===se?de:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wo(e,r);else{t=r;var o=O;O|=2;var i=td();(se!==e||de!==t)&&(mt=null,On=J()+500,Xt(e,t));do try{I1();break}catch(s){ed(e,s)}while(!0);jl(),$o.current=i,O=o,te!==null?t=0:(se=null,de=0,t=re)}if(t!==0){if(t===2&&(o=Zi(e),o!==0&&(r=o,t=fs(e,o))),t===1)throw n=Lr,Xt(e,0),Nt(e,r),ze(e,J()),n;if(t===6)Nt(e,r);else{if(o=e.current.alternate,!(r&30)&&!M1(o)&&(t=Wo(e,r),t===2&&(i=Zi(e),i!==0&&(r=i,t=fs(e,i))),t===1))throw n=Lr,Xt(e,0),Nt(e,r),ze(e,J()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(b(345));case 2:Yt(e,je,mt);break;case 3:if(Nt(e,r),(r&130023424)===r&&(t=us+500-J(),10<t)){if(Jr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ke(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=vl(Yt.bind(null,e,je,mt),t);break}Yt(e,je,mt);break;case 4:if(Nt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Ze(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*P1(r/1960))-r,10<r){e.timeoutHandle=vl(Yt.bind(null,e,je,mt),r);break}Yt(e,je,mt);break;case 5:Yt(e,je,mt);break;default:throw Error(b(329))}}}return ze(e,J()),e.callbackNode===n?qc.bind(null,e):null}function fs(e,t){var n=Tr;return e.current.memoizedState.isDehydrated&&(Xt(e,t).flags|=256),e=Wo(e,t),e!==2&&(t=je,je=n,t!==null&&ps(t)),e}function ps(e){je===null?je=e:je.push.apply(je,e)}function M1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!We(i(),o))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 Nt(e,t){for(t&=~as,t&=~Ao,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ze(t),r=1<<n;e[n]=-1,t&=~r}}function Jc(e){if(O&6)throw Error(b(327));Hn();var t=Jr(e,0);if(!(t&1))return ze(e,J()),null;var n=Wo(e,t);if(e.tag!==0&&n===2){var r=Zi(e);r!==0&&(t=r,n=fs(e,r))}if(n===1)throw n=Lr,Xt(e,0),Nt(e,t),ze(e,J()),n;if(n===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yt(e,je,mt),ze(e,J()),null}function hs(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(On=J()+500,wo&&Lt())}}function Gt(e){Pt!==null&&Pt.tag===0&&!(O&6)&&Hn();var t=O;O|=1;var n=Be.transition,r=D;try{if(Be.transition=null,D=1,e)return e()}finally{D=r,Be.transition=n,O=t,!(O&6)&&Lt()}}function ms(){Oe=In.current,Z(In)}function Xt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,u1(n)),te!==null)for(n=te.return;n!==null;){var r=n;switch(bl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yo();break;case 3:Pn(),Z(Ee),Z(he),Hl();break;case 5:Il(r);break;case 4:Pn();break;case 13:Z(X);break;case 19:Z(X);break;case 10:zl(r.type._context);break;case 22:case 23:ms()}n=n.return}if(se=e,te=e=It(e.current,null),de=Oe=t,re=0,Lr=null,as=Ao=Qt=0,je=Tr=null,Ut!==null){for(t=0;t<Ut.length;t++)if(n=Ut[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}Ut=null}return e}function ed(e,t){do{var n=te;try{if(jl(),jo.current=Mo,zo){for(var r=Y.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}zo=!1}if(Wt=0,le=ne=Y=null,kr=!1,Cr=0,ss.current=null,n===null||n.return===null){re=1,Lr=t,te=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=de,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,h=c.tag;if(!(c.mode&1)&&(h===0||h===11||h===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=_c(l);if(y!==null){y.flags&=-257,Ec(y,l,s,i,t),y.mode&1&&bc(i,u,t),t=y,a=u;var x=t.updateQueue;if(x===null){var w=new Set;w.add(a),t.updateQueue=w}else x.add(a);break e}else{if(!(t&1)){bc(i,u,t),gs();break e}a=Error(b(426))}}else if(W&&s.mode&1){var j=_c(l);if(j!==null){!(j.flags&65536)&&(j.flags|=256),Ec(j,l,s,i,t),Ll(Mn(a,s));break e}}i=a=Mn(a,s),re!==4&&(re=2),Tr===null?Tr=[i]:Tr.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Cc(i,a,t);Xu(i,m);break e;case 1:s=a;var d=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Rt===null||!Rt.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=Sc(i,s,t);Xu(i,k);break e}}i=i.return}while(i!==null)}rd(n)}catch(v){t=v,te===n&&n!==null&&(te=n=n.return);continue}break}while(!0)}function td(){var e=$o.current;return $o.current=Mo,e===null?Mo:e}function gs(){(re===0||re===3||re===2)&&(re=4),se===null||!(Qt&268435455)&&!(Ao&268435455)||Nt(se,de)}function Wo(e,t){var n=O;O|=2;var r=td();(se!==e||de!==t)&&(mt=null,Xt(e,t));do try{N1();break}catch(o){ed(e,o)}while(!0);if(jl(),O=n,$o.current=r,te!==null)throw Error(b(261));return se=null,de=0,re}function N1(){for(;te!==null;)nd(te)}function I1(){for(;te!==null&&!lp();)nd(te)}function nd(e){var t=ld(e.alternate,e,Oe);e.memoizedProps=e.pendingProps,t===null?rd(e):te=t,ss.current=null}function rd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=T1(n,t),n!==null){n.flags&=32767,te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{re=6,te=null;return}}else if(n=L1(n,t,Oe),n!==null){te=n;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);re===0&&(re=5)}function Yt(e,t,n){var r=D,o=Be.transition;try{Be.transition=null,D=1,O1(e,t,n,r)}finally{Be.transition=o,D=r}return null}function O1(e,t,n,r){do Hn();while(Pt!==null);if(O&6)throw Error(b(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(b(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(gp(e,i),e===se&&(te=se=null,de=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vo||(Vo=!0,sd(Xr,function(){return Hn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Be.transition,Be.transition=null;var l=D;D=1;var s=O;O|=4,ss.current=null,z1(e,n),Qc(n,e),n1(gl),no=!!ml,gl=ml=null,e.current=n,R1(n),sp(),O=s,D=l,Be.transition=i}else e.current=n;if(Vo&&(Vo=!1,Pt=e,Fo=o),i=e.pendingLanes,i===0&&(Rt=null),cp(n.stateNode),ze(e,J()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Bo)throw Bo=!1,e=cs,cs=null,e;return Fo&1&&e.tag!==0&&Hn(),i=e.pendingLanes,i&1?e===ds?jr++:(jr=0,ds=e):jr=0,Lt(),null}function Hn(){if(Pt!==null){var e=Za(Fo),t=Be.transition,n=D;try{if(Be.transition=null,D=16>e?16:e,Pt===null)var r=!1;else{if(e=Pt,Pt=null,Fo=0,O&6)throw Error(b(331));var o=O;for(O|=4,E=e.current;E!==null;){var i=E,l=i.child;if(E.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(E=u;E!==null;){var c=E;switch(c.tag){case 0:case 11:case 15:Er(8,c,i)}var h=c.child;if(h!==null)h.return=c,E=h;else for(;E!==null;){c=E;var f=c.sibling,y=c.return;if(Vc(c),c===u){E=null;break}if(f!==null){f.return=y,E=f;break}E=y}}}var x=i.alternate;if(x!==null){var w=x.child;if(w!==null){x.child=null;do{var j=w.sibling;w.sibling=null,w=j}while(w!==null)}}E=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,E=l;else e:for(;E!==null;){if(i=E,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Er(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,E=m;break e}E=i.return}}var d=e.current;for(E=d;E!==null;){l=E;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,E=g;else e:for(l=d;E!==null;){if(s=E,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Do(9,s)}}catch(v){q(s,s.return,v)}if(s===l){E=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,E=k;break e}E=s.return}}if(O=o,Lt(),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(Yr,e)}catch{}r=!0}return r}finally{D=n,Be.transition=t}}return!1}function od(e,t,n){t=Mn(n,t),t=Cc(e,t,1),e=jt(e,t,1),t=ke(),e!==null&&(Jn(e,1,t),ze(e,t))}function q(e,t,n){if(e.tag===3)od(e,e,n);else for(;t!==null;){if(t.tag===3){od(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Rt===null||!Rt.has(r))){e=Mn(n,e),e=Sc(t,e,1),t=jt(t,e,1),e=ke(),t!==null&&(Jn(t,1,e),ze(t,e));break}}t=t.return}}function H1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ke(),e.pingedLanes|=e.suspendedLanes&n,se===e&&(de&n)===n&&(re===4||re===3&&(de&130023424)===de&&500>J()-us?Xt(e,0):as|=n),ze(e,t)}function id(e,t){t===0&&(e.mode&1?(t=qr,qr<<=1,!(qr&130023424)&&(qr=4194304)):t=1);var n=ke();e=ft(e,t),e!==null&&(Jn(e,t,n),ze(e,n))}function D1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function $1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),id(e,n)}var ld;ld=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Te=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Te=!1,E1(e,t,n);Te=!!(e.flags&131072)}else Te=!1,W&&t.flags&1048576&&$u(t,ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oo(e,t),e=t.pendingProps;var o=_n(t,he.current);Rn(t,n),o=Al(null,t,r,e,o,n);var i=Bl();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(i=!0,vo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ml(t),o.updater=No,t.stateNode=o,o._reactInternals=t,Ql(t,r,e,n),t=Kl(null,t,r,!0,i,n)):(t.tag=0,W&&i&&Sl(t),xe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=B1(r),e=Ge(r,e),o){case 0:t=Yl(null,t,r,e,n);break e;case 1:t=Pc(null,t,r,e,n);break e;case 11:t=Lc(null,t,r,e,n);break e;case 14:t=Tc(null,t,r,Ge(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Yl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Pc(e,t,r,o,n);case 3:e:{if(Mc(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Gu(e,t),Lo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Mn(Error(b(423)),t),t=Nc(e,t,r,n,o);break e}else if(r!==o){o=Mn(Error(b(424)),t),t=Nc(e,t,r,n,o);break e}else for(Ie=bt(t.stateNode.containerInfo.firstChild),Ne=t,W=!0,Qe=null,n=Wu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Tn(),r===o){t=ht(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return Ku(t),e===null&&El(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,yl(r,o)?l=null:i!==null&&yl(r,i)&&(t.flags|=32),Rc(e,t),xe(e,t,l,n),t.child;case 6:return e===null&&El(t),null;case 13:return Ic(e,t,n);case 4:return Nl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jn(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Lc(e,t,r,o,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,F(bo,r._currentValue),r._currentValue=l,i!==null)if(We(i.value,l)){if(i.children===o.children&&!Ee.current){t=ht(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=pt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Rl(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(b(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Rl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}xe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Rn(t,n),o=$e(o),r=r(o),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,o=Ge(r,t.pendingProps),o=Ge(r.type,o),Tc(e,t,r,o,n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Oo(e,t),t.tag=1,Le(r)?(e=!0,vo(t)):e=!1,Rn(t,n),xc(t,r,o),Ql(t,r,o,n),Kl(null,t,r,!0,e,n);case 19:return Hc(e,t,n);case 22:return zc(e,t,n)}throw Error(b(156,t.tag))};function sd(e,t){return Aa(e,t)}function A1(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.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 Ve(e,t,n,r){return new A1(e,t,n,r)}function ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B1(e){if(typeof e=="function")return ys(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Si)return 11;if(e===Ei)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=Ve(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&14680064,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}function Qo(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")ys(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fn:return Kt(n.children,o,i,t);case ki:l=8,o|=8;break;case Ci:return e=Ve(12,n,t,o|2),e.elementType=Ci,e.lanes=i,e;case bi:return e=Ve(13,n,t,o),e.elementType=bi,e.lanes=i,e;case _i:return e=Ve(19,n,t,o),e.elementType=_i,e.lanes=i,e;case ga:return Go(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ha:l=10;break e;case ma:l=9;break e;case Si:l=11;break e;case Ei:l=14;break e;case gt:l=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Ve(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kt(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function Go(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=ga,e.lanes=n,e.stateNode={isHidden:!1},e}function vs(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function ws(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function V1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function xs(e,t,n,r,o,i,l,s,a){return e=new V1(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ve(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ml(i),e}function F1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:dn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ad(e){if(!e)return Et;e=e._reactInternals;e:{if($t(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Le(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var n=e.type;if(Le(n))return Ou(e,n,t)}return t}function ud(e,t,n,r,o,i,l,s,a){return e=xs(n,r,!0,e,o,i,l,s,a),e.context=ad(null),n=e.current,r=ke(),o=Mt(n),i=pt(r,o),i.callback=t??null,jt(n,i,o),e.current.lanes=o,Jn(e,o,r),ze(e,r),e}function Xo(e,t,n,r){var o=t.current,i=ke(),l=Mt(o);return n=ad(n),t.context===null?t.context=n:t.pendingContext=n,t=pt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=jt(o,t,l),e!==null&&(Ke(e,o,l,i),Eo(e,o,l)),l}function Yo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ks(e,t){cd(e,t),(e=e.alternate)&&cd(e,t)}function U1(){return null}var dd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cs(e){this._internalRoot=e}Ko.prototype.render=Cs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));Xo(e,t,null,null)},Ko.prototype.unmount=Cs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gt(function(){Xo(null,e,null,null)}),t[at]=null}};function Ko(e){this._internalRoot=e}Ko.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ga();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kt.length&&t!==0&&t<kt[n].priority;n++);kt.splice(n,0,e),n===0&&Ka(e)}};function Ss(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function fd(){}function Z1(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Yo(l);i.call(u)}}var l=ud(t,r,e,0,null,!1,!1,"",fd);return e._reactRootContainer=l,e[at]=l.current,pr(e.nodeType===8?e.parentNode:e),Gt(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Yo(a);s.call(u)}}var a=xs(e,0,!1,null,null,!1,!1,"",fd);return e._reactRootContainer=a,e[at]=a.current,pr(e.nodeType===8?e.parentNode:e),Gt(function(){Xo(t,a,n,r)}),a}function Jo(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=Yo(l);s.call(a)}}Xo(t,l,e,o)}else l=Z1(n,t,e,o,r);return Yo(l)}Wa=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qn(t.pendingLanes);n!==0&&(Qi(t,n|1),ze(t,J()),!(O&6)&&(On=J()+500,Lt()))}break;case 13:Gt(function(){var r=ft(e,1);if(r!==null){var o=ke();Ke(r,e,1,o)}}),ks(e,1)}},Gi=function(e){if(e.tag===13){var t=ft(e,134217728);if(t!==null){var n=ke();Ke(t,e,134217728,n)}ks(e,134217728)}},Qa=function(e){if(e.tag===13){var t=Mt(e),n=ft(e,t);if(n!==null){var r=ke();Ke(n,e,t,r)}ks(e,t)}},Ga=function(){return D},Xa=function(e,t){var n=D;try{return D=e,t()}finally{D=n}},Ai=function(e,t,n){switch(t){case"input":if(Pi(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=go(r);if(!o)throw Error(b(90));wa(r),Pi(r,o)}}}break;case"textarea":ba(e,n);break;case"select":t=n.value,t!=null&&pn(e,!!n.multiple,t,!1)}},Ma=hs,Na=Gt;var W1={usingClientEntryPoint:!1,Events:[gr,Sn,go,Ra,Pa,hs]},zr={findFiberByHostInstance:At,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Q1={bundleType:zr.bundleType,version:zr.version,rendererPackageName:zr.rendererPackageName,rendererConfig:zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:st.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Da(e),e===null?null:e.stateNode},findFiberByHostInstance:zr.findFiberByHostInstance||U1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{Yr=ei.inject(Q1),qe=ei}catch{}}Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W1,Re.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ss(t))throw Error(b(200));return F1(e,t,null,n)},Re.createRoot=function(e,t){if(!Ss(e))throw Error(b(299));var n=!1,r="",o=dd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=xs(e,1,!1,null,null,n,!1,r,o),e[at]=t.current,pr(e.nodeType===8?e.parentNode:e),new Cs(t)},Re.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=Da(t),e=e===null?null:e.stateNode,e},Re.flushSync=function(e){return Gt(e)},Re.hydrate=function(e,t,n){if(!qo(t))throw Error(b(200));return Jo(null,e,t,!0,n)},Re.hydrateRoot=function(e,t,n){if(!Ss(e))throw Error(b(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=dd;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=ud(t,null,e,1,n??null,o,!1,i,l),e[at]=t.current,pr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ko(t)},Re.render=function(e,t,n){if(!qo(t))throw Error(b(200));return Jo(null,e,t,!1,n)},Re.unmountComponentAtNode=function(e){if(!qo(e))throw Error(b(40));return e._reactRootContainer?(Gt(function(){Jo(null,null,e,!1,function(){e._reactRootContainer=null,e[at]=null})}),!0):!1},Re.unstable_batchedUpdates=hs,Re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qo(n))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return Jo(e,t,n,!1,r)},Re.version="18.3.1-next-f1338f8080-20240426";function pd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pd)}catch(e){console.error(e)}}pd(),aa.exports=Re;var G1=aa.exports,hd,md=G1;hd=md.createRoot,md.hydrateRoot;var gd=function(e,t,n,r){var o;t[0]=0;for(var i=1;i<t.length;i++){var l=t[i++],s=t[i]?(t[0]|=l?1:2,n[t[i++]]):t[++i];l===3?r[0]=s:l===4?r[1]=Object.assign(r[1]||{},s):l===5?(r[1]=r[1]||{})[t[++i]]=s:l===6?r[1][t[++i]]+=s+"":l?(o=e.apply(s,gd(e,s,n,["",null])),r.push(o),s[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):r.push(s)}return r},yd=new Map;function X1(e){var t=yd.get(this);return t||(t=new Map,yd.set(this,t)),(t=gd(this,t.get(e)||(t.set(e,t=function(n){for(var r,o,i=1,l="",s="",a=[0],u=function(f){i===1&&(f||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,f,l):i===3&&(f||l)?(a.push(3,f,l),i=2):i===2&&l==="..."&&f?a.push(4,f,0):i===2&&l&&!f?a.push(5,0,!0,l):i>=5&&((l||!f&&i===5)&&(a.push(i,0,l,o),i=6),f&&(a.push(i,f,0,o),i=6)),l=""},c=0;c<n.length;c++){c&&(i===1&&u(),u(c));for(var h=0;h<n[c].length;h++)r=n[c][h],i===1?r==="<"?(u(),a=[a],i=3):l+=r:i===4?l==="--"&&r===">"?(i=1,l=""):l=r+l[0]:s?r===s?s="":l+=r:r==='"'||r==="'"?s=r:r===">"?(u(),i=1):i&&(r==="="?(i=5,o=l,l=""):r==="/"&&(i<5||n[c][h+1]===">")?(u(),i===3&&(a=a[0]),i=a,(a=a[0]).push(2,0,i),i=0):r===" "||r===" "||r===`
|
|
41
|
-
`||r==="\r"?(u(),i=2):l+=r),i===3&&l==="!--"&&(i=4,a=a[0])}return u(),a}(e)),t),arguments,[])).length>1?t:t[0]}var fe=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},Ce={searchParams:"URLSearchParams"in fe,iterable:"Symbol"in fe&&"iterator"in Symbol,blob:"FileReader"in fe&&"Blob"in fe&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in fe,arrayBuffer:"ArrayBuffer"in fe};function Y1(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Ce.arrayBuffer)var K1=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],q1=ArrayBuffer.isView||function(e){return e&&K1.indexOf(Object.prototype.toString.call(e))>-1};function Dn(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function bs(e){return typeof e!="string"&&(e=String(e)),e}function _s(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Ce.iterable&&(t[Symbol.iterator]=function(){return t}),t}function oe(e){this.map={},e instanceof oe?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}oe.prototype.append=function(e,t){e=Dn(e),t=bs(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},oe.prototype.delete=function(e){delete this.map[Dn(e)]},oe.prototype.get=function(e){return e=Dn(e),this.has(e)?this.map[e]:null},oe.prototype.has=function(e){return this.map.hasOwnProperty(Dn(e))},oe.prototype.set=function(e,t){this.map[Dn(e)]=bs(t)},oe.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},oe.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),_s(e)},oe.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),_s(e)},oe.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),_s(e)},Ce.iterable&&(oe.prototype[Symbol.iterator]=oe.prototype.entries);function Es(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function vd(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function J1(e){var t=new FileReader,n=vd(t);return t.readAsArrayBuffer(e),n}function eh(e){var t=new FileReader,n=vd(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function th(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function wd(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function xd(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Ce.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ce.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ce.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ce.arrayBuffer&&Ce.blob&&Y1(e)?(this._bodyArrayBuffer=wd(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ce.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||q1(e))?this._bodyArrayBuffer=wd(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Ce.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ce.blob&&(this.blob=function(){var e=Es(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Es(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(Ce.blob)return this.blob().then(J1);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=Es(this);if(e)return e;if(this._bodyBlob)return eh(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(th(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ce.formData&&(this.formData=function(){return this.text().then(oh)}),this.json=function(){return this.text().then(JSON.parse)},this}var nh=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function rh(e){var t=e.toUpperCase();return nh.indexOf(t)>-1?t:e}function qt(e,t){if(!(this instanceof qt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof qt){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new oe(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new oe(t.headers)),this.method=rh(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in fe){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}qt.prototype.clone=function(){return new qt(this,{body:this._bodyInit})};function oh(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function ih(e){var t=new oe,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
|
|
42
|
-
`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var l=o.join(":").trim();try{t.append(i,l)}catch(s){console.warn("Response "+s.message)}}}),t}xd.call(qt.prototype);function rt(e,t){if(!(this instanceof rt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new oe(t.headers),this.url=t.url||"",this._initBody(e)}xd.call(rt.prototype),rt.prototype.clone=function(){return new rt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new oe(this.headers),url:this.url})},rt.error=function(){var e=new rt(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var lh=[301,302,303,307,308];rt.redirect=function(e,t){if(lh.indexOf(t)===-1)throw new RangeError("Invalid status code");return new rt(null,{status:t,headers:{location:e}})};var Jt=fe.DOMException;try{new Jt}catch{Jt=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},Jt.prototype=Object.create(Error.prototype),Jt.prototype.constructor=Jt}function kd(e,t){return new Promise(function(n,r){var o=new qt(e,t);if(o.signal&&o.signal.aborted)return r(new Jt("Aborted","AbortError"));var i=new XMLHttpRequest;function l(){i.abort()}i.onload=function(){var u={statusText:i.statusText,headers:ih(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?u.status=200:u.status=i.status,u.url="responseURL"in i?i.responseURL:u.headers.get("X-Request-URL");var c="response"in i?i.response:i.responseText;setTimeout(function(){n(new rt(c,u))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new Jt("Aborted","AbortError"))},0)};function s(u){try{return u===""&&fe.location.href?fe.location.href:u}catch{return u}}if(i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Ce.blob?i.responseType="blob":Ce.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof oe||fe.Headers&&t.headers instanceof fe.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach(function(u){a.push(Dn(u)),i.setRequestHeader(u,bs(t.headers[u]))}),o.headers.forEach(function(u,c){a.indexOf(c)===-1&&i.setRequestHeader(c,u)})}else o.headers.forEach(function(u,c){i.setRequestHeader(c,u)});o.signal&&(o.signal.addEventListener("abort",l),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",l)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}kd.polyfill=!0,fe.fetch||(fe.fetch=kd,fe.Headers=oe,fe.Request=qt,fe.Response=rt);var sh=self.fetch.bind(self);const ah=_e(sh);/*! *****************************************************************************
|
|
43
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
45
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
46
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
47
|
-
|
|
48
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
49
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
50
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
51
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
52
|
-
|
|
53
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
54
|
-
and limitations under the License.
|
|
55
|
-
***************************************************************************** */var Ls=function(e,t){return Ls=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},Ls(e,t)};function Cd(e,t){Ls(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function uh(e){var t=typeof Symbol=="function"&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function ch(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],l;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function dh(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ch(arguments[t]));return e}var Sd=function(){function e(t,n){this.target=n,this.type=t}return e}(),fh=function(e){Cd(t,e);function t(n,r){var o=e.call(this,"error",r)||this;return o.message=n.message,o.error=n,o}return t}(Sd),ph=function(e){Cd(t,e);function t(n,r,o){n===void 0&&(n=1e3),r===void 0&&(r="");var i=e.call(this,"close",o)||this;return i.wasClean=!0,i.code=n,i.reason=r,i}return t}(Sd);/*!
|
|
56
|
-
* Reconnecting WebSocket
|
|
57
|
-
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
|
58
|
-
* https://github.com/pladaria/reconnecting-websocket
|
|
59
|
-
* License MIT
|
|
60
|
-
*/var hh=function(){if(typeof WebSocket<"u")return WebSocket},mh=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},en={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},gh=function(){function e(t,n,r){var o=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(i){o._debug("open event");var l=o._options.minUptime,s=l===void 0?en.minUptime:l;clearTimeout(o._connectTimeout),o._uptimeTimeout=setTimeout(function(){return o._acceptOpen()},s),o._ws.binaryType=o._binaryType,o._messageQueue.forEach(function(a){return o._ws.send(a)}),o._messageQueue=[],o.onopen&&o.onopen(i),o._listeners.open.forEach(function(a){return o._callEventListener(i,a)})},this._handleMessage=function(i){o._debug("message event"),o.onmessage&&o.onmessage(i),o._listeners.message.forEach(function(l){return o._callEventListener(i,l)})},this._handleError=function(i){o._debug("error event",i.message),o._disconnect(void 0,i.message==="TIMEOUT"?"timeout":void 0),o.onerror&&o.onerror(i),o._debug("exec error listeners"),o._listeners.error.forEach(function(l){return o._callEventListener(i,l)}),o._connect()},this._handleClose=function(i){o._debug("close event"),o._clearTimeouts(),o._shouldReconnect&&o._connect(),o.onclose&&o.onclose(i),o._listeners.close.forEach(function(l){return o._callEventListener(i,l)})},this._url=t,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,n){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)},e.prototype.reconnect=function(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?en.maxEnqueuedMessages:n;this._messageQueue.length<r&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,n){this._listeners[t]&&this._listeners[t].push(n)},e.prototype.dispatchEvent=function(t){var n,r,o=this._listeners[t.type];if(o)try{for(var i=uh(o),l=i.next();!l.done;l=i.next()){var s=l.value;this._callEventListener(t,s)}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.removeEventListener=function(t,n){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(r){return r!==n}))},e.prototype._debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._options.debug&&console.log.apply(console,dh(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,n=t.reconnectionDelayGrowFactor,r=n===void 0?en.reconnectionDelayGrowFactor:n,o=t.minReconnectionDelay,i=o===void 0?en.minReconnectionDelay:o,l=t.maxReconnectionDelay,s=l===void 0?en.maxReconnectionDelay:l,a=0;return this._retryCount>0&&(a=i*Math.pow(r,this._retryCount-1),a>s&&(a=s)),this._debug("next delay",a),a},e.prototype._wait=function(){var t=this;return new Promise(function(n){setTimeout(n,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var n=t();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,r=n.maxRetries,o=r===void 0?en.maxRetries:r,i=n.connectionTimeout,l=i===void 0?en.connectionTimeout:i,s=n.WebSocket,a=s===void 0?hh():s;if(this._retryCount>=o){this._debug("max retries reached",this._retryCount,">=",o);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!mh(a))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(u){t._closeCalled||(t._debug("connect",{url:u,protocols:t._protocols}),t._ws=t._protocols?new a(u,t._protocols):new a(u),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},l))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new fh(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,n){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,n),this._handleClose(new ph(t,n,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,n){"handleEvent"in n?n.handleEvent(t):n(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();function K(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function tn(e){return function t(n){return arguments.length===0||K(n)?t:e.apply(this,arguments)}}function $n(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return K(n)?t:tn(function(o){return e(n,o)});default:return K(n)&&K(r)?t:K(n)?tn(function(o){return e(o,r)}):K(r)?tn(function(o){return e(n,o)}):e(n,r)}}}function yh(e,t){e=e||[],t=t||[];var n,r=e.length,o=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<o;)i[i.length]=t[n],n+=1;return i}function vh(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return K(n)?t:$n(function(i,l){return e(n,i,l)});case 2:return K(n)&&K(r)?t:K(n)?$n(function(i,l){return e(i,r,l)}):K(r)?$n(function(i,l){return e(n,i,l)}):tn(function(i){return e(n,r,i)});default:return K(n)&&K(r)&&K(o)?t:K(n)&&K(r)?$n(function(i,l){return e(i,l,o)}):K(n)&&K(o)?$n(function(i,l){return e(i,r,l)}):K(r)&&K(o)?$n(function(i,l){return e(n,i,l)}):K(n)?tn(function(i){return e(i,r,o)}):K(r)?tn(function(i){return e(n,i,o)}):K(o)?tn(function(i){return e(n,r,i)}):e(n,r,o)}}}var bd=vh(function(t,n,r){var o=r.length;if(t>=o||t<-o)return r;var i=(o+t)%o,l=yh(r);return l[i]=n(r[i]),l});let ti;const wh=new Uint8Array(16);function xh(){if(!ti&&(ti=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ti))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ti(wh)}const pe=[];for(let e=0;e<256;++e)pe.push((e+256).toString(16).slice(1));function kh(e,t=0){return pe[e[t+0]]+pe[e[t+1]]+pe[e[t+2]]+pe[e[t+3]]+"-"+pe[e[t+4]]+pe[e[t+5]]+"-"+pe[e[t+6]]+pe[e[t+7]]+"-"+pe[e[t+8]]+pe[e[t+9]]+"-"+pe[e[t+10]]+pe[e[t+11]]+pe[e[t+12]]+pe[e[t+13]]+pe[e[t+14]]+pe[e[t+15]]}const _d={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ed(e,t,n){if(_d.randomUUID&&!t&&!e)return _d.randomUUID();e=e||{};const r=e.random||(e.rng||xh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,kh(r)}var Ch="@nlxai/chat-core",Sh="1.0.4-alpha.0",bh="NLX Chat SDK core",_h="module",Eh="lib/index.cjs",Lh="lib/index.esm.js",Th="lib/index.umd.js",jh="lib/index.d.ts",zh={".":{types:"./lib/index.d.ts",import:"./lib/index.esm.js",require:"./lib/index.cjs"}},Rh={build:"rm -rf lib && rollup -c --configPlugin typescript",docs:"rm -rf docs/ && typedoc && concat-md --decrease-title-levels --dir-name-as-title docs/ > docs/index.md","lint:check":"eslint src/ --ext .ts,.tsx,.js,.jsx --max-warnings 0",lint:"eslint src/ --ext .ts,.tsx,.js,.jsx --fix",prepublish:"npm run build","preview-docs":"npm run docs && comrak --unsafe --gfm -o docs/index.html docs/index.md && open docs/index.html","publish-docs":"npm run docs && mv docs/index.md ../website/src/content/headless-api-reference.md",test:"typedoc --emit none",tsc:"tsc"},Ph="Peter Szerzo <peter@nlx.ai>",Mh="MIT",Nh={"@types/isomorphic-fetch":"^0.0.36","@types/node":"^22.10.1","@types/ramda":"0.29.1","@types/uuid":"^9.0.7","concat-md":"^0.5.1","eslint-config-nlx":"*",prettier:"^3.1.0","rollup-config-nlx":"*",typedoc:"^0.25.13","typedoc-plugin-markdown":"^3.17.1",typescript:"^5.5.4"},Ih={"isomorphic-fetch":"^3.0.0",ramda:"^0.29.1","reconnecting-websocket":"^4.4.0",uuid:"^9.0.1"},Oh={access:"public"},Hh="52817ba637a5d33ccf2ab6b3efd7e446bec7b7f8",Dh={name:Ch,version:Sh,description:bh,type:_h,main:Eh,module:Lh,browser:Th,types:jh,exports:zh,scripts:Rh,author:Ph,license:Mh,devDependencies:Nh,dependencies:Ih,publishConfig:Oh,gitHead:Hh};const Ts=console,$h="NLX.Welcome",Ah="We encountered an issue. Please try again soon.",Ld=e=>Array.isArray(e)?e:Object.entries(e).map(([t,n])=>({slotId:t,value:n})),Td=e=>({...e,slots:e.slots!=null?Ld(e.slots):e.slots}),jd=e=>e.responses,Bh=e=>{try{return JSON.parse(e)}catch{return null}};function Vh(e){let t;/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(e.botUrl)&&Ts.warn("Since v1.0.0, the language code is no longer added at the end of the bot URL. Please remove the modifier (e.g. '-en-US') from the URL, and specify it in the `languageCode` parameter instead.");const n=e.conversationId??Ed();let r={responses:e.responses??[],languageCode:e.languageCode,userId:e.userId,conversationId:n};const o=(v,S)=>{r={...r,...v},f.forEach(C=>{C(jd(r),S)})},i=()=>{const v={type:"failure",receivedAt:new Date().getTime(),payload:{text:e.failureMessage??Ah}};o({responses:[...r.responses,v]},v)},l=v=>{if((v==null?void 0:v.messages.length)>0){const S={type:"bot",receivedAt:new Date().getTime(),payload:{...v,messages:v.messages.map(C=>({nodeId:C.nodeId,messageId:C.messageId,text:C.text,choices:C.choices??[]}))}};o({responses:[...r.responses,S]},S),v.metadata.hasPendingDataRequest&&(w({poll:!0}),setTimeout(()=>{c({request:{structured:{poll:!0}}})},1500))}else Ts.warn("Invalid message structure, expected object with field 'messages'."),i()};let s,a=[],u=null;const c=async v=>{var C,_;if(s!=null){s(v,M=>{const T={type:"bot",receivedAt:new Date().getTime(),payload:M};o({responses:[...r.responses,T]},T)});return}const S={userId:r.userId,conversationId:r.conversationId,...v,languageCode:r.languageCode,channelType:(C=e.experimental)==null?void 0:C.channelType,environment:e.environment};h()?(t==null?void 0:t.readyState)===1?t.send(JSON.stringify(S)):a=[...a,S]:await ah(`${e.botUrl}${((_=e.experimental)==null?void 0:_.completeBotUrl)===!0?"":`-${r.languageCode}`}`,{method:"POST",headers:{...e.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":Dh.version},body:JSON.stringify(S)}).then(async M=>await M.json()).then(l).catch(M=>{Ts.warn(M),i()})},h=()=>e.botUrl.indexOf("wss://")===0;let f=[];const y=()=>{var S;const v=new URL(e.botUrl);((S=e.experimental)==null?void 0:S.completeBotUrl)!==!0&&(v.searchParams.set("languageCode",r.languageCode),v.searchParams.set("channelKey",`${v.searchParams.get("channelKey")??""}-${r.languageCode}`)),v.searchParams.set("conversationId",r.conversationId),t=new gh(v.href),u=setInterval(()=>{},500),t.onmessage=function(C){typeof(C==null?void 0:C.data)=="string"&&l(Bh(C.data))}},x=()=>{u!=null&&clearInterval(u),t!=null&&(t.onmessage=null,t.close(),t=void 0)};h()&&y();const w=(v,S)=>{const C={type:"user",receivedAt:new Date().getTime(),payload:{type:"structured",...Td(v),context:S}};o({responses:[...r.responses,C]},C)},j=(v,S)=>{w({intentId:v},S),c({context:S,request:{structured:{intentId:v}}})},m=(v,S)=>{const C={type:"user",receivedAt:new Date().getTime(),payload:{type:"text",text:v,context:S}};o({responses:[...r.responses,C]},C),c({context:S,request:{unstructured:{text:v}}})},d=(v,S,C)=>{let _=[...r.responses];const M={type:"user",receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:v}},T=(C==null?void 0:C.responseIndex)??-1,H=(C==null?void 0:C.messageIndex)??-1;T>-1&&H>-1&&(_=bd(T,ie=>ie.type==="bot"?{...ie,payload:{...ie.payload,messages:bd(H,it=>({...it,selectedChoiceId:v}),ie.payload.messages)}}:ie,_)),_=[..._,M],o({responses:_},M),c({context:S,request:{structured:{nodeId:C==null?void 0:C.nodeId,intentId:C==null?void 0:C.intentId,choiceId:v}}})},g=v=>{f=f.filter(S=>S!==v)};return{sendText:m,sendStructured:(v,S)=>{w(v,S),c({context:S,request:{structured:Td(v)}})},sendSlots:(v,S)=>{w({slots:v},S),c({context:S,request:{structured:{slots:Ld(v)}}})},sendIntent:j,sendWelcomeIntent:v=>{j($h,v)},sendChoice:d,currentConversationId:()=>r.conversationId,setLanguageCode:v=>{if(v===r.languageCode){console.warn("Attempted to set language code to the one already active.");return}h()&&(x(),y()),o({languageCode:v})},currentLanguageCode:()=>r.languageCode,subscribe:v=>(f=[...f,v],v(jd(r)),()=>{g(v)}),unsubscribe:g,unsubscribeAll:()=>{f=[]},reset:v=>{o({conversationId:Ed(),responses:(v==null?void 0:v.clearResponses)===!0?[]:r.responses}),h()&&(x(),y())},destroy:()=>{f=[],h()&&x()},setBotRequestOverride:v=>{s=v}}}function zd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=zd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Q(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zd(e))&&(r&&(r+=" "),r+=t);return r}function An(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function js(e){return function t(n){return arguments.length===0||An(n)?t:e.apply(this,arguments)}}function Fh(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return An(n)?t:js(function(o){return e(n,o)});default:return An(n)&&An(r)?t:An(n)?js(function(o){return e(o,r)}):An(r)?js(function(o){return e(n,o)}):e(n,r)}}}const Uh=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Zh(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function Wh(e,t,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!Uh(r)){for(var o=0;o<e.length;){if(typeof r[e[o]]=="function")return r[e[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(Zh(r)){var i=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(r)}}return n.apply(this,arguments)}}const Qh={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var Gh=function(){function e(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=Qh.init,e.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},e.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},e}();function Xh(e){return function(t){return new Gh(e,t)}}var Rd=Fh(Wh([],Xh,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1}));const P=e=>({width:e.size!=null?`${e.size}px`:"100%",height:e.size!=null?`${e.size}px`:"100%",className:e.className}),Yh=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M11 21H10L11 14H7.5C6.92 14 6.93 13.68 7.12 13.34C7.31 13 7.17 13.26 7.19 13.22C8.48 10.94 10.42 7.54 13 3H14L13 10H16.5C16.99 10 17.06 10.33 16.97 10.51L16.9 10.66C12.96 17.55 11 21 11 21Z",fill:"currentColor"})}),Pd=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...P(e),children:[p.jsx("path",{d:"M13.5562 5.34835C12.2796 6.62498 12.4866 8.90179 14.0186 10.4337C14.3377 10.7529 14.5571 11.134 14.6767 11.5383C14.8007 11.9572 14.8177 12.4011 14.7277 12.8268C14.6656 13.1203 14.5526 13.4051 14.3887 13.6672C14.3259 13.7677 14.2557 13.865 14.1778 13.9581C14.1279 14.018 14.0747 14.0761 14.0186 14.1322C13.3341 14.8166 12.3641 15.0421 11.4917 14.8092L11.4728 14.8042C9.38654 14.2543 7.32235 15.2129 6.85652 16.9516C6.5761 17.9979 5.50065 18.6188 4.45431 18.3385C3.40798 18.0581 2.787 16.9826 3.06729 15.9363C3.34209 14.9111 4.38012 14.2942 5.40615 14.5335L5.40666 14.5317C5.42748 14.5378 5.44842 14.5437 5.46962 14.5493C7.21342 15.0166 9.08173 13.699 9.64244 11.6062C9.64857 11.5835 9.65521 11.5608 9.66185 11.5383C9.7815 11.134 10.0009 10.7529 10.32 10.4337L10.332 10.4214C10.339 10.4142 10.346 10.407 10.3533 10.4C11.8549 8.86865 12.0496 6.61566 10.7824 5.34835C10.0163 4.58237 10.0163 3.34047 10.7824 2.57449C11.5483 1.8085 12.7903 1.8085 13.5562 2.57449C14.3066 3.32501 14.3218 4.53237 13.6016 5.30135L13.6029 5.30263C13.5872 5.3177 13.5716 5.33289 13.5562 5.34835Z",fill:"currentColor"}),p.jsx("path",{d:"M19.327 6.83185C20.0311 6.83185 20.6019 7.40264 20.6019 8.10675C20.6019 8.81087 20.0311 9.38166 19.327 9.38166C18.6229 9.38166 18.0521 8.81087 18.0521 8.10675C18.0521 7.40264 18.6229 6.83185 19.327 6.83185Z",fill:"currentColor"}),p.jsx("path",{d:"M21.3237 16.4754C21.3237 15.3741 20.4309 14.4813 19.3297 14.4813C18.2284 14.4813 17.3356 15.3741 17.3356 16.4754C17.3356 17.5767 18.2284 18.4695 19.3297 18.4695C20.4309 18.4695 21.3237 17.5767 21.3237 16.4754Z",fill:"currentColor"}),p.jsx("path",{d:"M12.1025 19.3194C12.8246 19.3194 13.4101 19.9195 13.4101 20.6597C13.4101 21.4 12.8246 22 12.1025 22C11.3804 22 10.7949 21.4 10.7949 20.6597C10.7949 19.9195 11.3804 19.3194 12.1025 19.3194Z",fill:"currentColor"}),p.jsx("path",{d:"M6.28367 8.13944C6.28367 7.41726 5.68363 6.83185 4.94339 6.83185C4.20314 6.83185 3.6031 7.41726 3.6031 8.13944C3.6031 8.86163 4.20314 9.44704 4.94339 9.44704C5.68363 9.44704 6.28367 8.86163 6.28367 8.13944Z",fill:"currentColor"})]}),Kh=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M6 13C5.45 13 5 13.45 5 14C5 14.55 5.45 15 6 15C6.55 15 7 14.55 7 14C7 13.45 6.55 13 6 13ZM6 17C5.45 17 5 17.45 5 18C5 18.55 5.45 19 6 19C6.55 19 7 18.55 7 18C7 17.45 6.55 17 6 17ZM6 9C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11C6.55 11 7 10.55 7 10C7 9.45 6.55 9 6 9ZM3 9.5C2.72 9.5 2.5 9.72 2.5 10C2.5 10.28 2.72 10.5 3 10.5C3.28 10.5 3.5 10.28 3.5 10C3.5 9.72 3.28 9.5 3 9.5ZM6 5C5.45 5 5 5.45 5 6C5 6.55 5.45 7 6 7C6.55 7 7 6.55 7 6C7 5.45 6.55 5 6 5ZM21 10.5C21.28 10.5 21.5 10.28 21.5 10C21.5 9.72 21.28 9.5 21 9.5C20.72 9.5 20.5 9.72 20.5 10C20.5 10.28 20.72 10.5 21 10.5ZM14 7C14.55 7 15 6.55 15 6C15 5.45 14.55 5 14 5C13.45 5 13 5.45 13 6C13 6.55 13.45 7 14 7ZM14 3.5C14.28 3.5 14.5 3.28 14.5 3C14.5 2.72 14.28 2.5 14 2.5C13.72 2.5 13.5 2.72 13.5 3C13.5 3.28 13.72 3.5 14 3.5ZM3 13.5C2.72 13.5 2.5 13.72 2.5 14C2.5 14.28 2.72 14.5 3 14.5C3.28 14.5 3.5 14.28 3.5 14C3.5 13.72 3.28 13.5 3 13.5ZM10 20.5C9.72 20.5 9.5 20.72 9.5 21C9.5 21.28 9.72 21.5 10 21.5C10.28 21.5 10.5 21.28 10.5 21C10.5 20.72 10.28 20.5 10 20.5ZM10 3.5C10.28 3.5 10.5 3.28 10.5 3C10.5 2.72 10.28 2.5 10 2.5C9.72 2.5 9.5 2.72 9.5 3C9.5 3.28 9.72 3.5 10 3.5ZM10 7C10.55 7 11 6.55 11 6C11 5.45 10.55 5 10 5C9.45 5 9 5.45 9 6C9 6.55 9.45 7 10 7ZM10 12.5C9.17 12.5 8.5 13.17 8.5 14C8.5 14.83 9.17 15.5 10 15.5C10.83 15.5 11.5 14.83 11.5 14C11.5 13.17 10.83 12.5 10 12.5ZM18 13C17.45 13 17 13.45 17 14C17 14.55 17.45 15 18 15C18.55 15 19 14.55 19 14C19 13.45 18.55 13 18 13ZM18 17C17.45 17 17 17.45 17 18C17 18.55 17.45 19 18 19C18.55 19 19 18.55 19 18C19 17.45 18.55 17 18 17ZM18 9C17.45 9 17 9.45 17 10C17 10.55 17.45 11 18 11C18.55 11 19 10.55 19 10C19 9.45 18.55 9 18 9ZM18 5C17.45 5 17 5.45 17 6C17 6.55 17.45 7 18 7C18.55 7 19 6.55 19 6C19 5.45 18.55 5 18 5ZM21 13.5C20.72 13.5 20.5 13.72 20.5 14C20.5 14.28 20.72 14.5 21 14.5C21.28 14.5 21.5 14.28 21.5 14C21.5 13.72 21.28 13.5 21 13.5ZM14 17C13.45 17 13 17.45 13 18C13 18.55 13.45 19 14 19C14.55 19 15 18.55 15 18C15 17.45 14.55 17 14 17ZM14 20.5C13.72 20.5 13.5 20.72 13.5 21C13.5 21.28 13.72 21.5 14 21.5C14.28 21.5 14.5 21.28 14.5 21C14.5 20.72 14.28 20.5 14 20.5ZM10 8.5C9.17 8.5 8.5 9.17 8.5 10C8.5 10.83 9.17 11.5 10 11.5C10.83 11.5 11.5 10.83 11.5 10C11.5 9.17 10.83 8.5 10 8.5ZM10 17C9.45 17 9 17.45 9 18C9 18.55 9.45 19 10 19C10.55 19 11 18.55 11 18C11 17.45 10.55 17 10 17ZM14 12.5C13.17 12.5 12.5 13.17 12.5 14C12.5 14.83 13.17 15.5 14 15.5C14.83 15.5 15.5 14.83 15.5 14C15.5 13.17 14.83 12.5 14 12.5ZM14 8.5C13.17 8.5 12.5 9.17 12.5 10C12.5 10.83 13.17 11.5 14 11.5C14.83 11.5 15.5 10.83 15.5 10C15.5 9.17 14.83 8.5 14 8.5Z",fill:"currentColor"})}),qh=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),Jh=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12 15.41L6 9.40997L7.41 7.99997L12 12.58L16.59 7.99997L18 9.40997L12 15.41Z",fill:"currentColor"})}),e0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),t0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),n0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),Rr=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",fill:"currentColor"})}),zs=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M18.5 16H7C4.79 16 3 14.21 3 12C3 9.79 4.79 8 7 8H19.5C20.88 8 22 9.12 22 10.5C22 11.88 20.88 13 19.5 13H9C8.45 13 8 12.55 8 12C8 11.45 8.45 11 9 11H18.5V9.5H9C7.62 9.5 6.5 10.62 6.5 12C6.5 13.38 7.62 14.5 9 14.5H19.5C21.71 14.5 23.5 12.71 23.5 10.5C23.5 8.29 21.71 6.5 19.5 6.5H7C3.96 6.5 1.5 8.96 1.5 12C1.5 15.04 3.96 17.5 7 17.5H18.5V16Z",fill:"currentColor"})}),r0=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...P(e),children:[p.jsx("path",{d:"M12 15.2C13.7673 15.2 15.2 13.7673 15.2 12C15.2 10.2327 13.7673 8.8 12 8.8C10.2327 8.8 8.8 10.2327 8.8 12C8.8 13.7673 10.2327 15.2 12 15.2Z",fill:"currentColor"}),p.jsx("path",{d:"M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17Z",fill:"currentColor"})]}),Md=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M8.99991 16.17L4.82991 12L3.40991 13.41L8.99991 19L20.9999 7L19.5899 5.59L8.99991 16.17Z",fill:"currentColor"})}),Nd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})}),o0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5ZM19 21H8V7H19V21Z",fill:"currentColor"})}),i0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V9H19V20Z",fill:"currentColor"})}),Id=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...P(e),children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 21C6.9 21 6 20.1 6 19V7H18V19C18 20.1 17.1 21 16 21H8ZM9.33337 9H8V19H9.33337V9ZM11.3334 9V19H12.6666V9H11.3334ZM16 19H14.6666V9H16V19Z",fill:"currentColor"}),p.jsx("path",{d:"M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4Z",fill:"currentColor"})]}),Od=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...P(e),children:[p.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z",fill:"currentColor"}),p.jsx("path",{d:"M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z",fill:"currentColor"}),p.jsx("path",{d:"M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z",fill:"currentColor"}),p.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6C9.02 6 5.76 8.51 6.02 12.45C8.49 11.44 10.35 9.24 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z",fill:"currentColor"})]}),Rs=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})}),l0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),s0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12 15C13.66 15 14.99 13.66 14.99 12L15 6C15 4.34 13.66 3 12 3C10.34 3 9 4.34 9 6V12C9 13.66 10.34 15 12 15ZM17.3 12C17.3 15 14.76 17.1 12 17.1C9.24 17.1 6.7 15 6.7 12H5C5 15.42 7.72 18.23 11 18.72V22H13V18.72C16.28 18.24 19 15.42 19 12H17.3Z",fill:"currentColor"})}),a0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M19 11H17.3C17.3 11.74 17.14 12.43 16.87 13.05L18.1 14.28C18.66 13.3 19 12.19 19 11ZM14.98 11.17C14.98 11.11 15 11.06 15 11V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V5.18L14.98 11.17ZM4.27 3L3 4.27L9.01 10.28V11C9.01 12.66 10.34 14 12 14C12.22 14 12.44 13.97 12.65 13.92L14.31 15.58C13.6 15.91 12.81 16.1 12 16.1C9.24 16.1 6.7 14 6.7 11H5C5 14.41 7.72 17.23 11 17.72V21H13V17.72C13.91 17.59 14.77 17.27 15.54 16.82L19.73 21L21 19.73L4.27 3Z",fill:"currentColor"})}),u0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z",fill:"currentColor"})}),c0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M3 9.99999V14C3 14.55 3.45 15 4 15H7L10.29 18.29C10.92 18.92 12 18.47 12 17.58V6.40999C12 5.51999 10.92 5.06999 10.29 5.69999L7 8.99999H4C3.45 8.99999 3 9.44999 3 9.99999ZM16.5 12C16.5 10.23 15.48 8.70999 14 7.96999V16.02C15.48 15.29 16.5 13.77 16.5 12ZM14 4.44999V4.64999C14 5.02999 14.25 5.35999 14.6 5.49999C17.18 6.52999 19 9.05999 19 12C19 14.94 17.18 17.47 14.6 18.5C14.24 18.64 14 18.97 14 19.35V19.55C14 20.18 14.63 20.62 15.21 20.4C18.6 19.11 21 15.84 21 12C21 8.15999 18.6 4.88999 15.21 3.59999C14.63 3.36999 14 3.81999 14 4.44999Z",fill:"currentColor"})}),d0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M16.5 12C16.5 10.23 15.48 8.71 14 7.97V10.18L16.45 12.63C16.48 12.43 16.5 12.22 16.5 12ZM19 12C19 12.94 18.8 13.82 18.46 14.64L19.97 16.15C20.63 14.91 21 13.5 21 12C21 7.72 18.01 4.14 14 3.23V5.29C16.89 6.15 19 8.83 19 12ZM4.27 3L3 4.27L7.73 9H3V15H7L12 20V13.27L16.25 17.52C15.58 18.04 14.83 18.45 14 18.7V20.76C15.38 20.45 16.63 19.81 17.69 18.95L19.73 21L21 19.73L12 10.73L4.27 3ZM12 4L9.91 6.09L12 8.18V4Z",fill:"currentColor"})}),f0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12.87 15.07L10.33 12.56L10.36 12.53C12.1 10.59 13.34 8.36 14.07 6H17V4H10V2H8V4H1V5.99H12.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8H4.69C5.42 9.63 6.42 11.17 7.67 12.56L2.58 17.58L4 19L9 14L12.11 17.11L12.87 15.07ZM18.5 10H16.5L12 22H14L15.12 19H19.87L21 22H23L18.5 10ZM15.88 17L17.5 12.67L19.12 17H15.88Z",fill:"currentColor"})}),p0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z",fill:"currentColor"})}),h0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),m0=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...P(e),children:[p.jsx("path",{d:"M13 14.5C13 15.3284 12.3284 16 11.5 16C10.6716 16 10 15.3284 10 14.5C10 13.6716 10.6716 13 11.5 13C12.3284 13 13 13.6716 13 14.5Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2ZM13.16 17.57L15.04 19.45L16.45 18.04L14.57 16.16C15.29 14.83 15.1 13.15 13.98 12.03C12.61 10.66 10.4 10.66 9.03 12.03C7.66 13.4 7.66 15.61 9.03 16.98C10.15 18.1 11.83 18.28 13.16 17.57ZM13 3.5V9H18.5L13 3.5Z",fill:"currentColor"})]}),g0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),Hd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M10 3C14.97 3 19 7.03 19 12H22L18.11 15.89L18.04 16.03L14 12H17C17 8.13 13.87 5 10 5C6.13 5 3 8.13 3 12C3 15.87 6.13 19 10 19V21C5.03 21 1 16.97 1 12C1 7.03 5.03 3 10 3Z",fill:"currentColor"})}),Dd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M19.1064 12.9302C19.1459 12.6333 19.1657 12.3266 19.1657 12C19.1657 11.6833 19.1459 11.3667 19.0965 11.0698L21.1053 9.50625C21.2834 9.36771 21.3329 9.10052 21.2241 8.9026L19.3241 5.61719C19.2053 5.39948 18.9579 5.33021 18.7402 5.39948L16.3751 6.34948C15.8803 5.97344 15.3558 5.65677 14.772 5.41927L14.4157 2.90573C14.3761 2.66823 14.1782 2.5 13.9407 2.5H10.1407C9.90323 2.5 9.71521 2.66823 9.67563 2.90573L9.31938 5.41927C8.73552 5.65677 8.20115 5.98333 7.71625 6.34948L5.35115 5.39948C5.13344 5.32031 4.88604 5.39948 4.7673 5.61719L2.87719 8.9026C2.75844 9.11042 2.79802 9.36771 2.99594 9.50625L5.00479 11.0698C4.95532 11.3667 4.91573 11.6932 4.91573 12C4.91573 12.3068 4.93552 12.6333 4.985 12.9302L2.97615 14.4938C2.79802 14.6323 2.74855 14.8995 2.8574 15.0974L4.7574 18.3828C4.87615 18.6005 5.12354 18.6698 5.34125 18.6005L7.70636 17.6505C8.20115 18.0266 8.72563 18.3432 9.30948 18.5807L9.66573 21.0943C9.71521 21.3318 9.90323 21.5 10.1407 21.5H13.9407C14.1782 21.5 14.3761 21.3318 14.4058 21.0943L14.7621 18.5807C15.3459 18.3432 15.8803 18.0266 16.3652 17.6505L18.7303 18.6005C18.948 18.6797 19.1954 18.6005 19.3142 18.3828L21.2142 15.0974C21.3329 14.8797 21.2834 14.6323 21.0954 14.4938L19.1064 12.9302ZM12.0407 15.5625C10.0814 15.5625 8.47823 13.9594 8.47823 12C8.47823 10.0406 10.0814 8.4375 12.0407 8.4375C14.0001 8.4375 15.6032 10.0406 15.6032 12C15.6032 13.9594 14.0001 15.5625 12.0407 15.5625Z",fill:"currentColor"})}),y0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})}),v0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08Z",fill:"currentColor"})}),$d=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),w0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M15 3H6C5.17 3 4.46 3.5 4.16 4.22L1.14 11.27C1.05 11.5 1 11.74 1 12V14C1 15.1 1.9 16 3 16H9.31L8.36 20.57L8.33 20.89C8.33 21.3 8.5 21.68 8.77 21.95L9.83 23L16.42 16.41C16.78 16.05 17 15.55 17 15V5C17 3.9 16.1 3 15 3ZM19 3V15H23V3H19Z",fill:"currentColor"})}),x0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M1 21H5V9H1V21ZM23 10C23 8.9 22.1 8 21 8H14.69L15.64 3.43L15.67 3.11C15.67 2.7 15.5 2.32 15.23 2.05L14.17 1L7.59 7.59C7.22 7.95 7 8.45 7 9V19C7 20.1 7.9 21 9 21H18C18.83 21 19.54 20.5 19.84 19.78L22.86 12.73C22.95 12.5 23 12.26 23 12V10Z",fill:"currentColor"})}),k0=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...P(e),children:[p.jsx("path",{d:"M11 7H12.5V12.25L17 14.92L16.25 16.15L11 13V7Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47997 6.47 1.99997 11.99 1.99997C17.52 1.99997 22 6.47997 22 12C22 17.52 17.52 22 11.99 22C6.47 22 2 17.52 2 12ZM4 12C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.57997 16.42 3.99997 12 3.99997C7.58 3.99997 4 7.57997 4 12Z",fill:"currentColor"})]}),Ad=e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M13 3C8.03 3 4 7.03 4 12H1L4.89 15.89L4.96 16.03L9 12H6C6 8.13 9.13 5 13 5C16.87 5 20 8.13 20 12C20 15.87 16.87 19 13 19V21C17.97 21 22 16.97 22 12C22 7.03 17.97 3 13 3Z",fill:"currentColor"})}),Bd=Object.freeze(Object.defineProperty({__proto__:null,Action:Yh,Add:qh,ArrowDown:Jh,ArrowForward:Rr,ArrowLeft:e0,ArrowRight:t0,ArrowUp:n0,Assistant:Pd,AssistantOld:Kh,Attachment:zs,Camera:r0,Check:Md,Close:Nd,Copy:o0,Date:i0,Delete:Id,Error:Rs,Escalate:Od,FullScreen:l0,Help:e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})}),Location:u0,Mic:s0,MicOff:a0,OpenInNew:p0,Play:h0,Preview:m0,Refresh:e=>p.jsx("svg",{viewBox:"0 0 24 24",...P(e),children:p.jsx("path",{d:"M12 4V1L8 5L12 9V6C15.31 6 18 8.69 18 12C18 13.01 17.75 13.97 17.3 14.8L18.76 16.26C19.54 15.03 20 13.57 20 12C20 7.58 16.42 4 12 4ZM12 18C8.69 18 6 15.31 6 12C6 10.99 6.25 10.03 6.7 9.2L5.24 7.74C4.46 8.97 4 10.43 4 12C4 16.42 7.58 20 12 20V23L16 19L12 15V18Z",fill:"currentColor"})}),Reorder:g0,Restart:Hd,Search:y0,Settings:Dd,Share:v0,ThumbDown:w0,ThumbUp:x0,Time:k0,Translate:f0,Undo:Ad,Volume:c0,VolumeOff:d0,Warning:$d},Symbol.toStringTag,{value:"Module"})),C0=e=>p.jsxs("button",{className:Q("p-3 w-fit bg-background text-primary-80 rounded-plus","after:content-[''] after:rounded-plus after:absolute after:inset-0 after:pointer-events-none","hover:after:bg-primary-10",e.className),disabled:e.onClick==null,onClick:e.onClick,children:[p.jsx("span",{className:"block flex-none w-8 h-8",children:p.jsx(Pd,{})}),e.showLabel??!1?p.jsx("span",{children:e.label}):null]}),S0="bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40",b0="bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20",_0="bg-accent text-secondary-80 enabled:hover:before:bg-primary-40 focus:before:bg-primary-40 enabled:active:before:bg-secondary-10 disabled:bg-accent-20",E0="bg-secondary-60 backdrop-blur text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",L0="bg-background backdrop-blur text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",Ot=({onClick:e,type:t,label:n,className:r,Icon:o})=>{const i=e==null;return p.jsx("button",{onClick:i?void 0:e,disabled:i,"aria-label":n,className:Q("p-3 w-10 h-10 transition-colors rounded-base relative z-10 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent focus:outline-0",t==="main"?S0:null,t==="ghost"?b0:null,t==="activated"?_0:null,t==="coverup"?E0:null,t==="overlay"?L0:null,r),children:p.jsx(o,{})})},T0=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u",Bn=new Map,Vd=e=>{const t=matchMedia(e),n=new Set,r=()=>{for(const o of n)o(t.matches)};return t.addEventListener("change",r,{passive:!0}),{mql:t,dispatchers:n,listener:r}},j0=(e,t)=>{let n=Bn.get(e);n||(n=Vd(e),Bn.set(e,n)),n.dispatchers.add(t),t(n.mql.matches)},z0=(e,t)=>{const n=Bn.get(e);if(n){const{mql:r,dispatchers:o,listener:i}=n;o.delete(t),o.size===0&&(Bn.delete(e),r.removeEventListener?r.removeEventListener("change",i):r.removeListener(i))}};function R0(e,t={}){let{initializeWithValue:n=!0}=t;T0||(n=!1);const[r,o]=z.useState(()=>{if(n){let i=Bn.get(e);return i||(i=Vd(e),Bn.set(e,i)),i.mql.matches}});return z.useEffect(()=>(j0(e,o),()=>{z0(e,o)}),[e]),r}const Fd=e=>R0("(min-width: 768px)"),P0=({windowSize:e,colorMode:t,collapse:n,logoUrl:r,toggleSettings:o,isSettingsOpen:i,reset:l})=>{const s=e==="half",a=Fd(),u=s&&a?"overlay":"ghost";return p.jsxs("div",{className:Q("flex","p-2 md:p-3 items-center justify-between gap-2",s?"md:absolute md:w-fit md:flex-col md:left-0 md:-translate-x-full":"md:absolute md:left-0 md:right-0 md:top-0"),children:[r!=null?p.jsx("img",{className:"w-10 h-10 block",src:typeof r=="string"?r:r[t]}):null,p.jsx(Ot,{label:"Reset",type:u,className:r==null?"":"ml-auto",onClick:()=>{l()},Icon:Ad}),o!=null?p.jsx(Ot,{className:r!=null?"":"ml-auto",Icon:Dd,label:"Settings",type:i?"activated":u,onClick:o}):null,p.jsx(Ot,{label:"Collapse",type:u,className:Q(o==null?"ml-auto":"",s?"md:-order-1":""),onClick:()=>{n()},Icon:Nd})]})},nn=({onClick:e,label:t,type:n="ghost",Icon:r,className:o})=>p.jsxs("button",{onClick:e,disabled:e==null,className:Q("relative z-10 w-full px-5 py-4 transition-colors rounded-plus flex justify-between items-center focus:outline-0 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",{"bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40":n==="main","bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-5 focus:before:bg-primary-5 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20":n==="ghost"},o),children:[t,p.jsx(r,{size:16})]}),M0=({onClose:e,handler:t,windowSize:n,setWindowSizeOverride:r,className:o})=>p.jsxs("div",{className:Q("p-2 md:p-3 flex flex-col flex-grow justify-center gap-2",o),children:[p.jsx(nn,{label:"Restart conversation",Icon:Hd,type:"ghost",onClick:()=>{t.reset({clearResponses:!0}),t.sendWelcomeIntent(),e()}}),p.jsx(nn,{label:"Talk to an agent",Icon:Od,type:"ghost",onClick:()=>{t.sendIntent("NLX.Escalation"),e()}}),p.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[p.jsx(nn,{label:"Half width",Icon:Rr,type:n==="half"?"main":"ghost",onClick:()=>{r("half")}}),p.jsx(nn,{label:"Full width",Icon:Rr,type:n==="full"?"main":"ghost",onClick:()=>{r("full")}})]})]});function Ps(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let rn=Ps();function Ud(e){rn=e}const Pr={exec:()=>null};function B(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(o,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(Se.caret,"$1"),n=n.replace(o,l),r},getRegex:()=>new RegExp(n,t)};return r}const Se={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},N0=/^(?:[ \t]*(?:\n|$))+/,I0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,O0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Mr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zd=/(?:[*+-]|\d{1,9}[.)])/,Wd=B(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Zd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ms=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,D0=/^[^\n]+/,Ns=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$0=B(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ns).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),A0=B(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zd).getRegex(),ni="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Is=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,B0=B("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Is).replace("tag",ni).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qd=B(Ms).replace("hr",Mr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ni).getRegex(),Os={blockquote:B(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Qd).getRegex(),code:I0,def:$0,fences:O0,heading:H0,hr:Mr,html:B0,lheading:Wd,list:A0,newline:N0,paragraph:Qd,table:Pr,text:D0},Gd=B("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Mr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ni).getRegex(),V0={...Os,table:Gd,paragraph:B(Ms).replace("hr",Mr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ni).getRegex()},F0={...Os,html:B(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Is).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:B(Ms).replace("hr",Mr).replace("heading",` *#{1,6} *[^
|
|
61
|
-
]`).replace("lheading",Wd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Z0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Xd=/^( {2,}|\\)\n(?!\s*$)/,W0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ri=/[\p{P}\p{S}]/u,Hs=/[\s\p{P}\p{S}]/u,Yd=/[^\s\p{P}\p{S}]/u,Q0=B(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Hs).getRegex(),G0=/(?!~)[\p{P}\p{S}]/u,X0=/(?!~)[\s\p{P}\p{S}]/u,Y0=/(?:[^\s\p{P}\p{S}]|~)/u,K0=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,q0=B(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,ri).getRegex(),Kd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",J0=B(Kd,"gu").replace(/notPunctSpace/g,Yd).replace(/punctSpace/g,Hs).replace(/punct/g,ri).getRegex(),em=B(Kd,"gu").replace(/notPunctSpace/g,Y0).replace(/punctSpace/g,X0).replace(/punct/g,G0).getRegex(),tm=B("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Yd).replace(/punctSpace/g,Hs).replace(/punct/g,ri).getRegex(),nm=B(/\\(punct)/,"gu").replace(/punct/g,ri).getRegex(),rm=B(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),om=B(Is).replace("(?:-->|$)","-->").getRegex(),im=B("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",om).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),oi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,lm=B(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",oi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qd=B(/^!?\[(label)\]\[(ref)\]/).replace("label",oi).replace("ref",Ns).getRegex(),Jd=B(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ns).getRegex(),sm=B("reflink|nolink(?!\\()","g").replace("reflink",qd).replace("nolink",Jd).getRegex(),Ds={_backpedal:Pr,anyPunctuation:nm,autolink:rm,blockSkip:K0,br:Xd,code:Z0,del:Pr,emStrongLDelim:q0,emStrongRDelimAst:J0,emStrongRDelimUnd:tm,escape:U0,link:lm,nolink:Jd,punctuation:Q0,reflink:qd,reflinkSearch:sm,tag:im,text:W0,url:Pr},am={...Ds,link:B(/^!?\[(label)\]\((.*?)\)/).replace("label",oi).getRegex(),reflink:B(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oi).getRegex()},$s={...Ds,emStrongRDelimAst:em,url:B(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},um={...$s,br:B(Xd).replace("{2,}","*").getRegex(),text:B($s.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ii={normal:Os,gfm:V0,pedantic:F0},Nr={normal:Ds,gfm:$s,breaks:um,pedantic:am},cm={"&":"&","<":"<",">":">",'"':""","'":"'"},ef=e=>cm[e];function ot(e,t){if(t){if(Se.escapeTest.test(e))return e.replace(Se.escapeReplace,ef)}else if(Se.escapeTestNoEncode.test(e))return e.replace(Se.escapeReplaceNoEncode,ef);return e}function tf(e){try{e=encodeURI(e).replace(Se.percentDecode,"%")}catch{return null}return e}function nf(e,t){var i;const n=e.replace(Se.findPipe,(l,s,a)=>{let u=!1,c=s;for(;--c>=0&&a[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(Se.splitPipe);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(Se.slashPipe,"|");return r}function Ir(e,t,n){const r=e.length;if(r===0)return"";let o=0;for(;o<r&&(e.charAt(r-o-1)===t&&!n);)o++;return e.slice(0,r-o)}function dm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function rf(e,t,n,r,o){const i=t.href,l=t.title||null,s=e[1].replace(o.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:l,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:l,text:s}}function fm(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const o=r[1];return t.split(`
|
|
62
|
-
`).map(i=>{const l=i.match(n.other.beginningSpace);if(l===null)return i;const[s]=l;return s.length>=o.length?i.slice(o.length):i}).join(`
|
|
63
|
-
`)}class li{constructor(t){A(this,"options");A(this,"rules");A(this,"lexer");this.options=t||rn}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ir(r,`
|
|
64
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=fm(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const o=Ir(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Ir(n[0],`
|
|
65
|
-
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Ir(n[0],`
|
|
66
|
-
`).split(`
|
|
67
|
-
`),o="",i="";const l=[];for(;r.length>0;){let s=!1;const a=[];let u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))a.push(r[u]),s=!0;else if(!s)a.push(r[u]);else break;r=r.slice(u);const c=a.join(`
|
|
68
|
-
`),h=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
69
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
|
|
70
|
-
${c}`:c,i=i?`${i}
|
|
71
|
-
${h}`:h;const f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=f,r.length===0)break;const y=l.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){const x=y,w=x.raw+`
|
|
72
|
-
`+r.join(`
|
|
73
|
-
`),j=this.blockquote(w);l[l.length-1]=j,o=o.substring(0,o.length-x.raw.length)+j.raw,i=i.substring(0,i.length-x.text.length)+j.text;break}else if((y==null?void 0:y.type)==="list"){const x=y,w=x.raw+`
|
|
74
|
-
`+r.join(`
|
|
75
|
-
`),j=this.list(w);l[l.length-1]=j,o=o.substring(0,o.length-y.raw.length)+j.raw,i=i.substring(0,i.length-x.raw.length)+j.raw,r=w.substring(l.at(-1).raw.length).split(`
|
|
76
|
-
`);continue}}return{type:"blockquote",raw:o,tokens:l,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let s=!1;for(;t;){let u=!1,c="",h="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let f=n[2].split(`
|
|
77
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,d=>" ".repeat(3*d.length)),y=t.split(`
|
|
78
|
-
`,1)[0],x=!f.trim(),w=0;if(this.options.pedantic?(w=2,h=f.trimStart()):x?w=n[1].length+1:(w=n[2].search(this.rules.other.nonSpaceChar),w=w>4?1:w,h=f.slice(w),w+=n[1].length),x&&this.rules.other.blankLine.test(y)&&(c+=y+`
|
|
79
|
-
`,t=t.substring(y.length+1),u=!0),!u){const d=this.rules.other.nextBulletRegex(w),g=this.rules.other.hrRegex(w),k=this.rules.other.fencesBeginRegex(w),v=this.rules.other.headingBeginRegex(w),S=this.rules.other.htmlBeginRegex(w);for(;t;){const C=t.split(`
|
|
80
|
-
`,1)[0];let _;if(y=C,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),_=y):_=y.replace(this.rules.other.tabCharGlobal," "),k.test(y)||v.test(y)||S.test(y)||d.test(y)||g.test(y))break;if(_.search(this.rules.other.nonSpaceChar)>=w||!y.trim())h+=`
|
|
81
|
-
`+_.slice(w);else{if(x||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(f)||v.test(f)||g.test(f))break;h+=`
|
|
82
|
-
`+y}!x&&!y.trim()&&(x=!0),c+=C+`
|
|
83
|
-
`,t=t.substring(C.length+1),f=_.slice(w)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0));let j=null,m;this.options.gfm&&(j=this.rules.other.listIsTask.exec(h),j&&(m=j[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!j,checked:m,loose:!1,text:h,tokens:[]}),i.raw+=c}const a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(f=>f.type==="space"),h=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=h}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(t){var s;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=nf(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=n[3])!=null&&s.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
84
|
-
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(const a of o)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of i)l.rows.push(nf(a,l.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:l.align[c]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
85
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=Ir(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=dm(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(o);l&&(o=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),rf(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return rf(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...o[0]].length-1;let s,a,u=l,c=0;const h=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(o=h.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(a=[...s].length,o[3]||o[4]){u+=a;continue}else if((o[5]||o[6])&&l%3&&!((l+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const f=[...o[0]][0].length,y=t.slice(0,l+o.index+f+a);if(Math.min(l,a)%2){const w=y.slice(1,-1);return{type:"em",raw:y,text:w,tokens:this.lexer.inlineTokens(w)}}const x=y.slice(2,-2);return{type:"strong",raw:y,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const o=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,o;return n[2]==="@"?(r=n[1],o="mailto:"+r):(r=n[1],o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let o,i;if(n[2]==="@")o=n[0],i="mailto:"+o;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);o=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Fe{constructor(t){A(this,"tokens");A(this,"options");A(this,"state");A(this,"tokenizer");A(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||rn,this.options.tokenizer=this.options.tokenizer||new li,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Se,block:ii.normal,inline:Nr.normal};this.options.pedantic?(n.block=ii.pedantic,n.inline=Nr.pedantic):this.options.gfm&&(n.block=ii.gfm,this.options.breaks?n.inline=Nr.breaks:n.inline=Nr.gfm),this.tokenizer.rules=n}static get rules(){return{block:ii,inline:Nr}}static lex(t,n){return new Fe(n).lex(t)}static lexInline(t,n){return new Fe(n).inlineTokens(t)}lex(t){t=t.replace(Se.carriageReturn,`
|
|
86
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,i,l;for(this.options.pedantic&&(t=t.replace(Se.tabCharGlobal," ").replace(Se.spaceLine,""));t;){let s;if((i=(o=this.options.extensions)==null?void 0:o.block)!=null&&i.some(u=>(s=u.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);const u=n.at(-1);s.raw.length===1&&u!==void 0?u.raw+=`
|
|
87
|
-
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
88
|
-
`+s.raw,u.text+=`
|
|
89
|
-
`+s.text,this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
90
|
-
`+s.raw,u.text+=`
|
|
91
|
-
`+s.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let u=1/0;const c=t.slice(1);let h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},c),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(a=t.substring(0,u+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){const u=n.at(-1);r&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=`
|
|
92
|
-
`+s.raw,u.text+=`
|
|
93
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s),r=a.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
94
|
-
`+s.raw,u.text+=`
|
|
95
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var s,a,u;let r=t,o=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,l="";for(;t;){i||(l=""),i=!1;let c;if((a=(s=this.options.extensions)==null?void 0:s.inline)!=null&&a.some(f=>(c=f.call({lexer:this},t,n))?(t=t.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);const f=n.at(-1);c.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(c=this.tokenizer.emStrong(t,r,l)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.del(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),n.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),n.push(c);continue}let h=t;if((u=this.options.extensions)!=null&&u.startInline){let f=1/0;const y=t.slice(1);let x;this.options.extensions.startInline.forEach(w=>{x=w.call({lexer:this},y),typeof x=="number"&&x>=0&&(f=Math.min(f,x))}),f<1/0&&f>=0&&(h=t.substring(0,f+1))}if(c=this.tokenizer.inlineText(h)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(l=c.raw.slice(-1)),i=!0;const f=n.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}class si{constructor(t){A(this,"options");A(this,"parser");this.options=t||rn}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const o=(l=(n||"").match(Se.notSpaceStart))==null?void 0:l[0],i=t.replace(Se.endingNewline,"")+`
|
|
96
|
-
`;return o?'<pre><code class="language-'+ot(o)+'">'+(r?i:ot(i,!0))+`</code></pre>
|
|
97
|
-
`:"<pre><code>"+(r?i:ot(i,!0))+`</code></pre>
|
|
98
|
-
`}blockquote({tokens:t}){return`<blockquote>
|
|
99
|
-
${this.parser.parse(t)}</blockquote>
|
|
100
|
-
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
101
|
-
`}hr(t){return`<hr>
|
|
102
|
-
`}list(t){const n=t.ordered,r=t.start;let o="";for(let s=0;s<t.items.length;s++){const a=t.items[s];o+=this.listitem(a)}const i=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+i+l+`>
|
|
103
|
-
`+o+"</"+i+`>
|
|
104
|
-
`}listitem(t){var r;let n="";if(t.task){const o=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=o+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=o+" "+ot(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):n+=o+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
|
105
|
-
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
106
|
-
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let o="";for(let i=0;i<t.rows.length;i++){const l=t.rows[i];r="";for(let s=0;s<l.length;s++)r+=this.tablecell(l[s]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
|
|
107
|
-
<thead>
|
|
108
|
-
`+n+`</thead>
|
|
109
|
-
`+o+`</table>
|
|
110
|
-
`}tablerow({text:t}){return`<tr>
|
|
111
|
-
${t}</tr>
|
|
112
|
-
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
|
113
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ot(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),i=tf(t);if(i===null)return o;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+ot(n)+'"'),l+=">"+o+"</a>",l}image({href:t,title:n,text:r}){const o=tf(t);if(o===null)return ot(r);t=o;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${ot(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ot(t.text)}}class As{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ue{constructor(t){A(this,"options");A(this,"renderer");A(this,"textRenderer");this.options=t||rn,this.options.renderer=this.options.renderer||new si,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new As}static parse(t,n){return new Ue(n).parse(t)}static parseInline(t,n){return new Ue(n).parseInline(t)}parse(t,n=!0){var o,i;let r="";for(let l=0;l<t.length;l++){const s=t[l];if((i=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&i[s.type]){const u=s,c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){r+=c||"";continue}}const a=s;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let u=a,c=this.renderer.text(u);for(;l+1<t.length&&t[l+1].type==="text";)u=t[++l],c+=`
|
|
114
|
-
`+this.renderer.text(u);n?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(t,n=this.renderer){var o,i;let r="";for(let l=0;l<t.length;l++){const s=t[l];if((i=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&i[s.type]){const u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=u||"";continue}}const a=s;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}}class Or{constructor(t){A(this,"options");A(this,"block");this.options=t||rn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Fe.lex:Fe.lexInline}provideParser(){return this.block?Ue.parse:Ue.parseInline}}A(Or,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class pm{constructor(...t){A(this,"defaults",Ps());A(this,"options",this.setOptions);A(this,"parse",this.parseMarkdown(!0));A(this,"parseInline",this.parseMarkdown(!1));A(this,"Parser",Ue);A(this,"Renderer",si);A(this,"TextRenderer",As);A(this,"Lexer",Fe);A(this,"Tokenizer",li);A(this,"Hooks",Or);this.use(...t)}walkTokens(t,n){var o,i;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const s=l;for(const a of s.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of s.rows)for(const u of a)r=r.concat(this.walkTokens(u.tokens,n));break}case"list":{const s=l;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=l;(i=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{const u=s[a].flat(1/0);r=r.concat(this.walkTokens(u,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const l=n.renderers[i.name];l?n.renderers[i.name]=function(...s){let a=i.renderer.apply(this,s);return a===!1&&(a=l.apply(this,s)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[i.level];l?l.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){const i=this.defaults.renderer||new si(this.defaults);for(const l in r.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const s=l,a=r.renderer[s],u=i[s];i[s]=(...c)=>{let h=a.apply(i,c);return h===!1&&(h=u.apply(i,c)),h||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new li(this.defaults);for(const l in r.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const s=l,a=r.tokenizer[s],u=i[s];i[s]=(...c)=>{let h=a.apply(i,c);return h===!1&&(h=u.apply(i,c)),h}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Or;for(const l in r.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const s=l,a=r.hooks[s],u=i[s];Or.passThroughHooks.has(l)?i[s]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(f=>u.call(i,f));const h=a.call(i,c);return u.call(i,h)}:i[s]=(...c)=>{let h=a.apply(i,c);return h===!1&&(h=u.apply(i,c)),h}}o.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,l=r.walkTokens;o.walkTokens=function(s){let a=[];return a.push(l.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Fe.lex(t,n??this.defaults)}parser(t,n){return Ue.parse(t,n??this.defaults)}parseMarkdown(t){return(r,o)=>{const i={...o},l={...this.defaults,...i},s=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Fe.lex:Fe.lexInline,u=l.hooks?l.hooks.provideParser():t?Ue.parse:Ue.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(c=>a(c,l)).then(c=>l.hooks?l.hooks.processAllTokens(c):c).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>u(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(s);try{l.hooks&&(r=l.hooks.preprocess(r));let c=a(r,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let h=u(c,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(c){return s(c)}}}onError(t,n){return r=>{if(r.message+=`
|
|
115
|
-
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+ot(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}}const on=new pm;function $(e,t){return on.parse(e,t)}$.options=$.setOptions=function(e){return on.setOptions(e),$.defaults=on.defaults,Ud($.defaults),$},$.getDefaults=Ps,$.defaults=rn,$.use=function(...e){return on.use(...e),$.defaults=on.defaults,Ud($.defaults),$},$.walkTokens=function(e,t){return on.walkTokens(e,t)},$.parseInline=on.parseInline,$.Parser=Ue,$.parser=Ue.parse,$.Renderer=si,$.TextRenderer=As,$.Lexer=Fe,$.lexer=Fe.lex,$.Tokenizer=li,$.Hooks=Or,$.parse=$,$.options,$.setOptions,$.use,$.walkTokens,$.parseInline,Ue.parse,Fe.lex;const hm=30,Hr=17,mm=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,Bs=990,ai=Bs+300,gm=({d:e})=>{const t=Math.PI/2,n=e/Hr/2.8,r=t*Math.min(n,1),o=n<1?(e-Math.sin(r))/Math.cos(r)*.5:0,i=-e,l=e,s=e-Hr*Math.sin(r),a=Hr*Math.cos(r),u=s-o*Math.cos(r),c=a-o*Math.sin(r);return p.jsxs(p.Fragment,{children:[p.jsx("circle",{cx:i,cy:"0",r:Hr}),p.jsx("circle",{cx:l,cy:"0",r:Hr}),n<.45?p.jsx("path",{d:`
|
|
116
|
-
M${-s},${a}
|
|
117
|
-
C${-u},${c} ${u},${c} ${s},${a} L${s},${-a}
|
|
118
|
-
C${u},${-c} ${-u},${-c} ${-s},${-a} Z
|
|
119
|
-
`}):null]})},ym=e=>e<1/3?e*3:e<2/3?1:3-e*3,of=e=>e<1/3?0:e<2/3?(e-1/3)*3:1,vm=({label:e,className:t})=>{const[n,r]=z.useState(null),o=z.useRef(!1);if(z.useEffect(()=>{const y=x=>{r(w=>w==null?{start:x,current:x}:{...w,current:x}),o.current||requestAnimationFrame(y)};o.current||requestAnimationFrame(y)},[o,r]),n==null)return null;let i,l;const s=n.current-n.start,a=s%ai,u=Math.floor(s/ai);if(a<Bs){const y=s/ai,x=Math.floor(y),w=mm((y-x)*(ai/Bs));i=ym(w),l=u%2?of(w):1+of(w)}else i=0,l=0;const c=i>.2?0:5*(.2-i)/.2,h=.3,f=i>h?1-.25*(i-h)/(1-h):1;return p.jsx("div",{className:Q("h-full w-full flex items-center justify-center",t),children:p.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[p.jsx("div",{className:Q("w-8 h-8 block text-accent"),children:p.jsx("svg",{viewBox:"0 0 100 100",stroke:"none",fill:"currentColor",style:{filter:`drop-shadow(0 0 ${c}px var(--accent))`},children:p.jsx("g",{transform:`translate(50 50) rotate(${l*90})`,opacity:f,children:p.jsx(gm,{d:hm*i})})})}),p.jsx("p",{className:"text-primary-60",children:e})]})})},wm=({handler:e,message:t,responseIndex:n,messageIndex:r,className:o})=>t.choices.length>0?p.jsx("div",{className:o,children:p.jsx("ul",{className:"space-y-2",children:t.choices.map((i,l)=>t.selectedChoiceId==null||i.choiceId===t.selectedChoiceId?p.jsx("li",{className:"w-full",children:p.jsx(nn,{type:"ghost",Icon:Rr,onClick:t.selectedChoiceId==null?()=>{e.sendChoice(i.choiceId,{},{responseIndex:n,messageIndex:r})}:void 0,label:i.choiceText})},l):null)})}):null,Vs=({text:e,files:t})=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("div",{className:"flex justify-end pl-10 text-base",children:p.jsx("div",{className:"text-primary-60 p-3 rounded-base bg-primary-5 whitespace-pre-wrap",children:e})}),t!=null?p.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t.map((n,r)=>p.jsx("img",{className:"rounded-base h-20",src:URL.createObjectURL(n)},r))}):null]}),xm=({message:e})=>p.jsxs("div",{className:"bg-error-secondary text-error-primary text-base p-3 rounded-base flex items-center gap-2",children:[p.jsx($d,{className:"w-4 h-4 flex-none"}),p.jsx("p",{className:"text-primary-80",children:e})]}),km=({responses:e,colorMode:t,uploadedFiles:n,lastBotResponseIndex:r,isWaiting:o,customModalities:i,className:l})=>{const s=z.useRef(null),a=z.useRef(null);return z.useEffect(()=>{o||setTimeout(()=>{var u;(u=a.current)==null||u.scrollIntoView({behavior:"smooth"})})},[o]),p.jsxs("div",{className:Q("relative",l),children:[p.jsx("div",{"data-theme":t==="dark"?"light":"dark",className:Q("absolute inset-x-0 h-[1px] top-0 bg-background opacity-[0.01] backdrop-blur-md")}),o?p.jsx(vm,{label:"Thinking",className:"absolute inset-0"}):null,p.jsx("div",{className:Q("absolute inset-0 p-2 md:p-3 overflow-y-auto no-scrollbar space-y-8",o?"opacity-0":"opacity-100"),ref:s,children:e.map((u,c)=>{if(u.type==="user")return u.payload.type==="text"?p.jsx(Vs,{text:u.payload.text},c):u.payload.type==="structured"&&u.payload.utterance!=null&&u.payload.uploadIds!=null?p.jsx(Vs,{text:u.payload.utterance,files:u.payload.uploadIds.map(f=>n[f]).filter(f=>f!=null)},c):null;if(u.type==="failure")return p.jsx(xm,{message:u.payload.text},c);const h=r!=null&&c===r;return p.jsxs(z.Fragment,{children:[p.jsxs("div",{className:Q("space-y-2",h?"min-h-full":""),ref:h?a:void 0,children:[u.payload.messages.map((f,y)=>p.jsx("div",{className:"text-base",children:p.jsx("div",{className:"pr-10",dangerouslySetInnerHTML:{__html:$(f.text)}})},y)),Object.entries(u.payload.modalities??{}).map(([f,y])=>{const x=i[f];return x==null?(console.warn(`Custom component implementation missing for the ${f} modality.`),null):p.jsx(x,{data:y},f)})]}),u.payload.messages.map((f,y)=>{if(f.selectedChoiceId!=null){const x=f.choices.find(w=>w.choiceId===f.selectedChoiceId);return x==null?null:p.jsx(Vs,{text:x.choiceText},y)}return null})]},c)})},"messages")]})};function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fs.apply(this,arguments)}function Cm(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Sm=z.useLayoutEffect,bm=function(t){var n=un.useRef(t);return Sm(function(){n.current=t}),n},lf=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},_m=function(t,n){var r=un.useRef();return un.useCallback(function(o){t.current=o,r.current&&lf(r.current,null),r.current=n,n&&lf(n,o)},[n])},sf={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Em=function(t){Object.keys(sf).forEach(function(n){t.style.setProperty(n,sf[n],"important")})},af=Em,be=null,uf=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function Lm(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),be||(be=document.createElement("textarea"),be.setAttribute("tabindex","-1"),be.setAttribute("aria-hidden","true"),af(be)),be.parentNode===null&&document.body.appendChild(be);var o=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(f){var y=f;be.style[y]=l[y]}),af(be),be.value=t;var a=uf(be,e);be.value=t,a=uf(be,e),be.value="x";var u=be.scrollHeight-o,c=u*n;s==="border-box"&&(c=c+o+i),a=Math.max(c,a);var h=u*r;return s==="border-box"&&(h=h+o+i),a=Math.min(h,a),[a,u]}var cf=function(){},Tm=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},jm=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],zm=!!document.documentElement.currentStyle,Rm=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=Tm(jm,n),o=r.boxSizing;if(o==="")return null;zm&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:l}},Pm=Rm;function df(e,t,n){var r=bm(n);z.useLayoutEffect(function(){var o=function(l){return r.current(l)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var Mm=function(t){df(window,"resize",t)},Nm=function(t){df(document.fonts,"loadingdone",t)},Im=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Om=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,l=t.onChange,s=l===void 0?cf:l,a=t.onHeightChange,u=a===void 0?cf:a,c=Cm(t,Im),h=c.value!==void 0,f=z.useRef(null),y=_m(f,n),x=z.useRef(0),w=z.useRef(),j=function(){var g=f.current,k=r&&w.current?w.current:Pm(g);if(k){w.current=k;var v=Lm(k,g.value||g.placeholder||"x",i,o),S=v[0],C=v[1];x.current!==S&&(x.current=S,g.style.setProperty("height",S+"px","important"),u(S,{rowHeight:C}))}},m=function(g){h||j(),s(g)};return z.useLayoutEffect(j),Mm(j),Nm(j),z.createElement("textarea",Fs({},c,{onChange:m,ref:y}))},Hm=z.forwardRef(Om);const ff=8,Dm=({className:e,choiceMessage:t,handler:n,uploadUrl:r,onFileUpload:o})=>{const[i,l]=z.useState(!1),[s,a]=z.useState(""),[u,c]=z.useState(null),[h,f]=z.useState(null),y=z.useRef(null),x=z.useRef(null),w=Fd();z.useEffect(()=>{var _;w&&((_=x.current)==null||_.focus())},[w]);const j=z.useMemo(()=>s.trim()==="",[s]),[m,d]=z.useState(!1),g=j&&h==null||m,k=()=>{if(g)return;const _=(M,T)=>{(T==null?void 0:T.type)==="bot"&&(d(!1),n.unsubscribe(_),a(""),f(null),w&&setTimeout(()=>{var H;(H=x.current)==null||H.focus()}))};n.subscribe(_),d(!0),r!=null&&h!=null?n.sendStructured({uploadIds:[r.uploadId],utterance:s}):n.sendText(s)},v=r!=null,S=()=>{c("Something went wrong. Please try again.")},C=_=>{var it,Dr;if(r==null){S();return}const M=(Dr=(it=_.target)==null?void 0:it.files)==null?void 0:Dr[0];if(M==null){S();return}const{name:T,size:H,type:ie}=M;if(f({name:T,size:H,type:ie}),H/1024**2>ff){c(`The file is too big. Max file size: ${ff}mb`);return}fetch(r.url,{method:"PUT",headers:{"Content-Type":"image/jpeg"},body:M}).then(()=>{c(null),o({uploadId:r.uploadId,file:M})}).catch(()=>{S()})};return p.jsxs("div",{className:Q("p-2 md:p-3 relative",e),children:[t!=null?p.jsx(wm,{...t,handler:n,className:Q("absolute inset-x-0 z-10 top-0 transform -translate-y-full px-2 md:px-3",t.message.selectedChoiceId!=null?"md:top-2":"md:top-1")}):null,(t==null?void 0:t.message.selectedChoiceId)!=null?null:p.jsxs("div",{className:Q("bg-primary-5 transition-colors duration-200 p-2 rounded-plus text-base font-normal",i?"":"hover:bg-secondary-20"),children:[u!=null&&p.jsxs("div",{className:"flex items-center py-1 mb-2 w-full bg-error-secondary rounded-base",children:[p.jsx(Rs,{size:16}),p.jsx("span",{className:"truncate ml-1",children:u})]}),h&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-2 w-full",children:[p.jsxs("p",{className:"flex items-center truncate mx-2",children:[u!=null?p.jsx(Rs,{size:16,className:"text-error-primary"}):p.jsx(Md,{size:16,className:"text-primary-60"}),p.jsx("span",{className:"truncate ml-3",children:h.name})]}),p.jsx(Ot,{className:"flex-none",Icon:Id,label:"Delete",onClick:v?()=>{f(null),c(null),y.current!=null&&(y.current.value="")}:void 0,type:"ghost"})]}),p.jsx("hr",{className:"border-b-px border-background mb-2 -mx-2"})]}),p.jsxs("div",{className:Q("flex items-end"),children:[v&&h==null?p.jsxs(p.Fragment,{children:[p.jsx("label",{htmlFor:"file-upload",className:"p-3 w-10 h-10 flex-none block transition-colors rounded-base bg-primary-80 hover:bg-primary-80 text-secondary-80 cursor-pointer",children:p.jsx(zs,{})}),p.jsx("input",{type:"file",id:"file-upload",className:"sr-only",accept:".jpg, .jpeg, .png, .webp, .mp4, .mpeg4, .avi, .mov, .pdf",onChange:C,ref:y})]}):p.jsx(Ot,{className:"flex-none",Icon:zs,label:"Upload file",type:"ghost"}),p.jsx(Hm,{disabled:m,className:Q("h-10 w-full resize-none mr-2 px-2 py-2 outline-none","bg-transparent text-primary-80 placeholder:text-primary-40 caret-accent","disabled:text-primary-40"),placeholder:"Type something",maxRows:10,onFocus:()=>{l(!0)},onBlur:()=>{l(!1)},value:s,onChange:_=>{a(_.target.value)},onKeyDown:_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),k())},ref:x}),p.jsx(Ot,{className:"flex-none",label:"Send message",onClick:g?void 0:()=>{k()},type:"main",Icon:Rr})]})]})]})},pf=z.createContext({handler:null}),$m=()=>z.useContext(pf),Am=e=>({"--font-family":e.fontFamily,"--primary-80":e.primary80,"--primary-60":e.primary60,"--primary-40":e.primary40,"--primary-20":e.primary20,"--primary-10":e.primary10,"--primary-5":e.primary5,"--primary-1":e.primary1,"--secondary-80":e.secondary80,"--secondary-60":e.secondary60,"--secondary-40":e.secondary40,"--secondary-20":e.secondary20,"--secondary-10":e.secondary10,"--secondary-5":e.secondary5,"--secondary-1":e.secondary1,"--accent":e.accent,"--accent-20":e.accent20,"--background":e.background,"--overlay":e.overlay,"--warning-primary":e.warningPrimary,"--warning-secondary":e.warningSecondary,"--error-primary":e.errorPrimary,"--error-secondary":e.errorSecondary}),Bm={fontFamily:'"Neue Haas Grotesk", sans-serif',primary80:"rgba(0, 2, 9, 0.8)",primary60:"rgba(0, 2, 9, 0.6)",primary40:"rgba(0, 2, 9, 0.4)",primary20:"rgba(0, 2, 9, 0.2)",primary10:"rgba(0, 2, 9, 0.1)",primary5:"rgba(0, 2, 9, 0.05)",primary1:"rgba(0, 2, 9, 0.01)",secondary80:"rgba(255, 255, 255, 0.85)",secondary60:"rgba(255, 255, 255, 0.65)",secondary40:"rgba(255, 255, 255, 0.45)",secondary20:"rgba(255, 255, 255, 0.25)",secondary10:"rgba(255, 255, 255, 0.15)",secondary5:"rgba(255, 255, 255, 0.08)",secondary1:"rgba(255, 255, 255, 0.01)",accent:"rgb(28, 99, 218)",accent20:"rgba(28, 99, 218, 0.2)",background:"rgba(220, 220, 220, 0.9)",overlay:"rgba(0, 2, 9, 0.4)",warningPrimary:"rgb(220, 159, 3)",warningSecondary:"rgb(255, 242, 209)",errorPrimary:"rgb(157, 3, 3)",errorSecondary:"rgb(255, 223, 230)"},Vm={fontFamily:'"Neue Haas Grotesk", sans-serif',primary80:"rgba(255, 255, 255, 0.85)",primary60:"rgba(255, 255, 255, 0.65)",primary40:"rgba(255, 255, 255, 0.45)",primary20:"rgba(255, 255, 255, 0.25)",primary10:"rgba(255, 255, 255, 0.15)",primary5:"rgba(255, 255, 255, 0.08)",primary1:"rgba(255, 255, 255, 0.01)",secondary80:"rgba(0, 2, 9, 0.8)",secondary60:"rgba(0, 2, 9, 0.6)",secondary40:"rgba(0, 2, 9, 0.4)",secondary20:"rgba(0, 2, 9, 0.2)",secondary10:"rgba(0, 2, 9, 0.1)",secondary5:"rgba(0, 2, 9, 0.05)",secondary1:"rgba(0, 2, 9, 0.01)",accent:"rgb(174, 202, 255)",accent20:"rgba(174, 202, 255, 0.25)",background:"rgba(0, 2, 9, 0.9)",overlay:"rgba(0, 2, 9, 0.4)",warningPrimary:"rgb(255, 214, 108)",warningSecondary:"rgb(95, 65, 29)",errorPrimary:"rgb(255, 133, 162)",errorSecondary:"rgb(94, 4, 4)"},hf=({colorMode:e,children:t,theme:n,className:r})=>{const o={...e==="dark"?Vm:Bm,...n??{}};return p.jsx("div",{className:Q(r),style:{...Am(o),colorScheme:e},children:t})},Fm=!1,mf=z.forwardRef((e,t)=>{var C,_,M;const[n,r]=z.useState(null),[o,i]=z.useState([]),l=((C=o[o.length-1])==null?void 0:C.type)==="user",s=e.colorMode??"dark",[a,u]=z.useState(null),[c,h]=z.useState(Fm),[f,y]=z.useState(!1),x=z.useCallback(()=>{h(!0)},[h]),w=z.useCallback(()=>{h(!1)},[h]);z.useImperativeHandle(t,()=>({expand:x,collapse:w,getConversationHandler:()=>n}),[x,w,n]),z.useEffect(()=>{r(Vh(e.config))},[e.config,r]),z.useEffect(()=>{if(n==null)return;const T=H=>{i(H)};return n.subscribe(T),()=>{n==null||n.unsubscribe(T)}},[n,i]);const j=z.useRef(!1);z.useEffect(()=>{n==null||!c||j.current||(j.current=!0,n.sendWelcomeIntent())},[n,c]);const m=a??e.windowSize??"half",d=z.useMemo(()=>{const T=Rd(ie=>ie.type==="bot",o);if(T===-1)return null;const H=o[T];return(H==null?void 0:H.type)!=="bot"?null:{index:T,response:H}},[o]),g=z.useMemo(()=>{if(d==null)return;const T=Rd(ie=>ie.choices.length>0,d.response.payload.messages);if(T===-1)return;const H=d.response.payload.messages[T];if(H!=null)return{message:H,messageIndex:T,responseIndex:d.index}},[d]),[k,v]=z.useState({}),S=e.customModalities??{};return n==null?null:p.jsx(pf.Provider,{value:{handler:n},children:c?p.jsxs(hf,{theme:e.theme,colorMode:s,className:"grid grid-cols-2 xl:grid-cols-[1fr_632px] fixed inset-0 z-touchpoint",children:[m==="half"?p.jsx("div",{className:"hidden md:block bg-overlay"}):null,p.jsxs("div",{className:Q("w-full bg-background text-primary-80 flex relative flex-col h-full backdrop-blur-overlay",{"col-span-2 md:col-span-1":m==="half","col-span-2":m==="full"}),children:[p.jsx(P0,{windowSize:m,colorMode:s,logoUrl:e.logoUrl,isSettingsOpen:f,toggleSettings:()=>{y(T=>!T)},collapse:()=>{h(!1)},reset:()=>{n.reset({clearResponses:!0}),n.sendWelcomeIntent()}}),f?p.jsx(M0,{className:Q("flex-none",m==="full"?"w-full md:max-w-content md:mx-auto":""),onClose:()=>{y(!1)},windowSize:m,setWindowSizeOverride:u,handler:n}):p.jsxs(p.Fragment,{children:[p.jsx(km,{isWaiting:l,lastBotResponseIndex:d==null?void 0:d.index,responses:o,colorMode:s,handler:n,uploadedFiles:k,customModalities:S,className:Q("flex-grow",m==="full"?"w-full md:max-w-content md:mx-auto":"")}),p.jsx(Dm,{className:Q("flex-none",m==="full"?"w-full md:max-w-content md:mx-auto":""),choiceMessage:g,handler:n,uploadUrl:(M=(_=d==null?void 0:d.response.payload.metadata)==null?void 0:_.uploadUrls)==null?void 0:M[0],onFileUpload:({uploadId:T,file:H})=>{v(ie=>({...ie,[T]:H}))}})]})]})]}):p.jsx(hf,{className:"font-sans",theme:e.theme,colorMode:s,children:p.jsx(C0,{className:"fixed z-100 bottom-2 right-2 backdrop-blur z-launchButton",onClick:()=>{h(!0)},label:"Expand chat"})})})});mf.displayName="App";const Um=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-family);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{font-family:var(--font-family)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-2{bottom:.5rem}.left-1\\/2{left:50%}.right-2{right:.5rem}.top-0{top:0}.top-1\\/2{top:50%}.z-10{z-index:10}.z-launchButton{z-index:100}.z-touchpoint{z-index:1000}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-52{height:13rem}.h-64{height:16rem}.h-72{height:18rem}.h-8{height:2rem}.h-\\[1px\\]{height:1px}.h-\\[360px\\]{height:360px}.h-full{height:100%}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-24{width:6rem}.w-4{width:1rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-content{max-width:608px}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\\[320px\\,1fr\\]{grid-template-columns:320px 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-base{border-radius:12px}.rounded-plus{border-radius:20px}.border-background{border-color:var(--background)}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\\/50{background-color:#00000080}.bg-error-secondary{background-color:var(--error-secondary)}.bg-overlay{background-color:var(--overlay)}.bg-primary-5{background-color:var(--primary-5)}.bg-primary-80{background-color:var(--primary-80)}.bg-secondary-60{background-color:var(--secondary-60)}.bg-transparent{background-color:transparent}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-1{padding-bottom:.25rem}.pl-10{padding-left:2.5rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-family)}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-normal{font-weight:400}.text-accent{color:var(--accent)}.text-error-primary{color:var(--error-primary)}.text-primary-20{color:var(--primary-20)}.text-primary-40{color:var(--primary-40)}.text-primary-60{color:var(--primary-60)}.text-primary-80{color:var(--primary-80)}.text-secondary-40{color:var(--secondary-40)}.text-secondary-80{color:var(--secondary-80)}.placeholder-primary-20::-moz-placeholder{color:var(--primary-20)}.placeholder-primary-20::placeholder{color:var(--primary-20)}.placeholder-primary-40::-moz-placeholder{color:var(--primary-40)}.placeholder-primary-40::placeholder{color:var(--primary-40)}.caret-accent{caret-color:var(--accent)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-\\[0\\.01\\]{opacity:.01}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-2{outline-width:2px}.outline-accent{outline-color:var(--accent)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-overlay{--tw-backdrop-blur: blur(48px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.placeholder\\:text-primary-40::-moz-placeholder{color:var(--primary-40)}.placeholder\\:text-primary-40::placeholder{color:var(--primary-40)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.before\\:-z-10:before{content:var(--tw-content);z-index:-10}.before\\:bg-transparent:before{content:var(--tw-content);background-color:transparent}.before\\:transition-colors:before{content:var(--tw-content);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.after\\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-plus:after{content:var(--tw-content);border-radius:20px}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.hover\\:bg-primary-80:hover{background-color:var(--primary-80)}.hover\\:bg-secondary-20:hover{background-color:var(--secondary-20)}.hover\\:text-primary-80:hover{color:var(--primary-80)}.hover\\:after\\:bg-primary-10:hover:after{content:var(--tw-content);background-color:var(--primary-10)}.focus\\:outline-0:focus{outline-width:0px}.focus\\:before\\:bg-primary-10:focus:before{content:var(--tw-content);background-color:var(--primary-10)}.focus\\:before\\:bg-primary-40:focus:before{content:var(--tw-content);background-color:var(--primary-40)}.focus\\:before\\:bg-primary-5:focus:before{content:var(--tw-content);background-color:var(--primary-5)}.focus\\:before\\:bg-primary-80:focus:before{content:var(--tw-content);background-color:var(--primary-80)}.enabled\\:hover\\:before\\:bg-primary-10:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-10)}.enabled\\:hover\\:before\\:bg-primary-40:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-40)}.enabled\\:hover\\:before\\:bg-primary-5:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-5)}.enabled\\:hover\\:before\\:bg-primary-80:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-80)}.enabled\\:active\\:before\\:bg-secondary-10:active:enabled:before{content:var(--tw-content);background-color:var(--secondary-10)}.disabled\\:bg-accent-20:disabled{background-color:var(--accent-20)}.disabled\\:bg-primary-10:disabled{background-color:var(--primary-10)}.disabled\\:bg-primary-5:disabled{background-color:var(--primary-5)}.disabled\\:bg-secondary-20:disabled{background-color:var(--secondary-20)}.disabled\\:text-primary-20:disabled{color:var(--primary-20)}.disabled\\:text-primary-40:disabled{color:var(--primary-40)}.disabled\\:text-secondary-40:disabled{color:var(--secondary-40)}@media (min-width: 768px){.md\\:absolute{position:absolute}.md\\:left-0{left:0}.md\\:right-0{right:0}.md\\:top-0{top:0}.md\\:top-1{top:.25rem}.md\\:top-2{top:.5rem}.md\\:-order-1{order:-1}.md\\:col-span-1{grid-column:span 1 / span 1}.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:block{display:block}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:max-w-content{max-width:608px}.md\\:-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-col{flex-direction:column}.md\\:p-3{padding:.75rem}.md\\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-\\[1fr_632px\\]{grid-template-columns:1fr 632px}}`,gf=({children:e,faded:t})=>p.jsx("p",{className:Q("text-base",t?"text-primary-60":"text-primary-80"),children:e}),yf=({children:e})=>p.jsx("p",{className:"text-sm text-primary-60",children:e});/*! *****************************************************************************
|
|
120
|
-
Copyright (c) Microsoft Corporation.
|
|
121
|
-
|
|
122
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
123
|
-
purpose with or without fee is hereby granted.
|
|
124
|
-
|
|
125
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
126
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
127
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
128
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
129
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
130
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
131
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
132
|
-
***************************************************************************** */var vf=function(e,t){return(vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])})(e,t)},Zm,ui,Wm=(function(e){/*!
|
|
133
|
-
Copyright (c) 2017 Jed Watson.
|
|
134
|
-
Licensed under the MIT License (MIT), see
|
|
135
|
-
http://jedwatson.github.io/classnames
|
|
136
|
-
*/(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var l=typeof i;if(l==="string"||l==="number")r.push(i);else if(Array.isArray(i)&&i.length){var s=n.apply(null,i);s&&r.push(s)}else if(l==="object")for(var a in i)t.call(i,a)&&i[a]&&r.push(a)}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(ui={path:Zm,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&ui.path)}},ui.exports),ui.exports);function Us(e,t,n){var r,o,i,l,s;function a(){var c=Date.now()-l;c<t&&c>=0?r=setTimeout(a,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))}t==null&&(t=100);var u=function(){i=this,o=arguments,l=Date.now();var c=n&&!r;return r||(r=setTimeout(a,t)),c&&(s=e.apply(i,o),i=o=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},u}Us.debounce=Us;var Qm=Us;(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}})(`.indiana-scroll-container {
|
|
137
|
-
overflow: auto; }
|
|
138
|
-
.indiana-scroll-container--dragging {
|
|
139
|
-
scroll-behavior: auto !important; }
|
|
140
|
-
.indiana-scroll-container--dragging > * {
|
|
141
|
-
pointer-events: none;
|
|
142
|
-
cursor: -webkit-grab;
|
|
143
|
-
cursor: grab; }
|
|
144
|
-
.indiana-scroll-container--hide-scrollbars {
|
|
145
|
-
overflow: hidden;
|
|
146
|
-
overflow: -moz-scrollbars-none;
|
|
147
|
-
-ms-overflow-style: none;
|
|
148
|
-
scrollbar-width: none; }
|
|
149
|
-
.indiana-scroll-container--hide-scrollbars::-webkit-scrollbar {
|
|
150
|
-
display: none !important;
|
|
151
|
-
height: 0 !important;
|
|
152
|
-
width: 0 !important;
|
|
153
|
-
background: transparent !important;
|
|
154
|
-
-webkit-appearance: none !important; }
|
|
155
|
-
.indiana-scroll-container--native-scroll {
|
|
156
|
-
overflow: auto; }
|
|
157
|
-
|
|
158
|
-
.indiana-dragging {
|
|
159
|
-
cursor: -webkit-grab;
|
|
160
|
-
cursor: grab; }
|
|
161
|
-
`);var Zs,Gm=(Zs="indiana-scroll-container",function(e,t){if(!e)return Zs;var n;typeof e=="string"?n=e:t=e;var r=Zs;return n&&(r+="__"+n),r+(t?Object.keys(t).reduce(function(o,i){var l=t[i];return l&&(o+=" "+(typeof l=="boolean"?r+"--"+i:r+"--"+i+"_"+l)),o},""):"")}),Xm=function(e){function t(n){var r=e.call(this,n)||this;return r.onEndScroll=function(){r.scrolling=!1,!r.pressed&&r.started&&r.processEnd()},r.onScroll=function(o){var i=r.container.current;i.scrollLeft===r.scrollLeft&&i.scrollTop===r.scrollTop||(r.scrolling=!0,r.processScroll(o),r.onEndScroll())},r.onTouchStart=function(o){var i=r.props.nativeMobileScroll;if(r.isDraggable(o.target))if(r.internal=!0,i&&r.scrolling)r.pressed=!0;else{var l=o.touches[0];r.processClick(o,l.clientX,l.clientY),!i&&r.props.stopPropagation&&o.stopPropagation()}},r.onTouchEnd=function(o){var i=r.props.nativeMobileScroll;r.pressed&&(!r.started||r.scrolling&&i?r.pressed=!1:r.processEnd(),r.forceUpdate())},r.onTouchMove=function(o){var i=r.props.nativeMobileScroll;if(r.pressed&&(!i||!r.isMobile)){var l=o.touches[0];l&&r.processMove(o,l.clientX,l.clientY),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation()}},r.onMouseDown=function(o){r.isDraggable(o.target)&&r.isScrollable()&&(r.internal=!0,r.props.buttons.indexOf(o.button)!==-1&&(r.processClick(o,o.clientX,o.clientY),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation()))},r.onMouseMove=function(o){r.pressed&&(r.processMove(o,o.clientX,o.clientY),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation())},r.onMouseUp=function(o){r.pressed&&(r.started?r.processEnd():(r.internal=!1,r.pressed=!1,r.forceUpdate(),r.props.onClick&&r.props.onClick(o)),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation())},r.container=un.createRef(),r.onEndScroll=Qm(r.onEndScroll,300),r.scrolling=!1,r.started=!1,r.pressed=!1,r.internal=!1,r.getRef=r.getRef.bind(r),r}return function(n,r){function o(){this.constructor=n}vf(n,r),n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}(t,e),t.prototype.componentDidMount=function(){var n=this.props.nativeMobileScroll,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),n&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},t.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},t.prototype.getElement=function(){return this.container.current},t.prototype.isMobileDevice=function(){return window.orientation!==void 0||navigator.userAgent.indexOf("IEMobile")!==-1},t.prototype.isDraggable=function(n){var r=this.props.ignoreElements;if(r){var o=n.closest(r);return o===null||o.contains(this.getElement())}return!0},t.prototype.isScrollable=function(){var n=this.container.current;return n&&(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)},t.prototype.processClick=function(n,r,o){var i=this.container.current;this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop,this.clientX=r,this.clientY=o,this.pressed=!0},t.prototype.processStart=function(n){n===void 0&&(n=!0);var r=this.props.onStartScroll;this.started=!0,n&&document.body.classList.add("indiana-dragging"),r&&r({external:!this.internal}),this.forceUpdate()},t.prototype.processScroll=function(n){if(this.started){var r=this.props.onScroll;r&&r({external:!this.internal})}else this.processStart(!1)},t.prototype.processMove=function(n,r,o){var i=this.props,l=i.horizontal,s=i.vertical,a=i.activationDistance,u=i.onScroll,c=this.container.current;this.started?(l&&(c.scrollLeft-=r-this.clientX),s&&(c.scrollTop-=o-this.clientY),u&&u({external:!this.internal}),this.clientX=r,this.clientY=o,this.scrollLeft=c.scrollLeft,this.scrollTop=c.scrollTop):(l&&Math.abs(r-this.clientX)>a||s&&Math.abs(o-this.clientY)>a)&&(this.clientX=r,this.clientY=o,this.processStart())},t.prototype.processEnd=function(){var n=this.props.onEndScroll;this.container.current&&n&&n({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},t.prototype.getRef=function(n){[this.container,this.props.innerRef].forEach(function(r){r&&(typeof r=="function"?r(n):r.current=n)})},t.prototype.render=function(){var n=this.props,r=n.children,o=n.draggingClassName,i=n.className,l=n.style,s=n.hideScrollbars,a=n.component;return un.createElement(a,{className:Wm(i,this.pressed&&o,Gm({dragging:this.pressed,"hide-scrollbars":s,"native-scroll":this.isMobile})),style:l,ref:this.getRef,onScroll:this.onScroll},r)},t.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},t}(z.PureComponent);const wf=({children:e})=>p.jsx(Xm,{className:"flex gap-x-2 pt-3 pb-1 overflow-x-auto no-scrollbar px-2 -mx-2",children:e}),xf=({children:e,selected:t,onClick:n})=>p.jsx("div",{className:Q("block shrink-0 rounded-base overflow-hidden","w-80 space-y-px",t?"outline outline-2 outline-accent":""),onClick:n,children:e}),kf=({src:e,alt:t})=>p.jsx("img",{src:e,alt:t,className:"w-full h-52 object-cover"}),Cf=({left:e,right:t,icon:n})=>p.jsxs("div",{className:"flex items-center relative justify-between gap-2 bg-primary-5 px-3 py-4",children:[p.jsx("div",{className:"space-y-1 text-left",children:e}),p.jsx("div",{className:"space-y-1 text-right",children:t}),n!=null?p.jsx(n,{className:"text-primary-60 w-4 h-4 absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2"}):null]}),Ym=(e=>X1.bind((t,...n)=>z.createElement(e[t]??t,...n)))({TextButton:nn,IconButton:Ot,BaseText:gf,SmallText:yf,CustomCards:wf,CustomCard:xf,CustomCardRow:Cf,CustomCardImageRow:kf,...Bd});class Km extends HTMLElement{constructor(){super(...arguments);A(this,"_root",null);A(this,"_shadowRoot",null)}set props(n){this._shadowRoot=this._shadowRoot??this.attachShadow({mode:"closed"}),this._root=hd(this._shadowRoot),this._root.render(p.jsxs(p.Fragment,{children:[p.jsx("style",{children:Um}),p.jsx(mf,{...n,ref:r=>{this.dispatchEvent(new CustomEvent("reactRef",{detail:r}))}})]}))}disconnectedCallback(){var n;(n=this._root)==null||n.unmount()}}((e,t)=>{customElements.get(e)==null&&customElements.define(e,t)})("nlx-touchpoint",Km);const qm=e=>{const t=document.createElement("nlx-touchpoint");t.props=e,document.body.appendChild(t);let n=null;const r=i=>{n=i.detail};t.addEventListener("reactRef",r);const o=i=>{if(n!=null){i(n);return}setTimeout(()=>{n!=null&&i(n)})};return{expand:()=>{o(i=>{i.expand()})},collapse:()=>{o(i=>{i.collapse()})},getConversationHandler:()=>(n==null?void 0:n.getConversationHandler())??null,teardown:()=>{t.removeEventListener("reactRef",r),document.body.removeChild(t)}}};V.BaseText=gf,V.CustomCard=xf,V.CustomCardImageRow=kf,V.CustomCardRow=Cf,V.CustomCards=wf,V.IconButton=Ot,V.Icons=Bd,V.React=un,V.SmallText=yf,V.TextButton=nn,V.create=qm,V.html=Ym,V.useTouchpointContext=$m,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|