ohwow 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +459 -477
- package/dist/migrations/015-file-attachments.sql +1 -1
- package/dist/migrations/027-attachment-pdf-template-type.sql +24 -0
- package/dist/migrations/028-automation-definition.sql +6 -0
- package/dist/migrations/029-goals.sql +26 -0
- package/dist/migrations/030-agent-suggestions.sql +32 -0
- package/dist/migrations/031-task-metadata.sql +4 -0
- package/dist/migrations/032-nudge-type-update.sql +27 -0
- package/dist/web/assets/index-BL-iz5iA.css +1 -0
- package/dist/web/assets/index-eGnhqox0.js +96 -0
- package/dist/web/index.html +2 -2
- package/package.json +2 -1
- package/dist/web/assets/index-CLAt4rAT.css +0 -1
- package/dist/web/assets/index-D2O2_pUv.js +0 -76
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var mg=Object.defineProperty;var hg=(a,n,i)=>n in a?mg(a,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[n]=i;var It=(a,n,i)=>hg(a,typeof n!="symbol"?n+"":n,i);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();var _c={exports:{}},qs={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Rm;function pg(){if(Rm)return qs;Rm=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(o,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:a,type:o,key:h,ref:u!==void 0?u:null,props:f}}return qs.Fragment=n,qs.jsx=i,qs.jsxs=i,qs}var km;function xg(){return km||(km=1,_c.exports=pg()),_c.exports}var s=xg(),Oc={exports:{}},me={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var _m;function gg(){if(_m)return me;_m=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),j=Symbol.iterator;function S(V){return V===null||typeof V!="object"?null:(V=j&&V[j]||V["@@iterator"],typeof V=="function"?V:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,w={};function N(V,P,ee){this.props=V,this.context=P,this.refs=w,this.updater=ee||E}N.prototype.isReactComponent={},N.prototype.setState=function(V,P){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,P,"setState")},N.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function C(){}C.prototype=N.prototype;function Z(V,P,ee){this.props=V,this.context=P,this.refs=w,this.updater=ee||E}var q=Z.prototype=new C;q.constructor=Z,M(q,N.prototype),q.isPureReactComponent=!0;var $=Array.isArray;function U(){}var B={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function Q(V,P,ee){var se=ee.ref;return{$$typeof:a,type:V,key:P,ref:se!==void 0?se:null,props:ee}}function J(V,P){return Q(V.type,P,V.props)}function W(V){return typeof V=="object"&&V!==null&&V.$$typeof===a}function re(V){var P={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ee){return P[ee]})}var le=/\/+/g;function K(V,P){return typeof V=="object"&&V!==null&&V.key!=null?re(""+V.key):P.toString(36)}function te(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(U,U):(V.status="pending",V.then(function(P){V.status==="pending"&&(V.status="fulfilled",V.value=P)},function(P){V.status==="pending"&&(V.status="rejected",V.reason=P)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function R(V,P,ee,se,xe){var ve=typeof V;(ve==="undefined"||ve==="boolean")&&(V=null);var Te=!1;if(V===null)Te=!0;else switch(ve){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(V.$$typeof){case a:case n:Te=!0;break;case y:return Te=V._init,R(Te(V._payload),P,ee,se,xe)}}if(Te)return xe=xe(V),Te=se===""?"."+K(V,0):se,$(xe)?(ee="",Te!=null&&(ee=Te.replace(le,"$&/")+"/"),R(xe,P,ee,"",function(Ql){return Ql})):xe!=null&&(W(xe)&&(xe=J(xe,ee+(xe.key==null||V&&V.key===xe.key?"":(""+xe.key).replace(le,"$&/")+"/")+Te)),P.push(xe)),1;Te=0;var xt=se===""?".":se+":";if($(V))for(var Ge=0;Ge<V.length;Ge++)se=V[Ge],ve=xt+K(se,Ge),Te+=R(se,P,ee,ve,xe);else if(Ge=S(V),typeof Ge=="function")for(V=Ge.call(V),Ge=0;!(se=V.next()).done;)se=se.value,ve=xt+K(se,Ge++),Te+=R(se,P,ee,ve,xe);else if(ve==="object"){if(typeof V.then=="function")return R(te(V),P,ee,se,xe);throw P=String(V),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return Te}function _(V,P,ee){if(V==null)return V;var se=[],xe=0;return R(V,se,"","",function(ve){return P.call(ee,ve,xe++)}),se}function I(V){if(V._status===-1){var P=V._result;P=P(),P.then(function(ee){(V._status===0||V._status===-1)&&(V._status=1,V._result=ee)},function(ee){(V._status===0||V._status===-1)&&(V._status=2,V._result=ee)}),V._status===-1&&(V._status=0,V._result=P)}if(V._status===1)return V._result.default;throw V._result}var ce=typeof reportError=="function"?reportError:function(V){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V=="object"&&V!==null&&typeof V.message=="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",V);return}console.error(V)},pe={map:_,forEach:function(V,P,ee){_(V,function(){P.apply(this,arguments)},ee)},count:function(V){var P=0;return _(V,function(){P++}),P},toArray:function(V){return _(V,function(P){return P})||[]},only:function(V){if(!W(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};return me.Activity=b,me.Children=pe,me.Component=N,me.Fragment=i,me.Profiler=u,me.PureComponent=Z,me.StrictMode=o,me.Suspense=x,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,me.__COMPILER_RUNTIME={__proto__:null,c:function(V){return B.H.useMemoCache(V)}},me.cache=function(V){return function(){return V.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(V,P,ee){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var se=M({},V.props),xe=V.key;if(P!=null)for(ve in P.key!==void 0&&(xe=""+P.key),P)!z.call(P,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&P.ref===void 0||(se[ve]=P[ve]);var ve=arguments.length-2;if(ve===1)se.children=ee;else if(1<ve){for(var Te=Array(ve),xt=0;xt<ve;xt++)Te[xt]=arguments[xt+2];se.children=Te}return Q(V.type,xe,se)},me.createContext=function(V){return V={$$typeof:h,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:f,_context:V},V},me.createElement=function(V,P,ee){var se,xe={},ve=null;if(P!=null)for(se in P.key!==void 0&&(ve=""+P.key),P)z.call(P,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(xe[se]=P[se]);var Te=arguments.length-2;if(Te===1)xe.children=ee;else if(1<Te){for(var xt=Array(Te),Ge=0;Ge<Te;Ge++)xt[Ge]=arguments[Ge+2];xe.children=xt}if(V&&V.defaultProps)for(se in Te=V.defaultProps,Te)xe[se]===void 0&&(xe[se]=Te[se]);return Q(V,ve,xe)},me.createRef=function(){return{current:null}},me.forwardRef=function(V){return{$$typeof:p,render:V}},me.isValidElement=W,me.lazy=function(V){return{$$typeof:y,_payload:{_status:-1,_result:V},_init:I}},me.memo=function(V,P){return{$$typeof:g,type:V,compare:P===void 0?null:P}},me.startTransition=function(V){var P=B.T,ee={};B.T=ee;try{var se=V(),xe=B.S;xe!==null&&xe(ee,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(U,ce)}catch(ve){ce(ve)}finally{P!==null&&ee.types!==null&&(P.types=ee.types),B.T=P}},me.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},me.use=function(V){return B.H.use(V)},me.useActionState=function(V,P,ee){return B.H.useActionState(V,P,ee)},me.useCallback=function(V,P){return B.H.useCallback(V,P)},me.useContext=function(V){return B.H.useContext(V)},me.useDebugValue=function(){},me.useDeferredValue=function(V,P){return B.H.useDeferredValue(V,P)},me.useEffect=function(V,P){return B.H.useEffect(V,P)},me.useEffectEvent=function(V){return B.H.useEffectEvent(V)},me.useId=function(){return B.H.useId()},me.useImperativeHandle=function(V,P,ee){return B.H.useImperativeHandle(V,P,ee)},me.useInsertionEffect=function(V,P){return B.H.useInsertionEffect(V,P)},me.useLayoutEffect=function(V,P){return B.H.useLayoutEffect(V,P)},me.useMemo=function(V,P){return B.H.useMemo(V,P)},me.useOptimistic=function(V,P){return B.H.useOptimistic(V,P)},me.useReducer=function(V,P,ee){return B.H.useReducer(V,P,ee)},me.useRef=function(V){return B.H.useRef(V)},me.useState=function(V){return B.H.useState(V)},me.useSyncExternalStore=function(V,P,ee){return B.H.useSyncExternalStore(V,P,ee)},me.useTransition=function(){return B.H.useTransition()},me.version="19.2.4",me}var Om;function $u(){return Om||(Om=1,Oc.exports=gg()),Oc.exports}var c=$u(),zc={exports:{}},$s={},Bc={exports:{}},Uc={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var zm;function bg(){return zm||(zm=1,(function(a){function n(R,_){var I=R.length;R.push(_);e:for(;0<I;){var ce=I-1>>>1,pe=R[ce];if(0<u(pe,_))R[ce]=_,R[I]=pe,I=ce;else break e}}function i(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var _=R[0],I=R.pop();if(I!==_){R[0]=I;e:for(var ce=0,pe=R.length,V=pe>>>1;ce<V;){var P=2*(ce+1)-1,ee=R[P],se=P+1,xe=R[se];if(0>u(ee,I))se<pe&&0>u(xe,ee)?(R[ce]=xe,R[se]=I,ce=se):(R[ce]=ee,R[P]=I,ce=P);else if(se<pe&&0>u(xe,I))R[ce]=xe,R[se]=I,ce=se;else break e}}return _}function u(R,_){var I=R.sortIndex-_.sortIndex;return I!==0?I:R.id-_.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var x=[],g=[],y=1,b=null,j=3,S=!1,E=!1,M=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function q(R){for(var _=i(g);_!==null;){if(_.callback===null)o(g);else if(_.startTime<=R)o(g),_.sortIndex=_.expirationTime,n(x,_);else break;_=i(g)}}function $(R){if(M=!1,q(R),!E)if(i(x)!==null)E=!0,U||(U=!0,re());else{var _=i(g);_!==null&&te($,_.startTime-R)}}var U=!1,B=-1,z=5,Q=-1;function J(){return w?!0:!(a.unstable_now()-Q<z)}function W(){if(w=!1,U){var R=a.unstable_now();Q=R;var _=!0;try{e:{E=!1,M&&(M=!1,C(B),B=-1),S=!0;var I=j;try{t:{for(q(R),b=i(x);b!==null&&!(b.expirationTime>R&&J());){var ce=b.callback;if(typeof ce=="function"){b.callback=null,j=b.priorityLevel;var pe=ce(b.expirationTime<=R);if(R=a.unstable_now(),typeof pe=="function"){b.callback=pe,q(R),_=!0;break t}b===i(x)&&o(x),q(R)}else o(x);b=i(x)}if(b!==null)_=!0;else{var V=i(g);V!==null&&te($,V.startTime-R),_=!1}}break e}finally{b=null,j=I,S=!1}_=void 0}}finally{_?re():U=!1}}}var re;if(typeof Z=="function")re=function(){Z(W)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,K=le.port2;le.port1.onmessage=W,re=function(){K.postMessage(null)}}else re=function(){N(W,0)};function te(R,_){B=N(function(){R(a.unstable_now())},_)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return j},a.unstable_next=function(R){switch(j){case 1:case 2:case 3:var _=3;break;default:_=j}var I=j;j=_;try{return R()}finally{j=I}},a.unstable_requestPaint=function(){w=!0},a.unstable_runWithPriority=function(R,_){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var I=j;j=R;try{return _()}finally{j=I}},a.unstable_scheduleCallback=function(R,_,I){var ce=a.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ce+I:ce):I=ce,R){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=I+pe,R={id:y++,callback:_,priorityLevel:R,startTime:I,expirationTime:pe,sortIndex:-1},I>ce?(R.sortIndex=I,n(g,R),i(x)===null&&R===i(g)&&(M?(C(B),B=-1):M=!0,te($,I-ce))):(R.sortIndex=pe,n(x,R),E||S||(E=!0,U||(U=!0,re()))),R},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(R){var _=j;return function(){var I=j;j=_;try{return R.apply(this,arguments)}finally{j=I}}}})(Uc)),Uc}var Bm;function yg(){return Bm||(Bm=1,Bc.exports=bg()),Bc.exports}var Fc={exports:{}},mt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Um;function vg(){if(Um)return mt;Um=1;var a=$u();function n(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(x,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:x,containerInfo:g,implementation:y}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,mt.createPortal=function(x,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return f(x,g,null,y)},mt.flushSync=function(x){var g=h.T,y=o.p;try{if(h.T=null,o.p=2,x)return x()}finally{h.T=g,o.p=y,o.d.f()}},mt.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(x,g))},mt.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},mt.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin),j=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:j,fetchPriority:S}):y==="script"&&o.d.X(x,{crossOrigin:b,integrity:j,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},mt.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=p(g.as,g.crossOrigin);o.d.M(x,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(x)},mt.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=p(y,g.crossOrigin);o.d.L(x,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},mt.preloadModule=function(x,g){if(typeof x=="string")if(g){var y=p(g.as,g.crossOrigin);o.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(x)},mt.requestFormReset=function(x){o.d.r(x)},mt.unstable_batchedUpdates=function(x,g){return x(g)},mt.useFormState=function(x,g,y){return h.H.useFormState(x,g,y)},mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var Fm;function jg(){if(Fm)return Fc.exports;Fm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),Fc.exports=vg(),Fc.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var qm;function Ag(){if(qm)return $s;qm=1;var a=yg(),n=$u(),i=jg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(f(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,r=t;;){var d=l.return;if(d===null)break;var m=d.alternate;if(m===null){if(r=d.return,r!==null){l=r;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===l)return x(d),e;if(m===r)return x(d),t;m=m.sibling}throw Error(o(188))}if(l.return!==r.return)l=d,r=m;else{for(var v=!1,A=d.child;A;){if(A===l){v=!0,l=d,r=m;break}if(A===r){v=!0,r=d,l=m;break}A=A.sibling}if(!v){for(A=m.child;A;){if(A===l){v=!0,l=m,r=d;break}if(A===r){v=!0,r=m,l=d;break}A=A.sibling}if(!v)throw Error(o(189))}}if(l.alternate!==r)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,j=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function K(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case N:return"Profiler";case w:return"StrictMode";case $:return"Suspense";case U:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case Z:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:K(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return K(e(t))}catch{}}return null}var te=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ce=[],pe=-1;function V(e){return{current:e}}function P(e){0>pe||(e.current=ce[pe],ce[pe]=null,pe--)}function ee(e,t){pe++,ce[pe]=e.current,e.current=t}var se=V(null),xe=V(null),ve=V(null),Te=V(null);function xt(e,t){switch(ee(ve,t),ee(xe,e),ee(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lm(t),e=sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(se),ee(se,e)}function Ge(){P(se),P(xe),P(ve)}function Ql(e){e.memoizedState!==null&&ee(Te,e);var t=se.current,l=sm(t,e.type);t!==l&&(ee(xe,e),ee(se,l))}function mi(e){xe.current===e&&(P(se),P(xe)),Te.current===e&&(P(Te),zs._currentValue=I)}var yo,H1;function jn(e){if(yo===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yo=t&&t[1]||"",H1=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+yo+e+H1}var vo=!1;function jo(e,t){if(!e||vo)return"";vo=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(F){var O=F}Reflect.construct(e,[],X)}else{try{X.call()}catch(F){O=F}e.call(X.prototype)}}else{try{throw Error()}catch(F){O=F}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(F){if(F&&O&&typeof F.stack=="string")return[F.stack,O.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=r.DetermineComponentFrameRoot(),v=m[0],A=m[1];if(v&&A){var T=v.split(`
|
|
44
|
-
`),k=A.split(`
|
|
45
|
-
`);for(d=r=0;r<T.length&&!T[r].includes("DetermineComponentFrameRoot");)r++;for(;d<k.length&&!k[d].includes("DetermineComponentFrameRoot");)d++;if(r===T.length||d===k.length)for(r=T.length-1,d=k.length-1;1<=r&&0<=d&&T[r]!==k[d];)d--;for(;1<=r&&0<=d;r--,d--)if(T[r]!==k[d]){if(r!==1||d!==1)do if(r--,d--,0>d||T[r]!==k[d]){var Y=`
|
|
46
|
-
`+T[r].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=r&&0<=d);break}}}finally{vo=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?jn(l):""}function $p(e,t){switch(e.tag){case 26:case 27:case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return e.child!==t&&t!==null?jn("Suspense Fallback"):jn("Suspense");case 19:return jn("SuspenseList");case 0:case 15:return jo(e.type,!1);case 11:return jo(e.type.render,!1);case 1:return jo(e.type,!0);case 31:return jn("Activity");default:return""}}function D1(e){try{var t="",l=null;do t+=$p(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
|
-
Error generating stack: `+r.message+`
|
|
48
|
-
`+r.stack}}var Ao=Object.prototype.hasOwnProperty,So=a.unstable_scheduleCallback,wo=a.unstable_cancelCallback,Yp=a.unstable_shouldYield,Gp=a.unstable_requestPaint,Vt=a.unstable_now,Xp=a.unstable_getCurrentPriorityLevel,R1=a.unstable_ImmediatePriority,k1=a.unstable_UserBlockingPriority,hi=a.unstable_NormalPriority,Pp=a.unstable_LowPriority,_1=a.unstable_IdlePriority,Kp=a.log,Qp=a.unstable_setDisableYieldValue,Jl=null,Lt=null;function qa(e){if(typeof Kp=="function"&&Qp(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(Jl,e)}catch{}}var Zt=Math.clz32?Math.clz32:Ip,Jp=Math.log,Wp=Math.LN2;function Ip(e){return e>>>=0,e===0?32:31-(Jp(e)/Wp|0)|0}var pi=256,xi=262144,gi=4194304;function An(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function bi(e,t,l){var r=e.pendingLanes;if(r===0)return 0;var d=0,m=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var A=r&134217727;return A!==0?(r=A&~m,r!==0?d=An(r):(v&=A,v!==0?d=An(v):l||(l=A&~e,l!==0&&(d=An(l))))):(A=r&~m,A!==0?d=An(A):v!==0?d=An(v):l||(l=r&~e,l!==0&&(d=An(l)))),d===0?0:t!==0&&t!==d&&(t&m)===0&&(m=d&-d,l=t&-t,m>=l||m===32&&(l&4194048)!==0)?t:d}function Wl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function e3(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function O1(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function Eo(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function t3(e,t,l,r,d,m){var v=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var A=e.entanglements,T=e.expirationTimes,k=e.hiddenUpdates;for(l=v&~l;0<l;){var Y=31-Zt(l),X=1<<Y;A[Y]=0,T[Y]=-1;var O=k[Y];if(O!==null)for(k[Y]=null,Y=0;Y<O.length;Y++){var F=O[Y];F!==null&&(F.lane&=-536870913)}l&=~X}r!==0&&z1(e,r,0),m!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=m&~(v&~t))}function z1(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Zt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function B1(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-Zt(l),d=1<<r;d&t|e[r]&t&&(e[r]|=t),l&=~d}}function U1(e,t){var l=t&-t;return l=(l&42)!==0?1:No(l),(l&(e.suspendedLanes|t))!==0?0:l}function No(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Mo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function F1(){var e=_.p;return e!==0?e:(e=window.event,e===void 0?32:Cm(e.type))}function q1(e,t){var l=_.p;try{return _.p=e,t()}finally{_.p=l}}var $a=Math.random().toString(36).slice(2),rt="__reactFiber$"+$a,At="__reactProps$"+$a,Kn="__reactContainer$"+$a,Co="__reactEvents$"+$a,a3="__reactListeners$"+$a,n3="__reactHandles$"+$a,$1="__reactResources$"+$a,es="__reactMarker$"+$a;function To(e){delete e[rt],delete e[At],delete e[Co],delete e[a3],delete e[n3]}function Qn(e){var t=e[rt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Kn]||l[rt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=fm(e);e!==null;){if(l=e[rt])return l;e=fm(e)}return t}e=l,l=e.parentNode}return null}function Jn(e){if(e=e[rt]||e[Kn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ts(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Wn(e){var t=e[$1];return t||(t=e[$1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[es]=!0}var Y1=new Set,G1={};function Sn(e,t){In(e,t),In(e+"Capture",t)}function In(e,t){for(G1[e]=t,e=0;e<t.length;e++)Y1.add(t[e])}var l3=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),X1={},P1={};function s3(e){return Ao.call(P1,e)?!0:Ao.call(X1,e)?!1:l3.test(e)?P1[e]=!0:(X1[e]=!0,!1)}function yi(e,t,l){if(s3(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function vi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Sa(e,t,l,r){if(r===null)e.removeAttribute(l);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+r)}}function qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function K1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i3(e,t,l){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var d=r.get,m=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(v){l=""+v,m.call(this,v)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){if(!e._valueTracker){var t=K1(e)?"checked":"value";e._valueTracker=i3(e,t,""+e[t])}}function Q1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=K1(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function ji(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var r3=/[\n"\\]/g;function $t(e){return e.replace(r3,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lo(e,t,l,r,d,m,v,A){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Zo(e,v,qt(t)):l!=null?Zo(e,v,qt(l)):r!=null&&e.removeAttribute("value"),d==null&&m!=null&&(e.defaultChecked=!!m),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+qt(A):e.removeAttribute("name")}function J1(e,t,l,r,d,m,v,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),t!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||t!=null)){Vo(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,A||t===e.value||(e.value=t),e.defaultValue=t}r=r??d,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=A?e.checked:!!r,e.defaultChecked=!!r,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Vo(e)}function Zo(e,t,l){t==="number"&&ji(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function el(e,t,l,r){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&r&&(e[l].defaultSelected=!0)}else{for(l=""+qt(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,r&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function W1(e,t,l){if(t!=null&&(t=""+qt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+qt(l):""}function I1(e,t,l,r){if(t==null){if(r!=null){if(l!=null)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}l=r}l==null&&(l=""),t=l}l=qt(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),Vo(e)}function tl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var o3=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ed(e,t,l){var r=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,l):typeof l!="number"||l===0||o3.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function td(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var r in l)!l.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var d in t)r=t[d],t.hasOwnProperty(d)&&l[d]!==r&&ed(e,d,r)}else for(var m in t)t.hasOwnProperty(m)&&ed(e,m,t[m])}function Ho(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var c3=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),u3=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ai(e){return u3.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wa(){}var Do=null;function Ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var al=null,nl=null;function ad(e){var t=Jn(e);if(t&&(e=t.stateNode)){var l=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lo(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+$t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var d=r[At]||null;if(!d)throw Error(o(90));Lo(r,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)r=l[t],r.form===e.form&&Q1(r)}break e;case"textarea":W1(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&el(e,!!l.multiple,t,!1)}}}var ko=!1;function nd(e,t,l){if(ko)return e(t,l);ko=!0;try{var r=e(t);return r}finally{if(ko=!1,(al!==null||nl!==null)&&(cr(),al&&(t=al,e=nl,nl=al=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function as(e,t){var l=e.stateNode;if(l===null)return null;var r=l[At]||null;if(r===null)return null;l=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(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(Ea)try{var ns={};Object.defineProperty(ns,"passive",{get:function(){_o=!0}}),window.addEventListener("test",ns,ns),window.removeEventListener("test",ns,ns)}catch{_o=!1}var Ya=null,Oo=null,Si=null;function ld(){if(Si)return Si;var e,t=Oo,l=t.length,r,d="value"in Ya?Ya.value:Ya.textContent,m=d.length;for(e=0;e<l&&t[e]===d[e];e++);var v=l-e;for(r=1;r<=v&&t[l-r]===d[m-r];r++);return Si=d.slice(e,1<r?1-r:void 0)}function wi(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 Ei(){return!0}function sd(){return!1}function St(e){function t(l,r,d,m,v){this._reactName=l,this._targetInst=d,this.type=r,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(l=e[A],this[A]=l?l(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ei:sd,this.isPropagationStopped=sd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ei)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ei)},persist:function(){},isPersistent:Ei}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ni=St(wn),ls=b({},wn,{view:0,detail:0}),d3=St(ls),zo,Bo,ss,Mi=b({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,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!==ss&&(ss&&e.type==="mousemove"?(zo=e.screenX-ss.screenX,Bo=e.screenY-ss.screenY):Bo=zo=0,ss=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:Bo}}),id=St(Mi),f3=b({},Mi,{dataTransfer:0}),m3=St(f3),h3=b({},ls,{relatedTarget:0}),Uo=St(h3),p3=b({},wn,{animationName:0,elapsedTime:0,pseudoElement:0}),x3=St(p3),g3=b({},wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b3=St(g3),y3=b({},wn,{data:0}),rd=St(y3),v3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j3={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"},A3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=A3[e])?!!t[e]:!1}function Fo(){return S3}var w3=b({},ls,{key:function(e){if(e.key){var t=v3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E3=St(w3),N3=b({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=St(N3),M3=b({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo}),C3=St(M3),T3=b({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),V3=St(T3),L3=b({},Mi,{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}),Z3=St(L3),H3=b({},wn,{newState:0,oldState:0}),D3=St(H3),R3=[9,13,27,32],qo=Ea&&"CompositionEvent"in window,is=null;Ea&&"documentMode"in document&&(is=document.documentMode);var k3=Ea&&"TextEvent"in window&&!is,cd=Ea&&(!qo||is&&8<is&&11>=is),ud=" ",dd=!1;function fd(e,t){switch(e){case"keyup":return R3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function md(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ll=!1;function _3(e,t){switch(e){case"compositionend":return md(t);case"keypress":return t.which!==32?null:(dd=!0,ud);case"textInput":return e=t.data,e===ud&&dd?null:e;default:return null}}function O3(e,t){if(ll)return e==="compositionend"||!qo&&fd(e,t)?(e=ld(),Si=Oo=Ya=null,ll=!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 cd&&t.locale!=="ko"?null:t.data;default:return null}}var z3={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 hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z3[e.type]:t==="textarea"}function pd(e,t,l,r){al?nl?nl.push(r):nl=[r]:al=r,t=xr(t,"onChange"),0<t.length&&(l=new Ni("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var rs=null,os=null;function B3(e){Wf(e,0)}function Ci(e){var t=ts(e);if(Q1(t))return e}function xd(e,t){if(e==="change")return t}var gd=!1;if(Ea){var $o;if(Ea){var Yo="oninput"in document;if(!Yo){var bd=document.createElement("div");bd.setAttribute("oninput","return;"),Yo=typeof bd.oninput=="function"}$o=Yo}else $o=!1;gd=$o&&(!document.documentMode||9<document.documentMode)}function yd(){rs&&(rs.detachEvent("onpropertychange",vd),os=rs=null)}function vd(e){if(e.propertyName==="value"&&Ci(os)){var t=[];pd(t,os,e,Ro(e)),nd(B3,t)}}function U3(e,t,l){e==="focusin"?(yd(),rs=t,os=l,rs.attachEvent("onpropertychange",vd)):e==="focusout"&&yd()}function F3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(os)}function q3(e,t){if(e==="click")return Ci(t)}function $3(e,t){if(e==="input"||e==="change")return Ci(t)}function Y3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:Y3;function cs(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),r=Object.keys(t);if(l.length!==r.length)return!1;for(r=0;r<l.length;r++){var d=l[r];if(!Ao.call(t,d)||!Ht(e[d],t[d]))return!1}return!0}function jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ad(e,t){var l=jd(e);e=0;for(var r;l;){if(l.nodeType===3){if(r=e+l.textContent.length,e<=t&&r>=t)return{node:l,offset:t-e};e=r}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=jd(l)}}function Sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ji(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ji(e.document)}return t}function Go(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var G3=Ea&&"documentMode"in document&&11>=document.documentMode,sl=null,Xo=null,us=null,Po=!1;function Ed(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Po||sl==null||sl!==ji(r)||(r=sl,"selectionStart"in r&&Go(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}),us&&cs(us,r)||(us=r,r=xr(Xo,"onSelect"),0<r.length&&(t=new Ni("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=sl)))}function En(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var il={animationend:En("Animation","AnimationEnd"),animationiteration:En("Animation","AnimationIteration"),animationstart:En("Animation","AnimationStart"),transitionrun:En("Transition","TransitionRun"),transitionstart:En("Transition","TransitionStart"),transitioncancel:En("Transition","TransitionCancel"),transitionend:En("Transition","TransitionEnd")},Ko={},Nd={};Ea&&(Nd=document.createElement("div").style,"AnimationEvent"in window||(delete il.animationend.animation,delete il.animationiteration.animation,delete il.animationstart.animation),"TransitionEvent"in window||delete il.transitionend.transition);function Nn(e){if(Ko[e])return Ko[e];if(!il[e])return e;var t=il[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Nd)return Ko[e]=t[l];return e}var Md=Nn("animationend"),Cd=Nn("animationiteration"),Td=Nn("animationstart"),X3=Nn("transitionrun"),P3=Nn("transitionstart"),K3=Nn("transitioncancel"),Vd=Nn("transitionend"),Ld=new Map,Qo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qo.push("scrollEnd");function la(e,t){Ld.set(e,t),Sn(t,[e])}var Ti=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Yt=[],rl=0,Jo=0;function Vi(){for(var e=rl,t=Jo=rl=0;t<e;){var l=Yt[t];Yt[t++]=null;var r=Yt[t];Yt[t++]=null;var d=Yt[t];Yt[t++]=null;var m=Yt[t];if(Yt[t++]=null,r!==null&&d!==null){var v=r.pending;v===null?d.next=d:(d.next=v.next,v.next=d),r.pending=d}m!==0&&Zd(l,d,m)}}function Li(e,t,l,r){Yt[rl++]=e,Yt[rl++]=t,Yt[rl++]=l,Yt[rl++]=r,Jo|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Wo(e,t,l,r){return Li(e,t,l,r),Zi(e)}function Mn(e,t){return Li(e,null,null,t),Zi(e)}function Zd(e,t,l){e.lanes|=l;var r=e.alternate;r!==null&&(r.lanes|=l);for(var d=!1,m=e.return;m!==null;)m.childLanes|=l,r=m.alternate,r!==null&&(r.childLanes|=l),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(d=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,d&&t!==null&&(d=31-Zt(l),e=m.hiddenUpdates,r=e[d],r===null?e[d]=[t]:r.push(t),t.lane=l|536870912),m):null}function Zi(e){if(50<Zs)throw Zs=0,rc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function Q3(e,t,l,r){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,l,r){return new Q3(e,t,l,r)}function Io(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Na(e,t){var l=e.alternate;return l===null?(l=Dt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Hd(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hi(e,t,l,r,d,m){var v=0;if(r=e,typeof e=="function")Io(e)&&(v=1);else if(typeof e=="string")v=tg(e,l,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=Dt(31,l,t,d),e.elementType=Q,e.lanes=m,e;case M:return Cn(l.children,d,m,t);case w:v=8,d|=24;break;case N:return e=Dt(12,l,t,d|2),e.elementType=N,e.lanes=m,e;case $:return e=Dt(13,l,t,d),e.elementType=$,e.lanes=m,e;case U:return e=Dt(19,l,t,d),e.elementType=U,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:v=10;break e;case C:v=9;break e;case q:v=11;break e;case B:v=14;break e;case z:v=16,r=null;break e}v=29,l=Error(o(130,e===null?"null":typeof e,"")),r=null}return t=Dt(v,l,t,d),t.elementType=e,t.type=r,t.lanes=m,t}function Cn(e,t,l,r){return e=Dt(7,e,r,t),e.lanes=l,e}function e0(e,t,l){return e=Dt(6,e,null,t),e.lanes=l,e}function Dd(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function t0(e,t,l){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rd=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var l=Rd.get(e);return l!==void 0?l:(t={value:e,source:t,stack:D1(t)},Rd.set(e,t),t)}return{value:e,source:t,stack:D1(t)}}var cl=[],ul=0,Di=null,ds=0,Xt=[],Pt=0,Ga=null,fa=1,ma="";function Ma(e,t){cl[ul++]=ds,cl[ul++]=Di,Di=e,ds=t}function kd(e,t,l){Xt[Pt++]=fa,Xt[Pt++]=ma,Xt[Pt++]=Ga,Ga=e;var r=fa;e=ma;var d=32-Zt(r)-1;r&=~(1<<d),l+=1;var m=32-Zt(t)+d;if(30<m){var v=d-d%5;m=(r&(1<<v)-1).toString(32),r>>=v,d-=v,fa=1<<32-Zt(t)+d|l<<d|r,ma=m+e}else fa=1<<m|l<<d|r,ma=e}function a0(e){e.return!==null&&(Ma(e,1),kd(e,1,0))}function n0(e){for(;e===Di;)Di=cl[--ul],cl[ul]=null,ds=cl[--ul],cl[ul]=null;for(;e===Ga;)Ga=Xt[--Pt],Xt[Pt]=null,ma=Xt[--Pt],Xt[Pt]=null,fa=Xt[--Pt],Xt[Pt]=null}function _d(e,t){Xt[Pt++]=fa,Xt[Pt++]=ma,Xt[Pt++]=Ga,fa=t.id,ma=t.overflow,Ga=e}var ot=null,_e=null,Ee=!1,Xa=null,Kt=!1,l0=Error(o(519));function Pa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fs(Gt(t,e)),l0}function Od(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[rt]=e,t[At]=r,l){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(l=0;l<Ds.length;l++)Ae(Ds[l],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),J1(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),I1(t,r.value,r.defaultValue,r.children)}l=r.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||r.suppressHydrationWarning===!0||am(t.textContent,l)?(r.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),r.onScroll!=null&&Ae("scroll",t),r.onScrollEnd!=null&&Ae("scrollend",t),r.onClick!=null&&(t.onclick=wa),t=!0):t=!1,t||Pa(e,!0)}function zd(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:ot=ot.return}}function dl(e){if(e!==ot)return!1;if(!Ee)return zd(e),Ee=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ac(e.type,e.memoizedProps)),l=!l),l&&_e&&Pa(e),zd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=dm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=dm(e)}else t===27?(t=_e,cn(e.type)?(e=Mc,Mc=null,_e=e):_e=t):_e=ot?Jt(e.stateNode.nextSibling):null;return!0}function Tn(){_e=ot=null,Ee=!1}function s0(){var e=Xa;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Xa=null),e}function fs(e){Xa===null?Xa=[e]:Xa.push(e)}var i0=V(null),Vn=null,Ca=null;function Ka(e,t,l){ee(i0,t._currentValue),t._currentValue=l}function Ta(e){e._currentValue=i0.current,P(i0)}function r0(e,t,l){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===l)break;e=e.return}}function o0(e,t,l,r){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var m=d.dependencies;if(m!==null){var v=d.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=d;for(var T=0;T<t.length;T++)if(A.context===t[T]){m.lanes|=l,A=m.alternate,A!==null&&(A.lanes|=l),r0(m.return,l,e),r||(v=null);break e}m=A.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(o(341));v.lanes|=l,m=v.alternate,m!==null&&(m.lanes|=l),r0(v,l,e),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===e){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function fl(e,t,l,r){e=null;for(var d=t,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(o(387));if(v=v.memoizedProps,v!==null){var A=d.type;Ht(d.pendingProps.value,v.value)||(e!==null?e.push(A):e=[A])}}else if(d===Te.current){if(v=d.alternate,v===null)throw Error(o(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(zs):e=[zs])}d=d.return}e!==null&&o0(t,e,l,r),t.flags|=262144}function Ri(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ln(e){Vn=e,Ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Bd(Vn,e)}function ki(e,t){return Vn===null&&Ln(e),Bd(e,t)}function Bd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ca===null){if(e===null)throw Error(o(308));Ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ca=Ca.next=t;return l}var J3=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},W3=a.unstable_scheduleCallback,I3=a.unstable_NormalPriority,Ke={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function c0(){return{controller:new J3,data:new Map,refCount:0}}function ms(e){e.refCount--,e.refCount===0&&W3(I3,function(){e.controller.abort()})}var hs=null,u0=0,ml=0,hl=null;function ex(e,t){if(hs===null){var l=hs=[];u0=0,ml=mc(),hl={status:"pending",value:void 0,then:function(r){l.push(r)}}}return u0++,t.then(Ud,Ud),t}function Ud(){if(--u0===0&&hs!==null){hl!==null&&(hl.status="fulfilled");var e=hs;hs=null,ml=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tx(e,t){var l=[],r={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(r.status="rejected",r.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),r}var Fd=R.S;R.S=function(e,t){Nf=Vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ex(e,t),Fd!==null&&Fd(e,t)};var Zn=V(null);function d0(){var e=Zn.current;return e!==null?e:Re.pooledCache}function _i(e,t){t===null?ee(Zn,Zn.current):ee(Zn,t.pool)}function qd(){var e=d0();return e===null?null:{parent:Ke._currentValue,pool:e}}var pl=Error(o(460)),f0=Error(o(474)),Oi=Error(o(542)),zi={then:function(){}};function $d(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(wa,wa),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(wa,wa);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=r}},function(r){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e}throw Dn=t,pl}}function Hn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Dn=l,pl):l}}var Dn=null;function Gd(){if(Dn===null)throw Error(o(459));var e=Dn;return Dn=null,e}function Xd(e){if(e===pl||e===Oi)throw Error(o(483))}var xl=null,ps=0;function Bi(e){var t=ps;return ps+=1,xl===null&&(xl=[]),Yd(xl,e,t)}function xs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ui(e,t){throw t.$$typeof===j?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pd(e){function t(H,L){if(e){var D=H.deletions;D===null?(H.deletions=[L],H.flags|=16):D.push(L)}}function l(H,L){if(!e)return null;for(;L!==null;)t(H,L),L=L.sibling;return null}function r(H){for(var L=new Map;H!==null;)H.key!==null?L.set(H.key,H):L.set(H.index,H),H=H.sibling;return L}function d(H,L){return H=Na(H,L),H.index=0,H.sibling=null,H}function m(H,L,D){return H.index=D,e?(D=H.alternate,D!==null?(D=D.index,D<L?(H.flags|=67108866,L):D):(H.flags|=67108866,L)):(H.flags|=1048576,L)}function v(H){return e&&H.alternate===null&&(H.flags|=67108866),H}function A(H,L,D,G){return L===null||L.tag!==6?(L=e0(D,H.mode,G),L.return=H,L):(L=d(L,D),L.return=H,L)}function T(H,L,D,G){var oe=D.type;return oe===M?Y(H,L,D.props.children,G,D.key):L!==null&&(L.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===z&&Hn(oe)===L.type)?(L=d(L,D.props),xs(L,D),L.return=H,L):(L=Hi(D.type,D.key,D.props,null,H.mode,G),xs(L,D),L.return=H,L)}function k(H,L,D,G){return L===null||L.tag!==4||L.stateNode.containerInfo!==D.containerInfo||L.stateNode.implementation!==D.implementation?(L=t0(D,H.mode,G),L.return=H,L):(L=d(L,D.children||[]),L.return=H,L)}function Y(H,L,D,G,oe){return L===null||L.tag!==7?(L=Cn(D,H.mode,G,oe),L.return=H,L):(L=d(L,D),L.return=H,L)}function X(H,L,D){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=e0(""+L,H.mode,D),L.return=H,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return D=Hi(L.type,L.key,L.props,null,H.mode,D),xs(D,L),D.return=H,D;case E:return L=t0(L,H.mode,D),L.return=H,L;case z:return L=Hn(L),X(H,L,D)}if(te(L)||re(L))return L=Cn(L,H.mode,D,null),L.return=H,L;if(typeof L.then=="function")return X(H,Bi(L),D);if(L.$$typeof===Z)return X(H,ki(H,L),D);Ui(H,L)}return null}function O(H,L,D,G){var oe=L!==null?L.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return oe!==null?null:A(H,L,""+D,G);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===oe?T(H,L,D,G):null;case E:return D.key===oe?k(H,L,D,G):null;case z:return D=Hn(D),O(H,L,D,G)}if(te(D)||re(D))return oe!==null?null:Y(H,L,D,G,null);if(typeof D.then=="function")return O(H,L,Bi(D),G);if(D.$$typeof===Z)return O(H,L,ki(H,D),G);Ui(H,D)}return null}function F(H,L,D,G,oe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return H=H.get(D)||null,A(L,H,""+G,oe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return H=H.get(G.key===null?D:G.key)||null,T(L,H,G,oe);case E:return H=H.get(G.key===null?D:G.key)||null,k(L,H,G,oe);case z:return G=Hn(G),F(H,L,D,G,oe)}if(te(G)||re(G))return H=H.get(D)||null,Y(L,H,G,oe,null);if(typeof G.then=="function")return F(H,L,D,Bi(G),oe);if(G.$$typeof===Z)return F(H,L,D,ki(L,G),oe);Ui(L,G)}return null}function ae(H,L,D,G){for(var oe=null,Ne=null,ie=L,be=L=0,we=null;ie!==null&&be<D.length;be++){ie.index>be?(we=ie,ie=null):we=ie.sibling;var Me=O(H,ie,D[be],G);if(Me===null){ie===null&&(ie=we);break}e&&ie&&Me.alternate===null&&t(H,ie),L=m(Me,L,be),Ne===null?oe=Me:Ne.sibling=Me,Ne=Me,ie=we}if(be===D.length)return l(H,ie),Ee&&Ma(H,be),oe;if(ie===null){for(;be<D.length;be++)ie=X(H,D[be],G),ie!==null&&(L=m(ie,L,be),Ne===null?oe=ie:Ne.sibling=ie,Ne=ie);return Ee&&Ma(H,be),oe}for(ie=r(ie);be<D.length;be++)we=F(ie,H,be,D[be],G),we!==null&&(e&&we.alternate!==null&&ie.delete(we.key===null?be:we.key),L=m(we,L,be),Ne===null?oe=we:Ne.sibling=we,Ne=we);return e&&ie.forEach(function(hn){return t(H,hn)}),Ee&&Ma(H,be),oe}function ue(H,L,D,G){if(D==null)throw Error(o(151));for(var oe=null,Ne=null,ie=L,be=L=0,we=null,Me=D.next();ie!==null&&!Me.done;be++,Me=D.next()){ie.index>be?(we=ie,ie=null):we=ie.sibling;var hn=O(H,ie,Me.value,G);if(hn===null){ie===null&&(ie=we);break}e&&ie&&hn.alternate===null&&t(H,ie),L=m(hn,L,be),Ne===null?oe=hn:Ne.sibling=hn,Ne=hn,ie=we}if(Me.done)return l(H,ie),Ee&&Ma(H,be),oe;if(ie===null){for(;!Me.done;be++,Me=D.next())Me=X(H,Me.value,G),Me!==null&&(L=m(Me,L,be),Ne===null?oe=Me:Ne.sibling=Me,Ne=Me);return Ee&&Ma(H,be),oe}for(ie=r(ie);!Me.done;be++,Me=D.next())Me=F(ie,H,be,Me.value,G),Me!==null&&(e&&Me.alternate!==null&&ie.delete(Me.key===null?be:Me.key),L=m(Me,L,be),Ne===null?oe=Me:Ne.sibling=Me,Ne=Me);return e&&ie.forEach(function(fg){return t(H,fg)}),Ee&&Ma(H,be),oe}function De(H,L,D,G){if(typeof D=="object"&&D!==null&&D.type===M&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var oe=D.key;L!==null;){if(L.key===oe){if(oe=D.type,oe===M){if(L.tag===7){l(H,L.sibling),G=d(L,D.props.children),G.return=H,H=G;break e}}else if(L.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===z&&Hn(oe)===L.type){l(H,L.sibling),G=d(L,D.props),xs(G,D),G.return=H,H=G;break e}l(H,L);break}else t(H,L);L=L.sibling}D.type===M?(G=Cn(D.props.children,H.mode,G,D.key),G.return=H,H=G):(G=Hi(D.type,D.key,D.props,null,H.mode,G),xs(G,D),G.return=H,H=G)}return v(H);case E:e:{for(oe=D.key;L!==null;){if(L.key===oe)if(L.tag===4&&L.stateNode.containerInfo===D.containerInfo&&L.stateNode.implementation===D.implementation){l(H,L.sibling),G=d(L,D.children||[]),G.return=H,H=G;break e}else{l(H,L);break}else t(H,L);L=L.sibling}G=t0(D,H.mode,G),G.return=H,H=G}return v(H);case z:return D=Hn(D),De(H,L,D,G)}if(te(D))return ae(H,L,D,G);if(re(D)){if(oe=re(D),typeof oe!="function")throw Error(o(150));return D=oe.call(D),ue(H,L,D,G)}if(typeof D.then=="function")return De(H,L,Bi(D),G);if(D.$$typeof===Z)return De(H,L,ki(H,D),G);Ui(H,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,L!==null&&L.tag===6?(l(H,L.sibling),G=d(L,D),G.return=H,H=G):(l(H,L),G=e0(D,H.mode,G),G.return=H,H=G),v(H)):l(H,L)}return function(H,L,D,G){try{ps=0;var oe=De(H,L,D,G);return xl=null,oe}catch(ie){if(ie===pl||ie===Oi)throw ie;var Ne=Dt(29,ie,null,H.mode);return Ne.lanes=G,Ne.return=H,Ne}finally{}}}var Rn=Pd(!0),Kd=Pd(!1),Qa=!1;function m0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function h0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ce&2)!==0){var d=r.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),r.pending=t,t=Zi(e),Zd(e,null,l),t}return Li(e,r,t,l),Zi(e)}function gs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,B1(e,l)}}function p0(e,t){var l=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,l===r)){var d=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?d=m=v:m=m.next=v,l=l.next}while(l!==null);m===null?d=m=t:m=m.next=t}else d=m=t;l={baseState:r.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:r.shared,callbacks:r.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var x0=!1;function bs(){if(x0){var e=hl;if(e!==null)throw e}}function ys(e,t,l,r){x0=!1;var d=e.updateQueue;Qa=!1;var m=d.firstBaseUpdate,v=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var T=A,k=T.next;T.next=null,v===null?m=k:v.next=k,v=T;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,A=Y.lastBaseUpdate,A!==v&&(A===null?Y.firstBaseUpdate=k:A.next=k,Y.lastBaseUpdate=T))}if(m!==null){var X=d.baseState;v=0,Y=k=T=null,A=m;do{var O=A.lane&-536870913,F=O!==A.lane;if(F?(Se&O)===O:(r&O)===O){O!==0&&O===ml&&(x0=!0),Y!==null&&(Y=Y.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var ae=e,ue=A;O=t;var De=l;switch(ue.tag){case 1:if(ae=ue.payload,typeof ae=="function"){X=ae.call(De,X,O);break e}X=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ue.payload,O=typeof ae=="function"?ae.call(De,X,O):ae,O==null)break e;X=b({},X,O);break e;case 2:Qa=!0}}O=A.callback,O!==null&&(e.flags|=64,F&&(e.flags|=8192),F=d.callbacks,F===null?d.callbacks=[O]:F.push(O))}else F={lane:O,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Y===null?(k=Y=F,T=X):Y=Y.next=F,v|=O;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;F=A,A=F.next,F.next=null,d.lastBaseUpdate=F,d.shared.pending=null}}while(!0);Y===null&&(T=X),d.baseState=T,d.firstBaseUpdate=k,d.lastBaseUpdate=Y,m===null&&(d.shared.lanes=0),nn|=v,e.lanes=v,e.memoizedState=X}}function Qd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Jd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Qd(l[e],t)}var gl=V(null),Fi=V(0);function Wd(e,t){e=Oa,ee(Fi,e),ee(gl,t),Oa=e|t.baseLanes}function g0(){ee(Fi,Oa),ee(gl,gl.current)}function b0(){Oa=Fi.current,P(gl),P(Fi)}var Rt=V(null),Qt=null;function Ia(e){var t=e.alternate;ee(Xe,Xe.current&1),ee(Rt,e),Qt===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(Qt=e)}function y0(e){ee(Xe,Xe.current),ee(Rt,e),Qt===null&&(Qt=e)}function Id(e){e.tag===22?(ee(Xe,Xe.current),ee(Rt,e),Qt===null&&(Qt=e)):en()}function en(){ee(Xe,Xe.current),ee(Rt,Rt.current)}function kt(e){P(Rt),Qt===e&&(Qt=null),P(Xe)}var Xe=V(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ec(l)||Nc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Va=0,ge=null,Ze=null,Qe=null,$i=!1,bl=!1,kn=!1,Yi=0,vs=0,yl=null,ax=0;function Fe(){throw Error(o(321))}function v0(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ht(e[l],t[l]))return!1;return!0}function j0(e,t,l,r,d,m){return Va=m,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?k2:k0,kn=!1,m=l(r,d),kn=!1,bl&&(m=t2(t,l,r,d)),e2(e),m}function e2(e){R.H=Ss;var t=Ze!==null&&Ze.next!==null;if(Va=0,Qe=Ze=ge=null,$i=!1,vs=0,yl=null,t)throw Error(o(300));e===null||Je||(e=e.dependencies,e!==null&&Ri(e)&&(Je=!0))}function t2(e,t,l,r){ge=e;var d=0;do{if(bl&&(yl=null),vs=0,bl=!1,25<=d)throw Error(o(301));if(d+=1,Qe=Ze=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}R.H=_2,m=t(l,r)}while(bl);return m}function nx(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?js(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(ge.flags|=1024),t}function A0(){var e=Yi!==0;return Yi=0,e}function S0(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function w0(e){if($i){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$i=!1}Va=0,Qe=Ze=ge=null,bl=!1,vs=Yi=0,yl=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Pe(){if(Ze===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,Ze=e;else{if(e===null)throw ge.alternate===null?Error(o(467)):Error(o(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function js(e){var t=vs;return vs+=1,yl===null&&(yl=[]),e=Yd(yl,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?k2:k0),e}function Xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return js(e);if(e.$$typeof===Z)return ct(e)}throw Error(o(438,String(e)))}function E0(e){var t=null,l=ge.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=ge.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Gi(),ge.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),r=0;r<e;r++)l[r]=J;return t.index++,l}function La(e,t){return typeof t=="function"?t(e):t}function Pi(e){var t=Pe();return N0(t,Ze,e)}function N0(e,t,l){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=l;var d=e.baseQueue,m=r.pending;if(m!==null){if(d!==null){var v=d.next;d.next=m.next,m.next=v}t.baseQueue=d=m,r.pending=null}if(m=e.baseState,d===null)e.memoizedState=m;else{t=d.next;var A=v=null,T=null,k=t,Y=!1;do{var X=k.lane&-536870913;if(X!==k.lane?(Se&X)===X:(Va&X)===X){var O=k.revertLane;if(O===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),X===ml&&(Y=!0);else if((Va&O)===O){k=k.next,O===ml&&(Y=!0);continue}else X={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},T===null?(A=T=X,v=m):T=T.next=X,ge.lanes|=O,nn|=O;X=k.action,kn&&l(m,X),m=k.hasEagerState?k.eagerState:l(m,X)}else O={lane:X,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},T===null?(A=T=O,v=m):T=T.next=O,ge.lanes|=X,nn|=X;k=k.next}while(k!==null&&k!==t);if(T===null?v=m:T.next=A,!Ht(m,e.memoizedState)&&(Je=!0,Y&&(l=hl,l!==null)))throw l;e.memoizedState=m,e.baseState=v,e.baseQueue=T,r.lastRenderedState=m}return d===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function M0(e){var t=Pe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var r=l.dispatch,d=l.pending,m=t.memoizedState;if(d!==null){l.pending=null;var v=d=d.next;do m=e(m,v.action),v=v.next;while(v!==d);Ht(m,t.memoizedState)||(Je=!0),t.memoizedState=m,t.baseQueue===null&&(t.baseState=m),l.lastRenderedState=m}return[m,r]}function a2(e,t,l){var r=ge,d=Pe(),m=Ee;if(m){if(l===void 0)throw Error(o(407));l=l()}else l=t();var v=!Ht((Ze||d).memoizedState,l);if(v&&(d.memoizedState=l,Je=!0),d=d.queue,V0(s2.bind(null,r,d,e),[e]),d.getSnapshot!==t||v||Qe!==null&&Qe.memoizedState.tag&1){if(r.flags|=2048,vl(9,{destroy:void 0},l2.bind(null,r,d,l,t),null),Re===null)throw Error(o(349));m||(Va&127)!==0||n2(r,t,l)}return l}function n2(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ge.updateQueue,t===null?(t=Gi(),ge.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function l2(e,t,l,r){t.value=l,t.getSnapshot=r,i2(t)&&r2(e)}function s2(e,t,l){return l(function(){i2(t)&&r2(e)})}function i2(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ht(e,l)}catch{return!0}}function r2(e){var t=Mn(e,2);t!==null&&Ct(t,e,2)}function C0(e){var t=gt();if(typeof e=="function"){var l=e;if(e=l(),kn){qa(!0);try{l()}finally{qa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:e},t}function o2(e,t,l,r){return e.baseState=l,N0(e,Ze,typeof r=="function"?r:La)}function lx(e,t,l,r,d){if(Ji(e))throw Error(o(485));if(e=t.action,e!==null){var m={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};R.T!==null?l(!0):m.isTransition=!1,r(m),l=t.pending,l===null?(m.next=t.pending=m,c2(t,m)):(m.next=l.next,t.pending=l.next=m)}}function c2(e,t){var l=t.action,r=t.payload,d=e.state;if(t.isTransition){var m=R.T,v={};R.T=v;try{var A=l(d,r),T=R.S;T!==null&&T(v,A),u2(e,t,A)}catch(k){T0(e,t,k)}finally{m!==null&&v.types!==null&&(m.types=v.types),R.T=m}}else try{m=l(d,r),u2(e,t,m)}catch(k){T0(e,t,k)}}function u2(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){d2(e,t,r)},function(r){return T0(e,t,r)}):d2(e,t,l)}function d2(e,t,l){t.status="fulfilled",t.value=l,f2(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,c2(e,l)))}function T0(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,f2(t),t=t.next;while(t!==r)}e.action=null}function f2(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function m2(e,t){return t}function h2(e,t){if(Ee){var l=Re.formState;if(l!==null){e:{var r=ge;if(Ee){if(_e){t:{for(var d=_e,m=Kt;d.nodeType!==8;){if(!m){d=null;break t}if(d=Jt(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){_e=Jt(d.nextSibling),r=d.data==="F!";break e}}Pa(r)}r=!1}r&&(t=l[0])}}return l=gt(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m2,lastRenderedState:t},l.queue=r,l=H2.bind(null,ge,r),r.dispatch=l,r=C0(!1),m=R0.bind(null,ge,!1,r.queue),r=gt(),d={state:t,dispatch:null,action:e,pending:null},r.queue=d,l=lx.bind(null,ge,d,m,l),d.dispatch=l,r.memoizedState=e,[t,l,!1]}function p2(e){var t=Pe();return x2(t,Ze,e)}function x2(e,t,l){if(t=N0(e,t,m2)[0],e=Pi(La)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=js(t)}catch(v){throw v===pl?Oi:v}else r=t;t=Pe();var d=t.queue,m=d.dispatch;return l!==t.memoizedState&&(ge.flags|=2048,vl(9,{destroy:void 0},sx.bind(null,d,l),null)),[r,m,e]}function sx(e,t){e.action=t}function g2(e){var t=Pe(),l=Ze;if(l!==null)return x2(t,l,e);Pe(),t=t.memoizedState,l=Pe();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function vl(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Gi(),ge.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(r=l.next,l.next=e,e.next=r,t.lastEffect=e),e}function b2(){return Pe().memoizedState}function Ki(e,t,l,r){var d=gt();ge.flags|=e,d.memoizedState=vl(1|t,{destroy:void 0},l,r===void 0?null:r)}function Qi(e,t,l,r){var d=Pe();r=r===void 0?null:r;var m=d.memoizedState.inst;Ze!==null&&r!==null&&v0(r,Ze.memoizedState.deps)?d.memoizedState=vl(t,m,l,r):(ge.flags|=e,d.memoizedState=vl(1|t,m,l,r))}function y2(e,t){Ki(8390656,8,e,t)}function V0(e,t){Qi(2048,8,e,t)}function ix(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Gi(),ge.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function v2(e){var t=Pe().memoizedState;return ix({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function j2(e,t){return Qi(4,2,e,t)}function A2(e,t){return Qi(4,4,e,t)}function S2(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function w2(e,t,l){l=l!=null?l.concat([e]):null,Qi(4,4,S2.bind(null,t,e),l)}function L0(){}function E2(e,t){var l=Pe();t=t===void 0?null:t;var r=l.memoizedState;return t!==null&&v0(t,r[1])?r[0]:(l.memoizedState=[e,t],e)}function N2(e,t){var l=Pe();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&v0(t,r[1]))return r[0];if(r=e(),kn){qa(!0);try{e()}finally{qa(!1)}}return l.memoizedState=[r,t],r}function Z0(e,t,l){return l===void 0||(Va&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Cf(),ge.lanes|=e,nn|=e,l)}function M2(e,t,l,r){return Ht(l,t)?l:gl.current!==null?(e=Z0(e,l,r),Ht(e,t)||(Je=!0),e):(Va&42)===0||(Va&1073741824)!==0&&(Se&261930)===0?(Je=!0,e.memoizedState=l):(e=Cf(),ge.lanes|=e,nn|=e,t)}function C2(e,t,l,r,d){var m=_.p;_.p=m!==0&&8>m?m:8;var v=R.T,A={};R.T=A,R0(e,!1,t,l);try{var T=d(),k=R.S;if(k!==null&&k(A,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Y=tx(T,r);As(e,t,Y,zt(e))}else As(e,t,r,zt(e))}catch(X){As(e,t,{then:function(){},status:"rejected",reason:X},zt())}finally{_.p=m,v!==null&&A.types!==null&&(v.types=A.types),R.T=v}}function rx(){}function H0(e,t,l,r){if(e.tag!==5)throw Error(o(476));var d=T2(e).queue;C2(e,d,t,I,l===null?rx:function(){return V2(e),l(r)})}function T2(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function V2(e){var t=T2(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},zt())}function D0(){return ct(zs)}function L2(){return Pe().memoizedState}function Z2(){return Pe().memoizedState}function ox(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=zt();e=Ja(l);var r=Wa(t,e,l);r!==null&&(Ct(r,t,l),gs(r,t,l)),t={cache:c0()},e.payload=t;return}t=t.return}}function cx(e,t,l){var r=zt();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(e)?D2(t,l):(l=Wo(e,t,l,r),l!==null&&(Ct(l,e,r),R2(l,t,r)))}function H2(e,t,l){var r=zt();As(e,t,l,r)}function As(e,t,l,r){var d={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ji(e))D2(t,d);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=t.lastRenderedReducer,m!==null))try{var v=t.lastRenderedState,A=m(v,l);if(d.hasEagerState=!0,d.eagerState=A,Ht(A,v))return Li(e,t,d,0),Re===null&&Vi(),!1}catch{}finally{}if(l=Wo(e,t,d,r),l!==null)return Ct(l,e,r),R2(l,t,r),!0}return!1}function R0(e,t,l,r){if(r={lane:2,revertLane:mc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ji(e)){if(t)throw Error(o(479))}else t=Wo(e,l,r,2),t!==null&&Ct(t,e,2)}function Ji(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function D2(e,t){bl=$i=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function R2(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,B1(e,l)}}var Ss={readContext:ct,use:Xi,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Ss.useEffectEvent=Fe;var k2={readContext:ct,use:Xi,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:y2,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ki(4194308,4,S2.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){Ki(4,2,e,t)},useMemo:function(e,t){var l=gt();t=t===void 0?null:t;var r=e();if(kn){qa(!0);try{e()}finally{qa(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=gt();if(l!==void 0){var d=l(t);if(kn){qa(!0);try{l(t)}finally{qa(!1)}}}else d=t;return r.memoizedState=r.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},r.queue=e,e=e.dispatch=cx.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=C0(e);var t=e.queue,l=H2.bind(null,ge,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:L0,useDeferredValue:function(e,t){var l=gt();return Z0(l,e,t)},useTransition:function(){var e=C0(!1);return e=C2.bind(null,ge,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=ge,d=gt();if(Ee){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Re===null)throw Error(o(349));(Se&127)!==0||n2(r,t,l)}d.memoizedState=l;var m={value:l,getSnapshot:t};return d.queue=m,y2(s2.bind(null,r,m,e),[e]),r.flags|=2048,vl(9,{destroy:void 0},l2.bind(null,r,m,l,t),null),l},useId:function(){var e=gt(),t=Re.identifierPrefix;if(Ee){var l=ma,r=fa;l=(r&~(1<<32-Zt(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Yi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=ax++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:D0,useFormState:h2,useActionState:h2,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=R0.bind(null,ge,!0,l),l.dispatch=t,[e,t]},useMemoCache:E0,useCacheRefresh:function(){return gt().memoizedState=ox.bind(null,ge)},useEffectEvent:function(e){var t=gt(),l={impl:e};return t.memoizedState=l,function(){if((Ce&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},k0={readContext:ct,use:Xi,useCallback:E2,useContext:ct,useEffect:V0,useImperativeHandle:w2,useInsertionEffect:j2,useLayoutEffect:A2,useMemo:N2,useReducer:Pi,useRef:b2,useState:function(){return Pi(La)},useDebugValue:L0,useDeferredValue:function(e,t){var l=Pe();return M2(l,Ze.memoizedState,e,t)},useTransition:function(){var e=Pi(La)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:js(e),t]},useSyncExternalStore:a2,useId:L2,useHostTransitionStatus:D0,useFormState:p2,useActionState:p2,useOptimistic:function(e,t){var l=Pe();return o2(l,Ze,e,t)},useMemoCache:E0,useCacheRefresh:Z2};k0.useEffectEvent=v2;var _2={readContext:ct,use:Xi,useCallback:E2,useContext:ct,useEffect:V0,useImperativeHandle:w2,useInsertionEffect:j2,useLayoutEffect:A2,useMemo:N2,useReducer:M0,useRef:b2,useState:function(){return M0(La)},useDebugValue:L0,useDeferredValue:function(e,t){var l=Pe();return Ze===null?Z0(l,e,t):M2(l,Ze.memoizedState,e,t)},useTransition:function(){var e=M0(La)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:js(e),t]},useSyncExternalStore:a2,useId:L2,useHostTransitionStatus:D0,useFormState:g2,useActionState:g2,useOptimistic:function(e,t){var l=Pe();return Ze!==null?o2(l,Ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:E0,useCacheRefresh:Z2};_2.useEffectEvent=v2;function _0(e,t,l,r){t=e.memoizedState,l=l(r,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var O0={enqueueSetState:function(e,t,l){e=e._reactInternals;var r=zt(),d=Ja(r);d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,r),t!==null&&(Ct(t,e,r),gs(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=zt(),d=Ja(r);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,r),t!==null&&(Ct(t,e,r),gs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=zt(),r=Ja(l);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,l),t!==null&&(Ct(t,e,l),gs(t,e,l))}};function O2(e,t,l,r,d,m,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,m,v):t.prototype&&t.prototype.isPureReactComponent?!cs(l,r)||!cs(d,m):!0}function z2(e,t,l,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,r),t.state!==e&&O0.enqueueReplaceState(t,t.state,null)}function _n(e,t){var l=t;if("ref"in t){l={};for(var r in t)r!=="ref"&&(l[r]=t[r])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function B2(e){Ti(e)}function U2(e){console.error(e)}function F2(e){Ti(e)}function Wi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function q2(e,t,l){try{var r=e.onCaughtError;r(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function z0(e,t,l){return l=Ja(l),l.tag=3,l.payload={element:null},l.callback=function(){Wi(e,t)},l}function $2(e){return e=Ja(e),e.tag=3,e}function Y2(e,t,l,r){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var m=r.value;e.payload=function(){return d(m)},e.callback=function(){q2(t,l,r)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){q2(t,l,r),typeof d!="function"&&(ln===null?ln=new Set([this]):ln.add(this));var A=r.stack;this.componentDidCatch(r.value,{componentStack:A!==null?A:""})})}function ux(e,t,l,r,d){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&fl(t,l,d,!0),l=Rt.current,l!==null){switch(l.tag){case 31:case 13:return Qt===null?ur():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=d,r===zi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([r]):t.add(r),uc(e,r,d)),!1;case 22:return l.flags|=65536,r===zi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([r]):l.add(r)),uc(e,r,d)),!1}throw Error(o(435,l.tag))}return uc(e,r,d),ur(),!1}if(Ee)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,r!==l0&&(e=Error(o(422),{cause:r}),fs(Gt(e,l)))):(r!==l0&&(t=Error(o(423),{cause:r}),fs(Gt(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,r=Gt(r,l),d=z0(e.stateNode,r,d),p0(e,d),qe!==4&&(qe=2)),!1;var m=Error(o(520),{cause:r});if(m=Gt(m,l),Ls===null?Ls=[m]:Ls.push(m),qe!==4&&(qe=2),t===null)return!0;r=Gt(r,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=z0(l.stateNode,r,e),p0(l,e),!1;case 1:if(t=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ln===null||!ln.has(m))))return l.flags|=65536,d&=-d,l.lanes|=d,d=$2(d),Y2(d,e,l,r),p0(l,d),!1}l=l.return}while(l!==null);return!1}var B0=Error(o(461)),Je=!1;function ut(e,t,l,r){t.child=e===null?Kd(t,null,l,r):Rn(t,e.child,l,r)}function G2(e,t,l,r,d){l=l.render;var m=t.ref;if("ref"in r){var v={};for(var A in r)A!=="ref"&&(v[A]=r[A])}else v=r;return Ln(t),r=j0(e,t,l,v,m,d),A=A0(),e!==null&&!Je?(S0(e,t,d),Za(e,t,d)):(Ee&&A&&a0(t),t.flags|=1,ut(e,t,r,d),t.child)}function X2(e,t,l,r,d){if(e===null){var m=l.type;return typeof m=="function"&&!Io(m)&&m.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=m,P2(e,t,m,r,d)):(e=Hi(l.type,null,r,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(m=e.child,!P0(e,d)){var v=m.memoizedProps;if(l=l.compare,l=l!==null?l:cs,l(v,r)&&e.ref===t.ref)return Za(e,t,d)}return t.flags|=1,e=Na(m,r),e.ref=t.ref,e.return=t,t.child=e}function P2(e,t,l,r,d){if(e!==null){var m=e.memoizedProps;if(cs(m,r)&&e.ref===t.ref)if(Je=!1,t.pendingProps=r=m,P0(e,d))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Za(e,t,d)}return U0(e,t,l,r,d)}function K2(e,t,l,r){var d=r.children,m=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,e!==null){for(r=t.child=e.child,d=0;r!==null;)d=d|r.lanes|r.childLanes,r=r.sibling;r=d&~m}else r=0,t.child=null;return Q2(e,t,m,l,r)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_i(t,m!==null?m.cachePool:null),m!==null?Wd(t,m):g0(),Id(t);else return r=t.lanes=536870912,Q2(e,t,m!==null?m.baseLanes|l:l,l,r)}else m!==null?(_i(t,m.cachePool),Wd(t,m),en(),t.memoizedState=null):(e!==null&&_i(t,null),g0(),en());return ut(e,t,d,l),t.child}function ws(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Q2(e,t,l,r,d){var m=d0();return m=m===null?null:{parent:Ke._currentValue,pool:m},t.memoizedState={baseLanes:l,cachePool:m},e!==null&&_i(t,null),g0(),Id(t),e!==null&&fl(e,t,r,!0),t.childLanes=d,null}function Ii(e,t){return t=tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function J2(e,t,l){return Rn(t,e.child,null,l),e=Ii(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function dx(e,t,l){var r=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(r.mode==="hidden")return e=Ii(t,r),t.lanes=536870912,ws(null,e);if(y0(t),(e=_e)?(e=um(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ga!==null?{id:fa,overflow:ma}:null,retryLane:536870912,hydrationErrors:null},l=Dd(e),l.return=t,t.child=l,ot=t,_e=null)):e=null,e===null)throw Pa(t);return t.lanes=536870912,null}return Ii(t,r)}var m=e.memoizedState;if(m!==null){var v=m.dehydrated;if(y0(t),d)if(t.flags&256)t.flags&=-257,t=J2(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Je||fl(e,t,l,!1),d=(l&e.childLanes)!==0,Je||d){if(r=Re,r!==null&&(v=U1(r,l),v!==0&&v!==m.retryLane))throw m.retryLane=v,Mn(e,v),Ct(r,e,v),B0;ur(),t=J2(e,t,l)}else e=m.treeContext,_e=Jt(v.nextSibling),ot=t,Ee=!0,Xa=null,Kt=!1,e!==null&&_d(t,e),t=Ii(t,r),t.flags|=4096;return t}return e=Na(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function er(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function U0(e,t,l,r,d){return Ln(t),l=j0(e,t,l,r,void 0,d),r=A0(),e!==null&&!Je?(S0(e,t,d),Za(e,t,d)):(Ee&&r&&a0(t),t.flags|=1,ut(e,t,l,d),t.child)}function W2(e,t,l,r,d,m){return Ln(t),t.updateQueue=null,l=t2(t,r,l,d),e2(e),r=A0(),e!==null&&!Je?(S0(e,t,m),Za(e,t,m)):(Ee&&r&&a0(t),t.flags|=1,ut(e,t,l,m),t.child)}function I2(e,t,l,r,d){if(Ln(t),t.stateNode===null){var m=ol,v=l.contextType;typeof v=="object"&&v!==null&&(m=ct(v)),m=new l(r,m),t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=O0,t.stateNode=m,m._reactInternals=t,m=t.stateNode,m.props=r,m.state=t.memoizedState,m.refs={},m0(t),v=l.contextType,m.context=typeof v=="object"&&v!==null?ct(v):ol,m.state=t.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(_0(t,l,v,r),m.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&O0.enqueueReplaceState(m,m.state,null),ys(t,r,m,d),bs(),m.state=t.memoizedState),typeof m.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){m=t.stateNode;var A=t.memoizedProps,T=_n(l,A);m.props=T;var k=m.context,Y=l.contextType;v=ol,typeof Y=="object"&&Y!==null&&(v=ct(Y));var X=l.getDerivedStateFromProps;Y=typeof X=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,Y||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||k!==v)&&z2(t,m,r,v),Qa=!1;var O=t.memoizedState;m.state=O,ys(t,r,m,d),bs(),k=t.memoizedState,A||O!==k||Qa?(typeof X=="function"&&(_0(t,l,X,r),k=t.memoizedState),(T=Qa||O2(t,l,T,r,O,k,v))?(Y||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=k),m.props=r,m.state=k,m.context=v,r=T):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{m=t.stateNode,h0(e,t),v=t.memoizedProps,Y=_n(l,v),m.props=Y,X=t.pendingProps,O=m.context,k=l.contextType,T=ol,typeof k=="object"&&k!==null&&(T=ct(k)),A=l.getDerivedStateFromProps,(k=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==X||O!==T)&&z2(t,m,r,T),Qa=!1,O=t.memoizedState,m.state=O,ys(t,r,m,d),bs();var F=t.memoizedState;v!==X||O!==F||Qa||e!==null&&e.dependencies!==null&&Ri(e.dependencies)?(typeof A=="function"&&(_0(t,l,A,r),F=t.memoizedState),(Y=Qa||O2(t,l,Y,r,O,F,T)||e!==null&&e.dependencies!==null&&Ri(e.dependencies))?(k||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(r,F,T),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(r,F,T)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=F),m.props=r,m.state=F,m.context=T,r=Y):(typeof m.componentDidUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),r=!1)}return m=r,er(e,t),r=(t.flags&128)!==0,m||r?(m=t.stateNode,l=r&&typeof l.getDerivedStateFromError!="function"?null:m.render(),t.flags|=1,e!==null&&r?(t.child=Rn(t,e.child,null,d),t.child=Rn(t,null,l,d)):ut(e,t,l,d),t.memoizedState=m.state,e=t.child):e=Za(e,t,d),e}function ef(e,t,l,r){return Tn(),t.flags|=256,ut(e,t,l,r),t.child}var F0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function q0(e){return{baseLanes:e,cachePool:qd()}}function $0(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ot),e}function tf(e,t,l){var r=t.pendingProps,d=!1,m=(t.flags&128)!==0,v;if((v=m)||(v=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),v&&(d=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(d?Ia(t):en(),(e=_e)?(e=um(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ga!==null?{id:fa,overflow:ma}:null,retryLane:536870912,hydrationErrors:null},l=Dd(e),l.return=t,t.child=l,ot=t,_e=null)):e=null,e===null)throw Pa(t);return Nc(e)?t.lanes=32:t.lanes=536870912,null}var A=r.children;return r=r.fallback,d?(en(),d=t.mode,A=tr({mode:"hidden",children:A},d),r=Cn(r,d,l,null),A.return=t,r.return=t,A.sibling=r,t.child=A,r=t.child,r.memoizedState=q0(l),r.childLanes=$0(e,v,l),t.memoizedState=F0,ws(null,r)):(Ia(t),Y0(t,A))}var T=e.memoizedState;if(T!==null&&(A=T.dehydrated,A!==null)){if(m)t.flags&256?(Ia(t),t.flags&=-257,t=G0(e,t,l)):t.memoizedState!==null?(en(),t.child=e.child,t.flags|=128,t=null):(en(),A=r.fallback,d=t.mode,r=tr({mode:"visible",children:r.children},d),A=Cn(A,d,l,null),A.flags|=2,r.return=t,A.return=t,r.sibling=A,t.child=r,Rn(t,e.child,null,l),r=t.child,r.memoizedState=q0(l),r.childLanes=$0(e,v,l),t.memoizedState=F0,t=ws(null,r));else if(Ia(t),Nc(A)){if(v=A.nextSibling&&A.nextSibling.dataset,v)var k=v.dgst;v=k,r=Error(o(419)),r.stack="",r.digest=v,fs({value:r,source:null,stack:null}),t=G0(e,t,l)}else if(Je||fl(e,t,l,!1),v=(l&e.childLanes)!==0,Je||v){if(v=Re,v!==null&&(r=U1(v,l),r!==0&&r!==T.retryLane))throw T.retryLane=r,Mn(e,r),Ct(v,e,r),B0;Ec(A)||ur(),t=G0(e,t,l)}else Ec(A)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,_e=Jt(A.nextSibling),ot=t,Ee=!0,Xa=null,Kt=!1,e!==null&&_d(t,e),t=Y0(t,r.children),t.flags|=4096);return t}return d?(en(),A=r.fallback,d=t.mode,T=e.child,k=T.sibling,r=Na(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,k!==null?A=Na(k,A):(A=Cn(A,d,l,null),A.flags|=2),A.return=t,r.return=t,r.sibling=A,t.child=r,ws(null,r),r=t.child,A=e.child.memoizedState,A===null?A=q0(l):(d=A.cachePool,d!==null?(T=Ke._currentValue,d=d.parent!==T?{parent:T,pool:T}:d):d=qd(),A={baseLanes:A.baseLanes|l,cachePool:d}),r.memoizedState=A,r.childLanes=$0(e,v,l),t.memoizedState=F0,ws(e.child,r)):(Ia(t),l=e.child,e=l.sibling,l=Na(l,{mode:"visible",children:r.children}),l.return=t,l.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=l,t.memoizedState=null,l)}function Y0(e,t){return t=tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tr(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function G0(e,t,l){return Rn(t,e.child,null,l),e=Y0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function af(e,t,l){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),r0(e.return,t,l)}function X0(e,t,l,r,d,m){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:l,tailMode:d,treeForkCount:m}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=r,v.tail=l,v.tailMode=d,v.treeForkCount=m)}function nf(e,t,l){var r=t.pendingProps,d=r.revealOrder,m=r.tail;r=r.children;var v=Xe.current,A=(v&2)!==0;if(A?(v=v&1|2,t.flags|=128):v&=1,ee(Xe,v),ut(e,t,r,l),r=Ee?ds:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&af(e,l,t);else if(e.tag===19)af(e,l,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}switch(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&qi(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),X0(t,!1,d,l,m,r);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&qi(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}X0(t,!0,l,null,m,r);break;case"together":X0(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Za(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),nn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(fl(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Na(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Na(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function P0(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ri(e)))}function fx(e,t,l){switch(t.tag){case 3:xt(t,t.stateNode.containerInfo),Ka(t,Ke,e.memoizedState.cache),Tn();break;case 27:case 5:Ql(t);break;case 4:xt(t,t.stateNode.containerInfo);break;case 10:Ka(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,y0(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ia(t),t.flags|=128,null):(l&t.child.childLanes)!==0?tf(e,t,l):(Ia(t),e=Za(e,t,l),e!==null?e.sibling:null);Ia(t);break;case 19:var d=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(fl(e,t,l,!1),r=(l&t.childLanes)!==0),d){if(r)return nf(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ee(Xe,Xe.current),r)break;return null;case 22:return t.lanes=0,K2(e,t,l,t.pendingProps);case 24:Ka(t,Ke,e.memoizedState.cache)}return Za(e,t,l)}function lf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!P0(e,l)&&(t.flags&128)===0)return Je=!1,fx(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,Ee&&(t.flags&1048576)!==0&&kd(t,ds,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Hn(t.elementType),t.type=e,typeof e=="function")Io(e)?(r=_n(e,r),t.tag=1,t=I2(null,t,e,r,l)):(t.tag=0,t=U0(null,t,e,r,l));else{if(e!=null){var d=e.$$typeof;if(d===q){t.tag=11,t=G2(null,t,e,r,l);break e}else if(d===B){t.tag=14,t=X2(null,t,e,r,l);break e}}throw t=K(e)||e,Error(o(306,t,""))}}return t;case 0:return U0(e,t,t.type,t.pendingProps,l);case 1:return r=t.type,d=_n(r,t.pendingProps),I2(e,t,r,d,l);case 3:e:{if(xt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var m=t.memoizedState;d=m.element,h0(e,t),ys(t,r,null,l);var v=t.memoizedState;if(r=v.cache,Ka(t,Ke,r),r!==m.cache&&o0(t,[Ke],l,!0),bs(),r=v.element,m.isDehydrated)if(m={element:r,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=m,t.memoizedState=m,t.flags&256){t=ef(e,t,r,l);break e}else if(r!==d){d=Gt(Error(o(424)),t),fs(d),t=ef(e,t,r,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_e=Jt(e.firstChild),ot=t,Ee=!0,Xa=null,Kt=!0,l=Kd(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Tn(),r===d){t=Za(e,t,l);break e}ut(e,t,r,l)}t=t.child}return t;case 26:return er(e,t),e===null?(l=xm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ee||(l=t.type,e=t.pendingProps,r=gr(ve.current).createElement(l),r[rt]=t,r[At]=e,dt(r,l,e),lt(r),t.stateNode=r):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ql(t),e===null&&Ee&&(r=t.stateNode=mm(t.type,t.pendingProps,ve.current),ot=t,Kt=!0,d=_e,cn(t.type)?(Mc=d,_e=Jt(r.firstChild)):_e=d),ut(e,t,t.pendingProps.children,l),er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((d=r=_e)&&(r=Fx(r,t.type,t.pendingProps,Kt),r!==null?(t.stateNode=r,ot=t,_e=Jt(r.firstChild),Kt=!1,d=!0):d=!1),d||Pa(t)),Ql(t),d=t.type,m=t.pendingProps,v=e!==null?e.memoizedProps:null,r=m.children,Ac(d,m)?r=null:v!==null&&Ac(d,v)&&(t.flags|=32),t.memoizedState!==null&&(d=j0(e,t,nx,null,null,l),zs._currentValue=d),er(e,t),ut(e,t,r,l),t.child;case 6:return e===null&&Ee&&((e=l=_e)&&(l=qx(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,ot=t,_e=null,e=!0):e=!1),e||Pa(t)),null;case 13:return tf(e,t,l);case 4:return xt(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rn(t,null,r,l):ut(e,t,r,l),t.child;case 11:return G2(e,t,t.type,t.pendingProps,l);case 7:return ut(e,t,t.pendingProps,l),t.child;case 8:return ut(e,t,t.pendingProps.children,l),t.child;case 12:return ut(e,t,t.pendingProps.children,l),t.child;case 10:return r=t.pendingProps,Ka(t,t.type,r.value),ut(e,t,r.children,l),t.child;case 9:return d=t.type._context,r=t.pendingProps.children,Ln(t),d=ct(d),r=r(d),t.flags|=1,ut(e,t,r,l),t.child;case 14:return X2(e,t,t.type,t.pendingProps,l);case 15:return P2(e,t,t.type,t.pendingProps,l);case 19:return nf(e,t,l);case 31:return dx(e,t,l);case 22:return K2(e,t,l,t.pendingProps);case 24:return Ln(t),r=ct(Ke),e===null?(d=d0(),d===null&&(d=Re,m=c0(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=l),d=m),t.memoizedState={parent:r,cache:d},m0(t),Ka(t,Ke,d)):((e.lanes&l)!==0&&(h0(e,t),ys(t,null,null,l),bs()),d=e.memoizedState,m=t.memoizedState,d.parent!==r?(d={parent:r,cache:r},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Ka(t,Ke,r)):(r=m.cache,Ka(t,Ke,r),r!==d.cache&&o0(t,[Ke],l,!0))),ut(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Ha(e){e.flags|=4}function K0(e,t,l,r,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Zf())e.flags|=8192;else throw Dn=zi,f0}else e.flags&=-16777217}function sf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jm(t))if(Zf())e.flags|=8192;else throw Dn=zi,f0}function ar(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?O1():536870912,e.lanes|=t,wl|=t)}function Es(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var r=null;l!==null;)l.alternate!==null&&(r=l),l=l.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,r=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,r|=d.subtreeFlags&65011712,r|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,r|=d.subtreeFlags,r|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=r,e.childLanes=l,t}function mx(e,t,l){var r=t.pendingProps;switch(n0(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ta(Ke),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(dl(t)?Ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,s0())),Oe(t),null;case 26:var d=t.type,m=t.memoizedState;return e===null?(Ha(t),m!==null?(Oe(t),sf(t,m)):(Oe(t),K0(t,d,null,r,l))):m?m!==e.memoizedState?(Ha(t),Oe(t),sf(t,m)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Ha(t),Oe(t),K0(t,d,e,r,l)),null;case 27:if(mi(t),l=ve.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ha(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=se.current,dl(t)?Od(t):(e=mm(d,r,l),t.stateNode=e,Ha(t))}return Oe(t),null;case 5:if(mi(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ha(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(m=se.current,dl(t))Od(t);else{var v=gr(ve.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof r.is=="string"?v.createElement("select",{is:r.is}):v.createElement("select"),r.multiple?m.multiple=!0:r.size&&(m.size=r.size);break;default:m=typeof r.is=="string"?v.createElement(d,{is:r.is}):v.createElement(d)}}m[rt]=t,m[At]=r;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=m;e:switch(dt(m,d,r),d){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Ha(t)}}return Oe(t),K0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ha(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(e=ve.current,dl(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,d=ot,d!==null)switch(d.tag){case 27:case 5:r=d.memoizedProps}e[rt]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||am(e.nodeValue,l)),e||Pa(t,!0)}else e=gr(e).createTextNode(r),e[rt]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=dl(t),l!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[rt]=t}else Tn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=s0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=dl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!d)throw Error(o(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[rt]=t}else Tn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),d=!1}else d=s0(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=r!==null,e=e!==null&&e.memoizedState!==null,l&&(r=t.child,d=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(d=r.alternate.memoizedState.cachePool.pool),m=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),m!==d&&(r.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ar(t,t.updateQueue),Oe(t),null);case 4:return Ge(),e===null&&gc(t.stateNode.containerInfo),Oe(t),null;case 10:return Ta(t.type),Oe(t),null;case 19:if(P(Xe),r=t.memoizedState,r===null)return Oe(t),null;if(d=(t.flags&128)!==0,m=r.rendering,m===null)if(d)Es(r,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=qi(e),m!==null){for(t.flags|=128,Es(r,!1),e=m.updateQueue,t.updateQueue=e,ar(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Hd(l,e),l=l.sibling;return ee(Xe,Xe.current&1|2),Ee&&Ma(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Vt()>rr&&(t.flags|=128,d=!0,Es(r,!1),t.lanes=4194304)}else{if(!d)if(e=qi(m),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,ar(t,e),Es(r,!0),r.tail===null&&r.tailMode==="hidden"&&!m.alternate&&!Ee)return Oe(t),null}else 2*Vt()-r.renderingStartTime>rr&&l!==536870912&&(t.flags|=128,d=!0,Es(r,!1),t.lanes=4194304);r.isBackwards?(m.sibling=t.child,t.child=m):(e=r.last,e!==null?e.sibling=m:t.child=m,r.last=m)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Vt(),e.sibling=null,l=Xe.current,ee(Xe,d?l&1|2:l&1),Ee&&Ma(t,r.treeForkCount),e):(Oe(t),null);case 22:case 23:return kt(t),b0(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&ar(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==l&&(t.flags|=2048),e!==null&&P(Zn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ta(Ke),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function hx(e,t){switch(n0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ta(Ke),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mi(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(o(340));Tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(Xe),null;case 4:return Ge(),null;case 10:return Ta(t.type),null;case 22:case 23:return kt(t),b0(),e!==null&&P(Zn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ta(Ke),null;case 25:return null;default:return null}}function rf(e,t){switch(n0(t),t.tag){case 3:Ta(Ke),Ge();break;case 26:case 27:case 5:mi(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:P(Xe);break;case 10:Ta(t.type);break;case 22:case 23:kt(t),b0(),e!==null&&P(Zn);break;case 24:Ta(Ke)}}function Ns(e,t){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var d=r.next;l=d;do{if((l.tag&e)===e){r=void 0;var m=l.create,v=l.inst;r=m(),v.destroy=r}l=l.next}while(l!==d)}}catch(A){Le(t,t.return,A)}}function tn(e,t,l){try{var r=t.updateQueue,d=r!==null?r.lastEffect:null;if(d!==null){var m=d.next;r=m;do{if((r.tag&e)===e){var v=r.inst,A=v.destroy;if(A!==void 0){v.destroy=void 0,d=t;var T=l,k=A;try{k()}catch(Y){Le(d,T,Y)}}}r=r.next}while(r!==m)}}catch(Y){Le(t,t.return,Y)}}function of(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jd(t,l)}catch(r){Le(e,e.return,r)}}}function cf(e,t,l){l.props=_n(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Le(e,t,r)}}function Ms(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof l=="function"?e.refCleanup=l(r):l.current=r}}catch(d){Le(e,t,d)}}function ha(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(d){Le(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Le(e,t,d)}else l.current=null}function uf(e){var t=e.type,l=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break e;case"img":l.src?r.src=l.src:l.srcSet&&(r.srcset=l.srcSet)}}catch(d){Le(e,e.return,d)}}function Q0(e,t,l){try{var r=e.stateNode;kx(r,e.type,l,t),r[At]=t}catch(d){Le(e,e.return,d)}}function df(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cn(e.type)||e.tag===4}function J0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||df(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function W0(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=wa));else if(r!==4&&(r===27&&cn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(W0(e,t,l),e=e.sibling;e!==null;)W0(e,t,l),e=e.sibling}function nr(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(r!==4&&(r===27&&cn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(nr(e,t,l),e=e.sibling;e!==null;)nr(e,t,l),e=e.sibling}function ff(e){var t=e.stateNode,l=e.memoizedProps;try{for(var r=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);dt(t,r,l),t[rt]=e,t[At]=l}catch(m){Le(e,e.return,m)}}var Da=!1,We=!1,I0=!1,mf=typeof WeakSet=="function"?WeakSet:Set,st=null;function px(e,t){if(e=e.containerInfo,vc=wr,e=wd(e),Go(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var r=l.getSelection&&l.getSelection();if(r&&r.rangeCount!==0){l=r.anchorNode;var d=r.anchorOffset,m=r.focusNode;r=r.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var v=0,A=-1,T=-1,k=0,Y=0,X=e,O=null;t:for(;;){for(var F;X!==l||d!==0&&X.nodeType!==3||(A=v+d),X!==m||r!==0&&X.nodeType!==3||(T=v+r),X.nodeType===3&&(v+=X.nodeValue.length),(F=X.firstChild)!==null;)O=X,X=F;for(;;){if(X===e)break t;if(O===l&&++k===d&&(A=v),O===m&&++Y===r&&(T=v),(F=X.nextSibling)!==null)break;X=O,O=X.parentNode}X=F}l=A===-1||T===-1?null:{start:A,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(jc={focusedElem:e,selectionRange:l},wr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,m=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,l=t,d=m.memoizedProps,m=m.memoizedState,r=l.stateNode;try{var ae=_n(l.type,d);e=r.getSnapshotBeforeUpdate(ae,m),r.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Le(l,l.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)wc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function hf(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:ka(e,l),r&4&&Ns(5,l);break;case 1:if(ka(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(v){Le(l,l.return,v)}else{var d=_n(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Le(l,l.return,v)}}r&64&&of(l),r&512&&Ms(l,l.return);break;case 3:if(ka(e,l),r&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Jd(e,t)}catch(v){Le(l,l.return,v)}}break;case 27:t===null&&r&4&&ff(l);case 26:case 5:ka(e,l),t===null&&r&4&&uf(l),r&512&&Ms(l,l.return);break;case 12:ka(e,l);break;case 31:ka(e,l),r&4&&gf(e,l);break;case 13:ka(e,l),r&4&&bf(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=wx.bind(null,l),$x(e,l))));break;case 22:if(r=l.memoizedState!==null||Da,!r){t=t!==null&&t.memoizedState!==null||We,d=Da;var m=We;Da=r,(We=t)&&!m?_a(e,l,(l.subtreeFlags&8772)!==0):ka(e,l),Da=d,We=m}break;case 30:break;default:ka(e,l)}}function pf(e){var t=e.alternate;t!==null&&(e.alternate=null,pf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&To(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,wt=!1;function Ra(e,t,l){for(l=l.child;l!==null;)xf(e,t,l),l=l.sibling}function xf(e,t,l){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Jl,l)}catch{}switch(l.tag){case 26:We||ha(l,t),Ra(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||ha(l,t);var r=ze,d=wt;cn(l.type)&&(ze=l.stateNode,wt=!1),Ra(e,t,l),ks(l.stateNode),ze=r,wt=d;break;case 5:We||ha(l,t);case 6:if(r=ze,d=wt,ze=null,Ra(e,t,l),ze=r,wt=d,ze!==null)if(wt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(l.stateNode)}catch(m){Le(l,t,m)}else try{ze.removeChild(l.stateNode)}catch(m){Le(l,t,m)}break;case 18:ze!==null&&(wt?(e=ze,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Zl(e)):om(ze,l.stateNode));break;case 4:r=ze,d=wt,ze=l.stateNode.containerInfo,wt=!0,Ra(e,t,l),ze=r,wt=d;break;case 0:case 11:case 14:case 15:tn(2,l,t),We||tn(4,l,t),Ra(e,t,l);break;case 1:We||(ha(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&cf(l,t,r)),Ra(e,t,l);break;case 21:Ra(e,t,l);break;case 22:We=(r=We)||l.memoizedState!==null,Ra(e,t,l),We=r;break;default:Ra(e,t,l)}}function gf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Zl(e)}catch(l){Le(t,t.return,l)}}}function bf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zl(e)}catch(l){Le(t,t.return,l)}}function xx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mf),t;default:throw Error(o(435,e.tag))}}function lr(e,t){var l=xx(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var d=Ex.bind(null,e,r);r.then(d,d)}})}function Et(e,t){var l=t.deletions;if(l!==null)for(var r=0;r<l.length;r++){var d=l[r],m=e,v=t,A=v;e:for(;A!==null;){switch(A.tag){case 27:if(cn(A.type)){ze=A.stateNode,wt=!1;break e}break;case 5:ze=A.stateNode,wt=!1;break e;case 3:case 4:ze=A.stateNode.containerInfo,wt=!0;break e}A=A.return}if(ze===null)throw Error(o(160));xf(m,v,d),ze=null,wt=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yf(t,e),t=t.sibling}var sa=null;function yf(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Nt(e),r&4&&(tn(3,e,e.return),Ns(3,e),tn(5,e,e.return));break;case 1:Et(t,e),Nt(e),r&512&&(We||l===null||ha(l,l.return)),r&64&&Da&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?r:l.concat(r))));break;case 26:var d=sa;if(Et(t,e),Nt(e),r&512&&(We||l===null||ha(l,l.return)),r&4){var m=l!==null?l.memoizedState:null;if(r=e.memoizedState,l===null)if(r===null)if(e.stateNode===null){e:{r=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(r){case"title":m=d.getElementsByTagName("title")[0],(!m||m[es]||m[rt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(r),d.head.insertBefore(m,d.querySelector("head > title"))),dt(m,r,l),m[rt]=e,lt(m),r=m;break e;case"link":var v=ym("link","href",d).get(r+(l.href||""));if(v){for(var A=0;A<v.length;A++)if(m=v[A],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(A,1);break t}}m=d.createElement(r),dt(m,r,l),d.head.appendChild(m);break;case"meta":if(v=ym("meta","content",d).get(r+(l.content||""))){for(A=0;A<v.length;A++)if(m=v[A],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(A,1);break t}}m=d.createElement(r),dt(m,r,l),d.head.appendChild(m);break;default:throw Error(o(468,r))}m[rt]=e,lt(m),r=m}e.stateNode=r}else vm(d,e.type,e.stateNode);else e.stateNode=bm(d,r,e.memoizedProps);else m!==r?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,r===null?vm(d,e.type,e.stateNode):bm(d,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Q0(e,e.memoizedProps,l.memoizedProps)}break;case 27:Et(t,e),Nt(e),r&512&&(We||l===null||ha(l,l.return)),l!==null&&r&4&&Q0(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Et(t,e),Nt(e),r&512&&(We||l===null||ha(l,l.return)),e.flags&32){d=e.stateNode;try{tl(d,"")}catch(ae){Le(e,e.return,ae)}}r&4&&e.stateNode!=null&&(d=e.memoizedProps,Q0(e,d,l!==null?l.memoizedProps:d)),r&1024&&(I0=!0);break;case 6:if(Et(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(ae){Le(e,e.return,ae)}}break;case 3:if(vr=null,d=sa,sa=br(t.containerInfo),Et(t,e),sa=d,Nt(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{Zl(t.containerInfo)}catch(ae){Le(e,e.return,ae)}I0&&(I0=!1,vf(e));break;case 4:r=sa,sa=br(e.stateNode.containerInfo),Et(t,e),Nt(e),sa=r;break;case 12:Et(t,e),Nt(e);break;case 31:Et(t,e),Nt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,lr(e,r)));break;case 13:Et(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ir=Vt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,lr(e,r)));break;case 22:d=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,k=Da,Y=We;if(Da=k||d,We=Y||T,Et(t,e),We=Y,Da=k,Nt(e),r&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||T||Da||We||On(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(m=T.stateNode,d)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{A=T.stateNode;var X=T.memoizedProps.style,O=X!=null&&X.hasOwnProperty("display")?X.display:null;A.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(ae){Le(T,T.return,ae)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=d?"":T.memoizedProps}catch(ae){Le(T,T.return,ae)}}}else if(t.tag===18){if(l===null){T=t;try{var F=T.stateNode;d?cm(F,!0):cm(T.stateNode,!1)}catch(ae){Le(T,T.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(l=r.retryQueue,l!==null&&(r.retryQueue=null,lr(e,l))));break;case 19:Et(t,e),Nt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,lr(e,r)));break;case 30:break;case 21:break;default:Et(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var l,r=e.return;r!==null;){if(df(r)){l=r;break}r=r.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var d=l.stateNode,m=J0(e);nr(e,m,d);break;case 5:var v=l.stateNode;l.flags&32&&(tl(v,""),l.flags&=-33);var A=J0(e);nr(e,A,v);break;case 3:case 4:var T=l.stateNode.containerInfo,k=J0(e);W0(e,k,T);break;default:throw Error(o(161))}}catch(Y){Le(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hf(e,t.alternate,t),t=t.sibling}function On(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:tn(4,t,t.return),On(t);break;case 1:ha(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&cf(t,t.return,l),On(t);break;case 27:ks(t.stateNode);case 26:case 5:ha(t,t.return),On(t);break;case 22:t.memoizedState===null&&On(t);break;case 30:On(t);break;default:On(t)}e=e.sibling}}function _a(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,d=e,m=t,v=m.flags;switch(m.tag){case 0:case 11:case 15:_a(d,m,l),Ns(4,m);break;case 1:if(_a(d,m,l),r=m,d=r.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(k){Le(r,r.return,k)}if(r=m,d=r.updateQueue,d!==null){var A=r.stateNode;try{var T=d.shared.hiddenCallbacks;if(T!==null)for(d.shared.hiddenCallbacks=null,d=0;d<T.length;d++)Qd(T[d],A)}catch(k){Le(r,r.return,k)}}l&&v&64&&of(m),Ms(m,m.return);break;case 27:ff(m);case 26:case 5:_a(d,m,l),l&&r===null&&v&4&&uf(m),Ms(m,m.return);break;case 12:_a(d,m,l);break;case 31:_a(d,m,l),l&&v&4&&gf(d,m);break;case 13:_a(d,m,l),l&&v&4&&bf(d,m);break;case 22:m.memoizedState===null&&_a(d,m,l),Ms(m,m.return);break;case 30:break;default:_a(d,m,l)}t=t.sibling}}function ec(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ms(l))}function tc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e))}function ia(e,t,l,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jf(e,t,l,r),t=t.sibling}function jf(e,t,l,r){var d=t.flags;switch(t.tag){case 0:case 11:case 15:ia(e,t,l,r),d&2048&&Ns(9,t);break;case 1:ia(e,t,l,r);break;case 3:ia(e,t,l,r),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e)));break;case 12:if(d&2048){ia(e,t,l,r),e=t.stateNode;try{var m=t.memoizedProps,v=m.id,A=m.onPostCommit;typeof A=="function"&&A(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Le(t,t.return,T)}}else ia(e,t,l,r);break;case 31:ia(e,t,l,r);break;case 13:ia(e,t,l,r);break;case 23:break;case 22:m=t.stateNode,v=t.alternate,t.memoizedState!==null?m._visibility&2?ia(e,t,l,r):Cs(e,t):m._visibility&2?ia(e,t,l,r):(m._visibility|=2,jl(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),d&2048&&ec(v,t);break;case 24:ia(e,t,l,r),d&2048&&tc(t.alternate,t);break;default:ia(e,t,l,r)}}function jl(e,t,l,r,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var m=e,v=t,A=l,T=r,k=v.flags;switch(v.tag){case 0:case 11:case 15:jl(m,v,A,T,d),Ns(8,v);break;case 23:break;case 22:var Y=v.stateNode;v.memoizedState!==null?Y._visibility&2?jl(m,v,A,T,d):Cs(m,v):(Y._visibility|=2,jl(m,v,A,T,d)),d&&k&2048&&ec(v.alternate,v);break;case 24:jl(m,v,A,T,d),d&&k&2048&&tc(v.alternate,v);break;default:jl(m,v,A,T,d)}t=t.sibling}}function Cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,r=t,d=r.flags;switch(r.tag){case 22:Cs(l,r),d&2048&&ec(r.alternate,r);break;case 24:Cs(l,r),d&2048&&tc(r.alternate,r);break;default:Cs(l,r)}t=t.sibling}}var Ts=8192;function Al(e,t,l){if(e.subtreeFlags&Ts)for(e=e.child;e!==null;)Af(e,t,l),e=e.sibling}function Af(e,t,l){switch(e.tag){case 26:Al(e,t,l),e.flags&Ts&&e.memoizedState!==null&&ag(l,sa,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,l);break;case 3:case 4:var r=sa;sa=br(e.stateNode.containerInfo),Al(e,t,l),sa=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ts,Ts=16777216,Al(e,t,l),Ts=r):Al(e,t,l));break;default:Al(e,t,l)}}function Sf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var r=t[l];st=r,Ef(r,e)}Sf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wf(e),e=e.sibling}function wf(e){switch(e.tag){case 0:case 11:case 15:Vs(e),e.flags&2048&&tn(9,e,e.return);break;case 3:Vs(e);break;case 12:Vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,sr(e)):Vs(e);break;default:Vs(e)}}function sr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var r=t[l];st=r,Ef(r,e)}Sf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:tn(8,t,t.return),sr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,sr(t));break;default:sr(t)}e=e.sibling}}function Ef(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:tn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var r=l.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ms(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,st=r;else e:for(l=e;st!==null;){r=st;var d=r.sibling,m=r.return;if(pf(r),r===l){st=null;break e}if(d!==null){d.return=m,st=d;break e}st=m}}}var gx={getCacheForType:function(e){var t=ct(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ct(Ke).controller.signal}},bx=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Re=null,je=null,Se=0,Ve=0,_t=null,an=!1,Sl=!1,ac=!1,Oa=0,qe=0,nn=0,zn=0,nc=0,Ot=0,wl=0,Ls=null,Mt=null,lc=!1,ir=0,Nf=0,rr=1/0,or=null,ln=null,et=0,sn=null,El=null,za=0,sc=0,ic=null,Mf=null,Zs=0,rc=null;function zt(){return(Ce&2)!==0&&Se!==0?Se&-Se:R.T!==null?mc():F1()}function Cf(){if(Ot===0)if((Se&536870912)===0||Ee){var e=xi;xi<<=1,(xi&3932160)===0&&(xi=262144),Ot=e}else Ot=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Ot}function Ct(e,t,l){(e===Re&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(Nl(e,0),rn(e,Se,Ot,!1)),Il(e,l),((Ce&2)===0||e!==Re)&&(e===Re&&((Ce&2)===0&&(zn|=l),qe===4&&rn(e,Se,Ot,!1)),pa(e))}function Tf(e,t,l){if((Ce&6)!==0)throw Error(o(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wl(e,t),d=r?jx(e,t):cc(e,t,!0),m=r;do{if(d===0){Sl&&!r&&rn(e,t,0,!1);break}else{if(l=e.current.alternate,m&&!yx(l)){d=cc(e,t,!1),m=!1;continue}if(d===2){if(m=t,e.errorRecoveryDisabledLanes&m)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var A=e;d=Ls;var T=A.current.memoizedState.isDehydrated;if(T&&(Nl(A,v).flags|=256),v=cc(A,v,!1),v!==2){if(ac&&!T){A.errorRecoveryDisabledLanes|=m,zn|=m,d=4;break e}m=Mt,Mt=d,m!==null&&(Mt===null?Mt=m:Mt.push.apply(Mt,m))}d=v}if(m=!1,d!==2)continue}}if(d===1){Nl(e,0),rn(e,t,0,!0);break}e:{switch(r=e,m=d,m){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:rn(r,t,Ot,!an);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(d=ir+300-Vt(),10<d)){if(rn(r,t,Ot,!an),bi(r,0,!0)!==0)break e;za=t,r.timeoutHandle=im(Vf.bind(null,r,l,Mt,or,lc,t,Ot,zn,wl,an,m,"Throttled",-0,0),d);break e}Vf(r,l,Mt,or,lc,t,Ot,zn,wl,an,m,null,-0,0)}}break}while(!0);pa(e)}function Vf(e,t,l,r,d,m,v,A,T,k,Y,X,O,F){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wa},Af(t,m,X);var ae=(m&62914560)===m?ir-Vt():(m&4194048)===m?Nf-Vt():0;if(ae=ng(X,ae),ae!==null){za=m,e.cancelPendingCommit=ae(Of.bind(null,e,t,m,l,r,d,v,A,T,Y,X,null,O,F)),rn(e,m,v,!k);return}}Of(e,t,m,l,r,d,v,A,T)}function yx(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var r=0;r<l.length;r++){var d=l[r],m=d.getSnapshot;d=d.value;try{if(!Ht(m(),d))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 rn(e,t,l,r){t&=~nc,t&=~zn,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var d=t;0<d;){var m=31-Zt(d),v=1<<m;r[m]=-1,d&=~v}l!==0&&z1(e,l,t)}function cr(){return(Ce&6)===0?(Hs(0),!1):!0}function oc(){if(je!==null){if(Ve===0)var e=je.return;else e=je,Ca=Vn=null,w0(e),xl=null,ps=0,e=je;for(;e!==null;)rf(e.alternate,e),e=e.return;je=null}}function Nl(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,zx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),za=0,oc(),Re=e,je=l=Na(e.current,null),Se=t,Ve=0,_t=null,an=!1,Sl=Wl(e,t),ac=!1,wl=Ot=nc=zn=nn=qe=0,Mt=Ls=null,lc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var d=31-Zt(r),m=1<<d;t|=e[d],r&=~m}return Oa=t,Vi(),l}function Lf(e,t){ge=null,R.H=Ss,t===pl||t===Oi?(t=Gd(),Ve=3):t===f0?(t=Gd(),Ve=4):Ve=t===B0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,je===null&&(qe=1,Wi(e,Gt(t,e.current)))}function Zf(){var e=Rt.current;return e===null?!0:(Se&4194048)===Se?Qt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Qt:!1}function Hf(){var e=R.H;return R.H=Ss,e===null?Ss:e}function Df(){var e=R.A;return R.A=gx,e}function ur(){qe=4,an||(Se&4194048)!==Se&&Rt.current!==null||(Sl=!0),(nn&134217727)===0&&(zn&134217727)===0||Re===null||rn(Re,Se,Ot,!1)}function cc(e,t,l){var r=Ce;Ce|=2;var d=Hf(),m=Df();(Re!==e||Se!==t)&&(or=null,Nl(e,t)),t=!1;var v=qe;e:do try{if(Ve!==0&&je!==null){var A=je,T=_t;switch(Ve){case 8:oc(),v=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var k=Ve;if(Ve=0,_t=null,Ml(e,A,T,k),l&&Sl){v=0;break e}break;default:k=Ve,Ve=0,_t=null,Ml(e,A,T,k)}}vx(),v=qe;break}catch(Y){Lf(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Ca=Vn=null,Ce=r,R.H=d,R.A=m,je===null&&(Re=null,Se=0,Vi()),v}function vx(){for(;je!==null;)Rf(je)}function jx(e,t){var l=Ce;Ce|=2;var r=Hf(),d=Df();Re!==e||Se!==t?(or=null,rr=Vt()+500,Nl(e,t)):Sl=Wl(e,t);e:do try{if(Ve!==0&&je!==null){t=je;var m=_t;t:switch(Ve){case 1:Ve=0,_t=null,Ml(e,t,m,1);break;case 2:case 9:if($d(m)){Ve=0,_t=null,kf(t);break}t=function(){Ve!==2&&Ve!==9||Re!==e||(Ve=7),pa(e)},m.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:$d(m)?(Ve=0,_t=null,kf(t)):(Ve=0,_t=null,Ml(e,t,m,7));break;case 5:var v=null;switch(je.tag){case 26:v=je.memoizedState;case 5:case 27:var A=je;if(v?jm(v):A.stateNode.complete){Ve=0,_t=null;var T=A.sibling;if(T!==null)je=T;else{var k=A.return;k!==null?(je=k,dr(k)):je=null}break t}}Ve=0,_t=null,Ml(e,t,m,5);break;case 6:Ve=0,_t=null,Ml(e,t,m,6);break;case 8:oc(),qe=6;break e;default:throw Error(o(462))}}Ax();break}catch(Y){Lf(e,Y)}while(!0);return Ca=Vn=null,R.H=r,R.A=d,Ce=l,je!==null?0:(Re=null,Se=0,Vi(),qe)}function Ax(){for(;je!==null&&!Yp();)Rf(je)}function Rf(e){var t=lf(e.alternate,e,Oa);e.memoizedProps=e.pendingProps,t===null?dr(e):je=t}function kf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=W2(l,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=W2(l,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:w0(t);default:rf(l,t),t=je=Hd(t,Oa),t=lf(l,t,Oa)}e.memoizedProps=e.pendingProps,t===null?dr(e):je=t}function Ml(e,t,l,r){Ca=Vn=null,w0(t),xl=null,ps=0;var d=t.return;try{if(ux(e,d,t,l,Se)){qe=1,Wi(e,Gt(l,e.current)),je=null;return}}catch(m){if(d!==null)throw je=d,m;qe=1,Wi(e,Gt(l,e.current)),je=null;return}t.flags&32768?(Ee||r===1?e=!0:Sl||(Se&536870912)!==0?e=!1:(an=e=!0,(r===2||r===9||r===3||r===6)&&(r=Rt.current,r!==null&&r.tag===13&&(r.flags|=16384))),_f(t,e)):dr(t)}function dr(e){var t=e;do{if((t.flags&32768)!==0){_f(t,an);return}e=t.return;var l=mx(t.alternate,t,Oa);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);qe===0&&(qe=5)}function _f(e,t){do{var l=hx(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);qe=6,je=null}function Of(e,t,l,r,d,m,v,A,T){e.cancelPendingCommit=null;do fr();while(et!==0);if((Ce&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(m=t.lanes|t.childLanes,m|=Jo,t3(e,l,m,v,A,T),e===Re&&(je=Re=null,Se=0),El=t,sn=e,za=l,sc=m,ic=d,Mf=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Nx(hi,function(){return qf(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=R.T,R.T=null,d=_.p,_.p=2,v=Ce,Ce|=4;try{px(e,t,l)}finally{Ce=v,_.p=d,R.T=r}}et=1,zf(),Bf(),Uf()}}function zf(){if(et===1){et=0;var e=sn,t=El,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var r=_.p;_.p=2;var d=Ce;Ce|=4;try{yf(t,e);var m=jc,v=wd(e.containerInfo),A=m.focusedElem,T=m.selectionRange;if(v!==A&&A&&A.ownerDocument&&Sd(A.ownerDocument.documentElement,A)){if(T!==null&&Go(A)){var k=T.start,Y=T.end;if(Y===void 0&&(Y=k),"selectionStart"in A)A.selectionStart=k,A.selectionEnd=Math.min(Y,A.value.length);else{var X=A.ownerDocument||document,O=X&&X.defaultView||window;if(O.getSelection){var F=O.getSelection(),ae=A.textContent.length,ue=Math.min(T.start,ae),De=T.end===void 0?ue:Math.min(T.end,ae);!F.extend&&ue>De&&(v=De,De=ue,ue=v);var H=Ad(A,ue),L=Ad(A,De);if(H&&L&&(F.rangeCount!==1||F.anchorNode!==H.node||F.anchorOffset!==H.offset||F.focusNode!==L.node||F.focusOffset!==L.offset)){var D=X.createRange();D.setStart(H.node,H.offset),F.removeAllRanges(),ue>De?(F.addRange(D),F.extend(L.node,L.offset)):(D.setEnd(L.node,L.offset),F.addRange(D))}}}}for(X=[],F=A;F=F.parentNode;)F.nodeType===1&&X.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<X.length;A++){var G=X[A];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}wr=!!vc,jc=vc=null}finally{Ce=d,_.p=r,R.T=l}}e.current=t,et=2}}function Bf(){if(et===2){et=0;var e=sn,t=El,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var r=_.p;_.p=2;var d=Ce;Ce|=4;try{hf(e,t.alternate,t)}finally{Ce=d,_.p=r,R.T=l}}et=3}}function Uf(){if(et===4||et===3){et=0,Gp();var e=sn,t=El,l=za,r=Mf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,El=sn=null,Ff(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(ln=null),Mo(l),t=t.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Jl,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=R.T,d=_.p,_.p=2,R.T=null;try{for(var m=e.onRecoverableError,v=0;v<r.length;v++){var A=r[v];m(A.value,{componentStack:A.stack})}}finally{R.T=t,_.p=d}}(za&3)!==0&&fr(),pa(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===rc?Zs++:(Zs=0,rc=e):Zs=0,Hs(0)}}function Ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ms(t)))}function fr(){return zf(),Bf(),Uf(),qf()}function qf(){if(et!==5)return!1;var e=sn,t=sc;sc=0;var l=Mo(za),r=R.T,d=_.p;try{_.p=32>l?32:l,R.T=null,l=ic,ic=null;var m=sn,v=za;if(et=0,El=sn=null,za=0,(Ce&6)!==0)throw Error(o(331));var A=Ce;if(Ce|=4,wf(m.current),jf(m,m.current,v,l),Ce=A,Hs(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Jl,m)}catch{}return!0}finally{_.p=d,R.T=r,Ff(e,t)}}function $f(e,t,l){t=Gt(l,t),t=z0(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Il(e,2),pa(e))}function Le(e,t,l){if(e.tag===3)$f(e,e,l);else for(;t!==null;){if(t.tag===3){$f(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ln===null||!ln.has(r))){e=Gt(l,e),l=$2(2),r=Wa(t,l,2),r!==null&&(Y2(l,r,t,e),Il(r,2),pa(r));break}}t=t.return}}function uc(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new bx;var d=new Set;r.set(t,d)}else d=r.get(t),d===void 0&&(d=new Set,r.set(t,d));d.has(l)||(ac=!0,d.add(l),e=Sx.bind(null,e,t,l),t.then(e,e))}function Sx(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Re===e&&(Se&l)===l&&(qe===4||qe===3&&(Se&62914560)===Se&&300>Vt()-ir?(Ce&2)===0&&Nl(e,0):nc|=l,wl===Se&&(wl=0)),pa(e)}function Yf(e,t){t===0&&(t=O1()),e=Mn(e,t),e!==null&&(Il(e,t),pa(e))}function wx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Yf(e,l)}function Ex(e,t){var l=0;switch(e.tag){case 31:case 13:var r=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),Yf(e,l)}function Nx(e,t){return So(e,t)}var mr=null,Cl=null,dc=!1,hr=!1,fc=!1,on=0;function pa(e){e!==Cl&&e.next===null&&(Cl===null?mr=Cl=e:Cl=Cl.next=e),hr=!0,dc||(dc=!0,Cx())}function Hs(e,t){if(!fc&&hr){fc=!0;do for(var l=!1,r=mr;r!==null;){if(e!==0){var d=r.pendingLanes;if(d===0)var m=0;else{var v=r.suspendedLanes,A=r.pingedLanes;m=(1<<31-Zt(42|e)+1)-1,m&=d&~(v&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,Kf(r,m))}else m=Se,m=bi(r,r===Re?m:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(m&3)===0||Wl(r,m)||(l=!0,Kf(r,m));r=r.next}while(l);fc=!1}}function Mx(){Gf()}function Gf(){hr=dc=!1;var e=0;on!==0&&Ox()&&(e=on);for(var t=Vt(),l=null,r=mr;r!==null;){var d=r.next,m=Xf(r,t);m===0?(r.next=null,l===null?mr=d:l.next=d,d===null&&(Cl=l)):(l=r,(e!==0||(m&3)!==0)&&(hr=!0)),r=d}et!==0&&et!==5||Hs(e),on!==0&&(on=0)}function Xf(e,t){for(var l=e.suspendedLanes,r=e.pingedLanes,d=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var v=31-Zt(m),A=1<<v,T=d[v];T===-1?((A&l)===0||(A&r)!==0)&&(d[v]=e3(A,t)):T<=t&&(e.expiredLanes|=A),m&=~A}if(t=Re,l=Se,l=bi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&wo(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wl(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&wo(r),Mo(l)){case 2:case 8:l=k1;break;case 32:l=hi;break;case 268435456:l=_1;break;default:l=hi}return r=Pf.bind(null,e),l=So(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&wo(r),e.callbackPriority=2,e.callbackNode=null,2}function Pf(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(fr()&&e.callbackNode!==l)return null;var r=Se;return r=bi(e,e===Re?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Tf(e,r,t),Xf(e,Vt()),e.callbackNode!=null&&e.callbackNode===l?Pf.bind(null,e):null)}function Kf(e,t){if(fr())return null;Tf(e,t,!0)}function Cx(){Bx(function(){(Ce&6)!==0?So(R1,Mx):Gf()})}function mc(){if(on===0){var e=ml;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),on=e}return on}function Qf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ai(""+e)}function Jf(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Tx(e,t,l,r,d){if(t==="submit"&&l&&l.stateNode===d){var m=Qf((d[At]||null).action),v=r.submitter;v&&(t=(t=v[At]||null)?Qf(t.formAction):v.getAttribute("formAction"),t!==null&&(m=t,v=null));var A=new Ni("action","action",null,r,d);e.push({event:A,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(on!==0){var T=v?Jf(d,v):new FormData(d);H0(l,{pending:!0,data:T,method:d.method,action:m},null,T)}}else typeof m=="function"&&(A.preventDefault(),T=v?Jf(d,v):new FormData(d),H0(l,{pending:!0,data:T,method:d.method,action:m},m,T))},currentTarget:d}]})}}for(var hc=0;hc<Qo.length;hc++){var pc=Qo[hc],Vx=pc.toLowerCase(),Lx=pc[0].toUpperCase()+pc.slice(1);la(Vx,"on"+Lx)}la(Md,"onAnimationEnd"),la(Cd,"onAnimationIteration"),la(Td,"onAnimationStart"),la("dblclick","onDoubleClick"),la("focusin","onFocus"),la("focusout","onBlur"),la(X3,"onTransitionRun"),la(P3,"onTransitionStart"),la(K3,"onTransitionCancel"),la(Vd,"onTransitionEnd"),In("onMouseEnter",["mouseout","mouseover"]),In("onMouseLeave",["mouseout","mouseover"]),In("onPointerEnter",["pointerout","pointerover"]),In("onPointerLeave",["pointerout","pointerover"]),Sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="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(" "),Zx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ds));function Wf(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var r=e[l],d=r.event;r=r.listeners;e:{var m=void 0;if(t)for(var v=r.length-1;0<=v;v--){var A=r[v],T=A.instance,k=A.currentTarget;if(A=A.listener,T!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=k;try{m(d)}catch(Y){Ti(Y)}d.currentTarget=null,m=T}else for(v=0;v<r.length;v++){if(A=r[v],T=A.instance,k=A.currentTarget,A=A.listener,T!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=k;try{m(d)}catch(Y){Ti(Y)}d.currentTarget=null,m=T}}}}function Ae(e,t){var l=t[Co];l===void 0&&(l=t[Co]=new Set);var r=e+"__bubble";l.has(r)||(If(t,e,2,!1),l.add(r))}function xc(e,t,l){var r=0;t&&(r|=4),If(l,e,r,t)}var pr="_reactListening"+Math.random().toString(36).slice(2);function gc(e){if(!e[pr]){e[pr]=!0,Y1.forEach(function(l){l!=="selectionchange"&&(Zx.has(l)||xc(l,!1,e),xc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pr]||(t[pr]=!0,xc("selectionchange",!1,t))}}function If(e,t,l,r){switch(Cm(t)){case 2:var d=ig;break;case 8:d=rg;break;default:d=Zc}l=d.bind(null,t,l,e),d=void 0,!_o||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),r?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function bc(e,t,l,r,d){var m=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var v=r.tag;if(v===3||v===4){var A=r.stateNode.containerInfo;if(A===d)break;if(v===4)for(v=r.return;v!==null;){var T=v.tag;if((T===3||T===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;A!==null;){if(v=Qn(A),v===null)return;if(T=v.tag,T===5||T===6||T===26||T===27){r=m=v;continue e}A=A.parentNode}}r=r.return}nd(function(){var k=m,Y=Ro(l),X=[];e:{var O=Ld.get(e);if(O!==void 0){var F=Ni,ae=e;switch(e){case"keypress":if(wi(l)===0)break e;case"keydown":case"keyup":F=E3;break;case"focusin":ae="focus",F=Uo;break;case"focusout":ae="blur",F=Uo;break;case"beforeblur":case"afterblur":F=Uo;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=m3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=C3;break;case Md:case Cd:case Td:F=x3;break;case Vd:F=V3;break;case"scroll":case"scrollend":F=d3;break;case"wheel":F=Z3;break;case"copy":case"cut":case"paste":F=b3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=od;break;case"toggle":case"beforetoggle":F=D3}var ue=(t&4)!==0,De=!ue&&(e==="scroll"||e==="scrollend"),H=ue?O!==null?O+"Capture":null:O;ue=[];for(var L=k,D;L!==null;){var G=L;if(D=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||D===null||H===null||(G=as(L,H),G!=null&&ue.push(Rs(L,G,D))),De)break;L=L.return}0<ue.length&&(O=new F(O,ae,null,l,Y),X.push({event:O,listeners:ue}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",O&&l!==Do&&(ae=l.relatedTarget||l.fromElement)&&(Qn(ae)||ae[Kn]))break e;if((F||O)&&(O=Y.window===Y?Y:(O=Y.ownerDocument)?O.defaultView||O.parentWindow:window,F?(ae=l.relatedTarget||l.toElement,F=k,ae=ae?Qn(ae):null,ae!==null&&(De=f(ae),ue=ae.tag,ae!==De||ue!==5&&ue!==27&&ue!==6)&&(ae=null)):(F=null,ae=k),F!==ae)){if(ue=id,G="onMouseLeave",H="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(ue=od,G="onPointerLeave",H="onPointerEnter",L="pointer"),De=F==null?O:ts(F),D=ae==null?O:ts(ae),O=new ue(G,L+"leave",F,l,Y),O.target=De,O.relatedTarget=D,G=null,Qn(Y)===k&&(ue=new ue(H,L+"enter",ae,l,Y),ue.target=D,ue.relatedTarget=De,G=ue),De=G,F&&ae)t:{for(ue=Hx,H=F,L=ae,D=0,G=H;G;G=ue(G))D++;G=0;for(var oe=L;oe;oe=ue(oe))G++;for(;0<D-G;)H=ue(H),D--;for(;0<G-D;)L=ue(L),G--;for(;D--;){if(H===L||L!==null&&H===L.alternate){ue=H;break t}H=ue(H),L=ue(L)}ue=null}else ue=null;F!==null&&em(X,O,F,ue,!1),ae!==null&&De!==null&&em(X,De,ae,ue,!0)}}e:{if(O=k?ts(k):window,F=O.nodeName&&O.nodeName.toLowerCase(),F==="select"||F==="input"&&O.type==="file")var Ne=xd;else if(hd(O))if(gd)Ne=$3;else{Ne=F3;var ie=U3}else F=O.nodeName,!F||F.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?k&&Ho(k.elementType)&&(Ne=xd):Ne=q3;if(Ne&&(Ne=Ne(e,k))){pd(X,Ne,l,Y);break e}ie&&ie(e,O,k),e==="focusout"&&k&&O.type==="number"&&k.memoizedProps.value!=null&&Zo(O,"number",O.value)}switch(ie=k?ts(k):window,e){case"focusin":(hd(ie)||ie.contentEditable==="true")&&(sl=ie,Xo=k,us=null);break;case"focusout":us=Xo=sl=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,Ed(X,l,Y);break;case"selectionchange":if(G3)break;case"keydown":case"keyup":Ed(X,l,Y)}var be;if(qo)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else ll?fd(e,l)&&(we="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(cd&&l.locale!=="ko"&&(ll||we!=="onCompositionStart"?we==="onCompositionEnd"&&ll&&(be=ld()):(Ya=Y,Oo="value"in Ya?Ya.value:Ya.textContent,ll=!0)),ie=xr(k,we),0<ie.length&&(we=new rd(we,e,null,l,Y),X.push({event:we,listeners:ie}),be?we.data=be:(be=md(l),be!==null&&(we.data=be)))),(be=k3?_3(e,l):O3(e,l))&&(we=xr(k,"onBeforeInput"),0<we.length&&(ie=new rd("onBeforeInput","beforeinput",null,l,Y),X.push({event:ie,listeners:we}),ie.data=be)),Tx(X,e,k,l,Y)}Wf(X,t)})}function Rs(e,t,l){return{instance:e,listener:t,currentTarget:l}}function xr(e,t){for(var l=t+"Capture",r=[];e!==null;){var d=e,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=as(e,l),d!=null&&r.unshift(Rs(e,d,m)),d=as(e,t),d!=null&&r.push(Rs(e,d,m))),e.tag===3)return r;e=e.return}return[]}function Hx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function em(e,t,l,r,d){for(var m=t._reactName,v=[];l!==null&&l!==r;){var A=l,T=A.alternate,k=A.stateNode;if(A=A.tag,T!==null&&T===r)break;A!==5&&A!==26&&A!==27||k===null||(T=k,d?(k=as(l,m),k!=null&&v.unshift(Rs(l,k,T))):d||(k=as(l,m),k!=null&&v.push(Rs(l,k,T)))),l=l.return}v.length!==0&&e.push({event:t,listeners:v})}var Dx=/\r\n?/g,Rx=/\u0000|\uFFFD/g;function tm(e){return(typeof e=="string"?e:""+e).replace(Dx,`
|
|
49
|
-
`).replace(Rx,"")}function am(e,t){return t=tm(t),tm(e)===t}function He(e,t,l,r,d,m){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||tl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&tl(e,""+r);break;case"className":vi(e,"class",r);break;case"tabIndex":vi(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,l,r);break;case"style":td(e,r,m);break;case"data":if(t!=="object"){vi(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ai(""+r),e.setAttribute(l,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(l==="formAction"?(t!=="input"&&He(e,t,"name",d.name,d,null),He(e,t,"formEncType",d.formEncType,d,null),He(e,t,"formMethod",d.formMethod,d,null),He(e,t,"formTarget",d.formTarget,d,null)):(He(e,t,"encType",d.encType,d,null),He(e,t,"method",d.method,d,null),He(e,t,"target",d.target,d,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ai(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=wa);break;case"onScroll":r!=null&&Ae("scroll",e);break;case"onScrollEnd":r!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(l=r.__html,l!=null){if(d.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}l=Ai(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""+r):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":r===!0?e.setAttribute(l,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,r):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(l,r):e.removeAttribute(l);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(l):e.setAttribute(l,r);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),yi(e,"popover",r);break;case"xlinkActuate":Sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Sa(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Sa(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Sa(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Sa(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":yi(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=c3.get(l)||l,yi(e,l,r))}}function yc(e,t,l,r,d,m){switch(l){case"style":td(e,r,m);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(l=r.__html,l!=null){if(d.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof r=="string"?tl(e,r):(typeof r=="number"||typeof r=="bigint")&&tl(e,""+r);break;case"onScroll":r!=null&&Ae("scroll",e);break;case"onScrollEnd":r!=null&&Ae("scrollend",e);break;case"onClick":r!=null&&(e.onclick=wa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!G1.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),m=e[At]||null,m=m!=null?m[l]:null,typeof m=="function"&&e.removeEventListener(t,m,d),typeof r=="function")){typeof m!="function"&&m!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,r,d);break e}l in e?e[l]=r:r===!0?e.setAttribute(l,""):yi(e,l,r)}}}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var r=!1,d=!1,m;for(m in l)if(l.hasOwnProperty(m)){var v=l[m];if(v!=null)switch(m){case"src":r=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:He(e,t,m,v,l,null)}}d&&He(e,t,"srcSet",l.srcSet,l,null),r&&He(e,t,"src",l.src,l,null);return;case"input":Ae("invalid",e);var A=m=v=d=null,T=null,k=null;for(r in l)if(l.hasOwnProperty(r)){var Y=l[r];if(Y!=null)switch(r){case"name":d=Y;break;case"type":v=Y;break;case"checked":T=Y;break;case"defaultChecked":k=Y;break;case"value":m=Y;break;case"defaultValue":A=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o(137,t));break;default:He(e,t,r,Y,l,null)}}J1(e,m,A,T,k,v,d,!1);return;case"select":Ae("invalid",e),r=v=m=null;for(d in l)if(l.hasOwnProperty(d)&&(A=l[d],A!=null))switch(d){case"value":m=A;break;case"defaultValue":v=A;break;case"multiple":r=A;default:He(e,t,d,A,l,null)}t=m,l=v,e.multiple=!!r,t!=null?el(e,!!r,t,!1):l!=null&&el(e,!!r,l,!0);return;case"textarea":Ae("invalid",e),m=d=r=null;for(v in l)if(l.hasOwnProperty(v)&&(A=l[v],A!=null))switch(v){case"value":r=A;break;case"defaultValue":d=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(91));break;default:He(e,t,v,A,l,null)}I1(e,r,d,m);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(r=l[T],r!=null))switch(T){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:He(e,t,T,r,l,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(r=0;r<Ds.length;r++)Ae(Ds[r],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in l)if(l.hasOwnProperty(k)&&(r=l[k],r!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:He(e,t,k,r,l,null)}return;default:if(Ho(t)){for(Y in l)l.hasOwnProperty(Y)&&(r=l[Y],r!==void 0&&yc(e,t,Y,r,l,void 0));return}}for(A in l)l.hasOwnProperty(A)&&(r=l[A],r!=null&&He(e,t,A,r,l,null))}function kx(e,t,l,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,v=null,A=null,T=null,k=null,Y=null;for(F in l){var X=l[F];if(l.hasOwnProperty(F)&&X!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":T=X;default:r.hasOwnProperty(F)||He(e,t,F,null,r,X)}}for(var O in r){var F=r[O];if(X=l[O],r.hasOwnProperty(O)&&(F!=null||X!=null))switch(O){case"type":m=F;break;case"name":d=F;break;case"checked":k=F;break;case"defaultChecked":Y=F;break;case"value":v=F;break;case"defaultValue":A=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,t));break;default:F!==X&&He(e,t,O,F,r,X)}}Lo(e,v,A,T,k,Y,m,d);return;case"select":F=v=A=O=null;for(m in l)if(T=l[m],l.hasOwnProperty(m)&&T!=null)switch(m){case"value":break;case"multiple":F=T;default:r.hasOwnProperty(m)||He(e,t,m,null,r,T)}for(d in r)if(m=r[d],T=l[d],r.hasOwnProperty(d)&&(m!=null||T!=null))switch(d){case"value":O=m;break;case"defaultValue":A=m;break;case"multiple":v=m;default:m!==T&&He(e,t,d,m,r,T)}t=A,l=v,r=F,O!=null?el(e,!!l,O,!1):!!r!=!!l&&(t!=null?el(e,!!l,t,!0):el(e,!!l,l?[]:"",!1));return;case"textarea":F=O=null;for(A in l)if(d=l[A],l.hasOwnProperty(A)&&d!=null&&!r.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:He(e,t,A,null,r,d)}for(v in r)if(d=r[v],m=l[v],r.hasOwnProperty(v)&&(d!=null||m!=null))switch(v){case"value":O=d;break;case"defaultValue":F=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:d!==m&&He(e,t,v,d,r,m)}W1(e,O,F);return;case"option":for(var ae in l)if(O=l[ae],l.hasOwnProperty(ae)&&O!=null&&!r.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:He(e,t,ae,null,r,O)}for(T in r)if(O=r[T],F=l[T],r.hasOwnProperty(T)&&O!==F&&(O!=null||F!=null))switch(T){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:He(e,t,T,O,r,F)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in l)O=l[ue],l.hasOwnProperty(ue)&&O!=null&&!r.hasOwnProperty(ue)&&He(e,t,ue,null,r,O);for(k in r)if(O=r[k],F=l[k],r.hasOwnProperty(k)&&O!==F&&(O!=null||F!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:He(e,t,k,O,r,F)}return;default:if(Ho(t)){for(var De in l)O=l[De],l.hasOwnProperty(De)&&O!==void 0&&!r.hasOwnProperty(De)&&yc(e,t,De,void 0,r,O);for(Y in r)O=r[Y],F=l[Y],!r.hasOwnProperty(Y)||O===F||O===void 0&&F===void 0||yc(e,t,Y,O,r,F);return}}for(var H in l)O=l[H],l.hasOwnProperty(H)&&O!=null&&!r.hasOwnProperty(H)&&He(e,t,H,null,r,O);for(X in r)O=r[X],F=l[X],!r.hasOwnProperty(X)||O===F||O==null&&F==null||He(e,t,X,O,r,F)}function nm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _x(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),r=0;r<l.length;r++){var d=l[r],m=d.transferSize,v=d.initiatorType,A=d.duration;if(m&&A&&nm(v)){for(v=0,A=d.responseEnd,r+=1;r<l.length;r++){var T=l[r],k=T.startTime;if(k>A)break;var Y=T.transferSize,X=T.initiatorType;Y&&nm(X)&&(T=T.responseEnd,v+=Y*(T<A?1:(A-k)/(T-k)))}if(--r,t+=8*(m+v)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vc=null,jc=null;function gr(e){return e.nodeType===9?e:e.ownerDocument}function lm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ac(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sc=null;function Ox(){var e=window.event;return e&&e.type==="popstate"?e===Sc?!1:(Sc=e,!0):(Sc=null,!1)}var im=typeof setTimeout=="function"?setTimeout:void 0,zx=typeof clearTimeout=="function"?clearTimeout:void 0,rm=typeof Promise=="function"?Promise:void 0,Bx=typeof queueMicrotask=="function"?queueMicrotask:typeof rm<"u"?function(e){return rm.resolve(null).then(e).catch(Ux)}:im;function Ux(e){setTimeout(function(){throw e})}function cn(e){return e==="head"}function om(e,t){var l=t,r=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(r===0){e.removeChild(d),Zl(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")ks(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ks(l);for(var m=l.firstChild;m;){var v=m.nextSibling,A=m.nodeName;m[es]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=v}}else l==="body"&&ks(e.ownerDocument.body);l=d}while(l);Zl(t)}function cm(e,t){var l=e;e=0;do{var r=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),r&&r.nodeType===8)if(l=r.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=r}while(l)}function wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":wc(l),To(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Fx(e,t,l,r){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[es])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function qx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Jt(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function Ec(e){return e.data==="$?"||e.data==="$~"}function Nc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $x(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var r=function(){t(),l.removeEventListener("DOMContentLoaded",r)};l.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mc=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Jt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function mm(e,t,l){switch(t=gr(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ks(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);To(e)}var Wt=new Map,hm=new Set;function br(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ba=_.d;_.d={f:Yx,r:Gx,D:Xx,C:Px,L:Kx,m:Qx,X:Wx,S:Jx,M:Ix};function Yx(){var e=Ba.f(),t=cr();return e||t}function Gx(e){var t=Jn(e);t!==null&&t.tag===5&&t.type==="form"?V2(t):Ba.r(e)}var Tl=typeof document>"u"?null:document;function pm(e,t,l){var r=Tl;if(r&&typeof t=="string"&&t){var d=$t(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),hm.has(d)||(hm.add(d),e={rel:e,crossOrigin:l,href:t},r.querySelector(d)===null&&(t=r.createElement("link"),dt(t,"link",e),lt(t),r.head.appendChild(t)))}}function Xx(e){Ba.D(e),pm("dns-prefetch",e,null)}function Px(e,t){Ba.C(e,t),pm("preconnect",e,t)}function Kx(e,t,l){Ba.L(e,t,l);var r=Tl;if(r&&e&&t){var d='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+$t(l.imageSizes)+'"]')):d+='[href="'+$t(e)+'"]';var m=d;switch(t){case"style":m=Vl(e);break;case"script":m=Ll(e)}Wt.has(m)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Wt.set(m,e),r.querySelector(d)!==null||t==="style"&&r.querySelector(_s(m))||t==="script"&&r.querySelector(Os(m))||(t=r.createElement("link"),dt(t,"link",e),lt(t),r.head.appendChild(t)))}}function Qx(e,t){Ba.m(e,t);var l=Tl;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+$t(r)+'"][href="'+$t(e)+'"]',m=d;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ll(e)}if(!Wt.has(m)&&(e=b({rel:"modulepreload",href:e},t),Wt.set(m,e),l.querySelector(d)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Os(m)))return}r=l.createElement("link"),dt(r,"link",e),lt(r),l.head.appendChild(r)}}}function Jx(e,t,l){Ba.S(e,t,l);var r=Tl;if(r&&e){var d=Wn(r).hoistableStyles,m=Vl(e);t=t||"default";var v=d.get(m);if(!v){var A={loading:0,preload:null};if(v=r.querySelector(_s(m)))A.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Wt.get(m))&&Cc(e,l);var T=v=r.createElement("link");lt(T),dt(T,"link",e),T._p=new Promise(function(k,Y){T.onload=k,T.onerror=Y}),T.addEventListener("load",function(){A.loading|=1}),T.addEventListener("error",function(){A.loading|=2}),A.loading|=4,yr(v,t,r)}v={type:"stylesheet",instance:v,count:1,state:A},d.set(m,v)}}}function Wx(e,t){Ba.X(e,t);var l=Tl;if(l&&e){var r=Wn(l).hoistableScripts,d=Ll(e),m=r.get(d);m||(m=l.querySelector(Os(d)),m||(e=b({src:e,async:!0},t),(t=Wt.get(d))&&Tc(e,t),m=l.createElement("script"),lt(m),dt(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},r.set(d,m))}}function Ix(e,t){Ba.M(e,t);var l=Tl;if(l&&e){var r=Wn(l).hoistableScripts,d=Ll(e),m=r.get(d);m||(m=l.querySelector(Os(d)),m||(e=b({src:e,async:!0,type:"module"},t),(t=Wt.get(d))&&Tc(e,t),m=l.createElement("script"),lt(m),dt(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},r.set(d,m))}}function xm(e,t,l,r){var d=(d=ve.current)?br(d):null;if(!d)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Vl(l.href),l=Wn(d).hoistableStyles,r=l.get(t),r||(r={type:"style",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Vl(l.href);var m=Wn(d).hoistableStyles,v=m.get(e);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,v),(m=d.querySelector(_s(e)))&&!m._p&&(v.instance=m,v.state.loading=5),Wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Wt.set(e,l),m||eg(d,e,l,v.state))),t&&r===null)throw Error(o(528,""));return v}if(t&&r!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ll(l),l=Wn(d).hoistableScripts,r=l.get(t),r||(r={type:"script",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Vl(e){return'href="'+$t(e)+'"'}function _s(e){return'link[rel="stylesheet"]['+e+"]"}function gm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function eg(e,t,l,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),dt(t,"link",l),lt(t),e.head.appendChild(t))}function Ll(e){return'[src="'+$t(e)+'"]'}function Os(e){return"script[async]"+e}function bm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(r)return t.instance=r,lt(r),r;var d=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),lt(r),dt(r,"style",d),yr(r,l.precedence,e),t.instance=r;case"stylesheet":d=Vl(l.href);var m=e.querySelector(_s(d));if(m)return t.state.loading|=4,t.instance=m,lt(m),m;r=gm(l),(d=Wt.get(d))&&Cc(r,d),m=(e.ownerDocument||e).createElement("link"),lt(m);var v=m;return v._p=new Promise(function(A,T){v.onload=A,v.onerror=T}),dt(m,"link",r),t.state.loading|=4,yr(m,l.precedence,e),t.instance=m;case"script":return m=Ll(l.src),(d=e.querySelector(Os(m)))?(t.instance=d,lt(d),d):(r=l,(d=Wt.get(m))&&(r=b({},l),Tc(r,d)),e=e.ownerDocument||e,d=e.createElement("script"),lt(d),dt(d,"link",r),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,yr(r,l.precedence,e));return t.instance}function yr(e,t,l){for(var r=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=r.length?r[r.length-1]:null,m=d,v=0;v<r.length;v++){var A=r[v];if(A.dataset.precedence===t)m=A;else if(m!==d)break}m?m.parentNode.insertBefore(e,m.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Tc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vr=null;function ym(e,t,l){if(vr===null){var r=new Map,d=vr=new Map;d.set(l,r)}else d=vr,r=d.get(l),r||(r=new Map,d.set(l,r));if(r.has(e))return r;for(r.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var m=l[d];if(!(m[es]||m[rt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(t)||"";v=e+v;var A=r.get(v);A?A.push(m):r.set(v,[m])}}return r}function vm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function tg(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ag(e,t,l,r){if(l.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=Vl(r.href),m=t.querySelector(_s(d));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=m,lt(m);return}m=t.ownerDocument||t,r=gm(r),(d=Wt.get(d))&&Cc(r,d),m=m.createElement("link"),lt(m);var v=m;v._p=new Promise(function(A,T){v.onload=A,v.onerror=T}),dt(m,"link",r),l.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=jr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Vc=0;function ng(e,t){return e.stylesheets&&e.count===0&&Sr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&Sr(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+t);0<e.imgBytes&&Vc===0&&(Vc=62500*_x());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Sr(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>Vc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(d)}}:null}function jr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Sr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ar=null;function Sr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ar=new Map,t.forEach(lg,e),Ar=null,jr.call(e))}function lg(e,t){if(!(t.state.loading&4)){var l=Ar.get(e);if(l)var r=l.get(null);else{l=new Map,Ar.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var v=d[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),r=v)}r&&l.set(null,r)}d=t.instance,v=d.getAttribute("data-precedence"),m=l.get(v)||r,m===r&&l.set(null,d),l.set(v,d),this.count++,r=jr.bind(this),d.addEventListener("load",r),d.addEventListener("error",r),m?m.parentNode.insertBefore(d,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var zs={$$typeof:Z,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function sg(e,t,l,r,d,m,v,A,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Eo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eo(0),this.hiddenUpdates=Eo(null),this.identifierPrefix=r,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Am(e,t,l,r,d,m,v,A,T,k,Y,X){return e=new sg(e,t,l,v,T,k,Y,X,A),t=1,m===!0&&(t|=24),m=Dt(3,null,null,t),e.current=m,m.stateNode=e,t=c0(),t.refCount++,e.pooledCache=t,t.refCount++,m.memoizedState={element:r,isDehydrated:l,cache:t},m0(m),e}function Sm(e){return e?(e=ol,e):ol}function wm(e,t,l,r,d,m){d=Sm(d),r.context===null?r.context=d:r.pendingContext=d,r=Ja(t),r.payload={element:l},m=m===void 0?null:m,m!==null&&(r.callback=m),l=Wa(e,r,t),l!==null&&(Ct(l,e,t),gs(l,e,t))}function Em(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Lc(e,t){Em(e,t),(e=e.alternate)&&Em(e,t)}function Nm(e){if(e.tag===13||e.tag===31){var t=Mn(e,67108864);t!==null&&Ct(t,e,67108864),Lc(e,67108864)}}function Mm(e){if(e.tag===13||e.tag===31){var t=zt();t=No(t);var l=Mn(e,t);l!==null&&Ct(l,e,t),Lc(e,t)}}var wr=!0;function ig(e,t,l,r){var d=R.T;R.T=null;var m=_.p;try{_.p=2,Zc(e,t,l,r)}finally{_.p=m,R.T=d}}function rg(e,t,l,r){var d=R.T;R.T=null;var m=_.p;try{_.p=8,Zc(e,t,l,r)}finally{_.p=m,R.T=d}}function Zc(e,t,l,r){if(wr){var d=Hc(r);if(d===null)bc(e,t,r,Er,l),Tm(e,r);else if(cg(d,e,t,l,r))r.stopPropagation();else if(Tm(e,r),t&4&&-1<og.indexOf(e)){for(;d!==null;){var m=Jn(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=An(m.pendingLanes);if(v!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;v;){var T=1<<31-Zt(v);A.entanglements[1]|=T,v&=~T}pa(m),(Ce&6)===0&&(rr=Vt()+500,Hs(0))}}break;case 31:case 13:A=Mn(m,2),A!==null&&Ct(A,m,2),cr(),Lc(m,2)}if(m=Hc(r),m===null&&bc(e,t,r,Er,l),m===d)break;d=m}d!==null&&r.stopPropagation()}else bc(e,t,r,null,l)}}function Hc(e){return e=Ro(e),Dc(e)}var Er=null;function Dc(e){if(Er=null,e=Qn(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Er=e,null}function Cm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Xp()){case R1:return 2;case k1:return 8;case hi:case Pp:return 32;case _1:return 268435456;default:return 32}default:return 32}}var Rc=!1,un=null,dn=null,fn=null,Bs=new Map,Us=new Map,mn=[],og="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Tm(e,t){switch(e){case"focusin":case"focusout":un=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":Bs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Us.delete(t.pointerId)}}function Fs(e,t,l,r,d,m){return e===null||e.nativeEvent!==m?(e={blockedOn:t,domEventName:l,eventSystemFlags:r,nativeEvent:m,targetContainers:[d]},t!==null&&(t=Jn(t),t!==null&&Nm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function cg(e,t,l,r,d){switch(t){case"focusin":return un=Fs(un,e,t,l,r,d),!0;case"dragenter":return dn=Fs(dn,e,t,l,r,d),!0;case"mouseover":return fn=Fs(fn,e,t,l,r,d),!0;case"pointerover":var m=d.pointerId;return Bs.set(m,Fs(Bs.get(m)||null,e,t,l,r,d)),!0;case"gotpointercapture":return m=d.pointerId,Us.set(m,Fs(Us.get(m)||null,e,t,l,r,d)),!0}return!1}function Vm(e){var t=Qn(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,q1(e.priority,function(){Mm(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,q1(e.priority,function(){Mm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Hc(e.nativeEvent);if(l===null){l=e.nativeEvent;var r=new l.constructor(l.type,l);Do=r,l.target.dispatchEvent(r),Do=null}else return t=Jn(l),t!==null&&Nm(t),e.blockedOn=l,!1;t.shift()}return!0}function Lm(e,t,l){Nr(e)&&l.delete(t)}function ug(){Rc=!1,un!==null&&Nr(un)&&(un=null),dn!==null&&Nr(dn)&&(dn=null),fn!==null&&Nr(fn)&&(fn=null),Bs.forEach(Lm),Us.forEach(Lm)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Rc||(Rc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,ug)))}var Cr=null;function Zm(e){Cr!==e&&(Cr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Cr===e&&(Cr=null);for(var t=0;t<e.length;t+=3){var l=e[t],r=e[t+1],d=e[t+2];if(typeof r!="function"){if(Dc(r||l)===null)continue;break}var m=Jn(l);m!==null&&(e.splice(t,3),t-=3,H0(m,{pending:!0,data:d,method:l.method,action:r},r,d))}}))}function Zl(e){function t(T){return Mr(T,e)}un!==null&&Mr(un,e),dn!==null&&Mr(dn,e),fn!==null&&Mr(fn,e),Bs.forEach(t),Us.forEach(t);for(var l=0;l<mn.length;l++){var r=mn[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<mn.length&&(l=mn[0],l.blockedOn===null);)Vm(l),l.blockedOn===null&&mn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(r=0;r<l.length;r+=3){var d=l[r],m=l[r+1],v=d[At]||null;if(typeof m=="function")v||Zm(l);else if(v){var A=null;if(m&&m.hasAttribute("formAction")){if(d=m,v=m[At]||null)A=v.formAction;else if(Dc(d)!==null)continue}else A=v.action;typeof A=="function"?l[r+1]=A:(l.splice(r,3),r-=3),Zm(l)}}}function Hm(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),r||setTimeout(l,20)}function l(){if(!r&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function kc(e){this._internalRoot=e}Tr.prototype.render=kc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,r=zt();wm(l,r,e,t,null,null)},Tr.prototype.unmount=kc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wm(e.current,2,null,e,null,null),cr(),t[Kn]=null}};function Tr(e){this._internalRoot=e}Tr.prototype.unstable_scheduleHydration=function(e){if(e){var t=F1();e={blockedOn:null,target:e,priority:t};for(var l=0;l<mn.length&&t!==0&&t<mn[l].priority;l++);mn.splice(l,0,e),l===0&&Vm(e)}};var Dm=n.version;if(Dm!=="19.2.4")throw Error(o(527,Dm,"19.2.4"));_.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var dg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vr.isDisabled&&Vr.supportsFiber)try{Jl=Vr.inject(dg),Lt=Vr}catch{}}return $s.createRoot=function(e,t){if(!u(e))throw Error(o(299));var l=!1,r="",d=B2,m=U2,v=F2;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(m=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=Am(e,1,!1,null,null,l,r,null,d,m,v,Hm),e[Kn]=t.current,gc(e),new kc(t)},$s.hydrateRoot=function(e,t,l){if(!u(e))throw Error(o(299));var r=!1,d="",m=B2,v=U2,A=F2,T=null;return l!=null&&(l.unstable_strictMode===!0&&(r=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=Am(e,1,!0,t,l??null,r,d,T,m,v,A,Hm),t.context=Sm(null),l=t.current,r=zt(),r=No(r),d=Ja(r),d.callback=null,Wa(l,d,r),l=r,t.current.lanes=l,Il(t,l),pa(t),e[Kn]=t.current,gc(e),new Tr(t)},$s.version="19.2.4",$s}var $m;function Sg(){if($m)return zc.exports;$m=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),zc.exports=Ag(),zc.exports}var wg=Sg();/**
|
|
50
|
-
* react-router v7.13.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var Ym="popstate";function Gm(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function Eg(a={}){function n(o,u){var g;let f=(g=u.state)==null?void 0:g.masked,{pathname:h,search:p,hash:x}=f||o.location;return mu("",{pathname:h,search:p,hash:x},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function i(o,u){return typeof u=="string"?u:Ws(u)}return Mg(n,i,null,a)}function Be(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function da(a,n){if(!a){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Ng(){return Math.random().toString(36).substring(2,10)}function Xm(a,n){return{usr:a.state,key:a.key,idx:n,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function mu(a,n,i=null,o,u){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof n=="string"?ql(n):n,state:i,key:n&&n.key||o||Ng(),unstable_mask:u}}function Ws({pathname:a="/",search:n="",hash:i=""}){return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function ql(a){let n={};if(a){let i=a.indexOf("#");i>=0&&(n.hash=a.substring(i),a=a.substring(0,i));let o=a.indexOf("?");o>=0&&(n.search=a.substring(o),a=a.substring(0,o)),a&&(n.pathname=a)}return n}function Mg(a,n,i,o={}){let{window:u=document.defaultView,v5Compat:f=!1}=o,h=u.history,p="POP",x=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function b(){p="POP";let w=y(),N=w==null?null:w-g;g=w,x&&x({action:p,location:M.location,delta:N})}function j(w,N){p="PUSH";let C=Gm(w)?w:mu(M.location,w,N);g=y()+1;let Z=Xm(C,g),q=M.createHref(C.unstable_mask||C);try{h.pushState(Z,"",q)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;u.location.assign(q)}f&&x&&x({action:p,location:M.location,delta:1})}function S(w,N){p="REPLACE";let C=Gm(w)?w:mu(M.location,w,N);g=y();let Z=Xm(C,g),q=M.createHref(C.unstable_mask||C);h.replaceState(Z,"",q),f&&x&&x({action:p,location:M.location,delta:0})}function E(w){return Cg(w)}let M={get action(){return p},get location(){return a(u,h)},listen(w){if(x)throw new Error("A history only accepts one active listener");return u.addEventListener(Ym,b),x=w,()=>{u.removeEventListener(Ym,b),x=null}},createHref(w){return n(u,w)},createURL:E,encodeLocation(w){let N=E(w);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:j,replace:S,go(w){return h.go(w)}};return M}function Cg(a,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Be(i,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Ws(a);return o=o.replace(/ $/,"%20"),!n&&o.startsWith("//")&&(o=i+o),new URL(o,i)}function C8(a,n,i="/"){return Tg(a,n,i,!1)}function Tg(a,n,i,o){let u=typeof n=="string"?ql(n):n,f=Ua(u.pathname||"/",i);if(f==null)return null;let h=T8(a);Vg(h);let p=null;for(let x=0;p==null&&x<h.length;++x){let g=Ug(f);p=zg(h[x],g,o)}return p}function T8(a,n=[],i=[],o="",u=!1){let f=(h,p,x=u,g)=>{let y={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&x)return;Be(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let b=ga([o,y.relativePath]),j=i.concat(y);h.children&&h.children.length>0&&(Be(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),T8(h.children,n,j,b,x)),!(h.path==null&&!h.index)&&n.push({path:b,score:_g(b,h.index),routesMeta:j})};return a.forEach((h,p)=>{var x;if(h.path===""||!((x=h.path)!=null&&x.includes("?")))f(h,p);else for(let g of V8(h.path))f(h,p,!0,g)}),n}function V8(a){let n=a.split("/");if(n.length===0)return[];let[i,...o]=n,u=i.endsWith("?"),f=i.replace(/\?$/,"");if(o.length===0)return u?[f,""]:[f];let h=V8(o.join("/")),p=[];return p.push(...h.map(x=>x===""?f:[f,x].join("/"))),u&&p.push(...h),p.map(x=>a.startsWith("/")&&x===""?"/":x)}function Vg(a){a.sort((n,i)=>n.score!==i.score?i.score-n.score:Og(n.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}var Lg=/^:[\w-]+$/,Zg=3,Hg=2,Dg=1,Rg=10,kg=-2,Pm=a=>a==="*";function _g(a,n){let i=a.split("/"),o=i.length;return i.some(Pm)&&(o+=kg),n&&(o+=Hg),i.filter(u=>!Pm(u)).reduce((u,f)=>u+(Lg.test(f)?Zg:f===""?Dg:Rg),o)}function Og(a,n){return a.length===n.length&&a.slice(0,-1).every((o,u)=>o===n[u])?a[a.length-1]-n[n.length-1]:0}function zg(a,n,i=!1){let{routesMeta:o}=a,u={},f="/",h=[];for(let p=0;p<o.length;++p){let x=o[p],g=p===o.length-1,y=f==="/"?n:n.slice(f.length)||"/",b=Qr({path:x.relativePath,caseSensitive:x.caseSensitive,end:g},y),j=x.route;if(!b&&g&&i&&!o[o.length-1].route.index&&(b=Qr({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},y)),!b)return null;Object.assign(u,b.params),h.push({params:u,pathname:ga([f,b.pathname]),pathnameBase:Yg(ga([f,b.pathnameBase])),route:j}),b.pathnameBase!=="/"&&(f=ga([f,b.pathnameBase]))}return h}function Qr(a,n){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[i,o]=Bg(a.path,a.caseSensitive,a.end),u=n.match(i);if(!u)return null;let f=u[0],h=f.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:o.reduce((g,{paramName:y,isOptional:b},j)=>{if(y==="*"){let E=p[j]||"";h=f.slice(0,f.length-E.length).replace(/(.)\/+$/,"$1")}const S=p[j];return b&&!S?g[y]=void 0:g[y]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:a}}function Bg(a,n=!1,i=!0){da(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let o=[],u="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,x,g,y)=>{if(o.push({paramName:p,isOptional:x!=null}),x){let b=y.charAt(g+h.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(o.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,n?void 0:"i"),o]}function Ug(a){try{return a.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return da(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),a}}function Ua(a,n){if(n==="/")return a;if(!a.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,o=a.charAt(i);return o&&o!=="/"?null:a.slice(i)||"/"}var Fg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function qg(a,n="/"){let{pathname:i,search:o="",hash:u=""}=typeof a=="string"?ql(a):a,f;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?f=Km(i.substring(1),"/"):f=Km(i,n)):f=n,{pathname:f,search:Gg(o),hash:Xg(u)}}function Km(a,n){let i=n.replace(/\/+$/,"").split("/");return a.split("/").forEach(u=>{u===".."?i.length>1&&i.pop():u!=="."&&i.push(u)}),i.length>1?i.join("/"):"/"}function qc(a,n,i,o){return`Cannot include a '${a}' character in a manually specified \`to.${n}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $g(a){return a.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Yu(a){let n=$g(a);return n.map((i,o)=>o===n.length-1?i.pathname:i.pathnameBase)}function oo(a,n,i,o=!1){let u;typeof a=="string"?u=ql(a):(u={...a},Be(!u.pathname||!u.pathname.includes("?"),qc("?","pathname","search",u)),Be(!u.pathname||!u.pathname.includes("#"),qc("#","pathname","hash",u)),Be(!u.search||!u.search.includes("#"),qc("#","search","hash",u)));let f=a===""||u.pathname==="",h=f?"/":u.pathname,p;if(h==null)p=i;else{let b=n.length-1;if(!o&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),b-=1;u.pathname=j.join("/")}p=b>=0?n[b]:"/"}let x=qg(u,p),g=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&i.endsWith("/");return!x.pathname.endsWith("/")&&(g||y)&&(x.pathname+="/"),x}var ga=a=>a.join("/").replace(/\/\/+/g,"/"),Yg=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Gg=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Xg=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Pg=class{constructor(a,n,i,o=!1){this.status=a,this.statusText=n||"",this.internal=o,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Kg(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function Qg(a){return a.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var L8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Z8(a,n){let i=a;if(typeof i!="string"||!Fg.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let o=i,u=!1;if(L8)try{let f=new URL(window.location.href),h=i.startsWith("//")?new URL(f.protocol+i):new URL(i),p=Ua(h.pathname,n);h.origin===f.origin&&p!=null?i=p+h.search+h.hash:u=!0}catch{da(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:u,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var H8=["POST","PUT","PATCH","DELETE"];new Set(H8);var Jg=["GET",...H8];new Set(Jg);var $l=c.createContext(null);$l.displayName="DataRouter";var co=c.createContext(null);co.displayName="DataRouterState";var Wg=c.createContext(!1),D8=c.createContext({isTransitioning:!1});D8.displayName="ViewTransition";var Ig=c.createContext(new Map);Ig.displayName="Fetchers";var e5=c.createContext(null);e5.displayName="Await";var Ft=c.createContext(null);Ft.displayName="Navigation";var si=c.createContext(null);si.displayName="Location";var na=c.createContext({outlet:null,matches:[],isDataRoute:!1});na.displayName="Route";var Gu=c.createContext(null);Gu.displayName="RouteError";var R8="REACT_ROUTER_ERROR",t5="REDIRECT",a5="ROUTE_ERROR_RESPONSE";function n5(a){if(a.startsWith(`${R8}:${t5}:{`))try{let n=JSON.parse(a.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function l5(a){if(a.startsWith(`${R8}:${a5}:{`))try{let n=JSON.parse(a.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new Pg(n.status,n.statusText,n.data)}catch{}}function s5(a,{relative:n}={}){Be(Yl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:o}=c.useContext(Ft),{hash:u,pathname:f,search:h}=ri(a,{relative:n}),p=f;return i!=="/"&&(p=f==="/"?i:ga([i,f])),o.createHref({pathname:p,search:h,hash:u})}function Yl(){return c.useContext(si)!=null}function va(){return Be(Yl(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(si).location}var k8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _8(a){c.useContext(Ft).static||c.useLayoutEffect(a)}function ii(){let{isDataRoute:a}=c.useContext(na);return a?v5():i5()}function i5(){Be(Yl(),"useNavigate() may be used only in the context of a <Router> component.");let a=c.useContext($l),{basename:n,navigator:i}=c.useContext(Ft),{matches:o}=c.useContext(na),{pathname:u}=va(),f=JSON.stringify(Yu(o)),h=c.useRef(!1);return _8(()=>{h.current=!0}),c.useCallback((x,g={})=>{if(da(h.current,k8),!h.current)return;if(typeof x=="number"){i.go(x);return}let y=oo(x,JSON.parse(f),u,g.relative==="path");a==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:ga([n,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[n,i,f,u,a])}var r5=c.createContext(null);function o5(a){let n=c.useContext(na).outlet;return c.useMemo(()=>n&&c.createElement(r5.Provider,{value:a},n),[n,a])}function uo(){let{matches:a}=c.useContext(na),n=a[a.length-1];return n?n.params:{}}function ri(a,{relative:n}={}){let{matches:i}=c.useContext(na),{pathname:o}=va(),u=JSON.stringify(Yu(i));return c.useMemo(()=>oo(a,JSON.parse(u),o,n==="path"),[a,u,o,n])}function c5(a,n){return O8(a,n)}function O8(a,n,i){var w;Be(Yl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=c.useContext(Ft),{matches:u}=c.useContext(na),f=u[u.length-1],h=f?f.params:{},p=f?f.pathname:"/",x=f?f.pathnameBase:"/",g=f&&f.route;{let N=g&&g.path||"";B8(p,!g||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let y=va(),b;if(n){let N=typeof n=="string"?ql(n):n;Be(x==="/"||((w=N.pathname)==null?void 0:w.startsWith(x)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=y;let j=b.pathname||"/",S=j;if(x!=="/"){let N=x.replace(/^\//,"").split("/");S="/"+j.replace(/^\//,"").split("/").slice(N.length).join("/")}let E=C8(a,{pathname:S});da(g||E!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),da(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let M=h5(E&&E.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:ga([x,o.encodeLocation?o.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?x:ga([x,o.encodeLocation?o.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),u,i);return n&&M?c.createElement(si.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},M):M}function u5(){let a=y5(),n=Kg(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:f},"ErrorBoundary")," or"," ",c.createElement("code",{style:f},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},n),i?c.createElement("pre",{style:u},i):null,h)}var d5=c.createElement(u5,null),z8=class extends c.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,n){return n.location!==a.location||n.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:n.error,location:n.location,revalidation:a.revalidation||n.revalidation}}componentDidCatch(a,n){this.props.onError?this.props.onError(a,n):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const i=l5(a.digest);i&&(a=i)}let n=a!==void 0?c.createElement(na.Provider,{value:this.props.routeContext},c.createElement(Gu.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?c.createElement(f5,{error:a},n):n}};z8.contextType=Wg;var $c=new WeakMap;function f5({children:a,error:n}){let{basename:i}=c.useContext(Ft);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let o=n5(n.digest);if(o){let u=$c.get(n);if(u)throw u;let f=Z8(o.location,i);if(L8&&!$c.get(n))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw $c.set(n,h),h}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function m5({routeContext:a,match:n,children:i}){let o=c.useContext($l);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(na.Provider,{value:a},i)}function h5(a,n=[],i){let o=i==null?void 0:i.state;if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(n.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let u=a,f=o==null?void 0:o.errors;if(f!=null){let y=u.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);Be(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,y+1))}let h=!1,p=-1;if(i&&o){h=o.renderFallback;for(let y=0;y<u.length;y++){let b=u[y];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(p=y),b.route.id){let{loaderData:j,errors:S}=o,E=b.route.loader&&!j.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||E){i.isStatic&&(h=!0),p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}}let x=i==null?void 0:i.onError,g=o&&x?(y,b)=>{var j,S;x(y,{location:o.location,params:((S=(j=o.matches)==null?void 0:j[0])==null?void 0:S.params)??{},unstable_pattern:Qg(o.matches),errorInfo:b})}:void 0;return u.reduceRight((y,b,j)=>{let S,E=!1,M=null,w=null;o&&(S=f&&b.route.id?f[b.route.id]:void 0,M=b.route.errorElement||d5,h&&(p<0&&j===0?(B8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,w=null):p===j&&(E=!0,w=b.route.hydrateFallbackElement||null)));let N=n.concat(u.slice(0,j+1)),C=()=>{let Z;return S?Z=M:E?Z=w:b.route.Component?Z=c.createElement(b.route.Component,null):b.route.element?Z=b.route.element:Z=y,c.createElement(m5,{match:b,routeContext:{outlet:y,matches:N,isDataRoute:o!=null},children:Z})};return o&&(b.route.ErrorBoundary||b.route.errorElement||j===0)?c.createElement(z8,{location:o.location,revalidation:o.revalidation,component:M,error:S,children:C(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:g}):C()},null)}function Xu(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p5(a){let n=c.useContext($l);return Be(n,Xu(a)),n}function x5(a){let n=c.useContext(co);return Be(n,Xu(a)),n}function g5(a){let n=c.useContext(na);return Be(n,Xu(a)),n}function Pu(a){let n=g5(a),i=n.matches[n.matches.length-1];return Be(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function b5(){return Pu("useRouteId")}function y5(){var o;let a=c.useContext(Gu),n=x5("useRouteError"),i=Pu("useRouteError");return a!==void 0?a:(o=n.errors)==null?void 0:o[i]}function v5(){let{router:a}=p5("useNavigate"),n=Pu("useNavigate"),i=c.useRef(!1);return _8(()=>{i.current=!0}),c.useCallback(async(u,f={})=>{da(i.current,k8),i.current&&(typeof u=="number"?await a.navigate(u):await a.navigate(u,{fromRouteId:n,...f}))},[a,n])}var Qm={};function B8(a,n,i){!n&&!Qm[a]&&(Qm[a]=!0,da(!1,i))}c.memo(j5);function j5({routes:a,future:n,state:i,isStatic:o,onError:u}){return O8(a,void 0,{state:i,isStatic:o,onError:u})}function U8({to:a,replace:n,state:i,relative:o}){Be(Yl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=c.useContext(Ft);da(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=c.useContext(na),{pathname:h}=va(),p=ii(),x=oo(a,Yu(f),h,o==="path"),g=JSON.stringify(x);return c.useEffect(()=>{p(JSON.parse(g),{replace:n,state:i,relative:o})},[p,g,o,n,i]),null}function A5(a){return o5(a.context)}function $e(a){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function S5({basename:a="/",children:n=null,location:i,navigationType:o="POP",navigator:u,static:f=!1,unstable_useTransitions:h}){Be(!Yl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),x=c.useMemo(()=>({basename:p,navigator:u,static:f,unstable_useTransitions:h,future:{}}),[p,u,f,h]);typeof i=="string"&&(i=ql(i));let{pathname:g="/",search:y="",hash:b="",state:j=null,key:S="default",unstable_mask:E}=i,M=c.useMemo(()=>{let w=Ua(g,p);return w==null?null:{location:{pathname:w,search:y,hash:b,state:j,key:S,unstable_mask:E},navigationType:o}},[p,g,y,b,j,S,o,E]);return da(M!=null,`<Router basename="${p}"> is not able to match the URL "${g}${y}${b}" because it does not start with the basename, so the <Router> won't render anything.`),M==null?null:c.createElement(Ft.Provider,{value:x},c.createElement(si.Provider,{children:n,value:M}))}function w5({children:a,location:n}){return c5(hu(a),n)}function hu(a,n=[]){let i=[];return c.Children.forEach(a,(o,u)=>{if(!c.isValidElement(o))return;let f=[...n,u];if(o.type===c.Fragment){i.push.apply(i,hu(o.props.children,f));return}Be(o.type===$e,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=hu(o.props.children,f)),i.push(h)}),i}var Ur="get",Fr="application/x-www-form-urlencoded";function fo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function E5(a){return fo(a)&&a.tagName.toLowerCase()==="button"}function N5(a){return fo(a)&&a.tagName.toLowerCase()==="form"}function M5(a){return fo(a)&&a.tagName.toLowerCase()==="input"}function C5(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function T5(a,n){return a.button===0&&(!n||n==="_self")&&!C5(a)}var Lr=null;function V5(){if(Lr===null)try{new FormData(document.createElement("form"),0),Lr=!1}catch{Lr=!0}return Lr}var L5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yc(a){return a!=null&&!L5.has(a)?(da(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fr}"`),null):a}function Z5(a,n){let i,o,u,f,h;if(N5(a)){let p=a.getAttribute("action");o=p?Ua(p,n):null,i=a.getAttribute("method")||Ur,u=Yc(a.getAttribute("enctype"))||Fr,f=new FormData(a)}else if(E5(a)||M5(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=a.getAttribute("formaction")||p.getAttribute("action");if(o=x?Ua(x,n):null,i=a.getAttribute("formmethod")||p.getAttribute("method")||Ur,u=Yc(a.getAttribute("formenctype"))||Yc(p.getAttribute("enctype"))||Fr,f=new FormData(p,a),!V5()){let{name:g,type:y,value:b}=a;if(y==="image"){let j=g?`${g}.`:"";f.append(`${j}x`,"0"),f.append(`${j}y`,"0")}else g&&f.append(g,b)}}else{if(fo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Ur,o=null,u=Fr,h=a}return f&&u==="text/plain"&&(h=f,f=void 0),{action:o,method:i.toLowerCase(),encType:u,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ku(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function H5(a,n,i,o){let u=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return i?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${o}`:u.pathname=`${u.pathname}.${o}`:u.pathname==="/"?u.pathname=`_root.${o}`:n&&Ua(u.pathname,n)==="/"?u.pathname=`${n.replace(/\/$/,"")}/_root.${o}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${o}`,u}async function D5(a,n){if(a.id in n)return n[a.id];try{let i=await import(a.module);return n[a.id]=i,i}catch(i){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function R5(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function k5(a,n,i){let o=await Promise.all(a.map(async u=>{let f=n.routes[u.route.id];if(f){let h=await D5(f,i);return h.links?h.links():[]}return[]}));return B5(o.flat(1).filter(R5).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Jm(a,n,i,o,u,f){let h=(x,g)=>i[g]?x.route.id!==i[g].route.id:!0,p=(x,g)=>{var y;return i[g].pathname!==x.pathname||((y=i[g].route.path)==null?void 0:y.endsWith("*"))&&i[g].params["*"]!==x.params["*"]};return f==="assets"?n.filter((x,g)=>h(x,g)||p(x,g)):f==="data"?n.filter((x,g)=>{var b;let y=o.routes[x.route.id];if(!y||!y.hasLoader)return!1;if(h(x,g)||p(x,g))return!0;if(x.route.shouldRevalidate){let j=x.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((b=i[0])==null?void 0:b.params)||{},nextUrl:new URL(a,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof j=="boolean")return j}return!0}):[]}function _5(a,n,{includeHydrateFallback:i}={}){return O5(a.map(o=>{let u=n.routes[o.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),i&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function O5(a){return[...new Set(a)]}function z5(a){let n={},i=Object.keys(a).sort();for(let o of i)n[o]=a[o];return n}function B5(a,n){let i=new Set;return new Set(n),a.reduce((o,u)=>{let f=JSON.stringify(z5(u));return i.has(f)||(i.add(f),o.push({key:f,link:u})),o},[])}function F8(){let a=c.useContext($l);return Ku(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function U5(){let a=c.useContext(co);return Ku(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Qu=c.createContext(void 0);Qu.displayName="FrameworkContext";function q8(){let a=c.useContext(Qu);return Ku(a,"You must render this element inside a <HydratedRouter> element"),a}function F5(a,n){let i=c.useContext(Qu),[o,u]=c.useState(!1),[f,h]=c.useState(!1),{onFocus:p,onBlur:x,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=n,j=c.useRef(null);c.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let M=N=>{N.forEach(C=>{h(C.isIntersecting)})},w=new IntersectionObserver(M,{threshold:.5});return j.current&&w.observe(j.current),()=>{w.disconnect()}}},[a]),c.useEffect(()=>{if(o){let M=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(M)}}},[o]);let S=()=>{u(!0)},E=()=>{u(!1),h(!1)};return i?a!=="intent"?[f,j,{}]:[f,j,{onFocus:Ys(p,S),onBlur:Ys(x,E),onMouseEnter:Ys(g,S),onMouseLeave:Ys(y,E),onTouchStart:Ys(b,S)}]:[!1,j,{}]}function Ys(a,n){return i=>{a&&a(i),i.defaultPrevented||n(i)}}function q5({page:a,...n}){let{router:i}=F8(),o=c.useMemo(()=>C8(i.routes,a,i.basename),[i.routes,a,i.basename]);return o?c.createElement(Y5,{page:a,matches:o,...n}):null}function $5(a){let{manifest:n,routeModules:i}=q8(),[o,u]=c.useState([]);return c.useEffect(()=>{let f=!1;return k5(a,n,i).then(h=>{f||u(h)}),()=>{f=!0}},[a,n,i]),o}function Y5({page:a,matches:n,...i}){let o=va(),{future:u,manifest:f,routeModules:h}=q8(),{basename:p}=F8(),{loaderData:x,matches:g}=U5(),y=c.useMemo(()=>Jm(a,n,g,f,o,"data"),[a,n,g,f,o]),b=c.useMemo(()=>Jm(a,n,g,f,o,"assets"),[a,n,g,f,o]),j=c.useMemo(()=>{if(a===o.pathname+o.search+o.hash)return[];let M=new Set,w=!1;if(n.forEach(C=>{var q;let Z=f.routes[C.route.id];!Z||!Z.hasLoader||(!y.some($=>$.route.id===C.route.id)&&C.route.id in x&&((q=h[C.route.id])!=null&&q.shouldRevalidate)||Z.hasClientLoader?w=!0:M.add(C.route.id))}),M.size===0)return[];let N=H5(a,p,u.unstable_trailingSlashAwareDataRequests,"data");return w&&M.size>0&&N.searchParams.set("_routes",n.filter(C=>M.has(C.route.id)).map(C=>C.route.id).join(",")),[N.pathname+N.search]},[p,u.unstable_trailingSlashAwareDataRequests,x,o,f,y,n,a,h]),S=c.useMemo(()=>_5(b,f),[b,f]),E=$5(b);return c.createElement(c.Fragment,null,j.map(M=>c.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...i})),S.map(M=>c.createElement("link",{key:M,rel:"modulepreload",href:M,...i})),E.map(({key:M,link:w})=>c.createElement("link",{key:M,nonce:i.nonce,...w,crossOrigin:w.crossOrigin??i.crossOrigin})))}function G5(...a){return n=>{a.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var X5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{X5&&(window.__reactRouterVersion="7.13.1")}catch{}function P5({basename:a,children:n,unstable_useTransitions:i,window:o}){let u=c.useRef();u.current==null&&(u.current=Eg({window:o,v5Compat:!0}));let f=u.current,[h,p]=c.useState({action:f.action,location:f.location}),x=c.useCallback(g=>{i===!1?p(g):c.startTransition(()=>p(g))},[i]);return c.useLayoutEffect(()=>f.listen(x),[f,x]),c.createElement(S5,{basename:a,children:n,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:i})}var $8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ht=c.forwardRef(function({onClick:n,discover:i="render",prefetch:o="none",relative:u,reloadDocument:f,replace:h,unstable_mask:p,state:x,target:g,to:y,preventScrollReset:b,viewTransition:j,unstable_defaultShouldRevalidate:S,...E},M){let{basename:w,navigator:N,unstable_useTransitions:C}=c.useContext(Ft),Z=typeof y=="string"&&$8.test(y),q=Z8(y,w);y=q.to;let $=s5(y,{relative:u}),U=va(),B=null;if(p){let te=oo(p,[],U.unstable_mask?U.unstable_mask.pathname:"/",!0);w!=="/"&&(te.pathname=te.pathname==="/"?w:ga([w,te.pathname])),B=N.createHref(te)}let[z,Q,J]=F5(o,E),W=J5(y,{replace:h,unstable_mask:p,state:x,target:g,preventScrollReset:b,relative:u,viewTransition:j,unstable_defaultShouldRevalidate:S,unstable_useTransitions:C});function re(te){n&&n(te),te.defaultPrevented||W(te)}let le=!(q.isExternal||f),K=c.createElement("a",{...E,...J,href:(le?B:void 0)||q.absoluteURL||$,onClick:le?re:n,ref:G5(M,Q),target:g,"data-discover":!Z&&i==="render"?"true":void 0});return z&&!Z?c.createElement(c.Fragment,null,K,c.createElement(q5,{page:$})):K});ht.displayName="Link";var Yn=c.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:o="",end:u=!1,style:f,to:h,viewTransition:p,children:x,...g},y){let b=ri(h,{relative:g.relative}),j=va(),S=c.useContext(co),{navigator:E,basename:M}=c.useContext(Ft),w=S!=null&&ab(b)&&p===!0,N=E.encodeLocation?E.encodeLocation(b).pathname:b.pathname,C=j.pathname,Z=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(C=C.toLowerCase(),Z=Z?Z.toLowerCase():null,N=N.toLowerCase()),Z&&M&&(Z=Ua(Z,M)||Z);const q=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let $=C===N||!u&&C.startsWith(N)&&C.charAt(q)==="/",U=Z!=null&&(Z===N||!u&&Z.startsWith(N)&&Z.charAt(N.length)==="/"),B={isActive:$,isPending:U,isTransitioning:w},z=$?n:void 0,Q;typeof o=="function"?Q=o(B):Q=[o,$?"active":null,U?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let J=typeof f=="function"?f(B):f;return c.createElement(ht,{...g,"aria-current":z,className:Q,ref:y,style:J,to:h,viewTransition:p},typeof x=="function"?x(B):x)});Yn.displayName="NavLink";var K5=c.forwardRef(({discover:a="render",fetcherKey:n,navigate:i,reloadDocument:o,replace:u,state:f,method:h=Ur,action:p,onSubmit:x,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:j,...S},E)=>{let{unstable_useTransitions:M}=c.useContext(Ft),w=eb(),N=tb(p,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",Z=typeof p=="string"&&$8.test(p),q=$=>{if(x&&x($),$.defaultPrevented)return;$.preventDefault();let U=$.nativeEvent.submitter,B=(U==null?void 0:U.getAttribute("formmethod"))||h,z=()=>w(U||$.currentTarget,{fetcherKey:n,method:B,navigate:i,replace:u,state:f,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:j});M&&i!==!1?c.startTransition(()=>z()):z()};return c.createElement("form",{ref:E,method:C,action:N,onSubmit:o?x:q,...S,"data-discover":!Z&&a==="render"?"true":void 0})});K5.displayName="Form";function Q5(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Y8(a){let n=c.useContext($l);return Be(n,Q5(a)),n}function J5(a,{target:n,replace:i,unstable_mask:o,state:u,preventScrollReset:f,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:x,unstable_useTransitions:g}={}){let y=ii(),b=va(),j=ri(a,{relative:h});return c.useCallback(S=>{if(T5(S,n)){S.preventDefault();let E=i!==void 0?i:Ws(b)===Ws(j),M=()=>y(a,{replace:E,unstable_mask:o,state:u,preventScrollReset:f,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:x});g?c.startTransition(()=>M()):M()}},[b,y,j,i,o,u,n,a,f,h,p,x,g])}var W5=0,I5=()=>`__${String(++W5)}__`;function eb(){let{router:a}=Y8("useSubmit"),{basename:n}=c.useContext(Ft),i=b5(),o=a.fetch,u=a.navigate;return c.useCallback(async(f,h={})=>{let{action:p,method:x,encType:g,formData:y,body:b}=Z5(f,n);if(h.navigate===!1){let j=h.fetcherKey||I5();await o(j,i,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:b,formMethod:h.method||x,formEncType:h.encType||g,flushSync:h.flushSync})}else await u(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:b,formMethod:h.method||x,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:i,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,u,n,i])}function tb(a,{relative:n}={}){let{basename:i}=c.useContext(Ft),o=c.useContext(na);Be(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),f={...ri(a||".",{relative:n})},h=va();if(a==null){f.search=h.search;let p=new URLSearchParams(f.search),x=p.getAll("index");if(x.some(y=>y==="")){p.delete("index"),x.filter(b=>b).forEach(b=>p.append("index",b));let y=p.toString();f.search=y?`?${y}`:""}}return(!a||a===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:ga([i,f.pathname])),Ws(f)}function ab(a,{relative:n}={}){let i=c.useContext(D8);Be(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Y8("useViewTransitionState"),u=ri(a,{relative:n});if(!i.isTransitioning)return!1;let f=Ua(i.currentLocation.pathname,o)||i.currentLocation.pathname,h=Ua(i.nextLocation.pathname,o)||i.nextLocation.pathname;return Qr(u.pathname,h)!=null||Qr(u.pathname,f)!=null}const G8="";function yn(){return localStorage.getItem("ohwow-session-token")}function pu(a){localStorage.setItem("ohwow-session-token",a)}function X8(){localStorage.removeItem("ohwow-session-token")}async function de(a,n={}){const i=yn(),o=await fetch(`${G8}${a}`,{...n,headers:{"Content-Type":"application/json",...i?{Authorization:`Bearer ${i}`}:{},...n.headers}});if(o.status===401)throw X8(),window.location.href="/ui/login",new Error("Unauthorized");if(!o.ok){const u=await o.json().catch(()=>({error:o.statusText}));throw new Error(u.error||`HTTP ${o.status}`)}return o.json()}async function*nb(a,n,i){const o=yn(),u=await fetch(`${G8}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json",...o?{Authorization:`Bearer ${o}`}:{}},body:JSON.stringify({message:a,sessionId:n,model:i})});if(!u.ok||!u.body)throw new Error("Chat request failed");const f=u.body.getReader(),h=new TextDecoder;let p="";for(;;){const{done:x,value:g}=await f.read();if(x)break;p+=h.decode(g,{stream:!0});const y=p.split(`
|
|
61
|
-
`);p=y.pop()||"";for(const b of y)if(b.startsWith("data: ")){const j=b.slice(6).trim();if(j==="[DONE]")return;try{yield JSON.parse(j)}catch{}}}}function Gl(){const[a,n]=c.useState("enterprise"),[i,o]=c.useState(!0),[u,f]=c.useState(!0);return c.useEffect(()=>{let h=!1;return fetch("/api/runtime/tier").then(p=>p.json()).then(p=>{h||(n(p.data.tier),o(p.data.modelReady??!0))}).catch(()=>{}).finally(()=>{h||f(!1)}),()=>{h=!0}},[]),{tier:a,modelReady:i,loading:u}}class P8 extends c.Component{constructor(n){super(n),this.state={hasError:!1,error:null}}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,i){console.error("[ErrorBoundary]",n,i.componentStack)}render(){var n;return this.state.hasError?this.props.fallback||s.jsx("div",{className:"flex items-center justify-center h-full p-8",children:s.jsxs("div",{className:"text-center max-w-sm",children:[s.jsx("p",{className:"text-sm font-medium text-critical mb-2",children:"Something went wrong"}),s.jsx("p",{className:"text-xs text-muted mb-4",children:(n=this.state.error)==null?void 0:n.message}),s.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"px-4 py-2 text-xs bg-panel border border-border rounded-lg hover:bg-surface transition-colors",children:"Try again"})]})}):this.props.children}}const Ju=c.createContext({});function Wu(a){const n=c.useRef(null);return n.current===null&&(n.current=a()),n.current}const K8=typeof window<"u",Q8=K8?c.useLayoutEffect:c.useEffect,mo=c.createContext(null);function Iu(a,n){a.indexOf(n)===-1&&a.push(n)}function Jr(a,n){const i=a.indexOf(n);i>-1&&a.splice(i,1)}const ya=(a,n,i)=>i>n?n:i<a?a:i;let e1=()=>{};const Fa={},J8=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function W8(a){return typeof a=="object"&&a!==null}const I8=a=>/^0[^.\s]+$/u.test(a);function e4(a){let n;return()=>(n===void 0&&(n=a()),n)}const aa=a=>a,lb=(a,n)=>i=>n(a(i)),oi=(...a)=>a.reduce(lb),Is=(a,n,i)=>{const o=n-a;return o===0?1:(i-a)/o};class t1{constructor(){this.subscriptions=[]}add(n){return Iu(this.subscriptions,n),()=>Jr(this.subscriptions,n)}notify(n,i,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](n,i,o);else for(let f=0;f<u;f++){const h=this.subscriptions[f];h&&h(n,i,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ca=a=>a*1e3,ta=a=>a/1e3;function t4(a,n){return n?a*(1e3/n):0}const a4=(a,n,i)=>(((1-3*i+3*n)*a+(3*i-6*n))*a+3*n)*a,sb=1e-7,ib=12;function rb(a,n,i,o,u){let f,h,p=0;do h=n+(i-n)/2,f=a4(h,o,u)-a,f>0?i=h:n=h;while(Math.abs(f)>sb&&++p<ib);return h}function ci(a,n,i,o){if(a===n&&i===o)return aa;const u=f=>rb(f,0,1,a,i);return f=>f===0||f===1?f:a4(u(f),n,o)}const n4=a=>n=>n<=.5?a(2*n)/2:(2-a(2*(1-n)))/2,l4=a=>n=>1-a(1-n),s4=ci(.33,1.53,.69,.99),a1=l4(s4),i4=n4(a1),r4=a=>(a*=2)<1?.5*a1(a):.5*(2-Math.pow(2,-10*(a-1))),n1=a=>1-Math.sin(Math.acos(a)),o4=l4(n1),c4=n4(n1),ob=ci(.42,0,1,1),cb=ci(0,0,.58,1),u4=ci(.42,0,.58,1),ub=a=>Array.isArray(a)&&typeof a[0]!="number",d4=a=>Array.isArray(a)&&typeof a[0]=="number",db={linear:aa,easeIn:ob,easeInOut:u4,easeOut:cb,circIn:n1,circInOut:c4,circOut:o4,backIn:a1,backInOut:i4,backOut:s4,anticipate:r4},fb=a=>typeof a=="string",Wm=a=>{if(d4(a)){e1(a.length===4);const[n,i,o,u]=a;return ci(n,i,o,u)}else if(fb(a))return db[a];return a},Zr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mb(a,n){let i=new Set,o=new Set,u=!1,f=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function x(y){h.has(y)&&(g.schedule(y),a()),y(p)}const g={schedule:(y,b=!1,j=!1)=>{const E=j&&u?i:o;return b&&h.add(y),E.has(y)||E.add(y),y},cancel:y=>{o.delete(y),h.delete(y)},process:y=>{if(p=y,u){f=!0;return}u=!0,[i,o]=[o,i],i.forEach(x),i.clear(),u=!1,f&&(f=!1,g.process(y))}};return g}const hb=40;function f4(a,n){let i=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>i=!0,h=Zr.reduce((Z,q)=>(Z[q]=mb(f),Z),{}),{setup:p,read:x,resolveKeyframes:g,preUpdate:y,update:b,preRender:j,render:S,postRender:E}=h,M=()=>{const Z=Fa.useManualTiming?u.timestamp:performance.now();i=!1,Fa.useManualTiming||(u.delta=o?1e3/60:Math.max(Math.min(Z-u.timestamp,hb),1)),u.timestamp=Z,u.isProcessing=!0,p.process(u),x.process(u),g.process(u),y.process(u),b.process(u),j.process(u),S.process(u),E.process(u),u.isProcessing=!1,i&&n&&(o=!1,a(M))},w=()=>{i=!0,o=!0,u.isProcessing||a(M)};return{schedule:Zr.reduce((Z,q)=>{const $=h[q];return Z[q]=(U,B=!1,z=!1)=>(i||w(),$.schedule(U,B,z)),Z},{}),cancel:Z=>{for(let q=0;q<Zr.length;q++)h[Zr[q]].cancel(Z)},state:u,steps:h}}const{schedule:ke,cancel:bn,state:ft,steps:Gc}=f4(typeof requestAnimationFrame<"u"?requestAnimationFrame:aa,!0);let qr;function pb(){qr=void 0}const yt={now:()=>(qr===void 0&&yt.set(ft.isProcessing||Fa.useManualTiming?ft.timestamp:performance.now()),qr),set:a=>{qr=a,queueMicrotask(pb)}},m4=a=>n=>typeof n=="string"&&n.startsWith(a),h4=m4("--"),xb=m4("var(--"),l1=a=>xb(a)?gb.test(a.split("/*")[0].trim()):!1,gb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Im(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Xl={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},ei={...Xl,transform:a=>ya(0,1,a)},Hr={...Xl,default:1},Ps=a=>Math.round(a*1e5)/1e5,s1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bb(a){return a==null}const yb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,i1=(a,n)=>i=>!!(typeof i=="string"&&yb.test(i)&&i.startsWith(a)||n&&!bb(i)&&Object.prototype.hasOwnProperty.call(i,n)),p4=(a,n,i)=>o=>{if(typeof o!="string")return o;const[u,f,h,p]=o.match(s1);return{[a]:parseFloat(u),[n]:parseFloat(f),[i]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},vb=a=>ya(0,255,a),Xc={...Xl,transform:a=>Math.round(vb(a))},Fn={test:i1("rgb","red"),parse:p4("red","green","blue"),transform:({red:a,green:n,blue:i,alpha:o=1})=>"rgba("+Xc.transform(a)+", "+Xc.transform(n)+", "+Xc.transform(i)+", "+Ps(ei.transform(o))+")"};function jb(a){let n="",i="",o="",u="";return a.length>5?(n=a.substring(1,3),i=a.substring(3,5),o=a.substring(5,7),u=a.substring(7,9)):(n=a.substring(1,2),i=a.substring(2,3),o=a.substring(3,4),u=a.substring(4,5),n+=n,i+=i,o+=o,u+=u),{red:parseInt(n,16),green:parseInt(i,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const xu={test:i1("#"),parse:jb,transform:Fn.transform},ui=a=>({test:n=>typeof n=="string"&&n.endsWith(a)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${a}`}),pn=ui("deg"),ba=ui("%"),ne=ui("px"),Ab=ui("vh"),Sb=ui("vw"),eh={...ba,parse:a=>ba.parse(a)/100,transform:a=>ba.transform(a*100)},kl={test:i1("hsl","hue"),parse:p4("hue","saturation","lightness"),transform:({hue:a,saturation:n,lightness:i,alpha:o=1})=>"hsla("+Math.round(a)+", "+ba.transform(Ps(n))+", "+ba.transform(Ps(i))+", "+Ps(ei.transform(o))+")"},Ie={test:a=>Fn.test(a)||xu.test(a)||kl.test(a),parse:a=>Fn.test(a)?Fn.parse(a):kl.test(a)?kl.parse(a):xu.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Fn.transform(a):kl.transform(a),getAnimatableNone:a=>{const n=Ie.parse(a);return n.alpha=0,Ie.transform(n)}},wb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Eb(a){var n,i;return isNaN(a)&&typeof a=="string"&&(((n=a.match(s1))==null?void 0:n.length)||0)+(((i=a.match(wb))==null?void 0:i.length)||0)>0}const x4="number",g4="color",Nb="var",Mb="var(",th="${}",Cb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ti(a){const n=a.toString(),i=[],o={color:[],number:[],var:[]},u=[];let f=0;const p=n.replace(Cb,x=>(Ie.test(x)?(o.color.push(f),u.push(g4),i.push(Ie.parse(x))):x.startsWith(Mb)?(o.var.push(f),u.push(Nb),i.push(x)):(o.number.push(f),u.push(x4),i.push(parseFloat(x))),++f,th)).split(th);return{values:i,split:p,indexes:o,types:u}}function b4(a){return ti(a).values}function y4(a){const{split:n,types:i}=ti(a),o=n.length;return u=>{let f="";for(let h=0;h<o;h++)if(f+=n[h],u[h]!==void 0){const p=i[h];p===x4?f+=Ps(u[h]):p===g4?f+=Ie.transform(u[h]):f+=u[h]}return f}}const Tb=a=>typeof a=="number"?0:Ie.test(a)?Ie.getAnimatableNone(a):a;function Vb(a){const n=b4(a);return y4(a)(n.map(Tb))}const ua={test:Eb,parse:b4,createTransformer:y4,getAnimatableNone:Vb};function Pc(a,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?a+(n-a)*6*i:i<1/2?n:i<2/3?a+(n-a)*(2/3-i)*6:a}function Lb({hue:a,saturation:n,lightness:i,alpha:o}){a/=360,n/=100,i/=100;let u=0,f=0,h=0;if(!n)u=f=h=i;else{const p=i<.5?i*(1+n):i+n-i*n,x=2*i-p;u=Pc(x,p,a+1/3),f=Pc(x,p,a),h=Pc(x,p,a-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(h*255),alpha:o}}function Wr(a,n){return i=>i>0?n:a}const Ue=(a,n,i)=>a+(n-a)*i,Kc=(a,n,i)=>{const o=a*a,u=i*(n*n-o)+o;return u<0?0:Math.sqrt(u)},Zb=[xu,Fn,kl],Hb=a=>Zb.find(n=>n.test(a));function ah(a){const n=Hb(a);if(!n)return!1;let i=n.parse(a);return n===kl&&(i=Lb(i)),i}const nh=(a,n)=>{const i=ah(a),o=ah(n);if(!i||!o)return Wr(a,n);const u={...i};return f=>(u.red=Kc(i.red,o.red,f),u.green=Kc(i.green,o.green,f),u.blue=Kc(i.blue,o.blue,f),u.alpha=Ue(i.alpha,o.alpha,f),Fn.transform(u))},gu=new Set(["none","hidden"]);function Db(a,n){return gu.has(a)?i=>i<=0?a:n:i=>i>=1?n:a}function Rb(a,n){return i=>Ue(a,n,i)}function r1(a){return typeof a=="number"?Rb:typeof a=="string"?l1(a)?Wr:Ie.test(a)?nh:Ob:Array.isArray(a)?v4:typeof a=="object"?Ie.test(a)?nh:kb:Wr}function v4(a,n){const i=[...a],o=i.length,u=a.map((f,h)=>r1(f)(f,n[h]));return f=>{for(let h=0;h<o;h++)i[h]=u[h](f);return i}}function kb(a,n){const i={...a,...n},o={};for(const u in i)a[u]!==void 0&&n[u]!==void 0&&(o[u]=r1(a[u])(a[u],n[u]));return u=>{for(const f in o)i[f]=o[f](u);return i}}function _b(a,n){const i=[],o={color:0,var:0,number:0};for(let u=0;u<n.values.length;u++){const f=n.types[u],h=a.indexes[f][o[f]],p=a.values[h]??0;i[u]=p,o[f]++}return i}const Ob=(a,n)=>{const i=ua.createTransformer(n),o=ti(a),u=ti(n);return o.indexes.var.length===u.indexes.var.length&&o.indexes.color.length===u.indexes.color.length&&o.indexes.number.length>=u.indexes.number.length?gu.has(a)&&!u.values.length||gu.has(n)&&!o.values.length?Db(a,n):oi(v4(_b(o,u),u.values),i):Wr(a,n)};function j4(a,n,i){return typeof a=="number"&&typeof n=="number"&&typeof i=="number"?Ue(a,n,i):r1(a)(a,n)}const zb=a=>{const n=({timestamp:i})=>a(i);return{start:(i=!0)=>ke.update(n,i),stop:()=>bn(n),now:()=>ft.isProcessing?ft.timestamp:yt.now()}},A4=(a,n,i=10)=>{let o="";const u=Math.max(Math.round(n/i),2);for(let f=0;f<u;f++)o+=Math.round(a(f/(u-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Ir=2e4;function o1(a){let n=0;const i=50;let o=a.next(n);for(;!o.done&&n<Ir;)n+=i,o=a.next(n);return n>=Ir?1/0:n}function Bb(a,n=100,i){const o=i({...a,keyframes:[0,n]}),u=Math.min(o1(o),Ir);return{type:"keyframes",ease:f=>o.next(u*f).value/n,duration:ta(u)}}const Ub=5;function S4(a,n,i){const o=Math.max(n-Ub,0);return t4(i-a(o),n-o)}const Ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Qc=.001;function Fb({duration:a=Ye.duration,bounce:n=Ye.bounce,velocity:i=Ye.velocity,mass:o=Ye.mass}){let u,f,h=1-n;h=ya(Ye.minDamping,Ye.maxDamping,h),a=ya(Ye.minDuration,Ye.maxDuration,ta(a)),h<1?(u=g=>{const y=g*h,b=y*a,j=y-i,S=bu(g,h),E=Math.exp(-b);return Qc-j/S*E},f=g=>{const b=g*h*a,j=b*i+i,S=Math.pow(h,2)*Math.pow(g,2)*a,E=Math.exp(-b),M=bu(Math.pow(g,2),h);return(-u(g)+Qc>0?-1:1)*((j-S)*E)/M}):(u=g=>{const y=Math.exp(-g*a),b=(g-i)*a+1;return-Qc+y*b},f=g=>{const y=Math.exp(-g*a),b=(i-g)*(a*a);return y*b});const p=5/a,x=$b(u,f,p);if(a=ca(a),isNaN(x))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:a};{const g=Math.pow(x,2)*o;return{stiffness:g,damping:h*2*Math.sqrt(o*g),duration:a}}}const qb=12;function $b(a,n,i){let o=i;for(let u=1;u<qb;u++)o=o-a(o)/n(o);return o}function bu(a,n){return a*Math.sqrt(1-n*n)}const Yb=["duration","bounce"],Gb=["stiffness","damping","mass"];function lh(a,n){return n.some(i=>a[i]!==void 0)}function Xb(a){let n={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...a};if(!lh(a,Gb)&&lh(a,Yb))if(n.velocity=0,a.visualDuration){const i=a.visualDuration,o=2*Math.PI/(i*1.2),u=o*o,f=2*ya(.05,1,1-(a.bounce||0))*Math.sqrt(u);n={...n,mass:Ye.mass,stiffness:u,damping:f}}else{const i=Fb({...a,velocity:0});n={...n,...i,mass:Ye.mass},n.isResolvedFromDuration=!0}return n}function eo(a=Ye.visualDuration,n=Ye.bounce){const i=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:n}:a;let{restSpeed:o,restDelta:u}=i;const f=i.keyframes[0],h=i.keyframes[i.keyframes.length-1],p={done:!1,value:f},{stiffness:x,damping:g,mass:y,duration:b,velocity:j,isResolvedFromDuration:S}=Xb({...i,velocity:-ta(i.velocity||0)}),E=j||0,M=g/(2*Math.sqrt(x*y)),w=h-f,N=ta(Math.sqrt(x/y)),C=Math.abs(w)<5;o||(o=C?Ye.restSpeed.granular:Ye.restSpeed.default),u||(u=C?Ye.restDelta.granular:Ye.restDelta.default);let Z;if(M<1){const $=bu(N,M);Z=U=>{const B=Math.exp(-M*N*U);return h-B*((E+M*N*w)/$*Math.sin($*U)+w*Math.cos($*U))}}else if(M===1)Z=$=>h-Math.exp(-N*$)*(w+(E+N*w)*$);else{const $=N*Math.sqrt(M*M-1);Z=U=>{const B=Math.exp(-M*N*U),z=Math.min($*U,300);return h-B*((E+M*N*w)*Math.sinh(z)+$*w*Math.cosh(z))/$}}const q={calculatedDuration:S&&b||null,next:$=>{const U=Z($);if(S)p.done=$>=b;else{let B=$===0?E:0;M<1&&(B=$===0?ca(E):S4(Z,$,U));const z=Math.abs(B)<=o,Q=Math.abs(h-U)<=u;p.done=z&&Q}return p.value=p.done?h:U,p},toString:()=>{const $=Math.min(o1(q),Ir),U=A4(B=>q.next($*B).value,$,30);return $+"ms "+U},toTransition:()=>{}};return q}eo.applyToOptions=a=>{const n=Bb(a,100,eo);return a.ease=n.ease,a.duration=ca(n.duration),a.type="keyframes",a};function yu({keyframes:a,velocity:n=0,power:i=.8,timeConstant:o=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:h,min:p,max:x,restDelta:g=.5,restSpeed:y}){const b=a[0],j={done:!1,value:b},S=z=>p!==void 0&&z<p||x!==void 0&&z>x,E=z=>p===void 0?x:x===void 0||Math.abs(p-z)<Math.abs(x-z)?p:x;let M=i*n;const w=b+M,N=h===void 0?w:h(w);N!==w&&(M=N-b);const C=z=>-M*Math.exp(-z/o),Z=z=>N+C(z),q=z=>{const Q=C(z),J=Z(z);j.done=Math.abs(Q)<=g,j.value=j.done?N:J};let $,U;const B=z=>{S(j.value)&&($=z,U=eo({keyframes:[j.value,E(j.value)],velocity:S4(Z,z,j.value),damping:u,stiffness:f,restDelta:g,restSpeed:y}))};return B(0),{calculatedDuration:null,next:z=>{let Q=!1;return!U&&$===void 0&&(Q=!0,q(z),B(z)),$!==void 0&&z>=$?U.next(z-$):(!Q&&q(z),j)}}}function Pb(a,n,i){const o=[],u=i||Fa.mix||j4,f=a.length-1;for(let h=0;h<f;h++){let p=u(a[h],a[h+1]);if(n){const x=Array.isArray(n)?n[h]||aa:n;p=oi(x,p)}o.push(p)}return o}function Kb(a,n,{clamp:i=!0,ease:o,mixer:u}={}){const f=a.length;if(e1(f===n.length),f===1)return()=>n[0];if(f===2&&n[0]===n[1])return()=>n[1];const h=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),n=[...n].reverse());const p=Pb(n,o,u),x=p.length,g=y=>{if(h&&y<a[0])return n[0];let b=0;if(x>1)for(;b<a.length-2&&!(y<a[b+1]);b++);const j=Is(a[b],a[b+1],y);return p[b](j)};return i?y=>g(ya(a[0],a[f-1],y)):g}function Qb(a,n){const i=a[a.length-1];for(let o=1;o<=n;o++){const u=Is(0,n,o);a.push(Ue(i,1,u))}}function Jb(a){const n=[0];return Qb(n,a.length-1),n}function Wb(a,n){return a.map(i=>i*n)}function Ib(a,n){return a.map(()=>n||u4).splice(0,a.length-1)}function Ks({duration:a=300,keyframes:n,times:i,ease:o="easeInOut"}){const u=ub(o)?o.map(Wm):Wm(o),f={done:!1,value:n[0]},h=Wb(i&&i.length===n.length?i:Jb(n),a),p=Kb(h,n,{ease:Array.isArray(u)?u:Ib(n,u)});return{calculatedDuration:a,next:x=>(f.value=p(x),f.done=x>=a,f)}}const ey=a=>a!==null;function c1(a,{repeat:n,repeatType:i="loop"},o,u=1){const f=a.filter(ey),p=u<0||n&&i!=="loop"&&n%2===1?0:f.length-1;return!p||o===void 0?f[p]:o}const ty={decay:yu,inertia:yu,tween:Ks,keyframes:Ks,spring:eo};function w4(a){typeof a.type=="string"&&(a.type=ty[a.type])}class u1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,i){return this.finished.then(n,i)}}const ay=a=>a/100;class d1 extends u1{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,u;const{motionValue:i}=this.options;i&&i.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(o=this.options).onStop)==null||u.call(o))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;w4(n);const{type:i=Ks,repeat:o=0,repeatDelay:u=0,repeatType:f,velocity:h=0}=n;let{keyframes:p}=n;const x=i||Ks;x!==Ks&&typeof p[0]!="number"&&(this.mixKeyframes=oi(ay,j4(p[0],p[1])),p=[0,100]);const g=x({...n,keyframes:p});f==="mirror"&&(this.mirroredGenerator=x({...n,keyframes:[...p].reverse(),velocity:-h})),g.calculatedDuration===null&&(g.calculatedDuration=o1(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(o+1)-u,this.generator=g}updateTime(n){const i=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(n,i=!1){const{generator:o,totalDuration:u,mixKeyframes:f,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:x}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:y,repeat:b,repeatType:j,repeatDelay:S,type:E,onUpdate:M,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-u/this.speed,this.startTime)),i?this.currentTime=n:this.updateTime(n);const N=this.currentTime-g*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?N<0:N>u;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let Z=this.currentTime,q=o;if(b){const z=Math.min(this.currentTime,u)/p;let Q=Math.floor(z),J=z%1;!J&&z>=1&&(J=1),J===1&&Q--,Q=Math.min(Q,b+1),!!(Q%2)&&(j==="reverse"?(J=1-J,S&&(J-=S/p)):j==="mirror"&&(q=h)),Z=ya(0,1,J)*p}const $=C?{done:!1,value:y[0]}:q.next(Z);f&&($.value=f($.value));let{done:U}=$;!C&&x!==null&&(U=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return B&&E!==yu&&($.value=c1(y,this.options,w,this.speed)),M&&M($.value),B&&this.finish(),$}then(n,i){return this.finished.then(n,i)}get duration(){return ta(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+ta(n)}get time(){return ta(this.currentTime)}set time(n){var i;n=ca(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(yt.now());const i=this.playbackSpeed!==n;this.playbackSpeed=n,i&&(this.time=ta(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:n=zb,startTime:i}=this.options;this.driver||(this.driver=n(h=>this.tick(h))),(f=(u=this.options).onPlay)==null||f.call(u);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=i??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(n=this.options).onComplete)==null||i.call(n)}cancel(){var n,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(n=this.options).onCancel)==null||i.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),n.observe(this)}}function ny(a){for(let n=1;n<a.length;n++)a[n]??(a[n]=a[n-1])}const qn=a=>a*180/Math.PI,vu=a=>{const n=qn(Math.atan2(a[1],a[0]));return ju(n)},ly={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:vu,rotateZ:vu,skewX:a=>qn(Math.atan(a[1])),skewY:a=>qn(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},ju=a=>(a=a%360,a<0&&(a+=360),a),sh=vu,ih=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),rh=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),sy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ih,scaleY:rh,scale:a=>(ih(a)+rh(a))/2,rotateX:a=>ju(qn(Math.atan2(a[6],a[5]))),rotateY:a=>ju(qn(Math.atan2(-a[2],a[0]))),rotateZ:sh,rotate:sh,skewX:a=>qn(Math.atan(a[4])),skewY:a=>qn(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Au(a){return a.includes("scale")?1:0}function Su(a,n){if(!a||a==="none")return Au(n);const i=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,u;if(i)o=sy,u=i;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=ly,u=p}if(!u)return Au(n);const f=o[n],h=u[1].split(",").map(ry);return typeof f=="function"?f(h):h[f]}const iy=(a,n)=>{const{transform:i="none"}=getComputedStyle(a);return Su(i,n)};function ry(a){return parseFloat(a.trim())}const Pl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kl=new Set(Pl),oh=a=>a===Xl||a===ne,oy=new Set(["x","y","z"]),cy=Pl.filter(a=>!oy.has(a));function uy(a){const n=[];return cy.forEach(i=>{const o=a.getValue(i);o!==void 0&&(n.push([i,o.get()]),o.set(i.startsWith("scale")?1:0))}),n}const gn={width:({x:a},{paddingLeft:n="0",paddingRight:i="0"})=>a.max-a.min-parseFloat(n)-parseFloat(i),height:({y:a},{paddingTop:n="0",paddingBottom:i="0"})=>a.max-a.min-parseFloat(n)-parseFloat(i),top:(a,{top:n})=>parseFloat(n),left:(a,{left:n})=>parseFloat(n),bottom:({y:a},{top:n})=>parseFloat(n)+(a.max-a.min),right:({x:a},{left:n})=>parseFloat(n)+(a.max-a.min),x:(a,{transform:n})=>Su(n,"x"),y:(a,{transform:n})=>Su(n,"y")};gn.translateX=gn.x;gn.translateY=gn.y;const Gn=new Set;let wu=!1,Eu=!1,Nu=!1;function E4(){if(Eu){const a=Array.from(Gn).filter(o=>o.needsMeasurement),n=new Set(a.map(o=>o.element)),i=new Map;n.forEach(o=>{const u=uy(o);u.length&&(i.set(o,u),o.render())}),a.forEach(o=>o.measureInitialState()),n.forEach(o=>{o.render();const u=i.get(o);u&&u.forEach(([f,h])=>{var p;(p=o.getValue(f))==null||p.set(h)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Eu=!1,wu=!1,Gn.forEach(a=>a.complete(Nu)),Gn.clear()}function N4(){Gn.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Eu=!0)})}function dy(){Nu=!0,N4(),E4(),Nu=!1}class f1{constructor(n,i,o,u,f,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=i,this.name=o,this.motionValue=u,this.element=f,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Gn.add(this),wu||(wu=!0,ke.read(N4),ke.resolveKeyframes(E4))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:i,element:o,motionValue:u}=this;if(n[0]===null){const f=u==null?void 0:u.get(),h=n[n.length-1];if(f!==void 0)n[0]=f;else if(o&&i){const p=o.readValue(i,h);p!=null&&(n[0]=p)}n[0]===void 0&&(n[0]=h),u&&f===void 0&&u.set(n[0])}ny(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),Gn.delete(this)}cancel(){this.state==="scheduled"&&(Gn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fy=a=>a.startsWith("--");function my(a,n,i){fy(n)?a.style.setProperty(n,i):a.style[n]=i}const hy={};function M4(a,n){const i=e4(a);return()=>hy[n]??i()}const py=M4(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),C4=M4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xs=([a,n,i,o])=>`cubic-bezier(${a}, ${n}, ${i}, ${o})`,ch={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xs([0,.65,.55,1]),circOut:Xs([.55,0,1,.45]),backIn:Xs([.31,.01,.66,-.59]),backOut:Xs([.33,1.53,.69,.99])};function T4(a,n){if(a)return typeof a=="function"?C4()?A4(a,n):"ease-out":d4(a)?Xs(a):Array.isArray(a)?a.map(i=>T4(i,n)||ch.easeOut):ch[a]}function xy(a,n,i,{delay:o=0,duration:u=300,repeat:f=0,repeatType:h="loop",ease:p="easeOut",times:x}={},g=void 0){const y={[n]:i};x&&(y.offset=x);const b=T4(p,u);Array.isArray(b)&&(y.easing=b);const j={delay:o,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:h==="reverse"?"alternate":"normal"};return g&&(j.pseudoElement=g),a.animate(y,j)}function V4(a){return typeof a=="function"&&"applyToOptions"in a}function gy({type:a,...n}){return V4(a)&&C4()?a.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class L4 extends u1{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:i,name:o,keyframes:u,pseudoElement:f,allowFlatten:h=!1,finalKeyframe:p,onComplete:x}=n;this.isPseudoElement=!!f,this.allowFlatten=h,this.options=n,e1(typeof n.type!="string");const g=gy(n);this.animation=xy(i,o,u,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=c1(u,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):my(i,o,y),this.animation.cancel()}x==null||x(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,i;(i=(n=this.animation).finish)==null||i.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,o,u;const n=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(n!=null&&n.isConnected)&&((u=(o=this.animation).commitStyles)==null||u.call(o))}get duration(){var i,o;const n=((o=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:o.call(i).duration)||0;return ta(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+ta(n)}get time(){return ta(Number(this.animation.currentTime)||0)}set time(n){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ca(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&py()?(this.animation.timeline=n,aa):i(this)}}const Z4={anticipate:r4,backInOut:i4,circInOut:c4};function by(a){return a in Z4}function yy(a){typeof a.ease=="string"&&by(a.ease)&&(a.ease=Z4[a.ease])}const Jc=10;class vy extends L4{constructor(n){yy(n),w4(n),super(n),n.startTime!==void 0&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:i,onUpdate:o,onComplete:u,element:f,...h}=this.options;if(!i)return;if(n!==void 0){i.set(n);return}const p=new d1({...h,autoplay:!1}),x=Math.max(Jc,yt.now()-this.startTime),g=ya(0,Jc,x-Jc);i.setWithVelocity(p.sample(Math.max(0,x-g)).value,p.sample(x).value,g),p.stop()}}const uh=(a,n)=>n==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ua.test(a)||a==="0")&&!a.startsWith("url("));function jy(a){const n=a[0];if(a.length===1)return!0;for(let i=0;i<a.length;i++)if(a[i]!==n)return!0}function Ay(a,n,i,o){const u=a[0];if(u===null)return!1;if(n==="display"||n==="visibility")return!0;const f=a[a.length-1],h=uh(u,n),p=uh(f,n);return!h||!p?!1:jy(a)||(i==="spring"||V4(i))&&o}function Mu(a){a.duration=0,a.type="keyframes"}const Sy=new Set(["opacity","clipPath","filter","transform"]),wy=e4(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ey(a){var y;const{motionValue:n,name:i,repeatDelay:o,repeatType:u,damping:f,type:h}=a;if(!(((y=n==null?void 0:n.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:x,transformTemplate:g}=n.owner.getProps();return wy()&&i&&Sy.has(i)&&(i!=="transform"||!g)&&!x&&!o&&u!=="mirror"&&f!==0&&h!=="inertia"}const Ny=40;class My extends u1{constructor({autoplay:n=!0,delay:i=0,type:o="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:h="loop",keyframes:p,name:x,motionValue:g,element:y,...b}){var E;super(),this.stop=()=>{var M,w;this._animation&&(this._animation.stop(),(M=this.stopTimeline)==null||M.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=yt.now();const j={autoplay:n,delay:i,type:o,repeat:u,repeatDelay:f,repeatType:h,name:x,motionValue:g,element:y,...b},S=(y==null?void 0:y.KeyframeResolver)||f1;this.keyframeResolver=new S(p,(M,w,N)=>this.onKeyframesResolved(M,w,j,!N),x,g,y),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(n,i,o,u){var w,N;this.keyframeResolver=void 0;const{name:f,type:h,velocity:p,delay:x,isHandoff:g,onUpdate:y}=o;this.resolvedAt=yt.now(),Ay(n,f,h,p)||((Fa.instantAnimations||!x)&&(y==null||y(c1(n,o,i))),n[0]=n[n.length-1],Mu(o),o.repeat=0);const j={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>Ny?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...o,keyframes:n},S=!g&&Ey(j),E=(N=(w=j.motionValue)==null?void 0:w.owner)==null?void 0:N.current,M=S?new vy({...j,element:E}):new d1(j);M.finished.then(()=>{this.notifyFinished()}).catch(aa),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(n,i){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),dy()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}function H4(a,n,i,o=0,u=1){const f=Array.from(a).sort((g,y)=>g.sortNodePosition(y)).indexOf(n),h=a.size,p=(h-1)*o;return typeof i=="function"?i(f,h):u===1?f*o:p-f*o}const Cy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ty(a){const n=Cy.exec(a);if(!n)return[,];const[,i,o,u]=n;return[`--${i??o}`,u]}function D4(a,n,i=1){const[o,u]=Ty(a);if(!o)return;const f=window.getComputedStyle(n).getPropertyValue(o);if(f){const h=f.trim();return J8(h)?parseFloat(h):h}return l1(u)?D4(u,n,i+1):u}const Vy={type:"spring",stiffness:500,damping:25,restSpeed:10},Ly=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),Zy={type:"keyframes",duration:.8},Hy={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Dy=(a,{keyframes:n})=>n.length>2?Zy:Kl.has(a)?a.startsWith("scale")?Ly(n[1]):Vy:Hy,Ry=a=>a!==null;function ky(a,{repeat:n,repeatType:i="loop"},o){const u=a.filter(Ry),f=n&&i!=="loop"&&n%2===1?0:u.length-1;return u[f]}function R4(a,n){if(a!=null&&a.inherit&&n){const{inherit:i,...o}=a;return{...n,...o}}return a}function m1(a,n){const i=(a==null?void 0:a[n])??(a==null?void 0:a.default)??a;return i!==a?R4(i,a):i}function _y({when:a,delay:n,delayChildren:i,staggerChildren:o,staggerDirection:u,repeat:f,repeatType:h,repeatDelay:p,from:x,elapsed:g,...y}){return!!Object.keys(y).length}const h1=(a,n,i,o={},u,f)=>h=>{const p=m1(o,a)||{},x=p.delay||o.delay||0;let{elapsed:g=0}=o;g=g-ca(x);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:n.getVelocity(),...p,delay:-g,onUpdate:j=>{n.set(j),p.onUpdate&&p.onUpdate(j)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:a,motionValue:n,element:f?void 0:u};_y(p)||Object.assign(y,Dy(a,y)),y.duration&&(y.duration=ca(y.duration)),y.repeatDelay&&(y.repeatDelay=ca(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Mu(y),y.delay===0&&(b=!0)),(Fa.instantAnimations||Fa.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(b=!0,Mu(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,b&&!f&&n.get()!==void 0){const j=ky(y.keyframes,p);if(j!==void 0){ke.update(()=>{y.onUpdate(j),y.onComplete()});return}}return p.isSync?new d1(y):new My(y)};function dh(a){const n=[{},{}];return a==null||a.values.forEach((i,o)=>{n[0][o]=i.get(),n[1][o]=i.getVelocity()}),n}function p1(a,n,i,o){if(typeof n=="function"){const[u,f]=dh(o);n=n(i!==void 0?i:a.custom,u,f)}if(typeof n=="string"&&(n=a.variants&&a.variants[n]),typeof n=="function"){const[u,f]=dh(o);n=n(i!==void 0?i:a.custom,u,f)}return n}function Ul(a,n,i){const o=a.getProps();return p1(o,n,i!==void 0?i:o.custom,a)}const k4=new Set(["width","height","top","left","right","bottom",...Pl]),fh=30,Oy=a=>!isNaN(parseFloat(a));class zy{constructor(n,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var f;const u=yt.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=i.owner}setCurrent(n){this.current=n,this.updatedAt=yt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=Oy(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,i){this.events[n]||(this.events[n]=new t1);const o=this.events[n].add(i);return n==="change"?()=>{o(),ke.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,i){this.passiveEffect=n,this.stopPassiveEffect=i}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,i,o){this.set(i),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-o}jump(n,i=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>fh)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,fh);return t4(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(n){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=n(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var n,i;(n=this.dependents)==null||n.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fl(a,n){return new zy(a,n)}const Cu=a=>Array.isArray(a);function By(a,n,i){a.hasValue(n)?a.getValue(n).set(i):a.addValue(n,Fl(i))}function Uy(a){return Cu(a)?a[a.length-1]||0:a}function Fy(a,n){const i=Ul(a,n);let{transitionEnd:o={},transition:u={},...f}=i||{};f={...f,...o};for(const h in f){const p=Uy(f[h]);By(a,h,p)}}const pt=a=>!!(a&&a.getVelocity);function qy(a){return!!(pt(a)&&a.add)}function Tu(a,n){const i=a.getValue("willChange");if(qy(i))return i.add(n);if(!i&&Fa.WillChange){const o=new Fa.WillChange("auto");a.addValue("willChange",o),o.add(n)}}function x1(a){return a.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const $y="framerAppearId",_4="data-"+x1($y);function O4(a){return a.props[_4]}function Yy({protectedKeys:a,needsAnimating:n},i){const o=a.hasOwnProperty(i)&&n[i]!==!0;return n[i]=!1,o}function z4(a,n,{delay:i=0,transitionOverride:o,type:u}={}){let{transition:f,transitionEnd:h,...p}=n;const x=a.getDefaultTransition();f=f?R4(f,x):x;const g=f==null?void 0:f.reduceMotion;o&&(f=o);const y=[],b=u&&a.animationState&&a.animationState.getState()[u];for(const j in p){const S=a.getValue(j,a.latestValues[j]??null),E=p[j];if(E===void 0||b&&Yy(b,j))continue;const M={delay:i,...m1(f||{},j)},w=S.get();if(w!==void 0&&!S.isAnimating&&!Array.isArray(E)&&E===w&&!M.velocity)continue;let N=!1;if(window.MotionHandoffAnimation){const q=O4(a);if(q){const $=window.MotionHandoffAnimation(q,j,ke);$!==null&&(M.startTime=$,N=!0)}}Tu(a,j);const C=g??a.shouldReduceMotion;S.start(h1(j,S,E,C&&k4.has(j)?{type:!1}:M,a,N));const Z=S.animation;Z&&y.push(Z)}if(h){const j=()=>ke.update(()=>{h&&Fy(a,h)});y.length?Promise.all(y).then(j):j()}return y}function Vu(a,n,i={}){var x;const o=Ul(a,n,i.type==="exit"?(x=a.presenceContext)==null?void 0:x.custom:void 0);let{transition:u=a.getDefaultTransition()||{}}=o||{};i.transitionOverride&&(u=i.transitionOverride);const f=o?()=>Promise.all(z4(a,o,i)):()=>Promise.resolve(),h=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:b,staggerDirection:j}=u;return Gy(a,n,g,y,b,j,i)}:()=>Promise.resolve(),{when:p}=u;if(p){const[g,y]=p==="beforeChildren"?[f,h]:[h,f];return g().then(()=>y())}else return Promise.all([f(),h(i.delay)])}function Gy(a,n,i=0,o=0,u=0,f=1,h){const p=[];for(const x of a.variantChildren)x.notify("AnimationStart",n),p.push(Vu(x,n,{...h,delay:i+(typeof o=="function"?0:o)+H4(a.variantChildren,x,o,u,f)}).then(()=>x.notify("AnimationComplete",n)));return Promise.all(p)}function Xy(a,n,i={}){a.notify("AnimationStart",n);let o;if(Array.isArray(n)){const u=n.map(f=>Vu(a,f,i));o=Promise.all(u)}else if(typeof n=="string")o=Vu(a,n,i);else{const u=typeof n=="function"?Ul(a,n,i.custom):n;o=Promise.all(z4(a,u,i))}return o.then(()=>{a.notify("AnimationComplete",n)})}const Py={test:a=>a==="auto",parse:a=>a},B4=a=>n=>n.test(a),U4=[Xl,ne,ba,pn,Sb,Ab,Py],mh=a=>U4.find(B4(a));function Ky(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||I8(a):!0}const Qy=new Set(["brightness","contrast","saturate","opacity"]);function Jy(a){const[n,i]=a.slice(0,-1).split("(");if(n==="drop-shadow")return a;const[o]=i.match(s1)||[];if(!o)return a;const u=i.replace(o,"");let f=Qy.has(n)?1:0;return o!==i&&(f*=100),n+"("+f+u+")"}const Wy=/\b([a-z-]*)\(.*?\)/gu,Lu={...ua,getAnimatableNone:a=>{const n=a.match(Wy);return n?n.map(Jy).join(" "):a}},Zu={...ua,getAnimatableNone:a=>{const n=ua.parse(a);return ua.createTransformer(a)(n.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},hh={...Xl,transform:Math.round},Iy={rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:Hr,scaleX:Hr,scaleY:Hr,scaleZ:Hr,skew:pn,skewX:pn,skewY:pn,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:ei,originX:eh,originY:eh,originZ:ne},g1={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,inset:ne,insetBlock:ne,insetBlockStart:ne,insetBlockEnd:ne,insetInline:ne,insetInlineStart:ne,insetInlineEnd:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,paddingBlock:ne,paddingBlockStart:ne,paddingBlockEnd:ne,paddingInline:ne,paddingInlineStart:ne,paddingInlineEnd:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,marginBlock:ne,marginBlockStart:ne,marginBlockEnd:ne,marginInline:ne,marginInlineStart:ne,marginInlineEnd:ne,fontSize:ne,backgroundPositionX:ne,backgroundPositionY:ne,...Iy,zIndex:hh,fillOpacity:ei,strokeOpacity:ei,numOctaves:hh},ev={...g1,color:Ie,backgroundColor:Ie,outlineColor:Ie,fill:Ie,stroke:Ie,borderColor:Ie,borderTopColor:Ie,borderRightColor:Ie,borderBottomColor:Ie,borderLeftColor:Ie,filter:Lu,WebkitFilter:Lu,mask:Zu,WebkitMask:Zu},F4=a=>ev[a],tv=new Set([Lu,Zu]);function q4(a,n){let i=F4(a);return tv.has(i)||(i=ua),i.getAnimatableNone?i.getAnimatableNone(n):void 0}const av=new Set(["auto","none","0"]);function nv(a,n,i){let o=0,u;for(;o<a.length&&!u;){const f=a[o];typeof f=="string"&&!av.has(f)&&ti(f).values.length&&(u=a[o]),o++}if(u&&i)for(const f of n)a[f]=q4(i,u)}class lv extends f1{constructor(n,i,o,u,f){super(n,i,o,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:i,name:o}=this;if(!i||!i.current)return;super.readKeyframes();for(let y=0;y<n.length;y++){let b=n[y];if(typeof b=="string"&&(b=b.trim(),l1(b))){const j=D4(b,i.current);j!==void 0&&(n[y]=j),y===n.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!k4.has(o)||n.length!==2)return;const[u,f]=n,h=mh(u),p=mh(f),x=Im(u),g=Im(f);if(x!==g&&gn[o]){this.needsMeasurement=!0;return}if(h!==p)if(oh(h)&&oh(p))for(let y=0;y<n.length;y++){const b=n[y];typeof b=="string"&&(n[y]=parseFloat(b))}else gn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:i}=this,o=[];for(let u=0;u<n.length;u++)(n[u]===null||Ky(n[u]))&&o.push(u);o.length&&nv(n,o,i)}measureInitialState(){const{element:n,unresolvedKeyframes:i,name:o}=this;if(!n||!n.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gn[o](n.measureViewportBox(),window.getComputedStyle(n.current)),i[0]=this.measuredOrigin;const u=i[i.length-1];u!==void 0&&n.getValue(o,u).jump(u,!1)}measureEndState(){var p;const{element:n,name:i,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const u=n.getValue(i);u&&u.jump(this.measuredOrigin,!1);const f=o.length-1,h=o[f];o[f]=gn[i](n.measureViewportBox(),window.getComputedStyle(n.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([x,g])=>{n.getValue(x).set(g)}),this.resolveNoneKeyframes()}}const sv=new Set(["opacity","clipPath","filter","transform"]);function $4(a,n,i){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const u=(i==null?void 0:i[a])??o.querySelectorAll(a);return u?Array.from(u):[]}return Array.from(a).filter(o=>o!=null)}const Y4=(a,n)=>n&&typeof a=="number"?n.transform(a):a;function Hu(a){return W8(a)&&"offsetHeight"in a}const{schedule:b1}=f4(queueMicrotask,!1),oa={x:!1,y:!1};function G4(){return oa.x||oa.y}function iv(a){return a==="x"||a==="y"?oa[a]?null:(oa[a]=!0,()=>{oa[a]=!1}):oa.x||oa.y?null:(oa.x=oa.y=!0,()=>{oa.x=oa.y=!1})}function X4(a,n){const i=$4(a),o=new AbortController,u={passive:!0,...n,signal:o.signal};return[i,u,()=>o.abort()]}function rv(a){return!(a.pointerType==="touch"||G4())}function ov(a,n,i={}){const[o,u,f]=X4(a,i);return o.forEach(h=>{let p=!1,x=!1,g;const y=()=>{h.removeEventListener("pointerleave",E)},b=w=>{g&&(g(w),g=void 0),y()},j=w=>{p=!1,window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j),x&&(x=!1,b(w))},S=()=>{p=!0,window.addEventListener("pointerup",j,u),window.addEventListener("pointercancel",j,u)},E=w=>{if(w.pointerType!=="touch"){if(p){x=!0;return}b(w)}},M=w=>{if(!rv(w))return;x=!1;const N=n(h,w);typeof N=="function"&&(g=N,h.addEventListener("pointerleave",E,u))};h.addEventListener("pointerenter",M,u),h.addEventListener("pointerdown",S,u)}),f}const P4=(a,n)=>n?a===n?!0:P4(a,n.parentElement):!1,y1=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,cv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uv(a){return cv.has(a.tagName)||a.isContentEditable===!0}const dv=new Set(["INPUT","SELECT","TEXTAREA"]);function fv(a){return dv.has(a.tagName)||a.isContentEditable===!0}const $r=new WeakSet;function ph(a){return n=>{n.key==="Enter"&&a(n)}}function Wc(a,n){a.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const mv=(a,n)=>{const i=a.currentTarget;if(!i)return;const o=ph(()=>{if($r.has(i))return;Wc(i,"down");const u=ph(()=>{Wc(i,"up")}),f=()=>Wc(i,"cancel");i.addEventListener("keyup",u,n),i.addEventListener("blur",f,n)});i.addEventListener("keydown",o,n),i.addEventListener("blur",()=>i.removeEventListener("keydown",o),n)};function xh(a){return y1(a)&&!G4()}const gh=new WeakSet;function hv(a,n,i={}){const[o,u,f]=X4(a,i),h=p=>{const x=p.currentTarget;if(!xh(p)||gh.has(p))return;$r.add(x),i.stopPropagation&&gh.add(p);const g=n(x,p),y=(S,E)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",j),$r.has(x)&&$r.delete(x),xh(S)&&typeof g=="function"&&g(S,{success:E})},b=S=>{y(S,x===window||x===document||i.useGlobalTarget||P4(x,S.target))},j=S=>{y(S,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",j,u)};return o.forEach(p=>{(i.useGlobalTarget?window:p).addEventListener("pointerdown",h,u),Hu(p)&&(p.addEventListener("focus",g=>mv(g,u)),!uv(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),f}function v1(a){return W8(a)&&"ownerSVGElement"in a}const Yr=new WeakMap;let xn;const K4=(a,n,i)=>(o,u)=>u&&u[0]?u[0][a+"Size"]:v1(o)&&"getBBox"in o?o.getBBox()[n]:o[i],pv=K4("inline","width","offsetWidth"),xv=K4("block","height","offsetHeight");function gv({target:a,borderBoxSize:n}){var i;(i=Yr.get(a))==null||i.forEach(o=>{o(a,{get width(){return pv(a,n)},get height(){return xv(a,n)}})})}function bv(a){a.forEach(gv)}function yv(){typeof ResizeObserver>"u"||(xn=new ResizeObserver(bv))}function vv(a,n){xn||yv();const i=$4(a);return i.forEach(o=>{let u=Yr.get(o);u||(u=new Set,Yr.set(o,u)),u.add(n),xn==null||xn.observe(o)}),()=>{i.forEach(o=>{const u=Yr.get(o);u==null||u.delete(n),u!=null&&u.size||xn==null||xn.unobserve(o)})}}const Gr=new Set;let _l;function jv(){_l=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Gr.forEach(n=>n(a))},window.addEventListener("resize",_l)}function Av(a){return Gr.add(a),_l||jv(),()=>{Gr.delete(a),!Gr.size&&typeof _l=="function"&&(window.removeEventListener("resize",_l),_l=void 0)}}function bh(a,n){return typeof a=="function"?Av(a):vv(a,n)}function Sv(a){return v1(a)&&a.tagName==="svg"}const wv=[...U4,Ie,ua],Ev=a=>wv.find(B4(a)),yh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ol=()=>({x:yh(),y:yh()}),vh=()=>({min:0,max:0}),tt=()=>({x:vh(),y:vh()}),Nv=new WeakMap;function ho(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ai(a){return typeof a=="string"||Array.isArray(a)}const j1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],A1=["initial",...j1];function po(a){return ho(a.animate)||A1.some(n=>ai(a[n]))}function Q4(a){return!!(po(a)||a.variants)}function Mv(a,n,i){for(const o in n){const u=n[o],f=i[o];if(pt(u))a.addValue(o,u);else if(pt(f))a.addValue(o,Fl(u,{owner:a}));else if(f!==u)if(a.hasValue(o)){const h=a.getValue(o);h.liveStyle===!0?h.jump(u):h.hasAnimated||h.set(u)}else{const h=a.getStaticValue(o);a.addValue(o,Fl(h!==void 0?h:u,{owner:a}))}}for(const o in i)n[o]===void 0&&a.removeValue(o);return n}const Du={current:null},J4={current:!1},Cv=typeof window<"u";function Tv(){if(J4.current=!0,!!Cv)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),n=()=>Du.current=a.matches;a.addEventListener("change",n),n()}else Du.current=!1}const jh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let to={};function W4(a){to=a}function Vv(){return to}class Lv{scrapeMotionValuesFromProps(n,i,o){return{}}constructor({parent:n,props:i,presenceContext:o,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:h,visualState:p},x={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=f1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=yt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,ke.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=i.initial?{...g}:{},this.renderState=y,this.parent=n,this.props=i,this.presenceContext=o,this.depth=n?n.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=x,this.blockInitialAnimation=!!h,this.isControllingVariants=po(i),this.isVariantNode=Q4(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:b,...j}=this.scrapeMotionValuesFromProps(i,{},this);for(const S in j){const E=j[S];g[S]!==void 0&&pt(E)&&E.set(g[S])}}mount(n){var i,o;if(this.hasBeenMounted)for(const u in this.initialValues)(i=this.values.get(u))==null||i.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=n,Nv.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,f)=>this.bindToMotionValue(f,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(J4.current||Tv(),this.shouldReduceMotion=Du.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var n;this.projection&&this.projection.unmount(),bn(this.notifyUpdate),bn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const o=this.features[i];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,i){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),i.accelerate&&sv.has(n)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:x,ease:g,duration:y}=i.accelerate,b=new L4({element:this.current,name:n,keyframes:p,times:x,ease:g,duration:ca(y)}),j=h(b);this.valueSubscriptions.set(n,()=>{j(),b.cancel()});return}const o=Kl.has(n);o&&this.onBindTransform&&this.onBindTransform();const u=i.on("change",h=>{this.latestValues[n]=h,this.props.onUpdate&&ke.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,n,i)),this.valueSubscriptions.set(n,()=>{u(),f&&f(),i.owner&&i.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in to){const i=to[n];if(!i)continue;const{isEnabled:o,Feature:u}=i;if(!this.features[n]&&u&&o(this.props)&&(this.features[n]=new u(this)),this.features[n]){const f=this.features[n];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tt()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,i){this.latestValues[n]=i}update(n,i){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let o=0;o<jh.length;o++){const u=jh[o];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,h=n[f];h&&(this.propEventSubscriptions[u]=this.on(u,h))}this.prevMotionValues=Mv(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(n),()=>i.variantChildren.delete(n)}addValue(n,i){const o=this.values.get(n);i!==o&&(o&&this.removeValue(n),this.bindToMotionValue(n,i),this.values.set(n,i),this.latestValues[n]=i.get())}removeValue(n){this.values.delete(n);const i=this.valueSubscriptions.get(n);i&&(i(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,i){if(this.props.values&&this.props.values[n])return this.props.values[n];let o=this.values.get(n);return o===void 0&&i!==void 0&&(o=Fl(i===null?void 0:i,{owner:this}),this.addValue(n,o)),o}readValue(n,i){let o=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return o!=null&&(typeof o=="string"&&(J8(o)||I8(o))?o=parseFloat(o):!Ev(o)&&ua.test(i)&&(o=q4(n,i)),this.setBaseTarget(n,pt(o)?o.get():o)),pt(o)?o.get():o}setBaseTarget(n,i){this.baseTarget[n]=i}getBaseTarget(n){var f;const{initial:i}=this.props;let o;if(typeof i=="string"||typeof i=="object"){const h=p1(this.props,i,(f=this.presenceContext)==null?void 0:f.custom);h&&(o=h[n])}if(i&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,n);return u!==void 0&&!pt(u)?u:this.initialValues[n]!==void 0&&o===void 0?void 0:this.baseTarget[n]}on(n,i){return this.events[n]||(this.events[n]=new t1),this.events[n].add(i)}notify(n,...i){this.events[n]&&this.events[n].notify(...i)}scheduleRenderMicrotask(){b1.render(this.render)}}class I4 extends Lv{constructor(){super(...arguments),this.KeyframeResolver=lv}sortInstanceNodePosition(n,i){return n.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(n,i){const o=n.style;return o?o[i]:void 0}removeValueFromRenderState(n,{vars:i,style:o}){delete i[n],delete o[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;pt(n)&&(this.childSubscription=n.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class vn{constructor(n){this.isMounted=!1,this.node=n}update(){}}function e6({top:a,left:n,right:i,bottom:o}){return{x:{min:n,max:i},y:{min:a,max:o}}}function Zv({x:a,y:n}){return{top:n.min,right:a.max,bottom:n.max,left:a.min}}function Hv(a,n){if(!n)return a;const i=n({x:a.left,y:a.top}),o=n({x:a.right,y:a.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}function Ic(a){return a===void 0||a===1}function Ru({scale:a,scaleX:n,scaleY:i}){return!Ic(a)||!Ic(n)||!Ic(i)}function Un(a){return Ru(a)||t6(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function t6(a){return Ah(a.x)||Ah(a.y)}function Ah(a){return a&&a!=="0%"}function ao(a,n,i){const o=a-i,u=n*o;return i+u}function Sh(a,n,i,o,u){return u!==void 0&&(a=ao(a,u,o)),ao(a,i,o)+n}function ku(a,n=0,i=1,o,u){a.min=Sh(a.min,n,i,o,u),a.max=Sh(a.max,n,i,o,u)}function a6(a,{x:n,y:i}){ku(a.x,n.translate,n.scale,n.originPoint),ku(a.y,i.translate,i.scale,i.originPoint)}const wh=.999999999999,Eh=1.0000000000001;function Dv(a,n,i,o=!1){const u=i.length;if(!u)return;n.x=n.y=1;let f,h;for(let p=0;p<u;p++){f=i[p],h=f.projectionDelta;const{visualElement:x}=f.options;x&&x.props.style&&x.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Bl(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),h&&(n.x*=h.x.scale,n.y*=h.y.scale,a6(a,h)),o&&Un(f.latestValues)&&Bl(a,f.latestValues))}n.x<Eh&&n.x>wh&&(n.x=1),n.y<Eh&&n.y>wh&&(n.y=1)}function zl(a,n){a.min=a.min+n,a.max=a.max+n}function Nh(a,n,i,o,u=.5){const f=Ue(a.min,a.max,u);ku(a,n,i,f,o)}function Bl(a,n){Nh(a.x,n.x,n.scaleX,n.scale,n.originX),Nh(a.y,n.y,n.scaleY,n.scale,n.originY)}function n6(a,n){return e6(Hv(a.getBoundingClientRect(),n))}function Rv(a,n,i){const o=n6(a,i),{scroll:u}=n;return u&&(zl(o.x,u.offset.x),zl(o.y,u.offset.y)),o}const kv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_v=Pl.length;function Ov(a,n,i){let o="",u=!0;for(let f=0;f<_v;f++){const h=Pl[f],p=a[h];if(p===void 0)continue;let x=!0;if(typeof p=="number")x=p===(h.startsWith("scale")?1:0);else{const g=parseFloat(p);x=h.startsWith("scale")?g===1:g===0}if(!x||i){const g=Y4(p,g1[h]);if(!x){u=!1;const y=kv[h]||h;o+=`${y}(${g}) `}i&&(n[h]=g)}}return o=o.trim(),i?o=i(n,u?"":o):u&&(o="none"),o}function S1(a,n,i){const{style:o,vars:u,transformOrigin:f}=a;let h=!1,p=!1;for(const x in n){const g=n[x];if(Kl.has(x)){h=!0;continue}else if(h4(x)){u[x]=g;continue}else{const y=Y4(g,g1[x]);x.startsWith("origin")?(p=!0,f[x]=y):o[x]=y}}if(n.transform||(h||i?o.transform=Ov(n,a.transform,i):o.transform&&(o.transform="none")),p){const{originX:x="50%",originY:g="50%",originZ:y=0}=f;o.transformOrigin=`${x} ${g} ${y}`}}function l6(a,{style:n,vars:i},o,u){const f=a.style;let h;for(h in n)f[h]=n[h];u==null||u.applyProjectionStyles(f,o);for(h in i)f.setProperty(h,i[h])}function Mh(a,n){return n.max===n.min?0:a/(n.max-n.min)*100}const Gs={correct:(a,n)=>{if(!n.target)return a;if(typeof a=="string")if(ne.test(a))a=parseFloat(a);else return a;const i=Mh(a,n.target.x),o=Mh(a,n.target.y);return`${i}% ${o}%`}},zv={correct:(a,{treeScale:n,projectionDelta:i})=>{const o=a,u=ua.parse(a);if(u.length>5)return o;const f=ua.createTransformer(a),h=typeof u[0]!="number"?1:0,p=i.x.scale*n.x,x=i.y.scale*n.y;u[0+h]/=p,u[1+h]/=x;const g=Ue(p,x,.5);return typeof u[2+h]=="number"&&(u[2+h]/=g),typeof u[3+h]=="number"&&(u[3+h]/=g),f(u)}},_u={borderRadius:{...Gs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gs,borderTopRightRadius:Gs,borderBottomLeftRadius:Gs,borderBottomRightRadius:Gs,boxShadow:zv};function s6(a,{layout:n,layoutId:i}){return Kl.has(a)||a.startsWith("origin")||(n||i!==void 0)&&(!!_u[a]||a==="opacity")}function w1(a,n,i){var h;const o=a.style,u=n==null?void 0:n.style,f={};if(!o)return f;for(const p in o)(pt(o[p])||u&&pt(u[p])||s6(p,a)||((h=i==null?void 0:i.getValue(p))==null?void 0:h.liveStyle)!==void 0)&&(f[p]=o[p]);return f}function Bv(a){return window.getComputedStyle(a)}class Uv extends I4{constructor(){super(...arguments),this.type="html",this.renderInstance=l6}readValueFromInstance(n,i){var o;if(Kl.has(i))return(o=this.projection)!=null&&o.isProjecting?Au(i):iy(n,i);{const u=Bv(n),f=(h4(i)?u.getPropertyValue(i):u[i])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(n,{transformPagePoint:i}){return n6(n,i)}build(n,i,o){S1(n,i,o.transformTemplate)}scrapeMotionValuesFromProps(n,i,o){return w1(n,i,o)}}const Fv={offset:"stroke-dashoffset",array:"stroke-dasharray"},qv={offset:"strokeDashoffset",array:"strokeDasharray"};function $v(a,n,i=1,o=0,u=!0){a.pathLength=1;const f=u?Fv:qv;a[f.offset]=`${-o}`,a[f.array]=`${n} ${i}`}const Yv=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function i6(a,{attrX:n,attrY:i,attrScale:o,pathLength:u,pathSpacing:f=1,pathOffset:h=0,...p},x,g,y){if(S1(a,p,g),x){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:j}=a;b.transform&&(j.transform=b.transform,delete b.transform),(j.transform||b.transformOrigin)&&(j.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),j.transform&&(j.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete b.transformBox);for(const S of Yv)b[S]!==void 0&&(j[S]=b[S],delete b[S]);n!==void 0&&(b.x=n),i!==void 0&&(b.y=i),o!==void 0&&(b.scale=o),u!==void 0&&$v(b,u,f,h,!1)}const r6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),o6=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Gv(a,n,i,o){l6(a,n,void 0,o);for(const u in n.attrs)a.setAttribute(r6.has(u)?u:x1(u),n.attrs[u])}function c6(a,n,i){const o=w1(a,n,i);for(const u in a)if(pt(a[u])||pt(n[u])){const f=Pl.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[f]=a[u]}return o}class Xv extends I4{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tt}getBaseTargetFromProps(n,i){return n[i]}readValueFromInstance(n,i){if(Kl.has(i)){const o=F4(i);return o&&o.default||0}return i=r6.has(i)?i:x1(i),n.getAttribute(i)}scrapeMotionValuesFromProps(n,i,o){return c6(n,i,o)}build(n,i,o){i6(n,i,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(n,i,o,u){Gv(n,i,o,u)}mount(n){this.isSVGTag=o6(n.tagName),super.mount(n)}}const Pv=A1.length;function u6(a){if(!a)return;if(!a.isControllingVariants){const i=a.parent?u6(a.parent)||{}:{};return a.props.initial!==void 0&&(i.initial=a.props.initial),i}const n={};for(let i=0;i<Pv;i++){const o=A1[i],u=a.props[o];(ai(u)||u===!1)&&(n[o]=u)}return n}function d6(a,n){if(!Array.isArray(n))return!1;const i=n.length;if(i!==a.length)return!1;for(let o=0;o<i;o++)if(n[o]!==a[o])return!1;return!0}const Kv=[...j1].reverse(),Qv=j1.length;function Jv(a){return n=>Promise.all(n.map(({animation:i,options:o})=>Xy(a,i,o)))}function Wv(a){let n=Jv(a),i=Ch(),o=!0;const u=x=>(g,y)=>{var j;const b=Ul(a,y,x==="exit"?(j=a.presenceContext)==null?void 0:j.custom:void 0);if(b){const{transition:S,transitionEnd:E,...M}=b;g={...g,...M,...E}}return g};function f(x){n=x(a)}function h(x){const{props:g}=a,y=u6(a.parent)||{},b=[],j=new Set;let S={},E=1/0;for(let w=0;w<Qv;w++){const N=Kv[w],C=i[N],Z=g[N]!==void 0?g[N]:y[N],q=ai(Z),$=N===x?C.isActive:null;$===!1&&(E=w);let U=Z===y[N]&&Z!==g[N]&&q;if(U&&o&&a.manuallyAnimateOnMount&&(U=!1),C.protectedKeys={...S},!C.isActive&&$===null||!Z&&!C.prevProp||ho(Z)||typeof Z=="boolean")continue;if(N==="exit"&&C.isActive&&$!==!0){C.prevResolvedValues&&(S={...S,...C.prevResolvedValues});continue}const B=Iv(C.prevProp,Z);let z=B||N===x&&C.isActive&&!U&&q||w>E&&q,Q=!1;const J=Array.isArray(Z)?Z:[Z];let W=J.reduce(u(N),{});$===!1&&(W={});const{prevResolvedValues:re={}}=C,le={...re,...W},K=_=>{z=!0,j.has(_)&&(Q=!0,j.delete(_)),C.needsAnimating[_]=!0;const I=a.getValue(_);I&&(I.liveStyle=!1)};for(const _ in le){const I=W[_],ce=re[_];if(S.hasOwnProperty(_))continue;let pe=!1;Cu(I)&&Cu(ce)?pe=!d6(I,ce):pe=I!==ce,pe?I!=null?K(_):j.add(_):I!==void 0&&j.has(_)?K(_):C.protectedKeys[_]=!0}C.prevProp=Z,C.prevResolvedValues=W,C.isActive&&(S={...S,...W}),o&&a.blockInitialAnimation&&(z=!1);const te=U&&B;z&&(!te||Q)&&b.push(...J.map(_=>{const I={type:N};if(typeof _=="string"&&o&&!te&&a.manuallyAnimateOnMount&&a.parent){const{parent:ce}=a,pe=Ul(ce,_);if(ce.enteringChildren&&pe){const{delayChildren:V}=pe.transition||{};I.delay=H4(ce.enteringChildren,a,V)}}return{animation:_,options:I}}))}if(j.size){const w={};if(typeof g.initial!="boolean"){const N=Ul(a,Array.isArray(g.initial)?g.initial[0]:g.initial);N&&N.transition&&(w.transition=N.transition)}j.forEach(N=>{const C=a.getBaseTarget(N),Z=a.getValue(N);Z&&(Z.liveStyle=!0),w[N]=C??null}),b.push({animation:w})}let M=!!b.length;return o&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(M=!1),o=!1,M?n(b):Promise.resolve()}function p(x,g){var b;if(i[x].isActive===g)return Promise.resolve();(b=a.variantChildren)==null||b.forEach(j=>{var S;return(S=j.animationState)==null?void 0:S.setActive(x,g)}),i[x].isActive=g;const y=h(x);for(const j in i)i[j].protectedKeys={};return y}return{animateChanges:h,setActive:p,setAnimateFunction:f,getState:()=>i,reset:()=>{i=Ch()}}}function Iv(a,n){return typeof n=="string"?n!==a:Array.isArray(n)?!d6(n,a):!1}function Bn(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ch(){return{animate:Bn(!0),whileInView:Bn(),whileHover:Bn(),whileTap:Bn(),whileDrag:Bn(),whileFocus:Bn(),exit:Bn()}}function Th(a,n){a.min=n.min,a.max=n.max}function ra(a,n){Th(a.x,n.x),Th(a.y,n.y)}function Vh(a,n){a.translate=n.translate,a.scale=n.scale,a.originPoint=n.originPoint,a.origin=n.origin}const f6=1e-4,e7=1-f6,t7=1+f6,m6=.01,a7=0-m6,n7=0+m6;function vt(a){return a.max-a.min}function l7(a,n,i){return Math.abs(a-n)<=i}function Lh(a,n,i,o=.5){a.origin=o,a.originPoint=Ue(n.min,n.max,a.origin),a.scale=vt(i)/vt(n),a.translate=Ue(i.min,i.max,a.origin)-a.originPoint,(a.scale>=e7&&a.scale<=t7||isNaN(a.scale))&&(a.scale=1),(a.translate>=a7&&a.translate<=n7||isNaN(a.translate))&&(a.translate=0)}function Qs(a,n,i,o){Lh(a.x,n.x,i.x,o?o.originX:void 0),Lh(a.y,n.y,i.y,o?o.originY:void 0)}function Zh(a,n,i){a.min=i.min+n.min,a.max=a.min+vt(n)}function s7(a,n,i){Zh(a.x,n.x,i.x),Zh(a.y,n.y,i.y)}function Hh(a,n,i){a.min=n.min-i.min,a.max=a.min+vt(n)}function no(a,n,i){Hh(a.x,n.x,i.x),Hh(a.y,n.y,i.y)}function Dh(a,n,i,o,u){return a-=n,a=ao(a,1/i,o),u!==void 0&&(a=ao(a,1/u,o)),a}function i7(a,n=0,i=1,o=.5,u,f=a,h=a){if(ba.test(n)&&(n=parseFloat(n),n=Ue(h.min,h.max,n/100)-h.min),typeof n!="number")return;let p=Ue(f.min,f.max,o);a===f&&(p-=n),a.min=Dh(a.min,n,i,p,u),a.max=Dh(a.max,n,i,p,u)}function Rh(a,n,[i,o,u],f,h){i7(a,n[i],n[o],n[u],n.scale,f,h)}const r7=["x","scaleX","originX"],o7=["y","scaleY","originY"];function kh(a,n,i,o){Rh(a.x,n,r7,i?i.x:void 0,o?o.x:void 0),Rh(a.y,n,o7,i?i.y:void 0,o?o.y:void 0)}function _h(a){return a.translate===0&&a.scale===1}function h6(a){return _h(a.x)&&_h(a.y)}function Oh(a,n){return a.min===n.min&&a.max===n.max}function c7(a,n){return Oh(a.x,n.x)&&Oh(a.y,n.y)}function zh(a,n){return Math.round(a.min)===Math.round(n.min)&&Math.round(a.max)===Math.round(n.max)}function p6(a,n){return zh(a.x,n.x)&&zh(a.y,n.y)}function Bh(a){return vt(a.x)/vt(a.y)}function Uh(a,n){return a.translate===n.translate&&a.scale===n.scale&&a.originPoint===n.originPoint}function xa(a){return[a("x"),a("y")]}function u7(a,n,i){let o="";const u=a.x.translate/n.x,f=a.y.translate/n.y,h=(i==null?void 0:i.z)||0;if((u||f||h)&&(o=`translate3d(${u}px, ${f}px, ${h}px) `),(n.x!==1||n.y!==1)&&(o+=`scale(${1/n.x}, ${1/n.y}) `),i){const{transformPerspective:g,rotate:y,rotateX:b,rotateY:j,skewX:S,skewY:E}=i;g&&(o=`perspective(${g}px) ${o}`),y&&(o+=`rotate(${y}deg) `),b&&(o+=`rotateX(${b}deg) `),j&&(o+=`rotateY(${j}deg) `),S&&(o+=`skewX(${S}deg) `),E&&(o+=`skewY(${E}deg) `)}const p=a.x.scale*n.x,x=a.y.scale*n.y;return(p!==1||x!==1)&&(o+=`scale(${p}, ${x})`),o||"none"}const x6=["TopLeft","TopRight","BottomLeft","BottomRight"],d7=x6.length,Fh=a=>typeof a=="string"?parseFloat(a):a,qh=a=>typeof a=="number"||ne.test(a);function f7(a,n,i,o,u,f){u?(a.opacity=Ue(0,i.opacity??1,m7(o)),a.opacityExit=Ue(n.opacity??1,0,h7(o))):f&&(a.opacity=Ue(n.opacity??1,i.opacity??1,o));for(let h=0;h<d7;h++){const p=`border${x6[h]}Radius`;let x=$h(n,p),g=$h(i,p);if(x===void 0&&g===void 0)continue;x||(x=0),g||(g=0),x===0||g===0||qh(x)===qh(g)?(a[p]=Math.max(Ue(Fh(x),Fh(g),o),0),(ba.test(g)||ba.test(x))&&(a[p]+="%")):a[p]=g}(n.rotate||i.rotate)&&(a.rotate=Ue(n.rotate||0,i.rotate||0,o))}function $h(a,n){return a[n]!==void 0?a[n]:a.borderRadius}const m7=g6(0,.5,o4),h7=g6(.5,.95,aa);function g6(a,n,i){return o=>o<a?0:o>n?1:i(Is(a,n,o))}function p7(a,n,i){const o=pt(a)?a:Fl(a);return o.start(h1("",o,n,i)),o.animation}function ni(a,n,i,o={passive:!0}){return a.addEventListener(n,i,o),()=>a.removeEventListener(n,i)}const x7=(a,n)=>a.depth-n.depth;class g7{constructor(){this.children=[],this.isDirty=!1}add(n){Iu(this.children,n),this.isDirty=!0}remove(n){Jr(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(x7),this.isDirty=!1,this.children.forEach(n)}}function b7(a,n){const i=yt.now(),o=({timestamp:u})=>{const f=u-i;f>=n&&(bn(o),a(f-n))};return ke.setup(o,!0),()=>bn(o)}function Xr(a){return pt(a)?a.get():a}class y7{constructor(){this.members=[]}add(n){Iu(this.members,n);for(let i=this.members.length-1;i>=0;i--){const o=this.members[i];if(o===n||o===this.lead||o===this.prevLead)continue;const u=o.instance;u&&u.isConnected===!1&&o.isPresent!==!1&&!o.snapshot&&Jr(this.members,o)}n.scheduleRender()}remove(n){if(Jr(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(n){const i=this.members.findIndex(u=>n===u);if(i===0)return!1;let o;for(let u=i;u>=0;u--){const f=this.members[u],h=f.instance;if(f.isPresent!==!1&&(!h||h.isConnected!==!1)){o=f;break}}return o?(this.promote(o),!0):!1}promote(n,i){const o=this.lead;if(n!==o&&(this.prevLead=o,this.lead=n,n.show(),o)){o.instance&&o.scheduleRender(),n.scheduleRender();const u=o.options.layoutDependency,f=n.options.layoutDependency;if(!(u!==void 0&&f!==void 0&&u===f)){const x=o.instance;x&&x.isConnected===!1&&!o.snapshot||(n.resumeFrom=o,i&&(n.resumeFrom.preserveOpacity=!0),o.snapshot&&(n.snapshot=o.snapshot,n.snapshot.latestValues=o.animationValues||o.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0))}const{crossfade:p}=n.options;p===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:i,resumingFrom:o}=n;i.onExitComplete&&i.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Pr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},eu=["","X","Y","Z"],v7=1e3;let j7=0;function tu(a,n,i,o){const{latestValues:u}=n;u[a]&&(i[a]=u[a],n.setStaticValue(a,0),o&&(o[a]=0))}function b6(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:n}=a.options;if(!n)return;const i=O4(n);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:u,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(i,"transform",ke,!(u||f))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&b6(o)}function y6({attachResizeListener:a,defaultParent:n,measureScroll:i,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(h={},p=n==null?void 0:n()){this.id=j7++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(w7),this.nodes.forEach(C7),this.nodes.forEach(T7),this.nodes.forEach(E7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let x=0;x<this.path.length;x++)this.path[x].shouldResetTransform=!0;this.root===this&&(this.nodes=new g7)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new t1),this.eventHandlers.get(h).add(p)}notifyListeners(h,...p){const x=this.eventHandlers.get(h);x&&x.notify(...p)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=v1(h)&&!Sv(h),this.instance=h;const{layoutId:p,layout:x,visualElement:g}=this.options;if(g&&!g.current&&g.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(x||p)&&(this.isLayoutDirty=!0),a){let y,b=0;const j=()=>this.root.updateBlockedByResize=!1;ke.read(()=>{b=window.innerWidth}),a(h,()=>{const S=window.innerWidth;S!==b&&(b=S,this.root.updateBlockedByResize=!0,y&&y(),y=b7(j,250),Pr.hasAnimatedSinceResize&&(Pr.hasAnimatedSinceResize=!1,this.nodes.forEach(Xh)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||x)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:j,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||g.getDefaultTransition()||D7,{onLayoutAnimationStart:M,onLayoutAnimationComplete:w}=g.getProps(),N=!this.targetLayout||!p6(this.targetLayout,S),C=!b&&j;if(this.options.layoutRoot||this.resumeFrom||C||b&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Z={...m1(E,"layout"),onPlay:M,onComplete:w};(g.shouldReduceMotion||this.options.layoutRoot)&&(Z.delay=0,Z.type=!1),this.startAnimation(Z),this.setAnimationOrigin(y,C)}else b||Xh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),bn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(V7),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&b6(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:p,layout:x}=this.options;if(p===void 0&&!x)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Yh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Gh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(M7),this.nodes.forEach(A7),this.nodes.forEach(S7)):this.nodes.forEach(Gh),this.clearAllSnapshots();const p=yt.now();ft.delta=ya(0,1e3/60,p-ft.timestamp),ft.timestamp=p,ft.isProcessing=!0,Gc.update.process(ft),Gc.preRender.process(ft),Gc.render.process(ft),ft.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,b1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(N7),this.sharedNodes.forEach(L7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let x=0;x<this.path.length;x++)this.path[x].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(p=!1),p&&this.instance){const x=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:x,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:x}}}resetTransform(){if(!u)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!h6(this.projectionDelta),x=this.getTransformTemplate(),g=x?x(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;h&&this.instance&&(p||Un(this.latestValues)||y)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let x=this.removeElementScroll(p);return h&&(x=this.removeTransform(x)),R7(x),{animationId:this.root.animationId,measuredBox:p,layoutBox:x,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:h}=this.options;if(!h)return tt();const p=h.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(k7))){const{scroll:y}=this.root;y&&(zl(p.x,y.offset.x),zl(p.y,y.offset.y))}return p}removeElementScroll(h){var x;const p=tt();if(ra(p,h),(x=this.scroll)!=null&&x.wasRoot)return p;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:b,options:j}=y;y!==this.root&&b&&j.layoutScroll&&(b.wasRoot&&ra(p,h),zl(p.x,b.offset.x),zl(p.y,b.offset.y))}return p}applyTransform(h,p=!1){const x=tt();ra(x,h);for(let g=0;g<this.path.length;g++){const y=this.path[g];!p&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Bl(x,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Un(y.latestValues)&&Bl(x,y.latestValues)}return Un(this.latestValues)&&Bl(x,this.latestValues),x}removeTransform(h){const p=tt();ra(p,h);for(let x=0;x<this.path.length;x++){const g=this.path[x];if(!g.instance||!Un(g.latestValues))continue;Ru(g.latestValues)&&g.updateSnapshot();const y=tt(),b=g.measurePageBox();ra(y,b),kh(p,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,y)}return Un(this.latestValues)&&kh(p,this.latestValues),p}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ft.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var S;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const x=!!this.resumingFrom||this!==p;if(!(h||x&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=ft.timestamp;const j=this.getClosestProjectingParent();j&&this.linkedParentVersion!==j.layoutVersion&&!j.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(j&&j.layout?this.createRelativeTarget(j,this.layout.layoutBox,j.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=tt(),this.targetWithTransforms=tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ra(this.target,this.layout.layoutBox),a6(this.target,this.targetDelta)):ra(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,j&&!!j.resumingFrom==!!this.resumingFrom&&!j.options.layoutScroll&&j.target&&this.animationProgress!==1?this.createRelativeTarget(j,this.target,j.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ru(this.parent.latestValues)||t6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,p,x){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tt(),this.relativeTargetOrigin=tt(),no(this.relativeTargetOrigin,p,x),ra(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const h=this.getLead(),p=!!this.resumingFrom||this!==h;let x=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(x=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(x=!1),this.resolvedRelativeTargetAt===ft.timestamp&&(x=!1),x)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;ra(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,j=this.treeScale.y;Dv(this.layoutCorrected,this.treeScale,this.path,p),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=tt());const{target:S}=h;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vh(this.prevProjectionDelta.x,this.projectionDelta.x),Vh(this.prevProjectionDelta.y,this.projectionDelta.y)),Qs(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==j||!Uh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Uh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),h){const x=this.getStack();x&&x.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ol(),this.projectionDelta=Ol(),this.projectionDeltaWithTransform=Ol()}setAnimationOrigin(h,p=!1){const x=this.snapshot,g=x?x.latestValues:{},y={...this.latestValues},b=Ol();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const j=tt(),S=x?x.source:void 0,E=this.layout?this.layout.source:void 0,M=S!==E,w=this.getStack(),N=!w||w.members.length<=1,C=!!(M&&!N&&this.options.crossfade===!0&&!this.path.some(H7));this.animationProgress=0;let Z;this.mixTargetDelta=q=>{const $=q/1e3;Ph(b.x,h.x,$),Ph(b.y,h.y,$),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(no(j,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Z7(this.relativeTarget,this.relativeTargetOrigin,j,$),Z&&c7(this.relativeTarget,Z)&&(this.isProjectionDirty=!1),Z||(Z=tt()),ra(Z,this.relativeTarget)),M&&(this.animationValues=y,f7(y,g,this.latestValues,$,C,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var p,x,g;this.notifyListeners("animationStart"),(p=this.currentAnimation)==null||p.stop(),(g=(x=this.resumingFrom)==null?void 0:x.currentAnimation)==null||g.stop(),this.pendingAnimation&&(bn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ke.update(()=>{Pr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fl(0)),this.motionValue.jump(0,!1),this.currentAnimation=p7(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),h.onUpdate&&h.onUpdate(y)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(v7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:x,layout:g,latestValues:y}=h;if(!(!p||!x||!g)){if(this!==h&&this.layout&&g&&v6(this.options.animationType,this.layout.layoutBox,g.layoutBox)){x=this.target||tt();const b=vt(this.layout.layoutBox.x);x.x.min=h.target.x.min,x.x.max=x.x.min+b;const j=vt(this.layout.layoutBox.y);x.y.min=h.target.y.min,x.y.max=x.y.min+j}ra(p,x),Bl(p,y),Qs(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new y7),this.sharedNodes.get(h).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var p;const{layoutId:h}=this.options;return h?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:h}=this.options;return h?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:p,preserveFollowOpacity:x}={}){const g=this.getStack();g&&g.promote(this,x),h&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let p=!1;const{latestValues:x}=h;if((x.z||x.rotate||x.rotateX||x.rotateY||x.rotateZ||x.skewX||x.skewY)&&(p=!0),!p)return;const g={};x.z&&tu("z",h,g,this.animationValues);for(let y=0;y<eu.length;y++)tu(`rotate${eu[y]}`,h,g,this.animationValues),tu(`skew${eu[y]}`,h,g,this.animationValues);h.render();for(const y in g)h.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);h.scheduleRender()}applyProjectionStyles(h,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const x=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Xr(p==null?void 0:p.pointerEvents)||"",h.transform=x?x(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Xr(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!Un(this.latestValues)&&(h.transform=x?x({},""):"none",this.hasProjected=!1);return}h.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=u7(this.projectionDeltaWithTransform,this.treeScale,y);x&&(b=x(y,b)),h.transform=b;const{x:j,y:S}=this.projectionDelta;h.transformOrigin=`${j.origin*100}% ${S.origin*100}% 0`,g.animationValues?h.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:h.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const E in _u){if(y[E]===void 0)continue;const{correct:M,applyTo:w,isCSSVariable:N}=_u[E],C=b==="none"?y[E]:M(y[E],g);if(w){const Z=w.length;for(let q=0;q<Z;q++)h[w[q]]=C}else N?this.options.visualElement.renderState.vars[E]=C:h[E]=C}this.options.layoutId&&(h.pointerEvents=g===this?Xr(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var p;return(p=h.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(Yh),this.root.sharedNodes.clear()}}}function A7(a){a.updateLayout()}function S7(a){var i;const n=((i=a.resumeFrom)==null?void 0:i.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&n&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=a.layout,{animationType:f}=a.options,h=n.source!==a.layout.source;f==="size"?xa(b=>{const j=h?n.measuredBox[b]:n.layoutBox[b],S=vt(j);j.min=o[b].min,j.max=j.min+S}):v6(f,n.layoutBox,o)&&xa(b=>{const j=h?n.measuredBox[b]:n.layoutBox[b],S=vt(o[b]);j.max=j.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+S)});const p=Ol();Qs(p,o,n.layoutBox);const x=Ol();h?Qs(x,a.applyTransform(u,!0),n.measuredBox):Qs(x,o,n.layoutBox);const g=!h6(p);let y=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:j,layout:S}=b;if(j&&S){const E=tt();no(E,n.layoutBox,j.layoutBox);const M=tt();no(M,o,S.layoutBox),p6(E,M)||(y=!0),b.options.layoutRoot&&(a.relativeTarget=M,a.relativeTargetOrigin=E,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:x,layoutDelta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function w7(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function E7(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function N7(a){a.clearSnapshot()}function Yh(a){a.clearMeasurements()}function Gh(a){a.isLayoutDirty=!1}function M7(a){const{visualElement:n}=a.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),a.resetTransform()}function Xh(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function C7(a){a.resolveTargetDelta()}function T7(a){a.calcProjection()}function V7(a){a.resetSkewAndRotation()}function L7(a){a.removeLeadSnapshot()}function Ph(a,n,i){a.translate=Ue(n.translate,0,i),a.scale=Ue(n.scale,1,i),a.origin=n.origin,a.originPoint=n.originPoint}function Kh(a,n,i,o){a.min=Ue(n.min,i.min,o),a.max=Ue(n.max,i.max,o)}function Z7(a,n,i,o){Kh(a.x,n.x,i.x,o),Kh(a.y,n.y,i.y,o)}function H7(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const D7={duration:.45,ease:[.4,0,.1,1]},Qh=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Jh=Qh("applewebkit/")&&!Qh("chrome/")?Math.round:aa;function Wh(a){a.min=Jh(a.min),a.max=Jh(a.max)}function R7(a){Wh(a.x),Wh(a.y)}function v6(a,n,i){return a==="position"||a==="preserve-aspect"&&!l7(Bh(n),Bh(i),.2)}function k7(a){var n;return a!==a.root&&((n=a.scroll)==null?void 0:n.wasRoot)}const _7=y6({attachResizeListener:(a,n)=>ni(a,"resize",n),measureScroll:()=>{var a,n;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((n=document.body)==null?void 0:n.scrollTop)||0}},checkIsScrollRoot:()=>!0}),au={current:void 0},j6=y6({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!au.current){const a=new _7({});a.mount(window),a.setOptions({layoutScroll:!0}),au.current=a}return au.current},resetTransform:(a,n)=>{a.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),E1=c.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Ih(a,n){if(typeof a=="function")return a(n);a!=null&&(a.current=n)}function O7(...a){return n=>{let i=!1;const o=a.map(u=>{const f=Ih(u,n);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let u=0;u<o.length;u++){const f=o[u];typeof f=="function"?f():Ih(a[u],null)}}}}function z7(...a){return c.useCallback(O7(...a),a)}class B7 extends c.Component{getSnapshotBeforeUpdate(n){const i=this.props.childRef.current;if(i&&n.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=i.offsetParent,u=Hu(o)&&o.offsetWidth||0,f=Hu(o)&&o.offsetHeight||0,h=this.props.sizeRef.current;h.height=i.offsetHeight||0,h.width=i.offsetWidth||0,h.top=i.offsetTop,h.left=i.offsetLeft,h.right=u-h.width-h.left,h.bottom=f-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function U7({children:a,isPresent:n,anchorX:i,anchorY:o,root:u,pop:f}){var j;const h=c.useId(),p=c.useRef(null),x=c.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=c.useContext(E1),y=((j=a.props)==null?void 0:j.ref)??(a==null?void 0:a.ref),b=z7(p,y);return c.useInsertionEffect(()=>{const{width:S,height:E,top:M,left:w,right:N,bottom:C}=x.current;if(n||f===!1||!p.current||!S||!E)return;const Z=i==="left"?`left: ${w}`:`right: ${N}`,q=o==="bottom"?`bottom: ${C}`:`top: ${M}`;p.current.dataset.motionPopId=h;const $=document.createElement("style");g&&($.nonce=g);const U=u??document.head;return U.appendChild($),$.sheet&&$.sheet.insertRule(`
|
|
62
|
-
[data-motion-pop-id="${h}"] {
|
|
63
|
-
position: absolute !important;
|
|
64
|
-
width: ${S}px !important;
|
|
65
|
-
height: ${E}px !important;
|
|
66
|
-
${Z}px !important;
|
|
67
|
-
${q}px !important;
|
|
68
|
-
}
|
|
69
|
-
`),()=>{U.contains($)&&U.removeChild($)}},[n]),s.jsx(B7,{isPresent:n,childRef:p,sizeRef:x,pop:f,children:f===!1?a:c.cloneElement(a,{ref:b})})}const F7=({children:a,initial:n,isPresent:i,onExitComplete:o,custom:u,presenceAffectsLayout:f,mode:h,anchorX:p,anchorY:x,root:g})=>{const y=Wu(q7),b=c.useId();let j=!0,S=c.useMemo(()=>(j=!1,{id:b,initial:n,isPresent:i,custom:u,onExitComplete:E=>{y.set(E,!0);for(const M of y.values())if(!M)return;o&&o()},register:E=>(y.set(E,!1),()=>y.delete(E))}),[i,y,o]);return f&&j&&(S={...S}),c.useMemo(()=>{y.forEach((E,M)=>y.set(M,!1))},[i]),c.useEffect(()=>{!i&&!y.size&&o&&o()},[i]),a=s.jsx(U7,{pop:h==="popLayout",isPresent:i,anchorX:p,anchorY:x,root:g,children:a}),s.jsx(mo.Provider,{value:S,children:a})};function q7(){return new Map}function A6(a=!0){const n=c.useContext(mo);if(n===null)return[!0,null];const{isPresent:i,onExitComplete:o,register:u}=n,f=c.useId();c.useEffect(()=>{if(a)return u(f)},[a]);const h=c.useCallback(()=>a&&o&&o(f),[f,o,a]);return!i&&o?[!1,h]:[!0]}const Dr=a=>a.key||"";function e8(a){const n=[];return c.Children.forEach(a,i=>{c.isValidElement(i)&&n.push(i)}),n}const $7=({children:a,custom:n,initial:i=!0,onExitComplete:o,presenceAffectsLayout:u=!0,mode:f="sync",propagate:h=!1,anchorX:p="left",anchorY:x="top",root:g})=>{const[y,b]=A6(h),j=c.useMemo(()=>e8(a),[a]),S=h&&!y?[]:j.map(Dr),E=c.useRef(!0),M=c.useRef(j),w=Wu(()=>new Map),N=c.useRef(new Set),[C,Z]=c.useState(j),[q,$]=c.useState(j);Q8(()=>{E.current=!1,M.current=j;for(let z=0;z<q.length;z++){const Q=Dr(q[z]);S.includes(Q)?(w.delete(Q),N.current.delete(Q)):w.get(Q)!==!0&&w.set(Q,!1)}},[q,S.length,S.join("-")]);const U=[];if(j!==C){let z=[...j];for(let Q=0;Q<q.length;Q++){const J=q[Q],W=Dr(J);S.includes(W)||(z.splice(Q,0,J),U.push(J))}return f==="wait"&&U.length&&(z=U),$(e8(z)),Z(j),null}const{forceRender:B}=c.useContext(Ju);return s.jsx(s.Fragment,{children:q.map(z=>{const Q=Dr(z),J=h&&!y?!1:j===q||S.includes(Q),W=()=>{if(N.current.has(Q))return;if(N.current.add(Q),w.has(Q))w.set(Q,!0);else return;let re=!0;w.forEach(le=>{le||(re=!1)}),re&&(B==null||B(),$(M.current),h&&(b==null||b()),o&&o())};return s.jsx(F7,{isPresent:J,initial:!E.current||i?void 0:!1,custom:n,presenceAffectsLayout:u,mode:f,root:g,onExitComplete:J?void 0:W,anchorX:p,anchorY:x,children:z},Q)})})},S6=c.createContext({strict:!1}),t8={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let a8=!1;function Y7(){if(a8)return;const a={};for(const n in t8)a[n]={isEnabled:i=>t8[n].some(o=>!!i[o])};W4(a),a8=!0}function w6(){return Y7(),Vv()}function G7(a){const n=w6();for(const i in a)n[i]={...n[i],...a[i]};W4(n)}const X7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function lo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||X7.has(a)}let E6=a=>!lo(a);function P7(a){typeof a=="function"&&(E6=n=>n.startsWith("on")?!lo(n):a(n))}try{P7(require("@emotion/is-prop-valid").default)}catch{}function K7(a,n,i){const o={};for(const u in a)u==="values"&&typeof a.values=="object"||(E6(u)||i===!0&&lo(u)||!n&&!lo(u)||a.draggable&&u.startsWith("onDrag"))&&(o[u]=a[u]);return o}const xo=c.createContext({});function Q7(a,n){if(po(a)){const{initial:i,animate:o}=a;return{initial:i===!1||ai(i)?i:void 0,animate:ai(o)?o:void 0}}return a.inherit!==!1?n:{}}function J7(a){const{initial:n,animate:i}=Q7(a,c.useContext(xo));return c.useMemo(()=>({initial:n,animate:i}),[n8(n),n8(i)])}function n8(a){return Array.isArray(a)?a.join(" "):a}const N1=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function N6(a,n,i){for(const o in n)!pt(n[o])&&!s6(o,i)&&(a[o]=n[o])}function W7({transformTemplate:a},n){return c.useMemo(()=>{const i=N1();return S1(i,n,a),Object.assign({},i.vars,i.style)},[n])}function I7(a,n){const i=a.style||{},o={};return N6(o,i,a),Object.assign(o,W7(a,n)),o}function e9(a,n){const i={},o=I7(a,n);return a.drag&&a.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(i.tabIndex=0),i.style=o,i}const M6=()=>({...N1(),attrs:{}});function t9(a,n,i,o){const u=c.useMemo(()=>{const f=M6();return i6(f,n,o6(o),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[n]);if(a.style){const f={};N6(f,a.style,a),u.style={...f,...u.style}}return u}const a9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M1(a){return typeof a!="string"||a.includes("-")?!1:!!(a9.indexOf(a)>-1||/[A-Z]/u.test(a))}function n9(a,n,i,{latestValues:o},u,f=!1,h){const x=(h??M1(a)?t9:e9)(n,o,u,a),g=K7(n,typeof a=="string",f),y=a!==c.Fragment?{...g,...x,ref:i}:{},{children:b}=n,j=c.useMemo(()=>pt(b)?b.get():b,[b]);return c.createElement(a,{...y,children:j})}function l9({scrapeMotionValuesFromProps:a,createRenderState:n},i,o,u){return{latestValues:s9(i,o,u,a),renderState:n()}}function s9(a,n,i,o){const u={},f=o(a,{});for(const j in f)u[j]=Xr(f[j]);let{initial:h,animate:p}=a;const x=po(a),g=Q4(a);n&&g&&!x&&a.inherit!==!1&&(h===void 0&&(h=n.initial),p===void 0&&(p=n.animate));let y=i?i.initial===!1:!1;y=y||h===!1;const b=y?p:h;if(b&&typeof b!="boolean"&&!ho(b)){const j=Array.isArray(b)?b:[b];for(let S=0;S<j.length;S++){const E=p1(a,j[S]);if(E){const{transitionEnd:M,transition:w,...N}=E;for(const C in N){let Z=N[C];if(Array.isArray(Z)){const q=y?Z.length-1:0;Z=Z[q]}Z!==null&&(u[C]=Z)}for(const C in M)u[C]=M[C]}}}return u}const C6=a=>(n,i)=>{const o=c.useContext(xo),u=c.useContext(mo),f=()=>l9(a,n,o,u);return i?f():Wu(f)},i9=C6({scrapeMotionValuesFromProps:w1,createRenderState:N1}),r9=C6({scrapeMotionValuesFromProps:c6,createRenderState:M6}),o9=Symbol.for("motionComponentSymbol");function c9(a,n,i){const o=c.useRef(i);c.useInsertionEffect(()=>{o.current=i});const u=c.useRef(null);return c.useCallback(f=>{var p;f&&((p=a.onMount)==null||p.call(a,f)),n&&(f?n.mount(f):n.unmount());const h=o.current;if(typeof h=="function")if(f){const x=h(f);typeof x=="function"&&(u.current=x)}else u.current?(u.current(),u.current=null):h(f);else h&&(h.current=f)},[n])}const T6=c.createContext({});function Dl(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function u9(a,n,i,o,u,f){var Z,q;const{visualElement:h}=c.useContext(xo),p=c.useContext(S6),x=c.useContext(mo),g=c.useContext(E1),y=g.reducedMotion,b=g.skipAnimations,j=c.useRef(null),S=c.useRef(!1);o=o||p.renderer,!j.current&&o&&(j.current=o(a,{visualState:n,parent:h,props:i,presenceContext:x,blockInitialAnimation:x?x.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:f}),S.current&&j.current&&(j.current.manuallyAnimateOnMount=!0));const E=j.current,M=c.useContext(T6);E&&!E.projection&&u&&(E.type==="html"||E.type==="svg")&&d9(j.current,i,u,M);const w=c.useRef(!1);c.useInsertionEffect(()=>{E&&w.current&&E.update(i,x)});const N=i[_4],C=c.useRef(!!N&&!((Z=window.MotionHandoffIsComplete)!=null&&Z.call(window,N))&&((q=window.MotionHasOptimisedAnimation)==null?void 0:q.call(window,N)));return Q8(()=>{S.current=!0,E&&(w.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),C.current&&E.animationState&&E.animationState.animateChanges())}),c.useEffect(()=>{E&&(!C.current&&E.animationState&&E.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)==null||$.call(window,N)}),C.current=!1),E.enteringChildren=void 0)}),E}function d9(a,n,i,o){const{layoutId:u,layout:f,drag:h,dragConstraints:p,layoutScroll:x,layoutRoot:g,layoutCrossfade:y}=n;a.projection=new i(a.latestValues,n["data-framer-portal-id"]?void 0:V6(a.parent)),a.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!h||p&&Dl(p),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:y,layoutScroll:x,layoutRoot:g})}function V6(a){if(a)return a.options.allowProjection!==!1?a.projection:V6(a.parent)}function nu(a,{forwardMotionProps:n=!1,type:i}={},o,u){o&&G7(o);const f=i?i==="svg":M1(a),h=f?r9:i9;function p(g,y){let b;const j={...c.useContext(E1),...g,layoutId:f9(g)},{isStatic:S}=j,E=J7(g),M=h(g,S);if(!S&&K8){m9();const w=h9(j);b=w.MeasureLayout,E.visualElement=u9(a,M,j,u,w.ProjectionNode,f)}return s.jsxs(xo.Provider,{value:E,children:[b&&E.visualElement?s.jsx(b,{visualElement:E.visualElement,...j}):null,n9(a,g,c9(M,E.visualElement,y),M,S,n,f)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const x=c.forwardRef(p);return x[o9]=a,x}function f9({layoutId:a}){const n=c.useContext(Ju).id;return n&&a!==void 0?n+"-"+a:a}function m9(a,n){c.useContext(S6).strict}function h9(a){const n=w6(),{drag:i,layout:o}=n;if(!i&&!o)return{};const u={...i,...o};return{MeasureLayout:i!=null&&i.isEnabled(a)||o!=null&&o.isEnabled(a)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function p9(a,n){if(typeof Proxy>"u")return nu;const i=new Map,o=(f,h)=>nu(f,h,a,n),u=(f,h)=>o(f,h);return new Proxy(u,{get:(f,h)=>h==="create"?o:(i.has(h)||i.set(h,nu(h,void 0,a,n)),i.get(h))})}const x9=(a,n)=>n.isSVG??M1(a)?new Xv(n):new Uv(n,{allowProjection:a!==c.Fragment});class g9 extends vn{constructor(n){super(n),n.animationState||(n.animationState=Wv(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();ho(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:i}=this.node.prevProps||{};n!==i&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let b9=0;class y9 extends vn{constructor(){super(...arguments),this.id=b9++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===o)return;const u=this.node.animationState.setActive("exit",!n);i&&!n&&u.then(()=>{i(this.id)})}mount(){const{register:n,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const v9={animation:{Feature:g9},exit:{Feature:y9}};function di(a){return{point:{x:a.pageX,y:a.pageY}}}const j9=a=>n=>y1(n)&&a(n,di(n));function Js(a,n,i,o){return ni(a,n,j9(i),o)}const L6=({current:a})=>a?a.ownerDocument.defaultView:null,l8=(a,n)=>Math.abs(a-n);function A9(a,n){const i=l8(a.x,n.x),o=l8(a.y,n.y);return Math.sqrt(i**2+o**2)}const s8=new Set(["auto","scroll"]);class Z6{constructor(n,i,{transformPagePoint:o,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:h=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=su(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,M=A9(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!M)return;const{point:w}=S,{timestamp:N}=ft;this.history.push({...w,timestamp:N});const{onStart:C,onMove:Z}=this.handlers;E||(C&&C(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),Z&&Z(this.lastMoveEvent,S)},this.handlePointerMove=(S,E)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=lu(E,this.transformPagePoint),ke.update(this.updatePoint,!0)},this.handlePointerUp=(S,E)=>{this.end();const{onEnd:M,onSessionEnd:w,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=su(S.type==="pointercancel"?this.lastMoveEventInfo:lu(E,this.transformPagePoint),this.history);this.startEvent&&M&&M(S,C),w&&w(S,C)},!y1(n))return;this.dragSnapToOrigin=f,this.handlers=i,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=u||window;const x=di(n),g=lu(x,this.transformPagePoint),{point:y}=g,{timestamp:b}=ft;this.history=[{...y,timestamp:b}];const{onSessionStart:j}=i;j&&j(n,su(g,this.history)),this.removeListeners=oi(Js(this.contextWindow,"pointermove",this.handlePointerMove),Js(this.contextWindow,"pointerup",this.handlePointerUp),Js(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(n){let i=n.parentElement;for(;i;){const o=getComputedStyle(i);(s8.has(o.overflowX)||s8.has(o.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(n){const i=this.scrollPositions.get(n);if(!i)return;const o=n===window,u=o?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},f={x:u.x-i.x,y:u.y-i.y};f.x===0&&f.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(n,u),ke.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),bn(this.updatePoint)}}function lu(a,n){return n?{point:n(a.point)}:a}function i8(a,n){return{x:a.x-n.x,y:a.y-n.y}}function su({point:a},n){return{point:a,delta:i8(a,H6(n)),offset:i8(a,S9(n)),velocity:w9(n,.1)}}function S9(a){return a[0]}function H6(a){return a[a.length-1]}function w9(a,n){if(a.length<2)return{x:0,y:0};let i=a.length-1,o=null;const u=H6(a);for(;i>=0&&(o=a[i],!(u.timestamp-o.timestamp>ca(n)));)i--;if(!o)return{x:0,y:0};o===a[0]&&a.length>2&&u.timestamp-o.timestamp>ca(n)*2&&(o=a[1]);const f=ta(u.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const h={x:(u.x-o.x)/f,y:(u.y-o.y)/f};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function E9(a,{min:n,max:i},o){return n!==void 0&&a<n?a=o?Ue(n,a,o.min):Math.max(a,n):i!==void 0&&a>i&&(a=o?Ue(i,a,o.max):Math.min(a,i)),a}function r8(a,n,i){return{min:n!==void 0?a.min+n:void 0,max:i!==void 0?a.max+i-(a.max-a.min):void 0}}function N9(a,{top:n,left:i,bottom:o,right:u}){return{x:r8(a.x,i,u),y:r8(a.y,n,o)}}function o8(a,n){let i=n.min-a.min,o=n.max-a.max;return n.max-n.min<a.max-a.min&&([i,o]=[o,i]),{min:i,max:o}}function M9(a,n){return{x:o8(a.x,n.x),y:o8(a.y,n.y)}}function C9(a,n){let i=.5;const o=vt(a),u=vt(n);return u>o?i=Is(n.min,n.max-o,a.min):o>u&&(i=Is(a.min,a.max-u,n.min)),ya(0,1,i)}function T9(a,n){const i={};return n.min!==void 0&&(i.min=n.min-a.min),n.max!==void 0&&(i.max=n.max-a.min),i}const Ou=.35;function V9(a=Ou){return a===!1?a=0:a===!0&&(a=Ou),{x:c8(a,"left","right"),y:c8(a,"top","bottom")}}function c8(a,n,i){return{min:u8(a,n),max:u8(a,i)}}function u8(a,n){return typeof a=="number"?a:a[n]||0}const L9=new WeakMap;class Z9{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:i=!1,distanceThreshold:o}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=b=>{i&&this.snapToCursor(di(b).point),this.stopAnimation()},h=(b,j)=>{const{drag:S,dragPropagation:E,onDragStart:M}=this.getProps();if(S&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iv(S),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=j,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xa(N=>{let C=this.getAxisMotionValue(N).get()||0;if(ba.test(C)){const{projection:Z}=this.visualElement;if(Z&&Z.layout){const q=Z.layout.layoutBox[N];q&&(C=vt(q)*(parseFloat(C)/100))}}this.originPoint[N]=C}),M&&ke.update(()=>M(b,j),!1,!0),Tu(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},p=(b,j)=>{this.latestPointerEvent=b,this.latestPanInfo=j;const{dragPropagation:S,dragDirectionLock:E,onDirectionLock:M,onDrag:w}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:N}=j;if(E&&this.currentDirection===null){this.currentDirection=D9(N),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",j.point,N),this.updateAxis("y",j.point,N),this.visualElement.render(),w&&ke.update(()=>w(b,j),!1,!0)},x=(b,j)=>{this.latestPointerEvent=b,this.latestPanInfo=j,this.stop(b,j),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Z6(n,{onSessionStart:f,onStart:h,onMove:p,onSessionEnd:x,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:L6(this.visualElement),element:this.visualElement.current})}stop(n,i){const o=n||this.latestPointerEvent,u=i||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!o)return;const{velocity:h}=u;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&ke.postRender(()=>p(o,u))}cancel(){this.isDragging=!1;const{projection:n,animationState:i}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,i,o){const{drag:u}=this.getProps();if(!o||!Rr(n,u,this.currentDirection))return;const f=this.getAxisMotionValue(n);let h=this.originPoint[n]+o[n];this.constraints&&this.constraints[n]&&(h=E9(h,this.constraints[n],this.elastic[n])),f.set(h)}resolveConstraints(){var f;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;n&&Dl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=N9(o.layoutBox,n):this.constraints=!1,this.elastic=V9(i),u!==this.constraints&&!Dl(n)&&o&&this.constraints&&!this.hasMutatedConstraints&&xa(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=T9(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:i}=this.getProps();if(!n||!Dl(n))return!1;const o=n.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=Rv(o,u.root,this.visualElement.getTransformPagePoint());let h=M9(u.layout.layoutBox,f);if(i){const p=i(Zv(h));this.hasMutatedConstraints=!!p,p&&(h=e6(p))}return h}startAnimation(n){const{drag:i,dragMomentum:o,dragElastic:u,dragTransition:f,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),x=this.constraints||{},g=xa(y=>{if(!Rr(y,i,this.currentDirection))return;let b=x&&x[y]||{};h&&(b={min:0,max:0});const j=u?200:1e6,S=u?40:1e7,E={type:"inertia",velocity:o?n[y]:0,bounceStiffness:j,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(y,E)});return Promise.all(g).then(p)}startAxisValueAnimation(n,i){const o=this.getAxisMotionValue(n);return Tu(this.visualElement,n),o.start(h1(n,o,0,i,this.visualElement,!1))}stopAnimation(){xa(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const i=`_drag${n.toUpperCase()}`,o=this.visualElement.getProps(),u=o[i];return u||this.visualElement.getValue(n,(o.initial?o.initial[n]:void 0)||0)}snapToCursor(n){xa(i=>{const{drag:o}=this.getProps();if(!Rr(i,o,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(i);if(u&&u.layout){const{min:h,max:p}=u.layout.layoutBox[i],x=f.get()||0;f.set(n[i]-Ue(h,p,.5)+x)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!Dl(i)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};xa(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const x=p.get();u[h]=C9({min:x,max:x},this.constraints[h])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),xa(h=>{if(!Rr(h,n,null))return;const p=this.getAxisMotionValue(h),{min:x,max:g}=this.constraints[h];p.set(Ue(x,g,u[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;L9.set(this.visualElement,this);const n=this.visualElement.current,i=Js(n,"pointerdown",g=>{const{drag:y,dragListener:b=!0}=this.getProps(),j=g.target,S=j!==n&&fv(j);y&&b&&!S&&this.start(g)});let o;const u=()=>{const{dragConstraints:g}=this.getProps();Dl(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),o||(o=H9(n,g.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,h=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),ke.read(u);const p=ni(window,"resize",()=>this.scalePositionWithinConstraints()),x=f.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(xa(b=>{const j=this.getAxisMotionValue(b);j&&(this.originPoint[b]+=g[b].translate,j.set(j.get()+g[b].translate))}),this.visualElement.render())}));return()=>{p(),i(),h(),x&&x(),o&&o()}}getProps(){const n=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:h=Ou,dragMomentum:p=!0}=n;return{...n,drag:i,dragDirectionLock:o,dragPropagation:u,dragConstraints:f,dragElastic:h,dragMomentum:p}}}function d8(a){let n=!0;return()=>{if(n){n=!1;return}a()}}function H9(a,n,i){const o=bh(a,d8(i)),u=bh(n,d8(i));return()=>{o(),u()}}function Rr(a,n,i){return(n===!0||n===a)&&(i===null||i===a)}function D9(a,n=10){let i=null;return Math.abs(a.y)>n?i="y":Math.abs(a.x)>n&&(i="x"),i}class R9 extends vn{constructor(n){super(n),this.removeGroupControls=aa,this.removeListeners=aa,this.controls=new Z9(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aa}update(){const{dragControls:n}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};n!==i&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const iu=a=>(n,i)=>{a&&ke.update(()=>a(n,i),!1,!0)};class k9 extends vn{constructor(){super(...arguments),this.removePointerDownListener=aa}onPointerDown(n){this.session=new Z6(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:L6(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:i,onPan:o,onPanEnd:u}=this.node.getProps();return{onSessionStart:iu(n),onStart:iu(i),onMove:iu(o),onEnd:(f,h)=>{delete this.session,u&&ke.postRender(()=>u(f,h))}}}mount(){this.removePointerDownListener=Js(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ru=!1;class _9 extends c.Component{componentDidMount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:o,layoutId:u}=this.props,{projection:f}=n;f&&(i.group&&i.group.add(f),o&&o.register&&u&&o.register(f),ru&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Pr.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:i,visualElement:o,drag:u,isPresent:f}=this.props,{projection:h}=o;return h&&(h.isPresent=f,n.layoutDependency!==i&&h.setOptions({...h.options,layoutDependency:i}),ru=!0,u||n.layoutDependency!==i||i===void 0||n.isPresent!==f?h.willUpdate():this.safeToRemove(),n.isPresent!==f&&(f?h.promote():h.relegate()||ke.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),b1.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:o}=this.props,{projection:u}=n;ru=!0,u&&(u.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(u),o&&o.deregister&&o.deregister(u))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function D6(a){const[n,i]=A6(),o=c.useContext(Ju);return s.jsx(_9,{...a,layoutGroup:o,switchLayoutGroup:c.useContext(T6),isPresent:n,safeToRemove:i})}const O9={pan:{Feature:k9},drag:{Feature:R9,ProjectionNode:j6,MeasureLayout:D6}};function f8(a,n,i){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",i==="Start");const u="onHover"+i,f=o[u];f&&ke.postRender(()=>f(n,di(n)))}class z9 extends vn{mount(){const{current:n}=this.node;n&&(this.unmount=ov(n,(i,o)=>(f8(this.node,o,"Start"),u=>f8(this.node,u,"End"))))}unmount(){}}class B9 extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=oi(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function m8(a,n,i){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",i==="Start");const u="onTap"+(i==="End"?"":i),f=o[u];f&&ke.postRender(()=>f(n,di(n)))}class U9 extends vn{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:i,propagate:o}=this.node.props;this.unmount=hv(n,(u,f)=>(m8(this.node,f,"Start"),(h,{success:p})=>m8(this.node,h,p?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const zu=new WeakMap,ou=new WeakMap,F9=a=>{const n=zu.get(a.target);n&&n(a)},q9=a=>{a.forEach(F9)};function $9({root:a,...n}){const i=a||document;ou.has(i)||ou.set(i,{});const o=ou.get(i),u=JSON.stringify(n);return o[u]||(o[u]=new IntersectionObserver(q9,{root:a,...n})),o[u]}function Y9(a,n,i){const o=$9(n);return zu.set(a,i),o.observe(a),()=>{zu.delete(a),o.unobserve(a)}}const G9={some:0,all:1};class X9 extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:i,margin:o,amount:u="some",once:f}=n,h={root:i?i.current:void 0,rootMargin:o,threshold:typeof u=="number"?u:G9[u]},p=x=>{const{isIntersecting:g}=x;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:b}=this.node.getProps(),j=g?y:b;j&&j(x)};return Y9(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:i}=this.node;["amount","margin","root"].some(P9(n,i))&&this.startObserver()}unmount(){}}function P9({viewport:a={}},{viewport:n={}}={}){return i=>a[i]!==n[i]}const K9={inView:{Feature:X9},tap:{Feature:U9},focus:{Feature:B9},hover:{Feature:z9}},Q9={layout:{ProjectionNode:j6,MeasureLayout:D6}},J9={...v9,...K9,...O9,...Q9},R6=p9(J9,x9),W9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,20H64A20,20,0,0,0,44,40V60H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v20a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V40A20,20,0,0,0,208,20Zm-4,192H68V44H204ZM100.8,171.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM116,112a20,20,0,1,1,20,20A20,20,0,0,1,116,112Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H64a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V40A8,8,0,0,0,208,32ZM136,144a32,32,0,1,1,32-32A32,32,0,0,1,136,144Z",opacity:"0.2"}),c.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,112a24,24,0,1,1-24-24A24,24,0,0,1,160,112Zm64-72V216a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V192H32a8,8,0,0,1,0-16H48V136H32a8,8,0,0,1,0-16H48V80H32a8,8,0,0,1,0-16H48V40A16,16,0,0,1,64,24H208A16,16,0,0,1,224,40ZM190.4,163.2A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2a8,8,0,1,0,12.8,9.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M159.11,142.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,83.2,164.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,159.11,142.13ZM110,112a26,26,0,1,1,26,26A26,26,0,0,1,110,112Zm98-86H64A14,14,0,0,0,50,40V66H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v26a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V40A14,14,0,0,0,208,26Zm2,190a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M154.7,142.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,84.8,165.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,154.7,142.75ZM108,112a28,28,0,1,1,28,28A28,28,0,0,1,108,112ZM208,28H64A12,12,0,0,0,52,40V68H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v28a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V40A12,12,0,0,0,208,28Zm4,188a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),I9=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),ej=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),c.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),tj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M252,124a60.14,60.14,0,0,0-32-53.08,52,52,0,0,0-92-32.11A52,52,0,0,0,36,70.92a60,60,0,0,0,0,106.14,52,52,0,0,0,92,32.13,52,52,0,0,0,92-32.13A60.05,60.05,0,0,0,252,124ZM88,204a28,28,0,0,1-26.85-20.07c1,0,1.89.07,2.85.07h8a12,12,0,0,0,0-24H64A36,36,0,0,1,52,90.05a12,12,0,0,0,8-11.32V72a28,28,0,0,1,56,0v60.18a51.61,51.61,0,0,0-7.2-3.85,12,12,0,1,0-9.6,22A28,28,0,0,1,88,204Zm104-44h-8a12,12,0,0,0,0,24h8c1,0,1.9,0,2.85-.07a28,28,0,1,1-38-33.61,12,12,0,1,0-9.6-22,51.61,51.61,0,0,0-7.2,3.85V72a28,28,0,0,1,56,0v6.73a12,12,0,0,0,8,11.32,36,36,0,0,1-12,70Zm16-44a12,12,0,0,1-12,12,40,40,0,0,1-40-40V84a12,12,0,0,1,24,0v4a16,16,0,0,0,16,16A12,12,0,0,1,208,116ZM100,88a40,40,0,0,1-40,40,12,12,0,0,1,0-24A16,16,0,0,0,76,88V84a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,124a48,48,0,0,1-32,45.27h0V176a40,40,0,0,1-80,0,40,40,0,0,1-80,0v-6.73h0a48,48,0,0,1,0-90.54V72a40,40,0,0,1,80,0,40,40,0,0,1,80,0v6.73A48,48,0,0,1,240,124Z",opacity:"0.2"}),c.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212,76V72a44,44,0,0,0-74.86-31.31,3.93,3.93,0,0,0-1.14,2.8v88.72a4,4,0,0,0,6.2,3.33A47.67,47.67,0,0,1,167.68,128a8.18,8.18,0,0,1,8.31,7.58,8,8,0,0,1-8,8.42,32,32,0,0,0-32,32v33.88a4,4,0,0,0,1.49,3.12,47.92,47.92,0,0,0,74.21-17.16,4,4,0,0,0-4.49-5.56A68.06,68.06,0,0,1,192,192h-7.73a8.18,8.18,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h8a51.6,51.6,0,0,0,24-5.88v0A52,52,0,0,0,212,76Zm-12,36h-4a36,36,0,0,1-36-36V72a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4a8,8,0,0,1,0,16ZM88,28A44.05,44.05,0,0,0,44,72v4a52,52,0,0,0-4,94.12h0A51.6,51.6,0,0,0,64,176h7.73A8.18,8.18,0,0,1,80,183.47,8,8,0,0,1,72,192H64a67.48,67.48,0,0,1-15.21-1.73,4,4,0,0,0-4.5,5.55A47.93,47.93,0,0,0,118.51,213a4,4,0,0,0,1.49-3.12V176a32,32,0,0,0-32-32,8,8,0,0,1-8-8.42A8.18,8.18,0,0,1,88.32,128a47.67,47.67,0,0,1,25.48,7.54,4,4,0,0,0,6.2-3.33V43.49a4,4,0,0,0-1.14-2.81A43.85,43.85,0,0,0,88,28Zm8,48a36,36,0,0,1-36,36H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,76V72a8,8,0,0,1,16,0Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M246,124a54.13,54.13,0,0,0-32-49.33V72a46,46,0,0,0-86-22.67A46,46,0,0,0,42,72v2.67a54,54,0,0,0,0,98.63V176a46,46,0,0,0,86,22.67A46,46,0,0,0,214,176v-2.7A54.07,54.07,0,0,0,246,124ZM88,210a34,34,0,0,1-34-32.94A53.67,53.67,0,0,0,64,178h8a6,6,0,0,0,0-12H64A42,42,0,0,1,50,84.39a6,6,0,0,0,4-5.66V72a34,34,0,0,1,68,0v73.05A45.89,45.89,0,0,0,88,130a6,6,0,0,0,0,12,34,34,0,0,1,0,68Zm104-44h-8a6,6,0,0,0,0,12h8a53.67,53.67,0,0,0,10-.94A34,34,0,1,1,168,142a6,6,0,0,0,0-12,45.89,45.89,0,0,0-34,15.05V72a34,34,0,0,1,68,0v6.73a6,6,0,0,0,4,5.66A42,42,0,0,1,192,166Zm14-54a6,6,0,0,1-6,6h-4a34,34,0,0,1-34-34V80a6,6,0,0,1,12,0v4a22,22,0,0,0,22,22h4A6,6,0,0,1,206,112ZM60,118H56a6,6,0,0,1,0-12h4A22,22,0,0,0,82,84V80a6,6,0,0,1,12,0v4A34,34,0,0,1,60,118Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M244,124a52.1,52.1,0,0,0-32-48V72a44,44,0,0,0-84-18.3A44,44,0,0,0,44,72v4a52,52,0,0,0,0,96v4a44,44,0,0,0,84,18.3A44,44,0,0,0,212,176v-4A52.07,52.07,0,0,0,244,124ZM88,212a36,36,0,0,1-36-36v-1.41A52.13,52.13,0,0,0,64,176h8a4,4,0,0,0,0-8H64A44,44,0,0,1,49.33,82.5,4,4,0,0,0,52,78.73V72a36,36,0,0,1,72,0v78.75A44,44,0,0,0,88,132a4,4,0,0,0,0,8,36,36,0,0,1,0,72Zm104-44h-8a4,4,0,0,0,0,8h8a52.13,52.13,0,0,0,12-1.41V176a36,36,0,1,1-36-36,4,4,0,0,0,0-8,44,44,0,0,0-36,18.75V72a36,36,0,0,1,72,0v6.73a4,4,0,0,0,2.67,3.77A44,44,0,0,1,192,168Zm12-56a4,4,0,0,1-4,4h-4a32,32,0,0,1-32-32V80a4,4,0,0,1,8,0v4a24,24,0,0,0,24,24h4A4,4,0,0,1,204,112ZM92,84a32,32,0,0,1-32,32H56a4,4,0,0,1,0-8h4A24,24,0,0,0,84,84V80a4,4,0,0,1,8,0Z"}))]]),aj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Zm60-80v56a12,12,0,0,1-24,0V143.32a12,12,0,0,1-9.37-22l16-8A12,12,0,0,1,112,124Zm61.49,33.88L163.9,168H168a12,12,0,0,1,0,24H136a12,12,0,0,1-8.71-20.25L155.45,142a4,4,0,0,0,.55-2,4,4,0,0,0-7.47-2,12,12,0,0,1-20.78-12A28,28,0,0,1,180,140a27.77,27.77,0,0,1-5.64,16.86A10.63,10.63,0,0,1,173.49,157.88Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM112,184a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm56-8a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136a23.76,23.76,0,0,1-4.84,14.45L152,176ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-98-90v64a6,6,0,0,1-12,0V129.71l-7.32,3.66a6,6,0,1,1-5.36-10.74l16-8A6,6,0,0,1,110,120Zm59.57,29.25L148,178h20a6,6,0,0,1,0,12H136a6,6,0,0,1-4.8-9.6L160,142a10,10,0,1,0-16.65-11A6,6,0,1,1,133,125a22,22,0,1,1,36.62,24.26Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212ZM108,120v64a4,4,0,0,1-8,0V126.47l-10.21,5.11a4,4,0,0,1-3.58-7.16l16-8A4,4,0,0,1,108,120Zm60,28-24,32h24a4,4,0,0,1,0,8H136a4,4,0,0,1-3.2-6.4l28.78-38.37A11.88,11.88,0,0,0,164,136a12,12,0,0,0-22.4-6,4,4,0,0,1-6.92-4A20,20,0,0,1,172,136,19.79,19.79,0,0,1,168,148Z"}))]]),nj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),c.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),lj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),c.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),sj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),c.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),ij=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),c.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),rj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.12-.11L84.47,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H80a11.93,11.93,0,0,0-7.84,2.92L44,215.23V68H212Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,64V192a8,8,0,0,1-8,8H80L45.15,230.11A8,8,0,0,1,32,224V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,64V192a16,16,0,0,1-16,16H83l-32.6,28.16-.09.07A15.89,15.89,0,0,1,40,240a16.05,16.05,0,0,1-6.79-1.52A15.84,15.84,0,0,1,24,224V64A16,16,0,0,1,40,48H216A16,16,0,0,1,232,64Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V224a13.88,13.88,0,0,0,8.09,12.69A14.11,14.11,0,0,0,40,238a13.87,13.87,0,0,0,9-3.31l.06-.05L82.23,206H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50Zm2,142a2,2,0,0,1-2,2H80a6,6,0,0,0-3.92,1.46L41.26,225.53A2,2,0,0,1,38,224V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V224a11.89,11.89,0,0,0,6.93,10.88A12.17,12.17,0,0,0,40,236a11.89,11.89,0,0,0,7.69-2.83l0,0L81.49,204H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52Zm4,140a4,4,0,0,1-4,4H80a4,4,0,0,0-2.62,1L42.56,227.06A4,4,0,0,1,36,224V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Z"}))]]),oj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),cj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),uj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),dj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),c.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"}))]]),fj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"}),c.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]),mj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),hj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44Zm-96,83.72L62.85,68h130.3ZM92.79,128,44,172.72V83.28Zm17.76,16.28,9.34,8.57a12,12,0,0,0,16.22,0l9.34-8.57L193.15,188H62.85ZM163.21,128,212,83.28v89.44Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),c.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50Zm-96,85.86L47.42,62H208.58ZM101.67,128,38,186.36V69.64Zm8.88,8.14L124,148.42a6,6,0,0,0,8.1,0l13.4-12.28L208.58,194H47.43ZM154.33,128,218,69.64V186.36Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-96,85.15L52.57,64H203.43ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-96,86.57L42.28,60H213.72ZM104.63,128,36,190.91V65.09Zm5.92,5.43L125.3,147a4,4,0,0,0,5.4,0l14.75-13.52L213.72,196H42.28ZM151.37,128,220,65.09V190.91Z"}))]]),pj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),xj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"}))]]),gj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"}),c.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z"}))]]),bj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),c.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),yj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),c.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]]),vj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),jj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"}))]]),Aj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),c.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),Sj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128ZM128,76h88a12,12,0,0,0,0-24H128a12,12,0,0,0,0,24Zm88,104H128a12,12,0,0,0,0,24h88a12,12,0,0,0,0-24ZM79.51,39.51,56,63l-7.51-7.52a12,12,0,0,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,127l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,191l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM117.66,149.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L80,164.69l26.34-26.35a8,8,0,0,1,11.32,11.32Zm0-64-32,32a8,8,0,0,1-11.32,0l-16-16A8,8,0,0,1,69.66,90.34L80,100.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM192,168H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-64H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H128a6,6,0,0,1,0-12h88A6,6,0,0,1,222,128ZM128,70h88a6,6,0,0,0,0-12H128a6,6,0,0,0,0,12Zm88,116H128a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12ZM83.76,43.76,56,71.51,44.24,59.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,135.51,44.24,123.76a6,6,0,1,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,199.51,44.24,187.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H128a4,4,0,0,1,0-8h88A4,4,0,0,1,220,128ZM128,68h88a4,4,0,0,0,0-8H128a4,4,0,0,0,0,8Zm88,120H128a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8ZM85.17,45.17,56,74.34,42.83,61.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,138.34,42.83,125.17a4,4,0,1,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,202.34,42.83,189.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Z"}))]]),wj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),c.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),Ej=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,180a52.06,52.06,0,0,0,52-52V64A52,52,0,0,0,76,64v64A52.06,52.06,0,0,0,128,180ZM100,64a28,28,0,0,1,56,0v64a28,28,0,0,1-56,0Zm40,155.22V240a12,12,0,0,1-24,0V219.22A92.14,92.14,0,0,1,36,128a12,12,0,0,1,24,0,68,68,0,0,0,136,0,12,12,0,0,1,24,0A92.14,92.14,0,0,1,140,219.22Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),c.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M80,128V64a48,48,0,0,1,96,0v64a48,48,0,0,1-96,0Zm128,0a8,8,0,0,0-16,0,64,64,0,0,1-128,0,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.6A80.11,80.11,0,0,0,208,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,174a46.06,46.06,0,0,0,46-46V64a46,46,0,0,0-92,0v64A46.06,46.06,0,0,0,128,174ZM94,64a34,34,0,0,1,68,0v64a34,34,0,0,1-68,0Zm40,141.75V240a6,6,0,0,1-12,0V205.75A78.09,78.09,0,0,1,50,128a6,6,0,0,1,12,0,66,66,0,0,0,132,0,6,6,0,0,1,12,0A78.09,78.09,0,0,1,134,205.75Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,172a44.05,44.05,0,0,0,44-44V64a44,44,0,0,0-88,0v64A44.05,44.05,0,0,0,128,172ZM92,64a36,36,0,0,1,72,0v64a36,36,0,0,1-72,0Zm40,139.89V240a4,4,0,0,1-8,0V203.89A76.09,76.09,0,0,1,52,128a4,4,0,0,1,8,0,68,68,0,0,0,136,0,4,4,0,0,1,8,0A76.09,76.09,0,0,1,132,203.89Z"}))]]),Nj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M56.88,39.93A12,12,0,1,0,39.12,56.07L76,96.64V128a52,52,0,0,0,72.11,48l11.26,12.39A67.34,67.34,0,0,1,128,196a68.07,68.07,0,0,1-68-68,12,12,0,0,0-24,0,92.14,92.14,0,0,0,80,91.22V240a12,12,0,0,0,24,0V219.23a90.39,90.39,0,0,0,35.92-12.68l23.2,25.52a12,12,0,0,0,17.76-16.14ZM128,156a28,28,0,0,1-28-28v-5l29.9,32.89C129.27,156,128.64,156,128,156Zm63-2.42A67.63,67.63,0,0,0,196,128a12,12,0,0,1,24,0,91.48,91.48,0,0,1-6.74,34.61,12,12,0,0,1-22.23-9ZM85.7,33.75A52,52,0,0,1,180,64v56.54a12,12,0,0,1-24,0V64a28,28,0,0,0-50.79-16.28,12,12,0,0,1-19.51-14Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),c.createElement("path",{d:"M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.38,229.92a8,8,0,0,1-11.3-.54l-30.92-34A78.83,78.83,0,0,1,136,207.59V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64.07,64.07,0,0,0,64,64,63.41,63.41,0,0,0,32.21-8.68l-11.1-12.2A48,48,0,0,1,80,128V95.09L42.08,53.38A8,8,0,0,1,53.92,42.62l160,176A8,8,0,0,1,213.38,229.92Zm-24.19-63.13a7.88,7.88,0,0,0,3.51.82,8,8,0,0,0,7.19-4.49A79.16,79.16,0,0,0,208,128a8,8,0,0,0-16,0,63.32,63.32,0,0,1-6.48,28.09A8,8,0,0,0,189.19,166.79Zm-27.33-29.22A8,8,0,0,0,175.74,133a49.49,49.49,0,0,0,.26-5V64A48,48,0,0,0,84,44.87a8,8,0,0,0,1.41,8.57Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.44,220,52.44,44A6,6,0,0,0,43.56,52L82,94.32V128a46,46,0,0,0,67.56,40.64l13.75,15.12A65.26,65.26,0,0,1,128,194a66.08,66.08,0,0,1-66-66,6,6,0,0,0-12,0,78.09,78.09,0,0,0,72,77.75V240a6,6,0,0,0,12,0V205.77a76.93,76.93,0,0,0,37.48-13L203.56,228a6,6,0,0,0,8.88-8.08ZM128,162a34,34,0,0,1-34-34V107.52l47.12,51.84A33.82,33.82,0,0,1,128,162Zm59.32-5A65.38,65.38,0,0,0,194,128a6,6,0,0,1,12,0,77.33,77.33,0,0,1-7.9,34.25A6,6,0,1,1,187.32,157ZM85.8,45.67A46,46,0,0,1,174,64v64a45.17,45.17,0,0,1-.25,4.81,6,6,0,0,1-6,5.38q-.31,0-.63,0a6,6,0,0,1-5.34-6.59A35.41,35.41,0,0,0,162,128V64A34,34,0,0,0,96.8,50.45a6,6,0,0,1-11-4.78Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.92,218.62l-160-176A8,8,0,0,0,42.08,53.38L80,95.09V128a48,48,0,0,0,69.11,43.12l11.1,12.2A63.41,63.41,0,0,1,128,192a64.07,64.07,0,0,1-64-64,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.59a78.83,78.83,0,0,0,35.16-12.22l30.92,34a8,8,0,1,0,11.84-10.76ZM128,160a32,32,0,0,1-32-32V112.69l41.66,45.82A32,32,0,0,1,128,160Zm57.52-3.91A63.32,63.32,0,0,0,192,128a8,8,0,0,1,16,0,79.16,79.16,0,0,1-8.11,35.12,8,8,0,0,1-7.19,4.49,7.88,7.88,0,0,1-3.51-.82A8,8,0,0,1,185.52,156.09ZM84,44.87A48,48,0,0,1,176,64v64a49.19,49.19,0,0,1-.26,5,8,8,0,0,1-8,7.17,8.13,8.13,0,0,1-.84,0,8,8,0,0,1-7.12-8.79c.11-1.1.17-2.24.17-3.36V64A32,32,0,0,0,98.64,51.25,8,8,0,1,1,84,44.87Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M211,221.31,51,45.31A4,4,0,0,0,45,50.69L84,93.55V128a44,44,0,0,0,66,38.12l16.38,18A67.21,67.21,0,0,1,128,196a68.07,68.07,0,0,1-68-68,4,4,0,0,0-8,0,76.09,76.09,0,0,0,72,75.89V240a4,4,0,0,0,8,0V203.89a75.1,75.1,0,0,0,39.79-13.77L205,226.69a4,4,0,1,0,5.92-5.38ZM128,164a36,36,0,0,1-36-36V102.35L144.43,160A35.83,35.83,0,0,1,128,164Zm61.12-6.15A67.44,67.44,0,0,0,196,128a4,4,0,0,1,8,0,75.28,75.28,0,0,1-7.7,33.37,4,4,0,0,1-7.18-3.52ZM87.63,46.46A44,44,0,0,1,172,64v64a44.2,44.2,0,0,1-.24,4.61,4,4,0,0,1-4,3.58l-.42,0a4,4,0,0,1-3.57-4.39A36.67,36.67,0,0,0,164,128V64A36,36,0,0,0,95,49.66a4,4,0,0,1-7.34-3.2Z"}))]]),Mj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"}),c.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"}))]]),Cj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,28H160a20,20,0,0,0-20,20V208a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V48A20,20,0,0,0,200,28Zm-4,176H164V52h32ZM96,28H56A20,20,0,0,0,36,48V208a20,20,0,0,0,20,20H96a20,20,0,0,0,20-20V48A20,20,0,0,0,96,28ZM92,204H60V52H92Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,48V208a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8h40A8,8,0,0,1,208,48ZM96,40H56a8,8,0,0,0-8,8V208a8,8,0,0,0,8,8H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z",opacity:"0.2"}),c.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,34H160a14,14,0,0,0-14,14V208a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V48A14,14,0,0,0,200,34Zm2,174a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2h40a2,2,0,0,1,2,2ZM96,34H56A14,14,0,0,0,42,48V208a14,14,0,0,0,14,14H96a14,14,0,0,0,14-14V48A14,14,0,0,0,96,34Zm2,174a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H96a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,32H160a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm0,176H160V48h40ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Zm0,176H56V48H96Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,36H160a12,12,0,0,0-12,12V208a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V48A12,12,0,0,0,200,36Zm4,172a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4ZM96,36H56A12,12,0,0,0,44,48V208a12,12,0,0,0,12,12H96a12,12,0,0,0,12-12V48A12,12,0,0,0,96,36Zm4,172a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H96a4,4,0,0,1,4,4Z"}))]]),Tj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),c.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),Vj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M234.39,87.29c-57.67-57.72-155.11-57.72-212.78,0-21.45,21.47-23.52,53.13-5,77a20,20,0,0,0,22.92,6.37L88.4,153.29l.45-.16A20,20,0,0,0,101,138.47l5.44-27.24a72.48,72.48,0,0,1,42.76-.09L155,138.62a20,20,0,0,0,12.14,14.49l.45.17,48.94,17.37a20,20,0,0,0,22.91-6.37C257.91,140.42,255.84,108.76,234.39,87.29Zm-12.23,59.9L178,131.5,172.24,104a20,20,0,0,0-13-14.8,96.49,96.49,0,0,0-62.94.14A20,20,0,0,0,83.4,104.24L78,131.53,33.84,147.19c-9.16-13.85-7.41-30.77,4.73-42.92C62.81,80,95.41,67.88,128,67.88S193.19,80,217.43,104.27C229.57,116.42,231.32,133.35,222.16,147.19ZM228,200a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,200Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230,157a8,8,0,0,1-9.26,2.47L171.58,142a8,8,0,0,1-4.86-5.8l-6.21-29.74a7.94,7.94,0,0,0-5.14-5.9,84.39,84.39,0,0,0-55.1.13,7.93,7.93,0,0,0-5.12,6l-5.9,29.51A8,8,0,0,1,84.38,142L35.29,159.42A8,8,0,0,1,26,157c-14.6-18.83-13.26-43.83,4-61.12,53.11-53.11,142.77-53.11,195.88,0C243.23,113.12,244.57,138.12,230,157Z",opacity:"0.2"}),c.createElement("path",{d:"M231.59,90.13h0C175.44,34,80.56,34,24.41,90.13c-20,20-21.92,49.49-4.69,71.71A16,16,0,0,0,32.35,168a15.8,15.8,0,0,0,5.75-1.08l49-17.37.29-.11a16,16,0,0,0,9.75-11.73l5.9-29.52a76.52,76.52,0,0,1,49.68-.11h0l6.21,29.75a16,16,0,0,0,9.72,11.59l.29.11,49,17.39a16,16,0,0,0,18.38-5.06C253.51,139.62,251.58,110.13,231.59,90.13ZM223.67,152l-.3-.12-48.82-17.33-6.21-29.74A16,16,0,0,0,158,93a92.56,92.56,0,0,0-60.34.13,16,16,0,0,0-10.32,12l-5.9,29.51L32.63,151.86c-.1,0-.17.13-.27.17-12.33-15.91-11-36.23,3.36-50.58,25-25,58.65-37.53,92.28-37.53s67.27,12.51,92.28,37.53C234.61,115.8,236,136.12,223.67,152Zm.32,48a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,200Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.28,161.84a16,16,0,0,1-18.38,5.06l-49-17.39-.29-.11a16,16,0,0,1-9.72-11.59l-6.21-29.75h0a76.52,76.52,0,0,0-49.68.11l-5.9,29.52a16,16,0,0,1-9.75,11.73l-.29.11-49,17.37A15.8,15.8,0,0,1,32.35,168a16,16,0,0,1-12.63-6.14c-17.23-22.22-15.3-51.71,4.69-71.71,56.15-56.17,151-56.17,207.18,0h0C251.58,110.13,253.51,139.62,236.28,161.84ZM216,192H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.19,91.55h0c-55.39-55.4-149-55.4-204.38,0C6.56,110.82,4.7,139.22,21.29,160.61A14,14,0,0,0,37.39,165l49-17.38.22-.09a13.93,13.93,0,0,0,8.53-10.25l5.9-29.52a1.93,1.93,0,0,1,1.21-1.47,78.53,78.53,0,0,1,51.18-.11,1.93,1.93,0,0,1,1.22,1.45l6.21,29.75a14,14,0,0,0,8.5,10.14l.23.08,49,17.4a14,14,0,0,0,16.1-4.42C251.3,139.22,249.44,110.82,230.19,91.55Zm-5,61.71a2,2,0,0,1-2.29.58l-.22-.09-49-17.38A2,2,0,0,1,172.6,135l-6.22-29.74a14,14,0,0,0-9.06-10.35,90.53,90.53,0,0,0-59,.13,14,14,0,0,0-9,10.45L83.37,135a2,2,0,0,1-1.15,1.44L33.28,153.75l-.22.09a2,2,0,0,1-2.29-.58c-13-16.74-11.56-38.12,3.53-53.22,25.39-25.4,59.55-38.1,93.7-38.1s68.31,12.7,93.7,38.1C236.79,115.14,238.21,136.52,225.23,153.26ZM222,200a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,200Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.59,90.13h0C175.44,34,80.56,34,24.41,90.13c-20,20-21.92,49.49-4.69,71.71A16,16,0,0,0,32.35,168a15.8,15.8,0,0,0,5.75-1.08l49-17.37.29-.11a16,16,0,0,0,9.75-11.73l5.9-29.52a76.52,76.52,0,0,1,49.68-.11h0l6.21,29.75a16,16,0,0,0,9.72,11.59l.29.11,49,17.39a16,16,0,0,0,18.38-5.06C253.51,139.62,251.58,110.13,231.59,90.13ZM223.67,152l-.3-.12-48.82-17.33-6.21-29.74A16,16,0,0,0,158,93a92.56,92.56,0,0,0-60.34.13,16,16,0,0,0-10.32,12l-5.9,29.51L32.63,151.86c-.1,0-.17.13-.27.17-12.33-15.91-11-36.23,3.36-50.58,25-25,58.65-37.53,92.28-37.53s67.27,12.51,92.28,37.53C234.61,115.8,236,136.12,223.67,152Zm.32,48a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,200Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.79,93C174.15,38.34,81.85,38.34,27.21,93,8.69,111.5,6.9,138.81,22.85,159.39a12,12,0,0,0,13.83,3.77l49-17.39.15-.06a12,12,0,0,0,7.31-8.79l5.9-29.51a3.93,3.93,0,0,1,2.51-3,80.59,80.59,0,0,1,52.5-.12,3.94,3.94,0,0,1,2.52,2.94L162.81,137a12,12,0,0,0,7.29,8.69l.15.06,49.07,17.41a12,12,0,0,0,13.83-3.77C249.1,138.81,247.31,111.5,228.79,93Zm-2,61.51a4,4,0,0,1-4.61,1.21l-.15-.06L173,138.24a4,4,0,0,1-2.37-2.87l-6.21-29.75a12,12,0,0,0-7.75-8.87,88.63,88.63,0,0,0-57.74.14,12,12,0,0,0-7.72,9l-5.9,29.51A4,4,0,0,1,83,138.26l-49,17.38-.15.06a4,4,0,0,1-4.61-1.21c-13.42-17.3-11.9-40.26,3.69-55.85C58.65,72.85,93.33,60,128,60s69.35,12.89,95.13,38.68C238.71,114.23,240.24,137.19,226.82,154.49ZM220,200a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,200Z"}))]]),Lj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),c.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),Zj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240.49,15.51a12,12,0,0,0-17,0L173.94,65.09l-2.54-2.55a36.05,36.05,0,0,0-50.91,0L100,83l-3.51-3.52a12,12,0,0,0-17,17L83,100,62.54,120.49a36,36,0,0,0,0,50.91l2.55,2.54L15.51,223.51a12,12,0,0,0,17,17l49.57-49.58,2.54,2.55a36.06,36.06,0,0,0,50.91,0L156,173l3.51,3.52a12,12,0,0,0,17-17L173,156l20.49-20.49a36,36,0,0,0,0-50.91l-2.55-2.54,49.58-49.57A12,12,0,0,0,240.49,15.51Zm-121.95,161a12,12,0,0,1-17,0L79.51,154.43a12,12,0,0,1,0-17L100,117l39,39Zm58-57.95h0L156,139l-39-39,20.49-20.49a12,12,0,0,1,17,0l22.06,22.06a12,12,0,0,1,0,17ZM85.27,33.37a12,12,0,0,1,21.46-10.74l8,16A12,12,0,1,1,93.27,49.37Zm-68,57.26a12,12,0,0,1,16.1-5.36l16,8a12,12,0,1,1-10.74,21.46l-16-8A12,12,0,0,1,17.27,90.63Zm221.46,74.74a12,12,0,0,1-16.1,5.36l-16-8a12,12,0,0,1,10.74-21.46l16,8A12,12,0,0,1,238.73,165.37Zm-68,57.26a12,12,0,1,1-21.46,10.74l-8-16a12,12,0,0,1,21.46-10.74Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M185,127,127,185a24,24,0,0,1-33.94,0L71,162.91A24,24,0,0,1,71,129L129,71a24,24,0,0,1,33.94,0L185,93.09A24,24,0,0,1,185,127Z",opacity:"0.2"}),c.createElement("path",{d:"M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32.06,32.06,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94h0L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22a16,16,0,0,1,0,22.63ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM29,103.43l20,8A8,8,0,1,0,55,96.57l-20-8A8,8,0,0,0,29,103.43ZM227,152.57l-20-8A8,8,0,1,0,201,159.43l20,8A8,8,0,0,0,227,152.57ZM159.43,201A8,8,0,0,0,144.57,207l8,20A8,8,0,1,0,167.43,221ZM237.91,18.52a8,8,0,0,0-11.5-.18L174,70.75l-5.38-5.38a32,32,0,0,0-45.28,0L106.14,82.54a4,4,0,0,0,0,5.66l61.7,61.66a4,4,0,0,0,5.66,0l16.74-16.74a32.76,32.76,0,0,0,9.81-22.52,31.82,31.82,0,0,0-9.37-23.17l-5.38-5.37,52.2-52.17A8.22,8.22,0,0,0,237.91,18.52ZM85.64,90.34a8,8,0,0,0-11.49.18,8.22,8.22,0,0,0,.41,11.37L80.67,108,65.34,123.31A31.82,31.82,0,0,0,56,146.47,32.75,32.75,0,0,0,65.77,169l5,4.94L18.49,226.13a8.21,8.21,0,0,0-.61,11.1,8,8,0,0,0,11.72.43L82,185.25l5.37,5.38a32.1,32.1,0,0,0,45.29,0L148,175.31l6.34,6.35a8,8,0,0,0,11.32-11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.24,19.76a6,6,0,0,0-8.48,0L173.94,73.57l-6.79-6.78a30,30,0,0,0-42.42,0L100,91.51l-7.76-7.75a6,6,0,0,0-8.48,8.48L91.51,100,66.79,124.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l53.82-53.81,6.79,6.78a30,30,0,0,0,42.42,0L156,164.49l7.76,7.75a6,6,0,0,0,8.48-8.48L164.49,156l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,53.81-53.82A6,6,0,0,0,236.24,19.76Zm-113.45,161a18,18,0,0,1-25.46,0L75.27,158.67a18,18,0,0,1,0-25.46L100,108.49,147.51,156Zm57.94-57.94L156,147.51,108.49,100l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46ZM90.43,34.23a6,6,0,0,1,11.14-4.46l8,20a6,6,0,1,1-11.14,4.46Zm-64,59.54a6,6,0,0,1,7.8-3.34l20,8a6,6,0,1,1-4.46,11.14l-20-8A6,6,0,0,1,26.43,93.77Zm203.14,68.46a6,6,0,0,1-7.8,3.34l-20-8a6,6,0,0,1,4.46-11.14l20,8A6,6,0,0,1,229.57,162.23Zm-64,59.54a6,6,0,1,1-11.14,4.46l-8-20a6,6,0,0,1,11.14-4.46Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M237.66,18.34a8,8,0,0,0-11.32,0l-52.4,52.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L100,88.69l-6.34-6.35A8,8,0,0,0,82.34,93.66L88.69,100,65.37,123.31a32,32,0,0,0,0,45.26l5.38,5.37-52.41,52.4a8,8,0,0,0,11.32,11.32l52.4-52.41,5.37,5.38a32,32,0,0,0,45.26,0L156,167.31l6.34,6.35a8,8,0,0,0,11.32-11.32L167.31,156l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,52.41-52.4A8,8,0,0,0,237.66,18.34Zm-116.29,161a16,16,0,0,1-22.62,0L76.69,157.25a16,16,0,0,1,0-22.62L100,111.31,144.69,156Zm57.94-57.94L156,144.69,111.31,100l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,179.31,121.37ZM88.57,35A8,8,0,0,1,103.43,29l8,20A8,8,0,0,1,96.57,55ZM24.57,93A8,8,0,0,1,35,88.57l20,8A8,8,0,0,1,49,111.43l-20-8A8,8,0,0,1,24.57,93ZM231.43,163a8,8,0,0,1-10.4,4.46l-20-8A8,8,0,1,1,207,144.57l20,8A8,8,0,0,1,231.43,163Zm-64,58.06A8,8,0,0,1,152.57,227l-8-20A8,8,0,0,1,159.43,201Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M234.83,21.17a4,4,0,0,0-5.66,0L173.94,76.4l-8.2-8.2a28,28,0,0,0-39.6,0L100,94.34l-9.17-9.17a4,4,0,0,0-5.66,5.66L94.34,100,68.2,126.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L82.06,179.6l8.2,8.2a28,28,0,0,0,39.6,0L156,161.66l9.17,9.17a4,4,0,0,0,5.66-5.66L161.66,156l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,55.23-55.23A4,4,0,0,0,234.83,21.17Zm-110.63,161a20,20,0,0,1-28.28,0L73.86,160.08a20,20,0,0,1,0-28.28L100,105.66,150.34,156Zm57.94-57.94L156,150.34,105.66,100,131.8,73.86a20,20,0,0,1,28.28,0l22.06,22.06A20,20,0,0,1,182.14,124.2ZM92.29,33.49a4,4,0,1,1,7.42-3l8,20a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,104,56a4,4,0,0,1-3.71-2.51Zm-64,61a4,4,0,0,1,5.2-2.22l20,8A4,4,0,0,1,52,108a3.91,3.91,0,0,1-1.49-.29l-20-8A4,4,0,0,1,28.29,94.51Zm199.42,67A4,4,0,0,1,224,164a3.91,3.91,0,0,1-1.49-.29l-20-8a4,4,0,1,1,3-7.42l20,8A4,4,0,0,1,227.71,161.49Zm-64,61a4,4,0,0,1-2.22,5.2A3.91,3.91,0,0,1,160,228a4,4,0,0,1-3.71-2.51l-8-20a4,4,0,0,1,7.42-3Z"}))]]),Hj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),Dj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"}),c.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"}))]]),Rj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),kj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),c.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),_j=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),Oj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),zj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),c.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),Bj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),Uj=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Fj=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),fe=c.forwardRef((a,n)=>{const{alt:i,color:o,size:u,weight:f,mirrored:h,children:p,weights:x,...g}=a,{color:y="currentColor",size:b,weight:j="regular",mirrored:S=!1,...E}=c.useContext(Fj);return c.createElement("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:u??b,height:u??b,fill:o??y,viewBox:"0 0 256 256",transform:h||S?"scale(-1, 1)":void 0,...E,...g},!!i&&c.createElement("title",null,i),p,x.get(f??j))});fe.displayName="IconBase";const k6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:W9}));k6.displayName="AddressBookIcon";const C1=k6,_6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:I9}));_6.displayName="ArrowClockwiseIcon";const T1=_6,O6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:ej}));O6.displayName="ArrowLeftIcon";const fi=O6,z6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:tj}));z6.displayName="BrainIcon";const h8=z6,B6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:aj}));B6.displayName="CalendarIcon";const U6=B6,F6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:nj}));F6.displayName="CaretDownIcon";const q6=F6,$6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:lj}));$6.displayName="CaretLeftIcon";const qj=$6,Y6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:sj}));Y6.displayName="CaretRightIcon";const G6=Y6,X6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:ij}));X6.displayName="CaretUpIcon";const $j=X6,P6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:rj}));P6.displayName="ChatIcon";const Yj=P6,K6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:oj}));K6.displayName="CheckIcon";const Gj=K6,Q6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:cj}));Q6.displayName="CheckCircleIcon";const Xj=Q6,J6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:uj}));J6.displayName="CircleNotchIcon";const Bt=J6,W6=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:dj}));W6.displayName="ClockCounterClockwiseIcon";const I6=W6,ep=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:fj}));ep.displayName="DownloadIcon";const Pj=ep,tp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:mj}));tp.displayName="DownloadSimpleIcon";const Kj=tp,ap=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:hj}));ap.displayName="EnvelopeIcon";const Qj=ap,np=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:pj}));np.displayName="EyeIcon";const V1=np,lp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:xj}));lp.displayName="FilePdfIcon";const L1=lp,sp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:gj}));sp.displayName="FlowArrowIcon";const ip=sp,rp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:bj}));rp.displayName="GearIcon";const Bu=rp,op=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:yj}));op.displayName="HouseIcon";const Jj=op,cp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:vj}));cp.displayName="InfoIcon";const Wj=cp,up=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:jj}));up.displayName="KanbanIcon";const dp=up,fp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Aj}));fp.displayName="LightningIcon";const so=fp,mp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Sj}));mp.displayName="ListChecksIcon";const li=mp,hp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:wj}));hp.displayName="MagnifyingGlassIcon";const Xn=hp,pp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Ej}));pp.displayName="MicrophoneIcon";const xp=pp,gp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Nj}));gp.displayName="MicrophoneSlashIcon";const bp=gp,yp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Mj}));yp.displayName="PaperPlaneRightIcon";const p8=yp,vp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Cj}));vp.displayName="PauseIcon";const Ij=vp,jp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Tj}));jp.displayName="PencilSimpleIcon";const Ap=jp,Sp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Vj}));Sp.displayName="PhoneDisconnectIcon";const eA=Sp,wp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Lj}));wp.displayName="PlayIcon";const Ep=wp,Np=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Zj}));Np.displayName="PlugsConnectedIcon";const Mp=Np,Cp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Hj}));Cp.displayName="PlusIcon";const Ut=Cp,Tp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Dj}));Tp.displayName="RobotIcon";const Vp=Tp,Lp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Rj}));Lp.displayName="ShieldCheckIcon";const Zp=Lp,Hp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:kj}));Hp.displayName="StarIcon";const tA=Hp,Dp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:_j}));Dp.displayName="TrashIcon";const Pn=Dp,Rp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Oj}));Rp.displayName="UploadSimpleIcon";const aA=Rp,kp=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:zj}));kp.displayName="WarningIcon";const nA=kp,_p=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Bj}));_p.displayName="XIcon";const io=_p,Op=c.forwardRef((a,n)=>c.createElement(fe,{ref:n,...a,weights:Uj}));Op.displayName="XCircleIcon";const lA=Op,Uu=new EventTarget;function he(a,n){Uu.dispatchEvent(new CustomEvent("toast",{detail:{type:a,message:n}}))}const sA={success:"border-matrix/30 bg-matrix/10 text-matrix",error:"border-critical/30 bg-critical/10 text-critical",info:"border-cyber/30 bg-cyber/10 text-cyber"};function iA(){const[a,n]=c.useState([]);c.useEffect(()=>{const o=u=>{const{type:f,message:h}=u.detail,p=crypto.randomUUID();n(x=>[...x.slice(-4),{id:p,type:f,message:h}]),setTimeout(()=>{n(x=>x.filter(g=>g.id!==p))},5e3)};return Uu.addEventListener("toast",o),()=>Uu.removeEventListener("toast",o)},[]);const i=o=>{n(u=>u.filter(f=>f.id!==o))};return s.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:s.jsx($7,{children:a.map(o=>s.jsxs(R6.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},className:`flex items-center gap-2 px-4 py-3 rounded-lg border text-sm ${sA[o.type]}`,children:[s.jsx("span",{className:"flex-1",children:o.message}),s.jsx("button",{onClick:()=>i(o.id),className:"opacity-60 hover:opacity-100",children:s.jsx(io,{size:14})})]},o.id))})})}function ye(a,n=[]){const[i,o]=c.useState(null),[u,f]=c.useState(!!a),[h,p]=c.useState(null),[x,g]=c.useState(0),y=c.useCallback(()=>g(b=>b+1),[]);return c.useEffect(()=>{if(!a)return;let b=!1;return f(!0),de(a).then(j=>{b||(o(j.data),p(null))}).catch(j=>{b||p(j.message)}).finally(()=>{b||f(!1)}),()=>{b=!0}},[a,x,...n]),{data:i,loading:u,error:h,refetch:y}}let Tt=null,cu=null;const Fu=new Set,rA=3e3;function oA(){const a=yn(),n=window.location.protocol==="https:"?"wss:":"ws:",i=window.location.host;return`${n}//${i}/ws?token=${a}`}function Z1(){if(!((Tt==null?void 0:Tt.readyState)===WebSocket.OPEN||(Tt==null?void 0:Tt.readyState)===WebSocket.CONNECTING||!yn()))try{Tt=new WebSocket(oA()),Tt.onmessage=n=>{try{const i=JSON.parse(n.data);for(const o of Fu)o(i.type,i.data)}catch{}},Tt.onclose=()=>{Tt=null,x8()},Tt.onerror=()=>{Tt==null||Tt.close()}}catch{x8()}}function x8(){cu||(cu=setTimeout(()=>{cu=null,Z1()},rA))}function zp(a){return Fu.add(a),()=>Fu.delete(a)}function ja(a){const[n,i]=c.useState(0);return c.useEffect(()=>(Z1(),zp(o=>{a.includes(o)&&i(u=>u+1)})),[a.join(",")]),n}function cA(a){const n=c.useRef(a);c.useEffect(()=>{n.current=a}),c.useEffect(()=>(Z1(),zp((i,o)=>{n.current(i,o)})),[])}function uA(){cA(c.useCallback((a,n)=>{const i=n;switch(a){case"task:completed":he("success",`Task completed${i!=null&&i.taskId?` (${i.taskId.slice(0,8)})`:""}`);break;case"task:failed":he("error",`Task failed: ${(i==null?void 0:i.error)||"Unknown error"}`);break;case"cloud:connected":he("info","Connected to cloud");break;case"cloud:disconnected":he("error",`Disconnected: ${(i==null?void 0:i.reason)||"Unknown"}`);break}},[]))}function dA({children:a}){return s.jsx(R6.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.15,ease:"easeOut"},className:"h-full",children:a})}const g8=[{path:"/",label:"Dashboard",icon:Jj,group:"work"},{path:"/agents",label:"Agents",icon:Vp,group:"work"},{path:"/projects",label:"Projects",icon:dp,group:"work"},{path:"/tasks",label:"Tasks",icon:li,group:"work"},{path:"/activity",label:"Activity",icon:I6,group:"work"},{path:"/schedules",label:"Schedules",icon:U6,group:"work",enterpriseOnly:!0},{path:"/contacts",label:"Contacts",icon:C1,group:"work"},{path:"/workflows",label:"Workflows",icon:ip,group:"manage"},{path:"/automations",label:"Automations",icon:so,group:"manage",enterpriseOnly:!0},{path:"/connections",label:"Connections",icon:Mp,group:"manage",enterpriseOnly:!0},{path:"/approvals",label:"Approvals",icon:Zp,group:"manage",enterpriseOnly:!0},{path:"/pdf-tools",label:"PDF Tools",icon:L1,group:"manage"},{path:"/chat",label:"Chat",icon:Yj,group:"manage"},{path:"/settings",label:"Settings",icon:Bu,group:"manage"}];function fA(a){const n=Math.floor(a/3600),i=Math.floor(a%3600/60);return n>0?`${n}h ${i}m`:`${i}m`}function mA(){const a=va(),{data:n}=ye("/health"),{tier:i,modelReady:o,loading:u}=Gl();uA();const[f,h]=c.useState(()=>{try{return localStorage.getItem("ohwow-model-banner-dismissed")==="1"}catch{return!1}}),p=!u&&i==="free"&&!o&&!f,x=()=>{h(!0);try{localStorage.setItem("ohwow-model-banner-dismissed","1")}catch{}},g=u?g8:g8.filter(S=>!S.enterpriseOnly||i==="enterprise"),y=g.filter(S=>S.group==="work"),b=g.filter(S=>S.group==="manage"),j=({path:S,label:E,icon:M})=>{const w=S==="/"?a.pathname==="/"||a.pathname==="":a.pathname.startsWith(S);return s.jsxs(Yn,{to:S,"data-testid":`runtime-nav-${E.toLowerCase()}`,className:`flex items-center gap-3 px-4 py-1.5 mx-2 rounded-md text-sm transition-colors ${w?"bg-panel text-cyber font-medium":"text-muted hover:text-white hover:bg-panel/50"}`,children:[s.jsx(M,{size:18,weight:w?"fill":"regular"}),E]},S)};return s.jsxs("div",{className:"flex h-screen bg-void text-white",children:[s.jsxs("aside",{className:"w-56 shrink-0 border-r border-border bg-terminal flex flex-col",children:[s.jsxs("div",{className:"px-4 py-4 border-b border-border",children:[s.jsxs("h1",{className:"text-lg font-bold tracking-tight",children:[s.jsx("span",{className:"text-cyber",children:"ohwow"}),s.jsx("span",{className:"text-muted ml-1 text-sm font-normal",children:"runtime"})]}),n&&s.jsxs("div",{className:"flex items-center gap-2 mt-1.5 text-xs text-muted",children:[s.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${n.status==="healthy"?"bg-matrix":"bg-warning"}`}),s.jsxs("span",{children:["v",n.version]}),s.jsx("span",{className:"text-border",children:"|"}),s.jsx("span",{children:fA(n.uptime)})]})]}),s.jsxs("nav",{className:"flex-1 py-2 overflow-y-auto",children:[s.jsx("p",{className:"px-4 pt-2 pb-1 text-[10px] font-semibold uppercase tracking-wider text-muted/60",children:"Work"}),y.map(j),s.jsx("p",{className:"px-4 pt-4 pb-1 text-[10px] font-semibold uppercase tracking-wider text-muted/60",children:"Manage"}),b.map(j)]}),s.jsxs("div",{className:"px-4 py-3 border-t border-border text-xs text-muted flex items-center gap-2",children:[!u&&s.jsx("span",{"data-testid":"runtime-tier-badge",className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium ${i==="free"?"bg-warning/15 text-warning":"bg-matrix/15 text-matrix"}`,children:i==="free"?"Free tier":"Enterprise"}),s.jsx("span",{children:"Local runtime"})]})]}),s.jsxs("main",{className:"flex-1 overflow-y-auto",children:[p&&s.jsxs("div",{className:"bg-warning/10 border-b border-warning/20 px-6 py-2.5 flex items-center justify-between",children:[s.jsxs("p",{className:"text-sm text-warning",children:["No AI model set up yet. Head to"," ",s.jsx(Yn,{to:"/settings",className:"underline hover:text-white",children:"Settings"})," ","to download one."]}),s.jsx("button",{onClick:x,className:"text-warning/60 hover:text-warning text-sm ml-4","aria-label":"Dismiss",children:"✕"})]}),s.jsx(P8,{children:s.jsx(dA,{children:s.jsx(A5,{})},a.pathname)})]})]})}function hA(){const[a,n]=c.useState(""),[i,o]=c.useState(""),[u,f]=c.useState(!1),h=ii(),p=async x=>{if(x.preventDefault(),!!a.trim()){f(!0),o("");try{pu(a.trim()),await de("/api/session"),h("/",{replace:!0})}catch{o("Invalid session token. Check your terminal for the correct token."),pu("")}finally{f(!1)}}};return s.jsx("div",{className:"min-h-screen bg-void flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-sm",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsxs("h1",{className:"text-2xl font-bold",children:[s.jsx("span",{className:"text-cyber",children:"ohwow"}),s.jsx("span",{className:"text-muted ml-1",children:"runtime"})]}),s.jsx("p",{className:"text-sm text-muted mt-2",children:"Enter the session token from your terminal to connect."})]}),s.jsxs("form",{onSubmit:p,className:"space-y-4",children:[s.jsx("div",{children:s.jsx("input",{type:"text",value:a,onChange:x=>n(x.target.value),placeholder:"Paste session token here",autoFocus:!0,className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber transition-colors font-mono"})}),i&&s.jsx("p",{className:"text-xs text-critical",children:i}),s.jsx("button",{type:"submit",disabled:u||!a.trim(),className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 py-3 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Connecting...":"Connect"})]})]})})}function pA(){const[a,n]=c.useState({screen:"splash",status:null,selectedModel:null,loading:!1,downloading:!1,downloadPercent:0,downloadMessage:"",setupMessage:"",error:null,completed:!1,businessName:"",businessType:"",businessDescription:"",founderPath:"",founderFocus:"",modelAvailable:!1,chatMessages:[],chatStreaming:!1,presets:[],selectedAgentIds:new Set}),i=c.useRef(null);c.useEffect(()=>()=>{var B;(B=i.current)==null||B.abort()},[]);const o=c.useCallback(async()=>{n(B=>({...B,loading:!0,error:null}));try{const B=await fetch("/api/onboarding/status");if(!B.ok)throw new Error("Could not detect hardware");const{data:z}=await B.json();return n(Q=>({...Q,status:z,selectedModel:z.recommendation,loading:!1})),z}catch(B){return n(z=>({...z,loading:!1,error:B instanceof Error?B.message:"Something went wrong"})),null}},[]),u=c.useCallback(async()=>{n(B=>({...B,screen:"model"})),a.status||await o()},[a.status,o]),f=c.useCallback(B=>{n(z=>({...z,selectedModel:B}))},[]),h=async(B,z,Q)=>{const J=B.body.getReader(),W=new TextDecoder;let re="";try{for(;;){if(Q!=null&&Q.aborted){J.cancel();return}const{done:le,value:K}=await J.read();if(le)break;re+=W.decode(K,{stream:!0});const te=re.split(`
|
|
70
|
-
`);re=te.pop()||"";for(const R of te)if(R.startsWith("data: ")){const _=R.slice(6).trim();if(_==="[DONE]")return;try{z(JSON.parse(_))}catch{}}}}finally{J.releaseLock()}},p=c.useCallback(async()=>{const B=a.selectedModel;if(!B||i.current)return;const z=new AbortController;i.current=z,n(Q=>({...Q,downloading:!0,downloadPercent:0,downloadMessage:"",setupMessage:"Setting things up...",error:null}));try{const Q=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:z.signal});if(!Q.ok||!Q.body)throw new Error("Could not set up Ollama");await h(Q,W=>{if(n(re=>({...re,setupMessage:W.message})),W.error)throw new Error(W.error)},z.signal),n(W=>({...W,setupMessage:"",downloadMessage:"Starting download..."}));const J=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:B.tag}),signal:z.signal});if(!J.ok||!J.body)throw new Error("Could not start download");await h(J,W=>{if(n(re=>({...re,downloadMessage:W.message,downloadPercent:W.percent??re.downloadPercent})),W.error)throw new Error(W.error)},z.signal),n(W=>({...W,downloading:!1,downloadPercent:100,downloadMessage:"Download complete",modelAvailable:!0,screen:"business_info"}))}catch(Q){if(z.signal.aborted)return;n(J=>({...J,downloading:!1,setupMessage:"",error:Q instanceof Error?Q.message:"Something went wrong"}))}finally{i.current=null}},[a.selectedModel]),x=c.useCallback(()=>{n(B=>({...B,screen:"business_info",selectedModel:null,modelAvailable:!1}))},[]),g=c.useCallback(B=>{n(z=>({...z,businessName:B}))},[]),y=c.useCallback(B=>{n(z=>({...z,businessType:B}))},[]),b=c.useCallback(B=>{n(z=>({...z,businessDescription:B}))},[]),j=c.useCallback(()=>{n(B=>({...B,screen:"business_info"}))},[]),S=c.useCallback(B=>{n(z=>({...z,founderPath:B}))},[]),E=c.useCallback(B=>{n(z=>({...z,founderFocus:B}))},[]),M=c.useCallback(()=>{n(B=>({...B,screen:"founder_stage"}))},[]),w=c.useCallback(async()=>{const B=a.businessType||"saas_startup";try{const z=await fetch(`/api/onboarding/presets?businessType=${B}`);if(z.ok){const{data:Q}=await z.json();n(J=>({...J,screen:"agent_discovery",presets:Q.presets,selectedAgentIds:new Set(Q.recommended.map(W=>W.id))}))}else n(Q=>({...Q,screen:"agent_discovery"}))}catch{n(z=>({...z,screen:"agent_discovery"}))}try{const z=await fetch("/api/onboarding/model-available");if(z.ok){const{data:Q}=await z.json();n(J=>({...J,modelAvailable:Q.available})),Q.available&&a.chatMessages.length===0&&N([])}}catch{}},[a.businessType,a.chatMessages.length,N]),N=c.useCallback(async B=>{n(z=>({...z,chatStreaming:!0}));try{const z=await fetch("/api/onboarding/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:B,businessType:a.businessType||"saas_startup",founderPath:a.founderPath||"exploring",founderFocus:a.founderFocus||""})});if(!z.ok||!z.body)throw new Error("Chat unavailable");let Q="";const J=z.body.getReader(),W=new TextDecoder;let re="";for(;;){const{done:le,value:K}=await J.read();if(le)break;re+=W.decode(K,{stream:!0});const te=re.split(`
|
|
71
|
-
`);re=te.pop()||"";for(const R of te)if(R.startsWith("data: ")){const _=R.slice(6).trim();if(_==="[DONE]")continue;try{const I=JSON.parse(_);I.type==="text"&&I.content&&(Q+=I.content)}catch{}}}if(Q){n(K=>({...K,chatMessages:[...K.chatMessages,{role:"assistant",content:Q}],chatStreaming:!1}));const le=Q.match(/```agents\s*\n?([\s\S]*?)```/);if(le)try{const K=JSON.parse(le[1].trim());Array.isArray(K)&&n(te=>({...te,selectedAgentIds:new Set(K.filter(R=>typeof R=="string"&&te.presets.some(_=>_.id===R)))}))}catch{}}else n(le=>({...le,chatStreaming:!1}))}catch{n(z=>({...z,chatStreaming:!1,chatMessages:[...z.chatMessages,{role:"assistant",content:"I ran into an issue connecting to the model. You can pick your agents manually on the next screen."}]}))}},[a.businessType,a.founderPath,a.founderFocus]),C=c.useCallback(B=>{const z={role:"user",content:B};n(J=>({...J,chatMessages:[...J.chatMessages,z]}));const Q=[...a.chatMessages,z];N(Q)},[a.chatMessages,N]),Z=c.useCallback(()=>{n(B=>({...B,screen:"agent_selection"}))},[]),q=c.useCallback(B=>{n(z=>{const Q=new Set(z.selectedAgentIds);return Q.has(B)?Q.delete(B):Q.add(B),{...z,selectedAgentIds:Q}})},[]),$=c.useCallback(()=>{n(B=>({...B,screen:"ready"}))},[]),U=c.useCallback(async()=>{const B=a.selectedModel,z=(B==null?void 0:B.tag)||"qwen3:4b",Q=a.presets.filter(J=>a.selectedAgentIds.has(J.id)).map(J=>({id:J.id,name:J.name,role:J.role,description:J.description,systemPrompt:"",tools:J.tools,department:J.department}));n(J=>({...J,loading:!0,error:null}));try{if(!(await fetch("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelTag:z,businessName:a.businessName,businessType:a.businessType,businessDescription:a.businessDescription,founderPath:a.founderPath,founderFocus:a.founderFocus,agents:Q})})).ok)throw new Error("Could not save config");return n(W=>({...W,loading:!1,completed:!0})),null}catch(J){const W=J instanceof Error?J.message:"Something went wrong";return n(re=>({...re,loading:!1,error:W})),W}},[a.selectedModel,a.businessName,a.businessType,a.businessDescription,a.founderPath,a.founderFocus,a.presets,a.selectedAgentIds]);return{...a,fetchStatus:o,goToModel:u,selectModel:f,startDownload:p,skipDownload:x,setBusinessName:g,setBusinessType:y,setBusinessDescription:b,goToBusinessInfo:j,setFounderPath:S,setFounderFocus:E,goToFounderStage:M,goToAgentDiscovery:w,sendChatMessage:C,goToAgentSelection:Z,toggleAgent:q,goToReady:$,completeOnboarding:U}}function xA({onGetStarted:a}){return s.jsx("div",{"data-testid":"onboarding-splash",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[s.jsx("div",{children:s.jsx("h1",{className:"text-5xl font-bold tracking-tight",children:s.jsx("span",{className:"text-cyber",children:"ohwow"})})}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xl text-white font-medium",children:"Your AI team, running on your machine."}),s.jsx("p",{className:"text-sm text-muted",children:"No account needed. No cloud required."})]}),s.jsx("button",{"data-testid":"onboarding-get-started",onClick:a,className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-3.5 text-base font-medium hover:bg-cyber/20 transition-colors",children:"Get Started"}),s.jsx("p",{className:"text-xs text-muted/60",children:"Free forever for local use"})]})})}function gA({status:a,selectedModel:n,loading:i,downloading:o,downloadPercent:u,downloadMessage:f,setupMessage:h,error:p,onSelectModel:x,onDownload:g,onSkip:y}){const[b,j]=c.useState(!1);if(i||!a)return s.jsx("div",{"data-testid":"onboarding-model-loading",className:"min-h-screen bg-void flex items-center justify-center p-4",children:s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-8 h-8 border-2 border-cyber/30 border-t-cyber rounded-full animate-spin mx-auto"}),s.jsx("p",{className:"text-sm text-muted",children:"Detecting your hardware..."})]})});const S=n?Math.ceil(n.sizeGB*1024/50/60*8):null;return s.jsx("div",{"data-testid":"onboarding-model",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsx("div",{className:"text-center space-y-2",children:s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's download your first AI model"})}),s.jsx("div",{"data-testid":"onboarding-device-summary",className:"bg-panel border border-border rounded-lg px-4 py-3 text-sm text-muted",children:a.deviceSummary}),n&&!o&&s.jsxs("div",{"data-testid":"onboarding-model-hero",className:"bg-panel border border-cyber/20 rounded-lg p-5 space-y-3",children:[s.jsx("div",{className:"flex items-start justify-between",children:s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-lg font-semibold text-white",children:n.label}),n.recommended&&s.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-cyber/10 text-cyber px-2 py-0.5 rounded-full border border-cyber/20",children:"Best for your machine"})]}),s.jsx("p",{className:"text-sm text-muted mt-1",children:n.description})]})}),s.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted",children:[s.jsxs("span",{children:[n.sizeGB," GB download"]}),S&&s.jsxs("span",{children:["~",S," min"]}),s.jsx("span",{children:n.features.join(", ")})]})]}),o&&s.jsxs("div",{"data-testid":"onboarding-download-progress",className:"bg-panel border border-border rounded-lg p-5 space-y-4",children:[h&&s.jsx("p",{className:"text-sm text-muted",children:h}),!h&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsx("span",{className:"text-white",children:n==null?void 0:n.label}),s.jsxs("span",{className:"text-muted",children:[u,"%"]})]}),s.jsx("div",{className:"w-full bg-surface rounded-full h-2 overflow-hidden",children:s.jsx("div",{className:"bg-cyber h-full rounded-full transition-all duration-300",style:{width:`${u}%`}})}),s.jsx("p",{className:"text-xs text-muted truncate",children:f})]})]}),p&&s.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:p}),!o&&s.jsxs("div",{className:"space-y-3",children:[s.jsx("button",{"data-testid":"onboarding-download-btn",onClick:g,disabled:!n,className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-3.5 text-base font-medium hover:bg-cyber/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Download"}),a.alternatives.length>0&&s.jsxs("div",{children:[s.jsx("button",{"data-testid":"onboarding-alternatives-toggle",onClick:()=>j(!b),className:"text-sm text-muted hover:text-white transition-colors",children:b?"Hide other options":"See other options"}),b&&s.jsx("div",{className:"mt-3 space-y-2",children:a.alternatives.map(E=>s.jsxs("button",{onClick:()=>x(E),className:`w-full text-left bg-panel border rounded-lg px-4 py-3 text-sm transition-colors ${(n==null?void 0:n.tag)===E.tag?"border-cyber/30 text-white":"border-border text-muted hover:border-border hover:text-white"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"font-medium",children:E.label}),s.jsxs("span",{className:"text-xs",children:[E.sizeGB," GB"]})]}),s.jsx("p",{className:"text-xs text-muted mt-0.5",children:E.description})]},E.tag))})]}),s.jsx("div",{className:"text-center",children:s.jsx("button",{"data-testid":"onboarding-skip-btn",onClick:y,className:"text-xs text-muted/60 hover:text-muted transition-colors",children:"Skip for now"})})]})]})})}const bA=[{id:"saas_startup",label:"SaaS Startup",tagline:"Ship faster with AI on your side"},{id:"ecommerce",label:"Ecommerce",tagline:"Sell more with less effort"},{id:"agency",label:"Agency",tagline:"Win more clients, deliver better work"},{id:"content_creator",label:"Content Creator",tagline:"Create more, manage less"},{id:"service_business",label:"Service Business",tagline:"Book more jobs, impress every client"},{id:"consulting",label:"Consulting",tagline:"Land engagements, deliver excellence"}];function yA({businessName:a,businessType:n,businessDescription:i,onChangeName:o,onChangeType:u,onChangeDescription:f,onContinue:h,onBack:p}){const x=a.trim().length>0&&n;return s.jsx("div",{"data-testid":"onboarding-business-info",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 3 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Tell us about your business"}),s.jsx("p",{className:"text-sm text-muted",children:"This helps us recommend the right AI agents for you."})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"Business name"}),s.jsx("input",{"data-testid":"onboarding-business-name",type:"text",value:a,onChange:g=>o(g.target.value),onFocus:()=>setFocusedField("name"),placeholder:"e.g. Acme Inc",className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"Business type"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:bA.map(g=>s.jsxs("button",{"data-testid":`onboarding-btype-${g.id}`,onClick:()=>{u(g.id),setFocusedField("type")},className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${n===g.id?"border-cyber bg-cyber/10 text-white":"border-border bg-panel text-muted hover:border-cyber/30 hover:text-white"}`,children:[s.jsx("span",{className:"font-medium block",children:g.label}),s.jsx("span",{className:"text-xs text-muted",children:g.tagline})]},g.id))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"What does your business do? (optional)"}),s.jsx("textarea",{"data-testid":"onboarding-business-desc",value:i,onChange:g=>f(g.target.value),onFocus:()=>setFocusedField("description"),placeholder:"e.g. We help small businesses automate their marketing",rows:2,className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:p,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-business-continue",onClick:h,disabled:!x,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}const vA=[{id:"exploring",label:"Exploring ideas",description:"Still figuring out what to build",icon:"🔍"},{id:"just_starting",label:"Just starting",description:"Building the first version",icon:"🚀"},{id:"no_revenue",label:"Pre-revenue",description:"Launched but not making money yet",icon:"📈"},{id:"making_money",label:"Making money",description:"Revenue is coming in",icon:"💰"}];function jA({founderPath:a,founderFocus:n,onChangePath:i,onChangeFocus:o,onContinue:u,onBack:f}){const h=a.length>0;return s.jsx("div",{"data-testid":"onboarding-founder-stage",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 4 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Where are you in your journey?"}),s.jsx("p",{className:"text-sm text-muted",children:"This helps us prioritize which agents to recommend."})]}),s.jsx("div",{className:"space-y-2",children:vA.map(p=>s.jsxs("button",{"data-testid":`onboarding-path-${p.id}`,onClick:()=>i(p.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors flex items-center gap-3 ${a===p.id?"border-cyber bg-cyber/10 text-white":"border-border bg-panel text-muted hover:border-cyber/30 hover:text-white"}`,children:[s.jsx("span",{className:"text-lg",children:p.icon}),s.jsxs("div",{children:[s.jsx("span",{className:"font-medium block text-sm",children:p.label}),s.jsx("span",{className:"text-xs text-muted",children:p.description})]})]},p.id))}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-muted mb-1.5",children:"What are you focused on right now? (optional)"}),s.jsx("input",{"data-testid":"onboarding-founder-focus",type:"text",value:n,onChange:p=>o(p.target.value),placeholder:"e.g. Getting my first 10 customers",className:"w-full bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-founder-continue",onClick:u,disabled:!h,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}function AA({modelAvailable:a,chatMessages:n,presets:i,onSendMessage:o,onContinue:u,onBack:f,streaming:h}){const[p,x]=c.useState(""),g=c.useRef(null);c.useEffect(()=>{var b;(b=g.current)==null||b.scrollTo({top:g.current.scrollHeight,behavior:"smooth"})},[n]);const y=()=>{!p.trim()||h||(o(p.trim()),x(""))};return a?s.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 5 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Meet your AI advisor"}),s.jsx("p",{className:"text-sm text-muted",children:"Chat to get personalized agent recommendations."})]}),s.jsxs("div",{ref:g,className:"bg-panel border border-border rounded-lg p-4 space-y-3 max-h-64 overflow-y-auto",children:[n.map((b,j)=>s.jsx("div",{className:`${b.role==="user"?"text-right":""}`,children:s.jsx("div",{className:`inline-block rounded-lg px-3 py-2 text-sm max-w-[80%] ${b.role==="user"?"bg-cyber/10 border border-cyber/20 text-white":"bg-terminal border border-border text-white"}`,children:s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:b.content})})},j)),h&&s.jsx("div",{className:"text-muted text-sm animate-pulse",children:"Thinking..."})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{"data-testid":"onboarding-chat-input",type:"text",value:p,onChange:b=>x(b.target.value),onKeyDown:b=>{b.key==="Enter"&&y()},placeholder:"Tell the AI about your priorities...",disabled:h,className:"flex-1 bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber disabled:opacity-50"}),s.jsx("button",{onClick:y,disabled:h||!p.trim(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 text-sm hover:bg-cyber/20 transition-colors disabled:opacity-40",children:"Send"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors",children:n.length>=4?"Continue to selection":"Skip to selection"})]})]})}):s.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 5 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Your recommended agents"}),s.jsx("p",{className:"text-sm text-muted",children:"Based on your business type. You can adjust on the next screen."})]}),s.jsx("div",{className:"space-y-2",children:i.map(b=>s.jsxs("div",{className:`px-4 py-3 rounded-lg border ${b.recommended?"border-cyber/30 bg-cyber/5":"border-border bg-panel"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[b.recommended&&s.jsx("span",{className:"text-cyber text-xs",children:"★"}),s.jsx("span",{className:"font-medium text-sm text-white",children:b.name}),s.jsx("span",{className:"text-xs text-muted",children:b.role})]}),s.jsx("p",{className:"text-xs text-muted mt-1",children:b.description})]},b.id))}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors",children:"Continue to selection"})]})]})})}const SA={web_research:"Web Research",deep_research:"Deep Research",ocr:"OCR",local_crm:"CRM"};function wA({presets:a,selectedIds:n,onToggle:i,onContinue:o,onBack:u}){return s.jsx("div",{"data-testid":"onboarding-agent-selection",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 6 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Choose your agents"}),s.jsx("p",{className:"text-sm text-muted",children:n.size>0?`${n.size} agent${n.size===1?"":"s"} selected`:"Select the agents you want to create"})]}),s.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:a.map(f=>{const h=n.has(f.id);return s.jsx("button",{"data-testid":`onboarding-agent-${f.id}`,onClick:()=>i(f.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors ${h?"border-cyber bg-cyber/10":"border-border bg-panel hover:border-cyber/30"}`,children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:`mt-0.5 w-4 h-4 rounded border flex items-center justify-center shrink-0 ${h?"bg-cyber border-cyber":"border-muted/30"}`,children:h&&s.jsx("svg",{className:"w-2.5 h-2.5 text-void",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"font-medium text-sm text-white",children:f.name}),f.recommended&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-cyber/10 text-cyber border border-cyber/20",children:"Recommended"})]}),s.jsx("p",{className:"text-xs text-muted mt-0.5",children:f.role}),s.jsx("p",{className:"text-xs text-muted/70 mt-1",children:f.description}),f.tools.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:f.tools.map(p=>s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-panel border border-border text-muted",children:SA[p]||p},p))})]})]})},f.id)})}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:u,className:"px-4 py-2.5 text-sm text-muted hover:text-white transition-colors",children:"Back"}),s.jsxs("button",{"data-testid":"onboarding-selection-continue",onClick:o,disabled:n.size===0,className:"flex-1 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-cyber/20 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:["Create ",n.size," agent",n.size===1?"":"s"]})]})]})})}function EA({selectedModel:a,loading:n,error:i,onLaunch:o,businessName:u,agentCount:f}){return s.jsx("div",{"data-testid":"onboarding-ready",className:"min-h-screen bg-void flex flex-col items-center justify-center p-4",children:s.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[s.jsx("div",{className:"space-y-2",children:s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:"Step 7 of 7"})}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-matrix/10 border border-matrix/20 flex items-center justify-center mx-auto",children:s.jsx("svg",{className:"w-6 h-6 text-matrix",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"You're all set."})]}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg px-4 py-3 text-left space-y-2",children:[u&&s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-muted",children:"Business"}),s.jsx("span",{className:"text-white font-medium",children:u})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-muted",children:"Model"}),s.jsx("span",{className:"text-white",children:a?a.label:"None (add later in Settings)"})]}),f!==void 0&&f>0&&s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-muted",children:"Agents"}),s.jsxs("span",{className:"text-white",children:[f," agent",f===1?"":"s"," ready to go"]})]})]}),i&&s.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:i}),s.jsx("button",{"data-testid":"onboarding-launch-btn",onClick:o,disabled:n,className:"w-full bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-6 py-3.5 text-base font-medium hover:bg-cyber/20 transition-colors disabled:opacity-50",children:n?"Saving...":"Open Dashboard"})]})})}function NA({sessionToken:a}){var o;const n=pA();c.useEffect(()=>{n.screen==="model"&&!n.status&&n.fetchStatus()},[n.screen]);const i=async()=>{await n.completeOnboarding()||(a&&pu(a),window.location.href="/ui/")};switch(n.screen){case"splash":return s.jsx(xA,{onGetStarted:n.goToModel});case"model":return s.jsx(gA,{status:n.status,selectedModel:n.selectedModel,loading:n.loading,downloading:n.downloading,downloadPercent:n.downloadPercent,downloadMessage:n.downloadMessage,setupMessage:n.setupMessage,error:n.error,estimatedMinutes:((o=n.status)==null?void 0:o.estimatedMinutes)??null,onSelectModel:n.selectModel,onDownload:n.startDownload,onSkip:n.skipDownload});case"business_info":return s.jsx(yA,{businessName:n.businessName,businessType:n.businessType,businessDescription:n.businessDescription,onChangeName:n.setBusinessName,onChangeType:n.setBusinessType,onChangeDescription:n.setBusinessDescription,onContinue:n.goToFounderStage,onBack:n.goToModel});case"founder_stage":return s.jsx(jA,{founderPath:n.founderPath,founderFocus:n.founderFocus,onChangePath:n.setFounderPath,onChangeFocus:n.setFounderFocus,onContinue:n.goToAgentDiscovery,onBack:n.goToBusinessInfo});case"agent_discovery":return s.jsx(AA,{modelAvailable:n.modelAvailable,businessType:n.businessType,founderPath:n.founderPath,founderFocus:n.founderFocus,chatMessages:n.chatMessages,presets:n.presets,onSendMessage:n.sendChatMessage,onContinue:n.goToAgentSelection,onBack:n.goToFounderStage,streaming:n.chatStreaming});case"agent_selection":return s.jsx(wA,{presets:n.presets,selectedIds:n.selectedAgentIds,onToggle:n.toggleAgent,onContinue:n.goToReady,onBack:n.goToAgentDiscovery});case"ready":return s.jsx(EA,{selectedModel:n.selectedModel,loading:n.loading,error:n.error,onLaunch:i,businessName:n.businessName,agentCount:n.selectedAgentIds.size})}}function kr({label:a,value:n,subtitle:i,color:o="text-white"}){return s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4",children:[s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider",children:a}),s.jsx("p",{className:`text-2xl font-bold mt-1 ${o}`,children:n}),i&&s.jsx("p",{className:"text-xs text-muted mt-0.5",children:i})]})}const MA={idle:"bg-panel text-muted",working:"bg-cyber/15 text-cyber",completed:"bg-matrix/15 text-matrix",approved:"bg-matrix/15 text-matrix",in_progress:"bg-cyber/15 text-cyber",queued:"bg-warning/15 text-warning",needs_approval:"bg-wealth/15 text-wealth",failed:"bg-critical/15 text-critical",rejected:"bg-critical/15 text-critical",active:"bg-matrix/15 text-matrix",paused:"bg-warning/15 text-warning",disabled:"bg-panel text-muted",draft:"bg-warning/15 text-warning",archived:"bg-panel text-muted",executing:"bg-cyber/15 text-cyber",pending:"bg-warning/15 text-warning",error:"bg-critical/15 text-critical",suspended:"bg-warning/15 text-warning",disconnected:"bg-panel text-muted",skipped:"bg-panel text-muted",read_only:"bg-panel text-muted",processed:"bg-matrix/15 text-matrix"};function it({status:a}){const n=MA[a]||"bg-panel text-muted",i=a.replace(/_/g," ");return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium capitalize ${n}`,children:i})}function qu({className:a=""}){return s.jsx("div",{className:`animate-pulse bg-panel rounded ${a}`})}function _r(){return s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4 space-y-2",children:[s.jsx(qu,{className:"h-3 w-20"}),s.jsx(qu,{className:"h-7 w-16"})]})}function at({count:a=5}){return s.jsx("div",{className:"space-y-2",children:Array.from({length:a}).map((n,i)=>s.jsx(qu,{className:"h-12 w-full"},i))})}function nt({title:a,subtitle:n,action:i}){return s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-bold",children:a}),n&&s.jsx("p",{className:"text-sm text-muted mt-0.5",children:n})]}),i]})}function CA(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(0)}K`:String(a)}function TA(){const a=ja(["task:started","task:completed","task:failed"]),{data:n,loading:i}=ye("/api/system/stats",[a]),{data:o}=ye("/api/agents",[a]),{data:u}=ye("/api/tasks?limit=5",[a]);return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(nt,{title:"Dashboard",subtitle:"Runtime overview"}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-8",children:i?s.jsxs(s.Fragment,{children:[s.jsx(_r,{}),s.jsx(_r,{}),s.jsx(_r,{}),s.jsx(_r,{})]}):n?s.jsxs(s.Fragment,{children:[s.jsx(kr,{label:"Agents",value:n.totalAgents,color:"text-cyber"}),s.jsx(kr,{label:"Tasks",value:n.totalTasks,subtitle:`${n.activeTasks} active`}),s.jsx(kr,{label:"Approvals",value:n.pendingApprovals,color:n.pendingApprovals>0?"text-wealth":"text-muted"}),s.jsx(kr,{label:"Tokens",value:CA(n.totalTokens),subtitle:`$${(n.totalCostCents/100).toFixed(2)}`})]}):null}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider",children:"Agents"}),s.jsx(ht,{to:"/agents",className:"text-xs text-cyber hover:underline",children:"View all"})]}),s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:o!=null&&o.length?o.slice(0,5).map(f=>s.jsxs(ht,{to:`/agents/${f.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:f.name}),s.jsx("p",{className:"text-xs text-muted",children:f.role})]}),s.jsx(it,{status:f.status})]},f.id)):s.jsx(at,{count:3})})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider",children:"Recent Tasks"}),s.jsx(ht,{to:"/tasks",className:"text-xs text-cyber hover:underline",children:"View all"})]}),s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:u!=null&&u.length?u.map(f=>s.jsxs(ht,{to:`/tasks/${f.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:f.title}),s.jsx("p",{className:"text-xs text-muted",children:new Date(f.created_at).toLocaleString()})]}),s.jsx(it,{status:f.status})]},f.id)):s.jsx(at,{count:3})})]})]})]})}function jt({icon:a,title:n,description:i,action:o}){return s.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[a&&s.jsx("div",{className:"text-muted mb-3",children:a}),s.jsx("p",{className:"text-sm font-medium text-platinum",children:n}),i&&s.jsx("p",{className:"text-xs text-muted mt-1 max-w-xs",children:i}),o&&s.jsx("div",{className:"mt-4",children:o})]})}function VA(a){if(typeof a=="string")try{return JSON.parse(a)}catch{return{}}return a||{}}function LA(){const a=ja(["task:started","task:completed"]),{data:n,loading:i,refetch:o}=ye("/api/agents",[a]),{tier:u}=Gl(),[f,h]=c.useState(!1),x=u==="free"&&((n==null?void 0:n.length)??0)>=1;return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Agents",subtitle:"Your AI team",action:!i&&!x?s.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-cyan-600 hover:bg-cyan-500 text-white rounded-md transition-colors",children:[s.jsx(Ut,{size:14,weight:"bold"}),"Create Agent"]}):x?s.jsx("span",{className:"text-xs text-muted",children:"Free tier: 1 agent max"}):null}),i?s.jsx(at,{count:4}):n!=null&&n.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:n.map(g=>{const y=VA(g.stats);return s.jsxs(ht,{to:`/agents/${g.id}`,className:"flex items-center justify-between px-4 py-4 hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("p",{className:"text-sm font-medium",children:g.name}),s.jsx(it,{status:g.status})]}),s.jsx("p",{className:"text-xs text-muted mt-0.5",children:g.role})]}),s.jsxs("div",{className:"text-right text-xs text-muted shrink-0",children:[s.jsxs("p",{children:[y.total_tasks||0," tasks"]}),y.cost_cents>0&&s.jsxs("p",{children:["$",(y.cost_cents/100).toFixed(2)]})]})]},g.id)})}):s.jsx(jt,{icon:s.jsx(Vp,{size:32}),title:"No agents yet",description:"Create your first agent to get started.",action:s.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-cyan-600 hover:bg-cyan-500 text-white rounded-md transition-colors",children:[s.jsx(Ut,{size:14,weight:"bold"}),"Create Agent"]})}),f&&s.jsx(ZA,{onClose:()=>h(!1),onCreated:()=>{h(!1),o()}})]})}function ZA({onClose:a,onCreated:n}){const[i,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState(""),[y,b]=c.useState(!1),[j,S]=c.useState(""),E=async M=>{if(M.preventDefault(),!i.trim()||!u.trim()||!h.trim()){S("Name, role, and system prompt are required.");return}b(!0),S("");try{await de("/api/agents",{method:"POST",body:JSON.stringify({name:i.trim(),role:u.trim(),system_prompt:h.trim(),description:x.trim()||null})}),n()}catch(w){S(w instanceof Error?w.message:"Something went wrong. Try again?")}finally{b(!1)}};return s.jsx("div",{className:"fixed inset-0 bg-void/80 flex items-center justify-center z-50",onClick:a,children:s.jsxs("div",{className:"bg-panel border border-border rounded-lg w-full max-w-md p-6",onClick:M=>M.stopPropagation(),children:[s.jsx("h2",{className:"text-lg font-bold mb-4",children:"Create Agent"}),s.jsxs("form",{onSubmit:E,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-muted mb-1",children:"Name"}),s.jsx("input",{type:"text",value:i,onChange:M=>o(M.target.value),placeholder:"e.g. Scout",className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-muted mb-1",children:"Role"}),s.jsx("input",{type:"text",value:u,onChange:M=>f(M.target.value),placeholder:"e.g. Sales Development",className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-muted mb-1",children:"System Prompt"}),s.jsx("textarea",{value:h,onChange:M=>p(M.target.value),placeholder:"Describe what this agent does and how it should behave...",rows:4,className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500 resize-none"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-muted mb-1",children:"Description (optional)"}),s.jsx("input",{type:"text",value:x,onChange:M=>g(M.target.value),placeholder:"Short description for the agent list",className:"w-full px-3 py-2 text-sm bg-surface border border-border rounded-md focus:outline-none focus:border-cyan-500"})]}),j&&s.jsx("p",{className:"text-xs text-red-400",children:j}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-sm text-muted hover:text-platinum transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:y,className:"px-4 py-1.5 text-sm font-medium bg-cyan-600 hover:bg-cyan-500 disabled:opacity-50 text-white rounded-md transition-colors",children:y?"Creating...":"Create"})]})]})]})})}function HA(a){const n=Date.now()-new Date(a).getTime(),i=Math.floor(n/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function DA(){var le;const{id:a}=uo(),n=ja(["task:started","task:completed","task:failed"]),{data:i,loading:o,refetch:u}=ye(a?`/api/agents/${a}`:null,[n]),{data:f}=ye(a?`/api/agents/${a}/memory`:null),{data:h}=ye(a?`/api/tasks?agentId=${a}&limit=50`:null,[n]),[p,x]=c.useState("info"),[g,y]=c.useState(!1),[b,j]=c.useState([]),[S,E]=c.useState(!1),[M,w]=c.useState(!1),[N,C]=c.useState([]),[Z,q]=c.useState(!1);c.useEffect(()=>{de("/api/voice/health").then(()=>(y(!0),de("/api/voice/profiles"))).then(K=>j(K.data||[])).catch(()=>y(!1))},[]);const $=c.useMemo(()=>i?typeof i.config=="string"?JSON.parse(i.config):i.config||{}:{},[i]),U=c.useMemo(()=>i?typeof i.stats=="string"?JSON.parse(i.stats):i.stats||{}:{},[i]),B=c.useMemo(()=>[{key:"model",label:"Model",value:String($.model||"claude-sonnet-4-5")},{key:"temperature",label:"Temperature",value:String($.temperature??"0.7")},{key:"max_tokens",label:"Max tokens",value:String($.max_tokens||"4096")},{key:"requires_approval",label:"Requires approval",value:String($.requires_approval??"no")},{key:"web_search",label:"Web search",value:String($.web_search??"no")}],[$]),z=c.useCallback(async K=>{if(a){E(!0);try{await de(`/api/agents/${a}`,{method:"PATCH",body:JSON.stringify({voice_profile_id:K||null})}),u()}catch{}finally{E(!1)}}},[a,u]),Q=c.useCallback(async()=>{if(!a||!i)return;const K=i.status==="paused"?"idle":"paused";try{await de(`/api/agents/${a}`,{method:"PATCH",body:JSON.stringify({status:K})}),u()}catch{}},[a,i,u]),J=c.useCallback(()=>{C(B.map(K=>({...K}))),w(!0)},[B]),W=c.useCallback(async()=>{if(a){q(!0);try{const K={};for(const te of N)te.value==="true"||te.value==="yes"?K[te.key]=!0:te.value==="false"||te.value==="no"?K[te.key]=!1:!isNaN(Number(te.value))&&te.value!==""?K[te.key]=Number(te.value):K[te.key]=te.value;await de(`/api/agents/${a}`,{method:"PATCH",body:JSON.stringify({config:K})}),w(!1),u()}catch{}finally{q(!1)}}},[a,N,u]);if(o)return s.jsx("div",{className:"p-6",children:s.jsx(at,{count:4})});if(!i)return s.jsx("div",{className:"p-6 text-muted",children:"Agent not found"});const re=[{key:"info",label:"Info",icon:s.jsx(Wj,{size:14})},{key:"tasks",label:"Tasks",icon:s.jsx(li,{size:14}),count:h==null?void 0:h.length},{key:"prompt",label:"Prompt",icon:s.jsx(h8,{size:14})},{key:"config",label:"Config",icon:s.jsx(Bu,{size:14})}];return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(ht,{to:"/agents",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[s.jsx(fi,{size:14})," Back to agents"]}),s.jsx(nt,{title:i.name,subtitle:i.role,action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:Q,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border transition-colors ${i.status==="paused"?"bg-matrix/10 border-matrix/30 text-matrix hover:bg-matrix/20":"bg-warning/10 border-warning/30 text-warning hover:bg-warning/20"}`,children:[i.status==="paused"?s.jsx(Ep,{size:14}):s.jsx(Ij,{size:14}),i.status==="paused"?"Resume":"Pause"]}),s.jsx(it,{status:i.status})]})}),i.description&&s.jsx("p",{className:"text-sm text-muted mb-4",children:i.description}),s.jsx("div",{className:"flex gap-1 mb-6 border-b border-border",children:re.map(K=>s.jsxs("button",{onClick:()=>{x(K.key),w(!1)},className:`flex items-center gap-1.5 px-3 py-2 text-xs font-medium border-b-2 transition-colors ${p===K.key?"border-cyber text-white":"border-transparent text-muted hover:text-white"}`,children:[K.icon,K.label,K.count!==void 0&&s.jsxs("span",{className:"text-muted",children:["(",K.count,")"]})]},K.key))}),p==="info"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Tasks"}),s.jsx("p",{className:"text-lg font-bold",children:U.total_tasks||0})]}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Tokens"}),s.jsx("p",{className:"text-lg font-bold",children:((le=U.tokens_used)==null?void 0:le.toLocaleString())||0})]}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Cost"}),s.jsxs("p",{className:"text-lg font-bold",children:["$",((U.cost_cents||0)/100).toFixed(2)]})]})]}),g&&s.jsxs(s.Fragment,{children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Voice"}),s.jsx("div",{className:"bg-panel border border-border rounded-lg px-4 py-3 mb-8",children:s.jsxs("label",{className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Voice profile"}),s.jsx("p",{className:"text-xs text-muted",children:"Choose which voice this agent uses during calls"})]}),s.jsxs("select",{value:i.voice_profile_id||"",onChange:K=>z(K.target.value),disabled:S,className:"bg-void border border-border rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[s.jsx("option",{value:"",children:"Default voice"}),b.map(K=>s.jsx("option",{value:K.id,children:K.name},K.id))]})]})})]}),s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Memory"}),f!=null&&f.length?s.jsx("div",{className:"space-y-2",children:f.map(K=>s.jsxs("div",{className:"bg-panel border border-border rounded-lg px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-xs text-cyber font-medium",children:K.memory_type}),s.jsx("span",{className:"text-xs text-muted",children:new Date(K.created_at).toLocaleDateString()})]}),s.jsx("p",{className:"text-sm",children:K.content})]},K.id))}):s.jsx("p",{className:"text-sm text-muted",children:"No memories yet. This agent will learn from completed tasks."})]}),p==="tasks"&&s.jsx(s.Fragment,{children:h!=null&&h.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:h.map(K=>s.jsxs(ht,{to:`/tasks/${K.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:K.title}),s.jsx("p",{className:"text-xs text-muted",children:HA(K.created_at)})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[K.tokens_used?s.jsxs("span",{className:"text-xs text-muted",children:[K.tokens_used.toLocaleString()," tok"]}):null,K.priority&&s.jsx("span",{className:"text-xs text-warning",children:K.priority}),s.jsx(it,{status:K.status})]})]},K.id))}):s.jsx(jt,{icon:s.jsx(li,{size:32}),title:"No tasks yet",description:"Tasks will appear here as this agent works."})}),p==="prompt"&&s.jsx(s.Fragment,{children:i.system_prompt?s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4",children:[s.jsx("h3",{className:"text-xs font-medium text-muted uppercase tracking-wider mb-3",children:"System Prompt"}),s.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-platinum/80 max-h-[60vh] overflow-y-auto leading-relaxed",children:i.system_prompt})]}):s.jsx(jt,{icon:s.jsx(h8,{size:32}),title:"No system prompt",description:"This agent uses the default system prompt."})}),p==="config"&&!M&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:B.map(K=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-muted",children:K.label}),s.jsx("span",{className:"text-sm font-medium",children:K.value})]},K.key))}),s.jsx("div",{className:"mt-4",children:s.jsxs("button",{onClick:J,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors",children:[s.jsx(Bu,{size:14})," Edit config"]})})]}),p==="config"&&M&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:N.map((K,te)=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("label",{className:"text-sm text-muted",htmlFor:`config-${K.key}`,children:K.label}),s.jsx("input",{id:`config-${K.key}`,value:K.value,onChange:R=>{const _=[...N];_[te]={...K,value:R.target.value},C(_)},className:"bg-surface border border-border rounded px-3 py-1.5 text-sm text-white text-right w-48 focus:outline-none focus:border-cyber"})]},K.key))}),s.jsxs("div",{className:"flex gap-2 mt-4",children:[s.jsx("button",{onClick:()=>w(!1),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:W,disabled:Z,className:"px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:Z?"Saving...":"Save config"})]})]})]})}const RA=["all","queued","in_progress","completed","needs_approval","failed"],b8={urgent:0,high:1,normal:2,low:3},y8={in_progress:0,queued:1,needs_approval:2,completed:3,failed:4};function kA(){const a=ja(["task:started","task:completed","task:failed"]),[n,i]=c.useState("all"),[o,u]=c.useState(!1),[f,h]=c.useState(""),[p,x]=c.useState("date"),g=n==="all"?"":`&status=${n}`,{data:y,loading:b,refetch:j}=ye(`/api/tasks?limit=50${g}`,[a,n]),{data:S}=ye("/api/agents"),E=c.useMemo(()=>{const w=new Map;return S==null||S.forEach(N=>w.set(N.id,N.name)),w},[S]),M=c.useMemo(()=>{if(!y)return[];let w=y;if(f.trim()){const N=f.toLowerCase();w=w.filter(C=>C.title.toLowerCase().includes(N)||(E.get(C.agent_id)||"").toLowerCase().includes(N))}return p==="priority"?w=[...w].sort((N,C)=>{const Z=b8[N.priority||"normal"]??2,q=b8[C.priority||"normal"]??2;return Z-q||new Date(C.created_at).getTime()-new Date(N.created_at).getTime()}):p==="status"&&(w=[...w].sort((N,C)=>{const Z=y8[N.status]??5,q=y8[C.status]??5;return Z-q||new Date(C.created_at).getTime()-new Date(N.created_at).getTime()})),w},[y,f,p,E]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Tasks",subtitle:"All agent tasks",action:s.jsxs("button",{onClick:()=>u(!o),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," New task"]})}),o&&(S!=null&&S.length)?s.jsx(_A,{agents:S,onClose:()=>u(!1),onSuccess:j}):null,s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:RA.map(w=>s.jsx("button",{onClick:()=>i(w),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${n===w?"bg-panel text-white":"text-muted hover:text-white"}`,children:w.replace(/_/g," ")},w))}),s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),s.jsx("input",{value:f,onChange:w=>h(w.target.value),placeholder:"Search by title or agent...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("select",{value:p,onChange:w=>x(w.target.value),className:"bg-surface border border-border rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"date",children:"Sort by date"}),s.jsx("option",{value:"priority",children:"Sort by priority"}),s.jsx("option",{value:"status",children:"Sort by status"})]})]}),b?s.jsx(at,{count:5}):M.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:M.map(w=>s.jsxs(ht,{to:`/tasks/${w.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:w.title}),s.jsxs("p",{className:"text-xs text-muted",children:[E.get(w.agent_id)&&s.jsx("span",{className:"text-cyber",children:E.get(w.agent_id)}),E.get(w.agent_id)&&" · ",new Date(w.created_at).toLocaleString()]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[w.priority&&w.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:w.priority}),w.tokens_used?s.jsxs("span",{className:"text-xs text-muted",children:[w.tokens_used.toLocaleString()," tok"]}):null,s.jsx(it,{status:w.status})]})]},w.id))}):s.jsx(jt,{icon:s.jsx(li,{size:32}),title:"Nothing here yet",description:f?`No tasks matching "${f}".`:n==="all"?"Tasks will appear as agents work.":`No ${n.replace(/_/g," ")} tasks.`})]})}function _A({agents:a,onClose:n,onSuccess:i}){var j;const[o,u]=c.useState(((j=a[0])==null?void 0:j.id)||""),[f,h]=c.useState(""),[p,x]=c.useState(""),[g,y]=c.useState(!1),b=async S=>{if(S.preventDefault(),!(!o||!f.trim())){y(!0);try{await de("/api/tasks",{method:"POST",body:JSON.stringify({agentId:o,title:f.trim(),description:p.trim()||void 0})}),i(),n()}catch{}finally{y(!1)}}};return s.jsxs("form",{onSubmit:b,className:"bg-panel border border-border rounded-lg p-4 mb-4 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent"}),s.jsx("select",{value:o,onChange:S=>u(S.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:a.map(S=>s.jsx("option",{value:S.id,children:S.name},S.id))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Title"}),s.jsx("input",{value:f,onChange:S=>h(S.target.value),placeholder:"What should this agent do?",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description (optional)"}),s.jsx("textarea",{value:p,onChange:S=>x(S.target.value),rows:2,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:n,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:g||!f.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:g?"Dispatching...":"Dispatch"})]})]})}function OA(){const{id:a}=uo(),{data:n,loading:i}=ye(a?`/api/tasks/${a}`:null),{data:o}=ye(a?`/api/tasks/${a}/messages`:null);return i?s.jsx("div",{className:"p-6",children:s.jsx(at,{count:6})}):n?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(ht,{to:"/tasks",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[s.jsx(fi,{size:14})," Back to tasks"]}),s.jsx(nt,{title:n.title,action:s.jsx(it,{status:n.status})}),n.description&&s.jsx("p",{className:"text-sm text-muted mb-4",children:n.description}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[n.model_used&&s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Model"}),s.jsx("p",{className:"text-sm font-medium mt-0.5",children:n.model_used})]}),n.tokens_used!=null&&s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Tokens"}),s.jsx("p",{className:"text-sm font-medium mt-0.5",children:n.tokens_used.toLocaleString()})]}),n.cost_cents!=null&&s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Cost"}),s.jsxs("p",{className:"text-sm font-medium mt-0.5",children:["$",(n.cost_cents/100).toFixed(4)]})]}),n.duration_seconds!=null&&s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Duration"}),s.jsxs("p",{className:"text-sm font-medium mt-0.5",children:[n.duration_seconds,"s"]})]})]}),n.error_message&&s.jsx("div",{className:"bg-critical/10 border border-critical/30 rounded-lg p-4 mb-6",children:s.jsx("p",{className:"text-sm text-critical",children:n.error_message})}),n.output&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-2",children:"Output"}),s.jsx("div",{className:"bg-panel border border-border rounded-lg p-4",children:s.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words",children:typeof n.output=="string"?n.output:JSON.stringify(n.output,null,2)})})]}),o&&o.length>0&&s.jsxs("div",{children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-2",children:"Conversation"}),s.jsx("div",{className:"space-y-2",children:o.map(u=>s.jsxs("div",{className:`rounded-lg p-3 text-sm ${u.role==="user"?"bg-cyber/5 border border-cyber/20":"bg-panel border border-border"}`,children:[s.jsx("p",{className:"text-xs text-muted mb-1 capitalize",children:u.role}),s.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof u.content=="string"?u.content:JSON.stringify(u.content)})]},u.id))})]})]}):s.jsx("div",{className:"p-6 text-muted",children:"Task not found"})}function zA(a){if(!a)return null;if(typeof a=="string")try{return JSON.parse(a)}catch{return null}return a}function BA(){const a=ja(["task:completed"]),{data:n,loading:i,refetch:o}=ye("/api/approvals",[a]),[u,f]=c.useState(null),[h,p]=c.useState(!1),[x,g]=c.useState(null),[y,b]=c.useState(""),j=c.useCallback(async w=>{f(w);try{await de(`/api/approvals/${w}/approve`,{method:"POST"}),o()}catch{}finally{f(null)}},[o]),S=c.useCallback(async()=>{if(x){f(x.id);try{await de(`/api/approvals/${x.id}/reject`,{method:"POST",body:JSON.stringify({reason:y.trim()||void 0})}),g(null),b(""),o()}catch{}finally{f(null)}}},[x,y,o]),E=c.useCallback(async()=>{if(n!=null&&n.length){p(!0);try{for(const w of n)await de(`/api/approvals/${w.id}/approve`,{method:"POST"});o()}catch{}finally{p(!1)}}},[n,o]),M=c.useCallback(async()=>{if(n!=null&&n.length){p(!0);try{for(const w of n)await de(`/api/approvals/${w.id}/reject`,{method:"POST"});o()}catch{}finally{p(!1)}}},[n,o]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Approvals",subtitle:"Tasks waiting for your review",action:n!=null&&n.length?s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("button",{onClick:M,disabled:h,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-critical border border-critical/30 rounded-lg hover:bg-critical/10 disabled:opacity-50 transition-colors",children:[s.jsx(lA,{size:14})," Reject all"]}),s.jsxs("button",{onClick:E,disabled:h,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-matrix bg-matrix/10 border border-matrix/30 rounded-lg hover:bg-matrix/20 disabled:opacity-50 transition-colors",children:[s.jsx(Xj,{size:14})," Approve all"]})]}):void 0}),i?s.jsx(at,{count:3}):n!=null&&n.length?s.jsx("div",{className:"space-y-3",children:n.map(w=>{const N=zA(w.deferred_action);return s.jsx("div",{className:"bg-panel border border-border rounded-lg p-4",children:s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("p",{className:"text-sm font-medium",children:w.title}),N&&s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs bg-warning/15 text-warning",children:[N.provider==="gmail"?s.jsx(Qj,{size:12}):s.jsx(so,{size:12}),N.type,N.params.to?` → ${N.params.to}`:""]})]}),s.jsx("p",{className:"text-xs text-muted mt-0.5",children:new Date(w.created_at).toLocaleString()}),w.output&&s.jsx("pre",{className:"text-xs text-muted mt-2 whitespace-pre-wrap break-words max-h-32 overflow-y-auto",children:typeof w.output=="string"?w.output.slice(0,500):JSON.stringify(w.output).slice(0,500)})]}),s.jsxs("div",{className:"flex gap-2 shrink-0",children:[s.jsx("button",{onClick:()=>{g(w),b("")},disabled:u===w.id||h,className:"px-3 py-1.5 text-xs text-critical border border-critical/30 rounded hover:bg-critical/10 transition-colors disabled:opacity-50",children:"Reject"}),s.jsx("button",{onClick:()=>j(w.id),disabled:u===w.id||h,className:"px-3 py-1.5 text-xs text-matrix bg-matrix/10 border border-matrix/30 rounded hover:bg-matrix/20 transition-colors disabled:opacity-50",children:"Approve"})]})]})},w.id)})}):s.jsx(jt,{icon:s.jsx(Zp,{size:32}),title:"All clear",description:"No tasks waiting for approval right now."}),x&&s.jsx("div",{className:"fixed inset-0 bg-void/80 flex items-center justify-center z-50 p-4",children:s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-5 w-full max-w-md",children:[s.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Reject task"}),s.jsxs("p",{className:"text-xs text-muted mb-4",children:["“",x.title,"”"]}),s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Reason (optional)"}),s.jsx("textarea",{value:y,onChange:w=>b(w.target.value),placeholder:"Why is this being rejected?",rows:3,autoFocus:!0,className:"w-full bg-surface border border-border rounded-lg px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-critical resize-none mb-4"}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:()=>g(null),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:S,disabled:u===x.id,className:"px-3 py-1.5 text-xs text-critical bg-critical/10 border border-critical/30 rounded hover:bg-critical/20 disabled:opacity-50 transition-colors",children:u===x.id?"Rejecting...":"Reject"})]})]})})]})}const UA={task_completed:"text-matrix",task_failed:"text-critical",task_started:"text-cyber",task_needs_approval:"text-wealth",schedule_fired:"text-warning",agent_created:"text-cyber",memory_extracted:"text-wealth"},FA=["all","task_completed","task_failed","task_started","task_needs_approval","schedule_fired","agent_created","memory_extracted"];function qA(a){if(a==="all")return null;const n=new Date;return a==="today"?(n.setHours(0,0,0,0),n):a==="7d"?(n.setDate(n.getDate()-7),n):(n.setDate(n.getDate()-30),n)}function $A(a){const n=Date.now()-new Date(a).getTime(),i=Math.floor(n/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function YA(){const a=ja(["task:started","task:completed","task:failed","memory:extracted"]),{data:n,loading:i}=ye("/api/activity",[a]),[o,u]=c.useState("all"),[f,h]=c.useState("all"),[p,x]=c.useState(""),g=c.useMemo(()=>{if(!n)return[];let y=n;o!=="all"&&(y=y.filter(j=>j.activity_type===o));const b=qA(f);if(b&&(y=y.filter(j=>new Date(j.created_at)>=b)),p.trim()){const j=p.toLowerCase();y=y.filter(S=>S.title.toLowerCase().includes(j)||(S.description||"").toLowerCase().includes(j))}return y},[n,o,f,p]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Activity",subtitle:"Recent events"}),s.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:FA.map(y=>s.jsx("button",{onClick:()=>u(y),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${o===y?"bg-panel text-white":"text-muted hover:text-white"}`,children:y==="all"?"All":y.replace(/_/g," ")},y))}),s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(y=>s.jsx("button",{onClick:()=>h(y),className:`px-2.5 py-1 rounded text-xs transition-colors ${f===y?"bg-cyber/15 text-cyber":"text-muted hover:text-white"}`,children:y==="all"?"All time":y==="today"?"Today":y==="7d"?"7 days":"30 days"},y))}),s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),s.jsx("input",{value:p,onChange:y=>x(y.target.value),placeholder:"Search activity...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),i?s.jsx(at,{count:8}):g.length?s.jsx("div",{className:"space-y-1",children:g.map(y=>s.jsxs("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg hover:bg-panel/50 transition-colors",children:[s.jsx("span",{className:`text-xs font-mono mt-0.5 shrink-0 ${UA[y.activity_type]||"text-muted"}`,children:y.activity_type.replace(/_/g," ")}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm",children:y.title}),y.description&&s.jsx("p",{className:"text-xs text-muted mt-0.5",children:y.description})]}),s.jsx("span",{className:"text-xs text-muted shrink-0",children:$A(y.created_at)})]},y.id))}):s.jsx(jt,{icon:s.jsx(I6,{size:32}),title:"Quiet so far",description:p||o!=="all"||f!=="all"?"No activity matching your filters.":"Activity will show up here as agents complete tasks."})]})}function go({checked:a,onChange:n,disabled:i=!1,size:o="md"}){const u=o==="sm"?{track:"w-8 h-4",thumb:"w-3 h-3",translate:"translate-x-4"}:{track:"w-10 h-5",thumb:"w-4 h-4",translate:"translate-x-5"};return s.jsx("button",{type:"button",role:"switch","aria-checked":a,onClick:()=>!i&&n(!a),disabled:i,className:`relative ${u.track} rounded-full transition-colors disabled:opacity-50 ${a?"bg-matrix/30":"bg-border"}`,children:s.jsx("span",{className:`absolute top-0.5 left-0.5 ${u.thumb} rounded-full transition-transform ${a?`${u.translate} bg-matrix`:"translate-x-0 bg-muted"}`})})}function Aa({open:a,onClose:n,title:i,children:o,maxWidth:u="max-w-md"}){const f=c.useCallback(h=>{h.key==="Escape"&&n()},[n]);return c.useEffect(()=>{if(a)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[a,f]),a?s.jsx("div",{className:"fixed inset-0 bg-void/80 flex items-center justify-center z-50 p-4",onClick:n,children:s.jsxs("div",{className:`bg-panel border border-border rounded-lg w-full ${u} max-h-[85vh] overflow-y-auto`,onClick:h=>h.stopPropagation(),children:[i&&s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[s.jsx("h3",{className:"text-sm font-semibold",children:i}),s.jsx("button",{onClick:n,className:"text-muted hover:text-white text-xs",children:"Close"})]}),s.jsx("div",{className:"p-6",children:o})]})}):null}function bo({open:a,onClose:n,onConfirm:i,title:o="Confirm",message:u,confirmLabel:f="Confirm",confirmColor:h="critical",loading:p=!1}){const x=h==="critical"?"bg-critical/10 border-critical/30 text-critical hover:bg-critical/20":"bg-cyber/10 border-cyber/30 text-cyber hover:bg-cyber/20";return s.jsxs(Aa,{open:a,onClose:n,title:o,children:[s.jsx("p",{className:"text-sm text-muted mb-6",children:u}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:n,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:i,disabled:p,className:`px-3 py-1.5 border rounded text-xs font-medium transition-colors disabled:opacity-50 ${x}`,children:p?"Working...":f})]})]})}const v8=[{label:"Every 15 minutes",cron:"*/15 * * * *"},{label:"Every hour",cron:"0 * * * *"},{label:"Every 3 hours",cron:"0 */3 * * *"},{label:"Daily at 9am",cron:"0 9 * * *"},{label:"Daily at 6pm",cron:"0 18 * * *"},{label:"Weekdays at 9am",cron:"0 9 * * 1-5"},{label:"Weekly (Monday 9am)",cron:"0 9 * * 1"},{label:"Monthly (1st at 9am)",cron:"0 9 1 * *"}];function GA({value:a,onChange:n}){const[i,o]=c.useState(v8.some(u=>u.cron===a)?"preset":"custom");return s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex gap-1",children:[s.jsx("button",{type:"button",onClick:()=>o("preset"),className:`px-2 py-1 rounded text-xs transition-colors ${i==="preset"?"bg-panel text-white":"text-muted hover:text-white"}`,children:"Presets"}),s.jsx("button",{type:"button",onClick:()=>o("custom"),className:`px-2 py-1 rounded text-xs transition-colors ${i==="custom"?"bg-panel text-white":"text-muted hover:text-white"}`,children:"Custom"})]}),i==="preset"?s.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:v8.map(u=>s.jsxs("button",{type:"button",onClick:()=>n(u.cron),className:`text-left px-3 py-2 rounded text-xs transition-colors border ${a===u.cron?"border-cyber bg-cyber/10 text-white":"border-border hover:border-muted text-muted hover:text-white"}`,children:[s.jsx("span",{className:"block",children:u.label}),s.jsx("span",{className:"block font-mono text-[10px] text-muted mt-0.5",children:u.cron})]},u.cron))}):s.jsxs("div",{children:[s.jsx("input",{type:"text",value:a,onChange:u=>n(u.target.value),placeholder:"* * * * *",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white font-mono placeholder:text-muted/50 focus:outline-none focus:border-cyber"}),s.jsx("p",{className:"text-[10px] text-muted mt-1",children:"Format: minute hour day month weekday"})]})]})}function XA(a){const n=Date.now()-new Date(a).getTime(),i=Math.floor(n/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function PA(a){const n=new Date(a).getTime()-Date.now();if(n<0)return"overdue";const i=Math.floor(n/6e4);if(i<1)return"now";if(i<60)return`in ${i}m`;const o=Math.floor(i/60);return o<24?`in ${o}h`:`in ${Math.floor(o/24)}d`}function KA(){const{data:a,loading:n,refetch:i}=ye("/api/schedules"),[o,u]=c.useState(null),[f,h]=c.useState(!1),[p,x]=c.useState(null),[g,y]=c.useState(null),[b,j]=c.useState(!1),S=async M=>{u(M);try{await de(`/api/schedules/${M}/toggle`,{method:"POST"}),i()}catch{he("error","Couldn't toggle schedule. Try again?")}finally{u(null)}},E=async()=>{if(g){j(!0);try{await de(`/api/schedules/${g.id}`,{method:"DELETE"}),he("success","Schedule deleted"),i()}catch{he("error","Couldn't delete schedule. Try again?")}finally{j(!1),y(null)}}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Schedules",subtitle:"Automated task schedules",action:s.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," New schedule"]})}),n?s.jsx(at,{count:3}):a!=null&&a.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:a.map(M=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[s.jsxs("div",{className:"min-w-0 mr-4 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${M.enabled?"bg-matrix":"bg-border"}`}),s.jsx("p",{className:"text-sm font-medium truncate",children:M.label})]}),s.jsxs("div",{className:"flex gap-3 mt-1 ml-4",children:[s.jsx("span",{className:"text-xs text-muted font-mono",children:M.cron_expression||M.cron}),M.next_run_at&&s.jsxs("span",{className:"text-xs text-muted",children:["Next: ",PA(M.next_run_at)]}),M.last_run_at&&s.jsxs("span",{className:"text-xs text-muted",children:["Last: ",XA(M.last_run_at)]})]}),M.task_prompt&&s.jsx("p",{className:"text-xs text-muted mt-1 ml-4 truncate max-w-md",children:M.task_prompt})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("button",{onClick:()=>x(M),className:"text-muted hover:text-cyber transition-colors",title:"Edit",children:s.jsx(Ap,{size:14})}),s.jsx("button",{onClick:()=>y(M),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:s.jsx(Pn,{size:14})}),s.jsx(go,{checked:!!M.enabled,onChange:()=>S(M.id),disabled:o===M.id})]})]},M.id))}):s.jsx(jt,{icon:s.jsx(U6,{size:32}),title:"Nothing scheduled yet",description:"Set up recurring tasks to keep your agents busy.",action:s.jsxs("button",{onClick:()=>h(!0),className:"mt-3 flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," Create your first schedule"]})}),f&&s.jsx(j8,{onClose:()=>h(!1),onSuccess:()=>{i(),h(!1)}}),p&&s.jsx(j8,{schedule:p,onClose:()=>x(null),onSuccess:()=>{i(),x(null)}}),s.jsx(bo,{open:!!g,onClose:()=>y(null),onConfirm:E,title:"Delete schedule",message:`Delete "${g==null?void 0:g.label}"? This can't be undone.`,confirmLabel:"Delete",loading:b})]})}function j8({schedule:a,onClose:n,onSuccess:i}){const o=!!a,{data:u}=ye("/api/agents"),[f,h]=c.useState((a==null?void 0:a.label)||""),[p,x]=c.useState((a==null?void 0:a.cron_expression)||(a==null?void 0:a.cron)||"0 9 * * *"),[g,y]=c.useState((a==null?void 0:a.agent_id)||""),[b,j]=c.useState((a==null?void 0:a.task_prompt)||""),[S,E]=c.useState(!1),M=async w=>{if(w.preventDefault(),!(!f.trim()||!p.trim())){E(!0);try{o?(await de(`/api/schedules/${a.id}`,{method:"PUT",body:JSON.stringify({label:f.trim(),cron:p.trim(),agent_id:g||null,task_prompt:b})}),he("success","Schedule updated")):(await de("/api/schedules",{method:"POST",body:JSON.stringify({label:f.trim(),cron:p.trim(),agent_id:g||null,task_prompt:b})}),he("success","Schedule created")),i()}catch{he("error",`Couldn't ${o?"update":"create"} schedule. Try again?`)}finally{E(!1)}}};return s.jsx(Aa,{open:!0,onClose:n,title:o?"Edit schedule":"New schedule",maxWidth:"max-w-lg",children:s.jsxs("form",{onSubmit:M,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Title"}),s.jsx("input",{value:f,onChange:w=>h(w.target.value),placeholder:"Daily briefing",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent"}),s.jsxs("select",{value:g,onChange:w=>y(w.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"",children:"Orchestrator (default)"}),u==null?void 0:u.map(w=>s.jsx("option",{value:w.id,children:w.name},w.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Schedule"}),s.jsx(GA,{value:p,onChange:x})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Task prompt"}),s.jsx("textarea",{value:b,onChange:w=>j(w.target.value),placeholder:"What should the agent do?",rows:3,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:n,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:S||!f.trim()||!p.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:S?"Saving...":o?"Save changes":"Create schedule"})]})]})})}const Bp={SAMPLE_RATE:16e3,BIT_DEPTH:16,CHANNELS:1};function QA(a){const{SAMPLE_RATE:n,BIT_DEPTH:i,CHANNELS:o}=Bp,u=n*o*(i/8),f=o*(i/8),h=a.byteLength,p=new ArrayBuffer(44+h),x=new DataView(p);return Or(x,0,"RIFF"),x.setUint32(4,36+h,!0),Or(x,8,"WAVE"),Or(x,12,"fmt "),x.setUint32(16,16,!0),x.setUint16(20,1,!0),x.setUint16(22,o,!0),x.setUint32(24,n,!0),x.setUint32(28,u,!0),x.setUint16(32,f,!0),x.setUint16(34,i,!0),Or(x,36,"data"),x.setUint32(40,h,!0),new Int16Array(p,44).set(a),p}function JA(a){const n=new Int16Array(a.length);for(let i=0;i<a.length;i++){const o=Math.max(-1,Math.min(1,a[i]));n[i]=o<0?o*32768:o*32767}return n}function WA(a,n,i){if(n===i)return a;const o=n/i,u=Math.round(a.length/o),f=new Float32Array(u);for(let h=0;h<u;h++){const p=Math.round(h*o);f[h]=a[Math.min(p,a.length-1)]}return f}async function IA(a,n){const i=n||new AudioContext,o=await i.decodeAudioData(a.slice(0)),u=i.createBufferSource();return u.buffer=o,u.connect(i.destination),new Promise(f=>{u.onended=()=>f(),u.start(0)})}function eS(a){const n=new AudioContext;let i=[],o=!1;async function u(){if(i.length===0){o=!1;return}o=!0;const f=i.shift();await IA(f,n),await u()}return{enqueue(f){i.push(f),o||u()},clear(){i=[],o=!1},close(){i=[],o=!1,n.close()},get isPlaying(){return o}}}function Or(a,n,i){for(let o=0;o<i.length;o++)a.setUint8(n+o,i.charCodeAt(o))}class tS{constructor(n,i={}){It(this,"threshold");It(this,"minSpeechMs");It(this,"silenceMs");It(this,"onSpeechStart");It(this,"onSpeechEnd");It(this,"isSpeaking",!1);It(this,"speechStartTime",0);It(this,"lastSpeechTime",0);It(this,"audioChunks",[]);It(this,"sampleRate");It(this,"checkInterval",null);this.sampleRate=n,this.threshold=i.threshold??.01,this.minSpeechMs=i.minSpeechMs??300,this.silenceMs=i.silenceMs??800,this.onSpeechStart=i.onSpeechStart,this.onSpeechEnd=i.onSpeechEnd}processFrame(n){var u;const i=aS(n),o=Date.now();i>this.threshold&&(this.isSpeaking||(this.isSpeaking=!0,this.speechStartTime=o,this.audioChunks=[],(u=this.onSpeechStart)==null||u.call(this)),this.lastSpeechTime=o),this.isSpeaking&&(this.audioChunks.push(new Float32Array(n)),i<=this.threshold&&o-this.lastSpeechTime>this.silenceMs&&this.endSpeech())}start(){this.checkInterval=setInterval(()=>{this.isSpeaking&&Date.now()-this.lastSpeechTime>this.silenceMs&&this.endSpeech()},100)}stop(){this.checkInterval&&(clearInterval(this.checkInterval),this.checkInterval=null),this.isSpeaking&&this.endSpeech()}endSpeech(){var x;const n=Date.now()-this.speechStartTime;if(this.isSpeaking=!1,n<this.minSpeechMs||this.audioChunks.length===0){this.audioChunks=[];return}const i=this.audioChunks.reduce((g,y)=>g+y.length,0),o=new Float32Array(i);let u=0;for(const g of this.audioChunks)o.set(g,u),u+=g.length;this.audioChunks=[];const f=WA(o,this.sampleRate,Bp.SAMPLE_RATE),h=JA(f),p=QA(h);(x=this.onSpeechEnd)==null||x.call(this,p)}}function aS(a){let n=0;for(let i=0;i<a.length;i++)n+=a[i]*a[i];return Math.sqrt(n/a.length)}function nS(){const a=yn(),n=window.location.protocol==="https:"?"wss:":"ws:",i=window.location.host;return`${n}//${i}/ws/voice?token=${a}`}function lS(a){const[n,i]=c.useState("idle"),[o,u]=c.useState(""),[f,h]=c.useState(""),[p,x]=c.useState(null),[g,y]=c.useState(!1),b=c.useRef(null),j=c.useRef(null),S=c.useRef(null),E=c.useRef(null),M=c.useRef(null),w=c.useRef(null),N=c.useCallback(()=>{var $,U,B,z,Q;($=S.current)==null||$.stop(),S.current=null,(U=E.current)==null||U.disconnect(),E.current=null,(B=j.current)==null||B.getTracks().forEach(J=>J.stop()),j.current=null,(z=M.current)==null||z.close(),M.current=null,(Q=w.current)==null||Q.close(),w.current=null,b.current&&b.current.readyState!==WebSocket.CLOSED&&(b.current.send(JSON.stringify({type:"stop"})),b.current.close()),b.current=null,i("idle"),x(null)},[]);c.useEffect(()=>N,[N]);const C=c.useCallback(async()=>{x(null),u(""),h("");let $;try{$=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:16e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0}})}catch{x("Couldn't access microphone. Check your browser permissions.");return}j.current=$;const U=new AudioContext;M.current=U;const B=U.createMediaStreamSource($),z=new WebSocket(nS());b.current=z;const Q=eS();w.current=Q,z.binaryType="arraybuffer",z.onopen=()=>{z.send(JSON.stringify({type:"start",agentId:a}))},z.onmessage=le=>{if(le.data instanceof ArrayBuffer){Q.enqueue(le.data);return}try{const K=JSON.parse(le.data);switch(K.type){case"state":i(K.state);break;case"transcription":u(K.text);break;case"response":h(K.text);break;case"error":x(K.message);break}}catch{}},z.onerror=()=>{x("Couldn't connect to voice server. Is the runtime running?"),N()},z.onclose=()=>{N()};const W=U.createScriptProcessor(4096,1,1);E.current=W;const re=new tS(U.sampleRate,{threshold:.01,minSpeechMs:300,silenceMs:800,onSpeechStart:()=>{i("listening")},onSpeechEnd:le=>{z.readyState===WebSocket.OPEN&&z.send(le)}});S.current=re,re.start(),W.onaudioprocess=le=>{if(g)return;const K=le.inputBuffer.getChannelData(0);re.processFrame(K)},B.connect(W),W.connect(U.destination)},[a,g,N]),Z=c.useCallback(()=>{N()},[N]),q=c.useCallback(()=>{y($=>{var B;const U=!$;return(B=j.current)==null||B.getAudioTracks().forEach(z=>{z.enabled=!U}),U})},[]);return{state:n,transcript:o,response:f,error:p,startCall:C,endCall:Z,toggleMute:q,isMuted:g}}const Kr=24,uu=3,du=2,Rl=2,$n=32;function sS({state:a,className:n=""}){const i=c.useRef(null),o=c.useRef(0);return c.useEffect(()=>{const u=i.current;if(!u)return;const f=u.getContext("2d");if(!f)return;const h=Kr*(uu+du)-du;u.width=h*2,u.height=$n*2,u.style.width=`${h}px`,u.style.height=`${$n}px`,f.scale(2,2);const p=new Float32Array(Kr).fill(0);function x(){if(f){f.clearRect(0,0,h,$n);for(let g=0;g<Kr;g++){const y=iS(a,g,Date.now());p[g]+=(y-p[g])*.15;const b=Math.max(Rl,p[g]),j=g*(uu+du),S=($n-b)/2;f.fillStyle=rS(a),f.beginPath(),f.roundRect(j,S,uu,b,1.5),f.fill()}o.current=requestAnimationFrame(x)}}return x(),()=>cancelAnimationFrame(o.current)},[a]),s.jsx("canvas",{ref:i,className:n})}function iS(a,n,i){switch(a){case"listening":{const o=Math.sin(i/200+n*.5)*.5+.5;return Rl+o*($n*.6-Rl)}case"processing":{const o=Kr/2,u=Math.abs(n-o)/o,f=Math.sin(i/300)*.5+.5;return Rl+(1-u)*f*$n*.4}case"speaking":{const o=Math.sin(i/150+n*.4)*.5+.5,u=Math.sin(i/250+n*.7)*.3+.3;return Rl+(o+u)*($n*.45)}default:return Rl}}function rS(a){switch(a){case"listening":return"rgba(59, 130, 246, 0.8)";case"processing":return"rgba(168, 85, 247, 0.6)";case"speaking":return"rgba(34, 197, 94, 0.8)";default:return"rgba(255, 255, 255, 0.2)"}}function oS({isMuted:a,onToggleMute:n,onEndCall:i}){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("button",{onClick:n,className:`p-3 rounded-full transition-all duration-150 active:scale-95 ${a?"bg-red-500/20 text-red-400 hover:bg-red-500/30":"bg-white/[0.08] text-gray-300 hover:bg-white/[0.12] hover:text-white"}`,title:a?"Unmute":"Mute",children:a?s.jsx(bp,{size:20,weight:"fill"}):s.jsx(xp,{size:20,weight:"fill"})}),s.jsx("button",{onClick:i,className:"p-3 rounded-full bg-red-500/20 text-red-400 hover:bg-red-500/30 hover:text-red-300 active:scale-95 transition-all duration-150",title:"End call",children:s.jsx(eA,{size:20,weight:"fill"})})]})}const cS={idle:"Ready",listening:"Listening...",processing:"Thinking...",speaking:"Speaking..."};function uS({state:a,transcript:n,response:i,error:o,isMuted:u,onToggleMute:f,onEndCall:h}){return c.useEffect(()=>{const p=x=>{x.key==="Escape"&&h()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[h]),s.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/90 backdrop-blur-sm",children:[s.jsx("div",{className:"absolute inset-0",onClick:h}),s.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8 max-w-md w-full px-6",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:`w-2 h-2 rounded-full ${a==="listening"?"bg-blue-500 animate-pulse":a==="processing"?"bg-purple-500 animate-pulse":a==="speaking"?"bg-green-500 animate-pulse":"bg-gray-600"}`}),s.jsx("span",{className:"text-sm text-gray-400 font-mono",children:cS[a]})]}),s.jsx(sS,{state:a}),n&&s.jsxs("div",{className:"w-full text-center",children:[s.jsx("p",{className:"text-xs text-gray-500 mb-1 font-mono",children:"You said:"}),s.jsx("p",{className:"text-sm text-gray-300",children:n})]}),i&&s.jsxs("div",{className:"w-full text-center",children:[s.jsx("p",{className:"text-xs text-gray-500 mb-1 font-mono",children:"Response:"}),s.jsx("p",{className:"text-sm text-white",children:i})]}),o&&s.jsx("div",{className:"w-full text-center",children:s.jsx("p",{className:"text-sm text-red-400",children:o})}),s.jsx(oS,{isMuted:u,onToggleMute:f,onEndCall:h}),s.jsx("p",{className:"text-xs text-gray-600",children:"Press Esc to end call"})]})]})}function dS(){var R;const[a,n]=c.useState([]),[i,o]=c.useState(""),[u,f]=c.useState(!1),[h,p]=c.useState(()=>crypto.randomUUID()),[x,g]=c.useState(!1),[y,b]=c.useState(!1),j=c.useRef(null),{tier:S,modelReady:E,loading:M}=Gl(),[w,N]=c.useState([]),[C,Z]=c.useState(""),[q,$]=c.useState(!1),U=lS("orchestrator");c.useEffect(()=>{de("/api/system/models").then(_=>{N(_.data.models),_.data.currentModel&&Z(_.data.currentModel)}).catch(()=>{})},[]),c.useEffect(()=>{let _=!1,I=!1;const ce=()=>{fetch("/api/voice/providers").then(V=>V.json()).then(V=>{var ee;if(_)return;b(!0);const P=!!((ee=V==null?void 0:V.data)!=null&&ee.anyAvailable);g(P),P&&(I=!0)}).catch(()=>{})};ce();const pe=setInterval(()=>{!_&&!I&&ce()},15e3);return()=>{_=!0,clearInterval(pe)}},[]);const B=c.useRef(""),z=c.useRef("");c.useEffect(()=>{U.transcript&&U.transcript!==B.current&&(B.current=U.transcript,n(_=>[..._,{role:"user",content:U.transcript}]))},[U.transcript]),c.useEffect(()=>{U.response&&U.response!==z.current&&(z.current=U.response,n(_=>[..._,{role:"assistant",content:U.response}]))},[U.response]),c.useEffect(()=>{var _;(_=j.current)==null||_.scrollTo({top:j.current.scrollHeight,behavior:"smooth"})},[a]);const Q=async()=>{const _=i.trim();if(!_||u)return;o(""),n(ce=>[...ce,{role:"user",content:_}]),f(!0);let I="";n(ce=>[...ce,{role:"assistant",content:""}]);try{for await(const ce of nb(_,h,C||void 0))ce.type==="text"&&(I+=ce.content,n(pe=>{const V=[...pe];return V[V.length-1]={role:"assistant",content:I},V}))}catch{I+=`
|
|
72
|
-
|
|
73
|
-
[Connection lost. Try sending your message again.]`,n(ce=>{const pe=[...ce];return pe[pe.length-1]={role:"assistant",content:I},pe})}finally{f(!1)}},J=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),Q())},W=()=>{p(crypto.randomUUID()),n([]),B.current="",z.current=""},re=_=>{Z(_),$(!1)},le=((R=w.find(_=>_.id===C))==null?void 0:R.name)||C||"Auto",K=x&&!i.trim()&&!u,te=y&&!x&&!i.trim()&&!u;return!M&&S==="free"&&!E&&a.length===0?s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx("div",{className:"px-6 pt-6 pb-0",children:s.jsx(nt,{title:"Chat",subtitle:"Talk to your orchestrator"})}),s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-3 max-w-sm",children:[s.jsx("p",{className:"text-lg text-white font-medium",children:"Your orchestrator needs a brain"}),s.jsx("p",{className:"text-sm text-muted",children:"Download an AI model to start chatting."}),s.jsx(Yn,{to:"/settings",className:"inline-block bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 py-2 text-sm hover:bg-cyber/20 transition-colors",children:"Go to Settings"})]})})]}):s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx("div",{className:"px-6 pt-6 pb-0",children:s.jsx(nt,{title:"Chat",subtitle:"Talk to your orchestrator",action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>$(!q),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted border border-border rounded-lg hover:text-white hover:border-muted transition-colors",children:[s.jsx("span",{className:"max-w-[120px] truncate",children:le}),s.jsx(q6,{size:12})]}),q&&w.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>$(!1)}),s.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 bg-panel border border-border rounded-lg py-1 min-w-[200px] shadow-lg",children:w.map(_=>s.jsxs("button",{onClick:()=>re(_.id),className:`w-full text-left px-3 py-2 text-xs hover:bg-surface transition-colors ${C===_.id?"text-cyber":"text-white"}`,children:[s.jsx("span",{className:"block",children:_.name}),s.jsx("span",{className:"block text-muted text-[10px]",children:_.provider})]},_.id))})]})]}),s.jsxs("button",{onClick:W,disabled:u,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors disabled:opacity-50",title:"New session",children:[s.jsx(Ut,{size:14})," New chat"]})]})})}),s.jsxs("div",{ref:j,className:"flex-1 overflow-y-auto px-6 py-4 space-y-4",children:[a.length===0&&s.jsx("div",{className:"flex items-center justify-center h-full text-muted text-sm",children:"Ask your orchestrator anything about your agents, tasks, or business."}),a.map((_,I)=>s.jsx("div",{className:`max-w-2xl ${_.role==="user"?"ml-auto":""}`,children:s.jsx("div",{className:`rounded-lg px-4 py-3 text-sm ${_.role==="user"?"bg-cyber/10 border border-cyber/20 text-white":"bg-panel border border-border"}`,children:s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:_.content||(u&&I===a.length-1?"...":"")})})},I))]}),s.jsx("div",{className:"border-t border-border px-6 py-4",children:s.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[s.jsx("textarea",{value:i,onChange:_=>o(_.target.value),onKeyDown:J,placeholder:"Type a message...",rows:1,className:"flex-1 bg-panel border border-border rounded-lg px-4 py-3 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"}),K?s.jsx("button",{onClick:()=>U.startCall(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 hover:bg-cyber/20 transition-colors",title:"Start voice chat",children:s.jsx(xp,{size:18})}):te?s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{disabled:!0,className:"border border-border text-muted/40 rounded-lg px-4 cursor-not-allowed",title:"Voice is available when Voicebox is running. Enable it in Settings.",children:s.jsx(bp,{size:18})}),s.jsx("button",{onClick:Q,disabled:u||!i.trim(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 hover:bg-cyber/20 transition-colors disabled:opacity-50",children:s.jsx(p8,{size:18})})]}):s.jsx("button",{onClick:Q,disabled:u||!i.trim(),className:"bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-4 hover:bg-cyber/20 transition-colors disabled:opacity-50",children:s.jsx(p8,{size:18})})]})}),U.state!=="idle"&&s.jsx(uS,{state:U.state,transcript:U.transcript,response:U.response,error:U.error,isMuted:U.isMuted,onToggleMute:U.toggleMute,onEndCall:U.endCall})]})}function Up(a){const n=Math.floor(a/86400),i=Math.floor(a%86400/3600),o=Math.floor(a%3600/60),u=[];return n&&u.push(`${n}d`),i&&u.push(`${i}h`),u.push(`${o}m`),u.join(" ")}function fS(){const{data:a}=ye("/health"),{data:n}=ye("/api/system/stats");return s.jsxs(s.Fragment,{children:[a&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Runtime"}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[s.jsx(ea,{label:"Status",value:a.status,valueColor:a.status==="healthy"?"text-matrix":"text-warning"}),s.jsx(ea,{label:"Version",value:`v${a.version}`}),s.jsx(ea,{label:"Uptime",value:Up(a.uptime)}),s.jsx(ea,{label:"Database",value:a.database}),n&&s.jsx(ea,{label:"Memory",value:`${n.memoryMb} MB`})]})]}),n&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Stats"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[s.jsx(zr,{label:"Agents",value:String(n.totalAgents)}),s.jsx(zr,{label:"Tasks",value:String(n.totalTasks)}),s.jsx(zr,{label:"Tokens",value:n.totalTokens.toLocaleString()}),s.jsx(zr,{label:"Cost",value:`$${(n.totalCostCents/100).toFixed(2)}`})]})]})]})}function ea({label:a,value:n,valueColor:i}){return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-muted",children:a}),s.jsx("span",{className:`text-sm font-medium ${i||""}`,children:n})]})}function zr({label:a,value:n}){return s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:a}),s.jsx("p",{className:"text-lg font-bold",children:n})]})}function mS(){const{tier:a}=Gl(),n=a==="free",{data:i}=ye("/api/settings/tunnel_url"),{data:o}=ye("/api/settings/cloud_url"),{data:u,refetch:f}=ye("/api/settings/notification_channels"),h=i==null?void 0:i.value,[p,x]=c.useState(!1),g=(()=>{try{return u!=null&&u.value?JSON.parse(u.value):{email:!1,slack:!1,telegram:!1,whatsapp:!1}}catch{return{email:!1,slack:!1,telegram:!1,whatsapp:!1}}})(),y=c.useCallback(async b=>{x(!0);const j={...g,[b]:!g[b]};try{await de("/api/settings/notification_channels",{method:"PUT",body:JSON.stringify({value:JSON.stringify(j)})}),f(),he("success",`${b} notifications ${j[b]?"enabled":"disabled"}`)}catch{he("error","Couldn't update notification settings")}finally{x(!1)}},[g,f]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Webhooks"}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[s.jsx(ea,{label:"Tunnel",value:h?"Active":"Not connected",valueColor:h?"text-matrix":"text-muted"}),h&&s.jsxs(s.Fragment,{children:[s.jsx(ea,{label:"URL",value:h}),s.jsx(ea,{label:"GHL Hook",value:`${h}/webhooks/ghl`})]}),!h&&(o==null?void 0:o.value)&&s.jsx(ea,{label:"Cloud proxy",value:o.value,valueColor:"text-matrix"})]})]}),!n&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Notifications"}),s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:["email","slack","telegram","whatsapp"].map(b=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm capitalize",children:b}),s.jsx(go,{checked:g[b],onChange:()=>y(b),disabled:p,size:"sm"})]},b))})]})]})}async function fu(a,n,i){const o=a.body.getReader(),u=new TextDecoder;let f="";try{for(;;){if(i!=null&&i.aborted){o.cancel();return}const{done:h,value:p}=await o.read();if(h)break;f+=u.decode(p,{stream:!0});const x=f.split(`
|
|
74
|
-
`);f=x.pop()||"";for(const g of x)if(g.startsWith("data: ")){const y=g.slice(6).trim();if(y==="[DONE]")return;let b;try{b=JSON.parse(y)}catch{continue}n(b)}}}finally{o.releaseLock()}}function hS(){const[a,n]=c.useState({installed:[],catalog:[],activeModel:"",device:null,memoryTier:"",ollamaRunning:!1,loading:!0,catalogLoading:!1,catalogLoaded:!1,downloading:null}),i=c.useRef(null);c.useEffect(()=>()=>{var y;(y=i.current)==null||y.abort()},[]);const o=c.useCallback(async()=>{n(y=>({...y,loading:!0}));try{const y=await de("/api/models/installed");n(b=>({...b,installed:y.data.models,activeModel:y.data.activeModel,ollamaRunning:y.data.ollamaRunning,loading:!1}))}catch{n(y=>({...y,loading:!1}))}},[]),u=c.useCallback(async()=>{n(y=>({...y,catalogLoading:!0}));try{const y=await de("/api/models/catalog");n(b=>({...b,catalog:y.data.catalog,device:y.data.device,memoryTier:y.data.memoryTier,catalogLoading:!1,catalogLoaded:!0}))}catch{n(y=>({...y,catalogLoading:!1}))}},[]),f=c.useCallback(async y=>{let b="";n(j=>(b=j.activeModel,{...j,activeModel:y,installed:j.installed.map(S=>({...S,isActive:S.tag===y}))}));try{await de("/api/models/active",{method:"PUT",body:JSON.stringify({model:y})}),he("success","Active model updated")}catch{n(j=>({...j,activeModel:b,installed:j.installed.map(S=>({...S,isActive:S.tag===b}))})),he("error","Couldn't update active model")}},[]),h=c.useCallback(async y=>{if(i.current)return;const b=new AbortController;i.current=b,n(j=>({...j,downloading:{tag:y,percent:0,message:"Setting things up..."}}));try{const j=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:b.signal});if(!j.ok||!j.body)throw new Error("Couldn't start Ollama");await fu(j,w=>{if(n(N=>N.downloading?{...N,downloading:{...N.downloading,message:w.message}}:N),w.error)throw new Error(w.error)},b.signal),n(w=>w.downloading?{...w,downloading:{...w.downloading,percent:0,message:"Starting download..."}}:w);const S=yn(),E=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json",...S?{Authorization:`Bearer ${S}`}:{}},body:JSON.stringify({tag:y}),signal:b.signal});if(!E.ok||!E.body)throw new Error("Couldn't start download");await fu(E,w=>{if(n(N=>N.downloading?{...N,downloading:{...N.downloading,message:w.message,percent:w.percent??N.downloading.percent}}:N),w.error)throw new Error(w.error)},b.signal),n(w=>({...w,downloading:null})),he("success","Model installed");const M=await de("/api/models/installed");n(w=>({...w,installed:M.data.models,activeModel:M.data.activeModel,ollamaRunning:M.data.ollamaRunning,catalog:w.catalog.map(N=>N.tag===y?{...N,installed:!0}:N)}))}catch(j){if(b.signal.aborted)return;n(S=>({...S,downloading:null})),he("error",j instanceof Error?j.message:"Download failed")}finally{i.current=null}},[]),p=c.useCallback(()=>{var y;(y=i.current)==null||y.abort(),n(b=>({...b,downloading:null}))},[]),x=c.useCallback(async y=>{try{await de(`/api/models/${encodeURIComponent(y)}`,{method:"DELETE"}),he("success","Model deleted");const b=await de("/api/models/installed");return n(j=>({...j,installed:b.data.models,activeModel:b.data.activeModel,ollamaRunning:b.data.ollamaRunning,catalog:j.catalog.map(S=>S.tag===y?{...S,installed:!1}:S)})),!0}catch{return he("error","Couldn't delete model"),!1}},[]),g=c.useCallback(async()=>{n(y=>({...y,downloading:{tag:"",percent:0,message:"Starting Ollama..."}}));try{const y=await fetch("/api/onboarding/ensure-ollama",{method:"POST"});if(!y.ok||!y.body)throw new Error("Couldn't start Ollama");await fu(y,b=>{if(n(j=>j.downloading?{...j,downloading:{...j.downloading,message:b.message}}:j),b.error)throw new Error(b.error)}),n(b=>({...b,downloading:null,ollamaRunning:!0})),he("success","Ollama is running"),await o()}catch(y){n(b=>({...b,downloading:null})),he("error",y instanceof Error?y.message:"Couldn't start Ollama")}},[o]);return{...a,fetchInstalled:o,fetchCatalog:u,setActiveModel:f,installModel:h,cancelDownload:p,deleteModel:x,startOllama:g}}function pS(a){return a<1e3?`${a}ms`:`${(a/1e3).toFixed(1)}s`}function A8({label:a,color:n}){return s.jsx("span",{className:`inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-medium rounded ${n}`,children:a})}function xS({models:a,downloading:n,onSetActive:i,onDelete:o,onCancelDownload:u}){return a.length===0&&!n?s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-6 text-center",children:[s.jsx("p",{className:"text-sm text-muted mb-1",children:"No models installed yet"}),s.jsx("p",{className:"text-xs text-muted/70",children:"Browse the catalog below to install your first model"})]}):s.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[n&&!a.some(f=>f.tag===n.tag)&&s.jsxs("div",{className:"px-4 py-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:n.tag}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Bt,{size:14,className:"animate-spin text-cyber"}),s.jsxs("span",{className:"text-xs text-muted",children:[n.percent,"%"]}),s.jsx("button",{onClick:u,className:"text-[11px] text-muted hover:text-critical transition-colors",children:"Cancel"})]})]}),s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-surface rounded-full h-1.5",children:s.jsx("div",{className:"bg-cyber h-1.5 rounded-full transition-all duration-300",style:{width:`${n.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-muted mt-1",children:n.message})]})]}),a.map(f=>{const h=(n==null?void 0:n.tag)===f.tag,p=f.totalRequests>0?pS(Math.round(f.totalDurationMs/f.totalRequests)):null;return s.jsxs("div",{className:`px-4 py-3 ${f.isActive?"border-l-2 border-l-cyber bg-cyber/5":""}`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-sm font-medium truncate",children:f.label}),f.family&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-surface rounded text-muted font-mono",children:f.family}),f.isActive&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-cyber/20 text-cyber rounded font-medium",children:"Active"}),f.status==="loaded"&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-matrix/20 text-matrix rounded",children:"Loaded"})]}),s.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[f.vision&&s.jsx(A8,{label:"Vision",color:"bg-purple-500/20 text-purple-400"}),f.toolCalling&&s.jsx(A8,{label:"Tools",color:"bg-blue-500/20 text-blue-400"}),f.sizeGB&&s.jsxs("span",{className:"text-[10px] text-muted",children:[f.sizeGB," GB"]}),f.tag!==f.label&&s.jsx("span",{className:"text-[10px] text-muted/60 font-mono",children:f.tag})]})]}),s.jsxs("div",{className:"hidden sm:flex items-center gap-4 text-[11px] text-muted shrink-0",children:[f.totalRequests>0&&s.jsxs("span",{children:[f.totalRequests.toLocaleString()," ",f.totalRequests===1?"request":"requests"]}),p&&s.jsxs("span",{children:["avg ",p]})]}),s.jsx("div",{className:"flex items-center gap-1.5 shrink-0",children:h?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Bt,{size:14,className:"animate-spin text-cyber"}),s.jsxs("span",{className:"text-xs text-muted",children:[n.percent,"%"]}),s.jsx("button",{onClick:u,className:"text-[11px] text-muted hover:text-critical transition-colors",children:"Cancel"})]}):s.jsxs(s.Fragment,{children:[!f.isActive&&s.jsx("button",{onClick:()=>i(f.tag),className:"px-2 py-1 text-[11px] text-muted hover:text-cyber hover:bg-cyber/10 rounded transition-colors",title:"Set as active model",children:s.jsx(tA,{size:14})}),s.jsx("button",{onClick:()=>o(f.tag),className:"px-2 py-1 text-[11px] text-muted hover:text-critical hover:bg-critical/10 rounded transition-colors",title:"Delete model",children:s.jsx(Pn,{size:14})})]})})]}),h&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-surface rounded-full h-1.5",children:s.jsx("div",{className:"bg-cyber h-1.5 rounded-full transition-all duration-300",style:{width:`${n.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-muted mt-1",children:n.message})]})]},f.tag)})]})}const gS=[{value:"all",label:"All"},{value:"fits",label:"Fits your device"},{value:"vision",label:"Vision"},{value:"tools",label:"Tool calling"}];function bS(a){return{tiny:"Tiny (< 4 GB)",small:"Small (4-8 GB)",medium:"Medium (8-16 GB)",large:"Large (16-32 GB)",xlarge:"XLarge (32 GB+)"}[a]||a}function yS({catalog:a,device:n,memoryTier:i,loading:o,loaded:u,downloading:f,onInstall:h,onCancelDownload:p,onFetchCatalog:x}){const[g,y]=c.useState(!1),[b,j]=c.useState("all"),S=()=>{!g&&!u&&x(),y(N=>!N)},E=a.filter(N=>b==="fits"?N.fits:b==="vision"?N.vision:b==="tools"?N.toolCalling:!0),w=["tiny","small","medium","large","xlarge"].map(N=>({tier:N,models:E.filter(C=>C.tier===N)})).filter(N=>N.models.length>0);return s.jsxs("div",{children:[s.jsxs("button",{onClick:S,className:"flex items-center gap-2 text-sm font-medium text-muted uppercase tracking-wider hover:text-white transition-colors mb-3",children:["Browse Models",g?s.jsx($j,{size:14}):s.jsx(q6,{size:14})]}),g&&s.jsxs(s.Fragment,{children:[n&&s.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 mb-4 text-xs text-muted",children:[s.jsx("span",{children:n.cpuModel}),s.jsx("span",{className:"mx-1.5",children:"·"}),s.jsxs("span",{children:[n.totalMemoryGB," GB RAM"]}),s.jsx("span",{className:"mx-1.5",children:"·"}),s.jsxs("span",{children:[i," tier"]})]}),s.jsx("div",{className:"flex gap-1.5 mb-4 flex-wrap",children:gS.map(N=>s.jsx("button",{onClick:()=>j(N.value),className:`px-2.5 py-1 text-[11px] rounded-full border transition-colors ${b===N.value?"border-cyber bg-cyber/10 text-cyber":"border-border text-muted hover:border-muted"}`,children:N.label},N.value))}),o?s.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-muted",children:[s.jsx(Bt,{size:16,className:"animate-spin"})," Loading catalog..."]}):s.jsxs("div",{className:"space-y-4",children:[w.map(N=>s.jsxs("div",{children:[s.jsx("h4",{className:"text-[11px] font-medium text-muted/70 uppercase tracking-wider mb-2",children:bS(N.tier)}),s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:N.models.map(C=>{const Z=(f==null?void 0:f.tag)===C.tag,q=!f&&!C.installed;return s.jsxs("div",{className:`px-4 py-3 ${C.fits?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-sm font-medium",children:C.label}),s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-surface rounded text-muted font-mono",children:C.family}),C.recommended&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-cyber/20 text-cyber rounded font-medium",children:"Recommended"})]}),s.jsx("p",{className:"text-xs text-muted mt-0.5",children:C.description}),s.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[C.vision&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded",children:"Vision"}),C.toolCalling&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-blue-500/20 text-blue-400 rounded",children:"Tools"}),s.jsxs("span",{className:"text-[10px] text-muted",children:[C.sizeGB," GB"]}),!C.fits&&s.jsxs("span",{className:"text-[10px] text-warning",children:["Needs ",C.minRAM," GB RAM"]})]})]}),s.jsx("div",{className:"shrink-0",children:C.installed?s.jsx("span",{className:"text-[11px] text-matrix px-2 py-1",children:"Installed"}):Z?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Bt,{size:14,className:"animate-spin text-cyber"}),s.jsxs("span",{className:"text-xs text-muted",children:[f.percent,"%"]}),s.jsx("button",{onClick:p,className:"text-[11px] text-muted hover:text-critical transition-colors",children:"Cancel"})]}):s.jsxs("button",{onClick:()=>h(C.tag),disabled:!q||!C.fits,className:"flex items-center gap-1 px-2.5 py-1 text-[11px] font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded hover:bg-cyber/20 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[s.jsx(Pj,{size:12})," Install"]})})]}),Z&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-surface rounded-full h-1.5",children:s.jsx("div",{className:"bg-cyber h-1.5 rounded-full transition-all duration-300",style:{width:`${f.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-muted mt-1",children:f.message})]})]},C.tag)})})]},N.tier)),E.length===0&&s.jsx("p",{className:"text-sm text-muted text-center py-4",children:"No models match this filter"})]})]})]})}function vS({open:a,modelTag:n,modelLabel:i,isActive:o,loading:u,onConfirm:f,onClose:h}){return s.jsxs(Aa,{open:a,onClose:h,title:"Delete model",children:[s.jsxs("p",{className:"text-sm mb-3",children:["Remove ",s.jsx("strong",{children:i})," ",s.jsxs("span",{className:"text-muted font-mono text-xs",children:["(",n,")"]})," from your machine?"]}),o&&s.jsx("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3",children:s.jsx("p",{className:"text-xs text-warning",children:"This is your active model. Deleting it will clear the active model setting. You'll need to select a different model afterward."})}),s.jsx("p",{className:"text-xs text-muted mb-4",children:"The model files will be removed from disk. You can reinstall it from the catalog later."}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:h,disabled:u,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors disabled:opacity-50",children:"Cancel"}),s.jsxs("button",{onClick:f,disabled:u,className:"px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-lg hover:bg-critical/20 transition-colors disabled:opacity-50 flex items-center gap-1.5",children:[u&&s.jsx(Bt,{size:12,className:"animate-spin"}),u?"Deleting...":"Delete"]})]})]})}function jS(){const{data:a,refetch:n}=ye("/api/settings/anthropic_api_key"),[i,o]=c.useState(!1),[u,f]=c.useState(""),[h,p]=c.useState(!1),[x,g]=c.useState(null),[y,b]=c.useState(!1),{installed:j,catalog:S,device:E,memoryTier:M,ollamaRunning:w,loading:N,catalogLoading:C,catalogLoaded:Z,downloading:q,fetchInstalled:$,fetchCatalog:U,setActiveModel:B,installModel:z,cancelDownload:Q,deleteModel:J,startOllama:W}=hS();c.useEffect(()=>{$()},[$]);const re=(R,_=8)=>R?R.slice(0,_)+"•".repeat(Math.max(0,Math.min(R.length-_,20))):"Not set",le=async()=>{if(u.trim()){p(!0);try{await de("/api/settings/anthropic_api_key",{method:"PUT",body:JSON.stringify({value:u.trim()})}),he("success","API key updated"),o(!1),f(""),n()}catch{he("error","Couldn't save API key")}finally{p(!1)}}},K=R=>{const _=j.find(I=>I.tag===R);g({tag:R,label:(_==null?void 0:_.label)||R,isActive:(_==null?void 0:_.isActive)||!1})},te=c.useCallback(async()=>{if(!x||y)return;b(!0);const R=await J(x.tag);b(!1),R&&g(null)},[x,y,J]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Anthropic API"}),s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:i?s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"API Key"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"password",value:u,onChange:R=>f(R.target.value),placeholder:"sk-ant-...",className:"flex-1 bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0}),s.jsx("button",{onClick:le,disabled:h||!u.trim(),className:"text-matrix hover:text-matrix/80 transition-colors disabled:opacity-50",children:s.jsx(Gj,{size:16})}),s.jsx("button",{onClick:()=>{o(!1),f("")},className:"text-muted hover:text-white transition-colors",children:s.jsx(io,{size:16})})]})]}):s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm text-muted",children:"API Key"}),s.jsx("span",{className:"text-sm font-medium ml-3",children:re(a==null?void 0:a.value,12)})]}),s.jsx("button",{onClick:()=>o(!0),className:"text-muted hover:text-cyber transition-colors",children:s.jsx(Ap,{size:14})})]})})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Local Models (Ollama)"}),!N&&!w&&s.jsxs("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(nA,{size:16,className:"text-warning shrink-0"}),s.jsx("p",{className:"text-xs text-warning",children:"Ollama is not running"})]}),s.jsx("button",{onClick:W,disabled:!!q,className:"px-2.5 py-1 text-[11px] font-medium bg-warning/10 border border-warning/30 text-warning rounded hover:bg-warning/20 disabled:opacity-50 transition-colors",children:(q==null?void 0:q.tag)===""?"Starting...":"Start Ollama"})]}),N?s.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-muted",children:[s.jsx(Bt,{size:16,className:"animate-spin"})," Loading models..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-4",children:[s.jsx("div",{className:"flex items-center justify-between mb-2",children:s.jsxs("h3",{className:"text-xs text-muted",children:["Installed Models",j.length>0&&s.jsxs("span",{className:"ml-1.5 text-muted/60",children:["(",j.length,")"]})]})}),s.jsx(xS,{models:j,downloading:q,onSetActive:B,onDelete:K,onCancelDownload:Q})]}),s.jsx(yS,{catalog:S,device:E,memoryTier:M,loading:C,loaded:Z,downloading:q,onInstall:z,onCancelDownload:Q,onFetchCatalog:U})]})]}),s.jsx(vS,{open:!!x,modelTag:(x==null?void 0:x.tag)||"",modelLabel:(x==null?void 0:x.label)||"",isActive:(x==null?void 0:x.isActive)||!1,loading:y,onConfirm:te,onClose:()=>{y||g(null)}})]})}function AS(){const[a,n]=c.useState(null),[i,o]=c.useState([]),[u,f]=c.useState(""),[h,p]=c.useState(!1),[x,g]=c.useState(!1),y=c.useCallback(async()=>{var E;try{const M=await de("/api/voice/providers");if(n(M.data),M.data.voiceboxAvailable){const[w,N]=await Promise.all([de("/api/voice/profiles"),de("/api/settings/orchestrator_voice_profile_id")]);o(w.data||[]),f(((E=N.data)==null?void 0:E.value)||"")}}catch{n(null)}},[]),b=c.useRef(!1);c.useEffect(()=>{a!=null&&a.voiceboxAvailable&&(b.current=!0)},[a==null?void 0:a.voiceboxAvailable]),c.useEffect(()=>{let E=!1,M;return(async()=>{await y(),!E&&!b.current&&(M=setInterval(async()=>{if(E||b.current){M&&clearInterval(M);return}await y()},1e4))})(),()=>{E=!0,M&&clearInterval(M)}},[y]);const j=c.useCallback(async()=>{g(!0);try{await de("/api/voice/enable",{method:"POST"}),await y()}catch{}finally{g(!1)}},[y]),S=c.useCallback(async E=>{p(!0),f(E);try{await de("/api/settings/orchestrator_voice_profile_id",{method:"PUT",body:JSON.stringify({value:E})})}catch{f("")}finally{p(!1)}},[]);return s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Voice"}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[a&&s.jsx("div",{className:"px-4 py-3",children:s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx("span",{className:`w-2 h-2 rounded-full ${a.voiceboxAvailable?"bg-matrix":"bg-border"}`}),s.jsx("span",{className:a.voiceboxAvailable?"":"text-muted",children:a.voiceboxAvailable?"Voicebox is running":"Voicebox is not running"})]})}),a&&!a.voiceboxAvailable&&s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("button",{onClick:j,disabled:x,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:x?s.jsxs(s.Fragment,{children:[s.jsx(Bt,{size:14,className:"animate-spin"})," Starting Voicebox..."]}):"Enable Voicebox"}),s.jsx("p",{className:"text-xs text-muted mt-1.5",children:"Local speech-to-text and text-to-speech using Whisper and Coqui TTS."})]}),(a==null?void 0:a.voiceboxAvailable)&&s.jsx("div",{className:"px-4 py-3",children:s.jsxs("label",{className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Orchestrator voice"}),s.jsx("p",{className:"text-xs text-muted",children:"Voice used when chatting from the main conversation"})]}),s.jsxs("select",{value:u,onChange:E=>S(E.target.value),disabled:h,className:"bg-void border border-border rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[s.jsx("option",{value:"",children:"Default voice"}),i.map(E=>s.jsx("option",{value:E.id,children:E.name},E.id))]})]})})]})]})}const SS=["Cloud sync with ohwow.fun dashboard","Scheduling and recurring tasks","Approval workflows","WhatsApp and Telegram integrations","Agent-to-agent communication (A2A)","Browser automation","Multiple agents"];function wS(){const{tier:a,loading:n}=Gl(),i=ii(),[o,u]=c.useState("general"),f=a==="free",{data:h}=ye("/health"),{data:p}=ye("/api/settings/license_key"),{data:x}=ye("/api/settings/cloud_url"),g=()=>{X8(),i("/login",{replace:!0})},y=(b,j=8)=>b?b.slice(0,j)+"•".repeat(Math.max(0,Math.min(b.length-j,20))):"Not set";return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Settings",subtitle:"Runtime configuration"}),!n&&s.jsx("div",{className:"mb-6",children:s.jsx("span",{"data-testid":"runtime-settings-tier-badge",className:`inline-flex items-center px-2.5 py-1 rounded-md text-xs font-semibold ${f?"bg-warning/15 text-warning":"bg-matrix/15 text-matrix"}`,children:f?"Free tier":"Enterprise"})}),h&&s.jsxs("div",{className:"mb-2 text-xs text-muted",children:[s.jsx("span",{className:h.status==="healthy"?"text-matrix":"text-warning",children:"●"})," ","Connected · Running on v",h.version," · Up ",Up(h.uptime)]}),s.jsx("div",{className:"flex gap-1 mb-6 border-b border-border",children:[{key:"general",label:"General"},{key:"integrations",label:"Integrations"},{key:"models",label:"Models"}].map(b=>s.jsx("button",{onClick:()=>u(b.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${o===b.key?"border-cyber text-white":"border-transparent text-muted hover:text-white"}`,children:b.label},b.key))}),o==="general"&&s.jsxs(s.Fragment,{children:[!f&&!n&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Connection"}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:[s.jsx(ea,{label:"Cloud URL",value:(x==null?void 0:x.value)||"Not configured"}),s.jsx(ea,{label:"Status",value:"Connected",valueColor:"text-matrix"}),s.jsx(ea,{label:"License key",value:y(p==null?void 0:p.value)})]})]}),s.jsx(fS,{}),!f&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Quick links"}),s.jsxs("div",{className:"flex gap-2 flex-wrap",children:[s.jsx(Yn,{to:"/connections",className:"px-3 py-1.5 text-xs font-medium bg-panel border border-border rounded-lg hover:border-muted transition-colors",children:"A2A Connections"}),s.jsx(Yn,{to:"/schedules",className:"px-3 py-1.5 text-xs font-medium bg-panel border border-border rounded-lg hover:border-muted transition-colors",children:"Schedules"}),s.jsx(Yn,{to:"/automations",className:"px-3 py-1.5 text-xs font-medium bg-panel border border-border rounded-lg hover:border-muted transition-colors",children:"Automations"})]})]}),f&&!n&&s.jsxs("div",{"data-testid":"runtime-settings-upgrade-cta",className:"mb-6 bg-panel border border-cyber/20 rounded-lg p-5",children:[s.jsx("h3",{className:"text-sm font-semibold text-cyber mb-2",children:"Unlock the full runtime"}),s.jsx("p",{className:"text-xs text-muted mb-4",children:"Get a license key from ohwow.fun to access enterprise features:"}),s.jsx("ul",{className:"space-y-1.5 mb-4",children:SS.map(b=>s.jsxs("li",{className:"flex items-center gap-2 text-xs text-muted",children:[s.jsx("span",{className:"text-cyber",children:"+"}),b]},b))}),s.jsx("a",{"data-testid":"runtime-settings-upgrade-link",href:"https://ohwow.fun",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center px-3 py-1.5 text-xs font-medium bg-cyber text-void rounded-md hover:bg-cyber/90 transition-colors",children:"Get a license key"})]}),s.jsx("div",{className:"mb-6",children:s.jsx("button",{onClick:g,className:"px-4 py-2 text-sm text-critical border border-critical/30 rounded-lg hover:bg-critical/10 transition-colors",children:"Disconnect"})})]}),o==="integrations"&&s.jsx(mS,{}),o==="models"&&s.jsx(jS,{}),o==="integrations"&&s.jsx(AS,{})]})}const ES=["all","lead","client","partner","vendor"];function NS(){const a=ja(["contact:upserted","contact:removed"]),[n,i]=c.useState("all"),[o,u]=c.useState(""),[f,h]=c.useState(!1),{data:p,loading:x,refetch:g}=ye("/api/contacts",[a]),y=c.useMemo(()=>{if(!p)return[];let b=p;if(n!=="all"&&(b=b.filter(j=>j.contact_type===n)),o.trim()){const j=o.toLowerCase();b=b.filter(S=>S.name.toLowerCase().includes(j)||(S.email||"").toLowerCase().includes(j)||(S.company||"").toLowerCase().includes(j))}return b},[p,n,o]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Contacts",subtitle:"People and companies your agents interact with",action:s.jsxs("button",{onClick:()=>h(!f),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," New contact"]})}),f&&s.jsx(MS,{onClose:()=>h(!1),onSuccess:g}),s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:ES.map(b=>s.jsx("button",{onClick:()=>i(b),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${n===b?"bg-panel text-white":"text-muted hover:text-white"}`,children:b},b))}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),s.jsx("input",{value:o,onChange:b=>u(b.target.value),placeholder:"Search by name, email, or company...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),x?s.jsx(at,{count:5}):y.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:y.map(b=>s.jsxs(ht,{to:`/contacts/${b.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:b.name}),s.jsxs("p",{className:"text-xs text-muted",children:[b.email&&s.jsx("span",{children:b.email}),b.email&&b.company&&" · ",b.company&&s.jsx("span",{className:"text-cyber",children:b.company})]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("span",{className:"text-xs text-muted capitalize",children:b.contact_type}),s.jsx(it,{status:b.status})]})]},b.id))}):s.jsx(jt,{icon:s.jsx(C1,{size:32}),title:"No contacts yet",description:o?`No contacts matching "${o}".`:"Add your first contact to get started."})]})}function MS({onClose:a,onSuccess:n}){const[i,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState("lead"),[y,b]=c.useState(!1),j=async S=>{if(S.preventDefault(),!!i.trim()){b(!0);try{await de("/api/contacts",{method:"POST",body:JSON.stringify({name:i.trim(),email:u.trim()||void 0,company:h.trim()||void 0,contact_type:x})}),n(),a()}catch{}finally{b(!1)}}};return s.jsxs("form",{onSubmit:j,className:"bg-panel border border-border rounded-lg p-4 mb-4 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:S=>o(S.target.value),placeholder:"Contact name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Email"}),s.jsx("input",{value:u,onChange:S=>f(S.target.value),placeholder:"email@example.com",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Company"}),s.jsx("input",{value:h,onChange:S=>p(S.target.value),placeholder:"Company name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Type"}),s.jsxs("select",{value:x,onChange:S=>g(S.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"lead",children:"Lead"}),s.jsx("option",{value:"client",children:"Client"}),s.jsx("option",{value:"partner",children:"Partner"}),s.jsx("option",{value:"vendor",children:"Vendor"})]})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:y||!i.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:y?"Creating...":"Create contact"})]})]})}function CS(){const{id:a}=uo(),n=ii(),i=ja(["contact:upserted"]),{data:o,loading:u,refetch:f}=ye(a?`/api/contacts/${a}`:null,[i]),{data:h}=ye(a?`/api/contacts/${a}/timeline`:null,[i]),[p,x]=c.useState(!1),[g,y]=c.useState(""),[b,j]=c.useState(""),[S,E]=c.useState(""),[M,w]=c.useState(""),[N,C]=c.useState(""),[Z,q]=c.useState(!1),[$,U]=c.useState(!1),B=c.useCallback(()=>{o&&(y(o.name),j(o.email||""),E(o.phone||""),w(o.company||""),C(o.notes||""),x(!0))},[o]),z=c.useCallback(async()=>{if(!(!a||!g.trim())){q(!0);try{await de(`/api/contacts/${a}`,{method:"PUT",body:JSON.stringify({name:g.trim(),email:b.trim()||null,phone:S.trim()||null,company:M.trim()||null,notes:N.trim()||null})}),x(!1),f()}catch{}finally{q(!1)}}},[a,g,b,S,M,N,f]),Q=c.useCallback(async()=>{if(!(!a||!confirm("Delete this contact? This cannot be undone."))){U(!0);try{await de(`/api/contacts/${a}`,{method:"DELETE"}),n("/contacts")}catch{U(!1)}}},[a,n]);return u?s.jsx("div",{className:"p-6",children:s.jsx(at,{count:4})}):o?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(ht,{to:"/contacts",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[s.jsx(fi,{size:14})," Back to contacts"]}),s.jsx(nt,{title:o.name,subtitle:`${o.contact_type} · Added ${new Date(o.created_at).toLocaleDateString()}`,action:s.jsxs("div",{className:"flex items-center gap-2",children:[!p&&s.jsx("button",{onClick:B,className:"px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded-lg hover:bg-cyber/20 transition-colors",children:"Edit"}),s.jsxs("button",{onClick:Q,disabled:$,className:"flex items-center gap-1 px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-lg hover:bg-critical/20 disabled:opacity-50 transition-colors",children:[s.jsx(Pn,{size:14})," ",$?"Deleting...":"Delete"]}),s.jsx(it,{status:o.status})]})}),p?s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-4 mb-6 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),s.jsx("input",{value:g,onChange:J=>y(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Email"}),s.jsx("input",{value:b,onChange:J=>j(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Phone"}),s.jsx("input",{value:S,onChange:J=>E(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Company"}),s.jsx("input",{value:M,onChange:J=>w(J.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Notes"}),s.jsx("textarea",{value:N,onChange:J=>C(J.target.value),rows:3,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white resize-none focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:()=>x(!1),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:z,disabled:Z||!g.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:Z?"Saving...":"Save"})]})]}):s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border mb-6",children:[{label:"Email",value:o.email},{label:"Phone",value:o.phone},{label:"Company",value:o.company},{label:"Notes",value:o.notes}].map(J=>J.value?s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-muted",children:J.label}),s.jsx("span",{className:"text-sm font-medium",children:J.value})]},J.label):null)}),s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Timeline"}),h!=null&&h.length?s.jsx("div",{className:"space-y-2",children:h.map(J=>s.jsxs("div",{className:"bg-panel border border-border rounded-lg px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-xs text-cyber font-medium",children:J.event_type.replace(/_/g," ")}),s.jsx("span",{className:"text-xs text-muted",children:new Date(J.created_at).toLocaleString()})]}),J.description&&s.jsx("p",{className:"text-sm",children:J.description})]},J.id))}):s.jsx(jt,{icon:s.jsx(C1,{size:32}),title:"No activity yet",description:"Events will appear here as agents interact with this contact."})]}):s.jsx("div",{className:"p-6 text-muted",children:"Contact not found"})}const TS=["all","active","completed","archived"],S8={blue:"bg-cyber/20 border-cyber/40",green:"bg-matrix/20 border-matrix/40",red:"bg-critical/20 border-critical/40",yellow:"bg-warning/20 border-warning/40",purple:"bg-wealth/20 border-wealth/40"};function VS(){const a=ja(["project:created","project:updated"]),[n,i]=c.useState("all"),[o,u]=c.useState(""),[f,h]=c.useState(!1),{data:p,loading:x,refetch:g}=ye("/api/projects",[a]),y=c.useMemo(()=>{if(!p)return[];let b=p;if(n!=="all"&&(b=b.filter(j=>j.status===n)),o.trim()){const j=o.toLowerCase();b=b.filter(S=>S.name.toLowerCase().includes(j)||(S.description||"").toLowerCase().includes(j))}return b},[p,n,o]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Projects",subtitle:"Organize work into projects",action:s.jsxs("button",{onClick:()=>h(!f),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," New project"]})}),f&&s.jsx(LS,{onClose:()=>h(!1),onSuccess:g}),s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:TS.map(b=>s.jsx("button",{onClick:()=>i(b),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${n===b?"bg-panel text-white":"text-muted hover:text-white"}`,children:b},b))}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),s.jsx("input",{value:o,onChange:b=>u(b.target.value),placeholder:"Search projects...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),x?s.jsx(at,{count:4}):y.length?s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:y.map(b=>s.jsxs(ht,{to:`/projects/${b.id}`,className:`bg-panel border rounded-lg p-4 hover:bg-surface/50 transition-colors ${b.color&&S8[b.color]?S8[b.color]:"border-border"}`,children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsx("h3",{className:"text-sm font-medium truncate",children:b.name}),s.jsx(it,{status:b.status})]}),b.description&&s.jsx("p",{className:"text-xs text-muted line-clamp-2",children:b.description}),s.jsx("p",{className:"text-xs text-muted mt-2",children:new Date(b.created_at).toLocaleDateString()})]},b.id))}):s.jsx(jt,{icon:s.jsx(dp,{size:32}),title:"No projects yet",description:o?`No projects matching "${o}".`:"Create your first project to organize work."})]})}function LS({onClose:a,onSuccess:n}){const[i,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState(!1),y=async b=>{if(b.preventDefault(),!!i.trim()){g(!0);try{await de("/api/projects",{method:"POST",body:JSON.stringify({name:i.trim(),description:u.trim()||void 0,color:h||void 0})}),n(),a()}catch{}finally{g(!1)}}};return s.jsxs("form",{onSubmit:y,className:"bg-panel border border-border rounded-lg p-4 mb-4 space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:b=>o(b.target.value),placeholder:"Project name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Color"}),s.jsxs("select",{value:h,onChange:b=>p(b.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"",children:"None"}),s.jsx("option",{value:"blue",children:"Blue"}),s.jsx("option",{value:"green",children:"Green"}),s.jsx("option",{value:"red",children:"Red"}),s.jsx("option",{value:"yellow",children:"Yellow"}),s.jsx("option",{value:"purple",children:"Purple"})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description (optional)"}),s.jsx("textarea",{value:u,onChange:b=>f(b.target.value),rows:2,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:x||!i.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:x?"Creating...":"Create project"})]})]})}function ZS(){const{id:a}=uo(),n=ja(["task:started","task:completed","task:failed"]),{data:i,loading:o}=ye(a?`/api/projects/${a}`:null),{data:u}=ye(a?`/api/projects/${a}/tasks`:null,[n]);return o?s.jsx("div",{className:"p-6",children:s.jsx(at,{count:4})}):i?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(ht,{to:"/projects",className:"inline-flex items-center gap-1 text-xs text-muted hover:text-white mb-4",children:[s.jsx(fi,{size:14})," Back to projects"]}),s.jsx(nt,{title:i.name,subtitle:i.description||`Created ${new Date(i.created_at).toLocaleDateString()}`,action:s.jsx(it,{status:i.status})}),u&&s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Total tasks"}),s.jsx("p",{className:"text-lg font-bold",children:u.length})]}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"Completed"}),s.jsx("p",{className:"text-lg font-bold",children:u.filter(f=>f.status==="completed").length})]}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-muted",children:"In progress"}),s.jsx("p",{className:"text-lg font-bold",children:u.filter(f=>f.status==="in_progress").length})]})]}),s.jsx("h2",{className:"text-sm font-medium text-muted uppercase tracking-wider mb-3",children:"Tasks"}),u!=null&&u.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:u.map(f=>s.jsxs(ht,{to:`/tasks/${f.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:f.title}),s.jsx("p",{className:"text-xs text-muted",children:new Date(f.created_at).toLocaleString()})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[f.priority&&f.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:f.priority}),s.jsx(it,{status:f.status})]})]},f.id))}):s.jsx(jt,{icon:s.jsx(li,{size:32}),title:"No tasks in this project",description:"Tasks assigned to this project will appear here."})]}):s.jsx("div",{className:"p-6 text-muted",children:"Project not found"})}function HS({steps:a,currentStep:n,children:i}){return s.jsxs("div",{children:[s.jsx("div",{className:"flex items-center gap-2 mb-6",children:a.map((o,u)=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:`w-2 h-2 rounded-full transition-colors ${u<n?"bg-matrix":u===n?"bg-cyber":"bg-border"}`}),s.jsx("span",{className:`text-xs transition-colors ${u===n?"text-white font-medium":"text-muted"}`,children:o})]}),u<a.length-1&&s.jsx("div",{className:`w-6 h-px ${u<n?"bg-matrix/50":"bg-border"}`})]},o))}),i]})}function ro(a){const n=Date.now()-new Date(a).getTime(),i=Math.floor(n/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function DS(){const[a,n]=c.useState("triggers"),[i,o]=c.useState(""),[u,f]=c.useState(!1),[h,p]=c.useState(null),[x,g]=c.useState(null),[y,b]=c.useState(null),[j,S]=c.useState(!1),{data:E,loading:M,refetch:w}=ye("/api/triggers"),{data:N,loading:C}=ye(a==="events"?"/api/webhook-events":null),Z=c.useMemo(()=>{if(!E)return[];if(!i.trim())return E;const U=i.toLowerCase();return E.filter(B=>B.name.toLowerCase().includes(U)||B.event_type.toLowerCase().includes(U))},[E,i]),q=async U=>{try{await de(`/api/triggers/${U.id}`,{method:"PUT",body:JSON.stringify({enabled:!U.enabled})}),w()}catch{he("error","Couldn't toggle trigger. Try again?")}},$=async()=>{if(y){S(!0);try{await de(`/api/triggers/${y.id}`,{method:"DELETE"}),he("success","Trigger deleted"),w()}catch{he("error","Couldn't delete trigger. Try again?")}finally{S(!1),b(null)}}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Automations",subtitle:"Triggers and webhook events",action:s.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," New trigger"]})}),s.jsx("div",{className:"flex gap-1 mb-4 border-b border-border",children:["triggers","events"].map(U=>s.jsx("button",{onClick:()=>n(U),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors capitalize ${a===U?"border-cyber text-white":"border-transparent text-muted hover:text-white"}`,children:U},U))}),a==="triggers"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),s.jsx("input",{value:i,onChange:U=>o(U.target.value),placeholder:"Search triggers...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),M?s.jsx(at,{count:4}):Z.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:Z.map(U=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>p(U.id),children:[s.jsx("p",{className:"text-sm font-medium truncate hover:text-cyber transition-colors",children:U.name}),s.jsxs("p",{className:"text-xs text-muted",children:[s.jsx("span",{className:"text-cyber",children:U.event_type==="custom"?"Custom Webhook":U.event_type})," → ",s.jsx("span",{children:Fp(U.action_type)}),U.fire_count>0&&s.jsxs("span",{className:"ml-2",children:["· ",U.fire_count," ",U.fire_count===1?"run":"runs"]}),U.last_fired_at&&s.jsxs("span",{className:"ml-2",children:["· ",ro(U.last_fired_at)]})]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("button",{onClick:()=>p(U.id),className:"text-muted hover:text-cyber transition-colors",title:"View details",children:s.jsx(V1,{size:14})}),s.jsx("button",{onClick:()=>b(U),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:s.jsx(Pn,{size:14})}),s.jsx(go,{checked:U.enabled,onChange:()=>q(U)})]})]},U.id))}):s.jsx(jt,{icon:s.jsx(so,{size:32}),title:"No triggers yet",description:i?`No triggers matching "${i}".`:"Create a trigger to automate agent actions."})]}),a==="events"&&s.jsx(s.Fragment,{children:C?s.jsx(at,{count:5}):N!=null&&N.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:N.map(U=>s.jsxs("button",{onClick:()=>g(U.id),className:"flex items-center justify-between px-4 py-3 w-full text-left hover:bg-surface/50 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:U.event_type}),s.jsxs("p",{className:"text-xs text-muted",children:[U.source&&s.jsx("span",{className:"text-cyber",children:U.source}),U.source&&" · ",ro(U.created_at)]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(it,{status:U.status}),s.jsx(G6,{size:12,className:"text-muted"})]})]},U.id))}):s.jsx(jt,{icon:s.jsx(so,{size:32}),title:"No webhook events yet",description:"Incoming webhooks will be logged here."})}),u&&s.jsx(RS,{onClose:()=>f(!1),onSuccess:()=>{w(),f(!1)}}),h&&s.jsx(_S,{triggerId:h,onClose:()=>p(null),onUpdate:w}),x&&s.jsx(OS,{eventId:x,onClose:()=>g(null)}),s.jsx(bo,{open:!!y,onClose:()=>b(null),onConfirm:$,title:"Delete trigger",message:`Delete "${y==null?void 0:y.name}"? This can't be undone.`,confirmLabel:"Delete",loading:j})]})}function Fp(a){return{run_agent:"Run Agent",save_contact:"Save Contact",update_contact:"Update Contact",log_contact_event:"Log Event",webhook_forward:"Forward Webhook"}[a]||a}const w8=["Name","Event","Action","Config","Cooldown","Confirm"];function RS({onClose:a,onSuccess:n}){var Q,J;const[i,o]=c.useState(0),[u,f]=c.useState(!1),[h,p]=c.useState(""),[x,g]=c.useState(""),[y,b]=c.useState(""),[j,S]=c.useState(""),[E,M]=c.useState({}),[w,N]=c.useState(0),{data:C}=ye("/api/triggers/action-types"),{data:Z}=ye("/api/triggers/ghl-events"),{data:q}=ye("/api/agents"),$=()=>{switch(i){case 0:return!!h.trim();case 1:return!!y;case 2:return!!j;case 3:return U();case 4:return!0;default:return!0}},U=()=>{var W;switch(j){case"run_agent":return!!(E.agent_id||E.prompt);case"webhook_forward":return!!((W=E.url)!=null&&W.trim());default:return!0}},B=async()=>{f(!0);try{await de("/api/triggers",{method:"POST",body:JSON.stringify({name:h.trim(),description:x.trim()||null,event_type:y,action_type:j,action_config:E,cooldown_seconds:w})}),he("success","Trigger created"),n()}catch{he("error","Couldn't create trigger. Try again?")}finally{f(!1)}},z=c.useMemo(()=>{if(!Z)return{};const W={};for(const re of Z)W[re.category]||(W[re.category]=[]),W[re.category].push(re);return W},[Z]);return s.jsx(Aa,{open:!0,onClose:a,title:"New trigger",maxWidth:"max-w-lg",children:s.jsxs(HS,{steps:w8,currentStep:i,children:[i===0&&s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Trigger name"}),s.jsx("input",{value:h,onChange:W=>p(W.target.value),placeholder:"New lead notification",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description (optional)"}),s.jsx("textarea",{value:x,onChange:W=>g(W.target.value),placeholder:"What does this trigger do?",rows:2,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"})]})]}),i===1&&s.jsx("div",{className:"space-y-3 max-h-[50vh] overflow-y-auto",children:Object.entries(z).map(([W,re])=>s.jsxs("div",{children:[s.jsx("p",{className:"text-xs text-muted uppercase tracking-wider mb-1.5",children:W}),s.jsx("div",{className:"space-y-1",children:re.map(le=>s.jsx("button",{onClick:()=>b(le.value),className:`w-full text-left px-3 py-2 rounded text-sm transition-colors border ${y===le.value?"border-cyber bg-cyber/10 text-white":"border-border hover:border-muted text-muted hover:text-white"}`,children:le.label},le.value))})]},W))}),i===2&&s.jsx("div",{className:"space-y-2",children:C==null?void 0:C.map(W=>s.jsxs("button",{onClick:()=>{S(W.value),M({})},className:`w-full text-left px-3 py-3 rounded-lg text-sm transition-colors border ${j===W.value?"border-cyber bg-cyber/10":"border-border hover:border-muted"}`,children:[s.jsx("span",{className:"block font-medium",children:W.label}),s.jsx("span",{className:"block text-xs text-muted mt-0.5",children:W.description})]},W.value))}),i===3&&s.jsx(kS,{actionType:j,config:E,onChange:M,agents:q||[]}),i===4&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Minimum seconds between fires"}),s.jsx("input",{type:"number",value:w,onChange:W=>N(Math.max(0,parseInt(W.target.value)||0)),min:0,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber"}),s.jsx("p",{className:"text-xs text-muted mt-1",children:"Set to 0 for no cooldown. Prevents duplicate processing of rapid events."})]}),i===5&&s.jsx("div",{className:"space-y-3",children:s.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2",children:[s.jsx(bt,{label:"Name",value:h}),s.jsx(bt,{label:"Event",value:((Q=Z==null?void 0:Z.find(W=>W.value===y))==null?void 0:Q.label)||y}),s.jsx(bt,{label:"Action",value:((J=C==null?void 0:C.find(W=>W.value===j))==null?void 0:J.label)||j}),w>0&&s.jsx(bt,{label:"Cooldown",value:`${w}s`}),x&&s.jsx(bt,{label:"Description",value:x})]})}),s.jsxs("div",{className:"flex justify-between mt-6",children:[s.jsx("button",{onClick:()=>i>0?o(i-1):a(),className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:i===0?"Cancel":"Back"}),i<w8.length-1?s.jsx("button",{onClick:()=>o(i+1),disabled:!$(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:"Next"}):s.jsx("button",{onClick:B,disabled:u,className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:u?"Creating...":"Create trigger"})]})]})})}function bt({label:a,value:n}){return s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-muted",children:a}),s.jsx("span",{className:"font-medium",children:n})]})}function kS({actionType:a,config:n,onChange:i,agents:o}){const u=(f,h)=>i({...n,[f]:h});switch(a){case"run_agent":return s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent"}),s.jsxs("select",{value:n.agent_id||"",onChange:f=>u("agent_id",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"",children:"Orchestrator (default)"}),o.map(f=>s.jsx("option",{value:f.id,children:f.name},f.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Prompt template"}),s.jsx("textarea",{value:n.prompt||"",onChange:f=>u("prompt",f.target.value),placeholder:"Process this webhook: {{payload}}",rows:3,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"}),s.jsxs("p",{className:"text-xs text-muted mt-1",children:["Use ","{{payload}}"," to include webhook data"]})]})]});case"save_contact":return s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Contact type"}),s.jsxs("select",{value:n.contact_type||"lead",onChange:f=>u("contact_type",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"lead",children:"Lead"}),s.jsx("option",{value:"customer",children:"Customer"}),s.jsx("option",{value:"vendor",children:"Vendor"}),s.jsx("option",{value:"partner",children:"Partner"}),s.jsx("option",{value:"other",children:"Other"})]})]}),s.jsx(E8,{config:n,onChange:i})]});case"update_contact":return s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match field"}),s.jsxs("select",{value:n.match_field||"email",onChange:f=>u("match_field",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"email",children:"Email"}),s.jsx("option",{value:"phone",children:"Phone"}),s.jsx("option",{value:"name",children:"Name"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match value path (in payload)"}),s.jsx("input",{value:n.value_path||"",onChange:f=>u("value_path",f.target.value),placeholder:"contact.email",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsx(E8,{config:n,onChange:i})]});case"log_contact_event":return s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match field"}),s.jsxs("select",{value:n.match_field||"email",onChange:f=>u("match_field",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"email",children:"Email"}),s.jsx("option",{value:"phone",children:"Phone"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Match value path"}),s.jsx("input",{value:n.value_path||"",onChange:f=>u("value_path",f.target.value),placeholder:"contact.email",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Event type"}),s.jsx("input",{value:n.event_type||"",onChange:f=>u("event_type",f.target.value),placeholder:"form_submission",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Title template"}),s.jsx("input",{value:n.title_template||"",onChange:f=>u("title_template",f.target.value),placeholder:"Submitted form: {{form_name}}",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]});case"webhook_forward":return s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Forward URL"}),s.jsx("input",{value:n.url||"",onChange:f=>u("url",f.target.value),placeholder:"https://example.com/webhook",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"HTTP Method"}),s.jsxs("select",{value:n.method||"POST",onChange:f=>u("method",f.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"POST",children:"POST"}),s.jsx("option",{value:"PUT",children:"PUT"})]})]})]});default:return s.jsx("p",{className:"text-sm text-muted",children:"No configuration needed for this action type."})}}function E8({config:a,onChange:n}){const{data:i}=ye("/api/triggers/action-types"),o=(i==null?void 0:i.contactFields)||[],u=a.field_mappings||{},f=(h,p)=>{const x={...u};p?x[h]=p:delete x[h],n({...a,field_mappings:x})};return s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-2",children:"Field mappings (payload path → contact field)"}),s.jsx("div",{className:"space-y-2",children:o.map(h=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs text-muted w-20 shrink-0",children:h.label}),s.jsx("input",{value:u[h.value]||"",onChange:p=>f(h.value,p.target.value),placeholder:`payload.${h.value}`,className:"flex-1 bg-surface border border-border rounded px-2 py-1.5 text-xs text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]},h.value))})]})}function _S({triggerId:a,onClose:n,onUpdate:i}){const{data:o,loading:u}=ye(`/api/triggers/${a}`),[f,h]=c.useState(null);c.useEffect(()=>{(o==null?void 0:o.event_type)==="custom"&&o.webhook_token&&de(`/api/triggers/${a}/webhook-url`).then(x=>h(x.data.webhookUrl)).catch(()=>{})},[o,a]);const p=async()=>{if(o)try{await de(`/api/triggers/${a}`,{method:"PUT",body:JSON.stringify({enabled:!o.enabled})}),i()}catch{he("error","Couldn't toggle trigger")}};return s.jsx(Aa,{open:!0,onClose:n,title:"Trigger details",maxWidth:"max-w-lg",children:u?s.jsx(at,{count:3}):o?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-semibold",children:o.name}),o.description&&s.jsx("p",{className:"text-xs text-muted mt-0.5",children:o.description})]}),s.jsx(go,{checked:o.enabled,onChange:p})]}),s.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[s.jsx(bt,{label:"Event",value:o.event_type==="custom"?"Custom Webhook":o.event_type}),s.jsx(bt,{label:"Action",value:Fp(o.action_type)}),s.jsx(bt,{label:"Fires",value:String(o.fire_count)}),o.cooldown_seconds>0&&s.jsx(bt,{label:"Cooldown",value:`${o.cooldown_seconds}s`}),o.last_fired_at&&s.jsx(bt,{label:"Last fired",value:ro(o.last_fired_at)}),s.jsx(bt,{label:"Created",value:new Date(o.created_at).toLocaleDateString()})]}),f&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Webhook URL"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{readOnly:!0,value:f,className:"flex-1 bg-surface border border-border rounded px-3 py-2 text-xs text-white font-mono"}),s.jsx("button",{onClick:()=>{navigator.clipboard.writeText(f),he("info","Copied to clipboard")},className:"px-3 py-2 text-xs bg-cyber/10 border border-cyber/30 text-cyber rounded hover:bg-cyber/20 transition-colors shrink-0",children:"Copy"})]})]}),o.action_config&&Object.keys(o.action_config).length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Action config"}),s.jsx("pre",{className:"bg-surface border border-border rounded p-3 text-xs text-muted overflow-x-auto max-h-32",children:JSON.stringify(o.action_config,null,2)})]}),o.executions.length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-2",children:"Recent executions"}),s.jsx("div",{className:"bg-surface/50 rounded-lg divide-y divide-border",children:o.executions.map(x=>s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx("span",{className:"text-xs text-muted",children:ro(x.created_at)}),s.jsx(it,{status:x.status})]},x.id))})]})]}):s.jsx("p",{className:"text-sm text-muted",children:"Trigger not found."})})}function OS({eventId:a,onClose:n}){const{data:i,loading:o}=ye(`/api/webhook-events/${a}`),u=i!=null&&i.payload?typeof i.payload=="string"?i.payload:JSON.stringify(i.payload,null,2):"";return s.jsx(Aa,{open:!0,onClose:n,title:"Webhook event",maxWidth:"max-w-lg",children:o?s.jsx(at,{count:3}):i?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[s.jsx(bt,{label:"Event type",value:i.event_type}),s.jsx(bt,{label:"Source",value:i.source||"Unknown"}),s.jsx(bt,{label:"Status",value:i.status}),s.jsx(bt,{label:"Received",value:new Date(i.created_at).toLocaleString()})]}),u&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Payload"}),s.jsx("pre",{className:"bg-surface border border-border rounded p-3 text-xs text-muted overflow-x-auto max-h-64 whitespace-pre-wrap",children:u})]})]}):s.jsx("p",{className:"text-sm text-muted",children:"Event not found."})})}const zS=["all","draft","active","paused","archived"],BS={draft:[{value:"active",label:"Activate"}],active:[{value:"paused",label:"Pause"},{value:"archived",label:"Archive"}],paused:[{value:"active",label:"Resume"},{value:"archived",label:"Archive"}],archived:[{value:"draft",label:"Restore to draft"}]};function US(){const[a,n]=c.useState("all"),[i,o]=c.useState(""),[u,f]=c.useState(!1),[h,p]=c.useState(null),[x,g]=c.useState(null),[y,b]=c.useState(!1),{data:j,loading:S,refetch:E}=ye("/api/workflows"),M=c.useMemo(()=>{if(!j)return[];let C=j;if(a!=="all"&&(C=C.filter(Z=>Z.status===a)),i.trim()){const Z=i.toLowerCase();C=C.filter(q=>q.name.toLowerCase().includes(Z)||(q.description||"").toLowerCase().includes(Z))}return C},[j,a,i]),w=async()=>{if(x){b(!0);try{await de(`/api/workflows/${x.id}`,{method:"DELETE"}),he("success","Workflow deleted"),E()}catch{he("error","Couldn't delete workflow")}finally{b(!1),g(null)}}},N=async(C,Z)=>{try{await de(`/api/workflows/${C}`,{method:"PATCH",body:JSON.stringify({status:Z})}),he("success",`Workflow ${Z}`),E(),(h==null?void 0:h.id)===C&&p(null)}catch{he("error","Couldn't update workflow status")}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Workflows",subtitle:"Multi-step agent workflows",action:s.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," New workflow"]})}),s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:zS.map(C=>s.jsx("button",{onClick:()=>n(C),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===C?"bg-panel text-white":"text-muted hover:text-white"}`,children:C},C))}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),s.jsx("input",{value:i,onChange:C=>o(C.target.value),placeholder:"Search workflows...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),S?s.jsx(at,{count:4}):M.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:M.map(C=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>p(C),children:[s.jsx("p",{className:"text-sm font-medium truncate hover:text-cyber transition-colors",children:C.name}),s.jsxs("p",{className:"text-xs text-muted",children:[C.description||"No description",s.jsxs("span",{className:"ml-2",children:["· ",new Date(C.updated_at).toLocaleDateString()]})]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx(it,{status:C.status}),s.jsx("button",{onClick:()=>p(C),className:"text-muted hover:text-cyber transition-colors",title:"Details",children:s.jsx(V1,{size:14})}),C.status==="active"&&s.jsx("button",{onClick:()=>N(C.id,"paused"),className:"text-muted hover:text-warning transition-colors",title:"Pause",children:s.jsx(Ep,{size:14})}),s.jsx("button",{onClick:()=>g(C),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:s.jsx(Pn,{size:14})})]})]},C.id))}):s.jsx(jt,{icon:s.jsx(ip,{size:32}),title:"No workflows yet",description:i?`No workflows matching "${i}".`:"Create a workflow to orchestrate multi-step agent tasks.",action:s.jsxs("button",{onClick:()=>f(!0),className:"mt-3 flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," Create your first workflow"]})}),u&&s.jsx(FS,{onClose:()=>f(!1),onSuccess:()=>{E(),f(!1)}}),h&&s.jsx(qS,{workflow:h,onClose:()=>p(null),onStatusChange:N}),s.jsx(bo,{open:!!x,onClose:()=>g(null),onConfirm:w,title:"Delete workflow",message:`Delete "${x==null?void 0:x.name}"? This can't be undone.`,confirmLabel:"Delete",loading:y})]})}function FS({onClose:a,onSuccess:n}){const[i,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(`{
|
|
75
|
-
"steps": []
|
|
76
|
-
}`),[x,g]=c.useState(!1),[y,b]=c.useState(null),j=async S=>{if(S.preventDefault(),!i.trim())return;let E;try{E=JSON.parse(h),b(null)}catch{b("Invalid JSON");return}g(!0);try{await de("/api/workflows",{method:"POST",body:JSON.stringify({name:i.trim(),description:u.trim()||null,definition:E})}),he("success","Workflow created"),n()}catch{he("error","Couldn't create workflow")}finally{g(!1)}};return s.jsx(Aa,{open:!0,onClose:a,title:"New workflow",maxWidth:"max-w-lg",children:s.jsxs("form",{onSubmit:j,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:S=>o(S.target.value),placeholder:"Onboarding flow",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Description"}),s.jsx("input",{value:u,onChange:S=>f(S.target.value),placeholder:"What does this workflow do?",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Definition (JSON)"}),s.jsx("textarea",{value:h,onChange:S=>{p(S.target.value),b(null)},rows:8,className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white font-mono placeholder:text-muted/50 focus:outline-none focus:border-cyber resize-none"}),y&&s.jsx("p",{className:"text-xs text-critical mt-1",children:y})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:x||!i.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:x?"Creating...":"Create workflow"})]})]})})}function qS({workflow:a,onClose:n,onStatusChange:i}){let o;try{const f=typeof a.definition=="string"?JSON.parse(a.definition):a.definition;o=JSON.stringify(f,null,2)}catch{o=String(a.definition)}const u=BS[a.status]||[];return s.jsx(Aa,{open:!0,onClose:n,title:"Workflow details",maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-semibold",children:a.name}),a.description&&s.jsx("p",{className:"text-xs text-muted mt-0.5",children:a.description})]}),s.jsx(it,{status:a.status})]}),s.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted",children:"Status"}),s.jsx("span",{className:"font-medium capitalize",children:a.status})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted",children:"Created"}),s.jsx("span",{className:"font-medium",children:new Date(a.created_at).toLocaleDateString()})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted",children:"Updated"}),s.jsx("span",{className:"font-medium",children:new Date(a.updated_at).toLocaleString()})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Definition"}),s.jsx("pre",{className:"bg-surface border border-border rounded p-3 text-xs text-muted overflow-x-auto max-h-48 whitespace-pre-wrap",children:o})]}),u.length>0&&s.jsx("div",{className:"flex gap-2 justify-end pt-2",children:u.map(f=>s.jsx("button",{onClick:()=>i(a.id,f.value),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors border ${f.value==="active"?"bg-matrix/10 border-matrix/30 text-matrix hover:bg-matrix/20":f.value==="archived"?"bg-muted/10 border-border text-muted hover:text-white":"bg-warning/10 border-warning/30 text-warning hover:bg-warning/20"}`,children:f.label},f.value))})]})})}function qp(a){const n=Date.now()-new Date(a).getTime(),i=Math.floor(n/6e4);if(i<1)return"just now";if(i<60)return`${i}m ago`;const o=Math.floor(i/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function $S(){const[a,n]=c.useState(""),[i,o]=c.useState(!1),[u,f]=c.useState(null),[h,p]=c.useState(null),[x,g]=c.useState(null),[y,b]=c.useState(!1),{data:j,loading:S,refetch:E}=ye("/api/a2a/connections"),M=c.useMemo(()=>{if(!j)return[];if(!a.trim())return j;const C=a.toLowerCase();return j.filter(Z=>Z.name.toLowerCase().includes(C)||Z.endpoint_url.toLowerCase().includes(C))},[j,a]),w=async C=>{f(C);try{await de(`/api/a2a/connections/${C}/test`,{method:"POST"}),he("success","Connection is healthy"),E()}catch{he("error","Connection test failed"),E()}finally{f(null)}},N=async()=>{if(x){b(!0);try{await de(`/api/a2a/connections/${x.id}`,{method:"DELETE"}),he("success","Connection deleted"),E()}catch{he("error","Couldn't delete connection")}finally{b(!1),g(null)}}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(nt,{title:"Connections",subtitle:"A2A agent connections",action:s.jsxs("button",{onClick:()=>o(!i),className:"flex items-center gap-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded-lg px-3 py-1.5 text-xs font-medium hover:bg-cyber/20 transition-colors",children:[s.jsx(Ut,{size:14})," New connection"]})}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Xn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),s.jsx("input",{value:a,onChange:C=>n(C.target.value),placeholder:"Search connections...",className:"w-full bg-surface border border-border rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),S?s.jsx(at,{count:4}):M.length?s.jsx("div",{className:"bg-panel border border-border rounded-lg divide-y divide-border",children:M.map(C=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>p(C),children:[s.jsx("p",{className:"text-sm font-medium truncate hover:text-cyber transition-colors",children:C.name}),s.jsxs("p",{className:"text-xs text-muted truncate",children:[s.jsx("span",{className:"text-cyber",children:C.endpoint_url}),s.jsxs("span",{className:"ml-2",children:["· ",C.trust_level.replace(/_/g," ")]}),C.auth_type!=="none"&&s.jsxs("span",{className:"ml-2",children:["· ",C.auth_type.replace(/_/g," ")]}),C.last_health_check_at&&s.jsxs("span",{className:"ml-2",children:["· checked ",qp(C.last_health_check_at)]})]}),C.skills&&C.skills.length>0&&s.jsxs("div",{className:"flex gap-1 mt-1",children:[C.skills.slice(0,3).map(Z=>s.jsx("span",{className:"text-[10px] bg-surface px-1.5 py-0.5 rounded text-muted",children:Z},Z)),C.skills.length>3&&s.jsxs("span",{className:"text-[10px] text-muted",children:["+",C.skills.length-3]})]})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx(it,{status:C.status}),s.jsx("button",{onClick:()=>p(C),className:"text-muted hover:text-cyber transition-colors",title:"Details",children:s.jsx(V1,{size:14})}),s.jsx("button",{onClick:()=>w(C.id),disabled:u===C.id,className:"text-muted hover:text-cyber transition-colors disabled:opacity-50",title:"Test connection",children:s.jsx(T1,{size:14,className:u===C.id?"animate-spin":""})}),s.jsx("button",{onClick:()=>g(C),className:"text-muted hover:text-critical transition-colors",title:"Delete",children:s.jsx(Pn,{size:14})})]})]},C.id))}):s.jsx(jt,{icon:s.jsx(Mp,{size:32}),title:"No connections yet",description:a?`No connections matching "${a}".`:"Connect to external A2A agents."}),i&&s.jsx(YS,{onClose:()=>o(!1),onSuccess:()=>{E(),o(!1)}}),h&&s.jsx(GS,{connection:h,onClose:()=>p(null),onTest:()=>w(h.id),testing:u===h.id}),s.jsx(bo,{open:!!x,onClose:()=>g(null),onConfirm:N,title:"Delete connection",message:`Delete "${x==null?void 0:x.name}"? This can't be undone.`,confirmLabel:"Delete",loading:y})]})}function YS({onClose:a,onSuccess:n}){const[i,o]=c.useState(""),[u,f]=c.useState(""),[h,p]=c.useState(""),[x,g]=c.useState("read_only"),[y,b]=c.useState("none"),[j,S]=c.useState(""),[E,M]=c.useState(!1),[w,N]=c.useState(!1),C=async()=>{if(u.trim()){N(!0);try{const q=await fetch(u.trim());if(q.ok){const $=await q.json();$.name&&!i&&o($.name),$.url&&!h&&p($.url),he("success","Agent card loaded")}}catch{he("error","Couldn't fetch agent card")}finally{N(!1)}}},Z=async q=>{if(q.preventDefault(),!(!i.trim()||!u.trim()||!h.trim())){M(!0);try{await de("/api/a2a/connections",{method:"POST",body:JSON.stringify({name:i.trim(),agent_card_url:u.trim(),endpoint_url:h.trim(),trust_level:x,auth_type:y,...y!=="none"&&j.trim()?{credential:j.trim()}:{}})}),he("success","Connection created"),n()}catch{he("error","Couldn't create connection")}finally{M(!1)}}};return s.jsx(Aa,{open:!0,onClose:a,title:"New connection",maxWidth:"max-w-lg",children:s.jsxs("form",{onSubmit:Z,className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Agent card URL"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{value:u,onChange:q=>f(q.target.value),placeholder:"https://agent.example.com/.well-known/agent-card.json",className:"flex-1 bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"}),s.jsx("button",{type:"button",onClick:C,disabled:w||!u.trim(),className:"px-3 py-2 text-xs bg-cyber/10 border border-cyber/30 text-cyber rounded hover:bg-cyber/20 transition-colors disabled:opacity-50 shrink-0",children:w?s.jsx(Bt,{size:14,className:"animate-spin"}):"Discover"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:q=>o(q.target.value),placeholder:"Connection name",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Trust level"}),s.jsxs("select",{value:x,onChange:q=>g(q.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"read_only",children:"Read only"}),s.jsx("option",{value:"execute",children:"Execute"}),s.jsx("option",{value:"autonomous",children:"Autonomous"})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Endpoint URL"}),s.jsx("input",{value:h,onChange:q=>p(q.target.value),placeholder:"https://agent.example.com/a2a",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:"Auth type"}),s.jsxs("select",{value:y,onChange:q=>b(q.target.value),className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-cyber",children:[s.jsx("option",{value:"none",children:"None"}),s.jsx("option",{value:"bearer_token",children:"Bearer token"}),s.jsx("option",{value:"api_key",children:"API key"})]})]}),y!=="none"&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1",children:y==="bearer_token"?"Token":"API Key"}),s.jsx("input",{type:"password",value:j,onChange:q=>S(q.target.value),placeholder:y==="bearer_token"?"Bearer token":"API key value",className:"w-full bg-surface border border-border rounded px-3 py-2 text-sm text-white placeholder:text-muted/50 focus:outline-none focus:border-cyber"})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-muted hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:E||!i.trim()||!u.trim()||!h.trim(),className:"px-3 py-1.5 bg-cyber/10 border border-cyber/30 text-cyber rounded text-xs font-medium hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:E?"Creating...":"Create connection"})]})]})})}function GS({connection:a,onClose:n,onTest:i,testing:o}){return s.jsx(Aa,{open:!0,onClose:n,title:"Connection details",maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-semibold",children:a.name}),a.description&&s.jsx("p",{className:"text-xs text-muted mt-0.5",children:a.description})]}),s.jsx(it,{status:a.status})]}),s.jsxs("div",{className:"bg-surface/50 rounded-lg p-3 space-y-2 text-sm",children:[s.jsx(Hl,{label:"Endpoint",value:a.endpoint_url}),s.jsx(Hl,{label:"Agent card",value:a.agent_card_url}),s.jsx(Hl,{label:"Trust level",value:a.trust_level.replace(/_/g," ")}),s.jsx(Hl,{label:"Auth type",value:a.auth_type==="none"?"None":a.auth_type.replace(/_/g," ")}),a.last_health_check_at&&s.jsx(Hl,{label:"Last health check",value:`${qp(a.last_health_check_at)} (${a.last_health_status||"unknown"})`}),s.jsx(Hl,{label:"Created",value:new Date(a.created_at).toLocaleDateString()})]}),a.skills&&a.skills.length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted block mb-1.5",children:"Skills"}),s.jsx("div",{className:"flex gap-1.5 flex-wrap",children:a.skills.map(u=>s.jsx("span",{className:"text-xs bg-surface border border-border px-2 py-1 rounded",children:u},u))})]}),s.jsx("div",{className:"flex gap-2 justify-end pt-2",children:s.jsx("button",{onClick:i,disabled:o,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-cyber/10 border border-cyber/30 text-cyber rounded hover:bg-cyber/20 disabled:opacity-50 transition-colors",children:o?s.jsxs(s.Fragment,{children:[s.jsx(Bt,{size:14,className:"animate-spin"})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsx(T1,{size:14})," Test connection"]})})})]})})}function Hl({label:a,value:n}){return s.jsxs("div",{className:"flex justify-between gap-4",children:[s.jsx("span",{className:"text-muted shrink-0",children:a}),s.jsx("span",{className:"font-medium text-right break-all",children:n})]})}const XS=[{value:"text",label:"Text"},{value:"checkbox",label:"Checkbox"},{value:"dropdown",label:"Dropdown"},{value:"date",label:"Date"},{value:"signature",label:"Signature"}],N8={text:"border-blue-400 bg-blue-400/10",checkbox:"border-green-400 bg-green-400/10",dropdown:"border-purple-400 bg-purple-400/10",date:"border-amber-400 bg-amber-400/10",signature:"border-pink-400 bg-pink-400/10"},M8={text:"bg-blue-400/80 text-blue-950",checkbox:"bg-green-400/80 text-green-950",dropdown:"bg-purple-400/80 text-purple-950",date:"bg-amber-400/80 text-amber-950",signature:"bg-pink-400/80 text-pink-950"};function PS(){const[a,n]=c.useState("upload"),[i,o]=c.useState(null),[u,f]=c.useState(null),[h,p]=c.useState([]),[x,g]=c.useState([]),[y,b]=c.useState([]),[j,S]=c.useState(null),[E,M]=c.useState(0),[w,N]=c.useState(!1),[C,Z]=c.useState(null),[q,$]=c.useState(null),U=c.useCallback(()=>{q&&URL.revokeObjectURL(q),n("upload"),o(null),f(null),p([]),g([]),b([]),S(null),M(0),N(!1),Z(null),$(null)},[q]),B=c.useCallback(async le=>{N(!0),Z(null);try{const K=await le.arrayBuffer(),te=new Uint8Array(K);let R="";for(let ce=0;ce<te.length;ce++)R+=String.fromCharCode(te[ce]);const _=btoa(R),I=await de("/api/pdf-tools/convert",{method:"POST",body:JSON.stringify({pdfBase64:_})});o(_),f(le.name),p(I.data.pages),g(I.data.pageDimensions),n("detecting")}catch(K){Z(K instanceof Error?K.message:"Upload failed")}finally{N(!1)}},[]),z=c.useCallback(async(le,K)=>{N(!0),Z(null);try{const te=await de("/api/pdf-tools/detect",{method:"POST",body:JSON.stringify({pages:h,ollamaUrl:le,model:K})});b(te.data.fields),n("editor")}catch(te){Z(te instanceof Error?te.message:"Detection failed")}finally{N(!1)}},[h]),Q=c.useCallback(async()=>{if(i){N(!0),Z(null),n("generating");try{const le=yn(),K=await fetch("/api/pdf-tools/generate",{method:"POST",headers:{"Content-Type":"application/json",...le?{Authorization:`Bearer ${le}`}:{}},body:JSON.stringify({originalPdfBase64:i,fields:y,pageDimensions:x})});if(!K.ok){const R=await K.json().catch(()=>({error:"Generation failed"}));throw new Error(R.error||"Generation failed")}const te=await K.blob();$(URL.createObjectURL(te)),n("done")}catch(le){Z(le instanceof Error?le.message:"Generation failed"),n("editor")}finally{N(!1)}}},[i,y,x]),J=c.useCallback((le,K)=>{b(te=>te.map(R=>R.id===le?{...R,...K}:R))},[]),W=c.useCallback(le=>{b(K=>K.filter(te=>te.id!==le)),S(K=>K===le?null:K)},[]),re=c.useCallback(le=>{b(K=>[...K,le]),S(le.id)},[]);return s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsx(nt,{title:"PDF Tools",subtitle:"Convert flat PDFs into fillable AcroForm documents"}),C&&s.jsx("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg px-4 py-3 text-red-400 text-sm",children:C}),a==="upload"&&s.jsx(KS,{onUpload:B,loading:w}),a==="detecting"&&s.jsx(QS,{pages:h,onDetect:z,loading:w}),a==="editor"&&s.jsx(JS,{pages:h,fields:y,currentPage:E,selectedFieldId:j,onSetCurrentPage:M,onSelectField:S,onUpdateField:J,onDeleteField:W,onAddField:re,onGenerate:Q,onReset:U}),a==="generating"&&s.jsxs("div",{className:"flex flex-col items-center py-16 gap-4",children:[s.jsx(Bt,{className:"w-12 h-12 text-accent animate-spin"}),s.jsx("p",{className:"text-muted",children:"Generating your fillable PDF..."})]}),a==="done"&&s.jsxs("div",{className:"flex flex-col items-center py-16 gap-6",children:[s.jsx("div",{className:"w-20 h-20 rounded-full bg-green-500/10 flex items-center justify-center",children:s.jsx(L1,{className:"w-10 h-10 text-green-400"})}),s.jsxs("div",{className:"text-center",children:[s.jsx("h2",{className:"text-xl font-bold",children:"Your fillable PDF is ready"}),s.jsx("p",{className:"text-muted text-sm mt-1",children:"Open it in any PDF viewer to fill in the form fields."})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[q&&s.jsxs("a",{href:q,download:(u==null?void 0:u.replace(/\.pdf$/i,"-fillable.pdf"))||"form-fillable.pdf",className:"btn btn-primary flex items-center gap-2",children:[s.jsx(Kj,{className:"w-4 h-4"}),"Download PDF"]}),s.jsxs("button",{onClick:U,className:"btn btn-secondary flex items-center gap-2",children:[s.jsx(T1,{className:"w-4 h-4"}),"Convert Another"]})]})]})]})}function KS({onUpload:a,loading:n}){const i=c.useRef(null),[o,u]=c.useState(!1);return s.jsxs("div",{className:`border-2 border-dashed rounded-xl p-12 text-center cursor-pointer transition-colors ${o?"border-accent bg-accent/5":"border-border hover:border-muted"}`,onClick:()=>{var f;return(f=i.current)==null?void 0:f.click()},onDragOver:f=>{f.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:f=>{f.preventDefault(),u(!1);const h=f.dataTransfer.files[0];h&&a(h)},children:[s.jsx("input",{ref:i,type:"file",accept:".pdf",className:"hidden",onChange:f=>{var p;const h=(p=f.target.files)==null?void 0:p[0];h&&a(h)}}),n?s.jsxs("div",{className:"flex flex-col items-center gap-3",children:[s.jsx(Bt,{className:"w-10 h-10 text-accent animate-spin"}),s.jsx("p",{className:"text-muted",children:"Converting PDF pages to images..."})]}):s.jsxs("div",{className:"flex flex-col items-center gap-3",children:[s.jsx("div",{className:"w-16 h-16 rounded-full bg-surface flex items-center justify-center",children:s.jsx(aA,{className:"w-8 h-8 text-muted"})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Drop a PDF here or click to browse"}),s.jsx("p",{className:"text-muted text-sm mt-1",children:"Max 20MB. The AI will detect fillable fields."})]})]})]})}function QS({pages:a,onDetect:n,loading:i}){const[o,u]=c.useState("http://localhost:11434"),[f,h]=c.useState("llama3.2-vision");return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-surface border border-border rounded-lg p-4 space-y-3",children:[s.jsx("h3",{className:"text-sm font-medium",children:"AI Field Detection"}),s.jsxs("p",{className:"text-xs text-muted",children:[a.length," ",a.length===1?"page":"pages"," ready. Configure your Ollama vision model, then detect fields."]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Ollama URL"}),s.jsx("input",{type:"text",value:o,onChange:p=>u(p.target.value),className:"input w-full",disabled:i})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Vision Model"}),s.jsx("input",{type:"text",value:f,onChange:p=>h(p.target.value),className:"input w-full",disabled:i})]})]}),s.jsx("button",{onClick:()=>n(o,f),disabled:i,className:"btn btn-primary",children:i?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Bt,{className:"w-4 h-4 animate-spin"}),"Detecting fields..."]}):"Detect Fields"})]}),s.jsx("div",{className:"grid grid-cols-3 gap-3",children:a.slice(0,6).map(p=>s.jsxs("div",{className:"relative bg-surface border border-border rounded-lg overflow-hidden",children:[s.jsx("img",{src:`data:image/png;base64,${p.imageBase64}`,alt:`Page ${p.page+1}`,className:"w-full"}),s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-black/60 px-2 py-1 text-xs text-gray-300",children:["Page ",p.page+1]}),i&&s.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center",children:s.jsx(Bt,{className:"w-8 h-8 text-accent animate-spin"})})]},p.page))})]})}function JS({pages:a,fields:n,currentPage:i,selectedFieldId:o,onSetCurrentPage:u,onSelectField:f,onUpdateField:h,onDeleteField:p,onAddField:x,onGenerate:g,onReset:y}){const b=a[i],j=n.filter(w=>w.page===i),S=n.find(w=>w.id===o),E=c.useRef(null),M=c.useCallback(w=>{if(!E.current||!w.target.classList.contains("pdf-page-img"))return;const C=E.current.getBoundingClientRect(),Z=(w.clientX-C.left)/C.width*100,q=(w.clientY-C.top)/C.height*100;x({id:crypto.randomUUID(),label:`Field ${n.length+1}`,type:"text",page:i,x:Math.max(0,Z-10),y:Math.max(0,q-1.5),width:20,height:3,required:!1})},[x,i,n.length]);return b?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick:y,className:"flex items-center gap-1 text-muted hover:text-white text-sm",children:[s.jsx(fi,{className:"w-4 h-4"})," Start Over"]}),s.jsx("span",{className:"text-muted",children:"|"}),s.jsxs("span",{className:"text-sm text-muted",children:[n.length," ",n.length===1?"field":"fields"," detected"]})]}),s.jsxs("button",{onClick:g,disabled:n.length===0,className:"btn btn-primary flex items-center gap-2",children:[s.jsx(L1,{className:"w-4 h-4"})," Generate AcroForm PDF"]})]}),s.jsxs("div",{className:"grid grid-cols-[1fr_280px] gap-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{ref:E,className:"relative bg-surface rounded-lg overflow-hidden cursor-crosshair",onClick:M,children:[s.jsx("img",{src:`data:image/png;base64,${b.imageBase64}`,alt:`Page ${b.page+1}`,className:"pdf-page-img w-full block",draggable:!1}),j.map(w=>s.jsx(WS,{field:w,isSelected:w.id===o,containerRef:E,onSelect:()=>f(w.id),onUpdate:h},w.id))]}),a.length>1&&s.jsxs("div",{className:"flex items-center justify-center gap-3",children:[s.jsx("button",{onClick:()=>u(Math.max(0,i-1)),disabled:i===0,className:"p-1 rounded hover:bg-surface disabled:opacity-30 text-muted",children:s.jsx(qj,{className:"w-5 h-5"})}),s.jsxs("span",{className:"text-sm text-muted",children:["Page ",i+1," of ",a.length]}),s.jsx("button",{onClick:()=>u(Math.min(a.length-1,i+1)),disabled:i===a.length-1,className:"p-1 rounded hover:bg-surface disabled:opacity-30 text-muted",children:s.jsx(G6,{className:"w-5 h-5"})})]})]}),s.jsx("div",{className:"bg-surface border border-border rounded-lg overflow-y-auto max-h-[80vh] p-4",children:S?s.jsx(IS,{field:S,onUpdate:h,onDelete:p,onDeselect:()=>f(null)}):s.jsxs("div",{className:"text-center text-muted text-sm mt-8",children:[s.jsx("p",{children:"Click a field on the PDF to edit its properties."}),s.jsx("p",{className:"mt-2 text-xs",children:"Or click anywhere on the page to add a new field."})]})})]})]}):null}function WS({field:a,isSelected:n,containerRef:i,onSelect:o,onUpdate:u}){const[f,h]=c.useState(!1),p=c.useRef(null),x=N8[a.type]||N8.text,g=M8[a.type]||M8.text,y=c.useCallback(b=>{b.stopPropagation(),b.preventDefault(),o(),h(!0),p.current={startX:b.clientX,startY:b.clientY,origX:a.x,origY:a.y};const j=E=>{if(!p.current||!i.current)return;const M=i.current.getBoundingClientRect(),w=(E.clientX-p.current.startX)/M.width*100,N=(E.clientY-p.current.startY)/M.height*100;u(a.id,{x:Math.max(0,Math.min(100-a.width,p.current.origX+w)),y:Math.max(0,Math.min(100-a.height,p.current.origY+N))})},S=()=>{h(!1),p.current=null,document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",S)};document.addEventListener("mousemove",j),document.addEventListener("mouseup",S)},[a,i,o,u]);return s.jsx("div",{className:`absolute border-2 rounded ${x} ${n?"ring-2 ring-accent/50":""} cursor-grab`,style:{left:`${a.x}%`,top:`${a.y}%`,width:`${a.width}%`,height:`${a.height}%`,zIndex:n?20:10},onMouseDown:y,children:s.jsx("div",{className:`absolute -top-5 left-0 px-1.5 py-0.5 rounded text-[9px] font-medium whitespace-nowrap ${g}`,children:a.label})})}function IS({field:a,onUpdate:n,onDelete:i,onDeselect:o}){return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h3",{className:"text-sm font-medium",children:"Field Properties"}),s.jsx("button",{onClick:o,className:"text-muted hover:text-white",children:s.jsx(io,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Label"}),s.jsx("input",{type:"text",value:a.label,onChange:u=>n(a.id,{label:u.target.value}),className:"input w-full"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Type"}),s.jsx("select",{value:a.type,onChange:u=>n(a.id,{type:u.target.value}),className:"input w-full",children:XS.map(u=>s.jsx("option",{value:u.value,children:u.label},u.value))})]}),s.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted",children:[s.jsx("input",{type:"checkbox",checked:a.required,onChange:u=>n(a.id,{required:u.target.checked})}),"Required field"]}),a.type==="dropdown"&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-muted mb-1 block",children:"Options"}),s.jsxs("div",{className:"space-y-1.5",children:[(a.options||[]).map((u,f)=>s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("input",{type:"text",value:u,onChange:h=>{const p=[...a.options||[]];p[f]=h.target.value,n(a.id,{options:p})},className:"input flex-1 text-xs"}),s.jsx("button",{onClick:()=>n(a.id,{options:(a.options||[]).filter((h,p)=>p!==f)}),className:"text-muted hover:text-red-400",children:s.jsx(io,{className:"w-3 h-3"})})]},f)),s.jsxs("button",{onClick:()=>n(a.id,{options:[...a.options||[],""]}),className:"flex items-center gap-1 text-xs text-accent hover:text-accent/80",children:[s.jsx(Ut,{className:"w-3 h-3"})," Add option"]})]})]})]}),s.jsx("div",{className:"pt-2 border-t border-border",children:s.jsxs("button",{onClick:()=>i(a.id),className:"flex items-center gap-2 text-red-400 hover:text-red-300 text-sm",children:[s.jsx(Pn,{className:"w-4 h-4"})," Delete field"]})})]})}function ew({children:a}){return yn()?s.jsx(s.Fragment,{children:a}):s.jsx(U8,{to:"/login",replace:!0})}function Br({children:a}){const{tier:n,loading:i}=Gl();return i?null:n==="free"?s.jsx(U8,{to:"/settings",replace:!0}):s.jsx(s.Fragment,{children:a})}function tw(){return s.jsxs(P8,{children:[s.jsxs(w5,{children:[s.jsx($e,{path:"/login",element:s.jsx(hA,{})}),s.jsx($e,{path:"/onboarding",element:s.jsx(NA,{})}),s.jsxs($e,{path:"/*",element:s.jsx(ew,{children:s.jsx(mA,{})}),children:[s.jsx($e,{index:!0,element:s.jsx(TA,{})}),s.jsx($e,{path:"agents",element:s.jsx(LA,{})}),s.jsx($e,{path:"agents/:id",element:s.jsx(DA,{})}),s.jsx($e,{path:"tasks",element:s.jsx(kA,{})}),s.jsx($e,{path:"tasks/:id",element:s.jsx(OA,{})}),s.jsx($e,{path:"contacts",element:s.jsx(NS,{})}),s.jsx($e,{path:"contacts/:id",element:s.jsx(CS,{})}),s.jsx($e,{path:"projects",element:s.jsx(VS,{})}),s.jsx($e,{path:"projects/:id",element:s.jsx(ZS,{})}),s.jsx($e,{path:"workflows",element:s.jsx(US,{})}),s.jsx($e,{path:"automations",element:s.jsx(Br,{children:s.jsx(DS,{})})}),s.jsx($e,{path:"connections",element:s.jsx(Br,{children:s.jsx($S,{})})}),s.jsx($e,{path:"approvals",element:s.jsx(Br,{children:s.jsx(BA,{})})}),s.jsx($e,{path:"activity",element:s.jsx(YA,{})}),s.jsx($e,{path:"schedules",element:s.jsx(Br,{children:s.jsx(KA,{})})}),s.jsx($e,{path:"pdf-tools",element:s.jsx(PS,{})}),s.jsx($e,{path:"chat",element:s.jsx(dS,{})}),s.jsx($e,{path:"settings",element:s.jsx(wS,{})})]})]}),s.jsx(iA,{})]})}wg.createRoot(document.getElementById("root")).render(s.jsx(c.StrictMode,{children:s.jsx(P5,{basename:"/ui",children:s.jsx(tw,{})})}));
|