ohwow 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +687 -610
- package/dist/migrations/084-recovery-audit-log.sql +16 -0
- package/dist/migrations/085-co-evolution.sql +63 -0
- package/dist/migrations/086-decouple-agent-status.sql +17 -0
- package/dist/web/assets/index-B2PzvKIq.js +100 -0
- package/dist/web/assets/index-DZAi92e-.css +1 -0
- package/dist/web/assets/vision_bundle-CCf8DAA1.js +41 -0
- package/dist/web/index.html +2 -2
- package/package.json +3 -2
- package/dist/web/assets/index-CJXqiobs.css +0 -1
- package/dist/web/assets/index-Cc2hAI-k.js +0 -100
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var eH=Object.defineProperty;var tH=(e,a,l)=>a in e?eH(e,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[a]=l;var Na=(e,a,l)=>tH(e,typeof a!="symbol"?a+"":a,l);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(c){if(c.ep)return;c.ep=!0;const u=l(c);fetch(c.href,u)}})();var t1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aH(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y2={exports:{}},Ks={};/**
|
|
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 wg;function nH(){if(wg)return Ks;wg=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(i,c,u){var d=null;if(u!==void 0&&(d=""+u),c.key!==void 0&&(d=""+c.key),"key"in c){u={};for(var h in c)h!=="key"&&(u[h]=c[h])}else u=c;return c=u.ref,{$$typeof:e,type:i,key:d,ref:c!==void 0?c:null,props:u}}return Ks.Fragment=a,Ks.jsx=l,Ks.jsxs=l,Ks}var Ag;function rH(){return Ag||(Ag=1,y2.exports=nH()),y2.exports}var s=rH(),w2={exports:{}},Ee={};/**
|
|
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 jg;function sH(){if(jg)return Ee;jg=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),b=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,j={};function A(D,J,ne){this.props=D,this.context=J,this.refs=j,this.updater=ne||M}A.prototype.isReactComponent={},A.prototype.setState=function(D,J){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,J,"setState")},A.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function S(){}S.prototype=A.prototype;function N(D,J,ne){this.props=D,this.context=J,this.refs=j,this.updater=ne||M}var C=N.prototype=new S;C.constructor=N,E(C,A.prototype),C.isPureReactComponent=!0;var V=Array.isArray;function _(){}var H={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function L(D,J,ne){var z=ne.ref;return{$$typeof:e,type:D,key:J,ref:z!==void 0?z:null,props:ne}}function O(D,J){return L(D.type,J,D.props)}function I(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function X(D){var J={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ne){return J[ne]})}var K=/\/+/g;function B(D,J){return typeof D=="object"&&D!==null&&D.key!=null?X(""+D.key):J.toString(36)}function Y(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(_,_):(D.status="pending",D.then(function(J){D.status==="pending"&&(D.status="fulfilled",D.value=J)},function(J){D.status==="pending"&&(D.status="rejected",D.reason=J)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function k(D,J,ne,z,F){var P=typeof D;(P==="undefined"||P==="boolean")&&(D=null);var oe=!1;if(D===null)oe=!0;else switch(P){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(D.$$typeof){case e:case a:oe=!0;break;case g:return oe=D._init,k(oe(D._payload),J,ne,z,F)}}if(oe)return F=F(D),oe=z===""?"."+B(D,0):z,V(F)?(ne="",oe!=null&&(ne=oe.replace(K,"$&/")+"/"),k(F,J,ne,"",function(ke){return ke})):F!=null&&(I(F)&&(F=O(F,ne+(F.key==null||D&&D.key===F.key?"":(""+F.key).replace(K,"$&/")+"/")+oe)),J.push(F)),1;oe=0;var fe=z===""?".":z+":";if(V(D))for(var ve=0;ve<D.length;ve++)z=D[ve],P=fe+B(z,ve),oe+=k(z,J,ne,P,F);else if(ve=w(D),typeof ve=="function")for(D=ve.call(D),ve=0;!(z=D.next()).done;)z=z.value,P=fe+B(z,ve++),oe+=k(z,J,ne,P,F);else if(P==="object"){if(typeof D.then=="function")return k(Y(D),J,ne,z,F);throw J=String(D),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return oe}function $(D,J,ne){if(D==null)return D;var z=[],F=0;return k(D,z,"","",function(P){return J.call(ne,P,F++)}),z}function Q(D){if(D._status===-1){var J=D._result;J=J(),J.then(function(ne){(D._status===0||D._status===-1)&&(D._status=1,D._result=ne)},function(ne){(D._status===0||D._status===-1)&&(D._status=2,D._result=ne)}),D._status===-1&&(D._status=0,D._result=J)}if(D._status===1)return D._result.default;throw D._result}var ie=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},re={map:$,forEach:function(D,J,ne){$(D,function(){J.apply(this,arguments)},ne)},count:function(D){var J=0;return $(D,function(){J++}),J},toArray:function(D){return $(D,function(J){return J})||[]},only:function(D){if(!I(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ee.Activity=x,Ee.Children=re,Ee.Component=A,Ee.Fragment=l,Ee.Profiler=c,Ee.PureComponent=N,Ee.StrictMode=i,Ee.Suspense=f,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(D){return H.H.useMemoCache(D)}},Ee.cache=function(D){return function(){return D.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(D,J,ne){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var z=E({},D.props),F=D.key;if(J!=null)for(P in J.key!==void 0&&(F=""+J.key),J)!R.call(J,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&J.ref===void 0||(z[P]=J[P]);var P=arguments.length-2;if(P===1)z.children=ne;else if(1<P){for(var oe=Array(P),fe=0;fe<P;fe++)oe[fe]=arguments[fe+2];z.children=oe}return L(D.type,F,z)},Ee.createContext=function(D){return D={$$typeof:d,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Ee.createElement=function(D,J,ne){var z,F={},P=null;if(J!=null)for(z in J.key!==void 0&&(P=""+J.key),J)R.call(J,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(F[z]=J[z]);var oe=arguments.length-2;if(oe===1)F.children=ne;else if(1<oe){for(var fe=Array(oe),ve=0;ve<oe;ve++)fe[ve]=arguments[ve+2];F.children=fe}if(D&&D.defaultProps)for(z in oe=D.defaultProps,oe)F[z]===void 0&&(F[z]=oe[z]);return L(D,P,F)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(D){return{$$typeof:h,render:D}},Ee.isValidElement=I,Ee.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:Q}},Ee.memo=function(D,J){return{$$typeof:p,type:D,compare:J===void 0?null:J}},Ee.startTransition=function(D){var J=H.T,ne={};H.T=ne;try{var z=D(),F=H.S;F!==null&&F(ne,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(_,ie)}catch(P){ie(P)}finally{J!==null&&ne.types!==null&&(J.types=ne.types),H.T=J}},Ee.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ee.use=function(D){return H.H.use(D)},Ee.useActionState=function(D,J,ne){return H.H.useActionState(D,J,ne)},Ee.useCallback=function(D,J){return H.H.useCallback(D,J)},Ee.useContext=function(D){return H.H.useContext(D)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(D,J){return H.H.useDeferredValue(D,J)},Ee.useEffect=function(D,J){return H.H.useEffect(D,J)},Ee.useEffectEvent=function(D){return H.H.useEffectEvent(D)},Ee.useId=function(){return H.H.useId()},Ee.useImperativeHandle=function(D,J,ne){return H.H.useImperativeHandle(D,J,ne)},Ee.useInsertionEffect=function(D,J){return H.H.useInsertionEffect(D,J)},Ee.useLayoutEffect=function(D,J){return H.H.useLayoutEffect(D,J)},Ee.useMemo=function(D,J){return H.H.useMemo(D,J)},Ee.useOptimistic=function(D,J){return H.H.useOptimistic(D,J)},Ee.useReducer=function(D,J,ne){return H.H.useReducer(D,J,ne)},Ee.useRef=function(D){return H.H.useRef(D)},Ee.useState=function(D){return H.H.useState(D)},Ee.useSyncExternalStore=function(D,J,ne){return H.H.useSyncExternalStore(D,J,ne)},Ee.useTransition=function(){return H.H.useTransition()},Ee.version="19.2.4",Ee}var Eg;function um(){return Eg||(Eg=1,w2.exports=sH()),w2.exports}var n=um(),A2={exports:{}},Xs={},j2={exports:{}},E2={};/**
|
|
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 Ng;function lH(){return Ng||(Ng=1,(function(e){function a(k,$){var Q=k.length;k.push($);e:for(;0<Q;){var ie=Q-1>>>1,re=k[ie];if(0<c(re,$))k[ie]=$,k[Q]=re,Q=ie;else break e}}function l(k){return k.length===0?null:k[0]}function i(k){if(k.length===0)return null;var $=k[0],Q=k.pop();if(Q!==$){k[0]=Q;e:for(var ie=0,re=k.length,D=re>>>1;ie<D;){var J=2*(ie+1)-1,ne=k[J],z=J+1,F=k[z];if(0>c(ne,Q))z<re&&0>c(F,ne)?(k[ie]=F,k[z]=Q,ie=z):(k[ie]=ne,k[J]=Q,ie=J);else if(z<re&&0>c(F,Q))k[ie]=F,k[z]=Q,ie=z;else break e}}return $}function c(k,$){var Q=k.sortIndex-$.sortIndex;return Q!==0?Q:k.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var f=[],p=[],g=1,x=null,b=3,w=!1,M=!1,E=!1,j=!1,A=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function C(k){for(var $=l(p);$!==null;){if($.callback===null)i(p);else if($.startTime<=k)i(p),$.sortIndex=$.expirationTime,a(f,$);else break;$=l(p)}}function V(k){if(E=!1,C(k),!M)if(l(f)!==null)M=!0,_||(_=!0,X());else{var $=l(p);$!==null&&Y(V,$.startTime-k)}}var _=!1,H=-1,R=5,L=-1;function O(){return j?!0:!(e.unstable_now()-L<R)}function I(){if(j=!1,_){var k=e.unstable_now();L=k;var $=!0;try{e:{M=!1,E&&(E=!1,S(H),H=-1),w=!0;var Q=b;try{t:{for(C(k),x=l(f);x!==null&&!(x.expirationTime>k&&O());){var ie=x.callback;if(typeof ie=="function"){x.callback=null,b=x.priorityLevel;var re=ie(x.expirationTime<=k);if(k=e.unstable_now(),typeof re=="function"){x.callback=re,C(k),$=!0;break t}x===l(f)&&i(f),C(k)}else i(f);x=l(f)}if(x!==null)$=!0;else{var D=l(p);D!==null&&Y(V,D.startTime-k),$=!1}}break e}finally{x=null,b=Q,w=!1}$=void 0}}finally{$?X():_=!1}}}var X;if(typeof N=="function")X=function(){N(I)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,B=K.port2;K.port1.onmessage=I,X=function(){B.postMessage(null)}}else X=function(){A(I,0)};function Y(k,$){H=A(function(){k(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(k){switch(b){case 1:case 2:case 3:var $=3;break;default:$=b}var Q=b;b=$;try{return k()}finally{b=Q}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(k,$){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var Q=b;b=k;try{return $()}finally{b=Q}},e.unstable_scheduleCallback=function(k,$,Q){var ie=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ie+Q:ie):Q=ie,k){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=Q+re,k={id:g++,callback:$,priorityLevel:k,startTime:Q,expirationTime:re,sortIndex:-1},Q>ie?(k.sortIndex=Q,a(p,k),l(f)===null&&k===l(p)&&(E?(S(H),H=-1):E=!0,Y(V,Q-ie))):(k.sortIndex=re,a(f,k),M||w||(M=!0,_||(_=!0,X()))),k},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(k){var $=b;return function(){var Q=b;b=$;try{return k.apply(this,arguments)}finally{b=Q}}}})(E2)),E2}var Mg;function iH(){return Mg||(Mg=1,j2.exports=lH()),j2.exports}var N2={exports:{}},$t={};/**
|
|
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 Sg;function oH(){if(Sg)return $t;Sg=1;var e=um();function a(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(f,p,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:f,containerInfo:p,implementation:g}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,$t.createPortal=function(f,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return u(f,p,null,g)},$t.flushSync=function(f){var p=d.T,g=i.p;try{if(d.T=null,i.p=2,f)return f()}finally{d.T=p,i.p=g,i.d.f()}},$t.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(f,p))},$t.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},$t.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var g=p.as,x=h(g,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:w}):g==="script"&&i.d.X(f,{crossOrigin:x,integrity:b,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},$t.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=h(p.as,p.crossOrigin);i.d.M(f,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(f)},$t.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,x=h(g,p.crossOrigin);i.d.L(f,g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},$t.preloadModule=function(f,p){if(typeof f=="string")if(p){var g=h(p.as,p.crossOrigin);i.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(f)},$t.requestFormReset=function(f){i.d.r(f)},$t.unstable_batchedUpdates=function(f,p){return f(p)},$t.useFormState=function(f,p,g){return d.H.useFormState(f,p,g)},$t.useFormStatus=function(){return d.H.useHostTransitionStatus()},$t.version="19.2.4",$t}var Zg;function cH(){if(Zg)return N2.exports;Zg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),N2.exports=oH(),N2.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 Cg;function uH(){if(Cg)return Xs;Cg=1;var e=iH(),a=um(),l=cH();function i(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function d(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function h(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(u(t)!==t)throw Error(i(188))}function p(t){var r=t.alternate;if(!r){if(r=u(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,m=r;;){var v=o.return;if(v===null)break;var y=v.alternate;if(y===null){if(m=v.return,m!==null){o=m;continue}break}if(v.child===y.child){for(y=v.child;y;){if(y===o)return f(v),t;if(y===m)return f(v),r;y=y.sibling}throw Error(i(188))}if(o.return!==m.return)o=v,m=y;else{for(var Z=!1,T=v.child;T;){if(T===o){Z=!0,o=v,m=y;break}if(T===m){Z=!0,m=v,o=y;break}T=T.sibling}if(!Z){for(T=y.child;T;){if(T===o){Z=!0,o=y,m=v;break}if(T===m){Z=!0,m=y,o=v;break}T=T.sibling}if(!Z)throw Error(i(189))}}if(o.alternate!==m)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function g(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=g(t),r!==null)return r;t=t.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),N=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function X(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var K=Symbol.for("react.client.reference");function B(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===K?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case A:return"Profiler";case j:return"StrictMode";case V:return"Suspense";case _:return"SuspenseList";case L:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case N:return t.displayName||"Context";case S:return(t._context.displayName||"Context")+".Consumer";case C:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return r=t.displayName||null,r!==null?r:B(t.type)||"Memo";case R:r=t._payload,t=t._init;try{return B(t(r))}catch{}}return null}var Y=Array.isArray,k=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ie=[],re=-1;function D(t){return{current:t}}function J(t){0>re||(t.current=ie[re],ie[re]=null,re--)}function ne(t,r){re++,ie[re]=t.current,t.current=r}var z=D(null),F=D(null),P=D(null),oe=D(null);function fe(t,r){switch(ne(P,r),ne(F,t),ne(z,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?I5(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=I5(r),t=U5(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}J(z),ne(z,t)}function ve(){J(z),J(F),J(P)}function ke(t){t.memoizedState!==null&&ne(oe,t);var r=z.current,o=U5(r,t.type);r!==o&&(ne(F,t),ne(z,o))}function Pe(t){F.current===t&&(J(z),J(F)),oe.current===t&&(J(oe),Us._currentValue=Q)}var qe,ot;function $e(t){if(qe===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);qe=r&&r[1]||"",ot=-1<o.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+qe+t+ot}var je=!1;function qt(t,r){if(!t||je)return"";je=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(r){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(ae){var te=ae}Reflect.construct(t,[],ue)}else{try{ue.call()}catch(ae){te=ae}t.call(ue.prototype)}}else{try{throw Error()}catch(ae){te=ae}(ue=t())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(ae){if(ae&&te&&typeof ae.stack=="string")return[ae.stack,te.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=m.DetermineComponentFrameRoot(),Z=y[0],T=y[1];if(Z&&T){var q=Z.split(`
|
|
44
|
-
`),ee=T.split(`
|
|
45
|
-
`);for(v=m=0;m<q.length&&!q[m].includes("DetermineComponentFrameRoot");)m++;for(;v<ee.length&&!ee[v].includes("DetermineComponentFrameRoot");)v++;if(m===q.length||v===ee.length)for(m=q.length-1,v=ee.length-1;1<=m&&0<=v&&q[m]!==ee[v];)v--;for(;1<=m&&0<=v;m--,v--)if(q[m]!==ee[v]){if(m!==1||v!==1)do if(m--,v--,0>v||q[m]!==ee[v]){var le=`
|
|
46
|
-
`+q[m].replace(" at new "," at ");return t.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",t.displayName)),le}while(1<=m&&0<=v);break}}}finally{je=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?$e(o):""}function Ne(t,r){switch(t.tag){case 26:case 27:case 5:return $e(t.type);case 16:return $e("Lazy");case 13:return t.child!==r&&r!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return qt(t.type,!1);case 11:return qt(t.type.render,!1);case 1:return qt(t.type,!0);case 31:return $e("Activity");default:return""}}function Tt(t){try{var r="",o=null;do r+=Ne(t,o),o=t,t=t.return;while(t);return r}catch(m){return`
|
|
47
|
-
Error generating stack: `+m.message+`
|
|
48
|
-
`+m.stack}}var se=Object.prototype.hasOwnProperty,ft=e.unstable_scheduleCallback,Te=e.unstable_cancelCallback,ct=e.unstable_shouldYield,vt=e.unstable_requestPaint,at=e.unstable_now,Ae=e.unstable_getCurrentPriorityLevel,Qe=e.unstable_ImmediatePriority,Be=e.unstable_UserBlockingPriority,Lt=e.unstable_NormalPriority,Dl=e.unstable_LowPriority,ns=e.unstable_IdlePriority,lo=e.log,Ol=e.unstable_setDisableYieldValue,Yt=null,pt=null;function _n(t){if(typeof lo=="function"&&Ol(t),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Yt,t)}catch{}}var ra=Math.clz32?Math.clz32:zS,OS=Math.log,FS=Math.LN2;function zS(t){return t>>>=0,t===0?32:31-(OS(t)/FS|0)|0}var Fl=256,zl=262144,ql=4194304;function f0(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function $l(t,r,o){var m=t.pendingLanes;if(m===0)return 0;var v=0,y=t.suspendedLanes,Z=t.pingedLanes;t=t.warmLanes;var T=m&134217727;return T!==0?(m=T&~y,m!==0?v=f0(m):(Z&=T,Z!==0?v=f0(Z):o||(o=T&~t,o!==0&&(v=f0(o))))):(T=m&~y,T!==0?v=f0(T):Z!==0?v=f0(Z):o||(o=m&~t,o!==0&&(v=f0(o)))),v===0?0:r!==0&&r!==v&&(r&y)===0&&(y=v&-v,o=r&-r,y>=o||y===32&&(o&4194048)!==0)?r:v}function rs(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function qS(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 Nf(){var t=ql;return ql<<=1,(ql&62914560)===0&&(ql=4194304),t}function io(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function ss(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function $S(t,r,o,m,v,y){var Z=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var T=t.entanglements,q=t.expirationTimes,ee=t.hiddenUpdates;for(o=Z&~o;0<o;){var le=31-ra(o),ue=1<<le;T[le]=0,q[le]=-1;var te=ee[le];if(te!==null)for(ee[le]=null,le=0;le<te.length;le++){var ae=te[le];ae!==null&&(ae.lane&=-536870913)}o&=~ue}m!==0&&Mf(t,m,0),y!==0&&v===0&&t.tag!==0&&(t.suspendedLanes|=y&~(Z&~r))}function Mf(t,r,o){t.pendingLanes|=r,t.suspendedLanes&=~r;var m=31-ra(r);t.entangledLanes|=r,t.entanglements[m]=t.entanglements[m]|1073741824|o&261930}function Sf(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var m=31-ra(o),v=1<<m;v&r|t[m]&r&&(t[m]|=r),o&=~v}}function Zf(t,r){var o=r&-r;return o=(o&42)!==0?1:oo(o),(o&(t.suspendedLanes|r))!==0?0:o}function oo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function co(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Cf(){var t=$.p;return t!==0?t:(t=window.event,t===void 0?32:fg(t.type))}function Hf(t,r){var o=$.p;try{return $.p=t,r()}finally{$.p=o}}var Tn=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Tn,Kt="__reactProps$"+Tn,P0="__reactContainer$"+Tn,uo="__reactEvents$"+Tn,BS="__reactListeners$"+Tn,IS="__reactHandles$"+Tn,Vf="__reactResources$"+Tn,ls="__reactMarker$"+Tn;function ho(t){delete t[Rt],delete t[Kt],delete t[uo],delete t[BS],delete t[IS]}function G0(t){var r=t[Rt];if(r)return r;for(var o=t.parentNode;o;){if(r=o[P0]||o[Rt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=J5(t);t!==null;){if(o=t[Rt])return o;t=J5(t)}return r}t=o,o=t.parentNode}return null}function Y0(t){if(t=t[Rt]||t[P0]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function is(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function K0(t){var r=t[Vf];return r||(r=t[Vf]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ht(t){t[ls]=!0}var _f=new Set,Tf={};function p0(t,r){X0(t,r),X0(t+"Capture",r)}function X0(t,r){for(Tf[t]=r,t=0;t<r.length;t++)_f.add(r[t])}var US=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]*$"),Lf={},Rf={};function PS(t){return se.call(Rf,t)?!0:se.call(Lf,t)?!1:US.test(t)?Rf[t]=!0:(Lf[t]=!0,!1)}function Bl(t,r,o){if(PS(r))if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var m=r.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+o)}}function Il(t,r,o){if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+o)}}function cn(t,r,o,m){if(m===null)t.removeAttribute(o);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(r,o,""+m)}}function pa(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function kf(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function GS(t,r,o){var m=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var v=m.get,y=m.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return v.call(this)},set:function(Z){o=""+Z,y.call(this,Z)}}),Object.defineProperty(t,r,{enumerable:m.enumerable}),{getValue:function(){return o},setValue:function(Z){o=""+Z},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function mo(t){if(!t._valueTracker){var r=kf(t)?"checked":"value";t._valueTracker=GS(t,r,""+t[r])}}function Df(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),m="";return t&&(m=kf(t)?t.checked?"true":"false":t.value),t=m,t!==o?(r.setValue(t),!0):!1}function Ul(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var YS=/[\n"\\]/g;function ga(t){return t.replace(YS,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function fo(t,r,o,m,v,y,Z,T){t.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?t.type=Z:t.removeAttribute("type"),r!=null?Z==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+pa(r)):t.value!==""+pa(r)&&(t.value=""+pa(r)):Z!=="submit"&&Z!=="reset"||t.removeAttribute("value"),r!=null?po(t,Z,pa(r)):o!=null?po(t,Z,pa(o)):m!=null&&t.removeAttribute("value"),v==null&&y!=null&&(t.defaultChecked=!!y),v!=null&&(t.checked=v&&typeof v!="function"&&typeof v!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+pa(T):t.removeAttribute("name")}function Of(t,r,o,m,v,y,Z,T){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.type=y),r!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||r!=null)){mo(t);return}o=o!=null?""+pa(o):"",r=r!=null?""+pa(r):o,T||r===t.value||(t.value=r),t.defaultValue=r}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,t.checked=T?t.checked:!!m,t.defaultChecked=!!m,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(t.name=Z),mo(t)}function po(t,r,o){r==="number"&&Ul(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function Q0(t,r,o,m){if(t=t.options,r){r={};for(var v=0;v<o.length;v++)r["$"+o[v]]=!0;for(o=0;o<t.length;o++)v=r.hasOwnProperty("$"+t[o].value),t[o].selected!==v&&(t[o].selected=v),v&&m&&(t[o].defaultSelected=!0)}else{for(o=""+pa(o),r=null,v=0;v<t.length;v++){if(t[v].value===o){t[v].selected=!0,m&&(t[v].defaultSelected=!0);return}r!==null||t[v].disabled||(r=t[v])}r!==null&&(r.selected=!0)}}function Ff(t,r,o){if(r!=null&&(r=""+pa(r),r!==t.value&&(t.value=r),o==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=o!=null?""+pa(o):""}function zf(t,r,o,m){if(r==null){if(m!=null){if(o!=null)throw Error(i(92));if(Y(m)){if(1<m.length)throw Error(i(93));m=m[0]}o=m}o==null&&(o=""),r=o}o=pa(r),t.defaultValue=o,m=t.textContent,m===o&&m!==""&&m!==null&&(t.value=m),mo(t)}function J0(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var KS=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 qf(t,r,o){var m=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?m?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":m?t.setProperty(r,o):typeof o!="number"||o===0||KS.has(r)?r==="float"?t.cssFloat=o:t[r]=(""+o).trim():t[r]=o+"px"}function $f(t,r,o){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,o!=null){for(var m in o)!o.hasOwnProperty(m)||r!=null&&r.hasOwnProperty(m)||(m.indexOf("--")===0?t.setProperty(m,""):m==="float"?t.cssFloat="":t[m]="");for(var v in r)m=r[v],r.hasOwnProperty(v)&&o[v]!==m&&qf(t,v,m)}else for(var y in r)r.hasOwnProperty(y)&&qf(t,y,r[y])}function go(t){if(t.indexOf("-")===-1)return!1;switch(t){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 XS=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"]]),QS=/^[\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 Pl(t){return QS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function un(){}var xo=null;function vo(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var W0=null,er=null;function Bf(t){var r=Y0(t);if(r&&(t=r.stateNode)){var o=t[Kt]||null;e:switch(t=r.stateNode,r.type){case"input":if(fo(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+ga(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var m=o[r];if(m!==t&&m.form===t.form){var v=m[Kt]||null;if(!v)throw Error(i(90));fo(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(r=0;r<o.length;r++)m=o[r],m.form===t.form&&Df(m)}break e;case"textarea":Ff(t,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&Q0(t,!!o.multiple,r,!1)}}}var bo=!1;function If(t,r,o){if(bo)return t(r,o);bo=!0;try{var m=t(r);return m}finally{if(bo=!1,(W0!==null||er!==null)&&(Ti(),W0&&(r=W0,t=er,er=W0=null,Bf(r),t)))for(r=0;r<t.length;r++)Bf(t[r])}}function os(t,r){var o=t.stateNode;if(o===null)return null;var m=o[Kt]||null;if(m===null)return null;o=m[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(t=t.type,m=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!m;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yo=!1;if(dn)try{var cs={};Object.defineProperty(cs,"passive",{get:function(){yo=!0}}),window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{yo=!1}var Ln=null,wo=null,Gl=null;function Uf(){if(Gl)return Gl;var t,r=wo,o=r.length,m,v="value"in Ln?Ln.value:Ln.textContent,y=v.length;for(t=0;t<o&&r[t]===v[t];t++);var Z=o-t;for(m=1;m<=Z&&r[o-m]===v[y-m];m++);return Gl=v.slice(t,1<m?1-m:void 0)}function Yl(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Kl(){return!0}function Pf(){return!1}function Xt(t){function r(o,m,v,y,Z){this._reactName=o,this._targetInst=v,this.type=m,this.nativeEvent=y,this.target=Z,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(o=t[T],this[T]=o?o(y):y[T]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Kl:Pf,this.isPropagationStopped=Pf,this}return x(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Kl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Kl)},persist:function(){},isPersistent:Kl}),r}var g0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xl=Xt(g0),us=x({},g0,{view:0,detail:0}),JS=Xt(us),Ao,jo,ds,Ql=x({},us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ds&&(ds&&t.type==="mousemove"?(Ao=t.screenX-ds.screenX,jo=t.screenY-ds.screenY):jo=Ao=0,ds=t),Ao)},movementY:function(t){return"movementY"in t?t.movementY:jo}}),Gf=Xt(Ql),WS=x({},Ql,{dataTransfer:0}),eZ=Xt(WS),tZ=x({},us,{relatedTarget:0}),Eo=Xt(tZ),aZ=x({},g0,{animationName:0,elapsedTime:0,pseudoElement:0}),nZ=Xt(aZ),rZ=x({},g0,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),sZ=Xt(rZ),lZ=x({},g0,{data:0}),Yf=Xt(lZ),iZ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oZ={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"},cZ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uZ(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=cZ[t])?!!r[t]:!1}function No(){return uZ}var dZ=x({},us,{key:function(t){if(t.key){var r=iZ[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Yl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?oZ[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(t){return t.type==="keypress"?Yl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Yl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),hZ=Xt(dZ),mZ=x({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=Xt(mZ),fZ=x({},us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),pZ=Xt(fZ),gZ=x({},g0,{propertyName:0,elapsedTime:0,pseudoElement:0}),xZ=Xt(gZ),vZ=x({},Ql,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),bZ=Xt(vZ),yZ=x({},g0,{newState:0,oldState:0}),wZ=Xt(yZ),AZ=[9,13,27,32],Mo=dn&&"CompositionEvent"in window,hs=null;dn&&"documentMode"in document&&(hs=document.documentMode);var jZ=dn&&"TextEvent"in window&&!hs,Xf=dn&&(!Mo||hs&&8<hs&&11>=hs),Qf=" ",Jf=!1;function Wf(t,r){switch(t){case"keyup":return AZ.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function e3(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var tr=!1;function EZ(t,r){switch(t){case"compositionend":return e3(r);case"keypress":return r.which!==32?null:(Jf=!0,Qf);case"textInput":return t=r.data,t===Qf&&Jf?null:t;default:return null}}function NZ(t,r){if(tr)return t==="compositionend"||!Mo&&Wf(t,r)?(t=Uf(),Gl=wo=Ln=null,tr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Xf&&r.locale!=="ko"?null:r.data;default:return null}}var MZ={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 t3(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!MZ[t.type]:r==="textarea"}function a3(t,r,o,m){W0?er?er.push(m):er=[m]:W0=m,r=zi(r,"onChange"),0<r.length&&(o=new Xl("onChange","change",null,o,m),t.push({event:o,listeners:r}))}var ms=null,fs=null;function SZ(t){O5(t,0)}function Jl(t){var r=is(t);if(Df(r))return t}function n3(t,r){if(t==="change")return r}var r3=!1;if(dn){var So;if(dn){var Zo="oninput"in document;if(!Zo){var s3=document.createElement("div");s3.setAttribute("oninput","return;"),Zo=typeof s3.oninput=="function"}So=Zo}else So=!1;r3=So&&(!document.documentMode||9<document.documentMode)}function l3(){ms&&(ms.detachEvent("onpropertychange",i3),fs=ms=null)}function i3(t){if(t.propertyName==="value"&&Jl(fs)){var r=[];a3(r,fs,t,vo(t)),If(SZ,r)}}function ZZ(t,r,o){t==="focusin"?(l3(),ms=r,fs=o,ms.attachEvent("onpropertychange",i3)):t==="focusout"&&l3()}function CZ(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Jl(fs)}function HZ(t,r){if(t==="click")return Jl(r)}function VZ(t,r){if(t==="input"||t==="change")return Jl(r)}function _Z(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var sa=typeof Object.is=="function"?Object.is:_Z;function ps(t,r){if(sa(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),m=Object.keys(r);if(o.length!==m.length)return!1;for(m=0;m<o.length;m++){var v=o[m];if(!se.call(r,v)||!sa(t[v],r[v]))return!1}return!0}function o3(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function c3(t,r){var o=o3(t);t=0;for(var m;o;){if(o.nodeType===3){if(m=t+o.textContent.length,t<=r&&m>=r)return{node:o,offset:r-t};t=m}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=o3(o)}}function u3(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?u3(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function d3(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Ul(t.document);r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Ul(t.document)}return r}function Co(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var TZ=dn&&"documentMode"in document&&11>=document.documentMode,ar=null,Ho=null,gs=null,Vo=!1;function h3(t,r,o){var m=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Vo||ar==null||ar!==Ul(m)||(m=ar,"selectionStart"in m&&Co(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),gs&&ps(gs,m)||(gs=m,m=zi(Ho,"onSelect"),0<m.length&&(r=new Xl("onSelect","select",null,r,o),t.push({event:r,listeners:m}),r.target=ar)))}function x0(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var nr={animationend:x0("Animation","AnimationEnd"),animationiteration:x0("Animation","AnimationIteration"),animationstart:x0("Animation","AnimationStart"),transitionrun:x0("Transition","TransitionRun"),transitionstart:x0("Transition","TransitionStart"),transitioncancel:x0("Transition","TransitionCancel"),transitionend:x0("Transition","TransitionEnd")},_o={},m3={};dn&&(m3=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function v0(t){if(_o[t])return _o[t];if(!nr[t])return t;var r=nr[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in m3)return _o[t]=r[o];return t}var f3=v0("animationend"),p3=v0("animationiteration"),g3=v0("animationstart"),LZ=v0("transitionrun"),RZ=v0("transitionstart"),kZ=v0("transitioncancel"),x3=v0("transitionend"),v3=new Map,To="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(" ");To.push("scrollEnd");function Ta(t,r){v3.set(t,r),p0(r,[t])}var Wl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},xa=[],rr=0,Lo=0;function ei(){for(var t=rr,r=Lo=rr=0;r<t;){var o=xa[r];xa[r++]=null;var m=xa[r];xa[r++]=null;var v=xa[r];xa[r++]=null;var y=xa[r];if(xa[r++]=null,m!==null&&v!==null){var Z=m.pending;Z===null?v.next=v:(v.next=Z.next,Z.next=v),m.pending=v}y!==0&&b3(o,v,y)}}function ti(t,r,o,m){xa[rr++]=t,xa[rr++]=r,xa[rr++]=o,xa[rr++]=m,Lo|=m,t.lanes|=m,t=t.alternate,t!==null&&(t.lanes|=m)}function Ro(t,r,o,m){return ti(t,r,o,m),ai(t)}function b0(t,r){return ti(t,null,null,r),ai(t)}function b3(t,r,o){t.lanes|=o;var m=t.alternate;m!==null&&(m.lanes|=o);for(var v=!1,y=t.return;y!==null;)y.childLanes|=o,m=y.alternate,m!==null&&(m.childLanes|=o),y.tag===22&&(t=y.stateNode,t===null||t._visibility&1||(v=!0)),t=y,y=y.return;return t.tag===3?(y=t.stateNode,v&&r!==null&&(v=31-ra(o),t=y.hiddenUpdates,m=t[v],m===null?t[v]=[r]:m.push(r),r.lane=o|536870912),y):null}function ai(t){if(50<Os)throw Os=0,Ic=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var sr={};function DZ(t,r,o,m){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function la(t,r,o,m){return new DZ(t,r,o,m)}function ko(t){return t=t.prototype,!(!t||!t.isReactComponent)}function hn(t,r){var o=t.alternate;return o===null?(o=la(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function y3(t,r){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,r=o.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function ni(t,r,o,m,v,y){var Z=0;if(m=t,typeof t=="function")ko(t)&&(Z=1);else if(typeof t=="string")Z=$C(t,o,z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case L:return t=la(31,o,r,v),t.elementType=L,t.lanes=y,t;case E:return y0(o.children,v,y,r);case j:Z=8,v|=24;break;case A:return t=la(12,o,r,v|2),t.elementType=A,t.lanes=y,t;case V:return t=la(13,o,r,v),t.elementType=V,t.lanes=y,t;case _:return t=la(19,o,r,v),t.elementType=_,t.lanes=y,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:Z=10;break e;case S:Z=9;break e;case C:Z=11;break e;case H:Z=14;break e;case R:Z=16,m=null;break e}Z=29,o=Error(i(130,t===null?"null":typeof t,"")),m=null}return r=la(Z,o,r,v),r.elementType=t,r.type=m,r.lanes=y,r}function y0(t,r,o,m){return t=la(7,t,m,r),t.lanes=o,t}function Do(t,r,o){return t=la(6,t,null,r),t.lanes=o,t}function w3(t){var r=la(18,null,null,0);return r.stateNode=t,r}function Oo(t,r,o){return r=la(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var A3=new WeakMap;function va(t,r){if(typeof t=="object"&&t!==null){var o=A3.get(t);return o!==void 0?o:(r={value:t,source:r,stack:Tt(r)},A3.set(t,r),r)}return{value:t,source:r,stack:Tt(r)}}var lr=[],ir=0,ri=null,xs=0,ba=[],ya=0,Rn=null,Pa=1,Ga="";function mn(t,r){lr[ir++]=xs,lr[ir++]=ri,ri=t,xs=r}function j3(t,r,o){ba[ya++]=Pa,ba[ya++]=Ga,ba[ya++]=Rn,Rn=t;var m=Pa;t=Ga;var v=32-ra(m)-1;m&=~(1<<v),o+=1;var y=32-ra(r)+v;if(30<y){var Z=v-v%5;y=(m&(1<<Z)-1).toString(32),m>>=Z,v-=Z,Pa=1<<32-ra(r)+v|o<<v|m,Ga=y+t}else Pa=1<<y|o<<v|m,Ga=t}function Fo(t){t.return!==null&&(mn(t,1),j3(t,1,0))}function zo(t){for(;t===ri;)ri=lr[--ir],lr[ir]=null,xs=lr[--ir],lr[ir]=null;for(;t===Rn;)Rn=ba[--ya],ba[ya]=null,Ga=ba[--ya],ba[ya]=null,Pa=ba[--ya],ba[ya]=null}function E3(t,r){ba[ya++]=Pa,ba[ya++]=Ga,ba[ya++]=Rn,Pa=r.id,Ga=r.overflow,Rn=t}var kt=null,et=null,Le=!1,kn=null,wa=!1,qo=Error(i(519));function Dn(t){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vs(va(r,t)),qo}function N3(t){var r=t.stateNode,o=t.type,m=t.memoizedProps;switch(r[Rt]=t,r[Kt]=m,o){case"dialog":Ce("cancel",r),Ce("close",r);break;case"iframe":case"object":case"embed":Ce("load",r);break;case"video":case"audio":for(o=0;o<zs.length;o++)Ce(zs[o],r);break;case"source":Ce("error",r);break;case"img":case"image":case"link":Ce("error",r),Ce("load",r);break;case"details":Ce("toggle",r);break;case"input":Ce("invalid",r),Of(r,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":Ce("invalid",r);break;case"textarea":Ce("invalid",r),zf(r,m.value,m.defaultValue,m.children)}o=m.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||m.suppressHydrationWarning===!0||$5(r.textContent,o)?(m.popover!=null&&(Ce("beforetoggle",r),Ce("toggle",r)),m.onScroll!=null&&Ce("scroll",r),m.onScrollEnd!=null&&Ce("scrollend",r),m.onClick!=null&&(r.onclick=un),r=!0):r=!1,r||Dn(t,!0)}function M3(t){for(kt=t.return;kt;)switch(kt.tag){case 5:case 31:case 13:wa=!1;return;case 27:case 3:wa=!0;return;default:kt=kt.return}}function or(t){if(t!==kt)return!1;if(!Le)return M3(t),Le=!0,!1;var r=t.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||s2(t.type,t.memoizedProps)),o=!o),o&&et&&Dn(t),M3(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));et=Q5(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));et=Q5(t)}else r===27?(r=et,Qn(t.type)?(t=u2,u2=null,et=t):et=r):et=kt?ja(t.stateNode.nextSibling):null;return!0}function w0(){et=kt=null,Le=!1}function $o(){var t=kn;return t!==null&&(ea===null?ea=t:ea.push.apply(ea,t),kn=null),t}function vs(t){kn===null?kn=[t]:kn.push(t)}var Bo=D(null),A0=null,fn=null;function On(t,r,o){ne(Bo,r._currentValue),r._currentValue=o}function pn(t){t._currentValue=Bo.current,J(Bo)}function Io(t,r,o){for(;t!==null;){var m=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,m!==null&&(m.childLanes|=r)):m!==null&&(m.childLanes&r)!==r&&(m.childLanes|=r),t===o)break;t=t.return}}function Uo(t,r,o,m){var v=t.child;for(v!==null&&(v.return=t);v!==null;){var y=v.dependencies;if(y!==null){var Z=v.child;y=y.firstContext;e:for(;y!==null;){var T=y;y=v;for(var q=0;q<r.length;q++)if(T.context===r[q]){y.lanes|=o,T=y.alternate,T!==null&&(T.lanes|=o),Io(y.return,o,t),m||(Z=null);break e}y=T.next}}else if(v.tag===18){if(Z=v.return,Z===null)throw Error(i(341));Z.lanes|=o,y=Z.alternate,y!==null&&(y.lanes|=o),Io(Z,o,t),Z=null}else Z=v.child;if(Z!==null)Z.return=v;else for(Z=v;Z!==null;){if(Z===t){Z=null;break}if(v=Z.sibling,v!==null){v.return=Z.return,Z=v;break}Z=Z.return}v=Z}}function cr(t,r,o,m){t=null;for(var v=r,y=!1;v!==null;){if(!y){if((v.flags&524288)!==0)y=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var Z=v.alternate;if(Z===null)throw Error(i(387));if(Z=Z.memoizedProps,Z!==null){var T=v.type;sa(v.pendingProps.value,Z.value)||(t!==null?t.push(T):t=[T])}}else if(v===oe.current){if(Z=v.alternate,Z===null)throw Error(i(387));Z.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(t!==null?t.push(Us):t=[Us])}v=v.return}t!==null&&Uo(r,t,o,m),r.flags|=262144}function si(t){for(t=t.firstContext;t!==null;){if(!sa(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function j0(t){A0=t,fn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Dt(t){return S3(A0,t)}function li(t,r){return A0===null&&j0(t),S3(t,r)}function S3(t,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},fn===null){if(t===null)throw Error(i(308));fn=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else fn=fn.next=r;return o}var OZ=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(o,m){t.push(m)}};this.abort=function(){r.aborted=!0,t.forEach(function(o){return o()})}},FZ=e.unstable_scheduleCallback,zZ=e.unstable_NormalPriority,bt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new OZ,data:new Map,refCount:0}}function bs(t){t.refCount--,t.refCount===0&&FZ(zZ,function(){t.controller.abort()})}var ys=null,Go=0,ur=0,dr=null;function qZ(t,r){if(ys===null){var o=ys=[];Go=0,ur=Xc(),dr={status:"pending",value:void 0,then:function(m){o.push(m)}}}return Go++,r.then(Z3,Z3),r}function Z3(){if(--Go===0&&ys!==null){dr!==null&&(dr.status="fulfilled");var t=ys;ys=null,ur=0,dr=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function $Z(t,r){var o=[],m={status:"pending",value:null,reason:null,then:function(v){o.push(v)}};return t.then(function(){m.status="fulfilled",m.value=r;for(var v=0;v<o.length;v++)(0,o[v])(r)},function(v){for(m.status="rejected",m.reason=v,v=0;v<o.length;v++)(0,o[v])(void 0)}),m}var C3=k.S;k.S=function(t,r){h5=at(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&qZ(t,r),C3!==null&&C3(t,r)};var E0=D(null);function Yo(){var t=E0.current;return t!==null?t:Xe.pooledCache}function ii(t,r){r===null?ne(E0,E0.current):ne(E0,r.pool)}function H3(){var t=Yo();return t===null?null:{parent:bt._currentValue,pool:t}}var hr=Error(i(460)),Ko=Error(i(474)),oi=Error(i(542)),ci={then:function(){}};function V3(t){return t=t.status,t==="fulfilled"||t==="rejected"}function _3(t,r,o){switch(o=t[o],o===void 0?t.push(r):o!==r&&(r.then(un,un),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,L3(t),t;default:if(typeof r.status=="string")r.then(un,un);else{if(t=Xe,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(m){if(r.status==="pending"){var v=r;v.status="fulfilled",v.value=m}},function(m){if(r.status==="pending"){var v=r;v.status="rejected",v.reason=m}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,L3(t),t}throw M0=r,hr}}function N0(t){try{var r=t._init;return r(t._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(M0=o,hr):o}}var M0=null;function T3(){if(M0===null)throw Error(i(459));var t=M0;return M0=null,t}function L3(t){if(t===hr||t===oi)throw Error(i(483))}var mr=null,ws=0;function ui(t){var r=ws;return ws+=1,mr===null&&(mr=[]),_3(mr,t,r)}function As(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function di(t,r){throw r.$$typeof===b?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function R3(t){function r(G,U){if(t){var W=G.deletions;W===null?(G.deletions=[U],G.flags|=16):W.push(U)}}function o(G,U){if(!t)return null;for(;U!==null;)r(G,U),U=U.sibling;return null}function m(G){for(var U=new Map;G!==null;)G.key!==null?U.set(G.key,G):U.set(G.index,G),G=G.sibling;return U}function v(G,U){return G=hn(G,U),G.index=0,G.sibling=null,G}function y(G,U,W){return G.index=W,t?(W=G.alternate,W!==null?(W=W.index,W<U?(G.flags|=67108866,U):W):(G.flags|=67108866,U)):(G.flags|=1048576,U)}function Z(G){return t&&G.alternate===null&&(G.flags|=67108866),G}function T(G,U,W,ce){return U===null||U.tag!==6?(U=Do(W,G.mode,ce),U.return=G,U):(U=v(U,W),U.return=G,U)}function q(G,U,W,ce){var be=W.type;return be===E?le(G,U,W.props.children,ce,W.key):U!==null&&(U.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===R&&N0(be)===U.type)?(U=v(U,W.props),As(U,W),U.return=G,U):(U=ni(W.type,W.key,W.props,null,G.mode,ce),As(U,W),U.return=G,U)}function ee(G,U,W,ce){return U===null||U.tag!==4||U.stateNode.containerInfo!==W.containerInfo||U.stateNode.implementation!==W.implementation?(U=Oo(W,G.mode,ce),U.return=G,U):(U=v(U,W.children||[]),U.return=G,U)}function le(G,U,W,ce,be){return U===null||U.tag!==7?(U=y0(W,G.mode,ce,be),U.return=G,U):(U=v(U,W),U.return=G,U)}function ue(G,U,W){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Do(""+U,G.mode,W),U.return=G,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return W=ni(U.type,U.key,U.props,null,G.mode,W),As(W,U),W.return=G,W;case M:return U=Oo(U,G.mode,W),U.return=G,U;case R:return U=N0(U),ue(G,U,W)}if(Y(U)||X(U))return U=y0(U,G.mode,W,null),U.return=G,U;if(typeof U.then=="function")return ue(G,ui(U),W);if(U.$$typeof===N)return ue(G,li(G,U),W);di(G,U)}return null}function te(G,U,W,ce){var be=U!==null?U.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return be!==null?null:T(G,U,""+W,ce);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case w:return W.key===be?q(G,U,W,ce):null;case M:return W.key===be?ee(G,U,W,ce):null;case R:return W=N0(W),te(G,U,W,ce)}if(Y(W)||X(W))return be!==null?null:le(G,U,W,ce,null);if(typeof W.then=="function")return te(G,U,ui(W),ce);if(W.$$typeof===N)return te(G,U,li(G,W),ce);di(G,W)}return null}function ae(G,U,W,ce,be){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return G=G.get(W)||null,T(U,G,""+ce,be);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case w:return G=G.get(ce.key===null?W:ce.key)||null,q(U,G,ce,be);case M:return G=G.get(ce.key===null?W:ce.key)||null,ee(U,G,ce,be);case R:return ce=N0(ce),ae(G,U,W,ce,be)}if(Y(ce)||X(ce))return G=G.get(W)||null,le(U,G,ce,be,null);if(typeof ce.then=="function")return ae(G,U,W,ui(ce),be);if(ce.$$typeof===N)return ae(G,U,W,li(U,ce),be);di(U,ce)}return null}function pe(G,U,W,ce){for(var be=null,De=null,xe=U,Se=U=0,_e=null;xe!==null&&Se<W.length;Se++){xe.index>Se?(_e=xe,xe=null):_e=xe.sibling;var Oe=te(G,xe,W[Se],ce);if(Oe===null){xe===null&&(xe=_e);break}t&&xe&&Oe.alternate===null&&r(G,xe),U=y(Oe,U,Se),De===null?be=Oe:De.sibling=Oe,De=Oe,xe=_e}if(Se===W.length)return o(G,xe),Le&&mn(G,Se),be;if(xe===null){for(;Se<W.length;Se++)xe=ue(G,W[Se],ce),xe!==null&&(U=y(xe,U,Se),De===null?be=xe:De.sibling=xe,De=xe);return Le&&mn(G,Se),be}for(xe=m(xe);Se<W.length;Se++)_e=ae(xe,G,Se,W[Se],ce),_e!==null&&(t&&_e.alternate!==null&&xe.delete(_e.key===null?Se:_e.key),U=y(_e,U,Se),De===null?be=_e:De.sibling=_e,De=_e);return t&&xe.forEach(function(a0){return r(G,a0)}),Le&&mn(G,Se),be}function ye(G,U,W,ce){if(W==null)throw Error(i(151));for(var be=null,De=null,xe=U,Se=U=0,_e=null,Oe=W.next();xe!==null&&!Oe.done;Se++,Oe=W.next()){xe.index>Se?(_e=xe,xe=null):_e=xe.sibling;var a0=te(G,xe,Oe.value,ce);if(a0===null){xe===null&&(xe=_e);break}t&&xe&&a0.alternate===null&&r(G,xe),U=y(a0,U,Se),De===null?be=a0:De.sibling=a0,De=a0,xe=_e}if(Oe.done)return o(G,xe),Le&&mn(G,Se),be;if(xe===null){for(;!Oe.done;Se++,Oe=W.next())Oe=ue(G,Oe.value,ce),Oe!==null&&(U=y(Oe,U,Se),De===null?be=Oe:De.sibling=Oe,De=Oe);return Le&&mn(G,Se),be}for(xe=m(xe);!Oe.done;Se++,Oe=W.next())Oe=ae(xe,G,Se,Oe.value,ce),Oe!==null&&(t&&Oe.alternate!==null&&xe.delete(Oe.key===null?Se:Oe.key),U=y(Oe,U,Se),De===null?be=Oe:De.sibling=Oe,De=Oe);return t&&xe.forEach(function(WC){return r(G,WC)}),Le&&mn(G,Se),be}function Ke(G,U,W,ce){if(typeof W=="object"&&W!==null&&W.type===E&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case w:e:{for(var be=W.key;U!==null;){if(U.key===be){if(be=W.type,be===E){if(U.tag===7){o(G,U.sibling),ce=v(U,W.props.children),ce.return=G,G=ce;break e}}else if(U.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===R&&N0(be)===U.type){o(G,U.sibling),ce=v(U,W.props),As(ce,W),ce.return=G,G=ce;break e}o(G,U);break}else r(G,U);U=U.sibling}W.type===E?(ce=y0(W.props.children,G.mode,ce,W.key),ce.return=G,G=ce):(ce=ni(W.type,W.key,W.props,null,G.mode,ce),As(ce,W),ce.return=G,G=ce)}return Z(G);case M:e:{for(be=W.key;U!==null;){if(U.key===be)if(U.tag===4&&U.stateNode.containerInfo===W.containerInfo&&U.stateNode.implementation===W.implementation){o(G,U.sibling),ce=v(U,W.children||[]),ce.return=G,G=ce;break e}else{o(G,U);break}else r(G,U);U=U.sibling}ce=Oo(W,G.mode,ce),ce.return=G,G=ce}return Z(G);case R:return W=N0(W),Ke(G,U,W,ce)}if(Y(W))return pe(G,U,W,ce);if(X(W)){if(be=X(W),typeof be!="function")throw Error(i(150));return W=be.call(W),ye(G,U,W,ce)}if(typeof W.then=="function")return Ke(G,U,ui(W),ce);if(W.$$typeof===N)return Ke(G,U,li(G,W),ce);di(G,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,U!==null&&U.tag===6?(o(G,U.sibling),ce=v(U,W),ce.return=G,G=ce):(o(G,U),ce=Do(W,G.mode,ce),ce.return=G,G=ce),Z(G)):o(G,U)}return function(G,U,W,ce){try{ws=0;var be=Ke(G,U,W,ce);return mr=null,be}catch(xe){if(xe===hr||xe===oi)throw xe;var De=la(29,xe,null,G.mode);return De.lanes=ce,De.return=G,De}finally{}}}var S0=R3(!0),k3=R3(!1),Fn=!1;function Xo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function qn(t,r,o){var m=t.updateQueue;if(m===null)return null;if(m=m.shared,(Fe&2)!==0){var v=m.pending;return v===null?r.next=r:(r.next=v.next,v.next=r),m.pending=r,r=ai(t),b3(t,null,o),r}return ti(t,m,r,o),ai(t)}function js(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var m=r.lanes;m&=t.pendingLanes,o|=m,r.lanes=o,Sf(t,o)}}function Jo(t,r){var o=t.updateQueue,m=t.alternate;if(m!==null&&(m=m.updateQueue,o===m)){var v=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var Z={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?v=y=Z:y=y.next=Z,o=o.next}while(o!==null);y===null?v=y=r:y=y.next=r}else v=y=r;o={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:y,shared:m.shared,callbacks:m.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}var Wo=!1;function Es(){if(Wo){var t=dr;if(t!==null)throw t}}function Ns(t,r,o,m){Wo=!1;var v=t.updateQueue;Fn=!1;var y=v.firstBaseUpdate,Z=v.lastBaseUpdate,T=v.shared.pending;if(T!==null){v.shared.pending=null;var q=T,ee=q.next;q.next=null,Z===null?y=ee:Z.next=ee,Z=q;var le=t.alternate;le!==null&&(le=le.updateQueue,T=le.lastBaseUpdate,T!==Z&&(T===null?le.firstBaseUpdate=ee:T.next=ee,le.lastBaseUpdate=q))}if(y!==null){var ue=v.baseState;Z=0,le=ee=q=null,T=y;do{var te=T.lane&-536870913,ae=te!==T.lane;if(ae?(Ve&te)===te:(m&te)===te){te!==0&&te===ur&&(Wo=!0),le!==null&&(le=le.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var pe=t,ye=T;te=r;var Ke=o;switch(ye.tag){case 1:if(pe=ye.payload,typeof pe=="function"){ue=pe.call(Ke,ue,te);break e}ue=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ye.payload,te=typeof pe=="function"?pe.call(Ke,ue,te):pe,te==null)break e;ue=x({},ue,te);break e;case 2:Fn=!0}}te=T.callback,te!==null&&(t.flags|=64,ae&&(t.flags|=8192),ae=v.callbacks,ae===null?v.callbacks=[te]:ae.push(te))}else ae={lane:te,tag:T.tag,payload:T.payload,callback:T.callback,next:null},le===null?(ee=le=ae,q=ue):le=le.next=ae,Z|=te;if(T=T.next,T===null){if(T=v.shared.pending,T===null)break;ae=T,T=ae.next,ae.next=null,v.lastBaseUpdate=ae,v.shared.pending=null}}while(!0);le===null&&(q=ue),v.baseState=q,v.firstBaseUpdate=ee,v.lastBaseUpdate=le,y===null&&(v.shared.lanes=0),Pn|=Z,t.lanes=Z,t.memoizedState=ue}}function D3(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function O3(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)D3(o[t],r)}var fr=D(null),hi=D(0);function F3(t,r){t=En,ne(hi,t),ne(fr,r),En=t|r.baseLanes}function ec(){ne(hi,En),ne(fr,fr.current)}function tc(){En=hi.current,J(fr),J(hi)}var ia=D(null),Aa=null;function $n(t){var r=t.alternate;ne(gt,gt.current&1),ne(ia,t),Aa===null&&(r===null||fr.current!==null||r.memoizedState!==null)&&(Aa=t)}function ac(t){ne(gt,gt.current),ne(ia,t),Aa===null&&(Aa=t)}function z3(t){t.tag===22?(ne(gt,gt.current),ne(ia,t),Aa===null&&(Aa=t)):Bn()}function Bn(){ne(gt,gt.current),ne(ia,ia.current)}function oa(t){J(ia),Aa===t&&(Aa=null),J(gt)}var gt=D(0);function mi(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o2(o)||c2(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var gn=0,Me=null,Ge=null,yt=null,fi=!1,pr=!1,Z0=!1,pi=0,Ms=0,gr=null,BZ=0;function ut(){throw Error(i(321))}function nc(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!sa(t[o],r[o]))return!1;return!0}function rc(t,r,o,m,v,y){return gn=y,Me=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,k.H=t===null||t.memoizedState===null?jp:bc,Z0=!1,y=o(m,v),Z0=!1,pr&&(y=$3(r,o,m,v)),q3(t),y}function q3(t){k.H=Cs;var r=Ge!==null&&Ge.next!==null;if(gn=0,yt=Ge=Me=null,fi=!1,Ms=0,gr=null,r)throw Error(i(300));t===null||wt||(t=t.dependencies,t!==null&&si(t)&&(wt=!0))}function $3(t,r,o,m){Me=t;var v=0;do{if(pr&&(gr=null),Ms=0,pr=!1,25<=v)throw Error(i(301));if(v+=1,yt=Ge=null,t.updateQueue!=null){var y=t.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}k.H=Ep,y=r(o,m)}while(pr);return y}function IZ(){var t=k.H,r=t.useState()[0];return r=typeof r.then=="function"?Ss(r):r,t=t.useState()[0],(Ge!==null?Ge.memoizedState:null)!==t&&(Me.flags|=1024),r}function sc(){var t=pi!==0;return pi=0,t}function lc(t,r,o){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o}function ic(t){if(fi){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}fi=!1}gn=0,yt=Ge=Me=null,pr=!1,Ms=pi=0,gr=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?Me.memoizedState=yt=t:yt=yt.next=t,yt}function xt(){if(Ge===null){var t=Me.alternate;t=t!==null?t.memoizedState:null}else t=Ge.next;var r=yt===null?Me.memoizedState:yt.next;if(r!==null)yt=r,Ge=t;else{if(t===null)throw Me.alternate===null?Error(i(467)):Error(i(310));Ge=t,t={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},yt===null?Me.memoizedState=yt=t:yt=yt.next=t}return yt}function gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ss(t){var r=Ms;return Ms+=1,gr===null&&(gr=[]),t=_3(gr,t,r),r=Me,(yt===null?r.memoizedState:yt.next)===null&&(r=r.alternate,k.H=r===null||r.memoizedState===null?jp:bc),t}function xi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ss(t);if(t.$$typeof===N)return Dt(t)}throw Error(i(438,String(t)))}function oc(t){var r=null,o=Me.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var m=Me.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(r={data:m.data.map(function(v){return v.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=gi(),Me.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(t),m=0;m<t;m++)o[m]=O;return r.index++,o}function xn(t,r){return typeof r=="function"?r(t):r}function vi(t){var r=xt();return cc(r,Ge,t)}function cc(t,r,o){var m=t.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=o;var v=t.baseQueue,y=m.pending;if(y!==null){if(v!==null){var Z=v.next;v.next=y.next,y.next=Z}r.baseQueue=v=y,m.pending=null}if(y=t.baseState,v===null)t.memoizedState=y;else{r=v.next;var T=Z=null,q=null,ee=r,le=!1;do{var ue=ee.lane&-536870913;if(ue!==ee.lane?(Ve&ue)===ue:(gn&ue)===ue){var te=ee.revertLane;if(te===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ue===ur&&(le=!0);else if((gn&te)===te){ee=ee.next,te===ur&&(le=!0);continue}else ue={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(T=q=ue,Z=y):q=q.next=ue,Me.lanes|=te,Pn|=te;ue=ee.action,Z0&&o(y,ue),y=ee.hasEagerState?ee.eagerState:o(y,ue)}else te={lane:ue,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(T=q=te,Z=y):q=q.next=te,Me.lanes|=ue,Pn|=ue;ee=ee.next}while(ee!==null&&ee!==r);if(q===null?Z=y:q.next=T,!sa(y,t.memoizedState)&&(wt=!0,le&&(o=dr,o!==null)))throw o;t.memoizedState=y,t.baseState=Z,t.baseQueue=q,m.lastRenderedState=y}return v===null&&(m.lanes=0),[t.memoizedState,m.dispatch]}function uc(t){var r=xt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var m=o.dispatch,v=o.pending,y=r.memoizedState;if(v!==null){o.pending=null;var Z=v=v.next;do y=t(y,Z.action),Z=Z.next;while(Z!==v);sa(y,r.memoizedState)||(wt=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),o.lastRenderedState=y}return[y,m]}function B3(t,r,o){var m=Me,v=xt(),y=Le;if(y){if(o===void 0)throw Error(i(407));o=o()}else o=r();var Z=!sa((Ge||v).memoizedState,o);if(Z&&(v.memoizedState=o,wt=!0),v=v.queue,mc(P3.bind(null,m,v,t),[t]),v.getSnapshot!==r||Z||yt!==null&&yt.memoizedState.tag&1){if(m.flags|=2048,xr(9,{destroy:void 0},U3.bind(null,m,v,o,r),null),Xe===null)throw Error(i(349));y||(gn&127)!==0||I3(m,r,o)}return o}function I3(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Me.updateQueue,r===null?(r=gi(),Me.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function U3(t,r,o,m){r.value=o,r.getSnapshot=m,G3(r)&&Y3(t)}function P3(t,r,o){return o(function(){G3(r)&&Y3(t)})}function G3(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!sa(t,o)}catch{return!0}}function Y3(t){var r=b0(t,2);r!==null&&ta(r,t,2)}function dc(t){var r=It();if(typeof t=="function"){var o=t;if(t=o(),Z0){_n(!0);try{o()}finally{_n(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:t},r}function K3(t,r,o,m){return t.baseState=o,cc(t,Ge,typeof m=="function"?m:xn)}function UZ(t,r,o,m,v){if(wi(t))throw Error(i(485));if(t=r.action,t!==null){var y={payload:v,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){y.listeners.push(Z)}};k.T!==null?o(!0):y.isTransition=!1,m(y),o=r.pending,o===null?(y.next=r.pending=y,X3(r,y)):(y.next=o.next,r.pending=o.next=y)}}function X3(t,r){var o=r.action,m=r.payload,v=t.state;if(r.isTransition){var y=k.T,Z={};k.T=Z;try{var T=o(v,m),q=k.S;q!==null&&q(Z,T),Q3(t,r,T)}catch(ee){hc(t,r,ee)}finally{y!==null&&Z.types!==null&&(y.types=Z.types),k.T=y}}else try{y=o(v,m),Q3(t,r,y)}catch(ee){hc(t,r,ee)}}function Q3(t,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(m){J3(t,r,m)},function(m){return hc(t,r,m)}):J3(t,r,o)}function J3(t,r,o){r.status="fulfilled",r.value=o,W3(r),t.state=o,r=t.pending,r!==null&&(o=r.next,o===r?t.pending=null:(o=o.next,r.next=o,X3(t,o)))}function hc(t,r,o){var m=t.pending;if(t.pending=null,m!==null){m=m.next;do r.status="rejected",r.reason=o,W3(r),r=r.next;while(r!==m)}t.action=null}function W3(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function ep(t,r){return r}function tp(t,r){if(Le){var o=Xe.formState;if(o!==null){e:{var m=Me;if(Le){if(et){t:{for(var v=et,y=wa;v.nodeType!==8;){if(!y){v=null;break t}if(v=ja(v.nextSibling),v===null){v=null;break t}}y=v.data,v=y==="F!"||y==="F"?v:null}if(v){et=ja(v.nextSibling),m=v.data==="F!";break e}}Dn(m)}m=!1}m&&(r=o[0])}}return o=It(),o.memoizedState=o.baseState=r,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ep,lastRenderedState:r},o.queue=m,o=yp.bind(null,Me,m),m.dispatch=o,m=dc(!1),y=vc.bind(null,Me,!1,m.queue),m=It(),v={state:r,dispatch:null,action:t,pending:null},m.queue=v,o=UZ.bind(null,Me,v,y,o),v.dispatch=o,m.memoizedState=t,[r,o,!1]}function ap(t){var r=xt();return np(r,Ge,t)}function np(t,r,o){if(r=cc(t,r,ep)[0],t=vi(xn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var m=Ss(r)}catch(Z){throw Z===hr?oi:Z}else m=r;r=xt();var v=r.queue,y=v.dispatch;return o!==r.memoizedState&&(Me.flags|=2048,xr(9,{destroy:void 0},PZ.bind(null,v,o),null)),[m,y,t]}function PZ(t,r){t.action=r}function rp(t){var r=xt(),o=Ge;if(o!==null)return np(r,o,t);xt(),r=r.memoizedState,o=xt();var m=o.queue.dispatch;return o.memoizedState=t,[r,m,!1]}function xr(t,r,o,m){return t={tag:t,create:o,deps:m,inst:r,next:null},r=Me.updateQueue,r===null&&(r=gi(),Me.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=t.next=t:(m=o.next,o.next=t,t.next=m,r.lastEffect=t),t}function sp(){return xt().memoizedState}function bi(t,r,o,m){var v=It();Me.flags|=t,v.memoizedState=xr(1|r,{destroy:void 0},o,m===void 0?null:m)}function yi(t,r,o,m){var v=xt();m=m===void 0?null:m;var y=v.memoizedState.inst;Ge!==null&&m!==null&&nc(m,Ge.memoizedState.deps)?v.memoizedState=xr(r,y,o,m):(Me.flags|=t,v.memoizedState=xr(1|r,y,o,m))}function lp(t,r){bi(8390656,8,t,r)}function mc(t,r){yi(2048,8,t,r)}function GZ(t){Me.flags|=4;var r=Me.updateQueue;if(r===null)r=gi(),Me.updateQueue=r,r.events=[t];else{var o=r.events;o===null?r.events=[t]:o.push(t)}}function ip(t){var r=xt().memoizedState;return GZ({ref:r,nextImpl:t}),function(){if((Fe&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function op(t,r){return yi(4,2,t,r)}function cp(t,r){return yi(4,4,t,r)}function up(t,r){if(typeof r=="function"){t=t();var o=r(t);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function dp(t,r,o){o=o!=null?o.concat([t]):null,yi(4,4,up.bind(null,r,t),o)}function fc(){}function hp(t,r){var o=xt();r=r===void 0?null:r;var m=o.memoizedState;return r!==null&&nc(r,m[1])?m[0]:(o.memoizedState=[t,r],t)}function mp(t,r){var o=xt();r=r===void 0?null:r;var m=o.memoizedState;if(r!==null&&nc(r,m[1]))return m[0];if(m=t(),Z0){_n(!0);try{t()}finally{_n(!1)}}return o.memoizedState=[m,r],m}function pc(t,r,o){return o===void 0||(gn&1073741824)!==0&&(Ve&261930)===0?t.memoizedState=r:(t.memoizedState=o,t=f5(),Me.lanes|=t,Pn|=t,o)}function fp(t,r,o,m){return sa(o,r)?o:fr.current!==null?(t=pc(t,o,m),sa(t,r)||(wt=!0),t):(gn&42)===0||(gn&1073741824)!==0&&(Ve&261930)===0?(wt=!0,t.memoizedState=o):(t=f5(),Me.lanes|=t,Pn|=t,r)}function pp(t,r,o,m,v){var y=$.p;$.p=y!==0&&8>y?y:8;var Z=k.T,T={};k.T=T,vc(t,!1,r,o);try{var q=v(),ee=k.S;if(ee!==null&&ee(T,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var le=$Z(q,m);Zs(t,r,le,da(t))}else Zs(t,r,m,da(t))}catch(ue){Zs(t,r,{then:function(){},status:"rejected",reason:ue},da())}finally{$.p=y,Z!==null&&T.types!==null&&(Z.types=T.types),k.T=Z}}function YZ(){}function gc(t,r,o,m){if(t.tag!==5)throw Error(i(476));var v=gp(t).queue;pp(t,v,r,Q,o===null?YZ:function(){return xp(t),o(m)})}function gp(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:Q},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function xp(t){var r=gp(t);r.next===null&&(r=t.alternate.memoizedState),Zs(t,r.next.queue,{},da())}function xc(){return Dt(Us)}function vp(){return xt().memoizedState}function bp(){return xt().memoizedState}function KZ(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var o=da();t=zn(o);var m=qn(r,t,o);m!==null&&(ta(m,r,o),js(m,r,o)),r={cache:Po()},t.payload=r;return}r=r.return}}function XZ(t,r,o){var m=da();o={lane:m,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},wi(t)?wp(r,o):(o=Ro(t,r,o,m),o!==null&&(ta(o,t,m),Ap(o,r,m)))}function yp(t,r,o){var m=da();Zs(t,r,o,m)}function Zs(t,r,o,m){var v={lane:m,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(wi(t))wp(r,v);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var Z=r.lastRenderedState,T=y(Z,o);if(v.hasEagerState=!0,v.eagerState=T,sa(T,Z))return ti(t,r,v,0),Xe===null&&ei(),!1}catch{}finally{}if(o=Ro(t,r,v,m),o!==null)return ta(o,t,m),Ap(o,r,m),!0}return!1}function vc(t,r,o,m){if(m={lane:2,revertLane:Xc(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},wi(t)){if(r)throw Error(i(479))}else r=Ro(t,o,m,2),r!==null&&ta(r,t,2)}function wi(t){var r=t.alternate;return t===Me||r!==null&&r===Me}function wp(t,r){pr=fi=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Ap(t,r,o){if((o&4194048)!==0){var m=r.lanes;m&=t.pendingLanes,o|=m,r.lanes=o,Sf(t,o)}}var Cs={readContext:Dt,use:xi,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};Cs.useEffectEvent=ut;var jp={readContext:Dt,use:xi,useCallback:function(t,r){return It().memoizedState=[t,r===void 0?null:r],t},useContext:Dt,useEffect:lp,useImperativeHandle:function(t,r,o){o=o!=null?o.concat([t]):null,bi(4194308,4,up.bind(null,r,t),o)},useLayoutEffect:function(t,r){return bi(4194308,4,t,r)},useInsertionEffect:function(t,r){bi(4,2,t,r)},useMemo:function(t,r){var o=It();r=r===void 0?null:r;var m=t();if(Z0){_n(!0);try{t()}finally{_n(!1)}}return o.memoizedState=[m,r],m},useReducer:function(t,r,o){var m=It();if(o!==void 0){var v=o(r);if(Z0){_n(!0);try{o(r)}finally{_n(!1)}}}else v=r;return m.memoizedState=m.baseState=v,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:v},m.queue=t,t=t.dispatch=XZ.bind(null,Me,t),[m.memoizedState,t]},useRef:function(t){var r=It();return t={current:t},r.memoizedState=t},useState:function(t){t=dc(t);var r=t.queue,o=yp.bind(null,Me,r);return r.dispatch=o,[t.memoizedState,o]},useDebugValue:fc,useDeferredValue:function(t,r){var o=It();return pc(o,t,r)},useTransition:function(){var t=dc(!1);return t=pp.bind(null,Me,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,o){var m=Me,v=It();if(Le){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Xe===null)throw Error(i(349));(Ve&127)!==0||I3(m,r,o)}v.memoizedState=o;var y={value:o,getSnapshot:r};return v.queue=y,lp(P3.bind(null,m,y,t),[t]),m.flags|=2048,xr(9,{destroy:void 0},U3.bind(null,m,y,o,r),null),o},useId:function(){var t=It(),r=Xe.identifierPrefix;if(Le){var o=Ga,m=Pa;o=(m&~(1<<32-ra(m)-1)).toString(32)+o,r="_"+r+"R_"+o,o=pi++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=BZ++,r="_"+r+"r_"+o.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:xc,useFormState:tp,useActionState:tp,useOptimistic:function(t){var r=It();r.memoizedState=r.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=vc.bind(null,Me,!0,o),o.dispatch=r,[t,r]},useMemoCache:oc,useCacheRefresh:function(){return It().memoizedState=KZ.bind(null,Me)},useEffectEvent:function(t){var r=It(),o={impl:t};return r.memoizedState=o,function(){if((Fe&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},bc={readContext:Dt,use:xi,useCallback:hp,useContext:Dt,useEffect:mc,useImperativeHandle:dp,useInsertionEffect:op,useLayoutEffect:cp,useMemo:mp,useReducer:vi,useRef:sp,useState:function(){return vi(xn)},useDebugValue:fc,useDeferredValue:function(t,r){var o=xt();return fp(o,Ge.memoizedState,t,r)},useTransition:function(){var t=vi(xn)[0],r=xt().memoizedState;return[typeof t=="boolean"?t:Ss(t),r]},useSyncExternalStore:B3,useId:vp,useHostTransitionStatus:xc,useFormState:ap,useActionState:ap,useOptimistic:function(t,r){var o=xt();return K3(o,Ge,t,r)},useMemoCache:oc,useCacheRefresh:bp};bc.useEffectEvent=ip;var Ep={readContext:Dt,use:xi,useCallback:hp,useContext:Dt,useEffect:mc,useImperativeHandle:dp,useInsertionEffect:op,useLayoutEffect:cp,useMemo:mp,useReducer:uc,useRef:sp,useState:function(){return uc(xn)},useDebugValue:fc,useDeferredValue:function(t,r){var o=xt();return Ge===null?pc(o,t,r):fp(o,Ge.memoizedState,t,r)},useTransition:function(){var t=uc(xn)[0],r=xt().memoizedState;return[typeof t=="boolean"?t:Ss(t),r]},useSyncExternalStore:B3,useId:vp,useHostTransitionStatus:xc,useFormState:rp,useActionState:rp,useOptimistic:function(t,r){var o=xt();return Ge!==null?K3(o,Ge,t,r):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:oc,useCacheRefresh:bp};Ep.useEffectEvent=ip;function yc(t,r,o,m){r=t.memoizedState,o=o(m,r),o=o==null?r:x({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var wc={enqueueSetState:function(t,r,o){t=t._reactInternals;var m=da(),v=zn(m);v.payload=r,o!=null&&(v.callback=o),r=qn(t,v,m),r!==null&&(ta(r,t,m),js(r,t,m))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var m=da(),v=zn(m);v.tag=1,v.payload=r,o!=null&&(v.callback=o),r=qn(t,v,m),r!==null&&(ta(r,t,m),js(r,t,m))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=da(),m=zn(o);m.tag=2,r!=null&&(m.callback=r),r=qn(t,m,o),r!==null&&(ta(r,t,o),js(r,t,o))}};function Np(t,r,o,m,v,y,Z){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(m,y,Z):r.prototype&&r.prototype.isPureReactComponent?!ps(o,m)||!ps(v,y):!0}function Mp(t,r,o,m){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,m),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,m),r.state!==t&&wc.enqueueReplaceState(r,r.state,null)}function C0(t,r){var o=r;if("ref"in r){o={};for(var m in r)m!=="ref"&&(o[m]=r[m])}if(t=t.defaultProps){o===r&&(o=x({},o));for(var v in t)o[v]===void 0&&(o[v]=t[v])}return o}function Sp(t){Wl(t)}function Zp(t){console.error(t)}function Cp(t){Wl(t)}function Ai(t,r){try{var o=t.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(m){setTimeout(function(){throw m})}}function Hp(t,r,o){try{var m=t.onCaughtError;m(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Ac(t,r,o){return o=zn(o),o.tag=3,o.payload={element:null},o.callback=function(){Ai(t,r)},o}function Vp(t){return t=zn(t),t.tag=3,t}function _p(t,r,o,m){var v=o.type.getDerivedStateFromError;if(typeof v=="function"){var y=m.value;t.payload=function(){return v(y)},t.callback=function(){Hp(r,o,m)}}var Z=o.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(t.callback=function(){Hp(r,o,m),typeof v!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var T=m.stack;this.componentDidCatch(m.value,{componentStack:T!==null?T:""})})}function QZ(t,r,o,m,v){if(o.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(r=o.alternate,r!==null&&cr(r,o,v,!0),o=ia.current,o!==null){switch(o.tag){case 31:case 13:return Aa===null?Li():o.alternate===null&&dt===0&&(dt=3),o.flags&=-257,o.flags|=65536,o.lanes=v,m===ci?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([m]):r.add(m),Gc(t,m,v)),!1;case 22:return o.flags|=65536,m===ci?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([m])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([m]):o.add(m)),Gc(t,m,v)),!1}throw Error(i(435,o.tag))}return Gc(t,m,v),Li(),!1}if(Le)return r=ia.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=v,m!==qo&&(t=Error(i(422),{cause:m}),vs(va(t,o)))):(m!==qo&&(r=Error(i(423),{cause:m}),vs(va(r,o))),t=t.current.alternate,t.flags|=65536,v&=-v,t.lanes|=v,m=va(m,o),v=Ac(t.stateNode,m,v),Jo(t,v),dt!==4&&(dt=2)),!1;var y=Error(i(520),{cause:m});if(y=va(y,o),Ds===null?Ds=[y]:Ds.push(y),dt!==4&&(dt=2),r===null)return!0;m=va(m,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,t=v&-v,o.lanes|=t,t=Ac(o.stateNode,m,t),Jo(o,t),!1;case 1:if(r=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Gn===null||!Gn.has(y))))return o.flags|=65536,v&=-v,o.lanes|=v,v=Vp(v),_p(v,t,o,m),Jo(o,v),!1}o=o.return}while(o!==null);return!1}var jc=Error(i(461)),wt=!1;function Ot(t,r,o,m){r.child=t===null?k3(r,null,o,m):S0(r,t.child,o,m)}function Tp(t,r,o,m,v){o=o.render;var y=r.ref;if("ref"in m){var Z={};for(var T in m)T!=="ref"&&(Z[T]=m[T])}else Z=m;return j0(r),m=rc(t,r,o,Z,y,v),T=sc(),t!==null&&!wt?(lc(t,r,v),vn(t,r,v)):(Le&&T&&Fo(r),r.flags|=1,Ot(t,r,m,v),r.child)}function Lp(t,r,o,m,v){if(t===null){var y=o.type;return typeof y=="function"&&!ko(y)&&y.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=y,Rp(t,r,y,m,v)):(t=ni(o.type,null,m,r,r.mode,v),t.ref=r.ref,t.return=r,r.child=t)}if(y=t.child,!Vc(t,v)){var Z=y.memoizedProps;if(o=o.compare,o=o!==null?o:ps,o(Z,m)&&t.ref===r.ref)return vn(t,r,v)}return r.flags|=1,t=hn(y,m),t.ref=r.ref,t.return=r,r.child=t}function Rp(t,r,o,m,v){if(t!==null){var y=t.memoizedProps;if(ps(y,m)&&t.ref===r.ref)if(wt=!1,r.pendingProps=m=y,Vc(t,v))(t.flags&131072)!==0&&(wt=!0);else return r.lanes=t.lanes,vn(t,r,v)}return Ec(t,r,o,m,v)}function kp(t,r,o,m){var v=m.children,y=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((r.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,t!==null){for(m=r.child=t.child,v=0;m!==null;)v=v|m.lanes|m.childLanes,m=m.sibling;m=v&~y}else m=0,r.child=null;return Dp(t,r,y,o,m)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&ii(r,y!==null?y.cachePool:null),y!==null?F3(r,y):ec(),z3(r);else return m=r.lanes=536870912,Dp(t,r,y!==null?y.baseLanes|o:o,o,m)}else y!==null?(ii(r,y.cachePool),F3(r,y),Bn(),r.memoizedState=null):(t!==null&&ii(r,null),ec(),Bn());return Ot(t,r,v,o),r.child}function Hs(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Dp(t,r,o,m,v){var y=Yo();return y=y===null?null:{parent:bt._currentValue,pool:y},r.memoizedState={baseLanes:o,cachePool:y},t!==null&&ii(r,null),ec(),z3(r),t!==null&&cr(t,r,m,!0),r.childLanes=v,null}function ji(t,r){return r=Ni({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function Op(t,r,o){return S0(r,t.child,null,o),t=ji(r,r.pendingProps),t.flags|=2,oa(r),r.memoizedState=null,t}function JZ(t,r,o){var m=r.pendingProps,v=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(Le){if(m.mode==="hidden")return t=ji(r,m),r.lanes=536870912,Hs(null,t);if(ac(r),(t=et)?(t=X5(t,wa),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Pa,overflow:Ga}:null,retryLane:536870912,hydrationErrors:null},o=w3(t),o.return=r,r.child=o,kt=r,et=null)):t=null,t===null)throw Dn(r);return r.lanes=536870912,null}return ji(r,m)}var y=t.memoizedState;if(y!==null){var Z=y.dehydrated;if(ac(r),v)if(r.flags&256)r.flags&=-257,r=Op(t,r,o);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(i(558));else if(wt||cr(t,r,o,!1),v=(o&t.childLanes)!==0,wt||v){if(m=Xe,m!==null&&(Z=Zf(m,o),Z!==0&&Z!==y.retryLane))throw y.retryLane=Z,b0(t,Z),ta(m,t,Z),jc;Li(),r=Op(t,r,o)}else t=y.treeContext,et=ja(Z.nextSibling),kt=r,Le=!0,kn=null,wa=!1,t!==null&&E3(r,t),r=ji(r,m),r.flags|=4096;return r}return t=hn(t.child,{mode:m.mode,children:m.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Ei(t,r){var o=r.ref;if(o===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(r.flags|=4194816)}}function Ec(t,r,o,m,v){return j0(r),o=rc(t,r,o,m,void 0,v),m=sc(),t!==null&&!wt?(lc(t,r,v),vn(t,r,v)):(Le&&m&&Fo(r),r.flags|=1,Ot(t,r,o,v),r.child)}function Fp(t,r,o,m,v,y){return j0(r),r.updateQueue=null,o=$3(r,m,o,v),q3(t),m=sc(),t!==null&&!wt?(lc(t,r,y),vn(t,r,y)):(Le&&m&&Fo(r),r.flags|=1,Ot(t,r,o,y),r.child)}function zp(t,r,o,m,v){if(j0(r),r.stateNode===null){var y=sr,Z=o.contextType;typeof Z=="object"&&Z!==null&&(y=Dt(Z)),y=new o(m,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=wc,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=m,y.state=r.memoizedState,y.refs={},Xo(r),Z=o.contextType,y.context=typeof Z=="object"&&Z!==null?Dt(Z):sr,y.state=r.memoizedState,Z=o.getDerivedStateFromProps,typeof Z=="function"&&(yc(r,o,Z,m),y.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(Z=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),Z!==y.state&&wc.enqueueReplaceState(y,y.state,null),Ns(r,m,y,v),Es(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),m=!0}else if(t===null){y=r.stateNode;var T=r.memoizedProps,q=C0(o,T);y.props=q;var ee=y.context,le=o.contextType;Z=sr,typeof le=="object"&&le!==null&&(Z=Dt(le));var ue=o.getDerivedStateFromProps;le=typeof ue=="function"||typeof y.getSnapshotBeforeUpdate=="function",T=r.pendingProps!==T,le||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(T||ee!==Z)&&Mp(r,y,m,Z),Fn=!1;var te=r.memoizedState;y.state=te,Ns(r,m,y,v),Es(),ee=r.memoizedState,T||te!==ee||Fn?(typeof ue=="function"&&(yc(r,o,ue,m),ee=r.memoizedState),(q=Fn||Np(r,o,q,m,te,ee,Z))?(le||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=m,r.memoizedState=ee),y.props=m,y.state=ee,y.context=Z,m=q):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),m=!1)}else{y=r.stateNode,Qo(t,r),Z=r.memoizedProps,le=C0(o,Z),y.props=le,ue=r.pendingProps,te=y.context,ee=o.contextType,q=sr,typeof ee=="object"&&ee!==null&&(q=Dt(ee)),T=o.getDerivedStateFromProps,(ee=typeof T=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(Z!==ue||te!==q)&&Mp(r,y,m,q),Fn=!1,te=r.memoizedState,y.state=te,Ns(r,m,y,v),Es();var ae=r.memoizedState;Z!==ue||te!==ae||Fn||t!==null&&t.dependencies!==null&&si(t.dependencies)?(typeof T=="function"&&(yc(r,o,T,m),ae=r.memoizedState),(le=Fn||Np(r,o,le,m,te,ae,q)||t!==null&&t.dependencies!==null&&si(t.dependencies))?(ee||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(m,ae,q),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(m,ae,q)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||Z===t.memoizedProps&&te===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||Z===t.memoizedProps&&te===t.memoizedState||(r.flags|=1024),r.memoizedProps=m,r.memoizedState=ae),y.props=m,y.state=ae,y.context=q,m=le):(typeof y.componentDidUpdate!="function"||Z===t.memoizedProps&&te===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||Z===t.memoizedProps&&te===t.memoizedState||(r.flags|=1024),m=!1)}return y=m,Ei(t,r),m=(r.flags&128)!==0,y||m?(y=r.stateNode,o=m&&typeof o.getDerivedStateFromError!="function"?null:y.render(),r.flags|=1,t!==null&&m?(r.child=S0(r,t.child,null,v),r.child=S0(r,null,o,v)):Ot(t,r,o,v),r.memoizedState=y.state,t=r.child):t=vn(t,r,v),t}function qp(t,r,o,m){return w0(),r.flags|=256,Ot(t,r,o,m),r.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mc(t){return{baseLanes:t,cachePool:H3()}}function Sc(t,r,o){return t=t!==null?t.childLanes&~o:0,r&&(t|=ua),t}function $p(t,r,o){var m=r.pendingProps,v=!1,y=(r.flags&128)!==0,Z;if((Z=y)||(Z=t!==null&&t.memoizedState===null?!1:(gt.current&2)!==0),Z&&(v=!0,r.flags&=-129),Z=(r.flags&32)!==0,r.flags&=-33,t===null){if(Le){if(v?$n(r):Bn(),(t=et)?(t=X5(t,wa),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Pa,overflow:Ga}:null,retryLane:536870912,hydrationErrors:null},o=w3(t),o.return=r,r.child=o,kt=r,et=null)):t=null,t===null)throw Dn(r);return c2(t)?r.lanes=32:r.lanes=536870912,null}var T=m.children;return m=m.fallback,v?(Bn(),v=r.mode,T=Ni({mode:"hidden",children:T},v),m=y0(m,v,o,null),T.return=r,m.return=r,T.sibling=m,r.child=T,m=r.child,m.memoizedState=Mc(o),m.childLanes=Sc(t,Z,o),r.memoizedState=Nc,Hs(null,m)):($n(r),Zc(r,T))}var q=t.memoizedState;if(q!==null&&(T=q.dehydrated,T!==null)){if(y)r.flags&256?($n(r),r.flags&=-257,r=Cc(t,r,o)):r.memoizedState!==null?(Bn(),r.child=t.child,r.flags|=128,r=null):(Bn(),T=m.fallback,v=r.mode,m=Ni({mode:"visible",children:m.children},v),T=y0(T,v,o,null),T.flags|=2,m.return=r,T.return=r,m.sibling=T,r.child=m,S0(r,t.child,null,o),m=r.child,m.memoizedState=Mc(o),m.childLanes=Sc(t,Z,o),r.memoizedState=Nc,r=Hs(null,m));else if($n(r),c2(T)){if(Z=T.nextSibling&&T.nextSibling.dataset,Z)var ee=Z.dgst;Z=ee,m=Error(i(419)),m.stack="",m.digest=Z,vs({value:m,source:null,stack:null}),r=Cc(t,r,o)}else if(wt||cr(t,r,o,!1),Z=(o&t.childLanes)!==0,wt||Z){if(Z=Xe,Z!==null&&(m=Zf(Z,o),m!==0&&m!==q.retryLane))throw q.retryLane=m,b0(t,m),ta(Z,t,m),jc;o2(T)||Li(),r=Cc(t,r,o)}else o2(T)?(r.flags|=192,r.child=t.child,r=null):(t=q.treeContext,et=ja(T.nextSibling),kt=r,Le=!0,kn=null,wa=!1,t!==null&&E3(r,t),r=Zc(r,m.children),r.flags|=4096);return r}return v?(Bn(),T=m.fallback,v=r.mode,q=t.child,ee=q.sibling,m=hn(q,{mode:"hidden",children:m.children}),m.subtreeFlags=q.subtreeFlags&65011712,ee!==null?T=hn(ee,T):(T=y0(T,v,o,null),T.flags|=2),T.return=r,m.return=r,m.sibling=T,r.child=m,Hs(null,m),m=r.child,T=t.child.memoizedState,T===null?T=Mc(o):(v=T.cachePool,v!==null?(q=bt._currentValue,v=v.parent!==q?{parent:q,pool:q}:v):v=H3(),T={baseLanes:T.baseLanes|o,cachePool:v}),m.memoizedState=T,m.childLanes=Sc(t,Z,o),r.memoizedState=Nc,Hs(t.child,m)):($n(r),o=t.child,t=o.sibling,o=hn(o,{mode:"visible",children:m.children}),o.return=r,o.sibling=null,t!==null&&(Z=r.deletions,Z===null?(r.deletions=[t],r.flags|=16):Z.push(t)),r.child=o,r.memoizedState=null,o)}function Zc(t,r){return r=Ni({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Ni(t,r){return t=la(22,t,null,r),t.lanes=0,t}function Cc(t,r,o){return S0(r,t.child,null,o),t=Zc(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Bp(t,r,o){t.lanes|=r;var m=t.alternate;m!==null&&(m.lanes|=r),Io(t.return,r,o)}function Hc(t,r,o,m,v,y){var Z=t.memoizedState;Z===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:m,tail:o,tailMode:v,treeForkCount:y}:(Z.isBackwards=r,Z.rendering=null,Z.renderingStartTime=0,Z.last=m,Z.tail=o,Z.tailMode=v,Z.treeForkCount=y)}function Ip(t,r,o){var m=r.pendingProps,v=m.revealOrder,y=m.tail;m=m.children;var Z=gt.current,T=(Z&2)!==0;if(T?(Z=Z&1|2,r.flags|=128):Z&=1,ne(gt,Z),Ot(t,r,m,o),m=Le?xs:0,!T&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Bp(t,o,r);else if(t.tag===19)Bp(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(v){case"forwards":for(o=r.child,v=null;o!==null;)t=o.alternate,t!==null&&mi(t)===null&&(v=o),o=o.sibling;o=v,o===null?(v=r.child,r.child=null):(v=o.sibling,o.sibling=null),Hc(r,!1,v,o,y,m);break;case"backwards":case"unstable_legacy-backwards":for(o=null,v=r.child,r.child=null;v!==null;){if(t=v.alternate,t!==null&&mi(t)===null){r.child=v;break}t=v.sibling,v.sibling=o,o=v,v=t}Hc(r,!0,o,null,y,m);break;case"together":Hc(r,!1,null,null,void 0,m);break;default:r.memoizedState=null}return r.child}function vn(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),Pn|=r.lanes,(o&r.childLanes)===0)if(t!==null){if(cr(t,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=hn(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=hn(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function Vc(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&si(t)))}function WZ(t,r,o){switch(r.tag){case 3:fe(r,r.stateNode.containerInfo),On(r,bt,t.memoizedState.cache),w0();break;case 27:case 5:ke(r);break;case 4:fe(r,r.stateNode.containerInfo);break;case 10:On(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,ac(r),null;break;case 13:var m=r.memoizedState;if(m!==null)return m.dehydrated!==null?($n(r),r.flags|=128,null):(o&r.child.childLanes)!==0?$p(t,r,o):($n(r),t=vn(t,r,o),t!==null?t.sibling:null);$n(r);break;case 19:var v=(t.flags&128)!==0;if(m=(o&r.childLanes)!==0,m||(cr(t,r,o,!1),m=(o&r.childLanes)!==0),v){if(m)return Ip(t,r,o);r.flags|=128}if(v=r.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ne(gt,gt.current),m)break;return null;case 22:return r.lanes=0,kp(t,r,o,r.pendingProps);case 24:On(r,bt,t.memoizedState.cache)}return vn(t,r,o)}function Up(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps)wt=!0;else{if(!Vc(t,o)&&(r.flags&128)===0)return wt=!1,WZ(t,r,o);wt=(t.flags&131072)!==0}else wt=!1,Le&&(r.flags&1048576)!==0&&j3(r,xs,r.index);switch(r.lanes=0,r.tag){case 16:e:{var m=r.pendingProps;if(t=N0(r.elementType),r.type=t,typeof t=="function")ko(t)?(m=C0(t,m),r.tag=1,r=zp(null,r,t,m,o)):(r.tag=0,r=Ec(null,r,t,m,o));else{if(t!=null){var v=t.$$typeof;if(v===C){r.tag=11,r=Tp(null,r,t,m,o);break e}else if(v===H){r.tag=14,r=Lp(null,r,t,m,o);break e}}throw r=B(t)||t,Error(i(306,r,""))}}return r;case 0:return Ec(t,r,r.type,r.pendingProps,o);case 1:return m=r.type,v=C0(m,r.pendingProps),zp(t,r,m,v,o);case 3:e:{if(fe(r,r.stateNode.containerInfo),t===null)throw Error(i(387));m=r.pendingProps;var y=r.memoizedState;v=y.element,Qo(t,r),Ns(r,m,null,o);var Z=r.memoizedState;if(m=Z.cache,On(r,bt,m),m!==y.cache&&Uo(r,[bt],o,!0),Es(),m=Z.element,y.isDehydrated)if(y={element:m,isDehydrated:!1,cache:Z.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=qp(t,r,m,o);break e}else if(m!==v){v=va(Error(i(424)),r),vs(v),r=qp(t,r,m,o);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(et=ja(t.firstChild),kt=r,Le=!0,kn=null,wa=!0,o=k3(r,null,m,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(w0(),m===v){r=vn(t,r,o);break e}Ot(t,r,m,o)}r=r.child}return r;case 26:return Ei(t,r),t===null?(o=ag(r.type,null,r.pendingProps,null))?r.memoizedState=o:Le||(o=r.type,t=r.pendingProps,m=qi(P.current).createElement(o),m[Rt]=r,m[Kt]=t,Ft(m,o,t),Ht(m),r.stateNode=m):r.memoizedState=ag(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return ke(r),t===null&&Le&&(m=r.stateNode=W5(r.type,r.pendingProps,P.current),kt=r,wa=!0,v=et,Qn(r.type)?(u2=v,et=ja(m.firstChild)):et=v),Ot(t,r,r.pendingProps.children,o),Ei(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Le&&((v=m=et)&&(m=CC(m,r.type,r.pendingProps,wa),m!==null?(r.stateNode=m,kt=r,et=ja(m.firstChild),wa=!1,v=!0):v=!1),v||Dn(r)),ke(r),v=r.type,y=r.pendingProps,Z=t!==null?t.memoizedProps:null,m=y.children,s2(v,y)?m=null:Z!==null&&s2(v,Z)&&(r.flags|=32),r.memoizedState!==null&&(v=rc(t,r,IZ,null,null,o),Us._currentValue=v),Ei(t,r),Ot(t,r,m,o),r.child;case 6:return t===null&&Le&&((t=o=et)&&(o=HC(o,r.pendingProps,wa),o!==null?(r.stateNode=o,kt=r,et=null,t=!0):t=!1),t||Dn(r)),null;case 13:return $p(t,r,o);case 4:return fe(r,r.stateNode.containerInfo),m=r.pendingProps,t===null?r.child=S0(r,null,m,o):Ot(t,r,m,o),r.child;case 11:return Tp(t,r,r.type,r.pendingProps,o);case 7:return Ot(t,r,r.pendingProps,o),r.child;case 8:return Ot(t,r,r.pendingProps.children,o),r.child;case 12:return Ot(t,r,r.pendingProps.children,o),r.child;case 10:return m=r.pendingProps,On(r,r.type,m.value),Ot(t,r,m.children,o),r.child;case 9:return v=r.type._context,m=r.pendingProps.children,j0(r),v=Dt(v),m=m(v),r.flags|=1,Ot(t,r,m,o),r.child;case 14:return Lp(t,r,r.type,r.pendingProps,o);case 15:return Rp(t,r,r.type,r.pendingProps,o);case 19:return Ip(t,r,o);case 31:return JZ(t,r,o);case 22:return kp(t,r,o,r.pendingProps);case 24:return j0(r),m=Dt(bt),t===null?(v=Yo(),v===null&&(v=Xe,y=Po(),v.pooledCache=y,y.refCount++,y!==null&&(v.pooledCacheLanes|=o),v=y),r.memoizedState={parent:m,cache:v},Xo(r),On(r,bt,v)):((t.lanes&o)!==0&&(Qo(t,r),Ns(r,null,null,o),Es()),v=t.memoizedState,y=r.memoizedState,v.parent!==m?(v={parent:m,cache:m},r.memoizedState=v,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=v),On(r,bt,m)):(m=y.cache,On(r,bt,m),m!==v.cache&&Uo(r,[bt],o,!0))),Ot(t,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function bn(t){t.flags|=4}function _c(t,r,o,m,v){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(v&335544128)===v)if(t.stateNode.complete)t.flags|=8192;else if(v5())t.flags|=8192;else throw M0=ci,Ko}else t.flags&=-16777217}function Pp(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ig(r))if(v5())t.flags|=8192;else throw M0=ci,Ko}function Mi(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Nf():536870912,t.lanes|=r,wr|=r)}function Vs(t,r){if(!Le)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var m=null;o!==null;)o.alternate!==null&&(m=o),o=o.sibling;m===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:m.sibling=null}}function tt(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,m=0;if(r)for(var v=t.child;v!==null;)o|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=t,v=v.sibling;else for(v=t.child;v!==null;)o|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=t,v=v.sibling;return t.subtreeFlags|=m,t.childLanes=o,r}function eC(t,r,o){var m=r.pendingProps;switch(zo(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(r),null;case 1:return tt(r),null;case 3:return o=r.stateNode,m=null,t!==null&&(m=t.memoizedState.cache),r.memoizedState.cache!==m&&(r.flags|=2048),pn(bt),ve(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(or(r)?bn(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,$o())),tt(r),null;case 26:var v=r.type,y=r.memoizedState;return t===null?(bn(r),y!==null?(tt(r),Pp(r,y)):(tt(r),_c(r,v,null,m,o))):y?y!==t.memoizedState?(bn(r),tt(r),Pp(r,y)):(tt(r),r.flags&=-16777217):(t=t.memoizedProps,t!==m&&bn(r),tt(r),_c(r,v,t,m,o)),null;case 27:if(Pe(r),o=P.current,v=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==m&&bn(r);else{if(!m){if(r.stateNode===null)throw Error(i(166));return tt(r),null}t=z.current,or(r)?N3(r):(t=W5(v,m,o),r.stateNode=t,bn(r))}return tt(r),null;case 5:if(Pe(r),v=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==m&&bn(r);else{if(!m){if(r.stateNode===null)throw Error(i(166));return tt(r),null}if(y=z.current,or(r))N3(r);else{var Z=qi(P.current);switch(y){case 1:y=Z.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:y=Z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":y=Z.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":y=Z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":y=Z.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof m.is=="string"?Z.createElement("select",{is:m.is}):Z.createElement("select"),m.multiple?y.multiple=!0:m.size&&(y.size=m.size);break;default:y=typeof m.is=="string"?Z.createElement(v,{is:m.is}):Z.createElement(v)}}y[Rt]=r,y[Kt]=m;e:for(Z=r.child;Z!==null;){if(Z.tag===5||Z.tag===6)y.appendChild(Z.stateNode);else if(Z.tag!==4&&Z.tag!==27&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===r)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===r)break e;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}r.stateNode=y;e:switch(Ft(y,v,m),v){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&bn(r)}}return tt(r),_c(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,o),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==m&&bn(r);else{if(typeof m!="string"&&r.stateNode===null)throw Error(i(166));if(t=P.current,or(r)){if(t=r.stateNode,o=r.memoizedProps,m=null,v=kt,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}t[Rt]=r,t=!!(t.nodeValue===o||m!==null&&m.suppressHydrationWarning===!0||$5(t.nodeValue,o)),t||Dn(r,!0)}else t=qi(t).createTextNode(m),t[Rt]=r,r.stateNode=t}return tt(r),null;case 31:if(o=r.memoizedState,t===null||t.memoizedState!==null){if(m=or(r),o!==null){if(t===null){if(!m)throw Error(i(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[Rt]=r}else w0(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;tt(r),t=!1}else o=$o(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=!0;if(!t)return r.flags&256?(oa(r),r):(oa(r),null);if((r.flags&128)!==0)throw Error(i(558))}return tt(r),null;case 13:if(m=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(v=or(r),m!==null&&m.dehydrated!==null){if(t===null){if(!v)throw Error(i(318));if(v=r.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(i(317));v[Rt]=r}else w0(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;tt(r),v=!1}else v=$o(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=v),v=!0;if(!v)return r.flags&256?(oa(r),r):(oa(r),null)}return oa(r),(r.flags&128)!==0?(r.lanes=o,r):(o=m!==null,t=t!==null&&t.memoizedState!==null,o&&(m=r.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool),y=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(y=m.memoizedState.cachePool.pool),y!==v&&(m.flags|=2048)),o!==t&&o&&(r.child.flags|=8192),Mi(r,r.updateQueue),tt(r),null);case 4:return ve(),t===null&&e2(r.stateNode.containerInfo),tt(r),null;case 10:return pn(r.type),tt(r),null;case 19:if(J(gt),m=r.memoizedState,m===null)return tt(r),null;if(v=(r.flags&128)!==0,y=m.rendering,y===null)if(v)Vs(m,!1);else{if(dt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=mi(t),y!==null){for(r.flags|=128,Vs(m,!1),t=y.updateQueue,r.updateQueue=t,Mi(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)y3(o,t),o=o.sibling;return ne(gt,gt.current&1|2),Le&&mn(r,m.treeForkCount),r.child}t=t.sibling}m.tail!==null&&at()>Vi&&(r.flags|=128,v=!0,Vs(m,!1),r.lanes=4194304)}else{if(!v)if(t=mi(y),t!==null){if(r.flags|=128,v=!0,t=t.updateQueue,r.updateQueue=t,Mi(r,t),Vs(m,!0),m.tail===null&&m.tailMode==="hidden"&&!y.alternate&&!Le)return tt(r),null}else 2*at()-m.renderingStartTime>Vi&&o!==536870912&&(r.flags|=128,v=!0,Vs(m,!1),r.lanes=4194304);m.isBackwards?(y.sibling=r.child,r.child=y):(t=m.last,t!==null?t.sibling=y:r.child=y,m.last=y)}return m.tail!==null?(t=m.tail,m.rendering=t,m.tail=t.sibling,m.renderingStartTime=at(),t.sibling=null,o=gt.current,ne(gt,v?o&1|2:o&1),Le&&mn(r,m.treeForkCount),t):(tt(r),null);case 22:case 23:return oa(r),tc(),m=r.memoizedState!==null,t!==null?t.memoizedState!==null!==m&&(r.flags|=8192):m&&(r.flags|=8192),m?(o&536870912)!==0&&(r.flags&128)===0&&(tt(r),r.subtreeFlags&6&&(r.flags|=8192)):tt(r),o=r.updateQueue,o!==null&&Mi(r,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),m=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),m!==o&&(r.flags|=2048),t!==null&&J(E0),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),pn(bt),tt(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function tC(t,r){switch(zo(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return pn(bt),ve(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Pe(r),null;case 31:if(r.memoizedState!==null){if(oa(r),r.alternate===null)throw Error(i(340));w0()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(oa(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));w0()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return J(gt),null;case 4:return ve(),null;case 10:return pn(r.type),null;case 22:case 23:return oa(r),tc(),t!==null&&J(E0),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return pn(bt),null;case 25:return null;default:return null}}function Gp(t,r){switch(zo(r),r.tag){case 3:pn(bt),ve();break;case 26:case 27:case 5:Pe(r);break;case 4:ve();break;case 31:r.memoizedState!==null&&oa(r);break;case 13:oa(r);break;case 19:J(gt);break;case 10:pn(r.type);break;case 22:case 23:oa(r),tc(),t!==null&&J(E0);break;case 24:pn(bt)}}function _s(t,r){try{var o=r.updateQueue,m=o!==null?o.lastEffect:null;if(m!==null){var v=m.next;o=v;do{if((o.tag&t)===t){m=void 0;var y=o.create,Z=o.inst;m=y(),Z.destroy=m}o=o.next}while(o!==v)}}catch(T){Ue(r,r.return,T)}}function In(t,r,o){try{var m=r.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var y=v.next;m=y;do{if((m.tag&t)===t){var Z=m.inst,T=Z.destroy;if(T!==void 0){Z.destroy=void 0,v=r;var q=o,ee=T;try{ee()}catch(le){Ue(v,q,le)}}}m=m.next}while(m!==y)}}catch(le){Ue(r,r.return,le)}}function Yp(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;try{O3(r,o)}catch(m){Ue(t,t.return,m)}}}function Kp(t,r,o){o.props=C0(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(m){Ue(t,r,m)}}function Ts(t,r){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var m=t.stateNode;break;case 30:m=t.stateNode;break;default:m=t.stateNode}typeof o=="function"?t.refCleanup=o(m):o.current=m}}catch(v){Ue(t,r,v)}}function Ya(t,r){var o=t.ref,m=t.refCleanup;if(o!==null)if(typeof m=="function")try{m()}catch(v){Ue(t,r,v)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(v){Ue(t,r,v)}else o.current=null}function Xp(t){var r=t.type,o=t.memoizedProps,m=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&m.focus();break e;case"img":o.src?m.src=o.src:o.srcSet&&(m.srcset=o.srcSet)}}catch(v){Ue(t,t.return,v)}}function Tc(t,r,o){try{var m=t.stateNode;jC(m,t.type,o,r),m[Kt]=r}catch(v){Ue(t,t.return,v)}}function Qp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Qn(t.type)||t.tag===4}function Lc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Qp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Qn(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Rc(t,r,o){var m=t.tag;if(m===5||m===6)t=t.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(t),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=un));else if(m!==4&&(m===27&&Qn(t.type)&&(o=t.stateNode,r=null),t=t.child,t!==null))for(Rc(t,r,o),t=t.sibling;t!==null;)Rc(t,r,o),t=t.sibling}function Si(t,r,o){var m=t.tag;if(m===5||m===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(m!==4&&(m===27&&Qn(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(Si(t,r,o),t=t.sibling;t!==null;)Si(t,r,o),t=t.sibling}function Jp(t){var r=t.stateNode,o=t.memoizedProps;try{for(var m=t.type,v=r.attributes;v.length;)r.removeAttributeNode(v[0]);Ft(r,m,o),r[Rt]=t,r[Kt]=o}catch(y){Ue(t,t.return,y)}}var yn=!1,At=!1,kc=!1,Wp=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function aC(t,r){if(t=t.containerInfo,n2=Yi,t=d3(t),Co(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var m=o.getSelection&&o.getSelection();if(m&&m.rangeCount!==0){o=m.anchorNode;var v=m.anchorOffset,y=m.focusNode;m=m.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var Z=0,T=-1,q=-1,ee=0,le=0,ue=t,te=null;t:for(;;){for(var ae;ue!==o||v!==0&&ue.nodeType!==3||(T=Z+v),ue!==y||m!==0&&ue.nodeType!==3||(q=Z+m),ue.nodeType===3&&(Z+=ue.nodeValue.length),(ae=ue.firstChild)!==null;)te=ue,ue=ae;for(;;){if(ue===t)break t;if(te===o&&++ee===v&&(T=Z),te===y&&++le===m&&(q=Z),(ae=ue.nextSibling)!==null)break;ue=te,te=ue.parentNode}ue=ae}o=T===-1||q===-1?null:{start:T,end:q}}else o=null}o=o||{start:0,end:0}}else o=null;for(r2={focusedElem:t,selectionRange:o},Yi=!1,Vt=r;Vt!==null;)if(r=Vt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Vt=t;else for(;Vt!==null;){switch(r=Vt,y=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(o=0;o<t.length;o++)v=t[o],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&y!==null){t=void 0,o=r,v=y.memoizedProps,y=y.memoizedState,m=o.stateNode;try{var pe=C0(o.type,v);t=m.getSnapshotBeforeUpdate(pe,y),m.__reactInternalSnapshotBeforeUpdate=t}catch(ye){Ue(o,o.return,ye)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,o=t.nodeType,o===9)i2(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":i2(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=r.sibling,t!==null){t.return=r.return,Vt=t;break}Vt=r.return}}function e5(t,r,o){var m=o.flags;switch(o.tag){case 0:case 11:case 15:An(t,o),m&4&&_s(5,o);break;case 1:if(An(t,o),m&4)if(t=o.stateNode,r===null)try{t.componentDidMount()}catch(Z){Ue(o,o.return,Z)}else{var v=C0(o.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(v,r,t.__reactInternalSnapshotBeforeUpdate)}catch(Z){Ue(o,o.return,Z)}}m&64&&Yp(o),m&512&&Ts(o,o.return);break;case 3:if(An(t,o),m&64&&(t=o.updateQueue,t!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{O3(t,r)}catch(Z){Ue(o,o.return,Z)}}break;case 27:r===null&&m&4&&Jp(o);case 26:case 5:An(t,o),r===null&&m&4&&Xp(o),m&512&&Ts(o,o.return);break;case 12:An(t,o);break;case 31:An(t,o),m&4&&n5(t,o);break;case 13:An(t,o),m&4&&r5(t,o),m&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=dC.bind(null,o),VC(t,o))));break;case 22:if(m=o.memoizedState!==null||yn,!m){r=r!==null&&r.memoizedState!==null||At,v=yn;var y=At;yn=m,(At=r)&&!y?jn(t,o,(o.subtreeFlags&8772)!==0):An(t,o),yn=v,At=y}break;case 30:break;default:An(t,o)}}function t5(t){var r=t.alternate;r!==null&&(t.alternate=null,t5(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&ho(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var nt=null,Qt=!1;function wn(t,r,o){for(o=o.child;o!==null;)a5(t,r,o),o=o.sibling}function a5(t,r,o){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Yt,o)}catch{}switch(o.tag){case 26:At||Ya(o,r),wn(t,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:At||Ya(o,r);var m=nt,v=Qt;Qn(o.type)&&(nt=o.stateNode,Qt=!1),wn(t,r,o),$s(o.stateNode),nt=m,Qt=v;break;case 5:At||Ya(o,r);case 6:if(m=nt,v=Qt,nt=null,wn(t,r,o),nt=m,Qt=v,nt!==null)if(Qt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(o.stateNode)}catch(y){Ue(o,r,y)}else try{nt.removeChild(o.stateNode)}catch(y){Ue(o,r,y)}break;case 18:nt!==null&&(Qt?(t=nt,Y5(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),Cr(t)):Y5(nt,o.stateNode));break;case 4:m=nt,v=Qt,nt=o.stateNode.containerInfo,Qt=!0,wn(t,r,o),nt=m,Qt=v;break;case 0:case 11:case 14:case 15:In(2,o,r),At||In(4,o,r),wn(t,r,o);break;case 1:At||(Ya(o,r),m=o.stateNode,typeof m.componentWillUnmount=="function"&&Kp(o,r,m)),wn(t,r,o);break;case 21:wn(t,r,o);break;case 22:At=(m=At)||o.memoizedState!==null,wn(t,r,o),At=m;break;default:wn(t,r,o)}}function n5(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Cr(t)}catch(o){Ue(r,r.return,o)}}}function r5(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Cr(t)}catch(o){Ue(r,r.return,o)}}function nC(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new Wp),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new Wp),r;default:throw Error(i(435,t.tag))}}function Zi(t,r){var o=nC(t);r.forEach(function(m){if(!o.has(m)){o.add(m);var v=hC.bind(null,t,m);m.then(v,v)}})}function Jt(t,r){var o=r.deletions;if(o!==null)for(var m=0;m<o.length;m++){var v=o[m],y=t,Z=r,T=Z;e:for(;T!==null;){switch(T.tag){case 27:if(Qn(T.type)){nt=T.stateNode,Qt=!1;break e}break;case 5:nt=T.stateNode,Qt=!1;break e;case 3:case 4:nt=T.stateNode.containerInfo,Qt=!0;break e}T=T.return}if(nt===null)throw Error(i(160));a5(y,Z,v),nt=null,Qt=!1,y=v.alternate,y!==null&&(y.return=null),v.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)s5(r,t),r=r.sibling}var La=null;function s5(t,r){var o=t.alternate,m=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Jt(r,t),Wt(t),m&4&&(In(3,t,t.return),_s(3,t),In(5,t,t.return));break;case 1:Jt(r,t),Wt(t),m&512&&(At||o===null||Ya(o,o.return)),m&64&&yn&&(t=t.updateQueue,t!==null&&(m=t.callbacks,m!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?m:o.concat(m))));break;case 26:var v=La;if(Jt(r,t),Wt(t),m&512&&(At||o===null||Ya(o,o.return)),m&4){var y=o!==null?o.memoizedState:null;if(m=t.memoizedState,o===null)if(m===null)if(t.stateNode===null){e:{m=t.type,o=t.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":y=v.getElementsByTagName("title")[0],(!y||y[ls]||y[Rt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=v.createElement(m),v.head.insertBefore(y,v.querySelector("head > title"))),Ft(y,m,o),y[Rt]=t,Ht(y),m=y;break e;case"link":var Z=sg("link","href",v).get(m+(o.href||""));if(Z){for(var T=0;T<Z.length;T++)if(y=Z[T],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){Z.splice(T,1);break t}}y=v.createElement(m),Ft(y,m,o),v.head.appendChild(y);break;case"meta":if(Z=sg("meta","content",v).get(m+(o.content||""))){for(T=0;T<Z.length;T++)if(y=Z[T],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){Z.splice(T,1);break t}}y=v.createElement(m),Ft(y,m,o),v.head.appendChild(y);break;default:throw Error(i(468,m))}y[Rt]=t,Ht(y),m=y}t.stateNode=m}else lg(v,t.type,t.stateNode);else t.stateNode=rg(v,m,t.memoizedProps);else y!==m?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,m===null?lg(v,t.type,t.stateNode):rg(v,m,t.memoizedProps)):m===null&&t.stateNode!==null&&Tc(t,t.memoizedProps,o.memoizedProps)}break;case 27:Jt(r,t),Wt(t),m&512&&(At||o===null||Ya(o,o.return)),o!==null&&m&4&&Tc(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Jt(r,t),Wt(t),m&512&&(At||o===null||Ya(o,o.return)),t.flags&32){v=t.stateNode;try{J0(v,"")}catch(pe){Ue(t,t.return,pe)}}m&4&&t.stateNode!=null&&(v=t.memoizedProps,Tc(t,v,o!==null?o.memoizedProps:v)),m&1024&&(kc=!0);break;case 6:if(Jt(r,t),Wt(t),m&4){if(t.stateNode===null)throw Error(i(162));m=t.memoizedProps,o=t.stateNode;try{o.nodeValue=m}catch(pe){Ue(t,t.return,pe)}}break;case 3:if(Ii=null,v=La,La=$i(r.containerInfo),Jt(r,t),La=v,Wt(t),m&4&&o!==null&&o.memoizedState.isDehydrated)try{Cr(r.containerInfo)}catch(pe){Ue(t,t.return,pe)}kc&&(kc=!1,l5(t));break;case 4:m=La,La=$i(t.stateNode.containerInfo),Jt(r,t),Wt(t),La=m;break;case 12:Jt(r,t),Wt(t);break;case 31:Jt(r,t),Wt(t),m&4&&(m=t.updateQueue,m!==null&&(t.updateQueue=null,Zi(t,m)));break;case 13:Jt(r,t),Wt(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Hi=at()),m&4&&(m=t.updateQueue,m!==null&&(t.updateQueue=null,Zi(t,m)));break;case 22:v=t.memoizedState!==null;var q=o!==null&&o.memoizedState!==null,ee=yn,le=At;if(yn=ee||v,At=le||q,Jt(r,t),At=le,yn=ee,Wt(t),m&8192)e:for(r=t.stateNode,r._visibility=v?r._visibility&-2:r._visibility|1,v&&(o===null||q||yn||At||H0(t)),o=null,r=t;;){if(r.tag===5||r.tag===26){if(o===null){q=o=r;try{if(y=q.stateNode,v)Z=y.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{T=q.stateNode;var ue=q.memoizedProps.style,te=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;T.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(pe){Ue(q,q.return,pe)}}}else if(r.tag===6){if(o===null){q=r;try{q.stateNode.nodeValue=v?"":q.memoizedProps}catch(pe){Ue(q,q.return,pe)}}}else if(r.tag===18){if(o===null){q=r;try{var ae=q.stateNode;v?K5(ae,!0):K5(q.stateNode,!1)}catch(pe){Ue(q,q.return,pe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}m&4&&(m=t.updateQueue,m!==null&&(o=m.retryQueue,o!==null&&(m.retryQueue=null,Zi(t,o))));break;case 19:Jt(r,t),Wt(t),m&4&&(m=t.updateQueue,m!==null&&(t.updateQueue=null,Zi(t,m)));break;case 30:break;case 21:break;default:Jt(r,t),Wt(t)}}function Wt(t){var r=t.flags;if(r&2){try{for(var o,m=t.return;m!==null;){if(Qp(m)){o=m;break}m=m.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var v=o.stateNode,y=Lc(t);Si(t,y,v);break;case 5:var Z=o.stateNode;o.flags&32&&(J0(Z,""),o.flags&=-33);var T=Lc(t);Si(t,T,Z);break;case 3:case 4:var q=o.stateNode.containerInfo,ee=Lc(t);Rc(t,ee,q);break;default:throw Error(i(161))}}catch(le){Ue(t,t.return,le)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function l5(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;l5(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function An(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)e5(t,r.alternate,r),r=r.sibling}function H0(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:In(4,r,r.return),H0(r);break;case 1:Ya(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&Kp(r,r.return,o),H0(r);break;case 27:$s(r.stateNode);case 26:case 5:Ya(r,r.return),H0(r);break;case 22:r.memoizedState===null&&H0(r);break;case 30:H0(r);break;default:H0(r)}t=t.sibling}}function jn(t,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var m=r.alternate,v=t,y=r,Z=y.flags;switch(y.tag){case 0:case 11:case 15:jn(v,y,o),_s(4,y);break;case 1:if(jn(v,y,o),m=y,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(ee){Ue(m,m.return,ee)}if(m=y,v=m.updateQueue,v!==null){var T=m.stateNode;try{var q=v.shared.hiddenCallbacks;if(q!==null)for(v.shared.hiddenCallbacks=null,v=0;v<q.length;v++)D3(q[v],T)}catch(ee){Ue(m,m.return,ee)}}o&&Z&64&&Yp(y),Ts(y,y.return);break;case 27:Jp(y);case 26:case 5:jn(v,y,o),o&&m===null&&Z&4&&Xp(y),Ts(y,y.return);break;case 12:jn(v,y,o);break;case 31:jn(v,y,o),o&&Z&4&&n5(v,y);break;case 13:jn(v,y,o),o&&Z&4&&r5(v,y);break;case 22:y.memoizedState===null&&jn(v,y,o),Ts(y,y.return);break;case 30:break;default:jn(v,y,o)}r=r.sibling}}function Dc(t,r){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&bs(o))}function Oc(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&bs(t))}function Ra(t,r,o,m){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)i5(t,r,o,m),r=r.sibling}function i5(t,r,o,m){var v=r.flags;switch(r.tag){case 0:case 11:case 15:Ra(t,r,o,m),v&2048&&_s(9,r);break;case 1:Ra(t,r,o,m);break;case 3:Ra(t,r,o,m),v&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&bs(t)));break;case 12:if(v&2048){Ra(t,r,o,m),t=r.stateNode;try{var y=r.memoizedProps,Z=y.id,T=y.onPostCommit;typeof T=="function"&&T(Z,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(q){Ue(r,r.return,q)}}else Ra(t,r,o,m);break;case 31:Ra(t,r,o,m);break;case 13:Ra(t,r,o,m);break;case 23:break;case 22:y=r.stateNode,Z=r.alternate,r.memoizedState!==null?y._visibility&2?Ra(t,r,o,m):Ls(t,r):y._visibility&2?Ra(t,r,o,m):(y._visibility|=2,vr(t,r,o,m,(r.subtreeFlags&10256)!==0||!1)),v&2048&&Dc(Z,r);break;case 24:Ra(t,r,o,m),v&2048&&Oc(r.alternate,r);break;default:Ra(t,r,o,m)}}function vr(t,r,o,m,v){for(v=v&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var y=t,Z=r,T=o,q=m,ee=Z.flags;switch(Z.tag){case 0:case 11:case 15:vr(y,Z,T,q,v),_s(8,Z);break;case 23:break;case 22:var le=Z.stateNode;Z.memoizedState!==null?le._visibility&2?vr(y,Z,T,q,v):Ls(y,Z):(le._visibility|=2,vr(y,Z,T,q,v)),v&&ee&2048&&Dc(Z.alternate,Z);break;case 24:vr(y,Z,T,q,v),v&&ee&2048&&Oc(Z.alternate,Z);break;default:vr(y,Z,T,q,v)}r=r.sibling}}function Ls(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=t,m=r,v=m.flags;switch(m.tag){case 22:Ls(o,m),v&2048&&Dc(m.alternate,m);break;case 24:Ls(o,m),v&2048&&Oc(m.alternate,m);break;default:Ls(o,m)}r=r.sibling}}var Rs=8192;function br(t,r,o){if(t.subtreeFlags&Rs)for(t=t.child;t!==null;)o5(t,r,o),t=t.sibling}function o5(t,r,o){switch(t.tag){case 26:br(t,r,o),t.flags&Rs&&t.memoizedState!==null&&BC(o,La,t.memoizedState,t.memoizedProps);break;case 5:br(t,r,o);break;case 3:case 4:var m=La;La=$i(t.stateNode.containerInfo),br(t,r,o),La=m;break;case 22:t.memoizedState===null&&(m=t.alternate,m!==null&&m.memoizedState!==null?(m=Rs,Rs=16777216,br(t,r,o),Rs=m):br(t,r,o));break;default:br(t,r,o)}}function c5(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function ks(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var m=r[o];Vt=m,d5(m,t)}c5(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)u5(t),t=t.sibling}function u5(t){switch(t.tag){case 0:case 11:case 15:ks(t),t.flags&2048&&In(9,t,t.return);break;case 3:ks(t);break;case 12:ks(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Ci(t)):ks(t);break;default:ks(t)}}function Ci(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var m=r[o];Vt=m,d5(m,t)}c5(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:In(8,r,r.return),Ci(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,Ci(r));break;default:Ci(r)}t=t.sibling}}function d5(t,r){for(;Vt!==null;){var o=Vt;switch(o.tag){case 0:case 11:case 15:In(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var m=o.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:bs(o.memoizedState.cache)}if(m=o.child,m!==null)m.return=o,Vt=m;else e:for(o=t;Vt!==null;){m=Vt;var v=m.sibling,y=m.return;if(t5(m),m===o){Vt=null;break e}if(v!==null){v.return=y,Vt=v;break e}Vt=y}}}var rC={getCacheForType:function(t){var r=Dt(bt),o=r.data.get(t);return o===void 0&&(o=t(),r.data.set(t,o)),o},cacheSignal:function(){return Dt(bt).controller.signal}},sC=typeof WeakMap=="function"?WeakMap:Map,Fe=0,Xe=null,Ze=null,Ve=0,Ie=0,ca=null,Un=!1,yr=!1,Fc=!1,En=0,dt=0,Pn=0,V0=0,zc=0,ua=0,wr=0,Ds=null,ea=null,qc=!1,Hi=0,h5=0,Vi=1/0,_i=null,Gn=null,St=0,Yn=null,Ar=null,Nn=0,$c=0,Bc=null,m5=null,Os=0,Ic=null;function da(){return(Fe&2)!==0&&Ve!==0?Ve&-Ve:k.T!==null?Xc():Cf()}function f5(){if(ua===0)if((Ve&536870912)===0||Le){var t=zl;zl<<=1,(zl&3932160)===0&&(zl=262144),ua=t}else ua=536870912;return t=ia.current,t!==null&&(t.flags|=32),ua}function ta(t,r,o){(t===Xe&&(Ie===2||Ie===9)||t.cancelPendingCommit!==null)&&(jr(t,0),Kn(t,Ve,ua,!1)),ss(t,o),((Fe&2)===0||t!==Xe)&&(t===Xe&&((Fe&2)===0&&(V0|=o),dt===4&&Kn(t,Ve,ua,!1)),Ka(t))}function p5(t,r,o){if((Fe&6)!==0)throw Error(i(327));var m=!o&&(r&127)===0&&(r&t.expiredLanes)===0||rs(t,r),v=m?oC(t,r):Pc(t,r,!0),y=m;do{if(v===0){yr&&!m&&Kn(t,r,0,!1);break}else{if(o=t.current.alternate,y&&!lC(o)){v=Pc(t,r,!1),y=!1;continue}if(v===2){if(y=r,t.errorRecoveryDisabledLanes&y)var Z=0;else Z=t.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){r=Z;e:{var T=t;v=Ds;var q=T.current.memoizedState.isDehydrated;if(q&&(jr(T,Z).flags|=256),Z=Pc(T,Z,!1),Z!==2){if(Fc&&!q){T.errorRecoveryDisabledLanes|=y,V0|=y,v=4;break e}y=ea,ea=v,y!==null&&(ea===null?ea=y:ea.push.apply(ea,y))}v=Z}if(y=!1,v!==2)continue}}if(v===1){jr(t,0),Kn(t,r,0,!0);break}e:{switch(m=t,y=v,y){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:Kn(m,r,ua,!Un);break e;case 2:ea=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(v=Hi+300-at(),10<v)){if(Kn(m,r,ua,!Un),$l(m,0,!0)!==0)break e;Nn=r,m.timeoutHandle=P5(g5.bind(null,m,o,ea,_i,qc,r,ua,V0,wr,Un,y,"Throttled",-0,0),v);break e}g5(m,o,ea,_i,qc,r,ua,V0,wr,Un,y,null,-0,0)}}break}while(!0);Ka(t)}function g5(t,r,o,m,v,y,Z,T,q,ee,le,ue,te,ae){if(t.timeoutHandle=-1,ue=r.subtreeFlags,ue&8192||(ue&16785408)===16785408){ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:un},o5(r,y,ue);var pe=(y&62914560)===y?Hi-at():(y&4194048)===y?h5-at():0;if(pe=IC(ue,pe),pe!==null){Nn=y,t.cancelPendingCommit=pe(E5.bind(null,t,r,y,o,m,v,Z,T,q,le,ue,null,te,ae)),Kn(t,y,Z,!ee);return}}E5(t,r,y,o,m,v,Z,T,q)}function lC(t){for(var r=t;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var m=0;m<o.length;m++){var v=o[m],y=v.getSnapshot;v=v.value;try{if(!sa(y(),v))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Kn(t,r,o,m){r&=~zc,r&=~V0,t.suspendedLanes|=r,t.pingedLanes&=~r,m&&(t.warmLanes|=r),m=t.expirationTimes;for(var v=r;0<v;){var y=31-ra(v),Z=1<<y;m[y]=-1,v&=~Z}o!==0&&Mf(t,o,r)}function Ti(){return(Fe&6)===0?(Fs(0),!1):!0}function Uc(){if(Ze!==null){if(Ie===0)var t=Ze.return;else t=Ze,fn=A0=null,ic(t),mr=null,ws=0,t=Ze;for(;t!==null;)Gp(t.alternate,t),t=t.return;Ze=null}}function jr(t,r){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,MC(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),Nn=0,Uc(),Xe=t,Ze=o=hn(t.current,null),Ve=r,Ie=0,ca=null,Un=!1,yr=rs(t,r),Fc=!1,wr=ua=zc=V0=Pn=dt=0,ea=Ds=null,qc=!1,(r&8)!==0&&(r|=r&32);var m=t.entangledLanes;if(m!==0)for(t=t.entanglements,m&=r;0<m;){var v=31-ra(m),y=1<<v;r|=t[v],m&=~y}return En=r,ei(),o}function x5(t,r){Me=null,k.H=Cs,r===hr||r===oi?(r=T3(),Ie=3):r===Ko?(r=T3(),Ie=4):Ie=r===jc?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,ca=r,Ze===null&&(dt=1,Ai(t,va(r,t.current)))}function v5(){var t=ia.current;return t===null?!0:(Ve&4194048)===Ve?Aa===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?t===Aa:!1}function b5(){var t=k.H;return k.H=Cs,t===null?Cs:t}function y5(){var t=k.A;return k.A=rC,t}function Li(){dt=4,Un||(Ve&4194048)!==Ve&&ia.current!==null||(yr=!0),(Pn&134217727)===0&&(V0&134217727)===0||Xe===null||Kn(Xe,Ve,ua,!1)}function Pc(t,r,o){var m=Fe;Fe|=2;var v=b5(),y=y5();(Xe!==t||Ve!==r)&&(_i=null,jr(t,r)),r=!1;var Z=dt;e:do try{if(Ie!==0&&Ze!==null){var T=Ze,q=ca;switch(Ie){case 8:Uc(),Z=6;break e;case 3:case 2:case 9:case 6:ia.current===null&&(r=!0);var ee=Ie;if(Ie=0,ca=null,Er(t,T,q,ee),o&&yr){Z=0;break e}break;default:ee=Ie,Ie=0,ca=null,Er(t,T,q,ee)}}iC(),Z=dt;break}catch(le){x5(t,le)}while(!0);return r&&t.shellSuspendCounter++,fn=A0=null,Fe=m,k.H=v,k.A=y,Ze===null&&(Xe=null,Ve=0,ei()),Z}function iC(){for(;Ze!==null;)w5(Ze)}function oC(t,r){var o=Fe;Fe|=2;var m=b5(),v=y5();Xe!==t||Ve!==r?(_i=null,Vi=at()+500,jr(t,r)):yr=rs(t,r);e:do try{if(Ie!==0&&Ze!==null){r=Ze;var y=ca;t:switch(Ie){case 1:Ie=0,ca=null,Er(t,r,y,1);break;case 2:case 9:if(V3(y)){Ie=0,ca=null,A5(r);break}r=function(){Ie!==2&&Ie!==9||Xe!==t||(Ie=7),Ka(t)},y.then(r,r);break e;case 3:Ie=7;break e;case 4:Ie=5;break e;case 7:V3(y)?(Ie=0,ca=null,A5(r)):(Ie=0,ca=null,Er(t,r,y,7));break;case 5:var Z=null;switch(Ze.tag){case 26:Z=Ze.memoizedState;case 5:case 27:var T=Ze;if(Z?ig(Z):T.stateNode.complete){Ie=0,ca=null;var q=T.sibling;if(q!==null)Ze=q;else{var ee=T.return;ee!==null?(Ze=ee,Ri(ee)):Ze=null}break t}}Ie=0,ca=null,Er(t,r,y,5);break;case 6:Ie=0,ca=null,Er(t,r,y,6);break;case 8:Uc(),dt=6;break e;default:throw Error(i(462))}}cC();break}catch(le){x5(t,le)}while(!0);return fn=A0=null,k.H=m,k.A=v,Fe=o,Ze!==null?0:(Xe=null,Ve=0,ei(),dt)}function cC(){for(;Ze!==null&&!ct();)w5(Ze)}function w5(t){var r=Up(t.alternate,t,En);t.memoizedProps=t.pendingProps,r===null?Ri(t):Ze=r}function A5(t){var r=t,o=r.alternate;switch(r.tag){case 15:case 0:r=Fp(o,r,r.pendingProps,r.type,void 0,Ve);break;case 11:r=Fp(o,r,r.pendingProps,r.type.render,r.ref,Ve);break;case 5:ic(r);default:Gp(o,r),r=Ze=y3(r,En),r=Up(o,r,En)}t.memoizedProps=t.pendingProps,r===null?Ri(t):Ze=r}function Er(t,r,o,m){fn=A0=null,ic(r),mr=null,ws=0;var v=r.return;try{if(QZ(t,v,r,o,Ve)){dt=1,Ai(t,va(o,t.current)),Ze=null;return}}catch(y){if(v!==null)throw Ze=v,y;dt=1,Ai(t,va(o,t.current)),Ze=null;return}r.flags&32768?(Le||m===1?t=!0:yr||(Ve&536870912)!==0?t=!1:(Un=t=!0,(m===2||m===9||m===3||m===6)&&(m=ia.current,m!==null&&m.tag===13&&(m.flags|=16384))),j5(r,t)):Ri(r)}function Ri(t){var r=t;do{if((r.flags&32768)!==0){j5(r,Un);return}t=r.return;var o=eC(r.alternate,r,En);if(o!==null){Ze=o;return}if(r=r.sibling,r!==null){Ze=r;return}Ze=r=t}while(r!==null);dt===0&&(dt=5)}function j5(t,r){do{var o=tC(t.alternate,t);if(o!==null){o.flags&=32767,Ze=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(t=t.sibling,t!==null)){Ze=t;return}Ze=t=o}while(t!==null);dt=6,Ze=null}function E5(t,r,o,m,v,y,Z,T,q){t.cancelPendingCommit=null;do ki();while(St!==0);if((Fe&6)!==0)throw Error(i(327));if(r!==null){if(r===t.current)throw Error(i(177));if(y=r.lanes|r.childLanes,y|=Lo,$S(t,o,y,Z,T,q),t===Xe&&(Ze=Xe=null,Ve=0),Ar=r,Yn=t,Nn=o,$c=y,Bc=v,m5=m,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mC(Lt,function(){return C5(),null})):(t.callbackNode=null,t.callbackPriority=0),m=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||m){m=k.T,k.T=null,v=$.p,$.p=2,Z=Fe,Fe|=4;try{aC(t,r,o)}finally{Fe=Z,$.p=v,k.T=m}}St=1,N5(),M5(),S5()}}function N5(){if(St===1){St=0;var t=Yn,r=Ar,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=k.T,k.T=null;var m=$.p;$.p=2;var v=Fe;Fe|=4;try{s5(r,t);var y=r2,Z=d3(t.containerInfo),T=y.focusedElem,q=y.selectionRange;if(Z!==T&&T&&T.ownerDocument&&u3(T.ownerDocument.documentElement,T)){if(q!==null&&Co(T)){var ee=q.start,le=q.end;if(le===void 0&&(le=ee),"selectionStart"in T)T.selectionStart=ee,T.selectionEnd=Math.min(le,T.value.length);else{var ue=T.ownerDocument||document,te=ue&&ue.defaultView||window;if(te.getSelection){var ae=te.getSelection(),pe=T.textContent.length,ye=Math.min(q.start,pe),Ke=q.end===void 0?ye:Math.min(q.end,pe);!ae.extend&&ye>Ke&&(Z=Ke,Ke=ye,ye=Z);var G=c3(T,ye),U=c3(T,Ke);if(G&&U&&(ae.rangeCount!==1||ae.anchorNode!==G.node||ae.anchorOffset!==G.offset||ae.focusNode!==U.node||ae.focusOffset!==U.offset)){var W=ue.createRange();W.setStart(G.node,G.offset),ae.removeAllRanges(),ye>Ke?(ae.addRange(W),ae.extend(U.node,U.offset)):(W.setEnd(U.node,U.offset),ae.addRange(W))}}}}for(ue=[],ae=T;ae=ae.parentNode;)ae.nodeType===1&&ue.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ue.length;T++){var ce=ue[T];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}Yi=!!n2,r2=n2=null}finally{Fe=v,$.p=m,k.T=o}}t.current=r,St=2}}function M5(){if(St===2){St=0;var t=Yn,r=Ar,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=k.T,k.T=null;var m=$.p;$.p=2;var v=Fe;Fe|=4;try{e5(t,r.alternate,r)}finally{Fe=v,$.p=m,k.T=o}}St=3}}function S5(){if(St===4||St===3){St=0,vt();var t=Yn,r=Ar,o=Nn,m=m5;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?St=5:(St=0,Ar=Yn=null,Z5(t,t.pendingLanes));var v=t.pendingLanes;if(v===0&&(Gn=null),co(o),r=r.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Yt,r,void 0,(r.current.flags&128)===128)}catch{}if(m!==null){r=k.T,v=$.p,$.p=2,k.T=null;try{for(var y=t.onRecoverableError,Z=0;Z<m.length;Z++){var T=m[Z];y(T.value,{componentStack:T.stack})}}finally{k.T=r,$.p=v}}(Nn&3)!==0&&ki(),Ka(t),v=t.pendingLanes,(o&261930)!==0&&(v&42)!==0?t===Ic?Os++:(Os=0,Ic=t):Os=0,Fs(0)}}function Z5(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,bs(r)))}function ki(){return N5(),M5(),S5(),C5()}function C5(){if(St!==5)return!1;var t=Yn,r=$c;$c=0;var o=co(Nn),m=k.T,v=$.p;try{$.p=32>o?32:o,k.T=null,o=Bc,Bc=null;var y=Yn,Z=Nn;if(St=0,Ar=Yn=null,Nn=0,(Fe&6)!==0)throw Error(i(331));var T=Fe;if(Fe|=4,u5(y.current),i5(y,y.current,Z,o),Fe=T,Fs(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Yt,y)}catch{}return!0}finally{$.p=v,k.T=m,Z5(t,r)}}function H5(t,r,o){r=va(o,r),r=Ac(t.stateNode,r,2),t=qn(t,r,2),t!==null&&(ss(t,2),Ka(t))}function Ue(t,r,o){if(t.tag===3)H5(t,t,o);else for(;r!==null;){if(r.tag===3){H5(r,t,o);break}else if(r.tag===1){var m=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Gn===null||!Gn.has(m))){t=va(o,t),o=Vp(2),m=qn(r,o,2),m!==null&&(_p(o,m,r,t),ss(m,2),Ka(m));break}}r=r.return}}function Gc(t,r,o){var m=t.pingCache;if(m===null){m=t.pingCache=new sC;var v=new Set;m.set(r,v)}else v=m.get(r),v===void 0&&(v=new Set,m.set(r,v));v.has(o)||(Fc=!0,v.add(o),t=uC.bind(null,t,r,o),r.then(t,t))}function uC(t,r,o){var m=t.pingCache;m!==null&&m.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,Xe===t&&(Ve&o)===o&&(dt===4||dt===3&&(Ve&62914560)===Ve&&300>at()-Hi?(Fe&2)===0&&jr(t,0):zc|=o,wr===Ve&&(wr=0)),Ka(t)}function V5(t,r){r===0&&(r=Nf()),t=b0(t,r),t!==null&&(ss(t,r),Ka(t))}function dC(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),V5(t,o)}function hC(t,r){var o=0;switch(t.tag){case 31:case 13:var m=t.stateNode,v=t.memoizedState;v!==null&&(o=v.retryLane);break;case 19:m=t.stateNode;break;case 22:m=t.stateNode._retryCache;break;default:throw Error(i(314))}m!==null&&m.delete(r),V5(t,o)}function mC(t,r){return ft(t,r)}var Di=null,Nr=null,Yc=!1,Oi=!1,Kc=!1,Xn=0;function Ka(t){t!==Nr&&t.next===null&&(Nr===null?Di=Nr=t:Nr=Nr.next=t),Oi=!0,Yc||(Yc=!0,pC())}function Fs(t,r){if(!Kc&&Oi){Kc=!0;do for(var o=!1,m=Di;m!==null;){if(t!==0){var v=m.pendingLanes;if(v===0)var y=0;else{var Z=m.suspendedLanes,T=m.pingedLanes;y=(1<<31-ra(42|t)+1)-1,y&=v&~(Z&~T),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,R5(m,y))}else y=Ve,y=$l(m,m===Xe?y:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(y&3)===0||rs(m,y)||(o=!0,R5(m,y));m=m.next}while(o);Kc=!1}}function fC(){_5()}function _5(){Oi=Yc=!1;var t=0;Xn!==0&&NC()&&(t=Xn);for(var r=at(),o=null,m=Di;m!==null;){var v=m.next,y=T5(m,r);y===0?(m.next=null,o===null?Di=v:o.next=v,v===null&&(Nr=o)):(o=m,(t!==0||(y&3)!==0)&&(Oi=!0)),m=v}St!==0&&St!==5||Fs(t),Xn!==0&&(Xn=0)}function T5(t,r){for(var o=t.suspendedLanes,m=t.pingedLanes,v=t.expirationTimes,y=t.pendingLanes&-62914561;0<y;){var Z=31-ra(y),T=1<<Z,q=v[Z];q===-1?((T&o)===0||(T&m)!==0)&&(v[Z]=qS(T,r)):q<=r&&(t.expiredLanes|=T),y&=~T}if(r=Xe,o=Ve,o=$l(t,t===r?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),m=t.callbackNode,o===0||t===r&&(Ie===2||Ie===9)||t.cancelPendingCommit!==null)return m!==null&&m!==null&&Te(m),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||rs(t,o)){if(r=o&-o,r===t.callbackPriority)return r;switch(m!==null&&Te(m),co(o)){case 2:case 8:o=Be;break;case 32:o=Lt;break;case 268435456:o=ns;break;default:o=Lt}return m=L5.bind(null,t),o=ft(o,m),t.callbackPriority=r,t.callbackNode=o,r}return m!==null&&m!==null&&Te(m),t.callbackPriority=2,t.callbackNode=null,2}function L5(t,r){if(St!==0&&St!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(ki()&&t.callbackNode!==o)return null;var m=Ve;return m=$l(t,t===Xe?m:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),m===0?null:(p5(t,m,r),T5(t,at()),t.callbackNode!=null&&t.callbackNode===o?L5.bind(null,t):null)}function R5(t,r){if(ki())return null;p5(t,r,!0)}function pC(){SC(function(){(Fe&6)!==0?ft(Qe,fC):_5()})}function Xc(){if(Xn===0){var t=ur;t===0&&(t=Fl,Fl<<=1,(Fl&261888)===0&&(Fl=256)),Xn=t}return Xn}function k5(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Pl(""+t)}function D5(t,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,t.id&&o.setAttribute("form",t.id),r.parentNode.insertBefore(o,r),t=new FormData(t),o.parentNode.removeChild(o),t}function gC(t,r,o,m,v){if(r==="submit"&&o&&o.stateNode===v){var y=k5((v[Kt]||null).action),Z=m.submitter;Z&&(r=(r=Z[Kt]||null)?k5(r.formAction):Z.getAttribute("formAction"),r!==null&&(y=r,Z=null));var T=new Xl("action","action",null,m,v);t.push({event:T,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Xn!==0){var q=Z?D5(v,Z):new FormData(v);gc(o,{pending:!0,data:q,method:v.method,action:y},null,q)}}else typeof y=="function"&&(T.preventDefault(),q=Z?D5(v,Z):new FormData(v),gc(o,{pending:!0,data:q,method:v.method,action:y},y,q))},currentTarget:v}]})}}for(var Qc=0;Qc<To.length;Qc++){var Jc=To[Qc],xC=Jc.toLowerCase(),vC=Jc[0].toUpperCase()+Jc.slice(1);Ta(xC,"on"+vC)}Ta(f3,"onAnimationEnd"),Ta(p3,"onAnimationIteration"),Ta(g3,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(LZ,"onTransitionRun"),Ta(RZ,"onTransitionStart"),Ta(kZ,"onTransitionCancel"),Ta(x3,"onTransitionEnd"),X0("onMouseEnter",["mouseout","mouseover"]),X0("onMouseLeave",["mouseout","mouseover"]),X0("onPointerEnter",["pointerout","pointerover"]),X0("onPointerLeave",["pointerout","pointerover"]),p0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p0("onBeforeInput",["compositionend","keypress","textInput","paste"]),p0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zs="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(" "),bC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zs));function O5(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var m=t[o],v=m.event;m=m.listeners;e:{var y=void 0;if(r)for(var Z=m.length-1;0<=Z;Z--){var T=m[Z],q=T.instance,ee=T.currentTarget;if(T=T.listener,q!==y&&v.isPropagationStopped())break e;y=T,v.currentTarget=ee;try{y(v)}catch(le){Wl(le)}v.currentTarget=null,y=q}else for(Z=0;Z<m.length;Z++){if(T=m[Z],q=T.instance,ee=T.currentTarget,T=T.listener,q!==y&&v.isPropagationStopped())break e;y=T,v.currentTarget=ee;try{y(v)}catch(le){Wl(le)}v.currentTarget=null,y=q}}}}function Ce(t,r){var o=r[uo];o===void 0&&(o=r[uo]=new Set);var m=t+"__bubble";o.has(m)||(F5(r,t,2,!1),o.add(m))}function Wc(t,r,o){var m=0;r&&(m|=4),F5(o,t,m,r)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function e2(t){if(!t[Fi]){t[Fi]=!0,_f.forEach(function(o){o!=="selectionchange"&&(bC.has(o)||Wc(o,!1,t),Wc(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Fi]||(r[Fi]=!0,Wc("selectionchange",!1,r))}}function F5(t,r,o,m){switch(fg(r)){case 2:var v=GC;break;case 8:v=YC;break;default:v=p2}o=v.bind(null,r,o,t),v=void 0,!yo||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(v=!0),m?v!==void 0?t.addEventListener(r,o,{capture:!0,passive:v}):t.addEventListener(r,o,!0):v!==void 0?t.addEventListener(r,o,{passive:v}):t.addEventListener(r,o,!1)}function t2(t,r,o,m,v){var y=m;if((r&1)===0&&(r&2)===0&&m!==null)e:for(;;){if(m===null)return;var Z=m.tag;if(Z===3||Z===4){var T=m.stateNode.containerInfo;if(T===v)break;if(Z===4)for(Z=m.return;Z!==null;){var q=Z.tag;if((q===3||q===4)&&Z.stateNode.containerInfo===v)return;Z=Z.return}for(;T!==null;){if(Z=G0(T),Z===null)return;if(q=Z.tag,q===5||q===6||q===26||q===27){m=y=Z;continue e}T=T.parentNode}}m=m.return}If(function(){var ee=y,le=vo(o),ue=[];e:{var te=v3.get(t);if(te!==void 0){var ae=Xl,pe=t;switch(t){case"keypress":if(Yl(o)===0)break e;case"keydown":case"keyup":ae=hZ;break;case"focusin":pe="focus",ae=Eo;break;case"focusout":pe="blur",ae=Eo;break;case"beforeblur":case"afterblur":ae=Eo;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=Gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=eZ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=pZ;break;case f3:case p3:case g3:ae=nZ;break;case x3:ae=xZ;break;case"scroll":case"scrollend":ae=JS;break;case"wheel":ae=bZ;break;case"copy":case"cut":case"paste":ae=sZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Kf;break;case"toggle":case"beforetoggle":ae=wZ}var ye=(r&4)!==0,Ke=!ye&&(t==="scroll"||t==="scrollend"),G=ye?te!==null?te+"Capture":null:te;ye=[];for(var U=ee,W;U!==null;){var ce=U;if(W=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||W===null||G===null||(ce=os(U,G),ce!=null&&ye.push(qs(U,ce,W))),Ke)break;U=U.return}0<ye.length&&(te=new ae(te,pe,null,o,le),ue.push({event:te,listeners:ye}))}}if((r&7)===0){e:{if(te=t==="mouseover"||t==="pointerover",ae=t==="mouseout"||t==="pointerout",te&&o!==xo&&(pe=o.relatedTarget||o.fromElement)&&(G0(pe)||pe[P0]))break e;if((ae||te)&&(te=le.window===le?le:(te=le.ownerDocument)?te.defaultView||te.parentWindow:window,ae?(pe=o.relatedTarget||o.toElement,ae=ee,pe=pe?G0(pe):null,pe!==null&&(Ke=u(pe),ye=pe.tag,pe!==Ke||ye!==5&&ye!==27&&ye!==6)&&(pe=null)):(ae=null,pe=ee),ae!==pe)){if(ye=Gf,ce="onMouseLeave",G="onMouseEnter",U="mouse",(t==="pointerout"||t==="pointerover")&&(ye=Kf,ce="onPointerLeave",G="onPointerEnter",U="pointer"),Ke=ae==null?te:is(ae),W=pe==null?te:is(pe),te=new ye(ce,U+"leave",ae,o,le),te.target=Ke,te.relatedTarget=W,ce=null,G0(le)===ee&&(ye=new ye(G,U+"enter",pe,o,le),ye.target=W,ye.relatedTarget=Ke,ce=ye),Ke=ce,ae&&pe)t:{for(ye=yC,G=ae,U=pe,W=0,ce=G;ce;ce=ye(ce))W++;ce=0;for(var be=U;be;be=ye(be))ce++;for(;0<W-ce;)G=ye(G),W--;for(;0<ce-W;)U=ye(U),ce--;for(;W--;){if(G===U||U!==null&&G===U.alternate){ye=G;break t}G=ye(G),U=ye(U)}ye=null}else ye=null;ae!==null&&z5(ue,te,ae,ye,!1),pe!==null&&Ke!==null&&z5(ue,Ke,pe,ye,!0)}}e:{if(te=ee?is(ee):window,ae=te.nodeName&&te.nodeName.toLowerCase(),ae==="select"||ae==="input"&&te.type==="file")var De=n3;else if(t3(te))if(r3)De=VZ;else{De=CZ;var xe=ZZ}else ae=te.nodeName,!ae||ae.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&go(ee.elementType)&&(De=n3):De=HZ;if(De&&(De=De(t,ee))){a3(ue,De,o,le);break e}xe&&xe(t,te,ee),t==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&po(te,"number",te.value)}switch(xe=ee?is(ee):window,t){case"focusin":(t3(xe)||xe.contentEditable==="true")&&(ar=xe,Ho=ee,gs=null);break;case"focusout":gs=Ho=ar=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,h3(ue,o,le);break;case"selectionchange":if(TZ)break;case"keydown":case"keyup":h3(ue,o,le)}var Se;if(Mo)e:{switch(t){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else tr?Wf(t,o)&&(_e="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(_e="onCompositionStart");_e&&(Xf&&o.locale!=="ko"&&(tr||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&tr&&(Se=Uf()):(Ln=le,wo="value"in Ln?Ln.value:Ln.textContent,tr=!0)),xe=zi(ee,_e),0<xe.length&&(_e=new Yf(_e,t,null,o,le),ue.push({event:_e,listeners:xe}),Se?_e.data=Se:(Se=e3(o),Se!==null&&(_e.data=Se)))),(Se=jZ?EZ(t,o):NZ(t,o))&&(_e=zi(ee,"onBeforeInput"),0<_e.length&&(xe=new Yf("onBeforeInput","beforeinput",null,o,le),ue.push({event:xe,listeners:_e}),xe.data=Se)),gC(ue,t,ee,o,le)}O5(ue,r)})}function qs(t,r,o){return{instance:t,listener:r,currentTarget:o}}function zi(t,r){for(var o=r+"Capture",m=[];t!==null;){var v=t,y=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||y===null||(v=os(t,o),v!=null&&m.unshift(qs(t,v,y)),v=os(t,r),v!=null&&m.push(qs(t,v,y))),t.tag===3)return m;t=t.return}return[]}function yC(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function z5(t,r,o,m,v){for(var y=r._reactName,Z=[];o!==null&&o!==m;){var T=o,q=T.alternate,ee=T.stateNode;if(T=T.tag,q!==null&&q===m)break;T!==5&&T!==26&&T!==27||ee===null||(q=ee,v?(ee=os(o,y),ee!=null&&Z.unshift(qs(o,ee,q))):v||(ee=os(o,y),ee!=null&&Z.push(qs(o,ee,q)))),o=o.return}Z.length!==0&&t.push({event:r,listeners:Z})}var wC=/\r\n?/g,AC=/\u0000|\uFFFD/g;function q5(t){return(typeof t=="string"?t:""+t).replace(wC,`
|
|
49
|
-
`).replace(AC,"")}function $5(t,r){return r=q5(r),q5(t)===r}function Ye(t,r,o,m,v,y){switch(o){case"children":typeof m=="string"?r==="body"||r==="textarea"&&m===""||J0(t,m):(typeof m=="number"||typeof m=="bigint")&&r!=="body"&&J0(t,""+m);break;case"className":Il(t,"class",m);break;case"tabIndex":Il(t,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Il(t,o,m);break;case"style":$f(t,m,y);break;case"data":if(r!=="object"){Il(t,"data",m);break}case"src":case"href":if(m===""&&(r!=="a"||o!=="href")){t.removeAttribute(o);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){t.removeAttribute(o);break}m=Pl(""+m),t.setAttribute(o,m);break;case"action":case"formAction":if(typeof m=="function"){t.setAttribute(o,"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 y=="function"&&(o==="formAction"?(r!=="input"&&Ye(t,r,"name",v.name,v,null),Ye(t,r,"formEncType",v.formEncType,v,null),Ye(t,r,"formMethod",v.formMethod,v,null),Ye(t,r,"formTarget",v.formTarget,v,null)):(Ye(t,r,"encType",v.encType,v,null),Ye(t,r,"method",v.method,v,null),Ye(t,r,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){t.removeAttribute(o);break}m=Pl(""+m),t.setAttribute(o,m);break;case"onClick":m!=null&&(t.onclick=un);break;case"onScroll":m!=null&&Ce("scroll",t);break;case"onScrollEnd":m!=null&&Ce("scrollend",t);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(o=m.__html,o!=null){if(v.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":t.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){t.removeAttribute("xlink:href");break}o=Pl(""+m),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?t.setAttribute(o,""+m):t.removeAttribute(o);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":m&&typeof m!="function"&&typeof m!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":m===!0?t.setAttribute(o,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?t.setAttribute(o,m):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?t.setAttribute(o,m):t.removeAttribute(o);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?t.removeAttribute(o):t.setAttribute(o,m);break;case"popover":Ce("beforetoggle",t),Ce("toggle",t),Bl(t,"popover",m);break;case"xlinkActuate":cn(t,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":cn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":cn(t,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":cn(t,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":cn(t,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":cn(t,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":cn(t,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":cn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":cn(t,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Bl(t,"is",m);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=XS.get(o)||o,Bl(t,o,m))}}function a2(t,r,o,m,v,y){switch(o){case"style":$f(t,m,y);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(o=m.__html,o!=null){if(v.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof m=="string"?J0(t,m):(typeof m=="number"||typeof m=="bigint")&&J0(t,""+m);break;case"onScroll":m!=null&&Ce("scroll",t);break;case"onScrollEnd":m!=null&&Ce("scrollend",t);break;case"onClick":m!=null&&(t.onclick=un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tf.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(v=o.endsWith("Capture"),r=o.slice(2,v?o.length-7:void 0),y=t[Kt]||null,y=y!=null?y[o]:null,typeof y=="function"&&t.removeEventListener(r,y,v),typeof m=="function")){typeof y!="function"&&y!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(r,m,v);break e}o in t?t[o]=m:m===!0?t.setAttribute(o,""):Bl(t,o,m)}}}function Ft(t,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",t),Ce("load",t);var m=!1,v=!1,y;for(y in o)if(o.hasOwnProperty(y)){var Z=o[y];if(Z!=null)switch(y){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ye(t,r,y,Z,o,null)}}v&&Ye(t,r,"srcSet",o.srcSet,o,null),m&&Ye(t,r,"src",o.src,o,null);return;case"input":Ce("invalid",t);var T=y=Z=v=null,q=null,ee=null;for(m in o)if(o.hasOwnProperty(m)){var le=o[m];if(le!=null)switch(m){case"name":v=le;break;case"type":Z=le;break;case"checked":q=le;break;case"defaultChecked":ee=le;break;case"value":y=le;break;case"defaultValue":T=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,r));break;default:Ye(t,r,m,le,o,null)}}Of(t,y,T,q,ee,Z,v,!1);return;case"select":Ce("invalid",t),m=Z=y=null;for(v in o)if(o.hasOwnProperty(v)&&(T=o[v],T!=null))switch(v){case"value":y=T;break;case"defaultValue":Z=T;break;case"multiple":m=T;default:Ye(t,r,v,T,o,null)}r=y,o=Z,t.multiple=!!m,r!=null?Q0(t,!!m,r,!1):o!=null&&Q0(t,!!m,o,!0);return;case"textarea":Ce("invalid",t),y=v=m=null;for(Z in o)if(o.hasOwnProperty(Z)&&(T=o[Z],T!=null))switch(Z){case"value":m=T;break;case"defaultValue":v=T;break;case"children":y=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(i(91));break;default:Ye(t,r,Z,T,o,null)}zf(t,m,v,y);return;case"option":for(q in o)if(o.hasOwnProperty(q)&&(m=o[q],m!=null))switch(q){case"selected":t.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Ye(t,r,q,m,o,null)}return;case"dialog":Ce("beforetoggle",t),Ce("toggle",t),Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":Ce("load",t);break;case"video":case"audio":for(m=0;m<zs.length;m++)Ce(zs[m],t);break;case"image":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"embed":case"source":case"link":Ce("error",t),Ce("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in o)if(o.hasOwnProperty(ee)&&(m=o[ee],m!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ye(t,r,ee,m,o,null)}return;default:if(go(r)){for(le in o)o.hasOwnProperty(le)&&(m=o[le],m!==void 0&&a2(t,r,le,m,o,void 0));return}}for(T in o)o.hasOwnProperty(T)&&(m=o[T],m!=null&&Ye(t,r,T,m,o,null))}function jC(t,r,o,m){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,y=null,Z=null,T=null,q=null,ee=null,le=null;for(ae in o){var ue=o[ae];if(o.hasOwnProperty(ae)&&ue!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":q=ue;default:m.hasOwnProperty(ae)||Ye(t,r,ae,null,m,ue)}}for(var te in m){var ae=m[te];if(ue=o[te],m.hasOwnProperty(te)&&(ae!=null||ue!=null))switch(te){case"type":y=ae;break;case"name":v=ae;break;case"checked":ee=ae;break;case"defaultChecked":le=ae;break;case"value":Z=ae;break;case"defaultValue":T=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,r));break;default:ae!==ue&&Ye(t,r,te,ae,m,ue)}}fo(t,Z,T,q,ee,le,y,v);return;case"select":ae=Z=T=te=null;for(y in o)if(q=o[y],o.hasOwnProperty(y)&&q!=null)switch(y){case"value":break;case"multiple":ae=q;default:m.hasOwnProperty(y)||Ye(t,r,y,null,m,q)}for(v in m)if(y=m[v],q=o[v],m.hasOwnProperty(v)&&(y!=null||q!=null))switch(v){case"value":te=y;break;case"defaultValue":T=y;break;case"multiple":Z=y;default:y!==q&&Ye(t,r,v,y,m,q)}r=T,o=Z,m=ae,te!=null?Q0(t,!!o,te,!1):!!m!=!!o&&(r!=null?Q0(t,!!o,r,!0):Q0(t,!!o,o?[]:"",!1));return;case"textarea":ae=te=null;for(T in o)if(v=o[T],o.hasOwnProperty(T)&&v!=null&&!m.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ye(t,r,T,null,m,v)}for(Z in m)if(v=m[Z],y=o[Z],m.hasOwnProperty(Z)&&(v!=null||y!=null))switch(Z){case"value":te=v;break;case"defaultValue":ae=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:v!==y&&Ye(t,r,Z,v,m,y)}Ff(t,te,ae);return;case"option":for(var pe in o)if(te=o[pe],o.hasOwnProperty(pe)&&te!=null&&!m.hasOwnProperty(pe))switch(pe){case"selected":t.selected=!1;break;default:Ye(t,r,pe,null,m,te)}for(q in m)if(te=m[q],ae=o[q],m.hasOwnProperty(q)&&te!==ae&&(te!=null||ae!=null))switch(q){case"selected":t.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:Ye(t,r,q,te,m,ae)}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 ye in o)te=o[ye],o.hasOwnProperty(ye)&&te!=null&&!m.hasOwnProperty(ye)&&Ye(t,r,ye,null,m,te);for(ee in m)if(te=m[ee],ae=o[ee],m.hasOwnProperty(ee)&&te!==ae&&(te!=null||ae!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,r));break;default:Ye(t,r,ee,te,m,ae)}return;default:if(go(r)){for(var Ke in o)te=o[Ke],o.hasOwnProperty(Ke)&&te!==void 0&&!m.hasOwnProperty(Ke)&&a2(t,r,Ke,void 0,m,te);for(le in m)te=m[le],ae=o[le],!m.hasOwnProperty(le)||te===ae||te===void 0&&ae===void 0||a2(t,r,le,te,m,ae);return}}for(var G in o)te=o[G],o.hasOwnProperty(G)&&te!=null&&!m.hasOwnProperty(G)&&Ye(t,r,G,null,m,te);for(ue in m)te=m[ue],ae=o[ue],!m.hasOwnProperty(ue)||te===ae||te==null&&ae==null||Ye(t,r,ue,te,m,ae)}function B5(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function EC(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,o=performance.getEntriesByType("resource"),m=0;m<o.length;m++){var v=o[m],y=v.transferSize,Z=v.initiatorType,T=v.duration;if(y&&T&&B5(Z)){for(Z=0,T=v.responseEnd,m+=1;m<o.length;m++){var q=o[m],ee=q.startTime;if(ee>T)break;var le=q.transferSize,ue=q.initiatorType;le&&B5(ue)&&(q=q.responseEnd,Z+=le*(q<T?1:(T-ee)/(q-ee)))}if(--m,r+=8*(y+Z)/(v.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var n2=null,r2=null;function qi(t){return t.nodeType===9?t:t.ownerDocument}function I5(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function U5(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function s2(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var l2=null;function NC(){var t=window.event;return t&&t.type==="popstate"?t===l2?!1:(l2=t,!0):(l2=null,!1)}var P5=typeof setTimeout=="function"?setTimeout:void 0,MC=typeof clearTimeout=="function"?clearTimeout:void 0,G5=typeof Promise=="function"?Promise:void 0,SC=typeof queueMicrotask=="function"?queueMicrotask:typeof G5<"u"?function(t){return G5.resolve(null).then(t).catch(ZC)}:P5;function ZC(t){setTimeout(function(){throw t})}function Qn(t){return t==="head"}function Y5(t,r){var o=r,m=0;do{var v=o.nextSibling;if(t.removeChild(o),v&&v.nodeType===8)if(o=v.data,o==="/$"||o==="/&"){if(m===0){t.removeChild(v),Cr(r);return}m--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")m++;else if(o==="html")$s(t.ownerDocument.documentElement);else if(o==="head"){o=t.ownerDocument.head,$s(o);for(var y=o.firstChild;y;){var Z=y.nextSibling,T=y.nodeName;y[ls]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=Z}}else o==="body"&&$s(t.ownerDocument.body);o=v}while(o);Cr(r)}function K5(t,r){var o=t;t=0;do{var m=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),m&&m.nodeType===8)if(o=m.data,o==="/$"){if(t===0)break;t--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||t++;o=m}while(o)}function i2(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":i2(o),ho(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function CC(t,r,o,m){for(;t.nodeType===1;){var v=o;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!m&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(m){if(!t[ls])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(y=t.getAttribute("rel"),y==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(y!==v.rel||t.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||t.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||t.getAttribute("title")!==(v.title==null?null:v.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(y=t.getAttribute("src"),(y!==(v.src==null?null:v.src)||t.getAttribute("type")!==(v.type==null?null:v.type)||t.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&y&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var y=v.name==null?null:""+v.name;if(v.type==="hidden"&&t.getAttribute("name")===y)return t}else return t;if(t=ja(t.nextSibling),t===null)break}return null}function HC(t,r,o){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=ja(t.nextSibling),t===null))return null;return t}function X5(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=ja(t.nextSibling),t===null))return null;return t}function o2(t){return t.data==="$?"||t.data==="$~"}function c2(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function VC(t,r){var o=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||o.readyState!=="loading")r();else{var m=function(){r(),o.removeEventListener("DOMContentLoaded",m)};o.addEventListener("DOMContentLoaded",m),t._reactRetry=m}}function ja(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var u2=null;function Q5(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"||o==="/&"){if(r===0)return ja(t.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}t=t.nextSibling}return null}function J5(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return t;r--}else o!=="/$"&&o!=="/&"||r++}t=t.previousSibling}return null}function W5(t,r,o){switch(r=qi(o),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function $s(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ho(t)}var Ea=new Map,eg=new Set;function $i(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=$.d;$.d={f:_C,r:TC,D:LC,C:RC,L:kC,m:DC,X:FC,S:OC,M:zC};function _C(){var t=Mn.f(),r=Ti();return t||r}function TC(t){var r=Y0(t);r!==null&&r.tag===5&&r.type==="form"?xp(r):Mn.r(t)}var Mr=typeof document>"u"?null:document;function tg(t,r,o){var m=Mr;if(m&&typeof r=="string"&&r){var v=ga(r);v='link[rel="'+t+'"][href="'+v+'"]',typeof o=="string"&&(v+='[crossorigin="'+o+'"]'),eg.has(v)||(eg.add(v),t={rel:t,crossOrigin:o,href:r},m.querySelector(v)===null&&(r=m.createElement("link"),Ft(r,"link",t),Ht(r),m.head.appendChild(r)))}}function LC(t){Mn.D(t),tg("dns-prefetch",t,null)}function RC(t,r){Mn.C(t,r),tg("preconnect",t,r)}function kC(t,r,o){Mn.L(t,r,o);var m=Mr;if(m&&t&&r){var v='link[rel="preload"][as="'+ga(r)+'"]';r==="image"&&o&&o.imageSrcSet?(v+='[imagesrcset="'+ga(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(v+='[imagesizes="'+ga(o.imageSizes)+'"]')):v+='[href="'+ga(t)+'"]';var y=v;switch(r){case"style":y=Sr(t);break;case"script":y=Zr(t)}Ea.has(y)||(t=x({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),Ea.set(y,t),m.querySelector(v)!==null||r==="style"&&m.querySelector(Bs(y))||r==="script"&&m.querySelector(Is(y))||(r=m.createElement("link"),Ft(r,"link",t),Ht(r),m.head.appendChild(r)))}}function DC(t,r){Mn.m(t,r);var o=Mr;if(o&&t){var m=r&&typeof r.as=="string"?r.as:"script",v='link[rel="modulepreload"][as="'+ga(m)+'"][href="'+ga(t)+'"]',y=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Zr(t)}if(!Ea.has(y)&&(t=x({rel:"modulepreload",href:t},r),Ea.set(y,t),o.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Is(y)))return}m=o.createElement("link"),Ft(m,"link",t),Ht(m),o.head.appendChild(m)}}}function OC(t,r,o){Mn.S(t,r,o);var m=Mr;if(m&&t){var v=K0(m).hoistableStyles,y=Sr(t);r=r||"default";var Z=v.get(y);if(!Z){var T={loading:0,preload:null};if(Z=m.querySelector(Bs(y)))T.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":r},o),(o=Ea.get(y))&&d2(t,o);var q=Z=m.createElement("link");Ht(q),Ft(q,"link",t),q._p=new Promise(function(ee,le){q.onload=ee,q.onerror=le}),q.addEventListener("load",function(){T.loading|=1}),q.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Bi(Z,r,m)}Z={type:"stylesheet",instance:Z,count:1,state:T},v.set(y,Z)}}}function FC(t,r){Mn.X(t,r);var o=Mr;if(o&&t){var m=K0(o).hoistableScripts,v=Zr(t),y=m.get(v);y||(y=o.querySelector(Is(v)),y||(t=x({src:t,async:!0},r),(r=Ea.get(v))&&h2(t,r),y=o.createElement("script"),Ht(y),Ft(y,"link",t),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},m.set(v,y))}}function zC(t,r){Mn.M(t,r);var o=Mr;if(o&&t){var m=K0(o).hoistableScripts,v=Zr(t),y=m.get(v);y||(y=o.querySelector(Is(v)),y||(t=x({src:t,async:!0,type:"module"},r),(r=Ea.get(v))&&h2(t,r),y=o.createElement("script"),Ht(y),Ft(y,"link",t),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},m.set(v,y))}}function ag(t,r,o,m){var v=(v=P.current)?$i(v):null;if(!v)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Sr(o.href),o=K0(v).hoistableStyles,m=o.get(r),m||(m={type:"style",instance:null,count:0,state:null},o.set(r,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Sr(o.href);var y=K0(v).hoistableStyles,Z=y.get(t);if(Z||(v=v.ownerDocument||v,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(t,Z),(y=v.querySelector(Bs(t)))&&!y._p&&(Z.instance=y,Z.state.loading=5),Ea.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Ea.set(t,o),y||qC(v,t,o,Z.state))),r&&m===null)throw Error(i(528,""));return Z}if(r&&m!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Zr(o),o=K0(v).hoistableScripts,m=o.get(r),m||(m={type:"script",instance:null,count:0,state:null},o.set(r,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Sr(t){return'href="'+ga(t)+'"'}function Bs(t){return'link[rel="stylesheet"]['+t+"]"}function ng(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function qC(t,r,o,m){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?m.loading=1:(r=t.createElement("link"),m.preload=r,r.addEventListener("load",function(){return m.loading|=1}),r.addEventListener("error",function(){return m.loading|=2}),Ft(r,"link",o),Ht(r),t.head.appendChild(r))}function Zr(t){return'[src="'+ga(t)+'"]'}function Is(t){return"script[async]"+t}function rg(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var m=t.querySelector('style[data-href~="'+ga(o.href)+'"]');if(m)return r.instance=m,Ht(m),m;var v=x({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return m=(t.ownerDocument||t).createElement("style"),Ht(m),Ft(m,"style",v),Bi(m,o.precedence,t),r.instance=m;case"stylesheet":v=Sr(o.href);var y=t.querySelector(Bs(v));if(y)return r.state.loading|=4,r.instance=y,Ht(y),y;m=ng(o),(v=Ea.get(v))&&d2(m,v),y=(t.ownerDocument||t).createElement("link"),Ht(y);var Z=y;return Z._p=new Promise(function(T,q){Z.onload=T,Z.onerror=q}),Ft(y,"link",m),r.state.loading|=4,Bi(y,o.precedence,t),r.instance=y;case"script":return y=Zr(o.src),(v=t.querySelector(Is(y)))?(r.instance=v,Ht(v),v):(m=o,(v=Ea.get(y))&&(m=x({},o),h2(m,v)),t=t.ownerDocument||t,v=t.createElement("script"),Ht(v),Ft(v,"link",m),t.head.appendChild(v),r.instance=v);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(m=r.instance,r.state.loading|=4,Bi(m,o.precedence,t));return r.instance}function Bi(t,r,o){for(var m=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,y=v,Z=0;Z<m.length;Z++){var T=m[Z];if(T.dataset.precedence===r)y=T;else if(y!==v)break}y?y.parentNode.insertBefore(t,y.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(t,r.firstChild))}function d2(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function h2(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Ii=null;function sg(t,r,o){if(Ii===null){var m=new Map,v=Ii=new Map;v.set(o,m)}else v=Ii,m=v.get(o),m||(m=new Map,v.set(o,m));if(m.has(t))return m;for(m.set(t,null),o=o.getElementsByTagName(t),v=0;v<o.length;v++){var y=o[v];if(!(y[ls]||y[Rt]||t==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=y.getAttribute(r)||"";Z=t+Z;var T=m.get(Z);T?T.push(y):m.set(Z,[y])}}return m}function lg(t,r,o){t=t.ownerDocument||t,t.head.insertBefore(o,r==="title"?t.querySelector("head > title"):null)}function $C(t,r,o){if(o===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function ig(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function BC(t,r,o,m){if(o.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var v=Sr(m.href),y=r.querySelector(Bs(v));if(y){r=y._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=Ui.bind(t),r.then(t,t)),o.state.loading|=4,o.instance=y,Ht(y);return}y=r.ownerDocument||r,m=ng(m),(v=Ea.get(v))&&d2(m,v),y=y.createElement("link"),Ht(y);var Z=y;Z._p=new Promise(function(T,q){Z.onload=T,Z.onerror=q}),Ft(y,"link",m),o.instance=y}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=Ui.bind(t),r.addEventListener("load",o),r.addEventListener("error",o))}}var m2=0;function IC(t,r){return t.stylesheets&&t.count===0&&Gi(t,t.stylesheets),0<t.count||0<t.imgCount?function(o){var m=setTimeout(function(){if(t.stylesheets&&Gi(t,t.stylesheets),t.unsuspend){var y=t.unsuspend;t.unsuspend=null,y()}},6e4+r);0<t.imgBytes&&m2===0&&(m2=62500*EC());var v=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Gi(t,t.stylesheets),t.unsuspend)){var y=t.unsuspend;t.unsuspend=null,y()}},(t.imgBytes>m2?50:800)+r);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function Ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Pi=null;function Gi(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Pi=new Map,r.forEach(UC,t),Pi=null,Ui.call(t))}function UC(t,r){if(!(r.state.loading&4)){var o=Pi.get(t);if(o)var m=o.get(null);else{o=new Map,Pi.set(t,o);for(var v=t.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<v.length;y++){var Z=v[y];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(o.set(Z.dataset.precedence,Z),m=Z)}m&&o.set(null,m)}v=r.instance,Z=v.getAttribute("data-precedence"),y=o.get(Z)||m,y===m&&o.set(null,v),o.set(Z,v),this.count++,m=Ui.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),y?y.parentNode.insertBefore(v,y.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(v,t.firstChild)),r.state.loading|=4}}var Us={$$typeof:N,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function PC(t,r,o,m,v,y,Z,T,q){this.tag=1,this.containerInfo=t,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=io(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=io(0),this.hiddenUpdates=io(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=y,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function og(t,r,o,m,v,y,Z,T,q,ee,le,ue){return t=new PC(t,r,o,Z,q,ee,le,ue,T),r=1,y===!0&&(r|=24),y=la(3,null,null,r),t.current=y,y.stateNode=t,r=Po(),r.refCount++,t.pooledCache=r,r.refCount++,y.memoizedState={element:m,isDehydrated:o,cache:r},Xo(y),t}function cg(t){return t?(t=sr,t):sr}function ug(t,r,o,m,v,y){v=cg(v),m.context===null?m.context=v:m.pendingContext=v,m=zn(r),m.payload={element:o},y=y===void 0?null:y,y!==null&&(m.callback=y),o=qn(t,m,r),o!==null&&(ta(o,t,r),js(o,t,r))}function dg(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function f2(t,r){dg(t,r),(t=t.alternate)&&dg(t,r)}function hg(t){if(t.tag===13||t.tag===31){var r=b0(t,67108864);r!==null&&ta(r,t,67108864),f2(t,67108864)}}function mg(t){if(t.tag===13||t.tag===31){var r=da();r=oo(r);var o=b0(t,r);o!==null&&ta(o,t,r),f2(t,r)}}var Yi=!0;function GC(t,r,o,m){var v=k.T;k.T=null;var y=$.p;try{$.p=2,p2(t,r,o,m)}finally{$.p=y,k.T=v}}function YC(t,r,o,m){var v=k.T;k.T=null;var y=$.p;try{$.p=8,p2(t,r,o,m)}finally{$.p=y,k.T=v}}function p2(t,r,o,m){if(Yi){var v=g2(m);if(v===null)t2(t,r,m,Ki,o),pg(t,m);else if(XC(v,t,r,o,m))m.stopPropagation();else if(pg(t,m),r&4&&-1<KC.indexOf(t)){for(;v!==null;){var y=Y0(v);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var Z=f0(y.pendingLanes);if(Z!==0){var T=y;for(T.pendingLanes|=2,T.entangledLanes|=2;Z;){var q=1<<31-ra(Z);T.entanglements[1]|=q,Z&=~q}Ka(y),(Fe&6)===0&&(Vi=at()+500,Fs(0))}}break;case 31:case 13:T=b0(y,2),T!==null&&ta(T,y,2),Ti(),f2(y,2)}if(y=g2(m),y===null&&t2(t,r,m,Ki,o),y===v)break;v=y}v!==null&&m.stopPropagation()}else t2(t,r,m,null,o)}}function g2(t){return t=vo(t),x2(t)}var Ki=null;function x2(t){if(Ki=null,t=G0(t),t!==null){var r=u(t);if(r===null)t=null;else{var o=r.tag;if(o===13){if(t=d(r),t!==null)return t;t=null}else if(o===31){if(t=h(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Ki=t,null}function fg(t){switch(t){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(Ae()){case Qe:return 2;case Be:return 8;case Lt:case Dl:return 32;case ns:return 268435456;default:return 32}default:return 32}}var v2=!1,Jn=null,Wn=null,e0=null,Ps=new Map,Gs=new Map,t0=[],KC="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 pg(t,r){switch(t){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":e0=null;break;case"pointerover":case"pointerout":Ps.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(r.pointerId)}}function Ys(t,r,o,m,v,y){return t===null||t.nativeEvent!==y?(t={blockedOn:r,domEventName:o,eventSystemFlags:m,nativeEvent:y,targetContainers:[v]},r!==null&&(r=Y0(r),r!==null&&hg(r)),t):(t.eventSystemFlags|=m,r=t.targetContainers,v!==null&&r.indexOf(v)===-1&&r.push(v),t)}function XC(t,r,o,m,v){switch(r){case"focusin":return Jn=Ys(Jn,t,r,o,m,v),!0;case"dragenter":return Wn=Ys(Wn,t,r,o,m,v),!0;case"mouseover":return e0=Ys(e0,t,r,o,m,v),!0;case"pointerover":var y=v.pointerId;return Ps.set(y,Ys(Ps.get(y)||null,t,r,o,m,v)),!0;case"gotpointercapture":return y=v.pointerId,Gs.set(y,Ys(Gs.get(y)||null,t,r,o,m,v)),!0}return!1}function gg(t){var r=G0(t.target);if(r!==null){var o=u(r);if(o!==null){if(r=o.tag,r===13){if(r=d(o),r!==null){t.blockedOn=r,Hf(t.priority,function(){mg(o)});return}}else if(r===31){if(r=h(o),r!==null){t.blockedOn=r,Hf(t.priority,function(){mg(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Xi(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=g2(t.nativeEvent);if(o===null){o=t.nativeEvent;var m=new o.constructor(o.type,o);xo=m,o.target.dispatchEvent(m),xo=null}else return r=Y0(o),r!==null&&hg(r),t.blockedOn=o,!1;r.shift()}return!0}function xg(t,r,o){Xi(t)&&o.delete(r)}function QC(){v2=!1,Jn!==null&&Xi(Jn)&&(Jn=null),Wn!==null&&Xi(Wn)&&(Wn=null),e0!==null&&Xi(e0)&&(e0=null),Ps.forEach(xg),Gs.forEach(xg)}function Qi(t,r){t.blockedOn===r&&(t.blockedOn=null,v2||(v2=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,QC)))}var Ji=null;function vg(t){Ji!==t&&(Ji=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ji===t&&(Ji=null);for(var r=0;r<t.length;r+=3){var o=t[r],m=t[r+1],v=t[r+2];if(typeof m!="function"){if(x2(m||o)===null)continue;break}var y=Y0(o);y!==null&&(t.splice(r,3),r-=3,gc(y,{pending:!0,data:v,method:o.method,action:m},m,v))}}))}function Cr(t){function r(q){return Qi(q,t)}Jn!==null&&Qi(Jn,t),Wn!==null&&Qi(Wn,t),e0!==null&&Qi(e0,t),Ps.forEach(r),Gs.forEach(r);for(var o=0;o<t0.length;o++){var m=t0[o];m.blockedOn===t&&(m.blockedOn=null)}for(;0<t0.length&&(o=t0[0],o.blockedOn===null);)gg(o),o.blockedOn===null&&t0.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(m=0;m<o.length;m+=3){var v=o[m],y=o[m+1],Z=v[Kt]||null;if(typeof y=="function")Z||vg(o);else if(Z){var T=null;if(y&&y.hasAttribute("formAction")){if(v=y,Z=y[Kt]||null)T=Z.formAction;else if(x2(v)!==null)continue}else T=Z.action;typeof T=="function"?o[m+1]=T:(o.splice(m,3),m-=3),vg(o)}}}function bg(){function t(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(Z){return v=Z})},focusReset:"manual",scroll:"manual"})}function r(){v!==null&&(v(),v=null),m||setTimeout(o,20)}function o(){if(!m&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,v=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){m=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),v!==null&&(v(),v=null)}}}function b2(t){this._internalRoot=t}Wi.prototype.render=b2.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var o=r.current,m=da();ug(o,m,t,r,null,null)},Wi.prototype.unmount=b2.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;ug(t.current,2,null,t,null,null),Ti(),r[P0]=null}};function Wi(t){this._internalRoot=t}Wi.prototype.unstable_scheduleHydration=function(t){if(t){var r=Cf();t={blockedOn:null,target:t,priority:r};for(var o=0;o<t0.length&&r!==0&&r<t0[o].priority;o++);t0.splice(o,0,t),o===0&&gg(t)}};var yg=a.version;if(yg!=="19.2.4")throw Error(i(527,yg,"19.2.4"));$.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=p(r),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var JC={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var e1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e1.isDisabled&&e1.supportsFiber)try{Yt=e1.inject(JC),pt=e1}catch{}}return Xs.createRoot=function(t,r){if(!c(t))throw Error(i(299));var o=!1,m="",v=Sp,y=Zp,Z=Cp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(m=r.identifierPrefix),r.onUncaughtError!==void 0&&(v=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(Z=r.onRecoverableError)),r=og(t,1,!1,null,null,o,m,null,v,y,Z,bg),t[P0]=r.current,e2(t),new b2(r)},Xs.hydrateRoot=function(t,r,o){if(!c(t))throw Error(i(299));var m=!1,v="",y=Sp,Z=Zp,T=Cp,q=null;return o!=null&&(o.unstable_strictMode===!0&&(m=!0),o.identifierPrefix!==void 0&&(v=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(Z=o.onCaughtError),o.onRecoverableError!==void 0&&(T=o.onRecoverableError),o.formState!==void 0&&(q=o.formState)),r=og(t,1,!0,r,o??null,m,v,q,y,Z,T,bg),r.context=cg(null),o=r.current,m=da(),m=oo(m),v=zn(m),v.callback=null,qn(o,v,m),o=m,r.current.lanes=o,ss(r,o),Ka(r),t[P0]=r.current,e2(t),new Wi(r)},Xs.version="19.2.4",Xs}var Hg;function dH(){if(Hg)return A2.exports;Hg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}return e(),A2.exports=uH(),A2.exports}var hH=dH();/**
|
|
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 Vg="popstate";function _g(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function mH(e={}){function a(i,c){var p;let u=(p=c.state)==null?void 0:p.masked,{pathname:d,search:h,hash:f}=u||i.location;return Ah("",{pathname:d,search:h,hash:f},c.state&&c.state.usr||null,c.state&&c.state.key||"default",u?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function l(i,c){return typeof c=="string"?c:cl(c)}return pH(a,l,null,e)}function rt(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function qa(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function fH(){return Math.random().toString(36).substring(2,10)}function Tg(e,a){return{usr:e.state,key:e.key,idx:a,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Ah(e,a,l=null,i,c){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?Ur(a):a,state:l,key:a&&a.key||i||fH(),unstable_mask:c}}function cl({pathname:e="/",search:a="",hash:l=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function Ur(e){let a={};if(e){let l=e.indexOf("#");l>=0&&(a.hash=e.substring(l),e=e.substring(0,l));let i=e.indexOf("?");i>=0&&(a.search=e.substring(i),e=e.substring(0,i)),e&&(a.pathname=e)}return a}function pH(e,a,l,i={}){let{window:c=document.defaultView,v5Compat:u=!1}=i,d=c.history,h="POP",f=null,p=g();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function g(){return(d.state||{idx:null}).idx}function x(){h="POP";let j=g(),A=j==null?null:j-p;p=j,f&&f({action:h,location:E.location,delta:A})}function b(j,A){h="PUSH";let S=_g(j)?j:Ah(E.location,j,A);p=g()+1;let N=Tg(S,p),C=E.createHref(S.unstable_mask||S);try{d.pushState(N,"",C)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;c.location.assign(C)}u&&f&&f({action:h,location:E.location,delta:1})}function w(j,A){h="REPLACE";let S=_g(j)?j:Ah(E.location,j,A);p=g();let N=Tg(S,p),C=E.createHref(S.unstable_mask||S);d.replaceState(N,"",C),u&&f&&f({action:h,location:E.location,delta:0})}function M(j){return gH(j)}let E={get action(){return h},get location(){return e(c,d)},listen(j){if(f)throw new Error("A history only accepts one active listener");return c.addEventListener(Vg,x),f=j,()=>{c.removeEventListener(Vg,x),f=null}},createHref(j){return a(c,j)},createURL:M,encodeLocation(j){let A=M(j);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:w,go(j){return d.go(j)}};return E}function gH(e,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),rt(l,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:cl(e);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=l+i),new URL(i,l)}function oA(e,a,l="/"){return xH(e,a,l,!1)}function xH(e,a,l,i){let c=typeof a=="string"?Ur(a):a,u=Zn(c.pathname||"/",l);if(u==null)return null;let d=cA(e);vH(d);let h=null;for(let f=0;h==null&&f<d.length;++f){let p=CH(u);h=SH(d[f],p,i)}return h}function cA(e,a=[],l=[],i="",c=!1){let u=(d,h,f=c,p)=>{let g={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&f)return;rt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let x=Ja([i,g.relativePath]),b=l.concat(g);d.children&&d.children.length>0&&(rt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),cA(d.children,a,b,x,f)),!(d.path==null&&!d.index)&&a.push({path:x,score:NH(x,d.index),routesMeta:b})};return e.forEach((d,h)=>{var f;if(d.path===""||!((f=d.path)!=null&&f.includes("?")))u(d,h);else for(let p of uA(d.path))u(d,h,!0,p)}),a}function uA(e){let a=e.split("/");if(a.length===0)return[];let[l,...i]=a,c=l.endsWith("?"),u=l.replace(/\?$/,"");if(i.length===0)return c?[u,""]:[u];let d=uA(i.join("/")),h=[];return h.push(...d.map(f=>f===""?u:[u,f].join("/"))),c&&h.push(...d),h.map(f=>e.startsWith("/")&&f===""?"/":f)}function vH(e){e.sort((a,l)=>a.score!==l.score?l.score-a.score:MH(a.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var bH=/^:[\w-]+$/,yH=3,wH=2,AH=1,jH=10,EH=-2,Lg=e=>e==="*";function NH(e,a){let l=e.split("/"),i=l.length;return l.some(Lg)&&(i+=EH),a&&(i+=wH),l.filter(c=>!Lg(c)).reduce((c,u)=>c+(bH.test(u)?yH:u===""?AH:jH),i)}function MH(e,a){return e.length===a.length&&e.slice(0,-1).every((i,c)=>i===a[c])?e[e.length-1]-a[a.length-1]:0}function SH(e,a,l=!1){let{routesMeta:i}=e,c={},u="/",d=[];for(let h=0;h<i.length;++h){let f=i[h],p=h===i.length-1,g=u==="/"?a:a.slice(u.length)||"/",x=j1({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},g),b=f.route;if(!x&&p&&l&&!i[i.length-1].route.index&&(x=j1({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},g)),!x)return null;Object.assign(c,x.params),d.push({params:c,pathname:Ja([u,x.pathname]),pathnameBase:TH(Ja([u,x.pathnameBase])),route:b}),x.pathnameBase!=="/"&&(u=Ja([u,x.pathnameBase]))}return d}function j1(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,i]=ZH(e.path,e.caseSensitive,e.end),c=a.match(l);if(!c)return null;let u=c[0],d=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:x},b)=>{if(g==="*"){let M=h[b]||"";d=u.slice(0,u.length-M.length).replace(/(.)\/+$/,"$1")}const w=h[b];return x&&!w?p[g]=void 0:p[g]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:d,pattern:e}}function ZH(e,a=!1,l=!0){qa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],c="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,f,p,g)=>{if(i.push({paramName:h,isOptional:f!=null}),f){let x=g.charAt(p+d.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),c+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":e!==""&&e!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),i]}function CH(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return qa(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),e}}function Zn(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,i=e.charAt(l);return i&&i!=="/"?null:e.slice(l)||"/"}var HH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function VH(e,a="/"){let{pathname:l,search:i="",hash:c=""}=typeof e=="string"?Ur(e):e,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=Rg(l.substring(1),"/"):u=Rg(l,a)):u=a,{pathname:u,search:LH(i),hash:RH(c)}}function Rg(e,a){let l=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function M2(e,a,l,i){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _H(e){return e.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function dm(e){let a=_H(e);return a.map((l,i)=>i===a.length-1?l.pathname:l.pathnameBase)}function R1(e,a,l,i=!1){let c;typeof e=="string"?c=Ur(e):(c={...e},rt(!c.pathname||!c.pathname.includes("?"),M2("?","pathname","search",c)),rt(!c.pathname||!c.pathname.includes("#"),M2("#","pathname","hash",c)),rt(!c.search||!c.search.includes("#"),M2("#","search","hash",c)));let u=e===""||c.pathname==="",d=u?"/":c.pathname,h;if(d==null)h=l;else{let x=a.length-1;if(!i&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),x-=1;c.pathname=b.join("/")}h=x>=0?a[x]:"/"}let f=VH(c,h),p=d&&d!=="/"&&d.endsWith("/"),g=(u||d===".")&&l.endsWith("/");return!f.pathname.endsWith("/")&&(p||g)&&(f.pathname+="/"),f}var Ja=e=>e.join("/").replace(/\/\/+/g,"/"),TH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,kH=class{constructor(e,a,l,i=!1){this.status=e,this.statusText=a||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function DH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function OH(e){return e.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var dA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function hA(e,a){let l=e;if(typeof l!="string"||!HH.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let i=l,c=!1;if(dA)try{let u=new URL(window.location.href),d=l.startsWith("//")?new URL(u.protocol+l):new URL(l),h=Zn(d.pathname,a);d.origin===u.origin&&h!=null?l=h+d.search+d.hash:c=!0}catch{qa(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mA=["POST","PUT","PATCH","DELETE"];new Set(mA);var FH=["GET",...mA];new Set(FH);var Pr=n.createContext(null);Pr.displayName="DataRouter";var k1=n.createContext(null);k1.displayName="DataRouterState";var zH=n.createContext(!1),fA=n.createContext({isTransitioning:!1});fA.displayName="ViewTransition";var qH=n.createContext(new Map);qH.displayName="Fetchers";var $H=n.createContext(null);$H.displayName="Await";var ma=n.createContext(null);ma.displayName="Navigation";var vl=n.createContext(null);vl.displayName="Location";var Ha=n.createContext({outlet:null,matches:[],isDataRoute:!1});Ha.displayName="Route";var hm=n.createContext(null);hm.displayName="RouteError";var pA="REACT_ROUTER_ERROR",BH="REDIRECT",IH="ROUTE_ERROR_RESPONSE";function UH(e){if(e.startsWith(`${pA}:${BH}:{`))try{let a=JSON.parse(e.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function PH(e){if(e.startsWith(`${pA}:${IH}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new kH(a.status,a.statusText,a.data)}catch{}}function GH(e,{relative:a}={}){rt(Gr(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=n.useContext(ma),{hash:c,pathname:u,search:d}=yl(e,{relative:a}),h=u;return l!=="/"&&(h=u==="/"?l:Ja([l,u])),i.createHref({pathname:h,search:d,hash:c})}function Gr(){return n.useContext(vl)!=null}function an(){return rt(Gr(),"useLocation() may be used only in the context of a <Router> component."),n.useContext(vl).location}var gA="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xA(e){n.useContext(ma).static||n.useLayoutEffect(e)}function u0(){let{isDataRoute:e}=n.useContext(Ha);return e?oV():YH()}function YH(){rt(Gr(),"useNavigate() may be used only in the context of a <Router> component.");let e=n.useContext(Pr),{basename:a,navigator:l}=n.useContext(ma),{matches:i}=n.useContext(Ha),{pathname:c}=an(),u=JSON.stringify(dm(i)),d=n.useRef(!1);return xA(()=>{d.current=!0}),n.useCallback((f,p={})=>{if(qa(d.current,gA),!d.current)return;if(typeof f=="number"){l.go(f);return}let g=R1(f,JSON.parse(u),c,p.relative==="path");e==null&&a!=="/"&&(g.pathname=g.pathname==="/"?a:Ja([a,g.pathname])),(p.replace?l.replace:l.push)(g,p.state,p)},[a,l,u,c,e])}var KH=n.createContext(null);function XH(e){let a=n.useContext(Ha).outlet;return n.useMemo(()=>a&&n.createElement(KH.Provider,{value:e},a),[a,e])}function bl(){let{matches:e}=n.useContext(Ha),a=e[e.length-1];return a?a.params:{}}function yl(e,{relative:a}={}){let{matches:l}=n.useContext(Ha),{pathname:i}=an(),c=JSON.stringify(dm(l));return n.useMemo(()=>R1(e,JSON.parse(c),i,a==="path"),[e,c,i,a])}function QH(e,a){return vA(e,a)}function vA(e,a,l){var j;rt(Gr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=n.useContext(ma),{matches:c}=n.useContext(Ha),u=c[c.length-1],d=u?u.params:{},h=u?u.pathname:"/",f=u?u.pathnameBase:"/",p=u&&u.route;{let A=p&&p.path||"";yA(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let g=an(),x;if(a){let A=typeof a=="string"?Ur(a):a;rt(f==="/"||((j=A.pathname)==null?void 0:j.startsWith(f)),`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 "${f}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=g;let b=x.pathname||"/",w=b;if(f!=="/"){let A=f.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let M=oA(e,{pathname:w});qa(p||M!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),qa(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 E=aV(M&&M.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:Ja([f,i.encodeLocation?i.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:Ja([f,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,l);return a&&E?n.createElement(vl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},E):E}function JH(){let e=iV(),a=DH(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),l=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:u},"ErrorBoundary")," or"," ",n.createElement("code",{style:u},"errorElement")," prop on your route.")),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},a),l?n.createElement("pre",{style:c},l):null,d)}var WH=n.createElement(JH,null),bA=class extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,a){return a.location!==e.location||a.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:a.error,location:a.location,revalidation:e.revalidation||a.revalidation}}componentDidCatch(e,a){this.props.onError?this.props.onError(e,a):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const l=PH(e.digest);l&&(e=l)}let a=e!==void 0?n.createElement(Ha.Provider,{value:this.props.routeContext},n.createElement(hm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?n.createElement(eV,{error:e},a):a}};bA.contextType=zH;var S2=new WeakMap;function eV({children:e,error:a}){let{basename:l}=n.useContext(ma);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let i=UH(a.digest);if(i){let c=S2.get(a);if(c)throw c;let u=hA(i.location,l);if(dA&&!S2.get(a))if(u.isExternal||i.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:i.replace}));throw S2.set(a,d),d}return n.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function tV({routeContext:e,match:a,children:l}){let i=n.useContext(Pr);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),n.createElement(Ha.Provider,{value:e},l)}function aV(e,a=[],l){let i=l==null?void 0:l.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(a.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let c=e,u=i==null?void 0:i.errors;if(u!=null){let g=c.findIndex(x=>x.route.id&&(u==null?void 0:u[x.route.id])!==void 0);rt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let d=!1,h=-1;if(l&&i){d=i.renderFallback;for(let g=0;g<c.length;g++){let x=c[g];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(h=g),x.route.id){let{loaderData:b,errors:w}=i,M=x.route.loader&&!b.hasOwnProperty(x.route.id)&&(!w||w[x.route.id]===void 0);if(x.route.lazy||M){l.isStatic&&(d=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let f=l==null?void 0:l.onError,p=i&&f?(g,x)=>{var b,w;f(g,{location:i.location,params:((w=(b=i.matches)==null?void 0:b[0])==null?void 0:w.params)??{},unstable_pattern:OH(i.matches),errorInfo:x})}:void 0;return c.reduceRight((g,x,b)=>{let w,M=!1,E=null,j=null;i&&(w=u&&x.route.id?u[x.route.id]:void 0,E=x.route.errorElement||WH,d&&(h<0&&b===0?(yA("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,j=null):h===b&&(M=!0,j=x.route.hydrateFallbackElement||null)));let A=a.concat(c.slice(0,b+1)),S=()=>{let N;return w?N=E:M?N=j:x.route.Component?N=n.createElement(x.route.Component,null):x.route.element?N=x.route.element:N=g,n.createElement(tV,{match:x,routeContext:{outlet:g,matches:A,isDataRoute:i!=null},children:N})};return i&&(x.route.ErrorBoundary||x.route.errorElement||b===0)?n.createElement(bA,{location:i.location,revalidation:i.revalidation,component:E,error:w,children:S(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):S()},null)}function mm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nV(e){let a=n.useContext(Pr);return rt(a,mm(e)),a}function rV(e){let a=n.useContext(k1);return rt(a,mm(e)),a}function sV(e){let a=n.useContext(Ha);return rt(a,mm(e)),a}function fm(e){let a=sV(e),l=a.matches[a.matches.length-1];return rt(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function lV(){return fm("useRouteId")}function iV(){var i;let e=n.useContext(hm),a=rV("useRouteError"),l=fm("useRouteError");return e!==void 0?e:(i=a.errors)==null?void 0:i[l]}function oV(){let{router:e}=nV("useNavigate"),a=fm("useNavigate"),l=n.useRef(!1);return xA(()=>{l.current=!0}),n.useCallback(async(c,u={})=>{qa(l.current,gA),l.current&&(typeof c=="number"?await e.navigate(c):await e.navigate(c,{fromRouteId:a,...u}))},[e,a])}var kg={};function yA(e,a,l){!a&&!kg[e]&&(kg[e]=!0,qa(!1,l))}n.memo(cV);function cV({routes:e,future:a,state:l,isStatic:i,onError:c}){return vA(e,void 0,{state:l,isStatic:i,onError:c})}function wA({to:e,replace:a,state:l,relative:i}){rt(Gr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=n.useContext(ma);qa(!c,"<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:u}=n.useContext(Ha),{pathname:d}=an(),h=u0(),f=R1(e,dm(u),d,i==="path"),p=JSON.stringify(f);return n.useEffect(()=>{h(JSON.parse(p),{replace:a,state:l,relative:i})},[h,p,i,a,l]),null}function uV(e){return XH(e.context)}function He(e){rt(!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 dV({basename:e="/",children:a=null,location:l,navigationType:i="POP",navigator:c,static:u=!1,unstable_useTransitions:d}){rt(!Gr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),f=n.useMemo(()=>({basename:h,navigator:c,static:u,unstable_useTransitions:d,future:{}}),[h,c,u,d]);typeof l=="string"&&(l=Ur(l));let{pathname:p="/",search:g="",hash:x="",state:b=null,key:w="default",unstable_mask:M}=l,E=n.useMemo(()=>{let j=Zn(p,h);return j==null?null:{location:{pathname:j,search:g,hash:x,state:b,key:w,unstable_mask:M},navigationType:i}},[h,p,g,x,b,w,i,M]);return qa(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:n.createElement(ma.Provider,{value:f},n.createElement(vl.Provider,{children:a,value:E}))}function hV({children:e,location:a}){return QH(jh(e),a)}function jh(e,a=[]){let l=[];return n.Children.forEach(e,(i,c)=>{if(!n.isValidElement(i))return;let u=[...a,c];if(i.type===n.Fragment){l.push.apply(l,jh(i.props.children,u));return}rt(i.type===He,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),rt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=jh(i.props.children,u)),l.push(d)}),l}var d1="get",h1="application/x-www-form-urlencoded";function D1(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function mV(e){return D1(e)&&e.tagName.toLowerCase()==="button"}function fV(e){return D1(e)&&e.tagName.toLowerCase()==="form"}function pV(e){return D1(e)&&e.tagName.toLowerCase()==="input"}function gV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xV(e,a){return e.button===0&&(!a||a==="_self")&&!gV(e)}var a1=null;function vV(){if(a1===null)try{new FormData(document.createElement("form"),0),a1=!1}catch{a1=!0}return a1}var bV=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Z2(e){return e!=null&&!bV.has(e)?(qa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${h1}"`),null):e}function yV(e,a){let l,i,c,u,d;if(fV(e)){let h=e.getAttribute("action");i=h?Zn(h,a):null,l=e.getAttribute("method")||d1,c=Z2(e.getAttribute("enctype"))||h1,u=new FormData(e)}else if(mV(e)||pV(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||h.getAttribute("action");if(i=f?Zn(f,a):null,l=e.getAttribute("formmethod")||h.getAttribute("method")||d1,c=Z2(e.getAttribute("formenctype"))||Z2(h.getAttribute("enctype"))||h1,u=new FormData(h,e),!vV()){let{name:p,type:g,value:x}=e;if(g==="image"){let b=p?`${p}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else p&&u.append(p,x)}}else{if(D1(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=d1,i=null,c=h1,d=e}return u&&c==="text/plain"&&(d=u,u=void 0),{action:i,method:l.toLowerCase(),encType:c,formData:u,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pm(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function wV(e,a,l,i){let c=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:a&&Zn(c.pathname,a)==="/"?c.pathname=`${a.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function AV(e,a){if(e.id in a)return a[e.id];try{let l=await import(e.module);return a[e.id]=l,l}catch(l){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jV(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function EV(e,a,l){let i=await Promise.all(e.map(async c=>{let u=a.routes[c.route.id];if(u){let d=await AV(u,l);return d.links?d.links():[]}return[]}));return ZV(i.flat(1).filter(jV).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Dg(e,a,l,i,c,u){let d=(f,p)=>l[p]?f.route.id!==l[p].route.id:!0,h=(f,p)=>{var g;return l[p].pathname!==f.pathname||((g=l[p].route.path)==null?void 0:g.endsWith("*"))&&l[p].params["*"]!==f.params["*"]};return u==="assets"?a.filter((f,p)=>d(f,p)||h(f,p)):u==="data"?a.filter((f,p)=>{var x;let g=i.routes[f.route.id];if(!g||!g.hasLoader)return!1;if(d(f,p)||h(f,p))return!0;if(f.route.shouldRevalidate){let b=f.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((x=l[0])==null?void 0:x.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function NV(e,a,{includeHydrateFallback:l}={}){return MV(e.map(i=>{let c=a.routes[i.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),l&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function MV(e){return[...new Set(e)]}function SV(e){let a={},l=Object.keys(e).sort();for(let i of l)a[i]=e[i];return a}function ZV(e,a){let l=new Set;return new Set(a),e.reduce((i,c)=>{let u=JSON.stringify(SV(c));return l.has(u)||(l.add(u),i.push({key:u,link:c})),i},[])}function AA(){let e=n.useContext(Pr);return pm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function CV(){let e=n.useContext(k1);return pm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gm=n.createContext(void 0);gm.displayName="FrameworkContext";function jA(){let e=n.useContext(gm);return pm(e,"You must render this element inside a <HydratedRouter> element"),e}function HV(e,a){let l=n.useContext(gm),[i,c]=n.useState(!1),[u,d]=n.useState(!1),{onFocus:h,onBlur:f,onMouseEnter:p,onMouseLeave:g,onTouchStart:x}=a,b=n.useRef(null);n.useEffect(()=>{if(e==="render"&&d(!0),e==="viewport"){let E=A=>{A.forEach(S=>{d(S.isIntersecting)})},j=new IntersectionObserver(E,{threshold:.5});return b.current&&j.observe(b.current),()=>{j.disconnect()}}},[e]),n.useEffect(()=>{if(i){let E=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(E)}}},[i]);let w=()=>{c(!0)},M=()=>{c(!1),d(!1)};return l?e!=="intent"?[u,b,{}]:[u,b,{onFocus:Qs(h,w),onBlur:Qs(f,M),onMouseEnter:Qs(p,w),onMouseLeave:Qs(g,M),onTouchStart:Qs(x,w)}]:[!1,b,{}]}function Qs(e,a){return l=>{e&&e(l),l.defaultPrevented||a(l)}}function VV({page:e,...a}){let{router:l}=AA(),i=n.useMemo(()=>oA(l.routes,e,l.basename),[l.routes,e,l.basename]);return i?n.createElement(TV,{page:e,matches:i,...a}):null}function _V(e){let{manifest:a,routeModules:l}=jA(),[i,c]=n.useState([]);return n.useEffect(()=>{let u=!1;return EV(e,a,l).then(d=>{u||c(d)}),()=>{u=!0}},[e,a,l]),i}function TV({page:e,matches:a,...l}){let i=an(),{future:c,manifest:u,routeModules:d}=jA(),{basename:h}=AA(),{loaderData:f,matches:p}=CV(),g=n.useMemo(()=>Dg(e,a,p,u,i,"data"),[e,a,p,u,i]),x=n.useMemo(()=>Dg(e,a,p,u,i,"assets"),[e,a,p,u,i]),b=n.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,j=!1;if(a.forEach(S=>{var C;let N=u.routes[S.route.id];!N||!N.hasLoader||(!g.some(V=>V.route.id===S.route.id)&&S.route.id in f&&((C=d[S.route.id])!=null&&C.shouldRevalidate)||N.hasClientLoader?j=!0:E.add(S.route.id))}),E.size===0)return[];let A=wV(e,h,c.unstable_trailingSlashAwareDataRequests,"data");return j&&E.size>0&&A.searchParams.set("_routes",a.filter(S=>E.has(S.route.id)).map(S=>S.route.id).join(",")),[A.pathname+A.search]},[h,c.unstable_trailingSlashAwareDataRequests,f,i,u,g,a,e,d]),w=n.useMemo(()=>NV(x,u),[x,u]),M=_V(x);return n.createElement(n.Fragment,null,b.map(E=>n.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),w.map(E=>n.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),M.map(({key:E,link:j})=>n.createElement("link",{key:E,nonce:l.nonce,...j,crossOrigin:j.crossOrigin??l.crossOrigin})))}function LV(...e){return a=>{e.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var RV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{RV&&(window.__reactRouterVersion="7.13.1")}catch{}function kV({basename:e,children:a,unstable_useTransitions:l,window:i}){let c=n.useRef();c.current==null&&(c.current=mH({window:i,v5Compat:!0}));let u=c.current,[d,h]=n.useState({action:u.action,location:u.location}),f=n.useCallback(p=>{l===!1?h(p):n.startTransition(()=>h(p))},[l]);return n.useLayoutEffect(()=>u.listen(f),[u,f]),n.createElement(dV,{basename:e,children:a,location:d.location,navigationType:d.action,navigator:u,unstable_useTransitions:l})}var EA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Et=n.forwardRef(function({onClick:a,discover:l="render",prefetch:i="none",relative:c,reloadDocument:u,replace:d,unstable_mask:h,state:f,target:p,to:g,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:w,...M},E){let{basename:j,navigator:A,unstable_useTransitions:S}=n.useContext(ma),N=typeof g=="string"&&EA.test(g),C=hA(g,j);g=C.to;let V=GH(g,{relative:c}),_=an(),H=null;if(h){let Y=R1(h,[],_.unstable_mask?_.unstable_mask.pathname:"/",!0);j!=="/"&&(Y.pathname=Y.pathname==="/"?j:Ja([j,Y.pathname])),H=A.createHref(Y)}let[R,L,O]=HV(i,M),I=FV(g,{replace:d,unstable_mask:h,state:f,target:p,preventScrollReset:x,relative:c,viewTransition:b,unstable_defaultShouldRevalidate:w,unstable_useTransitions:S});function X(Y){a&&a(Y),Y.defaultPrevented||I(Y)}let K=!(C.isExternal||u),B=n.createElement("a",{...M,...O,href:(K?H:void 0)||C.absoluteURL||V,onClick:K?X:a,ref:LV(E,L),target:p,"data-discover":!N&&l==="render"?"true":void 0});return R&&!N?n.createElement(n.Fragment,null,B,n.createElement(VV,{page:V})):B});Et.displayName="Link";var O0=n.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:i="",end:c=!1,style:u,to:d,viewTransition:h,children:f,...p},g){let x=yl(d,{relative:p.relative}),b=an(),w=n.useContext(k1),{navigator:M,basename:E}=n.useContext(ma),j=w!=null&&IV(x)&&h===!0,A=M.encodeLocation?M.encodeLocation(x).pathname:x.pathname,S=b.pathname,N=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;l||(S=S.toLowerCase(),N=N?N.toLowerCase():null,A=A.toLowerCase()),N&&E&&(N=Zn(N,E)||N);const C=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let V=S===A||!c&&S.startsWith(A)&&S.charAt(C)==="/",_=N!=null&&(N===A||!c&&N.startsWith(A)&&N.charAt(A.length)==="/"),H={isActive:V,isPending:_,isTransitioning:j},R=V?a:void 0,L;typeof i=="function"?L=i(H):L=[i,V?"active":null,_?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let O=typeof u=="function"?u(H):u;return n.createElement(Et,{...p,"aria-current":R,className:L,ref:g,style:O,to:d,viewTransition:h},typeof f=="function"?f(H):f)});O0.displayName="NavLink";var DV=n.forwardRef(({discover:e="render",fetcherKey:a,navigate:l,reloadDocument:i,replace:c,state:u,method:d=d1,action:h,onSubmit:f,relative:p,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:b,...w},M)=>{let{unstable_useTransitions:E}=n.useContext(ma),j=$V(),A=BV(h,{relative:p}),S=d.toLowerCase()==="get"?"get":"post",N=typeof h=="string"&&EA.test(h),C=V=>{if(f&&f(V),V.defaultPrevented)return;V.preventDefault();let _=V.nativeEvent.submitter,H=(_==null?void 0:_.getAttribute("formmethod"))||d,R=()=>j(_||V.currentTarget,{fetcherKey:a,method:H,navigate:l,replace:c,state:u,relative:p,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:b});E&&l!==!1?n.startTransition(()=>R()):R()};return n.createElement("form",{ref:M,method:S,action:A,onSubmit:i?f:C,...w,"data-discover":!N&&e==="render"?"true":void 0})});DV.displayName="Form";function OV(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function NA(e){let a=n.useContext(Pr);return rt(a,OV(e)),a}function FV(e,{target:a,replace:l,unstable_mask:i,state:c,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:f,unstable_useTransitions:p}={}){let g=u0(),x=an(),b=yl(e,{relative:d});return n.useCallback(w=>{if(xV(w,a)){w.preventDefault();let M=l!==void 0?l:cl(x)===cl(b),E=()=>g(e,{replace:M,unstable_mask:i,state:c,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:f});p?n.startTransition(()=>E()):E()}},[x,g,b,l,i,c,a,e,u,d,h,f,p])}var zV=0,qV=()=>`__${String(++zV)}__`;function $V(){let{router:e}=NA("useSubmit"),{basename:a}=n.useContext(ma),l=lV(),i=e.fetch,c=e.navigate;return n.useCallback(async(u,d={})=>{let{action:h,method:f,encType:p,formData:g,body:x}=yV(u,a);if(d.navigate===!1){let b=d.fetcherKey||qV();await i(b,l,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:g,body:x,formMethod:d.method||f,formEncType:d.encType||p,flushSync:d.flushSync})}else await c(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:g,body:x,formMethod:d.method||f,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,c,a,l])}function BV(e,{relative:a}={}){let{basename:l}=n.useContext(ma),i=n.useContext(Ha);rt(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),u={...yl(e||".",{relative:a})},d=an();if(e==null){u.search=d.search;let h=new URLSearchParams(u.search),f=h.getAll("index");if(f.some(g=>g==="")){h.delete("index"),f.filter(x=>x).forEach(x=>h.append("index",x));let g=h.toString();u.search=g?`?${g}`:""}}return(!e||e===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:Ja([l,u.pathname])),cl(u)}function IV(e,{relative:a}={}){let l=n.useContext(fA);rt(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=NA("useViewTransitionState"),c=yl(e,{relative:a});if(!l.isTransitioning)return!1;let u=Zn(l.currentLocation.pathname,i)||l.currentLocation.pathname,d=Zn(l.nextLocation.pathname,i)||l.nextLocation.pathname;return j1(c.pathname,d)!=null||j1(c.pathname,u)!=null}const MA="";function nn(){return localStorage.getItem("ohwow-session-token")}function Eh(e){localStorage.setItem("ohwow-session-token",e)}function SA(){localStorage.removeItem("ohwow-session-token")}async function me(e,a={}){const l=nn(),i=await fetch(`${MA}${e}`,{...a,headers:{"Content-Type":"application/json",...l?{Authorization:`Bearer ${l}`}:{},...a.headers}});if(i.status===401)throw SA(),window.location.href="/ui/login",new Error("Unauthorized");if(!i.ok){const c=await i.json().catch(()=>({error:i.statusText}));throw new Error(c.error||`HTTP ${i.status}`)}return i.json()}async function*ZA(e,a,l){const i=nn(),c=await fetch(`${MA}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json",...i?{Authorization:`Bearer ${i}`}:{}},body:JSON.stringify({message:e,sessionId:a,model:l})});if(!c.ok||!c.body)throw new Error("Chat request failed");const u=c.body.getReader(),d=new TextDecoder;let h="";for(;;){const{done:f,value:p}=await u.read();if(f)break;h+=d.decode(p,{stream:!0});const g=h.split(`
|
|
61
|
-
`);h=g.pop()||"";for(const x of g)if(x.startsWith("data: ")){const b=x.slice(6).trim();if(b==="[DONE]")return;try{yield JSON.parse(b)}catch{}}}}class CA extends n.Component{constructor(a){super(a),this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,l){console.error("[ErrorBoundary]",a,l.componentStack)}render(){var a;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-neutral-400 mb-4",children:(a=this.state.error)==null?void 0:a.message}),s.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"px-4 py-2 text-xs bg-white/5 border border-white/[0.08] rounded-lg hover:bg-white/[0.06] transition-colors",children:"Try again"})]})}):this.props.children}}const xm=n.createContext({});function vm(e){const a=n.useRef(null);return a.current===null&&(a.current=e()),a.current}const HA=typeof window<"u",VA=HA?n.useLayoutEffect:n.useEffect,O1=n.createContext(null);function bm(e,a){e.indexOf(a)===-1&&e.push(a)}function E1(e,a){const l=e.indexOf(a);l>-1&&e.splice(l,1)}const en=(e,a,l)=>l>a?a:l<e?e:l;let ym=()=>{};const Cn={},_A=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function TA(e){return typeof e=="object"&&e!==null}const LA=e=>/^0[^.\s]+$/u.test(e);function RA(e){let a;return()=>(a===void 0&&(a=e()),a)}const Za=e=>e,UV=(e,a)=>l=>a(e(l)),wl=(...e)=>e.reduce(UV),ul=(e,a,l)=>{const i=a-e;return i===0?1:(l-e)/i};class wm{constructor(){this.subscriptions=[]}add(a){return bm(this.subscriptions,a),()=>E1(this.subscriptions,a)}notify(a,l,i){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](a,l,i);else for(let u=0;u<c;u++){const d=this.subscriptions[u];d&&d(a,l,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Oa=e=>e*1e3,Sa=e=>e/1e3;function kA(e,a){return a?e*(1e3/a):0}const DA=(e,a,l)=>(((1-3*l+3*a)*e+(3*l-6*a))*e+3*a)*e,PV=1e-7,GV=12;function YV(e,a,l,i,c){let u,d,h=0;do d=a+(l-a)/2,u=DA(d,i,c)-e,u>0?l=d:a=d;while(Math.abs(u)>PV&&++h<GV);return d}function Al(e,a,l,i){if(e===a&&l===i)return Za;const c=u=>YV(u,0,1,e,l);return u=>u===0||u===1?u:DA(c(u),a,i)}const OA=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2,FA=e=>a=>1-e(1-a),zA=Al(.33,1.53,.69,.99),Am=FA(zA),qA=OA(Am),$A=e=>(e*=2)<1?.5*Am(e):.5*(2-Math.pow(2,-10*(e-1))),jm=e=>1-Math.sin(Math.acos(e)),BA=FA(jm),IA=OA(jm),KV=Al(.42,0,1,1),XV=Al(0,0,.58,1),UA=Al(.42,0,.58,1),QV=e=>Array.isArray(e)&&typeof e[0]!="number",PA=e=>Array.isArray(e)&&typeof e[0]=="number",JV={linear:Za,easeIn:KV,easeInOut:UA,easeOut:XV,circIn:jm,circInOut:IA,circOut:BA,backIn:Am,backInOut:qA,backOut:zA,anticipate:$A},WV=e=>typeof e=="string",Og=e=>{if(PA(e)){ym(e.length===4);const[a,l,i,c]=e;return Al(a,l,i,c)}else if(WV(e))return JV[e];return e},n1=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function e_(e,a){let l=new Set,i=new Set,c=!1,u=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function f(g){d.has(g)&&(p.schedule(g),e()),g(h)}const p={schedule:(g,x=!1,b=!1)=>{const M=b&&c?l:i;return x&&d.add(g),M.has(g)||M.add(g),g},cancel:g=>{i.delete(g),d.delete(g)},process:g=>{if(h=g,c){u=!0;return}c=!0,[l,i]=[i,l],l.forEach(f),l.clear(),c=!1,u&&(u=!1,p.process(g))}};return p}const t_=40;function GA(e,a){let l=!1,i=!0;const c={delta:0,timestamp:0,isProcessing:!1},u=()=>l=!0,d=n1.reduce((N,C)=>(N[C]=e_(u),N),{}),{setup:h,read:f,resolveKeyframes:p,preUpdate:g,update:x,preRender:b,render:w,postRender:M}=d,E=()=>{const N=Cn.useManualTiming?c.timestamp:performance.now();l=!1,Cn.useManualTiming||(c.delta=i?1e3/60:Math.max(Math.min(N-c.timestamp,t_),1)),c.timestamp=N,c.isProcessing=!0,h.process(c),f.process(c),p.process(c),g.process(c),x.process(c),b.process(c),w.process(c),M.process(c),c.isProcessing=!1,l&&a&&(i=!1,e(E))},j=()=>{l=!0,i=!0,c.isProcessing||e(E)};return{schedule:n1.reduce((N,C)=>{const V=d[C];return N[C]=(_,H=!1,R=!1)=>(l||j(),V.schedule(_,H,R)),N},{}),cancel:N=>{for(let C=0;C<n1.length;C++)d[n1[C]].cancel(N)},state:c,steps:d}}const{schedule:Je,cancel:c0,state:zt,steps:C2}=GA(typeof requestAnimationFrame<"u"?requestAnimationFrame:Za,!0);let m1;function a_(){m1=void 0}const Ut={now:()=>(m1===void 0&&Ut.set(zt.isProcessing||Cn.useManualTiming?zt.timestamp:performance.now()),m1),set:e=>{m1=e,queueMicrotask(a_)}},YA=e=>a=>typeof a=="string"&&a.startsWith(e),KA=YA("--"),n_=YA("var(--"),Em=e=>n_(e)?r_.test(e.split("/*")[0].trim()):!1,r_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Fg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dl={...Yr,transform:e=>en(0,1,e)},r1={...Yr,default:1},rl=e=>Math.round(e*1e5)/1e5,Nm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function s_(e){return e==null}const l_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mm=(e,a)=>l=>!!(typeof l=="string"&&l_.test(l)&&l.startsWith(e)||a&&!s_(l)&&Object.prototype.hasOwnProperty.call(l,a)),XA=(e,a,l)=>i=>{if(typeof i!="string")return i;const[c,u,d,h]=i.match(Nm);return{[e]:parseFloat(c),[a]:parseFloat(u),[l]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},i_=e=>en(0,255,e),H2={...Yr,transform:e=>Math.round(i_(e))},L0={test:Mm("rgb","red"),parse:XA("red","green","blue"),transform:({red:e,green:a,blue:l,alpha:i=1})=>"rgba("+H2.transform(e)+", "+H2.transform(a)+", "+H2.transform(l)+", "+rl(dl.transform(i))+")"};function o_(e){let a="",l="",i="",c="";return e.length>5?(a=e.substring(1,3),l=e.substring(3,5),i=e.substring(5,7),c=e.substring(7,9)):(a=e.substring(1,2),l=e.substring(2,3),i=e.substring(3,4),c=e.substring(4,5),a+=a,l+=l,i+=i,c+=c),{red:parseInt(a,16),green:parseInt(l,16),blue:parseInt(i,16),alpha:c?parseInt(c,16)/255:1}}const Nh={test:Mm("#"),parse:o_,transform:L0.transform},jl=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),r0=jl("deg"),Wa=jl("%"),ge=jl("px"),c_=jl("vh"),u_=jl("vw"),zg={...Wa,parse:e=>Wa.parse(e)/100,transform:e=>Wa.transform(e*100)},Tr={test:Mm("hsl","hue"),parse:XA("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:l,alpha:i=1})=>"hsla("+Math.round(e)+", "+Wa.transform(rl(a))+", "+Wa.transform(rl(l))+", "+rl(dl.transform(i))+")"},jt={test:e=>L0.test(e)||Nh.test(e)||Tr.test(e),parse:e=>L0.test(e)?L0.parse(e):Tr.test(e)?Tr.parse(e):Nh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?L0.transform(e):Tr.transform(e),getAnimatableNone:e=>{const a=jt.parse(e);return a.alpha=0,jt.transform(a)}},d_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function h_(e){var a,l;return isNaN(e)&&typeof e=="string"&&(((a=e.match(Nm))==null?void 0:a.length)||0)+(((l=e.match(d_))==null?void 0:l.length)||0)>0}const QA="number",JA="color",m_="var",f_="var(",qg="${}",p_=/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 hl(e){const a=e.toString(),l=[],i={color:[],number:[],var:[]},c=[];let u=0;const h=a.replace(p_,f=>(jt.test(f)?(i.color.push(u),c.push(JA),l.push(jt.parse(f))):f.startsWith(f_)?(i.var.push(u),c.push(m_),l.push(f)):(i.number.push(u),c.push(QA),l.push(parseFloat(f))),++u,qg)).split(qg);return{values:l,split:h,indexes:i,types:c}}function WA(e){return hl(e).values}function ej(e){const{split:a,types:l}=hl(e),i=a.length;return c=>{let u="";for(let d=0;d<i;d++)if(u+=a[d],c[d]!==void 0){const h=l[d];h===QA?u+=rl(c[d]):h===JA?u+=jt.transform(c[d]):u+=c[d]}return u}}const g_=e=>typeof e=="number"?0:jt.test(e)?jt.getAnimatableNone(e):e;function x_(e){const a=WA(e);return ej(e)(a.map(g_))}const Fa={test:h_,parse:WA,createTransformer:ej,getAnimatableNone:x_};function V2(e,a,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?e+(a-e)*6*l:l<1/2?a:l<2/3?e+(a-e)*(2/3-l)*6:e}function v_({hue:e,saturation:a,lightness:l,alpha:i}){e/=360,a/=100,l/=100;let c=0,u=0,d=0;if(!a)c=u=d=l;else{const h=l<.5?l*(1+a):l+a-l*a,f=2*l-h;c=V2(f,h,e+1/3),u=V2(f,h,e),d=V2(f,h,e-1/3)}return{red:Math.round(c*255),green:Math.round(u*255),blue:Math.round(d*255),alpha:i}}function N1(e,a){return l=>l>0?a:e}const lt=(e,a,l)=>e+(a-e)*l,_2=(e,a,l)=>{const i=e*e,c=l*(a*a-i)+i;return c<0?0:Math.sqrt(c)},b_=[Nh,L0,Tr],y_=e=>b_.find(a=>a.test(e));function $g(e){const a=y_(e);if(!a)return!1;let l=a.parse(e);return a===Tr&&(l=v_(l)),l}const Bg=(e,a)=>{const l=$g(e),i=$g(a);if(!l||!i)return N1(e,a);const c={...l};return u=>(c.red=_2(l.red,i.red,u),c.green=_2(l.green,i.green,u),c.blue=_2(l.blue,i.blue,u),c.alpha=lt(l.alpha,i.alpha,u),L0.transform(c))},Mh=new Set(["none","hidden"]);function w_(e,a){return Mh.has(e)?l=>l<=0?e:a:l=>l>=1?a:e}function A_(e,a){return l=>lt(e,a,l)}function Sm(e){return typeof e=="number"?A_:typeof e=="string"?Em(e)?N1:jt.test(e)?Bg:N_:Array.isArray(e)?tj:typeof e=="object"?jt.test(e)?Bg:j_:N1}function tj(e,a){const l=[...e],i=l.length,c=e.map((u,d)=>Sm(u)(u,a[d]));return u=>{for(let d=0;d<i;d++)l[d]=c[d](u);return l}}function j_(e,a){const l={...e,...a},i={};for(const c in l)e[c]!==void 0&&a[c]!==void 0&&(i[c]=Sm(e[c])(e[c],a[c]));return c=>{for(const u in i)l[u]=i[u](c);return l}}function E_(e,a){const l=[],i={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const u=a.types[c],d=e.indexes[u][i[u]],h=e.values[d]??0;l[c]=h,i[u]++}return l}const N_=(e,a)=>{const l=Fa.createTransformer(a),i=hl(e),c=hl(a);return i.indexes.var.length===c.indexes.var.length&&i.indexes.color.length===c.indexes.color.length&&i.indexes.number.length>=c.indexes.number.length?Mh.has(e)&&!c.values.length||Mh.has(a)&&!i.values.length?w_(e,a):wl(tj(E_(i,c),c.values),l):N1(e,a)};function aj(e,a,l){return typeof e=="number"&&typeof a=="number"&&typeof l=="number"?lt(e,a,l):Sm(e)(e,a)}const M_=e=>{const a=({timestamp:l})=>e(l);return{start:(l=!0)=>Je.update(a,l),stop:()=>c0(a),now:()=>zt.isProcessing?zt.timestamp:Ut.now()}},nj=(e,a,l=10)=>{let i="";const c=Math.max(Math.round(a/l),2);for(let u=0;u<c;u++)i+=Math.round(e(u/(c-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},M1=2e4;function Zm(e){let a=0;const l=50;let i=e.next(a);for(;!i.done&&a<M1;)a+=l,i=e.next(a);return a>=M1?1/0:a}function S_(e,a=100,l){const i=l({...e,keyframes:[0,a]}),c=Math.min(Zm(i),M1);return{type:"keyframes",ease:u=>i.next(c*u).value/a,duration:Sa(c)}}const Z_=5;function rj(e,a,l){const i=Math.max(a-Z_,0);return kA(l-e(i),a-i)}const ht={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},T2=.001;function C_({duration:e=ht.duration,bounce:a=ht.bounce,velocity:l=ht.velocity,mass:i=ht.mass}){let c,u,d=1-a;d=en(ht.minDamping,ht.maxDamping,d),e=en(ht.minDuration,ht.maxDuration,Sa(e)),d<1?(c=p=>{const g=p*d,x=g*e,b=g-l,w=Sh(p,d),M=Math.exp(-x);return T2-b/w*M},u=p=>{const x=p*d*e,b=x*l+l,w=Math.pow(d,2)*Math.pow(p,2)*e,M=Math.exp(-x),E=Sh(Math.pow(p,2),d);return(-c(p)+T2>0?-1:1)*((b-w)*M)/E}):(c=p=>{const g=Math.exp(-p*e),x=(p-l)*e+1;return-T2+g*x},u=p=>{const g=Math.exp(-p*e),x=(l-p)*(e*e);return g*x});const h=5/e,f=V_(c,u,h);if(e=Oa(e),isNaN(f))return{stiffness:ht.stiffness,damping:ht.damping,duration:e};{const p=Math.pow(f,2)*i;return{stiffness:p,damping:d*2*Math.sqrt(i*p),duration:e}}}const H_=12;function V_(e,a,l){let i=l;for(let c=1;c<H_;c++)i=i-e(i)/a(i);return i}function Sh(e,a){return e*Math.sqrt(1-a*a)}const __=["duration","bounce"],T_=["stiffness","damping","mass"];function Ig(e,a){return a.some(l=>e[l]!==void 0)}function L_(e){let a={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...e};if(!Ig(e,T_)&&Ig(e,__))if(a.velocity=0,e.visualDuration){const l=e.visualDuration,i=2*Math.PI/(l*1.2),c=i*i,u=2*en(.05,1,1-(e.bounce||0))*Math.sqrt(c);a={...a,mass:ht.mass,stiffness:c,damping:u}}else{const l=C_({...e,velocity:0});a={...a,...l,mass:ht.mass},a.isResolvedFromDuration=!0}return a}function S1(e=ht.visualDuration,a=ht.bounce){const l=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e;let{restSpeed:i,restDelta:c}=l;const u=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],h={done:!1,value:u},{stiffness:f,damping:p,mass:g,duration:x,velocity:b,isResolvedFromDuration:w}=L_({...l,velocity:-Sa(l.velocity||0)}),M=b||0,E=p/(2*Math.sqrt(f*g)),j=d-u,A=Sa(Math.sqrt(f/g)),S=Math.abs(j)<5;i||(i=S?ht.restSpeed.granular:ht.restSpeed.default),c||(c=S?ht.restDelta.granular:ht.restDelta.default);let N;if(E<1){const V=Sh(A,E);N=_=>{const H=Math.exp(-E*A*_);return d-H*((M+E*A*j)/V*Math.sin(V*_)+j*Math.cos(V*_))}}else if(E===1)N=V=>d-Math.exp(-A*V)*(j+(M+A*j)*V);else{const V=A*Math.sqrt(E*E-1);N=_=>{const H=Math.exp(-E*A*_),R=Math.min(V*_,300);return d-H*((M+E*A*j)*Math.sinh(R)+V*j*Math.cosh(R))/V}}const C={calculatedDuration:w&&x||null,next:V=>{const _=N(V);if(w)h.done=V>=x;else{let H=V===0?M:0;E<1&&(H=V===0?Oa(M):rj(N,V,_));const R=Math.abs(H)<=i,L=Math.abs(d-_)<=c;h.done=R&&L}return h.value=h.done?d:_,h},toString:()=>{const V=Math.min(Zm(C),M1),_=nj(H=>C.next(V*H).value,V,30);return V+"ms "+_},toTransition:()=>{}};return C}S1.applyToOptions=e=>{const a=S_(e,100,S1);return e.ease=a.ease,e.duration=Oa(a.duration),e.type="keyframes",e};function Zh({keyframes:e,velocity:a=0,power:l=.8,timeConstant:i=325,bounceDamping:c=10,bounceStiffness:u=500,modifyTarget:d,min:h,max:f,restDelta:p=.5,restSpeed:g}){const x=e[0],b={done:!1,value:x},w=R=>h!==void 0&&R<h||f!==void 0&&R>f,M=R=>h===void 0?f:f===void 0||Math.abs(h-R)<Math.abs(f-R)?h:f;let E=l*a;const j=x+E,A=d===void 0?j:d(j);A!==j&&(E=A-x);const S=R=>-E*Math.exp(-R/i),N=R=>A+S(R),C=R=>{const L=S(R),O=N(R);b.done=Math.abs(L)<=p,b.value=b.done?A:O};let V,_;const H=R=>{w(b.value)&&(V=R,_=S1({keyframes:[b.value,M(b.value)],velocity:rj(N,R,b.value),damping:c,stiffness:u,restDelta:p,restSpeed:g}))};return H(0),{calculatedDuration:null,next:R=>{let L=!1;return!_&&V===void 0&&(L=!0,C(R),H(R)),V!==void 0&&R>=V?_.next(R-V):(!L&&C(R),b)}}}function R_(e,a,l){const i=[],c=l||Cn.mix||aj,u=e.length-1;for(let d=0;d<u;d++){let h=c(e[d],e[d+1]);if(a){const f=Array.isArray(a)?a[d]||Za:a;h=wl(f,h)}i.push(h)}return i}function k_(e,a,{clamp:l=!0,ease:i,mixer:c}={}){const u=e.length;if(ym(u===a.length),u===1)return()=>a[0];if(u===2&&a[0]===a[1])return()=>a[1];const d=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),a=[...a].reverse());const h=R_(a,i,c),f=h.length,p=g=>{if(d&&g<e[0])return a[0];let x=0;if(f>1)for(;x<e.length-2&&!(g<e[x+1]);x++);const b=ul(e[x],e[x+1],g);return h[x](b)};return l?g=>p(en(e[0],e[u-1],g)):p}function D_(e,a){const l=e[e.length-1];for(let i=1;i<=a;i++){const c=ul(0,a,i);e.push(lt(l,1,c))}}function O_(e){const a=[0];return D_(a,e.length-1),a}function F_(e,a){return e.map(l=>l*a)}function z_(e,a){return e.map(()=>a||UA).splice(0,e.length-1)}function sl({duration:e=300,keyframes:a,times:l,ease:i="easeInOut"}){const c=QV(i)?i.map(Og):Og(i),u={done:!1,value:a[0]},d=F_(l&&l.length===a.length?l:O_(a),e),h=k_(d,a,{ease:Array.isArray(c)?c:z_(a,c)});return{calculatedDuration:e,next:f=>(u.value=h(f),u.done=f>=e,u)}}const q_=e=>e!==null;function Cm(e,{repeat:a,repeatType:l="loop"},i,c=1){const u=e.filter(q_),h=c<0||a&&l!=="loop"&&a%2===1?0:u.length-1;return!h||i===void 0?u[h]:i}const $_={decay:Zh,inertia:Zh,tween:sl,keyframes:sl,spring:S1};function sj(e){typeof e.type=="string"&&(e.type=$_[e.type])}class Hm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,l){return this.finished.then(a,l)}}const B_=e=>e/100;class Vm extends Hm{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,c;const{motionValue:l}=this.options;l&&l.updatedAt!==Ut.now()&&this.tick(Ut.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(i=this.options).onStop)==null||c.call(i))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;sj(a);const{type:l=sl,repeat:i=0,repeatDelay:c=0,repeatType:u,velocity:d=0}=a;let{keyframes:h}=a;const f=l||sl;f!==sl&&typeof h[0]!="number"&&(this.mixKeyframes=wl(B_,aj(h[0],h[1])),h=[0,100]);const p=f({...a,keyframes:h});u==="mirror"&&(this.mirroredGenerator=f({...a,keyframes:[...h].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Zm(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(i+1)-c,this.generator=p}updateTime(a){const l=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(a,l=!1){const{generator:i,totalDuration:c,mixKeyframes:u,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:p=0,keyframes:g,repeat:x,repeatType:b,repeatDelay:w,type:M,onUpdate:E,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-c/this.speed,this.startTime)),l?this.currentTime=a:this.updateTime(a);const A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?A<0:A>c;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let N=this.currentTime,C=i;if(x){const R=Math.min(this.currentTime,c)/h;let L=Math.floor(R),O=R%1;!O&&R>=1&&(O=1),O===1&&L--,L=Math.min(L,x+1),!!(L%2)&&(b==="reverse"?(O=1-O,w&&(O-=w/h)):b==="mirror"&&(C=d)),N=en(0,1,O)*h}const V=S?{done:!1,value:g[0]}:C.next(N);u&&(V.value=u(V.value));let{done:_}=V;!S&&f!==null&&(_=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return H&&M!==Zh&&(V.value=Cm(g,this.options,j,this.speed)),E&&E(V.value),H&&this.finish(),V}then(a,l){return this.finished.then(a,l)}get duration(){return Sa(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Sa(a)}get time(){return Sa(this.currentTime)}set time(a){var l;a=Oa(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),(l=this.driver)==null||l.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(Ut.now());const l=this.playbackSpeed!==a;this.playbackSpeed=a,l&&(this.time=Sa(this.currentTime))}play(){var c,u;if(this.isStopped)return;const{driver:a=M_,startTime:l}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),(u=(c=this.options).onPlay)==null||u.call(c);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=l??i),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(Ut.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(a=this.options).onComplete)==null||l.call(a)}cancel(){var a,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(a=this.options).onCancel)==null||l.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),a.observe(this)}}function I_(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}const R0=e=>e*180/Math.PI,Ch=e=>{const a=R0(Math.atan2(e[1],e[0]));return Hh(a)},U_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ch,rotateZ:Ch,skewX:e=>R0(Math.atan(e[1])),skewY:e=>R0(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Hh=e=>(e=e%360,e<0&&(e+=360),e),Ug=Ch,Pg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),P_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pg,scaleY:Gg,scale:e=>(Pg(e)+Gg(e))/2,rotateX:e=>Hh(R0(Math.atan2(e[6],e[5]))),rotateY:e=>Hh(R0(Math.atan2(-e[2],e[0]))),rotateZ:Ug,rotate:Ug,skewX:e=>R0(Math.atan(e[4])),skewY:e=>R0(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Vh(e){return e.includes("scale")?1:0}function _h(e,a){if(!e||e==="none")return Vh(a);const l=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,c;if(l)i=P_,c=l;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=U_,c=h}if(!c)return Vh(a);const u=i[a],d=c[1].split(",").map(Y_);return typeof u=="function"?u(d):d[u]}const G_=(e,a)=>{const{transform:l="none"}=getComputedStyle(e);return _h(l,a)};function Y_(e){return parseFloat(e.trim())}const Kr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xr=new Set(Kr),Yg=e=>e===Yr||e===ge,K_=new Set(["x","y","z"]),X_=Kr.filter(e=>!K_.has(e));function Q_(e){const a=[];return X_.forEach(l=>{const i=e.getValue(l);i!==void 0&&(a.push([l,i.get()]),i.set(l.startsWith("scale")?1:0))}),a}const l0={width:({x:e},{paddingLeft:a="0",paddingRight:l="0"})=>e.max-e.min-parseFloat(a)-parseFloat(l),height:({y:e},{paddingTop:a="0",paddingBottom:l="0"})=>e.max-e.min-parseFloat(a)-parseFloat(l),top:(e,{top:a})=>parseFloat(a),left:(e,{left:a})=>parseFloat(a),bottom:({y:e},{top:a})=>parseFloat(a)+(e.max-e.min),right:({x:e},{left:a})=>parseFloat(a)+(e.max-e.min),x:(e,{transform:a})=>_h(a,"x"),y:(e,{transform:a})=>_h(a,"y")};l0.translateX=l0.x;l0.translateY=l0.y;const F0=new Set;let Th=!1,Lh=!1,Rh=!1;function lj(){if(Lh){const e=Array.from(F0).filter(i=>i.needsMeasurement),a=new Set(e.map(i=>i.element)),l=new Map;a.forEach(i=>{const c=Q_(i);c.length&&(l.set(i,c),i.render())}),e.forEach(i=>i.measureInitialState()),a.forEach(i=>{i.render();const c=l.get(i);c&&c.forEach(([u,d])=>{var h;(h=i.getValue(u))==null||h.set(d)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Lh=!1,Th=!1,F0.forEach(e=>e.complete(Rh)),F0.clear()}function ij(){F0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Lh=!0)})}function J_(){Rh=!0,ij(),lj(),Rh=!1}class _m{constructor(a,l,i,c,u,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=l,this.name=i,this.motionValue=c,this.element=u,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(F0.add(this),Th||(Th=!0,Je.read(ij),Je.resolveKeyframes(lj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:l,element:i,motionValue:c}=this;if(a[0]===null){const u=c==null?void 0:c.get(),d=a[a.length-1];if(u!==void 0)a[0]=u;else if(i&&l){const h=i.readValue(l,d);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=d),c&&u===void 0&&c.set(a[0])}I_(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),F0.delete(this)}cancel(){this.state==="scheduled"&&(F0.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const W_=e=>e.startsWith("--");function eT(e,a,l){W_(a)?e.style.setProperty(a,l):e.style[a]=l}const tT={};function oj(e,a){const l=RA(e);return()=>tT[a]??l()}const aT=oj(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),cj=oj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ws=([e,a,l,i])=>`cubic-bezier(${e}, ${a}, ${l}, ${i})`,Kg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ws([0,.65,.55,1]),circOut:Ws([.55,0,1,.45]),backIn:Ws([.31,.01,.66,-.59]),backOut:Ws([.33,1.53,.69,.99])};function uj(e,a){if(e)return typeof e=="function"?cj()?nj(e,a):"ease-out":PA(e)?Ws(e):Array.isArray(e)?e.map(l=>uj(l,a)||Kg.easeOut):Kg[e]}function nT(e,a,l,{delay:i=0,duration:c=300,repeat:u=0,repeatType:d="loop",ease:h="easeOut",times:f}={},p=void 0){const g={[a]:l};f&&(g.offset=f);const x=uj(h,c);Array.isArray(x)&&(g.easing=x);const b={delay:i,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:u+1,direction:d==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(g,b)}function dj(e){return typeof e=="function"&&"applyToOptions"in e}function rT({type:e,...a}){return dj(e)&&cj()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class hj extends Hm{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:l,name:i,keyframes:c,pseudoElement:u,allowFlatten:d=!1,finalKeyframe:h,onComplete:f}=a;this.isPseudoElement=!!u,this.allowFlatten=d,this.options=a,ym(typeof a.type!="string");const p=rT(a);this.animation=nT(l,i,c,p,u),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const g=Cm(c,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(g):eT(l,i,g),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,l;(l=(a=this.animation).finish)==null||l.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,i,c;const a=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((c=(i=this.animation).commitStyles)==null||c.call(i))}get duration(){var l,i;const a=((i=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:i.call(l).duration)||0;return Sa(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Sa(a)}get time(){return Sa(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Oa(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:l}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&aT()?(this.animation.timeline=a,Za):l(this)}}const mj={anticipate:$A,backInOut:qA,circInOut:IA};function sT(e){return e in mj}function lT(e){typeof e.ease=="string"&&sT(e.ease)&&(e.ease=mj[e.ease])}const L2=10;class iT extends hj{constructor(a){lT(a),sj(a),super(a),a.startTime!==void 0&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:l,onUpdate:i,onComplete:c,element:u,...d}=this.options;if(!l)return;if(a!==void 0){l.set(a);return}const h=new Vm({...d,autoplay:!1}),f=Math.max(L2,Ut.now()-this.startTime),p=en(0,L2,f-L2);l.setWithVelocity(h.sample(Math.max(0,f-p)).value,h.sample(f).value,p),h.stop()}}const Xg=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fa.test(e)||e==="0")&&!e.startsWith("url("));function oT(e){const a=e[0];if(e.length===1)return!0;for(let l=0;l<e.length;l++)if(e[l]!==a)return!0}function cT(e,a,l,i){const c=e[0];if(c===null)return!1;if(a==="display"||a==="visibility")return!0;const u=e[e.length-1],d=Xg(c,a),h=Xg(u,a);return!d||!h?!1:oT(e)||(l==="spring"||dj(l))&&i}function kh(e){e.duration=0,e.type="keyframes"}const uT=new Set(["opacity","clipPath","filter","transform"]),dT=RA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hT(e){var g;const{motionValue:a,name:l,repeatDelay:i,repeatType:c,damping:u,type:d}=e;if(!(((g=a==null?void 0:a.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=a.owner.getProps();return dT()&&l&&uT.has(l)&&(l!=="transform"||!p)&&!f&&!i&&c!=="mirror"&&u!==0&&d!=="inertia"}const mT=40;class fT extends Hm{constructor({autoplay:a=!0,delay:l=0,type:i="keyframes",repeat:c=0,repeatDelay:u=0,repeatType:d="loop",keyframes:h,name:f,motionValue:p,element:g,...x}){var M;super(),this.stop=()=>{var E,j;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=Ut.now();const b={autoplay:a,delay:l,type:i,repeat:c,repeatDelay:u,repeatType:d,name:f,motionValue:p,element:g,...x},w=(g==null?void 0:g.KeyframeResolver)||_m;this.keyframeResolver=new w(h,(E,j,A)=>this.onKeyframesResolved(E,j,b,!A),f,p,g),(M=this.keyframeResolver)==null||M.scheduleResolve()}onKeyframesResolved(a,l,i,c){var j,A;this.keyframeResolver=void 0;const{name:u,type:d,velocity:h,delay:f,isHandoff:p,onUpdate:g}=i;this.resolvedAt=Ut.now(),cT(a,u,d,h)||((Cn.instantAnimations||!f)&&(g==null||g(Cm(a,i,l))),a[0]=a[a.length-1],kh(i),i.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>mT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...i,keyframes:a},w=!p&&hT(b),M=(A=(j=b.motionValue)==null?void 0:j.owner)==null?void 0:A.current,E=w?new iT({...b,element:M}):new Vm(b);E.finished.then(()=>{this.notifyFinished()}).catch(Za),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(a,l){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),J_()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function fj(e,a,l,i=0,c=1){const u=Array.from(e).sort((p,g)=>p.sortNodePosition(g)).indexOf(a),d=e.size,h=(d-1)*i;return typeof l=="function"?l(u,d):c===1?u*i:h-u*i}const pT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gT(e){const a=pT.exec(e);if(!a)return[,];const[,l,i,c]=a;return[`--${l??i}`,c]}function pj(e,a,l=1){const[i,c]=gT(e);if(!i)return;const u=window.getComputedStyle(a).getPropertyValue(i);if(u){const d=u.trim();return _A(d)?parseFloat(d):d}return Em(c)?pj(c,a,l+1):c}const xT={type:"spring",stiffness:500,damping:25,restSpeed:10},vT=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bT={type:"keyframes",duration:.8},yT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wT=(e,{keyframes:a})=>a.length>2?bT:Xr.has(e)?e.startsWith("scale")?vT(a[1]):xT:yT,AT=e=>e!==null;function jT(e,{repeat:a,repeatType:l="loop"},i){const c=e.filter(AT),u=a&&l!=="loop"&&a%2===1?0:c.length-1;return c[u]}function gj(e,a){if(e!=null&&e.inherit&&a){const{inherit:l,...i}=e;return{...a,...i}}return e}function Tm(e,a){const l=(e==null?void 0:e[a])??(e==null?void 0:e.default)??e;return l!==e?gj(l,e):l}function ET({when:e,delay:a,delayChildren:l,staggerChildren:i,staggerDirection:c,repeat:u,repeatType:d,repeatDelay:h,from:f,elapsed:p,...g}){return!!Object.keys(g).length}const Lm=(e,a,l,i={},c,u)=>d=>{const h=Tm(i,e)||{},f=h.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Oa(f);const g={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:b=>{a.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:e,motionValue:a,element:u?void 0:c};ET(h)||Object.assign(g,wT(e,g)),g.duration&&(g.duration=Oa(g.duration)),g.repeatDelay&&(g.repeatDelay=Oa(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(kh(g),g.delay===0&&(x=!0)),(Cn.instantAnimations||Cn.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(x=!0,kh(g),g.delay=0),g.allowFlatten=!h.type&&!h.ease,x&&!u&&a.get()!==void 0){const b=jT(g.keyframes,h);if(b!==void 0){Je.update(()=>{g.onUpdate(b),g.onComplete()});return}}return h.isSync?new Vm(g):new fT(g)};function Qg(e){const a=[{},{}];return e==null||e.values.forEach((l,i)=>{a[0][i]=l.get(),a[1][i]=l.getVelocity()}),a}function Rm(e,a,l,i){if(typeof a=="function"){const[c,u]=Qg(i);a=a(l!==void 0?l:e.custom,c,u)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){const[c,u]=Qg(i);a=a(l!==void 0?l:e.custom,c,u)}return a}function Fr(e,a,l){const i=e.getProps();return Rm(i,a,l!==void 0?l:i.custom,e)}const xj=new Set(["width","height","top","left","right","bottom",...Kr]),Jg=30,NT=e=>!isNaN(parseFloat(e));class MT{constructor(a,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var u;const c=Ut.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=l.owner}setCurrent(a){this.current=a,this.updatedAt=Ut.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=NT(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,l){this.events[a]||(this.events[a]=new wm);const i=this.events[a].add(l);return a==="change"?()=>{i(),Je.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,l){this.passiveEffect=a,this.stopPassiveEffect=l}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,l,i){this.set(l),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-i}jump(a,l=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Jg)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Jg);return kA(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(a){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=a(l),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 a,l;(a=this.dependents)==null||a.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(e,a){return new MT(e,a)}const Dh=e=>Array.isArray(e);function ST(e,a,l){e.hasValue(a)?e.getValue(a).set(l):e.addValue(a,qr(l))}function ZT(e){return Dh(e)?e[e.length-1]||0:e}function CT(e,a){const l=Fr(e,a);let{transitionEnd:i={},transition:c={},...u}=l||{};u={...u,...i};for(const d in u){const h=ZT(u[d]);ST(e,d,h)}}const Bt=e=>!!(e&&e.getVelocity);function HT(e){return!!(Bt(e)&&e.add)}function Oh(e,a){const l=e.getValue("willChange");if(HT(l))return l.add(a);if(!l&&Cn.WillChange){const i=new Cn.WillChange("auto");e.addValue("willChange",i),i.add(a)}}function km(e){return e.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const VT="framerAppearId",vj="data-"+km(VT);function bj(e){return e.props[vj]}function _T({protectedKeys:e,needsAnimating:a},l){const i=e.hasOwnProperty(l)&&a[l]!==!0;return a[l]=!1,i}function yj(e,a,{delay:l=0,transitionOverride:i,type:c}={}){let{transition:u,transitionEnd:d,...h}=a;const f=e.getDefaultTransition();u=u?gj(u,f):f;const p=u==null?void 0:u.reduceMotion;i&&(u=i);const g=[],x=c&&e.animationState&&e.animationState.getState()[c];for(const b in h){const w=e.getValue(b,e.latestValues[b]??null),M=h[b];if(M===void 0||x&&_T(x,b))continue;const E={delay:l,...Tm(u||{},b)},j=w.get();if(j!==void 0&&!w.isAnimating&&!Array.isArray(M)&&M===j&&!E.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const C=bj(e);if(C){const V=window.MotionHandoffAnimation(C,b,Je);V!==null&&(E.startTime=V,A=!0)}}Oh(e,b);const S=p??e.shouldReduceMotion;w.start(Lm(b,w,M,S&&xj.has(b)?{type:!1}:E,e,A));const N=w.animation;N&&g.push(N)}if(d){const b=()=>Je.update(()=>{d&&CT(e,d)});g.length?Promise.all(g).then(b):b()}return g}function Fh(e,a,l={}){var f;const i=Fr(e,a,l.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:c=e.getDefaultTransition()||{}}=i||{};l.transitionOverride&&(c=l.transitionOverride);const u=i?()=>Promise.all(yj(e,i,l)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:x,staggerDirection:b}=c;return TT(e,a,p,g,x,b,l)}:()=>Promise.resolve(),{when:h}=c;if(h){const[p,g]=h==="beforeChildren"?[u,d]:[d,u];return p().then(()=>g())}else return Promise.all([u(),d(l.delay)])}function TT(e,a,l=0,i=0,c=0,u=1,d){const h=[];for(const f of e.variantChildren)f.notify("AnimationStart",a),h.push(Fh(f,a,{...d,delay:l+(typeof i=="function"?0:i)+fj(e.variantChildren,f,i,c,u)}).then(()=>f.notify("AnimationComplete",a)));return Promise.all(h)}function LT(e,a,l={}){e.notify("AnimationStart",a);let i;if(Array.isArray(a)){const c=a.map(u=>Fh(e,u,l));i=Promise.all(c)}else if(typeof a=="string")i=Fh(e,a,l);else{const c=typeof a=="function"?Fr(e,a,l.custom):a;i=Promise.all(yj(e,c,l))}return i.then(()=>{e.notify("AnimationComplete",a)})}const RT={test:e=>e==="auto",parse:e=>e},wj=e=>a=>a.test(e),Aj=[Yr,ge,Wa,r0,u_,c_,RT],Wg=e=>Aj.find(wj(e));function kT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||LA(e):!0}const DT=new Set(["brightness","contrast","saturate","opacity"]);function OT(e){const[a,l]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;const[i]=l.match(Nm)||[];if(!i)return e;const c=l.replace(i,"");let u=DT.has(a)?1:0;return i!==l&&(u*=100),a+"("+u+c+")"}const FT=/\b([a-z-]*)\(.*?\)/gu,zh={...Fa,getAnimatableNone:e=>{const a=e.match(FT);return a?a.map(OT).join(" "):e}},qh={...Fa,getAnimatableNone:e=>{const a=Fa.parse(e);return Fa.createTransformer(e)(a.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},ex={...Yr,transform:Math.round},zT={rotate:r0,rotateX:r0,rotateY:r0,rotateZ:r0,scale:r1,scaleX:r1,scaleY:r1,scaleZ:r1,skew:r0,skewX:r0,skewY:r0,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:dl,originX:zg,originY:zg,originZ:ge},Dm={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,top:ge,right:ge,bottom:ge,left:ge,inset:ge,insetBlock:ge,insetBlockStart:ge,insetBlockEnd:ge,insetInline:ge,insetInlineStart:ge,insetInlineEnd:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,paddingBlock:ge,paddingBlockStart:ge,paddingBlockEnd:ge,paddingInline:ge,paddingInlineStart:ge,paddingInlineEnd:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,marginBlock:ge,marginBlockStart:ge,marginBlockEnd:ge,marginInline:ge,marginInlineStart:ge,marginInlineEnd:ge,fontSize:ge,backgroundPositionX:ge,backgroundPositionY:ge,...zT,zIndex:ex,fillOpacity:dl,strokeOpacity:dl,numOctaves:ex},qT={...Dm,color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:zh,WebkitFilter:zh,mask:qh,WebkitMask:qh},jj=e=>qT[e],$T=new Set([zh,qh]);function Ej(e,a){let l=jj(e);return $T.has(l)||(l=Fa),l.getAnimatableNone?l.getAnimatableNone(a):void 0}const BT=new Set(["auto","none","0"]);function IT(e,a,l){let i=0,c;for(;i<e.length&&!c;){const u=e[i];typeof u=="string"&&!BT.has(u)&&hl(u).values.length&&(c=e[i]),i++}if(c&&l)for(const u of a)e[u]=Ej(l,c)}class UT extends _m{constructor(a,l,i,c,u){super(a,l,i,c,u,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:l,name:i}=this;if(!l||!l.current)return;super.readKeyframes();for(let g=0;g<a.length;g++){let x=a[g];if(typeof x=="string"&&(x=x.trim(),Em(x))){const b=pj(x,l.current);b!==void 0&&(a[g]=b),g===a.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!xj.has(i)||a.length!==2)return;const[c,u]=a,d=Wg(c),h=Wg(u),f=Fg(c),p=Fg(u);if(f!==p&&l0[i]){this.needsMeasurement=!0;return}if(d!==h)if(Yg(d)&&Yg(h))for(let g=0;g<a.length;g++){const x=a[g];typeof x=="string"&&(a[g]=parseFloat(x))}else l0[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:l}=this,i=[];for(let c=0;c<a.length;c++)(a[c]===null||kT(a[c]))&&i.push(c);i.length&&IT(a,i,l)}measureInitialState(){const{element:a,unresolvedKeyframes:l,name:i}=this;if(!a||!a.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=l0[i](a.measureViewportBox(),window.getComputedStyle(a.current)),l[0]=this.measuredOrigin;const c=l[l.length-1];c!==void 0&&a.getValue(i,c).jump(c,!1)}measureEndState(){var h;const{element:a,name:l,unresolvedKeyframes:i}=this;if(!a||!a.current)return;const c=a.getValue(l);c&&c.jump(this.measuredOrigin,!1);const u=i.length-1,d=i[u];i[u]=l0[l](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([f,p])=>{a.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const PT=new Set(["opacity","clipPath","filter","transform"]);function Nj(e,a,l){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const c=(l==null?void 0:l[e])??i.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e).filter(i=>i!=null)}const Mj=(e,a)=>a&&typeof e=="number"?a.transform(e):e;function $h(e){return TA(e)&&"offsetHeight"in e}const{schedule:Om}=GA(queueMicrotask,!1),Da={x:!1,y:!1};function Sj(){return Da.x||Da.y}function GT(e){return e==="x"||e==="y"?Da[e]?null:(Da[e]=!0,()=>{Da[e]=!1}):Da.x||Da.y?null:(Da.x=Da.y=!0,()=>{Da.x=Da.y=!1})}function Zj(e,a){const l=Nj(e),i=new AbortController,c={passive:!0,...a,signal:i.signal};return[l,c,()=>i.abort()]}function YT(e){return!(e.pointerType==="touch"||Sj())}function KT(e,a,l={}){const[i,c,u]=Zj(e,l);return i.forEach(d=>{let h=!1,f=!1,p;const g=()=>{d.removeEventListener("pointerleave",M)},x=j=>{p&&(p(j),p=void 0),g()},b=j=>{h=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),f&&(f=!1,x(j))},w=()=>{h=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},M=j=>{if(j.pointerType!=="touch"){if(h){f=!0;return}x(j)}},E=j=>{if(!YT(j))return;f=!1;const A=a(d,j);typeof A=="function"&&(p=A,d.addEventListener("pointerleave",M,c))};d.addEventListener("pointerenter",E,c),d.addEventListener("pointerdown",w,c)}),u}const Cj=(e,a)=>a?e===a?!0:Cj(e,a.parentElement):!1,Fm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,XT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function QT(e){return XT.has(e.tagName)||e.isContentEditable===!0}const JT=new Set(["INPUT","SELECT","TEXTAREA"]);function WT(e){return JT.has(e.tagName)||e.isContentEditable===!0}const f1=new WeakSet;function tx(e){return a=>{a.key==="Enter"&&e(a)}}function R2(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const eL=(e,a)=>{const l=e.currentTarget;if(!l)return;const i=tx(()=>{if(f1.has(l))return;R2(l,"down");const c=tx(()=>{R2(l,"up")}),u=()=>R2(l,"cancel");l.addEventListener("keyup",c,a),l.addEventListener("blur",u,a)});l.addEventListener("keydown",i,a),l.addEventListener("blur",()=>l.removeEventListener("keydown",i),a)};function ax(e){return Fm(e)&&!Sj()}const nx=new WeakSet;function tL(e,a,l={}){const[i,c,u]=Zj(e,l),d=h=>{const f=h.currentTarget;if(!ax(h)||nx.has(h))return;f1.add(f),l.stopPropagation&&nx.add(h);const p=a(f,h),g=(w,M)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",b),f1.has(f)&&f1.delete(f),ax(w)&&typeof p=="function"&&p(w,{success:M})},x=w=>{g(w,f===window||f===document||l.useGlobalTarget||Cj(f,w.target))},b=w=>{g(w,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",b,c)};return i.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",d,c),$h(h)&&(h.addEventListener("focus",p=>eL(p,c)),!QT(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function zm(e){return TA(e)&&"ownerSVGElement"in e}const p1=new WeakMap;let s0;const Hj=(e,a,l)=>(i,c)=>c&&c[0]?c[0][e+"Size"]:zm(i)&&"getBBox"in i?i.getBBox()[a]:i[l],aL=Hj("inline","width","offsetWidth"),nL=Hj("block","height","offsetHeight");function rL({target:e,borderBoxSize:a}){var l;(l=p1.get(e))==null||l.forEach(i=>{i(e,{get width(){return aL(e,a)},get height(){return nL(e,a)}})})}function sL(e){e.forEach(rL)}function lL(){typeof ResizeObserver>"u"||(s0=new ResizeObserver(sL))}function iL(e,a){s0||lL();const l=Nj(e);return l.forEach(i=>{let c=p1.get(i);c||(c=new Set,p1.set(i,c)),c.add(a),s0==null||s0.observe(i)}),()=>{l.forEach(i=>{const c=p1.get(i);c==null||c.delete(a),c!=null&&c.size||s0==null||s0.unobserve(i)})}}const g1=new Set;let Lr;function oL(){Lr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};g1.forEach(a=>a(e))},window.addEventListener("resize",Lr)}function cL(e){return g1.add(e),Lr||oL(),()=>{g1.delete(e),!g1.size&&typeof Lr=="function"&&(window.removeEventListener("resize",Lr),Lr=void 0)}}function rx(e,a){return typeof e=="function"?cL(e):iL(e,a)}function uL(e){return zm(e)&&e.tagName==="svg"}const dL=[...Aj,jt,Fa],hL=e=>dL.find(wj(e)),sx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rr=()=>({x:sx(),y:sx()}),lx=()=>({min:0,max:0}),Zt=()=>({x:lx(),y:lx()}),mL=new WeakMap;function F1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ml(e){return typeof e=="string"||Array.isArray(e)}const qm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$m=["initial",...qm];function z1(e){return F1(e.animate)||$m.some(a=>ml(e[a]))}function Vj(e){return!!(z1(e)||e.variants)}function fL(e,a,l){for(const i in a){const c=a[i],u=l[i];if(Bt(c))e.addValue(i,c);else if(Bt(u))e.addValue(i,qr(c,{owner:e}));else if(u!==c)if(e.hasValue(i)){const d=e.getValue(i);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=e.getStaticValue(i);e.addValue(i,qr(d!==void 0?d:c,{owner:e}))}}for(const i in l)a[i]===void 0&&e.removeValue(i);return a}const Bh={current:null},_j={current:!1},pL=typeof window<"u";function gL(){if(_j.current=!0,!!pL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),a=()=>Bh.current=e.matches;e.addEventListener("change",a),a()}else Bh.current=!1}const ix=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Z1={};function Tj(e){Z1=e}function xL(){return Z1}class vL{scrapeMotionValuesFromProps(a,l,i){return{}}constructor({parent:a,props:l,presenceContext:i,reducedMotionConfig:c,skipAnimations:u,blockInitialAnimation:d,visualState:h},f={}){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=_m,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 w=Ut.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Je.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=g,this.parent=a,this.props=l,this.presenceContext=i,this.depth=a?a.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=u,this.options=f,this.blockInitialAnimation=!!d,this.isControllingVariants=z1(l),this.isVariantNode=Vj(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:x,...b}=this.scrapeMotionValuesFromProps(l,{},this);for(const w in b){const M=b[w];p[w]!==void 0&&Bt(M)&&M.set(p[w])}}mount(a){var l,i;if(this.hasBeenMounted)for(const c in this.initialValues)(l=this.values.get(c))==null||l.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=a,mL.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((c,u)=>this.bindToMotionValue(u,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(_j.current||gL(),this.shouldReduceMotion=Bh.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),c0(this.notifyUpdate),c0(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const i=this.features[l];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,l){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),l.accelerate&&PT.has(a)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:f,ease:p,duration:g}=l.accelerate,x=new hj({element:this.current,name:a,keyframes:h,times:f,ease:p,duration:Oa(g)}),b=d(x);this.valueSubscriptions.set(a,()=>{b(),x.cancel()});return}const i=Xr.has(a);i&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&Je.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,a,l)),this.valueSubscriptions.set(a,()=>{c(),u&&u(),l.owner&&l.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Z1){const l=Z1[a];if(!l)continue;const{isEnabled:i,Feature:c}=l;if(!this.features[a]&&c&&i(this.props)&&(this.features[a]=new c(this)),this.features[a]){const u=this.features[a];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Zt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,l){this.latestValues[a]=l}update(a,l){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let i=0;i<ix.length;i++){const c=ix[i];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const u="on"+c,d=a[u];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=fL(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(a),()=>l.variantChildren.delete(a)}addValue(a,l){const i=this.values.get(a);l!==i&&(i&&this.removeValue(a),this.bindToMotionValue(a,l),this.values.set(a,l),this.latestValues[a]=l.get())}removeValue(a){this.values.delete(a);const l=this.valueSubscriptions.get(a);l&&(l(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,l){if(this.props.values&&this.props.values[a])return this.props.values[a];let i=this.values.get(a);return i===void 0&&l!==void 0&&(i=qr(l===null?void 0:l,{owner:this}),this.addValue(a,i)),i}readValue(a,l){let i=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return i!=null&&(typeof i=="string"&&(_A(i)||LA(i))?i=parseFloat(i):!hL(i)&&Fa.test(l)&&(i=Ej(a,l)),this.setBaseTarget(a,Bt(i)?i.get():i)),Bt(i)?i.get():i}setBaseTarget(a,l){this.baseTarget[a]=l}getBaseTarget(a){var u;const{initial:l}=this.props;let i;if(typeof l=="string"||typeof l=="object"){const d=Rm(this.props,l,(u=this.presenceContext)==null?void 0:u.custom);d&&(i=d[a])}if(l&&i!==void 0)return i;const c=this.getBaseTargetFromProps(this.props,a);return c!==void 0&&!Bt(c)?c:this.initialValues[a]!==void 0&&i===void 0?void 0:this.baseTarget[a]}on(a,l){return this.events[a]||(this.events[a]=new wm),this.events[a].add(l)}notify(a,...l){this.events[a]&&this.events[a].notify(...l)}scheduleRenderMicrotask(){Om.render(this.render)}}class Lj extends vL{constructor(){super(...arguments),this.KeyframeResolver=UT}sortInstanceNodePosition(a,l){return a.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(a,l){const i=a.style;return i?i[l]:void 0}removeValueFromRenderState(a,{vars:l,style:i}){delete l[a],delete i[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;Bt(a)&&(this.childSubscription=a.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class d0{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Rj({top:e,left:a,right:l,bottom:i}){return{x:{min:a,max:l},y:{min:e,max:i}}}function bL({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function yL(e,a){if(!a)return e;const l=a({x:e.left,y:e.top}),i=a({x:e.right,y:e.bottom});return{top:l.y,left:l.x,bottom:i.y,right:i.x}}function k2(e){return e===void 0||e===1}function Ih({scale:e,scaleX:a,scaleY:l}){return!k2(e)||!k2(a)||!k2(l)}function T0(e){return Ih(e)||kj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function kj(e){return ox(e.x)||ox(e.y)}function ox(e){return e&&e!=="0%"}function C1(e,a,l){const i=e-l,c=a*i;return l+c}function cx(e,a,l,i,c){return c!==void 0&&(e=C1(e,c,i)),C1(e,l,i)+a}function Uh(e,a=0,l=1,i,c){e.min=cx(e.min,a,l,i,c),e.max=cx(e.max,a,l,i,c)}function Dj(e,{x:a,y:l}){Uh(e.x,a.translate,a.scale,a.originPoint),Uh(e.y,l.translate,l.scale,l.originPoint)}const ux=.999999999999,dx=1.0000000000001;function wL(e,a,l,i=!1){const c=l.length;if(!c)return;a.x=a.y=1;let u,d;for(let h=0;h<c;h++){u=l[h],d=u.projectionDelta;const{visualElement:f}=u.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Dr(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,Dj(e,d)),i&&T0(u.latestValues)&&Dr(e,u.latestValues))}a.x<dx&&a.x>ux&&(a.x=1),a.y<dx&&a.y>ux&&(a.y=1)}function kr(e,a){e.min=e.min+a,e.max=e.max+a}function hx(e,a,l,i,c=.5){const u=lt(e.min,e.max,c);Uh(e,a,l,u,i)}function Dr(e,a){hx(e.x,a.x,a.scaleX,a.scale,a.originX),hx(e.y,a.y,a.scaleY,a.scale,a.originY)}function Oj(e,a){return Rj(yL(e.getBoundingClientRect(),a))}function AL(e,a,l){const i=Oj(e,l),{scroll:c}=a;return c&&(kr(i.x,c.offset.x),kr(i.y,c.offset.y)),i}const jL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},EL=Kr.length;function NL(e,a,l){let i="",c=!0;for(let u=0;u<EL;u++){const d=Kr[u],h=e[d];if(h===void 0)continue;let f=!0;if(typeof h=="number")f=h===(d.startsWith("scale")?1:0);else{const p=parseFloat(h);f=d.startsWith("scale")?p===1:p===0}if(!f||l){const p=Mj(h,Dm[d]);if(!f){c=!1;const g=jL[d]||d;i+=`${g}(${p}) `}l&&(a[d]=p)}}return i=i.trim(),l?i=l(a,c?"":i):c&&(i="none"),i}function Bm(e,a,l){const{style:i,vars:c,transformOrigin:u}=e;let d=!1,h=!1;for(const f in a){const p=a[f];if(Xr.has(f)){d=!0;continue}else if(KA(f)){c[f]=p;continue}else{const g=Mj(p,Dm[f]);f.startsWith("origin")?(h=!0,u[f]=g):i[f]=g}}if(a.transform||(d||l?i.transform=NL(a,e.transform,l):i.transform&&(i.transform="none")),h){const{originX:f="50%",originY:p="50%",originZ:g=0}=u;i.transformOrigin=`${f} ${p} ${g}`}}function Fj(e,{style:a,vars:l},i,c){const u=e.style;let d;for(d in a)u[d]=a[d];c==null||c.applyProjectionStyles(u,i);for(d in l)u.setProperty(d,l[d])}function mx(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}const Js={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const l=mx(e,a.target.x),i=mx(e,a.target.y);return`${l}% ${i}%`}},ML={correct:(e,{treeScale:a,projectionDelta:l})=>{const i=e,c=Fa.parse(e);if(c.length>5)return i;const u=Fa.createTransformer(e),d=typeof c[0]!="number"?1:0,h=l.x.scale*a.x,f=l.y.scale*a.y;c[0+d]/=h,c[1+d]/=f;const p=lt(h,f,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),u(c)}},Ph={borderRadius:{...Js,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Js,borderTopRightRadius:Js,borderBottomLeftRadius:Js,borderBottomRightRadius:Js,boxShadow:ML};function zj(e,{layout:a,layoutId:l}){return Xr.has(e)||e.startsWith("origin")||(a||l!==void 0)&&(!!Ph[e]||e==="opacity")}function Im(e,a,l){var d;const i=e.style,c=a==null?void 0:a.style,u={};if(!i)return u;for(const h in i)(Bt(i[h])||c&&Bt(c[h])||zj(h,e)||((d=l==null?void 0:l.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(u[h]=i[h]);return u}function SL(e){return window.getComputedStyle(e)}class ZL extends Lj{constructor(){super(...arguments),this.type="html",this.renderInstance=Fj}readValueFromInstance(a,l){var i;if(Xr.has(l))return(i=this.projection)!=null&&i.isProjecting?Vh(l):G_(a,l);{const c=SL(a),u=(KA(l)?c.getPropertyValue(l):c[l])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:l}){return Oj(a,l)}build(a,l,i){Bm(a,l,i.transformTemplate)}scrapeMotionValuesFromProps(a,l,i){return Im(a,l,i)}}const CL={offset:"stroke-dashoffset",array:"stroke-dasharray"},HL={offset:"strokeDashoffset",array:"strokeDasharray"};function VL(e,a,l=1,i=0,c=!0){e.pathLength=1;const u=c?CL:HL;e[u.offset]=`${-i}`,e[u.array]=`${a} ${l}`}const _L=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function qj(e,{attrX:a,attrY:l,attrScale:i,pathLength:c,pathSpacing:u=1,pathOffset:d=0,...h},f,p,g){if(Bm(e,h,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:b}=e;x.transform&&(b.transform=x.transform,delete x.transform),(b.transform||x.transformOrigin)&&(b.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),b.transform&&(b.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete x.transformBox);for(const w of _L)x[w]!==void 0&&(b[w]=x[w],delete x[w]);a!==void 0&&(x.x=a),l!==void 0&&(x.y=l),i!==void 0&&(x.scale=i),c!==void 0&&VL(x,c,u,d,!1)}const $j=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"]),Bj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function TL(e,a,l,i){Fj(e,a,void 0,i);for(const c in a.attrs)e.setAttribute($j.has(c)?c:km(c),a.attrs[c])}function Ij(e,a,l){const i=Im(e,a,l);for(const c in e)if(Bt(e[c])||Bt(a[c])){const u=Kr.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;i[u]=e[c]}return i}class LL extends Lj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Zt}getBaseTargetFromProps(a,l){return a[l]}readValueFromInstance(a,l){if(Xr.has(l)){const i=jj(l);return i&&i.default||0}return l=$j.has(l)?l:km(l),a.getAttribute(l)}scrapeMotionValuesFromProps(a,l,i){return Ij(a,l,i)}build(a,l,i){qj(a,l,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(a,l,i,c){TL(a,l,i,c)}mount(a){this.isSVGTag=Bj(a.tagName),super.mount(a)}}const RL=$m.length;function Uj(e){if(!e)return;if(!e.isControllingVariants){const l=e.parent?Uj(e.parent)||{}:{};return e.props.initial!==void 0&&(l.initial=e.props.initial),l}const a={};for(let l=0;l<RL;l++){const i=$m[l],c=e.props[i];(ml(c)||c===!1)&&(a[i]=c)}return a}function Pj(e,a){if(!Array.isArray(a))return!1;const l=a.length;if(l!==e.length)return!1;for(let i=0;i<l;i++)if(a[i]!==e[i])return!1;return!0}const kL=[...qm].reverse(),DL=qm.length;function OL(e){return a=>Promise.all(a.map(({animation:l,options:i})=>LT(e,l,i)))}function FL(e){let a=OL(e),l=fx(),i=!0;const c=f=>(p,g)=>{var b;const x=Fr(e,g,f==="exit"?(b=e.presenceContext)==null?void 0:b.custom:void 0);if(x){const{transition:w,transitionEnd:M,...E}=x;p={...p,...E,...M}}return p};function u(f){a=f(e)}function d(f){const{props:p}=e,g=Uj(e.parent)||{},x=[],b=new Set;let w={},M=1/0;for(let j=0;j<DL;j++){const A=kL[j],S=l[A],N=p[A]!==void 0?p[A]:g[A],C=ml(N),V=A===f?S.isActive:null;V===!1&&(M=j);let _=N===g[A]&&N!==p[A]&&C;if(_&&i&&e.manuallyAnimateOnMount&&(_=!1),S.protectedKeys={...w},!S.isActive&&V===null||!N&&!S.prevProp||F1(N)||typeof N=="boolean")continue;if(A==="exit"&&S.isActive&&V!==!0){S.prevResolvedValues&&(w={...w,...S.prevResolvedValues});continue}const H=zL(S.prevProp,N);let R=H||A===f&&S.isActive&&!_&&C||j>M&&C,L=!1;const O=Array.isArray(N)?N:[N];let I=O.reduce(c(A),{});V===!1&&(I={});const{prevResolvedValues:X={}}=S,K={...X,...I},B=$=>{R=!0,b.has($)&&(L=!0,b.delete($)),S.needsAnimating[$]=!0;const Q=e.getValue($);Q&&(Q.liveStyle=!1)};for(const $ in K){const Q=I[$],ie=X[$];if(w.hasOwnProperty($))continue;let re=!1;Dh(Q)&&Dh(ie)?re=!Pj(Q,ie):re=Q!==ie,re?Q!=null?B($):b.add($):Q!==void 0&&b.has($)?B($):S.protectedKeys[$]=!0}S.prevProp=N,S.prevResolvedValues=I,S.isActive&&(w={...w,...I}),i&&e.blockInitialAnimation&&(R=!1);const Y=_&&H;R&&(!Y||L)&&x.push(...O.map($=>{const Q={type:A};if(typeof $=="string"&&i&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:ie}=e,re=Fr(ie,$);if(ie.enteringChildren&&re){const{delayChildren:D}=re.transition||{};Q.delay=fj(ie.enteringChildren,e,D)}}return{animation:$,options:Q}}))}if(b.size){const j={};if(typeof p.initial!="boolean"){const A=Fr(e,Array.isArray(p.initial)?p.initial[0]:p.initial);A&&A.transition&&(j.transition=A.transition)}b.forEach(A=>{const S=e.getBaseTarget(A),N=e.getValue(A);N&&(N.liveStyle=!0),j[A]=S??null}),x.push({animation:j})}let E=!!x.length;return i&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?a(x):Promise.resolve()}function h(f,p){var x;if(l[f].isActive===p)return Promise.resolve();(x=e.variantChildren)==null||x.forEach(b=>{var w;return(w=b.animationState)==null?void 0:w.setActive(f,p)}),l[f].isActive=p;const g=d(f);for(const b in l)l[b].protectedKeys={};return g}return{animateChanges:d,setActive:h,setAnimateFunction:u,getState:()=>l,reset:()=>{l=fx()}}}function zL(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!Pj(a,e):!1}function _0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fx(){return{animate:_0(!0),whileInView:_0(),whileHover:_0(),whileTap:_0(),whileDrag:_0(),whileFocus:_0(),exit:_0()}}function px(e,a){e.min=a.min,e.max=a.max}function ka(e,a){px(e.x,a.x),px(e.y,a.y)}function gx(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}const Gj=1e-4,qL=1-Gj,$L=1+Gj,Yj=.01,BL=0-Yj,IL=0+Yj;function Pt(e){return e.max-e.min}function UL(e,a,l){return Math.abs(e-a)<=l}function xx(e,a,l,i=.5){e.origin=i,e.originPoint=lt(a.min,a.max,e.origin),e.scale=Pt(l)/Pt(a),e.translate=lt(l.min,l.max,e.origin)-e.originPoint,(e.scale>=qL&&e.scale<=$L||isNaN(e.scale))&&(e.scale=1),(e.translate>=BL&&e.translate<=IL||isNaN(e.translate))&&(e.translate=0)}function ll(e,a,l,i){xx(e.x,a.x,l.x,i?i.originX:void 0),xx(e.y,a.y,l.y,i?i.originY:void 0)}function vx(e,a,l){e.min=l.min+a.min,e.max=e.min+Pt(a)}function PL(e,a,l){vx(e.x,a.x,l.x),vx(e.y,a.y,l.y)}function bx(e,a,l){e.min=a.min-l.min,e.max=e.min+Pt(a)}function H1(e,a,l){bx(e.x,a.x,l.x),bx(e.y,a.y,l.y)}function yx(e,a,l,i,c){return e-=a,e=C1(e,1/l,i),c!==void 0&&(e=C1(e,1/c,i)),e}function GL(e,a=0,l=1,i=.5,c,u=e,d=e){if(Wa.test(a)&&(a=parseFloat(a),a=lt(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=lt(u.min,u.max,i);e===u&&(h-=a),e.min=yx(e.min,a,l,h,c),e.max=yx(e.max,a,l,h,c)}function wx(e,a,[l,i,c],u,d){GL(e,a[l],a[i],a[c],a.scale,u,d)}const YL=["x","scaleX","originX"],KL=["y","scaleY","originY"];function Ax(e,a,l,i){wx(e.x,a,YL,l?l.x:void 0,i?i.x:void 0),wx(e.y,a,KL,l?l.y:void 0,i?i.y:void 0)}function jx(e){return e.translate===0&&e.scale===1}function Kj(e){return jx(e.x)&&jx(e.y)}function Ex(e,a){return e.min===a.min&&e.max===a.max}function XL(e,a){return Ex(e.x,a.x)&&Ex(e.y,a.y)}function Nx(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function Xj(e,a){return Nx(e.x,a.x)&&Nx(e.y,a.y)}function Mx(e){return Pt(e.x)/Pt(e.y)}function Sx(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}function Xa(e){return[e("x"),e("y")]}function QL(e,a,l){let i="";const c=e.x.translate/a.x,u=e.y.translate/a.y,d=(l==null?void 0:l.z)||0;if((c||u||d)&&(i=`translate3d(${c}px, ${u}px, ${d}px) `),(a.x!==1||a.y!==1)&&(i+=`scale(${1/a.x}, ${1/a.y}) `),l){const{transformPerspective:p,rotate:g,rotateX:x,rotateY:b,skewX:w,skewY:M}=l;p&&(i=`perspective(${p}px) ${i}`),g&&(i+=`rotate(${g}deg) `),x&&(i+=`rotateX(${x}deg) `),b&&(i+=`rotateY(${b}deg) `),w&&(i+=`skewX(${w}deg) `),M&&(i+=`skewY(${M}deg) `)}const h=e.x.scale*a.x,f=e.y.scale*a.y;return(h!==1||f!==1)&&(i+=`scale(${h}, ${f})`),i||"none"}const Qj=["TopLeft","TopRight","BottomLeft","BottomRight"],JL=Qj.length,Zx=e=>typeof e=="string"?parseFloat(e):e,Cx=e=>typeof e=="number"||ge.test(e);function WL(e,a,l,i,c,u){c?(e.opacity=lt(0,l.opacity??1,eR(i)),e.opacityExit=lt(a.opacity??1,0,tR(i))):u&&(e.opacity=lt(a.opacity??1,l.opacity??1,i));for(let d=0;d<JL;d++){const h=`border${Qj[d]}Radius`;let f=Hx(a,h),p=Hx(l,h);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||Cx(f)===Cx(p)?(e[h]=Math.max(lt(Zx(f),Zx(p),i),0),(Wa.test(p)||Wa.test(f))&&(e[h]+="%")):e[h]=p}(a.rotate||l.rotate)&&(e.rotate=lt(a.rotate||0,l.rotate||0,i))}function Hx(e,a){return e[a]!==void 0?e[a]:e.borderRadius}const eR=Jj(0,.5,BA),tR=Jj(.5,.95,Za);function Jj(e,a,l){return i=>i<e?0:i>a?1:l(ul(e,a,i))}function aR(e,a,l){const i=Bt(e)?e:qr(e);return i.start(Lm("",i,a,l)),i.animation}function fl(e,a,l,i={passive:!0}){return e.addEventListener(a,l,i),()=>e.removeEventListener(a,l)}const nR=(e,a)=>e.depth-a.depth;class rR{constructor(){this.children=[],this.isDirty=!1}add(a){bm(this.children,a),this.isDirty=!0}remove(a){E1(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(nR),this.isDirty=!1,this.children.forEach(a)}}function sR(e,a){const l=Ut.now(),i=({timestamp:c})=>{const u=c-l;u>=a&&(c0(i),e(u-a))};return Je.setup(i,!0),()=>c0(i)}function x1(e){return Bt(e)?e.get():e}class lR{constructor(){this.members=[]}add(a){bm(this.members,a);for(let l=this.members.length-1;l>=0;l--){const i=this.members[l];if(i===a||i===this.lead||i===this.prevLead)continue;const c=i.instance;c&&c.isConnected===!1&&i.isPresent!==!1&&!i.snapshot&&E1(this.members,i)}a.scheduleRender()}remove(a){if(E1(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(a){const l=this.members.findIndex(c=>a===c);if(l===0)return!1;let i;for(let c=l;c>=0;c--){const u=this.members[c],d=u.instance;if(u.isPresent!==!1&&(!d||d.isConnected!==!1)){i=u;break}}return i?(this.promote(i),!0):!1}promote(a,l){const i=this.lead;if(a!==i&&(this.prevLead=i,this.lead=a,a.show(),i)){i.instance&&i.scheduleRender(),a.scheduleRender();const c=i.options.layoutDependency,u=a.options.layoutDependency;if(!(c!==void 0&&u!==void 0&&c===u)){const f=i.instance;f&&f.isConnected===!1&&!i.snapshot||(a.resumeFrom=i,l&&(a.resumeFrom.preserveOpacity=!0),i.snapshot&&(a.snapshot=i.snapshot,a.snapshot.latestValues=i.animationValues||i.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0))}const{crossfade:h}=a.options;h===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:l,resumingFrom:i}=a;l.onExitComplete&&l.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const v1={hasAnimatedSinceResize:!0,hasEverUpdated:!1},D2=["","X","Y","Z"],iR=1e3;let oR=0;function O2(e,a,l,i){const{latestValues:c}=a;c[e]&&(l[e]=c[e],a.setStaticValue(e,0),i&&(i[e]=0))}function Wj(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:a}=e.options;if(!a)return;const l=bj(a);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(l,"transform",Je,!(c||u))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Wj(i)}function eE({attachResizeListener:e,defaultParent:a,measureScroll:l,checkIsScrollRoot:i,resetTransform:c}){return class{constructor(d={},h=a==null?void 0:a()){this.id=oR++,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(dR),this.nodes.forEach(pR),this.nodes.forEach(gR),this.nodes.forEach(hR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new rR)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new wm),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const f=this.eventHandlers.get(d);f&&f.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=zm(d)&&!uL(d),this.instance=d;const{layoutId:h,layout:f,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||h)&&(this.isLayoutDirty=!0),e){let g,x=0;const b=()=>this.root.updateBlockedByResize=!1;Je.read(()=>{x=window.innerWidth}),e(d,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,g&&g(),g=sR(b,250),v1.hasAnimatedSinceResize&&(v1.hasAnimatedSinceResize=!1,this.nodes.forEach(Tx)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||p.getDefaultTransition()||wR,{onLayoutAnimationStart:E,onLayoutAnimationComplete:j}=p.getProps(),A=!this.targetLayout||!Xj(this.targetLayout,w),S=!x&&b;if(this.options.layoutRoot||this.resumeFrom||S||x&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...Tm(M,"layout"),onPlay:E,onComplete:j};(p.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(g,S)}else x||Tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),c0(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(xR),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Wj(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:f}=this.options;if(h===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Vx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_x);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fR),this.nodes.forEach(cR),this.nodes.forEach(uR)):this.nodes.forEach(_x),this.clearAllSnapshots();const h=Ut.now();zt.delta=en(0,1e3/60,h-zt.timestamp),zt.timestamp=h,zt.isProcessing=!0,C2.update.process(zt),C2.preRender.process(zt),C2.render.process(zt),zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Om.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mR),this.sharedNodes.forEach(vR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Pt(this.snapshot.measuredBox.x)&&!Pt(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Zt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:f,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Kj(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;d&&this.instance&&(h||T0(this.latestValues)||g)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let f=this.removeElementScroll(h);return d&&(f=this.removeTransform(f)),AR(f),{animationId:this.root.animationId,measuredBox:h,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:d}=this.options;if(!d)return Zt();const h=d.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(jR))){const{scroll:g}=this.root;g&&(kr(h.x,g.offset.x),kr(h.y,g.offset.y))}return h}removeElementScroll(d){var f;const h=Zt();if(ka(h,d),(f=this.scroll)!=null&&f.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:x,options:b}=g;g!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&ka(h,d),kr(h.x,x.offset.x),kr(h.y,x.offset.y))}return h}applyTransform(d,h=!1){const f=Zt();ka(f,d);for(let p=0;p<this.path.length;p++){const g=this.path[p];!h&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Dr(f,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),T0(g.latestValues)&&Dr(f,g.latestValues)}return T0(this.latestValues)&&Dr(f,this.latestValues),f}removeTransform(d){const h=Zt();ka(h,d);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!T0(p.latestValues))continue;Ih(p.latestValues)&&p.updateSnapshot();const g=Zt(),x=p.measurePageBox();ka(g,x),Ax(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return T0(this.latestValues)&&Ax(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var w;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==h;if(!(d||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!this.layout||!(g||x))return;this.resolvedRelativeTargetAt=zt.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Zt(),this.targetWithTransforms=Zt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),PL(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ka(this.target,this.layout.layoutBox),Dj(this.target,this.targetDelta)):ka(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ih(this.parent.latestValues)||kj(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,f){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Zt(),this.relativeTargetOrigin=Zt(),H1(this.relativeTargetOrigin,h,f),ka(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var M;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let f=!0;if((this.isProjectionDirty||(M=this.parent)!=null&&M.isProjectionDirty)&&(f=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===zt.timestamp&&(f=!1),f)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;ka(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;wL(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Zt());const{target:w}=d;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gx(this.prevProjectionDelta.x,this.projectionDelta.x),gx(this.prevProjectionDelta.y,this.projectionDelta.y)),ll(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!Sx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Sx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rr(),this.projectionDelta=Rr(),this.projectionDeltaWithTransform=Rr()}setAnimationOrigin(d,h=!1){const f=this.snapshot,p=f?f.latestValues:{},g={...this.latestValues},x=Rr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=Zt(),w=f?f.source:void 0,M=this.layout?this.layout.source:void 0,E=w!==M,j=this.getStack(),A=!j||j.members.length<=1,S=!!(E&&!A&&this.options.crossfade===!0&&!this.path.some(yR));this.animationProgress=0;let N;this.mixTargetDelta=C=>{const V=C/1e3;Lx(x.x,d.x,V),Lx(x.y,d.y,V),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(H1(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bR(this.relativeTarget,this.relativeTargetOrigin,b,V),N&&XL(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Zt()),ka(N,this.relativeTarget)),E&&(this.animationValues=g,WL(g,p,this.latestValues,V,S,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,f,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||p.stop(),this.pendingAnimation&&(c0(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Je.update(()=>{v1.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qr(0)),this.motionValue.jump(0,!1),this.currentAnimation=aR(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),d.onUpdate&&d.onUpdate(g)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(iR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:f,layout:p,latestValues:g}=d;if(!(!h||!f||!p)){if(this!==d&&this.layout&&p&&tE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||Zt();const x=Pt(this.layout.layoutBox.x);f.x.min=d.target.x.min,f.x.max=f.x.min+x;const b=Pt(this.layout.layoutBox.y);f.y.min=d.target.y.min,f.y.max=f.y.min+b}ka(h,f),Dr(h,g),ll(this.projectionDeltaWithTransform,this.layoutCorrected,h,g)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new lR),this.sharedNodes.get(d).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:f}=d;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(h=!0),!h)return;const p={};f.z&&O2("z",d,p,this.animationValues);for(let g=0;g<D2.length;g++)O2(`rotate${D2[g]}`,d,p,this.animationValues),O2(`skew${D2[g]}`,d,p,this.animationValues);d.render();for(const g in p)d.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=x1(h==null?void 0:h.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=x1(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!T0(this.latestValues)&&(d.transform=f?f({},""):"none",this.hasProjected=!1);return}d.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=QL(this.projectionDeltaWithTransform,this.treeScale,g);f&&(x=f(g,x)),d.transform=x;const{x:b,y:w}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,p.animationValues?d.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const M in Ph){if(g[M]===void 0)continue;const{correct:E,applyTo:j,isCSSVariable:A}=Ph[M],S=x==="none"?g[M]:E(g[M],p);if(j){const N=j.length;for(let C=0;C<N;C++)d[j[C]]=S}else A?this.options.visualElement.renderState.vars[M]=S:d[M]=S}this.options.layoutId&&(d.pointerEvents=p===this?x1(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(Vx),this.root.sharedNodes.clear()}}}function cR(e){e.updateLayout()}function uR(e){var l;const a=((l=e.resumeFrom)==null?void 0:l.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:c}=e.layout,{animationType:u}=e.options,d=a.source!==e.layout.source;u==="size"?Xa(x=>{const b=d?a.measuredBox[x]:a.layoutBox[x],w=Pt(b);b.min=i[x].min,b.max=b.min+w}):tE(u,a.layoutBox,i)&&Xa(x=>{const b=d?a.measuredBox[x]:a.layoutBox[x],w=Pt(i[x]);b.max=b.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[x].max=e.relativeTarget[x].min+w)});const h=Rr();ll(h,i,a.layoutBox);const f=Rr();d?ll(f,e.applyTransform(c,!0),a.measuredBox):ll(f,i,a.layoutBox);const p=!Kj(h);let g=!1;if(!e.resumeFrom){const x=e.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:w}=x;if(b&&w){const M=Zt();H1(M,a.layoutBox,b.layoutBox);const E=Zt();H1(E,i,w.layoutBox),Xj(M,E)||(g=!0),x.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=M,e.relativeParent=x)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:a,delta:f,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function dR(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mR(e){e.clearSnapshot()}function Vx(e){e.clearMeasurements()}function _x(e){e.isLayoutDirty=!1}function fR(e){const{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pR(e){e.resolveTargetDelta()}function gR(e){e.calcProjection()}function xR(e){e.resetSkewAndRotation()}function vR(e){e.removeLeadSnapshot()}function Lx(e,a,l){e.translate=lt(a.translate,0,l),e.scale=lt(a.scale,1,l),e.origin=a.origin,e.originPoint=a.originPoint}function Rx(e,a,l,i){e.min=lt(a.min,l.min,i),e.max=lt(a.max,l.max,i)}function bR(e,a,l,i){Rx(e.x,a.x,l.x,i),Rx(e.y,a.y,l.y,i)}function yR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wR={duration:.45,ease:[.4,0,.1,1]},kx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Dx=kx("applewebkit/")&&!kx("chrome/")?Math.round:Za;function Ox(e){e.min=Dx(e.min),e.max=Dx(e.max)}function AR(e){Ox(e.x),Ox(e.y)}function tE(e,a,l){return e==="position"||e==="preserve-aspect"&&!UL(Mx(a),Mx(l),.2)}function jR(e){var a;return e!==e.root&&((a=e.scroll)==null?void 0:a.wasRoot)}const ER=eE({attachResizeListener:(e,a)=>fl(e,"resize",a),measureScroll:()=>{var e,a;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),F2={current:void 0},aE=eE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!F2.current){const e=new ER({});e.mount(window),e.setOptions({layoutScroll:!0}),F2.current=e}return F2.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Um=n.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Fx(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function NR(...e){return a=>{let l=!1;const i=e.map(c=>{const u=Fx(c,a);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let c=0;c<i.length;c++){const u=i[c];typeof u=="function"?u():Fx(e[c],null)}}}}function MR(...e){return n.useCallback(NR(...e),e)}class SR extends n.Component{getSnapshotBeforeUpdate(a){const l=this.props.childRef.current;if(l&&a.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=l.offsetParent,c=$h(i)&&i.offsetWidth||0,u=$h(i)&&i.offsetHeight||0,d=this.props.sizeRef.current;d.height=l.offsetHeight||0,d.width=l.offsetWidth||0,d.top=l.offsetTop,d.left=l.offsetLeft,d.right=c-d.width-d.left,d.bottom=u-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function ZR({children:e,isPresent:a,anchorX:l,anchorY:i,root:c,pop:u}){var b;const d=n.useId(),h=n.useRef(null),f=n.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=n.useContext(Um),g=((b=e.props)==null?void 0:b.ref)??(e==null?void 0:e.ref),x=MR(h,g);return n.useInsertionEffect(()=>{const{width:w,height:M,top:E,left:j,right:A,bottom:S}=f.current;if(a||u===!1||!h.current||!w||!M)return;const N=l==="left"?`left: ${j}`:`right: ${A}`,C=i==="bottom"?`bottom: ${S}`:`top: ${E}`;h.current.dataset.motionPopId=d;const V=document.createElement("style");p&&(V.nonce=p);const _=c??document.head;return _.appendChild(V),V.sheet&&V.sheet.insertRule(`
|
|
62
|
-
[data-motion-pop-id="${d}"] {
|
|
63
|
-
position: absolute !important;
|
|
64
|
-
width: ${w}px !important;
|
|
65
|
-
height: ${M}px !important;
|
|
66
|
-
${N}px !important;
|
|
67
|
-
${C}px !important;
|
|
68
|
-
}
|
|
69
|
-
`),()=>{_.contains(V)&&_.removeChild(V)}},[a]),s.jsx(SR,{isPresent:a,childRef:h,sizeRef:f,pop:u,children:u===!1?e:n.cloneElement(e,{ref:x})})}const CR=({children:e,initial:a,isPresent:l,onExitComplete:i,custom:c,presenceAffectsLayout:u,mode:d,anchorX:h,anchorY:f,root:p})=>{const g=vm(HR),x=n.useId();let b=!0,w=n.useMemo(()=>(b=!1,{id:x,initial:a,isPresent:l,custom:c,onExitComplete:M=>{g.set(M,!0);for(const E of g.values())if(!E)return;i&&i()},register:M=>(g.set(M,!1),()=>g.delete(M))}),[l,g,i]);return u&&b&&(w={...w}),n.useMemo(()=>{g.forEach((M,E)=>g.set(E,!1))},[l]),n.useEffect(()=>{!l&&!g.size&&i&&i()},[l]),e=s.jsx(ZR,{pop:d==="popLayout",isPresent:l,anchorX:h,anchorY:f,root:p,children:e}),s.jsx(O1.Provider,{value:w,children:e})};function HR(){return new Map}function nE(e=!0){const a=n.useContext(O1);if(a===null)return[!0,null];const{isPresent:l,onExitComplete:i,register:c}=a,u=n.useId();n.useEffect(()=>{if(e)return c(u)},[e]);const d=n.useCallback(()=>e&&i&&i(u),[u,i,e]);return!l&&i?[!1,d]:[!0]}const s1=e=>e.key||"";function zx(e){const a=[];return n.Children.forEach(e,l=>{n.isValidElement(l)&&a.push(l)}),a}const Ba=({children:e,custom:a,initial:l=!0,onExitComplete:i,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:p})=>{const[g,x]=nE(d),b=n.useMemo(()=>zx(e),[e]),w=d&&!g?[]:b.map(s1),M=n.useRef(!0),E=n.useRef(b),j=vm(()=>new Map),A=n.useRef(new Set),[S,N]=n.useState(b),[C,V]=n.useState(b);VA(()=>{M.current=!1,E.current=b;for(let R=0;R<C.length;R++){const L=s1(C[R]);w.includes(L)?(j.delete(L),A.current.delete(L)):j.get(L)!==!0&&j.set(L,!1)}},[C,w.length,w.join("-")]);const _=[];if(b!==S){let R=[...b];for(let L=0;L<C.length;L++){const O=C[L],I=s1(O);w.includes(I)||(R.splice(L,0,O),_.push(O))}return u==="wait"&&_.length&&(R=_),V(zx(R)),N(b),null}const{forceRender:H}=n.useContext(xm);return s.jsx(s.Fragment,{children:C.map(R=>{const L=s1(R),O=d&&!g?!1:b===C||w.includes(L),I=()=>{if(A.current.has(L))return;if(A.current.add(L),j.has(L))j.set(L,!0);else return;let X=!0;j.forEach(K=>{K||(X=!1)}),X&&(H==null||H(),V(E.current),d&&(x==null||x()),i&&i())};return s.jsx(CR,{isPresent:O,initial:!M.current||l?void 0:!1,custom:a,presenceAffectsLayout:c,mode:u,root:p,onExitComplete:O?void 0:I,anchorX:h,anchorY:f,children:R},L)})})},rE=n.createContext({strict:!1}),qx={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 $x=!1;function VR(){if($x)return;const e={};for(const a in qx)e[a]={isEnabled:l=>qx[a].some(i=>!!l[i])};Tj(e),$x=!0}function sE(){return VR(),xL()}function _R(e){const a=sE();for(const l in e)a[l]={...a[l],...e[l]};Tj(a)}const TR=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 V1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||TR.has(e)}let lE=e=>!V1(e);function LR(e){typeof e=="function"&&(lE=a=>a.startsWith("on")?!V1(a):e(a))}try{LR(require("@emotion/is-prop-valid").default)}catch{}function RR(e,a,l){const i={};for(const c in e)c==="values"&&typeof e.values=="object"||(lE(c)||l===!0&&V1(c)||!a&&!V1(c)||e.draggable&&c.startsWith("onDrag"))&&(i[c]=e[c]);return i}const q1=n.createContext({});function kR(e,a){if(z1(e)){const{initial:l,animate:i}=e;return{initial:l===!1||ml(l)?l:void 0,animate:ml(i)?i:void 0}}return e.inherit!==!1?a:{}}function DR(e){const{initial:a,animate:l}=kR(e,n.useContext(q1));return n.useMemo(()=>({initial:a,animate:l}),[Bx(a),Bx(l)])}function Bx(e){return Array.isArray(e)?e.join(" "):e}const Pm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iE(e,a,l){for(const i in a)!Bt(a[i])&&!zj(i,l)&&(e[i]=a[i])}function OR({transformTemplate:e},a){return n.useMemo(()=>{const l=Pm();return Bm(l,a,e),Object.assign({},l.vars,l.style)},[a])}function FR(e,a){const l=e.style||{},i={};return iE(i,l,e),Object.assign(i,OR(e,a)),i}function zR(e,a){const l={},i=FR(e,a);return e.drag&&e.dragListener!==!1&&(l.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(l.tabIndex=0),l.style=i,l}const oE=()=>({...Pm(),attrs:{}});function qR(e,a,l,i){const c=n.useMemo(()=>{const u=oE();return qj(u,a,Bj(i),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[a]);if(e.style){const u={};iE(u,e.style,e),c.style={...u,...c.style}}return c}const $R=["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 Gm(e){return typeof e!="string"||e.includes("-")?!1:!!($R.indexOf(e)>-1||/[A-Z]/u.test(e))}function BR(e,a,l,{latestValues:i},c,u=!1,d){const f=(d??Gm(e)?qR:zR)(a,i,c,e),p=RR(a,typeof e=="string",u),g=e!==n.Fragment?{...p,...f,ref:l}:{},{children:x}=a,b=n.useMemo(()=>Bt(x)?x.get():x,[x]);return n.createElement(e,{...g,children:b})}function IR({scrapeMotionValuesFromProps:e,createRenderState:a},l,i,c){return{latestValues:UR(l,i,c,e),renderState:a()}}function UR(e,a,l,i){const c={},u=i(e,{});for(const b in u)c[b]=x1(u[b]);let{initial:d,animate:h}=e;const f=z1(e),p=Vj(e);a&&p&&!f&&e.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let g=l?l.initial===!1:!1;g=g||d===!1;const x=g?h:d;if(x&&typeof x!="boolean"&&!F1(x)){const b=Array.isArray(x)?x:[x];for(let w=0;w<b.length;w++){const M=Rm(e,b[w]);if(M){const{transitionEnd:E,transition:j,...A}=M;for(const S in A){let N=A[S];if(Array.isArray(N)){const C=g?N.length-1:0;N=N[C]}N!==null&&(c[S]=N)}for(const S in E)c[S]=E[S]}}}return c}const cE=e=>(a,l)=>{const i=n.useContext(q1),c=n.useContext(O1),u=()=>IR(e,a,i,c);return l?u():vm(u)},PR=cE({scrapeMotionValuesFromProps:Im,createRenderState:Pm}),GR=cE({scrapeMotionValuesFromProps:Ij,createRenderState:oE}),YR=Symbol.for("motionComponentSymbol");function KR(e,a,l){const i=n.useRef(l);n.useInsertionEffect(()=>{i.current=l});const c=n.useRef(null);return n.useCallback(u=>{var h;u&&((h=e.onMount)==null||h.call(e,u)),a&&(u?a.mount(u):a.unmount());const d=i.current;if(typeof d=="function")if(u){const f=d(u);typeof f=="function"&&(c.current=f)}else c.current?(c.current(),c.current=null):d(u);else d&&(d.current=u)},[a])}const uE=n.createContext({});function Vr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XR(e,a,l,i,c,u){var N,C;const{visualElement:d}=n.useContext(q1),h=n.useContext(rE),f=n.useContext(O1),p=n.useContext(Um),g=p.reducedMotion,x=p.skipAnimations,b=n.useRef(null),w=n.useRef(!1);i=i||h.renderer,!b.current&&i&&(b.current=i(e,{visualState:a,parent:d,props:l,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:g,skipAnimations:x,isSVG:u}),w.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const M=b.current,E=n.useContext(uE);M&&!M.projection&&c&&(M.type==="html"||M.type==="svg")&&QR(b.current,l,c,E);const j=n.useRef(!1);n.useInsertionEffect(()=>{M&&j.current&&M.update(l,f)});const A=l[vj],S=n.useRef(!!A&&!((N=window.MotionHandoffIsComplete)!=null&&N.call(window,A))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,A)));return VA(()=>{w.current=!0,M&&(j.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),M.scheduleRenderMicrotask(),S.current&&M.animationState&&M.animationState.animateChanges())}),n.useEffect(()=>{M&&(!S.current&&M.animationState&&M.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var V;(V=window.MotionHandoffMarkAsComplete)==null||V.call(window,A)}),S.current=!1),M.enteringChildren=void 0)}),M}function QR(e,a,l,i){const{layoutId:c,layout:u,drag:d,dragConstraints:h,layoutScroll:f,layoutRoot:p,layoutCrossfade:g}=a;e.projection=new l(e.latestValues,a["data-framer-portal-id"]?void 0:dE(e.parent)),e.projection.setOptions({layoutId:c,layout:u,alwaysMeasureLayout:!!d||h&&Vr(h),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,crossfade:g,layoutScroll:f,layoutRoot:p})}function dE(e){if(e)return e.options.allowProjection!==!1?e.projection:dE(e.parent)}function z2(e,{forwardMotionProps:a=!1,type:l}={},i,c){i&&_R(i);const u=l?l==="svg":Gm(e),d=u?GR:PR;function h(p,g){let x;const b={...n.useContext(Um),...p,layoutId:JR(p)},{isStatic:w}=b,M=DR(p),E=d(p,w);if(!w&&HA){WR();const j=ek(b);x=j.MeasureLayout,M.visualElement=XR(e,E,b,c,j.ProjectionNode,u)}return s.jsxs(q1.Provider,{value:M,children:[x&&M.visualElement?s.jsx(x,{visualElement:M.visualElement,...b}):null,BR(e,p,KR(E,M.visualElement,g),E,w,a,u)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=n.forwardRef(h);return f[YR]=e,f}function JR({layoutId:e}){const a=n.useContext(xm).id;return a&&e!==void 0?a+"-"+e:e}function WR(e,a){n.useContext(rE).strict}function ek(e){const a=sE(),{drag:l,layout:i}=a;if(!l&&!i)return{};const c={...l,...i};return{MeasureLayout:l!=null&&l.isEnabled(e)||i!=null&&i.isEnabled(e)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function tk(e,a){if(typeof Proxy>"u")return z2;const l=new Map,i=(u,d)=>z2(u,d,e,a),c=(u,d)=>i(u,d);return new Proxy(c,{get:(u,d)=>d==="create"?i:(l.has(d)||l.set(d,z2(d,void 0,e,a)),l.get(d))})}const ak=(e,a)=>a.isSVG??Gm(e)?new LL(a):new ZL(a,{allowProjection:e!==n.Fragment});class nk extends d0{constructor(a){super(a),a.animationState||(a.animationState=FL(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();F1(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:l}=this.node.prevProps||{};a!==l&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let rk=0;class sk extends d0{constructor(){super(...arguments),this.id=rk++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:l}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===i)return;const c=this.node.animationState.setActive("exit",!a);l&&!a&&c.then(()=>{l(this.id)})}mount(){const{register:a,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const lk={animation:{Feature:nk},exit:{Feature:sk}};function El(e){return{point:{x:e.pageX,y:e.pageY}}}const ik=e=>a=>Fm(a)&&e(a,El(a));function il(e,a,l,i){return fl(e,a,ik(l),i)}const hE=({current:e})=>e?e.ownerDocument.defaultView:null,Ix=(e,a)=>Math.abs(e-a);function ok(e,a){const l=Ix(e.x,a.x),i=Ix(e.y,a.y);return Math.sqrt(l**2+i**2)}const Ux=new Set(["auto","scroll"]);class mE{constructor(a,l,{transformPagePoint:i,contextWindow:c=window,dragSnapToOrigin:u=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=$2(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,E=ok(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!E)return;const{point:j}=w,{timestamp:A}=zt;this.history.push({...j,timestamp:A});const{onStart:S,onMove:N}=this.handlers;M||(S&&S(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,w)},this.handlePointerMove=(w,M)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=q2(M,this.transformPagePoint),Je.update(this.updatePoint,!0)},this.handlePointerUp=(w,M)=>{this.end();const{onEnd:E,onSessionEnd:j,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=$2(w.type==="pointercancel"?this.lastMoveEventInfo:q2(M,this.transformPagePoint),this.history);this.startEvent&&E&&E(w,S),j&&j(w,S)},!Fm(a))return;this.dragSnapToOrigin=u,this.handlers=l,this.transformPagePoint=i,this.distanceThreshold=d,this.contextWindow=c||window;const f=El(a),p=q2(f,this.transformPagePoint),{point:g}=p,{timestamp:x}=zt;this.history=[{...g,timestamp:x}];const{onSessionStart:b}=l;b&&b(a,$2(p,this.history)),this.removeListeners=wl(il(this.contextWindow,"pointermove",this.handlePointerMove),il(this.contextWindow,"pointerup",this.handlePointerUp),il(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let l=a.parentElement;for(;l;){const i=getComputedStyle(l);(Ux.has(i.overflowX)||Ux.has(i.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.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(a){const l=this.scrollPositions.get(a);if(!l)return;const i=a===window,c=i?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},u={x:c.x-l.x,y:c.y-l.y};u.x===0&&u.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(a,c),Je.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),c0(this.updatePoint)}}function q2(e,a){return a?{point:a(e.point)}:e}function Px(e,a){return{x:e.x-a.x,y:e.y-a.y}}function $2({point:e},a){return{point:e,delta:Px(e,fE(a)),offset:Px(e,ck(a)),velocity:uk(a,.1)}}function ck(e){return e[0]}function fE(e){return e[e.length-1]}function uk(e,a){if(e.length<2)return{x:0,y:0};let l=e.length-1,i=null;const c=fE(e);for(;l>=0&&(i=e[l],!(c.timestamp-i.timestamp>Oa(a)));)l--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&c.timestamp-i.timestamp>Oa(a)*2&&(i=e[1]);const u=Sa(c.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const d={x:(c.x-i.x)/u,y:(c.y-i.y)/u};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function dk(e,{min:a,max:l},i){return a!==void 0&&e<a?e=i?lt(a,e,i.min):Math.max(e,a):l!==void 0&&e>l&&(e=i?lt(l,e,i.max):Math.min(e,l)),e}function Gx(e,a,l){return{min:a!==void 0?e.min+a:void 0,max:l!==void 0?e.max+l-(e.max-e.min):void 0}}function hk(e,{top:a,left:l,bottom:i,right:c}){return{x:Gx(e.x,l,c),y:Gx(e.y,a,i)}}function Yx(e,a){let l=a.min-e.min,i=a.max-e.max;return a.max-a.min<e.max-e.min&&([l,i]=[i,l]),{min:l,max:i}}function mk(e,a){return{x:Yx(e.x,a.x),y:Yx(e.y,a.y)}}function fk(e,a){let l=.5;const i=Pt(e),c=Pt(a);return c>i?l=ul(a.min,a.max-i,e.min):i>c&&(l=ul(e.min,e.max-c,a.min)),en(0,1,l)}function pk(e,a){const l={};return a.min!==void 0&&(l.min=a.min-e.min),a.max!==void 0&&(l.max=a.max-e.min),l}const Gh=.35;function gk(e=Gh){return e===!1?e=0:e===!0&&(e=Gh),{x:Kx(e,"left","right"),y:Kx(e,"top","bottom")}}function Kx(e,a,l){return{min:Xx(e,a),max:Xx(e,l)}}function Xx(e,a){return typeof e=="number"?e:e[a]||0}const xk=new WeakMap;class vk{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Zt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:l=!1,distanceThreshold:i}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const u=x=>{l&&this.snapToCursor(El(x).point),this.stopAnimation()},d=(x,b)=>{const{drag:w,dragPropagation:M,onDragStart:E}=this.getProps();if(w&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=GT(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xa(A=>{let S=this.getAxisMotionValue(A).get()||0;if(Wa.test(S)){const{projection:N}=this.visualElement;if(N&&N.layout){const C=N.layout.layoutBox[A];C&&(S=Pt(C)*(parseFloat(S)/100))}}this.originPoint[A]=S}),E&&Je.update(()=>E(x,b),!1,!0),Oh(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},h=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:M,onDirectionLock:E,onDrag:j}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:A}=b;if(M&&this.currentDirection===null){this.currentDirection=yk(A),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",b.point,A),this.updateAxis("y",b.point,A),this.visualElement.render(),j&&Je.update(()=>j(x,b),!1,!0)},f=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b,this.stop(x,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new mE(a,{onSessionStart:u,onStart:d,onMove:h,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:i,contextWindow:hE(this.visualElement),element:this.visualElement.current})}stop(a,l){const i=a||this.latestPointerEvent,c=l||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!c||!i)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Je.postRender(()=>h(i,c))}cancel(){this.isDragging=!1;const{projection:a,animationState:l}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,l,i){const{drag:c}=this.getProps();if(!i||!l1(a,c,this.currentDirection))return;const u=this.getAxisMotionValue(a);let d=this.originPoint[a]+i[a];this.constraints&&this.constraints[a]&&(d=dk(d,this.constraints[a],this.elastic[a])),u.set(d)}resolveConstraints(){var u;const{dragConstraints:a,dragElastic:l}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,c=this.constraints;a&&Vr(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&i?this.constraints=hk(i.layoutBox,a):this.constraints=!1,this.elastic=gk(l),c!==this.constraints&&!Vr(a)&&i&&this.constraints&&!this.hasMutatedConstraints&&Xa(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=pk(i.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:l}=this.getProps();if(!a||!Vr(a))return!1;const i=a.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const u=AL(i,c.root,this.visualElement.getTransformPagePoint());let d=mk(c.layout.layoutBox,u);if(l){const h=l(bL(d));this.hasMutatedConstraints=!!h,h&&(d=Rj(h))}return d}startAnimation(a){const{drag:l,dragMomentum:i,dragElastic:c,dragTransition:u,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),f=this.constraints||{},p=Xa(g=>{if(!l1(g,l,this.currentDirection))return;let x=f&&f[g]||{};d&&(x={min:0,max:0});const b=c?200:1e6,w=c?40:1e7,M={type:"inertia",velocity:i?a[g]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...u,...x};return this.startAxisValueAnimation(g,M)});return Promise.all(p).then(h)}startAxisValueAnimation(a,l){const i=this.getAxisMotionValue(a);return Oh(this.visualElement,a),i.start(Lm(a,i,0,l,this.visualElement,!1))}stopAnimation(){Xa(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const l=`_drag${a.toUpperCase()}`,i=this.visualElement.getProps(),c=i[l];return c||this.visualElement.getValue(a,(i.initial?i.initial[a]:void 0)||0)}snapToCursor(a){Xa(l=>{const{drag:i}=this.getProps();if(!l1(l,i,this.currentDirection))return;const{projection:c}=this.visualElement,u=this.getAxisMotionValue(l);if(c&&c.layout){const{min:d,max:h}=c.layout.layoutBox[l],f=u.get()||0;u.set(a[l]-lt(d,h,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:l}=this.getProps(),{projection:i}=this.visualElement;if(!Vr(l)||!i||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Xa(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const f=h.get();c[d]=fk({min:f,max:f},this.constraints[d])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),Xa(d=>{if(!l1(d,a,null))return;const h=this.getAxisMotionValue(d),{min:f,max:p}=this.constraints[d];h.set(lt(f,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;xk.set(this.visualElement,this);const a=this.visualElement.current,l=il(a,"pointerdown",p=>{const{drag:g,dragListener:x=!0}=this.getProps(),b=p.target,w=b!==a&&WT(b);g&&x&&!w&&this.start(p)});let i;const c=()=>{const{dragConstraints:p}=this.getProps();Vr(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),i||(i=bk(a,p.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,d=u.addEventListener("measure",c);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Je.read(c);const h=fl(window,"resize",()=>this.scalePositionWithinConstraints()),f=u.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(Xa(x=>{const b=this.getAxisMotionValue(x);b&&(this.originPoint[x]+=p[x].translate,b.set(b.get()+p[x].translate))}),this.visualElement.render())}));return()=>{h(),l(),d(),f&&f(),i&&i()}}getProps(){const a=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:i=!1,dragPropagation:c=!1,dragConstraints:u=!1,dragElastic:d=Gh,dragMomentum:h=!0}=a;return{...a,drag:l,dragDirectionLock:i,dragPropagation:c,dragConstraints:u,dragElastic:d,dragMomentum:h}}}function Qx(e){let a=!0;return()=>{if(a){a=!1;return}e()}}function bk(e,a,l){const i=rx(e,Qx(l)),c=rx(a,Qx(l));return()=>{i(),c()}}function l1(e,a,l){return(a===!0||a===e)&&(l===null||l===e)}function yk(e,a=10){let l=null;return Math.abs(e.y)>a?l="y":Math.abs(e.x)>a&&(l="x"),l}class wk extends d0{constructor(a){super(a),this.removeGroupControls=Za,this.removeListeners=Za,this.controls=new vk(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Za}update(){const{dragControls:a}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};a!==l&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const B2=e=>(a,l)=>{e&&Je.update(()=>e(a,l),!1,!0)};class Ak extends d0{constructor(){super(...arguments),this.removePointerDownListener=Za}onPointerDown(a){this.session=new mE(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hE(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:l,onPan:i,onPanEnd:c}=this.node.getProps();return{onSessionStart:B2(a),onStart:B2(l),onMove:B2(i),onEnd:(u,d)=>{delete this.session,c&&Je.postRender(()=>c(u,d))}}}mount(){this.removePointerDownListener=il(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let I2=!1;class jk extends n.Component{componentDidMount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:i,layoutId:c}=this.props,{projection:u}=a;u&&(l.group&&l.group.add(u),i&&i.register&&c&&i.register(u),I2&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),v1.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:l,visualElement:i,drag:c,isPresent:u}=this.props,{projection:d}=i;return d&&(d.isPresent=u,a.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),I2=!0,c||a.layoutDependency!==l||l===void 0||a.isPresent!==u?d.willUpdate():this.safeToRemove(),a.isPresent!==u&&(u?d.promote():d.relegate()||Je.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Om.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:i}=this.props,{projection:c}=a;I2=!0,c&&(c.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(c),i&&i.deregister&&i.deregister(c))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function pE(e){const[a,l]=nE(),i=n.useContext(xm);return s.jsx(jk,{...e,layoutGroup:i,switchLayoutGroup:n.useContext(uE),isPresent:a,safeToRemove:l})}const Ek={pan:{Feature:Ak},drag:{Feature:wk,ProjectionNode:aE,MeasureLayout:pE}};function Jx(e,a,l){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,u=i[c];u&&Je.postRender(()=>u(a,El(a)))}class Nk extends d0{mount(){const{current:a}=this.node;a&&(this.unmount=KT(a,(l,i)=>(Jx(this.node,i,"Start"),c=>Jx(this.node,c,"End"))))}unmount(){}}class Mk extends d0{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=wl(fl(this.node.current,"focus",()=>this.onFocus()),fl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wx(e,a,l){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",l==="Start");const c="onTap"+(l==="End"?"":l),u=i[c];u&&Je.postRender(()=>u(a,El(a)))}class Sk extends d0{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:l,propagate:i}=this.node.props;this.unmount=tL(a,(c,u)=>(Wx(this.node,u,"Start"),(d,{success:h})=>Wx(this.node,d,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const Yh=new WeakMap,U2=new WeakMap,Zk=e=>{const a=Yh.get(e.target);a&&a(e)},Ck=e=>{e.forEach(Zk)};function Hk({root:e,...a}){const l=e||document;U2.has(l)||U2.set(l,{});const i=U2.get(l),c=JSON.stringify(a);return i[c]||(i[c]=new IntersectionObserver(Ck,{root:e,...a})),i[c]}function Vk(e,a,l){const i=Hk(a);return Yh.set(e,l),i.observe(e),()=>{Yh.delete(e),i.unobserve(e)}}const _k={some:0,all:1};class Tk extends d0{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:l,margin:i,amount:c="some",once:u}=a,d={root:l?l.current:void 0,rootMargin:i,threshold:typeof c=="number"?c:_k[c]},h=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,u&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),b=p?g:x;b&&b(f)};return Vk(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:l}=this.node;["amount","margin","root"].some(Lk(a,l))&&this.startObserver()}unmount(){}}function Lk({viewport:e={}},{viewport:a={}}={}){return l=>e[l]!==a[l]}const Rk={inView:{Feature:Tk},tap:{Feature:Sk},focus:{Feature:Mk},hover:{Feature:Nk}},kk={layout:{ProjectionNode:aE,MeasureLayout:pE}},Dk={...lk,...Rk,...Ek,...kk},Re=tk(Dk,ak),Ok=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Fk=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232.49,160.49l-48,48a12,12,0,0,1-17-17L195,164H128A108.12,108.12,0,0,1,20,56a12,12,0,0,1,24,0,84.09,84.09,0,0,0,84,84h67l-27.52-27.51a12,12,0,0,1,17-17l48,48A12,12,0,0,1,232.49,160.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,152l-48,48V104Z",opacity:"0.2"}),n.createElement("path",{d:"M229.66,146.34l-48-48A8,8,0,0,0,168,104v40H128A88.1,88.1,0,0,1,40,56a8,8,0,0,0-16,0A104.11,104.11,0,0,0,128,160h40v40a8,8,0,0,0,13.66,5.66l48-48A8,8,0,0,0,229.66,146.34ZM184,180.69V123.31L212.69,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,157.66l-48,48A8,8,0,0,1,168,200V160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h40V104a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,229.66,157.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.24,156.24l-48,48a6,6,0,0,1-8.48-8.48L209.51,158H128A102.12,102.12,0,0,1,26,56a6,6,0,0,1,12,0,90.1,90.1,0,0,0,90,90h81.51l-37.75-37.76a6,6,0,0,1,8.48-8.48l48,48A6,6,0,0,1,228.24,156.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,157.66l-48,48a8,8,0,0,1-11.32-11.32L204.69,160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h76.69l-34.35-34.34a8,8,0,0,1,11.32-11.32l48,48A8,8,0,0,1,229.66,157.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.83,154.83l-48,48a4,4,0,0,1-5.66-5.66L214.34,156H128A100.11,100.11,0,0,1,28,56a4,4,0,0,1,8,0,92.1,92.1,0,0,0,92,92h86.34l-41.17-41.17a4,4,0,0,1,5.66-5.66l48,48A4,4,0,0,1,226.83,154.83Z"}))]]),zk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),qk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),$k=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),n.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),Bk=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),n.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),Ik=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.81,74.65A11.86,11.86,0,0,1,220.3,76a12,12,0,0,1-10.67-6.47,90.1,90.1,0,0,0-32-35.38,12,12,0,1,1,12.8-20.29,115.25,115.25,0,0,1,40.54,44.62A12,12,0,0,1,225.81,74.65ZM46.37,69.53a90.1,90.1,0,0,1,32-35.38A12,12,0,1,0,65.6,13.86,115.25,115.25,0,0,0,25.06,58.48a12,12,0,0,0,5.13,16.17A11.86,11.86,0,0,0,35.7,76,12,12,0,0,0,46.37,69.53Zm173.51,98.35A20,20,0,0,1,204,200H171.81a44,44,0,0,1-87.62,0H52a20,20,0,0,1-15.91-32.12c7.17-9.33,15.73-26.62,15.88-55.94A76,76,0,0,1,204,112C204.15,141.26,212.71,158.55,219.88,167.88ZM147.6,200H108.4a20,20,0,0,0,39.2,0Zm48.74-24c-8.16-13-16.19-33.57-16.34-63.94A52,52,0,1,0,76,112c-.15,30.42-8.18,51-16.34,64Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,147.81,56,112a72,72,0,0,1,144,0c0,35.82,8.3,56.6,14.9,68A8,8,0,0,1,208,192Z",opacity:"0.2"}),n.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.05,69.33A6,6,0,0,1,215,66.76,96,96,0,0,0,180.8,29.08a6,6,0,0,1,6.4-10.15,109.26,109.26,0,0,1,38.41,42.31A6,6,0,0,1,223.05,69.33ZM41,66.76A96,96,0,0,1,75.2,29.08a6,6,0,0,0-6.4-10.15A109.26,109.26,0,0,0,30.39,61.24,6,6,0,1,0,41,66.76Zm179,110.18A14,14,0,0,1,208,198h-42.5a38,38,0,0,1-75,0H48a14,14,0,0,1-12.06-21.06C45.13,161.09,50,138.63,50,112a78,78,0,0,1,156,0C206,139,210.74,160.86,220.08,176.94ZM153.29,198H102.71a26,26,0,0,0,50.58,0Zm56.42-15C199.29,165,194,141.15,194,112a66,66,0,0,0-132,0c0,29.16-5.29,53-15.71,71a2,2,0,0,0,0,2,1.9,1.9,0,0,0,1.7,1H208a1.9,1.9,0,0,0,1.7-1A2,2,0,0,0,209.71,183Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,71.1a8,8,0,0,1-10.78-3.42,94.13,94.13,0,0,0-33.46-36.91,8,8,0,1,1,8.54-13.54,111.46,111.46,0,0,1,39.12,43.09A8,8,0,0,1,224,71.1ZM35.71,72a8,8,0,0,0,7.1-4.32A94.13,94.13,0,0,1,76.27,30.77a8,8,0,1,0-8.54-13.54A111.46,111.46,0,0,0,28.61,60.32,8,8,0,0,0,35.71,72Zm186.1,103.94A16,16,0,0,1,208,200H167.2a40,40,0,0,1-78.4,0H48a16,16,0,0,1-13.79-24.06C43.22,160.39,48,138.28,48,112a80,80,0,0,1,160,0C208,138.27,212.78,160.38,221.81,175.94ZM150.62,200H105.38a24,24,0,0,0,45.24,0ZM208,184c-10.64-18.27-16-42.49-16-72a64,64,0,0,0-128,0c0,29.52-5.38,53.74-16,72Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222.13,67.55a3.94,3.94,0,0,1-1.84.45,4,4,0,0,1-3.55-2.16,99.41,99.41,0,0,0-34.87-38.46,4,4,0,1,1,4.26-6.76,107.34,107.34,0,0,1,37.71,41.54A4,4,0,0,1,222.13,67.55ZM39.26,65.84A99.41,99.41,0,0,1,74.13,27.38a4,4,0,0,0-4.26-6.76A107.34,107.34,0,0,0,32.16,62.16a4,4,0,0,0,1.71,5.39,3.94,3.94,0,0,0,1.84.45A4,4,0,0,0,39.26,65.84ZM218.36,178A12,12,0,0,1,208,196H163.77a36,36,0,0,1-71.54,0H48A12,12,0,0,1,37.64,178C47.17,161.56,52,139.37,52,112a76,76,0,0,1,152,0C204,139.36,208.83,161.55,218.36,178ZM155.71,196H100.29a28,28,0,0,0,55.42,0Zm55.73-14C201.19,164.34,196,140.79,196,112a68,68,0,0,0-136,0c0,28.8-5.19,52.34-15.44,70a4,4,0,0,0,0,4A3.89,3.89,0,0,0,48,188H208a3.89,3.89,0,0,0,3.43-2A4,4,0,0,0,211.44,182Z"}))]]),Uk=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32,32,32,0,0,0-32-32H24V56H96a32,32,0,0,1,32,32,32,32,0,0,1,32-32Z",opacity:"0.2"}),n.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,56V200a8,8,0,0,1-8,8H160a24,24,0,0,0-24,23.94,7.9,7.9,0,0,1-5.12,7.55A8,8,0,0,1,120,232a24,24,0,0,0-24-24H24a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H88a32,32,0,0,1,32,32v87.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V80a32,32,0,0,1,32-32h64A8,8,0,0,1,240,56Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.93,35.93,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68Z"}))]]),Pk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Gk=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V84H44V60ZM44,196V108H212v88Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56V96H32V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),n.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,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["fill",n.createElement(n.Fragment,null,n.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,40Zm0,16V88H40V56Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V90H38V56A2,2,0,0,1,40,54ZM216,202H40a2,2,0,0,1-2-2V102H218v98A2,2,0,0,1,216,202Z"}))],["regular",n.createElement(n.Fragment,null,n.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,40Zm0,16V88H40V56Zm0,144H40V104H216v96Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V92H36V56A4,4,0,0,1,40,52ZM216,204H40a4,4,0,0,1-4-4V100H220V200A4,4,0,0,1,216,204Z"}))]]),Yk=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,204H228V96a20,20,0,0,0-20-20H172V32a20,20,0,0,0-28.45-18.12l-104,48.54A20.06,20.06,0,0,0,28,80.55V204H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM204,100V204H172V100ZM52,83.09,148,38.3V204H52ZM132,112v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm-40,0v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm0,52v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Zm40,0v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,32V216H40V85.35a8,8,0,0,1,3.56-6.66l80-53.33A8,8,0,0,1,136,32Z",opacity:"0.2"}),n.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M239.73,208H224V96a16,16,0,0,0-16-16H164a4,4,0,0,0-4,4V208H144V32.41a16.43,16.43,0,0,0-6.16-13,16,16,0,0,0-18.72-.69L39.12,72A16,16,0,0,0,32,85.34V208H16.27A8.18,8.18,0,0,0,8,215.47,8,8,0,0,0,16,224H240a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,239.73,208ZM76,184a8,8,0,0,1-8.53,8A8.18,8.18,0,0,1,60,183.72V168.27A8.19,8.19,0,0,1,67.47,160,8,8,0,0,1,76,168Zm0-56a8,8,0,0,1-8.53,8A8.19,8.19,0,0,1,60,127.72V112.27A8.19,8.19,0,0,1,67.47,104,8,8,0,0,1,76,112Zm40,56a8,8,0,0,1-8.53,8,8.18,8.18,0,0,1-7.47-8.26V168.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Zm0-56a8,8,0,0,1-8.53,8,8.19,8.19,0,0,1-7.47-8.26V112.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,210H222V96a14,14,0,0,0-14-14H142V32a14,14,0,0,0-21.77-11.64l-80,53.33A14,14,0,0,0,34,85.34V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM208,94a2,2,0,0,1,2,2V210H142V94ZM46,85.34a2,2,0,0,1,.89-1.66l80-53.34A2,2,0,0,1,130,32V210H46ZM110,112v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm-32,0v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm0,56v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Zm32,0v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,212H220V96a12,12,0,0,0-12-12H140V32a12,12,0,0,0-18.66-10l-80,53.33a12,12,0,0,0-5.34,10V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM208,92a4,4,0,0,1,4,4V212H140V92ZM44,85.34A4,4,0,0,1,45.78,82l80-53.33A4,4,0,0,1,132,32V212H44ZM108,112v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm-32,0v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm0,56v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Zm32,0v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Z"}))]]),Kk=new Map([["bold",n.createElement(n.Fragment,null,n.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,204V100H204V204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),n.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,208H48V96H208V208Z"}))],["fill",n.createElement(n.Fragment,null,n.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,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",n.createElement(n.Fragment,null,n.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,210Z"}))],["regular",n.createElement(n.Fragment,null,n.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,208H48V96H208V208Z"}))],["thin",n.createElement(n.Fragment,null,n.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,212Z"}))]]),Xk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),Qk=new Map([["bold",n.createElement(n.Fragment,null,n.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,204V100H204V204Zm120.49-84.49a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-24-24a12,12,0,0,1,17-17L116,159l39.51-39.52A12,12,0,0,1,172.49,119.51Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),n.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-38.34-85.66a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35A8,8,0,0,1,169.66,122.34Z"}))],["fill",n.createElement(n.Fragment,null,n.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,32ZM169.66,133.66l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35a8,8,0,0,1,11.32,11.32ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z"}))],["light",n.createElement(n.Fragment,null,n.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-39.76-86.24a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L116,167.51l43.76-43.75A6,6,0,0,1,168.24,123.76Z"}))],["regular",n.createElement(n.Fragment,null,n.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-38.34-85.66a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L116,164.69l42.34-42.35A8,8,0,0,1,169.66,122.34Z"}))],["thin",n.createElement(n.Fragment,null,n.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,212Zm-41.17-86.83a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L116,170.34l45.17-45.17A4,4,0,0,1,166.83,125.17Z"}))]]),Jk=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"}))]]),Wk=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),eD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),tD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),aD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),n.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z"}))]]),nD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v99l43.51-43.52a12,12,0,0,1,17,0L128,127l43-43H160a12,12,0,0,1,0-24h40a12,12,0,0,1,12,12v40a12,12,0,0,1-24,0V101l-51.51,51.52a12,12,0,0,1-17,0L96,129,44,181v15H224A12,12,0,0,1,236,208Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),n.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["fill",n.createElement(n.Fragment,null,n.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,40ZM200,192H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v76.69l34.34-34.35a8,8,0,0,1,11.32,0L128,132.69,172.69,88H144a8,8,0,0,1,0-16h48a8,8,0,0,1,8,8v48a8,8,0,0,1-16,0V99.31l-50.34,50.35a8,8,0,0,1-11.32,0L104,131.31l-40,40V176H200a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0V161.52l53.76-53.76a6,6,0,0,1,8.48,0L128,135.51,185.52,78H160a6,6,0,0,1,0-12h40a6,6,0,0,1,6,6v40a6,6,0,0,1-12,0V86.48l-61.76,61.76a6,6,0,0,1-8.48,0L96,120.49l-58,58V202H224A6,6,0,0,1,230,208Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0V156.69l50.34-50.35a8,8,0,0,1,11.32,0L128,132.69,180.69,80H160a8,8,0,0,1,0-16h40a8,8,0,0,1,8,8v40a8,8,0,0,1-16,0V91.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31l-56,56V200H224A8,8,0,0,1,232,208Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V166.34l57.17-57.17a4,4,0,0,1,5.66,0L128,138.34,190.34,76H160a4,4,0,0,1,0-8h40a4,4,0,0,1,4,4v40a4,4,0,0,1-8,0V81.66l-65.17,65.17a4,4,0,0,1-5.66,0L96,117.66l-60,60V204H224A4,4,0,0,1,228,208Z"}))]]),rD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,0,0,31.85,177.23L21,209.66A20,20,0,0,0,46.34,235l32.43-10.81A108,108,0,1,0,128,20Zm0,192a84,84,0,0,1-42.06-11.27,12,12,0,0,0-6-1.62,12.1,12.1,0,0,0-3.8.62l-29.79,9.93,9.93-29.79a12,12,0,0,0-1-9.81A84,84,0,1,1,128,212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]),sD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),lD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),iD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),oD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),cD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),n.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),uD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",n.createElement(n.Fragment,null,n.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,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),dD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),hD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M156,88H100a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12h56a12,12,0,0,0,12-12V100A12,12,0,0,0,156,88Zm-12,56H112V112h32Zm88-4H220V116h12a12,12,0,0,0,0-24H220V56a20,20,0,0,0-20-20H164V24a12,12,0,0,0-24,0V36H116V24a12,12,0,0,0-24,0V36H56A20,20,0,0,0,36,56V92H24a12,12,0,0,0,0,24H36v24H24a12,12,0,0,0,0,24H36v36a20,20,0,0,0,20,20H92v12a12,12,0,0,0,24,0V220h24v12a12,12,0,0,0,24,0V220h36a20,20,0,0,0,20-20V164h12a12,12,0,0,0,0-24Zm-36,56H60V60H196Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,48H56a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H200a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48ZM152,152H104V104h48Z",opacity:"0.2"}),n.createElement("path",{d:"M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,104h48v48H104Zm136,48a8,8,0,0,1-8,8H216v40a16,16,0,0,1-16,16H160v16a8,8,0,0,1-16,0V216H112v16a8,8,0,0,1-16,0V216H56a16,16,0,0,1-16-16V160H24a8,8,0,0,1,0-16H40V112H24a8,8,0,0,1,0-16H40V56A16,16,0,0,1,56,40H96V24a8,8,0,0,1,16,0V40h32V24a8,8,0,0,1,16,0V40h40a16,16,0,0,1,16,16V96h16a8,8,0,0,1,0,16H216v32h16A8,8,0,0,1,240,152ZM168,96a8,8,0,0,0-8-8H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152,98H104a6,6,0,0,0-6,6v48a6,6,0,0,0,6,6h48a6,6,0,0,0,6-6V104A6,6,0,0,0,152,98Zm-6,48H110V110h36Zm86,0H214V110h18a6,6,0,0,0,0-12H214V56a14,14,0,0,0-14-14H158V24a6,6,0,0,0-12,0V42H110V24a6,6,0,0,0-12,0V42H56A14,14,0,0,0,42,56V98H24a6,6,0,0,0,0,12H42v36H24a6,6,0,0,0,0,12H42v42a14,14,0,0,0,14,14H98v18a6,6,0,0,0,12,0V214h36v18a6,6,0,0,0,12,0V214h42a14,14,0,0,0,14-14V158h18a6,6,0,0,0,0-12Zm-30,54a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152,100H104a4,4,0,0,0-4,4v48a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V104A4,4,0,0,0,152,100Zm-4,48H108V108h40Zm84,0H212V108h20a4,4,0,0,0,0-8H212V56a12,12,0,0,0-12-12H156V24a4,4,0,0,0-8,0V44H108V24a4,4,0,0,0-8,0V44H56A12,12,0,0,0,44,56v44H24a4,4,0,0,0,0,8H44v40H24a4,4,0,0,0,0,8H44v44a12,12,0,0,0,12,12h44v20a4,4,0,0,0,8,0V212h40v20a4,4,0,0,0,8,0V212h44a12,12,0,0,0,12-12V156h20a4,4,0,0,0,0-8Zm-28,52a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"}))]]),mD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,116h-4.72A100.21,100.21,0,0,0,140,28.72V24a12,12,0,0,0-24,0v4.72A100.21,100.21,0,0,0,28.72,116H24a12,12,0,0,0,0,24h4.72A100.21,100.21,0,0,0,116,227.28V232a12,12,0,0,0,24,0v-4.72A100.21,100.21,0,0,0,227.28,140H232a12,12,0,0,0,0-24Zm-92,87v-3a12,12,0,0,0-24,0v3a76.15,76.15,0,0,1-63-63h3a12,12,0,0,0,0-24H53a76.15,76.15,0,0,1,63-63v3a12,12,0,0,0,24,0V53a76.15,76.15,0,0,1,63,63h-3a12,12,0,0,0,0,24h3A76.15,76.15,0,0,1,140,203ZM128,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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z",opacity:"0.2"}),n.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-32,16h7.6A80.15,80.15,0,0,1,136,207.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16Zm-32-8a40,40,0,1,1-40-40A40,40,0,0,1,168,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,122H221.8A94.13,94.13,0,0,0,134,34.2V24a6,6,0,0,0-12,0V34.2A94.13,94.13,0,0,0,34.2,122H24a6,6,0,0,0,0,12H34.2A94.13,94.13,0,0,0,122,221.8V232a6,6,0,0,0,12,0V221.8A94.13,94.13,0,0,0,221.8,134H232a6,6,0,0,0,0-12Zm-98,87.76V200a6,6,0,0,0-12,0v9.76A82.09,82.09,0,0,1,46.24,134H56a6,6,0,0,0,0-12H46.24A82.09,82.09,0,0,1,122,46.24V56a6,6,0,0,0,12,0V46.24A82.09,82.09,0,0,1,209.76,122H200a6,6,0,0,0,0,12h9.76A82.09,82.09,0,0,1,134,209.76ZM128,90a38,38,0,1,0,38,38A38,38,0,0,0,128,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,154Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,120h-8.34A96.14,96.14,0,0,0,136,32.34V24a8,8,0,0,0-16,0v8.34A96.14,96.14,0,0,0,32.34,120H24a8,8,0,0,0,0,16h8.34A96.14,96.14,0,0,0,120,223.66V232a8,8,0,0,0,16,0v-8.34A96.14,96.14,0,0,0,223.66,136H232a8,8,0,0,0,0-16Zm-96,87.6V200a8,8,0,0,0-16,0v7.6A80.15,80.15,0,0,1,48.4,136H56a8,8,0,0,0,0-16H48.4A80.15,80.15,0,0,1,120,48.4V56a8,8,0,0,0,16,0V48.4A80.15,80.15,0,0,1,207.6,120H200a8,8,0,0,0,0,16h7.6A80.15,80.15,0,0,1,136,207.6ZM128,88a40,40,0,1,0,40,40A40,40,0,0,0,128,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,152Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,124H219.91A92.13,92.13,0,0,0,132,36.09V24a4,4,0,0,0-8,0V36.09A92.13,92.13,0,0,0,36.09,124H24a4,4,0,0,0,0,8H36.09A92.13,92.13,0,0,0,124,219.91V232a4,4,0,0,0,8,0V219.91A92.13,92.13,0,0,0,219.91,132H232a4,4,0,0,0,0-8ZM132,211.9V200a4,4,0,0,0-8,0v11.9A84.11,84.11,0,0,1,44.1,132H56a4,4,0,0,0,0-8H44.1A84.11,84.11,0,0,1,124,44.1V56a4,4,0,0,0,8,0V44.1A84.11,84.11,0,0,1,211.9,124H200a4,4,0,0,0,0,8h11.9A84.11,84.11,0,0,1,132,211.9ZM128,92a36,36,0,1,0,36,36A36,36,0,0,0,128,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,156Z"}))]]),fD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,128,115.4,56,76ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l72-39.4v76.65Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.16a8,8,0,0,1-4.16-7V80.2a8,8,0,0,1,.7-3.27Z",opacity:"0.2"}),n.createElement("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,120,47.65,76,128,32l80.35,44Zm8,99.64V133.83l80-43.78v85.76Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222.72,67.9l-88-48.17a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.9ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,128,122.24,43.49,76ZM39,177.57a2,2,0,0,1-1-1.75V86.66l84,46V223Zm177.92,0L134,223V132.64l84-46v89.16A2,2,0,0,1,217,177.57Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.68,66.15,135.68,18h0a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32h0l80.34,44L128,120,47.66,76ZM40,90l80,43.78v85.79L40,175.82Zm96,129.57V133.82L216,90v85.78Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,128,124.52,39.33,76Zm-88,150.83A4,4,0,0,1,36,175.82V83.29l88,48.16v94.91Zm179.84,0-85.92,47V131.45l88-48.16v92.53A4,4,0,0,1,217.92,179.32Z"}))]]),pD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152,116H140V60h4a28,28,0,0,1,28,28,12,12,0,0,0,24,0,52.06,52.06,0,0,0-52-52h-4V24a12,12,0,0,0-24,0V36h-4a52,52,0,0,0,0,104h4v56H104a28,28,0,0,1-28-28,12,12,0,0,0-24,0,52.06,52.06,0,0,0,52,52h12v12a12,12,0,0,0,24,0V220h12a52,52,0,0,0,0-104Zm-40,0a28,28,0,0,1,0-56h4v56Zm40,80H140V140h12a28,28,0,0,1,0,56Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,168a40,40,0,0,1-40,40H128V128h24A40,40,0,0,1,192,168ZM112,48a40,40,0,0,0,0,80h16V48Z",opacity:"0.2"}),n.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,152a16,16,0,0,1-16,16h-8V136h8A16,16,0,0,1,160,152Zm72-24A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-56,24a32,32,0,0,0-32-32h-8V88h4a16,16,0,0,1,16,16,8,8,0,0,0,16,0,32,32,0,0,0-32-32h-4V64a8,8,0,0,0-16,0v8h-4a32,32,0,0,0,0,64h4v32h-8a16,16,0,0,1-16-16,8,8,0,0,0-16,0,32,32,0,0,0,32,32h8v8a8,8,0,0,0,16,0v-8h8A32,32,0,0,0,176,152Zm-76-48a16,16,0,0,0,16,16h4V88h-4A16,16,0,0,0,100,104Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152,122H134V54h10a34,34,0,0,1,34,34,6,6,0,0,0,12,0,46.06,46.06,0,0,0-46-46H134V24a6,6,0,0,0-12,0V42H112a46,46,0,0,0,0,92h10v68H104a34,34,0,0,1-34-34,6,6,0,0,0-12,0,46.06,46.06,0,0,0,46,46h18v18a6,6,0,0,0,12,0V214h18a46,46,0,0,0,0-92Zm-40,0a34,34,0,0,1,0-68h10v68Zm40,80H134V134h18a34,34,0,0,1,0,68Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152,120H136V56h8a32,32,0,0,1,32,32,8,8,0,0,0,16,0,48.05,48.05,0,0,0-48-48h-8V24a8,8,0,0,0-16,0V40h-8a48,48,0,0,0,0,96h8v64H104a32,32,0,0,1-32-32,8,8,0,0,0-16,0,48.05,48.05,0,0,0,48,48h16v16a8,8,0,0,0,16,0V216h16a48,48,0,0,0,0-96Zm-40,0a32,32,0,0,1,0-64h8v64Zm40,80H136V136h16a32,32,0,0,1,0,64Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152,124H132V52h12a36,36,0,0,1,36,36,4,4,0,0,0,8,0,44.05,44.05,0,0,0-44-44H132V24a4,4,0,0,0-8,0V44H112a44,44,0,0,0,0,88h12v72H104a36,36,0,0,1-36-36,4,4,0,0,0-8,0,44.05,44.05,0,0,0,44,44h20v20a4,4,0,0,0,8,0V212h20a44,44,0,0,0,0-88Zm-40,0a36,36,0,0,1,0-72h12v72Zm40,80H132V132h20a36,36,0,0,1,0,72Z"}))]]),gD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",opacity:"0.2"}),n.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z"}))]]),xD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),vD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,152H48a20,20,0,0,0-20,20v20a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V172A20,20,0,0,0,208,152Zm-4,36H52V176H204ZM48.27,136H207.73a20.27,20.27,0,0,0,14.61-34.3L148.58,24.78a28.51,28.51,0,0,0-41.16,0L33.66,101.7A20.27,20.27,0,0,0,48.27,136Zm76.48-94.61a4.49,4.49,0,0,1,6.5,0L199,112H57Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,168v24a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V168a8,8,0,0,1,8-8H208A8,8,0,0,1,216,168ZM48.23,128H207.77c7.16,0,10.89-8.27,6-13.37l-73.74-77.5a16.76,16.76,0,0,0-24.14,0l-73.74,77.5C37.34,119.73,41.07,128,48.23,128Z",opacity:"0.2"}),n.createElement("path",{d:"M208,152H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Zm0,40H48V168H208ZM48.24,136H207.76a16.18,16.18,0,0,0,14.93-9.76,15.59,15.59,0,0,0-3.1-17.12L145.86,31.61a24.76,24.76,0,0,0-35.72,0L36.41,109.12h0a15.59,15.59,0,0,0-3.1,17.12A16.18,16.18,0,0,0,48.24,136Zm73.49-93.36a8.77,8.77,0,0,1,12.54,0L207.85,120H48.14Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M33.31,126.24a15.59,15.59,0,0,1,3.1-17.12h0l73.73-77.51a24.76,24.76,0,0,1,35.72,0l73.73,77.51a15.59,15.59,0,0,1,3.1,17.12A16.18,16.18,0,0,1,207.76,136H48.24A16.18,16.18,0,0,1,33.31,126.24ZM208,152H48a16,16,0,0,0-16,16v16a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,154H48a14,14,0,0,0-14,14v24a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V168A14,14,0,0,0,208,154Zm2,38a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V168a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM48.24,134H207.76a14.19,14.19,0,0,0,13.1-8.55,13.61,13.61,0,0,0-2.72-15L144.41,33a22.76,22.76,0,0,0-32.82,0L37.86,110.5a13.61,13.61,0,0,0-2.72,15A14.19,14.19,0,0,0,48.24,134Zm-1.69-15.23,73.73-77.51a10.77,10.77,0,0,1,15.44,0l73.73,77.51a1.67,1.67,0,0,1,.38,2,2.11,2.11,0,0,1-2.07,1.27H48.24a2.11,2.11,0,0,1-2.07-1.27A1.67,1.67,0,0,1,46.55,118.77Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,152H48a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V168A16,16,0,0,0,208,152Zm0,40H48V168H208ZM48.24,136H207.76a16.18,16.18,0,0,0,14.93-9.76,15.59,15.59,0,0,0-3.1-17.12L145.86,31.61a24.76,24.76,0,0,0-35.72,0L36.41,109.12h0a15.59,15.59,0,0,0-3.1,17.12A16.18,16.18,0,0,0,48.24,136Zm73.49-93.36a8.77,8.77,0,0,1,12.54,0L207.85,120H48.14Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,156H48a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V168A12,12,0,0,0,208,156Zm4,36a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V168a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM48.23,132H207.77A12,12,0,0,0,219,124.67a11.68,11.68,0,0,0-2.33-12.8L143,34.37a20.75,20.75,0,0,0-29.92,0L39.3,111.87A11.68,11.68,0,0,0,37,124.67,12,12,0,0,0,48.23,132ZM45.1,117.39l73.73-77.51a12.78,12.78,0,0,1,18.34,0l73.73,77.51a3.66,3.66,0,0,1,.77,4.12,4.1,4.1,0,0,1-3.9,2.49H48.23a4.1,4.1,0,0,1-3.9-2.49A3.66,3.66,0,0,1,45.1,117.39Z"}))]]),bD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),yD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),wD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.42,162A12,12,0,1,1,213.58,174l-16.86-29.5a127.19,127.19,0,0,1-30.17,13.86L171.84,190a12,12,0,0,1-9.87,13.8,11.22,11.22,0,0,1-2,.17,12,12,0,0,1-11.82-10L143,163.17a136.5,136.5,0,0,1-30.06,0L107.84,194A12,12,0,0,1,96,204a11.22,11.22,0,0,1-2-.17A12,12,0,0,1,84.16,190l5.29-31.72a127.19,127.19,0,0,1-30.17-13.86L42.42,174A12,12,0,1,1,21.58,162L40,129.85a159.73,159.73,0,0,1-17.31-18.31A12,12,0,0,1,41.34,96.46C57.38,116.32,85.44,140,128,140s70.62-23.68,86.66-43.54a12,12,0,0,1,18.67,15.08A159.73,159.73,0,0,1,216,129.85Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,104c-16.81,20.81-47.63,48-96,48s-79.19-27.19-96-48c16.81-20.81,47.63-48,96-48S207.19,83.19,224,104Z",opacity:"0.2"}),n.createElement("path",{d:"M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.94,164A8,8,0,1,1,217.05,172l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a152.8,152.8,0,0,1-19.3-20,8,8,0,0,1,0-10.06C44.56,75.72,77.55,48,128,48s83.44,27.72,102.22,51a8,8,0,0,1,0,10.06,152.8,152.8,0,0,1-19.3,20Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.21,165a6,6,0,0,1-10.42,6l-20-35.08a122,122,0,0,1-39,18.09l6.17,37a6,6,0,0,1-4.93,6.91,6.85,6.85,0,0,1-1,.08,6,6,0,0,1-5.91-5L148,156.44a128.86,128.86,0,0,1-40,0L101.92,193A6,6,0,0,1,96,198a6.85,6.85,0,0,1-1-.08A6,6,0,0,1,90.08,191l6.17-37a122,122,0,0,1-39-18.09L37.21,171a6,6,0,1,1-10.42-6l20.85-36.48a152,152,0,0,1-20.31-20.77,6,6,0,0,1,9.34-7.54C53.54,121.11,83.07,146,128,146s74.46-24.89,91.33-45.77a6,6,0,0,1,9.34,7.54,152,152,0,0,1-20.31,20.77Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226,171.47a3.92,3.92,0,0,1-2,.53,4,4,0,0,1-3.47-2l-21.15-37a120,120,0,0,1-41.91,19.53L164,191.34a4,4,0,0,1-3.29,4.6,3.79,3.79,0,0,1-.67.06,4,4,0,0,1-3.94-3.34l-6.41-38.5a128.17,128.17,0,0,1-43.28,0L100,192.66A4,4,0,0,1,96,196a3.88,3.88,0,0,1-.67-.06,4,4,0,0,1-3.29-4.6l6.48-38.83A120,120,0,0,1,56.62,133L35.47,170A4,4,0,0,1,32,172a3.92,3.92,0,0,1-2-.53A4,4,0,0,1,28.53,166l21.68-37.94a148.24,148.24,0,0,1-21.32-21.56,4,4,0,1,1,6.22-5C52.25,122.71,82.29,148,128,148s75.75-25.29,92.89-46.51a4,4,0,1,1,6.22,5,148.24,148.24,0,0,1-21.32,21.56L227.47,166A4,4,0,0,1,226,171.47Z"}))]]),AD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),n.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),jD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M40.14,46.88A12,12,0,0,0,36,56V224a12,12,0,0,0,24,0V181.72c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2,14.72,0,30.28-4.94,46.38-18.88A12,12,0,0,0,236,176V56a12,12,0,0,0-19.86-9.07c-24.71,21.41-44.53,13.31-74.82-1.68C113.19,31.27,78.17,13.94,40.14,46.88ZM212,170.26c-22.84,17.13-42.1,9.11-70.68-5C118.16,153.76,90.33,140,60,153.87V61.69c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2A63,63,0,0,0,212,78.08Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56V176c-64,55.43-112-55.43-176,0V56C112,.57,160,111.43,224,56Z",opacity:"0.2"}),n.createElement("path",{d:"M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,56V176a8,8,0,0,1-2.76,6c-15.28,13.23-29.89,18-43.82,18-18.91,0-36.57-8.74-53-16.85C105.87,170,82.79,158.61,56,179.77V224a8,8,0,0,1-16,0V56a8,8,0,0,1,2.77-6h0c36-31.18,68.31-15.21,96.79-1.12C167,62.46,190.79,74.2,218.76,50A8,8,0,0,1,232,56Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M44.08,51.37A6,6,0,0,0,42,55.9V224a6,6,0,0,0,12,0V178.78c28.08-22.79,51.88-11,79.34,2.57,16.12,8,33.49,16.58,52,16.58,13.57,0,27.76-4.6,42.56-17.42A6,6,0,0,0,230,176V55.9a6,6,0,0,0-9.93-4.54c-29,25.12-53.28,13.09-81.41-.84C110.77,36.71,79,21.16,44.08,51.37ZM218,173.17c-28.08,22.8-51.88,11-79.34-2.58C113.4,158.08,85.09,144.07,54,164V58.72c28.08-22.8,51.88-11,79.34,2.56C158.6,73.79,186.91,87.8,218,67.91Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M45.39,53.06a4,4,0,0,0-1.39,3V224a4,4,0,0,0,8,0V177.87c29.41-24.39,55.08-11.69,82.23,1.73,16.5,8.17,33.33,16.5,51.13,16.5,13.14,0,26.81-4.55,41.26-17.06a4,4,0,0,0,1.38-3v-120a4,4,0,0,0-6.62-3c-30,26-56,13.07-83.61-.57C109.07,38.28,79.4,23.62,45.39,53.06ZM220,174.17c-29.41,24.4-55.08,11.7-82.23-1.73-26.82-13.27-54.5-27-85.77-4.66V57.92c29.41-24.4,55.08-11.7,82.23,1.73,26.82,13.27,54.5,27,85.77,4.66Z"}))]]),ED=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"}),n.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"}))]]),ND=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),MD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z",opacity:"0.2"}),n.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z"}))]]),SD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),ZD=new Map([["bold",n.createElement(n.Fragment,null,n.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,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.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,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",n.createElement(n.Fragment,null,n.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,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",n.createElement(n.Fragment,null,n.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,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",n.createElement(n.Fragment,null,n.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,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),CD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H96a27.8,27.8,0,0,0-4,.29V97.94a36,36,0,1,0-24,0v60.12a36,36,0,1,0,24,0V144a4,4,0,0,1,4-4h88a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,236,64ZM80,52A12,12,0,1,1,68,64,12,12,0,0,1,80,52Zm0,152a12,12,0,1,1,12-12A12,12,0,0,1,80,204ZM200,76a12,12,0,1,1,12-12A12,12,0,0,1,200,76Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z",opacity:"0.2"}),n.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H96a21.84,21.84,0,0,0-10,2.42v-31a30,30,0,1,0-12,0v69.2a30,30,0,1,0,12,0V144a10,10,0,0,1,10-10h88a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,230,64ZM62,64A18,18,0,1,1,80,82,18,18,0,0,1,62,64ZM98,192a18,18,0,1,1-18-18A18,18,0,0,1,98,192ZM200,82a18,18,0,1,1,18-18A18,18,0,0,1,200,82Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H96a19.91,19.91,0,0,0-12,4V91.71a28,28,0,1,0-8,0v72.58a28,28,0,1,0,8,0V144a12,12,0,0,1,12-12h88a20,20,0,0,0,20-20V91.71A28,28,0,0,0,228,64ZM60,64A20,20,0,1,1,80,84,20,20,0,0,1,60,64Zm40,128a20,20,0,1,1-20-20A20,20,0,0,1,100,192ZM200,84a20,20,0,1,1,20-20A20,20,0,0,1,200,84Z"}))]]),HD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),VD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M188,44a32,32,0,0,0-8,1V44a32,32,0,0,0-60.79-14A32,32,0,0,0,76,60v50.83a32,32,0,0,0-52,36.7C55.82,214.6,75.35,244,128,244a92.1,92.1,0,0,0,92-92V76A32,32,0,0,0,188,44Zm8,108a68.08,68.08,0,0,1-68,68c-35.83,0-49.71-14-82.48-83.14-.14-.29-.29-.58-.45-.86a8,8,0,0,1,13.85-8l.21.35,18.68,30A12,12,0,0,0,100,152V60a8,8,0,0,1,16,0v60a12,12,0,0,0,24,0V44a8,8,0,0,1,16,0v76a12,12,0,0,0,24,0V76a8,8,0,0,1,16,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,76v76a80,80,0,0,1-80,80c-44.18,0-60.75-21.28-93.32-90a20,20,0,0,1,34.64-20L88,152V60a20,20,0,0,1,40,0V44a20,20,0,0,1,40,0V76a20,20,0,0,1,40,0Z",opacity:"0.2"}),n.createElement("path",{d:"M188,48a27.75,27.75,0,0,0-12,2.71V44a28,28,0,0,0-54.65-8.6A28,28,0,0,0,80,60v64l-3.82-6.13a28,28,0,0,0-48.6,27.82c16,33.77,28.93,57.72,43.72,72.69C86.24,233.54,103.2,240,128,240a88.1,88.1,0,0,0,88-88V76A28,28,0,0,0,188,48Zm12,104a72.08,72.08,0,0,1-72,72c-20.38,0-33.51-4.88-45.33-16.85C69.44,193.74,57.26,171,41.9,138.58a6.36,6.36,0,0,0-.3-.58,12,12,0,0,1,20.79-12,1.76,1.76,0,0,0,.14.23l18.67,30A8,8,0,0,0,96,152V60a12,12,0,0,1,24,0v60a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v76a8,8,0,0,0,16,0V76a12,12,0,0,1,24,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,64v90.93c0,46.2-36.85,84.55-83,85.06A83.71,83.71,0,0,1,72.6,215.4C50.79,192.33,26.15,136,26.15,136a16,16,0,0,1,6.53-22.23c7.66-4,17.1-.84,21.4,6.62l21,36.44a6.09,6.09,0,0,0,6,3.09l.12,0A8.19,8.19,0,0,0,88,151.74V48a16,16,0,0,1,16.77-16c8.61.4,15.23,7.82,15.23,16.43V112a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V32a16,16,0,0,1,16.77-16c8.61.4,15.23,7.82,15.23,16.43V120a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V64.45c0-8.61,6.62-16,15.23-16.43A16,16,0,0,1,216,64Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M188,50a25.8,25.8,0,0,0-14,4.11V44a26,26,0,0,0-51.41-5.51A26,26,0,0,0,82,60v71l-7.53-12.1a26,26,0,0,0-45.11,25.87C60.76,211,78.51,238,128,238a86.1,86.1,0,0,0,86-86V76A26,26,0,0,0,188,50Zm14,102a74.09,74.09,0,0,1-74,74c-21,0-34.51-5.05-46.75-17.45C67.81,195,55.54,172,40.1,139.43l-.23-.43a14,14,0,0,1,24.25-14l.1.17,18.68,30A6,6,0,0,0,94,152V60a14,14,0,0,1,28,0v60a6,6,0,0,0,12,0V44a14,14,0,0,1,28,0v76a6,6,0,0,0,12,0V76a14,14,0,0,1,28,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M188,48a27.75,27.75,0,0,0-12,2.71V44a28,28,0,0,0-54.65-8.6A28,28,0,0,0,80,60v64l-3.82-6.13a28,28,0,0,0-48.6,27.82c16,33.77,28.93,57.72,43.72,72.69C86.24,233.54,103.2,240,128,240a88.1,88.1,0,0,0,88-88V76A28,28,0,0,0,188,48Zm12,104a72.08,72.08,0,0,1-72,72c-20.38,0-33.51-4.88-45.33-16.85C69.44,193.74,57.26,171,41.9,138.58a6.36,6.36,0,0,0-.3-.58,12,12,0,0,1,20.79-12,1.76,1.76,0,0,0,.14.23l18.67,30A8,8,0,0,0,96,152V60a12,12,0,0,1,24,0v60a8,8,0,0,0,16,0V44a12,12,0,0,1,24,0v76a8,8,0,0,0,16,0V76a12,12,0,0,1,24,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M188,52a23.9,23.9,0,0,0-16,6.13V44a24,24,0,0,0-47.93-1.8A24,24,0,0,0,84,60v78L72.75,119.94a24,24,0,0,0-41.62,23.92C64.44,214.12,82.17,236,128,236a84.09,84.09,0,0,0,84-84V76A24,24,0,0,0,188,52Zm16,100a76.09,76.09,0,0,1-76,76c-37.29,0-53.59-11.51-89.71-87.71l-.15-.29a16,16,0,0,1,27.71-16,.75.75,0,0,1,.07.12l18.68,30A4,4,0,0,0,92,152V60a16,16,0,0,1,32,0v60a4,4,0,0,0,8,0V44a16,16,0,0,1,32,0v76a4,4,0,0,0,8,0V76a16,16,0,0,1,32,0Z"}))]]),_D=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M253.88,108.11l-25.53-51a20,20,0,0,0-26.83-9L178.34,59.7,131.7,44.58a12.14,12.14,0,0,0-7.4,0L77.66,59.7,54.48,48.11a20,20,0,0,0-26.83,9L2.12,108.11a20,20,0,0,0,9,26.83l26.67,13.34,51.18,37.41A12.15,12.15,0,0,0,93,187.62l62,16a12.27,12.27,0,0,0,3,.38,12,12,0,0,0,8.48-3.52l52.62-52.62,25.83-12.92a20,20,0,0,0,8.95-26.83Zm-58.12,29.15-27.52-26a12,12,0,0,0-16.76.26c-9.66,9.74-25.06,16.81-40.81,9.55l38.19-37h22.72l25.81,51.63ZM47.32,71.37,60.59,78l-22,43.9-13.27-6.63Zm107,107.3L101.23,165l-42-30.66L85.17,82.5,128,68.61l1.69.55L90,107.68l-.13.12a20,20,0,0,0,3.4,31c20.95,13.39,46,12.07,66.33-2.73l19.2,18.15Zm63-56.77-22-43.9,13.27-6.63,21.95,43.9ZM118.55,219a12,12,0,0,1-14.62,8.62l-26.6-6.87a12,12,0,0,1-4.08-1.93L48.92,201a12,12,0,0,1,14.16-19.37l22.47,16.42,24.38,6.29A12,12,0,0,1,118.55,219Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,152l-40,40L96,176,40,136,72.68,70.63,128,56l55.32,14.63L183.6,72H144L98.34,116.29a8,8,0,0,0,1.38,12.42C117.23,139.9,141,139.13,160,120Z",opacity:"0.2"}),n.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l40-40,15.08-15.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41Zm-41.87,41.86L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm-25.72,34.8a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M252.51,108.8,227,57.75a14,14,0,0,0-18.78-6.27L182.66,64.26,129.53,50.2a6.1,6.1,0,0,0-3.06,0L73.34,64.26,47.79,51.48A14,14,0,0,0,29,57.75L3.49,108.8a14,14,0,0,0,6.26,18.78L36.9,141.16l55.61,39.72a6,6,0,0,0,2,.94l64,16A6.08,6.08,0,0,0,160,198a6,6,0,0,0,4.24-1.76l55.31-55.31,26.7-13.35a14,14,0,0,0,6.26-18.78Zm-53,35.16-35.8-28.68a6,6,0,0,0-8,.45c-18.65,18.79-39.5,16.42-52.79,7.92a2,2,0,0,1-.94-1.5,1.9,1.9,0,0,1,.51-1.55L146.43,78h33.86l28.41,56.82ZM14.11,115.69a2,2,0,0,1,.11-1.52L39.74,63.11a2,2,0,0,1,1.8-1.1,2,2,0,0,1,.89.21l22.21,11.1L37.32,128l-22.21-11.1A2,2,0,0,1,14.11,115.69Zm144.05,69.67-59.6-14.9L47.66,134.1,76.84,75.75,128,62.21l14.8,3.92a5.92,5.92,0,0,0-3,1.57L94.1,112.05a14,14,0,0,0,2.39,21.72c20.22,12.92,44.75,10.49,63.8-5.89L191,152.5Zm83.73-69.67a2,2,0,0,1-1,1.16L218.68,128,191.36,73.32l22.21-11.1a2,2,0,0,1,1.53-.11,2,2,0,0,1,1.16,1l25.52,51.06A2,2,0,0,1,241.89,115.69Zm-112,101.76a6,6,0,0,1-7.27,4.37L80.89,211.39a5.88,5.88,0,0,1-2-.94L52.52,191.64a6,6,0,1,1,7-9.77L84.91,200l40.61,10.15A6,6,0,0,1,129.88,217.45Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M250.73,109.69l-25.53-51a12,12,0,0,0-16.1-5.37L182.88,66.38,129,52.14a3.92,3.92,0,0,0-2,0L73.12,66.38,46.9,53.27a12,12,0,0,0-16.1,5.37L5.27,109.69a12,12,0,0,0,5.37,16.1l27.29,13.65,55.75,39.82a3.87,3.87,0,0,0,1.35.62l64,16a4,4,0,0,0,3.8-1l55.54-55.54,27-13.5a12,12,0,0,0,5.37-16.1Zm-51,36.95-37.2-29.8a4,4,0,0,0-5.34.3c-19.49,19.64-41.34,17.11-55.29,8.2a4.07,4.07,0,0,1-1.85-3,3.91,3.91,0,0,1,1.11-3.21L145.62,76h35.91l29.6,59.21ZM12.21,116.32a4,4,0,0,1,.22-3L38,62.22h0A4,4,0,0,1,41.54,60a4,4,0,0,1,1.78.43l24,12L38.21,130.64l-24-12A4,4,0,0,1,12.21,116.32Zm146.56,71.25L97.71,172.3l-52.6-37.57L75.45,74,128,60.14,157.72,68H144a4,4,0,0,0-2.79,1.13l-45.7,44.33a12,12,0,0,0,2.06,18.62c19.88,12.71,44.13,10,62.66-6.81L194,152.33Zm85-71.25a4,4,0,0,1-2,2.32l-24,12L188.68,72.43l24-12A4,4,0,0,1,218,62.22l25.53,51.05A4,4,0,0,1,243.79,116.32ZM127.94,217a4,4,0,0,1-3.88,3,4.09,4.09,0,0,1-1-.12L81.38,209.45a4,4,0,0,1-1.36-.62L53.68,190a4,4,0,0,1,4.65-6.51l25.72,18.37,41,10.25A4,4,0,0,1,127.94,217Z"}))]]),TD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M204.73,51.85A108.07,108.07,0,0,0,20,128v56a28,28,0,0,0,28,28H64a28,28,0,0,0,28-28V144a28,28,0,0,0-28-28H44.84A84.05,84.05,0,0,1,128,44h.64a83.7,83.7,0,0,1,82.52,72H192a28,28,0,0,0-28,28v40a28,28,0,0,0,28,28h19.6A20,20,0,0,1,192,228H136a12,12,0,0,0,0,24h56a44.05,44.05,0,0,0,44-44V128A107.34,107.34,0,0,0,204.73,51.85ZM64,140a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V140Zm124,44V144a4,4,0,0,1,4-4h20v48H192A4,4,0,0,1,188,184Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,144v40a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128H64A16,16,0,0,1,80,144Zm112-16a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16h32V128Z",opacity:"0.2"}),n.createElement("path",{d:"M201.89,54.66A104.08,104.08,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,128v80a40,40,0,0,1-40,40H136a8,8,0,0,1,0-16h56a24,24,0,0,0,24-24H192a24,24,0,0,1-24-24V144a24,24,0,0,1,24-24h23.65A88,88,0,0,0,66,65.54,87.29,87.29,0,0,0,40.36,120H64a24,24,0,0,1,24,24v40a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V128A104.11,104.11,0,0,1,201.89,54.66,103.41,103.41,0,0,1,232,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200.47,56.07A101.37,101.37,0,0,0,128.77,26H128A102,102,0,0,0,26,128v56a22,22,0,0,0,22,22H64a22,22,0,0,0,22-22V144a22,22,0,0,0-22-22H38.2A90,90,0,0,1,128,38h.68a89.71,89.71,0,0,1,89.13,84H192a22,22,0,0,0-22,22v40a22,22,0,0,0,22,22h26v2a26,26,0,0,1-26,26H136a6,6,0,0,0,0,12h56a38,38,0,0,0,38-38V128A101.44,101.44,0,0,0,200.47,56.07ZM64,134a10,10,0,0,1,10,10v40a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V134Zm118,50V144a10,10,0,0,1,10-10h26v60H192A10,10,0,0,1,182,184Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M201.89,54.66A103.43,103.43,0,0,0,128.79,24H128A104,104,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M199.05,57.48A100.07,100.07,0,0,0,28,128v56a20,20,0,0,0,20,20H64a20,20,0,0,0,20-20V144a20,20,0,0,0-20-20H36.08A92,92,0,0,1,128,36h.7a91.75,91.75,0,0,1,91.22,88H192a20,20,0,0,0-20,20v40a20,20,0,0,0,20,20h28v4a28,28,0,0,1-28,28H136a4,4,0,0,0,0,8h56a36,36,0,0,0,36-36V128A99.44,99.44,0,0,0,199.05,57.48ZM64,132a12,12,0,0,1,12,12v40a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V132Zm116,52V144a12,12,0,0,1,12-12h28v64H192A12,12,0,0,1,180,184Z"}))]]),LD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),RD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180,232a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,232Zm40-128a91.51,91.51,0,0,1-35.17,72.35A12.26,12.26,0,0,0,180,186v2a20,20,0,0,1-20,20H96a20,20,0,0,1-20-20v-2a12,12,0,0,0-4.7-9.51A91.57,91.57,0,0,1,36,104.52C35.73,54.69,76,13.2,125.79,12A92,92,0,0,1,220,104Zm-24,0a68,68,0,0,0-69.65-68C89.56,36.88,59.8,67.55,60,104.38a67.71,67.71,0,0,0,26.1,53.19A35.87,35.87,0,0,1,100,184h56.1A36.13,36.13,0,0,1,170,157.49,67.68,67.68,0,0,0,196,104Zm-20.07-5.32a48.5,48.5,0,0,0-31.91-40,12,12,0,0,0-8,22.62,24.31,24.31,0,0,1,16.09,20,12,12,0,0,0,23.86-2.64Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,104a79.86,79.86,0,0,1-30.59,62.92A24.29,24.29,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6a24.11,24.11,0,0,0-9.3-19A79.87,79.87,0,0,1,48,104.45C47.76,61.09,82.72,25,126.07,24A80,80,0,0,1,208,104Z",opacity:"0.2"}),n.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-32.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M174,232a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,232Zm40-128a85.56,85.56,0,0,1-32.88,67.64A18.23,18.23,0,0,0,174,186v6a14,14,0,0,1-14,14H96a14,14,0,0,1-14-14v-6a18,18,0,0,0-7-14.23h0a85.59,85.59,0,0,1-33-67.24C41.74,57.91,79.39,19.12,125.93,18A86,86,0,0,1,214,104Zm-12,0a74,74,0,0,0-75.79-74C86.17,31,53.78,64.34,54,104.42a73.67,73.67,0,0,0,28.4,57.87A29.92,29.92,0,0,1,94,186v6a2,2,0,0,0,2,2h64a2,2,0,0,0,2-2v-6a30.18,30.18,0,0,1,11.7-23.78A73.59,73.59,0,0,0,202,104Zm-20.08-9A55.58,55.58,0,0,0,137,50.08a6,6,0,1,0-2,11.84C152.38,64.84,167.13,79.6,170.08,97a6,6,0,0,0,5.91,5,6.87,6.87,0,0,0,1-.08A6,6,0,0,0,181.92,95Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.55,87.55,0,0,1-33.64,69.21A16.24,16.24,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16,16,0,0,0-6.23-12.66A87.59,87.59,0,0,1,40,104.49C39.74,56.83,78.26,17.14,125.88,16A88,88,0,0,1,216,104Zm-16,0a72,72,0,0,0-73.74-72c-39,.92-70.47,33.39-70.26,72.39a71.65,71.65,0,0,0,27.64,56.3A32,32,0,0,1,96,186v6h64v-6a32.15,32.15,0,0,1,12.47-25.35A71.65,71.65,0,0,0,200,104Zm-16.11-9.34a57.6,57.6,0,0,0-46.56-46.55,8,8,0,0,0-2.66,15.78c16.57,2.79,30.63,16.85,33.44,33.45A8,8,0,0,0,176,104a9,9,0,0,0,1.35-.11A8,8,0,0,0,183.89,94.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172,232a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,232Zm40-128a83.59,83.59,0,0,1-32.11,66.06A20.2,20.2,0,0,0,172,186v6a12,12,0,0,1-12,12H96a12,12,0,0,1-12-12v-6a20,20,0,0,0-7.76-15.81A83.58,83.58,0,0,1,44,104.47C43.75,59,80.52,21.09,126,20a84,84,0,0,1,86,84Zm-8,0a76,76,0,0,0-77.83-76C85,29,51.77,63.27,52,104.43a75.62,75.62,0,0,0,29.17,59.43A28,28,0,0,1,92,186v6a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4v-6a28.14,28.14,0,0,1,10.94-22.2A75.62,75.62,0,0,0,204,104ZM136.66,52.06a4,4,0,0,0-1.32,7.88C153.53,63,169,78.45,172.06,96.67A4,4,0,0,0,176,100a3.88,3.88,0,0,0,.67-.06,4,4,0,0,0,3.27-4.61A53.51,53.51,0,0,0,136.66,52.06Z"}))]]),kD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),DD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",n.createElement(n.Fragment,null,n.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,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),OD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),FD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M209.84,47.44A91.42,91.42,0,0,0,144.62,20h-.35A91.44,91.44,0,0,0,79.15,47L17.76,109.17a20,20,0,0,0,.08,28.21L46.5,166a19.89,19.89,0,0,0,14.15,5.86h.11a19.86,19.86,0,0,0,14.2-6l60.87-62.39a12.07,12.07,0,0,1,16.77-.12,11.63,11.63,0,0,1,3.5,8.35,12.85,12.85,0,0,1-3.66,9.11L90.19,181a20,20,0,0,0-.21,28.5l28.66,28.66a20.08,20.08,0,0,0,28.15.14l61.76-60.44.09-.09C244.65,141.78,245.18,83.31,209.84,47.44ZM60.62,146.21l-23-23L55.81,104.8l22.88,22.88Zm72.2,72.18-23-23,18.61-18,22.88,22.87Zm58.89-57.62L168.48,183.5,145.7,160.73,169.21,138l.15-.14a37,37,0,0,0,10.74-26.37,35.44,35.44,0,0,0-10.85-25.41,36.2,36.2,0,0,0-50.44.48l-.1.11L95.46,110.49,72.68,87.72l23.5-23.8A67.55,67.55,0,0,1,144.27,44h.26a67.62,67.62,0,0,1,48.21,20.29C218.85,90.78,218.38,134.05,191.71,160.77Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168.36,200.36l-30,29.35a8,8,0,0,1-11.26-.05L98.46,201a8,8,0,0,1,.08-11.4l30-29Zm-142-82.76a8,8,0,0,0,0,11.28L55,157.54a8,8,0,0,0,11.38-.06l29.18-29.92L55.77,87.77Z",opacity:"0.2"}),n.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L50.11,82.11h0L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,55.8,99.12l28.52,28.52ZM132.79,224l-28.68-28.65,24.38-23.57L157,200.32Zm61.76-60.44-26.11,25.54L140,160.68l26.44-25.57.1-.09a33,33,0,0,0,9.57-23.5A31.44,31.44,0,0,0,166.47,89a32.2,32.2,0,0,0-44.9.5L95.49,116.18,67,87.74,93.35,61.09A71.51,71.51,0,0,1,144.27,40h.27a71.55,71.55,0,0,1,51.05,21.48C223.25,89.55,222.75,135.38,194.55,163.58Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,61.42,93.43,89.9,121.91ZM132.79,224l-28.68-28.65,30.13-29.13,28.49,28.48Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M205.56,51.65A85.5,85.5,0,0,0,144.6,26h-.33A85.45,85.45,0,0,0,83.42,51.22L22,113.39a14,14,0,0,0,.06,19.74l28.66,28.66a13.89,13.89,0,0,0,9.9,4.1h.08a13.9,13.9,0,0,0,9.94-4.21l60.87-62.4A18.1,18.1,0,0,1,156.76,99a17.63,17.63,0,0,1,5.34,12.62,19,19,0,0,1-5.44,13.44L94.37,185.31a14,14,0,0,0-.15,19.95l28.67,28.66a14.05,14.05,0,0,0,19.7.1l61.8-60.49C238.07,139.86,238.6,85.18,205.56,51.65ZM62.08,153.29a2,2,0,0,1-1.42.6,2.15,2.15,0,0,1-1.42-.58L30.57,124.65a2,2,0,0,1,0-2.82L55.79,96.28l31.34,31.34Zm72.11,72.15a2,2,0,0,1-2.82,0l-28.66-28.66a2,2,0,0,1-.59-1.43,2,2,0,0,1,.6-1.41L128.51,169l31.34,31.33ZM196,165l-27.52,26.94-31.29-31.29,27.9-27,.07-.08a30.93,30.93,0,0,0,9-22.06,29.47,29.47,0,0,0-9-21.15,30.17,30.17,0,0,0-42.08.46L95.51,119,64.22,87.74,91.94,59.68A73.47,73.47,0,0,1,144.27,38h.28A73.52,73.52,0,0,1,197,60.08C225.44,88.92,224.94,136,196,165Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M207,50.25A87.46,87.46,0,0,0,144.6,24h-.33A87.48,87.48,0,0,0,82,49.81L20.61,112a16,16,0,0,0,.06,22.56l28.66,28.66a15.92,15.92,0,0,0,11.32,4.69h.09a16,16,0,0,0,11.36-4.82L133,100.69a16.08,16.08,0,0,1,22.41-.21,15.6,15.6,0,0,1,4.73,11.19,16.89,16.89,0,0,1-4.85,12L93,183.88a16,16,0,0,0-.17,22.79l28.66,28.66a16.06,16.06,0,0,0,22.52.12L205.81,175C240.26,140.5,240.79,84.56,207,50.25ZM60.65,151.89,32,123.24,55.8,99.12l28.52,28.52ZM132.79,224l-28.68-28.65,24.38-23.57L157,200.32Zm61.76-60.44-26.11,25.54L140,160.68l26.44-25.57.1-.09a33,33,0,0,0,9.57-23.5A31.44,31.44,0,0,0,166.47,89a32.2,32.2,0,0,0-44.9.5L95.49,116.18,67,87.74,93.35,61.09A71.51,71.51,0,0,1,144.27,40h.27a71.55,71.55,0,0,1,51.05,21.48C223.25,89.55,222.75,135.38,194.55,163.58Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M204.13,53.06A83.41,83.41,0,0,0,144.59,28h-.32A83.46,83.46,0,0,0,84.85,52.62L23.46,114.8a12,12,0,0,0,0,16.92l28.67,28.66a11.89,11.89,0,0,0,8.48,3.51h.07a12,12,0,0,0,8.52-3.61l60.89-62.42a20.1,20.1,0,0,1,28-.27,19.54,19.54,0,0,1,6,14,20.87,20.87,0,0,1-6,14.86L95.76,186.75a12,12,0,0,0-.12,17.09L124.3,232.5a12,12,0,0,0,16.89.08L203,172.12C235.88,139.21,236.4,85.8,204.13,53.06ZM63.51,154.69a3.93,3.93,0,0,1-2.83,1.2h0a4,4,0,0,1-2.83-1.17L29.16,126.06a4,4,0,0,1,0-5.64l26.63-27L89.94,127.6Zm72.08,72.18a4,4,0,0,1-5.63,0l-28.67-28.66a4,4,0,0,1,0-5.69l27.2-26.3,34.16,34.15Zm61.76-60.44-28.94,28.32-34.12-34.12,29.41-28.44a29,29,0,0,0,8.4-20.64,27.51,27.51,0,0,0-8.41-19.72,28.14,28.14,0,0,0-39.25.41L95.53,121.87,61.4,87.75,90.52,58.26A75.51,75.51,0,0,1,144.27,36h.29a75.53,75.53,0,0,1,53.87,22.67C227.63,88.3,227.13,136.65,197.35,166.43Z"}))]]),zD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),qD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),$D=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),BD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.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"}),n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",n.createElement(n.Fragment,null,n.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,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]]),ID=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M92,108a12,12,0,0,1,12-12h72a12,12,0,0,1,0,24H104A12,12,0,0,1,92,108Zm12,52h72a12,12,0,0,0,0-24H104a12,12,0,0,0,0,24ZM236,64V184a28,28,0,0,1-28,28H36A32,32,0,0,1,4,180V88a12,12,0,0,1,24,0v92a8,8,0,0,0,16,0V64A20,20,0,0,1,64,44H216A20,20,0,0,1,236,64Zm-24,4H68V180a32,32,0,0,1-1,8H208a4,4,0,0,0,4-4Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,64V184a16,16,0,0,1-16,16H32a16,16,0,0,0,16-16V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),n.createElement("path",{d:"M88,112a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm8,40h80a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,64V184a24,24,0,0,1-24,24H32A24,24,0,0,1,8,184.11V88a8,8,0,0,1,16,0v96a8,8,0,0,0,16,0V64A16,16,0,0,1,56,48H216A16,16,0,0,1,232,64Zm-16,0H56V184a23.84,23.84,0,0,1-1.37,8H208a8,8,0,0,0,8-8Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48H56A16,16,0,0,0,40,64V184a8,8,0,0,1-16,0V88A8,8,0,0,0,8,88v96.11A24,24,0,0,0,32,208H208a24,24,0,0,0,24-24V64A16,16,0,0,0,216,48ZM176,152H96a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h80A6,6,0,0,1,182,112Zm-6,26H96a6,6,0,0,0,0,12h80a6,6,0,0,0,0-12Zm54-74V184a22,22,0,0,1-22,22H32a22,22,0,0,1-22-21.91V88a6,6,0,0,1,12,0v96a10,10,0,0,0,20,0V64A14,14,0,0,1,56,50H216A14,14,0,0,1,230,64Zm-12,0a2,2,0,0,0-2-2H56a2,2,0,0,0-2,2V184a21.84,21.84,0,0,1-2.41,10H208a10,10,0,0,0,10-10Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M88,112a8,8,0,0,1,8-8h80a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm8,40h80a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16ZM232,64V184a24,24,0,0,1-24,24H32A24,24,0,0,1,8,184.11V88a8,8,0,0,1,16,0v96a8,8,0,0,0,16,0V64A16,16,0,0,1,56,48H216A16,16,0,0,1,232,64Zm-16,0H56V184a23.84,23.84,0,0,1-1.37,8H208a8,8,0,0,0,8-8Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h80A4,4,0,0,1,180,112Zm-4,28H96a4,4,0,0,0,0,8h80a4,4,0,0,0,0-8Zm52-76V184a20,20,0,0,1-20,20H32a20,20,0,0,1-20-19.92V88a4,4,0,0,1,8,0v96a12,12,0,0,0,24,0V64A12,12,0,0,1,56,52H216A12,12,0,0,1,228,64Zm-8,0a4,4,0,0,0-4-4H56a4,4,0,0,0-4,4V184a19.86,19.86,0,0,1-4,12H208a12,12,0,0,0,12-12Z"}))]]),UD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M84,108A12,12,0,0,1,96,96h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,108Zm32,28H96a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24ZM228,48V156.69a19.86,19.86,0,0,1-5.86,14.14l-51.31,51.31A19.86,19.86,0,0,1,156.69,228H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204h92V156a12,12,0,0,1,12-12h48V52H52Zm139-36H168v23Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,160l-56,56V160Z",opacity:"0.2"}),n.createElement("path",{d:"M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.69A15.92,15.92,0,0,0,168,219.31L219.31,168A15.92,15.92,0,0,0,224,156.69V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.69V160h44.7Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M90,96a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H96A6,6,0,0,1,90,96Zm6,38h64a6,6,0,0,0,0-12H96a6,6,0,0,0,0,12Zm32,20H96a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12ZM222,48V156.69a13.94,13.94,0,0,1-4.1,9.9L166.59,217.9a13.94,13.94,0,0,1-9.9,4.1H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H154V160a6,6,0,0,1,6-6h50V48a2,2,0,0,0-2-2H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210Zm153.52-44H166v35.52Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M92,96a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H96A4,4,0,0,1,92,96Zm4,36h64a4,4,0,0,0,0-8H96a4,4,0,0,0,0,8Zm32,24H96a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8ZM220,48V156.69a11.9,11.9,0,0,1-3.52,8.48l-51.31,51.32a11.93,11.93,0,0,1-8.48,3.51H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H156V160a4,4,0,0,1,4-4h52V48a4,4,0,0,0-4-4H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212Zm158.35-48H164v42.35Z"}))]]),PD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M108,108a12,12,0,0,1,12-12h56a12,12,0,0,1,0,24H120A12,12,0,0,1,108,108Zm68,28H120a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm52-88V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204H68V52H52ZM204,52H92V204H204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,40V216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8Z",opacity:"0.2"}),n.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["fill",n.createElement(n.Fragment,null,n.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,32ZM80,208H48V48H80Zm96-56H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h64A6,6,0,0,1,182,112Zm-6,26H112a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm46-90V208a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H74V46H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210ZM210,48a2,2,0,0,0-2-2H86V210H208a2,2,0,0,0,2-2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h64A4,4,0,0,1,180,112Zm-4,28H112a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm44-92V208a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H76V44H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212ZM212,48a4,4,0,0,0-4-4H84V212H208a4,4,0,0,0,4-4Z"}))]]),GD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),YD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),KD=new Map([["bold",n.createElement(n.Fragment,null,n.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.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",n.createElement(n.Fragment,null,n.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"}),n.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.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["fill",n.createElement(n.Fragment,null,n.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.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"}))],["light",n.createElement(n.Fragment,null,n.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.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.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",n.createElement(n.Fragment,null,n.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.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.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-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.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"}))]]),XD=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM136,81l11,11L76,163,65,152ZM52,204V173l15.52,15.51h0L83,204Zm52-13L93,180l71-71,11,11Zm88-88L153,64l18.34-18.34,39,39Z"}))],["duotone",n.createElement(n.Fragment,null,n.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"}),n.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188,164,103.31,180.69,120,96,204.69ZM68,176.69,51.31,160,136,75.31,152.69,92Zm-20,2.62L76.69,208H48Zm144-70.62L147.32,64l24-24L216,84.69Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188l90.34-90.34,16.69,16.68L96,204.69Zm79-101.66h0L68,176.69,51.31,160l90.35-90.34ZM48,179.31,76.69,208H48Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.91,74.79,181.22,30.1a14,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,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM76.49,188,164,100.48,183.52,120,96,207.51ZM68,179.52,48.49,160,136,72.49,155.52,92ZM46,208V174.48L81.52,210H48A2,2,0,0,1,46,208ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM136,75.31,152.69,92,68,176.69,51.31,160ZM48,208V179.31L76.69,208Zm48-3.31L79.32,188,164,103.31,180.69,120Zm96-96L147.32,64l24-24L216,84.69Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM73.66,188,164,97.66,186.35,120,96,210.34ZM68,182.34,45.66,160,136,69.66,158.35,92ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"}))]]),QD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),JD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),WD=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),eO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"}),n.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"}))]]),tO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),aO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),nO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M116,128V48a12,12,0,0,1,24,0v80a12,12,0,0,1-24,0Zm66.55-82a12,12,0,0,0-13.1,20.1C191.41,80.37,204,103,204,128a76,76,0,0,1-152,0c0-25,12.59-47.63,34.55-61.95A12,12,0,0,0,73.45,46C44.56,64.78,28,94.69,28,128a100,100,0,0,0,200,0C228,94.69,211.44,64.78,182.55,46Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.createElement("path",{d:"M120,128V48a8,8,0,0,1,16,0v80a8,8,0,0,1-16,0Zm60.37-78.7a8,8,0,0,0-8.74,13.4C194.74,77.77,208,101.57,208,128a80,80,0,0,1-160,0c0-26.43,13.26-50.23,36.37-65.3a8,8,0,0,0-8.74-13.4C47.9,67.38,32,96.06,32,128a96,96,0,0,0,192,0C224,96.06,208.1,67.38,180.37,49.3Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104,104,0,0,0,128,24Zm-8,40a8,8,0,0,1,16,0v64a8,8,0,0,1-16,0Zm8,144A80,80,0,0,1,83.55,61.48a8,8,0,1,1,8.9,13.29,64,64,0,1,0,71.1,0,8,8,0,1,1,8.9-13.29A80,80,0,0,1,128,208Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M122,128V48a6,6,0,0,1,12,0v80a6,6,0,0,1-12,0Zm57.28-77A6,6,0,0,0,172.72,61C196.41,76.47,210,100.88,210,128a82,82,0,0,1-164,0c0-27.12,13.59-51.53,37.28-67A6,6,0,0,0,76.72,51C49.57,68.68,34,96.75,34,128a94,94,0,0,0,188,0C222,96.75,206.43,68.68,179.28,51Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,128V48a8,8,0,0,1,16,0v80a8,8,0,0,1-16,0Zm60.37-78.7a8,8,0,0,0-8.74,13.4C194.74,77.77,208,101.57,208,128a80,80,0,0,1-160,0c0-26.43,13.26-50.23,36.37-65.3a8,8,0,0,0-8.74-13.4C47.9,67.38,32,96.06,32,128a96,96,0,0,0,192,0C224,96.06,208.1,67.38,180.37,49.3Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M124,128V48a4,4,0,0,1,8,0v80a4,4,0,0,1-8,0Zm54.18-75.35a4,4,0,1,0-4.36,6.7C198.08,75.17,212,100.2,212,128a84,84,0,0,1-168,0c0-27.8,13.92-52.83,38.18-68.65a4,4,0,0,0-4.36-6.7C51.24,70,36,97.44,36,128a92,92,0,0,0,184,0C220,97.44,204.76,70,178.18,52.65Z"}))]]),rO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244,128a12,12,0,0,1-12,12H207.42l-36.69,73.37A12,12,0,0,1,160,220h-.6a12,12,0,0,1-10.61-7.72L95,71.15,66.92,133A12,12,0,0,1,56,140H24a12,12,0,0,1,0-24H48.27L85.08,35a12,12,0,0,1,22.13.7l54.28,142.46,27.78-55.56A12,12,0,0,1,200,116h32A12,12,0,0,1,244,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),n.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["fill",n.createElement(n.Fragment,null,n.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,40Zm-8,96H188.64L159,188a8,8,0,0,1-6.95,4h-.46a8,8,0,0,1-6.89-4.84L103,89.92,79,132a8,8,0,0,1-7,4H48a8,8,0,0,1,0-16H67.36L97.05,68a8,8,0,0,1,14.3.82L153,166.08l24-42.05a8,8,0,0,1,6.95-4h24a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238,128a6,6,0,0,1-6,6H203.71l-38.34,76.68A6,6,0,0,1,160,214h-.3a6,6,0,0,1-5.31-3.85L95.51,55.57,61.46,130.48A6,6,0,0,1,56,134H24a6,6,0,0,1,0-12H52.14l38.4-84.48a6,6,0,0,1,11.07.34L160.74,193.1l33.89-67.78A6,6,0,0,1,200,122h32A6,6,0,0,1,238,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,128a4,4,0,0,1-4,4H202.47l-38.89,77.79A4,4,0,0,1,160,212h-.2a4,4,0,0,1-3.54-2.58l-60.59-159-36,79.28A4,4,0,0,1,56,132H24a4,4,0,0,1,0-8H53.42L92.36,38.35a4,4,0,0,1,7.38.23L160.5,198.06l35.92-71.85A4,4,0,0,1,200,124h32A4,4,0,0,1,236,128Z"}))]]),sO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96Zm4,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-60,76V148a12,12,0,0,1,24,0v24a12,12,0,0,1-24,0Zm84-8a12,12,0,0,1-12,12H196v32a12,12,0,0,1-12,12H148a12,12,0,0,1,0-24h24V148a12,12,0,0,1,24,0v4h12A12,12,0,0,1,220,164Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm-8,88H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96-96H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Z",opacity:"0.2"}),n.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm-16,80H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96-96H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM144,184a8,8,0,0,0,8-8V144a8,8,0,0,0-16,0v32A8,8,0,0,0,144,184Zm64-32H184v-8a8,8,0,0,0-16,0v56H144a8,8,0,0,0,0,16h32a8,8,0,0,0,8-8V168h24a8,8,0,0,0,0-16Zm0,32a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V192A8,8,0,0,0,208,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-2,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2ZM200,42H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-64,72V144a6,6,0,0,1,12,0v32a6,6,0,0,1-12,0Zm76-16a6,6,0,0,1-6,6H182v42a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h26V144a6,6,0,0,1,12,0v10h26A6,6,0,0,1,214,160Zm0,32v16a6,6,0,0,1-12,0V192a6,6,0,0,1,12,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-4,36H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM200,44H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-64,72V144a4,4,0,0,1,8,0v32a4,4,0,0,1-8,0Zm72-16a4,4,0,0,1-4,4H180v44a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h28V144a4,4,0,0,1,8,0v12h28A4,4,0,0,1,212,160Zm0,32v16a4,4,0,0,1-8,0V192a4,4,0,0,1,8,0Z"}))]]),lO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),iO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,156a43.78,43.78,0,0,0-29.09,11L106.1,140.8a44.07,44.07,0,0,0,0-25.6L146.91,89a43.83,43.83,0,1,0-13-20.17L93.09,95a44,44,0,1,0,0,65.94L133.9,187.2A44,44,0,1,0,176,156Zm0-120a20,20,0,1,1-20,20A20,20,0,0,1,176,36ZM64,148a20,20,0,1,1,20-20A20,20,0,0,1,64,148Zm112,72a20,20,0,1,1,20-20A20,20,0,0,1,176,220Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,200a32,32,0,1,1-32-32A32,32,0,0,1,208,200ZM176,88a32,32,0,1,0-32-32A32,32,0,0,0,176,88Z",opacity:"0.2"}),n.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212,200a36,36,0,1,1-69.85-12.25l-53-34.05a36,36,0,1,1,0-51.4l53-34a36.09,36.09,0,1,1,8.67,13.45l-53,34.05a36,36,0,0,1,0,24.5l53,34.05A36,36,0,0,1,212,200Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,162a37.91,37.91,0,0,0-28.3,12.67L98.8,143.24a37.89,37.89,0,0,0,0-30.48l48.9-31.43a38,38,0,1,0-6.5-10.09L92.3,102.67a38,38,0,1,0,0,50.66l48.9,31.43A38,38,0,1,0,176,162Zm0-132a26,26,0,1,1-26,26A26,26,0,0,1,176,30ZM64,154a26,26,0,1,1,26-26A26,26,0,0,1,64,154Zm112,72a26,26,0,1,1,26-26A26,26,0,0,1,176,226Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,164a36,36,0,0,0-27.92,13.3L96.25,144a35.92,35.92,0,0,0,0-32L148.08,78.7A35.93,35.93,0,1,0,143.75,72L91.92,105.3a36,36,0,1,0,0,45.4L143.75,184A36,36,0,1,0,176,164Zm0-136a28,28,0,1,1-28,28A28,28,0,0,1,176,28ZM64,156a28,28,0,1,1,28-28A28,28,0,0,1,64,156Zm112,72a28,28,0,1,1,28-28A28,28,0,0,1,176,228Z"}))]]),oO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),cO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240.49,175.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L203,196h-2.09a76.17,76.17,0,0,1-61.85-31.83L97.38,105.78A52.1,52.1,0,0,0,55.06,84H32a12,12,0,0,1,0-24H55.06a76.17,76.17,0,0,1,61.85,31.83l41.71,58.39A52.1,52.1,0,0,0,200.94,172H203l-3.52-3.51a12,12,0,0,1,17-17Zm-95.62-72.62a12,12,0,0,0,16.93-1.13A52,52,0,0,1,200.94,84H203l-3.52,3.51a12,12,0,0,0,17,17l24-24a12,12,0,0,0,0-17l-24-24a12,12,0,0,0-17,17L203,60h-2.09a76,76,0,0,0-57.2,26A12,12,0,0,0,144.87,102.89Zm-33.74,50.22a12,12,0,0,0-16.93,1.13A52,52,0,0,1,55.06,172H32a12,12,0,0,0,0,24H55.06a76,76,0,0,0,57.2-26A12,12,0,0,0,111.13,153.11Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M107.14,98.8,128,128l-20.86,29.2A64,64,0,0,1,55.06,184H32V72H55.06A64,64,0,0,1,107.14,98.8ZM200.94,72a64,64,0,0,0-52.08,26.8L128,128l20.86,29.2A64,64,0,0,0,200.94,184H232V72Z",opacity:"0.2"}),n.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L212.69,192H200.94a72.12,72.12,0,0,1-58.59-30.15l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.1,56.1,0,0,0,200.94,176h11.75l-10.35-10.34a8,8,0,0,1,11.32-11.32ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.1,56.1,0,0,1,200.94,80h11.75L202.34,90.34a8,8,0,0,0,11.32,11.32l24-24a8,8,0,0,0,0-11.32l-24-24a8,8,0,0,0-11.32,11.32L212.69,64H200.94a72.12,72.12,0,0,0-58.59,30.15l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24A8,8,0,0,1,200,208V192a72.15,72.15,0,0,1-57.65-30.14l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.08,56.08,0,0,0,200,176V160a8,8,0,0,1,13.66-5.66ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.08,56.08,0,0,1,200,80V96a8,8,0,0,0,13.66,5.66l24-24a8,8,0,0,0,0-11.32l-24-24A8,8,0,0,0,200,48V64a72.15,72.15,0,0,0-57.65,30.14l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236.24,179.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L217.52,190H200.94a70.16,70.16,0,0,1-57-29.31l-41.71-58.4A58.11,58.11,0,0,0,55.06,78H32a6,6,0,0,1,0-12H55.06a70.16,70.16,0,0,1,57,29.31l41.71,58.4A58.11,58.11,0,0,0,200.94,178h16.58l-13.76-13.76a6,6,0,0,1,8.48-8.48Zm-92.06-74.41a5.91,5.91,0,0,0,3.48,1.12,6,6,0,0,0,4.89-2.51l1.19-1.67A58.11,58.11,0,0,1,200.94,78h16.58L203.76,91.76a6,6,0,1,0,8.48,8.48l24-24a6,6,0,0,0,0-8.48l-24-24a6,6,0,0,0-8.48,8.48L217.52,66H200.94a70.16,70.16,0,0,0-57,29.31L142.78,97A6,6,0,0,0,144.18,105.35Zm-32.36,45.3a6,6,0,0,0-8.37,1.39l-1.19,1.67A58.11,58.11,0,0,1,55.06,178H32a6,6,0,0,0,0,12H55.06a70.16,70.16,0,0,0,57-29.31l1.19-1.67A6,6,0,0,0,111.82,150.65Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.66,178.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L212.69,192H200.94a72.12,72.12,0,0,1-58.59-30.15l-41.72-58.4A56.1,56.1,0,0,0,55.06,80H32a8,8,0,0,1,0-16H55.06a72.12,72.12,0,0,1,58.59,30.15l41.72,58.4A56.1,56.1,0,0,0,200.94,176h11.75l-10.35-10.34a8,8,0,0,1,11.32-11.32ZM143,107a8,8,0,0,0,11.16-1.86l1.2-1.67A56.1,56.1,0,0,1,200.94,80h11.75L202.34,90.34a8,8,0,0,0,11.32,11.32l24-24a8,8,0,0,0,0-11.32l-24-24a8,8,0,0,0-11.32,11.32L212.69,64H200.94a72.12,72.12,0,0,0-58.59,30.15l-1.2,1.67A8,8,0,0,0,143,107Zm-30,42a8,8,0,0,0-11.16,1.86l-1.2,1.67A56.1,56.1,0,0,1,55.06,176H32a8,8,0,0,0,0,16H55.06a72.12,72.12,0,0,0,58.59-30.15l1.2-1.67A8,8,0,0,0,113,149Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.83,181.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L222.34,188h-21.4a68.15,68.15,0,0,1-55.34-28.48l-41.71-58.39A60.11,60.11,0,0,0,55.06,76H32a4,4,0,0,1,0-8H55.06A68.15,68.15,0,0,1,110.4,96.48l41.71,58.39A60.11,60.11,0,0,0,200.94,180h21.4l-17.17-17.17a4,4,0,0,1,5.66-5.66Zm-89.49-77.44a4,4,0,0,0,5.58-.93l1.19-1.67A60.11,60.11,0,0,1,200.94,76h21.4L205.17,93.17a4,4,0,0,0,5.66,5.66l24-24a4,4,0,0,0,0-5.66l-24-24a4,4,0,0,0-5.66,5.66L222.34,68h-21.4A68.15,68.15,0,0,0,145.6,96.48l-1.19,1.67A4,4,0,0,0,145.34,103.73Zm-34.68,48.54a4,4,0,0,0-5.58.93l-1.19,1.67A60.11,60.11,0,0,1,55.06,180H32a4,4,0,0,0,0,8H55.06a68.15,68.15,0,0,0,55.34-28.48l1.19-1.67A4,4,0,0,0,110.66,152.27Z"}))]]),uO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,28a12,12,0,0,0-12,12v62l-113.45-71A20,20,0,0,0,44,47.88V208.12A20,20,0,0,0,74.55,225L188,154v62a12,12,0,0,0,24,0V40A12,12,0,0,0,200,28ZM68,200.73V55.27L184.3,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M196.3,134.65,68.19,214.77A8,8,0,0,1,56,208.12V47.88a8,8,0,0,1,12.19-6.65L196.3,121.35A7.83,7.83,0,0,1,196.3,134.65Z",opacity:"0.2"}),n.createElement("path",{d:"M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,40V216a8,8,0,0,1-16,0V146.77L72.43,221.55A15.95,15.95,0,0,1,48,208.12V47.88A15.95,15.95,0,0,1,72.43,34.45L192,109.23V40a8,8,0,0,1,16,0Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,34a6,6,0,0,0-6,6v72.84L71.37,36.14a14,14,0,0,0-14.21-.37A13.69,13.69,0,0,0,50,47.88V208.12a13.69,13.69,0,0,0,7.16,12.11,14,14,0,0,0,14.21-.37L194,143.17V216a6,6,0,0,0,12,0V40A6,6,0,0,0,200,34Zm-6.88,95.56L65,209.69a2,2,0,0,1-2,.05,1.79,1.79,0,0,1-1-1.62V47.88a1.79,1.79,0,0,1,1-1.62A2.1,2.1,0,0,1,64,46a2,2,0,0,1,1,.31l128.12,80.13a1.82,1.82,0,0,1,0,3.12Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,36a4,4,0,0,0-4,4v76.44L70.31,37.84a12,12,0,0,0-12.18-.32A11.69,11.69,0,0,0,52,47.88V208.12a11.69,11.69,0,0,0,6.13,10.36,12,12,0,0,0,12.18-.32L196,139.56V216a4,4,0,0,0,8,0V40A4,4,0,0,0,200,36Zm-5.82,95.26L66.06,211.38a4,4,0,0,1-4.06.11,3.8,3.8,0,0,1-2-3.37V47.88a3.8,3.8,0,0,1,2-3.37A4,4,0,0,1,64,44a4,4,0,0,1,2.11.62l128.12,80.12a3.83,3.83,0,0,1,0,6.52Z"}))]]),dO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),n.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),hO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),mO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm84,84H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm90,90H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm92,92H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),fO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",opacity:"0.2"}),n.createElement("path",{d:"M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"}))]]),pO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),gO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M246.15,133.18,146.83,33.86A19.85,19.85,0,0,0,132.69,28H40A12,12,0,0,0,28,40v92.69a19.85,19.85,0,0,0,5.86,14.14l99.32,99.32a20,20,0,0,0,28.28,0l84.69-84.69A20,20,0,0,0,246.15,133.18Zm-98.83,93.17L52,131V52h79l95.32,95.32ZM104,88A16,16,0,1,1,88,72,16,16,0,0,1,104,88Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.66,153,153,237.66a8,8,0,0,1-11.31,0L42.34,138.34A8,8,0,0,1,40,132.69V40h92.69a8,8,0,0,1,5.65,2.34l99.32,99.32A8,8,0,0,1,237.66,153Z",opacity:"0.2"}),n.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M241.91,137.42,142.59,38.1a13.94,13.94,0,0,0-9.9-4.1H40a6,6,0,0,0-6,6v92.69a13.94,13.94,0,0,0,4.1,9.9l99.32,99.32a14,14,0,0,0,19.8,0l84.69-84.69A14,14,0,0,0,241.91,137.42Zm-8.49,11.31-84.69,84.69a2,2,0,0,1-2.83,0L46.59,134.1a2,2,0,0,1-.59-1.41V46h86.69a2,2,0,0,1,1.41.59l99.32,99.31A2,2,0,0,1,233.42,148.73ZM94,84A10,10,0,1,1,84,74,10,10,0,0,1,94,84Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240.49,138.83,141.17,39.51A11.93,11.93,0,0,0,132.69,36H40a4,4,0,0,0-4,4v92.69a11.93,11.93,0,0,0,3.51,8.48l99.32,99.32a12,12,0,0,0,17,0l84.69-84.69a12,12,0,0,0,0-17Zm-5.66,11.31-84.69,84.69a4,4,0,0,1-5.65,0L45.17,135.51A4,4,0,0,1,44,132.69V44h88.69a4,4,0,0,1,2.82,1.17l99.32,99.32A4,4,0,0,1,234.83,150.14ZM92,84a8,8,0,1,1-8-8A8,8,0,0,1,92,84Z"}))]]),xO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.26,90.4a108,108,0,0,1-177.63,114A108,108,0,0,1,195.41,43.63l20.1-20.11a12,12,0,0,1,17,17l-96,96a12,12,0,1,1-17-17l24-24a36,36,0,1,0,19.76,39.65,12,12,0,0,1,23.53,4.74,60,60,0,1,1-25.73-62L178.3,60.74a84,84,0,1,0,28.46,38,12,12,0,1,1,22.5-8.35Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,128a48,48,0,1,1-48-48A48,48,0,0,1,176,128Z",opacity:"0.2"}),n.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32L167.6,99.71h0l-37.71,37.71-23.95,23.95a40,40,0,0,0,62-35.67,8,8,0,1,1,16-.9,56,56,0,0,1-95.5,42.79h0a56,56,0,0,1,73.13-84.43L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220.06,84a102.06,102.06,0,1,1-24.31-32.27l24-24a6,6,0,0,1,8.48,8.49l-96,96a6,6,0,1,1-8.48-8.49l29.39-29.4a42,42,0,1,0,16.78,31.24,6,6,0,1,1,12-.68A54,54,0,1,1,161.7,85.83l25.54-25.55a89.91,89.91,0,1,0,22,28.93A6,6,0,1,1,220.06,84Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.87,83.16A104.1,104.1,0,1,1,195.67,49l22.67-22.68a8,8,0,0,1,11.32,11.32l-96,96a8,8,0,0,1-11.32-11.32l27.72-27.72a40,40,0,1,0,17.87,31.09,8,8,0,1,1,16-.9,56,56,0,1,1-22.38-41.65L184.3,60.39a87.88,87.88,0,1,0,23.13,29.67,8,8,0,0,1,14.44-6.9Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M218.26,84.89a100.16,100.16,0,1,1-22.44-30.37l25.35-25.35a4,4,0,1,1,5.66,5.66l-96,96a4,4,0,0,1-5.66-5.66l31-31a44,44,0,1,0,15.78,31.3,4,4,0,0,1,8-.46,52,52,0,1,1-18.1-36.51l28.34-28.33A92,92,0,0,0,63,193.05,92,92,0,0,0,211,88.33a4,4,0,1,1,7.22-3.44Z"}))]]),vO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,44a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,44Zm0,168a72,72,0,1,1,72-72A72.08,72.08,0,0,1,128,212ZM164.49,99.51a12,12,0,0,1,0,17l-28,28a12,12,0,0,1-17-17l28-28A12,12,0,0,1,164.49,99.51ZM92,16A12,12,0,0,1,104,4h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,16Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,136a88,88,0,1,1-88-88A88,88,0,0,1,216,136Z",opacity:"0.2"}),n.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm45.66,61.66-40,40a8,8,0,0,1-11.32-11.32l40-40a8,8,0,0,1,11.32,11.32ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,42a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,42Zm0,176a82,82,0,1,1,82-82A82.1,82.1,0,0,1,128,218ZM172.24,91.76a6,6,0,0,1,0,8.48l-40,40a6,6,0,1,1-8.48-8.48l40-40A6,6,0,0,1,172.24,91.76ZM98,16a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,16Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,40a96,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM173.66,90.34a8,8,0,0,1,0,11.32l-40,40a8,8,0,0,1-11.32-11.32l40-40A8,8,0,0,1,173.66,90.34ZM96,16a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,16Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,44a92,92,0,1,0,92,92A92.1,92.1,0,0,0,128,44Zm0,176a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,220ZM170.83,93.17a4,4,0,0,1,0,5.66l-40,40a4,4,0,1,1-5.66-5.66l40-40A4,4,0,0,1,170.83,93.17ZM100,16a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,16Z"}))]]),bO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),yO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"}),n.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"}))]]),wO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,56v64L168,56Z",opacity:"0.2"}),n.createElement("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"}))]]),AO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,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,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.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"}),n.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,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-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,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-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]),jO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),EO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M148.5,156.53a72,72,0,1,0-89,0,124,124,0,0,0-48.69,35.75,12,12,0,0,0,18.38,15.44C48.54,184.69,75.11,172,104,172c37,0,61.12,19.42,74.81,35.72a12,12,0,1,0,18.38-15.44A124,124,0,0,0,148.5,156.53ZM56,100a48,48,0,1,1,48,48A48.05,48.05,0,0,1,56,100Zm190.53,40-7.11,2.31,4.39,6.05a12,12,0,1,1-19.41,14.11l-4.4-6.06-4.4,6.06a12,12,0,1,1-19.41-14.11l4.39-6.05L193.47,140a12,12,0,1,1,7.41-22.83l7.12,2.31V112a12,12,0,0,1,24,0v7.48l7.12-2.31A12,12,0,1,1,246.53,140Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),n.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,1,0,12.24,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.26-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,100Zm196.25,43.07-4.66-2.69a23.6,23.6,0,0,0,0-8.76l4.66-2.69a8,8,0,1,0-8-13.86l-4.67,2.7a23.92,23.92,0,0,0-7.58-4.39V108a8,8,0,0,0-16,0v5.38a23.92,23.92,0,0,0-7.58,4.39l-4.67-2.7a8,8,0,1,0-8,13.86l4.66,2.69a23.6,23.6,0,0,0,0,8.76l-4.66,2.69a8,8,0,0,0,8,13.86l4.67-2.7a23.92,23.92,0,0,0,7.58,4.39V164a8,8,0,0,0,16,0v-5.38a23.92,23.92,0,0,0,7.58-4.39l4.67,2.7a7.92,7.92,0,0,0,4,1.07,8,8,0,0,0,4-14.93ZM224,144a8,8,0,1,1,8-8A8,8,0,0,1,224,144Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M198.13,194.85A8,8,0,0,1,192,208H24a8,8,0,0,1-6.12-13.15c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM255.18,154a8,8,0,0,1-6.94,4,7.92,7.92,0,0,1-4-1.07l-4.67-2.7a23.92,23.92,0,0,1-7.58,4.39V164a8,8,0,0,1-16,0v-5.38a23.92,23.92,0,0,1-7.58-4.39l-4.67,2.7a7.92,7.92,0,0,1-4,1.07,8,8,0,0,1-4-14.93l4.66-2.69a23.6,23.6,0,0,1,0-8.76l-4.66-2.69a8,8,0,1,1,8-13.86l4.67,2.7a23.92,23.92,0,0,1,7.58-4.39V108a8,8,0,0,1,16,0v5.38a23.92,23.92,0,0,1,7.58,4.39l4.67-2.7a8,8,0,1,1,8,13.86l-4.66,2.69a23.6,23.6,0,0,1,0,8.76l4.66,2.69A8,8,0,0,1,255.18,154ZM224,144a8,8,0,1,0-8-8A8,8,0,0,0,224,144Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M139,158.25a66,66,0,1,0-62,0c-22,6.23-41.88,19.16-57.61,37.89a6,6,0,0,0,9.18,7.72C49.1,179.44,77.31,166,108,166s58.9,13.44,79.41,37.86a6,6,0,1,0,9.18-7.72C180.86,177.41,161,164.48,139,158.25ZM54,100a54,54,0,1,1,54,54A54.06,54.06,0,0,1,54,100Zm197.25,44.8-5.92-3.41a22,22,0,0,0,0-10.78l5.92-3.41a6,6,0,0,0-6-10.4l-5.93,3.43a22,22,0,0,0-9.32-5.39V108a6,6,0,0,0-12,0v6.84a22,22,0,0,0-9.32,5.39l-5.93-3.43a6,6,0,0,0-6,10.4l5.92,3.41a22,22,0,0,0,0,10.78l-5.92,3.41a6,6,0,0,0,6,10.4l5.93-3.43a22,22,0,0,0,9.32,5.39V164a6,6,0,0,0,12,0v-6.84a22,22,0,0,0,9.32-5.39l5.93,3.43a6,6,0,0,0,6-10.4ZM224,146a10,10,0,1,1,10-10A10,10,0,0,1,224,146Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,1,0,12.24,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.26-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,100Zm196.25,43.07-4.66-2.69a23.6,23.6,0,0,0,0-8.76l4.66-2.69a8,8,0,1,0-8-13.86l-4.67,2.7a23.92,23.92,0,0,0-7.58-4.39V108a8,8,0,0,0-16,0v5.38a23.92,23.92,0,0,0-7.58,4.39l-4.67-2.7a8,8,0,1,0-8,13.86l4.66,2.69a23.6,23.6,0,0,0,0,8.76l-4.66,2.69a8,8,0,0,0,8,13.86l4.67-2.7a23.92,23.92,0,0,0,7.58,4.39V164a8,8,0,0,0,16,0v-5.38a23.92,23.92,0,0,0,7.58-4.39l4.67,2.7a7.92,7.92,0,0,0,4,1.07,8,8,0,0,0,4-14.93ZM216,136a8,8,0,1,1,8,8A8,8,0,0,1,216,136Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M133.17,158.84a64,64,0,1,0-50.34,0c-23.76,5.46-45.18,18.69-61.89,38.59a4,4,0,1,0,6.12,5.14C48,177.7,76.7,164,108,164s60,13.7,80.94,38.57a4,4,0,0,0,6.12-5.14C178.35,177.53,156.93,164.3,133.17,158.84ZM52,100a56,56,0,1,1,56,56A56.06,56.06,0,0,1,52,100Zm198.25,46.54L243,142.33a19.78,19.78,0,0,0,0-12.66l7.29-4.21a4,4,0,1,0-4-6.92l-7.31,4.21A20,20,0,0,0,228,116.4V108a4,4,0,0,0-8,0v8.4a20,20,0,0,0-10.94,6.35l-7.31-4.21a4,4,0,1,0-4,6.92l7.29,4.21a19.78,19.78,0,0,0,0,12.66l-7.29,4.21a4,4,0,0,0,2,7.46,3.92,3.92,0,0,0,2-.54l7.31-4.21A20,20,0,0,0,220,155.6V164a4,4,0,0,0,8,0v-8.4a20,20,0,0,0,10.94-6.35l7.31,4.21a3.92,3.92,0,0,0,2,.54,4,4,0,0,0,2-7.46ZM224,148a12,12,0,1,1,12-12A12,12,0,0,1,224,148Z"}))]]),NO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M256,136a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,256,136Zm-54.81,56.28a12,12,0,1,1-18.38,15.44C169.12,191.42,145,172,108,172c-28.89,0-55.46,12.68-74.81,35.72a12,12,0,0,1-18.38-15.44A124.08,124.08,0,0,1,63.5,156.53a72,72,0,1,1,89,0A124,124,0,0,1,201.19,192.28ZM108,148a48,48,0,1,0-48-48A48.05,48.05,0,0,0,108,148Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),n.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M254,136a6,6,0,0,1-6,6H230v18a6,6,0,0,1-12,0V142H200a6,6,0,0,1,0-12h18V112a6,6,0,0,1,12,0v18h18A6,6,0,0,1,254,136Zm-57.41,60.14a6,6,0,1,1-9.18,7.72C166.9,179.45,138.69,166,108,166s-58.89,13.45-79.41,37.86a6,6,0,0,1-9.18-7.72C35.14,177.41,55,164.48,77,158.25a66,66,0,1,1,62,0C161,164.48,180.86,177.41,196.59,196.14ZM108,154a54,54,0,1,0-54-54A54.06,54.06,0,0,0,108,154Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M252,136a4,4,0,0,1-4,4H228v20a4,4,0,0,1-8,0V140H200a4,4,0,0,1,0-8h20V112a4,4,0,0,1,8,0v20h20A4,4,0,0,1,252,136Zm-56.94,61.43a4,4,0,0,1-6.12,5.14C168,177.7,139.3,164,108,164s-60,13.7-80.94,38.57a4,4,0,1,1-6.12-5.14c16.71-19.9,38.13-33.13,61.89-38.59a64,64,0,1,1,50.34,0C156.93,164.3,178.35,177.53,195.06,197.43ZM108,156a56,56,0,1,0-56-56A56.06,56.06,0,0,0,108,156Z"}))]]),MO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),n.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z"}))]]),SO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"}),n.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"}))]]),ZO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),CO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M60,96v64a12,12,0,0,1-24,0V96a12,12,0,0,1,24,0ZM88,20A12,12,0,0,0,76,32V224a12,12,0,0,0,24,0V32A12,12,0,0,0,88,20Zm40,32a12,12,0,0,0-12,12V192a12,12,0,0,0,24,0V64A12,12,0,0,0,128,52Zm40,32a12,12,0,0,0-12,12v64a12,12,0,0,0,24,0V96A12,12,0,0,0,168,84Zm40-16a12,12,0,0,0-12,12v96a12,12,0,0,0,24,0V80A12,12,0,0,0,208,68Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,96v64H48V96Z",opacity:"0.2"}),n.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["fill",n.createElement(n.Fragment,null,n.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,40ZM72,152a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,32a8,8,0,0,1-16,0V72a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V88a8,8,0,0,1,16,0Zm32-16a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm32,8a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M54,96v64a6,6,0,0,1-12,0V96a6,6,0,0,1,12,0ZM88,26a6,6,0,0,0-6,6V224a6,6,0,0,0,12,0V32A6,6,0,0,0,88,26Zm40,32a6,6,0,0,0-6,6V192a6,6,0,0,0,12,0V64A6,6,0,0,0,128,58Zm40,32a6,6,0,0,0-6,6v64a6,6,0,0,0,12,0V96A6,6,0,0,0,168,90Zm40-16a6,6,0,0,0-6,6v96a6,6,0,0,0,12,0V80A6,6,0,0,0,208,74Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M56,96v64a8,8,0,0,1-16,0V96a8,8,0,0,1,16,0ZM88,24a8,8,0,0,0-8,8V224a8,8,0,0,0,16,0V32A8,8,0,0,0,88,24Zm40,32a8,8,0,0,0-8,8V192a8,8,0,0,0,16,0V64A8,8,0,0,0,128,56Zm40,32a8,8,0,0,0-8,8v64a8,8,0,0,0,16,0V96A8,8,0,0,0,168,88Zm40-16a8,8,0,0,0-8,8v96a8,8,0,0,0,16,0V80A8,8,0,0,0,208,72Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M52,96v64a4,4,0,0,1-8,0V96a4,4,0,0,1,8,0ZM88,28a4,4,0,0,0-4,4V224a4,4,0,0,0,8,0V32A4,4,0,0,0,88,28Zm40,32a4,4,0,0,0-4,4V192a4,4,0,0,0,8,0V64A4,4,0,0,0,128,60Zm40,32a4,4,0,0,0-4,4v64a4,4,0,0,0,8,0V96A4,4,0,0,0,168,92Zm40-16a4,4,0,0,0-4,4v96a4,4,0,0,0,8,0V80A4,4,0,0,0,208,76Z"}))]]),HO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"}),n.createElement("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"}))]]),VO=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M144,204a16,16,0,1,1-16-16A16,16,0,0,1,144,204ZM239.61,83.91a176,176,0,0,0-223.22,0,12,12,0,1,0,15.23,18.55,152,152,0,0,1,192.76,0,12,12,0,1,0,15.23-18.55Zm-32.16,35.73a128,128,0,0,0-158.9,0,12,12,0,0,0,14.9,18.81,104,104,0,0,1,129.1,0,12,12,0,0,0,14.9-18.81ZM175.07,155.3a80.05,80.05,0,0,0-94.14,0,12,12,0,0,0,14.14,19.4,56,56,0,0,1,65.86,0,12,12,0,1,0,14.14-19.4Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238.2,87.69l-104,125.43a8,8,0,0,1-12.3,0L17.8,87.69a7.79,7.79,0,0,1,1.31-11.21,180.75,180.75,0,0,1,217.78,0A7.79,7.79,0,0,1,238.2,87.69Z",opacity:"0.2"}),n.createElement("path",{d:"M247.89,80.91a15.93,15.93,0,0,0-6.17-10.81A186.67,186.67,0,0,0,128,32,186.67,186.67,0,0,0,14.28,70.1,15.93,15.93,0,0,0,8.11,80.91,15.65,15.65,0,0,0,11.65,92.8l104,125.43A15.93,15.93,0,0,0,128,224h0a15.93,15.93,0,0,0,12.31-5.77l104-125.43A15.65,15.65,0,0,0,247.89,80.91ZM128,208,24.09,82.74A170.76,170.76,0,0,1,128,48,170.76,170.76,0,0,1,231.91,82.74Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244.35,92.8l-104,125.43A15.93,15.93,0,0,1,128,224h0a15.93,15.93,0,0,1-12.31-5.77L11.65,92.8A15.65,15.65,0,0,1,8.11,80.91,15.93,15.93,0,0,1,14.28,70.1,186.67,186.67,0,0,1,128,32,186.67,186.67,0,0,1,241.72,70.1a15.93,15.93,0,0,1,6.17,10.81A15.65,15.65,0,0,1,244.35,92.8Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M138,204a10,10,0,1,1-10-10A10,10,0,0,1,138,204ZM235.81,88.55a170,170,0,0,0-215.62,0,6,6,0,1,0,7.62,9.27,158,158,0,0,1,200.38,0,6,6,0,1,0,7.62-9.27Zm-32.08,35.79a122,122,0,0,0-151.46,0,6,6,0,0,0,7.46,9.41,110,110,0,0,1,136.54,0A6,6,0,0,0,200,135a6,6,0,0,0,3.73-10.7Zm-32.2,35.81a74,74,0,0,0-87.06,0,6,6,0,0,0,7.06,9.7,62,62,0,0,1,72.94,0,6,6,0,0,0,8.38-1.32A6,6,0,0,0,171.53,160.15Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,204a12,12,0,1,1-12-12A12,12,0,0,1,140,204ZM237.08,87A172,172,0,0,0,18.92,87,8,8,0,0,0,29.08,99.37a156,156,0,0,1,197.84,0A8,8,0,0,0,237.08,87ZM205,122.77a124,124,0,0,0-153.94,0A8,8,0,0,0,61,135.31a108,108,0,0,1,134.06,0,8,8,0,0,0,11.24-1.3A8,8,0,0,0,205,122.77Zm-32.26,35.76a76.05,76.05,0,0,0-89.42,0,8,8,0,0,0,9.42,12.94,60,60,0,0,1,70.58,0,8,8,0,1,0,9.42-12.94Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,204a8,8,0,1,1-8-8A8,8,0,0,1,136,204ZM234.54,90.1a168,168,0,0,0-213.08,0,4,4,0,1,0,5.08,6.18,160,160,0,0,1,202.92,0,4,4,0,0,0,5.08-6.18Zm-32.06,35.81a120,120,0,0,0-149,0,4,4,0,0,0,5,6.27,112,112,0,0,1,139,0,4,4,0,0,0,5-6.27Zm-32.13,35.86a72,72,0,0,0-84.7,0,4,4,0,1,0,4.7,6.46,64.07,64.07,0,0,1,75.3,0,4,4,0,0,0,5.58-.87A4,4,0,0,0,170.35,161.77Z"}))]]),_O=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.47,67.5a12,12,0,0,0-19.26-4.32L172.43,99l-12.68-2.72L157,83.57l35.79-38.78a12,12,0,0,0-4.32-19.26A76.07,76.07,0,0,0,88.41,121.64L30.92,174.18a4.68,4.68,0,0,0-.39.38,36,36,0,0,0,50.91,50.91l.38-.39,52.54-57.49A76.05,76.05,0,0,0,230.47,67.5ZM160,148a51.5,51.5,0,0,1-23.35-5.52,12,12,0,0,0-14.26,2.62L64.31,208.66a12,12,0,0,1-17-17l63.55-58.07a12,12,0,0,0,2.62-14.26A51.5,51.5,0,0,1,108,96a52.06,52.06,0,0,1,52-52h.89L135.17,71.87a12,12,0,0,0-2.91,10.65l5.66,26.35a12,12,0,0,0,9.21,9.21l26.35,5.66a12,12,0,0,0,10.65-2.91L212,95.12c0,.3,0,.59,0,.89A52.06,52.06,0,0,1,160,148Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,96a64,64,0,0,1-94.94,56L73,217A24,24,0,0,1,39,183L104,126.94a64,64,0,0,1,80-90.29L144,80l5.66,26.34L176,112l43.35-40A63.8,63.8,0,0,1,224,96Z",opacity:"0.2"}),n.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,96a72,72,0,0,1-100.94,66L79,222.22c-.12.14-.26.29-.39.42a32,32,0,0,1-45.26-45.26c.14-.13.28-.27.43-.39L94,124.94a72.07,72.07,0,0,1,83.54-98.78,8,8,0,0,1,3.93,13.19L144,80l5.66,26.35L176,112l40.65-37.52a8,8,0,0,1,13.19,3.93A72.6,72.6,0,0,1,232,96Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.91,69.75a6,6,0,0,0-9.63-2.16l-41.07,37.9L154.7,101.3l-4.19-19.51,37.9-41.07a6,6,0,0,0-2.16-9.63,70,70,0,0,0-89.77,94.39l-61.39,53c-.11.09-.21.19-.32.3A30,30,0,0,0,77.2,221.23c.11-.11.21-.21.3-.32l53-61.39a70,70,0,0,0,94.39-89.77ZM160,154a58,58,0,0,1-28-7.22,6,6,0,0,0-7.45,1.33L68.57,212.88a18,18,0,0,1-25.45-25.45l64.76-55.94A6,6,0,0,0,109.2,124a58,58,0,0,1,64-84.53L139.58,75.93a6,6,0,0,0-1.45,5.33l5.65,26.35a6,6,0,0,0,4.61,4.61l26.35,5.65a6,6,0,0,0,5.33-1.45L216.49,82.8A58.06,58.06,0,0,1,160,154Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.05,70.5a4,4,0,0,0-6.42-1.44l-41.82,38.6L153,103l-4.68-21.79,38.6-41.82a4,4,0,0,0-1.44-6.43A68,68,0,0,0,98.94,126L36.4,180l-.21.2a28,28,0,0,0,39.6,39.6l.2-.21,54-62.54A68,68,0,0,0,228,96,67.51,67.51,0,0,0,223.05,70.5ZM160,156a60,60,0,0,1-29-7.47,4,4,0,0,0-5,.89L70,214.25A20,20,0,0,1,41.75,186l64.82-56a4,4,0,0,0,.89-5,60,60,0,0,1,69.46-86.59L141.05,77.29a4,4,0,0,0-1,3.55l5.66,26.35a4,4,0,0,0,3.07,3.07l26.35,5.66a4,4,0,0,0,3.55-1l38.87-35.87A60.05,60.05,0,0,1,160,156Z"}))]]),TO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),LO=new Map([["bold",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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",n.createElement(n.Fragment,null,n.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"}))]]),RO=n.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),he=n.forwardRef((e,a)=>{const{alt:l,color:i,size:c,weight:u,mirrored:d,children:h,weights:f,...p}=e,{color:g="currentColor",size:x,weight:b="regular",mirrored:w=!1,...M}=n.useContext(RO);return n.createElement("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c??x,height:c??x,fill:i??g,viewBox:"0 0 256 256",transform:d||w?"scale(-1, 1)":void 0,...M,...p},!!l&&n.createElement("title",null,l),h,f.get(u??b))});he.displayName="IconBase";const gE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Ok}));gE.displayName="AddressBookIcon";const xE=gE,vE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Fk}));vE.displayName="ArrowBendDownRightIcon";const kO=vE,bE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:zk}));bE.displayName="ArrowClockwiseIcon";const Nl=bE,yE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:qk}));yE.displayName="ArrowLeftIcon";const Qr=yE,wE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:$k}));wE.displayName="ArrowRightIcon";const Ym=wE,AE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Bk}));AE.displayName="ArrowsLeftRightIcon";const Kh=AE,jE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Ik}));jE.displayName="BellRingingIcon";const Km=jE,EE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Uk}));EE.displayName="BookOpenIcon";const NE=EE,ME=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Pk}));ME.displayName="BrainIcon";const DO=ME,SE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Gk}));SE.displayName="BrowserIcon";const Xh=SE,ZE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Yk}));ZE.displayName="BuildingsIcon";const Qh=ZE,CE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Kk}));CE.displayName="CalendarBlankIcon";const Ml=CE,HE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Xk}));HE.displayName="CalendarIcon";const OO=HE,VE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Qk}));VE.displayName="CalendarCheckIcon";const FO=VE,_E=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Jk}));_E.displayName="CameraIcon";const Jh=_E,TE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:Wk}));TE.displayName="CaretDownIcon";const rn=TE,LE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:eD}));LE.displayName="CaretRightIcon";const Sl=LE,RE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:tD}));RE.displayName="CaretUpIcon";const zO=RE,kE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:aD}));kE.displayName="ChartBarIcon";const DE=kE,OE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:nD}));OE.displayName="ChartLineUpIcon";const qO=OE,FE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:rD}));FE.displayName="ChatCircleIcon";const _1=FE,zE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:sD}));zE.displayName="ChatCircleDotsIcon";const b1=zE,qE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:lD}));qE.displayName="CheckIcon";const $r=qE,$E=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:iD}));$E.displayName="CheckCircleIcon";const q0=$E,BE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:oD}));BE.displayName="CircleNotchIcon";const mt=BE,IE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:cD}));IE.displayName="ClipboardTextIcon";const $O=IE,UE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:uD}));UE.displayName="ClockIcon";const Br=UE,PE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:dD}));PE.displayName="ClockCounterClockwiseIcon";const GE=PE,YE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:hD}));YE.displayName="CpuIcon";const BO=YE,KE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:mD}));KE.displayName="CrosshairIcon";const IO=KE,XE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:fD}));XE.displayName="CubeIcon";const Wh=XE,QE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:pD}));QE.displayName="CurrencyDollarIcon";const JE=QE,WE=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:gD}));WE.displayName="DotsSixVerticalIcon";const UO=WE,eN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:xD}));eN.displayName="DownloadIcon";const PO=eN,tN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:vD}));tN.displayName="EjectIcon";const GO=tN,aN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:bD}));aN.displayName="EnvelopeIcon";const YO=aN,nN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:yD}));nN.displayName="EyeIcon";const i0=nN,rN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:wD}));rN.displayName="EyeClosedIcon";const KO=rN,sN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:AD}));sN.displayName="FileTextIcon";const em=sN,lN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:jD}));lN.displayName="FlagIcon";const XO=lN,iN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:ED}));iN.displayName="FloppyDiskIcon";const QO=iN,oN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:ND}));oN.displayName="FlowArrowIcon";const JO=oN,cN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:MD}));cN.displayName="FunnelIcon";const WO=cN,uN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:SD}));uN.displayName="GearIcon";const eF=uN,dN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:ZD}));dN.displayName="GearSixIcon";const hN=dN,mN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:CD}));mN.displayName="GitBranchIcon";const fN=mN,pN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:HD}));pN.displayName="GlobeIcon";const Zl=pN,gN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:VD}));gN.displayName="HandIcon";const Xm=gN,xN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:_D}));xN.displayName="HandshakeIcon";const tF=xN,vN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:TD}));vN.displayName="HeadsetIcon";const aF=vN,bN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:LD}));bN.displayName="KanbanIcon";const Qm=bN,yN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:RD}));yN.displayName="LightbulbIcon";const e7=yN,wN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:kD}));wN.displayName="LightningIcon";const ha=wN,AN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:DD}));AN.displayName="ListIcon";const jN=AN,EN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:OD}));EN.displayName="ListChecksIcon";const pl=EN,NN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:FD}));NN.displayName="MagnetIcon";const nF=NN,MN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:zD}));MN.displayName="MagnifyingGlassIcon";const sn=MN,SN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:qD}));SN.displayName="MicrophoneIcon";const Sn=SN,ZN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:$D}));ZN.displayName="MicrophoneSlashIcon";const Jm=ZN,CN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:BD}));CN.displayName="MinusIcon";const rF=CN,HN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:ID}));HN.displayName="NewspaperIcon";const tm=HN,VN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:UD}));VN.displayName="NoteIcon";const sF=VN,_N=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:PD}));_N.displayName="NotebookIcon";const lF=_N,TN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:GD}));TN.displayName="PaperPlaneRightIcon";const am=TN,LN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:YD}));LN.displayName="PauseIcon";const iF=LN,RN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:KD}));RN.displayName="PencilIcon";const $1=RN,kN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:XD}));kN.displayName="PencilLineIcon";const oF=kN,DN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:QD}));DN.displayName="PencilSimpleIcon";const nm=DN,ON=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:JD}));ON.displayName="PhoneDisconnectIcon";const cF=ON,FN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:WD}));FN.displayName="PlayIcon";const Wm=FN,zN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:eO}));zN.displayName="PlugIcon";const ef=zN,qN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:tO}));qN.displayName="PlugsConnectedIcon";const Ir=qN,$N=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:aO}));$N.displayName="PlusIcon";const Nt=$N,BN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:nO}));BN.displayName="PowerIcon";const t7=BN,IN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:rO}));IN.displayName="PulseIcon";const zr=IN,UN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:sO}));UN.displayName="QrCodeIcon";const a7=UN,PN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:lO}));PN.displayName="RobotIcon";const tn=PN,GN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:iO}));GN.displayName="ShareNetworkIcon";const rm=GN,YN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:oO}));YN.displayName="ShieldCheckIcon";const KN=YN,XN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:cO}));XN.displayName="ShuffleIcon";const uF=XN,QN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:uO}));QN.displayName="SkipForwardIcon";const dF=QN,JN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:dO}));JN.displayName="SpeakerHighIcon";const hF=JN,WN=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:hO}));WN.displayName="SpinnerIcon";const eM=WN,tM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:mO}));tM.displayName="SpinnerGapIcon";const mF=tM,aM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:fO}));aM.displayName="SquaresFourIcon";const fF=aM,nM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:pO}));nM.displayName="StarIcon";const pF=nM,rM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:gO}));rM.displayName="TagIcon";const gF=rM,sM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:xO}));sM.displayName="TargetIcon";const sm=sM,lM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:vO}));lM.displayName="TimerIcon";const xF=lM,iM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:bO}));iM.displayName="TrashIcon";const Gt=iM,oM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:yO}));oM.displayName="TreeStructureIcon";const n7=oM,cM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:wO}));cM.displayName="TrendUpIcon";const lm=cM,uM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:AO}));uM.displayName="UploadIcon";const vF=uM,dM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:jO}));dM.displayName="UserCircleIcon";const r7=dM,hM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:EO}));hM.displayName="UserGearIcon";const bF=hM,mM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:NO}));mM.displayName="UserPlusIcon";const yF=mM,fM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:MO}));fM.displayName="UsersIcon";const wF=fM,pM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:SO}));pM.displayName="UsersThreeIcon";const gM=pM,xM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:ZO}));xM.displayName="WarningIcon";const tf=xM,vM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:CO}));vM.displayName="WaveformIcon";const s7=vM,bM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:HO}));bM.displayName="WebhooksLogoIcon";const AF=bM,yM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:VO}));yM.displayName="WifiHighIcon";const jF=yM,wM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:_O}));wM.displayName="WrenchIcon";const EF=wM,AM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:TO}));AM.displayName="XIcon";const Ca=AM,jM=n.forwardRef((e,a)=>n.createElement(he,{ref:a,...e,weights:LO}));jM.displayName="XCircleIcon";const Cl=jM,im=new EventTarget;function de(e,a){im.dispatchEvent(new CustomEvent("toast",{detail:{type:e,message:a}}))}const NF={success:"border-success/30 bg-success/10 text-success",error:"border-critical/30 bg-critical/10 text-critical",info:"border-white/10 bg-white/5 text-neutral-200"};function MF(){const[e,a]=n.useState([]);n.useEffect(()=>{const i=c=>{const{type:u,message:d}=c.detail,h=crypto.randomUUID();a(f=>[...f.slice(-4),{id:h,type:u,message:d}]),setTimeout(()=>{a(f=>f.filter(p=>p.id!==h))},5e3)};return im.addEventListener("toast",i),()=>im.removeEventListener("toast",i)},[]);const l=i=>{a(c=>c.filter(u=>u.id!==i))};return s.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:s.jsx(Ba,{children:e.map(i=>s.jsxs(Re.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 ${NF[i.type]}`,children:[s.jsx("span",{className:"flex-1",children:i.message}),s.jsx("button",{onClick:()=>l(i.id),className:"opacity-60 hover:opacity-100",children:s.jsx(Ca,{size:14})})]},i.id))})})}function we(e,a=[]){const[l,i]=n.useState(null),[c,u]=n.useState(!!e),[d,h]=n.useState(null),[f,p]=n.useState(0),g=n.useCallback(()=>p(x=>x+1),[]);return n.useEffect(()=>{if(!e)return;let x=!1;return u(!0),me(e).then(b=>{x||(i(b.data),h(null))}).catch(b=>{x||h(b.message)}).finally(()=>{x||u(!1)}),()=>{x=!0}},[e,f,...a]),{data:l,loading:c,error:d,refetch:g}}function af(){const[e,a]=n.useState("connected"),[l,i]=n.useState(!0),[c,u]=n.useState(!0);return n.useEffect(()=>{let d=!1;return fetch("/api/runtime/tier").then(h=>h.json()).then(h=>{if(!d){const p=h.data.tier==="free"?"free":"connected";a(p),i(h.data.modelReady??!0)}}).catch(()=>{}).finally(()=>{d||u(!1)}),()=>{d=!0}},[]),{tier:e,modelReady:l,loading:c}}let aa=null,P2=null;const om=new Set,SF=3e3;function ZF(){const e=nn(),a=window.location.protocol==="https:"?"wss:":"ws:",l=window.location.host;return`${a}//${l}/ws?token=${e}`}function nf(){if(!((aa==null?void 0:aa.readyState)===WebSocket.OPEN||(aa==null?void 0:aa.readyState)===WebSocket.CONNECTING||!nn()))try{aa=new WebSocket(ZF()),aa.onmessage=a=>{try{const l=JSON.parse(a.data);for(const i of om)i(l.type,l.data)}catch{}},aa.onclose=()=>{aa=null,l7()},aa.onerror=()=>{aa==null||aa.close()}}catch{l7()}}function l7(){P2||(P2=setTimeout(()=>{P2=null,nf()},SF))}function EM(e){return om.add(e),()=>om.delete(e)}function Ia(e){const[a,l]=n.useState(0);return n.useEffect(()=>(nf(),EM(i=>{e.includes(i)&&l(c=>c+1)})),[e.join(",")]),a}function rf(e){const a=n.useRef(e);n.useEffect(()=>{a.current=e}),n.useEffect(()=>(nf(),EM((l,i)=>{a.current(l,i)})),[])}function CF(){rf(n.useCallback((e,a)=>{const l=a;switch(e){case"task:completed":de("success",`Task completed${l!=null&&l.taskId?` (${l.taskId.slice(0,8)})`:""}`);break;case"task:failed":de("error",`Task failed: ${(l==null?void 0:l.error)||"Unknown error"}`);break;case"cloud:connected":de("info","Connected to cloud");break;case"cloud:disconnected":de("error",`Disconnected: ${(l==null?void 0:l.reason)||"Unknown"}`);break;case"credits:exhausted":de("info","Cloud credits exhausted. Tasks are running on your local model.");break;case"budget:warning":de("info",`Budget at ${(l==null?void 0:l.pct)||"?"}% capacity`);break;case"budget:exceeded":de("error",`Budget exceeded: ${(l==null?void 0:l.reason)||"Limit reached"}`);break;case"model:switch-started":de("info",`Switching model to ${(l==null?void 0:l.model)||"new model"}...`);break;case"model:switch-complete":de("success",`Now using ${(l==null?void 0:l.model)||"model"} via ${(l==null?void 0:l.provider)||"local"}`);break;case"model:switch-failed":de("error",`Model switch failed: ${(l==null?void 0:l.reason)||"Unknown error"}`);break;case"inference:capabilities-changed":{const i=a;i!=null&&i.turboQuantActive&&de("info",`TurboQuant ${i.turboQuantBits}-bit active via ${i.provider}`);break}}},[]))}function HF({children:e}){return s.jsx(Re.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:e})}const VF=[{path:"/",label:"Chat",icon:_1,group:"primary"},{path:"/dashboard",label:"Overview",icon:fF,group:"primary"},{path:"/tasks",label:"Tasks",icon:pl,group:"primary"},{path:"/activity",label:"Activity",icon:zr,group:"primary"},{path:"/messages",label:"Messages",icon:_1,group:"primary"},{path:"/agents",label:"Agents",icon:tn,group:"manage"},{path:"/projects",label:"Projects",icon:Qm,group:"manage"},{path:"/workflows",label:"Workflows",icon:JO,group:"manage"},{path:"/automations",label:"Automations",icon:ha,group:"manage"},{path:"/templates",label:"Templates",icon:Wh,group:"manage"},{path:"/schedules",label:"Schedules",icon:Ml,group:"manage"},{path:"/approvals",label:"Approvals",icon:KN,group:"manage"},{path:"/goals",label:"Goals",icon:sm,group:"manage"},{path:"/revenue",label:"Revenue",icon:JE,group:"manage"},{path:"/messaging",label:"Messaging",icon:b1,group:"connect"},{path:"/peers",label:"Peers",icon:rm,group:"connect"},{path:"/team",label:"Team",icon:gM,group:"connect"},{path:"/connections",label:"Connections",icon:Ir,group:"connect"},{path:"/webhook-events",label:"Webhooks",icon:ef,group:"configure"},{path:"/browser",label:"Browser",icon:Xh,group:"configure"},{path:"/eye",label:"Eye",icon:i0,group:"configure"},{path:"/briefings",label:"Briefings",icon:tm,group:"configure"},{path:"/podcast",label:"Podcast",icon:Sn,group:"configure"},{path:"/knowledge",label:"Knowledge",icon:NE,group:"configure"},{path:"/settings",label:"Settings",icon:hN,group:"configure"}];function _F(e){const a=Math.floor(e/3600),l=Math.floor(e%3600/60);return a>0?`${a}h ${l}m`:`${l}m`}function TF({label:e,children:a}){return s.jsxs("div",{children:[s.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-3 mb-1.5",children:e}),s.jsx("div",{className:"space-y-0.5",children:a})]})}function LF({path:e,label:a,icon:l,isActive:i}){return s.jsxs(O0,{to:e,"data-testid":`runtime-nav-${a.toLowerCase()}`,className:`relative flex items-center gap-3 px-3 py-2 text-sm rounded-md transition-colors ${i?"text-white":"text-neutral-400 hover:text-white hover:bg-white/5"}`,children:[i&&s.jsx(Re.div,{layoutId:"sidebar-active",className:"absolute inset-0 bg-white/10 rounded-md",transition:{type:"spring",stiffness:350,damping:30}}),s.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[s.jsx(l,{size:16,weight:"bold"}),a]})]})}function i7({health:e,tier:a,tierLoading:l,visibleNav:i,pathname:c,onClose:u}){const d=p=>p==="/"?c==="/"||c==="":c.startsWith(p),h=[{key:"primary"},{key:"manage",label:"Manage"},{key:"connect",label:"Connect"},{key:"configure",label:"Configure"}],f=p=>p.map(g=>s.jsx(LF,{path:g.path,label:g.label,icon:g.icon,isActive:d(g.path)},g.path));return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"p-4 border-b border-white/10 flex items-center justify-between",children:[s.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[s.jsx("span",{className:"font-bold",children:"OHWOW"}),s.jsx("span",{className:"font-light",children:".FUN"})]}),u&&s.jsx("button",{onClick:u,className:"text-neutral-400 hover:text-white transition-colors md:hidden",children:s.jsx(Ca,{size:18})})]}),s.jsx("nav",{className:"flex-1 overflow-y-auto p-3 space-y-5",children:h.map(({key:p,label:g})=>{const x=i.filter(b=>b.group===p);return x.length===0?null:g?s.jsx(TF,{label:g,children:f(x)},p):s.jsx("div",{className:"space-y-0.5",children:f(x)},p)})}),s.jsx("div",{className:"p-3 border-t border-white/10",children:s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg bg-white/[0.03]",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsxs("div",{className:"flex items-center gap-2",children:[e&&s.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${e.status==="healthy"?"bg-success":"bg-warning"}`}),s.jsx("span",{className:"text-xs text-neutral-400",children:e?`v${e.version}`:"Starting..."}),e&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-white/10 text-xs",children:"|"}),s.jsx("span",{className:"text-xs text-neutral-500",children:_F(e.uptime)})]})]})}),!l&&s.jsx("span",{"data-testid":"runtime-tier-badge",className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium ${a==="free"?"bg-cyan-500/15 text-cyan-400":"bg-success/15 text-success"}`,children:a==="free"?"Local":"Cloud"})]})})]})}function RF(){const e=an(),{data:a}=we("/health"),{tier:l,modelReady:i,loading:c}=af();CF();const[u,d]=n.useState(!1),[h,f]=n.useState(()=>{try{return localStorage.getItem("ohwow-model-banner-dismissed")==="1"}catch{return!1}});n.useEffect(()=>{d(!1)},[e.pathname]);const p=!c&&!i&&!h,g=()=>{f(!0);try{localStorage.setItem("ohwow-model-banner-dismissed","1")}catch{}},x=VF;return s.jsxs("div",{className:"flex h-dvh bg-black text-white",children:[s.jsx("aside",{className:"hidden md:flex w-64 border-r border-white/10 flex-col h-dvh sticky top-0",children:s.jsx(i7,{health:a??null,tier:l,tierLoading:c,visibleNav:x,pathname:e.pathname})}),s.jsx(Ba,{children:u&&s.jsxs(s.Fragment,{children:[s.jsx(Re.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>d(!1),className:"fixed inset-0 bg-black/60 z-40 md:hidden"}),s.jsx(Re.aside,{initial:{x:-280},animate:{x:0},exit:{x:-280},transition:{type:"spring",stiffness:350,damping:30},className:"fixed inset-y-0 left-0 w-[280px] bg-black border-r border-white/10 z-50 md:hidden",children:s.jsx(i7,{health:a??null,tier:l,tierLoading:c,visibleNav:x,pathname:e.pathname,onClose:()=>d(!1)})})]})}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[s.jsxs("div",{className:"md:hidden flex items-center gap-3 px-4 py-3 border-b border-white/10",children:[s.jsx("button",{onClick:()=>d(!0),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(jN,{size:20})}),s.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[s.jsx("span",{className:"font-bold",children:"OHWOW"}),s.jsx("span",{className:"font-light",children:".FUN"})]})]}),s.jsxs("main",{className:"flex-1 overflow-y-auto min-h-0",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(O0,{to:"/settings",className:"underline hover:text-white",children:"Settings"})," ","to download one."]}),s.jsx("button",{onClick:g,className:"text-warning/60 hover:text-warning text-sm ml-4","aria-label":"Dismiss",children:"✕"})]}),s.jsx(CA,{children:s.jsx(HF,{children:s.jsx(uV,{})},e.pathname)})]})]})]})}function kF(){const[e,a]=n.useState(""),[l,i]=n.useState(""),[c,u]=n.useState(!1),d=u0(),h=async f=>{if(f.preventDefault(),!!e.trim()){u(!0),i("");try{Eh(e.trim()),await me("/api/session"),d("/",{replace:!0})}catch{i("Invalid session token. Check your terminal for the correct token."),Eh("")}finally{u(!1)}}};return s.jsx("div",{className:"min-h-screen bg-black 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-white",children:"ohwow"}),s.jsx("span",{className:"text-neutral-400 ml-1",children:"runtime"})]}),s.jsx("p",{className:"text-sm text-neutral-400 mt-2",children:"Enter the session token from your terminal to connect."})]}),s.jsxs("form",{onSubmit:h,className:"space-y-4",children:[s.jsx("div",{children:s.jsx("input",{type:"text",value:e,onChange:f=>a(f.target.value),placeholder:"Paste session token here",autoFocus:!0,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 transition-colors font-mono"})}),l&&s.jsx("p",{className:"text-xs text-critical",children:l}),s.jsx("button",{type:"submit",disabled:c||!e.trim(),className:"w-full bg-white text-black rounded-lg px-4 py-3 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:c?"Connecting...":"Connect"})]})]})})}function DF(e){const a=e.match(/```agents\s*\n?([\s\S]*?)```/);if(a)try{const i=JSON.parse(a[1].trim());if(Array.isArray(i))return i.filter(c=>typeof c=="string")}catch{}const l=e.match(/\[[\s\S]*?\]/);if(l)try{const i=JSON.parse(l[0]);if(Array.isArray(i))return i.filter(c=>typeof c=="string")}catch{}return[]}function OF(e){const a=e.match(/```setup\s*\n?([\s\S]*?)```/);if(a)try{const i=JSON.parse(a[1].trim()),c=i.goal?{title:i.goal,metric:i.goal_metric||void 0,target:i.goal_target!=null?i.goal_target:void 0,unit:i.unit||void 0}:null,u=Array.isArray(i.agents)?i.agents.filter(d=>typeof d=="string"):[];return{goal:c,agentIds:u}}catch{}return{goal:null,agentIds:DF(e)}}function FF(){const[e,a]=n.useState({screen:"splash",status:null,selectedModel:null,loading:!1,downloading:!1,downloadPercent:0,downloadMessage:"",setupMessage:"",error:null,completed:!1,licenseKey:"",licenseValidating:!1,licenseError:null,businessName:"",businessType:"",businessDescription:"",founderPath:"",founderFocus:"",modelAvailable:!1,chatMessages:[],chatStreaming:!1,presets:[],selectedAgentIds:new Set,integrations:[],integrationValues:{},skippedIntegrationIds:new Set,discoveredGoal:null}),l=n.useRef(null);n.useEffect(()=>()=>{var B;(B=l.current)==null||B.abort()},[]);const i=n.useCallback(async()=>{a(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:Y}=await B.json();return a(k=>({...k,status:Y,selectedModel:Y.recommendation,loading:!1})),Y}catch(B){return a(Y=>({...Y,loading:!1,error:B instanceof Error?B.message:"Something went wrong"})),null}},[]),c=n.useCallback(()=>{a(B=>({...B,screen:"tier_choice"}))},[]),u=n.useCallback(B=>{a(Y=>({...Y,licenseKey:B,licenseError:null}))},[]),d=n.useCallback(async()=>{a(B=>({...B,licenseValidating:!1,screen:"model"})),e.status||await i()},[e.status,i]),h=n.useCallback(async()=>{a(B=>({...B,screen:"model",licenseKey:""})),e.status||await i()},[e.status,i]),f=n.useCallback(async()=>{a(B=>({...B,screen:"model"})),e.status||await i()},[e.status,i]),p=n.useCallback(B=>{a(Y=>({...Y,selectedModel:B}))},[]),g=async(B,Y,k)=>{const $=B.body.getReader(),Q=new TextDecoder;let ie="";try{for(;;){if(k!=null&&k.aborted){$.cancel();return}const{done:re,value:D}=await $.read();if(re)break;ie+=Q.decode(D,{stream:!0});const J=ie.split(`
|
|
70
|
-
`);ie=J.pop()||"";for(const ne of J)if(ne.startsWith("data: ")){const z=ne.slice(6).trim();if(z==="[DONE]")return;try{Y(JSON.parse(z))}catch{}}}}finally{$.releaseLock()}},x=n.useCallback(async()=>{const B=e.selectedModel;if(!B||l.current)return;const Y=new AbortController;l.current=Y,a(k=>({...k,downloading:!0,downloadPercent:0,downloadMessage:"",setupMessage:"Setting things up...",error:null}));try{const k=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:Y.signal});if(!k.ok||!k.body)throw new Error("Could not set up Ollama");await g(k,Q=>{if(a(ie=>({...ie,setupMessage:Q.message})),Q.error)throw new Error(Q.error)},Y.signal),a(Q=>({...Q,setupMessage:"",downloadMessage:"Starting download..."}));const $=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:B.tag}),signal:Y.signal});if(!$.ok||!$.body)throw new Error("Could not start download");await g($,Q=>{if(a(ie=>({...ie,downloadMessage:Q.message,downloadPercent:Q.percent??ie.downloadPercent})),Q.error)throw new Error(Q.error)},Y.signal),a(Q=>({...Q,downloading:!1,downloadPercent:100,downloadMessage:"Download complete",modelAvailable:!0,screen:"business_info"}))}catch(k){if(Y.signal.aborted)return;a($=>({...$,downloading:!1,setupMessage:"",error:k instanceof Error?k.message:"Something went wrong"}))}finally{l.current=null}},[e.selectedModel]),b=n.useCallback(()=>{a(B=>({...B,screen:"business_info",selectedModel:null,modelAvailable:!1}))},[]),w=n.useCallback(B=>{a(Y=>({...Y,businessName:B}))},[]),M=n.useCallback(B=>{a(Y=>({...Y,businessType:B}))},[]),E=n.useCallback(B=>{a(Y=>({...Y,businessDescription:B}))},[]),j=n.useCallback(()=>{a(B=>({...B,screen:"business_info"}))},[]),A=n.useCallback(B=>{a(Y=>({...Y,founderPath:B}))},[]),S=n.useCallback(B=>{a(Y=>({...Y,founderFocus:B}))},[]),N=n.useCallback(()=>{a(B=>({...B,screen:"founder_stage"}))},[]),C=n.useCallback(async B=>{a(Y=>({...Y,chatStreaming:!0}));try{const Y=await fetch("/api/onboarding/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:B,businessType:e.businessType||"saas_startup",founderPath:e.founderPath||"exploring",founderFocus:e.founderFocus||""})});if(!Y.ok||!Y.body)throw new Error("Chat unavailable");let k="";const $=Y.body.getReader(),Q=new TextDecoder;let ie="";for(;;){const{done:re,value:D}=await $.read();if(re)break;ie+=Q.decode(D,{stream:!0});const J=ie.split(`
|
|
71
|
-
`);ie=J.pop()||"";for(const ne of J)if(ne.startsWith("data: ")){const z=ne.slice(6).trim();if(z==="[DONE]")continue;try{const F=JSON.parse(z);F.type==="text"&&F.content&&(k+=F.content)}catch{}}}if(k){a(D=>({...D,chatMessages:[...D.chatMessages,{role:"assistant",content:k}],chatStreaming:!1}));const re=OF(k);re.agentIds.length>0?a(D=>({...D,selectedAgentIds:new Set(re.agentIds.filter(J=>D.presets.some(ne=>ne.id===J))),discoveredGoal:re.goal})):re.goal&&a(D=>({...D,discoveredGoal:re.goal}))}else a(re=>({...re,chatStreaming:!1}))}catch{a(Y=>({...Y,chatStreaming:!1,chatMessages:[...Y.chatMessages,{role:"assistant",content:"I ran into an issue connecting to the model. You can pick your agents manually on the next screen."}]}))}},[e.businessType,e.founderPath,e.founderFocus]),V=n.useCallback(async()=>{const B=e.businessType||"saas_startup";try{const Y=await fetch(`/api/onboarding/presets?businessType=${B}`);if(Y.ok){const{data:k}=await Y.json();a($=>({...$,screen:"agent_discovery",presets:k.presets,selectedAgentIds:new Set(k.recommended.map(Q=>Q.id))}))}else a(k=>({...k,screen:"agent_discovery"}))}catch{a(Y=>({...Y,screen:"agent_discovery"}))}try{const Y=await fetch("/api/onboarding/model-available");if(Y.ok){const{data:k}=await Y.json();a($=>({...$,modelAvailable:k.available})),k.available&&e.chatMessages.length===0&&C([])}}catch{}},[e.businessType,e.chatMessages.length,C]),_=n.useCallback(B=>{const Y={role:"user",content:B};a($=>({...$,chatMessages:[...$.chatMessages,Y]}));const k=[...e.chatMessages,Y];C(k)},[e.chatMessages,C]),H=n.useCallback(()=>{a(B=>({...B,screen:"agent_selection"}))},[]),R=n.useCallback(B=>{a(Y=>{const k=new Set(Y.selectedAgentIds);return k.has(B)?k.delete(B):k.add(B),{...Y,selectedAgentIds:k}})},[]),L=n.useCallback(()=>{a(B=>({...B,screen:"integration_setup"}))},[]),O=n.useCallback((B,Y,k)=>{a($=>({...$,integrationValues:{...$.integrationValues,[B]:{...$.integrationValues[B]||{},[Y]:k}}}))},[]),I=n.useCallback(B=>{a(Y=>{const k=new Set(Y.skippedIntegrationIds);return k.add(B),{...Y,skippedIntegrationIds:k}})},[]),X=n.useCallback(()=>{a(B=>({...B,screen:"ready"}))},[]),K=n.useCallback(async()=>{const B=e.selectedModel,Y=(B==null?void 0:B.tag)||"qwen3:4b",k=e.presets.filter($=>e.selectedAgentIds.has($.id)).map($=>({id:$.id,name:$.name,role:$.role,description:$.description,systemPrompt:"",tools:$.tools,department:$.department}));a($=>({...$,loading:!0,error:null}));try{if(!(await fetch("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelTag:Y,businessName:e.businessName,businessType:e.businessType,businessDescription:e.businessDescription,founderPath:e.founderPath,founderFocus:e.founderFocus,agents:k,goal:e.discoveredGoal})})).ok)throw new Error("Could not save config");return a(Q=>({...Q,loading:!1,completed:!0})),null}catch($){const Q=$ instanceof Error?$.message:"Something went wrong";return a(ie=>({...ie,loading:!1,error:Q})),Q}},[e.selectedModel,e.businessName,e.businessType,e.businessDescription,e.founderPath,e.founderFocus,e.presets,e.selectedAgentIds,e.discoveredGoal]);return{...e,fetchStatus:i,goToTierChoice:c,setLicenseKey:u,validateLicenseKey:d,skipTierChoice:h,goToModel:f,selectModel:p,startDownload:x,skipDownload:b,setBusinessName:w,setBusinessType:M,setBusinessDescription:E,goToBusinessInfo:j,setFounderPath:A,setFounderFocus:S,goToFounderStage:N,goToAgentDiscovery:V,sendChatMessage:_,goToAgentSelection:H,toggleAgent:R,goToIntegrationSetup:L,setIntegrationValue:O,skipIntegration:I,goToReady:X,completeOnboarding:K}}function zF({onGetStarted:e}){return s.jsx("div",{"data-testid":"onboarding-splash",className:"min-h-screen bg-black 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-white",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-neutral-400",children:"No account needed. No cloud required."})]}),s.jsx("button",{"data-testid":"onboarding-get-started",onClick:e,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors",children:"Get Started"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Free forever for local use"})]})})}function qF({licenseKey:e,onChangeLicenseKey:a,onValidate:l,onSkip:i,onBack:c,validating:u,error:d}){const h=f=>{f.preventDefault(),e.trim()&&l()};return s.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:s.jsxs("div",{className:"w-full max-w-md space-y-8",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[s.jsx("span",{children:"Step 2 of 9"}),s.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:s.jsx("div",{className:"h-full w-[22%] bg-white/30 rounded-full"})})]}),s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Connect to the cloud"}),s.jsx("p",{className:"text-neutral-400 text-sm",children:"Enter your license key to unlock cloud features, or skip to use ohwow locally for free."})]}),s.jsxs("form",{onSubmit:h,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"License key"}),s.jsx("input",{type:"text",value:e,onChange:f=>a(f.target.value),placeholder:"ohwow_lic_...",disabled:u,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 disabled:opacity-50",autoFocus:!0})]}),d&&s.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-lg p-3",children:s.jsx("p",{className:"text-sm text-red-400",children:d})}),s.jsx("button",{type:"submit",disabled:u||!e.trim(),className:"w-full bg-white text-black rounded-lg py-3 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 flex items-center justify-center gap-2",children:u?s.jsxs(s.Fragment,{children:[s.jsx(mt,{size:14,className:"animate-spin"}),"Validating..."]}):"Validate key"})]}),s.jsx("div",{className:"text-center",children:s.jsx("button",{onClick:i,className:"text-sm text-neutral-400 hover:text-white transition-colors",children:"Skip and continue locally (free forever)"})}),s.jsx("div",{className:"text-center",children:s.jsx("button",{onClick:c,className:"text-xs text-neutral-500 hover:text-neutral-300 transition-colors",children:"← Back"})})]})})}function $F({status:e,selectedModel:a,loading:l,downloading:i,downloadPercent:c,downloadMessage:u,setupMessage:d,error:h,onSelectModel:f,onDownload:p,onSkip:g}){const[x,b]=n.useState(!1);if(l||!e)return s.jsx("div",{"data-testid":"onboarding-model-loading",className:"min-h-screen bg-black 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-white/10 border-t-white rounded-full animate-spin mx-auto"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"Detecting your hardware..."})]})});const w=a?Math.ceil(a.sizeGB*1024/50/60*8):null;return s.jsx("div",{"data-testid":"onboarding-model",className:"min-h-screen bg-black 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-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-neutral-400",children:e.deviceSummary}),a&&!i&&s.jsxs("div",{"data-testid":"onboarding-model-hero",className:"bg-white/5 border border-white/10 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:a.label}),a.recommended&&s.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-white/10 text-white px-2 py-0.5 rounded-full border border-white/10",children:"Best for your machine"})]}),s.jsx("p",{className:"text-sm text-neutral-400 mt-1",children:a.description})]})}),s.jsxs("div",{className:"flex items-center gap-4 text-xs text-neutral-400",children:[s.jsxs("span",{children:[a.sizeGB," GB download"]}),w&&s.jsxs("span",{children:["~",w," min"]}),s.jsx("span",{children:a.features.join(", ")})]})]}),i&&s.jsxs("div",{"data-testid":"onboarding-download-progress",className:"bg-white/5 border border-white/[0.08] rounded-lg p-5 space-y-4",children:[d&&s.jsx("p",{className:"text-sm text-neutral-400",children:d}),!d&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsx("span",{className:"text-white",children:a==null?void 0:a.label}),s.jsxs("span",{className:"text-neutral-400",children:[c,"%"]})]}),s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-2 overflow-hidden",children:s.jsx("div",{className:"bg-white h-full rounded-full transition-all duration-300",style:{width:`${c}%`}})}),s.jsx("p",{className:"text-xs text-neutral-400 truncate",children:u})]})]}),h&&s.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:h}),!i&&s.jsxs("div",{className:"space-y-3",children:[s.jsx("button",{"data-testid":"onboarding-download-btn",onClick:p,disabled:!a,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Download"}),e.alternatives.length>0&&s.jsxs("div",{children:[s.jsx("button",{"data-testid":"onboarding-alternatives-toggle",onClick:()=>b(!x),className:"text-sm text-neutral-400 hover:text-white transition-colors",children:x?"Hide other options":"See other options"}),x&&s.jsx("div",{className:"mt-3 space-y-2",children:e.alternatives.map(M=>s.jsxs("button",{onClick:()=>f(M),className:`w-full text-left bg-white/5 border rounded-lg px-4 py-3 text-sm transition-colors ${(a==null?void 0:a.tag)===M.tag?"border-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/[0.08] hover:text-white"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"font-medium",children:M.label}),s.jsxs("span",{className:"text-xs",children:[M.sizeGB," GB"]})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:M.description})]},M.tag))})]}),s.jsx("div",{className:"text-center",children:s.jsx("button",{"data-testid":"onboarding-skip-btn",onClick:g,className:"text-xs text-neutral-600 hover:text-neutral-400 transition-colors",children:"Skip for now"})})]})]})})}const BF=[{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 IF({businessName:e,businessType:a,businessDescription:l,onChangeName:i,onChangeType:c,onChangeDescription:u,onContinue:d,onBack:h}){const f=e.trim().length>0&&a;return s.jsx("div",{"data-testid":"onboarding-business-info",className:"min-h-screen bg-black 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-neutral-400 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-neutral-400",children:"This helps us recommend the right AI agents for you."})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business name"}),s.jsx("input",{"data-testid":"onboarding-business-name",type:"text",value:e,onChange:p=>i(p.target.value),placeholder:"e.g. Acme Inc",className:"w-full bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business type"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:BF.map(p=>s.jsxs("button",{"data-testid":`onboarding-btype-${p.id}`,onClick:()=>c(p.id),className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${a===p.id?"border-white/20 bg-white/10 text-white":"border-white/[0.08] bg-white/5 text-neutral-400 hover:border-white/20 hover:text-white"}`,children:[s.jsx("span",{className:"font-medium block",children:p.label}),s.jsx("span",{className:"text-xs text-neutral-400",children:p.tagline})]},p.id))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What does your business do? (optional)"}),s.jsx("textarea",{"data-testid":"onboarding-business-desc",value:l,onChange:p=>u(p.target.value),placeholder:"e.g. We help small businesses automate their marketing",rows:2,className:"w-full bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20 resize-none"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:h,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-business-continue",onClick:d,disabled:!f,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}const UF=[{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 PF({founderPath:e,founderFocus:a,onChangePath:l,onChangeFocus:i,onContinue:c,onBack:u}){const d=e.length>0;return s.jsx("div",{"data-testid":"onboarding-founder-stage",className:"min-h-screen bg-black 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-neutral-400 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-neutral-400",children:"This helps us prioritize which agents to recommend."})]}),s.jsx("div",{className:"space-y-2",children:UF.map(h=>s.jsxs("button",{"data-testid":`onboarding-path-${h.id}`,onClick:()=>l(h.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors flex items-center gap-3 ${e===h.id?"border-white/20 bg-white/10 text-white":"border-white/[0.08] bg-white/5 text-neutral-400 hover:border-white/20 hover:text-white"}`,children:[s.jsx("span",{className:"text-lg",children:h.icon}),s.jsxs("div",{children:[s.jsx("span",{className:"font-medium block text-sm",children:h.label}),s.jsx("span",{className:"text-xs text-neutral-400",children:h.description})]})]},h.id))}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What are you focused on right now? (optional)"}),s.jsx("input",{"data-testid":"onboarding-founder-focus",type:"text",value:a,onChange:h=>i(h.target.value),placeholder:"e.g. Getting my first 10 customers",className:"w-full bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:u,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-founder-continue",onClick:c,disabled:!d,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Continue"})]})]})})}function GF({modelAvailable:e,chatMessages:a,presets:l,discoveredGoal:i,onSendMessage:c,onContinue:u,onBack:d,streaming:h}){const[f,p]=n.useState(""),g=n.useRef(null);n.useEffect(()=>{var b;(b=g.current)==null||b.scrollTo({top:g.current.scrollHeight,behavior:"smooth"})},[a]);const x=()=>{!f.trim()||h||(c(f.trim()),p(""))};return e?s.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black 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-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),s.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's define your goal"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"Tell me what you want to achieve and I'll build your AI team around it"})]}),i&&s.jsx("div",{className:"px-4 py-2 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:s.jsxs("span",{className:"text-sm text-emerald-400",children:["Goal: ",i.title]})}),s.jsxs("div",{ref:g,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 space-y-3 max-h-64 overflow-y-auto",children:[a.map((b,w)=>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-white/10 text-white":"bg-neutral-950 border border-white/[0.08] text-white"}`,children:s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:b.content})})},w)),h&&s.jsx("div",{className:"text-neutral-400 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:f,onChange:b=>p(b.target.value),onKeyDown:b=>{b.key==="Enter"&&x()},placeholder:"Tell the AI about your priorities...",disabled:h,className:"flex-1 bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20 disabled:opacity-50"}),s.jsx("button",{onClick:x,disabled:h||!f.trim(),className:"bg-white text-black rounded-lg px-4 text-sm hover:bg-neutral-200 transition-colors disabled:opacity-40",children:"Send"})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors",children:a.length>=4?"Set up my workspace":"Skip to selection"})]})]})}):s.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black 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-neutral-400 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-neutral-400",children:"Based on your business type. You can adjust on the next screen."})]}),s.jsx("div",{className:"space-y-2",children:l.map(b=>s.jsxs("div",{className:`px-4 py-3 rounded-lg border ${b.recommended?"border-white/[0.12] bg-white/5":"border-white/[0.08] bg-white/5"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[b.recommended&&s.jsx("span",{className:"text-white text-xs",children:"★"}),s.jsx("span",{className:"font-medium text-sm text-white",children:b.name}),s.jsx("span",{className:"text-xs text-neutral-400",children:b.role})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:b.description})]},b.id))}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:d,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsx("button",{"data-testid":"onboarding-discovery-continue",onClick:u,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors",children:"Continue to selection"})]})]})})}const YF={web_research:"Web Research",deep_research:"Deep Research",ocr:"OCR",local_crm:"CRM"};function KF({presets:e,selectedIds:a,onToggle:l,onContinue:i,onBack:c}){return s.jsx("div",{"data-testid":"onboarding-agent-selection",className:"min-h-screen bg-black 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-neutral-400 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-neutral-400",children:a.size>0?`${a.size} agent${a.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:e.map(u=>{const d=a.has(u.id);return s.jsx("button",{"data-testid":`onboarding-agent-${u.id}`,onClick:()=>l(u.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors ${d?"border-white/20 bg-white/10":"border-white/[0.08] bg-white/5 hover:border-white/20"}`,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 ${d?"bg-white border-white":"border-neutral-400/30"}`,children:d&&s.jsx("svg",{className:"w-2.5 h-2.5 text-black",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:u.name}),u.recommended&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/10 text-white border border-white/10",children:"Recommended"})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:u.role}),s.jsx("p",{className:"text-xs text-neutral-400/70 mt-1",children:u.description}),u.tools.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:u.tools.map(h=>s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 border border-white/[0.08] text-neutral-400",children:YF[h]||h},h))})]})]})},u.id)})}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:c,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),s.jsxs("button",{"data-testid":"onboarding-selection-continue",onClick:i,disabled:a.size===0,className:"flex-1 bg-white text-black rounded-lg px-6 py-2.5 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:["Create ",a.size," agent",a.size===1?"":"s"]})]})]})})}function XF({integrations:e,integrationValues:a,onSetValue:l,onSkipIntegration:i,skippedIds:c,onContinue:u,onBack:d}){if(e.length===0)return s.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:s.jsxs("div",{className:"w-full max-w-md space-y-6 text-center",children:[s.jsx("div",{className:"w-14 h-14 rounded-xl bg-success/10 flex items-center justify-center mx-auto",children:s.jsx($r,{size:28,className:"text-success"})}),s.jsx("h2",{className:"text-lg font-bold",children:"No integrations needed"}),s.jsx("p",{className:"text-sm text-neutral-400",children:"Your selected agents work out of the box."}),s.jsx("button",{onClick:u,className:"w-full bg-white text-black rounded-lg py-3 text-sm font-medium hover:bg-neutral-200 transition-colors",children:"Continue"})]})});const h=e.every(f=>c.has(f.id)||f.envVarsRequired.every(p=>{var g;return!!((g=a[f.id])!=null&&g[p.key])}));return s.jsx("div",{className:"min-h-screen bg-black text-white flex flex-col items-center justify-center p-6",children:s.jsxs("div",{className:"w-full max-w-lg space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-500",children:[s.jsx("span",{children:"Step 8 of 9"}),s.jsx("div",{className:"flex-1 h-0.5 bg-white/10 rounded-full",children:s.jsx("div",{className:"h-full w-[89%] bg-white/30 rounded-full"})})]}),s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Connect integrations"}),s.jsx("p",{className:"text-neutral-400 text-sm",children:"Some agents work best with connected services. You can skip any for now."})]}),s.jsx("div",{className:"space-y-4",children:e.map(f=>{const p=c.has(f.id),g=a[f.id]||{},x=f.envVarsRequired.every(b=>!!g[b.key]);return s.jsxs("div",{className:`border rounded-lg p-4 transition-colors ${x?"border-success/30 bg-success/[0.03]":p?"border-white/[0.06] bg-white/[0.01] opacity-50":"border-white/[0.08] bg-white/[0.02]"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ir,{size:16,className:x?"text-success":"text-neutral-400"}),s.jsx("span",{className:"text-sm font-medium",children:f.name}),x&&s.jsx("span",{className:"text-[10px] bg-success/15 text-success px-1.5 py-0.5 rounded",children:"connected"}),p&&s.jsx("span",{className:"text-[10px] bg-white/[0.06] text-neutral-500 px-1.5 py-0.5 rounded",children:"skipped"})]}),!x&&!p&&s.jsxs("button",{onClick:()=>i(f.id),className:"text-xs text-neutral-500 hover:text-white transition-colors flex items-center gap-1",children:[s.jsx(dF,{size:12})," Skip"]})]}),s.jsx("p",{className:"text-xs text-neutral-500 mb-3",children:f.description}),!p&&s.jsx("div",{className:"space-y-2",children:f.envVarsRequired.map(b=>s.jsxs("div",{children:[s.jsx("label",{className:"text-[10px] text-neutral-400 block mb-1",children:b.label}),s.jsx("input",{type:"password",value:g[b.key]||"",onChange:w=>l(f.id,b.key,w.target.value),placeholder:b.key,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-600 focus:outline-none focus:border-white/20"})]},b.key))})]},f.id)})}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("button",{onClick:d,className:"flex-1 border border-white/10 text-neutral-400 rounded-lg py-3 text-sm hover:bg-white/5 transition-colors",children:"Back"}),s.jsx("button",{onClick:u,disabled:!h,className:"flex-1 bg-white text-black rounded-lg py-3 text-sm font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50",children:"Continue"})]})]})})}function QF({selectedModel:e,loading:a,error:l,onLaunch:i,businessName:c,agentCount:u}){return s.jsx("div",{"data-testid":"onboarding-ready",className:"min-h-screen bg-black 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-neutral-400 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-success/10 border border-success/20 flex items-center justify-center mx-auto",children:s.jsx("svg",{className:"w-6 h-6 text-success",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-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-left space-y-2",children:[c&&s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-neutral-400",children:"Business"}),s.jsx("span",{className:"text-white font-medium",children:c})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-neutral-400",children:"Model"}),s.jsx("span",{className:"text-white",children:e?e.label:"None (add later in Settings)"})]}),u!==void 0&&u>0&&s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-neutral-400",children:"Agents"}),s.jsxs("span",{className:"text-white",children:[u," agent",u===1?"":"s"," ready to go"]})]})]}),l&&s.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:l}),s.jsx("button",{"data-testid":"onboarding-launch-btn",onClick:i,disabled:a,className:"w-full bg-white text-black rounded-lg px-6 py-3.5 text-base font-medium hover:bg-neutral-200 transition-colors disabled:opacity-50",children:a?"Saving...":"Start Chatting"})]})})}function JF({sessionToken:e}){var i;const a=FF();n.useEffect(()=>{a.screen==="model"&&!a.status&&a.fetchStatus()},[a.screen]);const l=async()=>{await a.completeOnboarding()||(e&&Eh(e),window.location.href="/ui/")};switch(a.screen){case"splash":return s.jsx(zF,{onGetStarted:a.goToTierChoice});case"tier_choice":return s.jsx(qF,{licenseKey:a.licenseKey,onChangeLicenseKey:a.setLicenseKey,onValidate:a.validateLicenseKey,onSkip:a.skipTierChoice,onBack:()=>{},validating:a.licenseValidating,error:a.licenseError});case"model":return s.jsx($F,{status:a.status,selectedModel:a.selectedModel,loading:a.loading,downloading:a.downloading,downloadPercent:a.downloadPercent,downloadMessage:a.downloadMessage,setupMessage:a.setupMessage,error:a.error,estimatedMinutes:((i=a.status)==null?void 0:i.estimatedMinutes)??null,onSelectModel:a.selectModel,onDownload:a.startDownload,onSkip:a.skipDownload});case"business_info":return s.jsx(IF,{businessName:a.businessName,businessType:a.businessType,businessDescription:a.businessDescription,onChangeName:a.setBusinessName,onChangeType:a.setBusinessType,onChangeDescription:a.setBusinessDescription,onContinue:a.goToFounderStage,onBack:a.goToModel});case"founder_stage":return s.jsx(PF,{founderPath:a.founderPath,founderFocus:a.founderFocus,onChangePath:a.setFounderPath,onChangeFocus:a.setFounderFocus,onContinue:a.goToAgentDiscovery,onBack:a.goToBusinessInfo});case"agent_discovery":return s.jsx(GF,{modelAvailable:a.modelAvailable,businessType:a.businessType,founderPath:a.founderPath,founderFocus:a.founderFocus,chatMessages:a.chatMessages,presets:a.presets,discoveredGoal:a.discoveredGoal,onSendMessage:a.sendChatMessage,onContinue:a.goToAgentSelection,onBack:a.goToFounderStage,streaming:a.chatStreaming});case"agent_selection":return s.jsx(KF,{presets:a.presets,selectedIds:a.selectedAgentIds,onToggle:a.toggleAgent,onContinue:a.goToIntegrationSetup,onBack:a.goToAgentDiscovery});case"integration_setup":return s.jsx(XF,{integrations:a.integrations,integrationValues:a.integrationValues,onSetValue:a.setIntegrationValue,onSkipIntegration:a.skipIntegration,skippedIds:a.skippedIntegrationIds,onContinue:a.goToReady,onBack:a.goToAgentSelection});case"ready":return s.jsx(QF,{selectedModel:a.selectedModel,loading:a.loading,error:a.error,onLaunch:l,businessName:a.businessName,agentCount:a.selectedAgentIds.size})}}function _t({label:e,value:a,subtitle:l,color:i="text-white"}){return s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[s.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:e}),s.jsx("p",{className:`text-2xl font-bold mt-1 ${i}`,children:a}),l&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:l})]})}const WF={idle:"bg-white/5 text-neutral-400",working:"bg-blue-500/15 text-blue-400",completed:"bg-success/15 text-success",approved:"bg-success/15 text-success",in_progress:"bg-blue-500/15 text-blue-400",queued:"bg-warning/15 text-warning",needs_approval:"bg-warning/15 text-warning",failed:"bg-critical/15 text-critical",rejected:"bg-critical/15 text-critical",pending_review:"bg-warning/15 text-warning",delivered:"bg-success/15 text-success",delivery_failed:"bg-critical/15 text-critical",active:"bg-success/15 text-success",paused:"bg-warning/15 text-warning",disabled:"bg-white/5 text-neutral-400",draft:"bg-warning/15 text-warning",archived:"bg-white/5 text-neutral-400",executing:"bg-blue-500/15 text-blue-400",pending:"bg-warning/15 text-warning",error:"bg-critical/15 text-critical",suspended:"bg-warning/15 text-warning",disconnected:"bg-white/5 text-neutral-400",skipped:"bg-white/5 text-neutral-400",read_only:"bg-white/5 text-neutral-400",processed:"bg-success/15 text-success"};function it({status:e}){const a=WF[e]||"bg-white/5 text-neutral-400",l=e.replace(/_/g," ");return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium capitalize ${a}`,children:l})}function gl({className:e=""}){return s.jsx("div",{className:`animate-pulse bg-white/5 rounded ${e}`})}function i1(){return s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 space-y-2",children:[s.jsx(gl,{className:"h-3 w-20"}),s.jsx(gl,{className:"h-7 w-16"})]})}function We({count:e=5}){return s.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((a,l)=>s.jsx(gl,{className:"h-12 w-full"},l))})}function ze({title:e,subtitle:a,action:l}){return s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:e}),a&&s.jsx("p",{className:"text-sm text-neutral-400 mt-0.5",children:a})]}),l]})}function ez(e){const a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l=[],i=new Date;for(let c=6;c>=0;c--){const u=new Date(i);u.setDate(u.getDate()-c),l.push({label:a[u.getDay()],completed:0,failed:0})}for(const c of e){const u=new Date(c.created_at),d=i.getTime()-u.getTime(),h=Math.floor(d/(1e3*60*60*24));if(h<0||h>6)continue;const f=6-h;c.type==="task_completed"&&l[f].completed++,c.type==="task_failed"&&l[f].failed++}return l}function tz({activity:e}){const a=e?ez(e):[],l=Math.max(1,...a.map(h=>h.completed+h.failed)),i=28,c=12,u=80,d=a.length*(i+c)-c;return e?s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[s.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),s.jsx("div",{className:"flex justify-center",children:s.jsx("svg",{width:d,height:u+20,className:"overflow-visible",children:a.map((h,f)=>{const p=f*(i+c),g=(h.completed+h.failed)/l*u,x=h.completed/l*u,b=h.failed/l*u;return s.jsxs("g",{children:[s.jsx("rect",{x:p,y:0,width:i,height:u,rx:4,className:"fill-white/[0.03]"}),h.completed>0&&s.jsx("rect",{x:p,y:u-g,width:i,height:x,rx:4,className:"fill-success/60"}),h.failed>0&&s.jsx("rect",{x:p,y:u-b,width:i,height:b,rx:4,className:"fill-critical/60"}),s.jsx("text",{x:p+i/2,y:u+14,textAnchor:"middle",className:"fill-neutral-500 text-[10px]",children:h.label}),h.completed+h.failed>0&&s.jsx("text",{x:p+i/2,y:u-g-4,textAnchor:"middle",className:"fill-neutral-400 text-[10px]",children:h.completed+h.failed})]},f)})})}),s.jsxs("div",{className:"flex items-center gap-4 mt-3 justify-center",children:[s.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[s.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-success/60"})," Completed"]}),s.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] text-neutral-500",children:[s.jsx("span",{className:"inline-block w-2 h-2 rounded-sm bg-critical/60"})," Failed"]})]})]}):s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-8",children:[s.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider mb-3",children:"Task Activity (7 days)"}),s.jsx("div",{className:"h-[100px] flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-neutral-600",children:"Loading..."})})]})}function az({agents:e,tasks:a}){const l=e?e.filter(f=>f.status!=="paused").length:0,i=new Date().toISOString().slice(0,10),c=a?a.filter(f=>f.status==="completed"&&f.created_at.startsWith(i)).length:0,u=a?a.filter(f=>f.status==="completed").length:0,d=a?a.filter(f=>f.status==="failed").length:0,h=u+d>0?Math.round(u/(u+d)*100):100;return s.jsxs("div",{className:"flex gap-3 mb-8",children:[s.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[s.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Active Agents"}),s.jsx("p",{className:"text-lg font-semibold text-success mt-0.5",children:l})]}),s.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[s.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Completed Today"}),s.jsx("p",{className:"text-lg font-semibold text-white mt-0.5",children:c})]}),s.jsxs("div",{className:"flex-1 border border-white/[0.06] rounded-lg px-4 py-3 bg-white/[0.02]",children:[s.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider",children:"Success Rate"}),s.jsxs("p",{className:`text-lg font-semibold mt-0.5 ${h>=80?"text-success":h>=50?"text-warning":"text-critical"}`,children:[h,"%"]})]})]})}function nz(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}const o7={animate:{transition:{staggerChildren:.05}}},c7={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function rz(){const e=Ia(["task:started","task:completed","task:failed"]),{data:a,loading:l}=we("/api/system/stats",[e]),{data:i}=we("/api/agents",[e]),{data:c}=we("/api/tasks?limit=5",[e]),{data:u}=we("/api/activity",[e]);return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(ze,{title:"Overview",subtitle:"Runtime at a glance"}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-8",children:l?s.jsxs(s.Fragment,{children:[s.jsx(i1,{}),s.jsx(i1,{}),s.jsx(i1,{}),s.jsx(i1,{})]}):a?s.jsxs(s.Fragment,{children:[s.jsx(_t,{label:"Agents",value:a.totalAgents}),s.jsx(_t,{label:"Tasks",value:a.totalTasks,subtitle:`${a.activeTasks} active`}),s.jsx(_t,{label:"Approvals",value:a.pendingApprovals,color:a.pendingApprovals>0?"text-warning":"text-neutral-400"}),s.jsx(_t,{label:"Tokens",value:nz(a.totalTokens),subtitle:`$${(a.totalCostCents/100).toFixed(2)}`})]}):null}),s.jsx(tz,{activity:u}),s.jsx(az,{agents:i,tasks:c}),s.jsxs("div",{className:"mb-8",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Agents"}),s.jsx(Et,{to:"/agents",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),i!=null&&i.length?s.jsx(Re.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:o7,initial:"initial",animate:"animate",children:i.slice(0,8).map(d=>{var h;return s.jsx(Re.div,{variants:c7,children:s.jsxs(Et,{to:`/agents/${d.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold mb-3",children:(h=d.name[0])==null?void 0:h.toUpperCase()}),s.jsx("p",{className:"text-sm font-medium truncate",children:d.name}),s.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:d.role}),s.jsx("div",{className:"mt-2",children:s.jsx(it,{status:d.status})})]})},d.id)})}):s.jsx(We,{count:2})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Recent Tasks"}),s.jsx(Et,{to:"/tasks",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),c!=null&&c.length?s.jsx(Re.div,{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",variants:o7,initial:"initial",animate:"animate",children:c.map(d=>s.jsx(Re.div,{variants:c7,children:s.jsxs(Et,{to:`/tasks/${d.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:d.title}),s.jsx("p",{className:"text-xs text-neutral-500",children:new Date(d.created_at).toLocaleString()})]}),s.jsx(it,{status:d.status})]})},d.id))}):s.jsx(We,{count:3})]})]})}function Ct({icon:e,title:a,description:l,action:i}){return s.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center border border-white/[0.08] bg-white/[0.02] rounded-lg",children:[e&&s.jsx("div",{className:"text-neutral-500 mb-3",children:e}),s.jsx("p",{className:"text-sm font-medium text-neutral-200",children:a}),l&&s.jsx("p",{className:"text-xs text-neutral-400 mt-1 max-w-xs",children:l}),i&&s.jsx("div",{className:"mt-4",children:i})]})}function fa({open:e,onClose:a,title:l,children:i,maxWidth:c="max-w-md"}){const u=n.useCallback(d=>{d.key==="Escape"&&a()},[a]);return n.useEffect(()=>{if(e)return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,u]),s.jsx(Ba,{children:e&&s.jsx(Re.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",onClick:a,children:s.jsxs(Re.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.15,ease:"easeOut"},className:`bg-neutral-950 border border-white/10 rounded-lg w-full ${c} max-h-[85vh] overflow-y-auto`,onClick:d=>d.stopPropagation(),children:[l&&s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-white/10",children:[s.jsx("h3",{className:"text-sm font-semibold",children:l}),s.jsx("button",{onClick:a,className:"text-neutral-400 hover:text-white text-xs transition-colors",children:"Close"})]}),s.jsx("div",{className:"p-6",children:i})]})})})}function sz(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return{}}return e||{}}const lz={animate:{transition:{staggerChildren:.04}}},iz={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function oz(){const e=Ia(["task:started","task:completed"]),{data:a,loading:l,refetch:i}=we("/api/agents",[e]),[c,u]=n.useState(!1);return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(ze,{title:"Agents",subtitle:"Your AI team",action:l?atLimit?s.jsx("span",{className:"text-xs text-neutral-400",children:"Free tier: 1 agent max"}):null:s.jsxs("button",{onClick:()=>u(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14,weight:"bold"}),"Create agent"]})}),l?s.jsx(We,{count:4}):a!=null&&a.length?s.jsx(Re.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:lz,initial:"initial",animate:"animate",children:a.map(d=>{var f;const h=sz(d.stats);return s.jsx(Re.div,{variants:iz,children:s.jsxs(Et,{to:`/agents/${d.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors h-full",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsx("div",{className:"w-9 h-9 rounded-full bg-white/10 flex items-center justify-center text-sm font-bold",children:(f=d.name[0])==null?void 0:f.toUpperCase()}),s.jsx(it,{status:d.status})]}),s.jsx("p",{className:"text-sm font-medium truncate",children:d.name}),s.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:d.role}),s.jsxs("p",{className:"text-xs text-neutral-600 mt-2",children:[h.total_tasks||0," ",h.total_tasks===1?"task":"tasks"]})]})},d.id)})}):s.jsx(Ct,{icon:s.jsx(tn,{size:32}),title:"No agents yet",description:"Create your first agent to get started.",action:s.jsx("button",{onClick:()=>u(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Create agent"})}),s.jsx(cz,{open:c,onClose:()=>u(!1),onCreated:()=>{u(!1),i()}})]})}function cz({open:e,onClose:a,onCreated:l}){const[i,c]=n.useState(""),[u,d]=n.useState(""),[h,f]=n.useState(""),[p,g]=n.useState(""),[x,b]=n.useState(!1),[w,M]=n.useState(""),E=async j=>{if(j.preventDefault(),!i.trim()||!u.trim()||!h.trim()){M("Name, role, and system prompt are required.");return}b(!0),M("");try{await me("/api/agents",{method:"POST",body:JSON.stringify({name:i.trim(),role:u.trim(),system_prompt:h.trim(),description:p.trim()||null})}),l()}catch(A){M(A instanceof Error?A.message:"Something went wrong. Try again?")}finally{b(!1)}};return s.jsx(fa,{open:e,onClose:a,title:"Create agent",children:s.jsxs("form",{onSubmit:E,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Name"}),s.jsx("input",{type:"text",value:i,onChange:j=>c(j.target.value),placeholder:"e.g. Scout",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Role"}),s.jsx("input",{type:"text",value:u,onChange:j=>d(j.target.value),placeholder:"e.g. Sales Development",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"System Prompt"}),s.jsx("textarea",{value:h,onChange:j=>f(j.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-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20 resize-none"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Description (optional)"}),s.jsx("input",{type:"text",value:p,onChange:j=>g(j.target.value),placeholder:"Short description for the agent list",className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-md focus:outline-none focus:border-white/20"})]}),w&&s.jsx("p",{className:"text-xs text-critical",children:w}),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-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:x,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:x?"Creating...":"Create"})]})]})})}function xl({checked:e,onChange:a,disabled:l=!1,size:i="md"}){const c=i==="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":e,onClick:()=>!l&&a(!e),disabled:l,className:`relative ${c.track} rounded-full transition-colors disabled:opacity-50 ${e?"bg-success/30":"bg-white/10"}`,children:s.jsx("span",{className:`absolute top-0.5 left-0.5 ${c.thumb} rounded-full transition-transform ${e?`${c.translate} bg-success`:"translate-x-0 bg-neutral-400"}`})})}function Hl({tabs:e,activeTab:a,onTabChange:l,layoutId:i="tab-underline"}){return s.jsx("div",{className:"flex gap-1 border-b border-white/[0.08]",children:e.map(c=>{const u=c.id===a;return s.jsxs("button",{onClick:()=>l(c.id),className:`relative px-4 py-2.5 text-sm font-medium transition-colors ${u?"text-white":"text-neutral-400 hover:text-neutral-200"}`,children:[s.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[c.label,c.count!=null&&s.jsx("span",{className:"text-[10px] bg-white/10 px-1.5 py-0.5 rounded-full min-w-[18px] text-center",children:c.count})]}),u&&s.jsx(Re.div,{layoutId:i,className:"absolute bottom-0 left-0 right-0 h-0.5 bg-white",transition:{type:"spring",stiffness:350,damping:30}})]},c.id)})})}const uz=[{id:"development",label:"Development"},{id:"files",label:"Files"},{id:"databases",label:"Databases"},{id:"apis",label:"APIs"},{id:"communication",label:"Communication"}],dz=[{id:"filesystem",name:"Filesystem",description:"Read, write, and search files on your machine",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-filesystem","/tmp"],envVarsRequired:[],category:"files"},{id:"github",name:"GitHub",description:"Manage repos, issues, and pull requests",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-github"],envVarsRequired:[{key:"GITHUB_PERSONAL_ACCESS_TOKEN",label:"GitHub token"}],category:"development"},{id:"slack",name:"Slack",description:"Read and send Slack messages",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-slack"],envVarsRequired:[{key:"SLACK_BOT_TOKEN",label:"Slack bot token"},{key:"SLACK_TEAM_ID",label:"Slack team ID"}],category:"communication"},{id:"postgres",name:"PostgreSQL",description:"Query and explore PostgreSQL databases",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-postgres"],envVarsRequired:[{key:"POSTGRES_CONNECTION_STRING",label:"Connection string"}],category:"databases"},{id:"sqlite",name:"SQLite",description:"Query and explore SQLite databases",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-sqlite"],envVarsRequired:[{key:"SQLITE_DB_PATH",label:"Database file path"}],category:"databases"},{id:"brave-search",name:"Brave Search",description:"Search the web with Brave",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-brave-search"],envVarsRequired:[{key:"BRAVE_API_KEY",label:"Brave API key"}],category:"apis"},{id:"fetch",name:"Fetch",description:"Fetch and read web pages and APIs",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-fetch"],envVarsRequired:[],category:"apis"},{id:"memory",name:"Memory",description:"Persistent knowledge graph for storing and retrieving information",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-memory"],envVarsRequired:[],category:"development"},{id:"google-maps",name:"Google Maps",description:"Search places, get directions, and geocode addresses",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-google-maps"],envVarsRequired:[{key:"GOOGLE_MAPS_API_KEY",label:"Google Maps API key"}],category:"apis"},{id:"sequential-thinking",name:"Sequential Thinking",description:"Think through problems step by step",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-sequential-thinking"],envVarsRequired:[],category:"development"},{id:"everything",name:"Everything (Demo)",description:"Demo server with sample tools for testing",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-everything"],envVarsRequired:[],category:"development"},{id:"puppeteer",name:"Puppeteer",description:"Browser automation and web scraping",transport:"stdio",command:"npx",args:["-y","@modelcontextprotocol/server-puppeteer"],envVarsRequired:[],category:"development"}],u7={name:"",transport:"stdio",command:"",args:"",env:"",url:""};function NM({servers:e,onChange:a,disabled:l}){const[i,c]=n.useState(!1),[u,d]=n.useState(u7),[h,f]=n.useState(""),[p,g]=n.useState(null),[x,b]=n.useState({}),[w,M]=n.useState(null),[E,j]=n.useState("popular"),A=()=>{d(u7),f(""),j("popular"),c(!0)},S=()=>{if(!u.name.trim()){f("Name is required");return}if(u.transport==="stdio"&&!u.command.trim()){f("Command is required");return}if(u.transport==="http"&&!u.url.trim()){f("URL is required");return}if(e.some(H=>H.name===u.name.trim())){f("A server with that name already exists");return}const _=u.transport==="stdio"?{name:u.name.trim(),transport:"stdio",command:u.command.trim(),args:u.args.trim()?u.args.trim().split(/\s+/):void 0,env:u.env.trim()?hz(u.env.trim()):void 0}:{name:u.name.trim(),transport:"http",url:u.url.trim()};a([...e,_]),c(!1)},N=_=>{a(e.filter(H=>H.name!==_))},C=async _=>{if(!p){g(_.name);try{const R=await(await fetch("/api/mcp/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)})).json();R.success?(de.success(`Connected. ${R.tools.length===1?"1 tool":`${R.tools.length} tools`} found in ${R.latencyMs}ms`),b(L=>({...L,[_.name]:R.tools})),M(_.name)):de.error(R.error||"Couldn't connect to this server. Try again?")}catch{de.error("Couldn't reach the daemon to test the connection")}finally{g(null)}}},V=_=>{M(H=>H===_?null:_)};return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mt-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider",children:"MCP Servers"}),s.jsx("button",{onClick:A,disabled:l,className:"text-xs text-white hover:text-white/80 disabled:opacity-50 transition-colors",children:"+ Add"})]}),e.length===0?s.jsx("p",{className:"text-xs text-neutral-400 py-2",children:"No MCP servers yet. Add one to extend what this agent can do."}):s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(_=>{var O;const H=x[_.name],R=w===_.name,L=p===_.name;return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[H&&H.length>0&&s.jsx("button",{onClick:()=>V(_.name),className:"text-neutral-400 hover:text-white transition-colors shrink-0",children:R?s.jsx(rn,{size:12}):s.jsx(Sl,{size:12})}),s.jsx("span",{className:"text-sm font-medium",children:_.name}),s.jsx("span",{className:"text-xs text-neutral-400",children:_.transport==="stdio"?`stdio · ${_.command}${(O=_.args)!=null&&O.length?" "+_.args.join(" "):""}`:`http · ${_.url}`}),H&&s.jsx("span",{className:"text-xs text-neutral-500",children:H.length===1?"1 tool":`${H.length} tools`})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx("button",{onClick:()=>C(_),disabled:l||L,className:`text-neutral-400 hover:text-uplink transition-colors disabled:opacity-50 ${L?"animate-pulse":""}`,title:"Test connection",children:s.jsx(ha,{size:14,weight:L?"fill":"bold"})}),s.jsx("button",{onClick:()=>N(_.name),disabled:l,className:"text-neutral-400 hover:text-error transition-colors disabled:opacity-50",children:s.jsx(Gt,{size:14})})]})]}),R&&H&&H.length>0&&s.jsx("div",{className:"px-4 pb-3 pl-10",children:s.jsx("div",{className:"bg-white/[0.03] rounded-md border border-white/[0.06] divide-y divide-white/[0.06]",children:H.map(I=>s.jsxs("div",{className:"px-3 py-2",children:[s.jsx("span",{className:"text-xs font-mono text-white/80",children:I.name}),I.description&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:I.description})]},I.name))})})]},_.name)})})]}),s.jsx(fa,{open:i,onClose:()=>c(!1),title:"Add MCP Server",maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex gap-1 bg-white/[0.04] rounded-md p-0.5",children:[s.jsx("button",{onClick:()=>j("popular"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${E==="popular"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Popular"}),s.jsx("button",{onClick:()=>j("custom"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${E==="custom"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),E==="popular"&&s.jsx("div",{className:"space-y-4",children:uz.map(_=>{const H=dz.filter(R=>R.category===_.id);return H.length===0?null:s.jsxs("div",{children:[s.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:_.label}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:H.map(R=>{const L=e.some(O=>O.name===R.name);return s.jsxs("button",{onClick:()=>{L||(d({name:R.name,transport:R.transport,command:R.command,args:R.args.join(" "),env:R.envVarsRequired.map(O=>`${O.key}=`).join(`
|
|
72
|
-
`),url:""}),f(""),j("custom"))},disabled:L,className:`text-left p-3 rounded-lg border transition-colors ${L?"border-white/[0.06] bg-white/[0.02] opacity-50 cursor-not-allowed":"border-white/[0.08] bg-white/[0.04] hover:border-white/20 hover:bg-white/[0.06]"}`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:R.name}),s.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/[0.06] px-1.5 py-0.5 rounded shrink-0",children:_.label})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:R.description}),L&&s.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Already added"})]},R.id)})})]},_.id)})}),E==="custom"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Name"}),s.jsx("input",{value:u.name,onChange:_=>d(H=>({...H,name:_.target.value})),placeholder:"e.g. filesystem",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Transport"}),s.jsxs("select",{value:u.transport,onChange:_=>d(H=>({...H,transport:_.target.value})),className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20",children:[s.jsx("option",{value:"stdio",children:"stdio (subprocess on this machine)"}),s.jsx("option",{value:"http",children:"http (remote server via URL)"})]})]}),u.transport==="stdio"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Command"}),s.jsx("input",{value:u.command,onChange:_=>d(H=>({...H,command:_.target.value})),placeholder:"e.g. npx",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Args (space-separated)"}),s.jsx("input",{value:u.args,onChange:_=>d(H=>({...H,args:_.target.value})),placeholder:"e.g. -y @modelcontextprotocol/server-filesystem /tmp",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Env vars (optional, KEY=VALUE one per line)"}),s.jsx("textarea",{value:u.env,onChange:_=>d(H=>({...H,env:_.target.value})),placeholder:"MY_KEY=value",rows:3,className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20 resize-none"})]})]}):s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"URL"}),s.jsx("input",{value:u.url,onChange:_=>d(H=>({...H,url:_.target.value})),placeholder:"e.g. http://localhost:5173/sse",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm focus:outline-none focus:border-white/20"})]}),h&&s.jsx("p",{className:"text-xs text-error",children:h}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx("button",{onClick:()=>c(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:S,className:"px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add server"})]})]})]})})]})}function hz(e){const a={};for(const l of e.split(`
|
|
73
|
-
`)){const i=l.trim();if(!i)continue;const c=i.indexOf("=");c>0&&(a[i.slice(0,c)]=i.slice(c+1))}return a}function d7(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}const mz=[{id:"overview",label:"Overview"},{id:"tasks",label:"Tasks"},{id:"activity",label:"Activity"},{id:"performance",label:"Performance"},{id:"config",label:"Config"}];function fz(){var Tt;const{id:e}=bl(),a=Ia(["task:started","task:completed","task:failed"]),{data:l,loading:i,refetch:c}=we(e?`/api/agents/${e}`:null,[a]),{data:u}=we(e?`/api/agents/${e}/memory`:null),{data:d}=we(e?`/api/tasks?agentId=${e}&limit=50`:null,[a]),{data:h}=we("/api/activity",[a]),f=n.useMemo(()=>!h||!e?[]:h.filter(se=>se.agent_id===e),[h,e]),p=n.useMemo(()=>{if(!(d!=null&&d.length))return null;const se=d.filter(Be=>Be.status==="completed").length,ft=d.filter(Be=>Be.status==="failed").length,Te=se+ft>0?se/(se+ft):0,ct=d.filter(Be=>Be.duration_seconds!=null).map(Be=>Be.duration_seconds),vt=ct.length>0?ct.reduce((Be,Lt)=>Be+Lt,0)/ct.length:0,at=d.reduce((Be,Lt)=>Be+(Lt.tokens_used||0),0),Ae=d.reduce((Be,Lt)=>Be+(Lt.cost_cents||0),0),Qe=d.length>0?Math.round(at/d.length):0;return{completed:se,failed:ft,successRate:Te,avgDuration:vt,totalTokens:at,totalCostCents:Ae,avgTokens:Qe}},[d]),[g,x]=n.useState("overview"),[b,w]=n.useState(!1),[M,E]=n.useState([]),[j,A]=n.useState(!1),[S,N]=n.useState(!1),[C,V]=n.useState([]),[_,H]=n.useState(!1),[R,L]=n.useState(!1),[O,I]=n.useState([]),[X,K]=n.useState(!1),[B,Y]=n.useState(0),[k,$]=n.useState(0),[Q,ie]=n.useState(0);n.useEffect(()=>{me("/api/voice/health").then(()=>(w(!0),me("/api/voice/profiles"))).then(se=>E(se.data||[])).catch(()=>w(!1))},[]);const re=n.useMemo(()=>l?typeof l.config=="string"?JSON.parse(l.config):l.config||{}:{},[l]),D=n.useMemo(()=>l?typeof l.stats=="string"?JSON.parse(l.stats):l.stats||{}:{},[l]);n.useEffect(()=>{L(re.mcp_enabled===!0),I(Array.isArray(re.mcp_servers)?re.mcp_servers:[])},[re]),n.useEffect(()=>{if(l!=null&&l.autonomy_budget)try{const se=JSON.parse(l.autonomy_budget);Y(se.perTaskCents||0),$(se.dailyCents||0),ie(se.monthlyCents||0)}catch{}},[l==null?void 0:l.autonomy_budget]);const J=re.local_files_enabled===!0&&re.bash_enabled===!0,[ne,z]=n.useState([]),[F,P]=n.useState(""),[oe,fe]=n.useState("");n.useEffect(()=>{e&&me(`/api/agents/${e}/file-access`).then(se=>z(se.data||[])).catch(()=>{})},[e,re]);const ve=async()=>{if(!(!e||!F.trim())){fe("");try{await me(`/api/agents/${e}/file-access`,{method:"POST",body:JSON.stringify({path:F.trim()})});const se=await me(`/api/agents/${e}/file-access`);z(se.data||[]),P("")}catch(se){fe(se instanceof Error?se.message:"Could not add path")}}},ke=async se=>{if(e)try{await me(`/api/agents/${e}/file-access/${se}`,{method:"DELETE"}),z(ft=>ft.filter(Te=>Te.id!==se))}catch{}},Pe=n.useMemo(()=>[{key:"model",label:"Model",value:String(re.model||"claude-sonnet-4-5")},{key:"temperature",label:"Temperature",value:String(re.temperature??"0.7")},{key:"max_tokens",label:"Max tokens",value:String(re.max_tokens||"4096")},{key:"requires_approval",label:"Requires approval",value:String(re.requires_approval??"no")},{key:"web_search",label:"Web search",value:String(re.web_search??"no")},{key:"device_access",label:"Device access",value:J?"yes":"no"}],[re,J]),qe=n.useCallback(async se=>{if(e){A(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({voice_profile_id:se||null})}),c()}catch{}finally{A(!1)}}},[e,c]),ot=n.useCallback(async()=>{if(!e||!l)return;const se=l.status==="paused"?"idle":"paused";try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({status:se})}),c()}catch{}},[e,l,c]),$e=n.useCallback(()=>{V(Pe.map(se=>({...se}))),N(!0)},[Pe]),je=n.useCallback(async()=>{if(e){H(!0);try{const se={};for(const Te of C){if(Te.key==="device_access"){const ct=Te.value==="true"||Te.value==="yes";se.local_files_enabled=ct,se.bash_enabled=ct;continue}Te.value==="true"||Te.value==="yes"?se[Te.key]=!0:Te.value==="false"||Te.value==="no"?se[Te.key]=!1:!isNaN(Number(Te.value))&&Te.value!==""?se[Te.key]=Number(Te.value):se[Te.key]=Te.value}const ft=B||k||Q?JSON.stringify({perTaskCents:B,dailyCents:k,monthlyCents:Q,warnAt:.8}):null;await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:se,autonomy_budget:ft})}),N(!1),c()}catch{}finally{H(!1)}}},[e,C,B,k,Q,c]),qt=n.useCallback(async(se,ft)=>{if(e){K(!0);try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...re,mcp_enabled:se,mcp_servers:ft}})}),c()}catch{}finally{K(!1)}}},[e,re,c]);if(i)return s.jsx("div",{className:"p-6",children:s.jsx(We,{count:4})});if(!l)return s.jsx("div",{className:"p-6 text-neutral-400",children:"Agent not found"});const Ne=mz.map(se=>({...se,count:se.id==="tasks"?d==null?void 0:d.length:void 0}));return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(Et,{to:"/agents",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4 transition-colors",children:[s.jsx(Qr,{size:14})," Back to agents"]}),s.jsx(ze,{title:l.name,subtitle:l.role,action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:ot,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-md border transition-colors ${l.status==="paused"?"bg-success/10 border-success/30 text-success hover:bg-success/20":"bg-warning/10 border-warning/30 text-warning hover:bg-warning/20"}`,children:[l.status==="paused"?s.jsx(Wm,{size:14}):s.jsx(iF,{size:14}),l.status==="paused"?"Resume":"Pause"]}),s.jsx(it,{status:l.status})]})}),l.description&&s.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:l.description}),s.jsx(Hl,{tabs:Ne,activeTab:g,onTabChange:se=>{x(se),N(!1)},layoutId:"agent-detail-tab"}),s.jsxs("div",{className:"mt-6",children:[g==="overview"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsx(_t,{label:"Tasks",value:D.total_tasks||0}),s.jsx(_t,{label:"Tokens",value:((Tt=D.tokens_used)==null?void 0:Tt.toLocaleString())||"0"}),s.jsx(_t,{label:"Cost",value:`$${((D.cost_cents||0)/100).toFixed(2)}`})]}),b&&s.jsxs(s.Fragment,{children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Voice"}),s.jsx("div",{className:"border border-white/[0.08] 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-neutral-500",children:"Choose which voice this agent uses during calls"})]}),s.jsxs("select",{value:l.voice_profile_id||"",onChange:se=>qe(se.target.value),disabled:j,className:"bg-black border border-white/10 rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[s.jsx("option",{value:"",children:"Default voice"}),M.map(se=>s.jsx("option",{value:se.id,children:se.name},se.id))]})]})})]}),s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Memory"}),u!=null&&u.length?s.jsx("div",{className:"space-y-2",children:u.map(se=>s.jsxs("div",{className:"border border-white/[0.08] 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-white font-medium",children:se.memory_type}),s.jsx("span",{className:"text-xs text-neutral-500",children:new Date(se.created_at).toLocaleDateString()})]}),s.jsx("p",{className:"text-sm text-neutral-300",children:se.content})]},se.id))}):s.jsx("p",{className:"text-sm text-neutral-500",children:"No memories yet. This agent will learn from completed tasks."}),l.system_prompt&&s.jsxs(s.Fragment,{children:[s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3 mt-8",children:"System Prompt"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:s.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300 max-h-[40vh] overflow-y-auto leading-relaxed",children:l.system_prompt})})]})]}),g==="tasks"&&s.jsx(s.Fragment,{children:d!=null&&d.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(se=>s.jsxs(Et,{to:`/tasks/${se.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:se.title}),s.jsx("p",{className:"text-xs text-neutral-500",children:d7(se.created_at)})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[se.tokens_used?s.jsxs("span",{className:"text-xs text-neutral-500",children:[se.tokens_used.toLocaleString()," tok"]}):null,se.priority&&s.jsx("span",{className:"text-xs text-warning",children:se.priority}),s.jsx(it,{status:se.status})]})]},se.id))}):s.jsx(Ct,{icon:s.jsx(pl,{size:32}),title:"No tasks yet",description:"Tasks will appear here as this agent works."})}),g==="activity"&&s.jsx(s.Fragment,{children:f.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:f.map(se=>s.jsxs("div",{className:"flex items-start gap-3 px-4 py-3",children:[s.jsxs("div",{className:"mt-0.5",children:[se.activity_type==="task_completed"&&s.jsx(q0,{size:16,weight:"fill",className:"text-success"}),se.activity_type==="task_failed"&&s.jsx(Cl,{size:16,weight:"fill",className:"text-critical"}),se.activity_type==="task_started"&&s.jsx(mt,{size:16,className:"text-white animate-spin"}),!["task_completed","task_failed","task_started"].includes(se.activity_type)&&s.jsx(zr,{size:16,className:"text-neutral-400"})]}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-medium truncate",children:se.title}),s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 text-neutral-500 shrink-0",children:se.activity_type.replace(/_/g," ")})]}),se.description&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5 truncate",children:se.description}),s.jsx("p",{className:"text-xs text-neutral-600 mt-1",children:d7(se.created_at)})]})]},se.id))}):s.jsx(Ct,{icon:s.jsx(zr,{size:32}),title:"No activity yet",description:"Activity will appear here as this agent works on tasks."})}),g==="performance"&&s.jsx(s.Fragment,{children:p?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[s.jsx(_t,{label:"Success rate",value:`${(p.successRate*100).toFixed(0)}%`}),s.jsx(_t,{label:"Avg duration",value:p.avgDuration>0?`${p.avgDuration.toFixed(1)}s`:"N/A"}),s.jsx(_t,{label:"Total tokens",value:p.totalTokens.toLocaleString()})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsx(_t,{label:"Total cost",value:`$${(p.totalCostCents/100).toFixed(2)}`}),s.jsx(_t,{label:"Avg tokens/task",value:p.avgTokens.toLocaleString()}),s.jsx(_t,{label:"Tasks evaluated",value:p.completed+p.failed})]}),s.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Task outcomes"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:s.jsx("svg",{viewBox:"0 0 300 80",className:"w-full max-w-sm",role:"img","aria-label":"Task outcome chart",children:(()=>{const se=p.completed+p.failed;if(se===0)return null;const ft=p.completed/se*260,Te=p.failed/se*260;return s.jsxs(s.Fragment,{children:[s.jsx("rect",{x:20,y:10,width:ft,height:24,rx:4,fill:"#22c55e"}),s.jsxs("text",{x:20,y:52,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Completed: ",p.completed]}),s.jsx("rect",{x:20,y:56,width:Te,height:24,rx:4,fill:"#ef4444"}),s.jsxs("text",{x:20+Te+8,y:72,className:"text-[10px]",fill:"#a3a3a3",fontSize:"10",children:["Failed: ",p.failed]})]})})()})})]}):s.jsx(Ct,{icon:s.jsx(zr,{size:32}),title:"No performance data",description:"Complete some tasks first to see performance metrics."})}),g==="config"&&!S&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[Pe.map(se=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-neutral-400",children:se.label}),s.jsx("span",{className:"text-sm font-medium",children:se.value})]},se.key)),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-neutral-400",children:"MCP tools"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Allow this agent to use MCP servers"})]}),s.jsx(xl,{checked:R,onChange:async se=>{L(se),await qt(se,O)},disabled:X,size:"sm"})]}),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-neutral-400",children:"Device access"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Allow filesystem and shell access to local directories"})]}),s.jsx(xl,{checked:J,onChange:async se=>{if(e)try{await me(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...re,local_files_enabled:se,bash_enabled:se}})}),c()}catch{}},size:"sm"})]})]}),R&&s.jsx(NM,{servers:O,onChange:async se=>{I(se),await qt(R,se)},disabled:X}),J&&s.jsxs("div",{className:"mt-4",children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Allowed directories"}),ne.length>0?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:ne.map(se=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5",children:[s.jsx("code",{className:"text-sm text-neutral-300",children:se.path}),s.jsx("button",{onClick:()=>ke(se.id),className:"text-xs text-neutral-500 hover:text-red-400 transition-colors",children:"Remove"})]},se.id))}):s.jsx("p",{className:"text-sm text-neutral-500 mb-3",children:"No directories configured yet."}),s.jsxs("div",{className:"flex gap-2 mt-3",children:[s.jsx("input",{value:F,onChange:se=>{P(se.target.value),fe("")},onKeyDown:se=>{se.key==="Enter"&&ve()},placeholder:"~/projects/myapp",className:"flex-1 bg-white/5 border border-white/10 rounded-md px-3 py-1.5 text-sm text-white placeholder:text-neutral-600 focus:outline-none focus:border-white/20"}),s.jsx("button",{onClick:ve,className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors",children:"Add path"})]}),oe&&s.jsx("p",{className:"text-xs text-red-400 mt-1",children:oe})]}),s.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[s.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),s.jsx("div",{className:"text-sm text-zinc-400",children:B||k||Q?s.jsxs("div",{className:"flex gap-4",children:[B>0&&s.jsxs("span",{children:["Per task: ",B,"c"]}),k>0&&s.jsxs("span",{children:["Daily: ",k,"c"]}),Q>0&&s.jsxs("span",{children:["Monthly: ",Q,"c"]})]}):s.jsx("span",{className:"text-zinc-600",children:"No budget limits set"})})]}),s.jsx("div",{className:"mt-4",children:s.jsxs("button",{onClick:$e,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors",children:[s.jsx(eF,{size:14})," Edit config"]})})]}),g==="config"&&S&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:C.map((se,ft)=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("label",{className:"text-sm text-neutral-400",htmlFor:`config-${se.key}`,children:se.label}),s.jsx("input",{id:`config-${se.key}`,value:se.value,onChange:Te=>{const ct=[...C];ct[ft]={...se,value:Te.target.value},V(ct)},className:"bg-white/5 border border-white/10 rounded px-3 py-1.5 text-sm text-white text-right w-48 focus:outline-none focus:border-white/20"})]},se.key))}),s.jsxs("div",{className:"mt-6 border-t border-zinc-800 pt-4",children:[s.jsx("h4",{className:"text-sm font-medium text-zinc-400 mb-1",children:"Budget Limits"}),s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Cost caps for external API providers. Local models are always unlimited."}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Per task (cents)"}),s.jsx("input",{type:"number",min:"0",value:B,onChange:se=>Y(Number(se.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Daily (cents)"}),s.jsx("input",{type:"number",min:"0",value:k,onChange:se=>$(Number(se.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-zinc-500 block mb-1",children:"Monthly (cents)"}),s.jsx("input",{type:"number",min:"0",value:Q,onChange:se=>ie(Number(se.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded px-2 py-1.5 text-sm text-zinc-200"})]})]})]}),s.jsxs("div",{className:"flex gap-2 mt-4",children:[s.jsx("button",{onClick:()=>N(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:je,disabled:_,className:"px-4 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:_?"Saving...":"Save config"})]})]})]})]})}const pz=["all","pending","in_progress","completed","needs_approval","failed"],gz=["all","pending_review","approved","delivered","rejected"],h7={urgent:0,high:1,normal:2,low:3},m7={in_progress:0,pending:1,needs_approval:2,completed:3,failed:4};function xz(){const e=Ia(["task:started","task:completed","task:failed"]),[a,l]=n.useState("tasks"),[i,c]=n.useState("all"),[u,d]=n.useState("all"),[h,f]=n.useState(!1),[p,g]=n.useState(""),[x,b]=n.useState("date"),w=i==="all"?"":`&status=${i}`,{data:M,loading:E,refetch:j}=we(`/api/tasks?limit=50${w}`,[e,i]),{data:A}=we("/api/agents"),S=u==="all"?"":`?status=${u}`,{data:N,loading:C}=we(a==="deliverables"?`/api/deliverables${S}`:null,[e,u,a]),V=n.useMemo(()=>{const H=new Map;return A==null||A.forEach(R=>H.set(R.id,R.name)),H},[A]),_=n.useMemo(()=>{if(!M)return[];let H=M;if(p.trim()){const R=p.toLowerCase();H=H.filter(L=>L.title.toLowerCase().includes(R)||(V.get(L.agent_id)||"").toLowerCase().includes(R))}return x==="priority"?H=[...H].sort((R,L)=>{const O=h7[R.priority||"normal"]??2,I=h7[L.priority||"normal"]??2;return O-I||new Date(L.created_at).getTime()-new Date(R.created_at).getTime()}):x==="status"&&(H=[...H].sort((R,L)=>{const O=m7[R.status]??5,I=m7[L.status]??5;return O-I||new Date(L.created_at).getTime()-new Date(R.created_at).getTime()})),H},[M,p,x,V]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Tasks",subtitle:"All agent tasks",action:s.jsxs("button",{onClick:()=>f(!h),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," New task"]})}),s.jsxs("div",{className:"flex gap-2 mb-4",children:[s.jsxs("button",{onClick:()=>l("tasks"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm transition-colors ${a==="tasks"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[s.jsx(pl,{size:14})," Tasks"]}),s.jsxs("button",{onClick:()=>l("deliverables"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm transition-colors ${a==="deliverables"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:[s.jsx(em,{size:14})," Deliverables"]})]}),a==="tasks"?s.jsxs(s.Fragment,{children:[h&&(A!=null&&A.length)?s.jsx(vz,{agents:A,onClose:()=>f(!1),onSuccess:j}):null,s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:pz.map(H=>s.jsx("button",{onClick:()=>c(H),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${i===H?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:H.replace(/_/g," ")},H))}),s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(sn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:p,onChange:H=>g(H.target.value),placeholder:"Search by title or agent...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("select",{value:x,onChange:H=>b(H.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",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"})]})]}),E?s.jsx(We,{count:5}):_.length?s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:_.map(H=>s.jsxs(Et,{to:`/tasks/${H.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/5 transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:H.title}),s.jsxs("p",{className:"text-xs text-neutral-400",children:[V.get(H.agent_id)&&s.jsx("span",{className:"text-white",children:V.get(H.agent_id)}),V.get(H.agent_id)&&" · ",new Date(H.created_at).toLocaleString()]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[H.priority&&H.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:H.priority}),H.tokens_used?s.jsxs("span",{className:"text-xs text-neutral-400",children:[H.tokens_used.toLocaleString()," tok"]}):null,s.jsx(it,{status:H.status})]})]},H.id))}):s.jsx(Ct,{icon:s.jsx(pl,{size:32}),title:"Nothing here yet",description:p?`No tasks matching "${p}".`:i==="all"?"Tasks will appear as agents work.":`No ${i.replace(/_/g," ")} tasks.`})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:gz.map(H=>s.jsx("button",{onClick:()=>d(H),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${u===H?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:H.replace(/_/g," ")},H))}),C?s.jsx(We,{count:5}):N!=null&&N.length?s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:N.map(H=>{const L={email:"bg-blue-500/15 text-blue-400",code:"bg-green-500/15 text-green-400",report:"bg-purple-500/15 text-purple-400",creative:"bg-pink-500/15 text-pink-400",plan:"bg-cyan-500/15 text-cyan-400",data:"bg-amber-500/15 text-amber-400",document:"bg-white/5 text-neutral-400"}[H.deliverable_type]||"bg-white/5 text-neutral-400";return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[H.task_id?s.jsx(Et,{to:`/tasks/${H.task_id}`,className:"text-sm font-medium truncate hover:text-blue-400 transition-colors",children:H.title}):s.jsx("span",{className:"text-sm font-medium truncate",children:H.title}),H.auto_created===1&&s.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/5 px-1.5 py-0.5 rounded shrink-0",children:"auto"})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${L}`,children:H.deliverable_type}),s.jsx(it,{status:H.status}),s.jsx("span",{className:"text-xs text-neutral-500",children:new Date(H.created_at).toLocaleDateString()})]})]},H.id)})}):s.jsx(Ct,{icon:s.jsx(em,{size:32}),title:"No deliverables yet",description:"Deliverables are created when agents produce work products like drafts, reports, and plans."})]})]})}function vz({agents:e,onClose:a,onSuccess:l}){var b;const[i,c]=n.useState(((b=e[0])==null?void 0:b.id)||""),[u,d]=n.useState(""),[h,f]=n.useState(""),[p,g]=n.useState(!1),x=async w=>{if(w.preventDefault(),!(!i||!u.trim())){g(!0);try{await me("/api/tasks",{method:"POST",body:JSON.stringify({agentId:i,title:u.trim(),description:h.trim()||void 0})}),l(),a()}catch{}finally{g(!1)}}};return s.jsxs("form",{onSubmit:x,className:"bg-white/5 border border-white/[0.08] 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-neutral-400 block mb-1",children:"Agent"}),s.jsx("select",{value:i,onChange:w=>c(w.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:e.map(w=>s.jsx("option",{value:w.id,children:w.name},w.id))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),s.jsx("input",{value:u,onChange:w=>d(w.target.value),placeholder:"What should this agent do?",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),s.jsx("textarea",{value:h,onChange:w=>f(w.target.value),rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 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-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:p||!u.trim(),className:"px-4 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:p?"Dispatching...":"Dispatch"})]})]})}function G2({title:e,defaultOpen:a=!0,children:l}){const[i,c]=n.useState(a);return s.jsxs("div",{className:"mb-6",children:[s.jsxs("button",{type:"button",onClick:()=>c(u=>!u),className:"flex items-center gap-1.5 text-sm font-medium text-neutral-400 uppercase tracking-wider mb-2 hover:text-white transition-colors",children:[i?s.jsx(rn,{size:14,weight:"bold"}):s.jsx(Sl,{size:14,weight:"bold"}),e]}),s.jsx(Ba,{initial:!1,children:i&&s.jsx(Re.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},style:{overflow:"hidden"},children:l})})]})}function bz(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function yz({events:e}){return s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Timeline"}),s.jsxs("div",{className:"relative pl-6",children:[s.jsx("div",{className:"absolute left-[7px] top-1 bottom-1 w-px bg-white/[0.12]"}),s.jsx("div",{className:"space-y-4",children:e.map(a=>s.jsxs("div",{className:"relative flex items-start gap-3",children:[s.jsx("div",{className:"absolute -left-6 top-0.5 flex items-center justify-center w-[15px] h-[15px] rounded-full ring-2 ring-black",style:{backgroundColor:a.color},children:s.jsx("span",{className:"flex items-center justify-center text-black",children:a.icon})}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium",children:a.label}),s.jsx("p",{className:"text-xs text-neutral-400",children:bz(a.timestamp)})]})]},a.label))})]})]})}function wz(e){try{const a=JSON.parse(e);if(Array.isArray(a)){const l=a.filter(i=>i.type==="tool_use");if(l.length>0)return l.map(i=>({name:i.name,arguments:i.input??i.arguments??{}}))}if(a.tool_calls&&Array.isArray(a.tool_calls))return a.tool_calls.map(l=>{var i,c,u;return{name:((i=l.function)==null?void 0:i.name)??l.name,arguments:typeof((c=l.function)==null?void 0:c.arguments)=="string"?JSON.parse(l.function.arguments):((u=l.function)==null?void 0:u.arguments)??l.arguments??{}}});if(a.type==="tool_use"&&a.name)return[{name:a.name,arguments:a.input??a.arguments??{}}]}catch{}return null}function Az({call:e}){const[a,l]=n.useState(!1);return s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3 my-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-mono font-medium bg-blue-500/15 text-blue-400 border border-blue-500/30",children:e.name}),s.jsxs("button",{type:"button",onClick:()=>l(i=>!i),className:"text-xs text-neutral-400 hover:text-white transition-colors flex items-center gap-0.5",children:[a?s.jsx(rn,{size:12}):s.jsx(Sl,{size:12}),a?"Hide args":"Show args"]})]}),s.jsx(Ba,{initial:!1,children:a&&s.jsx(Re.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.15},style:{overflow:"hidden"},children:s.jsx("pre",{className:"text-xs text-neutral-300 mt-2 whitespace-pre-wrap break-words bg-white/[0.03] rounded p-2",children:JSON.stringify(e.arguments,null,2)})})})]})}function jz({content:e}){const a=n.useMemo(()=>wz(e),[e]);return a?s.jsx("div",{className:"space-y-1",children:a.map((l,i)=>s.jsx(Az,{call:l},`${l.name}-${i}`))}):s.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof e=="string"?e:JSON.stringify(e)})}const f7={critical:"bg-critical/15 text-critical border-critical/30",high:"bg-orange-500/15 text-orange-400 border-orange-500/30",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/30",low:"bg-neutral-500/15 text-neutral-400 border-neutral-500/30"};function Ez({priority:e}){const a=f7[e.toLowerCase()]??f7.low;return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border ${a}`,children:e})}function Nz(){const{id:e}=bl(),{data:a,loading:l}=we(e?`/api/tasks/${e}`:null),{data:i}=we(e?`/api/tasks/${e}/messages`:null),{data:c}=we(e?`/api/tasks/${e}/deliverables`:null),{data:u}=we(a!=null&&a.agent_id?`/api/agents/${a.agent_id}`:null),d=n.useMemo(()=>{if(!a)return[];const h=[];if(h.push({label:"Created",timestamp:a.created_at,color:"#737373",icon:s.jsx(Br,{size:9,weight:"bold"})}),a.started_at&&h.push({label:"Started",timestamp:a.started_at,color:"#3b82f6",icon:s.jsx(mt,{size:9,weight:"bold"})}),a.completed_at){const f=a.status==="failed"||a.status==="error";h.push({label:f?"Failed":"Completed",timestamp:a.completed_at,color:f?"#ef4444":"#22c55e",icon:f?s.jsx(Cl,{size:9,weight:"bold"}):s.jsx(q0,{size:9,weight:"bold"})})}return h},[a]);return l?s.jsx("div",{className:"p-6",children:s.jsx(We,{count:6})}):a?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(Et,{to:"/tasks",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[s.jsx(Qr,{size:14})," Back to tasks"]}),s.jsx(ze,{title:a.title,action:s.jsxs("div",{className:"flex items-center gap-2",children:[a.priority&&s.jsx(Ez,{priority:a.priority}),s.jsx(it,{status:a.status})]})}),a.description&&s.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:a.description}),d.length>0&&s.jsx(yz,{events:d}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[u&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Agent"}),s.jsx(Et,{to:`/agents/${u.id}`,className:"text-sm font-medium mt-0.5 text-blue-400 hover:text-blue-300 transition-colors block",children:u.name})]}),a.model_used&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Model"}),s.jsx("p",{className:"text-sm font-medium mt-0.5",children:a.model_used})]}),a.tokens_used!=null&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Tokens"}),s.jsx("p",{className:"text-sm font-medium mt-0.5",children:a.tokens_used.toLocaleString()})]}),a.cost_cents!=null&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Cost"}),s.jsxs("p",{className:"text-sm font-medium mt-0.5",children:["$",(a.cost_cents/100).toFixed(4)]})]}),a.duration_seconds!=null&&s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Duration"}),s.jsxs("p",{className:"text-sm font-medium mt-0.5",children:[a.duration_seconds,"s"]})]})]}),a.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:a.error_message})}),a.output&&s.jsx(G2,{title:"Output",children:s.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:s.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words",children:typeof a.output=="string"?a.output:JSON.stringify(a.output,null,2)})})}),c&&c.length>0&&s.jsx(G2,{title:"Deliverables",children:s.jsx("div",{className:"space-y-3",children:c.map(h=>{const p={email:"bg-blue-500/15 text-blue-400 border-blue-500/30",code:"bg-green-500/15 text-green-400 border-green-500/30",report:"bg-purple-500/15 text-purple-400 border-purple-500/30",creative:"bg-pink-500/15 text-pink-400 border-pink-500/30",plan:"bg-cyan-500/15 text-cyan-400 border-cyan-500/30",data:"bg-amber-500/15 text-amber-400 border-amber-500/30"}[h.deliverable_type]||"bg-white/5 text-neutral-400 border-white/10";let g="";try{const x=JSON.parse(h.content);g=x.text||x.body||x.content||JSON.stringify(x,null,2)}catch{g=h.content}return s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-sm font-medium truncate flex-1",children:h.title}),s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border ${p}`,children:h.deliverable_type}),s.jsx(it,{status:h.status}),h.auto_created===1&&s.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/5 px-1.5 py-0.5 rounded",children:"auto"})]}),s.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300",children:typeof g=="string"?g.slice(0,2e3):g}),h.rejection_reason&&s.jsx("p",{className:"mt-2 text-sm text-red-400 bg-red-500/10 rounded p-2",children:h.rejection_reason})]},h.id)})})}),i&&i.length>0&&s.jsx(G2,{title:"Conversation",children:s.jsx("div",{className:"space-y-2",children:i.map(h=>s.jsxs("div",{className:`rounded-lg p-3 text-sm ${h.role==="user"?"bg-white/5 border border-white/[0.12]":"border border-white/[0.08]"}`,children:[s.jsx("p",{className:"text-xs text-neutral-400 mb-1 capitalize",children:h.role}),s.jsx(jz,{content:h.content})]},h.id))})})]}):s.jsx("div",{className:"p-6 text-neutral-400",children:"Task not found"})}function Mz(e){if(!e)return null;if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return e}function Sz(){const e=Ia(["task:completed"]),{data:a,loading:l,refetch:i}=we("/api/approvals",[e]),[c,u]=n.useState(null),[d,h]=n.useState(!1),[f,p]=n.useState(null),[g,x]=n.useState(""),b=n.useCallback(async j=>{u(j);try{await me(`/api/approvals/${j}/approve`,{method:"POST"}),i()}catch{}finally{u(null)}},[i]),w=n.useCallback(async()=>{if(f){u(f.id);try{await me(`/api/approvals/${f.id}/reject`,{method:"POST",body:JSON.stringify({reason:g.trim()||void 0})}),p(null),x(""),i()}catch{}finally{u(null)}}},[f,g,i]),M=n.useCallback(async()=>{if(a!=null&&a.length){h(!0);try{for(const j of a)await me(`/api/approvals/${j.id}/approve`,{method:"POST"});i()}catch{}finally{h(!1)}}},[a,i]),E=n.useCallback(async()=>{if(a!=null&&a.length){h(!0);try{for(const j of a)await me(`/api/approvals/${j.id}/reject`,{method:"POST"});i()}catch{}finally{h(!1)}}},[a,i]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Approvals",subtitle:"Tasks waiting for your review",action:a!=null&&a.length?s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("button",{onClick:E,disabled:d,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(Cl,{size:14})," Reject all"]}),s.jsxs("button",{onClick:M,disabled:d,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-success bg-success/10 border border-success/30 rounded-lg hover:bg-success/20 disabled:opacity-50 transition-colors",children:[s.jsx(q0,{size:14})," Approve all"]})]}):void 0}),l?s.jsx(We,{count:3}):a!=null&&a.length?s.jsx("div",{className:"space-y-3",children:a.map(j=>{const A=Mz(j.deferred_action);return s.jsx("div",{className:"border border-white/[0.08] 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:j.title}),A&&s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs bg-warning/15 text-warning",children:[A.provider==="gmail"?s.jsx(YO,{size:12}):s.jsx(ha,{size:12}),A.type,A.params.to?` → ${A.params.to}`:""]})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:new Date(j.created_at).toLocaleString()}),j.output&&s.jsx("pre",{className:"text-xs text-neutral-400 mt-2 whitespace-pre-wrap break-words max-h-32 overflow-y-auto",children:typeof j.output=="string"?j.output.slice(0,500):JSON.stringify(j.output).slice(0,500)})]}),s.jsxs("div",{className:"flex gap-2 shrink-0",children:[s.jsx("button",{onClick:()=>{p(j),x("")},disabled:c===j.id||d,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:()=>b(j.id),disabled:c===j.id||d,className:"px-4 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors disabled:opacity-50",children:"Approve"})]})]})},j.id)})}):s.jsx(Ct,{icon:s.jsx(KN,{size:32}),title:"All clear",description:"No tasks waiting for approval right now."}),f&&s.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",children:s.jsxs("div",{className:"border border-white/[0.08] 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-neutral-400 mb-4",children:["“",f.title,"”"]}),s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Reason (optional)"}),s.jsx("textarea",{value:g,onChange:j=>x(j.target.value),placeholder:"Why is this being rejected?",rows:3,autoFocus:!0,className:"w-full bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-critical/50 resize-none mb-4"}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:()=>p(null),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:w,disabled:c===f.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:c===f.id?"Rejecting...":"Reject"})]})]})})]})}const Zz={task_completed:"text-success",task_failed:"text-critical",task_started:"text-white",task_needs_approval:"text-warning",schedule_fired:"text-warning",agent_created:"text-white",memory_extracted:"text-warning"},Cz=["all","task_completed","task_failed","task_started","task_needs_approval","schedule_fired","agent_created","memory_extracted"];function Hz(e){if(e==="all")return null;const a=new Date;return e==="today"?(a.setHours(0,0,0,0),a):e==="7d"?(a.setDate(a.getDate()-7),a):(a.setDate(a.getDate()-30),a)}function Vz(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function _z(){const e=Ia(["task:started","task:completed","task:failed","memory:extracted"]),{data:a,loading:l}=we("/api/activity",[e]),[i,c]=n.useState("all"),[u,d]=n.useState("all"),[h,f]=n.useState(""),p=n.useMemo(()=>{if(!a)return[];let g=a;i!=="all"&&(g=g.filter(b=>b.activity_type===i));const x=Hz(u);if(x&&(g=g.filter(b=>new Date(b.created_at)>=x)),h.trim()){const b=h.toLowerCase();g=g.filter(w=>w.title.toLowerCase().includes(b)||(w.description||"").toLowerCase().includes(b))}return g},[a,i,u,h]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Activity",subtitle:"Recent events"}),s.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:Cz.map(g=>s.jsx("button",{onClick:()=>c(g),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${i===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g==="all"?"All":g.replace(/_/g," ")},g))}),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(g=>s.jsx("button",{onClick:()=>d(g),className:`px-2.5 py-1 rounded text-xs transition-colors ${u===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g==="all"?"All time":g==="today"?"Today":g==="7d"?"7 days":"30 days"},g))}),s.jsxs("div",{className:"relative flex-1",children:[s.jsx(sn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:h,onChange:g=>f(g.target.value),placeholder:"Search activity...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),l?s.jsx(We,{count:8}):p.length?s.jsx("div",{className:"space-y-1",children:p.map((g,x)=>s.jsxs(Re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:x*.02},className:"flex items-start gap-3 px-4 py-3 rounded-lg border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[s.jsx("span",{className:`text-xs font-mono mt-0.5 shrink-0 ${Zz[g.activity_type]||"text-neutral-400"}`,children:g.activity_type.replace(/_/g," ")}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm",children:g.title}),g.description&&s.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:g.description})]}),s.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:Vz(g.created_at)})]},g.id))}):s.jsx(Ct,{icon:s.jsx(GE,{size:32}),title:"Quiet so far",description:h||i!=="all"||u!=="all"?"No activity matching your filters.":"Activity will show up here as agents complete tasks."})]})}function h0({open:e,onClose:a,onConfirm:l,title:i="Confirm",message:c,confirmLabel:u="Confirm",confirmColor:d="critical",loading:h=!1}){const f=d==="critical"?"bg-critical/10 border-critical/30 text-critical hover:bg-critical/20":"bg-white text-black border-white hover:bg-neutral-200";return s.jsxs(fa,{open:e,onClose:a,title:i,children:[s.jsx("p",{className:"text-sm text-neutral-400 mb-6",children:c}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:l,disabled:h,className:`px-3 py-1.5 border rounded text-xs font-medium transition-colors disabled:opacity-50 ${f}`,children:h?"Working...":u})]})]})}const p7=[{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 MM({value:e,onChange:a}){const[l,i]=n.useState(p7.some(c=>c.cron===e)?"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:()=>i("preset"),className:`px-2 py-1 rounded text-xs transition-colors ${l==="preset"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Presets"}),s.jsx("button",{type:"button",onClick:()=>i("custom"),className:`px-2 py-1 rounded text-xs transition-colors ${l==="custom"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),l==="preset"?s.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:p7.map(c=>s.jsxs("button",{type:"button",onClick:()=>a(c.cron),className:`text-left px-3 py-2 rounded text-xs transition-colors border ${e===c.cron?"border-white/20 bg-white/10 text-white":"border-white/[0.08] hover:border-white/20 text-neutral-400 hover:text-white"}`,children:[s.jsx("span",{className:"block",children:c.label}),s.jsx("span",{className:"block font-mono text-[10px] text-neutral-400 mt-0.5",children:c.cron})]},c.cron))}):s.jsxs("div",{children:[s.jsx("input",{type:"text",value:e,onChange:c=>a(c.target.value),placeholder:"* * * * *",className:"w-full bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white font-mono placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20"}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:"Format: minute hour day month weekday"})]})]})}function Tz(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function Lz(e){const a=new Date(e).getTime()-Date.now();if(a<0)return"overdue";const l=Math.floor(a/6e4);if(l<1)return"now";if(l<60)return`in ${l}m`;const i=Math.floor(l/60);return i<24?`in ${i}h`:`in ${Math.floor(i/24)}d`}const g7=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Rz=6,kz=22;function Dz(e){const a=e.trim().split(/\s+/);if(a.length<5)return{hours:[],dows:[]};const l=a[1],i=a[4],c=(f,p,g)=>{if(f==="*"){const b=[];for(let w=p;w<=g;w++)b.push(w);return b}const x=[];for(const b of f.split(","))if(b.includes("/")){const[w,M]=b.split("/"),E=parseInt(M,10),j=w==="*"?p:parseInt(w,10);for(let A=j;A<=g;A+=E)x.push(A)}else if(b.includes("-")){const[w,M]=b.split("-").map(Number);for(let E=w;E<=M;E++)x.push(E)}else{const w=parseInt(b,10);isNaN(w)||x.push(w)}return x},u=c(l,0,23),h=c(i,0,6).map(f=>f===0?6:f-1);return{hours:u,dows:h}}function Oz(){const e=new Date,a=e.getDay(),l=a===0?-6:1-a,i=new Date(e);i.setDate(e.getDate()+l),i.setHours(0,0,0,0);const c=[];for(let u=0;u<7;u++){const d=new Date(i);d.setDate(i.getDate()+u),c.push(d)}return c}function Fz({schedules:e}){const a=n.useMemo(()=>Oz(),[]),l=n.useMemo(()=>e.filter(f=>f.enabled),[e]),i=n.useMemo(()=>l.map(f=>({label:f.label,...Dz(f.cron_expression||f.cron)})),[l]),c=[];for(let f=Rz;f<=kz;f++)c.push(f);const u=(f,p)=>i.filter(g=>g.dows.includes(f)&&g.hours.includes(p)),d=new Date,h=d.getDay()===0?6:d.getDay()-1;return s.jsxs(Re.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},className:"border border-white/[0.08] rounded-lg overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[s.jsx("div",{className:"bg-white/[0.02] border-b border-r border-white/[0.08] p-2"}),g7.map((f,p)=>s.jsxs("div",{className:`bg-white/[0.02] border-b border-white/[0.08] p-2 text-center text-xs font-medium ${p===h?"text-white":"text-neutral-500"} ${p<6?"border-r border-white/[0.08]":""}`,children:[s.jsx("div",{children:f}),s.jsx("div",{className:`text-[10px] mt-0.5 ${p===h?"text-neutral-300":"text-neutral-600"}`,children:a[p].getDate()})]},f))]}),s.jsx("div",{className:"max-h-[480px] overflow-y-auto",children:c.map(f=>s.jsxs("div",{className:"grid grid-cols-[64px_repeat(7,1fr)]",children:[s.jsx("div",{className:"border-b border-r border-white/[0.08] p-2 text-[10px] text-neutral-500 text-right pr-3 flex items-start justify-end",children:f===0?"12am":f<12?`${f}am`:f===12?"12pm":`${f-12}pm`}),g7.map((p,g)=>{const x=u(g,f);return s.jsx("div",{className:`border-b border-white/[0.08] min-h-[36px] p-1 ${g<6?"border-r border-white/[0.08]":""} ${x.length>0?"bg-success/15":""}`,children:x.map((b,w)=>s.jsx("div",{className:"text-[10px] text-success leading-tight truncate px-1 py-0.5 rounded",children:b.label},w))},p)})]},f))})]})}function zz(){const{data:e,loading:a,refetch:l}=we("/api/schedules"),[i,c]=n.useState(null),[u,d]=n.useState(!1),[h,f]=n.useState(null),[p,g]=n.useState(null),[x,b]=n.useState(!1),[w,M]=n.useState("list"),E=async A=>{c(A);try{await me(`/api/schedules/${A}/toggle`,{method:"POST"}),l()}catch{de("error","Couldn't toggle schedule. Try again?")}finally{c(null)}},j=async()=>{if(p){b(!0);try{await me(`/api/schedules/${p.id}`,{method:"DELETE"}),de("success","Schedule deleted"),l()}catch{de("error","Couldn't delete schedule. Try again?")}finally{b(!1),g(null)}}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Schedules",subtitle:"Automated task schedules",action:s.jsxs("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," New schedule"]})}),a?s.jsx(We,{count:3}):e!=null&&e.length?s.jsxs(s.Fragment,{children:[s.jsx(Hl,{tabs:[{id:"list",label:"List",count:e.length},{id:"calendar",label:"Calendar"}],activeTab:w,onTabChange:M,layoutId:"schedules-tab"}),s.jsx("div",{className:"mt-4",children:w==="list"?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(A=>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 ${A.enabled?"bg-success":"bg-white/10"}`}),s.jsx("p",{className:"text-sm font-medium truncate",children:A.label})]}),s.jsxs("div",{className:"flex gap-3 mt-1 ml-4",children:[s.jsx("span",{className:"text-xs text-neutral-400 font-mono",children:A.cron_expression||A.cron}),A.next_run_at&&s.jsxs("span",{className:"text-xs text-neutral-400",children:["Next: ",Lz(A.next_run_at)]}),A.last_run_at&&s.jsxs("span",{className:"text-xs text-neutral-400",children:["Last: ",Tz(A.last_run_at)]})]}),A.task_prompt&&s.jsx("p",{className:"text-xs text-neutral-400 mt-1 ml-4 truncate max-w-md",children:A.task_prompt})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("button",{onClick:()=>f(A),className:"text-neutral-400 hover:text-white transition-colors",title:"Edit",children:s.jsx(nm,{size:14})}),s.jsx("button",{onClick:()=>g(A),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:s.jsx(Gt,{size:14})}),s.jsx(xl,{checked:!!A.enabled,onChange:()=>E(A.id),disabled:i===A.id})]})]},A.id))}):s.jsx(Fz,{schedules:e})})]}):s.jsx(Ct,{icon:s.jsx(OO,{size:32}),title:"Nothing scheduled yet",description:"Set up recurring tasks to keep your agents busy.",action:s.jsxs("button",{onClick:()=>d(!0),className:"mt-3 flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," Create your first schedule"]})}),u&&s.jsx(x7,{onClose:()=>d(!1),onSuccess:()=>{l(),d(!1)}}),h&&s.jsx(x7,{schedule:h,onClose:()=>f(null),onSuccess:()=>{l(),f(null)}}),s.jsx(h0,{open:!!p,onClose:()=>g(null),onConfirm:j,title:"Delete schedule",message:`Delete "${p==null?void 0:p.label}"? This can't be undone.`,confirmLabel:"Delete",loading:x})]})}function x7({schedule:e,onClose:a,onSuccess:l}){const i=!!e,{data:c}=we("/api/agents"),[u,d]=n.useState((e==null?void 0:e.label)||""),[h,f]=n.useState((e==null?void 0:e.cron_expression)||(e==null?void 0:e.cron)||"0 9 * * *"),[p,g]=n.useState((e==null?void 0:e.agent_id)||""),[x,b]=n.useState((e==null?void 0:e.task_prompt)||""),[w,M]=n.useState(!1),E=async j=>{if(j.preventDefault(),!(!u.trim()||!h.trim())){M(!0);try{i?(await me(`/api/schedules/${e.id}`,{method:"PUT",body:JSON.stringify({label:u.trim(),cron:h.trim(),agent_id:p||null,task_prompt:x})}),de("success","Schedule updated")):(await me("/api/schedules",{method:"POST",body:JSON.stringify({label:u.trim(),cron:h.trim(),agent_id:p||null,task_prompt:x})}),de("success","Schedule created")),l()}catch{de("error",`Couldn't ${i?"update":"create"} schedule. Try again?`)}finally{M(!1)}}};return s.jsx(fa,{open:!0,onClose:a,title:i?"Edit schedule":"New schedule",maxWidth:"max-w-lg",children:s.jsxs("form",{onSubmit:E,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),s.jsx("input",{value:u,onChange:j=>d(j.target.value),placeholder:"Daily briefing",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),s.jsxs("select",{value:p,onChange:j=>g(j.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[s.jsx("option",{value:"",children:"Orchestrator (default)"}),c==null?void 0:c.map(j=>s.jsx("option",{value:j.id,children:j.name},j.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Schedule"}),s.jsx(MM,{value:h,onChange:f})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Task prompt"}),s.jsx("textarea",{value:x,onChange:j=>b(j.target.value),placeholder:"What should the agent do?",rows:3,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),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-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:w||!u.trim()||!h.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:w?"Saving...":i?"Save changes":"Create schedule"})]})]})})}const SM={SAMPLE_RATE:16e3,BIT_DEPTH:16,CHANNELS:1};function qz(e){const{SAMPLE_RATE:a,BIT_DEPTH:l,CHANNELS:i}=SM,c=a*i*(l/8),u=i*(l/8),d=e.byteLength,h=new ArrayBuffer(44+d),f=new DataView(h);return o1(f,0,"RIFF"),f.setUint32(4,36+d,!0),o1(f,8,"WAVE"),o1(f,12,"fmt "),f.setUint32(16,16,!0),f.setUint16(20,1,!0),f.setUint16(22,i,!0),f.setUint32(24,a,!0),f.setUint32(28,c,!0),f.setUint16(32,u,!0),f.setUint16(34,l,!0),o1(f,36,"data"),f.setUint32(40,d,!0),new Int16Array(h,44).set(e),h}function $z(e){const a=new Int16Array(e.length);for(let l=0;l<e.length;l++){const i=Math.max(-1,Math.min(1,e[l]));a[l]=i<0?i*32768:i*32767}return a}function Bz(e,a,l){if(a===l)return e;const i=a/l,c=Math.round(e.length/i),u=new Float32Array(c);for(let d=0;d<c;d++){const h=Math.round(d*i);u[d]=e[Math.min(h,e.length-1)]}return u}async function Iz(e,a){const l=a||new AudioContext,i=await l.decodeAudioData(e.slice(0)),c=l.createBufferSource();return c.buffer=i,c.connect(l.destination),new Promise(u=>{c.onended=()=>u(),c.start(0)})}function Uz(e){const a=new AudioContext;let l=[],i=!1;async function c(){if(l.length===0){i=!1;return}i=!0;const u=l.shift();await Iz(u,a),await c()}return{enqueue(u){l.push(u),i||c()},clear(){l=[],i=!1},close(){l=[],i=!1,a.close()},get isPlaying(){return i}}}function o1(e,a,l){for(let i=0;i<l.length;i++)e.setUint8(a+i,l.charCodeAt(i))}class Pz{constructor(a,l={}){Na(this,"threshold");Na(this,"minSpeechMs");Na(this,"silenceMs");Na(this,"onSpeechStart");Na(this,"onSpeechEnd");Na(this,"isSpeaking",!1);Na(this,"speechStartTime",0);Na(this,"lastSpeechTime",0);Na(this,"audioChunks",[]);Na(this,"sampleRate");Na(this,"checkInterval",null);this.sampleRate=a,this.threshold=l.threshold??.01,this.minSpeechMs=l.minSpeechMs??300,this.silenceMs=l.silenceMs??800,this.onSpeechStart=l.onSpeechStart,this.onSpeechEnd=l.onSpeechEnd}processFrame(a){var c;const l=Gz(a),i=Date.now();l>this.threshold&&(this.isSpeaking||(this.isSpeaking=!0,this.speechStartTime=i,this.audioChunks=[],(c=this.onSpeechStart)==null||c.call(this)),this.lastSpeechTime=i),this.isSpeaking&&(this.audioChunks.push(new Float32Array(a)),l<=this.threshold&&i-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 f;const a=Date.now()-this.speechStartTime;if(this.isSpeaking=!1,a<this.minSpeechMs||this.audioChunks.length===0){this.audioChunks=[];return}const l=this.audioChunks.reduce((p,g)=>p+g.length,0),i=new Float32Array(l);let c=0;for(const p of this.audioChunks)i.set(p,c),c+=p.length;this.audioChunks=[];const u=Bz(i,this.sampleRate,SM.SAMPLE_RATE),d=$z(u),h=qz(d);(f=this.onSpeechEnd)==null||f.call(this,h)}}function Gz(e){let a=0;for(let l=0;l<e.length;l++)a+=e[l]*e[l];return Math.sqrt(a/e.length)}function Yz(){return typeof window>"u"?null:window.SpeechRecognition||window.webkitSpeechRecognition||null}function v7(e="en-US"){const a=Yz();if(!a)return{isSupported:!1,start(){},stop(){},onResult(){},onError(){}};const l=new a;l.continuous=!0,l.interimResults=!0,l.lang=e;let i=null,c=null;return l.onresult=u=>{if(!i)return;const d=u.results[u.results.length-1];d&&i(d[0].transcript,d.isFinal)},l.onerror=u=>{u.error!=="no-speech"&&u.error!=="aborted"&&(c==null||c(u.error))},l.onend=()=>{try{l.start()}catch{}},{isSupported:!0,start(){try{l.start()}catch{}},stop(){l.onend=null;try{l.stop()}catch{}},onResult(u){i=u},onError(u){c=u}}}function Kz(){if(typeof window>"u"||!window.speechSynthesis)return{isSupported:!1,speak(){},stop(){},isSpeaking:()=>!1,onStart(){},onEnd(){}};const e=window.speechSynthesis;let a=null,l=null;return{isSupported:!0,speak(i){const c=new SpeechSynthesisUtterance(i);c.onstart=()=>a==null?void 0:a(),c.onend=()=>l==null?void 0:l(),c.onerror=()=>l==null?void 0:l(),e.speak(c)},stop(){e.cancel()},isSpeaking:()=>e.speaking,onStart(i){a=i},onEnd(i){l=i}}}function Xz(){const e=nn(),a=window.location.protocol==="https:"?"wss:":"ws:",l=window.location.host;return`${a}//${l}/ws/voice?token=${e}`}function Qz(){return""}async function Jz(){try{const e=nn(),a=await fetch(`${Qz()}/api/voice/providers`,{headers:{Authorization:`Bearer ${e}`},signal:AbortSignal.timeout(3e3)});if(a.ok){const{data:l}=await a.json();if((l==null?void 0:l.recommendedMode)==="full")return"full"}}catch{}return"browser-native"}function ZM(e){const[a,l]=n.useState("idle"),[i,c]=n.useState(""),[u,d]=n.useState(""),[h,f]=n.useState(null),[p,g]=n.useState(!1),[x,b]=n.useState(null),w=n.useRef(null),M=n.useRef(null),E=n.useRef(null),j=n.useRef(null),A=n.useRef(null),S=n.useRef(null),N=n.useRef(null),C=n.useRef(null),V=n.useCallback(()=>{var I,X,K,B,Y,k,$;(I=E.current)==null||I.stop(),E.current=null,(X=j.current)==null||X.disconnect(),j.current=null,(K=M.current)==null||K.getTracks().forEach(Q=>Q.stop()),M.current=null,(B=A.current)==null||B.close(),A.current=null,(Y=S.current)==null||Y.close(),S.current=null,(k=N.current)==null||k.stop(),N.current=null,($=C.current)==null||$.stop(),C.current=null,w.current&&w.current.readyState!==WebSocket.CLOSED&&(w.current.send(JSON.stringify({type:"stop"})),w.current.close()),w.current=null,l("idle"),b(null),f(null)},[]);n.useEffect(()=>V,[V]);const _=n.useCallback(async()=>{f(null),c(""),d("");const I=await Jz();if(I==="browser-native"&&!v7().isSupported){f("Voice requires Chrome, Edge, or Safari. Firefox is not supported yet.");return}b(I);const X=new WebSocket(Xz());w.current=X,X.binaryType="arraybuffer",I==="browser-native"?await H(X,e):await R(X,e)},[e,V]),H=n.useCallback(async(I,X)=>{const K=v7(),B=Kz();N.current=K,C.current=B,B.onStart(()=>l("speaking")),B.onEnd(()=>l("listening")),I.onopen=()=>{I.send(JSON.stringify({type:"start",agentId:X,mode:"browser-native"})),K.onResult((Y,k)=>{c(Y),k&&Y.trim()&&I.readyState===WebSocket.OPEN&&(I.send(JSON.stringify({type:"transcript",text:Y})),l("processing"))}),K.onError(Y=>{f(`Speech recognition error: ${Y}`)}),K.start(),l("listening")},I.onmessage=Y=>{if(!(Y.data instanceof ArrayBuffer))try{const k=JSON.parse(Y.data);switch(k.type){case"response":d(k.text),B.speak(k.text);break;case"transcription":c(k.text);break;case"error":f(k.message);break;case"state":k.state==="processing"&&l("processing");break}}catch{}},I.onerror=()=>{f("Couldn't connect to voice server. Is the runtime running?"),V()},I.onclose=()=>{V()}},[V]),R=n.useCallback(async(I,X)=>{let K;try{K=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:16e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0}})}catch{f("Couldn't access microphone. Check your browser permissions.");return}M.current=K;const B=new AudioContext;A.current=B;const Y=B.createMediaStreamSource(K),k=Uz();S.current=k,I.onopen=()=>{I.send(JSON.stringify({type:"start",agentId:X}))},I.onmessage=re=>{if(re.data instanceof ArrayBuffer){k.enqueue(re.data);return}try{const D=JSON.parse(re.data);switch(D.type){case"state":l(D.state);break;case"transcription":c(D.text);break;case"response":d(D.text);break;case"error":f(D.message);break}}catch{}},I.onerror=()=>{f("Couldn't connect to voice server. Is the runtime running?"),V()},I.onclose=()=>{V()};const Q=B.createScriptProcessor(4096,1,1);j.current=Q;const ie=new Pz(B.sampleRate,{threshold:.01,minSpeechMs:300,silenceMs:800,onSpeechStart:()=>{l("listening")},onSpeechEnd:re=>{I.readyState===WebSocket.OPEN&&I.send(re)}});E.current=ie,ie.start(),Q.onaudioprocess=re=>{if(p)return;const D=re.inputBuffer.getChannelData(0);ie.processFrame(D)},Y.connect(Q),Q.connect(B.destination)},[p,V]),L=n.useCallback(()=>{V()},[V]),O=n.useCallback(()=>{g(I=>{var K,B,Y;const X=!I;return(K=M.current)==null||K.getAudioTracks().forEach(k=>{k.enabled=!X}),X?(B=N.current)==null||B.stop():(Y=N.current)==null||Y.start(),X})},[]);return{state:a,transcript:i,response:u,error:h,startCall:_,endCall:L,toggleMute:O,isMuted:p,mode:x}}const y1=24,Y2=3,K2=2,_r=2,k0=32;function Wz({state:e,className:a=""}){const l=n.useRef(null),i=n.useRef(0);return n.useEffect(()=>{const c=l.current;if(!c)return;const u=c.getContext("2d");if(!u)return;const d=y1*(Y2+K2)-K2;c.width=d*2,c.height=k0*2,c.style.width=`${d}px`,c.style.height=`${k0}px`,u.scale(2,2);const h=new Float32Array(y1).fill(0);function f(){if(u){u.clearRect(0,0,d,k0);for(let p=0;p<y1;p++){const g=eq(e,p,Date.now());h[p]+=(g-h[p])*.15;const x=Math.max(_r,h[p]),b=p*(Y2+K2),w=(k0-x)/2;u.fillStyle=tq(e),u.beginPath(),u.roundRect(b,w,Y2,x,1.5),u.fill()}i.current=requestAnimationFrame(f)}}return f(),()=>cancelAnimationFrame(i.current)},[e]),s.jsx("canvas",{ref:l,className:a})}function eq(e,a,l){switch(e){case"listening":{const i=Math.sin(l/200+a*.5)*.5+.5;return _r+i*(k0*.6-_r)}case"processing":{const i=y1/2,c=Math.abs(a-i)/i,u=Math.sin(l/300)*.5+.5;return _r+(1-c)*u*k0*.4}case"speaking":{const i=Math.sin(l/150+a*.4)*.5+.5,c=Math.sin(l/250+a*.7)*.3+.3;return _r+(i+c)*(k0*.45)}default:return _r}}function tq(e){switch(e){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 aq({isMuted:e,onToggleMute:a,onEndCall:l}){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("button",{onClick:a,className:`p-3 rounded-full transition-all duration-150 active:scale-95 ${e?"bg-red-500/20 text-red-400 hover:bg-red-500/30":"bg-white/[0.08] text-neutral-300 hover:bg-white/[0.12] hover:text-white"}`,title:e?"Unmute":"Mute",children:e?s.jsx(Jm,{size:20,weight:"fill"}):s.jsx(Sn,{size:20,weight:"fill"})}),s.jsx("button",{onClick:l,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(cF,{size:20,weight:"fill"})})]})}const nq={idle:"Ready",listening:"Listening...",processing:"Thinking...",speaking:"Speaking..."};function rq({state:e,transcript:a,response:l,error:i,isMuted:c,onToggleMute:u,onEndCall:d}){return n.useEffect(()=>{const h=f=>{f.key==="Escape"&&d()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[d]),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:d}),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 ${e==="listening"?"bg-white animate-pulse":e==="processing"?"bg-purple-500 animate-pulse":e==="speaking"?"bg-green-500 animate-pulse":"bg-gray-600"}`}),s.jsx("span",{className:"text-sm text-neutral-400 font-mono",children:nq[e]})]}),s.jsx(Wz,{state:e}),a&&s.jsxs("div",{className:"w-full text-center",children:[s.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"You said:"}),s.jsx("p",{className:"text-sm text-neutral-300",children:a})]}),l&&s.jsxs("div",{className:"w-full text-center",children:[s.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"Response:"}),s.jsx("p",{className:"text-sm text-white",children:l})]}),i&&s.jsx("div",{className:"w-full text-center",children:s.jsx("p",{className:"text-sm text-red-400",children:i})}),s.jsx(aq,{isMuted:c,onToggleMute:u,onEndCall:d}),s.jsx("p",{className:"text-xs text-neutral-600",children:"Press Esc to end call"})]})]})}function sq({toolCall:e}){const[a,l]=n.useState(!1);return s.jsxs("div",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg overflow-hidden",children:[s.jsxs("button",{onClick:()=>l(!a),className:"flex items-center gap-2 px-3 py-1.5 text-xs text-neutral-300 hover:text-white transition-colors w-full text-left",children:[s.jsx(EF,{size:14,className:"text-neutral-400 shrink-0"}),s.jsx("span",{className:"font-medium truncate",children:e.name}),a?s.jsx(rn,{size:12,className:"ml-auto shrink-0"}):s.jsx(Sl,{size:12,className:"ml-auto shrink-0"})]}),a&&s.jsxs("div",{className:"border-t border-white/[0.06] px-3 py-2 space-y-2 text-xs",children:[e.input&&Object.keys(e.input).length>0&&s.jsxs("div",{children:[s.jsx("span",{className:"text-neutral-500 block mb-1",children:"Input"}),s.jsx("pre",{className:"text-neutral-300 whitespace-pre-wrap break-words font-mono text-[11px] bg-white/[0.03] rounded px-2 py-1.5",children:JSON.stringify(e.input,null,2)})]}),e.output&&s.jsxs("div",{children:[s.jsx("span",{className:"text-neutral-500 block mb-1",children:"Output"}),s.jsx("pre",{className:"text-neutral-300 whitespace-pre-wrap break-words font-mono text-[11px] bg-white/[0.03] rounded px-2 py-1.5",children:e.output})]})]})]})}function lq(){var Y;const[e,a]=n.useState([]),[l,i]=n.useState(""),[c,u]=n.useState(!1),[d,h]=n.useState(()=>crypto.randomUUID()),[f,p]=n.useState(!1),[g,x]=n.useState(!1),b=n.useRef(null),{modelReady:w,loading:M}=af(),[E,j]=n.useState([]),[A,S]=n.useState(""),[N,C]=n.useState(!1),V=ZM("orchestrator");n.useEffect(()=>{me("/api/system/models").then(k=>{j(k.data.models),k.data.currentModel&&S(k.data.currentModel)}).catch(()=>{})},[]),n.useEffect(()=>{let k=!1,$=!1;const Q=()=>{fetch("/api/voice/providers").then(re=>re.json()).then(re=>{var J;if(k)return;x(!0);const D=!!((J=re==null?void 0:re.data)!=null&&J.anyAvailable);p(D),D&&($=!0)}).catch(()=>{})};Q();const ie=setInterval(()=>{!k&&!$&&Q()},15e3);return()=>{k=!0,clearInterval(ie)}},[]);const _=n.useRef(""),H=n.useRef("");n.useEffect(()=>{V.transcript&&V.transcript!==_.current&&(_.current=V.transcript,a(k=>[...k,{role:"user",content:V.transcript}]))},[V.transcript]),n.useEffect(()=>{V.response&&V.response!==H.current&&(H.current=V.response,a(k=>[...k,{role:"assistant",content:V.response}]))},[V.response]),n.useEffect(()=>{var k;(k=b.current)==null||k.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})},[e]);const R=async()=>{const k=l.trim();if(!k||c)return;i(""),a(ie=>[...ie,{role:"user",content:k}]),u(!0);let $="",Q=[];a(ie=>[...ie,{role:"assistant",content:""}]);try{for await(const ie of ZA(k,d,A||void 0))if(ie.type==="text")$+=ie.content,a(re=>{const D=[...re];return D[D.length-1]={role:"assistant",content:$,toolCalls:Q.length>0?[...Q]:void 0},D});else if(ie.type==="tool_use"||ie.type==="tool_call"){const re={name:ie.name,input:ie.input};Q=[...Q,re],a(D=>{const J=[...D];return J[J.length-1]={role:"assistant",content:$,toolCalls:[...Q]},J})}else ie.type==="tool_result"&&Q.length>0&&(Q=[...Q],Q[Q.length-1]={...Q[Q.length-1],output:ie.content},a(re=>{const D=[...re];return D[D.length-1]={role:"assistant",content:$,toolCalls:[...Q]},D}))}catch{$+=`
|
|
74
|
-
|
|
75
|
-
[Connection lost. Try sending your message again.]`,a(ie=>{const re=[...ie];return re[re.length-1]={role:"assistant",content:$,toolCalls:Q.length>0?[...Q]:void 0},re})}finally{u(!1)}},L=k=>{k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),R())},O=()=>{h(crypto.randomUUID()),a([]),_.current="",H.current=""},I=k=>{S(k),C(!1)},X=((Y=E.find(k=>k.id===A))==null?void 0:Y.name)||A||"Auto",K=f&&!l.trim()&&!c,B=g&&!f&&!l.trim()&&!c;return!M&&!w&&e.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(ze,{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-neutral-400",children:"Download an AI model to start chatting."}),s.jsx(O0,{to:"/settings",className:"inline-block bg-white text-black rounded-md px-4 py-2 text-sm font-medium hover:bg-neutral-200 transition-colors",children:"Go to Settings"})]})})]}):s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[s.jsx("div",{className:"px-6 pt-6 pb-0 shrink-0",children:s.jsx(ze,{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:()=>C(!N),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-lg hover:text-white hover:border-white/20 transition-colors",children:[s.jsx("span",{className:"max-w-[120px] truncate",children:X}),s.jsx(rn,{size:12})]}),N&&E.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>C(!1)}),s.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 bg-neutral-950 border border-white/10 rounded-lg py-1 min-w-[200px] shadow-lg",children:E.map(k=>s.jsxs("button",{onClick:()=>I(k.id),className:`w-full text-left px-3 py-2 text-xs hover:bg-white/[0.06] transition-colors ${A===k.id,"text-white"}`,children:[s.jsx("span",{className:"block",children:k.name}),s.jsx("span",{className:"block text-neutral-400 text-[10px]",children:k.provider})]},k.id))})]})]}),s.jsxs("button",{onClick:O,disabled:c,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10 transition-colors disabled:opacity-50",title:"New session",children:[s.jsx(Nt,{size:14})," New chat"]})]})})}),s.jsxs("div",{ref:b,className:"flex-1 overflow-y-auto min-h-0 px-6 py-4 space-y-4",children:[e.length===0&&s.jsx("div",{className:"flex items-center justify-center h-full text-neutral-400 text-sm",children:"Ask your orchestrator anything about your agents, tasks, or business."}),e.map((k,$)=>s.jsx("div",{className:`max-w-2xl ${k.role==="user"?"ml-auto":""}`,children:s.jsxs("div",{className:`px-4 py-3 text-sm ${k.role==="user"?"bg-white/10 rounded-xl text-white":"text-neutral-200"}`,children:[s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:k.content||(c&&$===e.length-1?"...":"")}),k.toolCalls&&k.toolCalls.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:k.toolCalls.map((Q,ie)=>s.jsx(sq,{toolCall:Q},ie))})]})},$))]}),s.jsx("div",{className:"border-t border-white/[0.08] px-6 py-4 shrink-0",children:s.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[s.jsx("textarea",{value:l,onChange:k=>i(k.target.value),onKeyDown:L,placeholder:"Type a message...",rows:1,className:"flex-1 bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"}),K?s.jsx("button",{onClick:()=>V.startCall(),className:"bg-white/5 border border-white/10 text-white rounded-xl px-4 hover:bg-white/10 transition-colors",title:"Start voice chat",children:s.jsx(Sn,{size:18})}):B?s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{disabled:!0,className:"border border-white/10 text-neutral-500 rounded-xl px-4 cursor-not-allowed",title:"Voice is available when Voicebox is running. Enable it in Settings.",children:s.jsx(Jm,{size:18})}),s.jsx("button",{onClick:R,disabled:c||!l.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:s.jsx(am,{size:18})})]}):s.jsx("button",{onClick:R,disabled:c||!l.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:s.jsx(am,{size:18})})]})}),V.state!=="idle"&&s.jsx(rq,{state:V.state,transcript:V.transcript,response:V.response,error:V.error,isMuted:V.isMuted,onToggleMute:V.toggleMute,onEndCall:V.endCall})]})}let iq=0;function X2(){return`lmsg-${++iq}-${Date.now()}`}function oq(e){return typeof e=="string"?e:Array.isArray(e)?e.map(a=>a.type==="text"&&typeof a.text=="string"?a.text:a.type==="tool_use"?`[Tool: ${a.name||"unknown"}]`:a.type==="tool_result"&&typeof a.content=="string"?a.content:"").filter(Boolean).join(`
|
|
76
|
-
`):String(e||"")}function cq(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"Just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);if(i<24)return`${i}h ago`;const c=Math.floor(i/24);return c<7?`${c}d ago`:new Date(e).toLocaleDateString()}function uq(){var R;const[e,a]=n.useState([]),[l,i]=n.useState([]),[c,u]=n.useState(null),[d,h]=n.useState([]),[f,p]=n.useState(!1),[g,x]=n.useState(!0),[b,w]=n.useState(!1),M=n.useRef([]),E=n.useRef({type:"orchestrator",id:null}),j=n.useRef(null);n.useEffect(()=>{me("/api/orchestrator/sessions").then(L=>a(L.sessions||[])).catch(()=>{}).finally(()=>x(!1)),me("/api/agents").then(L=>i(L.data||[])).catch(()=>{})},[]);const A=e.find(L=>L.id===c),S=(A==null?void 0:A.target_type)||"orchestrator",N=S==="agent"?((R=l.find(L=>L.id===(A==null?void 0:A.target_id)))==null?void 0:R.name)||"Agent":"Orchestrator",C=n.useCallback(async L=>{var O;try{(O=j.current)==null||O.abort();const I=await me(`/api/orchestrator/sessions/${L}`),K=(Array.isArray(I.messages)?I.messages:[]).map(B=>({role:B.role==="user"?"user":"assistant",content:oq(B.content)}));M.current=K,E.current={type:I.target_type||"orchestrator",id:I.target_id||null},u(L),p(!1),h(K.map(B=>({id:X2(),role:B.role,content:B.content}))),w(!1)}catch{}},[]),V=n.useCallback(async(L,O,I)=>{try{const X=L==="agent"&&I?`Chat with ${I}`:"New conversation",K=await me("/api/orchestrator/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:X,messages:[],target_type:L,target_id:O})}),B={id:K.id,title:K.title||X,message_count:0,target_type:L,target_id:O,updated_at:new Date().toISOString()};a(Y=>[B,...Y]),u(K.id),E.current={type:L,id:O},M.current=[],h([]),p(!1),w(!1)}catch{}},[]),_=n.useCallback(async L=>{try{await me(`/api/orchestrator/sessions/${L}`,{method:"DELETE"}),a(O=>O.filter(I=>I.id!==L)),c===L&&(u(null),h([]),M.current=[])}catch{}},[c]);n.useCallback(async()=>{var I;const L=c,O=M.current;if(!(!L||O.length===0))try{const X=((I=O.find(K=>K.role==="user"))==null?void 0:I.content)||"Untitled";await me(`/api/orchestrator/sessions/${L}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:O,title:X.slice(0,60)})}),a(K=>K.map(B=>B.id===L?{...B,message_count:O.length,title:X.slice(0,60),updated_at:new Date().toISOString()}:B))}catch{}},[c]);const H=n.useCallback(async L=>{var K;if(f||!c)return;M.current.push({role:"user",content:L});const O=X2(),I=X2();h(B=>[...B,{id:O,role:"user",content:L},{id:I,role:"assistant",content:"",isStreaming:!0}]),p(!0);let X="";try{for await(const B of ZA(L,c))B.type==="text"&&(X+=B.content,h(Y=>Y.map(k=>k.id===I?{...k,content:X}:k)))}catch{X+=`
|
|
77
|
-
|
|
78
|
-
[Connection lost. Try again.]`}finally{h(k=>k.map($=>$.id===I?{...$,content:X||"No response.",isStreaming:!1}:$)),M.current.push({role:"assistant",content:X}),p(!1);const B=c,Y=M.current;if(B&&Y.length>0){const k=((K=Y.find($=>$.role==="user"))==null?void 0:K.content)||"Untitled";a($=>$.map(Q=>Q.id===B?{...Q,message_count:Y.length,title:k.slice(0,60),updated_at:new Date().toISOString()}:Q))}}},[f,c]);return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsx("div",{className:"px-6 pt-6 pb-0",children:s.jsx(ze,{title:"Messages",subtitle:"Conversations with your agents and orchestrator"})}),s.jsxs("div",{className:"flex flex-1 min-h-0 mx-6 mb-6 border border-white/[0.08] rounded-xl overflow-hidden",children:[s.jsx("div",{className:"hidden md:flex w-72 flex-shrink-0",children:s.jsx(b7,{sessions:e,activeSessionId:c,isLoading:g,agents:l,onSelect:C,onNewConversation:V,onDelete:_})}),s.jsxs("div",{className:"md:hidden",children:[s.jsx("button",{onClick:()=>w(!0),className:"absolute top-[120px] left-8 z-30 p-2 bg-black border border-white/10 rounded-lg text-neutral-400 hover:text-white transition-colors",children:s.jsx(jN,{size:18})}),s.jsx(Ba,{children:b&&s.jsxs(s.Fragment,{children:[s.jsx(Re.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>w(!1),className:"fixed inset-0 bg-black/60 z-40"}),s.jsx(Re.div,{initial:{x:-300},animate:{x:0},exit:{x:-300},transition:{type:"spring",stiffness:350,damping:30},className:"fixed inset-y-0 left-0 w-[300px] z-50 bg-black",children:s.jsx(b7,{sessions:e,activeSessionId:c,isLoading:g,agents:l,onSelect:C,onNewConversation:V,onDelete:_,onClose:()=>w(!1)})})]})})]}),s.jsx(dq,{messages:d,streaming:f,activeSessionId:c,targetType:S,targetName:N,onSend:H})]})]})}function b7({sessions:e,activeSessionId:a,isLoading:l,agents:i,onSelect:c,onNewConversation:u,onDelete:d,onClose:h}){var j;const[f,p]=n.useState(!1),[g,x]=n.useState(null),b=e.filter(A=>A.target_type==="orchestrator"),w=e.filter(A=>A.target_type==="agent"),M=new Map;for(const A of w){const S=A.target_id||"unknown";M.has(S)||M.set(S,{name:((j=i.find(N=>N.id===S))==null?void 0:j.name)||"Agent",sessions:[]}),M.get(S).sessions.push(A)}const E=A=>{g===A?(d(A),x(null)):(x(A),setTimeout(()=>x(null),3e3))};return s.jsxs("div",{className:"flex flex-col h-full border-r border-white/[0.08] bg-black/40 w-full",children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/[0.08]",children:[s.jsx("span",{className:"text-sm font-medium text-white",children:"Conversations"}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>p(!f),className:"p-1.5 text-neutral-500 hover:text-white transition-colors rounded-md hover:bg-white/5",children:s.jsx(Nt,{size:16,weight:"bold"})}),h&&s.jsx("button",{onClick:h,className:"p-1.5 text-neutral-500 hover:text-white transition-colors md:hidden",children:s.jsx(Ca,{size:16,weight:"bold"})})]})]}),s.jsx(Ba,{children:f&&s.jsx(Re.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"border-b border-white/[0.06] overflow-hidden",children:s.jsxs("div",{className:"p-2 space-y-0.5",children:[s.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-2 py-1",children:"New conversation with"}),s.jsxs("button",{onClick:()=>{u("orchestrator",null),p(!1)},className:"flex items-center gap-2.5 w-full px-2 py-2 text-sm text-neutral-400 hover:text-white hover:bg-white/[0.06] rounded-lg transition-all",children:[s.jsx(ha,{size:14,weight:"bold",className:"text-uplink"}),"Orchestrator"]}),i.filter(A=>A.status==="active").map(A=>s.jsxs("button",{onClick:()=>{u("agent",A.id,A.name),p(!1)},className:"flex items-center gap-2.5 w-full px-2 py-2 text-sm text-neutral-400 hover:text-white hover:bg-white/[0.06] rounded-lg transition-all",children:[s.jsx(tn,{size:14,weight:"bold",className:"text-terminal"}),s.jsxs("div",{className:"text-left min-w-0",children:[s.jsx("span",{className:"block truncate",children:A.name}),s.jsx("span",{className:"block text-[10px] text-neutral-600 truncate",children:A.role})]})]},A.id))]})})}),s.jsxs("div",{className:"flex-1 overflow-y-auto",children:[l&&s.jsx("div",{className:"space-y-2 p-3",children:[...Array(4)].map((A,S)=>s.jsx("div",{className:"h-14 bg-white/[0.04] rounded-lg animate-pulse"},S))}),!l&&e.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-center px-4",children:[s.jsx(_1,{size:24,className:"text-neutral-600 mb-2"}),s.jsx("p",{className:"text-xs text-neutral-600",children:"No conversations yet"}),s.jsx("button",{onClick:()=>p(!0),className:"mt-2 text-xs text-neutral-500 hover:text-white transition-colors",children:"Start one"})]}),!l&&b.length>0&&s.jsx(y7,{label:"Orchestrator",icon:s.jsx(ha,{size:12,weight:"bold",className:"text-uplink"}),sessions:b,activeId:a,confirmId:g,onSelect:c,onDelete:E}),!l&&[...M.entries()].map(([A,S])=>s.jsx(y7,{label:S.name,icon:s.jsx(tn,{size:12,weight:"bold",className:"text-terminal"}),sessions:S.sessions,activeId:a,confirmId:g,onSelect:c,onDelete:E},A))]})]})}function y7({label:e,icon:a,sessions:l,activeId:i,confirmId:c,onSelect:u,onDelete:d}){return s.jsxs("div",{className:"py-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5",children:[a,s.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-600",children:e})]}),l.map(h=>s.jsxs("div",{className:`group flex items-center px-3 mx-1 rounded-md transition-colors cursor-pointer ${h.id===i?"bg-white/[0.08]":"hover:bg-white/[0.04]"}`,children:[s.jsxs("button",{onClick:()=>u(h.id),className:"flex-1 text-left py-2.5 min-w-0",children:[s.jsx("p",{className:"text-sm text-white truncate leading-snug",children:h.title}),s.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[s.jsx("span",{className:"text-[11px] text-neutral-600",children:cq(h.updated_at)}),s.jsxs("span",{className:"text-[11px] text-neutral-600",children:[h.message_count," msg",h.message_count!==1?"s":""]})]})]}),s.jsx("button",{onClick:f=>{f.stopPropagation(),d(h.id)},className:`p-1 rounded transition-colors shrink-0 ${c===h.id?"text-critical bg-critical/10":"text-neutral-700 hover:text-critical opacity-0 group-hover:opacity-100"}`,title:c===h.id?"Click again to confirm":"Delete",children:s.jsx(Gt,{size:14})})]},h.id))]})}function dq({messages:e,streaming:a,activeSessionId:l,targetType:i,targetName:c,onSend:u}){const d=n.useRef(null),[h,f]=n.useState("");n.useEffect(()=>{var x;(x=d.current)==null||x.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[e]);const p=()=>{const x=h.trim();!x||a||(u(x),f(""))},g=x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),p())};return l?s.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-5 py-3 border-b border-white/[0.08]",children:[i==="agent"?s.jsx(tn,{size:16,weight:"bold",className:"text-terminal"}):s.jsx(ha,{size:16,weight:"bold",className:"text-uplink"}),s.jsx("span",{className:"text-sm font-medium text-white",children:c}),a&&s.jsx("span",{className:"text-[11px] text-uplink ml-auto animate-pulse",children:"Responding..."})]}),s.jsxs("div",{ref:d,className:"flex-1 overflow-y-auto px-5 py-4 space-y-4",children:[e.length===0&&s.jsx("div",{className:"flex items-center justify-center h-full text-neutral-500 text-sm",children:"Send a message to start the conversation."}),e.map(x=>s.jsxs("div",{className:`flex gap-3 ${x.role==="user"?"flex-row-reverse":""}`,children:[s.jsx("div",{className:`w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center text-xs font-bold ${x.role==="user"?"bg-white/10 text-white":"bg-uplink/10 text-uplink"}`,children:x.role==="user"?"You":c[0]||"O"}),s.jsxs("div",{className:`max-w-[80%] rounded-xl px-4 py-3 text-sm ${x.role==="user"?"bg-white/[0.08] text-white":"bg-white/[0.03] border border-white/[0.08] text-neutral-200"}`,children:[s.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:x.content||(x.isStreaming?"...":"")}),x.isStreaming&&s.jsx("span",{className:"inline-block w-1.5 h-4 bg-uplink/70 animate-pulse ml-0.5 align-text-bottom rounded-sm"})]})]},x.id))]}),s.jsx("div",{className:"border-t border-white/[0.08] px-5 py-3",children:s.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[s.jsx("textarea",{value:h,onChange:x=>f(x.target.value),onKeyDown:g,placeholder:"Type a message...",rows:1,disabled:a,className:"flex-1 bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none disabled:opacity-50"}),s.jsx("button",{onClick:p,disabled:a||!h.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:s.jsx(am,{size:18})})]})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-3",children:[s.jsx("div",{className:"w-14 h-14 rounded-full bg-white/[0.06] flex items-center justify-center mx-auto",children:s.jsx(_1,{size:28,weight:"duotone",className:"text-neutral-500"})}),s.jsx("h3",{className:"text-lg font-semibold text-white",children:"Messages"}),s.jsx("p",{className:"text-sm text-neutral-500 max-w-xs",children:"Select a conversation or start a new one."})]})})}function CM(e){const a=Math.floor(e/86400),l=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),c=[];return a&&c.push(`${a}d`),l&&c.push(`${l}h`),c.push(`${i}m`),c.join(" ")}function hq(){const{data:e}=we("/health"),{data:a}=we("/api/system/stats");return s.jsxs(s.Fragment,{children:[e&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Runtime"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[s.jsx(Ma,{label:"Status",value:e.status,valueColor:e.status==="healthy"?"text-success":"text-warning"}),s.jsx(Ma,{label:"Version",value:`v${e.version}`}),s.jsx(Ma,{label:"Uptime",value:CM(e.uptime)}),s.jsx(Ma,{label:"Database",value:e.database}),a&&s.jsx(Ma,{label:"Memory",value:`${a.memoryMb} MB`})]})]}),a&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Stats"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[s.jsx(c1,{label:"Agents",value:String(a.totalAgents)}),s.jsx(c1,{label:"Tasks",value:String(a.totalTasks)}),s.jsx(c1,{label:"Tokens",value:a.totalTokens.toLocaleString()}),s.jsx(c1,{label:"Cost",value:`$${(a.totalCostCents/100).toFixed(2)}`})]})]})]})}function Ma({label:e,value:a,valueColor:l}){return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-neutral-400",children:e}),s.jsx("span",{className:`text-sm font-medium ${l||""}`,children:a})]})}function c1({label:e,value:a}){return s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:e}),s.jsx("p",{className:"text-lg font-bold",children:a})]})}function mq(){const{data:e}=we("/api/settings/tunnel_url"),{data:a}=we("/api/settings/cloud_url"),{data:l,refetch:i}=we("/api/settings/notification_channels"),{data:c,refetch:u}=we("/api/settings/global_mcp_servers"),d=e==null?void 0:e.value,[h,f]=n.useState(!1),[p,g]=n.useState(!1),x=(()=>{try{return c!=null&&c.value?JSON.parse(c.value):[]}catch{return[]}})(),b=(()=>{try{return l!=null&&l.value?JSON.parse(l.value):{email:!1,slack:!1,telegram:!1,whatsapp:!1}}catch{return{email:!1,slack:!1,telegram:!1,whatsapp:!1}}})(),w=n.useCallback(async E=>{g(!0);try{await me("/api/settings/global_mcp_servers",{method:"PUT",body:JSON.stringify({value:JSON.stringify(E)})}),u(),de("success","Global MCP servers updated")}catch{de("error","Couldn't update MCP servers")}finally{g(!1)}},[u]),M=n.useCallback(async E=>{f(!0);const j={...b,[E]:!b[E]};try{await me("/api/settings/notification_channels",{method:"PUT",body:JSON.stringify({value:JSON.stringify(j)})}),i(),de("success",`${E} notifications ${j[E]?"enabled":"disabled"}`)}catch{de("error","Couldn't update notification settings")}finally{f(!1)}},[b,i]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Webhooks"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[s.jsx(Ma,{label:"Tunnel",value:d?"Active":"Not connected",valueColor:d?"text-success":"text-neutral-400"}),d&&s.jsxs(s.Fragment,{children:[s.jsx(Ma,{label:"URL",value:d}),s.jsx(Ma,{label:"GHL Hook",value:`${d}/webhooks/ghl`})]}),!d&&(a==null?void 0:a.value)&&s.jsx(Ma,{label:"Cloud proxy",value:a.value,valueColor:"text-success"})]})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-1",children:"MCP Servers"}),s.jsx("p",{className:"text-xs text-neutral-400 mb-3",children:"MCP servers extend what your AI team can do. Connect tools like GitHub, databases, or file systems."}),s.jsx(NM,{servers:x,onChange:w,disabled:p})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Notifications"}),s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:["email","slack","telegram","whatsapp"].map(E=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm capitalize",children:E}),s.jsx(xl,{checked:b[E],onChange:()=>M(E),disabled:h,size:"sm"})]},E))})]})]})}async function Q2(e,a,l){const i=e.body.getReader(),c=new TextDecoder;let u="";try{for(;;){if(l!=null&&l.aborted){i.cancel();return}const{done:d,value:h}=await i.read();if(d)break;u+=c.decode(h,{stream:!0});const f=u.split(`
|
|
79
|
-
`);u=f.pop()||"";for(const p of f)if(p.startsWith("data: ")){const g=p.slice(6).trim();if(g==="[DONE]")return;let x;try{x=JSON.parse(g)}catch{continue}a(x)}}}finally{i.releaseLock()}}function fq(){const[e,a]=n.useState({installed:[],catalog:[],activeModel:"",orchestratorModel:"",device:null,memoryTier:"",ollamaRunning:!1,loading:!0,catalogLoading:!1,catalogLoaded:!1,downloading:null,openRouterKey:"",openRouterModel:"",openRouterConnected:!1,cloudProvider:"anthropic"}),l=n.useRef(null);n.useEffect(()=>()=>{var A;(A=l.current)==null||A.abort()},[]);const i=n.useCallback(async()=>{a(A=>({...A,loading:!0}));try{const A=await me("/api/models/installed");a(S=>({...S,installed:A.data.models,activeModel:A.data.activeModel,orchestratorModel:A.data.orchestratorModel||"",ollamaRunning:A.data.ollamaRunning,loading:!1}))}catch{a(A=>({...A,loading:!1}))}},[]),c=n.useCallback(async()=>{a(A=>({...A,catalogLoading:!0}));try{const A=await me("/api/models/catalog");a(S=>({...S,catalog:A.data.catalog,device:A.data.device,memoryTier:A.data.memoryTier,catalogLoading:!1,catalogLoaded:!0}))}catch{a(A=>({...A,catalogLoading:!1}))}},[]),u=n.useCallback(async A=>{let S="";a(N=>(S=N.activeModel,{...N,activeModel:A,installed:N.installed.map(C=>({...C,isActive:C.tag===A}))}));try{await me("/api/models/active",{method:"PUT",body:JSON.stringify({model:A})}),de("success","Active model updated")}catch{a(N=>({...N,activeModel:S,installed:N.installed.map(C=>({...C,isActive:C.tag===S}))})),de("error","Couldn't update active model")}},[]),d=n.useCallback(async A=>{let S="";a(N=>(S=N.orchestratorModel,{...N,orchestratorModel:A,installed:N.installed.map(C=>({...C,isOrchestrator:A?C.tag===A:!1}))}));try{await me("/api/models/orchestrator",{method:"PUT",body:JSON.stringify({model:A})}),de("success",A?"Orchestrator model updated":"Orchestrator reset to auto")}catch{a(N=>({...N,orchestratorModel:S,installed:N.installed.map(C=>({...C,isOrchestrator:S?C.tag===S:!1}))})),de("error","Couldn't update orchestrator model")}},[]),h=n.useCallback(async A=>{a(S=>({...S,installed:S.installed.map(N=>N.tag===A?{...N,status:"installed"}:N)}));try{await me(`/api/models/${encodeURIComponent(A)}/unload`,{method:"POST"}),de("success","Model unloaded from memory")}catch{await i(),de("error","Couldn't unload model")}},[i]),f=n.useCallback(async A=>{if(l.current)return;const S=new AbortController;l.current=S,a(N=>({...N,downloading:{tag:A,percent:0,message:"Setting things up..."}}));try{const N=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:S.signal});if(!N.ok||!N.body)throw new Error("Couldn't start Ollama");await Q2(N,H=>{if(a(R=>R.downloading?{...R,downloading:{...R.downloading,message:H.message}}:R),H.error)throw new Error(H.error)},S.signal),a(H=>H.downloading?{...H,downloading:{...H.downloading,percent:0,message:"Starting download..."}}:H);const C=nn(),V=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json",...C?{Authorization:`Bearer ${C}`}:{}},body:JSON.stringify({tag:A}),signal:S.signal});if(!V.ok||!V.body)throw new Error("Couldn't start download");await Q2(V,H=>{if(a(R=>R.downloading?{...R,downloading:{...R.downloading,message:H.message,percent:H.percent??R.downloading.percent}}:R),H.error)throw new Error(H.error)},S.signal),a(H=>({...H,downloading:null})),de("success","Model installed");const _=await me("/api/models/installed");a(H=>({...H,installed:_.data.models,activeModel:_.data.activeModel,orchestratorModel:_.data.orchestratorModel||"",ollamaRunning:_.data.ollamaRunning,catalog:H.catalog.map(R=>R.tag===A?{...R,installed:!0}:R)}))}catch(N){if(S.signal.aborted)return;a(C=>({...C,downloading:null})),de("error",N instanceof Error?N.message:"Download failed")}finally{l.current=null}},[]),p=n.useCallback(()=>{var A;(A=l.current)==null||A.abort(),a(S=>({...S,downloading:null}))},[]),g=n.useCallback(async A=>{try{await me(`/api/models/${encodeURIComponent(A)}`,{method:"DELETE"}),de("success","Model deleted");const S=await me("/api/models/installed");return a(N=>({...N,installed:S.data.models,activeModel:S.data.activeModel,orchestratorModel:S.data.orchestratorModel||"",ollamaRunning:S.data.ollamaRunning,catalog:N.catalog.map(C=>C.tag===A?{...C,installed:!1}:C)})),!0}catch{return de("error","Couldn't delete model"),!1}},[]),x=n.useCallback(async()=>{a(A=>({...A,downloading:{tag:"",percent:0,message:"Starting Ollama..."}}));try{const A=await fetch("/api/onboarding/ensure-ollama",{method:"POST"});if(!A.ok||!A.body)throw new Error("Couldn't start Ollama");await Q2(A,S=>{if(a(N=>N.downloading?{...N,downloading:{...N.downloading,message:S.message}}:N),S.error)throw new Error(S.error)}),a(S=>({...S,downloading:null,ollamaRunning:!0})),de("success","Ollama is running"),await i()}catch(A){a(S=>({...S,downloading:null})),de("error",A instanceof Error?A.message:"Couldn't start Ollama")}},[i]),b=n.useCallback(async()=>{var A;try{const[S,N]=await Promise.all([me("/api/settings/openrouter_api_key"),me("/api/settings/openrouter_model")]),C=!!((A=S.data)!=null&&A.value);let V=!1;if(C)try{V=(await me("/api/models/openrouter")).data.configured}catch{V=!1}a(_=>{var H,R;return{..._,openRouterKey:((H=S.data)==null?void 0:H.value)||"",openRouterModel:((R=N.data)==null?void 0:R.value)||"",openRouterConnected:V}})}catch{}},[]),w=n.useCallback(async A=>{try{if(await me("/api/settings/openrouter_api_key",{method:"PUT",body:JSON.stringify({value:A})}),A)try{const S=await me("/api/models/openrouter"),N=S.data.configured&&S.data.models.length>0;a(C=>({...C,openRouterKey:"****"+A.slice(-4),openRouterConnected:N})),de("success",N?"OpenRouter connected":"Key saved but couldn't reach OpenRouter")}catch{a(S=>({...S,openRouterKey:"****"+A.slice(-4),openRouterConnected:!1})),de("success","OpenRouter API key saved")}else a(S=>({...S,openRouterKey:"",openRouterConnected:!1})),de("success","OpenRouter API key removed")}catch{de("error","Couldn't save OpenRouter API key")}},[]),M=n.useCallback(async A=>{try{await me("/api/settings/openrouter_model",{method:"PUT",body:JSON.stringify({value:A})}),a(S=>({...S,openRouterModel:A})),de("success","OpenRouter model updated")}catch{de("error","Couldn't update OpenRouter model")}},[]),E=n.useCallback(async()=>{var A;try{const N=(A=(await me("/api/settings/cloud_provider")).data)==null?void 0:A.value;(N==="anthropic"||N==="openrouter")&&a(C=>({...C,cloudProvider:N}))}catch{}},[]),j=n.useCallback(async A=>{try{await me("/api/settings/cloud_provider",{method:"PUT",body:JSON.stringify({value:A})}),a(S=>({...S,cloudProvider:A})),de("success",`Cloud provider set to ${A==="anthropic"?"Anthropic":"OpenRouter"}`)}catch{de("error","Couldn't update cloud provider")}},[]);return{...e,fetchInstalled:i,fetchCatalog:c,setActiveModel:u,setOrchestratorModel:d,unloadModel:h,installModel:f,cancelDownload:p,deleteModel:g,startOllama:x,fetchOpenRouter:b,saveOpenRouterKey:w,setOpenRouterModel:M,fetchCloudProvider:E,setCloudProvider:j}}const pq=1e4;function gq(){const[e,a]=n.useState(null),[l,i]=n.useState(!0),c=n.useRef(0),u=n.useCallback(async()=>{try{const d=await me("/api/inference/status");a(d)}catch{}finally{i(!1)}},[]);return n.useEffect(()=>{u();const d=setInterval(u,pq);return()=>clearInterval(d)},[u]),rf(n.useCallback(d=>{(d==="model:switch-started"||d==="model:switch-complete"||d==="model:switch-failed"||d==="inference:capabilities-changed")&&(c.current++,u())},[u])),{status:e,loading:l,refetch:u}}function xq(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function J2({label:e,color:a}){return s.jsx("span",{className:`inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-medium rounded ${a}`,children:e})}function vq({models:e,downloading:a,onSetActive:l,onSetOrchestrator:i,onUnload:c,onDelete:u,onCancelDownload:d}){return e.length===0&&!a?s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-6 text-center",children:[s.jsx("p",{className:"text-sm text-neutral-400 mb-1",children:"No models installed yet"}),s.jsx("p",{className:"text-xs text-neutral-400/70",children:"Browse the catalog below to install your first model"})]}):s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[a&&!e.some(h=>h.tag===a.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:a.tag}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mt,{size:14,className:"animate-spin text-white"}),s.jsxs("span",{className:"text-xs text-neutral-400",children:[a.percent,"%"]}),s.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]})]}),s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${a.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:a.message})]})]}),e.map(h=>{const f=(a==null?void 0:a.tag)===h.tag,p=h.totalRequests>0?xq(Math.round(h.totalDurationMs/h.totalRequests)):null;return s.jsxs("div",{className:`px-4 py-3 ${h.isActive?"border-l-2 border-l-white bg-white/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:h.label}),h.family&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:h.family}),h.isActive&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-white rounded font-medium",children:"Active"}),h.isOrchestrator&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded font-medium",children:"Orchestrator"}),h.status==="loaded"&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded",children:"Loaded"})]}),s.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[h.mlxModelId&&s.jsx(J2,{label:"MLX",color:"bg-emerald-500/20 text-emerald-400"}),h.vision&&s.jsx(J2,{label:"Vision",color:"bg-purple-500/20 text-purple-400"}),h.toolCalling&&s.jsx(J2,{label:"Tools",color:"bg-white/10 text-neutral-300"}),h.sizeGB&&s.jsxs("span",{className:"text-[10px] text-neutral-400",children:[h.sizeGB," GB"]}),h.tag!==h.label&&s.jsx("span",{className:"text-[10px] text-neutral-600 font-mono",children:h.tag})]})]}),s.jsxs("div",{className:"hidden sm:flex items-center gap-4 text-[11px] text-neutral-400 shrink-0",children:[h.totalRequests>0&&s.jsxs("span",{children:[h.totalRequests.toLocaleString()," ",h.totalRequests===1?"request":"requests"]}),p&&s.jsxs("span",{children:["avg ",p]})]}),s.jsx("div",{className:"flex items-center gap-1.5 shrink-0",children:f?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mt,{size:14,className:"animate-spin text-white"}),s.jsxs("span",{className:"text-xs text-neutral-400",children:[a.percent,"%"]}),s.jsx("button",{onClick:d,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):s.jsxs(s.Fragment,{children:[!h.isActive&&s.jsx("button",{onClick:()=>l(h.tag),className:"px-2 py-1 text-[11px] text-neutral-400 hover:text-white hover:bg-white/10 rounded transition-colors",title:"Set as active model",children:s.jsx(pF,{size:14})}),s.jsx("button",{onClick:()=>i(h.isOrchestrator?"":h.tag),className:`px-2 py-1 text-[11px] rounded transition-colors ${h.isOrchestrator?"text-purple-400 hover:text-neutral-400 hover:bg-white/[0.06]":"text-neutral-400 hover:text-purple-400 hover:bg-purple-500/10"}`,title:h.isOrchestrator?"Reset orchestrator to auto":"Set as orchestrator model",children:s.jsx(DO,{size:14})}),h.status==="loaded"&&!h.isActive&&!h.isOrchestrator&&s.jsx("button",{onClick:()=>c(h.tag),className:"px-2 py-1 text-[11px] text-neutral-400 hover:text-warning hover:bg-warning/10 rounded transition-colors",title:"Unload from memory",children:s.jsx(GO,{size:14})}),s.jsx("button",{onClick:()=>u(h.tag),className:"px-2 py-1 text-[11px] text-neutral-400 hover:text-critical hover:bg-critical/10 rounded transition-colors",title:"Delete model",children:s.jsx(Gt,{size:14})})]})})]}),f&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${a.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:a.message})]})]},h.tag)})]})}const w7={mlx:{label:"MLX",color:"text-emerald-400",bg:"bg-emerald-500/20"},"llama-cpp":{label:"llama.cpp",color:"text-sky-400",bg:"bg-sky-500/20"},ollama:{label:"Ollama",color:"text-neutral-400",bg:"bg-white/[0.06]"}};function bq({capacity:e}){const a=e.totalVramGB>0?Math.min(100,Math.round(e.usedVramGB/e.totalVramGB*100)):0,l=a>80?"bg-red-500":a>60?"bg-amber-500":"bg-emerald-500";return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:"VRAM"}),s.jsx("div",{className:"w-20 bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:`${l} h-1.5 rounded-full transition-all duration-500`,style:{width:`${a}%`}})}),s.jsxs("span",{className:"text-[10px] text-neutral-500 whitespace-nowrap",children:[e.usedVramGB.toFixed(1),"/",e.totalVramGB.toFixed(0)," GB"]})]})}function yq({activeProvider:e,mlxModel:a,switchInProgress:l,switchState:i,capacity:c}){const u=w7[e]||w7.ollama;return s.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 mb-3",children:s.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium ${u.bg} ${u.color}`,children:[e==="mlx"?s.jsx(ha,{size:10,weight:"fill"}):s.jsx(BO,{size:10}),u.label]}),a&&s.jsx("span",{className:"text-[10px] text-neutral-500 font-mono truncate max-w-[200px]",children:a})]}),(l||i)&&s.jsx("div",{className:"flex items-center gap-1.5",children:(i==null?void 0:i.status)==="switching"||l?s.jsxs(s.Fragment,{children:[s.jsx(mt,{size:12,className:"animate-spin text-sky-400"}),s.jsxs("span",{className:"text-[10px] text-sky-400",children:["Switching to ",(i==null?void 0:i.model)||"new model","..."]})]}):(i==null?void 0:i.status)==="complete"?s.jsxs(s.Fragment,{children:[s.jsx(q0,{size:12,className:"text-emerald-400"}),s.jsxs("span",{className:"text-[10px] text-emerald-400",children:["Now using ",i.model," via ",i.provider]})]}):(i==null?void 0:i.status)==="failed"?s.jsxs(s.Fragment,{children:[s.jsx(Cl,{size:12,className:"text-red-400"}),s.jsxs("span",{className:"text-[10px] text-red-400",children:["Switch failed: ",i.reason]})]}):null}),c&&c.totalVramGB>0&&s.jsx(bq,{capacity:c})]})})}const wq=[{value:"all",label:"All"},{value:"fits",label:"Fits your device"},{value:"vision",label:"Vision"},{value:"tools",label:"Tool calling"}];function Aq(e){return{tiny:"Tiny (< 4 GB)",small:"Small (4-8 GB)",medium:"Medium (8-16 GB)",large:"Large (16-32 GB)",xlarge:"XLarge (32 GB+)"}[e]||e}function jq({catalog:e,device:a,memoryTier:l,loading:i,loaded:c,downloading:u,onInstall:d,onCancelDownload:h,onFetchCatalog:f}){const[p,g]=n.useState(!1),[x,b]=n.useState("all"),w=()=>{!p&&!c&&f(),g(A=>!A)},M=e.filter(A=>x==="fits"?A.fits:x==="vision"?A.vision:x==="tools"?A.toolCalling:!0),j=["tiny","small","medium","large","xlarge"].map(A=>({tier:A,models:M.filter(S=>S.tier===A)})).filter(A=>A.models.length>0);return s.jsxs("div",{children:[s.jsxs("button",{onClick:w,className:"flex items-center gap-2 text-sm font-medium text-neutral-400 uppercase tracking-wider hover:text-white transition-colors mb-3",children:["Browse Models",p?s.jsx(zO,{size:14}):s.jsx(rn,{size:14})]}),p&&s.jsxs(s.Fragment,{children:[a&&s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 mb-4 text-xs text-neutral-400",children:[s.jsx("span",{children:a.cpuModel}),s.jsx("span",{className:"mx-1.5",children:"·"}),s.jsxs("span",{children:[a.totalMemoryGB," GB RAM"]}),s.jsx("span",{className:"mx-1.5",children:"·"}),s.jsxs("span",{children:[l," tier"]})]}),s.jsx("div",{className:"flex gap-1.5 mb-4 flex-wrap",children:wq.map(A=>s.jsx("button",{onClick:()=>b(A.value),className:`px-2.5 py-1 text-[11px] rounded-full border transition-colors ${x===A.value?"border-white/20 bg-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/20"}`,children:A.label},A.value))}),i?s.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[s.jsx(mt,{size:16,className:"animate-spin"})," Loading catalog..."]}):s.jsxs("div",{className:"space-y-4",children:[j.map(A=>s.jsxs("div",{children:[s.jsx("h4",{className:"text-[11px] font-medium text-neutral-400/70 uppercase tracking-wider mb-2",children:Aq(A.tier)}),s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:A.models.map(S=>{const N=(u==null?void 0:u.tag)===S.tag,C=!u&&!S.installed;return s.jsxs("div",{className:`px-4 py-3 ${S.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:S.label}),s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:S.family}),S.recommended&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded font-medium",children:"Recommended"})]}),s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:S.description}),s.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[S.vision&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded",children:"Vision"}),S.toolCalling&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-neutral-300 rounded",children:"Tools"}),s.jsxs("span",{className:"text-[10px] text-neutral-400",children:[S.sizeGB," GB"]}),!S.fits&&s.jsxs("span",{className:"text-[10px] text-warning",children:["Needs ",S.minRAM," GB RAM"]})]})]}),s.jsx("div",{className:"shrink-0",children:S.installed?s.jsx("span",{className:"text-[11px] text-success px-2 py-1",children:"Installed"}):N?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mt,{size:14,className:"animate-spin text-white"}),s.jsxs("span",{className:"text-xs text-neutral-400",children:[u.percent,"%"]}),s.jsx("button",{onClick:h,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):s.jsxs("button",{onClick:()=>d(S.tag),disabled:!C||!S.fits,className:"flex items-center gap-1 px-2.5 py-1 text-[11px] font-medium bg-white text-black rounded hover:bg-neutral-200 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[s.jsx(PO,{size:12})," Install"]})})]}),N&&s.jsxs("div",{className:"mt-2",children:[s.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:s.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${u.percent}%`}})}),s.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:u.message})]})]},S.tag)})})]},A.tier)),M.length===0&&s.jsx("p",{className:"text-sm text-neutral-400 text-center py-4",children:"No models match this filter"})]})]})]})}function Eq({open:e,modelTag:a,modelLabel:l,isActive:i,isOrchestrator:c,loading:u,onConfirm:d,onClose:h}){return s.jsxs(fa,{open:e,onClose:h,title:"Delete model",children:[s.jsxs("p",{className:"text-sm mb-3",children:["Remove ",s.jsx("strong",{children:l})," ",s.jsxs("span",{className:"text-neutral-400 font-mono text-xs",children:["(",a,")"]})," from your machine?"]}),i&&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."})}),c&&s.jsx("div",{className:"bg-purple-500/10 border border-purple-500/30 rounded-lg p-3 mb-3",children:s.jsx("p",{className:"text-xs text-purple-400",children:"This is your orchestrator model. Deleting it will reset the orchestrator to auto mode."})}),s.jsx("p",{className:"text-xs text-neutral-400 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-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:"Cancel"}),s.jsxs("button",{onClick:d,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(mt,{size:12,className:"animate-spin"}),u?"Deleting...":"Delete"]})]})]})}function Nq(){var at;const{data:e,refetch:a}=we("/api/settings/anthropic_api_key"),[l,i]=n.useState(!1),[c,u]=n.useState(""),[d,h]=n.useState(!1),[f,p]=n.useState(null),[g,x]=n.useState(!1),[b,w]=n.useState(!1),[M,E]=n.useState(""),[j,A]=n.useState(!1),[S,N]=n.useState(""),[C,V]=n.useState([]),[_,H]=n.useState(!1),{installed:R,catalog:L,device:O,memoryTier:I,ollamaRunning:X,loading:K,catalogLoading:B,catalogLoaded:Y,downloading:k,openRouterKey:$,openRouterModel:Q,openRouterConnected:ie,fetchInstalled:re,fetchCatalog:D,setActiveModel:J,setOrchestratorModel:ne,unloadModel:z,installModel:F,cancelDownload:P,deleteModel:oe,startOllama:fe,fetchOpenRouter:ve,saveOpenRouterKey:ke,setOpenRouterModel:Pe,cloudProvider:qe,fetchCloudProvider:ot,setCloudProvider:$e}=fq(),{status:je}=gq(),[qt,Ne]=n.useState(null);rf(n.useCallback((Ae,Qe)=>{const Be=Qe;Ae==="model:switch-started"?Ne({model:Be.model,status:"switching"}):Ae==="model:switch-complete"?(Ne({model:Be.model,status:"complete",provider:Be.provider}),re(),setTimeout(()=>Ne(null),3e3)):Ae==="model:switch-failed"&&(Ne({model:Be.model,status:"failed",reason:Be.reason}),setTimeout(()=>Ne(null),5e3))},[re])),n.useEffect(()=>{re(),ve(),ot()},[re,ve,ot]),n.useEffect(()=>{ie&&(H(!0),me("/api/models/openrouter").then(Ae=>{V(Ae.data.models),H(!1)}).catch(()=>H(!1)))},[ie]);const Tt=n.useMemo(()=>{const Ae=S.toLowerCase().trim();return Ae?C.filter(Qe=>Qe.id.toLowerCase().includes(Ae)||Qe.name.toLowerCase().includes(Ae)):C},[C,S]),se=(Ae,Qe=8)=>Ae?Ae.slice(0,Qe)+"•".repeat(Math.max(0,Math.min(Ae.length-Qe,20))):"Not set",ft=async()=>{if(c.trim()){h(!0);try{await me("/api/settings/anthropic_api_key",{method:"PUT",body:JSON.stringify({value:c.trim()})}),de("success","API key updated"),i(!1),u(""),a()}catch{de("error","Couldn't save API key")}finally{h(!1)}}},Te=async()=>{A(!0);try{await ke(M.trim()),w(!1),E("")}catch{de("error","Couldn't save OpenRouter key")}finally{A(!1)}},ct=Ae=>{const Qe=R.find(Be=>Be.tag===Ae);p({tag:Ae,label:(Qe==null?void 0:Qe.label)||Ae,isActive:(Qe==null?void 0:Qe.isActive)||!1,isOrchestrator:(Qe==null?void 0:Qe.isOrchestrator)||!1})},vt=n.useCallback(async()=>{if(!f||g)return;x(!0);const Ae=await oe(f.tag);x(!1),Ae&&p(null)},[f,g,oe]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Cloud Provider"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{onClick:()=>$e("anthropic"),className:`flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors border ${qe==="anthropic"?"bg-white/10 border-white/20 text-white":"bg-white/[0.03] border-white/[0.06] text-neutral-400 hover:bg-white/[0.06]"}`,children:"Anthropic"}),s.jsx("button",{onClick:()=>$e("openrouter"),className:`flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors border ${qe==="openrouter"?"bg-white/10 border-white/20 text-white":"bg-white/[0.03] border-white/[0.06] text-neutral-400 hover:bg-white/[0.06]"}`,children:"OpenRouter"})]}),s.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"Which provider to use when running in cloud mode"})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Anthropic API"}),s.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:l?s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"password",value:c,onChange:Ae=>u(Ae.target.value),placeholder:"sk-ant-...",className:"flex-1 bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0}),s.jsx("button",{onClick:ft,disabled:d||!c.trim(),className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:s.jsx($r,{size:16})}),s.jsx("button",{onClick:()=>{i(!1),u("")},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(Ca,{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-neutral-400",children:"API Key"}),s.jsx("span",{className:"text-sm font-medium ml-3",children:se(e==null?void 0:e.value,12)})]}),s.jsx("button",{onClick:()=>i(!0),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(nm,{size:14})})]})})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:s.jsxs("span",{className:"flex items-center gap-1.5",children:["OpenRouter",ie&&s.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-success"})]})}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[b?s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"password",value:M,onChange:Ae=>E(Ae.target.value),placeholder:"sk-or-...",className:"flex-1 bg-white/[0.06] border border-white/[0.08] rounded px-3 py-2 text-sm text-white placeholder:text-neutral-400/50 focus:outline-none focus:border-white/20",autoFocus:!0}),s.jsx("button",{onClick:Te,disabled:j,className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:s.jsx($r,{size:16})}),s.jsx("button",{onClick:()=>{w(!1),E("")},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(Ca,{size:16})})]}),s.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"300+ models from every AI lab. Leave empty to remove."})]}):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-neutral-400",children:"API Key"}),s.jsx("span",{className:"text-sm font-medium ml-3",children:se($,8)})]}),s.jsx("button",{onClick:()=>w(!0),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(nm,{size:14})})]}),ie&&s.jsxs("div",{className:"px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(ha,{size:14,className:"text-amber-400"}),s.jsx("span",{className:"text-sm text-neutral-400",children:"Model"}),Q&&s.jsx("span",{className:"text-xs text-white/60 ml-auto",children:Q})]}),s.jsxs("div",{className:"relative mb-2",children:[s.jsx(sn,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),s.jsx("input",{type:"text",value:S,onChange:Ae=>N(Ae.target.value),placeholder:"Search 300+ models...",className:"w-full bg-white/[0.04] border border-white/[0.08] rounded pl-8 pr-3 py-1.5 text-xs text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),_?s.jsxs("div",{className:"flex items-center gap-1.5 py-2 text-xs text-neutral-400",children:[s.jsx(mt,{size:12,className:"animate-spin"})," Loading models..."]}):s.jsxs("div",{className:"max-h-48 overflow-y-auto space-y-px",children:[Tt.slice(0,50).map(Ae=>{const Qe=Ae.id===Q,Be=Ae.contextLength>=1e6?`${Math.round(Ae.contextLength/1e6)}M`:Ae.contextLength>=1e3?`${Math.round(Ae.contextLength/1e3)}K`:String(Ae.contextLength);return s.jsxs("button",{onClick:()=>Pe(Ae.id),className:`w-full text-left px-2.5 py-1.5 rounded text-xs transition-colors ${Qe?"bg-white/10 text-white":"text-neutral-300 hover:bg-white/[0.06]"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"truncate font-medium",children:Ae.name}),s.jsxs("span",{className:"flex items-center gap-1.5 text-neutral-500 shrink-0 ml-2",children:[Ae.isFree&&s.jsx("span",{className:"text-green-400",children:"free"}),Ae.supportsTools&&s.jsx("span",{children:"tools"}),Ae.supportsVision&&s.jsx("span",{children:"vision"}),s.jsx("span",{children:Be})]})]}),s.jsx("div",{className:"text-[10px] text-neutral-500 truncate",children:Ae.id})]},Ae.id)}),Tt.length>50&&s.jsxs("p",{className:"text-[10px] text-neutral-500 px-2.5 py-1",children:[Tt.length-50," more. Refine your search."]}),Tt.length===0&&s.jsx("p",{className:"text-xs text-neutral-500 px-2.5 py-2",children:S?"No models match your search":"No models available"})]})]})]})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Local Models"}),je&&s.jsx(yq,{activeProvider:je.activeProvider,mlxModel:(at=je.mlx)==null?void 0:at.model,switchInProgress:je.switchInProgress,switchState:qt,capacity:je.capacity}),!K&&!X&&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(tf,{size:16,className:"text-warning shrink-0"}),s.jsx("p",{className:"text-xs text-warning",children:"Ollama is not running"})]}),s.jsx("button",{onClick:fe,disabled:!!k,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:(k==null?void 0:k.tag)===""?"Starting...":"Start Ollama"})]}),K?s.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[s.jsx(mt,{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-neutral-400",children:["Installed Models",R.length>0&&s.jsxs("span",{className:"ml-1.5 text-neutral-600",children:["(",R.length,")"]})]})}),s.jsx(vq,{models:R,downloading:k,onSetActive:J,onSetOrchestrator:ne,onUnload:z,onDelete:ct,onCancelDownload:P})]}),s.jsx(jq,{catalog:L,device:O,memoryTier:I,loading:B,loaded:Y,downloading:k,onInstall:F,onCancelDownload:P,onFetchCatalog:D})]})]}),s.jsx(Eq,{open:!!f,modelTag:(f==null?void 0:f.tag)||"",modelLabel:(f==null?void 0:f.label)||"",isActive:(f==null?void 0:f.isActive)||!1,isOrchestrator:(f==null?void 0:f.isOrchestrator)||!1,loading:g,onConfirm:vt,onClose:()=>{g||p(null)}})]})}function Mq(){const[e,a]=n.useState(null),[l,i]=n.useState([]),[c,u]=n.useState(""),[d,h]=n.useState(!1),[f,p]=n.useState(!1),g=n.useCallback(async()=>{var M;try{const E=await me("/api/voice/providers");if(a(E.data),E.data.voiceboxAvailable){const[j,A]=await Promise.all([me("/api/voice/profiles"),me("/api/settings/orchestrator_voice_profile_id")]);i(j.data||[]),u(((M=A.data)==null?void 0:M.value)||"")}}catch{a(null)}},[]),x=n.useRef(!1);n.useEffect(()=>{e!=null&&e.voiceboxAvailable&&(x.current=!0)},[e==null?void 0:e.voiceboxAvailable]),n.useEffect(()=>{let M=!1,E;return(async()=>{await g(),!M&&!x.current&&(E=setInterval(async()=>{if(M||x.current){E&&clearInterval(E);return}await g()},1e4))})(),()=>{M=!0,E&&clearInterval(E)}},[g]);const b=n.useCallback(async()=>{p(!0);try{await me("/api/voice/enable",{method:"POST"}),await g()}catch{}finally{p(!1)}},[g]),w=n.useCallback(async M=>{h(!0),u(M);try{await me("/api/settings/orchestrator_voice_profile_id",{method:"PUT",body:JSON.stringify({value:M})})}catch{u("")}finally{h(!1)}},[]);return s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Voice"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[e&&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 ${e.voiceboxAvailable?"bg-success":"bg-white/10"}`}),s.jsx("span",{className:e.voiceboxAvailable?"":"text-neutral-400",children:e.voiceboxAvailable?"Voicebox is running":"Voicebox is not running"})]})}),e&&!e.voiceboxAvailable&&s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("button",{onClick:b,disabled:f,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10 disabled:opacity-50 transition-colors",children:f?s.jsxs(s.Fragment,{children:[s.jsx(mt,{size:14,className:"animate-spin"})," Starting Voicebox..."]}):"Enable Voicebox"}),s.jsx("p",{className:"text-xs text-neutral-400 mt-1.5",children:"Local speech-to-text and text-to-speech using Whisper and Coqui TTS."})]}),(e==null?void 0:e.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-neutral-400",children:"Voice used when chatting from the main conversation"})]}),s.jsxs("select",{value:c,onChange:M=>w(M.target.value),disabled:d,className:"bg-black border border-white/[0.08] rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[s.jsx("option",{value:"",children:"Default voice"}),l.map(M=>s.jsx("option",{value:M.id,children:M.name},M.id))]})]})})]})]})}const Sq=["Cloud sync across devices","Cloud task dispatch","OAuth integrations (Gmail, Slack)","Webhook relay","Cloud dashboard at ohwow.fun","Team management"];function Zq(){const{tier:e,loading:a}=af(),l=u0(),[i,c]=n.useState("general"),u=e!=="free",{data:d}=we("/health"),{data:h}=we("/api/settings/license_key"),{data:f}=we("/api/settings/cloud_url"),p=()=>{SA(),l("/login",{replace:!0})},g=(x,b=8)=>x?x.slice(0,b)+"•".repeat(Math.max(0,Math.min(x.length-b,20))):"Not set";return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Settings",subtitle:"Runtime configuration"}),!a&&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 ${u?"bg-success/15 text-success":"bg-cyan-500/15 text-cyan-400"}`,children:u?"Connected":"Local"})}),d&&s.jsxs("div",{className:"mb-2 text-xs text-neutral-400",children:[s.jsx("span",{className:d.status==="healthy"?"text-success":"text-warning",children:"●"})," ","Connected · Running on v",d.version," · Up ",CM(d.uptime)]}),s.jsx("div",{className:"flex gap-1 mb-6 border-b border-white/[0.08]",children:[{key:"general",label:"General"},{key:"integrations",label:"Integrations"},{key:"models",label:"Models"}].map(x=>s.jsx("button",{onClick:()=>c(x.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${i===x.key?"border-white text-white":"border-transparent text-neutral-400 hover:text-white"}`,children:x.label},x.key))}),i==="general"&&s.jsxs(s.Fragment,{children:[u&&!a&&s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Connection"}),s.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[s.jsx(Ma,{label:"Cloud URL",value:(f==null?void 0:f.value)||"Not configured"}),s.jsx(Ma,{label:"Status",value:"Connected",valueColor:"text-success"}),s.jsx(Ma,{label:"License key",value:g(h==null?void 0:h.value)})]})]}),s.jsx(hq,{}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Quick links"}),s.jsxs("div",{className:"flex gap-2 flex-wrap",children:[s.jsx(O0,{to:"/connections",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"A2A Connections"}),s.jsx(O0,{to:"/schedules",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"Schedules"}),s.jsx(O0,{to:"/automations",className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/[0.08] rounded-lg hover:border-white/20 transition-colors",children:"Automations"})]})]}),!u&&!a&&s.jsxs("div",{"data-testid":"runtime-settings-upgrade-cta",className:"mb-6 bg-white/[0.02] border border-white/[0.08] rounded-lg p-5",children:[s.jsx("h3",{className:"text-sm font-semibold text-white mb-2",children:"Connect to ohwow.fun cloud"}),s.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:"Add cloud features to your local runtime:"}),s.jsx("ul",{className:"space-y-1.5 mb-4",children:Sq.map(x=>s.jsxs("li",{className:"flex items-center gap-2 text-xs text-neutral-400",children:[s.jsx("span",{className:"text-white",children:"+"}),x]},x))}),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-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Get a license key"})]}),s.jsx("div",{className:"mb-6",children:s.jsx("button",{onClick:p,className:"px-4 py-2 text-sm text-critical border border-critical/30 rounded-lg hover:bg-critical/10 transition-colors",children:"Disconnect"})})]}),i==="integrations"&&s.jsx(mq,{}),i==="models"&&s.jsx(Nq,{}),i==="integrations"&&s.jsx(Mq,{})]})}const Cq=["all","lead","client","partner","vendor"];function Hq(){const e=Ia(["contact:upserted","contact:removed"]),[a,l]=n.useState("all"),[i,c]=n.useState(""),[u,d]=n.useState(!1),{data:h,loading:f,refetch:p}=we("/api/contacts",[e]),g=n.useMemo(()=>{if(!h)return[];let x=h;if(a!=="all"&&(x=x.filter(b=>b.contact_type===a)),i.trim()){const b=i.toLowerCase();x=x.filter(w=>w.name.toLowerCase().includes(b)||(w.email||"").toLowerCase().includes(b)||(w.company||"").toLowerCase().includes(b))}return x},[h,a,i]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Contacts",subtitle:"People and companies your agents interact with",action:s.jsxs("button",{onClick:()=>d(!u),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," New contact"]})}),u&&s.jsx(Vq,{onClose:()=>d(!1),onSuccess:p}),s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:Cq.map(x=>s.jsx("button",{onClick:()=>l(x),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===x?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:x},x))}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(sn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:i,onChange:x=>c(x.target.value),placeholder:"Search by name, email, or company...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),f?s.jsx(We,{count:5}):g.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:g.map(x=>s.jsxs(Et,{to:`/contacts/${x.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:x.name}),s.jsxs("p",{className:"text-xs text-neutral-400",children:[x.email&&s.jsx("span",{children:x.email}),x.email&&x.company&&" · ",x.company&&s.jsx("span",{className:"text-white",children:x.company})]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("span",{className:"text-xs text-neutral-400 capitalize",children:x.contact_type}),s.jsx(it,{status:x.status})]})]},x.id))}):s.jsx(Ct,{icon:s.jsx(xE,{size:32}),title:"No contacts yet",description:i?`No contacts matching "${i}".`:"Add your first contact to get started."})]})}function Vq({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState("lead"),[g,x]=n.useState(!1),b=async w=>{if(w.preventDefault(),!!l.trim()){x(!0);try{await me("/api/contacts",{method:"POST",body:JSON.stringify({name:l.trim(),email:c.trim()||void 0,company:d.trim()||void 0,contact_type:f})}),a(),e()}catch{}finally{x(!1)}}};return s.jsxs("form",{onSubmit:b,className:"border border-white/[0.08] 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-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:w=>i(w.target.value),placeholder:"Contact name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),s.jsx("input",{value:c,onChange:w=>u(w.target.value),placeholder:"email@example.com",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),s.jsx("input",{value:d,onChange:w=>h(w.target.value),placeholder:"Company name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Type"}),s.jsxs("select",{value:f,onChange:w=>p(w.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",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:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:g||!l.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:g?"Creating...":"Create contact"})]})]})}function _q(){const{id:e}=bl(),a=u0(),l=Ia(["contact:upserted"]),{data:i,loading:c,refetch:u}=we(e?`/api/contacts/${e}`:null,[l]),{data:d}=we(e?`/api/contacts/${e}/timeline`:null,[l]),[h,f]=n.useState(!1),[p,g]=n.useState(""),[x,b]=n.useState(""),[w,M]=n.useState(""),[E,j]=n.useState(""),[A,S]=n.useState(""),[N,C]=n.useState(!1),[V,_]=n.useState(!1),H=n.useCallback(()=>{i&&(g(i.name),b(i.email||""),M(i.phone||""),j(i.company||""),S(i.notes||""),f(!0))},[i]),R=n.useCallback(async()=>{if(!(!e||!p.trim())){C(!0);try{await me(`/api/contacts/${e}`,{method:"PUT",body:JSON.stringify({name:p.trim(),email:x.trim()||null,phone:w.trim()||null,company:E.trim()||null,notes:A.trim()||null})}),f(!1),u()}catch{}finally{C(!1)}}},[e,p,x,w,E,A,u]),L=n.useCallback(async()=>{if(!(!e||!confirm("Delete this contact? This cannot be undone."))){_(!0);try{await me(`/api/contacts/${e}`,{method:"DELETE"}),a("/contacts")}catch{_(!1)}}},[e,a]);return c?s.jsx("div",{className:"p-6",children:s.jsx(We,{count:4})}):i?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsxs(Et,{to:"/contacts",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[s.jsx(Qr,{size:14})," Back to contacts"]}),s.jsx(ze,{title:i.name,subtitle:`${i.contact_type} · Added ${new Date(i.created_at).toLocaleDateString()}`,action:s.jsxs("div",{className:"flex items-center gap-2",children:[!h&&s.jsx("button",{onClick:H,className:"px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-lg hover:bg-white/10 transition-colors",children:"Edit"}),s.jsxs("button",{onClick:L,disabled:V,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(Gt,{size:14})," ",V?"Deleting...":"Delete"]}),s.jsx(it,{status:i.status})]})}),h?s.jsxs("div",{className:"border border-white/[0.08] 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-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:p,onChange:O=>g(O.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),s.jsx("input",{value:x,onChange:O=>b(O.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Phone"}),s.jsx("input",{value:w,onChange:O=>M(O.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),s.jsx("input",{value:E,onChange:O=>j(O.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),s.jsx("textarea",{value:A,onChange:O=>S(O.target.value),rows:3,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white resize-none focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{onClick:()=>f(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{onClick:R,disabled:N||!p.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:N?"Saving...":"Save"})]})]}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08] mb-6",children:[{label:"Email",value:i.email},{label:"Phone",value:i.phone},{label:"Company",value:i.company},{label:"Notes",value:i.notes}].map(O=>O.value?s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsx("span",{className:"text-sm text-neutral-400",children:O.label}),s.jsx("span",{className:"text-sm font-medium",children:O.value})]},O.label):null)}),s.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Timeline"}),d!=null&&d.length?s.jsx("div",{className:"space-y-2",children:d.map(O=>s.jsxs("div",{className:"border border-white/[0.08] 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-white font-medium",children:O.event_type.replace(/_/g," ")}),s.jsx("span",{className:"text-xs text-neutral-400",children:new Date(O.created_at).toLocaleString()})]}),O.description&&s.jsx("p",{className:"text-sm",children:O.description})]},O.id))}):s.jsx(Ct,{icon:s.jsx(xE,{size:32}),title:"No activity yet",description:"Events will appear here as agents interact with this contact."})]}):s.jsx("div",{className:"p-6 text-neutral-400",children:"Contact not found"})}const Tq=["all","active","completed","archived"],A7={blue:"bg-blue-500/20 border-blue-500/40",green:"bg-success/20 border-success/40",red:"bg-critical/20 border-critical/40",yellow:"bg-warning/20 border-warning/40",purple:"bg-warning/20 border-warning/40"};function Lq(){const e=Ia(["project:created","project:updated"]),[a,l]=n.useState("all"),[i,c]=n.useState(""),[u,d]=n.useState(!1),{data:h,loading:f,refetch:p}=we("/api/projects",[e]),g=n.useMemo(()=>{if(!h)return[];let x=h;if(a!=="all"&&(x=x.filter(b=>b.status===a)),i.trim()){const b=i.toLowerCase();x=x.filter(w=>w.name.toLowerCase().includes(b)||(w.description||"").toLowerCase().includes(b))}return x},[h,a,i]);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Projects",subtitle:"Organize work into projects",action:s.jsxs("button",{onClick:()=>d(!u),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," New project"]})}),u&&s.jsx(Rq,{onClose:()=>d(!1),onSuccess:p}),s.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:Tq.map(x=>s.jsx("button",{onClick:()=>l(x),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===x?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:x},x))}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(sn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:i,onChange:x=>c(x.target.value),placeholder:"Search projects...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),f?s.jsx(We,{count:4}):g.length?s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:g.map(x=>s.jsxs(Et,{to:`/projects/${x.id}`,className:`border rounded-lg p-4 hover:bg-white/[0.02] transition-colors ${x.color&&A7[x.color]?A7[x.color]:"border-white/[0.08]"}`,children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsx("h3",{className:"text-sm font-medium truncate",children:x.name}),s.jsx(it,{status:x.status})]}),x.description&&s.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2",children:x.description}),s.jsx("p",{className:"text-xs text-neutral-400 mt-2",children:new Date(x.created_at).toLocaleDateString()})]},x.id))}):s.jsx(Ct,{icon:s.jsx(Qm,{size:32}),title:"No projects yet",description:i?`No projects matching "${i}".`:"Create your first project to organize work."})]})}function Rq({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState(!1),g=async x=>{if(x.preventDefault(),!!l.trim()){p(!0);try{await me("/api/projects",{method:"POST",body:JSON.stringify({name:l.trim(),description:c.trim()||void 0,color:d||void 0})}),a(),e()}catch{}finally{p(!1)}}};return s.jsxs("form",{onSubmit:g,className:"border border-white/[0.08] 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-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:x=>i(x.target.value),placeholder:"Project name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),s.jsxs("select",{value:d,onChange:x=>h(x.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",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-neutral-400 block mb-1",children:"Description (optional)"}),s.jsx("textarea",{value:c,onChange:x=>u(x.target.value),rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:f||!l.trim(),className:"px-3 py-1.5 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:f?"Creating...":"Create project"})]})]})}const kq=[{id:"pending",label:"Pending",textColor:"text-neutral-400",bgColor:"bg-white/[0.04]"},{id:"in_progress",label:"In Progress",textColor:"text-blue-400",bgColor:"bg-blue-500/[0.08]"},{id:"completed",label:"Completed",textColor:"text-success",bgColor:"bg-success/[0.08]"},{id:"failed",label:"Failed",textColor:"text-critical",bgColor:"bg-critical/[0.08]"}];function Dq({task:e}){return s.jsx(Et,{to:`/tasks/${e.id}`,className:"block border border-white/[0.08] bg-white/[0.02] rounded-lg p-3 hover:bg-white/[0.04] transition-colors group",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(UO,{size:14,className:"text-neutral-600 mt-0.5 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:e.title}),s.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[e.priority&&e.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:e.priority}),e.tokens_used?s.jsxs("span",{className:"text-xs text-neutral-500",children:[e.tokens_used.toLocaleString()," tok"]}):null]}),s.jsx("p",{className:"text-xs text-neutral-500 mt-1",children:new Date(e.created_at).toLocaleDateString()})]})]})})}function Oq({tasks:e}){const a=n.useMemo(()=>kq.map(l=>({...l,tasks:e.filter(i=>i.status===l.id)})),[e]);return s.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4",children:a.map(l=>s.jsxs("div",{className:"min-w-[240px] flex-1",children:[s.jsxs("div",{className:`flex items-center justify-between rounded-lg px-3 py-2 mb-3 ${l.bgColor}`,children:[s.jsx("span",{className:`text-xs font-semibold uppercase tracking-wider ${l.textColor}`,children:l.label}),s.jsx("span",{className:`text-xs ${l.textColor} opacity-70`,children:l.tasks.length})]}),s.jsx("div",{className:"space-y-2",children:l.tasks.length===0?s.jsx("p",{className:"text-xs text-neutral-600 text-center py-6",children:"No tasks"}):l.tasks.map(i=>s.jsx(Re.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},children:s.jsx(Dq,{task:i})},i.id))})]},l.id))})}const Fq=[{id:"board",label:"Board"},{id:"list",label:"List"}];function zq(){const{id:e}=bl(),[a,l]=n.useState("board"),i=Ia(["task:started","task:completed","task:failed"]),{data:c,loading:u}=we(e?`/api/projects/${e}`:null),{data:d}=we(e?`/api/projects/${e}/tasks`:null,[i]);return u?s.jsx("div",{className:"p-6",children:s.jsx(We,{count:4})}):c?s.jsxs("div",{className:"p-6 max-w-6xl",children:[s.jsxs(Et,{to:"/projects",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[s.jsx(Qr,{size:14})," Back to projects"]}),s.jsx(ze,{title:c.name,subtitle:c.description||`Created ${new Date(c.created_at).toLocaleDateString()}`,action:s.jsx(it,{status:c.status})}),d&&s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Total tasks"}),s.jsx("p",{className:"text-lg font-bold",children:d.length})]}),s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"Completed"}),s.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="completed").length})]}),s.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[s.jsx("p",{className:"text-xs text-neutral-400",children:"In progress"}),s.jsx("p",{className:"text-lg font-bold",children:d.filter(h=>h.status==="in_progress").length})]})]}),s.jsx("div",{className:"mb-4",children:s.jsx(Hl,{tabs:Fq,activeTab:a,onTabChange:h=>l(h),layoutId:"project-view-tabs"})}),d!=null&&d.length?a==="board"?s.jsx(Oq,{tasks:d}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:d.map(h=>s.jsxs(Et,{to:`/tasks/${h.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:h.title}),s.jsx("p",{className:"text-xs text-neutral-400",children:new Date(h.created_at).toLocaleString()})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[h.priority&&h.priority!=="normal"&&s.jsx("span",{className:"text-xs text-warning",children:h.priority}),s.jsx(it,{status:h.status})]})]},h.id))}):s.jsx(Ct,{icon:s.jsx(pl,{size:32}),title:"No tasks in this project",description:"Tasks assigned to this project will appear here."})]}):s.jsx("div",{className:"p-6 text-neutral-400",children:"Project not found"})}const qq={webhook:Zl,schedule:Ml,event:Km,manual:Xm};function $q(e){if(!e)return"Never";const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function Bq(){const e=u0(),[a,l]=n.useState([]),[i,c]=n.useState(!0),[u,d]=n.useState(""),[h,f]=n.useState(null),p=async()=>{try{const w=await me("/api/automations");l(w.data||[])}catch{de("error","Couldn't load automations")}finally{c(!1)}};n.useEffect(()=>{p()},[]);const g=a.filter(w=>w.name.toLowerCase().includes(u.toLowerCase())),x=async(w,M)=>{try{await me(`/api/automations/${w}`,{method:"PATCH",body:JSON.stringify({enabled:M})}),l(E=>E.map(j=>j.id===w?{...j,enabled:M}:j))}catch{de("error","Couldn't update automation")}},b=async()=>{if(h){try{await me(`/api/automations/${h}`,{method:"DELETE"}),l(w=>w.filter(M=>M.id!==h)),de("success","Automation deleted")}catch{de("error","Couldn't delete automation")}f(null)}};return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Automations",subtitle:"Build visual automation flows with triggers, conditions, and actions",action:s.jsxs("button",{onClick:()=>e("/automations/new"),className:"flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-medium text-black hover:bg-gray-200",children:[s.jsx(Nt,{size:14,weight:"bold"}),"New automation"]})}),a.length>0&&s.jsxs("div",{className:"relative mb-4",children:[s.jsx(sn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),s.jsx("input",{type:"text",value:u,onChange:w=>d(w.target.value),placeholder:"Search automations...",className:"w-full pl-9 pr-3 py-2 bg-white/[0.03] border border-white/[0.08] rounded-lg text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),i?s.jsx("div",{className:"space-y-2",children:[1,2,3].map(w=>s.jsx(gl,{className:"h-16 rounded-lg"},w))}):a.length===0?s.jsx(Ct,{icon:s.jsx(ha,{size:32}),title:"No automations yet",description:"Create your first automation to connect triggers with actions",action:s.jsxs("button",{onClick:()=>e("/automations/new"),className:"flex items-center gap-1.5 rounded-lg bg-white/10 px-3 py-1.5 text-xs text-white hover:bg-white/20",children:[s.jsx(Nt,{size:14,weight:"bold"}),"New automation"]})}):g.length===0?s.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No automations match your search"}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:g.map(w=>{const M=qq[w.trigger_type]||ha;return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("button",{onClick:()=>e(`/automations/${w.id}/edit`),className:"min-w-0 mr-3 text-left flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(M,{size:14,className:"text-neutral-500 shrink-0"}),s.jsx("p",{className:"text-sm font-medium truncate",children:w.name})]}),s.jsxs("p",{className:"text-xs text-neutral-400 mt-0.5",children:[w.steps.length," ",w.steps.length===1?"step":"steps",w.last_fired_at&&` · Last run ${$q(w.last_fired_at)}`]})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx(xl,{checked:w.enabled,onChange:E=>x(w.id,E)}),s.jsx("button",{onClick:()=>f(w.id),className:"text-neutral-500 hover:text-red-400 transition-colors",title:"Delete",children:s.jsx(Gt,{size:14})})]})]},w.id)})}),s.jsx(h0,{open:!!h,title:"Delete automation",message:"This will permanently delete this automation and its history. This action can't be undone.",confirmLabel:"Delete",onConfirm:b,onClose:()=>f(null)})]})}const o0={agent_prompt:"AI Agent",run_agent:"Run Agent",save_contact:"Save Contact",update_contact:"Update Contact",log_contact_event:"Log Event",webhook_forward:"Forward Webhook",transform_data:"Transform Data",conditional:"Conditional"},Iq={agent_prompt:"Have an AI agent process data and generate a response",run_agent:"Assign a task to an AI agent with context from the trigger",save_contact:"Create or update a contact from the data",update_contact:"Find and update an existing contact",log_contact_event:"Add a timeline event to an existing contact",webhook_forward:"Forward the data to an external URL",transform_data:"Transform and reshape data between steps",conditional:"Branch execution based on a condition"},HM={save_contact:["contact_id","name","email","created"],update_contact:["contact_id","updated_fields"],log_contact_event:["event_id","contact_id"],run_agent:["task_id","agent_id","status"],agent_prompt:["text"],a2a_call:["text","status"],create_task:["task_id","title","status"],webhook_forward:["status_code","response_body"],transform_data:[],conditional:["branch","branch_output"],run_workflow:["workflow_run_id","status"],take_screenshot:["screenshot_url","page_title","page_url"],generate_chart:["chart_url","chart_type","width","height"]};function z0(e){var a;return e.action_type==="transform_data"?(((a=e.action_config)==null?void 0:a.mappings)||[]).map(c=>c.target).filter(Boolean):HM[e.action_type]||[]}function w1(e,a=""){const l={};for(const[i,c]of Object.entries(e)){const u=a?`${a}.${i}`:i;if(c!==null&&typeof c=="object"&&!Array.isArray(c)){const d=w1(c,u);Object.assign(l,d.payload)}else l[u]=c}return{fields:Object.keys(l),payload:l}}function Vl(e){var u;const{sampleFields:a,samplePayload:l,previousSteps:i}=e,c=[];if(a.length>0){const d=a.map(h=>{let f;if(l&&h in l){const p=l[h];f=typeof p=="string"?p:JSON.stringify(p)}return{name:h,path:`trigger.${h}`,value:f}});c.push({label:"Trigger",prefix:"trigger",fields:d})}for(const d of i){let h=HM[d.action_type]||[];if(d.action_type==="transform_data"&&(h=(((u=d.action_config)==null?void 0:u.mappings)||[]).map(p=>p.target).filter(Boolean)),h.length>0){const f=d.label||d.action_type,p=h.map(g=>({name:g,path:`${d.id}.${g}`}));c.push({label:`Step ${d.id.replace("step_","")}: ${f}`,prefix:d.id,fields:p})}}return c}function VM(e){const a=[],l=/\{\{([^}]+)\}\}/g;let i;for(;(i=l.exec(e))!==null;)a.push(i[1].trim());return a}function Uq(e,a){const l=new Set(a);return e.filter(i=>!l.has(i))}const n0={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}},Qa="trigger",D0=e=>`add-after-${e}`;function Pq(e,a){const l=JSON.stringify(e.action_config||{})+(e.prompt||""),i=VM(l);if(i.length===0)return[];const c={};for(const d of i){const h=d.split(".")[0];c[h]=(c[h]||0)+1}const u=[];for(const[d,h]of Object.entries(c))if(d==="trigger")u.push({label:"Trigger",count:h});else{const f=a.find(p=>p.id===d);u.push({label:(f==null?void 0:f.label)||d,count:h})}return u}function _M(e){const a=[],l=[],i=e.node_positions;a.push({id:Qa,type:"trigger",position:(i==null?void 0:i[Qa])||{x:0,y:0},...n0.trigger,data:{triggerType:e.trigger_type,triggerConfig:e.trigger_config,name:e.name,description:e.description||"",cooldownSeconds:e.cooldown_seconds,variables:e.variables||[],sampleFields:e.sample_fields||[],samplePayload:e.sample_payload||null}});let c=Qa;const u=[];for(let h=0;h<e.steps.length;h++){const f=e.steps[h],p=f.id;if(f.step_type==="conditional"){const g=f.action_config||{},x=g.condition||{field:"",operator:"equals",value:""};a.push({id:p,type:"conditional",position:(i==null?void 0:i[p])||{x:0,y:0},...n0.conditional,data:{stepIndex:h,stepId:f.id,stepType:f.step_type,label:f.label||"Conditional",actionConfig:g,outputFields:["branch","branch_output"],condition:x}}),l.push({id:`${c}->${p}`,source:c,target:p,type:"dataFlow"});const b=g.then_actions||[];let w=p;for(let S=0;S<b.length;S++){const N=b[S],C=`${p}-then-${S}`;a.push({id:C,type:"step",position:(i==null?void 0:i[C])||{x:0,y:0},...n0.step,data:{stepIndex:-1,stepId:N.id,stepType:N.action_type,label:N.label||o0[N.action_type]||N.action_type,actionConfig:N.action_config||{},outputFields:z0(N),branchType:"then",parentConditionalId:p,branchIndex:S}}),l.push({id:`${w}->${C}`,source:w,sourceHandle:w===p?"then":void 0,target:C,type:"dataFlow",data:{branchType:"then"}}),w=C}const M=D0(`${p}-then`);a.push({id:M,type:"addStep",position:(i==null?void 0:i[M])||{x:0,y:0},...n0.addStep,data:{parentNodeId:w,insertIndex:b.length,branchType:"then",conditionalNodeId:p}}),l.push({id:`${w}->${M}`,source:w,sourceHandle:w===p?"then":void 0,target:M,type:"addStepEdge",data:{branchType:"then"}});const E=g.else_actions||[];let j=p;for(let S=0;S<E.length;S++){const N=E[S],C=`${p}-else-${S}`;a.push({id:C,type:"step",position:(i==null?void 0:i[C])||{x:0,y:0},...n0.step,data:{stepIndex:-1,stepId:N.id,stepType:N.action_type,label:N.label||o0[N.action_type]||N.action_type,actionConfig:N.action_config||{},outputFields:z0(N),branchType:"else",parentConditionalId:p,branchIndex:S}}),l.push({id:`${j}->${C}`,source:j,sourceHandle:j===p?"else":void 0,target:C,type:"dataFlow",data:{branchType:"else"}}),j=C}const A=D0(`${p}-else`);a.push({id:A,type:"addStep",position:(i==null?void 0:i[A])||{x:0,y:0},...n0.addStep,data:{parentNodeId:j,insertIndex:E.length,branchType:"else",conditionalNodeId:p}}),l.push({id:`${j}->${A}`,source:j,sourceHandle:j===p?"else":void 0,target:A,type:"addStepEdge",data:{branchType:"else"}}),u.push({id:f.id,label:f.label||"Conditional"}),c=p}else{const g={id:f.id,action_type:f.step_type,action_config:f.action_config||{},label:f.label},x=f.label||o0[f.step_type]||f.step_type,b=Pq(f,u);a.push({id:p,type:"step",position:(i==null?void 0:i[p])||{x:0,y:0},...n0.step,data:{stepIndex:h,stepId:f.id,stepType:f.step_type,label:x,actionConfig:f.action_config||{},outputFields:z0(g),inputSources:b,agentId:f.agent_id,agentName:f.agent_name,prompt:f.prompt,requiredIntegrations:f.required_integrations,connectionId:f.connection_id}}),l.push({id:`${c}->${p}`,source:c,target:p,type:"dataFlow"}),u.push({id:f.id,label:x}),c=p}}const d=D0(c);return a.push({id:d,type:"addStep",position:(i==null?void 0:i[d])||{x:0,y:0},...n0.addStep,data:{parentNodeId:c,insertIndex:e.steps.length}}),l.push({id:`${c}->${d}`,source:c,target:d,type:"addStepEdge"}),{nodes:a,edges:l,hasCustomPositions:!!i&&Object.keys(i).length>0}}function Gq(e,a){var d;const l=e.find(h=>h.type==="trigger");if(!l)throw new Error("No trigger node found");const i=l.data,c=Yq(e,a),u={};for(const h of e)h.type!=="addStep"&&(u[h.id]={x:h.position.x,y:h.position.y});return{name:i.name,description:i.description||void 0,trigger_type:i.triggerType,trigger_config:i.triggerConfig,steps:c,variables:(d=i.variables)!=null&&d.length?i.variables:void 0,cooldown_seconds:i.cooldownSeconds,node_positions:u}}function Yq(e,a){const l=[],i=a.filter(d=>!d.sourceHandle||d.sourceHandle!=="then"&&d.sourceHandle!=="else");let c=Qa;const u=new Set;for(;;){u.add(c);const d=i.find(f=>f.source===c&&!u.has(f.target));if(!d)break;const h=e.find(f=>f.id===d.target);if(!h||h.type==="addStep")break;if(h.type==="conditional"){const f=h.data,p=j7(e,a,h.id,"then"),g=j7(e,a,h.id,"else");l.push({id:f.stepId,step_type:"conditional",label:f.label,action_config:{...f.actionConfig,condition:f.condition,then_actions:p,else_actions:g}})}else if(h.type==="step"){const f=h.data;l.push(Kq(f))}c=h.id}return l.map((d,h)=>({...d,id:`step_${h+1}`}))}function j7(e,a,l,i){const c=[];let u=l;const d=new Set;for(;;){d.add(u);const h=a.find(p=>p.source===u&&!d.has(p.target)&&(u===l?p.sourceHandle===i:!0));if(!h)break;const f=e.find(p=>p.id===h.target);if(!f||f.type==="addStep")break;if(f.type==="step"){const p=f.data;c.push({id:p.stepId,action_type:p.stepType,action_config:p.actionConfig,label:p.label})}u=f.id}return c.map((h,f)=>({...h,id:`${i}_step_${f+1}`}))}function Kq(e){return{id:e.stepId,step_type:e.stepType,label:e.label,action_config:e.actionConfig,agent_id:e.agentId,agent_name:e.agentName,prompt:e.prompt,required_integrations:e.requiredIntegrations,connection_id:e.connectionId}}function Xq(){return _M({name:"",description:null,trigger_type:"webhook",trigger_config:{},steps:[],variables:[],cooldown_seconds:0,sample_payload:null,sample_fields:null})}function sf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var W2,E7;function Qq(){if(E7)return W2;E7=1;function e(){this.__data__=[],this.size=0}return W2=e,W2}var eu,N7;function Jr(){if(N7)return eu;N7=1;function e(a,l){return a===l||a!==a&&l!==l}return eu=e,eu}var tu,M7;function B1(){if(M7)return tu;M7=1;var e=Jr();function a(l,i){for(var c=l.length;c--;)if(e(l[c][0],i))return c;return-1}return tu=a,tu}var au,S7;function Jq(){if(S7)return au;S7=1;var e=B1(),a=Array.prototype,l=a.splice;function i(c){var u=this.__data__,d=e(u,c);if(d<0)return!1;var h=u.length-1;return d==h?u.pop():l.call(u,d,1),--this.size,!0}return au=i,au}var nu,Z7;function Wq(){if(Z7)return nu;Z7=1;var e=B1();function a(l){var i=this.__data__,c=e(i,l);return c<0?void 0:i[c][1]}return nu=a,nu}var ru,C7;function e$(){if(C7)return ru;C7=1;var e=B1();function a(l){return e(this.__data__,l)>-1}return ru=a,ru}var su,H7;function t$(){if(H7)return su;H7=1;var e=B1();function a(l,i){var c=this.__data__,u=e(c,l);return u<0?(++this.size,c.push([l,i])):c[u][1]=i,this}return su=a,su}var lu,V7;function I1(){if(V7)return lu;V7=1;var e=Qq(),a=Jq(),l=Wq(),i=e$(),c=t$();function u(d){var h=-1,f=d==null?0:d.length;for(this.clear();++h<f;){var p=d[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=l,u.prototype.has=i,u.prototype.set=c,lu=u,lu}var iu,_7;function a$(){if(_7)return iu;_7=1;var e=I1();function a(){this.__data__=new e,this.size=0}return iu=a,iu}var ou,T7;function n$(){if(T7)return ou;T7=1;function e(a){var l=this.__data__,i=l.delete(a);return this.size=l.size,i}return ou=e,ou}var cu,L7;function r$(){if(L7)return cu;L7=1;function e(a){return this.__data__.get(a)}return cu=e,cu}var uu,R7;function s$(){if(R7)return uu;R7=1;function e(a){return this.__data__.has(a)}return uu=e,uu}var du,k7;function TM(){if(k7)return du;k7=1;var e=typeof t1=="object"&&t1&&t1.Object===Object&&t1;return du=e,du}var hu,D7;function Ua(){if(D7)return hu;D7=1;var e=TM(),a=typeof self=="object"&&self&&self.Object===Object&&self,l=e||a||Function("return this")();return hu=l,hu}var mu,O7;function Wr(){if(O7)return mu;O7=1;var e=Ua(),a=e.Symbol;return mu=a,mu}var fu,F7;function l$(){if(F7)return fu;F7=1;var e=Wr(),a=Object.prototype,l=a.hasOwnProperty,i=a.toString,c=e?e.toStringTag:void 0;function u(d){var h=l.call(d,c),f=d[c];try{d[c]=void 0;var p=!0}catch{}var g=i.call(d);return p&&(h?d[c]=f:delete d[c]),g}return fu=u,fu}var pu,z7;function i$(){if(z7)return pu;z7=1;var e=Object.prototype,a=e.toString;function l(i){return a.call(i)}return pu=l,pu}var gu,q7;function $0(){if(q7)return gu;q7=1;var e=Wr(),a=l$(),l=i$(),i="[object Null]",c="[object Undefined]",u=e?e.toStringTag:void 0;function d(h){return h==null?h===void 0?c:i:u&&u in Object(h)?a(h):l(h)}return gu=d,gu}var xu,$7;function Va(){if($7)return xu;$7=1;function e(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}return xu=e,xu}var vu,B7;function _l(){if(B7)return vu;B7=1;var e=$0(),a=Va(),l="[object AsyncFunction]",i="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";function d(h){if(!a(h))return!1;var f=e(h);return f==i||f==c||f==l||f==u}return vu=d,vu}var bu,I7;function o$(){if(I7)return bu;I7=1;var e=Ua(),a=e["__core-js_shared__"];return bu=a,bu}var yu,U7;function c$(){if(U7)return yu;U7=1;var e=o$(),a=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function l(i){return!!a&&a in i}return yu=l,yu}var wu,P7;function LM(){if(P7)return wu;P7=1;var e=Function.prototype,a=e.toString;function l(i){if(i!=null){try{return a.call(i)}catch{}try{return i+""}catch{}}return""}return wu=l,wu}var Au,G7;function u$(){if(G7)return Au;G7=1;var e=_l(),a=c$(),l=Va(),i=LM(),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,d=Function.prototype,h=Object.prototype,f=d.toString,p=h.hasOwnProperty,g=RegExp("^"+f.call(p).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x(b){if(!l(b)||a(b))return!1;var w=e(b)?g:u;return w.test(i(b))}return Au=x,Au}var ju,Y7;function d$(){if(Y7)return ju;Y7=1;function e(a,l){return a==null?void 0:a[l]}return ju=e,ju}var Eu,K7;function B0(){if(K7)return Eu;K7=1;var e=u$(),a=d$();function l(i,c){var u=a(i,c);return e(u)?u:void 0}return Eu=l,Eu}var Nu,X7;function lf(){if(X7)return Nu;X7=1;var e=B0(),a=Ua(),l=e(a,"Map");return Nu=l,Nu}var Mu,Q7;function U1(){if(Q7)return Mu;Q7=1;var e=B0(),a=e(Object,"create");return Mu=a,Mu}var Su,J7;function h$(){if(J7)return Su;J7=1;var e=U1();function a(){this.__data__=e?e(null):{},this.size=0}return Su=a,Su}var Zu,W7;function m$(){if(W7)return Zu;W7=1;function e(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}return Zu=e,Zu}var Cu,ev;function f$(){if(ev)return Cu;ev=1;var e=U1(),a="__lodash_hash_undefined__",l=Object.prototype,i=l.hasOwnProperty;function c(u){var d=this.__data__;if(e){var h=d[u];return h===a?void 0:h}return i.call(d,u)?d[u]:void 0}return Cu=c,Cu}var Hu,tv;function p$(){if(tv)return Hu;tv=1;var e=U1(),a=Object.prototype,l=a.hasOwnProperty;function i(c){var u=this.__data__;return e?u[c]!==void 0:l.call(u,c)}return Hu=i,Hu}var Vu,av;function g$(){if(av)return Vu;av=1;var e=U1(),a="__lodash_hash_undefined__";function l(i,c){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=e&&c===void 0?a:c,this}return Vu=l,Vu}var _u,nv;function x$(){if(nv)return _u;nv=1;var e=h$(),a=m$(),l=f$(),i=p$(),c=g$();function u(d){var h=-1,f=d==null?0:d.length;for(this.clear();++h<f;){var p=d[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=l,u.prototype.has=i,u.prototype.set=c,_u=u,_u}var Tu,rv;function v$(){if(rv)return Tu;rv=1;var e=x$(),a=I1(),l=lf();function i(){this.size=0,this.__data__={hash:new e,map:new(l||a),string:new e}}return Tu=i,Tu}var Lu,sv;function b$(){if(sv)return Lu;sv=1;function e(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}return Lu=e,Lu}var Ru,lv;function P1(){if(lv)return Ru;lv=1;var e=b$();function a(l,i){var c=l.__data__;return e(i)?c[typeof i=="string"?"string":"hash"]:c.map}return Ru=a,Ru}var ku,iv;function y$(){if(iv)return ku;iv=1;var e=P1();function a(l){var i=e(this,l).delete(l);return this.size-=i?1:0,i}return ku=a,ku}var Du,ov;function w$(){if(ov)return Du;ov=1;var e=P1();function a(l){return e(this,l).get(l)}return Du=a,Du}var Ou,cv;function A$(){if(cv)return Ou;cv=1;var e=P1();function a(l){return e(this,l).has(l)}return Ou=a,Ou}var Fu,uv;function j$(){if(uv)return Fu;uv=1;var e=P1();function a(l,i){var c=e(this,l),u=c.size;return c.set(l,i),this.size+=c.size==u?0:1,this}return Fu=a,Fu}var zu,dv;function of(){if(dv)return zu;dv=1;var e=v$(),a=y$(),l=w$(),i=A$(),c=j$();function u(d){var h=-1,f=d==null?0:d.length;for(this.clear();++h<f;){var p=d[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=l,u.prototype.has=i,u.prototype.set=c,zu=u,zu}var qu,hv;function E$(){if(hv)return qu;hv=1;var e=I1(),a=lf(),l=of(),i=200;function c(u,d){var h=this.__data__;if(h instanceof e){var f=h.__data__;if(!a||f.length<i-1)return f.push([u,d]),this.size=++h.size,this;h=this.__data__=new l(f)}return h.set(u,d),this.size=h.size,this}return qu=c,qu}var $u,mv;function G1(){if(mv)return $u;mv=1;var e=I1(),a=a$(),l=n$(),i=r$(),c=s$(),u=E$();function d(h){var f=this.__data__=new e(h);this.size=f.size}return d.prototype.clear=a,d.prototype.delete=l,d.prototype.get=i,d.prototype.has=c,d.prototype.set=u,$u=d,$u}var Bu,fv;function cf(){if(fv)return Bu;fv=1;function e(a,l){for(var i=-1,c=a==null?0:a.length;++i<c&&l(a[i],i,a)!==!1;);return a}return Bu=e,Bu}var Iu,pv;function RM(){if(pv)return Iu;pv=1;var e=B0(),a=(function(){try{var l=e(Object,"defineProperty");return l({},"",{}),l}catch{}})();return Iu=a,Iu}var Uu,gv;function Y1(){if(gv)return Uu;gv=1;var e=RM();function a(l,i,c){i=="__proto__"&&e?e(l,i,{configurable:!0,enumerable:!0,value:c,writable:!0}):l[i]=c}return Uu=a,Uu}var Pu,xv;function K1(){if(xv)return Pu;xv=1;var e=Y1(),a=Jr(),l=Object.prototype,i=l.hasOwnProperty;function c(u,d,h){var f=u[d];(!(i.call(u,d)&&a(f,h))||h===void 0&&!(d in u))&&e(u,d,h)}return Pu=c,Pu}var Gu,vv;function Tl(){if(vv)return Gu;vv=1;var e=K1(),a=Y1();function l(i,c,u,d){var h=!u;u||(u={});for(var f=-1,p=c.length;++f<p;){var g=c[f],x=d?d(u[g],i[g],g,u,i):void 0;x===void 0&&(x=i[g]),h?a(u,g,x):e(u,g,x)}return u}return Gu=l,Gu}var Yu,bv;function N$(){if(bv)return Yu;bv=1;function e(a,l){for(var i=-1,c=Array(a);++i<a;)c[i]=l(i);return c}return Yu=e,Yu}var Ku,yv;function ln(){if(yv)return Ku;yv=1;function e(a){return a!=null&&typeof a=="object"}return Ku=e,Ku}var Xu,wv;function M$(){if(wv)return Xu;wv=1;var e=$0(),a=ln(),l="[object Arguments]";function i(c){return a(c)&&e(c)==l}return Xu=i,Xu}var Qu,Av;function Ll(){if(Av)return Qu;Av=1;var e=M$(),a=ln(),l=Object.prototype,i=l.hasOwnProperty,c=l.propertyIsEnumerable,u=e((function(){return arguments})())?e:function(d){return a(d)&&i.call(d,"callee")&&!c.call(d,"callee")};return Qu=u,Qu}var Ju,jv;function Mt(){if(jv)return Ju;jv=1;var e=Array.isArray;return Ju=e,Ju}var el={exports:{}},Wu,Ev;function S$(){if(Ev)return Wu;Ev=1;function e(){return!1}return Wu=e,Wu}el.exports;var Nv;function es(){return Nv||(Nv=1,(function(e,a){var l=Ua(),i=S$(),c=a&&!a.nodeType&&a,u=c&&!0&&e&&!e.nodeType&&e,d=u&&u.exports===c,h=d?l.Buffer:void 0,f=h?h.isBuffer:void 0,p=f||i;e.exports=p})(el,el.exports)),el.exports}var ed,Mv;function X1(){if(Mv)return ed;Mv=1;var e=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function l(i,c){var u=typeof i;return c=c??e,!!c&&(u=="number"||u!="symbol"&&a.test(i))&&i>-1&&i%1==0&&i<c}return ed=l,ed}var td,Sv;function uf(){if(Sv)return td;Sv=1;var e=9007199254740991;function a(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=e}return td=a,td}var ad,Zv;function Z$(){if(Zv)return ad;Zv=1;var e=$0(),a=uf(),l=ln(),i="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object Map]",g="[object Number]",x="[object Object]",b="[object RegExp]",w="[object Set]",M="[object String]",E="[object WeakMap]",j="[object ArrayBuffer]",A="[object DataView]",S="[object Float32Array]",N="[object Float64Array]",C="[object Int8Array]",V="[object Int16Array]",_="[object Int32Array]",H="[object Uint8Array]",R="[object Uint8ClampedArray]",L="[object Uint16Array]",O="[object Uint32Array]",I={};I[S]=I[N]=I[C]=I[V]=I[_]=I[H]=I[R]=I[L]=I[O]=!0,I[i]=I[c]=I[j]=I[u]=I[A]=I[d]=I[h]=I[f]=I[p]=I[g]=I[x]=I[b]=I[w]=I[M]=I[E]=!1;function X(K){return l(K)&&a(K.length)&&!!I[e(K)]}return ad=X,ad}var nd,Cv;function Q1(){if(Cv)return nd;Cv=1;function e(a){return function(l){return a(l)}}return nd=e,nd}var tl={exports:{}};tl.exports;var Hv;function df(){return Hv||(Hv=1,(function(e,a){var l=TM(),i=a&&!a.nodeType&&a,c=i&&!0&&e&&!e.nodeType&&e,u=c&&c.exports===i,d=u&&l.process,h=(function(){try{var f=c&&c.require&&c.require("util").types;return f||d&&d.binding&&d.binding("util")}catch{}})();e.exports=h})(tl,tl.exports)),tl.exports}var rd,Vv;function Rl(){if(Vv)return rd;Vv=1;var e=Z$(),a=Q1(),l=df(),i=l&&l.isTypedArray,c=i?a(i):e;return rd=c,rd}var sd,_v;function kM(){if(_v)return sd;_v=1;var e=N$(),a=Ll(),l=Mt(),i=es(),c=X1(),u=Rl(),d=Object.prototype,h=d.hasOwnProperty;function f(p,g){var x=l(p),b=!x&&a(p),w=!x&&!b&&i(p),M=!x&&!b&&!w&&u(p),E=x||b||w||M,j=E?e(p.length,String):[],A=j.length;for(var S in p)(g||h.call(p,S))&&!(E&&(S=="length"||w&&(S=="offset"||S=="parent")||M&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||c(S,A)))&&j.push(S);return j}return sd=f,sd}var ld,Tv;function J1(){if(Tv)return ld;Tv=1;var e=Object.prototype;function a(l){var i=l&&l.constructor,c=typeof i=="function"&&i.prototype||e;return l===c}return ld=a,ld}var id,Lv;function DM(){if(Lv)return id;Lv=1;function e(a,l){return function(i){return a(l(i))}}return id=e,id}var od,Rv;function C$(){if(Rv)return od;Rv=1;var e=DM(),a=e(Object.keys,Object);return od=a,od}var cd,kv;function hf(){if(kv)return cd;kv=1;var e=J1(),a=C$(),l=Object.prototype,i=l.hasOwnProperty;function c(u){if(!e(u))return a(u);var d=[];for(var h in Object(u))i.call(u,h)&&h!="constructor"&&d.push(h);return d}return cd=c,cd}var ud,Dv;function Hn(){if(Dv)return ud;Dv=1;var e=_l(),a=uf();function l(i){return i!=null&&a(i.length)&&!e(i)}return ud=l,ud}var dd,Ov;function m0(){if(Ov)return dd;Ov=1;var e=kM(),a=hf(),l=Hn();function i(c){return l(c)?e(c):a(c)}return dd=i,dd}var hd,Fv;function H$(){if(Fv)return hd;Fv=1;var e=Tl(),a=m0();function l(i,c){return i&&e(c,a(c),i)}return hd=l,hd}var md,zv;function V$(){if(zv)return md;zv=1;function e(a){var l=[];if(a!=null)for(var i in Object(a))l.push(i);return l}return md=e,md}var fd,qv;function _$(){if(qv)return fd;qv=1;var e=Va(),a=J1(),l=V$(),i=Object.prototype,c=i.hasOwnProperty;function u(d){if(!e(d))return l(d);var h=a(d),f=[];for(var p in d)p=="constructor"&&(h||!c.call(d,p))||f.push(p);return f}return fd=u,fd}var pd,$v;function I0(){if($v)return pd;$v=1;var e=kM(),a=_$(),l=Hn();function i(c){return l(c)?e(c,!0):a(c)}return pd=i,pd}var gd,Bv;function T$(){if(Bv)return gd;Bv=1;var e=Tl(),a=I0();function l(i,c){return i&&e(c,a(c),i)}return gd=l,gd}var al={exports:{}};al.exports;var Iv;function OM(){return Iv||(Iv=1,(function(e,a){var l=Ua(),i=a&&!a.nodeType&&a,c=i&&!0&&e&&!e.nodeType&&e,u=c&&c.exports===i,d=u?l.Buffer:void 0,h=d?d.allocUnsafe:void 0;function f(p,g){if(g)return p.slice();var x=p.length,b=h?h(x):new p.constructor(x);return p.copy(b),b}e.exports=f})(al,al.exports)),al.exports}var xd,Uv;function FM(){if(Uv)return xd;Uv=1;function e(a,l){var i=-1,c=a.length;for(l||(l=Array(c));++i<c;)l[i]=a[i];return l}return xd=e,xd}var vd,Pv;function zM(){if(Pv)return vd;Pv=1;function e(a,l){for(var i=-1,c=a==null?0:a.length,u=0,d=[];++i<c;){var h=a[i];l(h,i,a)&&(d[u++]=h)}return d}return vd=e,vd}var bd,Gv;function qM(){if(Gv)return bd;Gv=1;function e(){return[]}return bd=e,bd}var yd,Yv;function mf(){if(Yv)return yd;Yv=1;var e=zM(),a=qM(),l=Object.prototype,i=l.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(d){return d==null?[]:(d=Object(d),e(c(d),function(h){return i.call(d,h)}))}:a;return yd=u,yd}var wd,Kv;function L$(){if(Kv)return wd;Kv=1;var e=Tl(),a=mf();function l(i,c){return e(i,a(i),c)}return wd=l,wd}var Ad,Xv;function ff(){if(Xv)return Ad;Xv=1;function e(a,l){for(var i=-1,c=l.length,u=a.length;++i<c;)a[u+i]=l[i];return a}return Ad=e,Ad}var jd,Qv;function W1(){if(Qv)return jd;Qv=1;var e=DM(),a=e(Object.getPrototypeOf,Object);return jd=a,jd}var Ed,Jv;function $M(){if(Jv)return Ed;Jv=1;var e=ff(),a=W1(),l=mf(),i=qM(),c=Object.getOwnPropertySymbols,u=c?function(d){for(var h=[];d;)e(h,l(d)),d=a(d);return h}:i;return Ed=u,Ed}var Nd,Wv;function R$(){if(Wv)return Nd;Wv=1;var e=Tl(),a=$M();function l(i,c){return e(i,a(i),c)}return Nd=l,Nd}var Md,e9;function BM(){if(e9)return Md;e9=1;var e=ff(),a=Mt();function l(i,c,u){var d=c(i);return a(i)?d:e(d,u(i))}return Md=l,Md}var Sd,t9;function IM(){if(t9)return Sd;t9=1;var e=BM(),a=mf(),l=m0();function i(c){return e(c,l,a)}return Sd=i,Sd}var Zd,a9;function k$(){if(a9)return Zd;a9=1;var e=BM(),a=$M(),l=I0();function i(c){return e(c,l,a)}return Zd=i,Zd}var Cd,n9;function D$(){if(n9)return Cd;n9=1;var e=B0(),a=Ua(),l=e(a,"DataView");return Cd=l,Cd}var Hd,r9;function O$(){if(r9)return Hd;r9=1;var e=B0(),a=Ua(),l=e(a,"Promise");return Hd=l,Hd}var Vd,s9;function UM(){if(s9)return Vd;s9=1;var e=B0(),a=Ua(),l=e(a,"Set");return Vd=l,Vd}var _d,l9;function F$(){if(l9)return _d;l9=1;var e=B0(),a=Ua(),l=e(a,"WeakMap");return _d=l,_d}var Td,i9;function ts(){if(i9)return Td;i9=1;var e=D$(),a=lf(),l=O$(),i=UM(),c=F$(),u=$0(),d=LM(),h="[object Map]",f="[object Object]",p="[object Promise]",g="[object Set]",x="[object WeakMap]",b="[object DataView]",w=d(e),M=d(a),E=d(l),j=d(i),A=d(c),S=u;return(e&&S(new e(new ArrayBuffer(1)))!=b||a&&S(new a)!=h||l&&S(l.resolve())!=p||i&&S(new i)!=g||c&&S(new c)!=x)&&(S=function(N){var C=u(N),V=C==f?N.constructor:void 0,_=V?d(V):"";if(_)switch(_){case w:return b;case M:return h;case E:return p;case j:return g;case A:return x}return C}),Td=S,Td}var Ld,o9;function z$(){if(o9)return Ld;o9=1;var e=Object.prototype,a=e.hasOwnProperty;function l(i){var c=i.length,u=new i.constructor(c);return c&&typeof i[0]=="string"&&a.call(i,"index")&&(u.index=i.index,u.input=i.input),u}return Ld=l,Ld}var Rd,c9;function PM(){if(c9)return Rd;c9=1;var e=Ua(),a=e.Uint8Array;return Rd=a,Rd}var kd,u9;function pf(){if(u9)return kd;u9=1;var e=PM();function a(l){var i=new l.constructor(l.byteLength);return new e(i).set(new e(l)),i}return kd=a,kd}var Dd,d9;function q$(){if(d9)return Dd;d9=1;var e=pf();function a(l,i){var c=i?e(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.byteLength)}return Dd=a,Dd}var Od,h9;function $$(){if(h9)return Od;h9=1;var e=/\w*$/;function a(l){var i=new l.constructor(l.source,e.exec(l));return i.lastIndex=l.lastIndex,i}return Od=a,Od}var Fd,m9;function B$(){if(m9)return Fd;m9=1;var e=Wr(),a=e?e.prototype:void 0,l=a?a.valueOf:void 0;function i(c){return l?Object(l.call(c)):{}}return Fd=i,Fd}var zd,f9;function GM(){if(f9)return zd;f9=1;var e=pf();function a(l,i){var c=i?e(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.length)}return zd=a,zd}var qd,p9;function I$(){if(p9)return qd;p9=1;var e=pf(),a=q$(),l=$$(),i=B$(),c=GM(),u="[object Boolean]",d="[object Date]",h="[object Map]",f="[object Number]",p="[object RegExp]",g="[object Set]",x="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",M="[object DataView]",E="[object Float32Array]",j="[object Float64Array]",A="[object Int8Array]",S="[object Int16Array]",N="[object Int32Array]",C="[object Uint8Array]",V="[object Uint8ClampedArray]",_="[object Uint16Array]",H="[object Uint32Array]";function R(L,O,I){var X=L.constructor;switch(O){case w:return e(L);case u:case d:return new X(+L);case M:return a(L,I);case E:case j:case A:case S:case N:case C:case V:case _:case H:return c(L,I);case h:return new X;case f:case x:return new X(L);case p:return l(L);case g:return new X;case b:return i(L)}}return qd=R,qd}var $d,g9;function YM(){if(g9)return $d;g9=1;var e=Va(),a=Object.create,l=(function(){function i(){}return function(c){if(!e(c))return{};if(a)return a(c);i.prototype=c;var u=new i;return i.prototype=void 0,u}})();return $d=l,$d}var Bd,x9;function KM(){if(x9)return Bd;x9=1;var e=YM(),a=W1(),l=J1();function i(c){return typeof c.constructor=="function"&&!l(c)?e(a(c)):{}}return Bd=i,Bd}var Id,v9;function U$(){if(v9)return Id;v9=1;var e=ts(),a=ln(),l="[object Map]";function i(c){return a(c)&&e(c)==l}return Id=i,Id}var Ud,b9;function P$(){if(b9)return Ud;b9=1;var e=U$(),a=Q1(),l=df(),i=l&&l.isMap,c=i?a(i):e;return Ud=c,Ud}var Pd,y9;function G$(){if(y9)return Pd;y9=1;var e=ts(),a=ln(),l="[object Set]";function i(c){return a(c)&&e(c)==l}return Pd=i,Pd}var Gd,w9;function Y$(){if(w9)return Gd;w9=1;var e=G$(),a=Q1(),l=df(),i=l&&l.isSet,c=i?a(i):e;return Gd=c,Gd}var Yd,A9;function XM(){if(A9)return Yd;A9=1;var e=G1(),a=cf(),l=K1(),i=H$(),c=T$(),u=OM(),d=FM(),h=L$(),f=R$(),p=IM(),g=k$(),x=ts(),b=z$(),w=I$(),M=KM(),E=Mt(),j=es(),A=P$(),S=Va(),N=Y$(),C=m0(),V=I0(),_=1,H=2,R=4,L="[object Arguments]",O="[object Array]",I="[object Boolean]",X="[object Date]",K="[object Error]",B="[object Function]",Y="[object GeneratorFunction]",k="[object Map]",$="[object Number]",Q="[object Object]",ie="[object RegExp]",re="[object Set]",D="[object String]",J="[object Symbol]",ne="[object WeakMap]",z="[object ArrayBuffer]",F="[object DataView]",P="[object Float32Array]",oe="[object Float64Array]",fe="[object Int8Array]",ve="[object Int16Array]",ke="[object Int32Array]",Pe="[object Uint8Array]",qe="[object Uint8ClampedArray]",ot="[object Uint16Array]",$e="[object Uint32Array]",je={};je[L]=je[O]=je[z]=je[F]=je[I]=je[X]=je[P]=je[oe]=je[fe]=je[ve]=je[ke]=je[k]=je[$]=je[Q]=je[ie]=je[re]=je[D]=je[J]=je[Pe]=je[qe]=je[ot]=je[$e]=!0,je[K]=je[B]=je[ne]=!1;function qt(Ne,Tt,se,ft,Te,ct){var vt,at=Tt&_,Ae=Tt&H,Qe=Tt&R;if(se&&(vt=Te?se(Ne,ft,Te,ct):se(Ne)),vt!==void 0)return vt;if(!S(Ne))return Ne;var Be=E(Ne);if(Be){if(vt=b(Ne),!at)return d(Ne,vt)}else{var Lt=x(Ne),Dl=Lt==B||Lt==Y;if(j(Ne))return u(Ne,at);if(Lt==Q||Lt==L||Dl&&!Te){if(vt=Ae||Dl?{}:M(Ne),!at)return Ae?f(Ne,c(vt,Ne)):h(Ne,i(vt,Ne))}else{if(!je[Lt])return Te?Ne:{};vt=w(Ne,Lt,at)}}ct||(ct=new e);var ns=ct.get(Ne);if(ns)return ns;ct.set(Ne,vt),N(Ne)?Ne.forEach(function(Yt){vt.add(qt(Yt,Tt,se,Yt,Ne,ct))}):A(Ne)&&Ne.forEach(function(Yt,pt){vt.set(pt,qt(Yt,Tt,se,pt,Ne,ct))});var lo=Qe?Ae?g:p:Ae?V:C,Ol=Be?void 0:lo(Ne);return a(Ol||Ne,function(Yt,pt){Ol&&(pt=Yt,Yt=Ne[pt]),l(vt,pt,qt(Yt,Tt,se,pt,Ne,ct))}),vt}return Yd=qt,Yd}var Kd,j9;function K$(){if(j9)return Kd;j9=1;var e=XM(),a=4;function l(i){return e(i,a)}return Kd=l,Kd}var Xd,E9;function gf(){if(E9)return Xd;E9=1;function e(a){return function(){return a}}return Xd=e,Xd}var Qd,N9;function X$(){if(N9)return Qd;N9=1;function e(a){return function(l,i,c){for(var u=-1,d=Object(l),h=c(l),f=h.length;f--;){var p=h[a?f:++u];if(i(d[p],p,d)===!1)break}return l}}return Qd=e,Qd}var Jd,M9;function xf(){if(M9)return Jd;M9=1;var e=X$(),a=e();return Jd=a,Jd}var Wd,S9;function vf(){if(S9)return Wd;S9=1;var e=xf(),a=m0();function l(i,c){return i&&e(i,c,a)}return Wd=l,Wd}var e8,Z9;function Q$(){if(Z9)return e8;Z9=1;var e=Hn();function a(l,i){return function(c,u){if(c==null)return c;if(!e(c))return l(c,u);for(var d=c.length,h=i?d:-1,f=Object(c);(i?h--:++h<d)&&u(f[h],h,f)!==!1;);return c}}return e8=a,e8}var t8,C9;function eo(){if(C9)return t8;C9=1;var e=vf(),a=Q$(),l=a(e);return t8=l,t8}var a8,H9;function U0(){if(H9)return a8;H9=1;function e(a){return a}return a8=e,a8}var n8,V9;function QM(){if(V9)return n8;V9=1;var e=U0();function a(l){return typeof l=="function"?l:e}return n8=a,n8}var r8,_9;function JM(){if(_9)return r8;_9=1;var e=cf(),a=eo(),l=QM(),i=Mt();function c(u,d){var h=i(u)?e:a;return h(u,l(d))}return r8=c,r8}var s8,T9;function WM(){return T9||(T9=1,s8=JM()),s8}var l8,L9;function J$(){if(L9)return l8;L9=1;var e=eo();function a(l,i){var c=[];return e(l,function(u,d,h){i(u,d,h)&&c.push(u)}),c}return l8=a,l8}var i8,R9;function W$(){if(R9)return i8;R9=1;var e="__lodash_hash_undefined__";function a(l){return this.__data__.set(l,e),this}return i8=a,i8}var o8,k9;function eB(){if(k9)return o8;k9=1;function e(a){return this.__data__.has(a)}return o8=e,o8}var c8,D9;function eS(){if(D9)return c8;D9=1;var e=of(),a=W$(),l=eB();function i(c){var u=-1,d=c==null?0:c.length;for(this.__data__=new e;++u<d;)this.add(c[u])}return i.prototype.add=i.prototype.push=a,i.prototype.has=l,c8=i,c8}var u8,O9;function tB(){if(O9)return u8;O9=1;function e(a,l){for(var i=-1,c=a==null?0:a.length;++i<c;)if(l(a[i],i,a))return!0;return!1}return u8=e,u8}var d8,F9;function tS(){if(F9)return d8;F9=1;function e(a,l){return a.has(l)}return d8=e,d8}var h8,z9;function aS(){if(z9)return h8;z9=1;var e=eS(),a=tB(),l=tS(),i=1,c=2;function u(d,h,f,p,g,x){var b=f&i,w=d.length,M=h.length;if(w!=M&&!(b&&M>w))return!1;var E=x.get(d),j=x.get(h);if(E&&j)return E==h&&j==d;var A=-1,S=!0,N=f&c?new e:void 0;for(x.set(d,h),x.set(h,d);++A<w;){var C=d[A],V=h[A];if(p)var _=b?p(V,C,A,h,d,x):p(C,V,A,d,h,x);if(_!==void 0){if(_)continue;S=!1;break}if(N){if(!a(h,function(H,R){if(!l(N,R)&&(C===H||g(C,H,f,p,x)))return N.push(R)})){S=!1;break}}else if(!(C===V||g(C,V,f,p,x))){S=!1;break}}return x.delete(d),x.delete(h),S}return h8=u,h8}var m8,q9;function aB(){if(q9)return m8;q9=1;function e(a){var l=-1,i=Array(a.size);return a.forEach(function(c,u){i[++l]=[u,c]}),i}return m8=e,m8}var f8,$9;function bf(){if($9)return f8;$9=1;function e(a){var l=-1,i=Array(a.size);return a.forEach(function(c){i[++l]=c}),i}return f8=e,f8}var p8,B9;function nB(){if(B9)return p8;B9=1;var e=Wr(),a=PM(),l=Jr(),i=aS(),c=aB(),u=bf(),d=1,h=2,f="[object Boolean]",p="[object Date]",g="[object Error]",x="[object Map]",b="[object Number]",w="[object RegExp]",M="[object Set]",E="[object String]",j="[object Symbol]",A="[object ArrayBuffer]",S="[object DataView]",N=e?e.prototype:void 0,C=N?N.valueOf:void 0;function V(_,H,R,L,O,I,X){switch(R){case S:if(_.byteLength!=H.byteLength||_.byteOffset!=H.byteOffset)return!1;_=_.buffer,H=H.buffer;case A:return!(_.byteLength!=H.byteLength||!I(new a(_),new a(H)));case f:case p:case b:return l(+_,+H);case g:return _.name==H.name&&_.message==H.message;case w:case E:return _==H+"";case x:var K=c;case M:var B=L&d;if(K||(K=u),_.size!=H.size&&!B)return!1;var Y=X.get(_);if(Y)return Y==H;L|=h,X.set(_,H);var k=i(K(_),K(H),L,O,I,X);return X.delete(_),k;case j:if(C)return C.call(_)==C.call(H)}return!1}return p8=V,p8}var g8,I9;function rB(){if(I9)return g8;I9=1;var e=IM(),a=1,l=Object.prototype,i=l.hasOwnProperty;function c(u,d,h,f,p,g){var x=h&a,b=e(u),w=b.length,M=e(d),E=M.length;if(w!=E&&!x)return!1;for(var j=w;j--;){var A=b[j];if(!(x?A in d:i.call(d,A)))return!1}var S=g.get(u),N=g.get(d);if(S&&N)return S==d&&N==u;var C=!0;g.set(u,d),g.set(d,u);for(var V=x;++j<w;){A=b[j];var _=u[A],H=d[A];if(f)var R=x?f(H,_,A,d,u,g):f(_,H,A,u,d,g);if(!(R===void 0?_===H||p(_,H,h,f,g):R)){C=!1;break}V||(V=A=="constructor")}if(C&&!V){var L=u.constructor,O=d.constructor;L!=O&&"constructor"in u&&"constructor"in d&&!(typeof L=="function"&&L instanceof L&&typeof O=="function"&&O instanceof O)&&(C=!1)}return g.delete(u),g.delete(d),C}return g8=c,g8}var x8,U9;function sB(){if(U9)return x8;U9=1;var e=G1(),a=aS(),l=nB(),i=rB(),c=ts(),u=Mt(),d=es(),h=Rl(),f=1,p="[object Arguments]",g="[object Array]",x="[object Object]",b=Object.prototype,w=b.hasOwnProperty;function M(E,j,A,S,N,C){var V=u(E),_=u(j),H=V?g:c(E),R=_?g:c(j);H=H==p?x:H,R=R==p?x:R;var L=H==x,O=R==x,I=H==R;if(I&&d(E)){if(!d(j))return!1;V=!0,L=!1}if(I&&!L)return C||(C=new e),V||h(E)?a(E,j,A,S,N,C):l(E,j,H,A,S,N,C);if(!(A&f)){var X=L&&w.call(E,"__wrapped__"),K=O&&w.call(j,"__wrapped__");if(X||K){var B=X?E.value():E,Y=K?j.value():j;return C||(C=new e),N(B,Y,A,S,C)}}return I?(C||(C=new e),i(E,j,A,S,N,C)):!1}return x8=M,x8}var v8,P9;function nS(){if(P9)return v8;P9=1;var e=sB(),a=ln();function l(i,c,u,d,h){return i===c?!0:i==null||c==null||!a(i)&&!a(c)?i!==i&&c!==c:e(i,c,u,d,l,h)}return v8=l,v8}var b8,G9;function lB(){if(G9)return b8;G9=1;var e=G1(),a=nS(),l=1,i=2;function c(u,d,h,f){var p=h.length,g=p,x=!f;if(u==null)return!g;for(u=Object(u);p--;){var b=h[p];if(x&&b[2]?b[1]!==u[b[0]]:!(b[0]in u))return!1}for(;++p<g;){b=h[p];var w=b[0],M=u[w],E=b[1];if(x&&b[2]){if(M===void 0&&!(w in u))return!1}else{var j=new e;if(f)var A=f(M,E,w,u,d,j);if(!(A===void 0?a(E,M,l|i,f,j):A))return!1}}return!0}return b8=c,b8}var y8,Y9;function rS(){if(Y9)return y8;Y9=1;var e=Va();function a(l){return l===l&&!e(l)}return y8=a,y8}var w8,K9;function iB(){if(K9)return w8;K9=1;var e=rS(),a=m0();function l(i){for(var c=a(i),u=c.length;u--;){var d=c[u],h=i[d];c[u]=[d,h,e(h)]}return c}return w8=l,w8}var A8,X9;function sS(){if(X9)return A8;X9=1;function e(a,l){return function(i){return i==null?!1:i[a]===l&&(l!==void 0||a in Object(i))}}return A8=e,A8}var j8,Q9;function oB(){if(Q9)return j8;Q9=1;var e=lB(),a=iB(),l=sS();function i(c){var u=a(c);return u.length==1&&u[0][2]?l(u[0][0],u[0][1]):function(d){return d===c||e(d,c,u)}}return j8=i,j8}var E8,J9;function as(){if(J9)return E8;J9=1;var e=$0(),a=ln(),l="[object Symbol]";function i(c){return typeof c=="symbol"||a(c)&&e(c)==l}return E8=i,E8}var N8,W9;function yf(){if(W9)return N8;W9=1;var e=Mt(),a=as(),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function c(u,d){if(e(u))return!1;var h=typeof u;return h=="number"||h=="symbol"||h=="boolean"||u==null||a(u)?!0:i.test(u)||!l.test(u)||d!=null&&u in Object(d)}return N8=c,N8}var M8,eb;function cB(){if(eb)return M8;eb=1;var e=of(),a="Expected a function";function l(i,c){if(typeof i!="function"||c!=null&&typeof c!="function")throw new TypeError(a);var u=function(){var d=arguments,h=c?c.apply(this,d):d[0],f=u.cache;if(f.has(h))return f.get(h);var p=i.apply(this,d);return u.cache=f.set(h,p)||f,p};return u.cache=new(l.Cache||e),u}return l.Cache=e,M8=l,M8}var S8,tb;function uB(){if(tb)return S8;tb=1;var e=cB(),a=500;function l(i){var c=e(i,function(d){return u.size===a&&u.clear(),d}),u=c.cache;return c}return S8=l,S8}var Z8,ab;function dB(){if(ab)return Z8;ab=1;var e=uB(),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,i=e(function(c){var u=[];return c.charCodeAt(0)===46&&u.push(""),c.replace(a,function(d,h,f,p){u.push(f?p.replace(l,"$1"):h||d)}),u});return Z8=i,Z8}var C8,nb;function to(){if(nb)return C8;nb=1;function e(a,l){for(var i=-1,c=a==null?0:a.length,u=Array(c);++i<c;)u[i]=l(a[i],i,a);return u}return C8=e,C8}var H8,rb;function hB(){if(rb)return H8;rb=1;var e=Wr(),a=to(),l=Mt(),i=as(),c=e?e.prototype:void 0,u=c?c.toString:void 0;function d(h){if(typeof h=="string")return h;if(l(h))return a(h,d)+"";if(i(h))return u?u.call(h):"";var f=h+"";return f=="0"&&1/h==-1/0?"-0":f}return H8=d,H8}var V8,sb;function lS(){if(sb)return V8;sb=1;var e=hB();function a(l){return l==null?"":e(l)}return V8=a,V8}var _8,lb;function ao(){if(lb)return _8;lb=1;var e=Mt(),a=yf(),l=dB(),i=lS();function c(u,d){return e(u)?u:a(u,d)?[u]:l(i(u))}return _8=c,_8}var T8,ib;function kl(){if(ib)return T8;ib=1;var e=as();function a(l){if(typeof l=="string"||e(l))return l;var i=l+"";return i=="0"&&1/l==-1/0?"-0":i}return T8=a,T8}var L8,ob;function no(){if(ob)return L8;ob=1;var e=ao(),a=kl();function l(i,c){c=e(c,i);for(var u=0,d=c.length;i!=null&&u<d;)i=i[a(c[u++])];return u&&u==d?i:void 0}return L8=l,L8}var R8,cb;function mB(){if(cb)return R8;cb=1;var e=no();function a(l,i,c){var u=l==null?void 0:e(l,i);return u===void 0?c:u}return R8=a,R8}var k8,ub;function fB(){if(ub)return k8;ub=1;function e(a,l){return a!=null&&l in Object(a)}return k8=e,k8}var D8,db;function iS(){if(db)return D8;db=1;var e=ao(),a=Ll(),l=Mt(),i=X1(),c=uf(),u=kl();function d(h,f,p){f=e(f,h);for(var g=-1,x=f.length,b=!1;++g<x;){var w=u(f[g]);if(!(b=h!=null&&p(h,w)))break;h=h[w]}return b||++g!=x?b:(x=h==null?0:h.length,!!x&&c(x)&&i(w,x)&&(l(h)||a(h)))}return D8=d,D8}var O8,hb;function oS(){if(hb)return O8;hb=1;var e=fB(),a=iS();function l(i,c){return i!=null&&a(i,c,e)}return O8=l,O8}var F8,mb;function pB(){if(mb)return F8;mb=1;var e=nS(),a=mB(),l=oS(),i=yf(),c=rS(),u=sS(),d=kl(),h=1,f=2;function p(g,x){return i(g)&&c(x)?u(d(g),x):function(b){var w=a(b,g);return w===void 0&&w===x?l(b,g):e(x,w,h|f)}}return F8=p,F8}var z8,fb;function cS(){if(fb)return z8;fb=1;function e(a){return function(l){return l==null?void 0:l[a]}}return z8=e,z8}var q8,pb;function gB(){if(pb)return q8;pb=1;var e=no();function a(l){return function(i){return e(i,l)}}return q8=a,q8}var $8,gb;function xB(){if(gb)return $8;gb=1;var e=cS(),a=gB(),l=yf(),i=kl();function c(u){return l(u)?e(i(u)):a(u)}return $8=c,$8}var B8,xb;function Vn(){if(xb)return B8;xb=1;var e=oB(),a=pB(),l=U0(),i=Mt(),c=xB();function u(d){return typeof d=="function"?d:d==null?l:typeof d=="object"?i(d)?a(d[0],d[1]):e(d):c(d)}return B8=u,B8}var I8,vb;function uS(){if(vb)return I8;vb=1;var e=zM(),a=J$(),l=Vn(),i=Mt();function c(u,d){var h=i(u)?e:a;return h(u,l(d,3))}return I8=c,I8}var U8,bb;function vB(){if(bb)return U8;bb=1;var e=Object.prototype,a=e.hasOwnProperty;function l(i,c){return i!=null&&a.call(i,c)}return U8=l,U8}var P8,yb;function dS(){if(yb)return P8;yb=1;var e=vB(),a=iS();function l(i,c){return i!=null&&a(i,c,e)}return P8=l,P8}var G8,wb;function bB(){if(wb)return G8;wb=1;var e=hf(),a=ts(),l=Ll(),i=Mt(),c=Hn(),u=es(),d=J1(),h=Rl(),f="[object Map]",p="[object Set]",g=Object.prototype,x=g.hasOwnProperty;function b(w){if(w==null)return!0;if(c(w)&&(i(w)||typeof w=="string"||typeof w.splice=="function"||u(w)||h(w)||l(w)))return!w.length;var M=a(w);if(M==f||M==p)return!w.size;if(d(w))return!e(w).length;for(var E in w)if(x.call(w,E))return!1;return!0}return G8=b,G8}var Y8,Ab;function hS(){if(Ab)return Y8;Ab=1;function e(a){return a===void 0}return Y8=e,Y8}var K8,jb;function mS(){if(jb)return K8;jb=1;var e=eo(),a=Hn();function l(i,c){var u=-1,d=a(i)?Array(i.length):[];return e(i,function(h,f,p){d[++u]=c(h,f,p)}),d}return K8=l,K8}var X8,Eb;function fS(){if(Eb)return X8;Eb=1;var e=to(),a=Vn(),l=mS(),i=Mt();function c(u,d){var h=i(u)?e:l;return h(u,a(d,3))}return X8=c,X8}var Q8,Nb;function yB(){if(Nb)return Q8;Nb=1;function e(a,l,i,c){var u=-1,d=a==null?0:a.length;for(c&&d&&(i=a[++u]);++u<d;)i=l(i,a[u],u,a);return i}return Q8=e,Q8}var J8,Mb;function wB(){if(Mb)return J8;Mb=1;function e(a,l,i,c,u){return u(a,function(d,h,f){i=c?(c=!1,d):l(i,d,h,f)}),i}return J8=e,J8}var W8,Sb;function pS(){if(Sb)return W8;Sb=1;var e=yB(),a=eo(),l=Vn(),i=wB(),c=Mt();function u(d,h,f){var p=c(d)?e:i,g=arguments.length<3;return p(d,l(h,4),f,g,a)}return W8=u,W8}var e4,Zb;function AB(){if(Zb)return e4;Zb=1;var e=$0(),a=Mt(),l=ln(),i="[object String]";function c(u){return typeof u=="string"||!a(u)&&l(u)&&e(u)==i}return e4=c,e4}var t4,Cb;function jB(){if(Cb)return t4;Cb=1;var e=cS(),a=e("length");return t4=a,t4}var a4,Hb;function EB(){if(Hb)return a4;Hb=1;var e="\\ud800-\\udfff",a="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",c=a+l+i,u="\\ufe0e\\ufe0f",d="\\u200d",h=RegExp("["+d+e+c+u+"]");function f(p){return h.test(p)}return a4=f,a4}var n4,Vb;function NB(){if(Vb)return n4;Vb=1;var e="\\ud800-\\udfff",a="\\u0300-\\u036f",l="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",c=a+l+i,u="\\ufe0e\\ufe0f",d="["+e+"]",h="["+c+"]",f="\\ud83c[\\udffb-\\udfff]",p="(?:"+h+"|"+f+")",g="[^"+e+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",M=p+"?",E="["+u+"]?",j="(?:"+w+"(?:"+[g,x,b].join("|")+")"+E+M+")*",A=E+M+j,S="(?:"+[g+h+"?",h,x,b,d].join("|")+")",N=RegExp(f+"(?="+f+")|"+S+A,"g");function C(V){for(var _=N.lastIndex=0;N.test(V);)++_;return _}return n4=C,n4}var r4,_b;function MB(){if(_b)return r4;_b=1;var e=jB(),a=EB(),l=NB();function i(c){return a(c)?l(c):e(c)}return r4=i,r4}var s4,Tb;function SB(){if(Tb)return s4;Tb=1;var e=hf(),a=ts(),l=Hn(),i=AB(),c=MB(),u="[object Map]",d="[object Set]";function h(f){if(f==null)return 0;if(l(f))return i(f)?c(f):f.length;var p=a(f);return p==u||p==d?f.size:e(f).length}return s4=h,s4}var l4,Lb;function ZB(){if(Lb)return l4;Lb=1;var e=cf(),a=YM(),l=vf(),i=Vn(),c=W1(),u=Mt(),d=es(),h=_l(),f=Va(),p=Rl();function g(x,b,w){var M=u(x),E=M||d(x)||p(x);if(b=i(b,4),w==null){var j=x&&x.constructor;E?w=M?new j:[]:f(x)?w=h(j)?a(c(x)):{}:w={}}return(E?e:l)(x,function(A,S,N){return b(w,A,S,N)}),w}return l4=g,l4}var i4,Rb;function CB(){if(Rb)return i4;Rb=1;var e=Wr(),a=Ll(),l=Mt(),i=e?e.isConcatSpreadable:void 0;function c(u){return l(u)||a(u)||!!(i&&u&&u[i])}return i4=c,i4}var o4,kb;function wf(){if(kb)return o4;kb=1;var e=ff(),a=CB();function l(i,c,u,d,h){var f=-1,p=i.length;for(u||(u=a),h||(h=[]);++f<p;){var g=i[f];c>0&&u(g)?c>1?l(g,c-1,u,d,h):e(h,g):d||(h[h.length]=g)}return h}return o4=l,o4}var c4,Db;function HB(){if(Db)return c4;Db=1;function e(a,l,i){switch(i.length){case 0:return a.call(l);case 1:return a.call(l,i[0]);case 2:return a.call(l,i[0],i[1]);case 3:return a.call(l,i[0],i[1],i[2])}return a.apply(l,i)}return c4=e,c4}var u4,Ob;function gS(){if(Ob)return u4;Ob=1;var e=HB(),a=Math.max;function l(i,c,u){return c=a(c===void 0?i.length-1:c,0),function(){for(var d=arguments,h=-1,f=a(d.length-c,0),p=Array(f);++h<f;)p[h]=d[c+h];h=-1;for(var g=Array(c+1);++h<c;)g[h]=d[h];return g[c]=u(p),e(i,this,g)}}return u4=l,u4}var d4,Fb;function VB(){if(Fb)return d4;Fb=1;var e=gf(),a=RM(),l=U0(),i=a?function(c,u){return a(c,"toString",{configurable:!0,enumerable:!1,value:e(u),writable:!0})}:l;return d4=i,d4}var h4,zb;function _B(){if(zb)return h4;zb=1;var e=800,a=16,l=Date.now;function i(c){var u=0,d=0;return function(){var h=l(),f=a-(h-d);if(d=h,f>0){if(++u>=e)return arguments[0]}else u=0;return c.apply(void 0,arguments)}}return h4=i,h4}var m4,qb;function xS(){if(qb)return m4;qb=1;var e=VB(),a=_B(),l=a(e);return m4=l,m4}var f4,$b;function ro(){if($b)return f4;$b=1;var e=U0(),a=gS(),l=xS();function i(c,u){return l(a(c,u,e),c+"")}return f4=i,f4}var p4,Bb;function vS(){if(Bb)return p4;Bb=1;function e(a,l,i,c){for(var u=a.length,d=i+(c?1:-1);c?d--:++d<u;)if(l(a[d],d,a))return d;return-1}return p4=e,p4}var g4,Ib;function TB(){if(Ib)return g4;Ib=1;function e(a){return a!==a}return g4=e,g4}var x4,Ub;function LB(){if(Ub)return x4;Ub=1;function e(a,l,i){for(var c=i-1,u=a.length;++c<u;)if(a[c]===l)return c;return-1}return x4=e,x4}var v4,Pb;function RB(){if(Pb)return v4;Pb=1;var e=vS(),a=TB(),l=LB();function i(c,u,d){return u===u?l(c,u,d):e(c,a,d)}return v4=i,v4}var b4,Gb;function kB(){if(Gb)return b4;Gb=1;var e=RB();function a(l,i){var c=l==null?0:l.length;return!!c&&e(l,i,0)>-1}return b4=a,b4}var y4,Yb;function DB(){if(Yb)return y4;Yb=1;function e(a,l,i){for(var c=-1,u=a==null?0:a.length;++c<u;)if(i(l,a[c]))return!0;return!1}return y4=e,y4}var w4,Kb;function OB(){if(Kb)return w4;Kb=1;function e(){}return w4=e,w4}var A4,Xb;function FB(){if(Xb)return A4;Xb=1;var e=UM(),a=OB(),l=bf(),i=1/0,c=e&&1/l(new e([,-0]))[1]==i?function(u){return new e(u)}:a;return A4=c,A4}var j4,Qb;function zB(){if(Qb)return j4;Qb=1;var e=eS(),a=kB(),l=DB(),i=tS(),c=FB(),u=bf(),d=200;function h(f,p,g){var x=-1,b=a,w=f.length,M=!0,E=[],j=E;if(g)M=!1,b=l;else if(w>=d){var A=p?null:c(f);if(A)return u(A);M=!1,b=i,j=new e}else j=p?[]:E;e:for(;++x<w;){var S=f[x],N=p?p(S):S;if(S=g||S!==0?S:0,M&&N===N){for(var C=j.length;C--;)if(j[C]===N)continue e;p&&j.push(N),E.push(S)}else b(j,N,g)||(j!==E&&j.push(N),E.push(S))}return E}return j4=h,j4}var E4,Jb;function bS(){if(Jb)return E4;Jb=1;var e=Hn(),a=ln();function l(i){return a(i)&&e(i)}return E4=l,E4}var N4,Wb;function qB(){if(Wb)return N4;Wb=1;var e=wf(),a=ro(),l=zB(),i=bS(),c=a(function(u){return l(e(u,1,i,!0))});return N4=c,N4}var M4,ey;function $B(){if(ey)return M4;ey=1;var e=to();function a(l,i){return e(i,function(c){return l[c]})}return M4=a,M4}var S4,ty;function yS(){if(ty)return S4;ty=1;var e=$B(),a=m0();function l(i){return i==null?[]:e(i,a(i))}return S4=l,S4}var Z4,ay;function _a(){if(ay)return Z4;ay=1;var e;if(typeof sf=="function")try{e={clone:K$(),constant:gf(),each:WM(),filter:uS(),has:dS(),isArray:Mt(),isEmpty:bB(),isFunction:_l(),isUndefined:hS(),keys:m0(),map:fS(),reduce:pS(),size:SB(),transform:ZB(),union:qB(),values:yS()}}catch{}return e||(e=window._),Z4=e,Z4}var C4,ny;function Af(){if(ny)return C4;ny=1;var e=_a();C4=c;var a="\0",l="\0",i="";function c(g){this._isDirected=e.has(g,"directed")?g.directed:!0,this._isMultigraph=e.has(g,"multigraph")?g.multigraph:!1,this._isCompound=e.has(g,"compound")?g.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}c.prototype._nodeCount=0,c.prototype._edgeCount=0,c.prototype.isDirected=function(){return this._isDirected},c.prototype.isMultigraph=function(){return this._isMultigraph},c.prototype.isCompound=function(){return this._isCompound},c.prototype.setGraph=function(g){return this._label=g,this},c.prototype.graph=function(){return this._label},c.prototype.setDefaultNodeLabel=function(g){return e.isFunction(g)||(g=e.constant(g)),this._defaultNodeLabelFn=g,this},c.prototype.nodeCount=function(){return this._nodeCount},c.prototype.nodes=function(){return e.keys(this._nodes)},c.prototype.sources=function(){var g=this;return e.filter(this.nodes(),function(x){return e.isEmpty(g._in[x])})},c.prototype.sinks=function(){var g=this;return e.filter(this.nodes(),function(x){return e.isEmpty(g._out[x])})},c.prototype.setNodes=function(g,x){var b=arguments,w=this;return e.each(g,function(M){b.length>1?w.setNode(M,x):w.setNode(M)}),this},c.prototype.setNode=function(g,x){return e.has(this._nodes,g)?(arguments.length>1&&(this._nodes[g]=x),this):(this._nodes[g]=arguments.length>1?x:this._defaultNodeLabelFn(g),this._isCompound&&(this._parent[g]=l,this._children[g]={},this._children[l][g]=!0),this._in[g]={},this._preds[g]={},this._out[g]={},this._sucs[g]={},++this._nodeCount,this)},c.prototype.node=function(g){return this._nodes[g]},c.prototype.hasNode=function(g){return e.has(this._nodes,g)},c.prototype.removeNode=function(g){var x=this;if(e.has(this._nodes,g)){var b=function(w){x.removeEdge(x._edgeObjs[w])};delete this._nodes[g],this._isCompound&&(this._removeFromParentsChildList(g),delete this._parent[g],e.each(this.children(g),function(w){x.setParent(w)}),delete this._children[g]),e.each(e.keys(this._in[g]),b),delete this._in[g],delete this._preds[g],e.each(e.keys(this._out[g]),b),delete this._out[g],delete this._sucs[g],--this._nodeCount}return this},c.prototype.setParent=function(g,x){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(x))x=l;else{x+="";for(var b=x;!e.isUndefined(b);b=this.parent(b))if(b===g)throw new Error("Setting "+x+" as parent of "+g+" would create a cycle");this.setNode(x)}return this.setNode(g),this._removeFromParentsChildList(g),this._parent[g]=x,this._children[x][g]=!0,this},c.prototype._removeFromParentsChildList=function(g){delete this._children[this._parent[g]][g]},c.prototype.parent=function(g){if(this._isCompound){var x=this._parent[g];if(x!==l)return x}},c.prototype.children=function(g){if(e.isUndefined(g)&&(g=l),this._isCompound){var x=this._children[g];if(x)return e.keys(x)}else{if(g===l)return this.nodes();if(this.hasNode(g))return[]}},c.prototype.predecessors=function(g){var x=this._preds[g];if(x)return e.keys(x)},c.prototype.successors=function(g){var x=this._sucs[g];if(x)return e.keys(x)},c.prototype.neighbors=function(g){var x=this.predecessors(g);if(x)return e.union(x,this.successors(g))},c.prototype.isLeaf=function(g){var x;return this.isDirected()?x=this.successors(g):x=this.neighbors(g),x.length===0},c.prototype.filterNodes=function(g){var x=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});x.setGraph(this.graph());var b=this;e.each(this._nodes,function(E,j){g(j)&&x.setNode(j,E)}),e.each(this._edgeObjs,function(E){x.hasNode(E.v)&&x.hasNode(E.w)&&x.setEdge(E,b.edge(E))});var w={};function M(E){var j=b.parent(E);return j===void 0||x.hasNode(j)?(w[E]=j,j):j in w?w[j]:M(j)}return this._isCompound&&e.each(x.nodes(),function(E){x.setParent(E,M(E))}),x},c.prototype.setDefaultEdgeLabel=function(g){return e.isFunction(g)||(g=e.constant(g)),this._defaultEdgeLabelFn=g,this},c.prototype.edgeCount=function(){return this._edgeCount},c.prototype.edges=function(){return e.values(this._edgeObjs)},c.prototype.setPath=function(g,x){var b=this,w=arguments;return e.reduce(g,function(M,E){return w.length>1?b.setEdge(M,E,x):b.setEdge(M,E),E}),this},c.prototype.setEdge=function(){var g,x,b,w,M=!1,E=arguments[0];typeof E=="object"&&E!==null&&"v"in E?(g=E.v,x=E.w,b=E.name,arguments.length===2&&(w=arguments[1],M=!0)):(g=E,x=arguments[1],b=arguments[3],arguments.length>2&&(w=arguments[2],M=!0)),g=""+g,x=""+x,e.isUndefined(b)||(b=""+b);var j=h(this._isDirected,g,x,b);if(e.has(this._edgeLabels,j))return M&&(this._edgeLabels[j]=w),this;if(!e.isUndefined(b)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(g),this.setNode(x),this._edgeLabels[j]=M?w:this._defaultEdgeLabelFn(g,x,b);var A=f(this._isDirected,g,x,b);return g=A.v,x=A.w,Object.freeze(A),this._edgeObjs[j]=A,u(this._preds[x],g),u(this._sucs[g],x),this._in[x][j]=A,this._out[g][j]=A,this._edgeCount++,this},c.prototype.edge=function(g,x,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,x,b);return this._edgeLabels[w]},c.prototype.hasEdge=function(g,x,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,x,b);return e.has(this._edgeLabels,w)},c.prototype.removeEdge=function(g,x,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,x,b),M=this._edgeObjs[w];return M&&(g=M.v,x=M.w,delete this._edgeLabels[w],delete this._edgeObjs[w],d(this._preds[x],g),d(this._sucs[g],x),delete this._in[x][w],delete this._out[g][w],this._edgeCount--),this},c.prototype.inEdges=function(g,x){var b=this._in[g];if(b){var w=e.values(b);return x?e.filter(w,function(M){return M.v===x}):w}},c.prototype.outEdges=function(g,x){var b=this._out[g];if(b){var w=e.values(b);return x?e.filter(w,function(M){return M.w===x}):w}},c.prototype.nodeEdges=function(g,x){var b=this.inEdges(g,x);if(b)return b.concat(this.outEdges(g,x))};function u(g,x){g[x]?g[x]++:g[x]=1}function d(g,x){--g[x]||delete g[x]}function h(g,x,b,w){var M=""+x,E=""+b;if(!g&&M>E){var j=M;M=E,E=j}return M+i+E+i+(e.isUndefined(w)?a:w)}function f(g,x,b,w){var M=""+x,E=""+b;if(!g&&M>E){var j=M;M=E,E=j}var A={v:M,w:E};return w&&(A.name=w),A}function p(g,x){return h(g,x.v,x.w,x.name)}return C4}var H4,ry;function BB(){return ry||(ry=1,H4="2.1.8"),H4}var V4,sy;function IB(){return sy||(sy=1,V4={Graph:Af(),version:BB()}),V4}var _4,ly;function UB(){if(ly)return _4;ly=1;var e=_a(),a=Af();_4={write:l,read:u};function l(d){var h={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:i(d),edges:c(d)};return e.isUndefined(d.graph())||(h.value=e.clone(d.graph())),h}function i(d){return e.map(d.nodes(),function(h){var f=d.node(h),p=d.parent(h),g={v:h};return e.isUndefined(f)||(g.value=f),e.isUndefined(p)||(g.parent=p),g})}function c(d){return e.map(d.edges(),function(h){var f=d.edge(h),p={v:h.v,w:h.w};return e.isUndefined(h.name)||(p.name=h.name),e.isUndefined(f)||(p.value=f),p})}function u(d){var h=new a(d.options).setGraph(d.value);return e.each(d.nodes,function(f){h.setNode(f.v,f.value),f.parent&&h.setParent(f.v,f.parent)}),e.each(d.edges,function(f){h.setEdge({v:f.v,w:f.w,name:f.name},f.value)}),h}return _4}var T4,iy;function PB(){if(iy)return T4;iy=1;var e=_a();T4=a;function a(l){var i={},c=[],u;function d(h){e.has(i,h)||(i[h]=!0,u.push(h),e.each(l.successors(h),d),e.each(l.predecessors(h),d))}return e.each(l.nodes(),function(h){u=[],d(h),u.length&&c.push(u)}),c}return T4}var L4,oy;function wS(){if(oy)return L4;oy=1;var e=_a();L4=a;function a(){this._arr=[],this._keyIndices={}}return a.prototype.size=function(){return this._arr.length},a.prototype.keys=function(){return this._arr.map(function(l){return l.key})},a.prototype.has=function(l){return e.has(this._keyIndices,l)},a.prototype.priority=function(l){var i=this._keyIndices[l];if(i!==void 0)return this._arr[i].priority},a.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},a.prototype.add=function(l,i){var c=this._keyIndices;if(l=String(l),!e.has(c,l)){var u=this._arr,d=u.length;return c[l]=d,u.push({key:l,priority:i}),this._decrease(d),!0}return!1},a.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var l=this._arr.pop();return delete this._keyIndices[l.key],this._heapify(0),l.key},a.prototype.decrease=function(l,i){var c=this._keyIndices[l];if(i>this._arr[c].priority)throw new Error("New priority is greater than current priority. Key: "+l+" Old: "+this._arr[c].priority+" New: "+i);this._arr[c].priority=i,this._decrease(c)},a.prototype._heapify=function(l){var i=this._arr,c=2*l,u=c+1,d=l;c<i.length&&(d=i[c].priority<i[d].priority?c:d,u<i.length&&(d=i[u].priority<i[d].priority?u:d),d!==l&&(this._swap(l,d),this._heapify(d)))},a.prototype._decrease=function(l){for(var i=this._arr,c=i[l].priority,u;l!==0&&(u=l>>1,!(i[u].priority<c));)this._swap(l,u),l=u},a.prototype._swap=function(l,i){var c=this._arr,u=this._keyIndices,d=c[l],h=c[i];c[l]=h,c[i]=d,u[h.key]=l,u[d.key]=i},L4}var R4,cy;function AS(){if(cy)return R4;cy=1;var e=_a(),a=wS();R4=i;var l=e.constant(1);function i(u,d,h,f){return c(u,String(d),h||l,f||function(p){return u.outEdges(p)})}function c(u,d,h,f){var p={},g=new a,x,b,w=function(M){var E=M.v!==x?M.v:M.w,j=p[E],A=h(M),S=b.distance+A;if(A<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+M+" Weight: "+A);S<j.distance&&(j.distance=S,j.predecessor=x,g.decrease(E,S))};for(u.nodes().forEach(function(M){var E=M===d?0:Number.POSITIVE_INFINITY;p[M]={distance:E},g.add(M,E)});g.size()>0&&(x=g.removeMin(),b=p[x],b.distance!==Number.POSITIVE_INFINITY);)f(x).forEach(w);return p}return R4}var k4,uy;function GB(){if(uy)return k4;uy=1;var e=AS(),a=_a();k4=l;function l(i,c,u){return a.transform(i.nodes(),function(d,h){d[h]=e(i,h,c,u)},{})}return k4}var D4,dy;function jS(){if(dy)return D4;dy=1;var e=_a();D4=a;function a(l){var i=0,c=[],u={},d=[];function h(f){var p=u[f]={onStack:!0,lowlink:i,index:i++};if(c.push(f),l.successors(f).forEach(function(b){e.has(u,b)?u[b].onStack&&(p.lowlink=Math.min(p.lowlink,u[b].index)):(h(b),p.lowlink=Math.min(p.lowlink,u[b].lowlink))}),p.lowlink===p.index){var g=[],x;do x=c.pop(),u[x].onStack=!1,g.push(x);while(f!==x);d.push(g)}}return l.nodes().forEach(function(f){e.has(u,f)||h(f)}),d}return D4}var O4,hy;function YB(){if(hy)return O4;hy=1;var e=_a(),a=jS();O4=l;function l(i){return e.filter(a(i),function(c){return c.length>1||c.length===1&&i.hasEdge(c[0],c[0])})}return O4}var F4,my;function KB(){if(my)return F4;my=1;var e=_a();F4=l;var a=e.constant(1);function l(c,u,d){return i(c,u||a,d||function(h){return c.outEdges(h)})}function i(c,u,d){var h={},f=c.nodes();return f.forEach(function(p){h[p]={},h[p][p]={distance:0},f.forEach(function(g){p!==g&&(h[p][g]={distance:Number.POSITIVE_INFINITY})}),d(p).forEach(function(g){var x=g.v===p?g.w:g.v,b=u(g);h[p][x]={distance:b,predecessor:p}})}),f.forEach(function(p){var g=h[p];f.forEach(function(x){var b=h[x];f.forEach(function(w){var M=b[p],E=g[w],j=b[w],A=M.distance+E.distance;A<j.distance&&(j.distance=A,j.predecessor=E.predecessor)})})}),h}return F4}var z4,fy;function ES(){if(fy)return z4;fy=1;var e=_a();z4=a,a.CycleException=l;function a(i){var c={},u={},d=[];function h(f){if(e.has(u,f))throw new l;e.has(c,f)||(u[f]=!0,c[f]=!0,e.each(i.predecessors(f),h),delete u[f],d.push(f))}if(e.each(i.sinks(),h),e.size(c)!==i.nodeCount())throw new l;return d}function l(){}return l.prototype=new Error,z4}var q4,py;function XB(){if(py)return q4;py=1;var e=ES();q4=a;function a(l){try{e(l)}catch(i){if(i instanceof e.CycleException)return!1;throw i}return!0}return q4}var $4,gy;function NS(){if(gy)return $4;gy=1;var e=_a();$4=a;function a(i,c,u){e.isArray(c)||(c=[c]);var d=(i.isDirected()?i.successors:i.neighbors).bind(i),h=[],f={};return e.each(c,function(p){if(!i.hasNode(p))throw new Error("Graph does not have node: "+p);l(i,p,u==="post",f,d,h)}),h}function l(i,c,u,d,h,f){e.has(d,c)||(d[c]=!0,u||f.push(c),e.each(h(c),function(p){l(i,p,u,d,h,f)}),u&&f.push(c))}return $4}var B4,xy;function QB(){if(xy)return B4;xy=1;var e=NS();B4=a;function a(l,i){return e(l,i,"post")}return B4}var I4,vy;function JB(){if(vy)return I4;vy=1;var e=NS();I4=a;function a(l,i){return e(l,i,"pre")}return I4}var U4,by;function WB(){if(by)return U4;by=1;var e=_a(),a=Af(),l=wS();U4=i;function i(c,u){var d=new a,h={},f=new l,p;function g(b){var w=b.v===p?b.w:b.v,M=f.priority(w);if(M!==void 0){var E=u(b);E<M&&(h[w]=p,f.decrease(w,E))}}if(c.nodeCount()===0)return d;e.each(c.nodes(),function(b){f.add(b,Number.POSITIVE_INFINITY),d.setNode(b)}),f.decrease(c.nodes()[0],0);for(var x=!1;f.size()>0;){if(p=f.removeMin(),e.has(h,p))d.setEdge(p,h[p]);else{if(x)throw new Error("Input graph is not connected: "+c);x=!0}c.nodeEdges(p).forEach(g)}return d}return U4}var P4,yy;function eI(){return yy||(yy=1,P4={components:PB(),dijkstra:AS(),dijkstraAll:GB(),findCycles:YB(),floydWarshall:KB(),isAcyclic:XB(),postorder:QB(),preorder:JB(),prim:WB(),tarjan:jS(),topsort:ES()}),P4}var G4,wy;function tI(){if(wy)return G4;wy=1;var e=IB();return G4={Graph:e.Graph,json:UB(),alg:eI(),version:e.version},G4}var Y4,Ay;function $a(){if(Ay)return Y4;Ay=1;var e;if(typeof sf=="function")try{e=tI()}catch{}return e||(e=window.graphlib),Y4=e,Y4}var K4,jy;function aI(){if(jy)return K4;jy=1;var e=XM(),a=1,l=4;function i(c){return e(c,a|l)}return K4=i,K4}var X4,Ey;function so(){if(Ey)return X4;Ey=1;var e=Jr(),a=Hn(),l=X1(),i=Va();function c(u,d,h){if(!i(h))return!1;var f=typeof d;return(f=="number"?a(h)&&l(d,h.length):f=="string"&&d in h)?e(h[d],u):!1}return X4=c,X4}var Q4,Ny;function nI(){if(Ny)return Q4;Ny=1;var e=ro(),a=Jr(),l=so(),i=I0(),c=Object.prototype,u=c.hasOwnProperty,d=e(function(h,f){h=Object(h);var p=-1,g=f.length,x=g>2?f[2]:void 0;for(x&&l(f[0],f[1],x)&&(g=1);++p<g;)for(var b=f[p],w=i(b),M=-1,E=w.length;++M<E;){var j=w[M],A=h[j];(A===void 0||a(A,c[j])&&!u.call(h,j))&&(h[j]=b[j])}return h});return Q4=d,Q4}var J4,My;function rI(){if(My)return J4;My=1;var e=Vn(),a=Hn(),l=m0();function i(c){return function(u,d,h){var f=Object(u);if(!a(u)){var p=e(d,3);u=l(u),d=function(x){return p(f[x],x,f)}}var g=c(u,d,h);return g>-1?f[p?u[g]:g]:void 0}}return J4=i,J4}var W4,Sy;function sI(){if(Sy)return W4;Sy=1;var e=/\s/;function a(l){for(var i=l.length;i--&&e.test(l.charAt(i)););return i}return W4=a,W4}var e6,Zy;function lI(){if(Zy)return e6;Zy=1;var e=sI(),a=/^\s+/;function l(i){return i&&i.slice(0,e(i)+1).replace(a,"")}return e6=l,e6}var t6,Cy;function iI(){if(Cy)return t6;Cy=1;var e=lI(),a=Va(),l=as(),i=NaN,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function f(p){if(typeof p=="number")return p;if(l(p))return i;if(a(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=a(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=e(p);var x=u.test(p);return x||d.test(p)?h(p.slice(2),x?2:8):c.test(p)?i:+p}return t6=f,t6}var a6,Hy;function MS(){if(Hy)return a6;Hy=1;var e=iI(),a=1/0,l=17976931348623157e292;function i(c){if(!c)return c===0?c:0;if(c=e(c),c===a||c===-a){var u=c<0?-1:1;return u*l}return c===c?c:0}return a6=i,a6}var n6,Vy;function oI(){if(Vy)return n6;Vy=1;var e=MS();function a(l){var i=e(l),c=i%1;return i===i?c?i-c:i:0}return n6=a,n6}var r6,_y;function cI(){if(_y)return r6;_y=1;var e=vS(),a=Vn(),l=oI(),i=Math.max;function c(u,d,h){var f=u==null?0:u.length;if(!f)return-1;var p=h==null?0:l(h);return p<0&&(p=i(f+p,0)),e(u,a(d,3),p)}return r6=c,r6}var s6,Ty;function uI(){if(Ty)return s6;Ty=1;var e=rI(),a=cI(),l=e(a);return s6=l,s6}var l6,Ly;function SS(){if(Ly)return l6;Ly=1;var e=wf();function a(l){var i=l==null?0:l.length;return i?e(l,1):[]}return l6=a,l6}var i6,Ry;function dI(){if(Ry)return i6;Ry=1;var e=xf(),a=QM(),l=I0();function i(c,u){return c==null?c:e(c,a(u),l)}return i6=i,i6}var o6,ky;function hI(){if(ky)return o6;ky=1;function e(a){var l=a==null?0:a.length;return l?a[l-1]:void 0}return o6=e,o6}var c6,Dy;function mI(){if(Dy)return c6;Dy=1;var e=Y1(),a=vf(),l=Vn();function i(c,u){var d={};return u=l(u,3),a(c,function(h,f,p){e(d,f,u(h,f,p))}),d}return c6=i,c6}var u6,Oy;function jf(){if(Oy)return u6;Oy=1;var e=as();function a(l,i,c){for(var u=-1,d=l.length;++u<d;){var h=l[u],f=i(h);if(f!=null&&(p===void 0?f===f&&!e(f):c(f,p)))var p=f,g=h}return g}return u6=a,u6}var d6,Fy;function fI(){if(Fy)return d6;Fy=1;function e(a,l){return a>l}return d6=e,d6}var h6,zy;function pI(){if(zy)return h6;zy=1;var e=jf(),a=fI(),l=U0();function i(c){return c&&c.length?e(c,l,a):void 0}return h6=i,h6}var m6,qy;function ZS(){if(qy)return m6;qy=1;var e=Y1(),a=Jr();function l(i,c,u){(u!==void 0&&!a(i[c],u)||u===void 0&&!(c in i))&&e(i,c,u)}return m6=l,m6}var f6,$y;function gI(){if($y)return f6;$y=1;var e=$0(),a=W1(),l=ln(),i="[object Object]",c=Function.prototype,u=Object.prototype,d=c.toString,h=u.hasOwnProperty,f=d.call(Object);function p(g){if(!l(g)||e(g)!=i)return!1;var x=a(g);if(x===null)return!0;var b=h.call(x,"constructor")&&x.constructor;return typeof b=="function"&&b instanceof b&&d.call(b)==f}return f6=p,f6}var p6,By;function CS(){if(By)return p6;By=1;function e(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}return p6=e,p6}var g6,Iy;function xI(){if(Iy)return g6;Iy=1;var e=Tl(),a=I0();function l(i){return e(i,a(i))}return g6=l,g6}var x6,Uy;function vI(){if(Uy)return x6;Uy=1;var e=ZS(),a=OM(),l=GM(),i=FM(),c=KM(),u=Ll(),d=Mt(),h=bS(),f=es(),p=_l(),g=Va(),x=gI(),b=Rl(),w=CS(),M=xI();function E(j,A,S,N,C,V,_){var H=w(j,S),R=w(A,S),L=_.get(R);if(L){e(j,S,L);return}var O=V?V(H,R,S+"",j,A,_):void 0,I=O===void 0;if(I){var X=d(R),K=!X&&f(R),B=!X&&!K&&b(R);O=R,X||K||B?d(H)?O=H:h(H)?O=i(H):K?(I=!1,O=a(R,!0)):B?(I=!1,O=l(R,!0)):O=[]:x(R)||u(R)?(O=H,u(H)?O=M(H):(!g(H)||p(H))&&(O=c(R))):I=!1}I&&(_.set(R,O),C(O,R,N,V,_),_.delete(R)),e(j,S,O)}return x6=E,x6}var v6,Py;function bI(){if(Py)return v6;Py=1;var e=G1(),a=ZS(),l=xf(),i=vI(),c=Va(),u=I0(),d=CS();function h(f,p,g,x,b){f!==p&&l(p,function(w,M){if(b||(b=new e),c(w))i(f,p,M,g,h,x,b);else{var E=x?x(d(f,M),w,M+"",f,p,b):void 0;E===void 0&&(E=w),a(f,M,E)}},u)}return v6=h,v6}var b6,Gy;function yI(){if(Gy)return b6;Gy=1;var e=ro(),a=so();function l(i){return e(function(c,u){var d=-1,h=u.length,f=h>1?u[h-1]:void 0,p=h>2?u[2]:void 0;for(f=i.length>3&&typeof f=="function"?(h--,f):void 0,p&&a(u[0],u[1],p)&&(f=h<3?void 0:f,h=1),c=Object(c);++d<h;){var g=u[d];g&&i(c,g,d,f)}return c})}return b6=l,b6}var y6,Yy;function wI(){if(Yy)return y6;Yy=1;var e=bI(),a=yI(),l=a(function(i,c,u){e(i,c,u)});return y6=l,y6}var w6,Ky;function HS(){if(Ky)return w6;Ky=1;function e(a,l){return a<l}return w6=e,w6}var A6,Xy;function AI(){if(Xy)return A6;Xy=1;var e=jf(),a=HS(),l=U0();function i(c){return c&&c.length?e(c,l,a):void 0}return A6=i,A6}var j6,Qy;function jI(){if(Qy)return j6;Qy=1;var e=jf(),a=Vn(),l=HS();function i(c,u){return c&&c.length?e(c,a(u,2),l):void 0}return j6=i,j6}var E6,Jy;function EI(){if(Jy)return E6;Jy=1;var e=Ua(),a=function(){return e.Date.now()};return E6=a,E6}var N6,Wy;function NI(){if(Wy)return N6;Wy=1;var e=K1(),a=ao(),l=X1(),i=Va(),c=kl();function u(d,h,f,p){if(!i(d))return d;h=a(h,d);for(var g=-1,x=h.length,b=x-1,w=d;w!=null&&++g<x;){var M=c(h[g]),E=f;if(M==="__proto__"||M==="constructor"||M==="prototype")return d;if(g!=b){var j=w[M];E=p?p(j,M,w):void 0,E===void 0&&(E=i(j)?j:l(h[g+1])?[]:{})}e(w,M,E),w=w[M]}return d}return N6=u,N6}var M6,ew;function MI(){if(ew)return M6;ew=1;var e=no(),a=NI(),l=ao();function i(c,u,d){for(var h=-1,f=u.length,p={};++h<f;){var g=u[h],x=e(c,g);d(x,g)&&a(p,l(g,c),x)}return p}return M6=i,M6}var S6,tw;function SI(){if(tw)return S6;tw=1;var e=MI(),a=oS();function l(i,c){return e(i,c,function(u,d){return a(i,d)})}return S6=l,S6}var Z6,aw;function ZI(){if(aw)return Z6;aw=1;var e=SS(),a=gS(),l=xS();function i(c){return l(a(c,void 0,e),c+"")}return Z6=i,Z6}var C6,nw;function CI(){if(nw)return C6;nw=1;var e=SI(),a=ZI(),l=a(function(i,c){return i==null?{}:e(i,c)});return C6=l,C6}var H6,rw;function HI(){if(rw)return H6;rw=1;var e=Math.ceil,a=Math.max;function l(i,c,u,d){for(var h=-1,f=a(e((c-i)/(u||1)),0),p=Array(f);f--;)p[d?f:++h]=i,i+=u;return p}return H6=l,H6}var V6,sw;function VI(){if(sw)return V6;sw=1;var e=HI(),a=so(),l=MS();function i(c){return function(u,d,h){return h&&typeof h!="number"&&a(u,d,h)&&(d=h=void 0),u=l(u),d===void 0?(d=u,u=0):d=l(d),h=h===void 0?u<d?1:-1:l(h),e(u,d,h,c)}}return V6=i,V6}var _6,lw;function _I(){if(lw)return _6;lw=1;var e=VI(),a=e();return _6=a,_6}var T6,iw;function TI(){if(iw)return T6;iw=1;function e(a,l){var i=a.length;for(a.sort(l);i--;)a[i]=a[i].value;return a}return T6=e,T6}var L6,ow;function LI(){if(ow)return L6;ow=1;var e=as();function a(l,i){if(l!==i){var c=l!==void 0,u=l===null,d=l===l,h=e(l),f=i!==void 0,p=i===null,g=i===i,x=e(i);if(!p&&!x&&!h&&l>i||h&&f&&g&&!p&&!x||u&&f&&g||!c&&g||!d)return 1;if(!u&&!h&&!x&&l<i||x&&c&&d&&!u&&!h||p&&c&&d||!f&&d||!g)return-1}return 0}return L6=a,L6}var R6,cw;function RI(){if(cw)return R6;cw=1;var e=LI();function a(l,i,c){for(var u=-1,d=l.criteria,h=i.criteria,f=d.length,p=c.length;++u<f;){var g=e(d[u],h[u]);if(g){if(u>=p)return g;var x=c[u];return g*(x=="desc"?-1:1)}}return l.index-i.index}return R6=a,R6}var k6,uw;function kI(){if(uw)return k6;uw=1;var e=to(),a=no(),l=Vn(),i=mS(),c=TI(),u=Q1(),d=RI(),h=U0(),f=Mt();function p(g,x,b){x.length?x=e(x,function(E){return f(E)?function(j){return a(j,E.length===1?E[0]:E)}:E}):x=[h];var w=-1;x=e(x,u(l));var M=i(g,function(E,j,A){var S=e(x,function(N){return N(E)});return{criteria:S,index:++w,value:E}});return c(M,function(E,j){return d(E,j,b)})}return k6=p,k6}var D6,dw;function DI(){if(dw)return D6;dw=1;var e=wf(),a=kI(),l=ro(),i=so(),c=l(function(u,d){if(u==null)return[];var h=d.length;return h>1&&i(u,d[0],d[1])?d=[]:h>2&&i(d[0],d[1],d[2])&&(d=[d[0]]),a(u,e(d,1),[])});return D6=c,D6}var O6,hw;function OI(){if(hw)return O6;hw=1;var e=lS(),a=0;function l(i){var c=++a;return e(i)+c}return O6=l,O6}var F6,mw;function FI(){if(mw)return F6;mw=1;function e(a,l,i){for(var c=-1,u=a.length,d=l.length,h={};++c<u;){var f=c<d?l[c]:void 0;i(h,a[c],f)}return h}return F6=e,F6}var z6,fw;function zI(){if(fw)return z6;fw=1;var e=K1(),a=FI();function l(i,c){return a(i||[],c||[],e)}return z6=l,z6}var q6,pw;function st(){if(pw)return q6;pw=1;var e;if(typeof sf=="function")try{e={cloneDeep:aI(),constant:gf(),defaults:nI(),each:WM(),filter:uS(),find:uI(),flatten:SS(),forEach:JM(),forIn:dI(),has:dS(),isUndefined:hS(),last:hI(),map:fS(),mapValues:mI(),max:pI(),merge:wI(),min:AI(),minBy:jI(),now:EI(),pick:CI(),range:_I(),reduce:pS(),sortBy:DI(),uniqueId:OI(),values:yS(),zipObject:zI()}}catch{}return e||(e=window._),q6=e,q6}var $6,gw;function qI(){if(gw)return $6;gw=1,$6=e;function e(){var i={};i._next=i._prev=i,this._sentinel=i}e.prototype.dequeue=function(){var i=this._sentinel,c=i._prev;if(c!==i)return a(c),c},e.prototype.enqueue=function(i){var c=this._sentinel;i._prev&&i._next&&a(i),i._next=c._next,c._next._prev=i,c._next=i,i._prev=c},e.prototype.toString=function(){for(var i=[],c=this._sentinel,u=c._prev;u!==c;)i.push(JSON.stringify(u,l)),u=u._prev;return"["+i.join(", ")+"]"};function a(i){i._prev._next=i._next,i._next._prev=i._prev,delete i._next,delete i._prev}function l(i,c){if(i!=="_next"&&i!=="_prev")return c}return $6}var B6,xw;function $I(){if(xw)return B6;xw=1;var e=st(),a=$a().Graph,l=qI();B6=c;var i=e.constant(1);function c(p,g){if(p.nodeCount()<=1)return[];var x=h(p,g||i),b=u(x.graph,x.buckets,x.zeroIdx);return e.flatten(e.map(b,function(w){return p.outEdges(w.v,w.w)}),!0)}function u(p,g,x){for(var b=[],w=g[g.length-1],M=g[0],E;p.nodeCount();){for(;E=M.dequeue();)d(p,g,x,E);for(;E=w.dequeue();)d(p,g,x,E);if(p.nodeCount()){for(var j=g.length-2;j>0;--j)if(E=g[j].dequeue(),E){b=b.concat(d(p,g,x,E,!0));break}}}return b}function d(p,g,x,b,w){var M=w?[]:void 0;return e.forEach(p.inEdges(b.v),function(E){var j=p.edge(E),A=p.node(E.v);w&&M.push({v:E.v,w:E.w}),A.out-=j,f(g,x,A)}),e.forEach(p.outEdges(b.v),function(E){var j=p.edge(E),A=E.w,S=p.node(A);S.in-=j,f(g,x,S)}),p.removeNode(b.v),M}function h(p,g){var x=new a,b=0,w=0;e.forEach(p.nodes(),function(j){x.setNode(j,{v:j,in:0,out:0})}),e.forEach(p.edges(),function(j){var A=x.edge(j.v,j.w)||0,S=g(j),N=A+S;x.setEdge(j.v,j.w,N),w=Math.max(w,x.node(j.v).out+=S),b=Math.max(b,x.node(j.w).in+=S)});var M=e.range(w+b+3).map(function(){return new l}),E=b+1;return e.forEach(x.nodes(),function(j){f(M,E,x.node(j))}),{graph:x,buckets:M,zeroIdx:E}}function f(p,g,x){x.out?x.in?p[x.out-x.in+g].enqueue(x):p[p.length-1].enqueue(x):p[0].enqueue(x)}return B6}var I6,vw;function BI(){if(vw)return I6;vw=1;var e=st(),a=$I();I6={run:l,undo:c};function l(u){var d=u.graph().acyclicer==="greedy"?a(u,h(u)):i(u);e.forEach(d,function(f){var p=u.edge(f);u.removeEdge(f),p.forwardName=f.name,p.reversed=!0,u.setEdge(f.w,f.v,p,e.uniqueId("rev"))});function h(f){return function(p){return f.edge(p).weight}}}function i(u){var d=[],h={},f={};function p(g){e.has(f,g)||(f[g]=!0,h[g]=!0,e.forEach(u.outEdges(g),function(x){e.has(h,x.w)?d.push(x):p(x.w)}),delete h[g])}return e.forEach(u.nodes(),p),d}function c(u){e.forEach(u.edges(),function(d){var h=u.edge(d);if(h.reversed){u.removeEdge(d);var f=h.forwardName;delete h.reversed,delete h.forwardName,u.setEdge(d.w,d.v,h,f)}})}return I6}var U6,bw;function na(){if(bw)return U6;bw=1;var e=st(),a=$a().Graph;U6={addDummyNode:l,simplify:i,asNonCompoundGraph:c,successorWeights:u,predecessorWeights:d,intersectRect:h,buildLayerMatrix:f,normalizeRanks:p,removeEmptyRanks:g,addBorderNode:x,maxRank:b,partition:w,time:M,notime:E};function l(j,A,S,N){var C;do C=e.uniqueId(N);while(j.hasNode(C));return S.dummy=A,j.setNode(C,S),C}function i(j){var A=new a().setGraph(j.graph());return e.forEach(j.nodes(),function(S){A.setNode(S,j.node(S))}),e.forEach(j.edges(),function(S){var N=A.edge(S.v,S.w)||{weight:0,minlen:1},C=j.edge(S);A.setEdge(S.v,S.w,{weight:N.weight+C.weight,minlen:Math.max(N.minlen,C.minlen)})}),A}function c(j){var A=new a({multigraph:j.isMultigraph()}).setGraph(j.graph());return e.forEach(j.nodes(),function(S){j.children(S).length||A.setNode(S,j.node(S))}),e.forEach(j.edges(),function(S){A.setEdge(S,j.edge(S))}),A}function u(j){var A=e.map(j.nodes(),function(S){var N={};return e.forEach(j.outEdges(S),function(C){N[C.w]=(N[C.w]||0)+j.edge(C).weight}),N});return e.zipObject(j.nodes(),A)}function d(j){var A=e.map(j.nodes(),function(S){var N={};return e.forEach(j.inEdges(S),function(C){N[C.v]=(N[C.v]||0)+j.edge(C).weight}),N});return e.zipObject(j.nodes(),A)}function h(j,A){var S=j.x,N=j.y,C=A.x-S,V=A.y-N,_=j.width/2,H=j.height/2;if(!C&&!V)throw new Error("Not possible to find intersection inside of the rectangle");var R,L;return Math.abs(V)*_>Math.abs(C)*H?(V<0&&(H=-H),R=H*C/V,L=H):(C<0&&(_=-_),R=_,L=_*V/C),{x:S+R,y:N+L}}function f(j){var A=e.map(e.range(b(j)+1),function(){return[]});return e.forEach(j.nodes(),function(S){var N=j.node(S),C=N.rank;e.isUndefined(C)||(A[C][N.order]=S)}),A}function p(j){var A=e.min(e.map(j.nodes(),function(S){return j.node(S).rank}));e.forEach(j.nodes(),function(S){var N=j.node(S);e.has(N,"rank")&&(N.rank-=A)})}function g(j){var A=e.min(e.map(j.nodes(),function(V){return j.node(V).rank})),S=[];e.forEach(j.nodes(),function(V){var _=j.node(V).rank-A;S[_]||(S[_]=[]),S[_].push(V)});var N=0,C=j.graph().nodeRankFactor;e.forEach(S,function(V,_){e.isUndefined(V)&&_%C!==0?--N:N&&e.forEach(V,function(H){j.node(H).rank+=N})})}function x(j,A,S,N){var C={width:0,height:0};return arguments.length>=4&&(C.rank=S,C.order=N),l(j,"border",C,A)}function b(j){return e.max(e.map(j.nodes(),function(A){var S=j.node(A).rank;if(!e.isUndefined(S))return S}))}function w(j,A){var S={lhs:[],rhs:[]};return e.forEach(j,function(N){A(N)?S.lhs.push(N):S.rhs.push(N)}),S}function M(j,A){var S=e.now();try{return A()}finally{console.log(j+" time: "+(e.now()-S)+"ms")}}function E(j,A){return A()}return U6}var P6,yw;function II(){if(yw)return P6;yw=1;var e=st(),a=na();P6={run:l,undo:c};function l(u){u.graph().dummyChains=[],e.forEach(u.edges(),function(d){i(u,d)})}function i(u,d){var h=d.v,f=u.node(h).rank,p=d.w,g=u.node(p).rank,x=d.name,b=u.edge(d),w=b.labelRank;if(g!==f+1){u.removeEdge(d);var M,E,j;for(j=0,++f;f<g;++j,++f)b.points=[],E={width:0,height:0,edgeLabel:b,edgeObj:d,rank:f},M=a.addDummyNode(u,"edge",E,"_d"),f===w&&(E.width=b.width,E.height=b.height,E.dummy="edge-label",E.labelpos=b.labelpos),u.setEdge(h,M,{weight:b.weight},x),j===0&&u.graph().dummyChains.push(M),h=M;u.setEdge(h,p,{weight:b.weight},x)}}function c(u){e.forEach(u.graph().dummyChains,function(d){var h=u.node(d),f=h.edgeLabel,p;for(u.setEdge(h.edgeObj,f);h.dummy;)p=u.successors(d)[0],u.removeNode(d),f.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(f.x=h.x,f.y=h.y,f.width=h.width,f.height=h.height),d=p,h=u.node(d)})}return P6}var G6,ww;function T1(){if(ww)return G6;ww=1;var e=st();G6={longestPath:a,slack:l};function a(i){var c={};function u(d){var h=i.node(d);if(e.has(c,d))return h.rank;c[d]=!0;var f=e.min(e.map(i.outEdges(d),function(p){return u(p.w)-i.edge(p).minlen}));return(f===Number.POSITIVE_INFINITY||f===void 0||f===null)&&(f=0),h.rank=f}e.forEach(i.sources(),u)}function l(i,c){return i.node(c.w).rank-i.node(c.v).rank-i.edge(c).minlen}return G6}var Y6,Aw;function VS(){if(Aw)return Y6;Aw=1;var e=st(),a=$a().Graph,l=T1().slack;Y6=i;function i(h){var f=new a({directed:!1}),p=h.nodes()[0],g=h.nodeCount();f.setNode(p,{});for(var x,b;c(f,h)<g;)x=u(f,h),b=f.hasNode(x.v)?l(h,x):-l(h,x),d(f,h,b);return f}function c(h,f){function p(g){e.forEach(f.nodeEdges(g),function(x){var b=x.v,w=g===b?x.w:b;!h.hasNode(w)&&!l(f,x)&&(h.setNode(w,{}),h.setEdge(g,w,{}),p(w))})}return e.forEach(h.nodes(),p),h.nodeCount()}function u(h,f){return e.minBy(f.edges(),function(p){if(h.hasNode(p.v)!==h.hasNode(p.w))return l(f,p)})}function d(h,f,p){e.forEach(h.nodes(),function(g){f.node(g).rank+=p})}return Y6}var K6,jw;function UI(){if(jw)return K6;jw=1;var e=st(),a=VS(),l=T1().slack,i=T1().longestPath,c=$a().alg.preorder,u=$a().alg.postorder,d=na().simplify;K6=h,h.initLowLimValues=x,h.initCutValues=f,h.calcCutValue=g,h.leaveEdge=w,h.enterEdge=M,h.exchangeEdges=E;function h(N){N=d(N),i(N);var C=a(N);x(C),f(C,N);for(var V,_;V=w(C);)_=M(C,N,V),E(C,N,V,_)}function f(N,C){var V=u(N,N.nodes());V=V.slice(0,V.length-1),e.forEach(V,function(_){p(N,C,_)})}function p(N,C,V){var _=N.node(V),H=_.parent;N.edge(V,H).cutvalue=g(N,C,V)}function g(N,C,V){var _=N.node(V),H=_.parent,R=!0,L=C.edge(V,H),O=0;return L||(R=!1,L=C.edge(H,V)),O=L.weight,e.forEach(C.nodeEdges(V),function(I){var X=I.v===V,K=X?I.w:I.v;if(K!==H){var B=X===R,Y=C.edge(I).weight;if(O+=B?Y:-Y,A(N,V,K)){var k=N.edge(V,K).cutvalue;O+=B?-k:k}}}),O}function x(N,C){arguments.length<2&&(C=N.nodes()[0]),b(N,{},1,C)}function b(N,C,V,_,H){var R=V,L=N.node(_);return C[_]=!0,e.forEach(N.neighbors(_),function(O){e.has(C,O)||(V=b(N,C,V,O,_))}),L.low=R,L.lim=V++,H?L.parent=H:delete L.parent,V}function w(N){return e.find(N.edges(),function(C){return N.edge(C).cutvalue<0})}function M(N,C,V){var _=V.v,H=V.w;C.hasEdge(_,H)||(_=V.w,H=V.v);var R=N.node(_),L=N.node(H),O=R,I=!1;R.lim>L.lim&&(O=L,I=!0);var X=e.filter(C.edges(),function(K){return I===S(N,N.node(K.v),O)&&I!==S(N,N.node(K.w),O)});return e.minBy(X,function(K){return l(C,K)})}function E(N,C,V,_){var H=V.v,R=V.w;N.removeEdge(H,R),N.setEdge(_.v,_.w,{}),x(N),f(N,C),j(N,C)}function j(N,C){var V=e.find(N.nodes(),function(H){return!C.node(H).parent}),_=c(N,V);_=_.slice(1),e.forEach(_,function(H){var R=N.node(H).parent,L=C.edge(H,R),O=!1;L||(L=C.edge(R,H),O=!0),C.node(H).rank=C.node(R).rank+(O?L.minlen:-L.minlen)})}function A(N,C,V){return N.hasEdge(C,V)}function S(N,C,V){return V.low<=C.lim&&C.lim<=V.lim}return K6}var X6,Ew;function PI(){if(Ew)return X6;Ew=1;var e=T1(),a=e.longestPath,l=VS(),i=UI();X6=c;function c(f){switch(f.graph().ranker){case"network-simplex":h(f);break;case"tight-tree":d(f);break;case"longest-path":u(f);break;default:h(f)}}var u=a;function d(f){a(f),l(f)}function h(f){i(f)}return X6}var Q6,Nw;function GI(){if(Nw)return Q6;Nw=1;var e=st();Q6=a;function a(c){var u=i(c);e.forEach(c.graph().dummyChains,function(d){for(var h=c.node(d),f=h.edgeObj,p=l(c,u,f.v,f.w),g=p.path,x=p.lca,b=0,w=g[b],M=!0;d!==f.w;){if(h=c.node(d),M){for(;(w=g[b])!==x&&c.node(w).maxRank<h.rank;)b++;w===x&&(M=!1)}if(!M){for(;b<g.length-1&&c.node(w=g[b+1]).minRank<=h.rank;)b++;w=g[b]}c.setParent(d,w),d=c.successors(d)[0]}})}function l(c,u,d,h){var f=[],p=[],g=Math.min(u[d].low,u[h].low),x=Math.max(u[d].lim,u[h].lim),b,w;b=d;do b=c.parent(b),f.push(b);while(b&&(u[b].low>g||x>u[b].lim));for(w=b,b=h;(b=c.parent(b))!==w;)p.push(b);return{path:f.concat(p.reverse()),lca:w}}function i(c){var u={},d=0;function h(f){var p=d;e.forEach(c.children(f),h),u[f]={low:p,lim:d++}}return e.forEach(c.children(),h),u}return Q6}var J6,Mw;function YI(){if(Mw)return J6;Mw=1;var e=st(),a=na();J6={run:l,cleanup:d};function l(h){var f=a.addDummyNode(h,"root",{},"_root"),p=c(h),g=e.max(e.values(p))-1,x=2*g+1;h.graph().nestingRoot=f,e.forEach(h.edges(),function(w){h.edge(w).minlen*=x});var b=u(h)+1;e.forEach(h.children(),function(w){i(h,f,x,b,g,p,w)}),h.graph().nodeRankFactor=x}function i(h,f,p,g,x,b,w){var M=h.children(w);if(!M.length){w!==f&&h.setEdge(f,w,{weight:0,minlen:p});return}var E=a.addBorderNode(h,"_bt"),j=a.addBorderNode(h,"_bb"),A=h.node(w);h.setParent(E,w),A.borderTop=E,h.setParent(j,w),A.borderBottom=j,e.forEach(M,function(S){i(h,f,p,g,x,b,S);var N=h.node(S),C=N.borderTop?N.borderTop:S,V=N.borderBottom?N.borderBottom:S,_=N.borderTop?g:2*g,H=C!==V?1:x-b[w]+1;h.setEdge(E,C,{weight:_,minlen:H,nestingEdge:!0}),h.setEdge(V,j,{weight:_,minlen:H,nestingEdge:!0})}),h.parent(w)||h.setEdge(f,E,{weight:0,minlen:x+b[w]})}function c(h){var f={};function p(g,x){var b=h.children(g);b&&b.length&&e.forEach(b,function(w){p(w,x+1)}),f[g]=x}return e.forEach(h.children(),function(g){p(g,1)}),f}function u(h){return e.reduce(h.edges(),function(f,p){return f+h.edge(p).weight},0)}function d(h){var f=h.graph();h.removeNode(f.nestingRoot),delete f.nestingRoot,e.forEach(h.edges(),function(p){var g=h.edge(p);g.nestingEdge&&h.removeEdge(p)})}return J6}var W6,Sw;function KI(){if(Sw)return W6;Sw=1;var e=st(),a=na();W6=l;function l(c){function u(d){var h=c.children(d),f=c.node(d);if(h.length&&e.forEach(h,u),e.has(f,"minRank")){f.borderLeft=[],f.borderRight=[];for(var p=f.minRank,g=f.maxRank+1;p<g;++p)i(c,"borderLeft","_bl",d,f,p),i(c,"borderRight","_br",d,f,p)}}e.forEach(c.children(),u)}function i(c,u,d,h,f,p){var g={width:0,height:0,rank:p,borderType:u},x=f[u][p-1],b=a.addDummyNode(c,"border",g,d);f[u][p]=b,c.setParent(b,h),x&&c.setEdge(x,b,{weight:1})}return W6}var eh,Zw;function XI(){if(Zw)return eh;Zw=1;var e=st();eh={adjust:a,undo:l};function a(p){var g=p.graph().rankdir.toLowerCase();(g==="lr"||g==="rl")&&i(p)}function l(p){var g=p.graph().rankdir.toLowerCase();(g==="bt"||g==="rl")&&u(p),(g==="lr"||g==="rl")&&(h(p),i(p))}function i(p){e.forEach(p.nodes(),function(g){c(p.node(g))}),e.forEach(p.edges(),function(g){c(p.edge(g))})}function c(p){var g=p.width;p.width=p.height,p.height=g}function u(p){e.forEach(p.nodes(),function(g){d(p.node(g))}),e.forEach(p.edges(),function(g){var x=p.edge(g);e.forEach(x.points,d),e.has(x,"y")&&d(x)})}function d(p){p.y=-p.y}function h(p){e.forEach(p.nodes(),function(g){f(p.node(g))}),e.forEach(p.edges(),function(g){var x=p.edge(g);e.forEach(x.points,f),e.has(x,"x")&&f(x)})}function f(p){var g=p.x;p.x=p.y,p.y=g}return eh}var th,Cw;function QI(){if(Cw)return th;Cw=1;var e=st();th=a;function a(l){var i={},c=e.filter(l.nodes(),function(p){return!l.children(p).length}),u=e.max(e.map(c,function(p){return l.node(p).rank})),d=e.map(e.range(u+1),function(){return[]});function h(p){if(!e.has(i,p)){i[p]=!0;var g=l.node(p);d[g.rank].push(p),e.forEach(l.successors(p),h)}}var f=e.sortBy(c,function(p){return l.node(p).rank});return e.forEach(f,h),d}return th}var ah,Hw;function JI(){if(Hw)return ah;Hw=1;var e=st();ah=a;function a(i,c){for(var u=0,d=1;d<c.length;++d)u+=l(i,c[d-1],c[d]);return u}function l(i,c,u){for(var d=e.zipObject(u,e.map(u,function(b,w){return w})),h=e.flatten(e.map(c,function(b){return e.sortBy(e.map(i.outEdges(b),function(w){return{pos:d[w.w],weight:i.edge(w).weight}}),"pos")}),!0),f=1;f<u.length;)f<<=1;var p=2*f-1;f-=1;var g=e.map(new Array(p),function(){return 0}),x=0;return e.forEach(h.forEach(function(b){var w=b.pos+f;g[w]+=b.weight;for(var M=0;w>0;)w%2&&(M+=g[w+1]),w=w-1>>1,g[w]+=b.weight;x+=b.weight*M})),x}return ah}var nh,Vw;function WI(){if(Vw)return nh;Vw=1;var e=st();nh=a;function a(l,i){return e.map(i,function(c){var u=l.inEdges(c);if(u.length){var d=e.reduce(u,function(h,f){var p=l.edge(f),g=l.node(f.v);return{sum:h.sum+p.weight*g.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:c,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:c}})}return nh}var rh,_w;function eU(){if(_w)return rh;_w=1;var e=st();rh=a;function a(c,u){var d={};e.forEach(c,function(f,p){var g=d[f.v]={indegree:0,in:[],out:[],vs:[f.v],i:p};e.isUndefined(f.barycenter)||(g.barycenter=f.barycenter,g.weight=f.weight)}),e.forEach(u.edges(),function(f){var p=d[f.v],g=d[f.w];!e.isUndefined(p)&&!e.isUndefined(g)&&(g.indegree++,p.out.push(d[f.w]))});var h=e.filter(d,function(f){return!f.indegree});return l(h)}function l(c){var u=[];function d(p){return function(g){g.merged||(e.isUndefined(g.barycenter)||e.isUndefined(p.barycenter)||g.barycenter>=p.barycenter)&&i(p,g)}}function h(p){return function(g){g.in.push(p),--g.indegree===0&&c.push(g)}}for(;c.length;){var f=c.pop();u.push(f),e.forEach(f.in.reverse(),d(f)),e.forEach(f.out,h(f))}return e.map(e.filter(u,function(p){return!p.merged}),function(p){return e.pick(p,["vs","i","barycenter","weight"])})}function i(c,u){var d=0,h=0;c.weight&&(d+=c.barycenter*c.weight,h+=c.weight),u.weight&&(d+=u.barycenter*u.weight,h+=u.weight),c.vs=u.vs.concat(c.vs),c.barycenter=d/h,c.weight=h,c.i=Math.min(u.i,c.i),u.merged=!0}return rh}var sh,Tw;function tU(){if(Tw)return sh;Tw=1;var e=st(),a=na();sh=l;function l(u,d){var h=a.partition(u,function(E){return e.has(E,"barycenter")}),f=h.lhs,p=e.sortBy(h.rhs,function(E){return-E.i}),g=[],x=0,b=0,w=0;f.sort(c(!!d)),w=i(g,p,w),e.forEach(f,function(E){w+=E.vs.length,g.push(E.vs),x+=E.barycenter*E.weight,b+=E.weight,w=i(g,p,w)});var M={vs:e.flatten(g,!0)};return b&&(M.barycenter=x/b,M.weight=b),M}function i(u,d,h){for(var f;d.length&&(f=e.last(d)).i<=h;)d.pop(),u.push(f.vs),h++;return h}function c(u){return function(d,h){return d.barycenter<h.barycenter?-1:d.barycenter>h.barycenter?1:u?h.i-d.i:d.i-h.i}}return sh}var lh,Lw;function aU(){if(Lw)return lh;Lw=1;var e=st(),a=WI(),l=eU(),i=tU();lh=c;function c(h,f,p,g){var x=h.children(f),b=h.node(f),w=b?b.borderLeft:void 0,M=b?b.borderRight:void 0,E={};w&&(x=e.filter(x,function(V){return V!==w&&V!==M}));var j=a(h,x);e.forEach(j,function(V){if(h.children(V.v).length){var _=c(h,V.v,p,g);E[V.v]=_,e.has(_,"barycenter")&&d(V,_)}});var A=l(j,p);u(A,E);var S=i(A,g);if(w&&(S.vs=e.flatten([w,S.vs,M],!0),h.predecessors(w).length)){var N=h.node(h.predecessors(w)[0]),C=h.node(h.predecessors(M)[0]);e.has(S,"barycenter")||(S.barycenter=0,S.weight=0),S.barycenter=(S.barycenter*S.weight+N.order+C.order)/(S.weight+2),S.weight+=2}return S}function u(h,f){e.forEach(h,function(p){p.vs=e.flatten(p.vs.map(function(g){return f[g]?f[g].vs:g}),!0)})}function d(h,f){e.isUndefined(h.barycenter)?(h.barycenter=f.barycenter,h.weight=f.weight):(h.barycenter=(h.barycenter*h.weight+f.barycenter*f.weight)/(h.weight+f.weight),h.weight+=f.weight)}return lh}var ih,Rw;function nU(){if(Rw)return ih;Rw=1;var e=st(),a=$a().Graph;ih=l;function l(c,u,d){var h=i(c),f=new a({compound:!0}).setGraph({root:h}).setDefaultNodeLabel(function(p){return c.node(p)});return e.forEach(c.nodes(),function(p){var g=c.node(p),x=c.parent(p);(g.rank===u||g.minRank<=u&&u<=g.maxRank)&&(f.setNode(p),f.setParent(p,x||h),e.forEach(c[d](p),function(b){var w=b.v===p?b.w:b.v,M=f.edge(w,p),E=e.isUndefined(M)?0:M.weight;f.setEdge(w,p,{weight:c.edge(b).weight+E})}),e.has(g,"minRank")&&f.setNode(p,{borderLeft:g.borderLeft[u],borderRight:g.borderRight[u]}))}),f}function i(c){for(var u;c.hasNode(u=e.uniqueId("_root")););return u}return ih}var oh,kw;function rU(){if(kw)return oh;kw=1;var e=st();oh=a;function a(l,i,c){var u={},d;e.forEach(c,function(h){for(var f=l.parent(h),p,g;f;){if(p=l.parent(f),p?(g=u[p],u[p]=f):(g=d,d=f),g&&g!==f){i.setEdge(g,f);return}f=p}})}return oh}var ch,Dw;function sU(){if(Dw)return ch;Dw=1;var e=st(),a=QI(),l=JI(),i=aU(),c=nU(),u=rU(),d=$a().Graph,h=na();ch=f;function f(b){var w=h.maxRank(b),M=p(b,e.range(1,w+1),"inEdges"),E=p(b,e.range(w-1,-1,-1),"outEdges"),j=a(b);x(b,j);for(var A=Number.POSITIVE_INFINITY,S,N=0,C=0;C<4;++N,++C){g(N%2?M:E,N%4>=2),j=h.buildLayerMatrix(b);var V=l(b,j);V<A&&(C=0,S=e.cloneDeep(j),A=V)}x(b,S)}function p(b,w,M){return e.map(w,function(E){return c(b,E,M)})}function g(b,w){var M=new d;e.forEach(b,function(E){var j=E.graph().root,A=i(E,j,M,w);e.forEach(A.vs,function(S,N){E.node(S).order=N}),u(E,M,A.vs)})}function x(b,w){e.forEach(w,function(M){e.forEach(M,function(E,j){b.node(E).order=j})})}return ch}var uh,Ow;function lU(){if(Ow)return uh;Ow=1;var e=st(),a=$a().Graph,l=na();uh={positionX:M,findType1Conflicts:i,findType2Conflicts:c,addConflict:d,hasConflict:h,verticalAlignment:f,horizontalCompaction:p,alignCoordinates:b,findSmallestWidthAlignment:x,balance:w};function i(A,S){var N={};function C(V,_){var H=0,R=0,L=V.length,O=e.last(_);return e.forEach(_,function(I,X){var K=u(A,I),B=K?A.node(K).order:L;(K||I===O)&&(e.forEach(_.slice(R,X+1),function(Y){e.forEach(A.predecessors(Y),function(k){var $=A.node(k),Q=$.order;(Q<H||B<Q)&&!($.dummy&&A.node(Y).dummy)&&d(N,k,Y)})}),R=X+1,H=B)}),_}return e.reduce(S,C),N}function c(A,S){var N={};function C(_,H,R,L,O){var I;e.forEach(e.range(H,R),function(X){I=_[X],A.node(I).dummy&&e.forEach(A.predecessors(I),function(K){var B=A.node(K);B.dummy&&(B.order<L||B.order>O)&&d(N,K,I)})})}function V(_,H){var R=-1,L,O=0;return e.forEach(H,function(I,X){if(A.node(I).dummy==="border"){var K=A.predecessors(I);K.length&&(L=A.node(K[0]).order,C(H,O,X,R,L),O=X,R=L)}C(H,O,H.length,L,_.length)}),H}return e.reduce(S,V),N}function u(A,S){if(A.node(S).dummy)return e.find(A.predecessors(S),function(N){return A.node(N).dummy})}function d(A,S,N){if(S>N){var C=S;S=N,N=C}var V=A[S];V||(A[S]=V={}),V[N]=!0}function h(A,S,N){if(S>N){var C=S;S=N,N=C}return e.has(A[S],N)}function f(A,S,N,C){var V={},_={},H={};return e.forEach(S,function(R){e.forEach(R,function(L,O){V[L]=L,_[L]=L,H[L]=O})}),e.forEach(S,function(R){var L=-1;e.forEach(R,function(O){var I=C(O);if(I.length){I=e.sortBy(I,function(k){return H[k]});for(var X=(I.length-1)/2,K=Math.floor(X),B=Math.ceil(X);K<=B;++K){var Y=I[K];_[O]===O&&L<H[Y]&&!h(N,O,Y)&&(_[Y]=O,_[O]=V[O]=V[Y],L=H[Y])}}})}),{root:V,align:_}}function p(A,S,N,C,V){var _={},H=g(A,S,N,V),R=V?"borderLeft":"borderRight";function L(X,K){for(var B=H.nodes(),Y=B.pop(),k={};Y;)k[Y]?X(Y):(k[Y]=!0,B.push(Y),B=B.concat(K(Y))),Y=B.pop()}function O(X){_[X]=H.inEdges(X).reduce(function(K,B){return Math.max(K,_[B.v]+H.edge(B))},0)}function I(X){var K=H.outEdges(X).reduce(function(Y,k){return Math.min(Y,_[k.w]-H.edge(k))},Number.POSITIVE_INFINITY),B=A.node(X);K!==Number.POSITIVE_INFINITY&&B.borderType!==R&&(_[X]=Math.max(_[X],K))}return L(O,H.predecessors.bind(H)),L(I,H.successors.bind(H)),e.forEach(C,function(X){_[X]=_[N[X]]}),_}function g(A,S,N,C){var V=new a,_=A.graph(),H=E(_.nodesep,_.edgesep,C);return e.forEach(S,function(R){var L;e.forEach(R,function(O){var I=N[O];if(V.setNode(I),L){var X=N[L],K=V.edge(X,I);V.setEdge(X,I,Math.max(H(A,O,L),K||0))}L=O})}),V}function x(A,S){return e.minBy(e.values(S),function(N){var C=Number.NEGATIVE_INFINITY,V=Number.POSITIVE_INFINITY;return e.forIn(N,function(_,H){var R=j(A,H)/2;C=Math.max(_+R,C),V=Math.min(_-R,V)}),C-V})}function b(A,S){var N=e.values(S),C=e.min(N),V=e.max(N);e.forEach(["u","d"],function(_){e.forEach(["l","r"],function(H){var R=_+H,L=A[R],O;if(L!==S){var I=e.values(L);O=H==="l"?C-e.min(I):V-e.max(I),O&&(A[R]=e.mapValues(L,function(X){return X+O}))}})})}function w(A,S){return e.mapValues(A.ul,function(N,C){if(S)return A[S.toLowerCase()][C];var V=e.sortBy(e.map(A,C));return(V[1]+V[2])/2})}function M(A){var S=l.buildLayerMatrix(A),N=e.merge(i(A,S),c(A,S)),C={},V;e.forEach(["u","d"],function(H){V=H==="u"?S:e.values(S).reverse(),e.forEach(["l","r"],function(R){R==="r"&&(V=e.map(V,function(X){return e.values(X).reverse()}));var L=(H==="u"?A.predecessors:A.successors).bind(A),O=f(A,V,N,L),I=p(A,V,O.root,O.align,R==="r");R==="r"&&(I=e.mapValues(I,function(X){return-X})),C[H+R]=I})});var _=x(A,C);return b(C,_),w(C,A.graph().align)}function E(A,S,N){return function(C,V,_){var H=C.node(V),R=C.node(_),L=0,O;if(L+=H.width/2,e.has(H,"labelpos"))switch(H.labelpos.toLowerCase()){case"l":O=-H.width/2;break;case"r":O=H.width/2;break}if(O&&(L+=N?O:-O),O=0,L+=(H.dummy?S:A)/2,L+=(R.dummy?S:A)/2,L+=R.width/2,e.has(R,"labelpos"))switch(R.labelpos.toLowerCase()){case"l":O=R.width/2;break;case"r":O=-R.width/2;break}return O&&(L+=N?O:-O),O=0,L}}function j(A,S){return A.node(S).width}return uh}var dh,Fw;function iU(){if(Fw)return dh;Fw=1;var e=st(),a=na(),l=lU().positionX;dh=i;function i(u){u=a.asNonCompoundGraph(u),c(u),e.forEach(l(u),function(d,h){u.node(h).x=d})}function c(u){var d=a.buildLayerMatrix(u),h=u.graph().ranksep,f=0;e.forEach(d,function(p){var g=e.max(e.map(p,function(x){return u.node(x).height}));e.forEach(p,function(x){u.node(x).y=f+g/2}),f+=g+h})}return dh}var hh,zw;function oU(){if(zw)return hh;zw=1;var e=st(),a=BI(),l=II(),i=PI(),c=na().normalizeRanks,u=GI(),d=na().removeEmptyRanks,h=YI(),f=KI(),p=XI(),g=sU(),x=iU(),b=na(),w=$a().Graph;hh=M;function M(z,F){var P=F&&F.debugTiming?b.time:b.notime;P("layout",function(){var oe=P(" buildLayoutGraph",function(){return L(z)});P(" runLayout",function(){E(oe,P)}),P(" updateInputGraph",function(){j(z,oe)})})}function E(z,F){F(" makeSpaceForEdgeLabels",function(){O(z)}),F(" removeSelfEdges",function(){ie(z)}),F(" acyclic",function(){a.run(z)}),F(" nestingGraph.run",function(){h.run(z)}),F(" rank",function(){i(b.asNonCompoundGraph(z))}),F(" injectEdgeLabelProxies",function(){I(z)}),F(" removeEmptyRanks",function(){d(z)}),F(" nestingGraph.cleanup",function(){h.cleanup(z)}),F(" normalizeRanks",function(){c(z)}),F(" assignRankMinMax",function(){X(z)}),F(" removeEdgeLabelProxies",function(){K(z)}),F(" normalize.run",function(){l.run(z)}),F(" parentDummyChains",function(){u(z)}),F(" addBorderSegments",function(){f(z)}),F(" order",function(){g(z)}),F(" insertSelfEdges",function(){re(z)}),F(" adjustCoordinateSystem",function(){p.adjust(z)}),F(" position",function(){x(z)}),F(" positionSelfEdges",function(){D(z)}),F(" removeBorderNodes",function(){Q(z)}),F(" normalize.undo",function(){l.undo(z)}),F(" fixupEdgeLabelCoords",function(){k(z)}),F(" undoCoordinateSystem",function(){p.undo(z)}),F(" translateGraph",function(){B(z)}),F(" assignNodeIntersects",function(){Y(z)}),F(" reversePoints",function(){$(z)}),F(" acyclic.undo",function(){a.undo(z)})}function j(z,F){e.forEach(z.nodes(),function(P){var oe=z.node(P),fe=F.node(P);oe&&(oe.x=fe.x,oe.y=fe.y,F.children(P).length&&(oe.width=fe.width,oe.height=fe.height))}),e.forEach(z.edges(),function(P){var oe=z.edge(P),fe=F.edge(P);oe.points=fe.points,e.has(fe,"x")&&(oe.x=fe.x,oe.y=fe.y)}),z.graph().width=F.graph().width,z.graph().height=F.graph().height}var A=["nodesep","edgesep","ranksep","marginx","marginy"],S={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},N=["acyclicer","ranker","rankdir","align"],C=["width","height"],V={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],H={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},R=["labelpos"];function L(z){var F=new w({multigraph:!0,compound:!0}),P=ne(z.graph());return F.setGraph(e.merge({},S,J(P,A),e.pick(P,N))),e.forEach(z.nodes(),function(oe){var fe=ne(z.node(oe));F.setNode(oe,e.defaults(J(fe,C),V)),F.setParent(oe,z.parent(oe))}),e.forEach(z.edges(),function(oe){var fe=ne(z.edge(oe));F.setEdge(oe,e.merge({},H,J(fe,_),e.pick(fe,R)))}),F}function O(z){var F=z.graph();F.ranksep/=2,e.forEach(z.edges(),function(P){var oe=z.edge(P);oe.minlen*=2,oe.labelpos.toLowerCase()!=="c"&&(F.rankdir==="TB"||F.rankdir==="BT"?oe.width+=oe.labeloffset:oe.height+=oe.labeloffset)})}function I(z){e.forEach(z.edges(),function(F){var P=z.edge(F);if(P.width&&P.height){var oe=z.node(F.v),fe=z.node(F.w),ve={rank:(fe.rank-oe.rank)/2+oe.rank,e:F};b.addDummyNode(z,"edge-proxy",ve,"_ep")}})}function X(z){var F=0;e.forEach(z.nodes(),function(P){var oe=z.node(P);oe.borderTop&&(oe.minRank=z.node(oe.borderTop).rank,oe.maxRank=z.node(oe.borderBottom).rank,F=e.max(F,oe.maxRank))}),z.graph().maxRank=F}function K(z){e.forEach(z.nodes(),function(F){var P=z.node(F);P.dummy==="edge-proxy"&&(z.edge(P.e).labelRank=P.rank,z.removeNode(F))})}function B(z){var F=Number.POSITIVE_INFINITY,P=0,oe=Number.POSITIVE_INFINITY,fe=0,ve=z.graph(),ke=ve.marginx||0,Pe=ve.marginy||0;function qe(ot){var $e=ot.x,je=ot.y,qt=ot.width,Ne=ot.height;F=Math.min(F,$e-qt/2),P=Math.max(P,$e+qt/2),oe=Math.min(oe,je-Ne/2),fe=Math.max(fe,je+Ne/2)}e.forEach(z.nodes(),function(ot){qe(z.node(ot))}),e.forEach(z.edges(),function(ot){var $e=z.edge(ot);e.has($e,"x")&&qe($e)}),F-=ke,oe-=Pe,e.forEach(z.nodes(),function(ot){var $e=z.node(ot);$e.x-=F,$e.y-=oe}),e.forEach(z.edges(),function(ot){var $e=z.edge(ot);e.forEach($e.points,function(je){je.x-=F,je.y-=oe}),e.has($e,"x")&&($e.x-=F),e.has($e,"y")&&($e.y-=oe)}),ve.width=P-F+ke,ve.height=fe-oe+Pe}function Y(z){e.forEach(z.edges(),function(F){var P=z.edge(F),oe=z.node(F.v),fe=z.node(F.w),ve,ke;P.points?(ve=P.points[0],ke=P.points[P.points.length-1]):(P.points=[],ve=fe,ke=oe),P.points.unshift(b.intersectRect(oe,ve)),P.points.push(b.intersectRect(fe,ke))})}function k(z){e.forEach(z.edges(),function(F){var P=z.edge(F);if(e.has(P,"x"))switch((P.labelpos==="l"||P.labelpos==="r")&&(P.width-=P.labeloffset),P.labelpos){case"l":P.x-=P.width/2+P.labeloffset;break;case"r":P.x+=P.width/2+P.labeloffset;break}})}function $(z){e.forEach(z.edges(),function(F){var P=z.edge(F);P.reversed&&P.points.reverse()})}function Q(z){e.forEach(z.nodes(),function(F){if(z.children(F).length){var P=z.node(F),oe=z.node(P.borderTop),fe=z.node(P.borderBottom),ve=z.node(e.last(P.borderLeft)),ke=z.node(e.last(P.borderRight));P.width=Math.abs(ke.x-ve.x),P.height=Math.abs(fe.y-oe.y),P.x=ve.x+P.width/2,P.y=oe.y+P.height/2}}),e.forEach(z.nodes(),function(F){z.node(F).dummy==="border"&&z.removeNode(F)})}function ie(z){e.forEach(z.edges(),function(F){if(F.v===F.w){var P=z.node(F.v);P.selfEdges||(P.selfEdges=[]),P.selfEdges.push({e:F,label:z.edge(F)}),z.removeEdge(F)}})}function re(z){var F=b.buildLayerMatrix(z);e.forEach(F,function(P){var oe=0;e.forEach(P,function(fe,ve){var ke=z.node(fe);ke.order=ve+oe,e.forEach(ke.selfEdges,function(Pe){b.addDummyNode(z,"selfedge",{width:Pe.label.width,height:Pe.label.height,rank:ke.rank,order:ve+ ++oe,e:Pe.e,label:Pe.label},"_se")}),delete ke.selfEdges})})}function D(z){e.forEach(z.nodes(),function(F){var P=z.node(F);if(P.dummy==="selfedge"){var oe=z.node(P.e.v),fe=oe.x+oe.width/2,ve=oe.y,ke=P.x-fe,Pe=oe.height/2;z.setEdge(P.e,P.label),z.removeNode(F),P.label.points=[{x:fe+2*ke/3,y:ve-Pe},{x:fe+5*ke/6,y:ve-Pe},{x:fe+ke,y:ve},{x:fe+5*ke/6,y:ve+Pe},{x:fe+2*ke/3,y:ve+Pe}],P.label.x=P.x,P.label.y=P.y}})}function J(z,F){return e.mapValues(e.pick(z,F),Number)}function ne(z){var F={};return e.forEach(z,function(P,oe){F[oe.toLowerCase()]=P}),F}return hh}var mh,qw;function cU(){if(qw)return mh;qw=1;var e=st(),a=na(),l=$a().Graph;mh={debugOrdering:i};function i(c){var u=a.buildLayerMatrix(c),d=new l({compound:!0,multigraph:!0}).setGraph({});return e.forEach(c.nodes(),function(h){d.setNode(h,{label:h}),d.setParent(h,"layer"+c.node(h).rank)}),e.forEach(c.edges(),function(h){d.setEdge(h.v,h.w,{},h.name)}),e.forEach(u,function(h,f){var p="layer"+f;d.setNode(p,{rank:"same"}),e.reduce(h,function(g,x){return d.setEdge(g,x,{style:"invis"}),x})}),d}return mh}var fh,$w;function uU(){return $w||($w=1,fh="0.8.5"),fh}var ph,Bw;function dU(){return Bw||(Bw=1,ph={graphlib:$a(),layout:oU(),debug:cU(),util:{time:na().time,notime:na().notime},version:uU()}),ph}var hU=dU();const L1=aH(hU),gh=280,xh=80,vh=200,Iw=40,mU=80,fU=100,pU=60;function gU(e,a){const l=new L1.graphlib.Graph;l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:"TB",nodesep:mU,ranksep:fU,marginx:40,marginy:40});for(const d of e){const h=d.type==="addStep";l.setNode(d.id,{width:h?vh:gh,height:h?Iw:xh})}for(const d of a)l.setEdge(d.source,d.target);L1.layout(l);const i=new Map;for(const d of a){const h=e.find(f=>f.id===d.target);(h==null?void 0:h.type)==="addStep"&&i.set(d.target,d.source)}const c=e.map(d=>{const h=l.node(d.id);if(!h)return d;const f=d.type==="addStep",p=f?vh:gh,g=f?Iw:xh;return{...d,position:{x:h.x-p/2,y:h.y-g/2}}}),u=new Map(c.map(d=>[d.id,d]));for(const d of c){if(d.type!=="addStep")continue;const h=i.get(d.id);if(!h)continue;const f=u.get(h);if(!f)continue;const p=f.type==="conditional"?{width:280,height:100}:{width:gh,height:xh};d.position={x:f.position.x+(p.width-vh)/2,y:f.position.y+p.height+pU}}return c}function xU(){return{applyLayout:n.useCallback((a,l)=>a.length===0?a:gU(a,l),[])}}const A1=280,nl=80,vU=100,ol=200,Uw=40,bU=80,_S=60;function yU(e,a){const l=new Map;for(const c of a){const u=e.find(d=>d.id===c.target);(u==null?void 0:u.type)==="addStep"&&l.set(c.target,c.source)}const i=new Map(e.map(c=>[c.id,c]));return e.map(c=>{if(c.type!=="addStep")return c;const u=l.get(c.id);if(!u)return c;const d=i.get(u);if(!d)return c;const h=d.type==="conditional"?vU:nl,f=d.type==="addStep"?ol:A1;return{...c,position:{x:d.position.x+(f-ol)/2,y:d.position.y+h+_S}}})}function Pw(e){let a=0;for(const l of e)if(l.type==="step"||l.type==="conditional"){const i=l.id.match(/^step_(\d+)$/);i&&(a=Math.max(a,parseInt(i[1],10)))}return`step_${a+1}`}function u1(e,a){const l=new Set(e.map(c=>c.id)),i=new Set;return a.filter(c=>{if(!l.has(c.source)||!l.has(c.target))return!1;const u=`${c.source}|${c.sourceHandle??""}|${c.target}`;return i.has(u)?!1:(i.add(u),!0)})}function wU(e,a){const l=new Set,i=[e];for(;i.length>0;){const c=i.shift();for(const u of a)u.source===c&&!l.has(u.target)&&(l.add(u.target),i.push(u.target))}return l}function AU(e,a,l){const{applyLayout:i}=xU(),[c]=n.useState(()=>l!=null&&l.hasCustomPositions?yU(e,a):i(e,a)),[u,d]=n.useState(c),[h,f]=n.useState(a),[p,g]=n.useState(null),x=n.useRef(a),b=n.useRef(c);n.useEffect(()=>{x.current=h},[h]),n.useEffect(()=>{b.current=u},[u]);const w=u.find(_=>_.id===p)||null,M=n.useCallback((_,H)=>{d(R=>R.map(L=>L.id===_?{...L,position:H}:L))},[d]),E=n.useCallback((_,H)=>{d(R=>R.map(L=>L.id===_?{...L,data:{...L.data,...H}}:L))},[d]),j=n.useCallback((_,H="run_agent")=>{const R=b.current,L=x.current,O=D0(_),I=R.find(qe=>qe.id===O),X=I==null?void 0:I.data,K=X==null?void 0:X.branchType,B=X==null?void 0:X.conditionalNodeId,Y=R.filter(qe=>qe.type==="step"||qe.type==="conditional").length,k=Pw(R),$={action_type:H,action_config:{}},Q={stepIndex:K?-1:Y,stepId:k,stepType:H,label:o0[H]||H,actionConfig:{},outputFields:z0($)};K&&B&&(Q.branchType=K,Q.parentConditionalId=B);const ie=(I==null?void 0:I.position)??{x:0,y:0},re=ie.x+(ol-A1)/2,D=ie.y+(Uw-nl)/2,J={id:k,type:"step",position:{x:re,y:D},data:Q},ne=L.find(qe=>qe.source===_&&qe.target===O),z=ne==null?void 0:ne.sourceHandle;let F=L.filter(qe=>!(qe.source===_&&qe.target===O));F.push({id:`${_}->${k}`,source:_,sourceHandle:z||void 0,target:k,type:"dataFlow",data:K?{branchType:K}:void 0});const P=D0(k),oe=re+(A1-ol)/2,fe=D+nl+_S,ve={id:P,type:"addStep",position:{x:oe,y:fe},data:{parentNodeId:k,insertIndex:Y+1,...K?{branchType:K,conditionalNodeId:B}:{}}};F.push({id:`${k}->${P}`,source:k,target:P,type:"addStepEdge",data:K?{branchType:K}:void 0});const ke=R.filter(qe=>qe.id!==O);F=F.filter(qe=>qe.source!==O&&qe.target!==O);const Pe=[...ke,J,ve];d(Pe),f(u1(Pe,F)),g(k)},[d,f]),A=n.useCallback(_=>{var k;const H=b.current,R=x.current,L=H.find($=>$.id===_);if(!L||L.type==="trigger")return;const O=R.find($=>$.target===_),I=R.filter($=>$.source===_),X=O==null?void 0:O.source;let K=R.filter($=>$.source!==_&&$.target!==_);const B=D0(_);K=K.filter($=>$.source!==B&&$.target!==B);let Y=H.filter($=>$.id!==_&&$.id!==B);if(X){const $=O==null?void 0:O.sourceHandle,Q=(k=O==null?void 0:O.data)==null?void 0:k.branchType,ie=I.find(re=>{const D=H.find(J=>J.id===re.target);return D&&D.type!=="addStep"});if(ie)K.push({id:`${X}->${ie.target}`,source:X,sourceHandle:$,target:ie.target,type:"dataFlow",data:Q?{branchType:Q}:void 0});else{const re=L.position,D=D0(X),J={id:D,type:"addStep",position:{x:re.x+(A1-ol)/2,y:re.y+(nl-Uw)/2},data:{parentNodeId:X,insertIndex:0,...Q?{branchType:Q,conditionalNodeId:X}:{}}};K.push({id:`${X}->${D}`,source:X,sourceHandle:$,target:D,type:"addStepEdge",data:Q?{branchType:Q}:void 0}),Y=[...Y,J]}}d(Y),f(u1(Y,K)),g(null)},[d,f]),S=n.useCallback((_,H,R,L)=>{const O=b.current,I=x.current,X=O.find($=>$.id===_),K=O.find($=>$.id===R);if(!X||!K||I.find($=>$.source===_&&$.sourceHandle===(H==="source"?void 0:H)&&$.target===R))return;let Y=I.filter($=>$.source!==_?!0:($.sourceHandle||"source")!==H);Y=Y.filter($=>$.target!==R||$.type==="addStepEdge");const k=H==="then"||H==="else"?H:void 0;Y.push({id:`${_}->${R}`,source:_,sourceHandle:H==="source"?void 0:H,target:R,type:"dataFlow",data:k?{branchType:k}:void 0}),f(u1(O,Y))},[]),N=n.useCallback((_,H)=>{var F;const R=b.current,L=x.current,O=R.find(P=>P.id===_),I=R.find(P=>P.id===H);if(!O||!I)return;const X=Pw(R),K=L.find(P=>P.source===_&&P.target===H),B=(F=K==null?void 0:K.data)==null?void 0:F.branchType,Y={action_type:"run_agent",action_config:{}},k=(O.position.x+I.position.x)/2,$=(O.position.y+I.position.y)/2,Q={stepIndex:B?-1:R.filter(P=>P.type==="step"||P.type==="conditional").length,stepId:X,stepType:"run_agent",label:o0.run_agent,actionConfig:{},outputFields:z0(Y)};B&&_&&(Q.branchType=B,Q.parentConditionalId=_);const ie={id:X,type:"step",position:{x:k,y:$},data:Q},re=nl+bU,D=wU(H,L);D.add(H);const J=R.map(P=>D.has(P.id)?{...P,position:{x:P.position.x,y:P.position.y+re}}:P),ne=[...L.filter(P=>!(P.source===_&&P.target===H)),{id:`${_}->${X}`,source:_,sourceHandle:K==null?void 0:K.sourceHandle,target:X,type:"dataFlow",data:B?{branchType:B}:void 0},{id:`${X}->${H}`,source:X,target:H,type:"dataFlow",data:B?{branchType:B}:void 0}],z=[...J,ie];d(z),f(u1(z,ne)),g(X)},[d,f]),C=n.useCallback((_,H)=>{if(H.type==="addStep"){const R=H.data;j(R.parentNodeId)}else g(H.id)},[j]),V=n.useCallback(()=>{g(null)},[]);return{nodes:u,edges:h,selectedNodeId:p,selectedNode:w,onNodeClick:C,onPaneClick:V,updateNodeData:E,updateNodePosition:M,addStep:j,deleteStep:A,connectNodes:S,insertStepBetween:N,setSelectedNodeId:g,setNodes:d,setEdges:f}}const jU={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}};function EU(e){return e.width&&e.height?{width:e.width,height:e.height}:jU[e.type||"step"]||{width:280,height:80}}function NU(e){const a=new Map;for(const l of e){const{width:i,height:c}=EU(l),u=l.position.x+i/2;switch(l.type){case"trigger":a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break;case"step":a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break;case"conditional":a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),a.set(`${l.id}:then`,{nodeId:l.id,handleId:"then",type:"source",x:l.position.x+i*.35,y:l.position.y+c}),a.set(`${l.id}:else`,{nodeId:l.id,handleId:"else",type:"source",x:l.position.x+i*.65,y:l.position.y+c}),a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break;case"addStep":a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y});break;default:a.set(`${l.id}:target`,{nodeId:l.id,handleId:"target",type:"target",x:u,y:l.position.y}),a.set(`${l.id}:source`,{nodeId:l.id,handleId:"source",type:"source",x:u,y:l.position.y+c});break}}return a}function MU(e,a){const l=e.sourceHandle||"source",i=`${e.source}:${l}`,c=a.get(i),u=e.targetHandle||"target",d=`${e.target}:${u}`,h=a.get(d);return!c||!h?null:{sourceX:c.x,sourceY:c.y,targetX:h.x,targetY:h.y}}function Gw(e,a,l,i,c=16){const u=l-e,d=i-a;if(Math.abs(u)<1)return`M ${e} ${a} L ${l} ${i}`;const h=a+d/2,f=Math.min(c,Math.abs(u)/2,Math.abs(d)/4),p=u>0?1:-1;return[`M ${e} ${a}`,`L ${e} ${h-f}`,`Q ${e} ${h} ${e+p*f} ${h}`,`L ${l-p*f} ${h}`,`Q ${l} ${h} ${l} ${h+f}`,`L ${l} ${i}`].join(" ")}const bh=.3,yh=2,Yw=.2,SU=.002;function ZU(e,a={}){const{fitViewOnMount:l=!0,fitViewPadding:i=.3}=a,[c,u]=n.useState({x:0,y:0,zoom:1}),[d,h]=n.useState(!1),f=n.useRef(null),p=n.useRef(!1),g=n.useRef({x:0,y:0}),x=n.useRef({x:0,y:0}),b=n.useRef(!1),w=n.useCallback(V=>{if(V.length===0)return{minX:0,minY:0,maxX:100,maxY:100};let _=1/0,H=1/0,R=-1/0,L=-1/0;for(const O of V){const I=O.width||280,X=O.height||80;_=Math.min(_,O.position.x),H=Math.min(H,O.position.y),R=Math.max(R,O.position.x+I),L=Math.max(L,O.position.y+X)}return{minX:_,minY:H,maxX:R,maxY:L}},[]),M=n.useCallback(V=>{const _=f.current;if(!_)return;const H=V||e;if(H.length===0)return;const{minX:R,minY:L,maxX:O,maxY:I}=w(H),X=O-R,K=I-L,B=_.clientWidth,Y=_.clientHeight;if(B===0||Y===0)return;const k=B/(X*(1+i)),$=Y/(K*(1+i)),Q=Math.min(Math.max(Math.min(k,$),bh),yh),ie=(R+O)/2,re=(L+I)/2;u({x:B/2-ie*Q,y:Y/2-re*Q,zoom:Q})},[e,w,i]);n.useEffect(()=>{if(l&&!b.current&&e.length>0){const V=setTimeout(()=>{M(),b.current=!0},50);return()=>clearTimeout(V)}},[l,e.length,M]);const E=n.useCallback(V=>{V.preventDefault();const _=f.current;if(!_)return;const H=_.getBoundingClientRect(),R=V.clientX-H.left,L=V.clientY-H.top;u(O=>{const I=-V.deltaY*SU,X=Math.min(Math.max(O.zoom+I*O.zoom,bh),yh),K=X/O.zoom;return{x:R-(R-O.x)*K,y:L-(L-O.y)*K,zoom:X}})},[]),j=n.useCallback(V=>{V.button===0&&(p.current=!0,h(!0),g.current={x:V.clientX,y:V.clientY},x.current={x:c.x,y:c.y},V.target.setPointerCapture(V.pointerId))},[c.x,c.y]),A=n.useCallback(V=>{if(!p.current)return;const _=V.clientX-g.current.x,H=V.clientY-g.current.y;u(R=>({...R,x:x.current.x+_,y:x.current.y+H}))},[]),S=n.useCallback(()=>{p.current=!1,h(!1)},[]),N=n.useCallback(()=>{u(V=>{const _=f.current;if(!_)return V;const H=_.clientWidth/2,R=_.clientHeight/2,L=Math.min(V.zoom+Yw,yh),O=L/V.zoom;return{x:H-(H-V.x)*O,y:R-(R-V.y)*O,zoom:L}})},[]),C=n.useCallback(()=>{u(V=>{const _=f.current;if(!_)return V;const H=_.clientWidth/2,R=_.clientHeight/2,L=Math.max(V.zoom-Yw,bh),O=L/V.zoom;return{x:H-(H-V.x)*O,y:R-(R-V.y)*O,zoom:L}})},[]);return{viewport:c,isPanning:d,containerRef:f,onWheel:E,onPointerDown:j,onPointerMove:A,onPointerUp:S,fitView:M,zoomIn:N,zoomOut:C}}const CU=20;function HU({containerRef:e,viewport:a,handleMap:l,onConnect:i}){const[c,u]=n.useState(null),[d,h]=n.useState(null),f=n.useRef(null),p=n.useRef(null),g=n.useRef(null),x=n.useCallback((A,S)=>{var C;const N=(C=e.current)==null?void 0:C.getBoundingClientRect();return N?{x:(A-N.left-a.x)/a.zoom,y:(S-N.top-a.y)/a.zoom}:{x:A,y:S}},[e,a]),b=n.useCallback((A,S,N)=>{const C=N.sourceType==="source"?"target":"source";let V=CU,_=null;for(const H of l.values()){if(H.type!==C||H.nodeId===N.sourceNodeId)continue;const R=H.x-A,L=H.y-S,O=Math.sqrt(R*R+L*L);O<V&&(V=O,_={nodeId:H.nodeId,handleId:H.handleId})}return _},[l]),w=n.useCallback((A,S,N,C)=>{var H;A.stopPropagation(),A.preventDefault();const V=x(A.clientX,A.clientY),_={sourceNodeId:S,sourceHandleId:N,sourceType:C,cursorX:V.x,cursorY:V.y};f.current=_,u(_),(H=e.current)==null||H.setPointerCapture(A.pointerId),g.current=A.pointerId},[x,e]),M=n.useCallback(A=>{if(!f.current)return;const S=x(A.clientX,A.clientY),N={...f.current,cursorX:S.x,cursorY:S.y};f.current=N,u(N);const C=b(S.x,S.y,N);p.current=C,h(C)},[x,b]),E=n.useCallback(A=>{var C;const S=f.current;let N=p.current;if(S&&!N&&A){const V=x(A.clientX,A.clientY);N=b(V.x,V.y,S)}S&&N&&i&&(S.sourceType==="source"?i(S.sourceNodeId,S.sourceHandleId,N.nodeId,N.handleId):i(N.nodeId,N.handleId,S.sourceNodeId,S.sourceHandleId)),g.current!==null&&((C=e.current)==null||C.releasePointerCapture(g.current),g.current=null),f.current=null,p.current=null,u(null),h(null)},[i,e,x,b]);return{connectionDrag:c,handleInteractionProps:{onPointerDown:w,activeDropTarget:d},onDragPointerMove:M,onDragPointerUp:E,isDragging:c!==null}}const VU=5;function _U({containerRef:e,viewport:a}){const l=n.useRef(null),i=n.useRef(a);n.useEffect(()=>{i.current=a},[a]);const c=n.useCallback((h,f,p)=>{h.button===0&&(h.target.closest("[data-handle]")||(h.stopPropagation(),l.current={nodeId:f,startPointerX:h.clientX,startPointerY:h.clientY,startNodeX:p.x,startNodeY:p.y,isDragging:!1}))},[]),u=n.useCallback(h=>{var b;const f=l.current;if(!f)return null;const p=h.clientX-f.startPointerX,g=h.clientY-f.startPointerY;if(!f.isDragging){if(Math.sqrt(p*p+g*g)<VU)return null;f.isDragging=!0,(b=e.current)==null||b.setPointerCapture(h.pointerId)}const x=i.current;return{nodeId:f.nodeId,x:f.startNodeX+p/x.zoom,y:f.startNodeY+g/x.zoom}},[e]),d=n.useCallback(()=>{const h=l.current;if(!h)return!1;const f=h.isDragging;return l.current=null,f},[]);return{onNodePointerDown:c,onNodeDragMove:u,onNodeDragUp:d,isDragging:()=>{var h;return((h=l.current)==null?void 0:h.isDragging)??!1}}}const TU=n.memo(function({edges:a,edgeTypes:l,onInsertStep:i}){return s.jsx("svg",{className:"absolute left-0 top-0 overflow-visible",style:{width:1,height:1,pointerEvents:"none"},children:a.map(({edge:c,path:u,sourceX:d,sourceY:h,targetX:f,targetY:p})=>{const g=l[c.type||"dataFlow"];if(!g)return null;const x={id:c.id,path:u,source:c.source,target:c.target,data:c.data,sourceX:d,sourceY:h,targetX:f,targetY:p,onInsertStep:c.type==="dataFlow"?i:void 0};return s.jsx(g,{...x},c.id)})})}),LU=n.memo(function({viewport:a,gap:l=20,size:i=1,color:c="rgba(255, 255, 255, 0.03)"}){const u=l*a.zoom;return s.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:`radial-gradient(circle, ${c} ${i}px, transparent ${i}px)`,backgroundSize:`${u}px ${u}px`,backgroundPosition:`${a.x%u}px ${a.y%u}px`}})}),RU=n.memo(function({onZoomIn:a,onZoomOut:l,onFitView:i}){return s.jsxs("div",{className:"absolute bottom-4 left-4 flex flex-col rounded-lg border border-white/[0.06] bg-black/60 shadow-lg backdrop-blur-sm","data-testid":"flow-controls",children:[s.jsx("button",{onClick:a,className:"flex h-8 w-8 items-center justify-center border-b border-white/[0.06] text-neutral-400 transition-colors hover:bg-white/[0.05] hover:text-white","aria-label":"Zoom in",children:s.jsx(Nt,{size:14,weight:"bold"})}),s.jsx("button",{onClick:l,className:"flex h-8 w-8 items-center justify-center border-b border-white/[0.06] text-neutral-400 transition-colors hover:bg-white/[0.05] hover:text-white","aria-label":"Zoom out",children:s.jsx(rF,{size:14,weight:"bold"})}),s.jsx("button",{onClick:i,className:"flex h-8 w-8 items-center justify-center text-neutral-400 transition-colors hover:bg-white/[0.05] hover:text-white","aria-label":"Fit view",children:s.jsx(IO,{size:14,weight:"bold"})})]})}),Kw={trigger:"#60a5fa",conditional:"#fb923c",addStep:"rgba(255,255,255,0.1)",step:"rgba(255,255,255,0.2)"},Xw=160,Qw=100,kU=n.memo(function({nodes:a,viewport:l,containerWidth:i,containerHeight:c}){const{rects:u,viewBox:d,viewportRect:h}=n.useMemo(()=>{if(a.length===0)return{rects:[],viewBox:"0 0 100 100",viewportRect:{x:0,y:0,width:100,height:100}};let f=1/0,p=1/0,g=-1/0,x=-1/0;for(const C of a){const V=C.width||280,_=C.height||80;f=Math.min(f,C.position.x),p=Math.min(p,C.position.y),g=Math.max(g,C.position.x+V),x=Math.max(x,C.position.y+_)}const b=50;f-=b,p-=b,g+=b,x+=b;const w=g-f,M=x-p,E=a.map(C=>({id:C.id,x:C.position.x,y:C.position.y,width:C.width||(C.type==="addStep"?40:280),height:C.height||(C.type==="addStep"?40:C.type==="conditional"?100:80),color:Kw[C.type||"step"]||Kw.step})),j=-l.x/l.zoom,A=-l.y/l.zoom,S=i/l.zoom,N=c/l.zoom;return{rects:E,viewBox:`${f} ${p} ${w} ${M}`,viewportRect:{x:j,y:A,width:S,height:N}}},[a,l,i,c]);return s.jsx("div",{className:"absolute bottom-4 right-4 rounded-lg border border-white/[0.06] bg-black/60 backdrop-blur-sm","data-testid":"flow-minimap",style:{width:Xw,height:Qw},children:s.jsxs("svg",{width:Xw,height:Qw,viewBox:d,preserveAspectRatio:"xMidYMid meet",children:[u.map(f=>s.jsx("rect",{x:f.x,y:f.y,width:f.width,height:f.height,fill:f.color,rx:4},f.id)),s.jsx("rect",{x:h.x,y:h.y,width:h.width,height:h.height,fill:"rgba(255, 255, 255, 0.05)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:2,rx:2})]})})}),TS=n.memo(function({nodes:a,edges:l,selectedNodeId:i,nodeTypes:c,edgeTypes:u,onNodeClick:d,onPaneClick:h,onConnect:f,onNodeDrag:p,onInsertStep:g,fitViewOnMount:x=!0}){const{viewport:b,isPanning:w,containerRef:M,onWheel:E,onPointerDown:j,onPointerMove:A,onPointerUp:S,fitView:N,zoomIn:C,zoomOut:V}=ZU(a,{fitViewOnMount:x}),[_,H]=n.useState({width:0,height:0});n.useEffect(()=>{const F=M.current;if(!F)return;const P=new ResizeObserver(oe=>{const fe=oe[0];fe&&H({width:fe.contentRect.width,height:fe.contentRect.height})});return P.observe(F),()=>P.disconnect()},[M]);const R=n.useMemo(()=>NU(a),[a]),{connectionDrag:L,handleInteractionProps:O,onDragPointerMove:I,onDragPointerUp:X,isDragging:K}=HU({containerRef:M,viewport:b,handleMap:R,onConnect:f}),{onNodePointerDown:B,onNodeDragMove:Y,onNodeDragUp:k,isDragging:$}=_U({containerRef:M,viewport:b}),Q=n.useMemo(()=>l.map(F=>{const P=MU(F,R);if(!P)return null;const oe=Gw(P.sourceX,P.sourceY,P.targetX,P.targetY);return{edge:F,path:oe,sourceX:P.sourceX,sourceY:P.sourceY,targetX:P.targetX,targetY:P.targetY}}).filter(F=>F!==null),[l,R]),ie=n.useCallback(F=>{const P=Y(F);if(P){p==null||p(P.nodeId,{x:P.x,y:P.y});return}I(F),A(F)},[Y,p,I,A]),re=n.useCallback(F=>{k()&&(ne.current=!0),X(F),S()},[k,X,S]),D=n.useCallback(F=>{(F.target===F.currentTarget||F.target.dataset.paneTarget)&&j(F)},[j]),J=n.useCallback(F=>{(F.target===F.currentTarget||F.target.dataset.paneTarget)&&(h==null||h())},[h]),ne=n.useRef(!1),z=n.useCallback((F,P,oe)=>{if(ne.current){queueMicrotask(()=>{ne.current=!1}),F.stopPropagation();return}F.stopPropagation(),d==null||d(P,oe)},[d]);return s.jsxs("div",{ref:M,className:"relative h-full w-full overflow-hidden",onWheel:E,onPointerMove:ie,onPointerUp:re,onPointerDown:D,onClick:J,style:{touchAction:"none",cursor:$()?"grabbing":K?"crosshair":w?"grabbing":"default"},"data-testid":"flow-canvas",children:[s.jsx(LU,{viewport:b}),s.jsxs("div",{className:"absolute origin-top-left",style:{transform:`translate(${b.x}px, ${b.y}px) scale(${b.zoom})`,willChange:"transform"},"data-pane-target":"true",children:[s.jsx(TU,{edges:Q,edgeTypes:u,onInsertStep:g}),L&&(()=>{const F=`${L.sourceNodeId}:${L.sourceHandleId}`,P=R.get(F);if(!P)return null;const oe=Gw(P.x,P.y,L.cursorX,L.cursorY);return s.jsx("svg",{className:"pointer-events-none absolute left-0 top-0 overflow-visible",style:{width:1,height:1},children:s.jsx("path",{d:oe,fill:"none",stroke:"rgba(255,255,255,0.4)",strokeWidth:2,strokeDasharray:"6 4"})})})(),a.map(F=>{const P=c[F.type||"step"];if(!P)return null;const oe=F.type!=="addStep";return s.jsx("div",{className:"absolute",style:{left:F.position.x,top:F.position.y,cursor:$()?"grabbing":"pointer"},"data-testid":`flow-node-${F.id}`,onClick:fe=>z(fe,F.id,F),onPointerDown:oe?fe=>B(fe,F.id,F.position):void 0,children:s.jsx(P,{id:F.id,data:F.data,selected:F.id===i,handleProps:O})},F.id)})]}),s.jsx(RU,{onZoomIn:C,onZoomOut:V,onFitView:N}),s.jsx(kU,{nodes:a,viewport:b,containerWidth:_.width,containerHeight:_.height})]})}),DU={agent_prompt:"#818cf8",a2a_call:"#a78bfa",run_agent:"#818cf8",save_contact:"#34d399",update_contact:"#2dd4bf",log_contact_event:"#fbbf24",webhook_forward:"#f472b6",transform_data:"#60a5fa",conditional:"#fb923c",create_task:"#a3e635",take_screenshot:"#38bdf8",generate_chart:"#f472b6"},OU={webhook:"#60a5fa",schedule:"#a78bfa",event:"#fbbf24",manual:"#34d399"},za=n.memo(function({nodeId:a,handleId:l,type:i,position:c,left:u,colorClass:d="bg-white/30",handleProps:h}){var b,w;const f=((b=h==null?void 0:h.activeDropTarget)==null?void 0:b.nodeId)===a&&((w=h==null?void 0:h.activeDropTarget)==null?void 0:w.handleId)===l,p=n.useCallback(M=>{h==null||h.onPointerDown(M,a,l,i)},[h,a,l,i]),g=c==="top"?"-top-1.5":"-bottom-1.5",x=u??"50%";return s.jsx("div",{className:`
|
|
80
|
-
absolute ${g} h-3 w-3 -translate-x-1/2 rounded-full border-2 border-[#0a0a0a]
|
|
81
|
-
${d}
|
|
82
|
-
transition-transform duration-100
|
|
83
|
-
${f?"scale-150 ring-2 ring-white/40":""}
|
|
84
|
-
${h?"cursor-crosshair":""}
|
|
85
|
-
`,style:{left:x},onPointerDown:h?p:void 0,"data-handle":!0,"data-handle-node":a,"data-handle-id":l,"data-handle-type":i})}),FU={webhook:Zl,schedule:Ml,event:Km,manual:Xm},zU={webhook:"Webhook",schedule:"Schedule",event:"Event",manual:"Manual"},qU=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,d=FU[u.triggerType]||Zl,h=OU[u.triggerType]||"#60a5fa",f=zU[u.triggerType]||"Trigger";return s.jsxs("div",{className:`
|
|
86
|
-
relative w-[280px] rounded-xl border-2 bg-[#0a0a0a] px-4 py-3
|
|
87
|
-
transition-all duration-150
|
|
88
|
-
${i?"ring-2 ring-white/20 shadow-lg shadow-white/5":"hover:border-white/20"}
|
|
89
|
-
`,style:{borderColor:i?h:`${h}40`},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:s.jsx(d,{size:20,weight:"fill",style:{color:h}})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"text-[11px] font-medium uppercase tracking-wider",style:{color:h},children:[f," Trigger"]}),s.jsx("div",{className:"truncate text-sm font-medium text-white",children:u.name||"Untitled automation"})]})]}),u.sampleFields&&u.sampleFields.length>0&&s.jsxs("div",{className:"mt-1.5 text-[10px] text-neutral-500",children:["Emits ",u.sampleFields.length," ",u.sampleFields.length===1?"field":"fields"]}),s.jsx(za,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),LS=n.createContext({overlayRun:null,getStepResult:()=>{}}),$U=LS.Provider;function RS(){return n.useContext(LS)}const BU={agent_prompt:tn,run_agent:tn,a2a_call:Ir,save_contact:yF,update_contact:bF,log_contact_event:sF,webhook_forward:AF,transform_data:uF,create_task:Qm,take_screenshot:Jh,generate_chart:DE},IU=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,d=BU[u.stepType]||tn,h=DU[u.stepType]||"#818cf8",f=o0[u.stepType]||u.stepType,{overlayRun:p,getStepResult:g}=RS(),x=p?g(u.stepId):void 0;return s.jsxs("div",{className:`
|
|
90
|
-
relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
|
|
91
|
-
transition-all duration-150
|
|
92
|
-
${i?"border-white/30 ring-2 ring-white/10 shadow-lg shadow-white/5":"border-white/[0.08] hover:border-white/20"}
|
|
93
|
-
`,children:[s.jsx(za,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:s.jsx(d,{size:18,weight:"duotone",style:{color:h}})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-neutral-500",children:f}),s.jsx("div",{className:"truncate text-sm text-white",children:u.label||f})]}),u.outputFields.length>0&&s.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[u.outputFields.slice(0,2).map(b=>s.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[9px] text-neutral-500",children:b},b)),u.outputFields.length>2&&s.jsxs("span",{className:"text-[9px] text-neutral-600",children:["+",u.outputFields.length-2]})]})]}),u.inputSources&&u.inputSources.length>0&&s.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[9px] text-neutral-600",children:[s.jsx(kO,{size:10,className:"shrink-0 text-neutral-600"}),s.jsxs("span",{className:"truncate",children:["from"," ",u.inputSources.map(b=>`${b.label}(${b.count})`).join(", ")]})]}),x&&s.jsxs("div",{className:"mt-2 border-t border-white/[0.06] pt-2",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[x.status==="completed"&&s.jsx(q0,{size:12,className:"text-emerald-400",weight:"fill"}),x.status==="failed"&&s.jsx(Cl,{size:12,className:"text-red-400",weight:"fill"}),x.status==="running"&&s.jsx(eM,{size:12,className:"animate-spin text-blue-400",weight:"bold"}),s.jsx("span",{className:`text-[10px] ${x.status==="completed"?"text-emerald-400":x.status==="failed"?"text-red-400":"text-blue-400"}`,children:x.status})]}),x.status==="completed"&&x.text_output&&s.jsxs("p",{className:"mt-1 truncate text-[9px] text-neutral-500",children:[x.text_output.slice(0,60),x.text_output.length>60?"...":""]}),x.status==="completed"&&x.output&&!x.text_output&&s.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Object.entries(x.output).slice(0,2).map(([b,w])=>s.jsxs("span",{className:"font-mono text-[9px] text-neutral-500",children:[b,"=",String(w).slice(0,20)]},b))}),x.status==="failed"&&x.error&&s.jsx("p",{className:"mt-1 truncate text-[9px] text-red-400/80",children:x.error.slice(0,60)})]}),s.jsx(za,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),UU={equals:"=",not_equals:"!=",contains:"contains",not_contains:"!contains",greater_than:">",less_than:"<",exists:"exists",not_exists:"!exists"},PU=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,{condition:d}=u,h=UU[d.operator]||d.operator,f=d.field?`${d.field} ${h}${d.value?` ${d.value}`:""}`:"No condition set";return s.jsxs("div",{className:`
|
|
94
|
-
relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
|
|
95
|
-
transition-all duration-150
|
|
96
|
-
${i?"border-orange-500/50 ring-2 ring-orange-500/10 shadow-lg shadow-orange-500/5":"border-orange-500/20 hover:border-orange-500/40"}
|
|
97
|
-
`,children:[s.jsx(za,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-orange-500/10",children:s.jsx(fN,{size:18,weight:"duotone",className:"text-orange-400"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-orange-400",children:"Conditional"}),s.jsx("div",{className:"truncate text-sm text-white/70 font-mono text-xs",children:f})]})]}),s.jsx(za,{nodeId:a,handleId:"then",type:"source",position:"bottom",left:"35%",colorClass:"bg-emerald-400",handleProps:c}),s.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-emerald-400",style:{bottom:-16,left:"35%",transform:"translateX(-50%)"},children:"Then"}),s.jsx(za,{nodeId:a,handleId:"else",type:"source",position:"bottom",left:"65%",colorClass:"bg-amber-400",handleProps:c}),s.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-amber-400",style:{bottom:-16,left:"65%",transform:"translateX(-50%)"},children:"Else"})]})}),GU=n.memo(function({id:a,data:l,handleProps:i}){return s.jsxs("div",{className:"group relative flex h-10 w-[200px] items-center justify-center",children:[s.jsx(za,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:i}),s.jsx("button",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-dashed border-white/10 bg-white/[0.02] text-neutral-600 transition-all hover:border-white/20 hover:bg-white/[0.05] hover:text-white","data-testid":"add-step-button",children:s.jsx(Nt,{size:14,weight:"bold"})})]})}),YU=n.memo(function(a){const{path:l,source:i,target:c,data:u,sourceX:d,sourceY:h,targetX:f,targetY:p,onInsertStep:g}=a,[x,b]=n.useState(!1),{overlayRun:w,getStepResult:M}=RS(),E=u==null?void 0:u.branchType;let j;if(w){const _=M(c);(_==null?void 0:_.status)==="completed"?j="rgba(52, 211, 153, 0.5)":(_==null?void 0:_.status)==="failed"?j="rgba(248, 113, 113, 0.5)":(_==null?void 0:_.status)==="running"?j="rgba(96, 165, 250, 0.5)":j="rgba(255, 255, 255, 0.12)"}else j=E==="then"?"rgba(52, 211, 153, 0.3)":E==="else"?"rgba(251, 191, 36, 0.3)":"rgba(255, 255, 255, 0.2)";const A=n.useCallback(_=>{_.stopPropagation(),g==null||g(i,c)},[g,i,c]),S=g&&d!=null&&h!=null&&f!=null&&p!=null,N=S?(d+f)/2:0,C=S?(h+p)/2:0,V=24;return s.jsxs("g",{onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[s.jsx("path",{d:l,fill:"none",stroke:"transparent",strokeWidth:20,style:{pointerEvents:"stroke"}}),s.jsx("path",{d:l,fill:"none",stroke:j,strokeWidth:2,style:{pointerEvents:"none"}}),S&&x&&s.jsx("foreignObject",{x:N-V/2,y:C-V/2,width:V,height:V,style:{overflow:"visible",pointerEvents:"all"},children:s.jsx("button",{type:"button",onClick:A,className:"flex h-6 w-6 items-center justify-center rounded-full border border-white/20 bg-zinc-800 text-xs text-white/70 shadow-lg transition-all hover:border-white/40 hover:bg-zinc-700 hover:text-white",title:"Insert step",children:"+"})})]})}),KU=n.memo(function(a){const{path:l}=a;return s.jsx("path",{d:l,fill:"none",stroke:"rgba(255, 255, 255, 0.15)",strokeWidth:1.5,strokeDasharray:"6 4"})}),XU=n.memo(function({nodes:a,edges:l,selectedNodeId:i,onNodeClick:c,onPaneClick:u,onConnect:d,onNodeDrag:h,onInsertStep:f}){const p=n.useMemo(()=>({trigger:qU,step:IU,conditional:PU,addStep:GU}),[]),g=n.useMemo(()=>({dataFlow:YU,addStepEdge:KU}),[]);return s.jsx("div",{className:"h-full w-full","data-testid":"flow-canvas-wrapper",children:s.jsx(TS,{nodes:a,edges:l,selectedNodeId:i,nodeTypes:p,edgeTypes:g,onNodeClick:c,onPaneClick:u,onConnect:d,onNodeDrag:h,onInsertStep:f,fitViewOnMount:!0})})});function QU({name:e,onNameChange:a,description:l,onDescriptionChange:i,onSave:c,onRun:u,saving:d,isNew:h}){const f=u0(),p=()=>{f("/automations")};return s.jsxs("div",{className:"flex h-14 shrink-0 items-center gap-3 border-b border-white/[0.06] px-4",children:[s.jsx("button",{onClick:p,className:"flex h-8 w-8 items-center justify-center rounded-lg text-neutral-500 transition-colors hover:bg-white/[0.05] hover:text-white","data-testid":"flow-builder-back",children:s.jsx(Qr,{size:18})}),s.jsx("div",{className:"h-5 w-px bg-white/[0.06]"}),s.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[s.jsx("input",{type:"text",value:e,onChange:g=>a(g.target.value),placeholder:"Automation name","data-testid":"flow-builder-name",className:"min-w-0 flex-1 bg-transparent text-sm font-medium text-white placeholder-gray-600 focus:outline-none"}),s.jsx("input",{type:"text",value:l,onChange:g=>i(g.target.value),placeholder:"Description (optional)",className:"hidden min-w-0 flex-1 bg-transparent text-sm text-neutral-400 placeholder-gray-700 focus:outline-none md:block"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[u&&!h&&s.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 rounded-lg border border-white/[0.06] px-3 py-1.5 text-xs text-neutral-400 transition-colors hover:border-white/10 hover:text-white",children:[s.jsx(Wm,{size:12,weight:"fill"}),"Run"]}),s.jsxs("button",{onClick:c,disabled:d,"data-testid":"flow-builder-save",className:"flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-xs font-medium text-black transition-all hover:bg-gray-200 active:scale-[0.98] disabled:opacity-50",children:[s.jsx(QO,{size:14,weight:"bold"}),d?"Saving...":h?"Create":"Save"]})]})]})}function JU({onSampleParsed:e,existingSamplePayload:a}){const[l,i]=n.useState(a?"history":"paste"),[c,u]=n.useState(""),[d,h]=n.useState(null),[f,p]=n.useState([]),[g,x]=n.useState(null);function b(j){if(u(j),h(null),p([]),x(null),!!j.trim())try{const A=JSON.parse(j);if(typeof A!="object"||A===null||Array.isArray(A)){h("Must be a JSON object (not an array or primitive)");return}const{fields:S,payload:N}=w1(A);p(S),x(N)}catch{h("Invalid JSON")}}function w(){g&&f.length>0&&e(f,g)}function M(){if(!a)return;const{fields:j,payload:A}=w1(a);e(j,A)}const E=[{id:"paste",label:"Paste JSON",icon:$O},...a?[{id:"history",label:"Previous data",icon:Br}]:[]];return s.jsxs("div",{className:"space-y-3",children:[E.length>1&&s.jsx("div",{className:"flex gap-1 rounded-lg bg-white/[0.03] p-0.5",children:E.map(({id:j,label:A,icon:S})=>s.jsxs("button",{onClick:()=>i(j),className:`flex flex-1 items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-[11px] font-medium transition-colors ${l===j?"bg-white/[0.08] text-white":"text-neutral-500 hover:text-neutral-400"}`,children:[s.jsx(S,{size:13}),A]},j))}),l==="paste"&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("textarea",{value:c,onChange:j=>b(j.target.value),placeholder:`{
|
|
98
|
-
"email": "jane@example.com",
|
|
99
|
-
"name": "Jane Smith"
|
|
100
|
-
}`,className:"h-32 w-full resize-none rounded-lg border border-white/10 bg-white/[0.03] px-3 py-2 font-mono text-xs text-white placeholder:text-neutral-700 focus:border-white/20 focus:outline-none"}),d&&s.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-red-400",children:[s.jsx(tf,{size:12}),d]}),f.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex flex-wrap gap-1",children:[f.slice(0,12).map(j=>s.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:j},j)),f.length>12&&s.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",f.length-12," more"]})]}),s.jsxs("button",{onClick:w,className:"flex w-full items-center justify-center gap-1.5 rounded-lg bg-white/[0.08] px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-white/[0.12]",children:[s.jsx($r,{size:14}),"Use these ",f.length," ",f.length===1?"field":"fields"]})]})]}),l==="history"&&a&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] p-3",children:[s.jsx("p",{className:"mb-2 text-[10px] uppercase tracking-wider text-neutral-500",children:"Previously captured data"}),s.jsx("div",{className:"flex flex-wrap gap-1",children:Object.keys(w1(a).payload).slice(0,12).map(j=>s.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:j},j))})]}),s.jsxs("button",{onClick:M,className:"flex w-full items-center justify-center gap-1.5 rounded-lg bg-white/[0.08] px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-white/[0.12]",children:[s.jsx($r,{size:14}),"Reuse this data"]})]})]})}const kS=[{label:"No limit",seconds:0},{label:"30 seconds",seconds:30},{label:"1 minute",seconds:60},{label:"5 minutes",seconds:300},{label:"15 minutes",seconds:900},{label:"30 minutes",seconds:1800},{label:"1 hour",seconds:3600}];function WU(e){return kS.some(a=>a.seconds===e)}const eP=[{type:"webhook",label:"Webhook",description:"Triggered by incoming data",icon:Zl},{type:"schedule",label:"Schedule",description:"Runs on a timer",icon:Ml},{type:"event",label:"Event",description:"Listens for system events",icon:Km},{type:"manual",label:"Manual",description:"Run on demand",icon:Xm}];function tP({data:e,onChange:a}){var d;const l=!WU(e.cooldownSeconds),[i,c]=n.useState(!1),u=(((d=e.sampleFields)==null?void 0:d.length)??0)>0;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-2 block text-xs uppercase tracking-wider text-neutral-400",children:"Trigger Type"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:eP.map(({type:h,label:f,description:p,icon:g})=>s.jsxs("button",{onClick:()=>a({triggerType:h,triggerConfig:{}}),"data-testid":`flow-trigger-type-${h}`,className:`flex flex-col items-start rounded-lg border p-3 text-left transition-all ${e.triggerType===h?"border-white/20 bg-white/[0.05]":"border-white/[0.06] bg-white/[0.02] hover:border-white/10"}`,children:[s.jsx(g,{size:18,weight:e.triggerType===h?"fill":"regular",className:e.triggerType===h?"text-white":"text-neutral-500"}),s.jsx("span",{className:`mt-1.5 text-xs font-medium ${e.triggerType===h?"text-white":"text-neutral-400"}`,children:f}),s.jsx("span",{className:"mt-0.5 text-[10px] text-neutral-600",children:p})]},h))})]}),e.triggerType==="webhook"&&s.jsxs("div",{className:"space-y-3",children:[u&&s.jsxs("div",{className:"rounded-lg border border-emerald-500/20 bg-emerald-500/[0.05] p-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(q0,{size:14,className:"text-emerald-400",weight:"fill"}),s.jsxs("span",{className:"text-xs font-medium text-emerald-400",children:[e.sampleFields.length," ",e.sampleFields.length===1?"field":"fields"," loaded"]})]}),s.jsx("button",{onClick:()=>a({sampleFields:[],samplePayload:null}),className:"text-neutral-500 hover:text-neutral-400",children:s.jsx(Ca,{size:14})})]}),s.jsxs("div",{className:"mt-2 flex flex-wrap gap-1",children:[e.sampleFields.slice(0,8).map(h=>s.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:h},h)),e.sampleFields.length>8&&s.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",e.sampleFields.length-8," more"]})]})]}),s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>c(!i),className:"flex w-full items-center justify-between rounded-lg border border-white/[0.06] bg-white/[0.02] px-3 py-2 text-left text-xs text-neutral-400 transition-colors hover:border-white/10",children:[s.jsx("span",{children:u?"Change sample data":"Load sample data"}),s.jsx(rn,{size:12,className:`transition-transform ${i?"rotate-180":""}`})]}),i&&s.jsx("div",{className:"mt-2",children:s.jsx(JU,{existingSamplePayload:e.samplePayload,onSampleParsed:(h,f)=>{a({sampleFields:h,samplePayload:f}),c(!1)}})})]})]}),e.triggerType==="schedule"&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Schedule"}),s.jsx(MM,{value:e.triggerConfig.cron||"",onChange:h=>a({triggerConfig:{...e.triggerConfig,cron:h}})})]}),e.triggerType==="event"&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"System Event"}),s.jsxs("select",{value:e.triggerConfig.event_name||"",onChange:h=>a({triggerConfig:{...e.triggerConfig,event_name:h.target.value}}),className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:[s.jsx("option",{value:"",className:"bg-black",children:"Select event..."}),s.jsx("option",{value:"task_completed",className:"bg-black",children:"Task Completed"}),s.jsx("option",{value:"agent_error",className:"bg-black",children:"Agent Error"}),s.jsx("option",{value:"contact_created",className:"bg-black",children:"Contact Created"})]})]}),(e.triggerType==="webhook"||e.triggerType==="event")&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Run at most every"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("select",{value:l?-1:e.cooldownSeconds,onChange:h=>{const f=parseInt(h.target.value,10);a(f===-1?{cooldownSeconds:e.cooldownSeconds||120}:{cooldownSeconds:f})},className:"rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:[kS.map(h=>s.jsx("option",{value:h.seconds,className:"bg-black",children:h.label},h.seconds)),s.jsx("option",{value:-1,className:"bg-black",children:"Custom"})]}),l&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("input",{type:"number",value:e.cooldownSeconds,onChange:h=>a({cooldownSeconds:parseInt(h.target.value,10)||0}),min:0,className:"w-20 rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none"}),s.jsx("span",{className:"text-xs text-neutral-500",children:"seconds"})]})]}),s.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:"Prevents this automation from running too often"})]})]})}function Or({value:e,onChange:a,placeholder:l,fieldGroups:i,mode:c="path",className:u}){const[d,h]=n.useState(!1),f=n.useRef(null),p=n.useRef(null);n.useEffect(()=>{if(!d)return;const b=w=>{f.current&&!f.current.contains(w.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[d]);const g=b=>{a(c==="template"?`{{${b}}}`:b),h(!1)},x=i.some(b=>b.fields.length>0);return s.jsxs("div",{ref:f,className:"relative",children:[s.jsxs("div",{className:"flex",children:[s.jsx("input",{ref:p,type:"text",value:e,onChange:b=>a(b.target.value),placeholder:l,className:u||"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none",onFocus:()=>x&&h(!0)}),x&&s.jsx("button",{type:"button",onClick:()=>h(!d),className:"absolute right-0 top-0 bottom-0 px-2 text-neutral-500 hover:text-neutral-300 transition-colors",tabIndex:-1,children:s.jsx(rn,{size:12})})]}),d&&x&&s.jsx("div",{className:"absolute z-50 top-full left-0 right-0 mt-1 max-h-60 overflow-y-auto border border-white/10 rounded-lg bg-[#1a1a1a] shadow-xl",children:i.map(b=>b.fields.length===0?null:s.jsxs("div",{children:[s.jsx("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-neutral-500 font-medium bg-white/[0.02] sticky top-0",children:b.label}),b.fields.map(w=>s.jsxs("button",{type:"button",onClick:()=>g(w.path),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-white/[0.06] transition-colors text-left",children:[s.jsx("span",{className:"font-mono text-neutral-300",children:w.name}),w.value&&s.jsx("span",{className:"text-neutral-600 truncate",children:w.value})]},w.path))]},b.prefix))})]})}function cm({fieldGroups:e,textareaRef:a,onInsert:l}){const[i,c]=n.useState(!1),u=n.useRef(null);n.useEffect(()=>{if(!i)return;const f=p=>{u.current&&!u.current.contains(p.target)&&c(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[i]);const d=f=>{const p=a.current;if(!p)return;const g=p.selectionStart??p.value.length,x=p.selectionEnd??g,b=p.value,w=`{{${f}}}`,M=b.substring(0,g)+w+b.substring(x);l(M),c(!1),requestAnimationFrame(()=>{p.focus();const E=g+w.length;p.setSelectionRange(E,E)})};return e.some(f=>f.fields.length>0)?s.jsxs("div",{ref:u,className:"relative inline-block",children:[s.jsx("button",{type:"button",onClick:()=>c(!i),className:"text-[10px] text-neutral-500 hover:text-neutral-300 transition-colors",children:"+ Insert field"}),i&&s.jsx("div",{className:"absolute z-50 top-full left-0 mt-1 w-64 max-h-52 overflow-y-auto border border-white/10 rounded-lg bg-[#1a1a1a] shadow-xl",children:e.map(f=>f.fields.length===0?null:s.jsxs("div",{children:[s.jsx("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-neutral-500 font-medium bg-white/[0.02] sticky top-0",children:f.label}),f.fields.map(p=>s.jsxs("button",{type:"button",onClick:()=>d(p.path),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-white/[0.06] transition-colors text-left",children:[s.jsx("span",{className:"font-mono text-neutral-300",children:p.name}),p.value&&s.jsx("span",{className:"text-neutral-600 truncate",children:p.value})]},p.path))]},f.prefix))})]}):null}function aP({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const[u,d]=n.useState([]),h=n.useRef(null),f=n.useRef(null);n.useEffect(()=>{me("/api/agents").then(A=>d(A.data)).catch(()=>{})},[]);const p=e.agent_id||"",g=e.agent_name||"",x=e.task_prompt||"",b=e.image_url||"",w=Vl({sampleFields:i,samplePayload:c,previousSteps:l}),M=n.useMemo(()=>w.flatMap(A=>A.fields.map(S=>S.path)),[w]),E=n.useMemo(()=>{if(!b||i.length===0)return[];const A=VM(b);return Uq(A,M)},[b,i,M]),j=A=>{const S=u.find(N=>N.id===A);a({...e,agent_id:A,agent_name:(S==null?void 0:S.name)||""})};return s.jsxs("div",{className:"space-y-3","data-testid":"agent-prompt-config",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),s.jsxs("select",{value:p,onChange:A=>j(A.target.value),"data-testid":"agent-prompt-agent-select",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:[s.jsx("option",{value:"",className:"bg-black",children:"Select an agent..."}),u.map(A=>s.jsxs("option",{value:A.id,className:"bg-black",children:[A.name," (",A.role,")"]},A.id))]}),g&&p&&s.jsxs("p",{className:"text-[10px] text-neutral-600 mt-1",children:["Selected: ",g]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsxs("label",{className:"text-xs text-neutral-400",children:["Task Prompt",s.jsxs("span",{className:"text-neutral-600 ml-1",children:["Use ","{{trigger.field}}"," or ","{{step_1.field}}"," for variables"]})]}),s.jsx(cm,{fieldGroups:w,textareaRef:h,onInsert:A=>a({...e,task_prompt:A})})]}),s.jsx("textarea",{ref:h,value:x,onChange:A=>a({...e,task_prompt:A.target.value}),placeholder:"Research the company {{trigger.company_name}} and create a summary.",rows:4,"data-testid":"agent-prompt-textarea",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none resize-y"})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsxs("label",{className:"text-xs text-neutral-400",children:["Image URL",s.jsx("span",{className:"text-neutral-600 ml-1",children:"(optional)"})]}),s.jsx(cm,{fieldGroups:w,textareaRef:f,onInsert:A=>a({...e,image_url:A})})]}),s.jsx("input",{ref:f,type:"text",value:b,onChange:A=>a({...e,image_url:A.target.value}),placeholder:"{{trigger.photo_url}}","data-testid":"agent-prompt-image-url",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"}),E.length>0&&s.jsxs("div",{className:"flex items-start gap-1.5 mt-1.5 p-1.5 bg-amber-500/10 border border-amber-500/20 rounded",children:[s.jsx(tf,{size:12,className:"text-amber-400 mt-0.5 flex-shrink-0"}),s.jsxs("p",{className:"text-[10px] text-amber-400",children:["Unknown ",E.length===1?"field":"fields",":"," ",E.map(A=>`{{${A}}}`).join(", "),"."," ","This may not resolve at runtime."]})]})]})]})}const nP=[{value:"",label:"None"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"},{value:"trim",label:"Trim"},{value:"to_number",label:"To Number"},{value:"to_string",label:"To String"},{value:"json_parse",label:"JSON Parse"}];function rP({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const u=e.mappings||[],d=(g,x,b)=>{const w=u.map((M,E)=>E===g?{...M,[x]:b||void 0}:M);a({...e,mappings:w})},h=()=>{a({...e,mappings:[...u,{target:"",source:""}]})},f=g=>{a({...e,mappings:u.filter((x,b)=>b!==g)})},p=Vl({sampleFields:i,samplePayload:c,previousSteps:l});return s.jsxs("div",{className:"space-y-3","data-testid":"transform-data-config",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Map and transform data from previous steps. Pick a source field or type a path manually."}),u.map((g,x)=>s.jsxs("div",{className:"grid grid-cols-[1fr_1fr_auto_auto] gap-2 items-end",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),s.jsx(Or,{value:g.source||"",onChange:b=>d(x,"source",b),placeholder:"trigger.email",fieldGroups:p})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target Field"}),s.jsx("input",{type:"text",value:g.target||"",onChange:b=>d(x,"target",b.target.value),placeholder:"formatted_name",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Transform"}),s.jsx("select",{value:g.transform||"",onChange:b=>d(x,"transform",b.target.value),className:"px-2 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:nP.map(({value:b,label:w})=>s.jsx("option",{value:b,className:"bg-black",children:w},b))})]}),s.jsx("button",{onClick:()=>f(x),className:"p-2 text-neutral-600 hover:text-red-400 transition-colors",children:s.jsx(Gt,{size:14})})]},x)),s.jsxs("button",{onClick:h,className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[s.jsx(Nt,{size:12,weight:"bold"}),"Add Mapping"]})]})}function sP({stepType:e,config:a,onChange:l,previousSteps:i,sampleFields:c,samplePayload:u}){const d=Vl({sampleFields:c,samplePayload:u,previousSteps:i});return e==="save_contact"?s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Map incoming data to contact fields."}),["name","email","phone","company"].map(h=>s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:h}),s.jsx(Or,{value:a[h]||"",onChange:f=>l({...a,[h]:f}),placeholder:`trigger.${h}`,fieldGroups:d})]},h)),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Tags"}),s.jsx("input",{type:"text",value:a.tags||"",onChange:h=>l({...a,tags:h.target.value}),placeholder:"tag1, tag2",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"}),s.jsx("p",{className:"text-[10px] text-neutral-600 mt-1",children:"Comma-separated tags"})]})]}):e==="update_contact"?s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Find a contact and update their fields."}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Find by email"}),s.jsx(Or,{value:a.lookup_email||"",onChange:h=>l({...a,lookup_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),["name","phone","company"].map(h=>s.jsxs("div",{children:[s.jsxs("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:["New ",h]}),s.jsx(Or,{value:a[h]||"",onChange:f=>l({...a,[h]:f}),placeholder:`trigger.${h}`,fieldGroups:d})]},h))]}):s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Log an event to a contact's timeline."}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Contact email"}),s.jsx(Or,{value:a.contact_email||"",onChange:h=>l({...a,contact_email:h}),placeholder:"trigger.email",fieldGroups:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Event type"}),s.jsx("input",{type:"text",value:a.event_type||"",onChange:h=>l({...a,event_type:h.target.value}),placeholder:"form_submitted",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),s.jsx("input",{type:"text",value:a.description||"",onChange:h=>l({...a,description:h.target.value}),placeholder:"Filled out the contact form",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]})]})}function lP({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const u=n.useRef(null),d=Vl({sampleFields:i,samplePayload:c,previousSteps:l});return s.jsxs("div",{className:"space-y-3","data-testid":"webhook-forward-config",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Forward data to an external URL."}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("label",{className:"text-xs text-neutral-400",children:"URL"}),s.jsx(cm,{fieldGroups:d,textareaRef:u,onInsert:h=>a({...e,url:h})})]}),s.jsx("input",{ref:u,type:"text",value:e.url||"",onChange:h=>a({...e,url:h.target.value}),placeholder:"https://example.com/webhook",className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Method"}),s.jsxs("select",{value:e.method||"POST",onChange:h=>a({...e,method:h.target.value}),className:"w-full px-3 py-2 bg-white/[0.03] border border-white/10 rounded-md text-sm text-white focus:border-white/20 focus:outline-none",children:[s.jsx("option",{value:"POST",className:"bg-black",children:"POST"}),s.jsx("option",{value:"PUT",className:"bg-black",children:"PUT"}),s.jsx("option",{value:"PATCH",className:"bg-black",children:"PATCH"})]})]}),s.jsx("div",{children:s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"checkbox",checked:e.include_all_data??!0,onChange:h=>a({...e,include_all_data:h.target.checked}),className:"rounded border-white/20 bg-white/[0.03]"}),s.jsx("span",{className:"text-xs text-neutral-400",children:"Include all trigger and step data"})]})})]})}const iP=[{value:"equals",label:"equals"},{value:"not_equals",label:"does not equal"},{value:"contains",label:"contains"},{value:"not_contains",label:"does not contain"},{value:"greater_than",label:"greater than"},{value:"less_than",label:"less than"},{value:"exists",label:"exists"},{value:"not_exists",label:"does not exist"}];function oP({config:e,onChange:a,previousSteps:l,sampleFields:i,samplePayload:c}){const u=e.condition||{field:"",operator:"equals",value:""},d=!["exists","not_exists"].includes(u.operator),h=Vl({sampleFields:i,samplePayload:c,previousSteps:l}),f=(p,g)=>{const x={...u,[p]:g};a({...e,condition:x})};return s.jsxs("div",{className:"space-y-3","data-testid":"condition-form",children:[s.jsx("p",{className:"text-xs text-neutral-500",children:"Branch execution based on a condition. Pick a field or type a path manually."}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Field"}),s.jsx(Or,{value:u.field,onChange:p=>f("field",p),placeholder:"trigger.country",fieldGroups:h})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Operator"}),s.jsx("select",{value:u.operator,onChange:p=>f("operator",p.target.value),className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:iP.map(({value:p,label:g})=>s.jsx("option",{value:p,className:"bg-black",children:g},p))})]}),d&&s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Value"}),s.jsx("input",{type:"text",value:u.value||"",onChange:p=>f("value",p.target.value),placeholder:"US",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]})]})}const cP=Object.entries(o0);function uP({data:e,node:a,onChange:l,nodes:i}){const c=dP(a,i),u=hP(i),d=mP(i),h=g=>{const x={id:e.stepId,action_type:g,action_config:{}};l({stepType:g,label:o0[g]||g,actionConfig:{},outputFields:z0(x)})},f=g=>{const x={id:e.stepId,action_type:e.stepType,action_config:g};l({actionConfig:g,outputFields:z0(x)})},p=g=>{l({label:g})};return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Label"}),s.jsx("input",{type:"text",value:e.label,onChange:g=>p(g.target.value),placeholder:"Step label",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-white/20 focus:outline-none"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Step Type"}),s.jsx("select",{value:e.stepType,onChange:g=>h(g.target.value),"data-testid":"flow-step-type",className:"w-full rounded-md border border-white/10 bg-white/[0.03] px-3 py-2 text-sm text-white focus:border-white/20 focus:outline-none",children:cP.map(([g,x])=>s.jsx("option",{value:g,className:"bg-black",children:x},g))}),s.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:Iq[e.stepType]||""})]}),s.jsxs("div",{className:"border-t border-white/[0.06] pt-4",children:[(e.stepType==="agent_prompt"||e.stepType==="run_agent")&&s.jsx(aP,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u,samplePayload:d}),e.stepType==="transform_data"&&s.jsx(rP,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u,samplePayload:d}),e.stepType==="conditional"&&s.jsx(oP,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u,samplePayload:d}),(e.stepType==="save_contact"||e.stepType==="update_contact"||e.stepType==="log_contact_event")&&s.jsx(sP,{stepType:e.stepType,config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u}),e.stepType==="webhook_forward"&&s.jsx(lP,{config:e.actionConfig,onChange:f,previousSteps:c,sampleFields:u})]})]})}function dP(e,a){const l=a.filter(c=>(c.type==="step"||c.type==="conditional")&&c.id!==e.id),i=e.data;return l.filter(c=>{const u=c.data;return u.stepIndex>=0&&u.stepIndex<i.stepIndex}).sort((c,u)=>{const d=c.data,h=u.data;return d.stepIndex-h.stepIndex}).map(c=>{const u=c.data;return{id:u.stepId,action_type:u.stepType,action_config:u.actionConfig,label:u.label}})}function hP(e){const a=e.find(i=>i.id===Qa);return a?a.data.sampleFields||[]:[]}function mP(e){const a=e.find(i=>i.id===Qa);return a&&a.data.samplePayload||null}function fP({selectedNode:e,onClose:a,onUpdateNodeData:l,onDeleteStep:i,nodes:c,automationId:u}){const d=(e==null?void 0:e.type)==="trigger",h=(e==null?void 0:e.type)==="step"||(e==null?void 0:e.type)==="conditional";return s.jsx(Ba,{children:e&&s.jsx(Re.div,{initial:{width:0,opacity:0},animate:{width:400,opacity:1},exit:{width:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"flex h-full shrink-0 flex-col overflow-hidden border-l border-white/[0.06]","data-testid":"flow-side-panel",children:s.jsxs("div",{className:"flex h-full w-[400px] flex-col",children:[s.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b border-white/[0.06] px-4",children:[s.jsx("h3",{className:"text-sm font-medium text-white",children:d?"Trigger":"Step Configuration"}),s.jsxs("div",{className:"flex items-center gap-1",children:[h&&!d&&s.jsx("button",{onClick:()=>i(e.id),className:"flex h-7 w-7 items-center justify-center rounded text-neutral-500 transition-colors hover:bg-red-500/10 hover:text-red-400","data-testid":"flow-delete-step",children:s.jsx(Gt,{size:14})}),s.jsx("button",{onClick:a,className:"flex h-7 w-7 items-center justify-center rounded text-neutral-500 transition-colors hover:bg-white/[0.05] hover:text-white",children:s.jsx(Ca,{size:14})})]})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto p-4 pb-6",children:[d&&s.jsx(tP,{data:e.data,onChange:f=>l(e.id,f)}),h&&!d&&s.jsx(uP,{data:e.data,node:e,onChange:f=>l(e.id,f),nodes:c,automationId:u})]})]})})})}const Jw={completed:$r,failed:Ca,running:eM,pending:Br,cancelled:Ca},Ww={completed:"text-emerald-400",failed:"text-red-400",running:"text-blue-400",pending:"text-neutral-400",cancelled:"text-neutral-500"};function eA(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function pP({runs:e,selectedRun:a,onSelectRun:l,overlayEnabled:i,onToggleOverlay:c}){const[u,d]=n.useState(!1),h=a||e[0]||null,f=e.length>0;return s.jsxs("div",{className:"absolute right-3 top-3 z-10 flex items-center gap-2 rounded-lg border border-white/[0.08] bg-black/60 px-3 py-1.5 shadow-lg backdrop-blur-sm",children:[s.jsx(ha,{size:14,className:"text-neutral-500",weight:"fill"}),f?s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:()=>c(!i),className:`relative h-5 w-9 rounded-full transition-colors ${i?"bg-white/20":"bg-white/[0.06]"}`,children:s.jsx("div",{className:`absolute top-0.5 h-4 w-4 rounded-full bg-white transition-all ${i?"left-[18px]":"left-0.5"}`})}),s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>d(!u),className:"flex items-center gap-1.5 text-[11px] text-neutral-400 hover:text-neutral-300",children:[h&&(()=>{const p=Jw[h.status]||Br;return s.jsx(p,{size:12,className:`${Ww[h.status]||"text-neutral-400"} ${h.status==="running"?"animate-spin":""}`,weight:h.status==="running"?"bold":"fill"})})(),s.jsx("span",{children:h?eA(h.created_at):"Select run"}),s.jsx(rn,{size:10})]}),u&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>d(!1)}),s.jsx("div",{className:"absolute right-0 top-full z-20 mt-1 w-48 rounded-lg border border-white/[0.08] bg-black/80 py-1 shadow-xl backdrop-blur-sm",children:e.slice(0,8).map(p=>{var x;const g=Jw[p.status]||Br;return s.jsxs("button",{onClick:()=>{l(p),c(!0),d(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left text-[11px] hover:bg-white/[0.05] ${(a==null?void 0:a.id)===p.id?"bg-white/[0.05] text-white":"text-neutral-400"}`,children:[s.jsx(g,{size:11,className:`${Ww[p.status]} ${p.status==="running"?"animate-spin":""}`,weight:p.status==="running"?"bold":"fill"}),s.jsx("span",{className:"flex-1",children:eA(p.created_at)}),s.jsxs("span",{className:"text-[10px] text-neutral-600",children:[((x=p.step_results)==null?void 0:x.length)||0,"/",p.total_steps," steps"]})]},p.id)})})]})]})]}):s.jsx("span",{className:"text-[11px] text-neutral-600",children:"No runs yet"})]})}const gP=[];function xP({automation:e}){const a=u0(),l=!e,[i,c]=n.useState(gP),[u,d]=n.useState(!1),[h,f]=n.useState(null),p=n.useMemo(()=>u&&(h||i[0])||null,[u,h,i]),g=n.useCallback(ne=>{var z;if(p)return(z=p.step_results)==null?void 0:z.find(F=>F.step_id===ne)},[p]),x=n.useMemo(()=>({overlayRun:p,getStepResult:g}),[p,g]);n.useEffect(()=>{e!=null&&e.id&&me(`/api/automations/${e.id}/runs`).then(ne=>{var z;return c(((z=ne.data)==null?void 0:z.runs)||[])}).catch(()=>{})},[e==null?void 0:e.id]);const{nodes:b,edges:w,hasCustomPositions:M}=n.useMemo(()=>e?_M(e):Xq(),[e==null?void 0:e.id]),{nodes:E,edges:j,selectedNode:A,selectedNodeId:S,onNodeClick:N,onPaneClick:C,updateNodeData:V,updateNodePosition:_,deleteStep:H,connectNodes:R,insertStepBetween:L,setSelectedNodeId:O}=AU(b,w,{hasCustomPositions:M}),[I,X]=n.useState(!1),K=E.find(ne=>ne.id===Qa),B=K==null?void 0:K.data,Y=(B==null?void 0:B.name)||"",k=(B==null?void 0:B.description)||"",$=n.useCallback(ne=>{V(Qa,{name:ne})},[V]),Q=n.useCallback(ne=>{V(Qa,{description:ne})},[V]),ie=n.useCallback(async()=>{var ne,z;if(!Y.trim()){de("error","Give it a name first");return}X(!0);try{const F=Gq(E,j),P=((ne=E.find(fe=>fe.id===Qa))==null?void 0:ne.data)??{},oe={name:F.name,description:F.description,trigger_type:F.trigger_type,trigger_config:F.trigger_config,steps:F.steps,variables:F.variables,cooldown_seconds:F.cooldown_seconds,node_positions:F.node_positions,sample_payload:P.samplePayload??null,sample_fields:(z=P.sampleFields)!=null&&z.length?P.sampleFields:null};if(l){const fe=await me("/api/automations",{method:"POST",body:JSON.stringify(oe)});de("success","Automation created"),a(`/automations/${fe.data.id}/edit`)}else await me(`/api/automations/${e.id}`,{method:"PATCH",body:JSON.stringify(oe)}),de("success","Automation updated")}catch(F){de("error",F instanceof Error?F.message:"Something went wrong")}finally{X(!1)}},[Y,E,j,l,e,a]),re=n.useCallback(async()=>{if(e!=null&&e.id)try{await me(`/api/automations/${e.id}/execute`,{method:"POST"}),de("success","Automation started")}catch(ne){de("error",ne instanceof Error?ne.message:"Couldn't run automation. Try again?")}},[e==null?void 0:e.id]),D=n.useCallback((ne,z)=>{_(ne,z)},[_]),J=n.useCallback(()=>{O(null)},[O]);return n.useEffect(()=>{const ne=z=>{const F=z.target.tagName;F==="INPUT"||F==="TEXTAREA"||F==="SELECT"||(z.key==="Escape"&&O(null),(z.key==="Delete"||z.key==="Backspace")&&A&&A.type!=="trigger"&&H(A.id),(z.metaKey||z.ctrlKey)&&z.key==="s"&&(z.preventDefault(),ie()))};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[A,H,ie,O]),s.jsxs("div",{className:"flex h-full flex-col","data-testid":"flow-builder",children:[s.jsx(QU,{name:Y,onNameChange:$,description:k,onDescriptionChange:Q,onSave:ie,onRun:(e==null?void 0:e.trigger_type)==="manual"?re:void 0,saving:I,isNew:l}),s.jsx($U,{value:x,children:s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx(XU,{nodes:E,edges:j,selectedNodeId:S,onNodeClick:N,onPaneClick:C,onConnect:R,onNodeDrag:D,onInsertStep:L}),!l&&s.jsx(pP,{runs:i,selectedRun:h,onSelectRun:f,overlayEnabled:u,onToggleOverlay:d})]}),s.jsx(fP,{selectedNode:A,onClose:J,onUpdateNodeData:V,onDeleteStep:H,nodes:E,automationId:e==null?void 0:e.id})]})})]})}function tA(){const{id:e}=bl(),[a,l]=n.useState(null),[i,c]=n.useState(!!e);return n.useEffect(()=>{e&&me(`/api/automations/${e}`).then(u=>l(u.data)).catch(()=>{}).finally(()=>c(!1))},[e]),i?s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx("div",{className:"text-sm text-neutral-500",children:"Loading..."})}):s.jsx("div",{className:"h-full",children:s.jsx(xP,{automation:e?a:void 0})})}function on({icon:e,title:a,description:l,capabilities:i,action:c,variant:u="full"}){if(u==="compact")return s.jsxs("div",{className:"border border-white/[0.06] bg-white/[0.02] rounded-lg p-4 flex items-center gap-4",children:[s.jsx("div",{className:"shrink-0 w-10 h-10 rounded-lg bg-white/[0.04] flex items-center justify-center",children:s.jsx(e,{size:20,className:"text-neutral-400"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-neutral-300",children:a}),s.jsx("div",{className:"flex gap-2 mt-1.5 flex-wrap",children:i.map(h=>s.jsx("span",{className:"text-[10px] bg-white/[0.04] border border-white/[0.06] px-2 py-0.5 rounded-full text-neutral-500",children:h.label},h.label))})]}),c&&s.jsxs("button",{onClick:c.onClick,className:"text-xs text-neutral-400 hover:text-white transition-colors shrink-0",children:[c.label," →"]})]});const d=i.length<=2?"grid-cols-2":i.length===3?"grid-cols-3":"grid-cols-2 md:grid-cols-4";return s.jsxs(Re.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3},className:"border border-white/[0.06] bg-white/[0.02] rounded-lg py-12 px-6",children:[s.jsxs("div",{className:"flex flex-col items-center text-center max-w-lg mx-auto",children:[s.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/[0.04] flex items-center justify-center mb-4",children:s.jsx(e,{size:28,className:"text-neutral-400"})}),s.jsx("h3",{className:"text-sm font-medium text-neutral-300",children:a}),l&&s.jsx("p",{className:"text-xs text-neutral-500 mt-1.5 max-w-sm",children:l})]}),s.jsx("div",{className:`grid ${d} gap-3 mt-8 max-w-2xl mx-auto`,children:i.map((h,f)=>s.jsxs(Re.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.05*f},className:"border border-white/[0.06] bg-white/[0.02] rounded-lg p-3",children:[s.jsx(h.icon,{size:16,className:"text-neutral-500 mb-2"}),s.jsx("p",{className:"text-xs font-medium text-neutral-300",children:h.label}),h.description&&s.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:h.description})]},h.label))}),c&&s.jsx("div",{className:"flex justify-center mt-6",children:s.jsx("button",{onClick:c.onClick,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:c.label})})]})}function Ef(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}const vP=[{id:"overview",label:"Overview"},{id:"outbound",label:"Outbound"},{id:"activity",label:"Activity"}];function bP(){const[e,a]=n.useState("overview"),[l,i]=n.useState(""),[c,u]=n.useState(!1),[d,h]=n.useState(null),[f,p]=n.useState(null),[g,x]=n.useState(null),[b,w]=n.useState(!1),{data:M,loading:E,refetch:j}=we("/api/a2a/connections"),A=n.useMemo(()=>{if(!M)return[];if(!l.trim())return M;const _=l.toLowerCase();return M.filter(H=>H.name.toLowerCase().includes(_)||H.endpoint_url.toLowerCase().includes(_))},[M,l]),S=n.useMemo(()=>M?{total:M.length,active:M.filter(_=>_.status==="active").length,error:M.filter(_=>_.status==="error").length}:{total:0,active:0,error:0},[M]),N=async _=>{h(_);try{await me(`/api/a2a/connections/${_}/test`,{method:"POST"}),de("success","Connection is healthy"),j()}catch{de("error","Connection test failed"),j()}finally{h(null)}},C=async()=>{if(g){w(!0);try{await me(`/api/a2a/connections/${g.id}`,{method:"DELETE"}),de("success","Connection deleted"),j()}catch{de("error","Couldn't delete connection")}finally{w(!1),x(null)}}},V=!E&&(!M||M.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Connections",subtitle:"Agent-to-Agent protocol connections",action:s.jsxs("button",{onClick:()=>{u(!c),a("outbound")},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," New connection"]})}),s.jsx("div",{className:"mb-6",children:s.jsx(Hl,{tabs:vP,activeTab:e,onTabChange:a,layoutId:"connections-tab"})}),e==="overview"&&s.jsx(yP,{stats:S,connections:M||[],loading:E,isEmpty:V,onAddConnection:()=>{u(!0),a("outbound")}}),e==="outbound"&&s.jsx(wP,{connections:A,loading:E,search:l,onSearchChange:i,testing:d,onTest:N,onView:p,onDelete:x,showForm:c,onToggleForm:()=>u(!c),onFormSuccess:()=>{j(),u(!1)}}),e==="activity"&&s.jsx(AP,{connections:M||[],loading:E}),f&&s.jsx(EP,{connection:f,onClose:()=>p(null),onTest:()=>N(f.id),testing:d===f.id}),s.jsx(h0,{open:!!g,onClose:()=>x(null),onConfirm:C,title:"Delete connection",message:`Delete "${g==null?void 0:g.name}"? This can't be undone.`,confirmLabel:"Delete",loading:b})]})}function yP({stats:e,connections:a,loading:l,isEmpty:i,onAddConnection:c}){return l?s.jsx(We,{count:4}):i?s.jsx(on,{icon:Ir,title:"No connections yet",description:"Connect to external A2A agents to delegate tasks and share capabilities.",capabilities:[{icon:Ym,label:"Outbound calls",description:"Delegate tasks to remote agents"},{icon:Qr,label:"Inbound requests",description:"Receive tasks from other workspaces"},{icon:Kh,label:"Bidirectional",description:"Full two-way communication"},{icon:zr,label:"Health monitoring",description:"Track connection status"}],action:{label:"Add your first connection",onClick:c}}):s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsx(_t,{label:"Connections",value:e.total}),s.jsx(_t,{label:"Active",value:e.active,color:"text-success"}),s.jsx(_t,{label:"Errors",value:e.error,color:e.error>0?"text-critical":void 0})]}),s.jsx("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-6",children:s.jsxs("div",{className:"flex items-center justify-center gap-8",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Outbound"}),s.jsxs("div",{className:"space-y-1.5",children:[a.slice(0,3).map(u=>s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${u.status==="active"?"bg-success":"bg-warning"}`}),s.jsx("span",{className:"text-neutral-300 truncate max-w-[120px]",children:u.name})]},u.id)),a.length>3&&s.jsxs("p",{className:"text-[10px] text-neutral-500",children:["+",a.length-3," more"]})]})]}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx(Kh,{size:20,className:"text-neutral-500 mb-1"}),s.jsx("div",{className:"w-12 h-12 rounded-full border border-white/10 bg-white/[0.04] flex items-center justify-center",children:s.jsx(Ir,{size:20,className:"text-white"})}),s.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Your workspace"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-[10px] uppercase tracking-wider text-neutral-500 mb-2",children:"Inbound"}),s.jsx("p",{className:"text-xs text-neutral-500",children:"API keys not yet configured"})]})]})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Recent connections"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:a.slice(0,5).map(u=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[s.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${u.status==="active"?"bg-success":u.status==="error"?"bg-critical":"bg-warning"}`}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:u.name}),s.jsx("p",{className:"text-xs text-neutral-500 truncate",children:u.endpoint_url})]})]}),s.jsx(it,{status:u.status})]},u.id))})]})]})}function wP({connections:e,loading:a,search:l,onSearchChange:i,testing:c,onTest:u,onView:d,onDelete:h,showForm:f,onToggleForm:p,onFormSuccess:g}){return s.jsxs("div",{children:[f&&s.jsx("div",{className:"mb-4",children:s.jsx(jP,{onClose:p,onSuccess:g})}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(sn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:l,onChange:x=>i(x.target.value),placeholder:"Search connections...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),a?s.jsx(We,{count:4}):e.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(x=>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:()=>d(x),children:[s.jsx("p",{className:"text-sm font-medium truncate hover:text-white transition-colors",children:x.name}),s.jsxs("p",{className:"text-xs text-neutral-400 truncate",children:[s.jsx("span",{className:"text-white",children:x.endpoint_url}),s.jsxs("span",{className:"ml-2",children:["· ",x.trust_level.replace(/_/g," ")]}),x.last_health_check_at&&s.jsxs("span",{className:"ml-2",children:["· checked ",Ef(x.last_health_check_at)]})]}),x.skills&&x.skills.length>0&&s.jsxs("div",{className:"flex gap-1 mt-1",children:[x.skills.slice(0,3).map(b=>s.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:b},b)),x.skills.length>3&&s.jsxs("span",{className:"text-[10px] text-neutral-400",children:["+",x.skills.length-3]})]})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx(it,{status:x.status}),s.jsx("button",{onClick:()=>d(x),className:"text-neutral-400 hover:text-white transition-colors",title:"Details",children:s.jsx(i0,{size:14})}),s.jsx("button",{onClick:()=>u(x.id),disabled:c===x.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",title:"Test connection",children:s.jsx(Nl,{size:14,className:c===x.id?"animate-spin":""})}),s.jsx("button",{onClick:()=>h(x),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:s.jsx(Gt,{size:14})})]})]},x.id))}):s.jsx(Ct,{icon:s.jsx(Ir,{size:32}),title:l?"No matches":"No outbound connections",description:l?`Nothing matching "${l}".`:"Add a connection to start delegating tasks."})]})}function AP({connections:e,loading:a}){if(a)return s.jsx(We,{count:4});const l=e.filter(i=>i.last_health_check_at).sort((i,c)=>new Date(c.last_health_check_at).getTime()-new Date(i.last_health_check_at).getTime());return l.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:l.map(i=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:i.name}),s.jsxs("p",{className:"text-xs text-neutral-400",children:["Health check · ",i.last_health_status||"unknown",s.jsxs("span",{className:"ml-2",children:["· ",Ef(i.last_health_check_at)]})]})]}),s.jsx(it,{status:i.last_health_status==="healthy"?"active":"error"})]},i.id))}):s.jsx(Ct,{icon:s.jsx(zr,{size:32}),title:"No activity yet",description:"Health checks and task delegations will appear here."})}function jP({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState("read_only"),[g,x]=n.useState("none"),[b,w]=n.useState(""),[M,E]=n.useState(!1),[j,A]=n.useState(!1),S=async()=>{if(c.trim()){A(!0);try{const C=await fetch(c.trim());if(C.ok){const V=await C.json();V.name&&!l&&i(V.name),V.url&&!d&&h(V.url),de("success","Agent card loaded")}}catch{de("error","Couldn't fetch agent card")}finally{A(!1)}}},N=async C=>{if(C.preventDefault(),!(!l.trim()||!c.trim()||!d.trim())){E(!0);try{await me("/api/a2a/connections",{method:"POST",body:JSON.stringify({name:l.trim(),agent_card_url:c.trim(),endpoint_url:d.trim(),trust_level:f,auth_type:g,...g!=="none"&&b.trim()?{credential:b.trim()}:{}})}),de("success","Connection created"),a()}catch{de("error","Couldn't create connection")}finally{E(!1)}}};return s.jsx(Re.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"overflow-hidden",children:s.jsxs("form",{onSubmit:N,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent card URL"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{value:c,onChange:C=>u(C.target.value),placeholder:"https://agent.example.com/.well-known/agent-card.json",className:"flex-1 bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),s.jsx("button",{type:"button",onClick:S,disabled:j||!c.trim(),className:"px-3 py-2 text-xs bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 transition-colors disabled:opacity-50 shrink-0",children:j?s.jsx(mt,{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-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:C=>i(C.target.value),placeholder:"Connection name",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Trust level"}),s.jsxs("select",{value:f,onChange:C=>p(C.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",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-neutral-400 block mb-1",children:"Endpoint URL"}),s.jsx("input",{value:d,onChange:C=>h(C.target.value),placeholder:"https://agent.example.com/a2a",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Auth type"}),s.jsxs("select",{value:g,onChange:C=>x(C.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",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"})]})]}),g!=="none"&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:g==="bearer_token"?"Token":"API Key"}),s.jsx("input",{type:"password",value:b,onChange:C=>w(C.target.value),placeholder:g==="bearer_token"?"Bearer token":"API key value",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:M||!l.trim()||!c.trim()||!d.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:M?"Creating...":"Create connection"})]})]})})}function EP({connection:e,onClose:a,onTest:l,testing:i}){return s.jsx(fa,{open:!0,onClose:a,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:e.name}),e.description&&s.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:e.description})]}),s.jsx(it,{status:e.status})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[s.jsx(Hr,{label:"Endpoint",value:e.endpoint_url}),s.jsx(Hr,{label:"Agent card",value:e.agent_card_url}),s.jsx(Hr,{label:"Trust level",value:e.trust_level.replace(/_/g," ")}),s.jsx(Hr,{label:"Auth type",value:e.auth_type==="none"?"None":e.auth_type.replace(/_/g," ")}),e.last_health_check_at&&s.jsx(Hr,{label:"Last health check",value:`${Ef(e.last_health_check_at)} (${e.last_health_status||"unknown"})`}),s.jsx(Hr,{label:"Created",value:new Date(e.created_at).toLocaleDateString()})]}),e.skills&&e.skills.length>0&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"Skills"}),s.jsx("div",{className:"flex gap-1.5 flex-wrap",children:e.skills.map(c=>s.jsx("span",{className:"text-xs bg-white/5 border border-white/10 px-2 py-1 rounded",children:c},c))})]}),s.jsx("div",{className:"flex gap-2 justify-end pt-2",children:s.jsx("button",{onClick:l,disabled:i,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 disabled:opacity-50 transition-colors",children:i?s.jsxs(s.Fragment,{children:[s.jsx(mt,{size:14,className:"animate-spin"})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Nl,{size:14})," Test connection"]})})})]})})}function Hr({label:e,value:a}){return s.jsxs("div",{className:"flex justify-between gap-4",children:[s.jsx("span",{className:"text-neutral-400 shrink-0",children:e}),s.jsx("span",{className:"font-medium text-right break-all",children:a})]})}function NP(){const{data:e,loading:a,refetch:l}=we("/api/knowledge"),[i,c]=n.useState(""),[u,d]=n.useState(!1),h=e==null?void 0:e.filter(p=>p.title.toLowerCase().includes(i.toLowerCase())),f=n.useCallback(async p=>{try{await me(`/api/knowledge/${p}`,{method:"DELETE"}),de("success","Document removed"),l()}catch{de("error","Couldn't remove document")}},[l]);return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(ze,{title:"Knowledge",subtitle:"Documents and context for your agents",action:s.jsx("button",{onClick:()=>d(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add document"})}),s.jsx("div",{className:"mb-4",children:s.jsxs("div",{className:"relative",children:[s.jsx(sn,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),s.jsx("input",{type:"text",placeholder:"Search documents...",value:i,onChange:p=>c(p.target.value),className:"w-full pl-9 pr-4 py-2 text-sm bg-white/5 border border-white/10 rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})}),a?s.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((p,g)=>s.jsx("div",{className:"h-16 bg-white/5 rounded-lg animate-pulse"},g))}):h!=null&&h.length?s.jsx("div",{className:"space-y-2",children:h.map(p=>s.jsxs("div",{className:"flex items-center gap-4 px-4 py-3 border border-white/[0.08] rounded-lg hover:bg-white/[0.02] transition-colors",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center text-neutral-400",children:p.type==="url"?s.jsx(Zl,{size:16}):s.jsx(em,{size:16})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:p.title}),s.jsxs("p",{className:"text-xs text-neutral-500",children:[p.chunk_count!=null?`${p.chunk_count} chunks`:p.type," · ",new Date(p.created_at).toLocaleDateString()]})]}),s.jsx(it,{status:p.status}),s.jsx("button",{onClick:()=>f(p.id),className:"text-neutral-500 hover:text-critical transition-colors",children:s.jsx(Gt,{size:16})})]},p.id))}):s.jsx(Ct,{icon:s.jsx(NE,{size:32}),title:"Nothing here yet",description:"Upload documents or add URLs to give your agents more context.",action:s.jsx("button",{onClick:()=>d(!0),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:"Add your first document"})}),s.jsx(MP,{open:u,onClose:()=>d(!1),onSuccess:()=>{d(!1),l()}})]})}function MP({open:e,onClose:a,onSuccess:l}){const[i,c]=n.useState("file"),[u,d]=n.useState(""),[h,f]=n.useState(!1),[p,g]=n.useState(!1),x=n.useCallback(async w=>{if(w!=null&&w.length){f(!0);try{const M=new FormData;Array.from(w).forEach(j=>M.append("files",j));const E=nn();await fetch("/api/knowledge/upload",{method:"POST",headers:E?{Authorization:`Bearer ${E}`}:{},body:M}),de("success",`Uploaded ${w.length===1?"1 document":`${w.length} documents`}`),l()}catch{de("error","Couldn't upload. Try again?")}finally{f(!1)}}},[l]),b=n.useCallback(async()=>{if(u.trim()){f(!0);try{await me("/api/knowledge/url",{method:"POST",body:JSON.stringify({url:u.trim()})}),de("success","URL imported"),l()}catch{de("error","Couldn't import URL. Try again?")}finally{f(!1)}}},[u,l]);return s.jsxs(fa,{open:e,onClose:a,title:"Add document",children:[s.jsxs("div",{className:"flex gap-2 mb-4",children:[s.jsx("button",{onClick:()=>c("file"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${i==="file"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Upload file"}),s.jsx("button",{onClick:()=>c("url"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${i==="url"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Import URL"})]}),i==="file"?s.jsxs("div",{onDragOver:w=>{w.preventDefault(),g(!0)},onDragLeave:()=>g(!1),onDrop:w=>{w.preventDefault(),g(!1),x(w.dataTransfer.files)},className:`border-2 border-dashed rounded-lg p-8 text-center transition-colors ${p?"border-white/30 bg-white/5":"border-white/10"}`,children:[s.jsx(vF,{size:24,className:"mx-auto text-neutral-500 mb-2"}),s.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Drag and drop files here"}),s.jsxs("label",{className:"inline-block px-4 py-2 text-xs font-medium bg-white/10 text-white rounded cursor-pointer hover:bg-white/15 transition-colors",children:["Choose files",s.jsx("input",{type:"file",multiple:!0,className:"hidden",onChange:w=>x(w.target.files)})]})]}):s.jsxs("div",{className:"space-y-3",children:[s.jsx("input",{type:"url",placeholder:"https://...",value:u,onChange:w=>d(w.target.value),className:"w-full px-3 py-2 text-sm bg-white/5 border border-white/10 rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),s.jsx("button",{onClick:b,disabled:!u.trim()||h,className:"w-full px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors disabled:opacity-50",children:h?"Importing...":"Import"})]}),h&&i==="file"&&s.jsx("p",{className:"text-xs text-neutral-400 mt-3 text-center",children:"Uploading..."})]})}const wh={lead_gen:{label:"Lead Gen",Icon:nF},content:{label:"Content",Icon:oF},support:{label:"Support",Icon:aF},operations:{label:"Ops",Icon:hN},analytics:{label:"Analytics",Icon:DE},sales:{label:"Sales",Icon:tF}},SP={beginner:"bg-green-500/20 text-green-400",intermediate:"bg-yellow-500/20 text-yellow-400",advanced:"bg-red-500/20 text-red-400"};function ZP(){const[e,a]=n.useState([]),[l,i]=n.useState(!0),[c,u]=n.useState(""),[d,h]=n.useState(null),[f,p]=n.useState(null),[g,x]=n.useState(!1),[b,w]=n.useState({});n.useEffect(()=>{M()},[]);const M=async()=>{try{const N=await me("/api/templates");a(N.templates||[])}catch{de("error","Couldn't load templates")}finally{i(!1)}},E=n.useMemo(()=>{let N=e;if(d&&(N=N.filter(C=>C.category===d)),c){const C=c.toLowerCase();N=N.filter(V=>V.name.toLowerCase().includes(C)||V.description.toLowerCase().includes(C))}return N},[e,d,c]),j=N=>{p(N);const C={};N.variables.forEach(V=>{C[V.key]=V.default_value||""}),w(C)},A=async()=>{if(f){x(!0);try{await me(`/api/templates/${f.slug}/install`,{method:"POST",body:JSON.stringify({variableValues:b})}),de("success",`Installed "${f.name}"`),p(null),M()}catch{de("error","Couldn't install template. Try again?")}finally{x(!1)}}},S=["all",...Object.keys(wh)];return s.jsxs("div",{className:"p-6 max-w-5xl",children:[s.jsx(ze,{title:"Templates",subtitle:"Pre-built agent and automation bundles you can install in one click."}),s.jsxs("div",{className:"flex items-center gap-3 mt-4 mb-6 flex-wrap",children:[s.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:S.map(N=>{var C;return s.jsx("button",{onClick:()=>h(N==="all"?null:N),className:`px-3 py-1 text-xs rounded-full transition-colors ${N==="all"&&!d||N===d?"bg-white/10 text-white border border-white/20":"bg-white/[0.03] text-neutral-500 border border-white/[0.06] hover:text-neutral-300"}`,children:N==="all"?"All":((C=wh[N])==null?void 0:C.label)||N},N)})}),s.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[s.jsx(sn,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),s.jsx("input",{type:"text",value:c,onChange:N=>u(N.target.value),placeholder:"Search templates...",className:"w-full pl-8 pr-3 py-1.5 text-xs bg-white/[0.04] border border-white/[0.08] rounded-lg text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),l?s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(N=>s.jsx(gl,{className:"h-48 rounded-lg"},N))}):E.length===0?s.jsx(Ct,{icon:s.jsx(Wh,{size:40,weight:"thin"}),title:"No templates found",description:c||d?"Try a different filter.":"Templates will appear here."}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:E.map(N=>{const C=wh[N.category],V=(C==null?void 0:C.Icon)||Wh;return s.jsxs("button",{onClick:()=>N.installed?null:j(N),className:"text-left border border-white/[0.06] rounded-lg bg-white/[0.02] hover:bg-white/[0.04] p-4 transition-colors",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(V,{size:20,weight:"bold",className:"text-neutral-400"}),s.jsx("span",{className:"text-sm font-medium text-white truncate",children:N.name}),N.installed&&s.jsx(q0,{size:16,weight:"fill",className:"text-green-400 ml-auto flex-shrink-0"})]}),s.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2 mb-3",children:N.description}),s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-white/[0.06] text-neutral-400",children:(C==null?void 0:C.label)||N.category}),s.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full ${SP[N.difficulty]||"bg-white/[0.06] text-neutral-400"}`,children:N.difficulty}),s.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[s.jsx(tn,{size:10})," ",N.agents.length]}),s.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[s.jsx(ha,{size:10})," ",N.automations.length]})]})]},N.id)})}),f&&s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>!g&&p(null),children:s.jsxs("div",{className:"bg-[#111] border border-white/10 rounded-xl p-6 w-full max-w-md",onClick:N=>N.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{className:"text-lg font-semibold",children:["Install ",f.name]}),s.jsx("button",{onClick:()=>p(null),className:"text-neutral-500 hover:text-white",disabled:g,children:s.jsx(Ca,{size:18})})]}),s.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["This will create ",f.agents.length===1?"1 agent":`${f.agents.length} agents`," and"," ",f.automations.length===1?"1 automation":`${f.automations.length} automations`,"."]}),f.variables.length>0&&s.jsx("div",{className:"space-y-3 mb-4",children:f.variables.map(N=>s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs text-neutral-400 mb-1",children:[N.label,N.required&&s.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),N.type==="select"&&N.options?s.jsxs("select",{value:b[N.key]||"",onChange:C=>w(V=>({...V,[N.key]:C.target.value})),className:"w-full px-3 py-2 bg-white/5 border border-white/10 rounded-lg text-sm text-white focus:outline-none focus:border-white/20",children:[s.jsx("option",{value:"",children:"Select..."}),N.options.map(C=>s.jsx("option",{value:C.value,children:C.label},C.value))]}):s.jsx("input",{type:N.type==="email"?"email":N.type==="url"?"url":"text",value:b[N.key]||"",onChange:C=>w(V=>({...V,[N.key]:C.target.value})),placeholder:N.placeholder||"",className:"w-full px-3 py-2 bg-white/5 border border-white/10 rounded-lg text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),N.description&&s.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:N.description})]},N.key))}),s.jsx("button",{onClick:A,disabled:g,className:"w-full py-2.5 bg-white text-black text-sm font-medium rounded-lg hover:bg-gray-200 disabled:opacity-40 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-2",children:g?s.jsxs(s.Fragment,{children:[s.jsx(mF,{size:14,className:"animate-spin"}),"Installing..."]}):s.jsxs(s.Fragment,{children:["Install Template",s.jsx(Ym,{size:14})]})})]})})]})}const CP=[{to:"/schedules",icon:Ml,color:"blue",title:"Schedules",description:"Set up recurring tasks on a cron schedule. Agents run automatically at the times you define.",features:[{icon:xF,label:"Cron expressions"},{icon:GE,label:"Run history"}]},{to:"/automations",icon:ha,color:"amber",title:"Automations",description:"Build event-driven flows triggered by webhooks, schedules, or manual input. Chain multiple steps together.",features:[{icon:ef,label:"Webhook triggers"},{icon:fN,label:"Visual builder"}]}],HP={blue:{border:"border-blue-500/20 hover:border-blue-500/30",bg:"hover:bg-blue-500/[0.03]",iconBg:"bg-blue-500/10"},amber:{border:"border-amber-500/20 hover:border-amber-500/30",bg:"hover:bg-amber-500/[0.03]",iconBg:"bg-amber-500/10"}};function VP(){return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Workflows",subtitle:"Automate recurring tasks and event-driven flows"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:CP.map((e,a)=>{const l=HP[e.color];return s.jsx(Re.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:a*.08},children:s.jsxs(Et,{to:e.to,className:`block border ${l.border} ${l.bg} bg-white/[0.02] rounded-lg p-5 transition-all group`,children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsx("div",{className:`w-10 h-10 rounded-lg ${l.iconBg} flex items-center justify-center`,children:s.jsx(e.icon,{size:20,weight:"bold",className:"text-white"})}),s.jsx(Ym,{size:16,className:"text-neutral-500 group-hover:text-white group-hover:translate-x-0.5 transition-all"})]}),s.jsx("h3",{className:"text-sm font-semibold text-white mb-1",children:e.title}),s.jsx("p",{className:"text-xs text-neutral-400 mb-4 leading-relaxed",children:e.description}),s.jsx("div",{className:"flex gap-2",children:e.features.map(i=>s.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] bg-white/[0.04] border border-white/[0.06] px-2 py-1 rounded-full text-neutral-400",children:[s.jsx(i.icon,{size:10}),i.label]},i.label))})]})},e.to)})})]})}function _P(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function aA(e){try{return JSON.parse(e)}catch{return e}}function TP(){const[e,a]=n.useState("all"),[l,i]=n.useState(null),{data:c,loading:u,refetch:d}=we("/api/webhook-events"),h=c?e==="all"?c:e==="processed"?c.filter(p=>p.processed===1):c.filter(p=>p.processed===0):[],f=[{key:"all",label:"All"},{key:"pending",label:"Pending"},{key:"processed",label:"Processed"}];return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Webhook Events",subtitle:"Audit log of incoming webhooks",action:s.jsxs("button",{onClick:d,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-md hover:bg-white/5 hover:text-white transition-colors",children:[s.jsx(Nl,{size:14})," Refresh"]})}),s.jsxs("div",{className:"flex items-center gap-1 mb-4",children:[s.jsx(WO,{size:14,className:"text-neutral-500 mr-1"}),f.map(p=>s.jsx("button",{onClick:()=>a(p.key),className:`px-3 py-1 rounded-full text-xs transition-colors ${e===p.key?"bg-white/10 text-white border border-white/20":"text-neutral-500 hover:text-white border border-transparent"}`,children:p.label},p.key))]}),u?s.jsx(We,{count:6}):h.length?s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:h.map(p=>s.jsxs("button",{onClick:()=>i(p),className:"flex items-center justify-between w-full px-4 py-3 text-left hover:bg-white/[0.02] transition-colors",children:[s.jsxs("div",{className:"min-w-0 mr-3 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:p.event_type||"Unknown event"}),s.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${p.processed?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:p.processed?"processed":"pending"})]}),s.jsxs("p",{className:"text-xs text-neutral-400 mt-0.5",children:[p.source,s.jsx("span",{className:"mx-1.5",children:"·"}),_P(p.created_at)]})]}),s.jsx(i0,{size:14,className:"text-neutral-500 shrink-0"})]},p.id))}):s.jsx(Ct,{icon:s.jsx(ef,{size:32}),title:"No webhook events yet",description:"Events will appear here when webhooks are received by your triggers."}),l&&s.jsx(fa,{open:!0,onClose:()=>i(null),title:"Webhook event",maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h4",{className:"text-sm font-semibold",children:l.event_type}),s.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${l.processed?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:l.processed?"processed":"pending"})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Source"}),s.jsx("span",{className:"font-medium",children:l.source})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Event type"}),s.jsx("span",{className:"font-medium",children:l.event_type})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Received"}),s.jsx("span",{className:"font-medium",children:new Date(l.created_at).toLocaleString()})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Payload"}),s.jsx("pre",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg p-3 text-xs text-neutral-400 overflow-x-auto max-h-64 whitespace-pre-wrap font-mono",children:JSON.stringify(aA(l.payload),null,2)})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Headers"}),s.jsx("pre",{className:"bg-white/[0.04] border border-white/[0.08] rounded-lg p-3 text-xs text-neutral-500 overflow-x-auto max-h-32 whitespace-pre-wrap font-mono",children:JSON.stringify(aA(l.headers),null,2)})]})]})})]})}const nA={low:"bg-neutral-500/15 text-neutral-400",medium:"bg-blue-500/15 text-blue-400",high:"bg-warning/15 text-warning",critical:"bg-critical/15 text-critical"},rA=["#3b82f6","#8b5cf6","#ec4899","#f59e0b","#10b981","#06b6d4","#ef4444","#84cc16","#f97316"],LP=[{status:"active",label:"Active",defaultOpen:!0},{status:"paused",label:"Paused",defaultOpen:!1},{status:"completed",label:"Completed",defaultOpen:!1},{status:"archived",label:"Archived",defaultOpen:!1}];function RP(){const{data:e,loading:a,refetch:l}=we("/api/goals"),[i,c]=n.useState(!1),[u,d]=n.useState(null),[h,f]=n.useState(null),[p,g]=n.useState(!1),[x,b]=n.useState({active:!0,paused:!1,completed:!1,archived:!1}),w=n.useMemo(()=>{var S;if(!e)return{};const A={};for(const N of e)(A[S=N.status]??(A[S]=[])).push(N);return A},[e]),M=async()=>{if(h){g(!0);try{await me(`/api/goals/${h.id}`,{method:"DELETE"}),de("success","Goal deleted"),l()}catch{de("error","Couldn't delete goal")}finally{g(!1),f(null)}}},E=A=>{b(S=>({...S,[A]:!S[A]}))},j=!a&&(!e||e.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Goals",subtitle:"Track objectives and measure progress",action:s.jsxs("button",{onClick:()=>{d(null),c(!0)},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," New goal"]})}),a?s.jsx(We,{count:4}):j?s.jsx(on,{icon:sm,title:"No goals yet",description:"Set goals to track your progress toward business objectives.",capabilities:[{icon:sm,label:"Objectives",description:"Define what you want to achieve"},{icon:lm,label:"Progress tracking",description:"Monitor current vs target"},{icon:XO,label:"Priority levels",description:"Focus on what matters most"},{icon:FO,label:"Deadlines",description:"Stay on track with due dates"}],action:{label:"Create your first goal",onClick:()=>{d(null),c(!0)}}}):s.jsx("div",{className:"space-y-4",children:LP.map(A=>{const S=w[A.status]||[];if(S.length===0)return null;const N=x[A.status];return s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>E(A.status),className:"flex items-center gap-2 mb-2 text-sm text-neutral-400 hover:text-white transition-colors",children:[N?s.jsx(rn,{size:12}):s.jsx(Sl,{size:12}),s.jsx("span",{className:"font-medium capitalize",children:A.label}),s.jsx("span",{className:"text-xs text-neutral-600",children:S.length})]}),s.jsx(Ba,{children:N&&s.jsx(Re.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"space-y-2 overflow-hidden",children:S.map(C=>s.jsx(kP,{goal:C,onEdit:()=>{d(C),c(!0)},onDelete:()=>f(C)},C.id))})})]},A.status)})}),i&&s.jsx(DP,{goal:u,onClose:()=>{c(!1),d(null)},onSuccess:()=>{l(),c(!1),d(null)}}),s.jsx(h0,{open:!!h,onClose:()=>f(null),onConfirm:M,title:"Delete goal",message:`Delete "${h==null?void 0:h.name}"? This can't be undone.`,confirmLabel:"Delete",loading:p})]})}function kP({goal:e,onEdit:a,onDelete:l}){const i=e.target_value&&e.current_value!=null?Math.min(100,Math.round(e.current_value/e.target_value*100)):null;return s.jsxs(Re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.color&&s.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:e.color}}),s.jsx("h4",{className:"text-sm font-medium truncate",children:e.name}),s.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded capitalize ${nA[e.priority]||nA.medium}`,children:e.priority})]}),s.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:[s.jsx("button",{onClick:a,className:"text-neutral-500 hover:text-white transition-colors",children:s.jsx($1,{size:13})}),s.jsx("button",{onClick:l,className:"text-neutral-500 hover:text-critical transition-colors",children:s.jsx(Gt,{size:13})})]})]}),e.description&&s.jsx("p",{className:"text-xs text-neutral-400 mb-3",children:e.description}),i!==null&&s.jsxs("div",{className:"mb-2",children:[s.jsxs("div",{className:"flex justify-between text-[10px] text-neutral-500 mb-1",children:[s.jsx("span",{children:e.target_metric||"Progress"}),s.jsxs("span",{children:[e.current_value," / ",e.target_value," ",e.unit||"",s.jsxs("span",{className:"ml-1.5 text-neutral-400",children:[i,"%"]})]})]}),s.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden",children:s.jsx(Re.div,{initial:{width:0},animate:{width:`${i}%`},transition:{duration:.6,ease:"easeOut"},className:"h-full rounded-full",style:{backgroundColor:e.color||"#3b82f6"}})})]}),e.due_date&&s.jsxs("p",{className:"text-[10px] text-neutral-500",children:["Due ",new Date(e.due_date).toLocaleDateString()]})]})}function DP({goal:e,onClose:a,onSuccess:l}){var O,I,X;const[i,c]=n.useState((e==null?void 0:e.name)||""),[u,d]=n.useState((e==null?void 0:e.description)||""),[h,f]=n.useState((e==null?void 0:e.priority)||"medium"),[p,g]=n.useState((e==null?void 0:e.status)||"active"),[x,b]=n.useState((e==null?void 0:e.target_metric)||""),[w,M]=n.useState(((O=e==null?void 0:e.target_value)==null?void 0:O.toString())||""),[E,j]=n.useState(((I=e==null?void 0:e.current_value)==null?void 0:I.toString())||"0"),[A,S]=n.useState((e==null?void 0:e.unit)||""),[N,C]=n.useState(((X=e==null?void 0:e.due_date)==null?void 0:X.split("T")[0])||""),[V,_]=n.useState((e==null?void 0:e.color)||rA[0]),[H,R]=n.useState(!1),L=async K=>{if(K.preventDefault(),!!i.trim()){R(!0);try{const B={name:i.trim(),description:u.trim()||null,priority:h,status:p,target_metric:x.trim()||null,target_value:w?Number(w):null,current_value:E?Number(E):null,unit:A.trim()||null,due_date:N||null,color:V};e?(await me(`/api/goals/${e.id}`,{method:"PUT",body:JSON.stringify(B)}),de("success","Goal updated")):(await me("/api/goals",{method:"POST",body:JSON.stringify(B)}),de("success","Goal created")),l()}catch{de("error",e?"Couldn't update goal":"Couldn't create goal")}finally{R(!1)}}};return s.jsx(fa,{open:!0,onClose:a,title:e?"Edit goal":"New goal",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:L,className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:K=>c(K.target.value),placeholder:"Reach 100 customers",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),s.jsx("textarea",{value:u,onChange:K=>d(K.target.value),placeholder:"What does achieving this goal look like?",rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Metric"}),s.jsx("input",{value:x,onChange:K=>b(K.target.value),placeholder:"Revenue",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target"}),s.jsx("input",{type:"number",value:w,onChange:K=>M(K.target.value),placeholder:"100",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Unit"}),s.jsx("input",{value:A,onChange:K=>S(K.target.value),placeholder:"users",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),e&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Current value"}),s.jsx("input",{type:"number",value:E,onChange:K=>j(K.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Priority"}),s.jsxs("select",{value:h,onChange:K=>f(K.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[s.jsx("option",{value:"low",children:"Low"}),s.jsx("option",{value:"medium",children:"Medium"}),s.jsx("option",{value:"high",children:"High"}),s.jsx("option",{value:"critical",children:"Critical"})]})]}),e&&s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Status"}),s.jsxs("select",{value:p,onChange:K=>g(K.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[s.jsx("option",{value:"active",children:"Active"}),s.jsx("option",{value:"paused",children:"Paused"}),s.jsx("option",{value:"completed",children:"Completed"}),s.jsx("option",{value:"archived",children:"Archived"})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Due date"}),s.jsx("input",{type:"date",value:N,onChange:K=>C(K.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),s.jsx("div",{className:"flex gap-2",children:rA.map(K=>s.jsx("button",{type:"button",onClick:()=>_(K),className:`w-6 h-6 rounded-full transition-all ${V===K?"ring-2 ring-white ring-offset-2 ring-offset-black scale-110":"hover:scale-110"}`,style:{backgroundColor:K}},K))})]}),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-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:H||!i.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:H?e?"Updating...":"Creating...":e?"Update goal":"Create goal"})]})]})})}const DS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function OP(){const{data:e,loading:a,refetch:l}=we("/api/revenue"),[i,c]=n.useState(!1),[u,d]=n.useState(null),[h,f]=n.useState(null),[p,g]=n.useState(!1),x=n.useMemo(()=>{if(!e||e.length===0)return 0;const E=new Date;return e.filter(A=>A.month===E.getMonth()+1&&A.year===E.getFullYear()).reduce((A,S)=>A+S.amount_cents,0)},[e]),b=n.useMemo(()=>e?[...e].sort((E,j)=>E.year!==j.year?j.year-E.year:j.month-E.month):[],[e]),w=async()=>{if(h){g(!0);try{await me(`/api/revenue/${h.id}`,{method:"DELETE"}),de("success","Entry deleted"),l()}catch{de("error","Couldn't delete entry")}finally{g(!1),f(null)}}},M=!a&&(!e||e.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Revenue",subtitle:"Track monthly revenue and growth",action:s.jsxs("div",{className:"flex items-center gap-3",children:[x>0&&s.jsxs("div",{className:"flex items-center gap-1.5 text-success",children:[s.jsx(lm,{size:14,weight:"bold"}),s.jsxs("span",{className:"text-sm font-semibold",children:["$",(x/100).toLocaleString()," MRR"]})]}),s.jsxs("button",{onClick:()=>{d(null),c(!0)},className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," Add entry"]})]})}),s.jsx(Ba,{children:i&&s.jsx(FP,{entry:u,onClose:()=>{c(!1),d(null)},onSuccess:()=>{l(),c(!1),d(null)}})}),a?s.jsx(We,{count:4}):M?s.jsx(on,{icon:JE,title:"No revenue entries yet",description:"Start tracking monthly revenue to measure growth over time.",capabilities:[{icon:qO,label:"Monthly tracking",description:"Record revenue each month"},{icon:lm,label:"MRR calculation",description:"See current monthly recurring revenue"},{icon:gF,label:"Revenue sources",description:"Tag where revenue comes from"},{icon:lF,label:"Notes",description:"Add context to each entry"}],action:{label:"Add your first entry",onClick:()=>{d(null),c(!0)}}}):s.jsxs("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[1fr_1fr_1fr_1fr_auto] gap-4 px-4 py-2 text-[10px] uppercase tracking-wider text-neutral-500 border-b border-white/[0.08] bg-white/[0.02]",children:[s.jsx("span",{children:"Period"}),s.jsx("span",{children:"Source"}),s.jsx("span",{className:"text-right",children:"Amount"}),s.jsx("span",{children:"Notes"}),s.jsx("span",{className:"w-16"})]}),s.jsx("div",{className:"divide-y divide-white/[0.06]",children:b.map(E=>s.jsxs(Re.div,{layout:!0,initial:{opacity:0},animate:{opacity:1},className:"grid grid-cols-[1fr_1fr_1fr_1fr_auto] gap-4 px-4 py-3 items-center hover:bg-white/[0.02] transition-colors group",children:[s.jsxs("span",{className:"text-sm font-medium",children:[DS[E.month-1]," ",E.year]}),s.jsx("span",{className:"text-sm text-neutral-400 truncate",children:E.source||"No source"}),s.jsxs("span",{className:"text-sm font-semibold text-right text-success",children:["$",(E.amount_cents/100).toLocaleString(void 0,{minimumFractionDigits:2})]}),s.jsx("span",{className:"text-xs text-neutral-500 truncate",children:E.notes||""}),s.jsxs("div",{className:"flex items-center gap-1.5 w-16 justify-end opacity-0 group-hover:opacity-100 transition-opacity",children:[s.jsx("button",{onClick:()=>{d(E),c(!0)},className:"text-neutral-500 hover:text-white transition-colors",children:s.jsx($1,{size:13})}),s.jsx("button",{onClick:()=>f(E),className:"text-neutral-500 hover:text-critical transition-colors",children:s.jsx(Gt,{size:13})})]})]},E.id))})]}),s.jsx(h0,{open:!!h,onClose:()=>f(null),onConfirm:w,title:"Delete entry",message:"Delete this revenue entry? This can't be undone.",confirmLabel:"Delete",loading:p})]})}function FP({entry:e,onClose:a,onSuccess:l}){var A,S;const i=new Date,[c,u]=n.useState(e?(e.amount_cents/100).toString():""),[d,h]=n.useState((e==null?void 0:e.source)||""),[f,p]=n.useState(((A=e==null?void 0:e.month)==null?void 0:A.toString())||(i.getMonth()+1).toString()),[g,x]=n.useState(((S=e==null?void 0:e.year)==null?void 0:S.toString())||i.getFullYear().toString()),[b,w]=n.useState((e==null?void 0:e.notes)||""),[M,E]=n.useState(!1),j=async N=>{if(N.preventDefault(),!!c){E(!0);try{const C={amount_cents:Math.round(Number(c)*100),month:Number(f),year:Number(g),source:d.trim()||null,notes:b.trim()||null};e?(await me(`/api/revenue/${e.id}`,{method:"PUT",body:JSON.stringify(C)}),de("success","Entry updated")):(await me("/api/revenue",{method:"POST",body:JSON.stringify(C)}),de("success","Entry added")),l()}catch{de("error",e?"Couldn't update entry":"Couldn't add entry")}finally{E(!1)}}};return s.jsx(Re.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-4 overflow-hidden",children:s.jsxs("form",{onSubmit:j,className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"text-sm font-medium",children:e?"Edit entry":"New entry"}),s.jsx("button",{type:"button",onClick:a,className:"text-neutral-500 hover:text-white transition-colors",children:s.jsx(Ca,{size:14})})]}),s.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Amount ($)"}),s.jsx("input",{type:"number",step:"0.01",value:c,onChange:N=>u(N.target.value),placeholder:"500.00",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),s.jsx("input",{value:d,onChange:N=>h(N.target.value),placeholder:"Subscription",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Month"}),s.jsx("select",{value:f,onChange:N=>p(N.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:DS.map((N,C)=>s.jsx("option",{value:C+1,children:N},C))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Year"}),s.jsx("input",{type:"number",value:g,onChange:N=>x(N.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),s.jsx("textarea",{value:b,onChange:N=>w(N.target.value),placeholder:"Optional notes",rows:2,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 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-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:M||!c,className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:M?"Saving...":e?"Update":"Add entry"})]})]})})}function zP(){const{data:e,loading:a,refetch:l}=we("/api/whatsapp/connections"),[i,c]=n.useState(!1),[u,d]=n.useState(!1),[h,f]=n.useState(""),[p,g]=n.useState(!1),[x,b]=n.useState(!1),w=async()=>{c(!0);try{await me("/api/whatsapp/connect",{method:"POST"}),de("success","Connecting to WhatsApp. Check for QR code."),l()}catch{de("error","Couldn't start WhatsApp connection")}finally{c(!1)}},M=async()=>{d(!0);try{await me("/api/whatsapp/disconnect",{method:"POST"}),de("success","WhatsApp disconnected"),l()}catch{de("error","Couldn't disconnect WhatsApp")}finally{d(!1)}},E=async()=>{if(h.trim()){g(!0);try{await me("/api/whatsapp/chats",{method:"POST",body:JSON.stringify({chatId:h.trim()})}),de("success","Chat added to allowed list"),f(""),b(!1),l()}catch{de("error","Couldn't add chat")}finally{g(!1)}}},j=!a&&(!e||e.length===0),A=e==null?void 0:e.find(S=>S.status==="connected"||S.status==="active");return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Messaging",subtitle:"WhatsApp and messaging channel connections",action:A?s.jsxs("button",{onClick:M,disabled:u,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-md hover:bg-critical/20 disabled:opacity-50 transition-colors",children:[u?s.jsx(mt,{size:14,className:"animate-spin"}):s.jsx(t7,{size:14}),"Disconnect"]}):s.jsxs("button",{onClick:w,disabled:i,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[i?s.jsx(mt,{size:14,className:"animate-spin"}):s.jsx(a7,{size:14}),"Connect WhatsApp"]})}),a?s.jsx(We,{count:3}):j?s.jsx(on,{icon:b1,title:"No messaging channels connected",description:"Connect WhatsApp to let your agents communicate through messaging apps.",capabilities:[{icon:a7,label:"QR pairing",description:"Scan to connect"},{icon:b1,label:"Chat filtering",description:"Control which chats agents can access"},{icon:t7,label:"Easy management",description:"Connect and disconnect anytime"}],action:{label:"Connect WhatsApp",onClick:w}}):s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(S=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500/10 flex items-center justify-center",children:s.jsx(b1,{size:20,className:"text-green-400"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:S.phone_number||"WhatsApp"}),s.jsx("p",{className:"text-xs text-neutral-500",children:S.last_seen?`Last seen ${new Date(S.last_seen).toLocaleString()}`:"No activity yet"})]})]}),s.jsx(it,{status:S.status==="connected"?"active":S.status})]},S.id))}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Allowed chats"}),s.jsxs("button",{onClick:()=>b(!x),className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[s.jsx(Nt,{size:12})," Add chat"]})]}),s.jsx(Ba,{children:x&&s.jsx(Re.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-3 overflow-hidden",children:s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{value:h,onChange:S=>f(S.target.value),placeholder:"Chat ID (e.g. 1234567890@c.us)",className:"flex-1 bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"}),s.jsx("button",{onClick:E,disabled:p||!h.trim(),className:"px-3 py-2 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:p?"Adding...":"Add"}),s.jsx("button",{onClick:()=>{b(!1),f("")},className:"text-neutral-500 hover:text-white transition-colors px-2",children:s.jsx(Ca,{size:14})})]})})}),s.jsx("p",{className:"text-xs text-neutral-500",children:"Agents will only respond to messages from allowed chats. If none are added, all chats are accessible."})]})]})]})}function sA(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function qP(){const{data:e,loading:a,refetch:l}=we("/api/peers"),[i,c]=n.useState(""),[u,d]=n.useState(!1),[h,f]=n.useState(null),[p,g]=n.useState(null),[x,b]=n.useState(null),[w,M]=n.useState(!1),[E,j]=n.useState([]),[A,S]=n.useState(!1),N=n.useMemo(()=>{if(!e)return[];if(!i.trim())return e;const L=i.toLowerCase();return e.filter(O=>O.name.toLowerCase().includes(L)||O.base_url.toLowerCase().includes(L))},[e,i]),C=n.useMemo(()=>e?{total:e.length,online:e.filter(L=>L.status==="active"||L.status==="online").length}:{total:0,online:0},[e]),V=async L=>{f(L);try{await me(`/api/peers/${L}/test`,{method:"POST"}),de("success","Peer is reachable"),l()}catch{de("error","Peer unreachable"),l()}finally{f(null)}},_=async L=>{g(L),S(!0);try{const O=await me(`/api/peers/${L.id}/agents`);j(O.data||[])}catch{j([])}finally{S(!1)}},H=async()=>{if(x){M(!0);try{await me(`/api/peers/${x.id}`,{method:"DELETE"}),de("success","Peer removed"),l()}catch{de("error","Couldn't remove peer")}finally{M(!1),b(null)}}},R=!a&&(!e||e.length===0);return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Peers",subtitle:"Workspace-to-workspace connections",action:s.jsxs("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," Add peer"]})}),a?s.jsx(We,{count:3}):R?s.jsx(on,{icon:rm,title:"No peer connections",description:"Connect to other ohwow workspaces to delegate tasks across devices.",capabilities:[{icon:rm,label:"Task delegation",description:"Send tasks to remote agents"},{icon:wF,label:"Agent discovery",description:"Browse remote agent capabilities"},{icon:jF,label:"Health checks",description:"Monitor peer connectivity"},{icon:Kh,label:"Bidirectional",description:"Two-way communication"}],action:{label:"Add your first peer",onClick:()=>d(!0)}}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[s.jsx(_t,{label:"Total peers",value:C.total}),s.jsx(_t,{label:"Online",value:C.online,color:"text-success"})]}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(sn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:i,onChange:L=>c(L.target.value),placeholder:"Search peers...",className:"w-full bg-white/5 border border-white/10 rounded-lg pl-8 pr-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:N.map(L=>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:()=>_(L),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`w-2 h-2 rounded-full ${L.status==="active"||L.status==="online"?"bg-success":"bg-neutral-500"}`}),s.jsx("p",{className:"text-sm font-medium truncate",children:L.name})]}),s.jsxs("p",{className:"text-xs text-neutral-400 ml-4",children:[L.base_url,L.last_seen&&s.jsxs("span",{className:"ml-2",children:["· seen ",sA(L.last_seen)]})]})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx(it,{status:L.status}),s.jsx("button",{onClick:()=>_(L),className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx(i0,{size:14})}),s.jsx("button",{onClick:()=>V(L.id),disabled:h===L.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",children:s.jsx(Nl,{size:14,className:h===L.id?"animate-spin":""})}),s.jsx("button",{onClick:()=>b(L),className:"text-neutral-400 hover:text-critical transition-colors",children:s.jsx(Gt,{size:14})})]})]},L.id))})]}),u&&s.jsx($P,{onClose:()=>d(!1),onSuccess:()=>{l(),d(!1)}}),p&&s.jsx(fa,{open:!0,onClose:()=>{g(null),j([])},title:`Peer: ${p.name}`,maxWidth:"max-w-lg",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"URL"}),s.jsx("span",{className:"font-medium break-all",children:p.base_url})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Status"}),s.jsx(it,{status:p.status})]}),p.last_seen&&s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-neutral-400",children:"Last seen"}),s.jsx("span",{className:"font-medium",children:sA(p.last_seen)})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Remote agents"}),A?s.jsx(We,{count:2}):E.length===0?s.jsx("p",{className:"text-xs text-neutral-500",children:"No agents found or peer is unreachable."}):s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:E.map(L=>s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:L.name}),s.jsx("p",{className:"text-xs text-neutral-500",children:L.role})]}),s.jsx(it,{status:L.status})]},L.id))})]})]})}),s.jsx(h0,{open:!!x,onClose:()=>b(null),onConfirm:H,title:"Remove peer",message:`Remove "${x==null?void 0:x.name}"? You can re-add it later.`,confirmLabel:"Remove",loading:w})]})}function $P({onClose:e,onSuccess:a}){const[l,i]=n.useState(""),[c,u]=n.useState(""),[d,h]=n.useState(""),[f,p]=n.useState(!1),g=async x=>{if(x.preventDefault(),!(!l.trim()||!c.trim())){p(!0);try{await me("/api/peers",{method:"POST",body:JSON.stringify({name:l.trim(),base_url:c.trim(),token:d.trim()||void 0})}),de("success","Peer added"),a()}catch{de("error","Couldn't add peer")}finally{p(!1)}}};return s.jsx(fa,{open:!0,onClose:e,title:"Add peer",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:g,className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:l,onChange:x=>i(x.target.value),placeholder:"My other device",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Base URL"}),s.jsx("input",{value:c,onChange:x=>u(x.target.value),placeholder:"http://192.168.1.100:7700",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Token (optional)"}),s.jsx("input",{type:"password",value:d,onChange:x=>h(x.target.value),placeholder:"Peer auth token",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:f||!l.trim()||!c.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:f?"Adding...":"Add peer"})]})]})})}const BP=["","#ef4444","#f97316","#eab308","#22c55e","#3b82f6"],IP=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l;return s.jsxs("div",{className:`rounded-lg border px-3 py-2 bg-zinc-900 w-[220px] ${i?"border-blue-500 ring-1 ring-blue-500/30":"border-zinc-700"}`,children:[s.jsx(za,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:BP[u.autonomyLevel]||"#666"}}),s.jsx("span",{className:"text-sm font-medium text-zinc-200 truncate",children:u.name})]}),u.role&&s.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:u.role}),s.jsx(za,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),UP={organ_system:"#3b82f6",tissue:"#8b5cf6",microbiome:"#10b981"},PP=n.memo(function({id:a,data:l,selected:i,handleProps:c}){const u=l,d=UP[u.systemType]||"#3b82f6";return s.jsxs("div",{className:`rounded-lg border-2 px-3 py-2 bg-zinc-950 w-[240px] ${i?"ring-1 ring-blue-500/30":""}`,style:{borderColor:d},children:[s.jsx(za,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm font-semibold text-zinc-200 truncate",children:u.name}),s.jsxs("span",{className:"text-[10px] bg-zinc-800 text-zinc-400 rounded px-1.5 py-0.5 shrink-0 ml-2",children:[u.agentCount," ",u.agentCount===1?"agent":"agents"]})]}),u.telos&&s.jsx("p",{className:"text-xs text-zinc-500 mt-0.5 truncate",children:u.telos}),s.jsx(za,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),GP={coordination:"#3b82f6",delegation:"#f97316",nurture:"#22c55e",symbiotic:"#8b5cf6",immune:"#ef4444"},lA=n.memo(function({path:a,data:l,sourceX:i,sourceY:c,targetX:u,targetY:d}){const[h,f]=n.useState(!1);if((l==null?void 0:l.edgeType)==="membership")return s.jsxs("g",{children:[s.jsx("path",{d:a,fill:"none",stroke:"transparent",strokeWidth:12}),s.jsx("path",{d:a,fill:"none",stroke:"#525252",strokeWidth:1,strokeDasharray:"4 3",opacity:.5})]});const g=l,x=GP[(g==null?void 0:g.synapseType)||""]||"#666",b=1+((g==null?void 0:g.strength)||.5)*3,w=(g==null?void 0:g.origin)==="emergent",M=i!=null&&u!=null?(i+u)/2:0,E=c!=null&&d!=null?(c+d)/2:0;return s.jsxs("g",{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{pointerEvents:"all"},children:[s.jsx("path",{d:a,fill:"none",stroke:"transparent",strokeWidth:12}),s.jsx("path",{d:a,fill:"none",stroke:x,strokeWidth:b,strokeDasharray:w?"6 4":void 0,opacity:h?1:.7}),h&&(g==null?void 0:g.synapseType)&&s.jsxs("g",{transform:`translate(${M}, ${E})`,children:[s.jsx("rect",{x:-40,y:-10,width:80,height:20,rx:4,fill:"#18181b",stroke:x,strokeWidth:.5,opacity:.95}),s.jsxs("text",{x:0,y:4,textAnchor:"middle",fill:x,fontSize:10,fontFamily:"system-ui, sans-serif",children:[g.synapseType," ",Math.round((g.strength||0)*100),"%"]})]})]})});function YP(e){const a=[],l=[];for(const i of e.organSystems)a.push({id:`sys_${i.id}`,type:"organSystem",position:{x:0,y:0},data:{entityType:"organSystem",systemId:i.id,name:i.name,telos:i.telos,systemType:i.systemType,agentCount:i.agentIds.length},width:240,height:60});for(const i of e.agents)a.push({id:`agent_${i.id}`,type:"agent",position:{x:0,y:0},data:{entityType:"agent",agentId:i.id,name:i.name,role:i.role,autonomyLevel:i.autonomyLevel,organSystemId:i.organSystemId},width:220,height:70}),i.organSystemId&&l.push({id:`member_${i.id}`,source:`sys_${i.organSystemId}`,target:`agent_${i.id}`,type:"membership",data:{edgeType:"membership"}});for(const i of e.synapses)l.push({id:`syn_${i.id}`,source:`agent_${i.source}`,target:`agent_${i.target}`,type:"synapse",data:{synapseId:i.id,synapseType:i.type,strength:i.strength,origin:i.origin,activationCount:i.activationCount}});return{nodes:a,edges:l}}function KP(e,a){if(e.length===0)return e;const l=new L1.graphlib.Graph;l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:"TB",nodesep:60,ranksep:80,marginx:40,marginy:40});for(const i of e){const c=i.width||(i.type==="organSystem"?240:220),u=i.height||(i.type==="organSystem"?60:70);l.setNode(i.id,{width:c,height:u})}for(const i of a)l.setEdge(i.source,i.target);return L1.layout(l),e.map(i=>{const c=l.node(i.id);if(!c)return i;const u=i.width||220,d=i.height||70;return{...i,position:{x:c.x-u/2,y:c.y-d/2}}})}const XP={agent:IP,organSystem:PP},QP={synapse:lA,membership:lA};function JP(){const e=Ia(["agent:upserted","agent:removed","department:upserted","department:removed"]),{data:a,loading:l}=we("/api/org/topology",[e]),[i,c]=n.useState(null),{nodes:u,edges:d}=n.useMemo(()=>{if(!a)return{nodes:[],edges:[]};const p=YP(a);return{nodes:KP(p.nodes,p.edges),edges:p.edges}},[a]),h=n.useCallback((p,g)=>{c(p)},[]),f=n.useCallback(()=>{c(null)},[]);return l?s.jsx("div",{className:"flex items-center justify-center h-64 text-zinc-500",children:"Loading topology..."}):u.length===0?s.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-zinc-500",children:[s.jsx("p",{className:"text-lg mb-1",children:"No agents or departments yet"}),s.jsx("p",{className:"text-sm text-zinc-600",children:"Create agents and departments to see the org topology"})]}):s.jsx("div",{className:"h-[600px] border border-zinc-800 rounded-lg overflow-hidden",children:s.jsx(TS,{nodes:u,edges:d,selectedNodeId:i,nodeTypes:XP,edgeTypes:QP,onNodeClick:h,onPaneClick:f,fitViewOnMount:!0})})}const WP=[{id:"departments",label:"Departments"},{id:"members",label:"Members"},{id:"topology",label:"Topology"}];function eG(){const[e,a]=n.useState("departments");return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Team",subtitle:"Departments and team members"}),s.jsx("div",{className:"mb-6",children:s.jsx(Hl,{tabs:WP,activeTab:e,onTabChange:a,layoutId:"team-tab"})}),e==="departments"&&s.jsx(tG,{}),e==="members"&&s.jsx(nG,{}),e==="topology"&&s.jsx(JP,{})]})}function tG(){const{data:e,loading:a,refetch:l}=we("/api/departments"),[i,c]=n.useState(!1),[u,d]=n.useState(null),[h,f]=n.useState(null),[p,g]=n.useState(!1),x=async()=>{if(h){g(!0);try{await me(`/api/departments/${h.id}`,{method:"DELETE"}),de("success","Department deleted"),l()}catch{de("error","Couldn't delete department")}finally{g(!1),f(null)}}};return a?s.jsx(We,{count:3}):e!=null&&e.length?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex justify-end mb-4",children:s.jsxs("button",{onClick:()=>{d(null),c(!0)},className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," Add department"]})}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(b=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:b.name}),b.description&&s.jsx("p",{className:"text-xs text-neutral-400",children:b.description})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{onClick:()=>{d(b),c(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx($1,{size:13})}),s.jsx("button",{onClick:()=>f(b),className:"text-neutral-400 hover:text-critical transition-colors",children:s.jsx(Gt,{size:13})})]})]},b.id))}),i&&s.jsx(aG,{dept:u,onClose:()=>{c(!1),d(null)},onSuccess:()=>{l(),c(!1),d(null)}}),s.jsx(h0,{open:!!h,onClose:()=>f(null),onConfirm:x,title:"Delete department",message:`Delete "${h==null?void 0:h.name}"?`,confirmLabel:"Delete",loading:p})]}):s.jsx(on,{icon:Qh,title:"No departments yet",description:"Create departments to organize your agents and team members.",capabilities:[{icon:Qh,label:"Organization",description:"Group agents by function"},{icon:gM,label:"Team structure",description:"Define team hierarchy"}],action:{label:"Create department",onClick:()=>{d(null),c(!0)}}})}function aG({dept:e,onClose:a,onSuccess:l}){const[i,c]=n.useState((e==null?void 0:e.name)||""),[u,d]=n.useState((e==null?void 0:e.description)||""),[h,f]=n.useState(!1),p=async g=>{if(g.preventDefault(),!!i.trim()){f(!0);try{const x={name:i.trim(),description:u.trim()||null};e?(await me(`/api/departments/${e.id}`,{method:"PUT",body:JSON.stringify(x)}),de("success","Department updated")):(await me("/api/departments",{method:"POST",body:JSON.stringify(x)}),de("success","Department created")),l()}catch{de("error",e?"Couldn't update department":"Couldn't create department")}finally{f(!1)}}};return s.jsx(fa,{open:!0,onClose:a,title:e?"Edit department":"New department",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:p,className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:i,onChange:g=>c(g.target.value),placeholder:"Engineering",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),s.jsx("input",{value:u,onChange:g=>d(g.target.value),placeholder:"What this department does",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),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-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:h||!i.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:h?"Saving...":e?"Update":"Create"})]})]})})}function nG(){const{data:e,loading:a,refetch:l}=we("/api/team-members"),{data:i}=we("/api/departments"),[c,u]=n.useState(!1),[d,h]=n.useState(null),[f,p]=n.useState(null),[g,x]=n.useState(!1),b=M=>{var E;return!M||!i?null:((E=i.find(j=>j.id===M))==null?void 0:E.name)||null},w=async()=>{if(f){x(!0);try{await me(`/api/team-members/${f.id}`,{method:"DELETE"}),de("success","Member removed"),l()}catch{de("error","Couldn't remove member")}finally{x(!1),p(null)}}};return a?s.jsx(We,{count:3}):e!=null&&e.length?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex justify-end mb-4",children:s.jsxs("button",{onClick:()=>{h(null),u(!0)},className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white text-black rounded-md hover:bg-neutral-200 transition-colors",children:[s.jsx(Nt,{size:14})," Add member"]})}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(M=>{var E;return s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold",children:(E=M.name[0])==null?void 0:E.toUpperCase()}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:M.name}),s.jsxs("p",{className:"text-xs text-neutral-400",children:[M.role||"No role",b(M.department_id)&&s.jsxs("span",{className:"ml-2",children:["· ",b(M.department_id)]}),M.email&&s.jsxs("span",{className:"ml-2",children:["· ",M.email]})]})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{onClick:()=>{h(M),u(!0)},className:"text-neutral-400 hover:text-white transition-colors",children:s.jsx($1,{size:13})}),s.jsx("button",{onClick:()=>p(M),className:"text-neutral-400 hover:text-critical transition-colors",children:s.jsx(Gt,{size:13})})]})]},M.id)})}),c&&s.jsx(rG,{member:d,departments:i||[],onClose:()=>{u(!1),h(null)},onSuccess:()=>{l(),u(!1),h(null)}}),s.jsx(h0,{open:!!f,onClose:()=>p(null),onConfirm:w,title:"Remove member",message:`Remove "${f==null?void 0:f.name}"?`,confirmLabel:"Remove",loading:g})]}):s.jsx(on,{icon:r7,title:"No team members yet",description:"Add team members to track human collaborators alongside your AI agents.",capabilities:[{icon:r7,label:"Profiles",description:"Name, email, role"},{icon:Qh,label:"Departments",description:"Assign to departments"}],action:{label:"Add team member",onClick:()=>{h(null),u(!0)}}})}function rG({member:e,departments:a,onClose:l,onSuccess:i}){const[c,u]=n.useState((e==null?void 0:e.name)||""),[d,h]=n.useState((e==null?void 0:e.email)||""),[f,p]=n.useState((e==null?void 0:e.role)||""),[g,x]=n.useState((e==null?void 0:e.department_id)||""),[b,w]=n.useState(!1),M=async E=>{if(E.preventDefault(),!!c.trim()){w(!0);try{const j={name:c.trim(),email:d.trim()||null,role:f.trim()||null,department_id:g||null};e?(await me(`/api/team-members/${e.id}`,{method:"PUT",body:JSON.stringify(j)}),de("success","Member updated")):(await me("/api/team-members",{method:"POST",body:JSON.stringify(j)}),de("success","Member added")),i()}catch{de("error",e?"Couldn't update member":"Couldn't add member")}finally{w(!1)}}};return s.jsx(fa,{open:!0,onClose:l,title:e?"Edit member":"New member",maxWidth:"max-w-md",children:s.jsxs("form",{onSubmit:M,className:"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-neutral-400 block mb-1",children:"Name"}),s.jsx("input",{value:c,onChange:E=>u(E.target.value),placeholder:"Jane Doe",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20",autoFocus:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),s.jsx("input",{value:d,onChange:E=>h(E.target.value),placeholder:"jane@example.com",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Role"}),s.jsx("input",{value:f,onChange:E=>p(E.target.value),placeholder:"Product Manager",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Department"}),s.jsxs("select",{value:g,onChange:E=>x(E.target.value),className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white focus:outline-none focus:border-white/20",children:[s.jsx("option",{value:"",children:"None"}),a.map(E=>s.jsx("option",{value:E.id,children:E.name},E.id))]})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[s.jsx("button",{type:"button",onClick:l,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:b||!c.trim(),className:"px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:b?"Saving...":e?"Update":"Add member"})]})]})})}function sG(){const[e,a]=n.useState(null),[l,i]=n.useState(!0),[c,u]=n.useState(null),[d,h]=n.useState(null),[f,p]=n.useState(!1),[g,x]=n.useState(!1),b=async()=>{try{const E=await fetch("/browser/health");if(E.ok){const j=await E.json();a({active:!0,url:j.url,title:j.title})}else a({active:!1})}catch{a({active:!1})}finally{i(!1)}};n.useEffect(()=>{b()},[]);const w=async()=>{p(!0);try{const E=await fetch("/browser/session/screenshot");if(E.ok){const j=await E.blob(),A=URL.createObjectURL(j);u(A)}else de("error","Couldn't capture screenshot")}catch{de("error","Browser session not active")}finally{p(!1)}},M=async()=>{x(!0);try{const E=await me("/browser/session/snapshot");h(typeof E.data=="string"?E.data:JSON.stringify(E.data,null,2))}catch{de("error","Couldn't get accessibility snapshot")}finally{x(!1)}};return l?s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Browser",subtitle:"Browser automation viewer"}),s.jsxs("div",{className:"flex items-center gap-2 text-neutral-400 text-sm",children:[s.jsx(mt,{size:14,className:"animate-spin"})," Checking browser status..."]})]}):s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Browser",subtitle:"Browser automation viewer",action:s.jsxs("button",{onClick:b,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-neutral-400 border border-white/10 rounded-md hover:bg-white/5 hover:text-white transition-colors",children:[s.jsx(Nl,{size:14})," Refresh"]})}),e!=null&&e.active?s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-success animate-pulse"}),s.jsx("span",{className:"text-sm font-medium",children:"Active session"})]}),e.url&&s.jsx("p",{className:"text-xs text-neutral-400 truncate ml-5",children:e.url}),e.title&&s.jsx("p",{className:"text-xs text-neutral-500 ml-5",children:e.title})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsxs("button",{onClick:w,disabled:f,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[f?s.jsx(mt,{size:14,className:"animate-spin"}):s.jsx(Jh,{size:14}),"Capture screenshot"]}),s.jsxs("button",{onClick:M,disabled:g,className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white/5 border border-white/10 text-white rounded-md hover:bg-white/10 disabled:opacity-50 transition-colors",children:[g?s.jsx(mt,{size:14,className:"animate-spin"}):s.jsx(n7,{size:14}),"Accessibility tree"]})]}),c&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Screenshot"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg overflow-hidden",children:s.jsx("img",{src:c,alt:"Browser screenshot",className:"w-full"})})]}),d&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-2",children:"Accessibility tree"}),s.jsx("pre",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 text-xs text-neutral-400 overflow-x-auto max-h-96 whitespace-pre-wrap font-mono",children:d})]})]}):s.jsx(on,{icon:Xh,title:"No active browser session",description:"Browser sessions are started automatically when agents need web access. Launch a task that requires browsing to see it here.",capabilities:[{icon:Jh,label:"Screenshots",description:"Capture the current page"},{icon:n7,label:"Accessibility tree",description:"View page structure"},{icon:Xh,label:"Live view",description:"See what your agent sees"}]})]})}function iA(e){const a=Date.now()-new Date(e).getTime(),l=Math.floor(a/6e4);if(l<1)return"just now";if(l<60)return`${l}m ago`;const i=Math.floor(l/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}const lG=["briefing","suggestion","insight","anomaly","proactive"];function iG(){const{data:e,loading:a}=we("/api/activity"),l=n.useMemo(()=>e?e.filter(u=>lG.some(d=>u.type.toLowerCase().includes(d))):[],[e]),i=n.useMemo(()=>e?e.filter(u=>u.type==="task_completed").slice(0,10):[],[e]),c=!a&&l.length===0&&i.length===0;return s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Briefings",subtitle:"Agent insights and daily digest"}),a?s.jsx(We,{count:4}):c?s.jsx(on,{icon:tm,title:"No briefings yet",description:"Briefings appear here as your agents generate insights, detect anomalies, and complete work.",capabilities:[{icon:tm,label:"Daily digest",description:"Summary of completed work"},{icon:e7,label:"Suggestions",description:"Agent improvement ideas"},{icon:tn,label:"Proactive insights",description:"Anomalies and opportunities"}]}):s.jsxs("div",{className:"space-y-6",children:[l.length>0&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Insights"}),s.jsx("div",{className:"space-y-2",children:l.map((u,d)=>s.jsx(Re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:d*.04},className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 flex items-center justify-center shrink-0 mt-0.5",children:s.jsx(e7,{size:16,className:"text-amber-400"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("p",{className:"text-sm font-medium",children:u.title}),s.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:u.type})]}),u.description&&s.jsx("p",{className:"text-xs text-neutral-400",children:u.description}),s.jsxs("p",{className:"text-[10px] text-neutral-500 mt-1.5 flex items-center gap-1",children:[s.jsx(Br,{size:10})," ",iA(u.created_at)]})]})]})},u.id))})]}),i.length>0&&s.jsxs("div",{children:[s.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Recent completions"}),s.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:i.map(u=>s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[s.jsxs("div",{className:"min-w-0 mr-3",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:u.title}),u.description&&s.jsx("p",{className:"text-xs text-neutral-400 truncate",children:u.description})]}),s.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:iA(u.created_at)})]},u.id))})]})]})]})}function oG(){const[e,a]=n.useState(""),[l,i]=n.useState(""),[c,u]=n.useState(!1),[d,h]=n.useState(null),f=n.useRef(null),p=async()=>{if(e.trim()){u(!0),h(null);try{const b=(await me("/api/podcast/generate",{method:"POST",body:JSON.stringify({content:e.trim(),title:l.trim()||void 0})})).data.jobId;h({jobId:b,status:"queued"}),de("success","Podcast generation started"),g(b)}catch{de("error","Couldn't start podcast generation")}finally{u(!1)}}},g=x=>{f.current&&clearInterval(f.current),f.current=setInterval(async()=>{try{const b=await me(`/api/podcast/status/${x}`);h(b.data),(b.data.status==="completed"||b.data.status==="failed")&&(f.current&&clearInterval(f.current),f.current=null,b.data.status==="completed"?de("success","Podcast ready"):de("error",b.data.error||"Generation failed"))}catch{f.current&&clearInterval(f.current),f.current=null}},3e3)};return n.useEffect(()=>()=>{f.current&&clearInterval(f.current)},[]),s.jsxs("div",{className:"p-6 max-w-4xl",children:[s.jsx(ze,{title:"Podcast",subtitle:"Generate audio content from text"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4 space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title (optional)"}),s.jsx("input",{value:l,onChange:x=>i(x.target.value),placeholder:"Episode title",className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Content"}),s.jsx("textarea",{value:e,onChange:x=>a(x.target.value),placeholder:"Paste the text you want to convert into a podcast episode...",rows:8,className:"w-full bg-white/5 border border-white/10 rounded px-3 py-2 text-sm text-white placeholder:text-neutral-500 focus:outline-none focus:border-white/20 resize-none"})]}),s.jsx("div",{className:"flex justify-end",children:s.jsxs("button",{onClick:p,disabled:c||!e.trim(),className:"flex items-center gap-1.5 px-4 py-2 text-sm font-medium bg-white text-black rounded-md hover:bg-neutral-200 disabled:opacity-50 transition-colors",children:[c?s.jsx(mt,{size:14,className:"animate-spin"}):s.jsx(Sn,{size:14}),"Generate podcast"]})})]}),d&&s.jsxs("div",{className:"border border-white/[0.08] bg-white/[0.02] rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[d.status==="queued"||d.status==="processing"?s.jsx(mt,{size:18,className:"text-blue-400 animate-spin"}):d.status==="completed"?s.jsx(s7,{size:18,className:"text-success"}):s.jsx(Sn,{size:18,className:"text-critical"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium capitalize",children:d.status}),d.status==="processing"&&d.progress!=null&&s.jsxs("p",{className:"text-xs text-neutral-400",children:[Math.round(d.progress*100),"% complete"]})]})]}),d.status==="processing"&&d.progress!=null&&s.jsx("div",{className:"h-1.5 bg-white/[0.06] rounded-full overflow-hidden mb-3",children:s.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-500",style:{width:`${Math.round(d.progress*100)}%`}})}),d.status==="completed"&&d.audioUrl&&s.jsx("audio",{controls:!0,className:"w-full mt-2",src:d.audioUrl,children:"Your browser does not support audio playback."}),d.status==="failed"&&d.error&&s.jsx("p",{className:"text-xs text-critical",children:d.error})]}),!e&&!d&&s.jsx(on,{icon:Sn,title:"AI Podcast Generator",description:"Convert any text content into a natural-sounding podcast episode using local TTS models.",capabilities:[{icon:Sn,label:"Text to speech",description:"Natural-sounding voices"},{icon:s7,label:"Audio output",description:"Download or play in browser"},{icon:Wm,label:"Multiple voices",description:"Different speakers for dialogue"}],variant:"compact"})]})]})}const cG=3e3,uG=3e4,dG=500,hG=8,mG=.6,fG=.2,pG=2e3;function gG(e){const{confirmMs:a=cG,absentMs:l=uG,frameIntervalMs:i=dG}=e,[c,u]=n.useState(!1),[d,h]=n.useState("inactive"),[f,p]=n.useState(0),[g,x]=n.useState(null),b=n.useRef(null),w=n.useRef(null),M=n.useRef(null),E=n.useRef(null),j=n.useRef(null),A=n.useRef(null),S=n.useRef(null),N=n.useRef(null),C=n.useRef(null),V=n.useRef(!1),_=n.useRef(null),H=n.useRef(null),R=n.useRef(null),L=n.useRef("inactive"),O=n.useRef(0),I=n.useRef(0),X=n.useRef(e.onPresenceChange);n.useEffect(()=>{X.current=e.onPresenceChange});const K=n.useCallback(()=>{if(typeof globalThis.FaceDetector<"u")try{return S.current=new FaceDetector({fastMode:!0,maxDetectedFaces:1}),!0}catch{console.warn("[CameraPresence] FaceDetector API not available")}return!1},[]),B=n.useCallback(ie=>{const re=ie.data,D=A.current;if(!D)return A.current=new Uint8ClampedArray(re),!0;let J=0,ne=0;for(let F=0;F<re.length;F+=64){const P=re[F]*.299+re[F+1]*.587+re[F+2]*.114,oe=D[F]*.299+D[F+1]*.587+D[F+2]*.114;J+=Math.abs(P-oe),ne++}return A.current=new Uint8ClampedArray(re),J/ne>hG},[]),Y=n.useCallback(async()=>{const ie=b.current;if(!ie||ie.readyState<2)return;w.current||(w.current=document.createElement("canvas"));const re=w.current,D=re.getContext("2d",{willReadFrequently:!0});if(!D)return;re.width=160,re.height=120,D.drawImage(ie,0,0,160,120);const J=D.getImageData(0,0,160,120);if(!B(J)){const P=Date.now();L.current!=="absent"&&L.current!=="inactive"&&P-I.current>l&&(L.current="absent",h("absent"),p(0),X.current({type:"departure",confidence:0}));return}let ne=!1,z=0;if(S.current)try{const P=await createImageBitmap(re),oe=await S.current.detect(P);if(P.close(),oe.length>0){ne=!0;const fe=oe[0],ve=fe.boundingBox.width*fe.boundingBox.height/19200;z=Math.min(1,ve*10+.5)}}catch{ne=!0,z=.4}else ne=!0,z=.5;if(!ne||z<mG){const P=Date.now();L.current!=="absent"&&L.current!=="inactive"&&P-I.current>l&&(L.current="absent",h("absent"),p(0),X.current({type:"departure",confidence:0}));return}const F=Date.now();I.current=F,p(z),L.current==="absent"||L.current==="inactive"?(L.current="detected",h("detected"),O.current=F):L.current==="detected"&&F-O.current>=a&&(L.current="confirmed",h("confirmed"),X.current({type:"arrival",confidence:z}))},[B,a,l]),k=n.useCallback(async()=>{try{if(M.current)for(const re of M.current.getTracks())re.stop();const ie=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:{ideal:320},height:{ideal:240}},audio:!1});M.current=ie,b.current&&(b.current.srcObject=ie,await b.current.play());try{"wakeLock"in navigator&&(E.current=await navigator.wakeLock.request("screen"))}catch{}console.info("[CameraPresence] Camera restarted after background")}catch(ie){console.error({err:ie},"[CameraPresence] Camera restart failed")}},[]),$=n.useCallback(async()=>{try{x(null);const ie=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:{ideal:320},height:{ideal:240}},audio:!1});M.current=ie,b.current&&(b.current.srcObject=ie,await b.current.play());try{"wakeLock"in navigator&&(E.current=await navigator.wakeLock.request("screen"))}catch{console.warn("[CameraPresence] Wake lock not available")}K();let re=i;try{"getBattery"in navigator&&(await navigator.getBattery()).level<fG&&(re=pG)}catch{}L.current="absent",h("absent"),u(!0),j.current=setInterval(()=>{Y().catch(()=>{})},re);const D=()=>{document.hidden&&b.current&&document.pictureInPictureEnabled&&(document.pictureInPictureElement||b.current.requestPictureInPicture().catch(()=>{}))};document.addEventListener("visibilitychange",D),_.current=()=>document.removeEventListener("visibilitychange",D),"locks"in navigator&&navigator.locks.request("eye-camera-lock",{mode:"exclusive"},()=>new Promise(ne=>{R.current=ne})).catch(()=>{}),N.current=setInterval(()=>{if(M.current){const ne=M.current.getVideoTracks()[0];ne&&ne.readyState==="ended"&&(V.current=!0,console.warn("[CameraPresence] Camera stream died in background"))}},1e4);const J=()=>{!document.hidden&&V.current&&L.current!=="inactive"&&(V.current=!1,console.info("[CameraPresence] Restarting camera after background death"),k())};document.addEventListener("visibilitychange",J),H.current=()=>document.removeEventListener("visibilitychange",J),C.current=setInterval(()=>{(L.current==="confirmed"||L.current==="detected")&&X.current({type:"still_here",confidence:.5})},3e4)}catch(ie){const re=ie instanceof Error?ie.message:"Camera access denied";x(re),console.error({err:ie},"[CameraPresence] Start failed")}},[i,K,Y,k]),Q=n.useCallback(()=>{var ie,re;if(j.current&&(clearInterval(j.current),j.current=null),M.current){for(const D of M.current.getTracks())D.stop();M.current=null}E.current&&(E.current.release().catch(()=>{}),E.current=null),N.current&&(clearInterval(N.current),N.current=null),C.current&&(clearInterval(C.current),C.current=null),(ie=_.current)==null||ie.call(_),_.current=null,(re=H.current)==null||re.call(H),H.current=null,R.current&&(R.current(),R.current=null),V.current=!1,document.pictureInPictureElement&&document.exitPictureInPicture().catch(()=>{}),A.current=null,L.current="inactive",h("inactive"),u(!1),p(0)},[]);return n.useEffect(()=>()=>{Q()},[Q]),{isActive:c,phase:d,confidence:f,error:g,start:$,stop:Q,videoRef:b}}const xG=5e3,vG=8e3;function bG(){return""}function yG(){const[e,a]=n.useState("inactive"),[l,i]=n.useState(!0),[c,u]=n.useState(!1),d=n.useRef(0),h=n.useRef(null),f=n.useRef(0),p=2,g=n.useCallback(async V=>{const _=Date.now();if(_-d.current<xG)return;d.current=_;const H=nn();try{await fetch(`${bG()}/api/presence/event`,{method:"POST",headers:{"Content-Type":"application/json",...H?{Authorization:`Bearer ${H}`}:{}},body:JSON.stringify({eventType:V.type,confidence:V.confidence})})}catch{}},[]),x=gG({onPresenceChange:g}),b=ZM("orchestrator");n.useEffect(()=>{if(!x.isActive){a("inactive");return}b.state==="speaking"?a("speaking"):b.state==="connecting"?a("processing"):b.state==="listening"?a("listening"):a("watching")},[x.isActive,b.state]);const w=b.state,M=b.startCall,E=b.error;n.useEffect(()=>{w!=="idle"&&(f.current=0)},[w]),n.useEffect(()=>{l&&x.phase==="confirmed"&&w==="idle"&&!E&&f.current<p&&(f.current++,M().catch(()=>{}))},[x.phase,l,w,E,M]),n.useEffect(()=>{(b.transcript||b.response)&&(u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>u(!1),vG))},[b.transcript,b.response]);const j=async()=>{x.isActive?(b.endCall(),x.stop()):await x.start()},A=()=>{b.state==="idle"?b.startCall().catch(()=>{}):(b.isMuted,b.toggleMute())},S=(()=>{switch(e){case"speaking":return s.jsx(hF,{size:48,weight:"fill",className:"text-violet-400 animate-pulse"});case"processing":return s.jsx(mt,{size:48,weight:"bold",className:"text-violet-400 animate-spin"});case"listening":return s.jsx(i0,{size:48,weight:"fill",className:"text-green-400"});case"watching":return s.jsx(i0,{size:48,weight:"light",className:"text-white/40 animate-pulse"});default:return s.jsx(KO,{size:48,weight:"light",className:"text-white/20"})}})(),N=(()=>{switch(e){case"speaking":return"Speaking...";case"processing":return"Thinking...";case"listening":return"Listening...";case"watching":return x.phase==="confirmed"?"You're here. Tap mic to talk.":x.phase==="detected"?"Someone detected...":"Watching...";default:return"Tap the eye to start"}})(),C=x.error||b.error;return s.jsxs("div",{className:"fixed inset-0 bg-black flex flex-col items-center justify-center select-none overflow-hidden",children:[s.jsxs("div",{className:"relative w-36 h-36 rounded-full overflow-hidden border-2 border-white/[0.08] mb-6",children:[s.jsx("video",{ref:x.videoRef,autoPlay:!0,playsInline:!0,muted:!0,className:"w-full h-full object-cover",style:{filter:x.isActive?"brightness(0.12)":"brightness(0)"}}),s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:S}),x.phase==="detected"&&s.jsx("div",{className:"absolute inset-0 rounded-full border-2 border-violet-400/40 animate-ping"}),e==="listening"&&s.jsx("div",{className:"absolute inset-[-4px] rounded-full border-2 border-green-400/30 animate-pulse"})]}),s.jsx("p",{className:"text-sm text-neutral-400 mb-1",children:N}),C&&s.jsx("p",{className:"text-xs text-red-400/80 mb-2 px-8 text-center",children:C}),s.jsx("div",{className:`px-8 mb-6 min-h-[60px] flex items-center justify-center transition-opacity duration-500 ${c?"opacity-100":"opacity-0"}`,children:s.jsxs("div",{className:"text-center max-w-sm",children:[b.transcript&&s.jsxs("p",{className:"text-xs text-neutral-500 mb-1",children:["You: ",b.transcript]}),b.response&&s.jsx("p",{className:"text-sm text-neutral-300 leading-relaxed",children:b.response})]})}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("button",{onClick:j,className:`w-16 h-16 rounded-full flex items-center justify-center transition-all duration-300 ${x.isActive?"bg-violet-600/20 border-2 border-violet-500/40 active:bg-violet-600/40":"bg-white/5 border-2 border-white/10 active:bg-white/10"}`,children:x.isActive?s.jsx(i0,{size:28,weight:"fill",className:"text-violet-400"}):s.jsx(i0,{size:28,weight:"light",className:"text-neutral-500"})}),x.isActive&&s.jsx("button",{onClick:A,className:`w-16 h-16 rounded-full flex items-center justify-center transition-all duration-300 ${b.state!=="idle"&&!b.isMuted?"bg-green-600/20 border-2 border-green-500/40 active:bg-green-600/40":b.isMuted?"bg-red-600/10 border-2 border-red-500/20":"bg-white/5 border-2 border-white/10 active:bg-white/10"}`,children:b.state!=="idle"&&!b.isMuted?s.jsx(Sn,{size:28,weight:"fill",className:"text-green-400"}):b.isMuted?s.jsx(Jm,{size:28,weight:"fill",className:"text-red-400/60"}):s.jsx(Sn,{size:28,weight:"light",className:"text-neutral-500"})})]}),s.jsx("p",{className:"text-[10px] text-neutral-600 mt-3",children:x.isActive?b.state!=="idle"?"Speak naturally":"Tap mic to talk":"Tap eye to start"}),x.isActive&&s.jsxs("button",{onClick:()=>i(V=>!V),className:"mt-4 px-3 py-1 text-[10px] text-neutral-600 border border-white/[0.06] rounded-full hover:bg-white/[0.04] transition-colors",children:["Auto-voice: ",l?"on":"off"]}),s.jsxs("div",{className:"fixed bottom-0 inset-x-0 px-4 py-3 flex items-center justify-between",children:[s.jsxs("span",{className:"text-[10px] text-neutral-600",children:[s.jsx("span",{className:"text-green-500/60",children:"local"}),b.mode?` · ${b.mode}`:""]}),s.jsx("span",{className:"text-[10px] text-neutral-700",children:"ohwow"})]})]})}function wG({children:e}){return nn()?s.jsx(s.Fragment,{children:e}):s.jsx(wA,{to:"/login",replace:!0})}function AG(){return s.jsxs(CA,{children:[s.jsxs(hV,{children:[s.jsx(He,{path:"/login",element:s.jsx(kF,{})}),s.jsx(He,{path:"/onboarding",element:s.jsx(JF,{})}),s.jsxs(He,{path:"/*",element:s.jsx(wG,{children:s.jsx(RF,{})}),children:[s.jsx(He,{index:!0,element:s.jsx(lq,{})}),s.jsx(He,{path:"dashboard",element:s.jsx(rz,{})}),s.jsx(He,{path:"agents",element:s.jsx(oz,{})}),s.jsx(He,{path:"agents/:id",element:s.jsx(fz,{})}),s.jsx(He,{path:"tasks",element:s.jsx(xz,{})}),s.jsx(He,{path:"tasks/:id",element:s.jsx(Nz,{})}),s.jsx(He,{path:"contacts",element:s.jsx(Hq,{})}),s.jsx(He,{path:"contacts/:id",element:s.jsx(_q,{})}),s.jsx(He,{path:"projects",element:s.jsx(Lq,{})}),s.jsx(He,{path:"projects/:id",element:s.jsx(zq,{})}),s.jsx(He,{path:"templates",element:s.jsx(ZP,{})}),s.jsx(He,{path:"automations",element:s.jsx(Bq,{})}),s.jsx(He,{path:"automations/new",element:s.jsx(tA,{})}),s.jsx(He,{path:"automations/:id/edit",element:s.jsx(tA,{})}),s.jsx(He,{path:"connections",element:s.jsx(bP,{})}),s.jsx(He,{path:"approvals",element:s.jsx(Sz,{})}),s.jsx(He,{path:"activity",element:s.jsx(_z,{})}),s.jsx(He,{path:"schedules",element:s.jsx(zz,{})}),s.jsx(He,{path:"knowledge",element:s.jsx(NP,{})}),s.jsx(He,{path:"messages",element:s.jsx(uq,{})}),s.jsx(He,{path:"workflows",element:s.jsx(VP,{})}),s.jsx(He,{path:"webhook-events",element:s.jsx(TP,{})}),s.jsx(He,{path:"goals",element:s.jsx(RP,{})}),s.jsx(He,{path:"revenue",element:s.jsx(OP,{})}),s.jsx(He,{path:"messaging",element:s.jsx(zP,{})}),s.jsx(He,{path:"peers",element:s.jsx(qP,{})}),s.jsx(He,{path:"team",element:s.jsx(eG,{})}),s.jsx(He,{path:"browser",element:s.jsx(sG,{})}),s.jsx(He,{path:"briefings",element:s.jsx(iG,{})}),s.jsx(He,{path:"podcast",element:s.jsx(oG,{})}),s.jsx(He,{path:"eye",element:s.jsx(yG,{})}),s.jsx(He,{path:"chat",element:s.jsx(wA,{to:"/",replace:!0})}),s.jsx(He,{path:"settings",element:s.jsx(Zq,{})})]})]}),s.jsx(MF,{})]})}hH.createRoot(document.getElementById("root")).render(s.jsx(n.StrictMode,{children:s.jsx(kV,{basename:"/ui",children:s.jsx(AG,{})})}));
|