@nlxai/touchpoint-ui 1.0.4-alpha.3 → 1.0.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +83 -85
- package/lib/App.d.ts +25 -5
- package/lib/components/FullscreenError.d.ts +2 -0
- package/lib/components/{ChatHeader.d.ts → Header.d.ts} +2 -2
- package/lib/components/{ChatInput.d.ts → Input.d.ts} +3 -3
- package/lib/components/{ChatMessages.d.ts → Messages.d.ts} +2 -2
- package/lib/components/{ChatSettings.d.ts → Settings.d.ts} +2 -2
- package/lib/components/ui/Carousel.d.ts +4 -0
- package/lib/components/ui/CustomCard.d.ts +24 -3
- package/lib/components/ui/DateInput.d.ts +8 -2
- package/lib/components/ui/IconButton.d.ts +28 -2
- package/lib/components/ui/Icons.d.ts +12 -0
- package/lib/components/ui/TextButton.d.ts +20 -2
- package/lib/index.d.ts +31 -7
- package/lib/index.js +3779 -3219
- package/lib/index.umd.js +45 -44
- package/lib/preview.d.ts +10 -0
- package/lib/types.d.ts +5 -1
- package/package.json +8 -8
- package/typedoc.cjs +14 -0
- package/lib/context.d.ts +0 -6
package/lib/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(F,Le){typeof exports=="object"&&typeof module<"u"?Le(exports):typeof define=="function"&&define.amd?define(["exports"],Le):(F=typeof globalThis<"u"?globalThis:F||self,Le((F.nlxai=F.nlxai||{},F.nlxai.touchpointUi={})))})(this,function(F){"use strict";var ly=Object.defineProperty;var sy=(F,Le,Zt)=>Le in F?ly(F,Le,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):F[Le]=Zt;var H=(F,Le,Zt)=>sy(F,typeof Le!="symbol"?Le+"":Le,Zt);function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt={exports:{}},Kr={},ha={exports:{}},O={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Kn=Symbol.for("react.element"),up=Symbol.for("react.portal"),cp=Symbol.for("react.fragment"),dp=Symbol.for("react.strict_mode"),fp=Symbol.for("react.profiler"),pp=Symbol.for("react.provider"),hp=Symbol.for("react.context"),mp=Symbol.for("react.forward_ref"),gp=Symbol.for("react.suspense"),yp=Symbol.for("react.memo"),vp=Symbol.for("react.lazy"),ma=Symbol.iterator;function wp(e){return e===null||typeof e!="object"?null:(e=ma&&e[ma]||e["@@iterator"],typeof e=="function"?e:null)}var ga={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ya=Object.assign,va={};function mn(e,t,n){this.props=e,this.context=t,this.refs=va,this.updater=n||ga}mn.prototype.isReactComponent={},mn.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")},mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wa(){}wa.prototype=mn.prototype;function Ei(e,t,n){this.props=e,this.context=t,this.refs=va,this.updater=n||ga}var Li=Ei.prototype=new wa;Li.constructor=Ei,ya(Li,mn.prototype),Li.isPureReactComponent=!0;var xa=Array.isArray,ka=Object.prototype.hasOwnProperty,ji={current:null},Ca={key:!0,ref:!0,__self:!0,__source:!0};function ba(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)ka.call(t,r)&&!Ca.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:Kn,type:e,key:i,ref:l,props:o,_owner:ji.current}}function xp(e,t){return{$$typeof:Kn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ti(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kn}function kp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sa=/\/+/g;function Pi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?kp(""+e.key):t.toString(36)}function qr(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 Kn:case up:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Pi(l,0):r,xa(o)?(n="",e!=null&&(n=e.replace(Sa,"$&/")+"/"),qr(o,t,n,"",function(u){return u})):o!=null&&(Ti(o)&&(o=xp(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Sa,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",xa(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+Pi(i,s);l+=qr(i,t,n,a,o)}else if(a=wp(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+Pi(i,s++),l+=qr(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 Jr(e,t,n){if(e==null)return e;var r=[],o=0;return qr(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Cp(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 xe={current:null},eo={transition:null},bp={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:eo,ReactCurrentOwner:ji};function _a(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:Jr,forEach:function(e,t,n){Jr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jr(e,function(){t++}),t},toArray:function(e){return Jr(e,function(t){return t})||[]},only:function(e){if(!Ti(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},O.Component=mn,O.Fragment=cp,O.Profiler=fp,O.PureComponent=Ei,O.StrictMode=dp,O.Suspense=gp,O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bp,O.act=_a,O.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=ya({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=ji.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)ka.call(t,a)&&!Ca.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:Kn,type:e.type,key:o,ref:i,props:r,_owner:l}},O.createContext=function(e){return e={$$typeof:hp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pp,_context:e},e.Consumer=e},O.createElement=ba,O.createFactory=function(e){var t=ba.bind(null,e);return t.type=e,t},O.createRef=function(){return{current:null}},O.forwardRef=function(e){return{$$typeof:mp,render:e}},O.isValidElement=Ti,O.lazy=function(e){return{$$typeof:vp,_payload:{_status:-1,_result:e},_init:Cp}},O.memo=function(e,t){return{$$typeof:yp,type:e,compare:t===void 0?null:t}},O.startTransition=function(e){var t=eo.transition;eo.transition={};try{e()}finally{eo.transition=t}},O.unstable_act=_a,O.useCallback=function(e,t){return xe.current.useCallback(e,t)},O.useContext=function(e){return xe.current.useContext(e)},O.useDebugValue=function(){},O.useDeferredValue=function(e){return xe.current.useDeferredValue(e)},O.useEffect=function(e,t){return xe.current.useEffect(e,t)},O.useId=function(){return xe.current.useId()},O.useImperativeHandle=function(e,t,n){return xe.current.useImperativeHandle(e,t,n)},O.useInsertionEffect=function(e,t){return xe.current.useInsertionEffect(e,t)},O.useLayoutEffect=function(e,t){return xe.current.useLayoutEffect(e,t)},O.useMemo=function(e,t){return xe.current.useMemo(e,t)},O.useReducer=function(e,t,n){return xe.current.useReducer(e,t,n)},O.useRef=function(e){return xe.current.useRef(e)},O.useState=function(e){return xe.current.useState(e)},O.useSyncExternalStore=function(e,t,n){return xe.current.useSyncExternalStore(e,t,n)},O.useTransition=function(){return xe.current.useTransition()},O.version="18.3.1",ha.exports=O;var R=ha.exports;const bt=Le(R);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Sp=R,_p=Symbol.for("react.element"),Ep=Symbol.for("react.fragment"),Lp=Object.prototype.hasOwnProperty,jp=Sp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tp={key:!0,ref:!0,__self:!0,__source:!0};function Ea(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)Lp.call(t,r)&&!Tp.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:_p,type:e,key:i,ref:l,props:o,_owner:jp.current}}Kr.Fragment=Ep,Kr.jsx=Ea,Kr.jsxs=Ea,Zt.exports=Kr;var p=Zt.exports,La={exports:{}},Me={},ja={exports:{}},Ta={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(L,
|
|
25
|
+
*/(function(e){function t(L,z){var M=L.length;L.push(z);e:for(;0<M;){var D=M-1>>>1,ee=L[D];if(0<o(ee,z))L[D]=z,L[M]=ee,M=D;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],M=L.pop();if(M!==z){L[0]=M;e:for(var D=0,ee=L.length,pn=ee>>>1;D<pn;){var Ct=2*(D+1)-1,hn=L[Ct],ut=Ct+1,et=L[ut];if(0>o(hn,M))ut<ee&&0>o(et,hn)?(L[D]=et,L[ut]=M,D=ut):(L[D]=hn,L[Ct]=M,D=Ct);else if(ut<ee&&0>o(et,M))L[D]=et,L[ut]=M,D=ut;else break e}}return z}function o(L,z){var M=L.sortIndex-z.sortIndex;return M!==0?M:L.id-z.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,f=null,h=3,y=!1,x=!1,v=!1,E=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 z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function b(L){if(v=!1,g(L),!x)if(n(a)!==null)x=!0,at(S);else{var z=n(u);z!==null&&kt(b,z.startTime-L)}}function S(L,z){x=!1,v&&(v=!1,m(C),C=-1),y=!0;var M=h;try{for(g(z),f=n(a);f!==null&&(!(f.expirationTime>z)||L&&!$());){var D=f.callback;if(typeof D=="function"){f.callback=null,h=f.priorityLevel;var ee=D(f.expirationTime<=z);z=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===n(a)&&r(a),g(z)}else r(a);f=n(a)}if(f!==null)var pn=!0;else{var Ct=n(u);Ct!==null&&kt(b,Ct.startTime-z),pn=!1}return pn}finally{f=null,h=M,y=!1}}var w=!1,k=null,C=-1,P=5,T=-1;function $(){return!(e.unstable_now()-T<P)}function ne(){if(k!==null){var L=e.unstable_now();T=L;var z=!0;try{z=k(!0,L)}finally{z?Y():(w=!1,k=null)}}else w=!1}var Y;if(typeof d=="function")Y=function(){d(ne)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Ut=ce.port2;ce.port1.onmessage=ne,Y=function(){Ut.postMessage(null)}}else Y=function(){E(ne,0)};function at(L){k=L,w||(w=!0,Y())}function kt(L,z){C=E(function(){L(e.unstable_now())},z)}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,at(S))},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"):P=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var M=h;h=z;try{return L()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var M=h;h=L;try{return z()}finally{h=M}},e.unstable_scheduleCallback=function(L,z,M){var D=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?D+M:D):M=D,L){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=M+ee,L={id:c++,callback:z,priorityLevel:L,startTime:M,expirationTime:ee,sortIndex:-1},M>D?(L.sortIndex=M,t(u,L),n(a)===null&&L===n(u)&&(v?(m(C),C=-1):v=!0,kt(b,M-D))):(L.sortIndex=ee,t(a,L),x||y||(x=!0,at(S))),L},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(L){var z=h;return function(){var M=h;h=z;try{return L.apply(this,arguments)}finally{h=M}}}})(Ta),ja.exports=Ta;var Pp=ja.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
34
|
-
`+
|
|
33
|
+
*/var Rp=R,Ne=Pp;function _(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 Pa=new Set,qn={};function Wt(e,t){gn(e,t),gn(e+"Capture",t)}function gn(e,t){for(qn[e]=t,e=0;e<t.length;e++)Pa.add(t[e])}var ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=Object.prototype.hasOwnProperty,zp=/^[: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]*$/,Ra={},za={};function Mp(e){return Ri.call(za,e)?!0:Ri.call(Ra,e)?!1:zp.test(e)?za[e]=!0:(Ra[e]=!0,!1)}function Np(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 Op(e,t,n,r){if(t===null||typeof t>"u"||Np(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 ke(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 de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new ke(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new ke(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new ke(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){de[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){de[e]=new ke(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){de[e]=new ke(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){de[e]=new ke(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){de[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var zi=/[\-:]([a-z])/g;function Mi(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(zi,Mi);de[t]=new ke(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(zi,Mi);de[t]=new ke(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(zi,Mi);de[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)}),de.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ni(e,t,n,r){var o=de.hasOwnProperty(t)?de[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Op(t,n,o,r)&&(n=null),r||o===null?Mp(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 dt=Rp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,to=Symbol.for("react.element"),yn=Symbol.for("react.portal"),vn=Symbol.for("react.fragment"),Oi=Symbol.for("react.strict_mode"),Ii=Symbol.for("react.profiler"),Ma=Symbol.for("react.provider"),Na=Symbol.for("react.context"),$i=Symbol.for("react.forward_ref"),Di=Symbol.for("react.suspense"),Hi=Symbol.for("react.suspense_list"),Ai=Symbol.for("react.memo"),St=Symbol.for("react.lazy"),Oa=Symbol.for("react.offscreen"),Ia=Symbol.iterator;function Jn(e){return e===null||typeof e!="object"?null:(e=Ia&&e[Ia]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,Bi;function er(e){if(Bi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bi=t&&t[1]||""}return`
|
|
34
|
+
`+Bi+e}var Vi=!1;function Fi(e,t){if(!e||Vi)return"";Vi=!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
35
|
`),i=r.stack.split(`
|
|
36
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{Li=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function Yf(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=Ti(e.type,!1),e;case 11:return e=Ti(e.type.render,!1),e;case 1:return e=Ti(e.type,!0),e;default:return""}}function ji(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 dn:return"Fragment";case cn:return"Portal";case ki:return"Profiler";case xi:return"StrictMode";case Si:return"Suspense";case bi: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 Ci:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _i:return t=e.displayName||null,t!==null?t:ji(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return ji(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 ji(t);case 8:return t===xi?"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 Fr(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 Ur(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 zi(e,t){var n=t.checked;return Q({},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&&wi(e,"checked",t,!1)}function Ri(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")?Pi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pi(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 Pi(e,t,n){(t!=="number"||Ur(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zn=Array.isArray;function fn(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 Mi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return Q({},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(_(92));if(Zn(n)){if(1<n.length)throw Error(_(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 Ni(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 Zr,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(Zr=Zr||document.createElement("div"),Zr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qn={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(Qn).forEach(function(e){Jf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qn[t]=Qn[e]})});function Ta(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qn.hasOwnProperty(e)&&Qn[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=Q({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 Ii(e,t){if(t){if(ep[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Oi(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 Hi=null;function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $i=null,pn=null,hn=null;function za(e){if(e=mr(e)){if(typeof $i!="function")throw Error(_(280));var t=e.stateNode;t&&(t=mo(t),$i(e.stateNode,e.type,t))}}function Ra(e){pn?hn?hn.push(e):hn=[e]:pn=e}function Pa(){if(pn){var e=pn,t=hn;if(hn=pn=null,za(e),t)for(e=0;e<t.length;e++)za(t[e])}}function Ma(e,t){return e(t)}function Na(){}var Ai=!1;function Ia(e,t,n){if(Ai)return e(t,n);Ai=!0;try{return Ma(e,t,n)}finally{Ai=!1,(pn!==null||hn!==null)&&(Na(),Pa())}}function Gn(e,t){var n=e.stateNode;if(n===null)return null;var r=mo(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(_(231,t,typeof n));return n}var Bi=!1;if(lt)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Bi=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{Bi=!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 Yn=!1,Wr=null,Qr=!1,Vi=null,np={onError:function(e){Yn=!0,Wr=e}};function rp(e,t,n,r,o,i,l,s,a){Yn=!1,Wr=null,tp.apply(np,arguments)}function op(e,t,n,r,o,i,l,s,a){if(rp.apply(this,arguments),Yn){if(Yn){var u=Wr;Yn=!1,Wr=null}else throw Error(_(198));Qr||(Qr=!0,Vi=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(_(188))}function ip(e){var t=e.alternate;if(!t){if(t=$t(e),t===null)throw Error(_(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(_(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(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(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=Re.unstable_scheduleCallback,Ba=Re.unstable_cancelCallback,lp=Re.unstable_shouldYield,sp=Re.unstable_requestPaint,q=Re.unstable_now,ap=Re.unstable_getCurrentPriorityLevel,Fi=Re.unstable_ImmediatePriority,Va=Re.unstable_UserBlockingPriority,Gr=Re.unstable_NormalPriority,up=Re.unstable_LowPriority,Fa=Re.unstable_IdlePriority,Xr=null,qe=null;function cp(e){if(qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Xr,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 Yr=64,Kr=4194304;function Kn(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 qr(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=Kn(s):(i&=l,i!==0&&(r=Kn(i)))}else l=n&~o,l!==0?r=Kn(l):i!==0&&(r=Kn(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 Ui(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ua(){var e=Yr;return Yr<<=1,!(Yr&4194240)&&(Yr=64),e}function Zi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qn(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 Wi(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 H=0;function Za(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wa,Qi,Qa,Ga,Xa,Gi=!1,Jr=[],vt=null,wt=null,xt=null,Jn=new Map,er=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":Jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(t.pointerId)}}function tr(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=mr(t),t!==null&&Qi(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=tr(vt,e,t,n,r,o),!0;case"dragenter":return wt=tr(wt,e,t,n,r,o),!0;case"mouseover":return xt=tr(xt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Jn.set(i,tr(Jn.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,er.set(i,tr(er.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 eo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Hi=r,n.target.dispatchEvent(r),Hi=null}else return t=mr(n),t!==null&&Qi(t),e.blockedOn=n,!1;t.shift()}return!0}function qa(e,t,n){eo(e)&&n.delete(t)}function wp(){Gi=!1,vt!==null&&eo(vt)&&(vt=null),wt!==null&&eo(wt)&&(wt=null),xt!==null&&eo(xt)&&(xt=null),Jn.forEach(qa),er.forEach(qa)}function nr(e,t){e.blockedOn===t&&(e.blockedOn=null,Gi||(Gi=!0,Re.unstable_scheduleCallback(Re.unstable_NormalPriority,wp)))}function rr(e){function t(o){return nr(o,e)}if(0<Jr.length){nr(Jr[0],e);for(var n=1;n<Jr.length;n++){var r=Jr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vt!==null&&nr(vt,e),wt!==null&&nr(wt,e),xt!==null&&nr(xt,e),Jn.forEach(t),er.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 mn=st.ReactCurrentBatchConfig,to=!0;function xp(e,t,n,r){var o=H,i=mn.transition;mn.transition=null;try{H=1,Xi(e,t,n,r)}finally{H=o,mn.transition=i}}function kp(e,t,n,r){var o=H,i=mn.transition;mn.transition=null;try{H=4,Xi(e,t,n,r)}finally{H=o,mn.transition=i}}function Xi(e,t,n,r){if(to){var o=Yi(e,t,n,r);if(o===null)pl(e,t,r,no,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=mr(o);if(i!==null&&Wa(i),i=Yi(e,t,n,r),i===null&&pl(e,t,r,no,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else pl(e,t,r,null,n)}}var no=null;function Yi(e,t,n,r){if(no=null,e=Di(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 no=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 Fi:return 1;case Va:return 4;case Gr:case up:return 16;case Fa:return 536870912;default:return 16}default:return 16}}var Ct=null,Ki=null,ro=null;function eu(){if(ro)return ro;var e,t=Ki,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 ro=o.slice(e,1<r?1-r:void 0)}function oo(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 io(){return!0}function tu(){return!1}function Pe(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)?io:tu,this.isPropagationStopped=tu,this}return Q(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=io)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=io)},persist:function(){},isPersistent:io}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qi=Pe(gn),or=Q({},gn,{view:0,detail:0}),Cp=Pe(or),Ji,el,ir,lo=Q({},or,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nl,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!==ir&&(ir&&e.type==="mousemove"?(Ji=e.screenX-ir.screenX,el=e.screenY-ir.screenY):el=Ji=0,ir=e),Ji)},movementY:function(e){return"movementY"in e?e.movementY:el}}),nu=Pe(lo),Sp=Q({},lo,{dataTransfer:0}),bp=Pe(Sp),_p=Q({},or,{relatedTarget:0}),tl=Pe(_p),Ep=Q({},gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Lp=Pe(Ep),Tp=Q({},gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jp=Pe(Tp),zp=Q({},gn,{data:0}),ru=Pe(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 nl(){return Np}var Ip=Q({},or,{key:function(e){if(e.key){var t=Rp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oo(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:nl,charCode:function(e){return e.type==="keypress"?oo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Op=Pe(Ip),Hp=Q({},lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ou=Pe(Hp),Dp=Q({},or,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nl}),$p=Pe(Dp),Ap=Q({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bp=Pe(Ap),Vp=Q({},lo,{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=Pe(Vp),Up=[9,13,27,32],rl=lt&&"CompositionEvent"in window,lr=null;lt&&"documentMode"in document&&(lr=document.documentMode);var Zp=lt&&"TextEvent"in window&&!lr,iu=lt&&(!rl||lr&&8<lr&&11>=lr),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 yn=!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(yn)return e==="compositionend"||!rl&&au(e,t)?(e=eu(),ro=Ki=Ct=null,yn=!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=fo(t,"onChange"),0<t.length&&(n=new qi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sr=null,ar=null;function Xp(e){ju(e,0)}function so(e){var t=Cn(e);if(wa(t))return e}function Yp(e,t){if(e==="change")return t}var fu=!1;if(lt){var ol;if(lt){var il="oninput"in document;if(!il){var pu=document.createElement("div");pu.setAttribute("oninput","return;"),il=typeof pu.oninput=="function"}ol=il}else ol=!1;fu=ol&&(!document.documentMode||9<document.documentMode)}function hu(){sr&&(sr.detachEvent("onpropertychange",mu),ar=sr=null)}function mu(e){if(e.propertyName==="value"&&so(ar)){var t=[];du(t,ar,e,Di(e)),Ia(Xp,t)}}function Kp(e,t,n){e==="focusin"?(hu(),sr=t,ar=n,sr.attachEvent("onpropertychange",mu)):e==="focusout"&&hu()}function qp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return so(ar)}function Jp(e,t){if(e==="click")return so(t)}function e1(e,t){if(e==="input"||e==="change")return so(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 ur(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(!gi.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=Ur();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ur(e.document)}return t}function ll(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&&ll(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,vn=null,sl=null,cr=null,al=!1;function xu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;al||vn==null||vn!==Ur(r)||(r=vn,"selectionStart"in r&&ll(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}),cr&&ur(cr,r)||(cr=r,r=fo(sl,"onSelect"),0<r.length&&(t=new qi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vn)))}function ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wn={animationend:ao("Animation","AnimationEnd"),animationiteration:ao("Animation","AnimationIteration"),animationstart:ao("Animation","AnimationStart"),transitionend:ao("Transition","TransitionEnd")},ul={},ku={};lt&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete wn.animationend.animation,delete wn.animationiteration.animation,delete wn.animationstart.animation),"TransitionEvent"in window||delete wn.transitionend.transition);function uo(e){if(ul[e])return ul[e];if(!wn[e])return e;var t=wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ku)return ul[e]=t[n];return e}var Cu=uo("animationend"),Su=uo("animationiteration"),bu=uo("animationstart"),_u=uo("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 cl=0;cl<Lu.length;cl++){var dl=Lu[cl],o1=dl.toLowerCase(),i1=dl[0].toUpperCase()+dl.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"),un("onMouseEnter",["mouseout","mouseover"]),un("onMouseLeave",["mouseout","mouseover"]),un("onPointerEnter",["pointerout","pointerover"]),un("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 dr="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(dr));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(Qr)throw e=Vi,Qr=!1,Vi=null,e}function F(e,t){var n=t[wl];n===void 0&&(n=t[wl]=new Set);var r=e+"__bubble";n.has(r)||(zu(t,e,2,!1),n.add(r))}function fl(e,t,n){var r=0;t&&(r|=4),zu(n,e,r,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function fr(e){if(!e[co]){e[co]=!0,da.forEach(function(n){n!=="selectionchange"&&(l1.has(n)||fl(n,!1,e),fl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,fl("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=Xi}n=o.bind(null,t,n,e),o=void 0,!Bi||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 pl(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=Di(n),h=[];e:{var d=Eu.get(e);if(d!==void 0){var y=qi,x=e;switch(e){case"keypress":if(oo(n)===0)break e;case"keydown":case"keyup":y=Op;break;case"focusin":x="focus",y=tl;break;case"focusout":x="blur",y=tl;break;case"beforeblur":case"afterblur":y=tl;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,T=!w&&e==="scroll",m=w?d!==null?d+"Capture":null:d;w=[];for(var f=u,g;f!==null;){g=f;var k=g.stateNode;if(g.tag===5&&k!==null&&(g=k,m!==null&&(k=Gn(f,m),k!=null&&w.push(pr(f,k,g)))),T)break;f=f.return}0<w.length&&(d=new y(d,x,null,n,c),h.push({event:d,listeners:w}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",d&&n!==Hi&&(x=n.relatedTarget||n.fromElement)&&(At(x)||x[at]))break e;if((y||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=u,x=x?At(x):null,x!==null&&(T=$t(x),x!==T||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=u),y!==x)){if(w=nu,k="onMouseLeave",m="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(w=ou,k="onPointerLeave",m="onPointerEnter",f="pointer"),T=y==null?d:Cn(y),g=x==null?d:Cn(x),d=new w(k,f+"leave",y,n,c),d.target=T,d.relatedTarget=g,k=null,At(c)===u&&(w=new w(m,f+"enter",x,n,c),w.target=g,w.relatedTarget=T,k=w),T=k,y&&x)t:{for(w=y,m=x,f=0,g=w;g;g=xn(g))f++;for(g=0,k=m;k;k=xn(k))g++;for(;0<f-g;)w=xn(w),f--;for(;0<g-f;)m=xn(m),g--;for(;f--;){if(w===m||m!==null&&w===m.alternate)break t;w=xn(w),m=xn(m)}w=null}else w=null;y!==null&&Ru(h,d,y,w,!1),x!==null&&T!==null&&Ru(h,T,x,w,!0)}}e:{if(d=u?Cn(u):window,y=d.nodeName&&d.nodeName.toLowerCase(),y==="select"||y==="input"&&d.type==="file")var v=Yp;else if(cu(d))if(fu)v=e1;else{v=qp;var S=Kp}else(y=d.nodeName)&&y.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(v=Jp);if(v&&(v=v(e,u))){du(h,v,n,c);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Pi(d,"number",d.value)}switch(S=u?Cn(u):window,e){case"focusin":(cu(S)||S.contentEditable==="true")&&(vn=S,sl=u,cr=null);break;case"focusout":cr=sl=vn=null;break;case"mousedown":al=!0;break;case"contextmenu":case"mouseup":case"dragend":al=!1,xu(h,n,c);break;case"selectionchange":if(r1)break;case"keydown":case"keyup":xu(h,n,c)}var C;if(rl)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else yn?au(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(iu&&n.locale!=="ko"&&(yn||b!=="onCompositionStart"?b==="onCompositionEnd"&&yn&&(C=eu()):(Ct=c,Ki="value"in Ct?Ct.value:Ct.textContent,yn=!0)),S=fo(u,b),0<S.length&&(b=new ru(b,e,null,n,c),h.push({event:b,listeners:S}),C?b.data=C:(C=uu(n),C!==null&&(b.data=C)))),(C=Zp?Wp(e,n):Qp(e,n))&&(u=fo(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 pr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Gn(e,n),i!=null&&r.unshift(pr(e,i,o)),i=Gn(e,t),i!=null&&r.push(pr(e,i,o))),e=e.return}return r}function xn(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=Gn(n,i),a!=null&&l.unshift(pr(n,a,s))):o||(a=Gn(n,i),a!=null&&l.push(pr(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 po(e,t,n){if(t=Pu(t),Pu(e)!==t&&n)throw Error(_(425))}function ho(){}var hl=null,ml=null;function gl(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 yl=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)}:yl;function d1(e){setTimeout(function(){throw e})}function vl(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),rr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);rr(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 kn=Math.random().toString(36).slice(2),Je="__reactFiber$"+kn,hr="__reactProps$"+kn,at="__reactContainer$"+kn,wl="__reactEvents$"+kn,f1="__reactListeners$"+kn,p1="__reactHandles$"+kn;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 mr(e){return e=e[Je]||e[at],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function mo(e){return e[hr]||null}var xl=[],Sn=-1;function _t(e){return{current:e}}function U(e){0>Sn||(e.current=xl[Sn],xl[Sn]=null,Sn--)}function V(e,t){Sn++,xl[Sn]=e.current,e.current=t}var Et={},pe=_t(Et),_e=_t(!1),Bt=Et;function bn(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 Ee(e){return e=e.childContextTypes,e!=null}function go(){U(_e),U(pe)}function Iu(e,t,n){if(pe.current!==Et)throw Error(_(168));V(pe,t),V(_e,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(_(108,Kf(e)||"Unknown",o));return Q({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Et,Bt=pe.current,V(pe,e),V(_e,_e.current),!0}function Hu(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Ou(e,t,Bt),r.__reactInternalMemoizedMergedChildContext=e,U(_e),U(pe),V(pe,e)):U(_e),V(_e,n)}var ut=null,vo=!1,kl=!1;function Du(e){ut===null?ut=[e]:ut.push(e)}function h1(e){vo=!0,Du(e)}function Lt(){if(!kl&&ut!==null){kl=!0;var e=0,t=H;try{var n=ut;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ut=null,vo=!1}catch(o){throw ut!==null&&(ut=ut.slice(e+1)),Aa(Fi,Lt),o}finally{H=t,kl=!1}}return null}var _n=[],En=0,wo=null,xo=0,He=[],De=0,Vt=null,ct=1,dt="";function Ft(e,t){_n[En++]=xo,_n[En++]=wo,wo=e,xo=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 Cl(e){e.return!==null&&(Ft(e,1),$u(e,1,0))}function Sl(e){for(;e===wo;)wo=_n[--En],_n[En]=null,xo=_n[--En],_n[En]=null;for(;e===Vt;)Vt=He[--De],He[De]=null,dt=He[--De],He[De]=null,ct=He[--De],He[De]=null}var Me=null,Ne=null,Z=!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,Me=e,Ne=bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Me=e,Ne=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,Me=e,Ne=null,!0):!1;default:return!1}}function bl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _l(e){if(Z){var t=Ne;if(t){var n=t;if(!Bu(e,t)){if(bl(e))throw Error(_(418));t=bt(n.nextSibling);var r=Me;t&&Bu(e,t)?Au(r,n):(e.flags=e.flags&-4097|2,Z=!1,Me=e)}}else{if(bl(e))throw Error(_(418));e.flags=e.flags&-4097|2,Z=!1,Me=e}}}function Vu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Me=e}function ko(e){if(e!==Me)return!1;if(!Z)return Vu(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!gl(e.type,e.memoizedProps)),t&&(t=Ne)){if(bl(e))throw Fu(),Error(_(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(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ne=bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ne=null}}else Ne=Me?bt(e.stateNode.nextSibling):null;return!0}function Fu(){for(var e=Ne;e;)e=bt(e.nextSibling)}function Ln(){Ne=Me=null,Z=!1}function El(e){Qe===null?Qe=[e]:Qe.push(e)}var m1=st.ReactCurrentBatchConfig;function gr(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(_(309));var r=n.stateNode}if(!r)throw Error(_(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(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Co(e,t){throw e=Object.prototype.toString.call(t),Error(_(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,f){if(e){var g=m.deletions;g===null?(m.deletions=[f],m.flags|=16):g.push(f)}}function n(m,f){if(!e)return null;for(;f!==null;)t(m,f),f=f.sibling;return null}function r(m,f){for(m=new Map;f!==null;)f.key!==null?m.set(f.key,f):m.set(f.index,f),f=f.sibling;return m}function o(m,f){return m=It(m,f),m.index=0,m.sibling=null,m}function i(m,f,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<f?(m.flags|=2,f):g):(m.flags|=2,f)):(m.flags|=1048576,f)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,f,g,k){return f===null||f.tag!==6?(f=ys(g,m.mode,k),f.return=m,f):(f=o(f,g),f.return=m,f)}function a(m,f,g,k){var v=g.type;return v===dn?c(m,f,g.props.children,k,g.key):f!==null&&(f.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===gt&&Uu(v)===f.type)?(k=o(f,g.props),k.ref=gr(m,f,g),k.return=m,k):(k=Wo(g.type,g.key,g.props,null,m.mode,k),k.ref=gr(m,f,g),k.return=m,k)}function u(m,f,g,k){return f===null||f.tag!==4||f.stateNode.containerInfo!==g.containerInfo||f.stateNode.implementation!==g.implementation?(f=vs(g,m.mode,k),f.return=m,f):(f=o(f,g.children||[]),f.return=m,f)}function c(m,f,g,k,v){return f===null||f.tag!==7?(f=Kt(g,m.mode,k,v),f.return=m,f):(f=o(f,g),f.return=m,f)}function h(m,f,g){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ys(""+f,m.mode,g),f.return=m,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Vr:return g=Wo(f.type,f.key,f.props,null,m.mode,g),g.ref=gr(m,null,f),g.return=m,g;case cn:return f=vs(f,m.mode,g),f.return=m,f;case gt:var k=f._init;return h(m,k(f._payload),g)}if(Zn(f)||Fn(f))return f=Kt(f,m.mode,g,null),f.return=m,f;Co(m,f)}return null}function d(m,f,g,k){var v=f!==null?f.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return v!==null?null:s(m,f,""+g,k);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Vr:return g.key===v?a(m,f,g,k):null;case cn:return g.key===v?u(m,f,g,k):null;case gt:return v=g._init,d(m,f,v(g._payload),k)}if(Zn(g)||Fn(g))return v!==null?null:c(m,f,g,k,null);Co(m,g)}return null}function y(m,f,g,k,v){if(typeof k=="string"&&k!==""||typeof k=="number")return m=m.get(g)||null,s(f,m,""+k,v);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Vr:return m=m.get(k.key===null?g:k.key)||null,a(f,m,k,v);case cn:return m=m.get(k.key===null?g:k.key)||null,u(f,m,k,v);case gt:var S=k._init;return y(m,f,g,S(k._payload),v)}if(Zn(k)||Fn(k))return m=m.get(g)||null,c(f,m,k,v,null);Co(f,k)}return null}function x(m,f,g,k){for(var v=null,S=null,C=f,b=f=0,R=null;C!==null&&b<g.length;b++){C.index>b?(R=C,C=null):R=C.sibling;var j=d(m,C,g[b],k);if(j===null){C===null&&(C=R);break}e&&C&&j.alternate===null&&t(m,C),f=i(j,f,b),S===null?v=j:S.sibling=j,S=j,C=R}if(b===g.length)return n(m,C),Z&&Ft(m,b),v;if(C===null){for(;b<g.length;b++)C=h(m,g[b],k),C!==null&&(f=i(C,f,b),S===null?v=C:S.sibling=C,S=C);return Z&&Ft(m,b),v}for(C=r(m,C);b<g.length;b++)R=y(C,m,b,g[b],k),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?b:R.key),f=i(R,f,b),S===null?v=R:S.sibling=R,S=R);return e&&C.forEach(function(te){return t(m,te)}),Z&&Ft(m,b),v}function w(m,f,g,k){var v=Fn(g);if(typeof v!="function")throw Error(_(150));if(g=v.call(g),g==null)throw Error(_(151));for(var S=v=null,C=f,b=f=0,R=null,j=g.next();C!==null&&!j.done;b++,j=g.next()){C.index>b?(R=C,C=null):R=C.sibling;var te=d(m,C,j.value,k);if(te===null){C===null&&(C=R);break}e&&C&&te.alternate===null&&t(m,C),f=i(te,f,b),S===null?v=te:S.sibling=te,S=te,C=R}if(j.done)return n(m,C),Z&&Ft(m,b),v;if(C===null){for(;!j.done;b++,j=g.next())j=h(m,j.value,k),j!==null&&(f=i(j,f,b),S===null?v=j:S.sibling=j,S=j);return Z&&Ft(m,b),v}for(C=r(m,C);!j.done;b++,j=g.next())j=y(C,m,b,j.value,k),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?b:j.key),f=i(j,f,b),S===null?v=j:S.sibling=j,S=j);return e&&C.forEach(function(Oe){return t(m,Oe)}),Z&&Ft(m,b),v}function T(m,f,g,k){if(typeof g=="object"&&g!==null&&g.type===dn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Vr:e:{for(var v=g.key,S=f;S!==null;){if(S.key===v){if(v=g.type,v===dn){if(S.tag===7){n(m,S.sibling),f=o(S,g.props.children),f.return=m,m=f;break e}}else if(S.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===gt&&Uu(v)===S.type){n(m,S.sibling),f=o(S,g.props),f.ref=gr(m,S,g),f.return=m,m=f;break e}n(m,S);break}else t(m,S);S=S.sibling}g.type===dn?(f=Kt(g.props.children,m.mode,k,g.key),f.return=m,m=f):(k=Wo(g.type,g.key,g.props,null,m.mode,k),k.ref=gr(m,f,g),k.return=m,m=k)}return l(m);case cn:e:{for(S=g.key;f!==null;){if(f.key===S)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(m,f.sibling),f=o(f,g.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=vs(g,m.mode,k),f.return=m,m=f}return l(m);case gt:return S=g._init,T(m,f,S(g._payload),k)}if(Zn(g))return x(m,f,g,k);if(Fn(g))return w(m,f,g,k);Co(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(m,f.sibling),f=o(f,g),f.return=m,m=f):(n(m,f),f=ys(g,m.mode,k),f.return=m,m=f),l(m)):n(m,f)}return T}var Tn=Zu(!0),Wu=Zu(!1),So=_t(null),bo=null,jn=null,Ll=null;function Tl(){Ll=jn=bo=null}function jl(e){var t=So.current;U(So),e._currentValue=t}function zl(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 zn(e,t){bo=e,Ll=jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(Ll!==e)if(e={context:e,memoizedValue:t,next:null},jn===null){if(bo===null)throw Error(_(308));jn=e,bo.dependencies={lanes:0,firstContext:e}}else jn=jn.next=e;return t}var Ut=null;function Rl(e){Ut===null?Ut=[e]:Ut.push(e)}function Qu(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Rl(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 Pl(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,Rl(r)):(t.next=o.next,o.next=t),r.interleaved=t,ft(e,n)}function _o(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,Wi(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 Eo(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 d=s.lane,y=s.eventTime;if((r&d)===d){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(d=t,y=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){h=x.call(y,h,d);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,d=typeof x=="function"?x.call(y,h,d):x,d==null)break e;h=Q({},h,d);break e;case 2:Tt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else y={eventTime:y,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=y,a=h):c=c.next=y,l|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,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(_(191,o));o.call(r)}}}var yr={},et=_t(yr),vr=_t(yr),wr=_t(yr);function Zt(e){if(e===yr)throw Error(_(174));return e}function Ml(e,t){switch(V(wr,t),V(vr,e),V(et,yr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ni(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ni(t,e)}U(et),V(et,t)}function Rn(){U(et),U(vr),U(wr)}function Ku(e){Zt(wr.current);var t=Zt(et.current),n=Ni(t,e.type);t!==n&&(V(vr,e),V(et,n))}function Nl(e){vr.current===e&&(U(et),U(vr))}var G=_t(0);function Lo(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 Il=[];function Ol(){for(var e=0;e<Il.length;e++)Il[e]._workInProgressVersionPrimary=null;Il.length=0}var To=st.ReactCurrentDispatcher,Hl=st.ReactCurrentBatchConfig,Wt=0,X=null,ne=null,ie=null,jo=!1,xr=!1,kr=0,g1=0;function he(){throw Error(_(321))}function Dl(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 $l(e,t,n,r,o,i){if(Wt=i,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,To.current=e===null||e.memoizedState===null?x1:k1,e=n(r,o),xr){i=0;do{if(xr=!1,kr=0,25<=i)throw Error(_(301));i+=1,ie=ne=null,t.updateQueue=null,To.current=C1,e=n(r,o)}while(xr)}if(To.current=Po,t=ne!==null&&ne.next!==null,Wt=0,ie=ne=X=null,jo=!1,t)throw Error(_(300));return e}function Al(){var e=kr!==0;return kr=0,e}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?X.memoizedState=ie=e:ie=ie.next=e,ie}function Ae(){if(ne===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=ne.next;var t=ie===null?X.memoizedState:ie.next;if(t!==null)ie=t,ne=e;else{if(e===null)throw Error(_(310));ne=e,e={memoizedState:ne.memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},ie===null?X.memoizedState=ie=e:ie=ie.next=e}return ie}function Cr(e,t){return typeof t=="function"?t(e):t}function Bl(e){var t=Ae(),n=t.queue;if(n===null)throw Error(_(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,X.lanes|=c,Qt|=c}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,We(r,t.memoizedState)||(Le=!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,X.lanes|=i,Qt|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vl(e){var t=Ae(),n=t.queue;if(n===null)throw Error(_(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)||(Le=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function qu(){}function Ju(e,t){var n=X,r=Ae(),o=t(),i=!We(r.memoizedState,o);if(i&&(r.memoizedState=o,Le=!0),r=r.queue,Fl(nc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ie!==null&&ie.memoizedState.tag&1){if(n.flags|=2048,Sr(9,tc.bind(null,n,r,o,t),void 0,null),le===null)throw Error(_(349));Wt&30||ec(n,t,o)}return o}function ec(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.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:Cr,lastRenderedState:e},t.queue=e,e=e.dispatch=w1.bind(null,X,e),[t.memoizedState,e]}function Sr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.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 zo(e,t,n,r){var o=tt();X.flags|=e,o.memoizedState=Sr(1|t,n,void 0,r===void 0?null:r)}function Ro(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&&Dl(r,l.deps)){o.memoizedState=Sr(t,n,i,r);return}}X.flags|=e,o.memoizedState=Sr(1|t,n,i,r)}function sc(e,t){return zo(8390656,8,e,t)}function Fl(e,t){return Ro(2048,8,e,t)}function ac(e,t){return Ro(4,2,e,t)}function uc(e,t){return Ro(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,Ro(4,4,cc.bind(null,t,e),n)}function Ul(){}function fc(e,t){var n=Ae();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Dl(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&&Dl(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(),X.lanes|=n,Qt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Le=!0),e.memoizedState=n)}function y1(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Hl.transition;Hl.transition={};try{e(!1),t()}finally{H=n,Hl.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=xe();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,Rl(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Qu(e,t,o,r),n!==null&&(o=xe(),Ke(n,e,r,o),vc(n,t,r))}}function gc(e){var t=e.alternate;return e===X||t!==null&&t===X}function yc(e,t){xr=jo=!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,Wi(e,n)}}var Po={readContext:$e,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,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,zo(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(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,X,e),[r.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:ic,useDebugValue:Ul,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=X,o=tt();if(Z){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),le===null)throw Error(_(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,Sr(9,tc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=tt(),t=le.identifierPrefix;if(Z){var n=dt,r=ct;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=kr++,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:Fl,useImperativeHandle:dc,useInsertionEffect:ac,useLayoutEffect:uc,useMemo:pc,useReducer:Bl,useRef:lc,useState:function(){return Bl(Cr)},useDebugValue:Ul,useDeferredValue:function(e){var t=Ae();return hc(t,ne.memoizedState,e)},useTransition:function(){var e=Bl(Cr)[0],t=Ae().memoizedState;return[e,t]},useMutableSource:qu,useSyncExternalStore:Ju,useId:mc,unstable_isNewReconciler:!1},C1={readContext:$e,useCallback:fc,useContext:$e,useEffect:Fl,useImperativeHandle:dc,useInsertionEffect:ac,useLayoutEffect:uc,useMemo:pc,useReducer:Vl,useRef:lc,useState:function(){return Vl(Cr)},useDebugValue:Ul,useDeferredValue:function(e){var t=Ae();return ne===null?t.memoizedState=e:hc(t,ne.memoizedState,e)},useTransition:function(){var e=Vl(Cr)[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=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Zl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Mo={isMounted:function(e){return(e=e._reactInternals)?$t(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xe(),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),_o(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xe(),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),_o(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xe(),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),_o(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?!ur(n,r)||!ur(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=Ee(t)?Bt:pe.current,r=t.contextTypes,i=(r=r!=null)?bn(e,o):Et),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Mo,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&&Mo.enqueueReplaceState(t,t.state,null)}function Wl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Pl(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=$e(i):(i=Ee(t)?Bt:pe.current,o.context=bn(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Zl(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&&Mo.enqueueReplaceState(o,o.state,null),Eo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Pn(e,t){try{var n="",r=t;do n+=Yf(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
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{Vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?er(e):""}function Ip(e){switch(e.tag){case 5:return er(e.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return e=Fi(e.type,!1),e;case 11:return e=Fi(e.type.render,!1),e;case 1:return e=Fi(e.type,!0),e;default:return""}}function Ui(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 vn:return"Fragment";case yn:return"Portal";case Ii:return"Profiler";case Oi:return"StrictMode";case Di:return"Suspense";case Hi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Na:return(e.displayName||"Context")+".Consumer";case Ma:return(e._context.displayName||"Context")+".Provider";case $i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ai:return t=e.displayName||null,t!==null?t:Ui(e.type)||"Memo";case St:t=e._payload,e=e._init;try{return Ui(e(t))}catch{}}return null}function $p(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 Ui(t);case 8:return t===Oi?"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 _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $a(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dp(e){var t=$a(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 no(e){e._valueTracker||(e._valueTracker=Dp(e))}function Da(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$a(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ro(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 Zi(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ha(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(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 Aa(e,t){t=t.checked,t!=null&&Ni(e,"checked",t,!1)}function Wi(e,t){Aa(e,t);var n=_t(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")?Qi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qi(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ba(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 Qi(e,t,n){(t!=="number"||ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tr=Array.isArray;function wn(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=""+_t(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 Yi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Va(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(tr(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_t(n)}}function Fa(e,t){var n=_t(t.value),r=_t(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 Ua(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Za(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 Xi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Za(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var oo,Wa=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(oo=oo||document.createElement("div"),oo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rr={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},Hp=["Webkit","ms","Moz","O"];Object.keys(rr).forEach(function(e){Hp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rr[t]=rr[e]})});function Qa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rr.hasOwnProperty(e)&&rr[e]?(""+t).trim():t+"px"}function Ya(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Qa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ap=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 Gi(e,t){if(t){if(Ap[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Ki(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 qi=null;function Ji(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var el=null,xn=null,kn=null;function Xa(e){if(e=_r(e)){if(typeof el!="function")throw Error(_(280));var t=e.stateNode;t&&(t=jo(t),el(e.stateNode,e.type,t))}}function Ga(e){xn?kn?kn.push(e):kn=[e]:xn=e}function Ka(){if(xn){var e=xn,t=kn;if(kn=xn=null,Xa(e),t)for(e=0;e<t.length;e++)Xa(t[e])}}function qa(e,t){return e(t)}function Ja(){}var tl=!1;function eu(e,t,n){if(tl)return e(t,n);tl=!0;try{return qa(e,t,n)}finally{tl=!1,(xn!==null||kn!==null)&&(Ja(),Ka())}}function or(e,t){var n=e.stateNode;if(n===null)return null;var r=jo(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(_(231,t,typeof n));return n}var nl=!1;if(ct)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){nl=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{nl=!1}function Bp(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 lr=!1,io=null,lo=!1,rl=null,Vp={onError:function(e){lr=!0,io=e}};function Fp(e,t,n,r,o,i,l,s,a){lr=!1,io=null,Bp.apply(Vp,arguments)}function Up(e,t,n,r,o,i,l,s,a){if(Fp.apply(this,arguments),lr){if(lr){var u=io;lr=!1,io=null}else throw Error(_(198));lo||(lo=!0,rl=u)}}function Qt(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 tu(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 nu(e){if(Qt(e)!==e)throw Error(_(188))}function Zp(e){var t=e.alternate;if(!t){if(t=Qt(e),t===null)throw Error(_(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 nu(o),e;if(i===r)return nu(o),t;i=i.sibling}throw Error(_(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(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function ru(e){return e=Zp(e),e!==null?ou(e):null}function ou(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ou(e);if(t!==null)return t;e=e.sibling}return null}var iu=Ne.unstable_scheduleCallback,lu=Ne.unstable_cancelCallback,Wp=Ne.unstable_shouldYield,Qp=Ne.unstable_requestPaint,re=Ne.unstable_now,Yp=Ne.unstable_getCurrentPriorityLevel,ol=Ne.unstable_ImmediatePriority,su=Ne.unstable_UserBlockingPriority,so=Ne.unstable_NormalPriority,Xp=Ne.unstable_LowPriority,au=Ne.unstable_IdlePriority,ao=null,tt=null;function Gp(e){if(tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(ao,e,void 0,(e.current.flags&128)===128)}catch{}}var Qe=Math.clz32?Math.clz32:Jp,Kp=Math.log,qp=Math.LN2;function Jp(e){return e>>>=0,e===0?32:31-(Kp(e)/qp|0)|0}var uo=64,co=4194304;function sr(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 fo(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=sr(s):(i&=l,i!==0&&(r=sr(i)))}else l=n&~o,l!==0?r=sr(l):i!==0&&(r=sr(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-Qe(t),o=1<<n,r|=e[n],t&=~o;return r}function e1(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 t1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Qe(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=e1(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function il(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function uu(){var e=uo;return uo<<=1,!(uo&4194240)&&(uo=64),e}function ll(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qe(t),e[t]=n}function n1(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-Qe(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function sl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var A=0;function cu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var du,al,fu,pu,hu,ul=!1,po=[],Et=null,Lt=null,jt=null,ur=new Map,cr=new Map,Tt=[],r1="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 mu(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":ur.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(t.pointerId)}}function dr(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=_r(t),t!==null&&al(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function o1(e,t,n,r,o){switch(t){case"focusin":return Et=dr(Et,e,t,n,r,o),!0;case"dragenter":return Lt=dr(Lt,e,t,n,r,o),!0;case"mouseover":return jt=dr(jt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ur.set(i,dr(ur.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,cr.set(i,dr(cr.get(i)||null,e,t,n,r,o)),!0}return!1}function gu(e){var t=Yt(e.target);if(t!==null){var n=Qt(t);if(n!==null){if(t=n.tag,t===13){if(t=tu(n),t!==null){e.blockedOn=t,hu(e.priority,function(){fu(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 ho(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qi=r,n.target.dispatchEvent(r),qi=null}else return t=_r(n),t!==null&&al(t),e.blockedOn=n,!1;t.shift()}return!0}function yu(e,t,n){ho(e)&&n.delete(t)}function i1(){ul=!1,Et!==null&&ho(Et)&&(Et=null),Lt!==null&&ho(Lt)&&(Lt=null),jt!==null&&ho(jt)&&(jt=null),ur.forEach(yu),cr.forEach(yu)}function fr(e,t){e.blockedOn===t&&(e.blockedOn=null,ul||(ul=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,i1)))}function pr(e){function t(o){return fr(o,e)}if(0<po.length){fr(po[0],e);for(var n=1;n<po.length;n++){var r=po[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Et!==null&&fr(Et,e),Lt!==null&&fr(Lt,e),jt!==null&&fr(jt,e),ur.forEach(t),cr.forEach(t),n=0;n<Tt.length;n++)r=Tt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&(n=Tt[0],n.blockedOn===null);)gu(n),n.blockedOn===null&&Tt.shift()}var Cn=dt.ReactCurrentBatchConfig,mo=!0;function l1(e,t,n,r){var o=A,i=Cn.transition;Cn.transition=null;try{A=1,cl(e,t,n,r)}finally{A=o,Cn.transition=i}}function s1(e,t,n,r){var o=A,i=Cn.transition;Cn.transition=null;try{A=4,cl(e,t,n,r)}finally{A=o,Cn.transition=i}}function cl(e,t,n,r){if(mo){var o=dl(e,t,n,r);if(o===null)jl(e,t,r,go,n),mu(e,r);else if(o1(o,e,t,n,r))r.stopPropagation();else if(mu(e,r),t&4&&-1<r1.indexOf(e)){for(;o!==null;){var i=_r(o);if(i!==null&&du(i),i=dl(e,t,n,r),i===null&&jl(e,t,r,go,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else jl(e,t,r,null,n)}}var go=null;function dl(e,t,n,r){if(go=null,e=Ji(r),e=Yt(e),e!==null)if(t=Qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tu(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 go=e,null}function vu(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(Yp()){case ol:return 1;case su:return 4;case so:case Xp:return 16;case au:return 536870912;default:return 16}default:return 16}}var Pt=null,fl=null,yo=null;function wu(){if(yo)return yo;var e,t=fl,n=t.length,r,o="value"in Pt?Pt.value:Pt.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 yo=o.slice(e,1<r?1-r:void 0)}function vo(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 wo(){return!0}function xu(){return!1}function Oe(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)?wo:xu,this.isPropagationStopped=xu,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=wo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wo)},persist:function(){},isPersistent:wo}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Oe(bn),hr=G({},bn,{view:0,detail:0}),a1=Oe(hr),hl,ml,mr,xo=G({},hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yl,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!==mr&&(mr&&e.type==="mousemove"?(hl=e.screenX-mr.screenX,ml=e.screenY-mr.screenY):ml=hl=0,mr=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:ml}}),ku=Oe(xo),u1=G({},xo,{dataTransfer:0}),c1=Oe(u1),d1=G({},hr,{relatedTarget:0}),gl=Oe(d1),f1=G({},bn,{animationName:0,elapsedTime:0,pseudoElement:0}),p1=Oe(f1),h1=G({},bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m1=Oe(h1),g1=G({},bn,{data:0}),Cu=Oe(g1),y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v1={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"},w1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function x1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w1[e])?!!t[e]:!1}function yl(){return x1}var k1=G({},hr,{key:function(e){if(e.key){var t=y1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?v1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yl,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C1=Oe(k1),b1=G({},xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bu=Oe(b1),S1=G({},hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yl}),_1=Oe(S1),E1=G({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),L1=Oe(E1),j1=G({},xo,{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}),T1=Oe(j1),P1=[9,13,27,32],vl=ct&&"CompositionEvent"in window,gr=null;ct&&"documentMode"in document&&(gr=document.documentMode);var R1=ct&&"TextEvent"in window&&!gr,Su=ct&&(!vl||gr&&8<gr&&11>=gr),_u=" ",Eu=!1;function Lu(e,t){switch(e){case"keyup":return P1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sn=!1;function z1(e,t){switch(e){case"compositionend":return ju(t);case"keypress":return t.which!==32?null:(Eu=!0,_u);case"textInput":return e=t.data,e===_u&&Eu?null:e;default:return null}}function M1(e,t){if(Sn)return e==="compositionend"||!vl&&Lu(e,t)?(e=wu(),yo=fl=Pt=null,Sn=!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 Su&&t.locale!=="ko"?null:t.data;default:return null}}var N1={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 Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N1[e.type]:t==="textarea"}function Pu(e,t,n,r){Ga(r),t=_o(t,"onChange"),0<t.length&&(n=new pl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yr=null,vr=null;function O1(e){Yu(e,0)}function ko(e){var t=Tn(e);if(Da(t))return e}function I1(e,t){if(e==="change")return t}var Ru=!1;if(ct){var wl;if(ct){var xl="oninput"in document;if(!xl){var zu=document.createElement("div");zu.setAttribute("oninput","return;"),xl=typeof zu.oninput=="function"}wl=xl}else wl=!1;Ru=wl&&(!document.documentMode||9<document.documentMode)}function Mu(){yr&&(yr.detachEvent("onpropertychange",Nu),vr=yr=null)}function Nu(e){if(e.propertyName==="value"&&ko(vr)){var t=[];Pu(t,vr,e,Ji(e)),eu(O1,t)}}function $1(e,t,n){e==="focusin"?(Mu(),yr=t,vr=n,yr.attachEvent("onpropertychange",Nu)):e==="focusout"&&Mu()}function D1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ko(vr)}function H1(e,t){if(e==="click")return ko(t)}function A1(e,t){if(e==="input"||e==="change")return ko(t)}function B1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ye=typeof Object.is=="function"?Object.is:B1;function wr(e,t){if(Ye(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(!Ri.call(t,o)||!Ye(e[o],t[o]))return!1}return!0}function Ou(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Iu(e,t){var n=Ou(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=Ou(n)}}function $u(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$u(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Du(){for(var e=window,t=ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ro(e.document)}return t}function kl(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 V1(e){var t=Du(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$u(n.ownerDocument.documentElement,n)){if(r!==null&&kl(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=Iu(n,i);var l=Iu(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 F1=ct&&"documentMode"in document&&11>=document.documentMode,_n=null,Cl=null,xr=null,bl=!1;function Hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bl||_n==null||_n!==ro(r)||(r=_n,"selectionStart"in r&&kl(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}),xr&&wr(xr,r)||(xr=r,r=_o(Cl,"onSelect"),0<r.length&&(t=new pl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_n)))}function Co(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var En={animationend:Co("Animation","AnimationEnd"),animationiteration:Co("Animation","AnimationIteration"),animationstart:Co("Animation","AnimationStart"),transitionend:Co("Transition","TransitionEnd")},Sl={},Au={};ct&&(Au=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function bo(e){if(Sl[e])return Sl[e];if(!En[e])return e;var t=En[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Au)return Sl[e]=t[n];return e}var Bu=bo("animationend"),Vu=bo("animationiteration"),Fu=bo("animationstart"),Uu=bo("transitionend"),Zu=new Map,Wu="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 Rt(e,t){Zu.set(e,t),Wt(t,[e])}for(var _l=0;_l<Wu.length;_l++){var El=Wu[_l],U1=El.toLowerCase(),Z1=El[0].toUpperCase()+El.slice(1);Rt(U1,"on"+Z1)}Rt(Bu,"onAnimationEnd"),Rt(Vu,"onAnimationIteration"),Rt(Fu,"onAnimationStart"),Rt("dblclick","onDoubleClick"),Rt("focusin","onFocus"),Rt("focusout","onBlur"),Rt(Uu,"onTransitionEnd"),gn("onMouseEnter",["mouseout","mouseover"]),gn("onMouseLeave",["mouseout","mouseover"]),gn("onPointerEnter",["pointerout","pointerover"]),gn("onPointerLeave",["pointerout","pointerover"]),Wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="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(" "),W1=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Qu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Up(r,t,void 0,e),e.currentTarget=null}function Yu(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;Qu(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;Qu(o,s,u),i=a}}}if(lo)throw e=rl,lo=!1,rl=null,e}function W(e,t){var n=t[Nl];n===void 0&&(n=t[Nl]=new Set);var r=e+"__bubble";n.has(r)||(Xu(t,e,2,!1),n.add(r))}function Ll(e,t,n){var r=0;t&&(r|=4),Xu(n,e,r,t)}var So="_reactListening"+Math.random().toString(36).slice(2);function Cr(e){if(!e[So]){e[So]=!0,Pa.forEach(function(n){n!=="selectionchange"&&(W1.has(n)||Ll(n,!1,e),Ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[So]||(t[So]=!0,Ll("selectionchange",!1,t))}}function Xu(e,t,n,r){switch(vu(t)){case 1:var o=l1;break;case 4:o=s1;break;default:o=cl}n=o.bind(null,t,n,e),o=void 0,!nl||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 jl(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=Yt(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}eu(function(){var u=i,c=Ji(n),f=[];e:{var h=Zu.get(e);if(h!==void 0){var y=pl,x=e;switch(e){case"keypress":if(vo(n)===0)break e;case"keydown":case"keyup":y=C1;break;case"focusin":x="focus",y=gl;break;case"focusout":x="blur",y=gl;break;case"beforeblur":case"afterblur":y=gl;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=ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=c1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=_1;break;case Bu:case Vu:case Fu:y=p1;break;case Uu:y=L1;break;case"scroll":y=a1;break;case"wheel":y=T1;break;case"copy":case"cut":case"paste":y=m1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=bu}var v=(t&4)!==0,E=!v&&e==="scroll",m=v?h!==null?h+"Capture":null:h;v=[];for(var d=u,g;d!==null;){g=d;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,m!==null&&(b=or(d,m),b!=null&&v.push(br(d,b,g)))),E)break;d=d.return}0<v.length&&(h=new y(h,x,null,n,c),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==qi&&(x=n.relatedTarget||n.fromElement)&&(Yt(x)||x[ft]))break e;if((y||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=u,x=x?Yt(x):null,x!==null&&(E=Qt(x),x!==E||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=u),y!==x)){if(v=ku,b="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(v=bu,b="onPointerLeave",m="onPointerEnter",d="pointer"),E=y==null?h:Tn(y),g=x==null?h:Tn(x),h=new v(b,d+"leave",y,n,c),h.target=E,h.relatedTarget=g,b=null,Yt(c)===u&&(v=new v(m,d+"enter",x,n,c),v.target=g,v.relatedTarget=E,b=v),E=b,y&&x)t:{for(v=y,m=x,d=0,g=v;g;g=Ln(g))d++;for(g=0,b=m;b;b=Ln(b))g++;for(;0<d-g;)v=Ln(v),d--;for(;0<g-d;)m=Ln(m),g--;for(;d--;){if(v===m||m!==null&&v===m.alternate)break t;v=Ln(v),m=Ln(m)}v=null}else v=null;y!==null&&Gu(f,h,y,v,!1),x!==null&&E!==null&&Gu(f,E,x,v,!0)}}e:{if(h=u?Tn(u):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var S=I1;else if(Tu(h))if(Ru)S=A1;else{S=D1;var w=$1}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=H1);if(S&&(S=S(e,u))){Pu(f,S,n,c);break e}w&&w(e,h,u),e==="focusout"&&(w=h._wrapperState)&&w.controlled&&h.type==="number"&&Qi(h,"number",h.value)}switch(w=u?Tn(u):window,e){case"focusin":(Tu(w)||w.contentEditable==="true")&&(_n=w,Cl=u,xr=null);break;case"focusout":xr=Cl=_n=null;break;case"mousedown":bl=!0;break;case"contextmenu":case"mouseup":case"dragend":bl=!1,Hu(f,n,c);break;case"selectionchange":if(F1)break;case"keydown":case"keyup":Hu(f,n,c)}var k;if(vl)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Sn?Lu(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Su&&n.locale!=="ko"&&(Sn||C!=="onCompositionStart"?C==="onCompositionEnd"&&Sn&&(k=wu()):(Pt=c,fl="value"in Pt?Pt.value:Pt.textContent,Sn=!0)),w=_o(u,C),0<w.length&&(C=new Cu(C,e,null,n,c),f.push({event:C,listeners:w}),k?C.data=k:(k=ju(n),k!==null&&(C.data=k)))),(k=R1?z1(e,n):M1(e,n))&&(u=_o(u,"onBeforeInput"),0<u.length&&(c=new Cu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=k))}Yu(f,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _o(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=or(e,n),i!=null&&r.unshift(br(e,i,o)),i=or(e,t),i!=null&&r.push(br(e,i,o))),e=e.return}return r}function Ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gu(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=or(n,i),a!=null&&l.unshift(br(n,a,s))):o||(a=or(n,i),a!=null&&l.push(br(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Q1=/\r\n?/g,Y1=/\u0000|\uFFFD/g;function Ku(e){return(typeof e=="string"?e:""+e).replace(Q1,`
|
|
38
|
+
`).replace(Y1,"")}function Eo(e,t,n){if(t=Ku(t),Ku(e)!==t&&n)throw Error(_(425))}function Lo(){}var Tl=null,Pl=null;function Rl(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 zl=typeof setTimeout=="function"?setTimeout:void 0,X1=typeof clearTimeout=="function"?clearTimeout:void 0,qu=typeof Promise=="function"?Promise:void 0,G1=typeof queueMicrotask=="function"?queueMicrotask:typeof qu<"u"?function(e){return qu.resolve(null).then(e).catch(K1)}:zl;function K1(e){setTimeout(function(){throw e})}function Ml(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),pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);pr(t)}function zt(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 Ju(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 jn=Math.random().toString(36).slice(2),nt="__reactFiber$"+jn,Sr="__reactProps$"+jn,ft="__reactContainer$"+jn,Nl="__reactEvents$"+jn,q1="__reactListeners$"+jn,J1="__reactHandles$"+jn;function Yt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ju(e);e!==null;){if(n=e[nt])return n;e=Ju(e)}return t}e=n,n=e.parentNode}return null}function _r(e){return e=e[nt]||e[ft],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function jo(e){return e[Sr]||null}var Ol=[],Pn=-1;function Mt(e){return{current:e}}function Q(e){0>Pn||(e.current=Ol[Pn],Ol[Pn]=null,Pn--)}function Z(e,t){Pn++,Ol[Pn]=e.current,e.current=t}var Nt={},ge=Mt(Nt),je=Mt(!1),Xt=Nt;function Rn(e,t){var n=e.type.contextTypes;if(!n)return Nt;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 Te(e){return e=e.childContextTypes,e!=null}function To(){Q(je),Q(ge)}function ec(e,t,n){if(ge.current!==Nt)throw Error(_(168));Z(ge,t),Z(je,n)}function tc(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(_(108,$p(e)||"Unknown",o));return G({},n,r)}function Po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nt,Xt=ge.current,Z(ge,e),Z(je,je.current),!0}function nc(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=tc(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,Q(je),Q(ge),Z(ge,e)):Q(je),Z(je,n)}var pt=null,Ro=!1,Il=!1;function rc(e){pt===null?pt=[e]:pt.push(e)}function eh(e){Ro=!0,rc(e)}function Ot(){if(!Il&&pt!==null){Il=!0;var e=0,t=A;try{var n=pt;for(A=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pt=null,Ro=!1}catch(o){throw pt!==null&&(pt=pt.slice(e+1)),iu(ol,Ot),o}finally{A=t,Il=!1}}return null}var zn=[],Mn=0,zo=null,Mo=0,He=[],Ae=0,Gt=null,ht=1,mt="";function Kt(e,t){zn[Mn++]=Mo,zn[Mn++]=zo,zo=e,Mo=t}function oc(e,t,n){He[Ae++]=ht,He[Ae++]=mt,He[Ae++]=Gt,Gt=e;var r=ht;e=mt;var o=32-Qe(r)-1;r&=~(1<<o),n+=1;var i=32-Qe(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,ht=1<<32-Qe(t)+o|n<<o|r,mt=i+e}else ht=1<<i|n<<o|r,mt=e}function $l(e){e.return!==null&&(Kt(e,1),oc(e,1,0))}function Dl(e){for(;e===zo;)zo=zn[--Mn],zn[Mn]=null,Mo=zn[--Mn],zn[Mn]=null;for(;e===Gt;)Gt=He[--Ae],He[Ae]=null,mt=He[--Ae],He[Ae]=null,ht=He[--Ae],He[Ae]=null}var Ie=null,$e=null,X=!1,Xe=null;function ic(e,t){var n=Ue(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 lc(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,Ie=e,$e=zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ie=e,$e=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:ht,overflow:mt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ue(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ie=e,$e=null,!0):!1;default:return!1}}function Hl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Al(e){if(X){var t=$e;if(t){var n=t;if(!lc(e,t)){if(Hl(e))throw Error(_(418));t=zt(n.nextSibling);var r=Ie;t&&lc(e,t)?ic(r,n):(e.flags=e.flags&-4097|2,X=!1,Ie=e)}}else{if(Hl(e))throw Error(_(418));e.flags=e.flags&-4097|2,X=!1,Ie=e}}}function sc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ie=e}function No(e){if(e!==Ie)return!1;if(!X)return sc(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Rl(e.type,e.memoizedProps)),t&&(t=$e)){if(Hl(e))throw ac(),Error(_(418));for(;t;)ic(e,t),t=zt(t.nextSibling)}if(sc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){$e=zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}$e=null}}else $e=Ie?zt(e.stateNode.nextSibling):null;return!0}function ac(){for(var e=$e;e;)e=zt(e.nextSibling)}function Nn(){$e=Ie=null,X=!1}function Bl(e){Xe===null?Xe=[e]:Xe.push(e)}var th=dt.ReactCurrentBatchConfig;function Er(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(_(309));var r=n.stateNode}if(!r)throw Error(_(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(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Oo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uc(e){var t=e._init;return t(e._payload)}function cc(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=Ft(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,b){return d===null||d.tag!==6?(d=zs(g,m.mode,b),d.return=m,d):(d=o(d,g),d.return=m,d)}function a(m,d,g,b){var S=g.type;return S===vn?c(m,d,g.props.children,b,g.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===St&&uc(S)===d.type)?(b=o(d,g.props),b.ref=Er(m,d,g),b.return=m,b):(b=ii(g.type,g.key,g.props,null,m.mode,b),b.ref=Er(m,d,g),b.return=m,b)}function u(m,d,g,b){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=Ms(g,m.mode,b),d.return=m,d):(d=o(d,g.children||[]),d.return=m,d)}function c(m,d,g,b,S){return d===null||d.tag!==7?(d=ln(g,m.mode,b,S),d.return=m,d):(d=o(d,g),d.return=m,d)}function f(m,d,g){if(typeof d=="string"&&d!==""||typeof d=="number")return d=zs(""+d,m.mode,g),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case to:return g=ii(d.type,d.key,d.props,null,m.mode,g),g.ref=Er(m,null,d),g.return=m,g;case yn:return d=Ms(d,m.mode,g),d.return=m,d;case St:var b=d._init;return f(m,b(d._payload),g)}if(tr(d)||Jn(d))return d=ln(d,m.mode,g,null),d.return=m,d;Oo(m,d)}return null}function h(m,d,g,b){var S=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return S!==null?null:s(m,d,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case to:return g.key===S?a(m,d,g,b):null;case yn:return g.key===S?u(m,d,g,b):null;case St:return S=g._init,h(m,d,S(g._payload),b)}if(tr(g)||Jn(g))return S!==null?null:c(m,d,g,b,null);Oo(m,g)}return null}function y(m,d,g,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(g)||null,s(d,m,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case to:return m=m.get(b.key===null?g:b.key)||null,a(d,m,b,S);case yn:return m=m.get(b.key===null?g:b.key)||null,u(d,m,b,S);case St:var w=b._init;return y(m,d,g,w(b._payload),S)}if(tr(b)||Jn(b))return m=m.get(g)||null,c(d,m,b,S,null);Oo(d,b)}return null}function x(m,d,g,b){for(var S=null,w=null,k=d,C=d=0,P=null;k!==null&&C<g.length;C++){k.index>C?(P=k,k=null):P=k.sibling;var T=h(m,k,g[C],b);if(T===null){k===null&&(k=P);break}e&&k&&T.alternate===null&&t(m,k),d=i(T,d,C),w===null?S=T:w.sibling=T,w=T,k=P}if(C===g.length)return n(m,k),X&&Kt(m,C),S;if(k===null){for(;C<g.length;C++)k=f(m,g[C],b),k!==null&&(d=i(k,d,C),w===null?S=k:w.sibling=k,w=k);return X&&Kt(m,C),S}for(k=r(m,k);C<g.length;C++)P=y(k,m,C,g[C],b),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?C:P.key),d=i(P,d,C),w===null?S=P:w.sibling=P,w=P);return e&&k.forEach(function($){return t(m,$)}),X&&Kt(m,C),S}function v(m,d,g,b){var S=Jn(g);if(typeof S!="function")throw Error(_(150));if(g=S.call(g),g==null)throw Error(_(151));for(var w=S=null,k=d,C=d=0,P=null,T=g.next();k!==null&&!T.done;C++,T=g.next()){k.index>C?(P=k,k=null):P=k.sibling;var $=h(m,k,T.value,b);if($===null){k===null&&(k=P);break}e&&k&&$.alternate===null&&t(m,k),d=i($,d,C),w===null?S=$:w.sibling=$,w=$,k=P}if(T.done)return n(m,k),X&&Kt(m,C),S;if(k===null){for(;!T.done;C++,T=g.next())T=f(m,T.value,b),T!==null&&(d=i(T,d,C),w===null?S=T:w.sibling=T,w=T);return X&&Kt(m,C),S}for(k=r(m,k);!T.done;C++,T=g.next())T=y(k,m,C,T.value,b),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?C:T.key),d=i(T,d,C),w===null?S=T:w.sibling=T,w=T);return e&&k.forEach(function(ne){return t(m,ne)}),X&&Kt(m,C),S}function E(m,d,g,b){if(typeof g=="object"&&g!==null&&g.type===vn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case to:e:{for(var S=g.key,w=d;w!==null;){if(w.key===S){if(S=g.type,S===vn){if(w.tag===7){n(m,w.sibling),d=o(w,g.props.children),d.return=m,m=d;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===St&&uc(S)===w.type){n(m,w.sibling),d=o(w,g.props),d.ref=Er(m,w,g),d.return=m,m=d;break e}n(m,w);break}else t(m,w);w=w.sibling}g.type===vn?(d=ln(g.props.children,m.mode,b,g.key),d.return=m,m=d):(b=ii(g.type,g.key,g.props,null,m.mode,b),b.ref=Er(m,d,g),b.return=m,m=b)}return l(m);case yn:e:{for(w=g.key;d!==null;){if(d.key===w)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=Ms(g,m.mode,b),d.return=m,m=d}return l(m);case St:return w=g._init,E(m,d,w(g._payload),b)}if(tr(g))return x(m,d,g,b);if(Jn(g))return v(m,d,g,b);Oo(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=zs(g,m.mode,b),d.return=m,m=d),l(m)):n(m,d)}return E}var On=cc(!0),dc=cc(!1),Io=Mt(null),$o=null,In=null,Vl=null;function Fl(){Vl=In=$o=null}function Ul(e){var t=Io.current;Q(Io),e._currentValue=t}function Zl(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 $n(e,t){$o=e,Vl=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(Vl!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if($o===null)throw Error(_(308));In=e,$o.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var qt=null;function Wl(e){qt===null?qt=[e]:qt.push(e)}function fc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Wl(t)):(n.next=o.next,o.next=n),t.interleaved=n,gt(e,r)}function gt(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 It=!1;function Ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pc(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 yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,gt(e,n)}return o=r.interleaved,o===null?(t.next=t,Wl(r)):(t.next=o.next,o.next=t),r.interleaved=t,gt(e,n)}function Do(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,sl(e,n)}}function hc(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 Ho(e,t,n,r){var o=e.updateQueue;It=!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 f=o.baseState;l=0,c=u=a=null,s=i;do{var h=s.lane,y=s.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,v=s;switch(h=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(y,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,h=typeof x=="function"?x.call(y,f,h):x,h==null)break e;f=G({},f,h);break e;case 2:It=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else y={eventTime:y,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=y,a=f):c=c.next=y,l|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(a=f),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);tn|=l,e.lanes=l,e.memoizedState=f}}function mc(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(_(191,o));o.call(r)}}}var Lr={},rt=Mt(Lr),jr=Mt(Lr),Tr=Mt(Lr);function Jt(e){if(e===Lr)throw Error(_(174));return e}function Yl(e,t){switch(Z(Tr,t),Z(jr,e),Z(rt,Lr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xi(t,e)}Q(rt),Z(rt,t)}function Dn(){Q(rt),Q(jr),Q(Tr)}function gc(e){Jt(Tr.current);var t=Jt(rt.current),n=Xi(t,e.type);t!==n&&(Z(jr,e),Z(rt,n))}function Xl(e){jr.current===e&&(Q(rt),Q(jr))}var K=Mt(0);function Ao(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 Gl=[];function Kl(){for(var e=0;e<Gl.length;e++)Gl[e]._workInProgressVersionPrimary=null;Gl.length=0}var Bo=dt.ReactCurrentDispatcher,ql=dt.ReactCurrentBatchConfig,en=0,q=null,ie=null,ae=null,Vo=!1,Pr=!1,Rr=0,nh=0;function ye(){throw Error(_(321))}function Jl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ye(e[n],t[n]))return!1;return!0}function es(e,t,n,r,o,i){if(en=i,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bo.current=e===null||e.memoizedState===null?lh:sh,e=n(r,o),Pr){i=0;do{if(Pr=!1,Rr=0,25<=i)throw Error(_(301));i+=1,ae=ie=null,t.updateQueue=null,Bo.current=ah,e=n(r,o)}while(Pr)}if(Bo.current=Zo,t=ie!==null&&ie.next!==null,en=0,ae=ie=q=null,Vo=!1,t)throw Error(_(300));return e}function ts(){var e=Rr!==0;return Rr=0,e}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?q.memoizedState=ae=e:ae=ae.next=e,ae}function Ve(){if(ie===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=ae===null?q.memoizedState:ae.next;if(t!==null)ae=t,ie=e;else{if(e===null)throw Error(_(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},ae===null?q.memoizedState=ae=e:ae=ae.next=e}return ae}function zr(e,t){return typeof t=="function"?t(e):t}function ns(e){var t=Ve(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=ie,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((en&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 f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=f,l=r):a=a.next=f,q.lanes|=c,tn|=c}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,Ye(r,t.memoizedState)||(Pe=!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,q.lanes|=i,tn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rs(e){var t=Ve(),n=t.queue;if(n===null)throw Error(_(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);Ye(i,t.memoizedState)||(Pe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function yc(){}function vc(e,t){var n=q,r=Ve(),o=t(),i=!Ye(r.memoizedState,o);if(i&&(r.memoizedState=o,Pe=!0),r=r.queue,os(kc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,Mr(9,xc.bind(null,n,r,o,t),void 0,null),ue===null)throw Error(_(349));en&30||wc(n,t,o)}return o}function wc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xc(e,t,n,r){t.value=n,t.getSnapshot=r,Cc(t)&&bc(e)}function kc(e,t,n){return n(function(){Cc(t)&&bc(e)})}function Cc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ye(e,n)}catch{return!0}}function bc(e){var t=gt(e,1);t!==null&&Je(t,e,1,-1)}function Sc(e){var t=ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:e},t.queue=e,e=e.dispatch=ih.bind(null,q,e),[t.memoizedState,e]}function Mr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.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 _c(){return Ve().memoizedState}function Fo(e,t,n,r){var o=ot();q.flags|=e,o.memoizedState=Mr(1|t,n,void 0,r===void 0?null:r)}function Uo(e,t,n,r){var o=Ve();r=r===void 0?null:r;var i=void 0;if(ie!==null){var l=ie.memoizedState;if(i=l.destroy,r!==null&&Jl(r,l.deps)){o.memoizedState=Mr(t,n,i,r);return}}q.flags|=e,o.memoizedState=Mr(1|t,n,i,r)}function Ec(e,t){return Fo(8390656,8,e,t)}function os(e,t){return Uo(2048,8,e,t)}function Lc(e,t){return Uo(4,2,e,t)}function jc(e,t){return Uo(4,4,e,t)}function Tc(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 Pc(e,t,n){return n=n!=null?n.concat([e]):null,Uo(4,4,Tc.bind(null,t,e),n)}function is(){}function Rc(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zc(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Mc(e,t,n){return en&21?(Ye(n,t)||(n=uu(),q.lanes|=n,tn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Pe=!0),e.memoizedState=n)}function rh(e,t){var n=A;A=n!==0&&4>n?n:4,e(!0);var r=ql.transition;ql.transition={};try{e(!1),t()}finally{A=n,ql.transition=r}}function Nc(){return Ve().memoizedState}function oh(e,t,n){var r=Bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oc(e))Ic(t,n);else if(n=fc(e,t,n,r),n!==null){var o=be();Je(n,e,r,o),$c(n,t,r)}}function ih(e,t,n){var r=Bt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oc(e))Ic(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,Ye(s,l)){var a=t.interleaved;a===null?(o.next=o,Wl(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=fc(e,t,o,r),n!==null&&(o=be(),Je(n,e,r,o),$c(n,t,r))}}function Oc(e){var t=e.alternate;return e===q||t!==null&&t===q}function Ic(e,t){Pr=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $c(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sl(e,n)}}var Zo={readContext:Be,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},lh={readContext:Be,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:Ec,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fo(4194308,4,Tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fo(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();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=oh.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:Sc,useDebugValue:is,useDeferredValue:function(e){return ot().memoizedState=e},useTransition:function(){var e=Sc(!1),t=e[0];return e=rh.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=ot();if(X){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ue===null)throw Error(_(349));en&30||wc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ec(kc.bind(null,r,i,e),[e]),r.flags|=2048,Mr(9,xc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ot(),t=ue.identifierPrefix;if(X){var n=mt,r=ht;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=nh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sh={readContext:Be,useCallback:Rc,useContext:Be,useEffect:os,useImperativeHandle:Pc,useInsertionEffect:Lc,useLayoutEffect:jc,useMemo:zc,useReducer:ns,useRef:_c,useState:function(){return ns(zr)},useDebugValue:is,useDeferredValue:function(e){var t=Ve();return Mc(t,ie.memoizedState,e)},useTransition:function(){var e=ns(zr)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:yc,useSyncExternalStore:vc,useId:Nc,unstable_isNewReconciler:!1},ah={readContext:Be,useCallback:Rc,useContext:Be,useEffect:os,useImperativeHandle:Pc,useInsertionEffect:Lc,useLayoutEffect:jc,useMemo:zc,useReducer:rs,useRef:_c,useState:function(){return rs(zr)},useDebugValue:is,useDeferredValue:function(e){var t=Ve();return ie===null?t.memoizedState=e:Mc(t,ie.memoizedState,e)},useTransition:function(){var e=rs(zr)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:yc,useSyncExternalStore:vc,useId:Nc,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 ls(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 Wo={isMounted:function(e){return(e=e._reactInternals)?Qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=be(),o=Bt(e),i=yt(r,o);i.payload=t,n!=null&&(i.callback=n),t=$t(e,i,o),t!==null&&(Je(t,e,o,r),Do(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=be(),o=Bt(e),i=yt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=$t(e,i,o),t!==null&&(Je(t,e,o,r),Do(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=be(),r=Bt(e),o=yt(n,r);o.tag=2,t!=null&&(o.callback=t),t=$t(e,o,r),t!==null&&(Je(t,e,r,n),Do(t,e,r))}};function Dc(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?!wr(n,r)||!wr(o,i):!0}function Hc(e,t,n){var r=!1,o=Nt,i=t.contextType;return typeof i=="object"&&i!==null?i=Be(i):(o=Te(t)?Xt:ge.current,r=t.contextTypes,i=(r=r!=null)?Rn(e,o):Nt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ac(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&&Wo.enqueueReplaceState(t,t.state,null)}function ss(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ql(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Be(i):(i=Te(t)?Xt:ge.current,o.context=Rn(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ls(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&&Wo.enqueueReplaceState(o,o.state,null),Ho(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Hn(e,t){try{var n="",r=t;do n+=Ip(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
39
|
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ql(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gl(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(){Ao||(Ao=!0,us=r),Gl(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(){Gl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Gl(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,Le=!1;function we(e,t,n,r){t.child=e===null?Wu(t,null,n,r):Tn(t,e.child,n,r)}function Lc(e,t,n,r,o){n=n.render;var i=t.ref;return zn(t,o),r=$l(e,t,n,r,i,o),n=Al(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ht(e,t,o)):(Z&&n&&Cl(t),t.flags|=1,we(e,t,r,o),t.child)}function Tc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!gs(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=Wo(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:ur,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(ur(i,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,ht(e,t,o)}return Xl(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},V(Nn,Ie),Ie|=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,V(Nn,Ie),Ie|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,V(Nn,Ie),Ie|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,V(Nn,Ie),Ie|=r;return we(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 Xl(e,t,n,r,o){var i=Ee(n)?Bt:pe.current;return i=bn(t,i),zn(t,o),n=$l(e,t,n,r,i,o),r=Al(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ht(e,t,o)):(Z&&r&&Cl(t),t.flags|=1,we(e,t,n,o),t.child)}function Pc(e,t,n,r,o){if(Ee(n)){var i=!0;yo(t)}else i=!1;if(zn(t,o),t.stateNode===null)Io(e,t),xc(t,n,r),Wl(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=Ee(n)?Bt:pe.current,u=bn(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 d=t.memoizedState;l.state=d,Eo(t,r,l,o),a=t.memoizedState,s!==r||d!==a||_e.current||Tt?(typeof c=="function"&&(Zl(t,n,c,r),a=t.memoizedState),(s=Tt||wc(t,n,s,r,d,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,d=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=$e(a):(a=Ee(n)?Bt:pe.current,a=bn(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||d!==a)&&kc(t,l,r,a),Tt=!1,d=t.memoizedState,l.state=d,Eo(t,r,l,o);var x=t.memoizedState;s!==h||d!==x||_e.current||Tt?(typeof y=="function"&&(Zl(t,n,y,r),x=t.memoizedState),(u=Tt||wc(t,n,u,r,d,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&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===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&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Yl(e,t,n,r,i,o)}function Yl(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=Tn(t,e.child,null,i),t.child=Tn(t,null,s,i)):we(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),Ml(e,t.containerInfo)}function Nc(e,t,n,r,o){return Ln(),El(o),t.flags|=256,we(e,t,n,r),t.child}var Kl={dehydrated:null,treeContext:null,retryLane:0};function ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ic(e,t,n){var r=t.pendingProps,o=G.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),V(G,o&1),e===null)return _l(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=Qo(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=ql(n),t.memoizedState=Kl,e):Jl(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?ql(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Kl,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 Jl(e,t){return t=Qo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function No(e,t,n,r){return r!==null&&El(r),Tn(t,e.child,null,n),e=Jl(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=Ql(Error(_(422))),No(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Qo({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&&Tn(t,e.child,null,l),t.child.memoizedState=ql(l),t.memoizedState=Kl,i);if(!(t.mode&1))return No(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(_(419)),r=Ql(i,r,void 0),No(e,t,l,r)}if(s=(l&e.childLanes)!==0,Le||s){if(r=le,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 ms(),r=Ql(Error(_(421))),No(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,Ne=bt(o.nextSibling),Me=t,Z=!0,Qe=null,e!==null&&(He[De++]=ct,He[De++]=dt,He[De++]=Vt,ct=e.id,dt=e.overflow,Vt=t),t=Jl(t,r.children),t.flags|=4096,t)}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zl(e.return,t,n)}function es(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(we(e,t,r.children,n),r=G.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(V(G,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&&Lo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),es(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&&Lo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}es(t,!0,n,null,i);break;case"together":es(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Io(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(_(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),Ln();break;case 5:Ku(t);break;case 1:Ee(t.type)&&yo(t);break;case 4:Ml(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;V(So,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?Ic(e,t,n):(V(G,G.current&1),e=ht(e,t,n),e!==null?e.sibling:null);V(G,G.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),V(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,zc(e,t,n)}return ht(e,t,n)}var Dc,ts,$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}},ts=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=zi(e,o),r=zi(e,r),i=[];break;case"select":o=Q({},o,{value:void 0}),r=Q({},r,{value:void 0}),i=[];break;case"textarea":o=Mi(e,o),r=Mi(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ho)}Ii(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"&&(Vn.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"&&(Vn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&F("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 br(e,t){if(!Z)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 me(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(Sl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return Ee(t.type)&&go(),me(t),null;case 3:return r=t.stateNode,Rn(),U(_e),U(pe),Ol(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ko(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qe!==null&&(fs(Qe),Qe=null))),ts(e,t),me(t),null;case 5:Nl(t);var o=Zt(wr.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(_(166));return me(t),null}if(e=Zt(et.current),ko(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Je]=t,r[hr]=i,e=(t.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(o=0;o<dr.length;o++)F(dr[o],r);break;case"source":F("error",r);break;case"img":case"image":case"link":F("error",r),F("load",r);break;case"details":F("toggle",r);break;case"input":xa(r,i),F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},F("invalid",r);break;case"textarea":Sa(r,i),F("invalid",r)}Ii(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&&po(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&po(r.textContent,s,e),o=["children",""+s]):Vn.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&F("scroll",r)}switch(n){case"input":Fr(r),Ca(r,i,!0);break;case"textarea":Fr(r),_a(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ho)}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[hr]=r,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Oi(n,r),n){case"dialog":F("cancel",e),F("close",e),o=r;break;case"iframe":case"object":case"embed":F("load",e),o=r;break;case"video":case"audio":for(o=0;o<dr.length;o++)F(dr[o],e);o=r;break;case"source":F("error",e),o=r;break;case"img":case"image":case"link":F("error",e),F("load",e),o=r;break;case"details":F("toggle",e),o=r;break;case"input":xa(e,r),o=zi(e,r),F("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Q({},r,{value:void 0}),F("invalid",e);break;case"textarea":Sa(e,r),o=Mi(e,r),F("invalid",e);break;default:o=r}Ii(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!=="")&&Wn(e,a):typeof a=="number"&&Wn(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Vn.hasOwnProperty(i)?a!=null&&i==="onScroll"&&F("scroll",e):a!=null&&wi(e,i,a,l))}switch(n){case"input":Fr(e),Ca(e,r,!1);break;case"textarea":Fr(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?fn(e,!!r.multiple,i,!1):r.defaultValue!=null&&fn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ho)}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 me(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(_(166));if(n=Zt(wr.current),Zt(et.current),ko(t)){if(r=t.stateNode,n=t.memoizedProps,r[Je]=t,(i=r.nodeValue!==n)&&(e=Me,e!==null))switch(e.tag){case 3:po(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&po(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 me(t),null;case 13:if(U(G),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Ne!==null&&t.mode&1&&!(t.flags&128))Fu(),Ln(),t.flags|=98560,i=!1;else if(i=ko(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[Je]=t}else Ln(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),i=!1}else Qe!==null&&(fs(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||G.current&1?re===0&&(re=3):ms())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return Rn(),ts(e,t),e===null&&fr(t.stateNode.containerInfo),me(t),null;case 10:return jl(t.type._context),me(t),null;case 17:return Ee(t.type)&&go(),me(t),null;case 19:if(U(G),i=t.memoizedState,i===null)return me(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)br(i,!1);else{if(re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Lo(e),l!==null){for(t.flags|=128,br(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 V(G,G.current&1|2),t.child}e=e.sibling}i.tail!==null&&q()>In&&(t.flags|=128,r=!0,br(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Z)return me(t),null}else 2*q()-i.renderingStartTime>In&&n!==1073741824&&(t.flags|=128,r=!0,br(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=q(),t.sibling=null,n=G.current,V(G,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return hs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function T1(e,t){switch(Sl(t),t.tag){case 1:return Ee(t.type)&&go(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rn(),U(_e),U(pe),Ol(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nl(t),null;case 13:if(U(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(G),null;case 4:return Rn(),null;case 10:return jl(t.type._context),null;case 22:case 23:return hs(),null;case 24:return null;default:return null}}var Oo=!1,ge=!1,j1=typeof WeakSet=="function"?WeakSet:Set,E=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function ns(e,t,n){try{n()}catch(r){K(e,t,r)}}var Bc=!1;function z1(e,t){if(hl=to,e=wu(),ll(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,d=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;)d=h,h=y;for(;;){if(h===e)break t;if(d===n&&++u===o&&(s=l),d===i&&++c===r&&(a=l),(y=h.nextSibling)!==null)break;h=d,d=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(ml={focusedElem:e,selectionRange:n},to=!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,T=x.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ge(t.type,w),T);m.__reactInternalSnapshotBeforeUpdate=f}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(_(163))}}catch(k){K(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 _r(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&&ns(t,n,i)}o=o.next}while(o!==r)}}function Ho(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 rs(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[hr],delete t[wl],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 os(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=ho));else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}function is(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(is(e,t,n),e=e.sibling;e!==null;)is(e,t,n),e=e.sibling}var ue=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(Xr,n)}catch{}switch(n.tag){case 5:ge||Mn(n,t);case 6:var r=ue,o=Xe;ue=null,zt(e,t,n),ue=r,Xe=o,ue!==null&&(Xe?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Xe?(e=ue,n=n.stateNode,e.nodeType===8?vl(e.parentNode,n):e.nodeType===1&&vl(e,n),rr(e)):vl(ue,n.stateNode));break;case 4:r=ue,o=Xe,ue=n.stateNode.containerInfo,Xe=!0,zt(e,t,n),ue=r,Xe=o;break;case 0:case 11:case 14:case 15:if(!ge&&(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)&&ns(n,t,l),o=o.next}while(o!==r)}zt(e,t,n);break;case 1:if(!ge&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){K(n,t,s)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,zt(e,t,n),ge=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:ue=s.stateNode,Xe=!1;break e;case 3:ue=s.stateNode.containerInfo,Xe=!0;break e;case 4:ue=s.stateNode.containerInfo,Xe=!0;break e}s=s.return}if(ue===null)throw Error(_(160));Zc(i,l,o),ue=null,Xe=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){K(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{_r(3,e,e.return),Ho(3,e)}catch(w){K(e,e.return,w)}try{_r(5,e,e.return)}catch(w){K(e,e.return,w)}}break;case 1:Ye(t,e),nt(e),r&512&&n!==null&&Mn(n,n.return);break;case 5:if(Ye(t,e),nt(e),r&512&&n!==null&&Mn(n,n.return),e.flags&32){var o=e.stateNode;try{Wn(o,"")}catch(w){K(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),Oi(s,l);var u=Oi(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"?Wn(o,h):wi(o,c,h,u)}switch(s){case"input":Ri(o,i);break;case"textarea":ba(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?fn(o,!!i.multiple,y,!1):d!==!!i.multiple&&(i.defaultValue!=null?fn(o,!!i.multiple,i.defaultValue,!0):fn(o,!!i.multiple,i.multiple?[]:"",!1))}o[hr]=i}catch(w){K(e,e.return,w)}}break;case 6:if(Ye(t,e),nt(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(w){K(e,e.return,w)}}break;case 3:if(Ye(t,e),nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rr(t.containerInfo)}catch(w){K(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||(as=q())),r&4&&Wc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ge=(u=ge)||c,Ye(t,e),ge=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(d=E,y=d.child,d.tag){case 0:case 11:case 14:case 15:_r(4,d,d.return);break;case 1:Mn(d,d.return);var x=d.stateNode;if(typeof x.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(w){K(r,n,w)}}break;case 5:Mn(d,d.return);break;case 22:if(d.memoizedState!==null){Yc(h);continue}}y!==null?(y.return=d,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){K(e,e.return,w)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(w){K(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(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Wn(o,""),r.flags&=-33);var i=Uc(e);is(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Uc(e);os(e,s,l);break;default:throw Error(_(161))}}catch(a){K(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||Oo;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||ge;s=Oo;var u=ge;if(Oo=l,(ge=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,Oo=s,ge=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:ge||Ho(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ge)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&&rr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}ge||t.flags&512&&rs(t)}catch(d){K(t,t.return,d)}}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{Ho(4,t)}catch(a){K(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){K(t,o,a)}}var i=t.return;try{rs(t)}catch(a){K(t,i,a)}break;case 5:var l=t.return;try{rs(t)}catch(a){K(t,l,a)}}}catch(a){K(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,Do=st.ReactCurrentDispatcher,ls=st.ReactCurrentOwner,Be=st.ReactCurrentBatchConfig,O=0,le=null,ee=null,ce=0,Ie=0,Nn=_t(0),re=0,Er=null,Qt=0,$o=0,ss=0,Lr=null,Te=null,as=0,In=1/0,mt=null,Ao=!1,us=null,Rt=null,Bo=!1,Pt=null,Vo=0,Tr=0,cs=null,Fo=-1,Uo=0;function xe(){return O&6?q():Fo!==-1?Fo:Fo=q()}function Mt(e){return e.mode&1?O&2&&ce!==0?ce&-ce:m1.transition!==null?(Uo===0&&(Uo=Ua()),Uo):(e=H,e!==0||(e=window.event,e=e===void 0?16:Ja(e.type)),e):1}function Ke(e,t,n,r){if(50<Tr)throw Tr=0,cs=null,Error(_(185));qn(e,n,r),(!(O&2)||e!==le)&&(e===le&&(!(O&2)&&($o|=n),re===4&&Nt(e,ce)),je(e,r),n===1&&O===0&&!(t.mode&1)&&(In=q()+500,vo&&Lt()))}function je(e,t){var n=e.callbackNode;mp(e,t);var r=qr(e,e===le?ce: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=Fi;break;case 4:n=Va;break;case 16:n=Gr;break;case 536870912:n=Fa;break;default:n=Gr}n=sd(n,qc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qc(e,t){if(Fo=-1,Uo=0,O&6)throw Error(_(327));var n=e.callbackNode;if(On()&&e.callbackNode!==n)return null;var r=qr(e,e===le?ce:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zo(e,r);else{t=r;var o=O;O|=2;var i=td();(le!==e||ce!==t)&&(mt=null,In=q()+500,Xt(e,t));do try{I1();break}catch(s){ed(e,s)}while(!0);Tl(),Do.current=i,O=o,ee!==null?t=0:(le=null,ce=0,t=re)}if(t!==0){if(t===2&&(o=Ui(e),o!==0&&(r=o,t=ds(e,o))),t===1)throw n=Er,Xt(e,0),Nt(e,r),je(e,q()),n;if(t===6)Nt(e,r);else{if(o=e.current.alternate,!(r&30)&&!M1(o)&&(t=Zo(e,r),t===2&&(i=Ui(e),i!==0&&(r=i,t=ds(e,i))),t===1))throw n=Er,Xt(e,0),Nt(e,r),je(e,q()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Yt(e,Te,mt);break;case 3:if(Nt(e,r),(r&130023424)===r&&(t=as+500-q(),10<t)){if(qr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){xe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yl(Yt.bind(null,e,Te,mt),t);break}Yt(e,Te,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=q()-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=yl(Yt.bind(null,e,Te,mt),r);break}Yt(e,Te,mt);break;case 5:Yt(e,Te,mt);break;default:throw Error(_(329))}}}return je(e,q()),e.callbackNode===n?qc.bind(null,e):null}function ds(e,t){var n=Lr;return e.current.memoizedState.isDehydrated&&(Xt(e,t).flags|=256),e=Zo(e,t),e!==2&&(t=Te,Te=n,t!==null&&fs(t)),e}function fs(e){Te===null?Te=e:Te.push.apply(Te,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&=~ss,t&=~$o,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(_(327));On();var t=qr(e,0);if(!(t&1))return je(e,q()),null;var n=Zo(e,t);if(e.tag!==0&&n===2){var r=Ui(e);r!==0&&(t=r,n=ds(e,r))}if(n===1)throw n=Er,Xt(e,0),Nt(e,t),je(e,q()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yt(e,Te,mt),je(e,q()),null}function ps(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(In=q()+500,vo&&Lt())}}function Gt(e){Pt!==null&&Pt.tag===0&&!(O&6)&&On();var t=O;O|=1;var n=Be.transition,r=H;try{if(Be.transition=null,H=1,e)return e()}finally{H=r,Be.transition=n,O=t,!(O&6)&&Lt()}}function hs(){Ie=Nn.current,U(Nn)}function Xt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,u1(n)),ee!==null)for(n=ee.return;n!==null;){var r=n;switch(Sl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&go();break;case 3:Rn(),U(_e),U(pe),Ol();break;case 5:Nl(r);break;case 4:Rn();break;case 13:U(G);break;case 19:U(G);break;case 10:jl(r.type._context);break;case 22:case 23:hs()}n=n.return}if(le=e,ee=e=It(e.current,null),ce=Ie=t,re=0,Er=null,ss=$o=Qt=0,Te=Lr=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=ee;try{if(Tl(),To.current=Po,jo){for(var r=X.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jo=!1}if(Wt=0,ie=ne=X=null,xr=!1,kr=0,ls.current=null,n===null||n.return===null){re=1,Er=t,ee=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=ce,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 d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.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),ms();break e}a=Error(_(426))}}else if(Z&&s.mode&1){var T=_c(l);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Ec(T,l,s,i,t),El(Pn(a,s));break e}}i=a=Pn(a,s),re!==4&&(re=2),Lr===null?Lr=[i]:Lr.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 f=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof f.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,ee===n&&n!==null&&(ee=n=n.return);continue}break}while(!0)}function td(){var e=Do.current;return Do.current=Po,e===null?Po:e}function ms(){(re===0||re===3||re===2)&&(re=4),le===null||!(Qt&268435455)&&!($o&268435455)||Nt(le,ce)}function Zo(e,t){var n=O;O|=2;var r=td();(le!==e||ce!==t)&&(mt=null,Xt(e,t));do try{N1();break}catch(o){ed(e,o)}while(!0);if(Tl(),O=n,Do.current=r,ee!==null)throw Error(_(261));return le=null,ce=0,re}function N1(){for(;ee!==null;)nd(ee)}function I1(){for(;ee!==null&&!lp();)nd(ee)}function nd(e){var t=ld(e.alternate,e,Ie);e.memoizedProps=e.pendingProps,t===null?rd(e):ee=t,ls.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,ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{re=6,ee=null;return}}else if(n=L1(n,t,Ie),n!==null){ee=n;return}if(t=t.sibling,t!==null){ee=t;return}ee=t=e}while(t!==null);re===0&&(re=5)}function Yt(e,t,n){var r=H,o=Be.transition;try{Be.transition=null,H=1,O1(e,t,n,r)}finally{Be.transition=o,H=r}return null}function O1(e,t,n,r){do On();while(Pt!==null);if(O&6)throw Error(_(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(_(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(gp(e,i),e===le&&(ee=le=null,ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bo||(Bo=!0,sd(Gr,function(){return On(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Be.transition,Be.transition=null;var l=H;H=1;var s=O;O|=4,ls.current=null,z1(e,n),Qc(n,e),n1(ml),to=!!hl,ml=hl=null,e.current=n,R1(n),sp(),O=s,H=l,Be.transition=i}else e.current=n;if(Bo&&(Bo=!1,Pt=e,Vo=o),i=e.pendingLanes,i===0&&(Rt=null),cp(n.stateNode),je(e,q()),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(Ao)throw Ao=!1,e=us,us=null,e;return Vo&1&&e.tag!==0&&On(),i=e.pendingLanes,i&1?e===cs?Tr++:(Tr=0,cs=e):Tr=0,Lt(),null}function On(){if(Pt!==null){var e=Za(Vo),t=Be.transition,n=H;try{if(Be.transition=null,H=16>e?16:e,Pt===null)var r=!1;else{if(e=Pt,Pt=null,Vo=0,O&6)throw Error(_(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:_r(8,c,i)}var h=c.child;if(h!==null)h.return=c,E=h;else for(;E!==null;){c=E;var d=c.sibling,y=c.return;if(Vc(c),c===u){E=null;break}if(d!==null){d.return=y,E=d;break}E=y}}}var x=i.alternate;if(x!==null){var w=x.child;if(w!==null){x.child=null;do{var T=w.sibling;w.sibling=null,w=T}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:_r(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,E=m;break e}E=i.return}}var f=e.current;for(E=f;E!==null;){l=E;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,E=g;else e:for(l=f;E!==null;){if(s=E,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ho(9,s)}}catch(v){K(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(Xr,e)}catch{}r=!0}return r}finally{H=n,Be.transition=t}}return!1}function od(e,t,n){t=Pn(n,t),t=Cc(e,t,1),e=jt(e,t,1),t=xe(),e!==null&&(qn(e,1,t),je(e,t))}function K(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=Pn(n,e),e=Sc(t,e,1),t=jt(t,e,1),e=xe(),t!==null&&(qn(t,1,e),je(t,e));break}}t=t.return}}function H1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xe(),e.pingedLanes|=e.suspendedLanes&n,le===e&&(ce&n)===n&&(re===4||re===3&&(ce&130023424)===ce&&500>q()-as?Xt(e,0):ss|=n),je(e,t)}function id(e,t){t===0&&(e.mode&1?(t=Kr,Kr<<=1,!(Kr&130023424)&&(Kr=4194304)):t=1);var n=xe();e=ft(e,t),e!==null&&(qn(e,t,n),je(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(_(314))}r!==null&&r.delete(t),id(e,n)}var ld;ld=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,E1(e,t,n);Le=!!(e.flags&131072)}else Le=!1,Z&&t.flags&1048576&&$u(t,xo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Io(e,t),e=t.pendingProps;var o=bn(t,pe.current);zn(t,n),o=$l(null,t,r,e,o,n);var i=Al();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,Ee(r)?(i=!0,yo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pl(t),o.updater=Mo,t.stateNode=o,o._reactInternals=t,Wl(t,r,e,n),t=Yl(null,t,r,!0,i,n)):(t.tag=0,Z&&i&&Cl(t),we(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Io(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=Xl(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(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Xl(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(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Gu(e,t),Eo(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=Pn(Error(_(423)),t),t=Nc(e,t,r,n,o);break e}else if(r!==o){o=Pn(Error(_(424)),t),t=Nc(e,t,r,n,o);break e}else for(Ne=bt(t.stateNode.containerInfo.firstChild),Me=t,Z=!0,Qe=null,n=Wu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ln(),r===o){t=ht(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return Ku(t),e===null&&_l(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,gl(r,o)?l=null:i!==null&&gl(r,i)&&(t.flags|=32),Rc(e,t),we(e,t,l,n),t.child;case 6:return e===null&&_l(t),null;case 13:return Ic(e,t,n);case 4:return Ml(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tn(t,null,r,n):we(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 we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(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,V(So,r._currentValue),r._currentValue=l,i!==null)if(We(i.value,l)){if(i.children===o.children&&!_e.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),zl(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(_(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),zl(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}we(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zn(t,n),o=$e(o),r=r(o),t.flags|=1,we(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),Io(e,t),t.tag=1,Ee(r)?(e=!0,yo(t)):e=!1,zn(t,n),xc(t,r,o),Wl(t,r,o,n),Yl(null,t,r,!0,e,n);case 19:return Hc(e,t,n);case 22:return zc(e,t,n)}throw Error(_(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 gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B1(e){if(typeof e=="function")return gs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ci)return 11;if(e===_i)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 Wo(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")gs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case dn:return Kt(n.children,o,i,t);case xi:l=8,o|=8;break;case ki:return e=Ve(12,n,t,o|2),e.elementType=ki,e.lanes=i,e;case Si:return e=Ve(13,n,t,o),e.elementType=Si,e.lanes=i,e;case bi:return e=Ve(19,n,t,o),e.elementType=bi,e.lanes=i,e;case ga:return Qo(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 Ci:l=11;break e;case _i:l=14;break e;case gt:l=16,r=null;break e}throw Error(_(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 Qo(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=ga,e.lanes=n,e.stateNode={isHidden:!1},e}function ys(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function vs(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=Zi(0),this.expirationTimes=Zi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ws(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},Pl(i),e}function F1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cn,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(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ee(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Ee(n))return Ou(e,n,t)}return t}function ud(e,t,n,r,o,i,l,s,a){return e=ws(n,r,!0,e,o,i,l,s,a),e.context=ad(null),n=e.current,r=xe(),o=Mt(n),i=pt(r,o),i.callback=t??null,jt(n,i,o),e.current.lanes=o,qn(e,o,r),je(e,r),e}function Go(e,t,n,r){var o=t.current,i=xe(),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),_o(e,o,l)),l}function Xo(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 xs(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 ks(e){this._internalRoot=e}Yo.prototype.render=ks.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Go(e,t,null,null)},Yo.prototype.unmount=ks.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gt(function(){Go(null,e,null,null)}),t[at]=null}};function Yo(e){this._internalRoot=e}Yo.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 Cs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ko(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=Xo(l);i.call(u)}}var l=ud(t,r,e,0,null,!1,!1,"",fd);return e._reactRootContainer=l,e[at]=l.current,fr(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=Xo(a);s.call(u)}}var a=ws(e,0,!1,null,null,!1,!1,"",fd);return e._reactRootContainer=a,e[at]=a.current,fr(e.nodeType===8?e.parentNode:e),Gt(function(){Go(t,a,n,r)}),a}function qo(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=Xo(l);s.call(a)}}Go(t,l,e,o)}else l=Z1(n,t,e,o,r);return Xo(l)}Wa=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kn(t.pendingLanes);n!==0&&(Wi(t,n|1),je(t,q()),!(O&6)&&(In=q()+500,Lt()))}break;case 13:Gt(function(){var r=ft(e,1);if(r!==null){var o=xe();Ke(r,e,1,o)}}),xs(e,1)}},Qi=function(e){if(e.tag===13){var t=ft(e,134217728);if(t!==null){var n=xe();Ke(t,e,134217728,n)}xs(e,134217728)}},Qa=function(e){if(e.tag===13){var t=Mt(e),n=ft(e,t);if(n!==null){var r=xe();Ke(n,e,t,r)}xs(e,t)}},Ga=function(){return H},Xa=function(e,t){var n=H;try{return H=e,t()}finally{H=n}},$i=function(e,t,n){switch(t){case"input":if(Ri(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=mo(r);if(!o)throw Error(_(90));wa(r),Ri(r,o)}}}break;case"textarea":ba(e,n);break;case"select":t=n.value,t!=null&&fn(e,!!n.multiple,t,!1)}},Ma=ps,Na=Gt;var W1={usingClientEntryPoint:!1,Events:[mr,Cn,mo,Ra,Pa,ps]},jr={findFiberByHostInstance:At,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Q1={bundleType:jr.bundleType,version:jr.version,rendererPackageName:jr.rendererPackageName,rendererConfig:jr.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:jr.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 Jo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jo.isDisabled&&Jo.supportsFiber)try{Xr=Jo.inject(Q1),qe=Jo}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W1,ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cs(t))throw Error(_(200));return F1(e,t,null,n)},ze.createRoot=function(e,t){if(!Cs(e))throw Error(_(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=ws(e,1,!1,null,null,n,!1,r,o),e[at]=t.current,fr(e.nodeType===8?e.parentNode:e),new ks(t)},ze.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(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=Da(t),e=e===null?null:e.stateNode,e},ze.flushSync=function(e){return Gt(e)},ze.hydrate=function(e,t,n){if(!Ko(t))throw Error(_(200));return qo(null,e,t,!0,n)},ze.hydrateRoot=function(e,t,n){if(!Cs(e))throw Error(_(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,fr(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 Yo(t)},ze.render=function(e,t,n){if(!Ko(t))throw Error(_(200));return qo(null,e,t,!1,n)},ze.unmountComponentAtNode=function(e){if(!Ko(e))throw Error(_(40));return e._reactRootContainer?(Gt(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[at]=null})}),!0):!1},ze.unstable_batchedUpdates=ps,ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ko(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return qo(e,t,n,!1,r)},ze.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=ze;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(d){i===1&&(d||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,d,l):i===3&&(d||l)?(a.push(3,d,l),i=2):i===2&&l==="..."&&d?a.push(4,d,0):i===2&&l&&!d?a.push(5,0,!0,l):i>=5&&((l||!d&&i===5)&&(a.push(i,0,l,o),i=6),d&&(a.push(i,d,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
|
|
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}
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function as(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uh=typeof WeakMap=="function"?WeakMap:Map;function Bc(e,t,n){n=yt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jo||(Jo=!0,Ss=r),us(e,t)},n}function Vc(e,t,n){n=yt(-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(){us(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){us(e,t),typeof r!="function"&&(Ht===null?Ht=new Set([this]):Ht.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Fc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uh;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=bh.bind(null,e,t,n),t.then(e,e))}function Uc(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 Zc(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=yt(-1,1),t.tag=2,$t(n,t,1))),n.lanes|=1),e)}var ch=dt.ReactCurrentOwner,Pe=!1;function Ce(e,t,n,r){t.child=e===null?dc(t,null,n,r):On(t,e.child,n,r)}function Wc(e,t,n,r,o){n=n.render;var i=t.ref;return $n(t,o),r=es(e,t,n,r,i,o),n=ts(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vt(e,t,o)):(X&&n&&$l(t),t.flags|=1,Ce(e,t,r,o),t.child)}function Qc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Rs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Yc(e,t,i,r,o)):(e=ii(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:wr,n(l,r)&&e.ref===t.ref)return vt(e,t,o)}return t.flags|=1,e=Ft(i,r),e.ref=t.ref,e.return=t,t.child=e}function Yc(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(wr(i,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,vt(e,t,o)}return cs(e,t,n,r,o)}function Xc(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},Z(Bn,De),De|=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,Z(Bn,De),De|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Z(Bn,De),De|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Z(Bn,De),De|=r;return Ce(e,t,o,n),t.child}function Gc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cs(e,t,n,r,o){var i=Te(n)?Xt:ge.current;return i=Rn(t,i),$n(t,o),n=es(e,t,n,r,i,o),r=ts(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vt(e,t,o)):(X&&r&&$l(t),t.flags|=1,Ce(e,t,n,o),t.child)}function Kc(e,t,n,r,o){if(Te(n)){var i=!0;Po(t)}else i=!1;if($n(t,o),t.stateNode===null)Yo(e,t),Hc(t,n,r),ss(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=Be(u):(u=Te(n)?Xt:ge.current,u=Rn(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Ac(t,l,r,u),It=!1;var h=t.memoizedState;l.state=h,Ho(t,r,l,o),a=t.memoizedState,s!==r||h!==a||je.current||It?(typeof c=="function"&&(ls(t,n,c,r),a=t.memoizedState),(s=It||Dc(t,n,s,r,h,a,u))?(f||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,pc(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ge(t.type,s),l.props=u,f=t.pendingProps,h=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Be(a):(a=Te(n)?Xt:ge.current,a=Rn(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||h!==a)&&Ac(t,l,r,a),It=!1,h=t.memoizedState,l.state=h,Ho(t,r,l,o);var x=t.memoizedState;s!==f||h!==x||je.current||It?(typeof y=="function"&&(ls(t,n,y,r),x=t.memoizedState),(u=It||Dc(t,n,u,r,h,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&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===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&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ds(e,t,n,r,i,o)}function ds(e,t,n,r,o,i){Gc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&nc(t,n,!1),vt(e,t,i);r=t.stateNode,ch.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=On(t,e.child,null,i),t.child=On(t,null,s,i)):Ce(e,t,s,i),t.memoizedState=r.state,o&&nc(t,n,!0),t.child}function qc(e){var t=e.stateNode;t.pendingContext?ec(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ec(e,t.context,!1),Yl(e,t.containerInfo)}function Jc(e,t,n,r,o){return Nn(),Bl(o),t.flags|=256,Ce(e,t,n,r),t.child}var fs={dehydrated:null,treeContext:null,retryLane:0};function ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function ed(e,t,n){var r=t.pendingProps,o=K.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),Z(K,o&1),e===null)return Al(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=li(l,r,0,null),e=ln(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ps(n),t.memoizedState=fs,e):hs(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return dh(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=Ft(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Ft(s,i):(i=ln(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?ps(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=fs,r}return i=e.child,e=i.sibling,r=Ft(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 hs(e,t){return t=li({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qo(e,t,n,r){return r!==null&&Bl(r),On(t,e.child,null,n),e=hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dh(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=as(Error(_(422))),Qo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=li({mode:"visible",children:r.children},o,0,null),i=ln(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&On(t,e.child,null,l),t.child.memoizedState=ps(l),t.memoizedState=fs,i);if(!(t.mode&1))return Qo(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(_(419)),r=as(i,r,void 0),Qo(e,t,l,r)}if(s=(l&e.childLanes)!==0,Pe||s){if(r=ue,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,gt(e,o),Je(r,e,o,-1))}return Ps(),r=as(Error(_(421))),Qo(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Sh.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,$e=zt(o.nextSibling),Ie=t,X=!0,Xe=null,e!==null&&(He[Ae++]=ht,He[Ae++]=mt,He[Ae++]=Gt,ht=e.id,mt=e.overflow,Gt=t),t=hs(t,r.children),t.flags|=4096,t)}function td(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zl(e.return,t,n)}function ms(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 nd(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ce(e,t,r.children,n),r=K.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&&td(e,n,t);else if(e.tag===19)td(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(Z(K,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&&Ao(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ms(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&&Ao(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ms(t,!0,n,null,i);break;case"together":ms(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fh(e,t,n){switch(t.tag){case 3:qc(t),Nn();break;case 5:gc(t);break;case 1:Te(t.type)&&Po(t);break;case 4:Yl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Z(Io,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Z(K,K.current&1),t.flags|=128,null):n&t.child.childLanes?ed(e,t,n):(Z(K,K.current&1),e=vt(e,t,n),e!==null?e.sibling:null);Z(K,K.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(K,K.current),r)break;return null;case 22:case 23:return t.lanes=0,Xc(e,t,n)}return vt(e,t,n)}var rd,gs,od,id;rd=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}},gs=function(){},od=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Jt(rt.current);var i=null;switch(n){case"input":o=Zi(e,o),r=Zi(e,r),i=[];break;case"select":o=G({},o,{value:void 0}),r=G({},r,{value:void 0}),i=[];break;case"textarea":o=Yi(e,o),r=Yi(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lo)}Gi(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"&&(qn.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"&&(qn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&W("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)}},id=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nr(e,t){if(!X)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 ve(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 ph(e,t,n){var r=t.pendingProps;switch(Dl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Te(t.type)&&To(),ve(t),null;case 3:return r=t.stateNode,Dn(),Q(je),Q(ge),Kl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(No(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xe!==null&&(Ls(Xe),Xe=null))),gs(e,t),ve(t),null;case 5:Xl(t);var o=Jt(Tr.current);if(n=t.type,e!==null&&t.stateNode!=null)od(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return ve(t),null}if(e=Jt(rt.current),No(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[nt]=t,r[Sr]=i,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(o=0;o<kr.length;o++)W(kr[o],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":Ha(r,i),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},W("invalid",r);break;case"textarea":Va(r,i),W("invalid",r)}Gi(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&&Eo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Eo(r.textContent,s,e),o=["children",""+s]):qn.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&W("scroll",r)}switch(n){case"input":no(r),Ba(r,i,!0);break;case"textarea":no(r),Ua(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Lo)}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=Za(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[nt]=t,e[Sr]=r,rd(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ki(n,r),n){case"dialog":W("cancel",e),W("close",e),o=r;break;case"iframe":case"object":case"embed":W("load",e),o=r;break;case"video":case"audio":for(o=0;o<kr.length;o++)W(kr[o],e);o=r;break;case"source":W("error",e),o=r;break;case"img":case"image":case"link":W("error",e),W("load",e),o=r;break;case"details":W("toggle",e),o=r;break;case"input":Ha(e,r),o=Zi(e,r),W("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=G({},r,{value:void 0}),W("invalid",e);break;case"textarea":Va(e,r),o=Yi(e,r),W("invalid",e);break;default:o=r}Gi(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?Ya(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Wa(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&nr(e,a):typeof a=="number"&&nr(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(qn.hasOwnProperty(i)?a!=null&&i==="onScroll"&&W("scroll",e):a!=null&&Ni(e,i,a,l))}switch(n){case"input":no(e),Ba(e,r,!1);break;case"textarea":no(e),Ua(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_t(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?wn(e,!!r.multiple,i,!1):r.defaultValue!=null&&wn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Lo)}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 ve(t),null;case 6:if(e&&t.stateNode!=null)id(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Jt(Tr.current),Jt(rt.current),No(t)){if(r=t.stateNode,n=t.memoizedProps,r[nt]=t,(i=r.nodeValue!==n)&&(e=Ie,e!==null))switch(e.tag){case 3:Eo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Eo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nt]=t,t.stateNode=r}return ve(t),null;case 13:if(Q(K),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&$e!==null&&t.mode&1&&!(t.flags&128))ac(),Nn(),t.flags|=98560,i=!1;else if(i=No(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[nt]=t}else Nn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),i=!1}else Xe!==null&&(Ls(Xe),Xe=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||K.current&1?le===0&&(le=3):Ps())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return Dn(),gs(e,t),e===null&&Cr(t.stateNode.containerInfo),ve(t),null;case 10:return Ul(t.type._context),ve(t),null;case 17:return Te(t.type)&&To(),ve(t),null;case 19:if(Q(K),i=t.memoizedState,i===null)return ve(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)Nr(i,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ao(e),l!==null){for(t.flags|=128,Nr(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 Z(K,K.current&1|2),t.child}e=e.sibling}i.tail!==null&&re()>Vn&&(t.flags|=128,r=!0,Nr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ao(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!X)return ve(t),null}else 2*re()-i.renderingStartTime>Vn&&n!==1073741824&&(t.flags|=128,r=!0,Nr(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=re(),t.sibling=null,n=K.current,Z(K,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Ts(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function hh(e,t){switch(Dl(t),t.tag){case 1:return Te(t.type)&&To(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(),Q(je),Q(ge),Kl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xl(t),null;case 13:if(Q(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(K),null;case 4:return Dn(),null;case 10:return Ul(t.type._context),null;case 22:case 23:return Ts(),null;case 24:return null;default:return null}}var Xo=!1,we=!1,mh=typeof WeakSet=="function"?WeakSet:Set,j=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function ys(e,t,n){try{n()}catch(r){te(e,t,r)}}var ld=!1;function gh(e,t){if(Tl=mo,e=Du(),kl(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,f=e,h=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(y=f.firstChild)!==null;)h=f,f=y;for(;;){if(f===e)break t;if(h===n&&++u===o&&(s=l),h===i&&++c===r&&(a=l),(y=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pl={focusedElem:e,selectionRange:n},mo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;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 v=x.memoizedProps,E=x.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ge(t.type,v),E);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(_(163))}}catch(b){te(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return x=ld,ld=!1,x}function Or(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&&ys(t,n,i)}o=o.next}while(o!==r)}}function Go(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 vs(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 sd(e){var t=e.alternate;t!==null&&(e.alternate=null,sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[Sr],delete t[Nl],delete t[q1],delete t[J1])),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 ad(e){return e.tag===5||e.tag===3||e.tag===4}function ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(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 ws(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=Lo));else if(r!==4&&(e=e.child,e!==null))for(ws(e,t,n),e=e.sibling;e!==null;)ws(e,t,n),e=e.sibling}function xs(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(xs(e,t,n),e=e.sibling;e!==null;)xs(e,t,n),e=e.sibling}var fe=null,Ke=!1;function Dt(e,t,n){for(n=n.child;n!==null;)cd(e,t,n),n=n.sibling}function cd(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(ao,n)}catch{}switch(n.tag){case 5:we||An(n,t);case 6:var r=fe,o=Ke;fe=null,Dt(e,t,n),fe=r,Ke=o,fe!==null&&(Ke?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Ke?(e=fe,n=n.stateNode,e.nodeType===8?Ml(e.parentNode,n):e.nodeType===1&&Ml(e,n),pr(e)):Ml(fe,n.stateNode));break;case 4:r=fe,o=Ke,fe=n.stateNode.containerInfo,Ke=!0,Dt(e,t,n),fe=r,Ke=o;break;case 0:case 11:case 14:case 15:if(!we&&(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)&&ys(n,t,l),o=o.next}while(o!==r)}Dt(e,t,n);break;case 1:if(!we&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){te(n,t,s)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Dt(e,t,n),we=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function dd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mh),t.forEach(function(r){var o=_h.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function qe(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:fe=s.stateNode,Ke=!1;break e;case 3:fe=s.stateNode.containerInfo,Ke=!0;break e;case 4:fe=s.stateNode.containerInfo,Ke=!0;break e}s=s.return}if(fe===null)throw Error(_(160));cd(i,l,o),fe=null,Ke=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){te(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}function fd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qe(t,e),it(e),r&4){try{Or(3,e,e.return),Go(3,e)}catch(v){te(e,e.return,v)}try{Or(5,e,e.return)}catch(v){te(e,e.return,v)}}break;case 1:qe(t,e),it(e),r&512&&n!==null&&An(n,n.return);break;case 5:if(qe(t,e),it(e),r&512&&n!==null&&An(n,n.return),e.flags&32){var o=e.stateNode;try{nr(o,"")}catch(v){te(e,e.return,v)}}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&&Aa(o,i),Ki(s,l);var u=Ki(s,i);for(l=0;l<a.length;l+=2){var c=a[l],f=a[l+1];c==="style"?Ya(o,f):c==="dangerouslySetInnerHTML"?Wa(o,f):c==="children"?nr(o,f):Ni(o,c,f,u)}switch(s){case"input":Wi(o,i);break;case"textarea":Fa(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?wn(o,!!i.multiple,y,!1):h!==!!i.multiple&&(i.defaultValue!=null?wn(o,!!i.multiple,i.defaultValue,!0):wn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Sr]=i}catch(v){te(e,e.return,v)}}break;case 6:if(qe(t,e),it(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){te(e,e.return,v)}}break;case 3:if(qe(t,e),it(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(v){te(e,e.return,v)}break;case 4:qe(t,e),it(e);break;case 13:qe(t,e),it(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(bs=re())),r&4&&dd(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(we=(u=we)||c,qe(t,e),we=u):qe(t,e),it(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(j=e,c=e.child;c!==null;){for(f=j=c;j!==null;){switch(h=j,y=h.child,h.tag){case 0:case 11:case 14:case 15:Or(4,h,h.return);break;case 1:An(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){te(r,n,v)}}break;case 5:An(h,h.return);break;case 22:if(h.memoizedState!==null){md(f);continue}}y!==null?(y.return=h,j=y):md(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,a=f.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Qa("display",l))}catch(v){te(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){te(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:qe(t,e),it(e),r&4&&dd(e);break;case 21:break;default:qe(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ad(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(nr(o,""),r.flags&=-33);var i=ud(e);xs(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=ud(e);ws(e,s,l);break;default:throw Error(_(161))}}catch(a){te(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yh(e,t,n){j=e,pd(e)}function pd(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var o=j,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Xo;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||we;s=Xo;var u=we;if(Xo=l,(we=a)&&!u)for(j=o;j!==null;)l=j,a=l.child,l.tag===22&&l.memoizedState!==null?gd(o):a!==null?(a.return=l,j=a):gd(o);for(;i!==null;)j=i,pd(i),i=i.sibling;j=o,Xo=s,we=u}hd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,j=i):hd(e)}}function hd(e){for(;j!==null;){var t=j;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:we||Go(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!we)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&&mc(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}mc(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 f=c.dehydrated;f!==null&&pr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}we||t.flags&512&&vs(t)}catch(h){te(t,t.return,h)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function md(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function gd(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Go(4,t)}catch(a){te(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){te(t,o,a)}}var i=t.return;try{vs(t)}catch(a){te(t,i,a)}break;case 5:var l=t.return;try{vs(t)}catch(a){te(t,l,a)}}}catch(a){te(t,t.return,a)}if(t===e){j=null;break}var s=t.sibling;if(s!==null){s.return=t.return,j=s;break}j=t.return}}var vh=Math.ceil,Ko=dt.ReactCurrentDispatcher,ks=dt.ReactCurrentOwner,Fe=dt.ReactCurrentBatchConfig,I=0,ue=null,oe=null,pe=0,De=0,Bn=Mt(0),le=0,Ir=null,tn=0,qo=0,Cs=0,$r=null,Re=null,bs=0,Vn=1/0,wt=null,Jo=!1,Ss=null,Ht=null,ei=!1,At=null,ti=0,Dr=0,_s=null,ni=-1,ri=0;function be(){return I&6?re():ni!==-1?ni:ni=re()}function Bt(e){return e.mode&1?I&2&&pe!==0?pe&-pe:th.transition!==null?(ri===0&&(ri=uu()),ri):(e=A,e!==0||(e=window.event,e=e===void 0?16:vu(e.type)),e):1}function Je(e,t,n,r){if(50<Dr)throw Dr=0,_s=null,Error(_(185));ar(e,n,r),(!(I&2)||e!==ue)&&(e===ue&&(!(I&2)&&(qo|=n),le===4&&Vt(e,pe)),ze(e,r),n===1&&I===0&&!(t.mode&1)&&(Vn=re()+500,Ro&&Ot()))}function ze(e,t){var n=e.callbackNode;t1(e,t);var r=fo(e,e===ue?pe:0);if(r===0)n!==null&&lu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lu(n),t===1)e.tag===0?eh(vd.bind(null,e)):rc(vd.bind(null,e)),G1(function(){!(I&6)&&Ot()}),n=null;else{switch(cu(r)){case 1:n=ol;break;case 4:n=su;break;case 16:n=so;break;case 536870912:n=au;break;default:n=so}n=Ed(n,yd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yd(e,t){if(ni=-1,ri=0,I&6)throw Error(_(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=fo(e,e===ue?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=oi(e,r);else{t=r;var o=I;I|=2;var i=xd();(ue!==e||pe!==t)&&(wt=null,Vn=re()+500,rn(e,t));do try{kh();break}catch(s){wd(e,s)}while(!0);Fl(),Ko.current=i,I=o,oe!==null?t=0:(ue=null,pe=0,t=le)}if(t!==0){if(t===2&&(o=il(e),o!==0&&(r=o,t=Es(e,o))),t===1)throw n=Ir,rn(e,0),Vt(e,r),ze(e,re()),n;if(t===6)Vt(e,r);else{if(o=e.current.alternate,!(r&30)&&!wh(o)&&(t=oi(e,r),t===2&&(i=il(e),i!==0&&(r=i,t=Es(e,i))),t===1))throw n=Ir,rn(e,0),Vt(e,r),ze(e,re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:on(e,Re,wt);break;case 3:if(Vt(e,r),(r&130023424)===r&&(t=bs+500-re(),10<t)){if(fo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){be(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zl(on.bind(null,e,Re,wt),t);break}on(e,Re,wt);break;case 4:if(Vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Qe(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vh(r/1960))-r,10<r){e.timeoutHandle=zl(on.bind(null,e,Re,wt),r);break}on(e,Re,wt);break;case 5:on(e,Re,wt);break;default:throw Error(_(329))}}}return ze(e,re()),e.callbackNode===n?yd.bind(null,e):null}function Es(e,t){var n=$r;return e.current.memoizedState.isDehydrated&&(rn(e,t).flags|=256),e=oi(e,t),e!==2&&(t=Re,Re=n,t!==null&&Ls(t)),e}function Ls(e){Re===null?Re=e:Re.push.apply(Re,e)}function wh(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(!Ye(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 Vt(e,t){for(t&=~Cs,t&=~qo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qe(t),r=1<<n;e[n]=-1,t&=~r}}function vd(e){if(I&6)throw Error(_(327));Fn();var t=fo(e,0);if(!(t&1))return ze(e,re()),null;var n=oi(e,t);if(e.tag!==0&&n===2){var r=il(e);r!==0&&(t=r,n=Es(e,r))}if(n===1)throw n=Ir,rn(e,0),Vt(e,t),ze(e,re()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Re,wt),ze(e,re()),null}function js(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(Vn=re()+500,Ro&&Ot())}}function nn(e){At!==null&&At.tag===0&&!(I&6)&&Fn();var t=I;I|=1;var n=Fe.transition,r=A;try{if(Fe.transition=null,A=1,e)return e()}finally{A=r,Fe.transition=n,I=t,!(I&6)&&Ot()}}function Ts(){De=Bn.current,Q(Bn)}function rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,X1(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(Dl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&To();break;case 3:Dn(),Q(je),Q(ge),Kl();break;case 5:Xl(r);break;case 4:Dn();break;case 13:Q(K);break;case 19:Q(K);break;case 10:Ul(r.type._context);break;case 22:case 23:Ts()}n=n.return}if(ue=e,oe=e=Ft(e.current,null),pe=De=t,le=0,Ir=null,Cs=qo=tn=0,Re=$r=null,qt!==null){for(t=0;t<qt.length;t++)if(n=qt[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}qt=null}return e}function wd(e,t){do{var n=oe;try{if(Fl(),Bo.current=Zo,Vo){for(var r=q.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vo=!1}if(en=0,ae=ie=q=null,Pr=!1,Rr=0,ks.current=null,n===null||n.return===null){le=1,Ir=t,oe=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=pe,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=Uc(l);if(y!==null){y.flags&=-257,Zc(y,l,s,i,t),y.mode&1&&Fc(i,u,t),t=y,a=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(a),t.updateQueue=v}else x.add(a);break e}else{if(!(t&1)){Fc(i,u,t),Ps();break e}a=Error(_(426))}}else if(X&&s.mode&1){var E=Uc(l);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Zc(E,l,s,i,t),Bl(Hn(a,s));break e}}i=a=Hn(a,s),le!==4&&(le=2),$r===null?$r=[i]:$r.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Bc(i,a,t);hc(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"&&(Ht===null||!Ht.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=Vc(i,s,t);hc(i,b);break e}}i=i.return}while(i!==null)}Cd(n)}catch(S){t=S,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function xd(){var e=Ko.current;return Ko.current=Zo,e===null?Zo:e}function Ps(){(le===0||le===3||le===2)&&(le=4),ue===null||!(tn&268435455)&&!(qo&268435455)||Vt(ue,pe)}function oi(e,t){var n=I;I|=2;var r=xd();(ue!==e||pe!==t)&&(wt=null,rn(e,t));do try{xh();break}catch(o){wd(e,o)}while(!0);if(Fl(),I=n,Ko.current=r,oe!==null)throw Error(_(261));return ue=null,pe=0,le}function xh(){for(;oe!==null;)kd(oe)}function kh(){for(;oe!==null&&!Wp();)kd(oe)}function kd(e){var t=_d(e.alternate,e,De);e.memoizedProps=e.pendingProps,t===null?Cd(e):oe=t,ks.current=null}function Cd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hh(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,oe=null;return}}else if(n=ph(n,t,De),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);le===0&&(le=5)}function on(e,t,n){var r=A,o=Fe.transition;try{Fe.transition=null,A=1,Ch(e,t,n,r)}finally{Fe.transition=o,A=r}return null}function Ch(e,t,n,r){do Fn();while(At!==null);if(I&6)throw Error(_(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(_(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(n1(e,i),e===ue&&(oe=ue=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ei||(ei=!0,Ed(so,function(){return Fn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Fe.transition,Fe.transition=null;var l=A;A=1;var s=I;I|=4,ks.current=null,gh(e,n),fd(n,e),V1(Pl),mo=!!Tl,Pl=Tl=null,e.current=n,yh(n),Qp(),I=s,A=l,Fe.transition=i}else e.current=n;if(ei&&(ei=!1,At=e,ti=o),i=e.pendingLanes,i===0&&(Ht=null),Gp(n.stateNode),ze(e,re()),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(Jo)throw Jo=!1,e=Ss,Ss=null,e;return ti&1&&e.tag!==0&&Fn(),i=e.pendingLanes,i&1?e===_s?Dr++:(Dr=0,_s=e):Dr=0,Ot(),null}function Fn(){if(At!==null){var e=cu(ti),t=Fe.transition,n=A;try{if(Fe.transition=null,A=16>e?16:e,At===null)var r=!1;else{if(e=At,At=null,ti=0,I&6)throw Error(_(331));var o=I;for(I|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(j=u;j!==null;){var c=j;switch(c.tag){case 0:case 11:case 15:Or(8,c,i)}var f=c.child;if(f!==null)f.return=c,j=f;else for(;j!==null;){c=j;var h=c.sibling,y=c.return;if(sd(c),c===u){j=null;break}if(h!==null){h.return=y,j=h;break}j=y}}}var x=i.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}j=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,j=l;else e:for(;j!==null;){if(i=j,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Or(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,j=m;break e}j=i.return}}var d=e.current;for(j=d;j!==null;){l=j;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,j=g;else e:for(l=d;j!==null;){if(s=j,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Go(9,s)}}catch(S){te(s,s.return,S)}if(s===l){j=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,j=b;break e}j=s.return}}if(I=o,Ot(),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(ao,e)}catch{}r=!0}return r}finally{A=n,Fe.transition=t}}return!1}function bd(e,t,n){t=Hn(n,t),t=Bc(e,t,1),e=$t(e,t,1),t=be(),e!==null&&(ar(e,1,t),ze(e,t))}function te(e,t,n){if(e.tag===3)bd(e,e,n);else for(;t!==null;){if(t.tag===3){bd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ht===null||!Ht.has(r))){e=Hn(n,e),e=Vc(t,e,1),t=$t(t,e,1),e=be(),t!==null&&(ar(t,1,e),ze(t,e));break}}t=t.return}}function bh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=be(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(pe&n)===n&&(le===4||le===3&&(pe&130023424)===pe&&500>re()-bs?rn(e,0):Cs|=n),ze(e,t)}function Sd(e,t){t===0&&(e.mode&1?(t=co,co<<=1,!(co&130023424)&&(co=4194304)):t=1);var n=be();e=gt(e,t),e!==null&&(ar(e,t,n),ze(e,n))}function Sh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sd(e,n)}function _h(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(_(314))}r!==null&&r.delete(t),Sd(e,n)}var _d;_d=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,fh(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,X&&t.flags&1048576&&oc(t,Mo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yo(e,t),e=t.pendingProps;var o=Rn(t,ge.current);$n(t,n),o=es(null,t,r,e,o,n);var i=ts();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,Te(r)?(i=!0,Po(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ql(t),o.updater=Wo,t.stateNode=o,o._reactInternals=t,ss(t,r,e,n),t=ds(null,t,r,!0,i,n)):(t.tag=0,X&&i&&$l(t),Ce(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lh(r),e=Ge(r,e),o){case 0:t=cs(null,t,r,e,n);break e;case 1:t=Kc(null,t,r,e,n);break e;case 11:t=Wc(null,t,r,e,n);break e;case 14:t=Qc(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),cs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Kc(e,t,r,o,n);case 3:e:{if(qc(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,pc(e,t),Ho(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=Hn(Error(_(423)),t),t=Jc(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(_(424)),t),t=Jc(e,t,r,n,o);break e}else for($e=zt(t.stateNode.containerInfo.firstChild),Ie=t,X=!0,Xe=null,n=dc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nn(),r===o){t=vt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&Al(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Rl(r,o)?l=null:i!==null&&Rl(r,i)&&(t.flags|=32),Gc(e,t),Ce(e,t,l,n),t.child;case 6:return e===null&&Al(t),null;case 13:return ed(e,t,n);case 4:return Yl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Wc(e,t,r,o,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(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,Z(Io,r._currentValue),r._currentValue=l,i!==null)if(Ye(i.value,l)){if(i.children===o.children&&!je.current){t=vt(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=yt(-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),Zl(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(_(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Zl(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}Ce(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$n(t,n),o=Be(o),r=r(o),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,o=Ge(r,t.pendingProps),o=Ge(r.type,o),Qc(e,t,r,o,n);case 15:return Yc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Yo(e,t),t.tag=1,Te(r)?(e=!0,Po(t)):e=!1,$n(t,n),Hc(t,r,o),ss(t,r,o,n),ds(null,t,r,!0,e,n);case 19:return nd(e,t,n);case 22:return Xc(e,t,n)}throw Error(_(156,t.tag))};function Ed(e,t){return iu(e,t)}function Eh(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 Ue(e,t,n,r){return new Eh(e,t,n,r)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lh(e){if(typeof e=="function")return Rs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$i)return 11;if(e===Ai)return 14}return 2}function Ft(e,t){var n=e.alternate;return n===null?(n=Ue(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 ii(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Rs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case vn:return ln(n.children,o,i,t);case Oi:l=8,o|=8;break;case Ii:return e=Ue(12,n,t,o|2),e.elementType=Ii,e.lanes=i,e;case Di:return e=Ue(13,n,t,o),e.elementType=Di,e.lanes=i,e;case Hi:return e=Ue(19,n,t,o),e.elementType=Hi,e.lanes=i,e;case Oa:return li(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ma:l=10;break e;case Na:l=9;break e;case $i:l=11;break e;case Ai:l=14;break e;case St:l=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ue(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ln(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function li(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=Oa,e.lanes=n,e.stateNode={isHidden:!1},e}function zs(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function Ms(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jh(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=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ns(e,t,n,r,o,i,l,s,a){return e=new jh(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ue(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ql(i),e}function Th(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ld(e){if(!e)return Nt;e=e._reactInternals;e:{if(Qt(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Te(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Te(n))return tc(e,n,t)}return t}function jd(e,t,n,r,o,i,l,s,a){return e=Ns(n,r,!0,e,o,i,l,s,a),e.context=Ld(null),n=e.current,r=be(),o=Bt(n),i=yt(r,o),i.callback=t??null,$t(n,i,o),e.current.lanes=o,ar(e,o,r),ze(e,r),e}function si(e,t,n,r){var o=t.current,i=be(),l=Bt(o);return n=Ld(n),t.context===null?t.context=n:t.pendingContext=n,t=yt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$t(o,t,l),e!==null&&(Je(e,o,l,i),Do(e,o,l)),l}function ai(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 Td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Os(e,t){Td(e,t),(e=e.alternate)&&Td(e,t)}function Ph(){return null}var Pd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Is(e){this._internalRoot=e}ui.prototype.render=Is.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));si(e,t,null,null)},ui.prototype.unmount=Is.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nn(function(){si(null,e,null,null)}),t[ft]=null}};function ui(e){this._internalRoot=e}ui.prototype.unstable_scheduleHydration=function(e){if(e){var t=pu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&t!==0&&t<Tt[n].priority;n++);Tt.splice(n,0,e),n===0&&gu(e)}};function $s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ci(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Rd(){}function Rh(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ai(l);i.call(u)}}var l=jd(t,r,e,0,null,!1,!1,"",Rd);return e._reactRootContainer=l,e[ft]=l.current,Cr(e.nodeType===8?e.parentNode:e),nn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=ai(a);s.call(u)}}var a=Ns(e,0,!1,null,null,!1,!1,"",Rd);return e._reactRootContainer=a,e[ft]=a.current,Cr(e.nodeType===8?e.parentNode:e),nn(function(){si(t,a,n,r)}),a}function di(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=ai(l);s.call(a)}}si(t,l,e,o)}else l=Rh(n,t,e,o,r);return ai(l)}du=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sr(t.pendingLanes);n!==0&&(sl(t,n|1),ze(t,re()),!(I&6)&&(Vn=re()+500,Ot()))}break;case 13:nn(function(){var r=gt(e,1);if(r!==null){var o=be();Je(r,e,1,o)}}),Os(e,1)}},al=function(e){if(e.tag===13){var t=gt(e,134217728);if(t!==null){var n=be();Je(t,e,134217728,n)}Os(e,134217728)}},fu=function(e){if(e.tag===13){var t=Bt(e),n=gt(e,t);if(n!==null){var r=be();Je(n,e,t,r)}Os(e,t)}},pu=function(){return A},hu=function(e,t){var n=A;try{return A=e,t()}finally{A=n}},el=function(e,t,n){switch(t){case"input":if(Wi(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=jo(r);if(!o)throw Error(_(90));Da(r),Wi(r,o)}}}break;case"textarea":Fa(e,n);break;case"select":t=n.value,t!=null&&wn(e,!!n.multiple,t,!1)}},qa=js,Ja=nn;var zh={usingClientEntryPoint:!1,Events:[_r,Tn,jo,Ga,Ka,js]},Hr={findFiberByHostInstance:Yt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Mh={bundleType:Hr.bundleType,version:Hr.version,rendererPackageName:Hr.rendererPackageName,rendererConfig:Hr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ru(e),e===null?null:e.stateNode},findFiberByHostInstance:Hr.findFiberByHostInstance||Ph,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 fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fi.isDisabled&&fi.supportsFiber)try{ao=fi.inject(Mh),tt=fi}catch{}}Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zh,Me.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$s(t))throw Error(_(200));return Th(e,t,null,n)},Me.createRoot=function(e,t){if(!$s(e))throw Error(_(299));var n=!1,r="",o=Pd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ns(e,1,!1,null,null,n,!1,r,o),e[ft]=t.current,Cr(e.nodeType===8?e.parentNode:e),new Is(t)},Me.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(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=ru(t),e=e===null?null:e.stateNode,e},Me.flushSync=function(e){return nn(e)},Me.hydrate=function(e,t,n){if(!ci(t))throw Error(_(200));return di(null,e,t,!0,n)},Me.hydrateRoot=function(e,t,n){if(!$s(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Pd;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=jd(t,null,e,1,n??null,o,!1,i,l),e[ft]=t.current,Cr(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 ui(t)},Me.render=function(e,t,n){if(!ci(t))throw Error(_(200));return di(null,e,t,!1,n)},Me.unmountComponentAtNode=function(e){if(!ci(e))throw Error(_(40));return e._reactRootContainer?(nn(function(){di(null,null,e,!1,function(){e._reactRootContainer=null,e[ft]=null})}),!0):!1},Me.unstable_batchedUpdates=js,Me.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ci(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return di(e,t,n,!1,r)},Me.version="18.3.1-next-f1338f8080-20240426";function zd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zd)}catch(e){console.error(e)}}zd(),La.exports=Me;var Nh=La.exports,Md,Nd=Nh;Md=Nd.createRoot,Nd.hydrateRoot;var Od=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,Od(e,s,n,["",null])),r.push(o),s[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):r.push(s)}return r},Id=new Map;function Oh(e){var t=Id.get(this);return t||(t=new Map,Id.set(this,t)),(t=Od(this,t.get(e)||(t.set(e,t=function(n){for(var r,o,i=1,l="",s="",a=[0],u=function(h){i===1&&(h||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,h,l):i===3&&(h||l)?(a.push(3,h,l),i=2):i===2&&l==="..."&&h?a.push(4,h,0):i===2&&l&&!h?a.push(5,0,!0,l):i>=5&&((l||!h&&i===5)&&(a.push(i,0,l,o),i=6),h&&(a.push(i,h,0,o),i=6)),l=""},c=0;c<n.length;c++){c&&(i===1&&u(),u(c));for(var f=0;f<n[c].length;f++)r=n[c][f],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][f+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 he=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},Se={searchParams:"URLSearchParams"in he,iterable:"Symbol"in he&&"iterator"in Symbol,blob:"FileReader"in he&&"Blob"in he&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in he,arrayBuffer:"ArrayBuffer"in he};function Ih(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Se.arrayBuffer)var $h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Dh=ArrayBuffer.isView||function(e){return e&&$h.indexOf(Object.prototype.toString.call(e))>-1};function Un(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 Ds(e){return typeof e!="string"&&(e=String(e)),e}function Hs(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Se.iterable&&(t[Symbol.iterator]=function(){return t}),t}function se(e){this.map={},e instanceof se?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)}se.prototype.append=function(e,t){e=Un(e),t=Ds(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},se.prototype.delete=function(e){delete this.map[Un(e)]},se.prototype.get=function(e){return e=Un(e),this.has(e)?this.map[e]:null},se.prototype.has=function(e){return this.map.hasOwnProperty(Un(e))},se.prototype.set=function(e,t){this.map[Un(e)]=Ds(t)},se.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},se.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),Hs(e)},se.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Hs(e)},se.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),Hs(e)},Se.iterable&&(se.prototype[Symbol.iterator]=se.prototype.entries);function As(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function $d(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function Hh(e){var t=new FileReader,n=$d(t);return t.readAsArrayBuffer(e),n}function Ah(e){var t=new FileReader,n=$d(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function Bh(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 Dd(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Hd(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Se.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Se.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Se.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Se.arrayBuffer&&Se.blob&&Ih(e)?(this._bodyArrayBuffer=Dd(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Se.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Dh(e))?this._bodyArrayBuffer=Dd(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):Se.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Se.blob&&(this.blob=function(){var e=As(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=As(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(Se.blob)return this.blob().then(Hh);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=As(this);if(e)return e;if(this._bodyBlob)return Ah(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Bh(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Se.formData&&(this.formData=function(){return this.text().then(Uh)}),this.json=function(){return this.text().then(JSON.parse)},this}var Vh=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Fh(e){var t=e.toUpperCase();return Vh.indexOf(t)>-1?t:e}function sn(e,t){if(!(this instanceof sn))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 sn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new se(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 se(t.headers)),this.method=Fh(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in he){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()}}}sn.prototype.clone=function(){return new sn(this,{body:this._bodyInit})};function Uh(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 Zh(e){var t=new se,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}Hd.call(sn.prototype);function lt(e,t){if(!(this instanceof lt))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 se(t.headers),this.url=t.url||"",this._initBody(e)}Hd.call(lt.prototype),lt.prototype.clone=function(){return new lt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new se(this.headers),url:this.url})},lt.error=function(){var e=new lt(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var Wh=[301,302,303,307,308];lt.redirect=function(e,t){if(Wh.indexOf(t)===-1)throw new RangeError("Invalid status code");return new lt(null,{status:t,headers:{location:e}})};var an=he.DOMException;try{new an}catch{an=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},an.prototype=Object.create(Error.prototype),an.prototype.constructor=an}function Ad(e,t){return new Promise(function(n,r){var o=new sn(e,t);if(o.signal&&o.signal.aborted)return r(new an("Aborted","AbortError"));var i=new XMLHttpRequest;function l(){i.abort()}i.onload=function(){var u={statusText:i.statusText,headers:Zh(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 lt(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 an("Aborted","AbortError"))},0)};function s(u){try{return u===""&&he.location.href?he.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&&(Se.blob?i.responseType="blob":Se.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof se||he.Headers&&t.headers instanceof he.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach(function(u){a.push(Un(u)),i.setRequestHeader(u,Ds(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)})}Ad.polyfill=!0,he.fetch||(he.fetch=Ad,he.Headers=se,he.Request=sn,he.Response=lt);var Qh=self.fetch.bind(self);const Yh=Le(Qh);/*! *****************************************************************************
|
|
43
43
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44
44
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
45
45
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -52,56 +52,56 @@ Error generating stack: `+i.message+`
|
|
|
52
52
|
|
|
53
53
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
54
54
|
and limitations under the License.
|
|
55
|
-
***************************************************************************** */var
|
|
55
|
+
***************************************************************************** */var Bs=function(e,t){return Bs=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])},Bs(e,t)};function Bd(e,t){Bs(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Xh(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 Gh(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 Kh(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Gh(arguments[t]));return e}var Vd=function(){function e(t,n){this.target=n,this.type=t}return e}(),qh=function(e){Bd(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}(Vd),Jh=function(e){Bd(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}(Vd);/*!
|
|
56
56
|
* Reconnecting WebSocket
|
|
57
57
|
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
|
58
58
|
* https://github.com/pladaria/reconnecting-websocket
|
|
59
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 Y(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function tn(e){return function t(n){return arguments.length===0||Y(n)?t:e.apply(this,arguments)}}function Dn(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Y(n)?t:tn(function(o){return e(n,o)});default:return Y(n)&&Y(r)?t:Y(n)?tn(function(o){return e(o,r)}):Y(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 Y(n)?t:Dn(function(i,l){return e(n,i,l)});case 2:return Y(n)&&Y(r)?t:Y(n)?Dn(function(i,l){return e(i,r,l)}):Y(r)?Dn(function(i,l){return e(n,i,l)}):tn(function(i){return e(n,r,i)});default:return Y(n)&&Y(r)&&Y(o)?t:Y(n)&&Y(r)?Dn(function(i,l){return e(i,l,o)}):Y(n)&&Y(o)?Dn(function(i,l){return e(i,r,l)}):Y(r)&&Y(o)?Dn(function(i,l){return e(n,i,l)}):Y(n)?tn(function(i){return e(i,r,o)}):Y(r)?tn(function(i){return e(n,i,o)}):Y(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 ei;const wh=new Uint8Array(16);function xh(){if(!ei&&(ei=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ei))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ei(wh)}const fe=[];for(let e=0;e<256;++e)fe.push((e+256).toString(16).slice(1));function kh(e,t=0){return fe[e[t+0]]+fe[e[t+1]]+fe[e[t+2]]+fe[e[t+3]]+"-"+fe[e[t+4]]+fe[e[t+5]]+"-"+fe[e[t+6]]+fe[e[t+7]]+"-"+fe[e[t+8]]+fe[e[t+9]]+"-"+fe[e[t+10]]+fe[e[t+11]]+fe[e[t+12]]+fe[e[t+13]]+fe[e[t+14]]+fe[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 Ls=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)&&Ls.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},d.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 Ls.warn("Invalid message structure, expected object with field 'messages'."),i()};let s,a=[],u=null;const c=async v=>{var C,b;if(s!=null){s(v,R=>{const j={type:"bot",receivedAt:new Date().getTime(),payload:R};o({responses:[...r.responses,j]},j)});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}${((b=e.experimental)==null?void 0:b.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 R=>await R.json()).then(l).catch(R=>{Ls.warn(R),i()})},h=()=>e.botUrl.indexOf("wss://")===0;let d=[];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)},T=(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}}})},f=(v,S,C)=>{let b=[...r.responses];const R={type:"user",receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:v}},j=(C==null?void 0:C.responseIndex)??-1,te=(C==null?void 0:C.messageIndex)??-1;j>-1&&te>-1&&(b=bd(j,Oe=>Oe.type==="bot"?{...Oe,payload:{...Oe.payload,messages:bd(te,it=>({...it,selectedChoiceId:v}),Oe.payload.messages)}}:Oe,b)),b=[...b,R],o({responses:b},R),c({context:S,request:{structured:{nodeId:C==null?void 0:C.nodeId,intentId:C==null?void 0:C.intentId,choiceId:v}}})},g=v=>{d=d.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:T,sendWelcomeIntent:v=>{T($h,v)},sendChoice:f,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=>(d=[...d,v],v(jd(r)),()=>{g(v)}),unsubscribe:g,unsubscribeAll:()=>{d=[]},reset:v=>{o({conversationId:Ed(),responses:(v==null?void 0:v.clearResponses)===!0?[]:r.responses}),h()&&(x(),y())},destroy:()=>{d=[],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 W(){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 $n(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ts(e){return function t(n){return arguments.length===0||$n(n)?t:e.apply(this,arguments)}}function Fh(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return $n(n)?t:Ts(function(o){return e(n,o)});default:return $n(n)&&$n(r)?t:$n(n)?Ts(function(o){return e(o,r)}):$n(r)?Ts(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 M=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",...M(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",...M(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",...M(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",...M(e),children:p.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),Jh=e=>p.jsx("svg",{viewBox:"0 0 24 24",...M(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",...M(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",...M(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",...M(e),children:p.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),js=e=>p.jsx("svg",{viewBox:"0 0 24 24",...M(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",...M(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",...M(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",...M(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",...M(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",...M(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",...M(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",...M(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",...M(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",...M(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",...M(e),children:p.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),s0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...M(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",...M(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",...M(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",...M(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",...M(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",...M(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",...M(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",...M(e),children:p.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),m0=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...M(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",...M(e),children:p.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),Hd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...M(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",...M(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",...M(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",...M(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",...M(e),children:p.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),w0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...M(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",...M(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",...M(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",...M(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:js,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",...M(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",...M(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:W("p-3 w-fit bg-background text-primary-80 rounded-outer","after:content-[''] after:rounded-outer 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:e.iconUrl==null?p.jsx(Pd,{}):p.jsx("img",{src:e.iconUrl,className:"w-8 h-8"})}),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:W("p-3 w-10 h-10 transition-colors rounded-inner 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",An=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=An.get(e);n||(n=Vd(e),An.set(e,n)),n.dispatchers.add(t),t(n.mql.matches)},z0=(e,t)=>{const n=An.get(e);if(n){const{mql:r,dispatchers:o,listener:i}=n;o.delete(t),o.size===0&&(An.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=An.get(e);return i||(i=Vd(e),An.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,collapse:t,toggleSettings:n,isSettingsOpen:r,brandIcon:o,reset:i})=>{const l=e==="half",s=Fd(),a=l&&s?"overlay":"ghost";return p.jsxs("div",{className:W("flex","p-2 md:p-3 items-center justify-between gap-2",l?"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:[o!=null?p.jsx("img",{className:"w-10 h-10 block",src:o,role:"presentation"}):null,p.jsx(Ot,{label:"Reset",type:a,className:o==null?"":"ml-auto",onClick:()=>{i()},Icon:Ad}),n!=null?p.jsx(Ot,{className:o!=null?"":"ml-auto",Icon:Dd,label:"Settings",type:r?"activated":a,onClick:n}):null,p.jsx(Ot,{label:"Collapse",type:a,className:W(n==null?"ml-auto":"",l?"md:-order-1":""),onClick:()=>{t()},Icon:Nd})]})},zr=({onClick:e,label:t,type:n="ghost",Icon:r,className:o})=>p.jsxs("button",{onClick:e,disabled:e==null,className:W("relative z-10 w-full px-5 py-4 transition-colors rounded-outer 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,className:n})=>p.jsxs("div",{className:W("p-2 md:p-3 flex flex-col flex-grow justify-center gap-2",n),children:[p.jsx(zr,{label:"Restart conversation",Icon:Hd,type:"ghost",onClick:()=>{t.reset({clearResponses:!0}),t.sendWelcomeIntent(),e()}}),p.jsx(zr,{label:"Talk to an agent",Icon:Od,type:"ghost",onClick:()=>{t.sendIntent("NLX.Escalation"),e()}})]});function Ps(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let nn=Ps();function Ud(e){nn=e}const Rr={exec:()=>null};function A(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(Ce.caret,"$1"),n=n.replace(o,l),r},getRegex:()=>new RegExp(n,t)};return r}const Ce={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|$)|$)/,Pr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,H0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zd=/(?:[*+-]|\d{1,9}[.)])/,Wd=A(/^(?!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=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ns).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),A0=A(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zd).getRegex(),ti="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=A("^ {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",ti).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qd=A(Ms).replace("hr",Pr).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",ti).getRegex(),Os={blockquote:A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Qd).getRegex(),code:I0,def:$0,fences:O0,heading:H0,hr:Pr,html:B0,lheading:Wd,list:A0,newline:N0,paragraph:Qd,table:Rr,text:D0},Gd=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Pr).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",ti).getRegex(),V0={...Os,table:Gd,paragraph:A(Ms).replace("hr",Pr).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",ti).getRegex()},F0={...Os,html:A(`^ *(?: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:Rr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Ms).replace("hr",Pr).replace("heading",` *#{1,6} *[^
|
|
61
|
-
]`).replace("lheading",
|
|
60
|
+
*/var e0=function(){if(typeof WebSocket<"u")return WebSocket},t0=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},un={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},n0=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?un.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?un.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=Xh(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,Kh(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,n=t.reconnectionDelayGrowFactor,r=n===void 0?un.reconnectionDelayGrowFactor:n,o=t.minReconnectionDelay,i=o===void 0?un.minReconnectionDelay:o,l=t.maxReconnectionDelay,s=l===void 0?un.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?un.maxRetries:r,i=n.connectionTimeout,l=i===void 0?un.connectionTimeout:i,s=n.WebSocket,a=s===void 0?e0():s;if(this._retryCount>=o){this._debug("max retries reached",this._retryCount,">=",o);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!t0(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 qh(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 Jh(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 J(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function cn(e){return function t(n){return arguments.length===0||J(n)?t:e.apply(this,arguments)}}function Zn(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return J(n)?t:cn(function(o){return e(n,o)});default:return J(n)&&J(r)?t:J(n)?cn(function(o){return e(o,r)}):J(r)?cn(function(o){return e(n,o)}):e(n,r)}}}function r0(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 o0(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return J(n)?t:Zn(function(i,l){return e(n,i,l)});case 2:return J(n)&&J(r)?t:J(n)?Zn(function(i,l){return e(i,r,l)}):J(r)?Zn(function(i,l){return e(n,i,l)}):cn(function(i){return e(n,r,i)});default:return J(n)&&J(r)&&J(o)?t:J(n)&&J(r)?Zn(function(i,l){return e(i,l,o)}):J(n)&&J(o)?Zn(function(i,l){return e(i,r,l)}):J(r)&&J(o)?Zn(function(i,l){return e(n,i,l)}):J(n)?cn(function(i){return e(i,r,o)}):J(r)?cn(function(i){return e(n,i,o)}):J(o)?cn(function(i){return e(n,r,i)}):e(n,r,o)}}}var Fd=o0(function(t,n,r){var o=r.length;if(t>=o||t<-o)return r;var i=(o+t)%o,l=r0(r);return l[i]=n(r[i]),l});let pi;const i0=new Uint8Array(16);function l0(){if(!pi&&(pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pi(i0)}const me=[];for(let e=0;e<256;++e)me.push((e+256).toString(16).slice(1));function s0(e,t=0){return me[e[t+0]]+me[e[t+1]]+me[e[t+2]]+me[e[t+3]]+"-"+me[e[t+4]]+me[e[t+5]]+"-"+me[e[t+6]]+me[e[t+7]]+"-"+me[e[t+8]]+me[e[t+9]]+"-"+me[e[t+10]]+me[e[t+11]]+me[e[t+12]]+me[e[t+13]]+me[e[t+14]]+me[e[t+15]]}const Ud={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Zd(e,t,n){if(Ud.randomUUID&&!t&&!e)return Ud.randomUUID();e=e||{};const r=e.random||(e.rng||l0)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,s0(r)}var a0="@nlxai/chat-core",u0="1.0.5-alpha.0",c0="NLX Chat SDK core",d0="module",f0="lib/index.cjs",p0="lib/index.esm.js",h0="lib/index.umd.js",m0="lib/index.d.ts",g0={".":{types:"./lib/index.d.ts",import:"./lib/index.esm.js",require:"./lib/index.cjs"}},y0={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"},v0="Peter Szerzo <peter@nlx.ai>",w0="MIT",x0={"@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"},k0={"isomorphic-fetch":"^3.0.0",ramda:"^0.29.1","reconnecting-websocket":"^4.4.0",uuid:"^9.0.1"},C0={access:"public"},b0="97ea824c481708936aae75fb9a051ec0e651ea39",S0={name:a0,version:u0,description:c0,type:d0,main:f0,module:p0,browser:h0,types:m0,exports:g0,scripts:y0,author:v0,license:w0,devDependencies:x0,dependencies:k0,publishConfig:C0,gitHead:b0};const Vs=console,_0="NLX.Welcome",E0="We encountered an issue. Please try again soon.",Wd=e=>Array.isArray(e)?e:Object.entries(e).map(([t,n])=>({slotId:t,value:n})),Qd=e=>({...e,slots:e.slots!=null?Wd(e.slots):e.slots}),Yd=e=>e.responses,L0=e=>{try{return JSON.parse(e)}catch{return null}},j0=e=>(e.applicationUrl??e.botUrl??"").length>0;function T0(e){let t;const n=e.applicationUrl??e.botUrl??"";/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(n)&&Vs.warn("Since v1.0.0, the language code is no longer added at the end of the application URL. Please remove the modifier (e.g. '-en-US') from the URL, and specify it in the `languageCode` parameter instead.");const r=e.conversationId??Zd();let o={responses:e.responses??[],languageCode:e.languageCode,userId:e.userId,conversationId:r};const i=(w,k)=>{o={...o,...w},y.forEach(C=>{C(Yd(o),k)})},l=()=>{const w={type:"failure",receivedAt:new Date().getTime(),payload:{text:e.failureMessage??E0}};i({responses:[...o.responses,w]},w)},s=w=>{if((w==null?void 0:w.messages.length)>0){const k={type:"bot",receivedAt:new Date().getTime(),payload:{...w,messages:w.messages.map(C=>({nodeId:C.nodeId,messageId:C.messageId,text:C.text,choices:C.choices??[]}))}};i({responses:[...o.responses,k]},k),w.metadata.hasPendingDataRequest&&(E({poll:!0}),setTimeout(()=>{f({request:{structured:{poll:!0}}})},1500))}else Vs.warn("Invalid message structure, expected object with field 'messages'."),l()};let a,u=[],c=null;const f=async w=>{var C,P;if(a!=null){a(w,T=>{const $={type:"bot",receivedAt:new Date().getTime(),payload:T};i({responses:[...o.responses,$]},$)});return}const k={userId:o.userId,conversationId:o.conversationId,...w,languageCode:o.languageCode,channelType:(C=e.experimental)==null?void 0:C.channelType,environment:e.environment};if(h())(t==null?void 0:t.readyState)===1?t.send(JSON.stringify(k)):u=[...u,k];else try{const T=await Yh(`${n}${((P=e.experimental)==null?void 0:P.completeBotUrl)===!0?"":`-${o.languageCode}`}`,{method:"POST",headers:{...e.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":S0.version},body:JSON.stringify(k)});if(T.status>=400)throw new Error(`Responded with ${T.status}`);const $=await T.json();s($)}catch(T){Vs.warn(T),l()}},h=()=>n.indexOf("wss://")===0;let y=[];const x=()=>{var k;const w=new URL(n);((k=e.experimental)==null?void 0:k.completeBotUrl)!==!0&&(w.searchParams.set("languageCode",o.languageCode),w.searchParams.set("channelKey",`${w.searchParams.get("channelKey")??""}-${o.languageCode}`)),w.searchParams.set("conversationId",o.conversationId),t=new n0(w.href),c=setInterval(()=>{},500),t.onmessage=function(C){typeof(C==null?void 0:C.data)=="string"&&s(L0(C.data))}},v=()=>{c!=null&&clearInterval(c),t!=null&&(t.onmessage=null,t.close(),t=void 0)};h()&&x();const E=(w,k)=>{const C={type:"user",receivedAt:new Date().getTime(),payload:{type:"structured",...Qd(w),context:k}};i({responses:[...o.responses,C]},C)},m=(w,k)=>{E({intentId:w},k),f({context:k,request:{structured:{intentId:w}}})},d=(w,k)=>{const C={type:"user",receivedAt:new Date().getTime(),payload:{type:"text",text:w,context:k}};i({responses:[...o.responses,C]},C),f({context:k,request:{unstructured:{text:w}}})},g=(w,k,C)=>{let P=[...o.responses];const T={type:"user",receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:w}},$=(C==null?void 0:C.responseIndex)??-1,ne=(C==null?void 0:C.messageIndex)??-1;$>-1&&ne>-1&&(P=Fd($,Y=>Y.type==="bot"?{...Y,payload:{...Y.payload,messages:Fd(ne,ce=>({...ce,selectedChoiceId:w}),Y.payload.messages)}}:Y,P)),P=[...P,T],i({responses:P},T),f({context:k,request:{structured:{nodeId:C==null?void 0:C.nodeId,intentId:C==null?void 0:C.intentId,choiceId:w}}})},b=w=>{y=y.filter(k=>k!==w)};return{sendText:d,sendStructured:(w,k)=>{E(w,k),f({context:k,request:{structured:Qd(w)}})},sendSlots:(w,k)=>{E({slots:w},k),f({context:k,request:{structured:{slots:Wd(w)}}})},sendIntent:m,sendWelcomeIntent:w=>{m(_0,w)},sendChoice:g,currentConversationId:()=>o.conversationId,setLanguageCode:w=>{if(w===o.languageCode){console.warn("Attempted to set language code to the one already active.");return}h()&&(v(),x()),i({languageCode:w})},currentLanguageCode:()=>o.languageCode,subscribe:w=>(y=[...y,w],w(Yd(o)),()=>{b(w)}),unsubscribe:b,unsubscribeAll:()=>{y=[]},reset:w=>{i({conversationId:Zd(),responses:(w==null?void 0:w.clearResponses)===!0?[]:o.responses}),h()&&(v(),x())},destroy:()=>{y=[],h()&&v()},setBotRequestOverride:w=>{a=w}}}function Xd(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=Xd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Xd(e))&&(r&&(r+=" "),r+=t);return r}function Wn(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Fs(e){return function t(n){return arguments.length===0||Wn(n)?t:e.apply(this,arguments)}}function P0(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Wn(n)?t:Fs(function(o){return e(n,o)});default:return Wn(n)&&Wn(r)?t:Wn(n)?Fs(function(o){return e(o,r)}):Wn(r)?Fs(function(o){return e(n,o)}):e(n,r)}}}const R0=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function z0(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function M0(e,t,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!R0(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(z0(r)){var i=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(r)}}return n.apply(this,arguments)}}const N0={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var O0=function(){function e(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=N0.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 I0(e){return function(t){return new O0(e,t)}}var Gd=P0(M0([],I0,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1}));const N=e=>({width:e.size!=null?`${e.size}px`:"100%",height:e.size!=null?`${e.size}px`:"100%",className:e.className}),$0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),Us=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(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"})]}),D0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),H0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),A0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),B0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),V0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),F0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),hi=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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",...N(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"})}),U0=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(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"})]}),Kd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),qd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),Z0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),Jd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),ef=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(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"})]}),tf=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(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"})]}),Ws=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),W0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),Q0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),Y0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),X0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),G0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),K0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),q0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),J0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),em=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),tm=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(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"})]}),nm=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),nf=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),rf=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),rm=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),om=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),of=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),im=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),lm=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),sm=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(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"})]}),lf=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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"})}),sf=Object.freeze(Object.defineProperty({__proto__:null,Action:$0,Add:H0,ArrowDown:A0,ArrowForward:hi,ArrowLeft:B0,ArrowRight:V0,ArrowUp:F0,Assistant:Us,AssistantOld:D0,Attachment:Zs,Camera:U0,Check:Kd,Close:qd,Copy:Z0,Date:Jd,Delete:ef,Error:Ws,Escalate:tf,FullScreen:W0,Help:e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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:X0,Mic:Q0,MicOff:Y0,OpenInNew:J0,Play:em,Preview:tm,Refresh:e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(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:nm,Restart:nf,Search:rm,Settings:rf,Share:om,ThumbDown:im,ThumbUp:lm,Time:sm,Translate:q0,Undo:lf,Volume:G0,VolumeOff:K0,Warning:of},Symbol.toStringTag,{value:"Module"})),am=e=>p.jsxs("button",{className:U("p-3 w-fit bg-background text-primary-80 rounded-outer","after:content-[''] after:rounded-outer 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:e.iconUrl==null?p.jsx(Us,{}):p.jsx("img",{src:e.iconUrl,className:"w-8 h-8"})}),e.showLabel??!1?p.jsx("span",{children:e.label}):null]}),um="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",cm="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",dm="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",fm="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",pm="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",xt=({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:U("p-3 w-10 h-10 transition-colors rounded-inner 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"?um:null,t==="ghost"?cm:null,t==="activated"?dm:null,t==="coverup"?fm:null,t==="overlay"?pm:null,r),children:p.jsx(o,{})})},hm=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u",Qn=new Map,af=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}},mm=(e,t)=>{let n=Qn.get(e);n||(n=af(e),Qn.set(e,n)),n.dispatchers.add(t),t(n.mql.matches)},gm=(e,t)=>{const n=Qn.get(e);if(n){const{mql:r,dispatchers:o,listener:i}=n;o.delete(t),o.size===0&&(Qn.delete(e),r.removeEventListener?r.removeEventListener("change",i):r.removeListener(i))}};function ym(e,t={}){let{initializeWithValue:n=!0}=t;hm||(n=!1);const[r,o]=R.useState(()=>{if(n){let i=Qn.get(e);return i||(i=af(e),Qn.set(e,i)),i.mql.matches}});return R.useEffect(()=>(mm(e,o),()=>{gm(e,o)}),[e]),r}const uf=e=>ym("(min-width: 768px)"),vm=({windowSize:e,collapse:t,toggleSettings:n,isSettingsOpen:r,brandIcon:o,reset:i})=>{const l=e==="half",s=uf(),a=l&&s?"overlay":"ghost";return p.jsxs("div",{className:U("flex","p-2 md:p-3 items-center justify-between gap-2",l?"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:[o!=null?p.jsx("img",{className:"w-10 h-10 block",src:o,role:"presentation"}):null,p.jsx(xt,{label:"Reset",type:a,className:o==null?"":"ml-auto",onClick:()=>{i()},Icon:lf}),n!=null?p.jsx(xt,{className:o!=null?"":"ml-auto",Icon:rf,label:"Settings",type:r?"activated":a,onClick:n}):null,p.jsx(xt,{label:"Collapse",type:a,className:U(n==null?"ml-auto":"",l?"md:-order-1":""),onClick:()=>{t()},Icon:qd})]})},Ar=({onClick:e,label:t,type:n="ghost",Icon:r,className:o})=>p.jsxs("button",{onClick:e,disabled:e==null,className:U("relative z-10 w-full px-5 py-4 transition-colors rounded-outer 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})]}),wm=({onClose:e,handler:t,className:n})=>p.jsxs("div",{className:U("p-2 md:p-3 flex flex-col flex-grow justify-center gap-2",n),children:[p.jsx(Ar,{label:"Restart conversation",Icon:nf,type:"ghost",onClick:()=>{t.reset({clearResponses:!0}),t.sendWelcomeIntent(),e()}}),p.jsx(Ar,{label:"Talk to an agent",Icon:tf,type:"ghost",onClick:()=>{t.sendIntent("NLX.Escalation"),e()}})]});function Qs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let dn=Qs();function cf(e){dn=e}const Br={exec:()=>null};function V(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(_e.caret,"$1"),n=n.replace(o,l),r},getRegex:()=>new RegExp(n,t)};return r}const _e={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")},xm=/^(?:[ \t]*(?:\n|$))+/,km=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Cm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,bm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,df=/(?:[*+-]|\d{1,9}[.)])/,ff=V(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,df).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(),Ys=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Sm=/^[^\n]+/,Xs=/(?!\s*\])(?:\\.|[^\[\]\\])+/,_m=V(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Xs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Em=V(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,df).getRegex(),mi="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",Gs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lm=V("^ {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",Gs).replace("tag",mi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pf=V(Ys).replace("hr",Vr).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",mi).getRegex(),Ks={blockquote:V(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",pf).getRegex(),code:km,def:_m,fences:Cm,heading:bm,hr:Vr,html:Lm,lheading:ff,list:Em,newline:xm,paragraph:pf,table:Br,text:Sm},hf=V("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vr).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",mi).getRegex(),jm={...Ks,table:hf,paragraph:V(Ys).replace("hr",Vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hf).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",mi).getRegex()},Tm={...Ks,html:V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Gs).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:Br,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:V(Ys).replace("hr",Vr).replace("heading",` *#{1,6} *[^
|
|
61
|
+
]`).replace("lheading",ff).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Pm=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Rm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mf=/^( {2,}|\\)\n(?!\s*$)/,zm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gi=/[\p{P}\p{S}]/u,qs=/[\s\p{P}\p{S}]/u,gf=/[^\s\p{P}\p{S}]/u,Mm=V(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qs).getRegex(),Nm=/(?!~)[\p{P}\p{S}]/u,Om=/(?!~)[\s\p{P}\p{S}]/u,Im=/(?:[^\s\p{P}\p{S}]|~)/u,$m=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Dm=V(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,gi).getRegex(),yf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hm=V(yf,"gu").replace(/notPunctSpace/g,gf).replace(/punctSpace/g,qs).replace(/punct/g,gi).getRegex(),Am=V(yf,"gu").replace(/notPunctSpace/g,Im).replace(/punctSpace/g,Om).replace(/punct/g,Nm).getRegex(),Bm=V("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gf).replace(/punctSpace/g,qs).replace(/punct/g,gi).getRegex(),Vm=V(/\\(punct)/,"gu").replace(/punct/g,gi).getRegex(),Fm=V(/^<(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(),Um=V(Gs).replace("(?:-->|$)","-->").getRegex(),Zm=V("^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",Um).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wm=V(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",yi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vf=V(/^!?\[(label)\]\[(ref)\]/).replace("label",yi).replace("ref",Xs).getRegex(),wf=V(/^!?\[(ref)\](?:\[\])?/).replace("ref",Xs).getRegex(),Qm=V("reflink|nolink(?!\\()","g").replace("reflink",vf).replace("nolink",wf).getRegex(),Js={_backpedal:Br,anyPunctuation:Vm,autolink:Fm,blockSkip:$m,br:mf,code:Rm,del:Br,emStrongLDelim:Dm,emStrongRDelimAst:Hm,emStrongRDelimUnd:Bm,escape:Pm,link:Wm,nolink:wf,punctuation:Mm,reflink:vf,reflinkSearch:Qm,tag:Zm,text:zm,url:Br},Ym={...Js,link:V(/^!?\[(label)\]\((.*?)\)/).replace("label",yi).getRegex(),reflink:V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yi).getRegex()},ea={...Js,emStrongRDelimAst:Am,url:V(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Xm={...ea,br:V(mf).replace("{2,}","*").getRegex(),text:V(ea.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vi={normal:Ks,gfm:jm,pedantic:Tm},Fr={normal:Js,gfm:ea,breaks:Xm,pedantic:Ym},Gm={"&":"&","<":"<",">":">",'"':""","'":"'"},xf=e=>Gm[e];function st(e,t){if(t){if(_e.escapeTest.test(e))return e.replace(_e.escapeReplace,xf)}else if(_e.escapeTestNoEncode.test(e))return e.replace(_e.escapeReplaceNoEncode,xf);return e}function kf(e){try{e=encodeURI(e).replace(_e.percentDecode,"%")}catch{return null}return e}function Cf(e,t){var i;const n=e.replace(_e.findPipe,(l,s,a)=>{let u=!1,c=s;for(;--c>=0&&a[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(_e.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(_e.slashPipe,"|");return r}function Ur(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 Km(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 bf(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 qm(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const o=r[1];return t.split(`
|
|
62
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
|
|
64
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=
|
|
65
|
-
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=
|
|
63
|
+
`)}class wi{constructor(t){H(this,"options");H(this,"rules");H(this,"lexer");this.options=t||dn}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:Ur(r,`
|
|
64
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=qm(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=Ur(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:Ur(n[0],`
|
|
65
|
+
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Ur(n[0],`
|
|
66
66
|
`).split(`
|
|
67
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
|
-
`),
|
|
68
|
+
`),f=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
69
69
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
|
|
70
70
|
${c}`:c,i=i?`${i}
|
|
71
|
-
${
|
|
71
|
+
${f}`:f;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,l,!0),this.lexer.state.top=h,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,v=x.raw+`
|
|
72
72
|
`+r.join(`
|
|
73
|
-
`),
|
|
73
|
+
`),E=this.blockquote(v);l[l.length-1]=E,o=o.substring(0,o.length-x.raw.length)+E.raw,i=i.substring(0,i.length-x.text.length)+E.text;break}else if((y==null?void 0:y.type)==="list"){const x=y,v=x.raw+`
|
|
74
74
|
`+r.join(`
|
|
75
|
-
`),
|
|
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="",
|
|
77
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
78
|
-
`,1)[0],x=!
|
|
79
|
-
`,t=t.substring(y.length+1),u=!0),!u){const
|
|
80
|
-
`,1)[0];let
|
|
81
|
-
`+
|
|
82
|
-
`+y}!x&&!y.trim()&&(x=!0),c+=
|
|
83
|
-
`,t=t.substring(
|
|
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(
|
|
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=
|
|
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(
|
|
75
|
+
`),E=this.list(v);l[l.length-1]=E,o=o.substring(0,o.length-y.raw.length)+E.raw,i=i.substring(0,i.length-x.raw.length)+E.raw,r=v.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="",f="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let h=n[2].split(`
|
|
77
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,d=>" ".repeat(3*d.length)),y=t.split(`
|
|
78
|
+
`,1)[0],x=!h.trim(),v=0;if(this.options.pedantic?(v=2,f=h.trimStart()):x?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=h.slice(v),v+=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(v),g=this.rules.other.hrRegex(v),b=this.rules.other.fencesBeginRegex(v),S=this.rules.other.headingBeginRegex(v),w=this.rules.other.htmlBeginRegex(v);for(;t;){const k=t.split(`
|
|
80
|
+
`,1)[0];let C;if(y=k,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),C=y):C=y.replace(this.rules.other.tabCharGlobal," "),b.test(y)||S.test(y)||w.test(y)||d.test(y)||g.test(y))break;if(C.search(this.rules.other.nonSpaceChar)>=v||!y.trim())f+=`
|
|
81
|
+
`+C.slice(v);else{if(x||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||b.test(h)||S.test(h)||g.test(h))break;f+=`
|
|
82
|
+
`+y}!x&&!y.trim()&&(x=!0),c+=k+`
|
|
83
|
+
`,t=t.substring(k.length+1),h=C.slice(v)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0));let E=null,m;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(m=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!E,checked:m,loose:!1,text:f,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(h=>h.type==="space"),f=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=f}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=Cf(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(Cf(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=Ur(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Km(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)),bf(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 bf(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 f=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+l);(o=f.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 h=[...o[0]][0].length,y=t.slice(0,l+o.index+h+a);if(Math.min(l,a)%2){const v=y.slice(1,-1);return{type:"em",raw:y,text:v,tokens:this.lexer.inlineTokens(v)}}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 Ze{constructor(t){H(this,"tokens");H(this,"options");H(this,"state");H(this,"tokenizer");H(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||dn,this.options.tokenizer=this.options.tokenizer||new wi,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:_e,block:vi.normal,inline:Fr.normal};this.options.pedantic?(n.block=vi.pedantic,n.inline=Fr.pedantic):this.options.gfm&&(n.block=vi.gfm,this.options.breaks?n.inline=Fr.breaks:n.inline=Fr.gfm),this.tokenizer.rules=n}static get rules(){return{block:vi,inline:Fr}}static lex(t,n){return new Ze(n).lex(t)}static lexInline(t,n){return new Ze(n).inlineTokens(t)}lex(t){t=t.replace(_e.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(_e.tabCharGlobal," ").replace(_e.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
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
88
|
`+s.raw,u.text+=`
|
|
89
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
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
|
|
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 f;this.options.extensions.startBlock.forEach(h=>{f=h.call({lexer:this},c),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),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
92
|
`+s.raw,u.text+=`
|
|
93
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
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(
|
|
96
|
-
`;return o?'<pre><code class="language-'+
|
|
97
|
-
`:"<pre><code>"+(r?i:
|
|
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(h=>(c=h.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 h=n.at(-1);c.type==="text"&&(h==null?void 0:h.type)==="text"?(h.raw+=c.raw,h.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 f=t;if((u=this.options.extensions)!=null&&u.startInline){let h=1/0;const y=t.slice(1);let x;this.options.extensions.startInline.forEach(v=>{x=v.call({lexer:this},y),typeof x=="number"&&x>=0&&(h=Math.min(h,x))}),h<1/0&&h>=0&&(f=t.substring(0,h+1))}if(c=this.tokenizer.inlineText(f)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(l=c.raw.slice(-1)),i=!0;const h=n.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=c.raw,h.text+=c.text):n.push(c);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return n}}class xi{constructor(t){H(this,"options");H(this,"parser");this.options=t||dn}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const o=(l=(n||"").match(_e.notSpaceStart))==null?void 0:l[0],i=t.replace(_e.endingNewline,"")+`
|
|
96
|
+
`;return o?'<pre><code class="language-'+st(o)+'">'+(r?i:st(i,!0))+`</code></pre>
|
|
97
|
+
`:"<pre><code>"+(r?i:st(i,!0))+`</code></pre>
|
|
98
98
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
99
99
|
${this.parser.parse(t)}</blockquote>
|
|
100
100
|
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
101
101
|
`}hr(t){return`<hr>
|
|
102
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
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+" "+
|
|
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+" "+st(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
105
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
106
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
107
|
<thead>
|
|
@@ -110,13 +110,13 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
110
110
|
`}tablerow({text:t}){return`<tr>
|
|
111
111
|
${t}</tr>
|
|
112
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>${
|
|
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
|
|
115
|
-
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+
|
|
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>${st(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=kf(t);if(i===null)return o;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+st(n)+'"'),l+=">"+o+"</a>",l}image({href:t,title:n,text:r}){const o=kf(t);if(o===null)return st(r);t=o;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${st(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:st(t.text)}}class ta{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 We{constructor(t){H(this,"options");H(this,"renderer");H(this,"textRenderer");this.options=t||dn,this.options.renderer=this.options.renderer||new xi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ta}static parse(t,n){return new We(n).parse(t)}static parseInline(t,n){return new We(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 Zr{constructor(t){H(this,"options");H(this,"block");this.options=t||dn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Ze.lex:Ze.lexInline}provideParser(){return this.block?We.parse:We.parseInline}}H(Zr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Jm{constructor(...t){H(this,"defaults",Qs());H(this,"options",this.setOptions);H(this,"parse",this.parseMarkdown(!0));H(this,"parseInline",this.parseMarkdown(!1));H(this,"Parser",We);H(this,"Renderer",xi);H(this,"TextRenderer",ta);H(this,"Lexer",Ze);H(this,"Tokenizer",wi);H(this,"Hooks",Zr);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 xi(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 f=a.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new wi(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 f=a.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Zr;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];Zr.passThroughHooks.has(l)?i[s]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(h=>u.call(i,h));const f=a.call(i,c);return u.call(i,f)}:i[s]=(...c)=>{let f=a.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}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 Ze.lex(t,n??this.defaults)}parser(t,n){return We.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?Ze.lex:Ze.lexInline,u=l.hooks?l.hooks.provideParser():t?We.parse:We.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 f=u(c,l);return l.hooks&&(f=l.hooks.postprocess(f)),f}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>"+st(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}}const fn=new Jm;function B(e,t){return fn.parse(e,t)}B.options=B.setOptions=function(e){return fn.setOptions(e),B.defaults=fn.defaults,cf(B.defaults),B},B.getDefaults=Qs,B.defaults=dn,B.use=function(...e){return fn.use(...e),B.defaults=fn.defaults,cf(B.defaults),B},B.walkTokens=function(e,t){return fn.walkTokens(e,t)},B.parseInline=fn.parseInline,B.Parser=We,B.parser=We.parse,B.Renderer=xi,B.TextRenderer=ta,B.Lexer=Ze,B.lexer=Ze.lex,B.Tokenizer=wi,B.Hooks=Zr,B.parse=B,B.options,B.setOptions,B.use,B.walkTokens,B.parseInline,We.parse,Ze.lex;const eg=30,Wr=17,tg=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,na=990,ki=na+300,ng=({d:e})=>{const t=Math.PI/2,n=e/Wr/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-Wr*Math.sin(r),a=Wr*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:Wr}),p.jsx("circle",{cx:l,cy:"0",r:Wr}),n<.45?p.jsx("path",{d:`
|
|
116
116
|
M${-s},${a}
|
|
117
117
|
C${-u},${c} ${u},${c} ${s},${a} L${s},${-a}
|
|
118
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%si,u=Math.floor(s/si);if(a<Bs){const y=s/si,x=Math.floor(y),w=mm((y-x)*(si/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,d=i>h?1-.25*(i-h)/(1-h):1;return p.jsx("div",{className:W("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:W("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:d,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(zr,{type:"ghost",Icon:js,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-inner 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-inner 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-inner 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:W("relative",l),children:[p.jsx("div",{"data-theme":t==="dark"?"light":"dark",className:W("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:W("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(d=>n[d]).filter(d=>d!=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:W("space-y-2",h?"min-h-full":""),ref:h?a:void 0,children:[u.payload.messages.map((d,y)=>p.jsx("div",{className:"text-base",children:p.jsx("div",{className:"pr-10",dangerouslySetInnerHTML:{__html:D(d.text)}})},y)),Object.entries(u.payload.modalities??{}).map(([d,y])=>{const x=i[d];return x==null?(console.warn(`Custom component implementation missing for the ${d} modality.`),null):p.jsx(x,{data:y},d)})]}),u.payload.messages.map((d,y)=>{if(d.selectedChoiceId!=null){const x=d.choices.find(w=>w.choiceId===d.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=an.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=an.useRef();return an.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,Se=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),Se||(Se=document.createElement("textarea"),Se.setAttribute("tabindex","-1"),Se.setAttribute("aria-hidden","true"),af(Se)),Se.parentNode===null&&document.body.appendChild(Se);var o=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(d){var y=d;Se.style[y]=l[y]}),af(Se),Se.value=t;var a=uf(Se,e);Se.value=t,a=uf(Se,e),Se.value="x";var u=Se.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,d=z.useRef(null),y=_m(d,n),x=z.useRef(0),w=z.useRef(),T=function(){var g=d.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||T(),s(g)};return z.useLayoutEffect(T),Mm(T),Nm(T),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,d]=z.useState(null),y=z.useRef(null),x=z.useRef(null),w=Fd();z.useEffect(()=>{var b;w&&((b=x.current)==null||b.focus())},[w]);const T=z.useMemo(()=>s.trim()==="",[s]),[m,f]=z.useState(!1),g=T&&h==null||m,k=()=>{if(g)return;const b=(R,j)=>{(j==null?void 0:j.type)==="bot"&&(f(!1),n.unsubscribe(b),a(""),d(null),w&&setTimeout(()=>{var te;(te=x.current)==null||te.focus()}))};n.subscribe(b),f(!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=b=>{var it,Hr;if(r==null){S();return}const R=(Hr=(it=b.target)==null?void 0:it.files)==null?void 0:Hr[0];if(R==null){S();return}const{name:j,size:te,type:Oe}=R;if(d({name:j,size:te,type:Oe}),te/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:R}).then(()=>{c(null),o({uploadId:r.uploadId,file:R})}).catch(()=>{S()})};return p.jsxs("div",{className:W("p-2 md:p-3 relative",e),children:[t!=null?p.jsx(wm,{...t,handler:n,className:W("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:W("bg-primary-5 transition-colors duration-200 p-2 rounded-outer 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-inner",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?()=>{d(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:W("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-inner 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:W("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:b=>{a(b.target.value)},onKeyDown:b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),k())},ref:x}),p.jsx(Ot,{className:"flex-none",label:"Send message",onClick:g?void 0:()=>{k()},type:"main",Icon:js})]})]})]})},pf=z.createContext({handler:null}),$m=()=>z.useContext(pf),Am=e=>({"--font-family":e.fontFamily,"--inner-border-radius":e.innerBorderRadius,"--outer-border-radius":e.outerBorderRadius,"--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',innerBorderRadius:"12px",outerBorderRadius:"20px",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',innerBorderRadius:"12px",outerBorderRadius:"20px",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:W(r),style:{...Am(o),colorScheme:e},children:t})},Fm=!1,mf=z.forwardRef((e,t)=>{var v,S,C;const[n,r]=z.useState(null),[o,i]=z.useState([]),l=((v=o[o.length-1])==null?void 0:v.type)==="user",s=e.colorMode??"dark",[a,u]=z.useState(Fm),[c,h]=z.useState(!1),d=z.useCallback(()=>{u(!0)},[u]),y=z.useCallback(()=>{u(!1)},[u]);z.useImperativeHandle(t,()=>({expand:d,collapse:y,getConversationHandler:()=>n}),[d,y,n]),z.useEffect(()=>{r(Vh(e.config))},[e.config,r]),z.useEffect(()=>{if(n==null)return;const b=R=>{i(R)};return n.subscribe(b),()=>{n==null||n.unsubscribe(b)}},[n,i]);const x=z.useRef(!1);z.useEffect(()=>{n==null||!a||x.current||(x.current=!0,n.sendWelcomeIntent())},[n,a]);const w=e.windowSize??"half",T=z.useMemo(()=>{const b=Rd(j=>j.type==="bot",o);if(b===-1)return null;const R=o[b];return(R==null?void 0:R.type)!=="bot"?null:{index:b,response:R}},[o]),m=z.useMemo(()=>{if(T==null)return;const b=Rd(j=>j.choices.length>0,T.response.payload.messages);if(b===-1)return;const R=T.response.payload.messages[b];if(R!=null)return{message:R,messageIndex:b,responseIndex:T.index}},[T]),[f,g]=z.useState({}),k=e.customModalities??{};return n==null?null:p.jsx(pf.Provider,{value:{handler:n},children:a?p.jsxs(hf,{theme:e.theme,colorMode:s,className:"grid grid-cols-2 xl:grid-cols-[1fr_632px] fixed inset-0 z-touchpoint",children:[w==="half"?p.jsx("div",{className:"hidden md:block bg-overlay"}):null,p.jsxs("div",{className:W("w-full bg-background text-primary-80 flex relative flex-col h-full backdrop-blur-overlay",{"col-span-2 md:col-span-1":w==="half","col-span-2":w==="full"}),children:[p.jsx(P0,{windowSize:w,colorMode:s,brandIcon:e.brandIcon,isSettingsOpen:c,toggleSettings:()=>{h(b=>!b)},collapse:()=>{u(!1)},reset:()=>{n.reset({clearResponses:!0}),n.sendWelcomeIntent()}}),c?p.jsx(M0,{className:W("flex-none",w==="full"?"w-full md:max-w-content md:mx-auto":""),onClose:()=>{h(!1)},handler:n}):p.jsxs(p.Fragment,{children:[p.jsx(km,{isWaiting:l,lastBotResponseIndex:T==null?void 0:T.index,responses:o,colorMode:s,handler:n,uploadedFiles:f,customModalities:k,className:W("flex-grow",w==="full"?"w-full md:max-w-content md:mx-auto":"")}),p.jsx(Dm,{className:W("flex-none",w==="full"?"w-full md:max-w-content md:mx-auto":""),choiceMessage:m,handler:n,uploadUrl:(C=(S=T==null?void 0:T.response.payload.metadata)==null?void 0:S.uploadUrls)==null?void 0:C[0],onFileUpload:({uploadId:b,file:R})=>{g(j=>({...j,[b]:R}))}})]})]})]}):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",iconUrl:e.launchIcon,onClick:()=>{u(!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-inner{border-radius:var(--inner-border-radius)}.rounded-outer{border-radius:var(--outer-border-radius)}.border{border-width:1px}.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-outer:after{content:var(--tw-content);border-radius:var(--outer-border-radius)}.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:W("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});/*! *****************************************************************************
|
|
119
|
+
`}):null]})},rg=e=>e<1/3?e*3:e<2/3?1:3-e*3,Sf=e=>e<1/3?0:e<2/3?(e-1/3)*3:1,og=({label:e,className:t})=>{const[n,r]=R.useState(null),o=R.useRef(!1);if(R.useEffect(()=>{const y=x=>{r(v=>v==null?{start:x,current:x}:{...v,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%ki,u=Math.floor(s/ki);if(a<na){const y=s/ki,x=Math.floor(y),v=tg((y-x)*(ki/na));i=rg(v),l=u%2?Sf(v):1+Sf(v)}else i=0,l=0;const c=i>.2?0:5*(.2-i)/.2,f=.3,h=i>f?1-.25*(i-f)/(1-f):1;return p.jsx("div",{className:U("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:U("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:h,children:p.jsx(ng,{d:eg*i})})})}),p.jsx("p",{className:"text-primary-60",children:e})]})})},ig=({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(Ar,{type:"ghost",Icon:hi,onClick:t.selectedChoiceId==null?()=>{e.sendChoice(i.choiceId,{},{responseIndex:n,messageIndex:r})}:void 0,label:i.choiceText})},l):null)})}):null,ra=({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-inner 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-inner h-20",src:URL.createObjectURL(n)},r))}):null]}),lg=({message:e})=>p.jsxs("div",{className:"bg-error-secondary text-error-primary text-base p-3 rounded-inner flex items-center gap-2",children:[p.jsx(of,{className:"w-4 h-4 flex-none"}),p.jsx("p",{className:"text-primary-80",children:e})]}),sg=({responses:e,colorMode:t,uploadedFiles:n,lastBotResponseIndex:r,isWaiting:o,customModalities:i,handler:l,className:s})=>{const a=R.useRef(null),u=R.useRef(null);return R.useEffect(()=>{o||setTimeout(()=>{var c;(c=u.current)==null||c.scrollIntoView({behavior:"smooth"})})},[o]),p.jsxs("div",{className:U("relative",s),children:[p.jsx("div",{"data-theme":t==="dark"?"light":"dark",className:U("absolute inset-x-0 h-[1px] top-0 bg-background opacity-[0.01] backdrop-blur-md")}),o?p.jsx(og,{label:"Thinking",className:"absolute inset-0"}):null,p.jsx("div",{className:U("absolute inset-0 p-2 md:p-3 overflow-y-auto no-scrollbar space-y-8",o?"opacity-0":"opacity-100"),ref:a,children:e.map((c,f)=>{if(c.type==="user")return c.payload.type==="text"?p.jsx(ra,{text:c.payload.text},f):c.payload.type==="structured"&&c.payload.utterance!=null&&c.payload.uploadIds!=null?p.jsx(ra,{text:c.payload.utterance,files:c.payload.uploadIds.map(y=>n[y]).filter(y=>y!=null)},f):null;if(c.type==="failure")return p.jsx(lg,{message:c.payload.text},f);const h=r!=null&&f===r;return p.jsxs(R.Fragment,{children:[p.jsxs("div",{className:U("space-y-2",h?"min-h-full":""),ref:h?u:void 0,children:[c.payload.messages.map((y,x)=>p.jsx("div",{className:"text-base",children:p.jsx("div",{className:"pr-10",dangerouslySetInnerHTML:{__html:B(y.text)}})},x)),Object.entries(c.payload.modalities??{}).map(([y,x])=>{const v=i[y];return v==null?(console.warn(`Custom component implementation missing for the ${y} modality.`),null):p.jsx(v,{data:x,conversationHandler:l},y)})]}),c.payload.messages.map((y,x)=>{if(y.selectedChoiceId!=null){const v=y.choices.find(E=>E.choiceId===y.selectedChoiceId);return v==null?null:p.jsx(ra,{text:v.choiceText},x)}return null})]},f)})},"messages")]})},ag=()=>p.jsxs("div",{className:U("flex-grow flex flex-col items-center justify-center gap-6 text-primary-80","fullscreen-error"),children:[p.jsx(Us,{className:"w-20 h-20 text-primary-20"}),p.jsxs("div",{className:"text-center",children:[p.jsx("h3",{className:"text-xl mb-2",children:"Oops!"}),p.jsx("p",{children:"Something went wrong."}),p.jsx("p",{children:"Try again later."})]})]});function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oa.apply(null,arguments)}function ug(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var cg=R.useLayoutEffect,dg=function(t){var n=bt.useRef(t);return cg(function(){n.current=t}),n},_f=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},fg=function(t,n){var r=bt.useRef();return bt.useCallback(function(o){t.current=o,r.current&&_f(r.current,null),r.current=n,n&&_f(n,o)},[n])},Ef={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},pg=function(t){Object.keys(Ef).forEach(function(n){t.style.setProperty(n,Ef[n],"important")})},Lf=pg,Ee=null,jf=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function hg(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Ee||(Ee=document.createElement("textarea"),Ee.setAttribute("tabindex","-1"),Ee.setAttribute("aria-hidden","true"),Lf(Ee)),Ee.parentNode===null&&document.body.appendChild(Ee);var o=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(h){var y=h;Ee.style[y]=l[y]}),Lf(Ee),Ee.value=t;var a=jf(Ee,e);Ee.value=t,a=jf(Ee,e),Ee.value="x";var u=Ee.scrollHeight-o,c=u*n;s==="border-box"&&(c=c+o+i),a=Math.max(c,a);var f=u*r;return s==="border-box"&&(f=f+o+i),a=Math.min(f,a),[a,u]}var Tf=function(){},mg=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},gg=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],yg=!!document.documentElement.currentStyle,vg=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=mg(gg,n),o=r.boxSizing;if(o==="")return null;yg&&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}},wg=vg;function Pf(e,t,n){var r=dg(n);R.useLayoutEffect(function(){var o=function(l){return r.current(l)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var xg=function(t){Pf(window,"resize",t)},kg=function(t){Pf(document.fonts,"loadingdone",t)},Cg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],bg=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,l=t.onChange,s=l===void 0?Tf:l,a=t.onHeightChange,u=a===void 0?Tf:a,c=ug(t,Cg),f=c.value!==void 0,h=R.useRef(null),y=fg(h,n),x=R.useRef(0),v=R.useRef(),E=function(){var g=h.current,b=r&&v.current?v.current:wg(g);if(b){v.current=b;var S=hg(b,g.value||g.placeholder||"x",i,o),w=S[0],k=S[1];x.current!==w&&(x.current=w,g.style.setProperty("height",w+"px","important"),u(w,{rowHeight:k}))}},m=function(g){f||E(),s(g)};return R.useLayoutEffect(E),xg(E),kg(E),R.createElement("textarea",oa({},c,{onChange:m,ref:y}))},Sg=R.forwardRef(bg);const Rf=8,_g=({className:e,choiceMessage:t,handler:n,uploadUrl:r,onFileUpload:o})=>{const[i,l]=R.useState(!1),[s,a]=R.useState(""),[u,c]=R.useState(null),[f,h]=R.useState(null),y=R.useRef(null),x=R.useRef(null),v=uf();R.useEffect(()=>{var C;v&&((C=x.current)==null||C.focus())},[v]);const E=R.useMemo(()=>s.trim()==="",[s]),[m,d]=R.useState(!1),g=E&&f==null||m,b=()=>{if(g)return;const C=(P,T)=>{(T==null?void 0:T.type)==="bot"&&(d(!1),n.unsubscribe(C),a(""),h(null),v&&setTimeout(()=>{var $;($=x.current)==null||$.focus()}))};n.subscribe(C),d(!0),r!=null&&f!=null?n.sendStructured({uploadIds:[r.uploadId],utterance:s}):n.sendText(s)},S=r!=null,w=()=>{c("Something went wrong. Please try again.")},k=C=>{var Y,ce;if(r==null){w();return}const P=(ce=(Y=C.target)==null?void 0:Y.files)==null?void 0:ce[0];if(P==null){w();return}const{name:T,size:$,type:ne}=P;if(h({name:T,size:$,type:ne}),$/1024**2>Rf){c(`The file is too big. Max file size: ${Rf}mb`);return}fetch(r.url,{method:"PUT",headers:{"Content-Type":"image/jpeg"},body:P}).then(()=>{c(null),o({uploadId:r.uploadId,file:P})}).catch(()=>{w()})};return p.jsxs("div",{className:U("p-2 md:p-3 relative",e),children:[t!=null?p.jsx(ig,{...t,handler:n,className:U("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:U("bg-primary-5 transition-colors duration-200 p-2 rounded-outer 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-inner",children:[p.jsx(Ws,{size:16}),p.jsx("span",{className:"truncate ml-1",children:u})]}),f&&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(Ws,{size:16,className:"text-error-primary"}):p.jsx(Kd,{size:16,className:"text-primary-60"}),p.jsx("span",{className:"truncate ml-3",children:f.name})]}),p.jsx(xt,{className:"flex-none",Icon:ef,label:"Delete",onClick:S?()=>{h(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:U("flex items-end"),children:[S&&f==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-inner 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:k,ref:y})]}):p.jsx(xt,{className:"flex-none",Icon:Zs,label:"Upload file",type:"ghost"}),p.jsx(Sg,{disabled:m,className:U("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:C=>{a(C.target.value)},onKeyDown:C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),b())},ref:x}),p.jsx(xt,{className:"flex-none",label:"Send message",onClick:g?void 0:()=>{b()},type:"main",Icon:hi})]})]})]})},Eg=e=>({"--font-family":e.fontFamily,"--inner-border-radius":e.innerBorderRadius,"--outer-border-radius":e.outerBorderRadius,"--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}),Lg={fontFamily:'"Neue Haas Grotesk", sans-serif',innerBorderRadius:"12px",outerBorderRadius:"20px",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)"},jg={fontFamily:'"Neue Haas Grotesk", sans-serif',innerBorderRadius:"12px",outerBorderRadius:"20px",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)"},ia=({colorMode:e,children:t,theme:n,className:r})=>{const o={...e==="dark"?jg:Lg,...n??{}};return p.jsx("div",{className:U(r),style:{...Eg(o),colorScheme:e},children:t})},zf=!1,Mf=R.forwardRef((e,t)=>{var b,S,w;const n=R.useMemo(()=>T0(e.config),[e.config]),[r,o]=R.useState([]),i=((b=r[r.length-1])==null?void 0:b.type)==="user",l=e.colorMode??"dark",[s,a]=R.useState(zf),u=j0(e.config),[c,f]=R.useState(!1),h=R.useRef(zf);R.useEffect(()=>{h.current=s},[s]),R.useImperativeHandle(t,()=>({setExpanded:a,getExpanded(){return h.current},getConversationHandler(){return n}}),[n,a]),R.useEffect(()=>{const k=C=>{o(C)};return n.subscribe(k),()=>{n.unsubscribe(k)}},[n,o]);const y=R.useRef(!1);R.useEffect(()=>{!s||y.current||(y.current=!0,n.sendWelcomeIntent())},[n,s]);const x=e.windowSize??"half",v=R.useMemo(()=>{const k=Gd(P=>P.type==="bot",r);if(k===-1)return null;const C=r[k];return(C==null?void 0:C.type)!=="bot"?null:{index:k,response:C}},[r]),E=R.useMemo(()=>{if(v==null)return;const k=Gd(P=>P.choices.length>0,v.response.payload.messages);if(k===-1)return;const C=v.response.payload.messages[k];if(C!=null)return{message:C,messageIndex:k,responseIndex:v.index}},[v]),[m,d]=R.useState({}),g=e.customModalities??{};return n==null?null:p.jsx(p.Fragment,{children:s?p.jsxs(ia,{theme:e.theme,colorMode:l,className:"grid grid-cols-2 xl:grid-cols-[1fr_632px] fixed inset-0 z-touchpoint",children:[x==="half"?p.jsx("div",{className:"hidden md:block bg-overlay"}):null,p.jsxs("div",{className:U("w-full bg-background text-primary-80 flex relative flex-col h-full backdrop-blur-overlay",{"col-span-2 md:col-span-1":x==="half","col-span-2":x==="full"}),children:[p.jsx(vm,{windowSize:x,colorMode:l,brandIcon:e.brandIcon,isSettingsOpen:c,toggleSettings:()=>{f(k=>!k)},collapse:()=>{a(!1)},reset:()=>{n.reset({clearResponses:!0}),n.sendWelcomeIntent()}}),c?p.jsx(wm,{className:U("flex-none",x==="full"?"w-full md:max-w-content md:mx-auto":""),onClose:()=>{f(!1)},handler:n}):p.jsxs(p.Fragment,{children:[u?p.jsx(sg,{isWaiting:i,lastBotResponseIndex:v==null?void 0:v.index,responses:r,colorMode:l,handler:n,uploadedFiles:m,customModalities:g,className:U("flex-grow",x==="full"?"w-full md:max-w-content md:mx-auto":"")}):p.jsx(ag,{}),p.jsx(_g,{className:U("flex-none",x==="full"?"w-full md:max-w-content md:mx-auto":""),choiceMessage:E,handler:n,uploadUrl:(w=(S=v==null?void 0:v.response.payload.metadata)==null?void 0:S.uploadUrls)==null?void 0:w[0],onFileUpload:({uploadId:k,file:C})=>{d(P=>({...P,[k]:C}))}})]})]})]}):e.launchIcon!==!1?p.jsx(ia,{className:"font-sans",theme:e.theme,colorMode:l,children:p.jsx(am,{className:"fixed z-100 bottom-2 right-2 backdrop-blur z-launchButton",iconUrl:typeof e.launchIcon=="string"?e.launchIcon:void 0,onClick:()=>{a(!0)},label:"Expand chat"})}):null})});Mf.displayName="App";const Nf=`*,: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-20{width: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-6{gap:1.5rem}.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-inner{border-radius:var(--inner-border-radius)}.rounded-outer{border-radius:var(--outer-border-radius)}.border{border-width:1px}.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-center{text-align:center}.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-xl{font-size:1.25rem;line-height:1.75rem}.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}@property --glow-opacity{syntax: "<percentage>"; inherits: false; initial-value: 0%;}.fullscreen-error svg{animation:error-glow 3s ease infinite;--glow-opacity: 0%;filter:drop-shadow(0 0 6px color-mix(in srgb,transparent,var(--accent) var(--glow-opacity)))}@keyframes error-glow{0%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}22%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}35%{color:var(--accent);fill-opacity:80%;--glow-opacity: 60%}45%{color:var(--accent);fill-opacity:70%;--glow-opacity: 30%}55%{color:var(--accent);fill-opacity:60%;--glow-opacity: 60%}60%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}to{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}}.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-outer:after{content:var(--tw-content);border-radius:var(--outer-border-radius)}.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}}`,Of=({children:e,faded:t})=>p.jsx("p",{className:U("text-base",t?"text-primary-60":"text-primary-80"),children:e}),If=({children:e})=>p.jsx("p",{className:"text-sm text-primary-60",children:e}),$f=({children:e,selected:t,onClick:n})=>p.jsx("div",{className:U("block shrink-0 rounded-inner overflow-hidden","w-80 space-y-px",t?"outline outline-2 outline-accent":""),onClick:n,children:e}),Df=({src:e,alt:t})=>p.jsx("img",{src:e,alt:t,className:"w-full h-52 object-cover"}),Hf=({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]});/*! *****************************************************************************
|
|
120
120
|
Copyright (c) Microsoft Corporation.
|
|
121
121
|
|
|
122
122
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -129,11 +129,11 @@ Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An err
|
|
|
129
129
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
130
130
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
131
131
|
PERFORMANCE OF THIS SOFTWARE.
|
|
132
|
-
***************************************************************************** */var
|
|
132
|
+
***************************************************************************** */var Af=function(e,t){return(Af=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)},Tg,Ci,Pg=(function(e){/*!
|
|
133
133
|
Copyright (c) 2017 Jed Watson.
|
|
134
134
|
Licensed under the MIT License (MIT), see
|
|
135
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})()}(
|
|
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})()}(Ci={path:Tg,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&Ci.path)}},Ci.exports),Ci.exports);function la(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}la.debounce=la;var Rg=la;(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
137
|
overflow: auto; }
|
|
138
138
|
.indiana-scroll-container--dragging {
|
|
139
139
|
scroll-behavior: auto !important; }
|
|
@@ -158,4 +158,5 @@ Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An err
|
|
|
158
158
|
.indiana-dragging {
|
|
159
159
|
cursor: -webkit-grab;
|
|
160
160
|
cursor: grab; }
|
|
161
|
-
`);var
|
|
161
|
+
`);var sa,zg=(sa="indiana-scroll-container",function(e,t){if(!e)return sa;var n;typeof e=="string"?n=e:t=e;var r=sa;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},""):"")}),Mg=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=bt.createRef(),r.onEndScroll=Rg(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}Af(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 bt.createElement(a,{className:Pg(i,this.pressed&&o,zg({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}(R.PureComponent);const Bf=({children:e})=>p.jsx(Mg,{className:"flex gap-x-2 pt-3 pb-1 overflow-x-auto no-scrollbar px-2 -mx-2",children:e});function Vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ng(e,t,n){return t=Si(t),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(r)}(e,Zf()?Reflect.construct(t,n||[],Si(e).constructor):t.apply(e,n))}function Og(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ig(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Ff(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(a,u){if(a){if(typeof a=="string")return Vf(a,u);var c={}.toString.call(a).slice(8,-1);return c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set"?Array.from(a):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?Vf(a,u):void 0}}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(a){throw a},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
162
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var a=n.next();return l=a.done,a},e:function(a){s=!0,i=a},f:function(){try{l||n.return==null||n.return()}finally{if(s)throw i}}}}function Uf(e,t,n){return(t=function(r){var o=function(i,l){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var a=s.call(i,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(i)}(r,"string");return typeof o=="symbol"?o:o+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bi.apply(null,arguments)}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Si(e)}function $g(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aa(e,t)}function Zf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zf=function(){return!!e})()}function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wf(Object(n),!0).forEach(function(r){Uf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qf(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var a={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(s.includes(u))continue;a[u]=l[u]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},aa(e,t)}function Qr(e,t){var n,r=t.replacementChars,o=t.replacement,i=t.separate,l=r,s="",a=Ff(e);try{for(a.s();!(n=a.n()).done;){var u,c=n.value,f=!Object.prototype.hasOwnProperty.call(o,c)&&((u=o[l[0]])===null||u===void 0?void 0:u.test(c));(i&&c===l[0]||f)&&(l=l.slice(1),s+=c)}}catch(h){a.e(h)}finally{a.f()}return s}function Yf(e,t){var n,r=t.mask,o=t.replacement,i=t.separate,l=t.showMask,s=0,a="",u=Ff(r);try{for(u.s();!(n=u.n()).done;){var c=n.value;if(!l&&e[s]===void 0)break;Object.prototype.hasOwnProperty.call(o,c)&&e[s]!==void 0?a+=e[s++]:a+=c}}catch(h){u.e(h)}finally{u.f()}if(i&&!l){for(var f=r.length-1;f>=0&&a[f]===r[f];f--);a=a.slice(0,f+1)}return a}function Xf(e,t){for(var n=t.mask,r=t.replacement,o=[],i=0;i<n.length;i++){var l,s=(l=e[i])!==null&&l!==void 0?l:n[i],a=Object.prototype.hasOwnProperty.call(r,s)?"replacement":e[i]!==void 0&&e[i]!==n[i]?"input":"mask";o.push({type:a,value:s,index:i})}return o}function Yn(e){return e.length>0?Uf({},e,/./):{}}function ua(e,t){for(var n=t.start,r=n===void 0?0:n,o=t.end,i=t.mask,l=t.replacement,s=t.separate,a=e.slice(r,o),u=i.slice(r,o),c="",f=0;f<u.length;f++){var h=Object.prototype.hasOwnProperty.call(l,u[f]);h&&a[f]!==void 0&&a[f]!==u[f]?c+=a[f]:h&&s&&(c+=u[f])}return c}function Gf(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r,i=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return Yf(Qr(e,{replacementChars:n.replace(i,""),replacement:o,separate:!1}),{mask:n,replacement:o,separate:!1,showMask:!1})}function Dg(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r,i=ua(e,{mask:n,replacement:o,separate:!1}),l=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return Qr(i,{replacementChars:n.replace(l,""),replacement:o,separate:!1})}function Hg(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r;return Xf(Gf(e,{mask:n,replacement:o}),{mask:n,replacement:o})}var Ag=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function Kf(e){return Ag.includes(e)?"\\".concat(e):e}function Bg(e,t){for(var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r,i=e==="partial"||e==="partial-inexact",l=e==="full"||e==="partial",s="",a=0;a<n.length;a++){var u=n[a];a===0&&(s="^"),i&&(s+="("),s+=Object.prototype.hasOwnProperty.call(o,u)?"".concat(l?"(?!".concat(Kf(u),")"):"","(").concat(o[u].source,")"):Kf(u),a===n.length-1&&(i&&(s+=")?".repeat(n.length)),s+="$")}return s}function Vg(e,t){return new Proxy(e,{set:function(n,r,o){return r==="current"&&(o!==e.current&&(e.current!==null&&t.unregister(e.current),o!==null&&t.register(o)),n[r]=o,!0)}})}function Fg(e,t,n){return t=Yr(t),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(r)}(e,ca()?Reflect.construct(t,n||[],Yr(e).constructor):t.apply(e,n))}function qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jf(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Ug(e,t,n){return(t=function(r){var o=function(i,l){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var a=s.call(i,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(i)}(r,"string");return typeof o=="symbol"?o:o+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yr(e)}function Zg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xr(e,t)}function ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ca=function(){return!!e})()}function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ep(Object(n),!0).forEach(function(r){Ug(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wg(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var a={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(s.includes(u))continue;a[u]=l[u]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xr(e,t){return Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xr(e,t)}function da(e){return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function fa(e){var t=typeof Map=="function"?new Map:void 0;return fa=function(n){if(n===null||!function(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return function(o,i,l){if(ca())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,i);var a=new(o.bind.apply(o,s));return l&&Xr(a,l.prototype),a}(n,arguments,Yr(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Xr(r,n)},fa(e)}var Gr=function(e){function t(n){var r;return qf(this,t),(r=Fg(this,t,[n])).name="SyntheticChangeError",r}return Zg(t,e),Jf(t)}(fa(Error)),np,Qg=["options"],Yg=["text","email","tel","search","url"],rp=Jf(function e(t){var n=t.init,r=t.tracking;qf(this,e);var o=new WeakMap;this.register=function(i){var l;if(Yg.includes(i.type)){var s=(l=i._wrapperState)!==null&&l!==void 0?l:{},a=s.initialValue,u=a===void 0?"":a,c=s.controlled,f=c!==void 0&&c,h=n({initialValue:i.value||u,controlled:f}),y=h.value,x=h.options,v={value:y,options:x,fallbackOptions:x},E={id:-1,cachedId:-1},m={value:"",selectionStart:0,selectionEnd:0},d=Object.getOwnPropertyDescriptor("_valueTracker"in i?i:HTMLInputElement.prototype,"value");Object.defineProperty(i,"value",tp(tp({},d),{},{set:function(w){var k;m.value=w,d==null||(k=d.set)===null||k===void 0||k.call(i,w)}})),i.value=y;var g=function(){var w=function(){var k,C;m.selectionStart=(k=i.selectionStart)!==null&&k!==void 0?k:0,m.selectionEnd=(C=i.selectionEnd)!==null&&C!==void 0?C:0,E.id=window.setTimeout(w)};E.id=window.setTimeout(w)},b=function(){window.clearTimeout(E.id),E.id=-1,E.cachedId=-1},S=function(w){try{var k,C;if(E.cachedId===E.id)throw new Gr("The input selection has not been updated.");E.cachedId=E.id;var P=i.value,T=i.selectionStart,$=i.selectionEnd;if(T===null||$===null)throw new Gr("The selection attributes have not been initialized.");var ne,Y=m.value;if(w.inputType===void 0&&(m.selectionStart=0,m.selectionEnd=Y.length),T>m.selectionStart?ne="insert":T<=m.selectionStart&&T<m.selectionEnd?ne="deleteBackward":T===m.selectionEnd&&P.length<Y.length&&(ne="deleteForward"),ne===void 0||(ne==="deleteBackward"||ne==="deleteForward")&&P.length>Y.length)throw new Gr("Input type detection error.");var ce="",Ut=m.selectionStart,at=m.selectionEnd;if(ne==="insert")ce=P.slice(m.selectionStart,T);else{var kt=Y.length-P.length;Ut=T,at=T+kt}v.value!==Y?v.options=v.fallbackOptions:v.fallbackOptions=v.options;var L=v.options,z=r({inputType:ne,previousValue:Y,previousOptions:L,value:P,addedValue:ce,changeStart:Ut,changeEnd:at,selectionStart:T,selectionEnd:$}),M=z.options,D=Wg(z,Qg);i.value=D.value,i.setSelectionRange(D.selectionStart,D.selectionEnd),v.value=D.value,v.options=M,m.selectionStart=D.selectionStart,m.selectionEnd=D.selectionEnd,(k=i._valueTracker)===null||k===void 0||(C=k.setValue)===null||C===void 0||C.call(k,Y)}catch(ee){if(i.value=m.value,i.setSelectionRange(m.selectionStart,m.selectionEnd),w.preventDefault(),w.stopPropagation(),ee.name!=="SyntheticChangeError")throw ee}};document.activeElement===i&&g(),i.addEventListener("focus",g),i.addEventListener("blur",b),i.addEventListener("input",S),o.set(i,{onFocus:g,onBlur:b,onInput:S})}},this.unregister=function(i){var l=o.get(i);l!==void 0&&(i.removeEventListener("focus",l.onFocus),i.removeEventListener("blur",l.onBlur),i.removeEventListener("input",l.onInput),o.delete(i))}});np=rp,Object.defineProperty(np.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});function Xg(e,t){return R.useCallback(function(n){e.current=n,typeof t=="function"?t(n):da(t)==="object"&&t!==null&&(t.current=n)},[e,t])}var op,Gg=["track","modify"];function Xn(e){var t,n,r,o;return{mask:(t=e.mask)!==null&&t!==void 0?t:"",replacement:typeof e.replacement=="string"?Yn(e.replacement):(n=e.replacement)!==null&&n!==void 0?n:{},showMask:(r=e.showMask)!==null&&r!==void 0&&r,separate:(o=e.separate)!==null&&o!==void 0&&o,track:e.track,modify:e.modify}}var ip=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Og(this,t),(n=Ng(this,t,[{init:function(o){var i=o.initialValue,l=o.controlled,s=Xn(r),a=s.mask,u=s.replacement,c=s.separate,f=s.showMask;return i=l||i?i:f?a:"",{value:i,options:{mask:a,replacement:u,separate:c}}},tracking:function(o){var i=o.inputType,l=o.previousValue,s=o.previousOptions,a=o.addedValue,u=o.changeStart,c=o.changeEnd,f=Xn(r),h=f.track,y=f.modify,x=Qf(f,Gg),v=x.mask,E=x.replacement,m=x.showMask,d=x.separate,g=_i(_i({},i==="insert"?{inputType:i,data:a}:{inputType:i,data:null}),{},{value:l,selectionStart:u,selectionEnd:c}),b=h==null?void 0:h(g);if(b===!1)throw new Gr("Custom tracking stop.");b===null?a="":b!==!0&&b!==void 0&&(a=b);var S=y==null?void 0:y(g);(S==null?void 0:S.mask)!==void 0&&(v=S.mask),(S==null?void 0:S.replacement)!==void 0&&(E=typeof(S==null?void 0:S.replacement)=="string"?Yn(S==null?void 0:S.replacement):S.replacement),(S==null?void 0:S.showMask)!==void 0&&(m=S.showMask),(S==null?void 0:S.separate)!==void 0&&(d=S.separate);var w=ua(l,_i({end:u},s)),k=ua(l,_i({start:c},s)),C=RegExp("[^".concat(Object.keys(E).join(""),"]"),"g"),P=v.replace(C,"");if(w&&(w=Qr(w,{replacementChars:P,replacement:E,separate:d}),P=P.slice(w.length)),a&&(a=Qr(a,{replacementChars:P,replacement:E,separate:!1}),P=P.slice(a.length)),i==="insert"&&a==="")throw new Gr("The character does not match the key value of the `replacement` object.");if(d){var T=v.slice(u,c).replace(C,""),$=T.length-a.length;$<0?k=k.slice(-$):$>0&&(k=T.slice(-$)+k)}k&&(k=Qr(k,{replacementChars:P,replacement:E,separate:d}));var ne=Yf(w+a+k,{mask:v,replacement:E,separate:d,showMask:m}),Y=function(ce){var Ut,at,kt,L=ce.inputType,z=ce.value,M=ce.addedValue,D=ce.beforeChangeValue,ee=ce.mask,pn=ce.replacement,Ct=ce.separate,hn=Xf(z,{mask:ee,replacement:pn}).filter(function(pa){var ap=pa.type;return ap==="input"||Ct&&ap==="replacement"}),ut=(Ut=hn[D.length+M.length-1])===null||Ut===void 0?void 0:Ut.index,et=(at=hn[D.length-1])===null||at===void 0?void 0:at.index,Gn=(kt=hn[D.length+M.length])===null||kt===void 0?void 0:kt.index;if(L==="insert"){if(ut!==void 0)return ut+1;if(Gn!==void 0)return Gn;if(et!==void 0)return et+1}if(L==="deleteForward"){if(Gn!==void 0)return Gn;if(et!==void 0)return et+1}if(L==="deleteBackward"){if(et!==void 0)return et+1;if(Gn!==void 0)return Gn}var sp=z.split("").findIndex(function(pa){return Object.prototype.hasOwnProperty.call(pn,pa)});return sp!==-1?sp:z.length}({inputType:i,value:ne,addedValue:a,beforeChangeValue:w,mask:v,replacement:E,separate:d});return{value:ne,selectionStart:Y,selectionEnd:Y,options:{mask:v,replacement:E,separate:d}}}}])).format=function(o){return Gf(o,Xn(r))},n.formatToParts=function(o){return Hg(o,Xn(r))},n.unformat=function(o){return Dg(o,Xn(r))},n.generatePattern=function(o){return Bg(o,Xn(r))},n}return $g(t,rp),Ig(t)}();op=ip,Object.defineProperty(op.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function Kg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mask,n=e.replacement,r=e.showMask,o=e.separate,i=e.track,l=e.modify,s=R.useRef(null),a=R.useRef({mask:t,replacement:n,showMask:r,separate:o,track:i,modify:l});return a.current.mask=t,a.current.replacement=n,a.current.showMask=r,a.current.separate=o,a.current.track=i,a.current.modify=l,R.useMemo(function(){return Vg(s,new ip(a.current))},[])}var qg=["component","mask","replacement","showMask","separate","track","modify"];function Jg(e,t){var n=e.component,r=e.mask,o=e.replacement,i=e.showMask,l=e.separate,s=e.track,a=e.modify,u=Qf(e,qg),c=Kg({mask:r,replacement:o,showMask:i,separate:l,track:s,modify:a}),f=Xg(c,t);return n?bt.createElement(n,bi({ref:f},u)):bt.createElement("input",bi({ref:f},u))}var ey=R.forwardRef(Jg);const ty={mask:"MM / DD / YYYY",replacement:{D:/\d/,M:/\d/,Y:/\d/},showMask:!0},lp=({onSubmit:e})=>{const t=e==null,[n,r]=R.useState(null);return p.jsxs("div",{className:U("relative bg-primary-5 flex items-center justify-between pl-4 py-2 pr-2 rounded-outer transition-colors duration-500 before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",t?"":"hover:bg-secondary-20"),children:[p.jsxs("div",{className:"flex items-center",children:[p.jsx(Jd,{className:"w-4 h-4 text-primary-60"}),p.jsx(ey,{...ty,className:U("bg-transparent text-primary-80 outline-0 ml-2 py-2.5",t?"placeholder-primary-20 pointer-events-none":"placeholder-primary-40"),placeholder:"MM / DD / YYYY",onChange:o=>{const i=o.target.value,[l,s,a]=i.split(" / ");l!=null&&l.length===2&&s!=null&&s.length===2&&a!=null&&a.length===4?r(`${a}-${l}-${s}`):r(null)}})]}),p.jsx(xt,{className:"flex-none",label:"Send message",onClick:n==null||e==null?void 0:()=>{e(n)},type:"main",Icon:hi})]})},ny=({children:e,mode:t,theme:n})=>p.jsxs(p.Fragment,{children:[p.jsx("style",{children:Nf}),p.jsx(ia,{className:"bg-background p-4 rounded-outer space-y-4",theme:n,colorMode:t,children:e})]}),ry=(e=>Oh.bind((t,...n)=>R.createElement(e[t]??t,...n)))({TextButton:Ar,IconButton:xt,BaseText:Of,SmallText:If,DateInput:lp,Carousel:Bf,CustomCard:$f,CustomCardRow:Hf,CustomCardImageRow:Df,...sf});class oy extends HTMLElement{constructor(){super(...arguments);H(this,"_root",null);H(this,"_shadowRoot",null);H(this,"onRef",null)}set props(n){this._shadowRoot=this._shadowRoot??this.attachShadow({mode:"closed"}),this._root=Md(this._shadowRoot),this._root.render(p.jsxs(p.Fragment,{children:[p.jsx("style",{children:Nf}),p.jsx(Mf,{...n,ref:r=>{var o;r!=null&&((o=this.onRef)==null||o.call(this,r))}})]}))}disconnectedCallback(){var n;(n=this._root)==null||n.unmount()}}((e,t)=>{customElements.get(e)==null&&customElements.define(e,t)})("nlx-touchpoint",oy);const iy=e=>new Promise(t=>{const n=document.createElement("nlx-touchpoint");n.onRef=r=>{t({set expanded(o){r.setExpanded(o)},get expanded(){return r.getExpanded()},get conversationHandler(){return r.getConversationHandler()},teardown:()=>{document.body.removeChild(n)}})},n.props=e,document.body.appendChild(n)});F.BaseText=Of,F.Carousel=Bf,F.CustomCard=$f,F.CustomCardImageRow=Df,F.CustomCardRow=Hf,F.DateInput=lp,F.IconButton=xt,F.Icons=sf,F.PreviewContainer=ny,F.React=bt,F.SmallText=If,F.TextButton=Ar,F.create=iy,F.html=ry,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
|