ohwow 0.3.0 → 0.4.4

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.
@@ -1,100 +0,0 @@
1
- var T_=Object.defineProperty;var H_=(e,a,r)=>a in e?T_(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r;var ua=(e,a,r)=>H_(e,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function r(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 s(c){if(c.ep)return;c.ep=!0;const u=r(c);fetch(c.href,u)}})();var Fl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lu={exports:{}},O0={};/**
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 G5;function V_(){if(G5)return O0;G5=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,c,u){var f=null;if(u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+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:s,key:f,ref:c!==void 0?c:null,props:u}}return O0.Fragment=a,O0.jsx=r,O0.jsxs=r,O0}var Y5;function L_(){return Y5||(Y5=1,lu.exports=V_()),lu.exports}var o=L_(),ou={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 K5;function R_(){if(K5)return Ee;K5=1;var e=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function w(q){return q===null||typeof q!="object"?null:(q=b&&q[b]||q["@@iterator"],typeof q=="function"?q:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function E(q,W,re){this.props=q,this.context=W,this.refs=A,this.updater=re||N}E.prototype.isReactComponent={},E.prototype.setState=function(q,W){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,W,"setState")},E.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function M(){}M.prototype=E.prototype;function _(q,W,re){this.props=q,this.context=W,this.refs=A,this.updater=re||N}var H=_.prototype=new M;H.constructor=_,j(H,E.prototype),H.isPureReactComponent=!0;var C=Array.isArray;function Z(){}var T={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function R(q,W,re){var F=re.ref;return{$$typeof:e,type:q,key:W,ref:F!==void 0?F:null,props:re}}function k(q,W){return R(q.type,W,q.props)}function B(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function G(q){var W={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(re){return W[re]})}var Q=/\/+/g;function ee(q,W){return typeof q=="object"&&q!==null&&q.key!=null?G(""+q.key):W.toString(36)}function oe(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(Z,Z):(q.status="pending",q.then(function(W){q.status==="pending"&&(q.status="fulfilled",q.value=W)},function(W){q.status==="pending"&&(q.status="rejected",q.reason=W)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function D(q,W,re,F,z){var I=typeof q;(I==="undefined"||I==="boolean")&&(q=null);var ie=!1;if(q===null)ie=!0;else switch(I){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(q.$$typeof){case e:case a:ie=!0;break;case g:return ie=q._init,D(ie(q._payload),W,re,F,z)}}if(ie)return z=z(q),ie=F===""?"."+ee(q,0):F,C(z)?(re="",ie!=null&&(re=ie.replace(Q,"$&/")+"/"),D(z,W,re,"",function(le){return le})):z!=null&&(B(z)&&(z=k(z,re+(z.key==null||q&&q.key===z.key?"":(""+z.key).replace(Q,"$&/")+"/")+ie)),W.push(z)),1;ie=0;var fe=F===""?".":F+":";if(C(q))for(var be=0;be<q.length;be++)F=q[be],I=fe+ee(F,be),ie+=D(F,W,re,I,z);else if(be=w(q),typeof be=="function")for(q=be.call(q),be=0;!(F=q.next()).done;)F=F.value,I=fe+ee(F,be++),ie+=D(F,W,re,I,z);else if(I==="object"){if(typeof q.then=="function")return D(oe(q),W,re,F,z);throw W=String(q),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return ie}function $(q,W,re){if(q==null)return q;var F=[],z=0;return D(q,F,"","",function(I){return W.call(re,I,z++)}),F}function ne(q){if(q._status===-1){var W=q._result;W=W(),W.then(function(re){(q._status===0||q._status===-1)&&(q._status=1,q._result=re)},function(re){(q._status===0||q._status===-1)&&(q._status=2,q._result=re)}),q._status===-1&&(q._status=0,q._result=W)}if(q._status===1)return q._result.default;throw q._result}var ue=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)},de={map:$,forEach:function(q,W,re){$(q,function(){W.apply(this,arguments)},re)},count:function(q){var W=0;return $(q,function(){W++}),W},toArray:function(q){return $(q,function(W){return W})||[]},only:function(q){if(!B(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return Ee.Activity=v,Ee.Children=de,Ee.Component=E,Ee.Fragment=r,Ee.Profiler=c,Ee.PureComponent=_,Ee.StrictMode=s,Ee.Suspense=m,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(q){return T.H.useMemoCache(q)}},Ee.cache=function(q){return function(){return q.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(q,W,re){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var F=j({},q.props),z=q.key;if(W!=null)for(I in W.key!==void 0&&(z=""+W.key),W)!L.call(W,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&W.ref===void 0||(F[I]=W[I]);var I=arguments.length-2;if(I===1)F.children=re;else if(1<I){for(var ie=Array(I),fe=0;fe<I;fe++)ie[fe]=arguments[fe+2];F.children=ie}return R(q.type,z,F)},Ee.createContext=function(q){return q={$$typeof:f,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:u,_context:q},q},Ee.createElement=function(q,W,re){var F,z={},I=null;if(W!=null)for(F in W.key!==void 0&&(I=""+W.key),W)L.call(W,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(z[F]=W[F]);var ie=arguments.length-2;if(ie===1)z.children=re;else if(1<ie){for(var fe=Array(ie),be=0;be<ie;be++)fe[be]=arguments[be+2];z.children=fe}if(q&&q.defaultProps)for(F in ie=q.defaultProps,ie)z[F]===void 0&&(z[F]=ie[F]);return R(q,I,z)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(q){return{$$typeof:h,render:q}},Ee.isValidElement=B,Ee.lazy=function(q){return{$$typeof:g,_payload:{_status:-1,_result:q},_init:ne}},Ee.memo=function(q,W){return{$$typeof:p,type:q,compare:W===void 0?null:W}},Ee.startTransition=function(q){var W=T.T,re={};T.T=re;try{var F=q(),z=T.S;z!==null&&z(re,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(Z,ue)}catch(I){ue(I)}finally{W!==null&&re.types!==null&&(W.types=re.types),T.T=W}},Ee.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Ee.use=function(q){return T.H.use(q)},Ee.useActionState=function(q,W,re){return T.H.useActionState(q,W,re)},Ee.useCallback=function(q,W){return T.H.useCallback(q,W)},Ee.useContext=function(q){return T.H.useContext(q)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(q,W){return T.H.useDeferredValue(q,W)},Ee.useEffect=function(q,W){return T.H.useEffect(q,W)},Ee.useEffectEvent=function(q){return T.H.useEffectEvent(q)},Ee.useId=function(){return T.H.useId()},Ee.useImperativeHandle=function(q,W,re){return T.H.useImperativeHandle(q,W,re)},Ee.useInsertionEffect=function(q,W){return T.H.useInsertionEffect(q,W)},Ee.useLayoutEffect=function(q,W){return T.H.useLayoutEffect(q,W)},Ee.useMemo=function(q,W){return T.H.useMemo(q,W)},Ee.useOptimistic=function(q,W){return T.H.useOptimistic(q,W)},Ee.useReducer=function(q,W,re){return T.H.useReducer(q,W,re)},Ee.useRef=function(q){return T.H.useRef(q)},Ee.useState=function(q){return T.H.useState(q)},Ee.useSyncExternalStore=function(q,W,re){return T.H.useSyncExternalStore(q,W,re)},Ee.useTransition=function(){return T.H.useTransition()},Ee.version="19.2.4",Ee}var X5;function Fh(){return X5||(X5=1,ou.exports=R_()),ou.exports}var i=Fh(),cu={exports:{}},q0={},uu={exports:{}},du={};/**
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 Q5;function k_(){return Q5||(Q5=1,(function(e){function a(D,$){var ne=D.length;D.push($);e:for(;0<ne;){var ue=ne-1>>>1,de=D[ue];if(0<c(de,$))D[ue]=$,D[ne]=de,ne=ue;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var $=D[0],ne=D.pop();if(ne!==$){D[0]=ne;e:for(var ue=0,de=D.length,q=de>>>1;ue<q;){var W=2*(ue+1)-1,re=D[W],F=W+1,z=D[F];if(0>c(re,ne))F<de&&0>c(z,re)?(D[ue]=z,D[F]=ne,ue=F):(D[ue]=re,D[W]=ne,ue=W);else if(F<de&&0>c(z,ne))D[ue]=z,D[F]=ne,ue=F;else break e}}return $}function c(D,$){var ne=D.sortIndex-$.sortIndex;return ne!==0?ne:D.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 f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var m=[],p=[],g=1,v=null,b=3,w=!1,N=!1,j=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function H(D){for(var $=r(p);$!==null;){if($.callback===null)s(p);else if($.startTime<=D)s(p),$.sortIndex=$.expirationTime,a(m,$);else break;$=r(p)}}function C(D){if(j=!1,H(D),!N)if(r(m)!==null)N=!0,Z||(Z=!0,G());else{var $=r(p);$!==null&&oe(C,$.startTime-D)}}var Z=!1,T=-1,L=5,R=-1;function k(){return A?!0:!(e.unstable_now()-R<L)}function B(){if(A=!1,Z){var D=e.unstable_now();R=D;var $=!0;try{e:{N=!1,j&&(j=!1,M(T),T=-1),w=!0;var ne=b;try{t:{for(H(D),v=r(m);v!==null&&!(v.expirationTime>D&&k());){var ue=v.callback;if(typeof ue=="function"){v.callback=null,b=v.priorityLevel;var de=ue(v.expirationTime<=D);if(D=e.unstable_now(),typeof de=="function"){v.callback=de,H(D),$=!0;break t}v===r(m)&&s(m),H(D)}else s(m);v=r(m)}if(v!==null)$=!0;else{var q=r(p);q!==null&&oe(C,q.startTime-D),$=!1}}break e}finally{v=null,b=ne,w=!1}$=void 0}}finally{$?G():Z=!1}}}var G;if(typeof _=="function")G=function(){_(B)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ee=Q.port2;Q.port1.onmessage=B,G=function(){ee.postMessage(null)}}else G=function(){E(B,0)};function oe(D,$){T=E(function(){D(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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(D){switch(b){case 1:case 2:case 3:var $=3;break;default:$=b}var ne=b;b=$;try{return D()}finally{b=ne}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ne=b;b=D;try{return $()}finally{b=ne}},e.unstable_scheduleCallback=function(D,$,ne){var ue=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ue+ne:ue):ne=ue,D){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=ne+de,D={id:g++,callback:$,priorityLevel:D,startTime:ne,expirationTime:de,sortIndex:-1},ne>ue?(D.sortIndex=ne,a(p,D),r(m)===null&&D===r(p)&&(j?(M(T),T=-1):j=!0,oe(C,ne-ue))):(D.sortIndex=de,a(m,D),N||w||(N=!0,Z||(Z=!0,G()))),D},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(D){var $=b;return function(){var ne=b;b=$;try{return D.apply(this,arguments)}finally{b=ne}}}})(du)),du}var J5;function D_(){return J5||(J5=1,uu.exports=k_()),uu.exports}var fu={exports:{}},St={};/**
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 W5;function O_(){if(W5)return St;W5=1;var e=Fh();function a(m){var p="https://react.dev/errors/"+m;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 #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(m,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:m,containerInfo:p,implementation:g}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,St.createPortal=function(m,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(m,p,null,g)},St.flushSync=function(m){var p=f.T,g=s.p;try{if(f.T=null,s.p=2,m)return m()}finally{f.T=p,s.p=g,s.d.f()}},St.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},St.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},St.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,v=h(g,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:w}):g==="script"&&s.d.X(m,{crossOrigin:v,integrity:b,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},St.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},St.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=h(g,p.crossOrigin);s.d.L(m,g,{crossOrigin:v,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})}},St.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},St.requestFormReset=function(m){s.d.r(m)},St.unstable_batchedUpdates=function(m,p){return m(p)},St.useFormState=function(m,p,g){return f.H.useFormState(m,p,g)},St.useFormStatus=function(){return f.H.useHostTransitionStatus()},St.version="19.2.4",St}var eg;function q_(){if(eg)return fu.exports;eg=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(),fu.exports=O_(),fu.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 tg;function z_(){if(tg)return q0;tg=1;var e=D_(),a=Fh(),r=q_();function s(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+n+" 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 n=t,l=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(l=n.return),t=n.return;while(t)}return n.tag===3?l:null}function f(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function h(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function m(t){if(u(t)!==t)throw Error(s(188))}function p(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(s(188));return n!==t?null:t}for(var l=t,d=n;;){var x=l.return;if(x===null)break;var y=x.alternate;if(y===null){if(d=x.return,d!==null){l=d;continue}break}if(x.child===y.child){for(y=x.child;y;){if(y===l)return m(x),t;if(y===d)return m(x),n;y=y.sibling}throw Error(s(188))}if(l.return!==d.return)l=x,d=y;else{for(var S=!1,V=x.child;V;){if(V===l){S=!0,l=x,d=y;break}if(V===d){S=!0,d=x,l=y;break}V=V.sibling}if(!S){for(V=y.child;V;){if(V===l){S=!0,l=y,d=x;break}if(V===d){S=!0,d=y,l=x;break}V=V.sibling}if(!S)throw Error(s(189))}}if(l.alternate!==d)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:n}function g(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=g(t),n!==null)return n;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),_=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function G(t){return t===null||typeof t!="object"?null:(t=B&&t[B]||t["@@iterator"],typeof t=="function"?t:null)}var Q=Symbol.for("react.client.reference");function ee(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Q?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case E:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case Z:return"SuspenseList";case R:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case N:return"Portal";case _:return t.displayName||"Context";case M:return(t._context.displayName||"Context")+".Consumer";case H:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case T:return n=t.displayName||null,n!==null?n:ee(t.type)||"Memo";case L:n=t._payload,t=t._init;try{return ee(t(n))}catch{}}return null}var oe=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},ue=[],de=-1;function q(t){return{current:t}}function W(t){0>de||(t.current=ue[de],ue[de]=null,de--)}function re(t,n){de++,ue[de]=t.current,t.current=n}var F=q(null),z=q(null),I=q(null),ie=q(null);function fe(t,n){switch(re(I,n),re(z,t),re(F,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?g5(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=g5(n),t=x5(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}W(F),re(F,t)}function be(){W(F),W(z),W(I)}function le(t){t.memoizedState!==null&&re(ie,t);var n=F.current,l=x5(n,t.type);n!==l&&(re(z,t),re(F,l))}function ve(t){z.current===t&&(W(F),W(z)),ie.current===t&&(W(ie),L0._currentValue=ne)}var Ae,Je;function Ge(t){if(Ae===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);Ae=n&&n[1]||"",Je=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ae+t+Je}var _e=!1;function xa(t,n){if(!t||_e)return"";_e=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(n){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(J){var X=J}Reflect.construct(t,[],se)}else{try{se.call()}catch(J){X=J}t.call(se.prototype)}}else{try{throw Error()}catch(J){X=J}(se=t())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(J){if(J&&X&&typeof J.stack=="string")return[J.stack,X.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),S=y[0],V=y[1];if(S&&V){var O=S.split(`
44
- `),K=V.split(`
45
- `);for(x=d=0;d<O.length&&!O[d].includes("DetermineComponentFrameRoot");)d++;for(;x<K.length&&!K[x].includes("DetermineComponentFrameRoot");)x++;if(d===O.length||x===K.length)for(d=O.length-1,x=K.length-1;1<=d&&0<=x&&O[d]!==K[x];)x--;for(;1<=d&&0<=x;d--,x--)if(O[d]!==K[x]){if(d!==1||x!==1)do if(d--,x--,0>x||O[d]!==K[x]){var te=`
46
- `+O[d].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=d&&0<=x);break}}}finally{_e=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ge(l):""}function Ze(t,n){switch(t.tag){case 26:case 27:case 5:return Ge(t.type);case 16:return Ge("Lazy");case 13:return t.child!==n&&n!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return xa(t.type,!1);case 11:return xa(t.type.render,!1);case 1:return xa(t.type,!0);case 31:return Ge("Activity");default:return""}}function $a(t){try{var n="",l=null;do n+=Ze(t,l),l=t,t=t.return;while(t);return n}catch(d){return`
47
- Error generating stack: `+d.message+`
48
- `+d.stack}}var Ta=Object.prototype.hasOwnProperty,Is=e.unstable_scheduleCallback,vn=e.unstable_cancelCallback,Ha=e.unstable_shouldYield,jt=e.unstable_requestPaint,pt=e.unstable_now,Rr=e.unstable_getCurrentPriorityLevel,Ai=e.unstable_ImmediatePriority,Ps=e.unstable_UserBlockingPriority,va=e.unstable_NormalPriority,Ei=e.unstable_LowPriority,$s=e.unstable_IdlePriority,G1=e.log,ji=e.unstable_setDisableYieldValue,Zt=null,at=null;function yn(t){if(typeof G1=="function"&&ji(t),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(Zt,t)}catch{}}var Pt=Math.clz32?Math.clz32:gM,mM=Math.log,pM=Math.LN2;function gM(t){return t>>>=0,t===0?32:31-(mM(t)/pM|0)|0}var Si=256,Mi=262144,Ni=4194304;function ar(t){var n=t&42;if(n!==0)return n;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 _i(t,n,l){var d=t.pendingLanes;if(d===0)return 0;var x=0,y=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var V=d&134217727;return V!==0?(d=V&~y,d!==0?x=ar(d):(S&=V,S!==0?x=ar(S):l||(l=V&~t,l!==0&&(x=ar(l))))):(V=d&~y,V!==0?x=ar(V):S!==0?x=ar(S):l||(l=d&~t,l!==0&&(x=ar(l)))),x===0?0:n!==0&&n!==x&&(n&y)===0&&(y=x&-x,l=n&-n,y>=l||y===32&&(l&4194048)!==0)?n:x}function Gs(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function xM(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Q6(){var t=Ni;return Ni<<=1,(Ni&62914560)===0&&(Ni=4194304),t}function Y1(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}function Ys(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function vM(t,n,l,d,x,y){var S=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var V=t.entanglements,O=t.expirationTimes,K=t.hiddenUpdates;for(l=S&~l;0<l;){var te=31-Pt(l),se=1<<te;V[te]=0,O[te]=-1;var X=K[te];if(X!==null)for(K[te]=null,te=0;te<X.length;te++){var J=X[te];J!==null&&(J.lane&=-536870913)}l&=~se}d!==0&&J6(t,d,0),y!==0&&x===0&&t.tag!==0&&(t.suspendedLanes|=y&~(S&~n))}function J6(t,n,l){t.pendingLanes|=n,t.suspendedLanes&=~n;var d=31-Pt(n);t.entangledLanes|=n,t.entanglements[d]=t.entanglements[d]|1073741824|l&261930}function W6(t,n){var l=t.entangledLanes|=n;for(t=t.entanglements;l;){var d=31-Pt(l),x=1<<d;x&n|t[d]&n&&(t[d]|=n),l&=~x}}function em(t,n){var l=n&-n;return l=(l&42)!==0?1:K1(l),(l&(t.suspendedLanes|n))!==0?0:l}function K1(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 X1(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function tm(){var t=$.p;return t!==0?t:(t=window.event,t===void 0?32:z5(t.type))}function am(t,n){var l=$.p;try{return $.p=t,n()}finally{$.p=l}}var bn=Math.random().toString(36).slice(2),vt="__reactFiber$"+bn,Vt="__reactProps$"+bn,kr="__reactContainer$"+bn,Q1="__reactEvents$"+bn,yM="__reactListeners$"+bn,bM="__reactHandles$"+bn,nm="__reactResources$"+bn,Ks="__reactMarker$"+bn;function J1(t){delete t[vt],delete t[Vt],delete t[Q1],delete t[yM],delete t[bM]}function Dr(t){var n=t[vt];if(n)return n;for(var l=t.parentNode;l;){if(n=l[kr]||l[vt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(t=j5(t);t!==null;){if(l=t[vt])return l;t=j5(t)}return n}t=l,l=t.parentNode}return null}function Or(t){if(t=t[vt]||t[kr]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Xs(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(s(33))}function qr(t){var n=t[nm];return n||(n=t[nm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(t){t[Ks]=!0}var rm=new Set,sm={};function nr(t,n){zr(t,n),zr(t+"Capture",n)}function zr(t,n){for(sm[t]=n,t=0;t<n.length;t++)rm.add(n[t])}var wM=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]*$"),im={},lm={};function AM(t){return Ta.call(lm,t)?!0:Ta.call(im,t)?!1:wM.test(t)?lm[t]=!0:(im[t]=!0,!1)}function Ci(t,n,l){if(AM(n))if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var d=n.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+l)}}function Ti(t,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+l)}}function Ga(t,n,l,d){if(d===null)t.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(n,l,""+d)}}function ea(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function om(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function EM(t,n,l){var d=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var x=d.get,y=d.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return x.call(this)},set:function(S){l=""+S,y.call(this,S)}}),Object.defineProperty(t,n,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function W1(t){if(!t._valueTracker){var n=om(t)?"checked":"value";t._valueTracker=EM(t,n,""+t[n])}}function cm(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var l=n.getValue(),d="";return t&&(d=om(t)?t.checked?"true":"false":t.value),t=d,t!==l?(n.setValue(t),!0):!1}function Hi(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 jM=/[\n"\\]/g;function ta(t){return t.replace(jM,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function eo(t,n,l,d,x,y,S,V){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),n!=null?S==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+ea(n)):t.value!==""+ea(n)&&(t.value=""+ea(n)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),n!=null?to(t,S,ea(n)):l!=null?to(t,S,ea(l)):d!=null&&t.removeAttribute("value"),x==null&&y!=null&&(t.defaultChecked=!!y),x!=null&&(t.checked=x&&typeof x!="function"&&typeof x!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?t.name=""+ea(V):t.removeAttribute("name")}function um(t,n,l,d,x,y,S,V){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.type=y),n!=null||l!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){W1(t);return}l=l!=null?""+ea(l):"",n=n!=null?""+ea(n):l,V||n===t.value||(t.value=n),t.defaultValue=n}d=d??x,d=typeof d!="function"&&typeof d!="symbol"&&!!d,t.checked=V?t.checked:!!d,t.defaultChecked=!!d,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),W1(t)}function to(t,n,l){n==="number"&&Hi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Fr(t,n,l,d){if(t=t.options,n){n={};for(var x=0;x<l.length;x++)n["$"+l[x]]=!0;for(l=0;l<t.length;l++)x=n.hasOwnProperty("$"+t[l].value),t[l].selected!==x&&(t[l].selected=x),x&&d&&(t[l].defaultSelected=!0)}else{for(l=""+ea(l),n=null,x=0;x<t.length;x++){if(t[x].value===l){t[x].selected=!0,d&&(t[x].defaultSelected=!0);return}n!==null||t[x].disabled||(n=t[x])}n!==null&&(n.selected=!0)}}function dm(t,n,l){if(n!=null&&(n=""+ea(n),n!==t.value&&(t.value=n),l==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=l!=null?""+ea(l):""}function fm(t,n,l,d){if(n==null){if(d!=null){if(l!=null)throw Error(s(92));if(oe(d)){if(1<d.length)throw Error(s(93));d=d[0]}l=d}l==null&&(l=""),n=l}l=ea(n),t.defaultValue=l,d=t.textContent,d===l&&d!==""&&d!==null&&(t.value=d),W1(t)}function Br(t,n){if(n){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=n;return}}t.textContent=n}var SM=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 hm(t,n,l){var d=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?d?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":d?t.setProperty(n,l):typeof l!="number"||l===0||SM.has(n)?n==="float"?t.cssFloat=l:t[n]=(""+l).trim():t[n]=l+"px"}function mm(t,n,l){if(n!=null&&typeof n!="object")throw Error(s(62));if(t=t.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||n!=null&&n.hasOwnProperty(d)||(d.indexOf("--")===0?t.setProperty(d,""):d==="float"?t.cssFloat="":t[d]="");for(var x in n)d=n[x],n.hasOwnProperty(x)&&l[x]!==d&&hm(t,x,d)}else for(var y in n)n.hasOwnProperty(y)&&hm(t,y,n[y])}function ao(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 MM=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"]]),NM=/^[\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 Zi(t){return NM.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ya(){}var no=null;function ro(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ur=null,Ir=null;function pm(t){var n=Or(t);if(n&&(t=n.stateNode)){var l=t[Vt]||null;e:switch(t=n.stateNode,n.type){case"input":if(eo(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ta(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var d=l[n];if(d!==t&&d.form===t.form){var x=d[Vt]||null;if(!x)throw Error(s(90));eo(d,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(n=0;n<l.length;n++)d=l[n],d.form===t.form&&cm(d)}break e;case"textarea":dm(t,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Fr(t,!!l.multiple,n,!1)}}}var so=!1;function gm(t,n,l){if(so)return t(n,l);so=!0;try{var d=t(n);return d}finally{if(so=!1,(Ur!==null||Ir!==null)&&(yl(),Ur&&(n=Ur,t=Ir,Ir=Ur=null,pm(n),t)))for(n=0;n<t.length;n++)pm(t[n])}}function Qs(t,n){var l=t.stateNode;if(l===null)return null;var d=l[Vt]||null;if(d===null)return null;l=d[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(t=t.type,d=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!d;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(s(231,n,typeof l));return l}var Ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=!1;if(Ka)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){io=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{io=!1}var wn=null,lo=null,Vi=null;function xm(){if(Vi)return Vi;var t,n=lo,l=n.length,d,x="value"in wn?wn.value:wn.textContent,y=x.length;for(t=0;t<l&&n[t]===x[t];t++);var S=l-t;for(d=1;d<=S&&n[l-d]===x[y-d];d++);return Vi=x.slice(t,1<d?1-d:void 0)}function Li(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Ri(){return!0}function vm(){return!1}function Lt(t){function n(l,d,x,y,S){this._reactName=l,this._targetInst=x,this.type=d,this.nativeEvent=y,this.target=S,this.currentTarget=null;for(var V in t)t.hasOwnProperty(V)&&(l=t[V],this[V]=l?l(y):y[V]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Ri:vm,this.isPropagationStopped=vm,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),n}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ki=Lt(rr),Ws=v({},rr,{view:0,detail:0}),_M=Lt(Ws),oo,co,e0,Di=v({},Ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fo,button:0,buttons:0,relatedTarget:function(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!==e0&&(e0&&t.type==="mousemove"?(oo=t.screenX-e0.screenX,co=t.screenY-e0.screenY):co=oo=0,e0=t),oo)},movementY:function(t){return"movementY"in t?t.movementY:co}}),ym=Lt(Di),CM=v({},Di,{dataTransfer:0}),TM=Lt(CM),HM=v({},Ws,{relatedTarget:0}),uo=Lt(HM),ZM=v({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),VM=Lt(ZM),LM=v({},rr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),RM=Lt(LM),kM=v({},rr,{data:0}),bm=Lt(kM),DM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},OM={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"},qM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zM(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=qM[t])?!!n[t]:!1}function fo(){return zM}var FM=v({},Ws,{key:function(t){if(t.key){var n=DM[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Li(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?OM[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fo,charCode:function(t){return t.type==="keypress"?Li(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Li(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),BM=Lt(FM),UM=v({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wm=Lt(UM),IM=v({},Ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fo}),PM=Lt(IM),$M=v({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),GM=Lt($M),YM=v({},Di,{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}),KM=Lt(YM),XM=v({},rr,{newState:0,oldState:0}),QM=Lt(XM),JM=[9,13,27,32],ho=Ka&&"CompositionEvent"in window,t0=null;Ka&&"documentMode"in document&&(t0=document.documentMode);var WM=Ka&&"TextEvent"in window&&!t0,Am=Ka&&(!ho||t0&&8<t0&&11>=t0),Em=" ",jm=!1;function Sm(t,n){switch(t){case"keyup":return JM.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pr=!1;function eN(t,n){switch(t){case"compositionend":return Mm(n);case"keypress":return n.which!==32?null:(jm=!0,Em);case"textInput":return t=n.data,t===Em&&jm?null:t;default:return null}}function tN(t,n){if(Pr)return t==="compositionend"||!ho&&Sm(t,n)?(t=xm(),Vi=lo=wn=null,Pr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Am&&n.locale!=="ko"?null:n.data;default:return null}}var aN={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 Nm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!aN[t.type]:n==="textarea"}function _m(t,n,l,d){Ur?Ir?Ir.push(d):Ir=[d]:Ur=d,n=Ml(n,"onChange"),0<n.length&&(l=new ki("onChange","change",null,l,d),t.push({event:l,listeners:n}))}var a0=null,n0=null;function nN(t){u5(t,0)}function Oi(t){var n=Xs(t);if(cm(n))return t}function Cm(t,n){if(t==="change")return n}var Tm=!1;if(Ka){var mo;if(Ka){var po="oninput"in document;if(!po){var Hm=document.createElement("div");Hm.setAttribute("oninput","return;"),po=typeof Hm.oninput=="function"}mo=po}else mo=!1;Tm=mo&&(!document.documentMode||9<document.documentMode)}function Zm(){a0&&(a0.detachEvent("onpropertychange",Vm),n0=a0=null)}function Vm(t){if(t.propertyName==="value"&&Oi(n0)){var n=[];_m(n,n0,t,ro(t)),gm(nN,n)}}function rN(t,n,l){t==="focusin"?(Zm(),a0=n,n0=l,a0.attachEvent("onpropertychange",Vm)):t==="focusout"&&Zm()}function sN(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Oi(n0)}function iN(t,n){if(t==="click")return Oi(n)}function lN(t,n){if(t==="input"||t==="change")return Oi(n)}function oN(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var $t=typeof Object.is=="function"?Object.is:oN;function r0(t,n){if($t(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var l=Object.keys(t),d=Object.keys(n);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var x=l[d];if(!Ta.call(n,x)||!$t(t[x],n[x]))return!1}return!0}function Lm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rm(t,n){var l=Lm(t);t=0;for(var d;l;){if(l.nodeType===3){if(d=t+l.textContent.length,t<=n&&d>=n)return{node:l,offset:n-t};t=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Lm(l)}}function km(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?km(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Dm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Hi(t.document);n instanceof t.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)t=n.contentWindow;else break;n=Hi(t.document)}return n}function go(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var cN=Ka&&"documentMode"in document&&11>=document.documentMode,$r=null,xo=null,s0=null,vo=!1;function Om(t,n,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;vo||$r==null||$r!==Hi(d)||(d=$r,"selectionStart"in d&&go(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),s0&&r0(s0,d)||(s0=d,d=Ml(xo,"onSelect"),0<d.length&&(n=new ki("onSelect","select",null,n,l),t.push({event:n,listeners:d}),n.target=$r)))}function sr(t,n){var l={};return l[t.toLowerCase()]=n.toLowerCase(),l["Webkit"+t]="webkit"+n,l["Moz"+t]="moz"+n,l}var Gr={animationend:sr("Animation","AnimationEnd"),animationiteration:sr("Animation","AnimationIteration"),animationstart:sr("Animation","AnimationStart"),transitionrun:sr("Transition","TransitionRun"),transitionstart:sr("Transition","TransitionStart"),transitioncancel:sr("Transition","TransitionCancel"),transitionend:sr("Transition","TransitionEnd")},yo={},qm={};Ka&&(qm=document.createElement("div").style,"AnimationEvent"in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),"TransitionEvent"in window||delete Gr.transitionend.transition);function ir(t){if(yo[t])return yo[t];if(!Gr[t])return t;var n=Gr[t],l;for(l in n)if(n.hasOwnProperty(l)&&l in qm)return yo[t]=n[l];return t}var zm=ir("animationend"),Fm=ir("animationiteration"),Bm=ir("animationstart"),uN=ir("transitionrun"),dN=ir("transitionstart"),fN=ir("transitioncancel"),Um=ir("transitionend"),Im=new Map,bo="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(" ");bo.push("scrollEnd");function ya(t,n){Im.set(t,n),nr(n,[t])}var qi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},aa=[],Yr=0,wo=0;function zi(){for(var t=Yr,n=wo=Yr=0;n<t;){var l=aa[n];aa[n++]=null;var d=aa[n];aa[n++]=null;var x=aa[n];aa[n++]=null;var y=aa[n];if(aa[n++]=null,d!==null&&x!==null){var S=d.pending;S===null?x.next=x:(x.next=S.next,S.next=x),d.pending=x}y!==0&&Pm(l,x,y)}}function Fi(t,n,l,d){aa[Yr++]=t,aa[Yr++]=n,aa[Yr++]=l,aa[Yr++]=d,wo|=d,t.lanes|=d,t=t.alternate,t!==null&&(t.lanes|=d)}function Ao(t,n,l,d){return Fi(t,n,l,d),Bi(t)}function lr(t,n){return Fi(t,null,null,n),Bi(t)}function Pm(t,n,l){t.lanes|=l;var d=t.alternate;d!==null&&(d.lanes|=l);for(var x=!1,y=t.return;y!==null;)y.childLanes|=l,d=y.alternate,d!==null&&(d.childLanes|=l),y.tag===22&&(t=y.stateNode,t===null||t._visibility&1||(x=!0)),t=y,y=y.return;return t.tag===3?(y=t.stateNode,x&&n!==null&&(x=31-Pt(l),t=y.hiddenUpdates,d=t[x],d===null?t[x]=[n]:d.push(n),n.lane=l|536870912),y):null}function Bi(t){if(50<N0)throw N0=0,Hc=null,Error(s(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Kr={};function hN(t,n,l,d){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(t,n,l,d){return new hN(t,n,l,d)}function Eo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Xa(t,n){var l=t.alternate;return l===null?(l=Gt(t.tag,n,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=n,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,n=t.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function $m(t,n){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,n=l.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function Ui(t,n,l,d,x,y){var S=0;if(d=t,typeof t=="function")Eo(t)&&(S=1);else if(typeof t=="string")S=v_(t,l,F.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case R:return t=Gt(31,l,n,x),t.elementType=R,t.lanes=y,t;case j:return or(l.children,x,y,n);case A:S=8,x|=24;break;case E:return t=Gt(12,l,n,x|2),t.elementType=E,t.lanes=y,t;case C:return t=Gt(13,l,n,x),t.elementType=C,t.lanes=y,t;case Z:return t=Gt(19,l,n,x),t.elementType=Z,t.lanes=y,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:S=10;break e;case M:S=9;break e;case H:S=11;break e;case T:S=14;break e;case L:S=16,d=null;break e}S=29,l=Error(s(130,t===null?"null":typeof t,"")),d=null}return n=Gt(S,l,n,x),n.elementType=t,n.type=d,n.lanes=y,n}function or(t,n,l,d){return t=Gt(7,t,d,n),t.lanes=l,t}function jo(t,n,l){return t=Gt(6,t,null,n),t.lanes=l,t}function Gm(t){var n=Gt(18,null,null,0);return n.stateNode=t,n}function So(t,n,l){return n=Gt(4,t.children!==null?t.children:[],t.key,n),n.lanes=l,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Ym=new WeakMap;function na(t,n){if(typeof t=="object"&&t!==null){var l=Ym.get(t);return l!==void 0?l:(n={value:t,source:n,stack:$a(n)},Ym.set(t,n),n)}return{value:t,source:n,stack:$a(n)}}var Xr=[],Qr=0,Ii=null,i0=0,ra=[],sa=0,An=null,Za=1,Va="";function Qa(t,n){Xr[Qr++]=i0,Xr[Qr++]=Ii,Ii=t,i0=n}function Km(t,n,l){ra[sa++]=Za,ra[sa++]=Va,ra[sa++]=An,An=t;var d=Za;t=Va;var x=32-Pt(d)-1;d&=~(1<<x),l+=1;var y=32-Pt(n)+x;if(30<y){var S=x-x%5;y=(d&(1<<S)-1).toString(32),d>>=S,x-=S,Za=1<<32-Pt(n)+x|l<<x|d,Va=y+t}else Za=1<<y|l<<x|d,Va=t}function Mo(t){t.return!==null&&(Qa(t,1),Km(t,1,0))}function No(t){for(;t===Ii;)Ii=Xr[--Qr],Xr[Qr]=null,i0=Xr[--Qr],Xr[Qr]=null;for(;t===An;)An=ra[--sa],ra[sa]=null,Va=ra[--sa],ra[sa]=null,Za=ra[--sa],ra[sa]=null}function Xm(t,n){ra[sa++]=Za,ra[sa++]=Va,ra[sa++]=An,Za=n.id,Va=n.overflow,An=t}var yt=null,Pe=null,He=!1,En=null,ia=!1,_o=Error(s(519));function jn(t){var n=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw l0(na(n,t)),_o}function Qm(t){var n=t.stateNode,l=t.type,d=t.memoizedProps;switch(n[vt]=t,n[Vt]=d,l){case"dialog":Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":case"embed":Ne("load",n);break;case"video":case"audio":for(l=0;l<C0.length;l++)Ne(C0[l],n);break;case"source":Ne("error",n);break;case"img":case"image":case"link":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"input":Ne("invalid",n),um(n,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Ne("invalid",n);break;case"textarea":Ne("invalid",n),fm(n,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||d.suppressHydrationWarning===!0||m5(n.textContent,l)?(d.popover!=null&&(Ne("beforetoggle",n),Ne("toggle",n)),d.onScroll!=null&&Ne("scroll",n),d.onScrollEnd!=null&&Ne("scrollend",n),d.onClick!=null&&(n.onclick=Ya),n=!0):n=!1,n||jn(t,!0)}function Jm(t){for(yt=t.return;yt;)switch(yt.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:yt=yt.return}}function Jr(t){if(t!==yt)return!1;if(!He)return Jm(t),He=!0,!1;var n=t.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||$c(t.type,t.memoizedProps)),l=!l),l&&Pe&&jn(t),Jm(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Pe=E5(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Pe=E5(t)}else n===27?(n=Pe,On(t.type)?(t=Qc,Qc=null,Pe=t):Pe=n):Pe=yt?oa(t.stateNode.nextSibling):null;return!0}function cr(){Pe=yt=null,He=!1}function Co(){var t=En;return t!==null&&(Ot===null?Ot=t:Ot.push.apply(Ot,t),En=null),t}function l0(t){En===null?En=[t]:En.push(t)}var To=q(null),ur=null,Ja=null;function Sn(t,n,l){re(To,n._currentValue),n._currentValue=l}function Wa(t){t._currentValue=To.current,W(To)}function Ho(t,n,l){for(;t!==null;){var d=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,d!==null&&(d.childLanes|=n)):d!==null&&(d.childLanes&n)!==n&&(d.childLanes|=n),t===l)break;t=t.return}}function Zo(t,n,l,d){var x=t.child;for(x!==null&&(x.return=t);x!==null;){var y=x.dependencies;if(y!==null){var S=x.child;y=y.firstContext;e:for(;y!==null;){var V=y;y=x;for(var O=0;O<n.length;O++)if(V.context===n[O]){y.lanes|=l,V=y.alternate,V!==null&&(V.lanes|=l),Ho(y.return,l,t),d||(S=null);break e}y=V.next}}else if(x.tag===18){if(S=x.return,S===null)throw Error(s(341));S.lanes|=l,y=S.alternate,y!==null&&(y.lanes|=l),Ho(S,l,t),S=null}else S=x.child;if(S!==null)S.return=x;else for(S=x;S!==null;){if(S===t){S=null;break}if(x=S.sibling,x!==null){x.return=S.return,S=x;break}S=S.return}x=S}}function Wr(t,n,l,d){t=null;for(var x=n,y=!1;x!==null;){if(!y){if((x.flags&524288)!==0)y=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var S=x.alternate;if(S===null)throw Error(s(387));if(S=S.memoizedProps,S!==null){var V=x.type;$t(x.pendingProps.value,S.value)||(t!==null?t.push(V):t=[V])}}else if(x===ie.current){if(S=x.alternate,S===null)throw Error(s(387));S.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(t!==null?t.push(L0):t=[L0])}x=x.return}t!==null&&Zo(n,t,l,d),n.flags|=262144}function Pi(t){for(t=t.firstContext;t!==null;){if(!$t(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function dr(t){ur=t,Ja=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function bt(t){return Wm(ur,t)}function $i(t,n){return ur===null&&dr(t),Wm(t,n)}function Wm(t,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},Ja===null){if(t===null)throw Error(s(308));Ja=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Ja=Ja.next=n;return l}var mN=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(l,d){t.push(d)}};this.abort=function(){n.aborted=!0,t.forEach(function(l){return l()})}},pN=e.unstable_scheduleCallback,gN=e.unstable_NormalPriority,st={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new mN,data:new Map,refCount:0}}function o0(t){t.refCount--,t.refCount===0&&pN(gN,function(){t.controller.abort()})}var c0=null,Lo=0,es=0,ts=null;function xN(t,n){if(c0===null){var l=c0=[];Lo=0,es=Dc(),ts={status:"pending",value:void 0,then:function(d){l.push(d)}}}return Lo++,n.then(ep,ep),n}function ep(){if(--Lo===0&&c0!==null){ts!==null&&(ts.status="fulfilled");var t=c0;c0=null,es=0,ts=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function vN(t,n){var l=[],d={status:"pending",value:null,reason:null,then:function(x){l.push(x)}};return t.then(function(){d.status="fulfilled",d.value=n;for(var x=0;x<l.length;x++)(0,l[x])(n)},function(x){for(d.status="rejected",d.reason=x,x=0;x<l.length;x++)(0,l[x])(void 0)}),d}var tp=D.S;D.S=function(t,n){O3=pt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&xN(t,n),tp!==null&&tp(t,n)};var fr=q(null);function Ro(){var t=fr.current;return t!==null?t:Be.pooledCache}function Gi(t,n){n===null?re(fr,fr.current):re(fr,n.pool)}function ap(){var t=Ro();return t===null?null:{parent:st._currentValue,pool:t}}var as=Error(s(460)),ko=Error(s(474)),Yi=Error(s(542)),Ki={then:function(){}};function np(t){return t=t.status,t==="fulfilled"||t==="rejected"}function rp(t,n,l){switch(l=t[l],l===void 0?t.push(n):l!==n&&(n.then(Ya,Ya),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,ip(t),t;default:if(typeof n.status=="string")n.then(Ya,Ya);else{if(t=Be,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=n,t.status="pending",t.then(function(d){if(n.status==="pending"){var x=n;x.status="fulfilled",x.value=d}},function(d){if(n.status==="pending"){var x=n;x.status="rejected",x.reason=d}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,ip(t),t}throw mr=n,as}}function hr(t){try{var n=t._init;return n(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(mr=l,as):l}}var mr=null;function sp(){if(mr===null)throw Error(s(459));var t=mr;return mr=null,t}function ip(t){if(t===as||t===Yi)throw Error(s(483))}var ns=null,u0=0;function Xi(t){var n=u0;return u0+=1,ns===null&&(ns=[]),rp(ns,t,n)}function d0(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Qi(t,n){throw n.$$typeof===b?Error(s(525)):(t=Object.prototype.toString.call(n),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function lp(t){function n(P,U){if(t){var Y=P.deletions;Y===null?(P.deletions=[U],P.flags|=16):Y.push(U)}}function l(P,U){if(!t)return null;for(;U!==null;)n(P,U),U=U.sibling;return null}function d(P){for(var U=new Map;P!==null;)P.key!==null?U.set(P.key,P):U.set(P.index,P),P=P.sibling;return U}function x(P,U){return P=Xa(P,U),P.index=0,P.sibling=null,P}function y(P,U,Y){return P.index=Y,t?(Y=P.alternate,Y!==null?(Y=Y.index,Y<U?(P.flags|=67108866,U):Y):(P.flags|=67108866,U)):(P.flags|=1048576,U)}function S(P){return t&&P.alternate===null&&(P.flags|=67108866),P}function V(P,U,Y,ae){return U===null||U.tag!==6?(U=jo(Y,P.mode,ae),U.return=P,U):(U=x(U,Y),U.return=P,U)}function O(P,U,Y,ae){var ye=Y.type;return ye===j?te(P,U,Y.props.children,ae,Y.key):U!==null&&(U.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&hr(ye)===U.type)?(U=x(U,Y.props),d0(U,Y),U.return=P,U):(U=Ui(Y.type,Y.key,Y.props,null,P.mode,ae),d0(U,Y),U.return=P,U)}function K(P,U,Y,ae){return U===null||U.tag!==4||U.stateNode.containerInfo!==Y.containerInfo||U.stateNode.implementation!==Y.implementation?(U=So(Y,P.mode,ae),U.return=P,U):(U=x(U,Y.children||[]),U.return=P,U)}function te(P,U,Y,ae,ye){return U===null||U.tag!==7?(U=or(Y,P.mode,ae,ye),U.return=P,U):(U=x(U,Y),U.return=P,U)}function se(P,U,Y){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=jo(""+U,P.mode,Y),U.return=P,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return Y=Ui(U.type,U.key,U.props,null,P.mode,Y),d0(Y,U),Y.return=P,Y;case N:return U=So(U,P.mode,Y),U.return=P,U;case L:return U=hr(U),se(P,U,Y)}if(oe(U)||G(U))return U=or(U,P.mode,Y,null),U.return=P,U;if(typeof U.then=="function")return se(P,Xi(U),Y);if(U.$$typeof===_)return se(P,$i(P,U),Y);Qi(P,U)}return null}function X(P,U,Y,ae){var ye=U!==null?U.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return ye!==null?null:V(P,U,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:return Y.key===ye?O(P,U,Y,ae):null;case N:return Y.key===ye?K(P,U,Y,ae):null;case L:return Y=hr(Y),X(P,U,Y,ae)}if(oe(Y)||G(Y))return ye!==null?null:te(P,U,Y,ae,null);if(typeof Y.then=="function")return X(P,U,Xi(Y),ae);if(Y.$$typeof===_)return X(P,U,$i(P,Y),ae);Qi(P,Y)}return null}function J(P,U,Y,ae,ye){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return P=P.get(Y)||null,V(U,P,""+ae,ye);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case w:return P=P.get(ae.key===null?Y:ae.key)||null,O(U,P,ae,ye);case N:return P=P.get(ae.key===null?Y:ae.key)||null,K(U,P,ae,ye);case L:return ae=hr(ae),J(P,U,Y,ae,ye)}if(oe(ae)||G(ae))return P=P.get(Y)||null,te(U,P,ae,ye,null);if(typeof ae.then=="function")return J(P,U,Y,Xi(ae),ye);if(ae.$$typeof===_)return J(P,U,Y,$i(U,ae),ye);Qi(U,ae)}return null}function me(P,U,Y,ae){for(var ye=null,Le=null,xe=U,Se=U=0,Te=null;xe!==null&&Se<Y.length;Se++){xe.index>Se?(Te=xe,xe=null):Te=xe.sibling;var Re=X(P,xe,Y[Se],ae);if(Re===null){xe===null&&(xe=Te);break}t&&xe&&Re.alternate===null&&n(P,xe),U=y(Re,U,Se),Le===null?ye=Re:Le.sibling=Re,Le=Re,xe=Te}if(Se===Y.length)return l(P,xe),He&&Qa(P,Se),ye;if(xe===null){for(;Se<Y.length;Se++)xe=se(P,Y[Se],ae),xe!==null&&(U=y(xe,U,Se),Le===null?ye=xe:Le.sibling=xe,Le=xe);return He&&Qa(P,Se),ye}for(xe=d(xe);Se<Y.length;Se++)Te=J(xe,P,Se,Y[Se],ae),Te!==null&&(t&&Te.alternate!==null&&xe.delete(Te.key===null?Se:Te.key),U=y(Te,U,Se),Le===null?ye=Te:Le.sibling=Te,Le=Te);return t&&xe.forEach(function(Un){return n(P,Un)}),He&&Qa(P,Se),ye}function we(P,U,Y,ae){if(Y==null)throw Error(s(151));for(var ye=null,Le=null,xe=U,Se=U=0,Te=null,Re=Y.next();xe!==null&&!Re.done;Se++,Re=Y.next()){xe.index>Se?(Te=xe,xe=null):Te=xe.sibling;var Un=X(P,xe,Re.value,ae);if(Un===null){xe===null&&(xe=Te);break}t&&xe&&Un.alternate===null&&n(P,xe),U=y(Un,U,Se),Le===null?ye=Un:Le.sibling=Un,Le=Un,xe=Te}if(Re.done)return l(P,xe),He&&Qa(P,Se),ye;if(xe===null){for(;!Re.done;Se++,Re=Y.next())Re=se(P,Re.value,ae),Re!==null&&(U=y(Re,U,Se),Le===null?ye=Re:Le.sibling=Re,Le=Re);return He&&Qa(P,Se),ye}for(xe=d(xe);!Re.done;Se++,Re=Y.next())Re=J(xe,P,Se,Re.value,ae),Re!==null&&(t&&Re.alternate!==null&&xe.delete(Re.key===null?Se:Re.key),U=y(Re,U,Se),Le===null?ye=Re:Le.sibling=Re,Le=Re);return t&&xe.forEach(function(C_){return n(P,C_)}),He&&Qa(P,Se),ye}function Fe(P,U,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===j&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:e:{for(var ye=Y.key;U!==null;){if(U.key===ye){if(ye=Y.type,ye===j){if(U.tag===7){l(P,U.sibling),ae=x(U,Y.props.children),ae.return=P,P=ae;break e}}else if(U.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&hr(ye)===U.type){l(P,U.sibling),ae=x(U,Y.props),d0(ae,Y),ae.return=P,P=ae;break e}l(P,U);break}else n(P,U);U=U.sibling}Y.type===j?(ae=or(Y.props.children,P.mode,ae,Y.key),ae.return=P,P=ae):(ae=Ui(Y.type,Y.key,Y.props,null,P.mode,ae),d0(ae,Y),ae.return=P,P=ae)}return S(P);case N:e:{for(ye=Y.key;U!==null;){if(U.key===ye)if(U.tag===4&&U.stateNode.containerInfo===Y.containerInfo&&U.stateNode.implementation===Y.implementation){l(P,U.sibling),ae=x(U,Y.children||[]),ae.return=P,P=ae;break e}else{l(P,U);break}else n(P,U);U=U.sibling}ae=So(Y,P.mode,ae),ae.return=P,P=ae}return S(P);case L:return Y=hr(Y),Fe(P,U,Y,ae)}if(oe(Y))return me(P,U,Y,ae);if(G(Y)){if(ye=G(Y),typeof ye!="function")throw Error(s(150));return Y=ye.call(Y),we(P,U,Y,ae)}if(typeof Y.then=="function")return Fe(P,U,Xi(Y),ae);if(Y.$$typeof===_)return Fe(P,U,$i(P,Y),ae);Qi(P,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,U!==null&&U.tag===6?(l(P,U.sibling),ae=x(U,Y),ae.return=P,P=ae):(l(P,U),ae=jo(Y,P.mode,ae),ae.return=P,P=ae),S(P)):l(P,U)}return function(P,U,Y,ae){try{u0=0;var ye=Fe(P,U,Y,ae);return ns=null,ye}catch(xe){if(xe===as||xe===Yi)throw xe;var Le=Gt(29,xe,null,P.mode);return Le.lanes=ae,Le.return=P,Le}finally{}}}var pr=lp(!0),op=lp(!1),Mn=!1;function Do(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Oo(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Nn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function _n(t,n,l){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(ke&2)!==0){var x=d.pending;return x===null?n.next=n:(n.next=x.next,x.next=n),d.pending=n,n=Bi(t),Pm(t,null,l),n}return Fi(t,d,n,l),Bi(t)}function f0(t,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var d=n.lanes;d&=t.pendingLanes,l|=d,n.lanes=l,W6(t,l)}}function qo(t,n){var l=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var x=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};y===null?x=y=S:y=y.next=S,l=l.next}while(l!==null);y===null?x=y=n:y=y.next=n}else x=y=n;l={baseState:d.baseState,firstBaseUpdate:x,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=n:t.next=n,l.lastBaseUpdate=n}var zo=!1;function h0(){if(zo){var t=ts;if(t!==null)throw t}}function m0(t,n,l,d){zo=!1;var x=t.updateQueue;Mn=!1;var y=x.firstBaseUpdate,S=x.lastBaseUpdate,V=x.shared.pending;if(V!==null){x.shared.pending=null;var O=V,K=O.next;O.next=null,S===null?y=K:S.next=K,S=O;var te=t.alternate;te!==null&&(te=te.updateQueue,V=te.lastBaseUpdate,V!==S&&(V===null?te.firstBaseUpdate=K:V.next=K,te.lastBaseUpdate=O))}if(y!==null){var se=x.baseState;S=0,te=K=O=null,V=y;do{var X=V.lane&-536870913,J=X!==V.lane;if(J?(Ce&X)===X:(d&X)===X){X!==0&&X===es&&(zo=!0),te!==null&&(te=te.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});e:{var me=t,we=V;X=n;var Fe=l;switch(we.tag){case 1:if(me=we.payload,typeof me=="function"){se=me.call(Fe,se,X);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=we.payload,X=typeof me=="function"?me.call(Fe,se,X):me,X==null)break e;se=v({},se,X);break e;case 2:Mn=!0}}X=V.callback,X!==null&&(t.flags|=64,J&&(t.flags|=8192),J=x.callbacks,J===null?x.callbacks=[X]:J.push(X))}else J={lane:X,tag:V.tag,payload:V.payload,callback:V.callback,next:null},te===null?(K=te=J,O=se):te=te.next=J,S|=X;if(V=V.next,V===null){if(V=x.shared.pending,V===null)break;J=V,V=J.next,J.next=null,x.lastBaseUpdate=J,x.shared.pending=null}}while(!0);te===null&&(O=se),x.baseState=O,x.firstBaseUpdate=K,x.lastBaseUpdate=te,y===null&&(x.shared.lanes=0),Vn|=S,t.lanes=S,t.memoizedState=se}}function cp(t,n){if(typeof t!="function")throw Error(s(191,t));t.call(n)}function up(t,n){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)cp(l[t],n)}var rs=q(null),Ji=q(0);function dp(t,n){t=cn,re(Ji,t),re(rs,n),cn=t|n.baseLanes}function Fo(){re(Ji,cn),re(rs,rs.current)}function Bo(){cn=Ji.current,W(rs),W(Ji)}var Yt=q(null),la=null;function Cn(t){var n=t.alternate;re(nt,nt.current&1),re(Yt,t),la===null&&(n===null||rs.current!==null||n.memoizedState!==null)&&(la=t)}function Uo(t){re(nt,nt.current),re(Yt,t),la===null&&(la=t)}function fp(t){t.tag===22?(re(nt,nt.current),re(Yt,t),la===null&&(la=t)):Tn()}function Tn(){re(nt,nt.current),re(Yt,Yt.current)}function Kt(t){W(Yt),la===t&&(la=null),W(nt)}var nt=q(0);function Wi(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kc(l)||Xc(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var en=0,je=null,qe=null,it=null,el=!1,ss=!1,gr=!1,tl=0,p0=0,is=null,yN=0;function We(){throw Error(s(321))}function Io(t,n){if(n===null)return!1;for(var l=0;l<n.length&&l<t.length;l++)if(!$t(t[l],n[l]))return!1;return!0}function Po(t,n,l,d,x,y){return en=y,je=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=t===null||t.memoizedState===null?Kp:ic,gr=!1,y=l(d,x),gr=!1,ss&&(y=mp(n,l,d,x)),hp(t),y}function hp(t){D.H=v0;var n=qe!==null&&qe.next!==null;if(en=0,it=qe=je=null,el=!1,p0=0,is=null,n)throw Error(s(300));t===null||lt||(t=t.dependencies,t!==null&&Pi(t)&&(lt=!0))}function mp(t,n,l,d){je=t;var x=0;do{if(ss&&(is=null),p0=0,ss=!1,25<=x)throw Error(s(301));if(x+=1,it=qe=null,t.updateQueue!=null){var y=t.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}D.H=Xp,y=n(l,d)}while(ss);return y}function bN(){var t=D.H,n=t.useState()[0];return n=typeof n.then=="function"?g0(n):n,t=t.useState()[0],(qe!==null?qe.memoizedState:null)!==t&&(je.flags|=1024),n}function $o(){var t=tl!==0;return tl=0,t}function Go(t,n,l){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~l}function Yo(t){if(el){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}el=!1}en=0,it=qe=je=null,ss=!1,p0=tl=0,is=null}function _t(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?je.memoizedState=it=t:it=it.next=t,it}function rt(){if(qe===null){var t=je.alternate;t=t!==null?t.memoizedState:null}else t=qe.next;var n=it===null?je.memoizedState:it.next;if(n!==null)it=n,qe=t;else{if(t===null)throw je.alternate===null?Error(s(467)):Error(s(310));qe=t,t={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},it===null?je.memoizedState=it=t:it=it.next=t}return it}function al(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function g0(t){var n=p0;return p0+=1,is===null&&(is=[]),t=rp(is,t,n),n=je,(it===null?n.memoizedState:it.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?Kp:ic),t}function nl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return g0(t);if(t.$$typeof===_)return bt(t)}throw Error(s(438,String(t)))}function Ko(t){var n=null,l=je.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var d=je.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(n={data:d.data.map(function(x){return x.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=al(),je.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(t),d=0;d<t;d++)l[d]=k;return n.index++,l}function tn(t,n){return typeof n=="function"?n(t):n}function rl(t){var n=rt();return Xo(n,qe,t)}function Xo(t,n,l){var d=t.queue;if(d===null)throw Error(s(311));d.lastRenderedReducer=l;var x=t.baseQueue,y=d.pending;if(y!==null){if(x!==null){var S=x.next;x.next=y.next,y.next=S}n.baseQueue=x=y,d.pending=null}if(y=t.baseState,x===null)t.memoizedState=y;else{n=x.next;var V=S=null,O=null,K=n,te=!1;do{var se=K.lane&-536870913;if(se!==K.lane?(Ce&se)===se:(en&se)===se){var X=K.revertLane;if(X===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),se===es&&(te=!0);else if((en&X)===X){K=K.next,X===es&&(te=!0);continue}else se={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(V=O=se,S=y):O=O.next=se,je.lanes|=X,Vn|=X;se=K.action,gr&&l(y,se),y=K.hasEagerState?K.eagerState:l(y,se)}else X={lane:se,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(V=O=X,S=y):O=O.next=X,je.lanes|=se,Vn|=se;K=K.next}while(K!==null&&K!==n);if(O===null?S=y:O.next=V,!$t(y,t.memoizedState)&&(lt=!0,te&&(l=ts,l!==null)))throw l;t.memoizedState=y,t.baseState=S,t.baseQueue=O,d.lastRenderedState=y}return x===null&&(d.lanes=0),[t.memoizedState,d.dispatch]}function Qo(t){var n=rt(),l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=t;var d=l.dispatch,x=l.pending,y=n.memoizedState;if(x!==null){l.pending=null;var S=x=x.next;do y=t(y,S.action),S=S.next;while(S!==x);$t(y,n.memoizedState)||(lt=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),l.lastRenderedState=y}return[y,d]}function pp(t,n,l){var d=je,x=rt(),y=He;if(y){if(l===void 0)throw Error(s(407));l=l()}else l=n();var S=!$t((qe||x).memoizedState,l);if(S&&(x.memoizedState=l,lt=!0),x=x.queue,ec(vp.bind(null,d,x,t),[t]),x.getSnapshot!==n||S||it!==null&&it.memoizedState.tag&1){if(d.flags|=2048,ls(9,{destroy:void 0},xp.bind(null,d,x,l,n),null),Be===null)throw Error(s(349));y||(en&127)!==0||gp(d,n,l)}return l}function gp(t,n,l){t.flags|=16384,t={getSnapshot:n,value:l},n=je.updateQueue,n===null?(n=al(),je.updateQueue=n,n.stores=[t]):(l=n.stores,l===null?n.stores=[t]:l.push(t))}function xp(t,n,l,d){n.value=l,n.getSnapshot=d,yp(n)&&bp(t)}function vp(t,n,l){return l(function(){yp(n)&&bp(t)})}function yp(t){var n=t.getSnapshot;t=t.value;try{var l=n();return!$t(t,l)}catch{return!0}}function bp(t){var n=lr(t,2);n!==null&&qt(n,t,2)}function Jo(t){var n=_t();if(typeof t=="function"){var l=t;if(t=l(),gr){yn(!0);try{l()}finally{yn(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},n}function wp(t,n,l,d){return t.baseState=l,Xo(t,qe,typeof d=="function"?d:tn)}function wN(t,n,l,d,x){if(ll(t))throw Error(s(485));if(t=n.action,t!==null){var y={payload:x,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){y.listeners.push(S)}};D.T!==null?l(!0):y.isTransition=!1,d(y),l=n.pending,l===null?(y.next=n.pending=y,Ap(n,y)):(y.next=l.next,n.pending=l.next=y)}}function Ap(t,n){var l=n.action,d=n.payload,x=t.state;if(n.isTransition){var y=D.T,S={};D.T=S;try{var V=l(x,d),O=D.S;O!==null&&O(S,V),Ep(t,n,V)}catch(K){Wo(t,n,K)}finally{y!==null&&S.types!==null&&(y.types=S.types),D.T=y}}else try{y=l(x,d),Ep(t,n,y)}catch(K){Wo(t,n,K)}}function Ep(t,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){jp(t,n,d)},function(d){return Wo(t,n,d)}):jp(t,n,l)}function jp(t,n,l){n.status="fulfilled",n.value=l,Sp(n),t.state=l,n=t.pending,n!==null&&(l=n.next,l===n?t.pending=null:(l=l.next,n.next=l,Ap(t,l)))}function Wo(t,n,l){var d=t.pending;if(t.pending=null,d!==null){d=d.next;do n.status="rejected",n.reason=l,Sp(n),n=n.next;while(n!==d)}t.action=null}function Sp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Mp(t,n){return n}function Np(t,n){if(He){var l=Be.formState;if(l!==null){e:{var d=je;if(He){if(Pe){t:{for(var x=Pe,y=ia;x.nodeType!==8;){if(!y){x=null;break t}if(x=oa(x.nextSibling),x===null){x=null;break t}}y=x.data,x=y==="F!"||y==="F"?x:null}if(x){Pe=oa(x.nextSibling),d=x.data==="F!";break e}}jn(d)}d=!1}d&&(n=l[0])}}return l=_t(),l.memoizedState=l.baseState=n,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mp,lastRenderedState:n},l.queue=d,l=$p.bind(null,je,d),d.dispatch=l,d=Jo(!1),y=sc.bind(null,je,!1,d.queue),d=_t(),x={state:n,dispatch:null,action:t,pending:null},d.queue=x,l=wN.bind(null,je,x,y,l),x.dispatch=l,d.memoizedState=t,[n,l,!1]}function _p(t){var n=rt();return Cp(n,qe,t)}function Cp(t,n,l){if(n=Xo(t,n,Mp)[0],t=rl(tn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var d=g0(n)}catch(S){throw S===as?Yi:S}else d=n;n=rt();var x=n.queue,y=x.dispatch;return l!==n.memoizedState&&(je.flags|=2048,ls(9,{destroy:void 0},AN.bind(null,x,l),null)),[d,y,t]}function AN(t,n){t.action=n}function Tp(t){var n=rt(),l=qe;if(l!==null)return Cp(n,l,t);rt(),n=n.memoizedState,l=rt();var d=l.queue.dispatch;return l.memoizedState=t,[n,d,!1]}function ls(t,n,l,d){return t={tag:t,create:l,deps:d,inst:n,next:null},n=je.updateQueue,n===null&&(n=al(),je.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=t.next=t:(d=l.next,l.next=t,t.next=d,n.lastEffect=t),t}function Hp(){return rt().memoizedState}function sl(t,n,l,d){var x=_t();je.flags|=t,x.memoizedState=ls(1|n,{destroy:void 0},l,d===void 0?null:d)}function il(t,n,l,d){var x=rt();d=d===void 0?null:d;var y=x.memoizedState.inst;qe!==null&&d!==null&&Io(d,qe.memoizedState.deps)?x.memoizedState=ls(n,y,l,d):(je.flags|=t,x.memoizedState=ls(1|n,y,l,d))}function Zp(t,n){sl(8390656,8,t,n)}function ec(t,n){il(2048,8,t,n)}function EN(t){je.flags|=4;var n=je.updateQueue;if(n===null)n=al(),je.updateQueue=n,n.events=[t];else{var l=n.events;l===null?n.events=[t]:l.push(t)}}function Vp(t){var n=rt().memoizedState;return EN({ref:n,nextImpl:t}),function(){if((ke&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}function Lp(t,n){return il(4,2,t,n)}function Rp(t,n){return il(4,4,t,n)}function kp(t,n){if(typeof n=="function"){t=t();var l=n(t);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Dp(t,n,l){l=l!=null?l.concat([t]):null,il(4,4,kp.bind(null,n,t),l)}function tc(){}function Op(t,n){var l=rt();n=n===void 0?null:n;var d=l.memoizedState;return n!==null&&Io(n,d[1])?d[0]:(l.memoizedState=[t,n],t)}function qp(t,n){var l=rt();n=n===void 0?null:n;var d=l.memoizedState;if(n!==null&&Io(n,d[1]))return d[0];if(d=t(),gr){yn(!0);try{t()}finally{yn(!1)}}return l.memoizedState=[d,n],d}function ac(t,n,l){return l===void 0||(en&1073741824)!==0&&(Ce&261930)===0?t.memoizedState=n:(t.memoizedState=l,t=z3(),je.lanes|=t,Vn|=t,l)}function zp(t,n,l,d){return $t(l,n)?l:rs.current!==null?(t=ac(t,l,d),$t(t,n)||(lt=!0),t):(en&42)===0||(en&1073741824)!==0&&(Ce&261930)===0?(lt=!0,t.memoizedState=l):(t=z3(),je.lanes|=t,Vn|=t,n)}function Fp(t,n,l,d,x){var y=$.p;$.p=y!==0&&8>y?y:8;var S=D.T,V={};D.T=V,sc(t,!1,n,l);try{var O=x(),K=D.S;if(K!==null&&K(V,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var te=vN(O,d);x0(t,n,te,Jt(t))}else x0(t,n,d,Jt(t))}catch(se){x0(t,n,{then:function(){},status:"rejected",reason:se},Jt())}finally{$.p=y,S!==null&&V.types!==null&&(S.types=V.types),D.T=S}}function jN(){}function nc(t,n,l,d){if(t.tag!==5)throw Error(s(476));var x=Bp(t).queue;Fp(t,x,n,ne,l===null?jN:function(){return Up(t),l(d)})}function Bp(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:ne},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:l},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Up(t){var n=Bp(t);n.next===null&&(n=t.alternate.memoizedState),x0(t,n.next.queue,{},Jt())}function rc(){return bt(L0)}function Ip(){return rt().memoizedState}function Pp(){return rt().memoizedState}function SN(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var l=Jt();t=Nn(l);var d=_n(n,t,l);d!==null&&(qt(d,n,l),f0(d,n,l)),n={cache:Vo()},t.payload=n;return}n=n.return}}function MN(t,n,l){var d=Jt();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ll(t)?Gp(n,l):(l=Ao(t,n,l,d),l!==null&&(qt(l,t,d),Yp(l,n,d)))}function $p(t,n,l){var d=Jt();x0(t,n,l,d)}function x0(t,n,l,d){var x={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ll(t))Gp(n,x);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null))try{var S=n.lastRenderedState,V=y(S,l);if(x.hasEagerState=!0,x.eagerState=V,$t(V,S))return Fi(t,n,x,0),Be===null&&zi(),!1}catch{}finally{}if(l=Ao(t,n,x,d),l!==null)return qt(l,t,d),Yp(l,n,d),!0}return!1}function sc(t,n,l,d){if(d={lane:2,revertLane:Dc(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},ll(t)){if(n)throw Error(s(479))}else n=Ao(t,l,d,2),n!==null&&qt(n,t,2)}function ll(t){var n=t.alternate;return t===je||n!==null&&n===je}function Gp(t,n){ss=el=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}function Yp(t,n,l){if((l&4194048)!==0){var d=n.lanes;d&=t.pendingLanes,l|=d,n.lanes=l,W6(t,l)}}var v0={readContext:bt,use:nl,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};v0.useEffectEvent=We;var Kp={readContext:bt,use:nl,useCallback:function(t,n){return _t().memoizedState=[t,n===void 0?null:n],t},useContext:bt,useEffect:Zp,useImperativeHandle:function(t,n,l){l=l!=null?l.concat([t]):null,sl(4194308,4,kp.bind(null,n,t),l)},useLayoutEffect:function(t,n){return sl(4194308,4,t,n)},useInsertionEffect:function(t,n){sl(4,2,t,n)},useMemo:function(t,n){var l=_t();n=n===void 0?null:n;var d=t();if(gr){yn(!0);try{t()}finally{yn(!1)}}return l.memoizedState=[d,n],d},useReducer:function(t,n,l){var d=_t();if(l!==void 0){var x=l(n);if(gr){yn(!0);try{l(n)}finally{yn(!1)}}}else x=n;return d.memoizedState=d.baseState=x,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:x},d.queue=t,t=t.dispatch=MN.bind(null,je,t),[d.memoizedState,t]},useRef:function(t){var n=_t();return t={current:t},n.memoizedState=t},useState:function(t){t=Jo(t);var n=t.queue,l=$p.bind(null,je,n);return n.dispatch=l,[t.memoizedState,l]},useDebugValue:tc,useDeferredValue:function(t,n){var l=_t();return ac(l,t,n)},useTransition:function(){var t=Jo(!1);return t=Fp.bind(null,je,t.queue,!0,!1),_t().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,l){var d=je,x=_t();if(He){if(l===void 0)throw Error(s(407));l=l()}else{if(l=n(),Be===null)throw Error(s(349));(Ce&127)!==0||gp(d,n,l)}x.memoizedState=l;var y={value:l,getSnapshot:n};return x.queue=y,Zp(vp.bind(null,d,y,t),[t]),d.flags|=2048,ls(9,{destroy:void 0},xp.bind(null,d,y,l,n),null),l},useId:function(){var t=_t(),n=Be.identifierPrefix;if(He){var l=Va,d=Za;l=(d&~(1<<32-Pt(d)-1)).toString(32)+l,n="_"+n+"R_"+l,l=tl++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=yN++,n="_"+n+"r_"+l.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:rc,useFormState:Np,useActionState:Np,useOptimistic:function(t){var n=_t();n.memoizedState=n.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=sc.bind(null,je,!0,l),l.dispatch=n,[t,n]},useMemoCache:Ko,useCacheRefresh:function(){return _t().memoizedState=SN.bind(null,je)},useEffectEvent:function(t){var n=_t(),l={impl:t};return n.memoizedState=l,function(){if((ke&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},ic={readContext:bt,use:nl,useCallback:Op,useContext:bt,useEffect:ec,useImperativeHandle:Dp,useInsertionEffect:Lp,useLayoutEffect:Rp,useMemo:qp,useReducer:rl,useRef:Hp,useState:function(){return rl(tn)},useDebugValue:tc,useDeferredValue:function(t,n){var l=rt();return zp(l,qe.memoizedState,t,n)},useTransition:function(){var t=rl(tn)[0],n=rt().memoizedState;return[typeof t=="boolean"?t:g0(t),n]},useSyncExternalStore:pp,useId:Ip,useHostTransitionStatus:rc,useFormState:_p,useActionState:_p,useOptimistic:function(t,n){var l=rt();return wp(l,qe,t,n)},useMemoCache:Ko,useCacheRefresh:Pp};ic.useEffectEvent=Vp;var Xp={readContext:bt,use:nl,useCallback:Op,useContext:bt,useEffect:ec,useImperativeHandle:Dp,useInsertionEffect:Lp,useLayoutEffect:Rp,useMemo:qp,useReducer:Qo,useRef:Hp,useState:function(){return Qo(tn)},useDebugValue:tc,useDeferredValue:function(t,n){var l=rt();return qe===null?ac(l,t,n):zp(l,qe.memoizedState,t,n)},useTransition:function(){var t=Qo(tn)[0],n=rt().memoizedState;return[typeof t=="boolean"?t:g0(t),n]},useSyncExternalStore:pp,useId:Ip,useHostTransitionStatus:rc,useFormState:Tp,useActionState:Tp,useOptimistic:function(t,n){var l=rt();return qe!==null?wp(l,qe,t,n):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Ko,useCacheRefresh:Pp};Xp.useEffectEvent=Vp;function lc(t,n,l,d){n=t.memoizedState,l=l(d,n),l=l==null?n:v({},n,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var oc={enqueueSetState:function(t,n,l){t=t._reactInternals;var d=Jt(),x=Nn(d);x.payload=n,l!=null&&(x.callback=l),n=_n(t,x,d),n!==null&&(qt(n,t,d),f0(n,t,d))},enqueueReplaceState:function(t,n,l){t=t._reactInternals;var d=Jt(),x=Nn(d);x.tag=1,x.payload=n,l!=null&&(x.callback=l),n=_n(t,x,d),n!==null&&(qt(n,t,d),f0(n,t,d))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var l=Jt(),d=Nn(l);d.tag=2,n!=null&&(d.callback=n),n=_n(t,d,l),n!==null&&(qt(n,t,l),f0(n,t,l))}};function Qp(t,n,l,d,x,y,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,y,S):n.prototype&&n.prototype.isPureReactComponent?!r0(l,d)||!r0(x,y):!0}function Jp(t,n,l,d){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,d),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,d),n.state!==t&&oc.enqueueReplaceState(n,n.state,null)}function xr(t,n){var l=n;if("ref"in n){l={};for(var d in n)d!=="ref"&&(l[d]=n[d])}if(t=t.defaultProps){l===n&&(l=v({},l));for(var x in t)l[x]===void 0&&(l[x]=t[x])}return l}function Wp(t){qi(t)}function e3(t){console.error(t)}function t3(t){qi(t)}function ol(t,n){try{var l=t.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(d){setTimeout(function(){throw d})}}function a3(t,n,l){try{var d=t.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function cc(t,n,l){return l=Nn(l),l.tag=3,l.payload={element:null},l.callback=function(){ol(t,n)},l}function n3(t){return t=Nn(t),t.tag=3,t}function r3(t,n,l,d){var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var y=d.value;t.payload=function(){return x(y)},t.callback=function(){a3(n,l,d)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){a3(n,l,d),typeof x!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var V=d.stack;this.componentDidCatch(d.value,{componentStack:V!==null?V:""})})}function NN(t,n,l,d,x){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(n=l.alternate,n!==null&&Wr(n,l,x,!0),l=Yt.current,l!==null){switch(l.tag){case 31:case 13:return la===null?bl():l.alternate===null&&et===0&&(et=3),l.flags&=-257,l.flags|=65536,l.lanes=x,d===Ki?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([d]):n.add(d),Lc(t,d,x)),!1;case 22:return l.flags|=65536,d===Ki?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([d]):l.add(d)),Lc(t,d,x)),!1}throw Error(s(435,l.tag))}return Lc(t,d,x),bl(),!1}if(He)return n=Yt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=x,d!==_o&&(t=Error(s(422),{cause:d}),l0(na(t,l)))):(d!==_o&&(n=Error(s(423),{cause:d}),l0(na(n,l))),t=t.current.alternate,t.flags|=65536,x&=-x,t.lanes|=x,d=na(d,l),x=cc(t.stateNode,d,x),qo(t,x),et!==4&&(et=2)),!1;var y=Error(s(520),{cause:d});if(y=na(y,l),M0===null?M0=[y]:M0.push(y),et!==4&&(et=2),n===null)return!0;d=na(d,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,t=x&-x,l.lanes|=t,t=cc(l.stateNode,d,t),qo(l,t),!1;case 1:if(n=l.type,y=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ln===null||!Ln.has(y))))return l.flags|=65536,x&=-x,l.lanes|=x,x=n3(x),r3(x,t,l,d),qo(l,x),!1}l=l.return}while(l!==null);return!1}var uc=Error(s(461)),lt=!1;function wt(t,n,l,d){n.child=t===null?op(n,null,l,d):pr(n,t.child,l,d)}function s3(t,n,l,d,x){l=l.render;var y=n.ref;if("ref"in d){var S={};for(var V in d)V!=="ref"&&(S[V]=d[V])}else S=d;return dr(n),d=Po(t,n,l,S,y,x),V=$o(),t!==null&&!lt?(Go(t,n,x),an(t,n,x)):(He&&V&&Mo(n),n.flags|=1,wt(t,n,d,x),n.child)}function i3(t,n,l,d,x){if(t===null){var y=l.type;return typeof y=="function"&&!Eo(y)&&y.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=y,l3(t,n,y,d,x)):(t=Ui(l.type,null,d,n,n.mode,x),t.ref=n.ref,t.return=n,n.child=t)}if(y=t.child,!vc(t,x)){var S=y.memoizedProps;if(l=l.compare,l=l!==null?l:r0,l(S,d)&&t.ref===n.ref)return an(t,n,x)}return n.flags|=1,t=Xa(y,d),t.ref=n.ref,t.return=n,n.child=t}function l3(t,n,l,d,x){if(t!==null){var y=t.memoizedProps;if(r0(y,d)&&t.ref===n.ref)if(lt=!1,n.pendingProps=d=y,vc(t,x))(t.flags&131072)!==0&&(lt=!0);else return n.lanes=t.lanes,an(t,n,x)}return dc(t,n,l,d,x)}function o3(t,n,l,d){var x=d.children,y=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|l:l,t!==null){for(d=n.child=t.child,x=0;d!==null;)x=x|d.lanes|d.childLanes,d=d.sibling;d=x&~y}else d=0,n.child=null;return c3(t,n,y,l,d)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Gi(n,y!==null?y.cachePool:null),y!==null?dp(n,y):Fo(),fp(n);else return d=n.lanes=536870912,c3(t,n,y!==null?y.baseLanes|l:l,l,d)}else y!==null?(Gi(n,y.cachePool),dp(n,y),Tn(),n.memoizedState=null):(t!==null&&Gi(n,null),Fo(),Tn());return wt(t,n,x,l),n.child}function y0(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function c3(t,n,l,d,x){var y=Ro();return y=y===null?null:{parent:st._currentValue,pool:y},n.memoizedState={baseLanes:l,cachePool:y},t!==null&&Gi(n,null),Fo(),fp(n),t!==null&&Wr(t,n,d,!0),n.childLanes=x,null}function cl(t,n){return n=dl({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function u3(t,n,l){return pr(n,t.child,null,l),t=cl(n,n.pendingProps),t.flags|=2,Kt(n),n.memoizedState=null,t}function _N(t,n,l){var d=n.pendingProps,x=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(He){if(d.mode==="hidden")return t=cl(n,d),n.lanes=536870912,y0(null,t);if(Uo(n),(t=Pe)?(t=A5(t,ia),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:An!==null?{id:Za,overflow:Va}:null,retryLane:536870912,hydrationErrors:null},l=Gm(t),l.return=n,n.child=l,yt=n,Pe=null)):t=null,t===null)throw jn(n);return n.lanes=536870912,null}return cl(n,d)}var y=t.memoizedState;if(y!==null){var S=y.dehydrated;if(Uo(n),x)if(n.flags&256)n.flags&=-257,n=u3(t,n,l);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(s(558));else if(lt||Wr(t,n,l,!1),x=(l&t.childLanes)!==0,lt||x){if(d=Be,d!==null&&(S=em(d,l),S!==0&&S!==y.retryLane))throw y.retryLane=S,lr(t,S),qt(d,t,S),uc;bl(),n=u3(t,n,l)}else t=y.treeContext,Pe=oa(S.nextSibling),yt=n,He=!0,En=null,ia=!1,t!==null&&Xm(n,t),n=cl(n,d),n.flags|=4096;return n}return t=Xa(t.child,{mode:d.mode,children:d.children}),t.ref=n.ref,n.child=t,t.return=n,t}function ul(t,n){var l=n.ref;if(l===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(t===null||t.ref!==l)&&(n.flags|=4194816)}}function dc(t,n,l,d,x){return dr(n),l=Po(t,n,l,d,void 0,x),d=$o(),t!==null&&!lt?(Go(t,n,x),an(t,n,x)):(He&&d&&Mo(n),n.flags|=1,wt(t,n,l,x),n.child)}function d3(t,n,l,d,x,y){return dr(n),n.updateQueue=null,l=mp(n,d,l,x),hp(t),d=$o(),t!==null&&!lt?(Go(t,n,y),an(t,n,y)):(He&&d&&Mo(n),n.flags|=1,wt(t,n,l,y),n.child)}function f3(t,n,l,d,x){if(dr(n),n.stateNode===null){var y=Kr,S=l.contextType;typeof S=="object"&&S!==null&&(y=bt(S)),y=new l(d,y),n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=oc,n.stateNode=y,y._reactInternals=n,y=n.stateNode,y.props=d,y.state=n.memoizedState,y.refs={},Do(n),S=l.contextType,y.context=typeof S=="object"&&S!==null?bt(S):Kr,y.state=n.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(lc(n,l,S,d),y.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(S=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),S!==y.state&&oc.enqueueReplaceState(y,y.state,null),m0(n,d,y,x),h0(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),d=!0}else if(t===null){y=n.stateNode;var V=n.memoizedProps,O=xr(l,V);y.props=O;var K=y.context,te=l.contextType;S=Kr,typeof te=="object"&&te!==null&&(S=bt(te));var se=l.getDerivedStateFromProps;te=typeof se=="function"||typeof y.getSnapshotBeforeUpdate=="function",V=n.pendingProps!==V,te||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(V||K!==S)&&Jp(n,y,d,S),Mn=!1;var X=n.memoizedState;y.state=X,m0(n,d,y,x),h0(),K=n.memoizedState,V||X!==K||Mn?(typeof se=="function"&&(lc(n,l,se,d),K=n.memoizedState),(O=Mn||Qp(n,l,O,d,X,K,S))?(te||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"&&(n.flags|=4194308)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=d,n.memoizedState=K),y.props=d,y.state=K,y.context=S,d=O):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),d=!1)}else{y=n.stateNode,Oo(t,n),S=n.memoizedProps,te=xr(l,S),y.props=te,se=n.pendingProps,X=y.context,K=l.contextType,O=Kr,typeof K=="object"&&K!==null&&(O=bt(K)),V=l.getDerivedStateFromProps,(K=typeof V=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S!==se||X!==O)&&Jp(n,y,d,O),Mn=!1,X=n.memoizedState,y.state=X,m0(n,d,y,x),h0();var J=n.memoizedState;S!==se||X!==J||Mn||t!==null&&t.dependencies!==null&&Pi(t.dependencies)?(typeof V=="function"&&(lc(n,l,V,d),J=n.memoizedState),(te=Mn||Qp(n,l,te,d,X,J,O)||t!==null&&t.dependencies!==null&&Pi(t.dependencies))?(K||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,J,O),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,J,O)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||S===t.memoizedProps&&X===t.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&X===t.memoizedState||(n.flags|=1024),n.memoizedProps=d,n.memoizedState=J),y.props=d,y.state=J,y.context=O,d=te):(typeof y.componentDidUpdate!="function"||S===t.memoizedProps&&X===t.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&X===t.memoizedState||(n.flags|=1024),d=!1)}return y=d,ul(t,n),d=(n.flags&128)!==0,y||d?(y=n.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:y.render(),n.flags|=1,t!==null&&d?(n.child=pr(n,t.child,null,x),n.child=pr(n,null,l,x)):wt(t,n,l,x),n.memoizedState=y.state,t=n.child):t=an(t,n,x),t}function h3(t,n,l,d){return cr(),n.flags|=256,wt(t,n,l,d),n.child}var fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hc(t){return{baseLanes:t,cachePool:ap()}}function mc(t,n,l){return t=t!==null?t.childLanes&~l:0,n&&(t|=Qt),t}function m3(t,n,l){var d=n.pendingProps,x=!1,y=(n.flags&128)!==0,S;if((S=y)||(S=t!==null&&t.memoizedState===null?!1:(nt.current&2)!==0),S&&(x=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,t===null){if(He){if(x?Cn(n):Tn(),(t=Pe)?(t=A5(t,ia),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:An!==null?{id:Za,overflow:Va}:null,retryLane:536870912,hydrationErrors:null},l=Gm(t),l.return=n,n.child=l,yt=n,Pe=null)):t=null,t===null)throw jn(n);return Xc(t)?n.lanes=32:n.lanes=536870912,null}var V=d.children;return d=d.fallback,x?(Tn(),x=n.mode,V=dl({mode:"hidden",children:V},x),d=or(d,x,l,null),V.return=n,d.return=n,V.sibling=d,n.child=V,d=n.child,d.memoizedState=hc(l),d.childLanes=mc(t,S,l),n.memoizedState=fc,y0(null,d)):(Cn(n),pc(n,V))}var O=t.memoizedState;if(O!==null&&(V=O.dehydrated,V!==null)){if(y)n.flags&256?(Cn(n),n.flags&=-257,n=gc(t,n,l)):n.memoizedState!==null?(Tn(),n.child=t.child,n.flags|=128,n=null):(Tn(),V=d.fallback,x=n.mode,d=dl({mode:"visible",children:d.children},x),V=or(V,x,l,null),V.flags|=2,d.return=n,V.return=n,d.sibling=V,n.child=d,pr(n,t.child,null,l),d=n.child,d.memoizedState=hc(l),d.childLanes=mc(t,S,l),n.memoizedState=fc,n=y0(null,d));else if(Cn(n),Xc(V)){if(S=V.nextSibling&&V.nextSibling.dataset,S)var K=S.dgst;S=K,d=Error(s(419)),d.stack="",d.digest=S,l0({value:d,source:null,stack:null}),n=gc(t,n,l)}else if(lt||Wr(t,n,l,!1),S=(l&t.childLanes)!==0,lt||S){if(S=Be,S!==null&&(d=em(S,l),d!==0&&d!==O.retryLane))throw O.retryLane=d,lr(t,d),qt(S,t,d),uc;Kc(V)||bl(),n=gc(t,n,l)}else Kc(V)?(n.flags|=192,n.child=t.child,n=null):(t=O.treeContext,Pe=oa(V.nextSibling),yt=n,He=!0,En=null,ia=!1,t!==null&&Xm(n,t),n=pc(n,d.children),n.flags|=4096);return n}return x?(Tn(),V=d.fallback,x=n.mode,O=t.child,K=O.sibling,d=Xa(O,{mode:"hidden",children:d.children}),d.subtreeFlags=O.subtreeFlags&65011712,K!==null?V=Xa(K,V):(V=or(V,x,l,null),V.flags|=2),V.return=n,d.return=n,d.sibling=V,n.child=d,y0(null,d),d=n.child,V=t.child.memoizedState,V===null?V=hc(l):(x=V.cachePool,x!==null?(O=st._currentValue,x=x.parent!==O?{parent:O,pool:O}:x):x=ap(),V={baseLanes:V.baseLanes|l,cachePool:x}),d.memoizedState=V,d.childLanes=mc(t,S,l),n.memoizedState=fc,y0(t.child,d)):(Cn(n),l=t.child,t=l.sibling,l=Xa(l,{mode:"visible",children:d.children}),l.return=n,l.sibling=null,t!==null&&(S=n.deletions,S===null?(n.deletions=[t],n.flags|=16):S.push(t)),n.child=l,n.memoizedState=null,l)}function pc(t,n){return n=dl({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function dl(t,n){return t=Gt(22,t,null,n),t.lanes=0,t}function gc(t,n,l){return pr(n,t.child,null,l),t=pc(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function p3(t,n,l){t.lanes|=n;var d=t.alternate;d!==null&&(d.lanes|=n),Ho(t.return,n,l)}function xc(t,n,l,d,x,y){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:x,treeForkCount:y}:(S.isBackwards=n,S.rendering=null,S.renderingStartTime=0,S.last=d,S.tail=l,S.tailMode=x,S.treeForkCount=y)}function g3(t,n,l){var d=n.pendingProps,x=d.revealOrder,y=d.tail;d=d.children;var S=nt.current,V=(S&2)!==0;if(V?(S=S&1|2,n.flags|=128):S&=1,re(nt,S),wt(t,n,d,l),d=He?i0:0,!V&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&p3(t,l,n);else if(t.tag===19)p3(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(x){case"forwards":for(l=n.child,x=null;l!==null;)t=l.alternate,t!==null&&Wi(t)===null&&(x=l),l=l.sibling;l=x,l===null?(x=n.child,n.child=null):(x=l.sibling,l.sibling=null),xc(n,!1,x,l,y,d);break;case"backwards":case"unstable_legacy-backwards":for(l=null,x=n.child,n.child=null;x!==null;){if(t=x.alternate,t!==null&&Wi(t)===null){n.child=x;break}t=x.sibling,x.sibling=l,l=x,x=t}xc(n,!0,l,null,y,d);break;case"together":xc(n,!1,null,null,void 0,d);break;default:n.memoizedState=null}return n.child}function an(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),Vn|=n.lanes,(l&n.childLanes)===0)if(t!==null){if(Wr(t,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(s(153));if(n.child!==null){for(t=n.child,l=Xa(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=Xa(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}function vc(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Pi(t)))}function CN(t,n,l){switch(n.tag){case 3:fe(n,n.stateNode.containerInfo),Sn(n,st,t.memoizedState.cache),cr();break;case 27:case 5:le(n);break;case 4:fe(n,n.stateNode.containerInfo);break;case 10:Sn(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Uo(n),null;break;case 13:var d=n.memoizedState;if(d!==null)return d.dehydrated!==null?(Cn(n),n.flags|=128,null):(l&n.child.childLanes)!==0?m3(t,n,l):(Cn(n),t=an(t,n,l),t!==null?t.sibling:null);Cn(n);break;case 19:var x=(t.flags&128)!==0;if(d=(l&n.childLanes)!==0,d||(Wr(t,n,l,!1),d=(l&n.childLanes)!==0),x){if(d)return g3(t,n,l);n.flags|=128}if(x=n.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),re(nt,nt.current),d)break;return null;case 22:return n.lanes=0,o3(t,n,l,n.pendingProps);case 24:Sn(n,st,t.memoizedState.cache)}return an(t,n,l)}function x3(t,n,l){if(t!==null)if(t.memoizedProps!==n.pendingProps)lt=!0;else{if(!vc(t,l)&&(n.flags&128)===0)return lt=!1,CN(t,n,l);lt=(t.flags&131072)!==0}else lt=!1,He&&(n.flags&1048576)!==0&&Km(n,i0,n.index);switch(n.lanes=0,n.tag){case 16:e:{var d=n.pendingProps;if(t=hr(n.elementType),n.type=t,typeof t=="function")Eo(t)?(d=xr(t,d),n.tag=1,n=f3(null,n,t,d,l)):(n.tag=0,n=dc(null,n,t,d,l));else{if(t!=null){var x=t.$$typeof;if(x===H){n.tag=11,n=s3(null,n,t,d,l);break e}else if(x===T){n.tag=14,n=i3(null,n,t,d,l);break e}}throw n=ee(t)||t,Error(s(306,n,""))}}return n;case 0:return dc(t,n,n.type,n.pendingProps,l);case 1:return d=n.type,x=xr(d,n.pendingProps),f3(t,n,d,x,l);case 3:e:{if(fe(n,n.stateNode.containerInfo),t===null)throw Error(s(387));d=n.pendingProps;var y=n.memoizedState;x=y.element,Oo(t,n),m0(n,d,null,l);var S=n.memoizedState;if(d=S.cache,Sn(n,st,d),d!==y.cache&&Zo(n,[st],l,!0),h0(),d=S.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=h3(t,n,d,l);break e}else if(d!==x){x=na(Error(s(424)),n),l0(x),n=h3(t,n,d,l);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Pe=oa(t.firstChild),yt=n,He=!0,En=null,ia=!0,l=op(n,null,d,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(cr(),d===x){n=an(t,n,l);break e}wt(t,n,d,l)}n=n.child}return n;case 26:return ul(t,n),t===null?(l=_5(n.type,null,n.pendingProps,null))?n.memoizedState=l:He||(l=n.type,t=n.pendingProps,d=Nl(I.current).createElement(l),d[vt]=n,d[Vt]=t,At(d,l,t),gt(d),n.stateNode=d):n.memoizedState=_5(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return le(n),t===null&&He&&(d=n.stateNode=S5(n.type,n.pendingProps,I.current),yt=n,ia=!0,x=Pe,On(n.type)?(Qc=x,Pe=oa(d.firstChild)):Pe=x),wt(t,n,n.pendingProps.children,l),ul(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&He&&((x=d=Pe)&&(d=s_(d,n.type,n.pendingProps,ia),d!==null?(n.stateNode=d,yt=n,Pe=oa(d.firstChild),ia=!1,x=!0):x=!1),x||jn(n)),le(n),x=n.type,y=n.pendingProps,S=t!==null?t.memoizedProps:null,d=y.children,$c(x,y)?d=null:S!==null&&$c(x,S)&&(n.flags|=32),n.memoizedState!==null&&(x=Po(t,n,bN,null,null,l),L0._currentValue=x),ul(t,n),wt(t,n,d,l),n.child;case 6:return t===null&&He&&((t=l=Pe)&&(l=i_(l,n.pendingProps,ia),l!==null?(n.stateNode=l,yt=n,Pe=null,t=!0):t=!1),t||jn(n)),null;case 13:return m3(t,n,l);case 4:return fe(n,n.stateNode.containerInfo),d=n.pendingProps,t===null?n.child=pr(n,null,d,l):wt(t,n,d,l),n.child;case 11:return s3(t,n,n.type,n.pendingProps,l);case 7:return wt(t,n,n.pendingProps,l),n.child;case 8:return wt(t,n,n.pendingProps.children,l),n.child;case 12:return wt(t,n,n.pendingProps.children,l),n.child;case 10:return d=n.pendingProps,Sn(n,n.type,d.value),wt(t,n,d.children,l),n.child;case 9:return x=n.type._context,d=n.pendingProps.children,dr(n),x=bt(x),d=d(x),n.flags|=1,wt(t,n,d,l),n.child;case 14:return i3(t,n,n.type,n.pendingProps,l);case 15:return l3(t,n,n.type,n.pendingProps,l);case 19:return g3(t,n,l);case 31:return _N(t,n,l);case 22:return o3(t,n,l,n.pendingProps);case 24:return dr(n),d=bt(st),t===null?(x=Ro(),x===null&&(x=Be,y=Vo(),x.pooledCache=y,y.refCount++,y!==null&&(x.pooledCacheLanes|=l),x=y),n.memoizedState={parent:d,cache:x},Do(n),Sn(n,st,x)):((t.lanes&l)!==0&&(Oo(t,n),m0(n,null,null,l),h0()),x=t.memoizedState,y=n.memoizedState,x.parent!==d?(x={parent:d,cache:d},n.memoizedState=x,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=x),Sn(n,st,d)):(d=y.cache,Sn(n,st,d),d!==x.cache&&Zo(n,[st],l,!0))),wt(t,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function nn(t){t.flags|=4}function yc(t,n,l,d,x){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(x&335544128)===x)if(t.stateNode.complete)t.flags|=8192;else if(I3())t.flags|=8192;else throw mr=Ki,ko}else t.flags&=-16777217}function v3(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!V5(n))if(I3())t.flags|=8192;else throw mr=Ki,ko}function fl(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Q6():536870912,t.lanes|=n,ds|=n)}function b0(t,n){if(!He)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function $e(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,d=0;if(n)for(var x=t.child;x!==null;)l|=x.lanes|x.childLanes,d|=x.subtreeFlags&65011712,d|=x.flags&65011712,x.return=t,x=x.sibling;else for(x=t.child;x!==null;)l|=x.lanes|x.childLanes,d|=x.subtreeFlags,d|=x.flags,x.return=t,x=x.sibling;return t.subtreeFlags|=d,t.childLanes=l,n}function TN(t,n,l){var d=n.pendingProps;switch(No(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(n),null;case 1:return $e(n),null;case 3:return l=n.stateNode,d=null,t!==null&&(d=t.memoizedState.cache),n.memoizedState.cache!==d&&(n.flags|=2048),Wa(st),be(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Jr(n)?nn(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Co())),$e(n),null;case 26:var x=n.type,y=n.memoizedState;return t===null?(nn(n),y!==null?($e(n),v3(n,y)):($e(n),yc(n,x,null,d,l))):y?y!==t.memoizedState?(nn(n),$e(n),v3(n,y)):($e(n),n.flags&=-16777217):(t=t.memoizedProps,t!==d&&nn(n),$e(n),yc(n,x,t,d,l)),null;case 27:if(ve(n),l=I.current,x=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==d&&nn(n);else{if(!d){if(n.stateNode===null)throw Error(s(166));return $e(n),null}t=F.current,Jr(n)?Qm(n):(t=S5(x,d,l),n.stateNode=t,nn(n))}return $e(n),null;case 5:if(ve(n),x=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==d&&nn(n);else{if(!d){if(n.stateNode===null)throw Error(s(166));return $e(n),null}if(y=F.current,Jr(n))Qm(n);else{var S=Nl(I.current);switch(y){case 1:y=S.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:y=S.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":y=S.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":y=S.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":y=S.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof d.is=="string"?S.createElement("select",{is:d.is}):S.createElement("select"),d.multiple?y.multiple=!0:d.size&&(y.size=d.size);break;default:y=typeof d.is=="string"?S.createElement(x,{is:d.is}):S.createElement(x)}}y[vt]=n,y[Vt]=d;e:for(S=n.child;S!==null;){if(S.tag===5||S.tag===6)y.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===n)break e;for(;S.sibling===null;){if(S.return===null||S.return===n)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}n.stateNode=y;e:switch(At(y,x,d),x){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&nn(n)}}return $e(n),yc(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,l),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==d&&nn(n);else{if(typeof d!="string"&&n.stateNode===null)throw Error(s(166));if(t=I.current,Jr(n)){if(t=n.stateNode,l=n.memoizedProps,d=null,x=yt,x!==null)switch(x.tag){case 27:case 5:d=x.memoizedProps}t[vt]=n,t=!!(t.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||m5(t.nodeValue,l)),t||jn(n,!0)}else t=Nl(t).createTextNode(d),t[vt]=n,n.stateNode=t}return $e(n),null;case 31:if(l=n.memoizedState,t===null||t.memoizedState!==null){if(d=Jr(n),l!==null){if(t===null){if(!d)throw Error(s(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[vt]=n}else cr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),t=!1}else l=Co(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return n.flags&256?(Kt(n),n):(Kt(n),null);if((n.flags&128)!==0)throw Error(s(558))}return $e(n),null;case 13:if(d=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(x=Jr(n),d!==null&&d.dehydrated!==null){if(t===null){if(!x)throw Error(s(318));if(x=n.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(s(317));x[vt]=n}else cr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),x=!1}else x=Co(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=x),x=!0;if(!x)return n.flags&256?(Kt(n),n):(Kt(n),null)}return Kt(n),(n.flags&128)!==0?(n.lanes=l,n):(l=d!==null,t=t!==null&&t.memoizedState!==null,l&&(d=n.child,x=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(x=d.alternate.memoizedState.cachePool.pool),y=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==x&&(d.flags|=2048)),l!==t&&l&&(n.child.flags|=8192),fl(n,n.updateQueue),$e(n),null);case 4:return be(),t===null&&Fc(n.stateNode.containerInfo),$e(n),null;case 10:return Wa(n.type),$e(n),null;case 19:if(W(nt),d=n.memoizedState,d===null)return $e(n),null;if(x=(n.flags&128)!==0,y=d.rendering,y===null)if(x)b0(d,!1);else{if(et!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(y=Wi(t),y!==null){for(n.flags|=128,b0(d,!1),t=y.updateQueue,n.updateQueue=t,fl(n,t),n.subtreeFlags=0,t=l,l=n.child;l!==null;)$m(l,t),l=l.sibling;return re(nt,nt.current&1|2),He&&Qa(n,d.treeForkCount),n.child}t=t.sibling}d.tail!==null&&pt()>xl&&(n.flags|=128,x=!0,b0(d,!1),n.lanes=4194304)}else{if(!x)if(t=Wi(y),t!==null){if(n.flags|=128,x=!0,t=t.updateQueue,n.updateQueue=t,fl(n,t),b0(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!He)return $e(n),null}else 2*pt()-d.renderingStartTime>xl&&l!==536870912&&(n.flags|=128,x=!0,b0(d,!1),n.lanes=4194304);d.isBackwards?(y.sibling=n.child,n.child=y):(t=d.last,t!==null?t.sibling=y:n.child=y,d.last=y)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=pt(),t.sibling=null,l=nt.current,re(nt,x?l&1|2:l&1),He&&Qa(n,d.treeForkCount),t):($e(n),null);case 22:case 23:return Kt(n),Bo(),d=n.memoizedState!==null,t!==null?t.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(l&536870912)!==0&&(n.flags&128)===0&&($e(n),n.subtreeFlags&6&&(n.flags|=8192)):$e(n),l=n.updateQueue,l!==null&&fl(n,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==l&&(n.flags|=2048),t!==null&&W(fr),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Wa(st),$e(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function HN(t,n){switch(No(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Wa(st),be(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return ve(n),null;case 31:if(n.memoizedState!==null){if(Kt(n),n.alternate===null)throw Error(s(340));cr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Kt(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(s(340));cr()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return W(nt),null;case 4:return be(),null;case 10:return Wa(n.type),null;case 22:case 23:return Kt(n),Bo(),t!==null&&W(fr),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Wa(st),null;case 25:return null;default:return null}}function y3(t,n){switch(No(n),n.tag){case 3:Wa(st),be();break;case 26:case 27:case 5:ve(n);break;case 4:be();break;case 31:n.memoizedState!==null&&Kt(n);break;case 13:Kt(n);break;case 19:W(nt);break;case 10:Wa(n.type);break;case 22:case 23:Kt(n),Bo(),t!==null&&W(fr);break;case 24:Wa(st)}}function w0(t,n){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var x=d.next;l=x;do{if((l.tag&t)===t){d=void 0;var y=l.create,S=l.inst;d=y(),S.destroy=d}l=l.next}while(l!==x)}}catch(V){Oe(n,n.return,V)}}function Hn(t,n,l){try{var d=n.updateQueue,x=d!==null?d.lastEffect:null;if(x!==null){var y=x.next;d=y;do{if((d.tag&t)===t){var S=d.inst,V=S.destroy;if(V!==void 0){S.destroy=void 0,x=n;var O=l,K=V;try{K()}catch(te){Oe(x,O,te)}}}d=d.next}while(d!==y)}}catch(te){Oe(n,n.return,te)}}function b3(t){var n=t.updateQueue;if(n!==null){var l=t.stateNode;try{up(n,l)}catch(d){Oe(t,t.return,d)}}}function w3(t,n,l){l.props=xr(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(d){Oe(t,n,d)}}function A0(t,n){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var d=t.stateNode;break;case 30:d=t.stateNode;break;default:d=t.stateNode}typeof l=="function"?t.refCleanup=l(d):l.current=d}}catch(x){Oe(t,n,x)}}function La(t,n){var l=t.ref,d=t.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(x){Oe(t,n,x)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(x){Oe(t,n,x)}else l.current=null}function A3(t){var n=t.type,l=t.memoizedProps,d=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&d.focus();break e;case"img":l.src?d.src=l.src:l.srcSet&&(d.srcset=l.srcSet)}}catch(x){Oe(t,t.return,x)}}function bc(t,n,l){try{var d=t.stateNode;WN(d,t.type,l,n),d[Vt]=n}catch(x){Oe(t,t.return,x)}}function E3(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&On(t.type)||t.tag===4}function wc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||E3(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&&On(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 Ac(t,n,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(t),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Ya));else if(d!==4&&(d===27&&On(t.type)&&(l=t.stateNode,n=null),t=t.child,t!==null))for(Ac(t,n,l),t=t.sibling;t!==null;)Ac(t,n,l),t=t.sibling}function hl(t,n,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?l.insertBefore(t,n):l.appendChild(t);else if(d!==4&&(d===27&&On(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(hl(t,n,l),t=t.sibling;t!==null;)hl(t,n,l),t=t.sibling}function j3(t){var n=t.stateNode,l=t.memoizedProps;try{for(var d=t.type,x=n.attributes;x.length;)n.removeAttributeNode(x[0]);At(n,d,l),n[vt]=t,n[Vt]=l}catch(y){Oe(t,t.return,y)}}var rn=!1,ot=!1,Ec=!1,S3=typeof WeakSet=="function"?WeakSet:Set,xt=null;function ZN(t,n){if(t=t.containerInfo,Ic=Ll,t=Dm(t),go(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var x=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var S=0,V=-1,O=-1,K=0,te=0,se=t,X=null;t:for(;;){for(var J;se!==l||x!==0&&se.nodeType!==3||(V=S+x),se!==y||d!==0&&se.nodeType!==3||(O=S+d),se.nodeType===3&&(S+=se.nodeValue.length),(J=se.firstChild)!==null;)X=se,se=J;for(;;){if(se===t)break t;if(X===l&&++K===x&&(V=S),X===y&&++te===d&&(O=S),(J=se.nextSibling)!==null)break;se=X,X=se.parentNode}se=J}l=V===-1||O===-1?null:{start:V,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for(Pc={focusedElem:t,selectionRange:l},Ll=!1,xt=n;xt!==null;)if(n=xt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,xt=t;else for(;xt!==null;){switch(n=xt,y=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)x=t[l],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&y!==null){t=void 0,l=n,x=y.memoizedProps,y=y.memoizedState,d=l.stateNode;try{var me=xr(l.type,x);t=d.getSnapshotBeforeUpdate(me,y),d.__reactInternalSnapshotBeforeUpdate=t}catch(we){Oe(l,l.return,we)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,l=t.nodeType,l===9)Yc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Yc(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(s(163))}if(t=n.sibling,t!==null){t.return=n.return,xt=t;break}xt=n.return}}function M3(t,n,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:ln(t,l),d&4&&w0(5,l);break;case 1:if(ln(t,l),d&4)if(t=l.stateNode,n===null)try{t.componentDidMount()}catch(S){Oe(l,l.return,S)}else{var x=xr(l.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(x,n,t.__reactInternalSnapshotBeforeUpdate)}catch(S){Oe(l,l.return,S)}}d&64&&b3(l),d&512&&A0(l,l.return);break;case 3:if(ln(t,l),d&64&&(t=l.updateQueue,t!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{up(t,n)}catch(S){Oe(l,l.return,S)}}break;case 27:n===null&&d&4&&j3(l);case 26:case 5:ln(t,l),n===null&&d&4&&A3(l),d&512&&A0(l,l.return);break;case 12:ln(t,l);break;case 31:ln(t,l),d&4&&C3(t,l);break;case 13:ln(t,l),d&4&&T3(t,l),d&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=FN.bind(null,l),l_(t,l))));break;case 22:if(d=l.memoizedState!==null||rn,!d){n=n!==null&&n.memoizedState!==null||ot,x=rn;var y=ot;rn=d,(ot=n)&&!y?on(t,l,(l.subtreeFlags&8772)!==0):ln(t,l),rn=x,ot=y}break;case 30:break;default:ln(t,l)}}function N3(t){var n=t.alternate;n!==null&&(t.alternate=null,N3(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&J1(n)),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 Ye=null,Rt=!1;function sn(t,n,l){for(l=l.child;l!==null;)_3(t,n,l),l=l.sibling}function _3(t,n,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(Zt,l)}catch{}switch(l.tag){case 26:ot||La(l,n),sn(t,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ot||La(l,n);var d=Ye,x=Rt;On(l.type)&&(Ye=l.stateNode,Rt=!1),sn(t,n,l),H0(l.stateNode),Ye=d,Rt=x;break;case 5:ot||La(l,n);case 6:if(d=Ye,x=Rt,Ye=null,sn(t,n,l),Ye=d,Rt=x,Ye!==null)if(Rt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(l.stateNode)}catch(y){Oe(l,n,y)}else try{Ye.removeChild(l.stateNode)}catch(y){Oe(l,n,y)}break;case 18:Ye!==null&&(Rt?(t=Ye,b5(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ys(t)):b5(Ye,l.stateNode));break;case 4:d=Ye,x=Rt,Ye=l.stateNode.containerInfo,Rt=!0,sn(t,n,l),Ye=d,Rt=x;break;case 0:case 11:case 14:case 15:Hn(2,l,n),ot||Hn(4,l,n),sn(t,n,l);break;case 1:ot||(La(l,n),d=l.stateNode,typeof d.componentWillUnmount=="function"&&w3(l,n,d)),sn(t,n,l);break;case 21:sn(t,n,l);break;case 22:ot=(d=ot)||l.memoizedState!==null,sn(t,n,l),ot=d;break;default:sn(t,n,l)}}function C3(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ys(t)}catch(l){Oe(n,n.return,l)}}}function T3(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ys(t)}catch(l){Oe(n,n.return,l)}}function VN(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new S3),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new S3),n;default:throw Error(s(435,t.tag))}}function ml(t,n){var l=VN(t);n.forEach(function(d){if(!l.has(d)){l.add(d);var x=BN.bind(null,t,d);d.then(x,x)}})}function kt(t,n){var l=n.deletions;if(l!==null)for(var d=0;d<l.length;d++){var x=l[d],y=t,S=n,V=S;e:for(;V!==null;){switch(V.tag){case 27:if(On(V.type)){Ye=V.stateNode,Rt=!1;break e}break;case 5:Ye=V.stateNode,Rt=!1;break e;case 3:case 4:Ye=V.stateNode.containerInfo,Rt=!0;break e}V=V.return}if(Ye===null)throw Error(s(160));_3(y,S,x),Ye=null,Rt=!1,y=x.alternate,y!==null&&(y.return=null),x.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)H3(n,t),n=n.sibling}var ba=null;function H3(t,n){var l=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:kt(n,t),Dt(t),d&4&&(Hn(3,t,t.return),w0(3,t),Hn(5,t,t.return));break;case 1:kt(n,t),Dt(t),d&512&&(ot||l===null||La(l,l.return)),d&64&&rn&&(t=t.updateQueue,t!==null&&(d=t.callbacks,d!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var x=ba;if(kt(n,t),Dt(t),d&512&&(ot||l===null||La(l,l.return)),d&4){var y=l!==null?l.memoizedState:null;if(d=t.memoizedState,l===null)if(d===null)if(t.stateNode===null){e:{d=t.type,l=t.memoizedProps,x=x.ownerDocument||x;t:switch(d){case"title":y=x.getElementsByTagName("title")[0],(!y||y[Ks]||y[vt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=x.createElement(d),x.head.insertBefore(y,x.querySelector("head > title"))),At(y,d,l),y[vt]=t,gt(y),d=y;break e;case"link":var S=H5("link","href",x).get(d+(l.href||""));if(S){for(var V=0;V<S.length;V++)if(y=S[V],y.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&y.getAttribute("rel")===(l.rel==null?null:l.rel)&&y.getAttribute("title")===(l.title==null?null:l.title)&&y.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(V,1);break t}}y=x.createElement(d),At(y,d,l),x.head.appendChild(y);break;case"meta":if(S=H5("meta","content",x).get(d+(l.content||""))){for(V=0;V<S.length;V++)if(y=S[V],y.getAttribute("content")===(l.content==null?null:""+l.content)&&y.getAttribute("name")===(l.name==null?null:l.name)&&y.getAttribute("property")===(l.property==null?null:l.property)&&y.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&y.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(V,1);break t}}y=x.createElement(d),At(y,d,l),x.head.appendChild(y);break;default:throw Error(s(468,d))}y[vt]=t,gt(y),d=y}t.stateNode=d}else Z5(x,t.type,t.stateNode);else t.stateNode=T5(x,d,t.memoizedProps);else y!==d?(y===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):y.count--,d===null?Z5(x,t.type,t.stateNode):T5(x,d,t.memoizedProps)):d===null&&t.stateNode!==null&&bc(t,t.memoizedProps,l.memoizedProps)}break;case 27:kt(n,t),Dt(t),d&512&&(ot||l===null||La(l,l.return)),l!==null&&d&4&&bc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(kt(n,t),Dt(t),d&512&&(ot||l===null||La(l,l.return)),t.flags&32){x=t.stateNode;try{Br(x,"")}catch(me){Oe(t,t.return,me)}}d&4&&t.stateNode!=null&&(x=t.memoizedProps,bc(t,x,l!==null?l.memoizedProps:x)),d&1024&&(Ec=!0);break;case 6:if(kt(n,t),Dt(t),d&4){if(t.stateNode===null)throw Error(s(162));d=t.memoizedProps,l=t.stateNode;try{l.nodeValue=d}catch(me){Oe(t,t.return,me)}}break;case 3:if(Tl=null,x=ba,ba=_l(n.containerInfo),kt(n,t),ba=x,Dt(t),d&4&&l!==null&&l.memoizedState.isDehydrated)try{ys(n.containerInfo)}catch(me){Oe(t,t.return,me)}Ec&&(Ec=!1,Z3(t));break;case 4:d=ba,ba=_l(t.stateNode.containerInfo),kt(n,t),Dt(t),ba=d;break;case 12:kt(n,t),Dt(t);break;case 31:kt(n,t),Dt(t),d&4&&(d=t.updateQueue,d!==null&&(t.updateQueue=null,ml(t,d)));break;case 13:kt(n,t),Dt(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(gl=pt()),d&4&&(d=t.updateQueue,d!==null&&(t.updateQueue=null,ml(t,d)));break;case 22:x=t.memoizedState!==null;var O=l!==null&&l.memoizedState!==null,K=rn,te=ot;if(rn=K||x,ot=te||O,kt(n,t),ot=te,rn=K,Dt(t),d&8192)e:for(n=t.stateNode,n._visibility=x?n._visibility&-2:n._visibility|1,x&&(l===null||O||rn||ot||vr(t)),l=null,n=t;;){if(n.tag===5||n.tag===26){if(l===null){O=l=n;try{if(y=O.stateNode,x)S=y.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{V=O.stateNode;var se=O.memoizedProps.style,X=se!=null&&se.hasOwnProperty("display")?se.display:null;V.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(me){Oe(O,O.return,me)}}}else if(n.tag===6){if(l===null){O=n;try{O.stateNode.nodeValue=x?"":O.memoizedProps}catch(me){Oe(O,O.return,me)}}}else if(n.tag===18){if(l===null){O=n;try{var J=O.stateNode;x?w5(J,!0):w5(O.stateNode,!1)}catch(me){Oe(O,O.return,me)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}d&4&&(d=t.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,ml(t,l))));break;case 19:kt(n,t),Dt(t),d&4&&(d=t.updateQueue,d!==null&&(t.updateQueue=null,ml(t,d)));break;case 30:break;case 21:break;default:kt(n,t),Dt(t)}}function Dt(t){var n=t.flags;if(n&2){try{for(var l,d=t.return;d!==null;){if(E3(d)){l=d;break}d=d.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var x=l.stateNode,y=wc(t);hl(t,y,x);break;case 5:var S=l.stateNode;l.flags&32&&(Br(S,""),l.flags&=-33);var V=wc(t);hl(t,V,S);break;case 3:case 4:var O=l.stateNode.containerInfo,K=wc(t);Ac(t,K,O);break;default:throw Error(s(161))}}catch(te){Oe(t,t.return,te)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Z3(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Z3(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function ln(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)M3(t,n.alternate,n),n=n.sibling}function vr(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Hn(4,n,n.return),vr(n);break;case 1:La(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&w3(n,n.return,l),vr(n);break;case 27:H0(n.stateNode);case 26:case 5:La(n,n.return),vr(n);break;case 22:n.memoizedState===null&&vr(n);break;case 30:vr(n);break;default:vr(n)}t=t.sibling}}function on(t,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var d=n.alternate,x=t,y=n,S=y.flags;switch(y.tag){case 0:case 11:case 15:on(x,y,l),w0(4,y);break;case 1:if(on(x,y,l),d=y,x=d.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(K){Oe(d,d.return,K)}if(d=y,x=d.updateQueue,x!==null){var V=d.stateNode;try{var O=x.shared.hiddenCallbacks;if(O!==null)for(x.shared.hiddenCallbacks=null,x=0;x<O.length;x++)cp(O[x],V)}catch(K){Oe(d,d.return,K)}}l&&S&64&&b3(y),A0(y,y.return);break;case 27:j3(y);case 26:case 5:on(x,y,l),l&&d===null&&S&4&&A3(y),A0(y,y.return);break;case 12:on(x,y,l);break;case 31:on(x,y,l),l&&S&4&&C3(x,y);break;case 13:on(x,y,l),l&&S&4&&T3(x,y);break;case 22:y.memoizedState===null&&on(x,y,l),A0(y,y.return);break;case 30:break;default:on(x,y,l)}n=n.sibling}}function jc(t,n){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&o0(l))}function Sc(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&o0(t))}function wa(t,n,l,d){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)V3(t,n,l,d),n=n.sibling}function V3(t,n,l,d){var x=n.flags;switch(n.tag){case 0:case 11:case 15:wa(t,n,l,d),x&2048&&w0(9,n);break;case 1:wa(t,n,l,d);break;case 3:wa(t,n,l,d),x&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&o0(t)));break;case 12:if(x&2048){wa(t,n,l,d),t=n.stateNode;try{var y=n.memoizedProps,S=y.id,V=y.onPostCommit;typeof V=="function"&&V(S,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){Oe(n,n.return,O)}}else wa(t,n,l,d);break;case 31:wa(t,n,l,d);break;case 13:wa(t,n,l,d);break;case 23:break;case 22:y=n.stateNode,S=n.alternate,n.memoizedState!==null?y._visibility&2?wa(t,n,l,d):E0(t,n):y._visibility&2?wa(t,n,l,d):(y._visibility|=2,os(t,n,l,d,(n.subtreeFlags&10256)!==0||!1)),x&2048&&jc(S,n);break;case 24:wa(t,n,l,d),x&2048&&Sc(n.alternate,n);break;default:wa(t,n,l,d)}}function os(t,n,l,d,x){for(x=x&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var y=t,S=n,V=l,O=d,K=S.flags;switch(S.tag){case 0:case 11:case 15:os(y,S,V,O,x),w0(8,S);break;case 23:break;case 22:var te=S.stateNode;S.memoizedState!==null?te._visibility&2?os(y,S,V,O,x):E0(y,S):(te._visibility|=2,os(y,S,V,O,x)),x&&K&2048&&jc(S.alternate,S);break;case 24:os(y,S,V,O,x),x&&K&2048&&Sc(S.alternate,S);break;default:os(y,S,V,O,x)}n=n.sibling}}function E0(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=t,d=n,x=d.flags;switch(d.tag){case 22:E0(l,d),x&2048&&jc(d.alternate,d);break;case 24:E0(l,d),x&2048&&Sc(d.alternate,d);break;default:E0(l,d)}n=n.sibling}}var j0=8192;function cs(t,n,l){if(t.subtreeFlags&j0)for(t=t.child;t!==null;)L3(t,n,l),t=t.sibling}function L3(t,n,l){switch(t.tag){case 26:cs(t,n,l),t.flags&j0&&t.memoizedState!==null&&y_(l,ba,t.memoizedState,t.memoizedProps);break;case 5:cs(t,n,l);break;case 3:case 4:var d=ba;ba=_l(t.stateNode.containerInfo),cs(t,n,l),ba=d;break;case 22:t.memoizedState===null&&(d=t.alternate,d!==null&&d.memoizedState!==null?(d=j0,j0=16777216,cs(t,n,l),j0=d):cs(t,n,l));break;default:cs(t,n,l)}}function R3(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function S0(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l];xt=d,D3(d,t)}R3(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)k3(t),t=t.sibling}function k3(t){switch(t.tag){case 0:case 11:case 15:S0(t),t.flags&2048&&Hn(9,t,t.return);break;case 3:S0(t);break;case 12:S0(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,pl(t)):S0(t);break;default:S0(t)}}function pl(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l];xt=d,D3(d,t)}R3(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Hn(8,n,n.return),pl(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,pl(n));break;default:pl(n)}t=t.sibling}}function D3(t,n){for(;xt!==null;){var l=xt;switch(l.tag){case 0:case 11:case 15:Hn(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var d=l.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:o0(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,xt=d;else e:for(l=t;xt!==null;){d=xt;var x=d.sibling,y=d.return;if(N3(d),d===l){xt=null;break e}if(x!==null){x.return=y,xt=x;break e}xt=y}}}var LN={getCacheForType:function(t){var n=bt(st),l=n.data.get(t);return l===void 0&&(l=t(),n.data.set(t,l)),l},cacheSignal:function(){return bt(st).controller.signal}},RN=typeof WeakMap=="function"?WeakMap:Map,ke=0,Be=null,Me=null,Ce=0,De=0,Xt=null,Zn=!1,us=!1,Mc=!1,cn=0,et=0,Vn=0,yr=0,Nc=0,Qt=0,ds=0,M0=null,Ot=null,_c=!1,gl=0,O3=0,xl=1/0,vl=null,Ln=null,ft=0,Rn=null,fs=null,un=0,Cc=0,Tc=null,q3=null,N0=0,Hc=null;function Jt(){return(ke&2)!==0&&Ce!==0?Ce&-Ce:D.T!==null?Dc():tm()}function z3(){if(Qt===0)if((Ce&536870912)===0||He){var t=Mi;Mi<<=1,(Mi&3932160)===0&&(Mi=262144),Qt=t}else Qt=536870912;return t=Yt.current,t!==null&&(t.flags|=32),Qt}function qt(t,n,l){(t===Be&&(De===2||De===9)||t.cancelPendingCommit!==null)&&(hs(t,0),kn(t,Ce,Qt,!1)),Ys(t,l),((ke&2)===0||t!==Be)&&(t===Be&&((ke&2)===0&&(yr|=l),et===4&&kn(t,Ce,Qt,!1)),Ra(t))}function F3(t,n,l){if((ke&6)!==0)throw Error(s(327));var d=!l&&(n&127)===0&&(n&t.expiredLanes)===0||Gs(t,n),x=d?ON(t,n):Vc(t,n,!0),y=d;do{if(x===0){us&&!d&&kn(t,n,0,!1);break}else{if(l=t.current.alternate,y&&!kN(l)){x=Vc(t,n,!1),y=!1;continue}if(x===2){if(y=n,t.errorRecoveryDisabledLanes&y)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){n=S;e:{var V=t;x=M0;var O=V.current.memoizedState.isDehydrated;if(O&&(hs(V,S).flags|=256),S=Vc(V,S,!1),S!==2){if(Mc&&!O){V.errorRecoveryDisabledLanes|=y,yr|=y,x=4;break e}y=Ot,Ot=x,y!==null&&(Ot===null?Ot=y:Ot.push.apply(Ot,y))}x=S}if(y=!1,x!==2)continue}}if(x===1){hs(t,0),kn(t,n,0,!0);break}e:{switch(d=t,y=x,y){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:kn(d,n,Qt,!Zn);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(x=gl+300-pt(),10<x)){if(kn(d,n,Qt,!Zn),_i(d,0,!0)!==0)break e;un=n,d.timeoutHandle=v5(B3.bind(null,d,l,Ot,vl,_c,n,Qt,yr,ds,Zn,y,"Throttled",-0,0),x);break e}B3(d,l,Ot,vl,_c,n,Qt,yr,ds,Zn,y,null,-0,0)}}break}while(!0);Ra(t)}function B3(t,n,l,d,x,y,S,V,O,K,te,se,X,J){if(t.timeoutHandle=-1,se=n.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ya},L3(n,y,se);var me=(y&62914560)===y?gl-pt():(y&4194048)===y?O3-pt():0;if(me=b_(se,me),me!==null){un=y,t.cancelPendingCommit=me(X3.bind(null,t,n,y,l,d,x,S,V,O,te,se,null,X,J)),kn(t,y,S,!K);return}}X3(t,n,y,l,d,x,S,V,O)}function kN(t){for(var n=t;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var x=l[d],y=x.getSnapshot;x=x.value;try{if(!$t(y(),x))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function kn(t,n,l,d){n&=~Nc,n&=~yr,t.suspendedLanes|=n,t.pingedLanes&=~n,d&&(t.warmLanes|=n),d=t.expirationTimes;for(var x=n;0<x;){var y=31-Pt(x),S=1<<y;d[y]=-1,x&=~S}l!==0&&J6(t,l,n)}function yl(){return(ke&6)===0?(_0(0),!1):!0}function Zc(){if(Me!==null){if(De===0)var t=Me.return;else t=Me,Ja=ur=null,Yo(t),ns=null,u0=0,t=Me;for(;t!==null;)y3(t.alternate,t),t=t.return;Me=null}}function hs(t,n){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,a_(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),un=0,Zc(),Be=t,Me=l=Xa(t.current,null),Ce=n,De=0,Xt=null,Zn=!1,us=Gs(t,n),Mc=!1,ds=Qt=Nc=yr=Vn=et=0,Ot=M0=null,_c=!1,(n&8)!==0&&(n|=n&32);var d=t.entangledLanes;if(d!==0)for(t=t.entanglements,d&=n;0<d;){var x=31-Pt(d),y=1<<x;n|=t[x],d&=~y}return cn=n,zi(),l}function U3(t,n){je=null,D.H=v0,n===as||n===Yi?(n=sp(),De=3):n===ko?(n=sp(),De=4):De=n===uc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Xt=n,Me===null&&(et=1,ol(t,na(n,t.current)))}function I3(){var t=Yt.current;return t===null?!0:(Ce&4194048)===Ce?la===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?t===la:!1}function P3(){var t=D.H;return D.H=v0,t===null?v0:t}function $3(){var t=D.A;return D.A=LN,t}function bl(){et=4,Zn||(Ce&4194048)!==Ce&&Yt.current!==null||(us=!0),(Vn&134217727)===0&&(yr&134217727)===0||Be===null||kn(Be,Ce,Qt,!1)}function Vc(t,n,l){var d=ke;ke|=2;var x=P3(),y=$3();(Be!==t||Ce!==n)&&(vl=null,hs(t,n)),n=!1;var S=et;e:do try{if(De!==0&&Me!==null){var V=Me,O=Xt;switch(De){case 8:Zc(),S=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(n=!0);var K=De;if(De=0,Xt=null,ms(t,V,O,K),l&&us){S=0;break e}break;default:K=De,De=0,Xt=null,ms(t,V,O,K)}}DN(),S=et;break}catch(te){U3(t,te)}while(!0);return n&&t.shellSuspendCounter++,Ja=ur=null,ke=d,D.H=x,D.A=y,Me===null&&(Be=null,Ce=0,zi()),S}function DN(){for(;Me!==null;)G3(Me)}function ON(t,n){var l=ke;ke|=2;var d=P3(),x=$3();Be!==t||Ce!==n?(vl=null,xl=pt()+500,hs(t,n)):us=Gs(t,n);e:do try{if(De!==0&&Me!==null){n=Me;var y=Xt;t:switch(De){case 1:De=0,Xt=null,ms(t,n,y,1);break;case 2:case 9:if(np(y)){De=0,Xt=null,Y3(n);break}n=function(){De!==2&&De!==9||Be!==t||(De=7),Ra(t)},y.then(n,n);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:np(y)?(De=0,Xt=null,Y3(n)):(De=0,Xt=null,ms(t,n,y,7));break;case 5:var S=null;switch(Me.tag){case 26:S=Me.memoizedState;case 5:case 27:var V=Me;if(S?V5(S):V.stateNode.complete){De=0,Xt=null;var O=V.sibling;if(O!==null)Me=O;else{var K=V.return;K!==null?(Me=K,wl(K)):Me=null}break t}}De=0,Xt=null,ms(t,n,y,5);break;case 6:De=0,Xt=null,ms(t,n,y,6);break;case 8:Zc(),et=6;break e;default:throw Error(s(462))}}qN();break}catch(te){U3(t,te)}while(!0);return Ja=ur=null,D.H=d,D.A=x,ke=l,Me!==null?0:(Be=null,Ce=0,zi(),et)}function qN(){for(;Me!==null&&!Ha();)G3(Me)}function G3(t){var n=x3(t.alternate,t,cn);t.memoizedProps=t.pendingProps,n===null?wl(t):Me=n}function Y3(t){var n=t,l=n.alternate;switch(n.tag){case 15:case 0:n=d3(l,n,n.pendingProps,n.type,void 0,Ce);break;case 11:n=d3(l,n,n.pendingProps,n.type.render,n.ref,Ce);break;case 5:Yo(n);default:y3(l,n),n=Me=$m(n,cn),n=x3(l,n,cn)}t.memoizedProps=t.pendingProps,n===null?wl(t):Me=n}function ms(t,n,l,d){Ja=ur=null,Yo(n),ns=null,u0=0;var x=n.return;try{if(NN(t,x,n,l,Ce)){et=1,ol(t,na(l,t.current)),Me=null;return}}catch(y){if(x!==null)throw Me=x,y;et=1,ol(t,na(l,t.current)),Me=null;return}n.flags&32768?(He||d===1?t=!0:us||(Ce&536870912)!==0?t=!1:(Zn=t=!0,(d===2||d===9||d===3||d===6)&&(d=Yt.current,d!==null&&d.tag===13&&(d.flags|=16384))),K3(n,t)):wl(n)}function wl(t){var n=t;do{if((n.flags&32768)!==0){K3(n,Zn);return}t=n.return;var l=TN(n.alternate,n,cn);if(l!==null){Me=l;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=t}while(n!==null);et===0&&(et=5)}function K3(t,n){do{var l=HN(t.alternate,t);if(l!==null){l.flags&=32767,Me=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(t=t.sibling,t!==null)){Me=t;return}Me=t=l}while(t!==null);et=6,Me=null}function X3(t,n,l,d,x,y,S,V,O){t.cancelPendingCommit=null;do Al();while(ft!==0);if((ke&6)!==0)throw Error(s(327));if(n!==null){if(n===t.current)throw Error(s(177));if(y=n.lanes|n.childLanes,y|=wo,vM(t,l,y,S,V,O),t===Be&&(Me=Be=null,Ce=0),fs=n,Rn=t,un=l,Cc=y,Tc=x,q3=d,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,UN(va,function(){return t5(),null})):(t.callbackNode=null,t.callbackPriority=0),d=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||d){d=D.T,D.T=null,x=$.p,$.p=2,S=ke,ke|=4;try{ZN(t,n,l)}finally{ke=S,$.p=x,D.T=d}}ft=1,Q3(),J3(),W3()}}function Q3(){if(ft===1){ft=0;var t=Rn,n=fs,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var d=$.p;$.p=2;var x=ke;ke|=4;try{H3(n,t);var y=Pc,S=Dm(t.containerInfo),V=y.focusedElem,O=y.selectionRange;if(S!==V&&V&&V.ownerDocument&&km(V.ownerDocument.documentElement,V)){if(O!==null&&go(V)){var K=O.start,te=O.end;if(te===void 0&&(te=K),"selectionStart"in V)V.selectionStart=K,V.selectionEnd=Math.min(te,V.value.length);else{var se=V.ownerDocument||document,X=se&&se.defaultView||window;if(X.getSelection){var J=X.getSelection(),me=V.textContent.length,we=Math.min(O.start,me),Fe=O.end===void 0?we:Math.min(O.end,me);!J.extend&&we>Fe&&(S=Fe,Fe=we,we=S);var P=Rm(V,we),U=Rm(V,Fe);if(P&&U&&(J.rangeCount!==1||J.anchorNode!==P.node||J.anchorOffset!==P.offset||J.focusNode!==U.node||J.focusOffset!==U.offset)){var Y=se.createRange();Y.setStart(P.node,P.offset),J.removeAllRanges(),we>Fe?(J.addRange(Y),J.extend(U.node,U.offset)):(Y.setEnd(U.node,U.offset),J.addRange(Y))}}}}for(se=[],J=V;J=J.parentNode;)J.nodeType===1&&se.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<se.length;V++){var ae=se[V];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Ll=!!Ic,Pc=Ic=null}finally{ke=x,$.p=d,D.T=l}}t.current=n,ft=2}}function J3(){if(ft===2){ft=0;var t=Rn,n=fs,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var d=$.p;$.p=2;var x=ke;ke|=4;try{M3(t,n.alternate,n)}finally{ke=x,$.p=d,D.T=l}}ft=3}}function W3(){if(ft===4||ft===3){ft=0,jt();var t=Rn,n=fs,l=un,d=q3;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ft=5:(ft=0,fs=Rn=null,e5(t,t.pendingLanes));var x=t.pendingLanes;if(x===0&&(Ln=null),X1(l),n=n.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(Zt,n,void 0,(n.current.flags&128)===128)}catch{}if(d!==null){n=D.T,x=$.p,$.p=2,D.T=null;try{for(var y=t.onRecoverableError,S=0;S<d.length;S++){var V=d[S];y(V.value,{componentStack:V.stack})}}finally{D.T=n,$.p=x}}(un&3)!==0&&Al(),Ra(t),x=t.pendingLanes,(l&261930)!==0&&(x&42)!==0?t===Hc?N0++:(N0=0,Hc=t):N0=0,_0(0)}}function e5(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,o0(n)))}function Al(){return Q3(),J3(),W3(),t5()}function t5(){if(ft!==5)return!1;var t=Rn,n=Cc;Cc=0;var l=X1(un),d=D.T,x=$.p;try{$.p=32>l?32:l,D.T=null,l=Tc,Tc=null;var y=Rn,S=un;if(ft=0,fs=Rn=null,un=0,(ke&6)!==0)throw Error(s(331));var V=ke;if(ke|=4,k3(y.current),V3(y,y.current,S,l),ke=V,_0(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(Zt,y)}catch{}return!0}finally{$.p=x,D.T=d,e5(t,n)}}function a5(t,n,l){n=na(l,n),n=cc(t.stateNode,n,2),t=_n(t,n,2),t!==null&&(Ys(t,2),Ra(t))}function Oe(t,n,l){if(t.tag===3)a5(t,t,l);else for(;n!==null;){if(n.tag===3){a5(n,t,l);break}else if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ln===null||!Ln.has(d))){t=na(l,t),l=n3(2),d=_n(n,l,2),d!==null&&(r3(l,d,n,t),Ys(d,2),Ra(d));break}}n=n.return}}function Lc(t,n,l){var d=t.pingCache;if(d===null){d=t.pingCache=new RN;var x=new Set;d.set(n,x)}else x=d.get(n),x===void 0&&(x=new Set,d.set(n,x));x.has(l)||(Mc=!0,x.add(l),t=zN.bind(null,t,n,l),n.then(t,t))}function zN(t,n,l){var d=t.pingCache;d!==null&&d.delete(n),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Be===t&&(Ce&l)===l&&(et===4||et===3&&(Ce&62914560)===Ce&&300>pt()-gl?(ke&2)===0&&hs(t,0):Nc|=l,ds===Ce&&(ds=0)),Ra(t)}function n5(t,n){n===0&&(n=Q6()),t=lr(t,n),t!==null&&(Ys(t,n),Ra(t))}function FN(t){var n=t.memoizedState,l=0;n!==null&&(l=n.retryLane),n5(t,l)}function BN(t,n){var l=0;switch(t.tag){case 31:case 13:var d=t.stateNode,x=t.memoizedState;x!==null&&(l=x.retryLane);break;case 19:d=t.stateNode;break;case 22:d=t.stateNode._retryCache;break;default:throw Error(s(314))}d!==null&&d.delete(n),n5(t,l)}function UN(t,n){return Is(t,n)}var El=null,ps=null,Rc=!1,jl=!1,kc=!1,Dn=0;function Ra(t){t!==ps&&t.next===null&&(ps===null?El=ps=t:ps=ps.next=t),jl=!0,Rc||(Rc=!0,PN())}function _0(t,n){if(!kc&&jl){kc=!0;do for(var l=!1,d=El;d!==null;){if(t!==0){var x=d.pendingLanes;if(x===0)var y=0;else{var S=d.suspendedLanes,V=d.pingedLanes;y=(1<<31-Pt(42|t)+1)-1,y&=x&~(S&~V),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(l=!0,l5(d,y))}else y=Ce,y=_i(d,d===Be?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||Gs(d,y)||(l=!0,l5(d,y));d=d.next}while(l);kc=!1}}function IN(){r5()}function r5(){jl=Rc=!1;var t=0;Dn!==0&&t_()&&(t=Dn);for(var n=pt(),l=null,d=El;d!==null;){var x=d.next,y=s5(d,n);y===0?(d.next=null,l===null?El=x:l.next=x,x===null&&(ps=l)):(l=d,(t!==0||(y&3)!==0)&&(jl=!0)),d=x}ft!==0&&ft!==5||_0(t),Dn!==0&&(Dn=0)}function s5(t,n){for(var l=t.suspendedLanes,d=t.pingedLanes,x=t.expirationTimes,y=t.pendingLanes&-62914561;0<y;){var S=31-Pt(y),V=1<<S,O=x[S];O===-1?((V&l)===0||(V&d)!==0)&&(x[S]=xM(V,n)):O<=n&&(t.expiredLanes|=V),y&=~V}if(n=Be,l=Ce,l=_i(t,t===n?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),d=t.callbackNode,l===0||t===n&&(De===2||De===9)||t.cancelPendingCommit!==null)return d!==null&&d!==null&&vn(d),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Gs(t,l)){if(n=l&-l,n===t.callbackPriority)return n;switch(d!==null&&vn(d),X1(l)){case 2:case 8:l=Ps;break;case 32:l=va;break;case 268435456:l=$s;break;default:l=va}return d=i5.bind(null,t),l=Is(l,d),t.callbackPriority=n,t.callbackNode=l,n}return d!==null&&d!==null&&vn(d),t.callbackPriority=2,t.callbackNode=null,2}function i5(t,n){if(ft!==0&&ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Al()&&t.callbackNode!==l)return null;var d=Ce;return d=_i(t,t===Be?d:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),d===0?null:(F3(t,d,n),s5(t,pt()),t.callbackNode!=null&&t.callbackNode===l?i5.bind(null,t):null)}function l5(t,n){if(Al())return null;F3(t,n,!0)}function PN(){n_(function(){(ke&6)!==0?Is(Ai,IN):r5()})}function Dc(){if(Dn===0){var t=es;t===0&&(t=Si,Si<<=1,(Si&261888)===0&&(Si=256)),Dn=t}return Dn}function o5(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zi(""+t)}function c5(t,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,t.id&&l.setAttribute("form",t.id),n.parentNode.insertBefore(l,n),t=new FormData(t),l.parentNode.removeChild(l),t}function $N(t,n,l,d,x){if(n==="submit"&&l&&l.stateNode===x){var y=o5((x[Vt]||null).action),S=d.submitter;S&&(n=(n=S[Vt]||null)?o5(n.formAction):S.getAttribute("formAction"),n!==null&&(y=n,S=null));var V=new ki("action","action",null,d,x);t.push({event:V,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Dn!==0){var O=S?c5(x,S):new FormData(x);nc(l,{pending:!0,data:O,method:x.method,action:y},null,O)}}else typeof y=="function"&&(V.preventDefault(),O=S?c5(x,S):new FormData(x),nc(l,{pending:!0,data:O,method:x.method,action:y},y,O))},currentTarget:x}]})}}for(var Oc=0;Oc<bo.length;Oc++){var qc=bo[Oc],GN=qc.toLowerCase(),YN=qc[0].toUpperCase()+qc.slice(1);ya(GN,"on"+YN)}ya(zm,"onAnimationEnd"),ya(Fm,"onAnimationIteration"),ya(Bm,"onAnimationStart"),ya("dblclick","onDoubleClick"),ya("focusin","onFocus"),ya("focusout","onBlur"),ya(uN,"onTransitionRun"),ya(dN,"onTransitionStart"),ya(fN,"onTransitionCancel"),ya(Um,"onTransitionEnd"),zr("onMouseEnter",["mouseout","mouseover"]),zr("onMouseLeave",["mouseout","mouseover"]),zr("onPointerEnter",["pointerout","pointerover"]),zr("onPointerLeave",["pointerout","pointerover"]),nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nr("onBeforeInput",["compositionend","keypress","textInput","paste"]),nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var C0="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(" "),KN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(C0));function u5(t,n){n=(n&4)!==0;for(var l=0;l<t.length;l++){var d=t[l],x=d.event;d=d.listeners;e:{var y=void 0;if(n)for(var S=d.length-1;0<=S;S--){var V=d[S],O=V.instance,K=V.currentTarget;if(V=V.listener,O!==y&&x.isPropagationStopped())break e;y=V,x.currentTarget=K;try{y(x)}catch(te){qi(te)}x.currentTarget=null,y=O}else for(S=0;S<d.length;S++){if(V=d[S],O=V.instance,K=V.currentTarget,V=V.listener,O!==y&&x.isPropagationStopped())break e;y=V,x.currentTarget=K;try{y(x)}catch(te){qi(te)}x.currentTarget=null,y=O}}}}function Ne(t,n){var l=n[Q1];l===void 0&&(l=n[Q1]=new Set);var d=t+"__bubble";l.has(d)||(d5(n,t,2,!1),l.add(d))}function zc(t,n,l){var d=0;n&&(d|=4),d5(l,t,d,n)}var Sl="_reactListening"+Math.random().toString(36).slice(2);function Fc(t){if(!t[Sl]){t[Sl]=!0,rm.forEach(function(l){l!=="selectionchange"&&(KN.has(l)||zc(l,!1,t),zc(l,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Sl]||(n[Sl]=!0,zc("selectionchange",!1,n))}}function d5(t,n,l,d){switch(z5(n)){case 2:var x=E_;break;case 8:x=j_;break;default:x=au}l=x.bind(null,n,l,t),x=void 0,!io||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(x=!0),d?x!==void 0?t.addEventListener(n,l,{capture:!0,passive:x}):t.addEventListener(n,l,!0):x!==void 0?t.addEventListener(n,l,{passive:x}):t.addEventListener(n,l,!1)}function Bc(t,n,l,d,x){var y=d;if((n&1)===0&&(n&2)===0&&d!==null)e:for(;;){if(d===null)return;var S=d.tag;if(S===3||S===4){var V=d.stateNode.containerInfo;if(V===x)break;if(S===4)for(S=d.return;S!==null;){var O=S.tag;if((O===3||O===4)&&S.stateNode.containerInfo===x)return;S=S.return}for(;V!==null;){if(S=Dr(V),S===null)return;if(O=S.tag,O===5||O===6||O===26||O===27){d=y=S;continue e}V=V.parentNode}}d=d.return}gm(function(){var K=y,te=ro(l),se=[];e:{var X=Im.get(t);if(X!==void 0){var J=ki,me=t;switch(t){case"keypress":if(Li(l)===0)break e;case"keydown":case"keyup":J=BM;break;case"focusin":me="focus",J=uo;break;case"focusout":me="blur",J=uo;break;case"beforeblur":case"afterblur":J=uo;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=TM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=PM;break;case zm:case Fm:case Bm:J=VM;break;case Um:J=GM;break;case"scroll":case"scrollend":J=_M;break;case"wheel":J=KM;break;case"copy":case"cut":case"paste":J=RM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=wm;break;case"toggle":case"beforetoggle":J=QM}var we=(n&4)!==0,Fe=!we&&(t==="scroll"||t==="scrollend"),P=we?X!==null?X+"Capture":null:X;we=[];for(var U=K,Y;U!==null;){var ae=U;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||P===null||(ae=Qs(U,P),ae!=null&&we.push(T0(U,ae,Y))),Fe)break;U=U.return}0<we.length&&(X=new J(X,me,null,l,te),se.push({event:X,listeners:we}))}}if((n&7)===0){e:{if(X=t==="mouseover"||t==="pointerover",J=t==="mouseout"||t==="pointerout",X&&l!==no&&(me=l.relatedTarget||l.fromElement)&&(Dr(me)||me[kr]))break e;if((J||X)&&(X=te.window===te?te:(X=te.ownerDocument)?X.defaultView||X.parentWindow:window,J?(me=l.relatedTarget||l.toElement,J=K,me=me?Dr(me):null,me!==null&&(Fe=u(me),we=me.tag,me!==Fe||we!==5&&we!==27&&we!==6)&&(me=null)):(J=null,me=K),J!==me)){if(we=ym,ae="onMouseLeave",P="onMouseEnter",U="mouse",(t==="pointerout"||t==="pointerover")&&(we=wm,ae="onPointerLeave",P="onPointerEnter",U="pointer"),Fe=J==null?X:Xs(J),Y=me==null?X:Xs(me),X=new we(ae,U+"leave",J,l,te),X.target=Fe,X.relatedTarget=Y,ae=null,Dr(te)===K&&(we=new we(P,U+"enter",me,l,te),we.target=Y,we.relatedTarget=Fe,ae=we),Fe=ae,J&&me)t:{for(we=XN,P=J,U=me,Y=0,ae=P;ae;ae=we(ae))Y++;ae=0;for(var ye=U;ye;ye=we(ye))ae++;for(;0<Y-ae;)P=we(P),Y--;for(;0<ae-Y;)U=we(U),ae--;for(;Y--;){if(P===U||U!==null&&P===U.alternate){we=P;break t}P=we(P),U=we(U)}we=null}else we=null;J!==null&&f5(se,X,J,we,!1),me!==null&&Fe!==null&&f5(se,Fe,me,we,!0)}}e:{if(X=K?Xs(K):window,J=X.nodeName&&X.nodeName.toLowerCase(),J==="select"||J==="input"&&X.type==="file")var Le=Cm;else if(Nm(X))if(Tm)Le=lN;else{Le=sN;var xe=rN}else J=X.nodeName,!J||J.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&ao(K.elementType)&&(Le=Cm):Le=iN;if(Le&&(Le=Le(t,K))){_m(se,Le,l,te);break e}xe&&xe(t,X,K),t==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&to(X,"number",X.value)}switch(xe=K?Xs(K):window,t){case"focusin":(Nm(xe)||xe.contentEditable==="true")&&($r=xe,xo=K,s0=null);break;case"focusout":s0=xo=$r=null;break;case"mousedown":vo=!0;break;case"contextmenu":case"mouseup":case"dragend":vo=!1,Om(se,l,te);break;case"selectionchange":if(cN)break;case"keydown":case"keyup":Om(se,l,te)}var Se;if(ho)e:{switch(t){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Pr?Sm(t,l)&&(Te="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Te="onCompositionStart");Te&&(Am&&l.locale!=="ko"&&(Pr||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Pr&&(Se=xm()):(wn=te,lo="value"in wn?wn.value:wn.textContent,Pr=!0)),xe=Ml(K,Te),0<xe.length&&(Te=new bm(Te,t,null,l,te),se.push({event:Te,listeners:xe}),Se?Te.data=Se:(Se=Mm(l),Se!==null&&(Te.data=Se)))),(Se=WM?eN(t,l):tN(t,l))&&(Te=Ml(K,"onBeforeInput"),0<Te.length&&(xe=new bm("onBeforeInput","beforeinput",null,l,te),se.push({event:xe,listeners:Te}),xe.data=Se)),$N(se,t,K,l,te)}u5(se,n)})}function T0(t,n,l){return{instance:t,listener:n,currentTarget:l}}function Ml(t,n){for(var l=n+"Capture",d=[];t!==null;){var x=t,y=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||y===null||(x=Qs(t,l),x!=null&&d.unshift(T0(t,x,y)),x=Qs(t,n),x!=null&&d.push(T0(t,x,y))),t.tag===3)return d;t=t.return}return[]}function XN(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function f5(t,n,l,d,x){for(var y=n._reactName,S=[];l!==null&&l!==d;){var V=l,O=V.alternate,K=V.stateNode;if(V=V.tag,O!==null&&O===d)break;V!==5&&V!==26&&V!==27||K===null||(O=K,x?(K=Qs(l,y),K!=null&&S.unshift(T0(l,K,O))):x||(K=Qs(l,y),K!=null&&S.push(T0(l,K,O)))),l=l.return}S.length!==0&&t.push({event:n,listeners:S})}var QN=/\r\n?/g,JN=/\u0000|\uFFFD/g;function h5(t){return(typeof t=="string"?t:""+t).replace(QN,`
49
- `).replace(JN,"")}function m5(t,n){return n=h5(n),h5(t)===n}function ze(t,n,l,d,x,y){switch(l){case"children":typeof d=="string"?n==="body"||n==="textarea"&&d===""||Br(t,d):(typeof d=="number"||typeof d=="bigint")&&n!=="body"&&Br(t,""+d);break;case"className":Ti(t,"class",d);break;case"tabIndex":Ti(t,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(t,l,d);break;case"style":mm(t,d,y);break;case"data":if(n!=="object"){Ti(t,"data",d);break}case"src":case"href":if(d===""&&(n!=="a"||l!=="href")){t.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){t.removeAttribute(l);break}d=Zi(""+d),t.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(l==="formAction"?(n!=="input"&&ze(t,n,"name",x.name,x,null),ze(t,n,"formEncType",x.formEncType,x,null),ze(t,n,"formMethod",x.formMethod,x,null),ze(t,n,"formTarget",x.formTarget,x,null)):(ze(t,n,"encType",x.encType,x,null),ze(t,n,"method",x.method,x,null),ze(t,n,"target",x.target,x,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){t.removeAttribute(l);break}d=Zi(""+d),t.setAttribute(l,d);break;case"onClick":d!=null&&(t.onclick=Ya);break;case"onScroll":d!=null&&Ne("scroll",t);break;case"onScrollEnd":d!=null&&Ne("scrollend",t);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(l=d.__html,l!=null){if(x.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"multiple":t.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":t.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){t.removeAttribute("xlink:href");break}l=Zi(""+d),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?t.setAttribute(l,""+d):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":d===!0?t.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?t.setAttribute(l,d):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?t.setAttribute(l,d):t.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?t.removeAttribute(l):t.setAttribute(l,d);break;case"popover":Ne("beforetoggle",t),Ne("toggle",t),Ci(t,"popover",d);break;case"xlinkActuate":Ga(t,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Ga(t,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Ga(t,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Ga(t,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Ga(t,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Ga(t,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Ga(t,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Ga(t,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Ga(t,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Ci(t,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=MM.get(l)||l,Ci(t,l,d))}}function Uc(t,n,l,d,x,y){switch(l){case"style":mm(t,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(l=d.__html,l!=null){if(x.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof d=="string"?Br(t,d):(typeof d=="number"||typeof d=="bigint")&&Br(t,""+d);break;case"onScroll":d!=null&&Ne("scroll",t);break;case"onScrollEnd":d!=null&&Ne("scrollend",t);break;case"onClick":d!=null&&(t.onclick=Ya);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(x=l.endsWith("Capture"),n=l.slice(2,x?l.length-7:void 0),y=t[Vt]||null,y=y!=null?y[l]:null,typeof y=="function"&&t.removeEventListener(n,y,x),typeof d=="function")){typeof y!="function"&&y!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(n,d,x);break e}l in t?t[l]=d:d===!0?t.setAttribute(l,""):Ci(t,l,d)}}}function At(t,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",t),Ne("load",t);var d=!1,x=!1,y;for(y in l)if(l.hasOwnProperty(y)){var S=l[y];if(S!=null)switch(y){case"src":d=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:ze(t,n,y,S,l,null)}}x&&ze(t,n,"srcSet",l.srcSet,l,null),d&&ze(t,n,"src",l.src,l,null);return;case"input":Ne("invalid",t);var V=y=S=x=null,O=null,K=null;for(d in l)if(l.hasOwnProperty(d)){var te=l[d];if(te!=null)switch(d){case"name":x=te;break;case"type":S=te;break;case"checked":O=te;break;case"defaultChecked":K=te;break;case"value":y=te;break;case"defaultValue":V=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(s(137,n));break;default:ze(t,n,d,te,l,null)}}um(t,y,V,O,K,S,x,!1);return;case"select":Ne("invalid",t),d=S=y=null;for(x in l)if(l.hasOwnProperty(x)&&(V=l[x],V!=null))switch(x){case"value":y=V;break;case"defaultValue":S=V;break;case"multiple":d=V;default:ze(t,n,x,V,l,null)}n=y,l=S,t.multiple=!!d,n!=null?Fr(t,!!d,n,!1):l!=null&&Fr(t,!!d,l,!0);return;case"textarea":Ne("invalid",t),y=x=d=null;for(S in l)if(l.hasOwnProperty(S)&&(V=l[S],V!=null))switch(S){case"value":d=V;break;case"defaultValue":x=V;break;case"children":y=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(91));break;default:ze(t,n,S,V,l,null)}fm(t,d,x,y);return;case"option":for(O in l)if(l.hasOwnProperty(O)&&(d=l[O],d!=null))switch(O){case"selected":t.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ze(t,n,O,d,l,null)}return;case"dialog":Ne("beforetoggle",t),Ne("toggle",t),Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":Ne("load",t);break;case"video":case"audio":for(d=0;d<C0.length;d++)Ne(C0[d],t);break;case"image":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"embed":case"source":case"link":Ne("error",t),Ne("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(K in l)if(l.hasOwnProperty(K)&&(d=l[K],d!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:ze(t,n,K,d,l,null)}return;default:if(ao(n)){for(te in l)l.hasOwnProperty(te)&&(d=l[te],d!==void 0&&Uc(t,n,te,d,l,void 0));return}}for(V in l)l.hasOwnProperty(V)&&(d=l[V],d!=null&&ze(t,n,V,d,l,null))}function WN(t,n,l,d){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,y=null,S=null,V=null,O=null,K=null,te=null;for(J in l){var se=l[J];if(l.hasOwnProperty(J)&&se!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":O=se;default:d.hasOwnProperty(J)||ze(t,n,J,null,d,se)}}for(var X in d){var J=d[X];if(se=l[X],d.hasOwnProperty(X)&&(J!=null||se!=null))switch(X){case"type":y=J;break;case"name":x=J;break;case"checked":K=J;break;case"defaultChecked":te=J;break;case"value":S=J;break;case"defaultValue":V=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(s(137,n));break;default:J!==se&&ze(t,n,X,J,d,se)}}eo(t,S,V,O,K,te,y,x);return;case"select":J=S=V=X=null;for(y in l)if(O=l[y],l.hasOwnProperty(y)&&O!=null)switch(y){case"value":break;case"multiple":J=O;default:d.hasOwnProperty(y)||ze(t,n,y,null,d,O)}for(x in d)if(y=d[x],O=l[x],d.hasOwnProperty(x)&&(y!=null||O!=null))switch(x){case"value":X=y;break;case"defaultValue":V=y;break;case"multiple":S=y;default:y!==O&&ze(t,n,x,y,d,O)}n=V,l=S,d=J,X!=null?Fr(t,!!l,X,!1):!!d!=!!l&&(n!=null?Fr(t,!!l,n,!0):Fr(t,!!l,l?[]:"",!1));return;case"textarea":J=X=null;for(V in l)if(x=l[V],l.hasOwnProperty(V)&&x!=null&&!d.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:ze(t,n,V,null,d,x)}for(S in d)if(x=d[S],y=l[S],d.hasOwnProperty(S)&&(x!=null||y!=null))switch(S){case"value":X=x;break;case"defaultValue":J=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:x!==y&&ze(t,n,S,x,d,y)}dm(t,X,J);return;case"option":for(var me in l)if(X=l[me],l.hasOwnProperty(me)&&X!=null&&!d.hasOwnProperty(me))switch(me){case"selected":t.selected=!1;break;default:ze(t,n,me,null,d,X)}for(O in d)if(X=d[O],J=l[O],d.hasOwnProperty(O)&&X!==J&&(X!=null||J!=null))switch(O){case"selected":t.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:ze(t,n,O,X,d,J)}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 we in l)X=l[we],l.hasOwnProperty(we)&&X!=null&&!d.hasOwnProperty(we)&&ze(t,n,we,null,d,X);for(K in d)if(X=d[K],J=l[K],d.hasOwnProperty(K)&&X!==J&&(X!=null||J!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,n));break;default:ze(t,n,K,X,d,J)}return;default:if(ao(n)){for(var Fe in l)X=l[Fe],l.hasOwnProperty(Fe)&&X!==void 0&&!d.hasOwnProperty(Fe)&&Uc(t,n,Fe,void 0,d,X);for(te in d)X=d[te],J=l[te],!d.hasOwnProperty(te)||X===J||X===void 0&&J===void 0||Uc(t,n,te,X,d,J);return}}for(var P in l)X=l[P],l.hasOwnProperty(P)&&X!=null&&!d.hasOwnProperty(P)&&ze(t,n,P,null,d,X);for(se in d)X=d[se],J=l[se],!d.hasOwnProperty(se)||X===J||X==null&&J==null||ze(t,n,se,X,d,J)}function p5(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function e_(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var x=l[d],y=x.transferSize,S=x.initiatorType,V=x.duration;if(y&&V&&p5(S)){for(S=0,V=x.responseEnd,d+=1;d<l.length;d++){var O=l[d],K=O.startTime;if(K>V)break;var te=O.transferSize,se=O.initiatorType;te&&p5(se)&&(O=O.responseEnd,S+=te*(O<V?1:(V-K)/(O-K)))}if(--d,n+=8*(y+S)/(x.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ic=null,Pc=null;function Nl(t){return t.nodeType===9?t:t.ownerDocument}function g5(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 x5(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function $c(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Gc=null;function t_(){var t=window.event;return t&&t.type==="popstate"?t===Gc?!1:(Gc=t,!0):(Gc=null,!1)}var v5=typeof setTimeout=="function"?setTimeout:void 0,a_=typeof clearTimeout=="function"?clearTimeout:void 0,y5=typeof Promise=="function"?Promise:void 0,n_=typeof queueMicrotask=="function"?queueMicrotask:typeof y5<"u"?function(t){return y5.resolve(null).then(t).catch(r_)}:v5;function r_(t){setTimeout(function(){throw t})}function On(t){return t==="head"}function b5(t,n){var l=n,d=0;do{var x=l.nextSibling;if(t.removeChild(l),x&&x.nodeType===8)if(l=x.data,l==="/$"||l==="/&"){if(d===0){t.removeChild(x),ys(n);return}d--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")d++;else if(l==="html")H0(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,H0(l);for(var y=l.firstChild;y;){var S=y.nextSibling,V=y.nodeName;y[Ks]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&y.rel.toLowerCase()==="stylesheet"||l.removeChild(y),y=S}}else l==="body"&&H0(t.ownerDocument.body);l=x}while(l);ys(n)}function w5(t,n){var l=t;t=0;do{var d=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=d}while(l)}function Yc(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Yc(l),J1(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function s_(t,n,l,d){for(;t.nodeType===1;){var x=l;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!d&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(d){if(!t[Ks])switch(n){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!==x.rel||t.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||t.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||t.getAttribute("title")!==(x.title==null?null:x.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(y=t.getAttribute("src"),(y!==(x.src==null?null:x.src)||t.getAttribute("type")!==(x.type==null?null:x.type)||t.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&y&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var y=x.name==null?null:""+x.name;if(x.type==="hidden"&&t.getAttribute("name")===y)return t}else return t;if(t=oa(t.nextSibling),t===null)break}return null}function i_(t,n,l){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=oa(t.nextSibling),t===null))return null;return t}function A5(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=oa(t.nextSibling),t===null))return null;return t}function Kc(t){return t.data==="$?"||t.data==="$~"}function Xc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function l_(t,n){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||l.readyState!=="loading")n();else{var d=function(){n(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),t._reactRetry=d}}function oa(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var Qc=null;function E5(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(n===0)return oa(t.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}t=t.nextSibling}return null}function j5(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return t;n--}else l!=="/$"&&l!=="/&"||n++}t=t.previousSibling}return null}function S5(t,n,l){switch(n=Nl(l),t){case"html":if(t=n.documentElement,!t)throw Error(s(452));return t;case"head":if(t=n.head,!t)throw Error(s(453));return t;case"body":if(t=n.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function H0(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);J1(t)}var ca=new Map,M5=new Set;function _l(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var dn=$.d;$.d={f:o_,r:c_,D:u_,C:d_,L:f_,m:h_,X:p_,S:m_,M:g_};function o_(){var t=dn.f(),n=yl();return t||n}function c_(t){var n=Or(t);n!==null&&n.tag===5&&n.type==="form"?Up(n):dn.r(t)}var gs=typeof document>"u"?null:document;function N5(t,n,l){var d=gs;if(d&&typeof n=="string"&&n){var x=ta(n);x='link[rel="'+t+'"][href="'+x+'"]',typeof l=="string"&&(x+='[crossorigin="'+l+'"]'),M5.has(x)||(M5.add(x),t={rel:t,crossOrigin:l,href:n},d.querySelector(x)===null&&(n=d.createElement("link"),At(n,"link",t),gt(n),d.head.appendChild(n)))}}function u_(t){dn.D(t),N5("dns-prefetch",t,null)}function d_(t,n){dn.C(t,n),N5("preconnect",t,n)}function f_(t,n,l){dn.L(t,n,l);var d=gs;if(d&&t&&n){var x='link[rel="preload"][as="'+ta(n)+'"]';n==="image"&&l&&l.imageSrcSet?(x+='[imagesrcset="'+ta(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(x+='[imagesizes="'+ta(l.imageSizes)+'"]')):x+='[href="'+ta(t)+'"]';var y=x;switch(n){case"style":y=xs(t);break;case"script":y=vs(t)}ca.has(y)||(t=v({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:t,as:n},l),ca.set(y,t),d.querySelector(x)!==null||n==="style"&&d.querySelector(Z0(y))||n==="script"&&d.querySelector(V0(y))||(n=d.createElement("link"),At(n,"link",t),gt(n),d.head.appendChild(n)))}}function h_(t,n){dn.m(t,n);var l=gs;if(l&&t){var d=n&&typeof n.as=="string"?n.as:"script",x='link[rel="modulepreload"][as="'+ta(d)+'"][href="'+ta(t)+'"]',y=x;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=vs(t)}if(!ca.has(y)&&(t=v({rel:"modulepreload",href:t},n),ca.set(y,t),l.querySelector(x)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(V0(y)))return}d=l.createElement("link"),At(d,"link",t),gt(d),l.head.appendChild(d)}}}function m_(t,n,l){dn.S(t,n,l);var d=gs;if(d&&t){var x=qr(d).hoistableStyles,y=xs(t);n=n||"default";var S=x.get(y);if(!S){var V={loading:0,preload:null};if(S=d.querySelector(Z0(y)))V.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":n},l),(l=ca.get(y))&&Jc(t,l);var O=S=d.createElement("link");gt(O),At(O,"link",t),O._p=new Promise(function(K,te){O.onload=K,O.onerror=te}),O.addEventListener("load",function(){V.loading|=1}),O.addEventListener("error",function(){V.loading|=2}),V.loading|=4,Cl(S,n,d)}S={type:"stylesheet",instance:S,count:1,state:V},x.set(y,S)}}}function p_(t,n){dn.X(t,n);var l=gs;if(l&&t){var d=qr(l).hoistableScripts,x=vs(t),y=d.get(x);y||(y=l.querySelector(V0(x)),y||(t=v({src:t,async:!0},n),(n=ca.get(x))&&Wc(t,n),y=l.createElement("script"),gt(y),At(y,"link",t),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(x,y))}}function g_(t,n){dn.M(t,n);var l=gs;if(l&&t){var d=qr(l).hoistableScripts,x=vs(t),y=d.get(x);y||(y=l.querySelector(V0(x)),y||(t=v({src:t,async:!0,type:"module"},n),(n=ca.get(x))&&Wc(t,n),y=l.createElement("script"),gt(y),At(y,"link",t),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(x,y))}}function _5(t,n,l,d){var x=(x=I.current)?_l(x):null;if(!x)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=xs(l.href),l=qr(x).hoistableStyles,d=l.get(n),d||(d={type:"style",instance:null,count:0,state:null},l.set(n,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=xs(l.href);var y=qr(x).hoistableStyles,S=y.get(t);if(S||(x=x.ownerDocument||x,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(t,S),(y=x.querySelector(Z0(t)))&&!y._p&&(S.instance=y,S.state.loading=5),ca.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ca.set(t,l),y||x_(x,t,l,S.state))),n&&d===null)throw Error(s(528,""));return S}if(n&&d!==null)throw Error(s(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=vs(l),l=qr(x).hoistableScripts,d=l.get(n),d||(d={type:"script",instance:null,count:0,state:null},l.set(n,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function xs(t){return'href="'+ta(t)+'"'}function Z0(t){return'link[rel="stylesheet"]['+t+"]"}function C5(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function x_(t,n,l,d){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?d.loading=1:(n=t.createElement("link"),d.preload=n,n.addEventListener("load",function(){return d.loading|=1}),n.addEventListener("error",function(){return d.loading|=2}),At(n,"link",l),gt(n),t.head.appendChild(n))}function vs(t){return'[src="'+ta(t)+'"]'}function V0(t){return"script[async]"+t}function T5(t,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var d=t.querySelector('style[data-href~="'+ta(l.href)+'"]');if(d)return n.instance=d,gt(d),d;var x=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(t.ownerDocument||t).createElement("style"),gt(d),At(d,"style",x),Cl(d,l.precedence,t),n.instance=d;case"stylesheet":x=xs(l.href);var y=t.querySelector(Z0(x));if(y)return n.state.loading|=4,n.instance=y,gt(y),y;d=C5(l),(x=ca.get(x))&&Jc(d,x),y=(t.ownerDocument||t).createElement("link"),gt(y);var S=y;return S._p=new Promise(function(V,O){S.onload=V,S.onerror=O}),At(y,"link",d),n.state.loading|=4,Cl(y,l.precedence,t),n.instance=y;case"script":return y=vs(l.src),(x=t.querySelector(V0(y)))?(n.instance=x,gt(x),x):(d=l,(x=ca.get(y))&&(d=v({},l),Wc(d,x)),t=t.ownerDocument||t,x=t.createElement("script"),gt(x),At(x,"link",d),t.head.appendChild(x),n.instance=x);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(d=n.instance,n.state.loading|=4,Cl(d,l.precedence,t));return n.instance}function Cl(t,n,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=d.length?d[d.length-1]:null,y=x,S=0;S<d.length;S++){var V=d[S];if(V.dataset.precedence===n)y=V;else if(y!==x)break}y?y.parentNode.insertBefore(t,y.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(t,n.firstChild))}function Jc(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Wc(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var Tl=null;function H5(t,n,l){if(Tl===null){var d=new Map,x=Tl=new Map;x.set(l,d)}else x=Tl,d=x.get(l),d||(d=new Map,x.set(l,d));if(d.has(t))return d;for(d.set(t,null),l=l.getElementsByTagName(t),x=0;x<l.length;x++){var y=l[x];if(!(y[Ks]||y[vt]||t==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var S=y.getAttribute(n)||"";S=t+S;var V=d.get(S);V?V.push(y):d.set(S,[y])}}return d}function Z5(t,n,l){t=t.ownerDocument||t,t.head.insertBefore(l,n==="title"?t.querySelector("head > title"):null)}function v_(t,n,l){if(l===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function V5(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function y_(t,n,l,d){if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var x=xs(d.href),y=n.querySelector(Z0(x));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=Hl.bind(t),n.then(t,t)),l.state.loading|=4,l.instance=y,gt(y);return}y=n.ownerDocument||n,d=C5(d),(x=ca.get(x))&&Jc(d,x),y=y.createElement("link"),gt(y);var S=y;S._p=new Promise(function(V,O){S.onload=V,S.onerror=O}),At(y,"link",d),l.instance=y}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Hl.bind(t),n.addEventListener("load",l),n.addEventListener("error",l))}}var eu=0;function b_(t,n){return t.stylesheets&&t.count===0&&Vl(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var d=setTimeout(function(){if(t.stylesheets&&Vl(t,t.stylesheets),t.unsuspend){var y=t.unsuspend;t.unsuspend=null,y()}},6e4+n);0<t.imgBytes&&eu===0&&(eu=62500*e_());var x=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Vl(t,t.stylesheets),t.unsuspend)){var y=t.unsuspend;t.unsuspend=null,y()}},(t.imgBytes>eu?50:800)+n);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(d),clearTimeout(x)}}:null}function Hl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Zl=null;function Vl(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zl=new Map,n.forEach(w_,t),Zl=null,Hl.call(t))}function w_(t,n){if(!(n.state.loading&4)){var l=Zl.get(t);if(l)var d=l.get(null);else{l=new Map,Zl.set(t,l);for(var x=t.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<x.length;y++){var S=x[y];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),d=S)}d&&l.set(null,d)}x=n.instance,S=x.getAttribute("data-precedence"),y=l.get(S)||d,y===d&&l.set(null,x),l.set(S,x),this.count++,d=Hl.bind(this),x.addEventListener("load",d),x.addEventListener("error",d),y?y.parentNode.insertBefore(x,y.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(x,t.firstChild)),n.state.loading|=4}}var L0={$$typeof:_,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function A_(t,n,l,d,x,y,S,V,O){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=Y1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Y1(0),this.hiddenUpdates=Y1(null),this.identifierPrefix=d,this.onUncaughtError=x,this.onCaughtError=y,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function L5(t,n,l,d,x,y,S,V,O,K,te,se){return t=new A_(t,n,l,S,O,K,te,se,V),n=1,y===!0&&(n|=24),y=Gt(3,null,null,n),t.current=y,y.stateNode=t,n=Vo(),n.refCount++,t.pooledCache=n,n.refCount++,y.memoizedState={element:d,isDehydrated:l,cache:n},Do(y),t}function R5(t){return t?(t=Kr,t):Kr}function k5(t,n,l,d,x,y){x=R5(x),d.context===null?d.context=x:d.pendingContext=x,d=Nn(n),d.payload={element:l},y=y===void 0?null:y,y!==null&&(d.callback=y),l=_n(t,d,n),l!==null&&(qt(l,t,n),f0(l,t,n))}function D5(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<n?l:n}}function tu(t,n){D5(t,n),(t=t.alternate)&&D5(t,n)}function O5(t){if(t.tag===13||t.tag===31){var n=lr(t,67108864);n!==null&&qt(n,t,67108864),tu(t,67108864)}}function q5(t){if(t.tag===13||t.tag===31){var n=Jt();n=K1(n);var l=lr(t,n);l!==null&&qt(l,t,n),tu(t,n)}}var Ll=!0;function E_(t,n,l,d){var x=D.T;D.T=null;var y=$.p;try{$.p=2,au(t,n,l,d)}finally{$.p=y,D.T=x}}function j_(t,n,l,d){var x=D.T;D.T=null;var y=$.p;try{$.p=8,au(t,n,l,d)}finally{$.p=y,D.T=x}}function au(t,n,l,d){if(Ll){var x=nu(d);if(x===null)Bc(t,n,d,Rl,l),F5(t,d);else if(M_(x,t,n,l,d))d.stopPropagation();else if(F5(t,d),n&4&&-1<S_.indexOf(t)){for(;x!==null;){var y=Or(x);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var S=ar(y.pendingLanes);if(S!==0){var V=y;for(V.pendingLanes|=2,V.entangledLanes|=2;S;){var O=1<<31-Pt(S);V.entanglements[1]|=O,S&=~O}Ra(y),(ke&6)===0&&(xl=pt()+500,_0(0))}}break;case 31:case 13:V=lr(y,2),V!==null&&qt(V,y,2),yl(),tu(y,2)}if(y=nu(d),y===null&&Bc(t,n,d,Rl,l),y===x)break;x=y}x!==null&&d.stopPropagation()}else Bc(t,n,d,null,l)}}function nu(t){return t=ro(t),ru(t)}var Rl=null;function ru(t){if(Rl=null,t=Dr(t),t!==null){var n=u(t);if(n===null)t=null;else{var l=n.tag;if(l===13){if(t=f(n),t!==null)return t;t=null}else if(l===31){if(t=h(n),t!==null)return t;t=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Rl=t,null}function z5(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(Rr()){case Ai:return 2;case Ps:return 8;case va:case Ei:return 32;case $s:return 268435456;default:return 32}default:return 32}}var su=!1,qn=null,zn=null,Fn=null,R0=new Map,k0=new Map,Bn=[],S_="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 F5(t,n){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":R0.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":k0.delete(n.pointerId)}}function D0(t,n,l,d,x,y){return t===null||t.nativeEvent!==y?(t={blockedOn:n,domEventName:l,eventSystemFlags:d,nativeEvent:y,targetContainers:[x]},n!==null&&(n=Or(n),n!==null&&O5(n)),t):(t.eventSystemFlags|=d,n=t.targetContainers,x!==null&&n.indexOf(x)===-1&&n.push(x),t)}function M_(t,n,l,d,x){switch(n){case"focusin":return qn=D0(qn,t,n,l,d,x),!0;case"dragenter":return zn=D0(zn,t,n,l,d,x),!0;case"mouseover":return Fn=D0(Fn,t,n,l,d,x),!0;case"pointerover":var y=x.pointerId;return R0.set(y,D0(R0.get(y)||null,t,n,l,d,x)),!0;case"gotpointercapture":return y=x.pointerId,k0.set(y,D0(k0.get(y)||null,t,n,l,d,x)),!0}return!1}function B5(t){var n=Dr(t.target);if(n!==null){var l=u(n);if(l!==null){if(n=l.tag,n===13){if(n=f(l),n!==null){t.blockedOn=n,am(t.priority,function(){q5(l)});return}}else if(n===31){if(n=h(l),n!==null){t.blockedOn=n,am(t.priority,function(){q5(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function kl(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var l=nu(t.nativeEvent);if(l===null){l=t.nativeEvent;var d=new l.constructor(l.type,l);no=d,l.target.dispatchEvent(d),no=null}else return n=Or(l),n!==null&&O5(n),t.blockedOn=l,!1;n.shift()}return!0}function U5(t,n,l){kl(t)&&l.delete(n)}function N_(){su=!1,qn!==null&&kl(qn)&&(qn=null),zn!==null&&kl(zn)&&(zn=null),Fn!==null&&kl(Fn)&&(Fn=null),R0.forEach(U5),k0.forEach(U5)}function Dl(t,n){t.blockedOn===n&&(t.blockedOn=null,su||(su=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,N_)))}var Ol=null;function I5(t){Ol!==t&&(Ol=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ol===t&&(Ol=null);for(var n=0;n<t.length;n+=3){var l=t[n],d=t[n+1],x=t[n+2];if(typeof d!="function"){if(ru(d||l)===null)continue;break}var y=Or(l);y!==null&&(t.splice(n,3),n-=3,nc(y,{pending:!0,data:x,method:l.method,action:d},d,x))}}))}function ys(t){function n(O){return Dl(O,t)}qn!==null&&Dl(qn,t),zn!==null&&Dl(zn,t),Fn!==null&&Dl(Fn,t),R0.forEach(n),k0.forEach(n);for(var l=0;l<Bn.length;l++){var d=Bn[l];d.blockedOn===t&&(d.blockedOn=null)}for(;0<Bn.length&&(l=Bn[0],l.blockedOn===null);)B5(l),l.blockedOn===null&&Bn.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var x=l[d],y=l[d+1],S=x[Vt]||null;if(typeof y=="function")S||I5(l);else if(S){var V=null;if(y&&y.hasAttribute("formAction")){if(x=y,S=y[Vt]||null)V=S.formAction;else if(ru(x)!==null)continue}else V=S.action;typeof V=="function"?l[d+1]=V:(l.splice(d,3),d-=3),I5(l)}}}function P5(){function t(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(S){return x=S})},focusReset:"manual",scroll:"manual"})}function n(){x!==null&&(x(),x=null),d||setTimeout(l,20)}function l(){if(!d&&!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 d=!1,x=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),x!==null&&(x(),x=null)}}}function iu(t){this._internalRoot=t}ql.prototype.render=iu.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(s(409));var l=n.current,d=Jt();k5(l,d,t,n,null,null)},ql.prototype.unmount=iu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;k5(t.current,2,null,t,null,null),yl(),n[kr]=null}};function ql(t){this._internalRoot=t}ql.prototype.unstable_scheduleHydration=function(t){if(t){var n=tm();t={blockedOn:null,target:t,priority:n};for(var l=0;l<Bn.length&&n!==0&&n<Bn[l].priority;l++);Bn.splice(l,0,t),l===0&&B5(t)}};var $5=a.version;if($5!=="19.2.4")throw Error(s(527,$5,"19.2.4"));$.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=p(n),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var __={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{Zt=zl.inject(__),at=zl}catch{}}return q0.createRoot=function(t,n){if(!c(t))throw Error(s(299));var l=!1,d="",x=Wp,y=e3,S=t3;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(d=n.identifierPrefix),n.onUncaughtError!==void 0&&(x=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError)),n=L5(t,1,!1,null,null,l,d,null,x,y,S,P5),t[kr]=n.current,Fc(t),new iu(n)},q0.hydrateRoot=function(t,n,l){if(!c(t))throw Error(s(299));var d=!1,x="",y=Wp,S=e3,V=t3,O=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onUncaughtError!==void 0&&(y=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(V=l.onRecoverableError),l.formState!==void 0&&(O=l.formState)),n=L5(t,1,!0,n,l??null,d,x,O,y,S,V,P5),n.context=R5(null),l=n.current,d=Jt(),d=K1(d),x=Nn(d),x.callback=null,_n(l,x,d),l=d,n.current.lanes=l,Ys(n,l),Ra(n),t[kr]=n.current,Fc(t),new ql(n)},q0.version="19.2.4",q0}var ag;function F_(){if(ag)return cu.exports;ag=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(),cu.exports=z_(),cu.exports}var B_=F_();/**
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 ng="popstate";function rg(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function U_(e={}){function a(s,c){var p;let u=(p=c.state)==null?void 0:p.masked,{pathname:f,search:h,hash:m}=u||s.location;return oh("",{pathname:f,search:h,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default",u?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,c){return typeof c=="string"?c:J0(c)}return P_(a,r,null,e)}function Ke(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function Ma(e,a){if(!e){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function I_(){return Math.random().toString(36).substring(2,10)}function sg(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 oh(e,a,r=null,s,c){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof a=="string"?Hs(a):a,state:r,key:a&&a.key||s||I_(),unstable_mask:c}}function J0({pathname:e="/",search:a="",hash:r=""}){return a&&a!=="?"&&(e+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Hs(e){let a={};if(e){let r=e.indexOf("#");r>=0&&(a.hash=e.substring(r),e=e.substring(0,r));let s=e.indexOf("?");s>=0&&(a.search=e.substring(s),e=e.substring(0,s)),e&&(a.pathname=e)}return a}function P_(e,a,r,s={}){let{window:c=document.defaultView,v5Compat:u=!1}=s,f=c.history,h="POP",m=null,p=g();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function g(){return(f.state||{idx:null}).idx}function v(){h="POP";let A=g(),E=A==null?null:A-p;p=A,m&&m({action:h,location:j.location,delta:E})}function b(A,E){h="PUSH";let M=rg(A)?A:oh(j.location,A,E);p=g()+1;let _=sg(M,p),H=j.createHref(M.unstable_mask||M);try{f.pushState(_,"",H)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;c.location.assign(H)}u&&m&&m({action:h,location:j.location,delta:1})}function w(A,E){h="REPLACE";let M=rg(A)?A:oh(j.location,A,E);p=g();let _=sg(M,p),H=j.createHref(M.unstable_mask||M);f.replaceState(_,"",H),u&&m&&m({action:h,location:j.location,delta:0})}function N(A){return $_(A)}let j={get action(){return h},get location(){return e(c,f)},listen(A){if(m)throw new Error("A history only accepts one active listener");return c.addEventListener(ng,v),m=A,()=>{c.removeEventListener(ng,v),m=null}},createHref(A){return a(c,A)},createURL:N,encodeLocation(A){let E=N(A);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:b,replace:w,go(A){return f.go(A)}};return j}function $_(e,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ke(r,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:J0(e);return s=s.replace(/ $/,"%20"),!a&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function yw(e,a,r="/"){return G_(e,a,r,!1)}function G_(e,a,r,s){let c=typeof a=="string"?Hs(a):a,u=fn(c.pathname||"/",r);if(u==null)return null;let f=bw(e);Y_(f);let h=null;for(let m=0;h==null&&m<f.length;++m){let p=sC(u);h=nC(f[m],p,s)}return h}function bw(e,a=[],r=[],s="",c=!1){let u=(f,h,m=c,p)=>{let g={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(s)&&m)return;Ke(g.relativePath.startsWith(s),`Absolute route path "${g.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(s.length)}let v=Oa([s,g.relativePath]),b=r.concat(g);f.children&&f.children.length>0&&(Ke(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),bw(f.children,a,b,v,m)),!(f.path==null&&!f.index)&&a.push({path:v,score:tC(v,f.index),routesMeta:b})};return e.forEach((f,h)=>{var m;if(f.path===""||!((m=f.path)!=null&&m.includes("?")))u(f,h);else for(let p of ww(f.path))u(f,h,!0,p)}),a}function ww(e){let a=e.split("/");if(a.length===0)return[];let[r,...s]=a,c=r.endsWith("?"),u=r.replace(/\?$/,"");if(s.length===0)return c?[u,""]:[u];let f=ww(s.join("/")),h=[];return h.push(...f.map(m=>m===""?u:[u,m].join("/"))),c&&h.push(...f),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function Y_(e){e.sort((a,r)=>a.score!==r.score?r.score-a.score:aC(a.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var K_=/^:[\w-]+$/,X_=3,Q_=2,J_=1,W_=10,eC=-2,ig=e=>e==="*";function tC(e,a){let r=e.split("/"),s=r.length;return r.some(ig)&&(s+=eC),a&&(s+=Q_),r.filter(c=>!ig(c)).reduce((c,u)=>c+(K_.test(u)?X_:u===""?J_:W_),s)}function aC(e,a){return e.length===a.length&&e.slice(0,-1).every((s,c)=>s===a[c])?e[e.length-1]-a[a.length-1]:0}function nC(e,a,r=!1){let{routesMeta:s}=e,c={},u="/",f=[];for(let h=0;h<s.length;++h){let m=s[h],p=h===s.length-1,g=u==="/"?a:a.slice(u.length)||"/",v=o1({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},g),b=m.route;if(!v&&p&&r&&!s[s.length-1].route.index&&(v=o1({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},g)),!v)return null;Object.assign(c,v.params),f.push({params:c,pathname:Oa([u,v.pathname]),pathnameBase:cC(Oa([u,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(u=Oa([u,v.pathnameBase]))}return f}function o1(e,a){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=rC(e.path,e.caseSensitive,e.end),c=a.match(r);if(!c)return null;let u=c[0],f=u.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:s.reduce((p,{paramName:g,isOptional:v},b)=>{if(g==="*"){let N=h[b]||"";f=u.slice(0,u.length-N.length).replace(/(.)\/+$/,"$1")}const w=h[b];return v&&!w?p[g]=void 0:p[g]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:f,pattern:e}}function rC(e,a=!1,r=!0){Ma(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 s=[],c="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,m,p,g)=>{if(s.push({paramName:h,isOptional:m!=null}),m){let v=g.charAt(p+f.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),c+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":e!==""&&e!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),s]}function sC(e){try{return e.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Ma(!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 fn(e,a){if(a==="/")return e;if(!e.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}var iC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function lC(e,a="/"){let{pathname:r,search:s="",hash:c=""}=typeof e=="string"?Hs(e):e,u;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?u=lg(r.substring(1),"/"):u=lg(r,a)):u=a,{pathname:u,search:uC(s),hash:dC(c)}}function lg(e,a){let r=a.replace(/\/+$/,"").split("/");return e.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function hu(e,a,r,s){return`Cannot include a '${e}' character in a manually specified \`to.${a}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function oC(e){return e.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Bh(e){let a=oC(e);return a.map((r,s)=>s===a.length-1?r.pathname:r.pathnameBase)}function b1(e,a,r,s=!1){let c;typeof e=="string"?c=Hs(e):(c={...e},Ke(!c.pathname||!c.pathname.includes("?"),hu("?","pathname","search",c)),Ke(!c.pathname||!c.pathname.includes("#"),hu("#","pathname","hash",c)),Ke(!c.search||!c.search.includes("#"),hu("#","search","hash",c)));let u=e===""||c.pathname==="",f=u?"/":c.pathname,h;if(f==null)h=r;else{let v=a.length-1;if(!s&&f.startsWith("..")){let b=f.split("/");for(;b[0]==="..";)b.shift(),v-=1;c.pathname=b.join("/")}h=v>=0?a[v]:"/"}let m=lC(c,h),p=f&&f!=="/"&&f.endsWith("/"),g=(u||f===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||g)&&(m.pathname+="/"),m}var Oa=e=>e.join("/").replace(/\/\/+/g,"/"),cC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,fC=class{constructor(e,a,r,s=!1){this.status=e,this.statusText=a||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function hC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function mC(e){return e.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ew(e,a){let r=e;if(typeof r!="string"||!iC.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,c=!1;if(Aw)try{let u=new URL(window.location.href),f=r.startsWith("//")?new URL(u.protocol+r):new URL(r),h=fn(f.pathname,a);f.origin===u.origin&&h!=null?r=h+f.search+f.hash:c=!0}catch{Ma(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var jw=["POST","PUT","PATCH","DELETE"];new Set(jw);var pC=["GET",...jw];new Set(pC);var Zs=i.createContext(null);Zs.displayName="DataRouter";var w1=i.createContext(null);w1.displayName="DataRouterState";var gC=i.createContext(!1),Sw=i.createContext({isTransitioning:!1});Sw.displayName="ViewTransition";var xC=i.createContext(new Map);xC.displayName="Fetchers";var vC=i.createContext(null);vC.displayName="Await";var Wt=i.createContext(null);Wt.displayName="Navigation";var li=i.createContext(null);li.displayName="Location";var ma=i.createContext({outlet:null,matches:[],isDataRoute:!1});ma.displayName="Route";var Uh=i.createContext(null);Uh.displayName="RouteError";var Mw="REACT_ROUTER_ERROR",yC="REDIRECT",bC="ROUTE_ERROR_RESPONSE";function wC(e){if(e.startsWith(`${Mw}:${yC}:{`))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 AC(e){if(e.startsWith(`${Mw}:${bC}:{`))try{let a=JSON.parse(e.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new fC(a.status,a.statusText,a.data)}catch{}}function EC(e,{relative:a}={}){Ke(Vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=i.useContext(Wt),{hash:c,pathname:u,search:f}=ci(e,{relative:a}),h=u;return r!=="/"&&(h=u==="/"?r:Oa([r,u])),s.createHref({pathname:h,search:f,hash:c})}function Vs(){return i.useContext(li)!=null}function Ba(){return Ke(Vs(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(li).location}var Nw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _w(e){i.useContext(Wt).static||i.useLayoutEffect(e)}function Xn(){let{isDataRoute:e}=i.useContext(ma);return e?OC():jC()}function jC(){Ke(Vs(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(Zs),{basename:a,navigator:r}=i.useContext(Wt),{matches:s}=i.useContext(ma),{pathname:c}=Ba(),u=JSON.stringify(Bh(s)),f=i.useRef(!1);return _w(()=>{f.current=!0}),i.useCallback((m,p={})=>{if(Ma(f.current,Nw),!f.current)return;if(typeof m=="number"){r.go(m);return}let g=b1(m,JSON.parse(u),c,p.relative==="path");e==null&&a!=="/"&&(g.pathname=g.pathname==="/"?a:Oa([a,g.pathname])),(p.replace?r.replace:r.push)(g,p.state,p)},[a,r,u,c,e])}var SC=i.createContext(null);function MC(e){let a=i.useContext(ma).outlet;return i.useMemo(()=>a&&i.createElement(SC.Provider,{value:e},a),[a,e])}function oi(){let{matches:e}=i.useContext(ma),a=e[e.length-1];return a?a.params:{}}function ci(e,{relative:a}={}){let{matches:r}=i.useContext(ma),{pathname:s}=Ba(),c=JSON.stringify(Bh(r));return i.useMemo(()=>b1(e,JSON.parse(c),s,a==="path"),[e,c,s,a])}function NC(e,a){return Cw(e,a)}function Cw(e,a,r){var A;Ke(Vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=i.useContext(Wt),{matches:c}=i.useContext(ma),u=c[c.length-1],f=u?u.params:{},h=u?u.pathname:"/",m=u?u.pathnameBase:"/",p=u&&u.route;{let E=p&&p.path||"";Hw(h,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let g=Ba(),v;if(a){let E=typeof a=="string"?Hs(a):a;Ke(m==="/"||((A=E.pathname)==null?void 0:A.startsWith(m)),`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 "${m}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=g;let b=v.pathname||"/",w=b;if(m!=="/"){let E=m.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(E.length).join("/")}let N=yw(e,{pathname:w});Ma(p||N!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ma(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 j=ZC(N&&N.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:Oa([m,s.encodeLocation?s.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?m:Oa([m,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),c,r);return a&&j?i.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},j):j}function _C(){let e=DC(),a=hC(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:u},"ErrorBoundary")," or"," ",i.createElement("code",{style:u},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},a),r?i.createElement("pre",{style:c},r):null,f)}var CC=i.createElement(_C,null),Tw=class extends i.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 r=AC(e.digest);r&&(e=r)}let a=e!==void 0?i.createElement(ma.Provider,{value:this.props.routeContext},i.createElement(Uh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(TC,{error:e},a):a}};Tw.contextType=gC;var mu=new WeakMap;function TC({children:e,error:a}){let{basename:r}=i.useContext(Wt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let s=wC(a.digest);if(s){let c=mu.get(a);if(c)throw c;let u=Ew(s.location,r);if(Aw&&!mu.get(a))if(u.isExternal||s.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:s.replace}));throw mu.set(a,f),f}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function HC({routeContext:e,match:a,children:r}){let s=i.useContext(Zs);return s&&s.static&&s.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=a.route.id),i.createElement(ma.Provider,{value:e},r)}function ZC(e,a=[],r){let s=r==null?void 0:r.state;if(e==null){if(!s)return null;if(s.errors)e=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let c=e,u=s==null?void 0:s.errors;if(u!=null){let g=c.findIndex(v=>v.route.id&&(u==null?void 0:u[v.route.id])!==void 0);Ke(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 f=!1,h=-1;if(r&&s){f=s.renderFallback;for(let g=0;g<c.length;g++){let v=c[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=g),v.route.id){let{loaderData:b,errors:w}=s,N=v.route.loader&&!b.hasOwnProperty(v.route.id)&&(!w||w[v.route.id]===void 0);if(v.route.lazy||N){r.isStatic&&(f=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let m=r==null?void 0:r.onError,p=s&&m?(g,v)=>{var b,w;m(g,{location:s.location,params:((w=(b=s.matches)==null?void 0:b[0])==null?void 0:w.params)??{},unstable_pattern:mC(s.matches),errorInfo:v})}:void 0;return c.reduceRight((g,v,b)=>{let w,N=!1,j=null,A=null;s&&(w=u&&v.route.id?u[v.route.id]:void 0,j=v.route.errorElement||CC,f&&(h<0&&b===0?(Hw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,A=null):h===b&&(N=!0,A=v.route.hydrateFallbackElement||null)));let E=a.concat(c.slice(0,b+1)),M=()=>{let _;return w?_=j:N?_=A:v.route.Component?_=i.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=g,i.createElement(HC,{match:v,routeContext:{outlet:g,matches:E,isDataRoute:s!=null},children:_})};return s&&(v.route.ErrorBoundary||v.route.errorElement||b===0)?i.createElement(Tw,{location:s.location,revalidation:s.revalidation,component:j,error:w,children:M(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:p}):M()},null)}function Ih(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VC(e){let a=i.useContext(Zs);return Ke(a,Ih(e)),a}function LC(e){let a=i.useContext(w1);return Ke(a,Ih(e)),a}function RC(e){let a=i.useContext(ma);return Ke(a,Ih(e)),a}function Ph(e){let a=RC(e),r=a.matches[a.matches.length-1];return Ke(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function kC(){return Ph("useRouteId")}function DC(){var s;let e=i.useContext(Uh),a=LC("useRouteError"),r=Ph("useRouteError");return e!==void 0?e:(s=a.errors)==null?void 0:s[r]}function OC(){let{router:e}=VC("useNavigate"),a=Ph("useNavigate"),r=i.useRef(!1);return _w(()=>{r.current=!0}),i.useCallback(async(c,u={})=>{Ma(r.current,Nw),r.current&&(typeof c=="number"?await e.navigate(c):await e.navigate(c,{fromRouteId:a,...u}))},[e,a])}var og={};function Hw(e,a,r){!a&&!og[e]&&(og[e]=!0,Ma(!1,r))}i.memo(qC);function qC({routes:e,future:a,state:r,isStatic:s,onError:c}){return Cw(e,void 0,{state:r,isStatic:s,onError:c})}function Zw({to:e,replace:a,state:r,relative:s}){Ke(Vs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=i.useContext(Wt);Ma(!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}=i.useContext(ma),{pathname:f}=Ba(),h=Xn(),m=b1(e,Bh(u),f,s==="path"),p=JSON.stringify(m);return i.useEffect(()=>{h(JSON.parse(p),{replace:a,state:r,relative:s})},[h,p,s,a,r]),null}function zC(e){return MC(e.context)}function Ue(e){Ke(!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 FC({basename:e="/",children:a=null,location:r,navigationType:s="POP",navigator:c,static:u=!1,unstable_useTransitions:f}){Ke(!Vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),m=i.useMemo(()=>({basename:h,navigator:c,static:u,unstable_useTransitions:f,future:{}}),[h,c,u,f]);typeof r=="string"&&(r=Hs(r));let{pathname:p="/",search:g="",hash:v="",state:b=null,key:w="default",unstable_mask:N}=r,j=i.useMemo(()=>{let A=fn(p,h);return A==null?null:{location:{pathname:A,search:g,hash:v,state:b,key:w,unstable_mask:N},navigationType:s}},[h,p,g,v,b,w,s,N]);return Ma(j!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:i.createElement(Wt.Provider,{value:m},i.createElement(li.Provider,{children:a,value:j}))}function BC({children:e,location:a}){return NC(ch(e),a)}function ch(e,a=[]){let r=[];return i.Children.forEach(e,(s,c)=>{if(!i.isValidElement(s))return;let u=[...a,c];if(s.type===i.Fragment){r.push.apply(r,ch(s.props.children,u));return}Ke(s.type===Ue,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ke(!s.props.index||!s.props.children,"An index route cannot have child routes.");let f={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(f.children=ch(s.props.children,u)),r.push(f)}),r}var Ql="get",Jl="application/x-www-form-urlencoded";function A1(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function UC(e){return A1(e)&&e.tagName.toLowerCase()==="button"}function IC(e){return A1(e)&&e.tagName.toLowerCase()==="form"}function PC(e){return A1(e)&&e.tagName.toLowerCase()==="input"}function $C(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GC(e,a){return e.button===0&&(!a||a==="_self")&&!$C(e)}var Bl=null;function YC(){if(Bl===null)try{new FormData(document.createElement("form"),0),Bl=!1}catch{Bl=!0}return Bl}var KC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pu(e){return e!=null&&!KC.has(e)?(Ma(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Jl}"`),null):e}function XC(e,a){let r,s,c,u,f;if(IC(e)){let h=e.getAttribute("action");s=h?fn(h,a):null,r=e.getAttribute("method")||Ql,c=pu(e.getAttribute("enctype"))||Jl,u=new FormData(e)}else if(UC(e)||PC(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 m=e.getAttribute("formaction")||h.getAttribute("action");if(s=m?fn(m,a):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||Ql,c=pu(e.getAttribute("formenctype"))||pu(h.getAttribute("enctype"))||Jl,u=new FormData(h,e),!YC()){let{name:p,type:g,value:v}=e;if(g==="image"){let b=p?`${p}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else p&&u.append(p,v)}}else{if(A1(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ql,s=null,c=Jl,f=e}return u&&c==="text/plain"&&(f=u,u=void 0),{action:s,method:r.toLowerCase(),encType:c,formData:u,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $h(e,a){if(e===!1||e===null||typeof e>"u")throw new Error(a)}function QC(e,a,r,s){let c=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:a&&fn(c.pathname,a)==="/"?c.pathname=`${a.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function JC(e,a){if(e.id in a)return a[e.id];try{let r=await import(e.module);return a[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function WC(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 eT(e,a,r){let s=await Promise.all(e.map(async c=>{let u=a.routes[c.route.id];if(u){let f=await JC(u,r);return f.links?f.links():[]}return[]}));return rT(s.flat(1).filter(WC).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function cg(e,a,r,s,c,u){let f=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,h=(m,p)=>{var g;return r[p].pathname!==m.pathname||((g=r[p].route.path)==null?void 0:g.endsWith("*"))&&r[p].params["*"]!==m.params["*"]};return u==="assets"?a.filter((m,p)=>f(m,p)||h(m,p)):u==="data"?a.filter((m,p)=>{var v;let g=s.routes[m.route.id];if(!g||!g.hasLoader)return!1;if(f(m,p)||h(m,p))return!0;if(m.route.shouldRevalidate){let b=m.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function tT(e,a,{includeHydrateFallback:r}={}){return aT(e.map(s=>{let c=a.routes[s.route.id];if(!c)return[];let u=[c.module];return c.clientActionModule&&(u=u.concat(c.clientActionModule)),c.clientLoaderModule&&(u=u.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(u=u.concat(c.hydrateFallbackModule)),c.imports&&(u=u.concat(c.imports)),u}).flat(1))}function aT(e){return[...new Set(e)]}function nT(e){let a={},r=Object.keys(e).sort();for(let s of r)a[s]=e[s];return a}function rT(e,a){let r=new Set;return new Set(a),e.reduce((s,c)=>{let u=JSON.stringify(nT(c));return r.has(u)||(r.add(u),s.push({key:u,link:c})),s},[])}function Vw(){let e=i.useContext(Zs);return $h(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sT(){let e=i.useContext(w1);return $h(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Gh=i.createContext(void 0);Gh.displayName="FrameworkContext";function Lw(){let e=i.useContext(Gh);return $h(e,"You must render this element inside a <HydratedRouter> element"),e}function iT(e,a){let r=i.useContext(Gh),[s,c]=i.useState(!1),[u,f]=i.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=a,b=i.useRef(null);i.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let j=E=>{E.forEach(M=>{f(M.isIntersecting)})},A=new IntersectionObserver(j,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),i.useEffect(()=>{if(s){let j=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(j)}}},[s]);let w=()=>{c(!0)},N=()=>{c(!1),f(!1)};return r?e!=="intent"?[u,b,{}]:[u,b,{onFocus:z0(h,w),onBlur:z0(m,N),onMouseEnter:z0(p,w),onMouseLeave:z0(g,N),onTouchStart:z0(v,w)}]:[!1,b,{}]}function z0(e,a){return r=>{e&&e(r),r.defaultPrevented||a(r)}}function lT({page:e,...a}){let{router:r}=Vw(),s=i.useMemo(()=>yw(r.routes,e,r.basename),[r.routes,e,r.basename]);return s?i.createElement(cT,{page:e,matches:s,...a}):null}function oT(e){let{manifest:a,routeModules:r}=Lw(),[s,c]=i.useState([]);return i.useEffect(()=>{let u=!1;return eT(e,a,r).then(f=>{u||c(f)}),()=>{u=!0}},[e,a,r]),s}function cT({page:e,matches:a,...r}){let s=Ba(),{future:c,manifest:u,routeModules:f}=Lw(),{basename:h}=Vw(),{loaderData:m,matches:p}=sT(),g=i.useMemo(()=>cg(e,a,p,u,s,"data"),[e,a,p,u,s]),v=i.useMemo(()=>cg(e,a,p,u,s,"assets"),[e,a,p,u,s]),b=i.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let j=new Set,A=!1;if(a.forEach(M=>{var H;let _=u.routes[M.route.id];!_||!_.hasLoader||(!g.some(C=>C.route.id===M.route.id)&&M.route.id in m&&((H=f[M.route.id])!=null&&H.shouldRevalidate)||_.hasClientLoader?A=!0:j.add(M.route.id))}),j.size===0)return[];let E=QC(e,h,c.unstable_trailingSlashAwareDataRequests,"data");return A&&j.size>0&&E.searchParams.set("_routes",a.filter(M=>j.has(M.route.id)).map(M=>M.route.id).join(",")),[E.pathname+E.search]},[h,c.unstable_trailingSlashAwareDataRequests,m,s,u,g,a,e,f]),w=i.useMemo(()=>tT(v,u),[v,u]),N=oT(v);return i.createElement(i.Fragment,null,b.map(j=>i.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),w.map(j=>i.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),N.map(({key:j,link:A})=>i.createElement("link",{key:j,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function uT(...e){return a=>{e.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var dT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dT&&(window.__reactRouterVersion="7.13.1")}catch{}function fT({basename:e,children:a,unstable_useTransitions:r,window:s}){let c=i.useRef();c.current==null&&(c.current=U_({window:s,v5Compat:!0}));let u=c.current,[f,h]=i.useState({action:u.action,location:u.location}),m=i.useCallback(p=>{r===!1?h(p):i.startTransition(()=>h(p))},[r]);return i.useLayoutEffect(()=>u.listen(m),[u,m]),i.createElement(FC,{basename:e,children:a,location:f.location,navigationType:f.action,navigator:u,unstable_useTransitions:r})}var Rw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mt=i.forwardRef(function({onClick:a,discover:r="render",prefetch:s="none",relative:c,reloadDocument:u,replace:f,unstable_mask:h,state:m,target:p,to:g,preventScrollReset:v,viewTransition:b,unstable_defaultShouldRevalidate:w,...N},j){let{basename:A,navigator:E,unstable_useTransitions:M}=i.useContext(Wt),_=typeof g=="string"&&Rw.test(g),H=Ew(g,A);g=H.to;let C=EC(g,{relative:c}),Z=Ba(),T=null;if(h){let oe=b1(h,[],Z.unstable_mask?Z.unstable_mask.pathname:"/",!0);A!=="/"&&(oe.pathname=oe.pathname==="/"?A:Oa([A,oe.pathname])),T=E.createHref(oe)}let[L,R,k]=iT(s,N),B=pT(g,{replace:f,unstable_mask:h,state:m,target:p,preventScrollReset:v,relative:c,viewTransition:b,unstable_defaultShouldRevalidate:w,unstable_useTransitions:M});function G(oe){a&&a(oe),oe.defaultPrevented||B(oe)}let Q=!(H.isExternal||u),ee=i.createElement("a",{...N,...k,href:(Q?T:void 0)||H.absoluteURL||C,onClick:Q?G:a,ref:uT(j,R),target:p,"data-discover":!_&&r==="render"?"true":void 0});return L&&!_?i.createElement(i.Fragment,null,ee,i.createElement(lT,{page:C})):ee});Mt.displayName="Link";var Nr=i.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:s="",end:c=!1,style:u,to:f,viewTransition:h,children:m,...p},g){let v=ci(f,{relative:p.relative}),b=Ba(),w=i.useContext(w1),{navigator:N,basename:j}=i.useContext(Wt),A=w!=null&&bT(v)&&h===!0,E=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,M=b.pathname,_=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(M=M.toLowerCase(),_=_?_.toLowerCase():null,E=E.toLowerCase()),_&&j&&(_=fn(_,j)||_);const H=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let C=M===E||!c&&M.startsWith(E)&&M.charAt(H)==="/",Z=_!=null&&(_===E||!c&&_.startsWith(E)&&_.charAt(E.length)==="/"),T={isActive:C,isPending:Z,isTransitioning:A},L=C?a:void 0,R;typeof s=="function"?R=s(T):R=[s,C?"active":null,Z?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let k=typeof u=="function"?u(T):u;return i.createElement(Mt,{...p,"aria-current":L,className:R,ref:g,style:k,to:f,viewTransition:h},typeof m=="function"?m(T):m)});Nr.displayName="NavLink";var hT=i.forwardRef(({discover:e="render",fetcherKey:a,navigate:r,reloadDocument:s,replace:c,state:u,method:f=Ql,action:h,onSubmit:m,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:b,...w},N)=>{let{unstable_useTransitions:j}=i.useContext(Wt),A=vT(),E=yT(h,{relative:p}),M=f.toLowerCase()==="get"?"get":"post",_=typeof h=="string"&&Rw.test(h),H=C=>{if(m&&m(C),C.defaultPrevented)return;C.preventDefault();let Z=C.nativeEvent.submitter,T=(Z==null?void 0:Z.getAttribute("formmethod"))||f,L=()=>A(Z||C.currentTarget,{fetcherKey:a,method:T,navigate:r,replace:c,state:u,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:b});j&&r!==!1?i.startTransition(()=>L()):L()};return i.createElement("form",{ref:N,method:M,action:E,onSubmit:s?m:H,...w,"data-discover":!_&&e==="render"?"true":void 0})});hT.displayName="Form";function mT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kw(e){let a=i.useContext(Zs);return Ke(a,mT(e)),a}function pT(e,{target:a,replace:r,unstable_mask:s,state:c,preventScrollReset:u,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p}={}){let g=Xn(),v=Ba(),b=ci(e,{relative:f});return i.useCallback(w=>{if(GC(w,a)){w.preventDefault();let N=r!==void 0?r:J0(v)===J0(b),j=()=>g(e,{replace:N,unstable_mask:s,state:c,preventScrollReset:u,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:m});p?i.startTransition(()=>j()):j()}},[v,g,b,r,s,c,a,e,u,f,h,m,p])}var gT=0,xT=()=>`__${String(++gT)}__`;function vT(){let{router:e}=kw("useSubmit"),{basename:a}=i.useContext(Wt),r=kC(),s=e.fetch,c=e.navigate;return i.useCallback(async(u,f={})=>{let{action:h,method:m,encType:p,formData:g,body:v}=XC(u,a);if(f.navigate===!1){let b=f.fetcherKey||xT();await s(b,r,f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:v,formMethod:f.method||m,formEncType:f.encType||p,flushSync:f.flushSync})}else await c(f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:v,formMethod:f.method||m,formEncType:f.encType||p,replace:f.replace,state:f.state,fromRouteId:r,flushSync:f.flushSync,viewTransition:f.viewTransition})},[s,c,a,r])}function yT(e,{relative:a}={}){let{basename:r}=i.useContext(Wt),s=i.useContext(ma);Ke(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),u={...ci(e||".",{relative:a})},f=Ba();if(e==null){u.search=f.search;let h=new URLSearchParams(u.search),m=h.getAll("index");if(m.some(g=>g==="")){h.delete("index"),m.filter(v=>v).forEach(v=>h.append("index",v));let g=h.toString();u.search=g?`?${g}`:""}}return(!e||e===".")&&c.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Oa([r,u.pathname])),J0(u)}function bT(e,{relative:a}={}){let r=i.useContext(Sw);Ke(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=kw("useViewTransitionState"),c=ci(e,{relative:a});if(!r.isTransitioning)return!1;let u=fn(r.currentLocation.pathname,s)||r.currentLocation.pathname,f=fn(r.nextLocation.pathname,s)||r.nextLocation.pathname;return o1(c.pathname,f)!=null||o1(c.pathname,u)!=null}const Dw="";function Qn(){return localStorage.getItem("ohwow-session-token")}function uh(e){localStorage.setItem("ohwow-session-token",e)}function Ow(){localStorage.removeItem("ohwow-session-token")}async function he(e,a={}){const r=Qn(),s=await fetch(`${Dw}${e}`,{...a,headers:{"Content-Type":"application/json",...r?{Authorization:`Bearer ${r}`}:{},...a.headers}});if(s.status===401)throw Ow(),window.location.href="/ui/login",new Error("Unauthorized");if(!s.ok){const c=await s.json().catch(()=>({error:s.statusText}));throw new Error(c.error||`HTTP ${s.status}`)}return s.json()}async function*qw(e,a,r){const s=Qn(),c=await fetch(`${Dw}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{}},body:JSON.stringify({message:e,sessionId:a,model:r})});if(!c.ok||!c.body)throw new Error("Chat request failed");const u=c.body.getReader(),f=new TextDecoder;let h="";for(;;){const{done:m,value:p}=await u.read();if(m)break;h+=f.decode(p,{stream:!0});const g=h.split(`
61
- `);h=g.pop()||"";for(const v of g)if(v.startsWith("data: ")){const b=v.slice(6).trim();if(b==="[DONE]")return;try{yield JSON.parse(b)}catch{}}}}class zw extends i.Component{constructor(a){super(a),this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,r){console.error("[ErrorBoundary]",a,r.componentStack)}render(){var a;return this.state.hasError?this.props.fallback||o.jsx("div",{className:"flex items-center justify-center h-full p-8",children:o.jsxs("div",{className:"text-center max-w-sm",children:[o.jsx("p",{className:"text-sm font-medium text-critical mb-2",children:"Something went wrong"}),o.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:(a=this.state.error)==null?void 0:a.message}),o.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 Yh=i.createContext({});function Kh(e){const a=i.useRef(null);return a.current===null&&(a.current=e()),a.current}const Fw=typeof window<"u",Bw=Fw?i.useLayoutEffect:i.useEffect,E1=i.createContext(null);function Xh(e,a){e.indexOf(a)===-1&&e.push(a)}function c1(e,a){const r=e.indexOf(a);r>-1&&e.splice(r,1)}const za=(e,a,r)=>r>a?a:r<e?e:r;let Qh=()=>{};const hn={},Uw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Iw(e){return typeof e=="object"&&e!==null}const Pw=e=>/^0[^.\s]+$/u.test(e);function $w(e){let a;return()=>(a===void 0&&(a=e()),a)}const ha=e=>e,wT=(e,a)=>r=>a(e(r)),ui=(...e)=>e.reduce(wT),W0=(e,a,r)=>{const s=a-e;return s===0?1:(r-e)/s};class Jh{constructor(){this.subscriptions=[]}add(a){return Xh(this.subscriptions,a),()=>c1(this.subscriptions,a)}notify(a,r,s){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](a,r,s);else for(let u=0;u<c;u++){const f=this.subscriptions[u];f&&f(a,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ja=e=>e*1e3,fa=e=>e/1e3;function Gw(e,a){return a?e*(1e3/a):0}const Yw=(e,a,r)=>(((1-3*r+3*a)*e+(3*r-6*a))*e+3*a)*e,AT=1e-7,ET=12;function jT(e,a,r,s,c){let u,f,h=0;do f=a+(r-a)/2,u=Yw(f,s,c)-e,u>0?r=f:a=f;while(Math.abs(u)>AT&&++h<ET);return f}function di(e,a,r,s){if(e===a&&r===s)return ha;const c=u=>jT(u,0,1,e,r);return u=>u===0||u===1?u:Yw(c(u),a,s)}const Kw=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2,Xw=e=>a=>1-e(1-a),Qw=di(.33,1.53,.69,.99),Wh=Xw(Qw),Jw=Kw(Wh),Ww=e=>(e*=2)<1?.5*Wh(e):.5*(2-Math.pow(2,-10*(e-1))),e6=e=>1-Math.sin(Math.acos(e)),eA=Xw(e6),tA=Kw(e6),ST=di(.42,0,1,1),MT=di(0,0,.58,1),aA=di(.42,0,.58,1),NT=e=>Array.isArray(e)&&typeof e[0]!="number",nA=e=>Array.isArray(e)&&typeof e[0]=="number",_T={linear:ha,easeIn:ST,easeInOut:aA,easeOut:MT,circIn:e6,circInOut:tA,circOut:eA,backIn:Wh,backInOut:Jw,backOut:Qw,anticipate:Ww},CT=e=>typeof e=="string",ug=e=>{if(nA(e)){Qh(e.length===4);const[a,r,s,c]=e;return di(a,r,s,c)}else if(CT(e))return _T[e];return e},Ul=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function TT(e,a){let r=new Set,s=new Set,c=!1,u=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(g){f.has(g)&&(p.schedule(g),e()),g(h)}const p={schedule:(g,v=!1,b=!1)=>{const N=b&&c?r:s;return v&&f.add(g),N.has(g)||N.add(g),g},cancel:g=>{s.delete(g),f.delete(g)},process:g=>{if(h=g,c){u=!0;return}c=!0,[r,s]=[s,r],r.forEach(m),r.clear(),c=!1,u&&(u=!1,p.process(g))}};return p}const HT=40;function rA(e,a){let r=!1,s=!0;const c={delta:0,timestamp:0,isProcessing:!1},u=()=>r=!0,f=Ul.reduce((_,H)=>(_[H]=TT(u),_),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:g,update:v,preRender:b,render:w,postRender:N}=f,j=()=>{const _=hn.useManualTiming?c.timestamp:performance.now();r=!1,hn.useManualTiming||(c.delta=s?1e3/60:Math.max(Math.min(_-c.timestamp,HT),1)),c.timestamp=_,c.isProcessing=!0,h.process(c),m.process(c),p.process(c),g.process(c),v.process(c),b.process(c),w.process(c),N.process(c),c.isProcessing=!1,r&&a&&(s=!1,e(j))},A=()=>{r=!0,s=!0,c.isProcessing||e(j)};return{schedule:Ul.reduce((_,H)=>{const C=f[H];return _[H]=(Z,T=!1,L=!1)=>(r||A(),C.schedule(Z,T,L)),_},{}),cancel:_=>{for(let H=0;H<Ul.length;H++)f[Ul[H]].cancel(_)},state:c,steps:f}}const{schedule:Ie,cancel:Kn,state:Et,steps:gu}=rA(typeof requestAnimationFrame<"u"?requestAnimationFrame:ha,!0);let Wl;function ZT(){Wl=void 0}const Ct={now:()=>(Wl===void 0&&Ct.set(Et.isProcessing||hn.useManualTiming?Et.timestamp:performance.now()),Wl),set:e=>{Wl=e,queueMicrotask(ZT)}},sA=e=>a=>typeof a=="string"&&a.startsWith(e),iA=sA("--"),VT=sA("var(--"),t6=e=>VT(e)?LT.test(e.split("/*")[0].trim()):!1,LT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ls={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ei={...Ls,transform:e=>za(0,1,e)},Il={...Ls,default:1},G0=e=>Math.round(e*1e5)/1e5,a6=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function RT(e){return e==null}const kT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,n6=(e,a)=>r=>!!(typeof r=="string"&&kT.test(r)&&r.startsWith(e)||a&&!RT(r)&&Object.prototype.hasOwnProperty.call(r,a)),lA=(e,a,r)=>s=>{if(typeof s!="string")return s;const[c,u,f,h]=s.match(a6);return{[e]:parseFloat(c),[a]:parseFloat(u),[r]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},DT=e=>za(0,255,e),xu={...Ls,transform:e=>Math.round(DT(e))},Ar={test:n6("rgb","red"),parse:lA("red","green","blue"),transform:({red:e,green:a,blue:r,alpha:s=1})=>"rgba("+xu.transform(e)+", "+xu.transform(a)+", "+xu.transform(r)+", "+G0(ei.transform(s))+")"};function OT(e){let a="",r="",s="",c="";return e.length>5?(a=e.substring(1,3),r=e.substring(3,5),s=e.substring(5,7),c=e.substring(7,9)):(a=e.substring(1,2),r=e.substring(2,3),s=e.substring(3,4),c=e.substring(4,5),a+=a,r+=r,s+=s,c+=c),{red:parseInt(a,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:c?parseInt(c,16)/255:1}}const dh={test:n6("#"),parse:OT,transform:Ar.transform},fi=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),Pn=fi("deg"),qa=fi("%"),pe=fi("px"),qT=fi("vh"),zT=fi("vw"),fg={...qa,parse:e=>qa.parse(e)/100,transform:e=>qa.transform(e*100)},Es={test:n6("hsl","hue"),parse:lA("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+qa.transform(G0(a))+", "+qa.transform(G0(r))+", "+G0(ei.transform(s))+")"},ct={test:e=>Ar.test(e)||dh.test(e)||Es.test(e),parse:e=>Ar.test(e)?Ar.parse(e):Es.test(e)?Es.parse(e):dh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ar.transform(e):Es.transform(e),getAnimatableNone:e=>{const a=ct.parse(e);return a.alpha=0,ct.transform(a)}},FT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function BT(e){var a,r;return isNaN(e)&&typeof e=="string"&&(((a=e.match(a6))==null?void 0:a.length)||0)+(((r=e.match(FT))==null?void 0:r.length)||0)>0}const oA="number",cA="color",UT="var",IT="var(",hg="${}",PT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ti(e){const a=e.toString(),r=[],s={color:[],number:[],var:[]},c=[];let u=0;const h=a.replace(PT,m=>(ct.test(m)?(s.color.push(u),c.push(cA),r.push(ct.parse(m))):m.startsWith(IT)?(s.var.push(u),c.push(UT),r.push(m)):(s.number.push(u),c.push(oA),r.push(parseFloat(m))),++u,hg)).split(hg);return{values:r,split:h,indexes:s,types:c}}function uA(e){return ti(e).values}function dA(e){const{split:a,types:r}=ti(e),s=a.length;return c=>{let u="";for(let f=0;f<s;f++)if(u+=a[f],c[f]!==void 0){const h=r[f];h===oA?u+=G0(c[f]):h===cA?u+=ct.transform(c[f]):u+=c[f]}return u}}const $T=e=>typeof e=="number"?0:ct.test(e)?ct.getAnimatableNone(e):e;function GT(e){const a=uA(e);return dA(e)(a.map($T))}const Sa={test:BT,parse:uA,createTransformer:dA,getAnimatableNone:GT};function vu(e,a,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(a-e)*6*r:r<1/2?a:r<2/3?e+(a-e)*(2/3-r)*6:e}function YT({hue:e,saturation:a,lightness:r,alpha:s}){e/=360,a/=100,r/=100;let c=0,u=0,f=0;if(!a)c=u=f=r;else{const h=r<.5?r*(1+a):r+a-r*a,m=2*r-h;c=vu(m,h,e+1/3),u=vu(m,h,e),f=vu(m,h,e-1/3)}return{red:Math.round(c*255),green:Math.round(u*255),blue:Math.round(f*255),alpha:s}}function u1(e,a){return r=>r>0?a:e}const Qe=(e,a,r)=>e+(a-e)*r,yu=(e,a,r)=>{const s=e*e,c=r*(a*a-s)+s;return c<0?0:Math.sqrt(c)},KT=[dh,Ar,Es],XT=e=>KT.find(a=>a.test(e));function mg(e){const a=XT(e);if(!a)return!1;let r=a.parse(e);return a===Es&&(r=YT(r)),r}const pg=(e,a)=>{const r=mg(e),s=mg(a);if(!r||!s)return u1(e,a);const c={...r};return u=>(c.red=yu(r.red,s.red,u),c.green=yu(r.green,s.green,u),c.blue=yu(r.blue,s.blue,u),c.alpha=Qe(r.alpha,s.alpha,u),Ar.transform(c))},fh=new Set(["none","hidden"]);function QT(e,a){return fh.has(e)?r=>r<=0?e:a:r=>r>=1?a:e}function JT(e,a){return r=>Qe(e,a,r)}function r6(e){return typeof e=="number"?JT:typeof e=="string"?t6(e)?u1:ct.test(e)?pg:tH:Array.isArray(e)?fA:typeof e=="object"?ct.test(e)?pg:WT:u1}function fA(e,a){const r=[...e],s=r.length,c=e.map((u,f)=>r6(u)(u,a[f]));return u=>{for(let f=0;f<s;f++)r[f]=c[f](u);return r}}function WT(e,a){const r={...e,...a},s={};for(const c in r)e[c]!==void 0&&a[c]!==void 0&&(s[c]=r6(e[c])(e[c],a[c]));return c=>{for(const u in s)r[u]=s[u](c);return r}}function eH(e,a){const r=[],s={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const u=a.types[c],f=e.indexes[u][s[u]],h=e.values[f]??0;r[c]=h,s[u]++}return r}const tH=(e,a)=>{const r=Sa.createTransformer(a),s=ti(e),c=ti(a);return s.indexes.var.length===c.indexes.var.length&&s.indexes.color.length===c.indexes.color.length&&s.indexes.number.length>=c.indexes.number.length?fh.has(e)&&!c.values.length||fh.has(a)&&!s.values.length?QT(e,a):ui(fA(eH(s,c),c.values),r):u1(e,a)};function hA(e,a,r){return typeof e=="number"&&typeof a=="number"&&typeof r=="number"?Qe(e,a,r):r6(e)(e,a)}const aH=e=>{const a=({timestamp:r})=>e(r);return{start:(r=!0)=>Ie.update(a,r),stop:()=>Kn(a),now:()=>Et.isProcessing?Et.timestamp:Ct.now()}},mA=(e,a,r=10)=>{let s="";const c=Math.max(Math.round(a/r),2);for(let u=0;u<c;u++)s+=Math.round(e(u/(c-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},d1=2e4;function s6(e){let a=0;const r=50;let s=e.next(a);for(;!s.done&&a<d1;)a+=r,s=e.next(a);return a>=d1?1/0:a}function nH(e,a=100,r){const s=r({...e,keyframes:[0,a]}),c=Math.min(s6(s),d1);return{type:"keyframes",ease:u=>s.next(c*u).value/a,duration:fa(c)}}const rH=5;function pA(e,a,r){const s=Math.max(a-rH,0);return Gw(r-e(s),a-s)}const tt={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},bu=.001;function sH({duration:e=tt.duration,bounce:a=tt.bounce,velocity:r=tt.velocity,mass:s=tt.mass}){let c,u,f=1-a;f=za(tt.minDamping,tt.maxDamping,f),e=za(tt.minDuration,tt.maxDuration,fa(e)),f<1?(c=p=>{const g=p*f,v=g*e,b=g-r,w=hh(p,f),N=Math.exp(-v);return bu-b/w*N},u=p=>{const v=p*f*e,b=v*r+r,w=Math.pow(f,2)*Math.pow(p,2)*e,N=Math.exp(-v),j=hh(Math.pow(p,2),f);return(-c(p)+bu>0?-1:1)*((b-w)*N)/j}):(c=p=>{const g=Math.exp(-p*e),v=(p-r)*e+1;return-bu+g*v},u=p=>{const g=Math.exp(-p*e),v=(r-p)*(e*e);return g*v});const h=5/e,m=lH(c,u,h);if(e=ja(e),isNaN(m))return{stiffness:tt.stiffness,damping:tt.damping,duration:e};{const p=Math.pow(m,2)*s;return{stiffness:p,damping:f*2*Math.sqrt(s*p),duration:e}}}const iH=12;function lH(e,a,r){let s=r;for(let c=1;c<iH;c++)s=s-e(s)/a(s);return s}function hh(e,a){return e*Math.sqrt(1-a*a)}const oH=["duration","bounce"],cH=["stiffness","damping","mass"];function gg(e,a){return a.some(r=>e[r]!==void 0)}function uH(e){let a={velocity:tt.velocity,stiffness:tt.stiffness,damping:tt.damping,mass:tt.mass,isResolvedFromDuration:!1,...e};if(!gg(e,cH)&&gg(e,oH))if(a.velocity=0,e.visualDuration){const r=e.visualDuration,s=2*Math.PI/(r*1.2),c=s*s,u=2*za(.05,1,1-(e.bounce||0))*Math.sqrt(c);a={...a,mass:tt.mass,stiffness:c,damping:u}}else{const r=sH({...e,velocity:0});a={...a,...r,mass:tt.mass},a.isResolvedFromDuration=!0}return a}function f1(e=tt.visualDuration,a=tt.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e;let{restSpeed:s,restDelta:c}=r;const u=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],h={done:!1,value:u},{stiffness:m,damping:p,mass:g,duration:v,velocity:b,isResolvedFromDuration:w}=uH({...r,velocity:-fa(r.velocity||0)}),N=b||0,j=p/(2*Math.sqrt(m*g)),A=f-u,E=fa(Math.sqrt(m/g)),M=Math.abs(A)<5;s||(s=M?tt.restSpeed.granular:tt.restSpeed.default),c||(c=M?tt.restDelta.granular:tt.restDelta.default);let _;if(j<1){const C=hh(E,j);_=Z=>{const T=Math.exp(-j*E*Z);return f-T*((N+j*E*A)/C*Math.sin(C*Z)+A*Math.cos(C*Z))}}else if(j===1)_=C=>f-Math.exp(-E*C)*(A+(N+E*A)*C);else{const C=E*Math.sqrt(j*j-1);_=Z=>{const T=Math.exp(-j*E*Z),L=Math.min(C*Z,300);return f-T*((N+j*E*A)*Math.sinh(L)+C*A*Math.cosh(L))/C}}const H={calculatedDuration:w&&v||null,next:C=>{const Z=_(C);if(w)h.done=C>=v;else{let T=C===0?N:0;j<1&&(T=C===0?ja(N):pA(_,C,Z));const L=Math.abs(T)<=s,R=Math.abs(f-Z)<=c;h.done=L&&R}return h.value=h.done?f:Z,h},toString:()=>{const C=Math.min(s6(H),d1),Z=mA(T=>H.next(C*T).value,C,30);return C+"ms "+Z},toTransition:()=>{}};return H}f1.applyToOptions=e=>{const a=nH(e,100,f1);return e.ease=a.ease,e.duration=ja(a.duration),e.type="keyframes",e};function mh({keyframes:e,velocity:a=0,power:r=.8,timeConstant:s=325,bounceDamping:c=10,bounceStiffness:u=500,modifyTarget:f,min:h,max:m,restDelta:p=.5,restSpeed:g}){const v=e[0],b={done:!1,value:v},w=L=>h!==void 0&&L<h||m!==void 0&&L>m,N=L=>h===void 0?m:m===void 0||Math.abs(h-L)<Math.abs(m-L)?h:m;let j=r*a;const A=v+j,E=f===void 0?A:f(A);E!==A&&(j=E-v);const M=L=>-j*Math.exp(-L/s),_=L=>E+M(L),H=L=>{const R=M(L),k=_(L);b.done=Math.abs(R)<=p,b.value=b.done?E:k};let C,Z;const T=L=>{w(b.value)&&(C=L,Z=f1({keyframes:[b.value,N(b.value)],velocity:pA(_,L,b.value),damping:c,stiffness:u,restDelta:p,restSpeed:g}))};return T(0),{calculatedDuration:null,next:L=>{let R=!1;return!Z&&C===void 0&&(R=!0,H(L),T(L)),C!==void 0&&L>=C?Z.next(L-C):(!R&&H(L),b)}}}function dH(e,a,r){const s=[],c=r||hn.mix||hA,u=e.length-1;for(let f=0;f<u;f++){let h=c(e[f],e[f+1]);if(a){const m=Array.isArray(a)?a[f]||ha:a;h=ui(m,h)}s.push(h)}return s}function fH(e,a,{clamp:r=!0,ease:s,mixer:c}={}){const u=e.length;if(Qh(u===a.length),u===1)return()=>a[0];if(u===2&&a[0]===a[1])return()=>a[1];const f=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),a=[...a].reverse());const h=dH(a,s,c),m=h.length,p=g=>{if(f&&g<e[0])return a[0];let v=0;if(m>1)for(;v<e.length-2&&!(g<e[v+1]);v++);const b=W0(e[v],e[v+1],g);return h[v](b)};return r?g=>p(za(e[0],e[u-1],g)):p}function hH(e,a){const r=e[e.length-1];for(let s=1;s<=a;s++){const c=W0(0,a,s);e.push(Qe(r,1,c))}}function mH(e){const a=[0];return hH(a,e.length-1),a}function pH(e,a){return e.map(r=>r*a)}function gH(e,a){return e.map(()=>a||aA).splice(0,e.length-1)}function Y0({duration:e=300,keyframes:a,times:r,ease:s="easeInOut"}){const c=NT(s)?s.map(ug):ug(s),u={done:!1,value:a[0]},f=pH(r&&r.length===a.length?r:mH(a),e),h=fH(f,a,{ease:Array.isArray(c)?c:gH(a,c)});return{calculatedDuration:e,next:m=>(u.value=h(m),u.done=m>=e,u)}}const xH=e=>e!==null;function i6(e,{repeat:a,repeatType:r="loop"},s,c=1){const u=e.filter(xH),h=c<0||a&&r!=="loop"&&a%2===1?0:u.length-1;return!h||s===void 0?u[h]:s}const vH={decay:mh,inertia:mh,tween:Y0,keyframes:Y0,spring:f1};function gA(e){typeof e.type=="string"&&(e.type=vH[e.type])}class l6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,r){return this.finished.then(a,r)}}const yH=e=>e/100;class o6 extends l6{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,c;const{motionValue:r}=this.options;r&&r.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(s=this.options).onStop)==null||c.call(s))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;gA(a);const{type:r=Y0,repeat:s=0,repeatDelay:c=0,repeatType:u,velocity:f=0}=a;let{keyframes:h}=a;const m=r||Y0;m!==Y0&&typeof h[0]!="number"&&(this.mixKeyframes=ui(yH,hA(h[0],h[1])),h=[0,100]);const p=m({...a,keyframes:h});u==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=s6(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(s+1)-c,this.generator=p}updateTime(a){const r=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(a,r=!1){const{generator:s,totalDuration:c,mixKeyframes:u,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:g,repeat:v,repeatType:b,repeatDelay:w,type:N,onUpdate:j,finalKeyframe:A}=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)),r?this.currentTime=a:this.updateTime(a);const E=this.currentTime-p*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?E<0:E>c;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let _=this.currentTime,H=s;if(v){const L=Math.min(this.currentTime,c)/h;let R=Math.floor(L),k=L%1;!k&&L>=1&&(k=1),k===1&&R--,R=Math.min(R,v+1),!!(R%2)&&(b==="reverse"?(k=1-k,w&&(k-=w/h)):b==="mirror"&&(H=f)),_=za(0,1,k)*h}const C=M?{done:!1,value:g[0]}:H.next(_);u&&(C.value=u(C.value));let{done:Z}=C;!M&&m!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return T&&N!==mh&&(C.value=i6(g,this.options,A,this.speed)),j&&j(C.value),T&&this.finish(),C}then(a,r){return this.finished.then(a,r)}get duration(){return fa(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+fa(a)}get time(){return fa(this.currentTime)}set time(a){var r;a=ja(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),(r=this.driver)==null||r.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(Ct.now());const r=this.playbackSpeed!==a;this.playbackSpeed=a,r&&(this.time=fa(this.currentTime))}play(){var c,u;if(this.isStopped)return;const{driver:a=aH,startTime:r}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),(u=(c=this.options).onPlay)==null||u.call(c);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),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(Ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(a=this.options).onComplete)==null||r.call(a)}cancel(){var a,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(a=this.options).onCancel)==null||r.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 r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),a.observe(this)}}function bH(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}const Er=e=>e*180/Math.PI,ph=e=>{const a=Er(Math.atan2(e[1],e[0]));return gh(a)},wH={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ph,rotateZ:ph,skewX:e=>Er(Math.atan(e[1])),skewY:e=>Er(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},gh=e=>(e=e%360,e<0&&(e+=360),e),xg=ph,vg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),yg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),AH={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vg,scaleY:yg,scale:e=>(vg(e)+yg(e))/2,rotateX:e=>gh(Er(Math.atan2(e[6],e[5]))),rotateY:e=>gh(Er(Math.atan2(-e[2],e[0]))),rotateZ:xg,rotate:xg,skewX:e=>Er(Math.atan(e[4])),skewY:e=>Er(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xh(e){return e.includes("scale")?1:0}function vh(e,a){if(!e||e==="none")return xh(a);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,c;if(r)s=AH,c=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=wH,c=h}if(!c)return xh(a);const u=s[a],f=c[1].split(",").map(jH);return typeof u=="function"?u(f):f[u]}const EH=(e,a)=>{const{transform:r="none"}=getComputedStyle(e);return vh(r,a)};function jH(e){return parseFloat(e.trim())}const Rs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ks=new Set(Rs),bg=e=>e===Ls||e===pe,SH=new Set(["x","y","z"]),MH=Rs.filter(e=>!SH.has(e));function NH(e){const a=[];return MH.forEach(r=>{const s=e.getValue(r);s!==void 0&&(a.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),a}const Gn={width:({x:e},{paddingLeft:a="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(a)-parseFloat(r),height:({y:e},{paddingTop:a="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(a)-parseFloat(r),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})=>vh(a,"x"),y:(e,{transform:a})=>vh(a,"y")};Gn.translateX=Gn.x;Gn.translateY=Gn.y;const _r=new Set;let yh=!1,bh=!1,wh=!1;function xA(){if(bh){const e=Array.from(_r).filter(s=>s.needsMeasurement),a=new Set(e.map(s=>s.element)),r=new Map;a.forEach(s=>{const c=NH(s);c.length&&(r.set(s,c),s.render())}),e.forEach(s=>s.measureInitialState()),a.forEach(s=>{s.render();const c=r.get(s);c&&c.forEach(([u,f])=>{var h;(h=s.getValue(u))==null||h.set(f)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}bh=!1,yh=!1,_r.forEach(e=>e.complete(wh)),_r.clear()}function vA(){_r.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bh=!0)})}function _H(){wh=!0,vA(),xA(),wh=!1}class c6{constructor(a,r,s,c,u,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=r,this.name=s,this.motionValue=c,this.element=u,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(_r.add(this),yh||(yh=!0,Ie.read(vA),Ie.resolveKeyframes(xA))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:r,element:s,motionValue:c}=this;if(a[0]===null){const u=c==null?void 0:c.get(),f=a[a.length-1];if(u!==void 0)a[0]=u;else if(s&&r){const h=s.readValue(r,f);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=f),c&&u===void 0&&c.set(a[0])}bH(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),_r.delete(this)}cancel(){this.state==="scheduled"&&(_r.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const CH=e=>e.startsWith("--");function TH(e,a,r){CH(a)?e.style.setProperty(a,r):e.style[a]=r}const HH={};function yA(e,a){const r=$w(e);return()=>HH[a]??r()}const ZH=yA(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),bA=yA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),B0=([e,a,r,s])=>`cubic-bezier(${e}, ${a}, ${r}, ${s})`,wg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:B0([0,.65,.55,1]),circOut:B0([.55,0,1,.45]),backIn:B0([.31,.01,.66,-.59]),backOut:B0([.33,1.53,.69,.99])};function wA(e,a){if(e)return typeof e=="function"?bA()?mA(e,a):"ease-out":nA(e)?B0(e):Array.isArray(e)?e.map(r=>wA(r,a)||wg.easeOut):wg[e]}function VH(e,a,r,{delay:s=0,duration:c=300,repeat:u=0,repeatType:f="loop",ease:h="easeOut",times:m}={},p=void 0){const g={[a]:r};m&&(g.offset=m);const v=wA(h,c);Array.isArray(v)&&(g.easing=v);const b={delay:s,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:f==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(g,b)}function AA(e){return typeof e=="function"&&"applyToOptions"in e}function LH({type:e,...a}){return AA(e)&&bA()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class EA extends l6{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:r,name:s,keyframes:c,pseudoElement:u,allowFlatten:f=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!u,this.allowFlatten=f,this.options=a,Qh(typeof a.type!="string");const p=LH(a);this.animation=VH(r,s,c,p,u),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const g=i6(c,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(g):TH(r,s,g),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,r;(r=(a=this.animation).finish)==null||r.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 r,s,c;const a=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((c=(s=this.animation).commitStyles)==null||c.call(s))}get duration(){var r,s;const a=((s=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:s.call(r).duration)||0;return fa(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+fa(a)}get time(){return fa(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ja(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:r}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&ZH()?(this.animation.timeline=a,ha):r(this)}}const jA={anticipate:Ww,backInOut:Jw,circInOut:tA};function RH(e){return e in jA}function kH(e){typeof e.ease=="string"&&RH(e.ease)&&(e.ease=jA[e.ease])}const wu=10;class DH extends EA{constructor(a){kH(a),gA(a),super(a),a.startTime!==void 0&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:r,onUpdate:s,onComplete:c,element:u,...f}=this.options;if(!r)return;if(a!==void 0){r.set(a);return}const h=new o6({...f,autoplay:!1}),m=Math.max(wu,Ct.now()-this.startTime),p=za(0,wu,m-wu);r.setWithVelocity(h.sample(Math.max(0,m-p)).value,h.sample(m).value,p),h.stop()}}const Ag=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Sa.test(e)||e==="0")&&!e.startsWith("url("));function OH(e){const a=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==a)return!0}function qH(e,a,r,s){const c=e[0];if(c===null)return!1;if(a==="display"||a==="visibility")return!0;const u=e[e.length-1],f=Ag(c,a),h=Ag(u,a);return!f||!h?!1:OH(e)||(r==="spring"||AA(r))&&s}function Ah(e){e.duration=0,e.type="keyframes"}const zH=new Set(["opacity","clipPath","filter","transform"]),FH=$w(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function BH(e){var g;const{motionValue:a,name:r,repeatDelay:s,repeatType:c,damping:u,type:f}=e;if(!(((g=a==null?void 0:a.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=a.owner.getProps();return FH()&&r&&zH.has(r)&&(r!=="transform"||!p)&&!m&&!s&&c!=="mirror"&&u!==0&&f!=="inertia"}const UH=40;class IH extends l6{constructor({autoplay:a=!0,delay:r=0,type:s="keyframes",repeat:c=0,repeatDelay:u=0,repeatType:f="loop",keyframes:h,name:m,motionValue:p,element:g,...v}){var N;super(),this.stop=()=>{var j,A;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Ct.now();const b={autoplay:a,delay:r,type:s,repeat:c,repeatDelay:u,repeatType:f,name:m,motionValue:p,element:g,...v},w=(g==null?void 0:g.KeyframeResolver)||c6;this.keyframeResolver=new w(h,(j,A,E)=>this.onKeyframesResolved(j,A,b,!E),m,p,g),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(a,r,s,c){var A,E;this.keyframeResolver=void 0;const{name:u,type:f,velocity:h,delay:m,isHandoff:p,onUpdate:g}=s;this.resolvedAt=Ct.now(),qH(a,u,f,h)||((hn.instantAnimations||!m)&&(g==null||g(i6(a,s,r))),a[0]=a[a.length-1],Ah(s),s.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>UH?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:a},w=!p&&BH(b),N=(E=(A=b.motionValue)==null?void 0:A.owner)==null?void 0:E.current,j=w?new DH({...b,element:N}):new o6(b);j.finished.then(()=>{this.notifyFinished()}).catch(ha),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(a,r){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),_H()),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 SA(e,a,r,s=0,c=1){const u=Array.from(e).sort((p,g)=>p.sortNodePosition(g)).indexOf(a),f=e.size,h=(f-1)*s;return typeof r=="function"?r(u,f):c===1?u*s:h-u*s}const PH=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $H(e){const a=PH.exec(e);if(!a)return[,];const[,r,s,c]=a;return[`--${r??s}`,c]}function MA(e,a,r=1){const[s,c]=$H(e);if(!s)return;const u=window.getComputedStyle(a).getPropertyValue(s);if(u){const f=u.trim();return Uw(f)?parseFloat(f):f}return t6(c)?MA(c,a,r+1):c}const GH={type:"spring",stiffness:500,damping:25,restSpeed:10},YH=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),KH={type:"keyframes",duration:.8},XH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QH=(e,{keyframes:a})=>a.length>2?KH:ks.has(e)?e.startsWith("scale")?YH(a[1]):GH:XH,JH=e=>e!==null;function WH(e,{repeat:a,repeatType:r="loop"},s){const c=e.filter(JH),u=a&&r!=="loop"&&a%2===1?0:c.length-1;return c[u]}function NA(e,a){if(e!=null&&e.inherit&&a){const{inherit:r,...s}=e;return{...a,...s}}return e}function u6(e,a){const r=(e==null?void 0:e[a])??(e==null?void 0:e.default)??e;return r!==e?NA(r,e):r}function eZ({when:e,delay:a,delayChildren:r,staggerChildren:s,staggerDirection:c,repeat:u,repeatType:f,repeatDelay:h,from:m,elapsed:p,...g}){return!!Object.keys(g).length}const d6=(e,a,r,s={},c,u)=>f=>{const h=u6(s,e)||{},m=h.delay||s.delay||0;let{elapsed:p=0}=s;p=p-ja(m);const g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:b=>{a.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:e,motionValue:a,element:u?void 0:c};eZ(h)||Object.assign(g,QH(e,g)),g.duration&&(g.duration=ja(g.duration)),g.repeatDelay&&(g.repeatDelay=ja(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Ah(g),g.delay===0&&(v=!0)),(hn.instantAnimations||hn.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(v=!0,Ah(g),g.delay=0),g.allowFlatten=!h.type&&!h.ease,v&&!u&&a.get()!==void 0){const b=WH(g.keyframes,h);if(b!==void 0){Ie.update(()=>{g.onUpdate(b),g.onComplete()});return}}return h.isSync?new o6(g):new IH(g)};function Eg(e){const a=[{},{}];return e==null||e.values.forEach((r,s)=>{a[0][s]=r.get(),a[1][s]=r.getVelocity()}),a}function f6(e,a,r,s){if(typeof a=="function"){const[c,u]=Eg(s);a=a(r!==void 0?r:e.custom,c,u)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){const[c,u]=Eg(s);a=a(r!==void 0?r:e.custom,c,u)}return a}function Cs(e,a,r){const s=e.getProps();return f6(s,a,r!==void 0?r:s.custom,e)}const _A=new Set(["width","height","top","left","right","bottom",...Rs]),jg=30,tZ=e=>!isNaN(parseFloat(e));class aZ{constructor(a,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var u;const c=Ct.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=r.owner}setCurrent(a){this.current=a,this.updatedAt=Ct.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=tZ(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,r){this.events[a]||(this.events[a]=new Jh);const s=this.events[a].add(r);return a==="change"?()=>{s(),Ie.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,r){this.passiveEffect=a,this.stopPassiveEffect=r}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,r,s){this.set(r),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-s}jump(a,r=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&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=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>jg)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,jg);return Gw(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(a){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=a(r),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,r;(a=this.dependents)==null||a.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ts(e,a){return new aZ(e,a)}const Eh=e=>Array.isArray(e);function nZ(e,a,r){e.hasValue(a)?e.getValue(a).set(r):e.addValue(a,Ts(r))}function rZ(e){return Eh(e)?e[e.length-1]||0:e}function sZ(e,a){const r=Cs(e,a);let{transitionEnd:s={},transition:c={},...u}=r||{};u={...u,...s};for(const f in u){const h=rZ(u[f]);nZ(e,f,h)}}const Nt=e=>!!(e&&e.getVelocity);function iZ(e){return!!(Nt(e)&&e.add)}function jh(e,a){const r=e.getValue("willChange");if(iZ(r))return r.add(a);if(!r&&hn.WillChange){const s=new hn.WillChange("auto");e.addValue("willChange",s),s.add(a)}}function h6(e){return e.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const lZ="framerAppearId",CA="data-"+h6(lZ);function TA(e){return e.props[CA]}function oZ({protectedKeys:e,needsAnimating:a},r){const s=e.hasOwnProperty(r)&&a[r]!==!0;return a[r]=!1,s}function HA(e,a,{delay:r=0,transitionOverride:s,type:c}={}){let{transition:u,transitionEnd:f,...h}=a;const m=e.getDefaultTransition();u=u?NA(u,m):m;const p=u==null?void 0:u.reduceMotion;s&&(u=s);const g=[],v=c&&e.animationState&&e.animationState.getState()[c];for(const b in h){const w=e.getValue(b,e.latestValues[b]??null),N=h[b];if(N===void 0||v&&oZ(v,b))continue;const j={delay:r,...u6(u||{},b)},A=w.get();if(A!==void 0&&!w.isAnimating&&!Array.isArray(N)&&N===A&&!j.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const H=TA(e);if(H){const C=window.MotionHandoffAnimation(H,b,Ie);C!==null&&(j.startTime=C,E=!0)}}jh(e,b);const M=p??e.shouldReduceMotion;w.start(d6(b,w,N,M&&_A.has(b)?{type:!1}:j,e,E));const _=w.animation;_&&g.push(_)}if(f){const b=()=>Ie.update(()=>{f&&sZ(e,f)});g.length?Promise.all(g).then(b):b()}return g}function Sh(e,a,r={}){var m;const s=Cs(e,a,r.type==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);let{transition:c=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(c=r.transitionOverride);const u=s?()=>Promise.all(HA(e,s,r)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:b}=c;return cZ(e,a,p,g,v,b,r)}:()=>Promise.resolve(),{when:h}=c;if(h){const[p,g]=h==="beforeChildren"?[u,f]:[f,u];return p().then(()=>g())}else return Promise.all([u(),f(r.delay)])}function cZ(e,a,r=0,s=0,c=0,u=1,f){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",a),h.push(Sh(m,a,{...f,delay:r+(typeof s=="function"?0:s)+SA(e.variantChildren,m,s,c,u)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function uZ(e,a,r={}){e.notify("AnimationStart",a);let s;if(Array.isArray(a)){const c=a.map(u=>Sh(e,u,r));s=Promise.all(c)}else if(typeof a=="string")s=Sh(e,a,r);else{const c=typeof a=="function"?Cs(e,a,r.custom):a;s=Promise.all(HA(e,c,r))}return s.then(()=>{e.notify("AnimationComplete",a)})}const dZ={test:e=>e==="auto",parse:e=>e},ZA=e=>a=>a.test(e),VA=[Ls,pe,qa,Pn,zT,qT,dZ],Sg=e=>VA.find(ZA(e));function fZ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Pw(e):!0}const hZ=new Set(["brightness","contrast","saturate","opacity"]);function mZ(e){const[a,r]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;const[s]=r.match(a6)||[];if(!s)return e;const c=r.replace(s,"");let u=hZ.has(a)?1:0;return s!==r&&(u*=100),a+"("+u+c+")"}const pZ=/\b([a-z-]*)\(.*?\)/gu,Mh={...Sa,getAnimatableNone:e=>{const a=e.match(pZ);return a?a.map(mZ).join(" "):e}},Nh={...Sa,getAnimatableNone:e=>{const a=Sa.parse(e);return Sa.createTransformer(e)(a.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Mg={...Ls,transform:Math.round},gZ={rotate:Pn,rotateX:Pn,rotateY:Pn,rotateZ:Pn,scale:Il,scaleX:Il,scaleY:Il,scaleZ:Il,skew:Pn,skewX:Pn,skewY:Pn,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:ei,originX:fg,originY:fg,originZ:pe},m6={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,inset:pe,insetBlock:pe,insetBlockStart:pe,insetBlockEnd:pe,insetInline:pe,insetInlineStart:pe,insetInlineEnd:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,paddingBlock:pe,paddingBlockStart:pe,paddingBlockEnd:pe,paddingInline:pe,paddingInlineStart:pe,paddingInlineEnd:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,marginBlock:pe,marginBlockStart:pe,marginBlockEnd:pe,marginInline:pe,marginInlineStart:pe,marginInlineEnd:pe,fontSize:pe,backgroundPositionX:pe,backgroundPositionY:pe,...gZ,zIndex:Mg,fillOpacity:ei,strokeOpacity:ei,numOctaves:Mg},xZ={...m6,color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,filter:Mh,WebkitFilter:Mh,mask:Nh,WebkitMask:Nh},LA=e=>xZ[e],vZ=new Set([Mh,Nh]);function RA(e,a){let r=LA(e);return vZ.has(r)||(r=Sa),r.getAnimatableNone?r.getAnimatableNone(a):void 0}const yZ=new Set(["auto","none","0"]);function bZ(e,a,r){let s=0,c;for(;s<e.length&&!c;){const u=e[s];typeof u=="string"&&!yZ.has(u)&&ti(u).values.length&&(c=e[s]),s++}if(c&&r)for(const u of a)e[u]=RA(r,c)}class wZ extends c6{constructor(a,r,s,c,u){super(a,r,s,c,u,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:r,name:s}=this;if(!r||!r.current)return;super.readKeyframes();for(let g=0;g<a.length;g++){let v=a[g];if(typeof v=="string"&&(v=v.trim(),t6(v))){const b=MA(v,r.current);b!==void 0&&(a[g]=b),g===a.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!_A.has(s)||a.length!==2)return;const[c,u]=a,f=Sg(c),h=Sg(u),m=dg(c),p=dg(u);if(m!==p&&Gn[s]){this.needsMeasurement=!0;return}if(f!==h)if(bg(f)&&bg(h))for(let g=0;g<a.length;g++){const v=a[g];typeof v=="string"&&(a[g]=parseFloat(v))}else Gn[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:r}=this,s=[];for(let c=0;c<a.length;c++)(a[c]===null||fZ(a[c]))&&s.push(c);s.length&&bZ(a,s,r)}measureInitialState(){const{element:a,unresolvedKeyframes:r,name:s}=this;if(!a||!a.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gn[s](a.measureViewportBox(),window.getComputedStyle(a.current)),r[0]=this.measuredOrigin;const c=r[r.length-1];c!==void 0&&a.getValue(s,c).jump(c,!1)}measureEndState(){var h;const{element:a,name:r,unresolvedKeyframes:s}=this;if(!a||!a.current)return;const c=a.getValue(r);c&&c.jump(this.measuredOrigin,!1);const u=s.length-1,f=s[u];s[u]=Gn[r](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,p])=>{a.getValue(m).set(p)}),this.resolveNoneKeyframes()}}const AZ=new Set(["opacity","clipPath","filter","transform"]);function kA(e,a,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const c=(r==null?void 0:r[e])??s.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e).filter(s=>s!=null)}const DA=(e,a)=>a&&typeof e=="number"?a.transform(e):e;function _h(e){return Iw(e)&&"offsetHeight"in e}const{schedule:p6}=rA(queueMicrotask,!1),Ea={x:!1,y:!1};function OA(){return Ea.x||Ea.y}function EZ(e){return e==="x"||e==="y"?Ea[e]?null:(Ea[e]=!0,()=>{Ea[e]=!1}):Ea.x||Ea.y?null:(Ea.x=Ea.y=!0,()=>{Ea.x=Ea.y=!1})}function qA(e,a){const r=kA(e),s=new AbortController,c={passive:!0,...a,signal:s.signal};return[r,c,()=>s.abort()]}function jZ(e){return!(e.pointerType==="touch"||OA())}function SZ(e,a,r={}){const[s,c,u]=qA(e,r);return s.forEach(f=>{let h=!1,m=!1,p;const g=()=>{f.removeEventListener("pointerleave",N)},v=A=>{p&&(p(A),p=void 0),g()},b=A=>{h=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),m&&(m=!1,v(A))},w=()=>{h=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},N=A=>{if(A.pointerType!=="touch"){if(h){m=!0;return}v(A)}},j=A=>{if(!jZ(A))return;m=!1;const E=a(f,A);typeof E=="function"&&(p=E,f.addEventListener("pointerleave",N,c))};f.addEventListener("pointerenter",j,c),f.addEventListener("pointerdown",w,c)}),u}const zA=(e,a)=>a?e===a?!0:zA(e,a.parentElement):!1,g6=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,MZ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function NZ(e){return MZ.has(e.tagName)||e.isContentEditable===!0}const _Z=new Set(["INPUT","SELECT","TEXTAREA"]);function CZ(e){return _Z.has(e.tagName)||e.isContentEditable===!0}const e1=new WeakSet;function Ng(e){return a=>{a.key==="Enter"&&e(a)}}function Au(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const TZ=(e,a)=>{const r=e.currentTarget;if(!r)return;const s=Ng(()=>{if(e1.has(r))return;Au(r,"down");const c=Ng(()=>{Au(r,"up")}),u=()=>Au(r,"cancel");r.addEventListener("keyup",c,a),r.addEventListener("blur",u,a)});r.addEventListener("keydown",s,a),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),a)};function _g(e){return g6(e)&&!OA()}const Cg=new WeakSet;function HZ(e,a,r={}){const[s,c,u]=qA(e,r),f=h=>{const m=h.currentTarget;if(!_g(h)||Cg.has(h))return;e1.add(m),r.stopPropagation&&Cg.add(h);const p=a(m,h),g=(w,N)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),e1.has(m)&&e1.delete(m),_g(w)&&typeof p=="function"&&p(w,{success:N})},v=w=>{g(w,m===window||m===document||r.useGlobalTarget||zA(m,w.target))},b=w=>{g(w,!1)};window.addEventListener("pointerup",v,c),window.addEventListener("pointercancel",b,c)};return s.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",f,c),_h(h)&&(h.addEventListener("focus",p=>TZ(p,c)),!NZ(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function x6(e){return Iw(e)&&"ownerSVGElement"in e}const t1=new WeakMap;let $n;const FA=(e,a,r)=>(s,c)=>c&&c[0]?c[0][e+"Size"]:x6(s)&&"getBBox"in s?s.getBBox()[a]:s[r],ZZ=FA("inline","width","offsetWidth"),VZ=FA("block","height","offsetHeight");function LZ({target:e,borderBoxSize:a}){var r;(r=t1.get(e))==null||r.forEach(s=>{s(e,{get width(){return ZZ(e,a)},get height(){return VZ(e,a)}})})}function RZ(e){e.forEach(LZ)}function kZ(){typeof ResizeObserver>"u"||($n=new ResizeObserver(RZ))}function DZ(e,a){$n||kZ();const r=kA(e);return r.forEach(s=>{let c=t1.get(s);c||(c=new Set,t1.set(s,c)),c.add(a),$n==null||$n.observe(s)}),()=>{r.forEach(s=>{const c=t1.get(s);c==null||c.delete(a),c!=null&&c.size||$n==null||$n.unobserve(s)})}}const a1=new Set;let js;function OZ(){js=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};a1.forEach(a=>a(e))},window.addEventListener("resize",js)}function qZ(e){return a1.add(e),js||OZ(),()=>{a1.delete(e),!a1.size&&typeof js=="function"&&(window.removeEventListener("resize",js),js=void 0)}}function Tg(e,a){return typeof e=="function"?qZ(e):DZ(e,a)}function zZ(e){return x6(e)&&e.tagName==="svg"}const FZ=[...VA,ct,Sa],BZ=e=>FZ.find(ZA(e)),Hg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ss=()=>({x:Hg(),y:Hg()}),Zg=()=>({min:0,max:0}),ht=()=>({x:Zg(),y:Zg()}),UZ=new WeakMap;function j1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ai(e){return typeof e=="string"||Array.isArray(e)}const v6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y6=["initial",...v6];function S1(e){return j1(e.animate)||y6.some(a=>ai(e[a]))}function BA(e){return!!(S1(e)||e.variants)}function IZ(e,a,r){for(const s in a){const c=a[s],u=r[s];if(Nt(c))e.addValue(s,c);else if(Nt(u))e.addValue(s,Ts(c,{owner:e}));else if(u!==c)if(e.hasValue(s)){const f=e.getValue(s);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=e.getStaticValue(s);e.addValue(s,Ts(f!==void 0?f:c,{owner:e}))}}for(const s in r)a[s]===void 0&&e.removeValue(s);return a}const Ch={current:null},UA={current:!1},PZ=typeof window<"u";function $Z(){if(UA.current=!0,!!PZ)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),a=()=>Ch.current=e.matches;e.addEventListener("change",a),a()}else Ch.current=!1}const Vg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let h1={};function IA(e){h1=e}function GZ(){return h1}class YZ{scrapeMotionValuesFromProps(a,r,s){return{}}constructor({parent:a,props:r,presenceContext:s,reducedMotionConfig:c,skipAnimations:u,blockInitialAnimation:f,visualState:h},m={}){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=c6,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=Ct.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Ie.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=r.initial?{...p}:{},this.renderState=g,this.parent=a,this.props=r,this.presenceContext=s,this.depth=a?a.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=u,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=S1(r),this.isVariantNode=BA(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:v,...b}=this.scrapeMotionValuesFromProps(r,{},this);for(const w in b){const N=b[w];p[w]!==void 0&&Nt(N)&&N.set(p[w])}}mount(a){var r,s;if(this.hasBeenMounted)for(const c in this.initialValues)(r=this.values.get(c))==null||r.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=a,UZ.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:(UA.current||$Z(),this.shouldReduceMotion=Ch.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),Kn(this.notifyUpdate),Kn(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const s=this.features[r];s&&(s.unmount(),s.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,r){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),r.accelerate&&AZ.has(a)&&this.current instanceof HTMLElement){const{factory:f,keyframes:h,times:m,ease:p,duration:g}=r.accelerate,v=new EA({element:this.current,name:a,keyframes:h,times:m,ease:p,duration:ja(g)}),b=f(v);this.valueSubscriptions.set(a,()=>{b(),v.cancel()});return}const s=ks.has(a);s&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&Ie.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,a,r)),this.valueSubscriptions.set(a,()=>{c(),u&&u(),r.owner&&r.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 h1){const r=h1[a];if(!r)continue;const{isEnabled:s,Feature:c}=r;if(!this.features[a]&&c&&s(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):ht()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,r){this.latestValues[a]=r}update(a,r){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<Vg.length;s++){const c=Vg[s];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const u="on"+c,f=a[u];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=IZ(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 r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(a),()=>r.variantChildren.delete(a)}addValue(a,r){const s=this.values.get(a);r!==s&&(s&&this.removeValue(a),this.bindToMotionValue(a,r),this.values.set(a,r),this.latestValues[a]=r.get())}removeValue(a){this.values.delete(a);const r=this.valueSubscriptions.get(a);r&&(r(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,r){if(this.props.values&&this.props.values[a])return this.props.values[a];let s=this.values.get(a);return s===void 0&&r!==void 0&&(s=Ts(r===null?void 0:r,{owner:this}),this.addValue(a,s)),s}readValue(a,r){let s=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return s!=null&&(typeof s=="string"&&(Uw(s)||Pw(s))?s=parseFloat(s):!BZ(s)&&Sa.test(r)&&(s=RA(a,r)),this.setBaseTarget(a,Nt(s)?s.get():s)),Nt(s)?s.get():s}setBaseTarget(a,r){this.baseTarget[a]=r}getBaseTarget(a){var u;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const f=f6(this.props,r,(u=this.presenceContext)==null?void 0:u.custom);f&&(s=f[a])}if(r&&s!==void 0)return s;const c=this.getBaseTargetFromProps(this.props,a);return c!==void 0&&!Nt(c)?c:this.initialValues[a]!==void 0&&s===void 0?void 0:this.baseTarget[a]}on(a,r){return this.events[a]||(this.events[a]=new Jh),this.events[a].add(r)}notify(a,...r){this.events[a]&&this.events[a].notify(...r)}scheduleRenderMicrotask(){p6.render(this.render)}}class PA extends YZ{constructor(){super(...arguments),this.KeyframeResolver=wZ}sortInstanceNodePosition(a,r){return a.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(a,r){const s=a.style;return s?s[r]:void 0}removeValueFromRenderState(a,{vars:r,style:s}){delete r[a],delete s[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;Nt(a)&&(this.childSubscription=a.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Jn{constructor(a){this.isMounted=!1,this.node=a}update(){}}function $A({top:e,left:a,right:r,bottom:s}){return{x:{min:a,max:r},y:{min:e,max:s}}}function KZ({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function XZ(e,a){if(!a)return e;const r=a({x:e.left,y:e.top}),s=a({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}function Eu(e){return e===void 0||e===1}function Th({scale:e,scaleX:a,scaleY:r}){return!Eu(e)||!Eu(a)||!Eu(r)}function wr(e){return Th(e)||GA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function GA(e){return Lg(e.x)||Lg(e.y)}function Lg(e){return e&&e!=="0%"}function m1(e,a,r){const s=e-r,c=a*s;return r+c}function Rg(e,a,r,s,c){return c!==void 0&&(e=m1(e,c,s)),m1(e,r,s)+a}function Hh(e,a=0,r=1,s,c){e.min=Rg(e.min,a,r,s,c),e.max=Rg(e.max,a,r,s,c)}function YA(e,{x:a,y:r}){Hh(e.x,a.translate,a.scale,a.originPoint),Hh(e.y,r.translate,r.scale,r.originPoint)}const kg=.999999999999,Dg=1.0000000000001;function QZ(e,a,r,s=!1){const c=r.length;if(!c)return;a.x=a.y=1;let u,f;for(let h=0;h<c;h++){u=r[h],f=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ns(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),f&&(a.x*=f.x.scale,a.y*=f.y.scale,YA(e,f)),s&&wr(u.latestValues)&&Ns(e,u.latestValues))}a.x<Dg&&a.x>kg&&(a.x=1),a.y<Dg&&a.y>kg&&(a.y=1)}function Ms(e,a){e.min=e.min+a,e.max=e.max+a}function Og(e,a,r,s,c=.5){const u=Qe(e.min,e.max,c);Hh(e,a,r,u,s)}function Ns(e,a){Og(e.x,a.x,a.scaleX,a.scale,a.originX),Og(e.y,a.y,a.scaleY,a.scale,a.originY)}function KA(e,a){return $A(XZ(e.getBoundingClientRect(),a))}function JZ(e,a,r){const s=KA(e,r),{scroll:c}=a;return c&&(Ms(s.x,c.offset.x),Ms(s.y,c.offset.y)),s}const WZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eV=Rs.length;function tV(e,a,r){let s="",c=!0;for(let u=0;u<eV;u++){const f=Rs[u],h=e[f];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(f.startsWith("scale")?1:0);else{const p=parseFloat(h);m=f.startsWith("scale")?p===1:p===0}if(!m||r){const p=DA(h,m6[f]);if(!m){c=!1;const g=WZ[f]||f;s+=`${g}(${p}) `}r&&(a[f]=p)}}return s=s.trim(),r?s=r(a,c?"":s):c&&(s="none"),s}function b6(e,a,r){const{style:s,vars:c,transformOrigin:u}=e;let f=!1,h=!1;for(const m in a){const p=a[m];if(ks.has(m)){f=!0;continue}else if(iA(m)){c[m]=p;continue}else{const g=DA(p,m6[m]);m.startsWith("origin")?(h=!0,u[m]=g):s[m]=g}}if(a.transform||(f||r?s.transform=tV(a,e.transform,r):s.transform&&(s.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:g=0}=u;s.transformOrigin=`${m} ${p} ${g}`}}function XA(e,{style:a,vars:r},s,c){const u=e.style;let f;for(f in a)u[f]=a[f];c==null||c.applyProjectionStyles(u,s);for(f in r)u.setProperty(f,r[f])}function qg(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}const F0={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const r=qg(e,a.target.x),s=qg(e,a.target.y);return`${r}% ${s}%`}},aV={correct:(e,{treeScale:a,projectionDelta:r})=>{const s=e,c=Sa.parse(e);if(c.length>5)return s;const u=Sa.createTransformer(e),f=typeof c[0]!="number"?1:0,h=r.x.scale*a.x,m=r.y.scale*a.y;c[0+f]/=h,c[1+f]/=m;const p=Qe(h,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),u(c)}},Zh={borderRadius:{...F0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:F0,borderTopRightRadius:F0,borderBottomLeftRadius:F0,borderBottomRightRadius:F0,boxShadow:aV};function QA(e,{layout:a,layoutId:r}){return ks.has(e)||e.startsWith("origin")||(a||r!==void 0)&&(!!Zh[e]||e==="opacity")}function w6(e,a,r){var f;const s=e.style,c=a==null?void 0:a.style,u={};if(!s)return u;for(const h in s)(Nt(s[h])||c&&Nt(c[h])||QA(h,e)||((f=r==null?void 0:r.getValue(h))==null?void 0:f.liveStyle)!==void 0)&&(u[h]=s[h]);return u}function nV(e){return window.getComputedStyle(e)}class rV extends PA{constructor(){super(...arguments),this.type="html",this.renderInstance=XA}readValueFromInstance(a,r){var s;if(ks.has(r))return(s=this.projection)!=null&&s.isProjecting?xh(r):EH(a,r);{const c=nV(a),u=(iA(r)?c.getPropertyValue(r):c[r])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:r}){return KA(a,r)}build(a,r,s){b6(a,r,s.transformTemplate)}scrapeMotionValuesFromProps(a,r,s){return w6(a,r,s)}}const sV={offset:"stroke-dashoffset",array:"stroke-dasharray"},iV={offset:"strokeDashoffset",array:"strokeDasharray"};function lV(e,a,r=1,s=0,c=!0){e.pathLength=1;const u=c?sV:iV;e[u.offset]=`${-s}`,e[u.array]=`${a} ${r}`}const oV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function JA(e,{attrX:a,attrY:r,attrScale:s,pathLength:c,pathSpacing:u=1,pathOffset:f=0,...h},m,p,g){if(b6(e,h,p),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:b}=e;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete v.transformBox);for(const w of oV)v[w]!==void 0&&(b[w]=v[w],delete v[w]);a!==void 0&&(v.x=a),r!==void 0&&(v.y=r),s!==void 0&&(v.scale=s),c!==void 0&&lV(v,c,u,f,!1)}const WA=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"]),eE=e=>typeof e=="string"&&e.toLowerCase()==="svg";function cV(e,a,r,s){XA(e,a,void 0,s);for(const c in a.attrs)e.setAttribute(WA.has(c)?c:h6(c),a.attrs[c])}function tE(e,a,r){const s=w6(e,a,r);for(const c in e)if(Nt(e[c])||Nt(a[c])){const u=Rs.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;s[u]=e[c]}return s}class uV extends PA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(a,r){return a[r]}readValueFromInstance(a,r){if(ks.has(r)){const s=LA(r);return s&&s.default||0}return r=WA.has(r)?r:h6(r),a.getAttribute(r)}scrapeMotionValuesFromProps(a,r,s){return tE(a,r,s)}build(a,r,s){JA(a,r,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(a,r,s,c){cV(a,r,s,c)}mount(a){this.isSVGTag=eE(a.tagName),super.mount(a)}}const dV=y6.length;function aE(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?aE(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const a={};for(let r=0;r<dV;r++){const s=y6[r],c=e.props[s];(ai(c)||c===!1)&&(a[s]=c)}return a}function nE(e,a){if(!Array.isArray(a))return!1;const r=a.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(a[s]!==e[s])return!1;return!0}const fV=[...v6].reverse(),hV=v6.length;function mV(e){return a=>Promise.all(a.map(({animation:r,options:s})=>uZ(e,r,s)))}function pV(e){let a=mV(e),r=zg(),s=!0;const c=m=>(p,g)=>{var b;const v=Cs(e,g,m==="exit"?(b=e.presenceContext)==null?void 0:b.custom:void 0);if(v){const{transition:w,transitionEnd:N,...j}=v;p={...p,...j,...N}}return p};function u(m){a=m(e)}function f(m){const{props:p}=e,g=aE(e.parent)||{},v=[],b=new Set;let w={},N=1/0;for(let A=0;A<hV;A++){const E=fV[A],M=r[E],_=p[E]!==void 0?p[E]:g[E],H=ai(_),C=E===m?M.isActive:null;C===!1&&(N=A);let Z=_===g[E]&&_!==p[E]&&H;if(Z&&s&&e.manuallyAnimateOnMount&&(Z=!1),M.protectedKeys={...w},!M.isActive&&C===null||!_&&!M.prevProp||j1(_)||typeof _=="boolean")continue;if(E==="exit"&&M.isActive&&C!==!0){M.prevResolvedValues&&(w={...w,...M.prevResolvedValues});continue}const T=gV(M.prevProp,_);let L=T||E===m&&M.isActive&&!Z&&H||A>N&&H,R=!1;const k=Array.isArray(_)?_:[_];let B=k.reduce(c(E),{});C===!1&&(B={});const{prevResolvedValues:G={}}=M,Q={...G,...B},ee=$=>{L=!0,b.has($)&&(R=!0,b.delete($)),M.needsAnimating[$]=!0;const ne=e.getValue($);ne&&(ne.liveStyle=!1)};for(const $ in Q){const ne=B[$],ue=G[$];if(w.hasOwnProperty($))continue;let de=!1;Eh(ne)&&Eh(ue)?de=!nE(ne,ue):de=ne!==ue,de?ne!=null?ee($):b.add($):ne!==void 0&&b.has($)?ee($):M.protectedKeys[$]=!0}M.prevProp=_,M.prevResolvedValues=B,M.isActive&&(w={...w,...B}),s&&e.blockInitialAnimation&&(L=!1);const oe=Z&&T;L&&(!oe||R)&&v.push(...k.map($=>{const ne={type:E};if(typeof $=="string"&&s&&!oe&&e.manuallyAnimateOnMount&&e.parent){const{parent:ue}=e,de=Cs(ue,$);if(ue.enteringChildren&&de){const{delayChildren:q}=de.transition||{};ne.delay=SA(ue.enteringChildren,e,q)}}return{animation:$,options:ne}}))}if(b.size){const A={};if(typeof p.initial!="boolean"){const E=Cs(e,Array.isArray(p.initial)?p.initial[0]:p.initial);E&&E.transition&&(A.transition=E.transition)}b.forEach(E=>{const M=e.getBaseTarget(E),_=e.getValue(E);_&&(_.liveStyle=!0),A[E]=M??null}),v.push({animation:A})}let j=!!v.length;return s&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(j=!1),s=!1,j?a(v):Promise.resolve()}function h(m,p){var v;if(r[m].isActive===p)return Promise.resolve();(v=e.variantChildren)==null||v.forEach(b=>{var w;return(w=b.animationState)==null?void 0:w.setActive(m,p)}),r[m].isActive=p;const g=f(m);for(const b in r)r[b].protectedKeys={};return g}return{animateChanges:f,setActive:h,setAnimateFunction:u,getState:()=>r,reset:()=>{r=zg()}}}function gV(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!nE(a,e):!1}function br(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zg(){return{animate:br(!0),whileInView:br(),whileHover:br(),whileTap:br(),whileDrag:br(),whileFocus:br(),exit:br()}}function Fg(e,a){e.min=a.min,e.max=a.max}function Aa(e,a){Fg(e.x,a.x),Fg(e.y,a.y)}function Bg(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}const rE=1e-4,xV=1-rE,vV=1+rE,sE=.01,yV=0-sE,bV=0+sE;function Tt(e){return e.max-e.min}function wV(e,a,r){return Math.abs(e-a)<=r}function Ug(e,a,r,s=.5){e.origin=s,e.originPoint=Qe(a.min,a.max,e.origin),e.scale=Tt(r)/Tt(a),e.translate=Qe(r.min,r.max,e.origin)-e.originPoint,(e.scale>=xV&&e.scale<=vV||isNaN(e.scale))&&(e.scale=1),(e.translate>=yV&&e.translate<=bV||isNaN(e.translate))&&(e.translate=0)}function K0(e,a,r,s){Ug(e.x,a.x,r.x,s?s.originX:void 0),Ug(e.y,a.y,r.y,s?s.originY:void 0)}function Ig(e,a,r){e.min=r.min+a.min,e.max=e.min+Tt(a)}function AV(e,a,r){Ig(e.x,a.x,r.x),Ig(e.y,a.y,r.y)}function Pg(e,a,r){e.min=a.min-r.min,e.max=e.min+Tt(a)}function p1(e,a,r){Pg(e.x,a.x,r.x),Pg(e.y,a.y,r.y)}function $g(e,a,r,s,c){return e-=a,e=m1(e,1/r,s),c!==void 0&&(e=m1(e,1/c,s)),e}function EV(e,a=0,r=1,s=.5,c,u=e,f=e){if(qa.test(a)&&(a=parseFloat(a),a=Qe(f.min,f.max,a/100)-f.min),typeof a!="number")return;let h=Qe(u.min,u.max,s);e===u&&(h-=a),e.min=$g(e.min,a,r,h,c),e.max=$g(e.max,a,r,h,c)}function Gg(e,a,[r,s,c],u,f){EV(e,a[r],a[s],a[c],a.scale,u,f)}const jV=["x","scaleX","originX"],SV=["y","scaleY","originY"];function Yg(e,a,r,s){Gg(e.x,a,jV,r?r.x:void 0,s?s.x:void 0),Gg(e.y,a,SV,r?r.y:void 0,s?s.y:void 0)}function Kg(e){return e.translate===0&&e.scale===1}function iE(e){return Kg(e.x)&&Kg(e.y)}function Xg(e,a){return e.min===a.min&&e.max===a.max}function MV(e,a){return Xg(e.x,a.x)&&Xg(e.y,a.y)}function Qg(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function lE(e,a){return Qg(e.x,a.x)&&Qg(e.y,a.y)}function Jg(e){return Tt(e.x)/Tt(e.y)}function Wg(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}function ka(e){return[e("x"),e("y")]}function NV(e,a,r){let s="";const c=e.x.translate/a.x,u=e.y.translate/a.y,f=(r==null?void 0:r.z)||0;if((c||u||f)&&(s=`translate3d(${c}px, ${u}px, ${f}px) `),(a.x!==1||a.y!==1)&&(s+=`scale(${1/a.x}, ${1/a.y}) `),r){const{transformPerspective:p,rotate:g,rotateX:v,rotateY:b,skewX:w,skewY:N}=r;p&&(s=`perspective(${p}px) ${s}`),g&&(s+=`rotate(${g}deg) `),v&&(s+=`rotateX(${v}deg) `),b&&(s+=`rotateY(${b}deg) `),w&&(s+=`skewX(${w}deg) `),N&&(s+=`skewY(${N}deg) `)}const h=e.x.scale*a.x,m=e.y.scale*a.y;return(h!==1||m!==1)&&(s+=`scale(${h}, ${m})`),s||"none"}const oE=["TopLeft","TopRight","BottomLeft","BottomRight"],_V=oE.length,ex=e=>typeof e=="string"?parseFloat(e):e,tx=e=>typeof e=="number"||pe.test(e);function CV(e,a,r,s,c,u){c?(e.opacity=Qe(0,r.opacity??1,TV(s)),e.opacityExit=Qe(a.opacity??1,0,HV(s))):u&&(e.opacity=Qe(a.opacity??1,r.opacity??1,s));for(let f=0;f<_V;f++){const h=`border${oE[f]}Radius`;let m=ax(a,h),p=ax(r,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||tx(m)===tx(p)?(e[h]=Math.max(Qe(ex(m),ex(p),s),0),(qa.test(p)||qa.test(m))&&(e[h]+="%")):e[h]=p}(a.rotate||r.rotate)&&(e.rotate=Qe(a.rotate||0,r.rotate||0,s))}function ax(e,a){return e[a]!==void 0?e[a]:e.borderRadius}const TV=cE(0,.5,eA),HV=cE(.5,.95,ha);function cE(e,a,r){return s=>s<e?0:s>a?1:r(W0(e,a,s))}function ZV(e,a,r){const s=Nt(e)?e:Ts(e);return s.start(d6("",s,a,r)),s.animation}function ni(e,a,r,s={passive:!0}){return e.addEventListener(a,r,s),()=>e.removeEventListener(a,r)}const VV=(e,a)=>e.depth-a.depth;class LV{constructor(){this.children=[],this.isDirty=!1}add(a){Xh(this.children,a),this.isDirty=!0}remove(a){c1(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(VV),this.isDirty=!1,this.children.forEach(a)}}function RV(e,a){const r=Ct.now(),s=({timestamp:c})=>{const u=c-r;u>=a&&(Kn(s),e(u-a))};return Ie.setup(s,!0),()=>Kn(s)}function n1(e){return Nt(e)?e.get():e}class kV{constructor(){this.members=[]}add(a){Xh(this.members,a);for(let r=this.members.length-1;r>=0;r--){const s=this.members[r];if(s===a||s===this.lead||s===this.prevLead)continue;const c=s.instance;c&&c.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&c1(this.members,s)}a.scheduleRender()}remove(a){if(c1(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(a){const r=this.members.findIndex(c=>a===c);if(r===0)return!1;let s;for(let c=r;c>=0;c--){const u=this.members[c],f=u.instance;if(u.isPresent!==!1&&(!f||f.isConnected!==!1)){s=u;break}}return s?(this.promote(s),!0):!1}promote(a,r){const s=this.lead;if(a!==s&&(this.prevLead=s,this.lead=a,a.show(),s)){s.instance&&s.scheduleRender(),a.scheduleRender();const c=s.options.layoutDependency,u=a.options.layoutDependency;if(!(c!==void 0&&u!==void 0&&c===u)){const m=s.instance;m&&m.isConnected===!1&&!s.snapshot||(a.resumeFrom=s,r&&(a.resumeFrom.preserveOpacity=!0),s.snapshot&&(a.snapshot=s.snapshot,a.snapshot.latestValues=s.animationValues||s.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0))}const{crossfade:h}=a.options;h===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:r,resumingFrom:s}=a;r.onExitComplete&&r.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const r1={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ju=["","X","Y","Z"],DV=1e3;let OV=0;function Su(e,a,r,s){const{latestValues:c}=a;c[e]&&(r[e]=c[e],a.setStaticValue(e,0),s&&(s[e]=0))}function uE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:a}=e.options;if(!a)return;const r=TA(a);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ie,!(c||u))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&uE(s)}function dE({attachResizeListener:e,defaultParent:a,measureScroll:r,checkIsScrollRoot:s,resetTransform:c}){return class{constructor(f={},h=a==null?void 0:a()){this.id=OV++,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(FV),this.nodes.forEach(PV),this.nodes.forEach($V),this.nodes.forEach(BV)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,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 m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new LV)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Jh),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const m=this.eventHandlers.get(f);m&&m.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=x6(f)&&!zZ(f),this.instance=f;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let g,v=0;const b=()=>this.root.updateBlockedByResize=!1;Ie.read(()=>{v=window.innerWidth}),e(f,()=>{const w=window.innerWidth;w!==v&&(v=w,this.root.updateBlockedByResize=!0,g&&g(),g=RV(b,250),r1.hasAnimatedSinceResize&&(r1.hasAnimatedSinceResize=!1,this.nodes.forEach(sx)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||p.getDefaultTransition()||QV,{onLayoutAnimationStart:j,onLayoutAnimationComplete:A}=p.getProps(),E=!this.targetLayout||!lE(this.targetLayout,w),M=!v&&b;if(this.options.layoutRoot||this.resumeFrom||M||v&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...u6(N,"layout"),onPlay:j,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(g,M)}else v||sx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Kn(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(GV),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&uE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(IV),this.nodes.forEach(qV),this.nodes.forEach(zV)):this.nodes.forEach(rx),this.clearAllSnapshots();const h=Ct.now();Et.delta=za(0,1e3/60,h-Et.timestamp),Et.timestamp=h,Et.isProcessing=!0,gu.update.process(Et),gu.preRender.process(Et),gu.render.process(Et),Et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UV),this.sharedNodes.forEach(YV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Tt(this.snapshot.measuredBox.x)&&!Tt(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ht(),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,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!iE(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;f&&this.instance&&(h||wr(this.latestValues)||g)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return f&&(m=this.removeTransform(m)),JV(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return ht();const h=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(WV))){const{scroll:g}=this.root;g&&(Ms(h.x,g.offset.x),Ms(h.y,g.offset.y))}return h}removeElementScroll(f){var m;const h=ht();if(Aa(h,f),(m=this.scroll)!=null&&m.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:v,options:b}=g;g!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Aa(h,f),Ms(h.x,v.offset.x),Ms(h.y,v.offset.y))}return h}applyTransform(f,h=!1){const m=ht();Aa(m,f);for(let p=0;p<this.path.length;p++){const g=this.path[p];!h&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Ns(m,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),wr(g.latestValues)&&Ns(m,g.latestValues)}return wr(this.latestValues)&&Ns(m,this.latestValues),m}removeTransform(f){const h=ht();Aa(h,f);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!wr(p.latestValues))continue;Th(p.latestValues)&&p.updateSnapshot();const g=ht(),v=p.measurePageBox();Aa(g,v),Yg(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return wr(this.latestValues)&&Yg(h,this.latestValues),h}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==Et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!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 m=!!this.resumingFrom||this!==h;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!this.layout||!(g||v))return;this.resolvedRelativeTargetAt=Et.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=ht(),this.targetWithTransforms=ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),AV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Aa(this.target,this.layout.layoutBox),YA(this.target,this.targetDelta)):Aa(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||Th(this.parent.latestValues)||GA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,h,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),p1(this.relativeTargetOrigin,h,m),Aa(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var N;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Et.timestamp&&(m=!1),m)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;Aa(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;QZ(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=ht());const{target:w}=f;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bg(this.prevProjectionDelta.x,this.projectionDelta.x),Bg(this.prevProjectionDelta.y,this.projectionDelta.y)),K0(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!Wg(this.projectionDelta.x,this.prevProjectionDelta.x)||!Wg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ss(),this.projectionDelta=Ss(),this.projectionDeltaWithTransform=Ss()}setAnimationOrigin(f,h=!1){const m=this.snapshot,p=m?m.latestValues:{},g={...this.latestValues},v=Ss();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=ht(),w=m?m.source:void 0,N=this.layout?this.layout.source:void 0,j=w!==N,A=this.getStack(),E=!A||A.members.length<=1,M=!!(j&&!E&&this.options.crossfade===!0&&!this.path.some(XV));this.animationProgress=0;let _;this.mixTargetDelta=H=>{const C=H/1e3;ix(v.x,f.x,C),ix(v.y,f.y,C),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(p1(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KV(this.relativeTarget,this.relativeTargetOrigin,b,C),_&&MV(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=ht()),Aa(_,this.relativeTarget)),j&&(this.animationValues=g,CV(g,p,this.latestValues,C,M,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var h,m,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||p.stop(),this.pendingAnimation&&(Kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ie.update(()=>{r1.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ts(0)),this.motionValue.jump(0,!1),this.currentAnimation=ZV(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(DV),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:g}=f;if(!(!h||!m||!p)){if(this!==f&&this.layout&&p&&fE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||ht();const v=Tt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+v;const b=Tt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+b}Aa(h,m),Ns(h,g),K0(this.projectionDeltaWithTransform,this.layoutCorrected,h,g)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new kV),this.sharedNodes.get(f).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 f=this.getStack();return f?f.lead===this:!0}getLead(){var h;const{layoutId:f}=this.options;return f?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:f}=this.options;return f?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&Su("z",f,p,this.animationValues);for(let g=0;g<ju.length;g++)Su(`rotate${ju[g]}`,f,p,this.animationValues),Su(`skew${ju[g]}`,f,p,this.animationValues);f.render();for(const g in p)f.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);f.scheduleRender()}applyProjectionStyles(f,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=n1(h==null?void 0:h.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=n1(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!wr(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=NV(this.projectionDeltaWithTransform,this.treeScale,g);m&&(v=m(g,v)),f.transform=v;const{x:b,y:w}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const N in Zh){if(g[N]===void 0)continue;const{correct:j,applyTo:A,isCSSVariable:E}=Zh[N],M=v==="none"?g[N]:j(g[N],p);if(A){const _=A.length;for(let H=0;H<_;H++)f[A[H]]=M}else E?this.options.visualElement.renderState.vars[N]=M:f[N]=M}this.options.layoutId&&(f.pointerEvents=p===this?n1(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var h;return(h=f.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(nx),this.root.sharedNodes.clear()}}}function qV(e){e.updateLayout()}function zV(e){var r;const a=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:c}=e.layout,{animationType:u}=e.options,f=a.source!==e.layout.source;u==="size"?ka(v=>{const b=f?a.measuredBox[v]:a.layoutBox[v],w=Tt(b);b.min=s[v].min,b.max=b.min+w}):fE(u,a.layoutBox,s)&&ka(v=>{const b=f?a.measuredBox[v]:a.layoutBox[v],w=Tt(s[v]);b.max=b.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+w)});const h=Ss();K0(h,s,a.layoutBox);const m=Ss();f?K0(m,e.applyTransform(c,!0),a.measuredBox):K0(m,s,a.layoutBox);const p=!iE(h);let g=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:w}=v;if(b&&w){const N=ht();p1(N,a.layoutBox,b.layoutBox);const j=ht();p1(j,s,w.layoutBox),lE(N,j)||(g=!0),v.options.layoutRoot&&(e.relativeTarget=j,e.relativeTargetOrigin=N,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:m,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function FV(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 BV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UV(e){e.clearSnapshot()}function nx(e){e.clearMeasurements()}function rx(e){e.isLayoutDirty=!1}function IV(e){const{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function sx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function PV(e){e.resolveTargetDelta()}function $V(e){e.calcProjection()}function GV(e){e.resetSkewAndRotation()}function YV(e){e.removeLeadSnapshot()}function ix(e,a,r){e.translate=Qe(a.translate,0,r),e.scale=Qe(a.scale,1,r),e.origin=a.origin,e.originPoint=a.originPoint}function lx(e,a,r,s){e.min=Qe(a.min,r.min,s),e.max=Qe(a.max,r.max,s)}function KV(e,a,r,s){lx(e.x,a.x,r.x,s),lx(e.y,a.y,r.y,s)}function XV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const QV={duration:.45,ease:[.4,0,.1,1]},ox=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cx=ox("applewebkit/")&&!ox("chrome/")?Math.round:ha;function ux(e){e.min=cx(e.min),e.max=cx(e.max)}function JV(e){ux(e.x),ux(e.y)}function fE(e,a,r){return e==="position"||e==="preserve-aspect"&&!wV(Jg(a),Jg(r),.2)}function WV(e){var a;return e!==e.root&&((a=e.scroll)==null?void 0:a.wasRoot)}const eL=dE({attachResizeListener:(e,a)=>ni(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}),Mu={current:void 0},hE=dE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mu.current){const e=new eL({});e.mount(window),e.setOptions({layoutScroll:!0}),Mu.current=e}return Mu.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),A6=i.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function dx(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function tL(...e){return a=>{let r=!1;const s=e.map(c=>{const u=dx(c,a);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let c=0;c<s.length;c++){const u=s[c];typeof u=="function"?u():dx(e[c],null)}}}}function aL(...e){return i.useCallback(tL(...e),e)}class nL extends i.Component{getSnapshotBeforeUpdate(a){const r=this.props.childRef.current;if(r&&a.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=r.offsetParent,c=_h(s)&&s.offsetWidth||0,u=_h(s)&&s.offsetHeight||0,f=this.props.sizeRef.current;f.height=r.offsetHeight||0,f.width=r.offsetWidth||0,f.top=r.offsetTop,f.left=r.offsetLeft,f.right=c-f.width-f.left,f.bottom=u-f.height-f.top}return null}componentDidUpdate(){}render(){return this.props.children}}function rL({children:e,isPresent:a,anchorX:r,anchorY:s,root:c,pop:u}){var b;const f=i.useId(),h=i.useRef(null),m=i.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=i.useContext(A6),g=((b=e.props)==null?void 0:b.ref)??(e==null?void 0:e.ref),v=aL(h,g);return i.useInsertionEffect(()=>{const{width:w,height:N,top:j,left:A,right:E,bottom:M}=m.current;if(a||u===!1||!h.current||!w||!N)return;const _=r==="left"?`left: ${A}`:`right: ${E}`,H=s==="bottom"?`bottom: ${M}`:`top: ${j}`;h.current.dataset.motionPopId=f;const C=document.createElement("style");p&&(C.nonce=p);const Z=c??document.head;return Z.appendChild(C),C.sheet&&C.sheet.insertRule(`
62
- [data-motion-pop-id="${f}"] {
63
- position: absolute !important;
64
- width: ${w}px !important;
65
- height: ${N}px !important;
66
- ${_}px !important;
67
- ${H}px !important;
68
- }
69
- `),()=>{Z.contains(C)&&Z.removeChild(C)}},[a]),o.jsx(nL,{isPresent:a,childRef:h,sizeRef:m,pop:u,children:u===!1?e:i.cloneElement(e,{ref:v})})}const sL=({children:e,initial:a,isPresent:r,onExitComplete:s,custom:c,presenceAffectsLayout:u,mode:f,anchorX:h,anchorY:m,root:p})=>{const g=Kh(iL),v=i.useId();let b=!0,w=i.useMemo(()=>(b=!1,{id:v,initial:a,isPresent:r,custom:c,onExitComplete:N=>{g.set(N,!0);for(const j of g.values())if(!j)return;s&&s()},register:N=>(g.set(N,!1),()=>g.delete(N))}),[r,g,s]);return u&&b&&(w={...w}),i.useMemo(()=>{g.forEach((N,j)=>g.set(j,!1))},[r]),i.useEffect(()=>{!r&&!g.size&&s&&s()},[r]),e=o.jsx(rL,{pop:f==="popLayout",isPresent:r,anchorX:h,anchorY:m,root:p,children:e}),o.jsx(E1.Provider,{value:w,children:e})};function iL(){return new Map}function mE(e=!0){const a=i.useContext(E1);if(a===null)return[!0,null];const{isPresent:r,onExitComplete:s,register:c}=a,u=i.useId();i.useEffect(()=>{if(e)return c(u)},[e]);const f=i.useCallback(()=>e&&s&&s(u),[u,s,e]);return!r&&s?[!1,f]:[!0]}const Pl=e=>e.key||"";function fx(e){const a=[];return i.Children.forEach(e,r=>{i.isValidElement(r)&&a.push(r)}),a}const Ds=({children:e,custom:a,initial:r=!0,onExitComplete:s,presenceAffectsLayout:c=!0,mode:u="sync",propagate:f=!1,anchorX:h="left",anchorY:m="top",root:p})=>{const[g,v]=mE(f),b=i.useMemo(()=>fx(e),[e]),w=f&&!g?[]:b.map(Pl),N=i.useRef(!0),j=i.useRef(b),A=Kh(()=>new Map),E=i.useRef(new Set),[M,_]=i.useState(b),[H,C]=i.useState(b);Bw(()=>{N.current=!1,j.current=b;for(let L=0;L<H.length;L++){const R=Pl(H[L]);w.includes(R)?(A.delete(R),E.current.delete(R)):A.get(R)!==!0&&A.set(R,!1)}},[H,w.length,w.join("-")]);const Z=[];if(b!==M){let L=[...b];for(let R=0;R<H.length;R++){const k=H[R],B=Pl(k);w.includes(B)||(L.splice(R,0,k),Z.push(k))}return u==="wait"&&Z.length&&(L=Z),C(fx(L)),_(b),null}const{forceRender:T}=i.useContext(Yh);return o.jsx(o.Fragment,{children:H.map(L=>{const R=Pl(L),k=f&&!g?!1:b===H||w.includes(R),B=()=>{if(E.current.has(R))return;if(E.current.add(R),A.has(R))A.set(R,!0);else return;let G=!0;A.forEach(Q=>{Q||(G=!1)}),G&&(T==null||T(),C(j.current),f&&(v==null||v()),s&&s())};return o.jsx(sL,{isPresent:k,initial:!N.current||r?void 0:!1,custom:a,presenceAffectsLayout:c,mode:u,root:p,onExitComplete:k?void 0:B,anchorX:h,anchorY:m,children:L},R)})})},pE=i.createContext({strict:!1}),hx={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 mx=!1;function lL(){if(mx)return;const e={};for(const a in hx)e[a]={isEnabled:r=>hx[a].some(s=>!!r[s])};IA(e),mx=!0}function gE(){return lL(),GZ()}function oL(e){const a=gE();for(const r in e)a[r]={...a[r],...e[r]};IA(a)}const cL=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 g1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cL.has(e)}let xE=e=>!g1(e);function uL(e){typeof e=="function"&&(xE=a=>a.startsWith("on")?!g1(a):e(a))}try{uL(require("@emotion/is-prop-valid").default)}catch{}function dL(e,a,r){const s={};for(const c in e)c==="values"&&typeof e.values=="object"||(xE(c)||r===!0&&g1(c)||!a&&!g1(c)||e.draggable&&c.startsWith("onDrag"))&&(s[c]=e[c]);return s}const M1=i.createContext({});function fL(e,a){if(S1(e)){const{initial:r,animate:s}=e;return{initial:r===!1||ai(r)?r:void 0,animate:ai(s)?s:void 0}}return e.inherit!==!1?a:{}}function hL(e){const{initial:a,animate:r}=fL(e,i.useContext(M1));return i.useMemo(()=>({initial:a,animate:r}),[px(a),px(r)])}function px(e){return Array.isArray(e)?e.join(" "):e}const E6=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vE(e,a,r){for(const s in a)!Nt(a[s])&&!QA(s,r)&&(e[s]=a[s])}function mL({transformTemplate:e},a){return i.useMemo(()=>{const r=E6();return b6(r,a,e),Object.assign({},r.vars,r.style)},[a])}function pL(e,a){const r=e.style||{},s={};return vE(s,r,e),Object.assign(s,mL(e,a)),s}function gL(e,a){const r={},s=pL(e,a);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const yE=()=>({...E6(),attrs:{}});function xL(e,a,r,s){const c=i.useMemo(()=>{const u=yE();return JA(u,a,eE(s),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[a]);if(e.style){const u={};vE(u,e.style,e),c.style={...u,...c.style}}return c}const vL=["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 j6(e){return typeof e!="string"||e.includes("-")?!1:!!(vL.indexOf(e)>-1||/[A-Z]/u.test(e))}function yL(e,a,r,{latestValues:s},c,u=!1,f){const m=(f??j6(e)?xL:gL)(a,s,c,e),p=dL(a,typeof e=="string",u),g=e!==i.Fragment?{...p,...m,ref:r}:{},{children:v}=a,b=i.useMemo(()=>Nt(v)?v.get():v,[v]);return i.createElement(e,{...g,children:b})}function bL({scrapeMotionValuesFromProps:e,createRenderState:a},r,s,c){return{latestValues:wL(r,s,c,e),renderState:a()}}function wL(e,a,r,s){const c={},u=s(e,{});for(const b in u)c[b]=n1(u[b]);let{initial:f,animate:h}=e;const m=S1(e),p=BA(e);a&&p&&!m&&e.inherit!==!1&&(f===void 0&&(f=a.initial),h===void 0&&(h=a.animate));let g=r?r.initial===!1:!1;g=g||f===!1;const v=g?h:f;if(v&&typeof v!="boolean"&&!j1(v)){const b=Array.isArray(v)?v:[v];for(let w=0;w<b.length;w++){const N=f6(e,b[w]);if(N){const{transitionEnd:j,transition:A,...E}=N;for(const M in E){let _=E[M];if(Array.isArray(_)){const H=g?_.length-1:0;_=_[H]}_!==null&&(c[M]=_)}for(const M in j)c[M]=j[M]}}}return c}const bE=e=>(a,r)=>{const s=i.useContext(M1),c=i.useContext(E1),u=()=>bL(e,a,s,c);return r?u():Kh(u)},AL=bE({scrapeMotionValuesFromProps:w6,createRenderState:E6}),EL=bE({scrapeMotionValuesFromProps:tE,createRenderState:yE}),jL=Symbol.for("motionComponentSymbol");function SL(e,a,r){const s=i.useRef(r);i.useInsertionEffect(()=>{s.current=r});const c=i.useRef(null);return i.useCallback(u=>{var h;u&&((h=e.onMount)==null||h.call(e,u)),a&&(u?a.mount(u):a.unmount());const f=s.current;if(typeof f=="function")if(u){const m=f(u);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):f(u);else f&&(f.current=u)},[a])}const wE=i.createContext({});function ws(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ML(e,a,r,s,c,u){var _,H;const{visualElement:f}=i.useContext(M1),h=i.useContext(pE),m=i.useContext(E1),p=i.useContext(A6),g=p.reducedMotion,v=p.skipAnimations,b=i.useRef(null),w=i.useRef(!1);s=s||h.renderer,!b.current&&s&&(b.current=s(e,{visualState:a,parent:f,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g,skipAnimations:v,isSVG:u}),w.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const N=b.current,j=i.useContext(wE);N&&!N.projection&&c&&(N.type==="html"||N.type==="svg")&&NL(b.current,r,c,j);const A=i.useRef(!1);i.useInsertionEffect(()=>{N&&A.current&&N.update(r,m)});const E=r[CA],M=i.useRef(!!E&&!((_=window.MotionHandoffIsComplete)!=null&&_.call(window,E))&&((H=window.MotionHasOptimisedAnimation)==null?void 0:H.call(window,E)));return Bw(()=>{w.current=!0,N&&(A.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),M.current&&N.animationState&&N.animationState.animateChanges())}),i.useEffect(()=>{N&&(!M.current&&N.animationState&&N.animationState.animateChanges(),M.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,E)}),M.current=!1),N.enteringChildren=void 0)}),N}function NL(e,a,r,s){const{layoutId:c,layout:u,drag:f,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:g}=a;e.projection=new r(e.latestValues,a["data-framer-portal-id"]?void 0:AE(e.parent)),e.projection.setOptions({layoutId:c,layout:u,alwaysMeasureLayout:!!f||h&&ws(h),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:m,layoutRoot:p})}function AE(e){if(e)return e.options.allowProjection!==!1?e.projection:AE(e.parent)}function Nu(e,{forwardMotionProps:a=!1,type:r}={},s,c){s&&oL(s);const u=r?r==="svg":j6(e),f=u?EL:AL;function h(p,g){let v;const b={...i.useContext(A6),...p,layoutId:_L(p)},{isStatic:w}=b,N=hL(p),j=f(p,w);if(!w&&Fw){CL();const A=TL(b);v=A.MeasureLayout,N.visualElement=ML(e,j,b,c,A.ProjectionNode,u)}return o.jsxs(M1.Provider,{value:N,children:[v&&N.visualElement?o.jsx(v,{visualElement:N.visualElement,...b}):null,yL(e,p,SL(j,N.visualElement,g),j,w,a,u)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=i.forwardRef(h);return m[jL]=e,m}function _L({layoutId:e}){const a=i.useContext(Yh).id;return a&&e!==void 0?a+"-"+e:e}function CL(e,a){i.useContext(pE).strict}function TL(e){const a=gE(),{drag:r,layout:s}=a;if(!r&&!s)return{};const c={...r,...s};return{MeasureLayout:r!=null&&r.isEnabled(e)||s!=null&&s.isEnabled(e)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function HL(e,a){if(typeof Proxy>"u")return Nu;const r=new Map,s=(u,f)=>Nu(u,f,e,a),c=(u,f)=>s(u,f);return new Proxy(c,{get:(u,f)=>f==="create"?s:(r.has(f)||r.set(f,Nu(f,void 0,e,a)),r.get(f))})}const ZL=(e,a)=>a.isSVG??j6(e)?new uV(a):new rV(a,{allowProjection:e!==i.Fragment});class VL extends Jn{constructor(a){super(a),a.animationState||(a.animationState=pV(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();j1(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:r}=this.node.prevProps||{};a!==r&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let LL=0;class RL extends Jn{constructor(){super(...arguments),this.id=LL++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===s)return;const c=this.node.animationState.setActive("exit",!a);r&&!a&&c.then(()=>{r(this.id)})}mount(){const{register:a,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const kL={animation:{Feature:VL},exit:{Feature:RL}};function hi(e){return{point:{x:e.pageX,y:e.pageY}}}const DL=e=>a=>g6(a)&&e(a,hi(a));function X0(e,a,r,s){return ni(e,a,DL(r),s)}const EE=({current:e})=>e?e.ownerDocument.defaultView:null,gx=(e,a)=>Math.abs(e-a);function OL(e,a){const r=gx(e.x,a.x),s=gx(e.y,a.y);return Math.sqrt(r**2+s**2)}const xx=new Set(["auto","scroll"]);class jE{constructor(a,r,{transformPagePoint:s,contextWindow:c=window,dragSnapToOrigin:u=!1,distanceThreshold:f=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=Cu(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,j=OL(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!j)return;const{point:A}=w,{timestamp:E}=Et;this.history.push({...A,timestamp:E});const{onStart:M,onMove:_}=this.handlers;N||(M&&M(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,w)},this.handlePointerMove=(w,N)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=_u(N,this.transformPagePoint),Ie.update(this.updatePoint,!0)},this.handlePointerUp=(w,N)=>{this.end();const{onEnd:j,onSessionEnd:A,resumeAnimation:E}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=Cu(w.type==="pointercancel"?this.lastMoveEventInfo:_u(N,this.transformPagePoint),this.history);this.startEvent&&j&&j(w,M),A&&A(w,M)},!g6(a))return;this.dragSnapToOrigin=u,this.handlers=r,this.transformPagePoint=s,this.distanceThreshold=f,this.contextWindow=c||window;const m=hi(a),p=_u(m,this.transformPagePoint),{point:g}=p,{timestamp:v}=Et;this.history=[{...g,timestamp:v}];const{onSessionStart:b}=r;b&&b(a,Cu(p,this.history)),this.removeListeners=ui(X0(this.contextWindow,"pointermove",this.handlePointerMove),X0(this.contextWindow,"pointerup",this.handlePointerUp),X0(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let r=a.parentElement;for(;r;){const s=getComputedStyle(r);(xx.has(s.overflowX)||xx.has(s.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.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 r=this.scrollPositions.get(a);if(!r)return;const s=a===window,c=s?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},u={x:c.x-r.x,y:c.y-r.y};u.x===0&&u.y===0||(s?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),Ie.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kn(this.updatePoint)}}function _u(e,a){return a?{point:a(e.point)}:e}function vx(e,a){return{x:e.x-a.x,y:e.y-a.y}}function Cu({point:e},a){return{point:e,delta:vx(e,SE(a)),offset:vx(e,qL(a)),velocity:zL(a,.1)}}function qL(e){return e[0]}function SE(e){return e[e.length-1]}function zL(e,a){if(e.length<2)return{x:0,y:0};let r=e.length-1,s=null;const c=SE(e);for(;r>=0&&(s=e[r],!(c.timestamp-s.timestamp>ja(a)));)r--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&c.timestamp-s.timestamp>ja(a)*2&&(s=e[1]);const u=fa(c.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const f={x:(c.x-s.x)/u,y:(c.y-s.y)/u};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function FL(e,{min:a,max:r},s){return a!==void 0&&e<a?e=s?Qe(a,e,s.min):Math.max(e,a):r!==void 0&&e>r&&(e=s?Qe(r,e,s.max):Math.min(e,r)),e}function yx(e,a,r){return{min:a!==void 0?e.min+a:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function BL(e,{top:a,left:r,bottom:s,right:c}){return{x:yx(e.x,r,c),y:yx(e.y,a,s)}}function bx(e,a){let r=a.min-e.min,s=a.max-e.max;return a.max-a.min<e.max-e.min&&([r,s]=[s,r]),{min:r,max:s}}function UL(e,a){return{x:bx(e.x,a.x),y:bx(e.y,a.y)}}function IL(e,a){let r=.5;const s=Tt(e),c=Tt(a);return c>s?r=W0(a.min,a.max-s,e.min):s>c&&(r=W0(e.min,e.max-c,a.min)),za(0,1,r)}function PL(e,a){const r={};return a.min!==void 0&&(r.min=a.min-e.min),a.max!==void 0&&(r.max=a.max-e.min),r}const Vh=.35;function $L(e=Vh){return e===!1?e=0:e===!0&&(e=Vh),{x:wx(e,"left","right"),y:wx(e,"top","bottom")}}function wx(e,a,r){return{min:Ax(e,a),max:Ax(e,r)}}function Ax(e,a){return typeof e=="number"?e:e[a]||0}const GL=new WeakMap;class YL{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=ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:r=!1,distanceThreshold:s}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const u=v=>{r&&this.snapToCursor(hi(v).point),this.stopAnimation()},f=(v,b)=>{const{drag:w,dragPropagation:N,onDragStart:j}=this.getProps();if(w&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=EZ(w),!this.openDragLock))return;this.latestPointerEvent=v,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),ka(E=>{let M=this.getAxisMotionValue(E).get()||0;if(qa.test(M)){const{projection:_}=this.visualElement;if(_&&_.layout){const H=_.layout.layoutBox[E];H&&(M=Tt(H)*(parseFloat(M)/100))}}this.originPoint[E]=M}),j&&Ie.update(()=>j(v,b),!1,!0),jh(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},h=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:N,onDirectionLock:j,onDrag:A}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:E}=b;if(N&&this.currentDirection===null){this.currentDirection=XL(E),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",b.point,E),this.updateAxis("y",b.point,E),this.visualElement.render(),A&&Ie.update(()=>A(v,b),!1,!0)},m=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new jE(a,{onSessionStart:u,onStart:f,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:EE(this.visualElement),element:this.visualElement.current})}stop(a,r){const s=a||this.latestPointerEvent,c=r||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!c||!s)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:h}=this.getProps();h&&Ie.postRender(()=>h(s,c))}cancel(){this.isDragging=!1;const{projection:a,animationState:r}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,r,s){const{drag:c}=this.getProps();if(!s||!$l(a,c,this.currentDirection))return;const u=this.getAxisMotionValue(a);let f=this.originPoint[a]+s[a];this.constraints&&this.constraints[a]&&(f=FL(f,this.constraints[a],this.elastic[a])),u.set(f)}resolveConstraints(){var u;const{dragConstraints:a,dragElastic:r}=this.getProps(),s=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&&ws(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&s?this.constraints=BL(s.layoutBox,a):this.constraints=!1,this.elastic=$L(r),c!==this.constraints&&!ws(a)&&s&&this.constraints&&!this.hasMutatedConstraints&&ka(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=PL(s.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:r}=this.getProps();if(!a||!ws(a))return!1;const s=a.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const u=JZ(s,c.root,this.visualElement.getTransformPagePoint());let f=UL(c.layout.layoutBox,u);if(r){const h=r(KZ(f));this.hasMutatedConstraints=!!h,h&&(f=$A(h))}return f}startAnimation(a){const{drag:r,dragMomentum:s,dragElastic:c,dragTransition:u,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=ka(g=>{if(!$l(g,r,this.currentDirection))return;let v=m&&m[g]||{};f&&(v={min:0,max:0});const b=c?200:1e6,w=c?40:1e7,N={type:"inertia",velocity:s?a[g]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(g,N)});return Promise.all(p).then(h)}startAxisValueAnimation(a,r){const s=this.getAxisMotionValue(a);return jh(this.visualElement,a),s.start(d6(a,s,0,r,this.visualElement,!1))}stopAnimation(){ka(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const r=`_drag${a.toUpperCase()}`,s=this.visualElement.getProps(),c=s[r];return c||this.visualElement.getValue(a,(s.initial?s.initial[a]:void 0)||0)}snapToCursor(a){ka(r=>{const{drag:s}=this.getProps();if(!$l(r,s,this.currentDirection))return;const{projection:c}=this.visualElement,u=this.getAxisMotionValue(r);if(c&&c.layout){const{min:f,max:h}=c.layout.layoutBox[r],m=u.get()||0;u.set(a[r]-Qe(f,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!ws(r)||!s||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};ka(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const m=h.get();c[f]=IL({min:m,max:m},this.constraints[f])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),ka(f=>{if(!$l(f,a,null))return;const h=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];h.set(Qe(m,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;GL.set(this.visualElement,this);const a=this.visualElement.current,r=X0(a,"pointerdown",p=>{const{drag:g,dragListener:v=!0}=this.getProps(),b=p.target,w=b!==a&&CZ(b);g&&v&&!w&&this.start(p)});let s;const c=()=>{const{dragConstraints:p}=this.getProps();ws(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),s||(s=KL(a,p.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,f=u.addEventListener("measure",c);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Ie.read(c);const h=ni(window,"resize",()=>this.scalePositionWithinConstraints()),m=u.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(ka(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=p[v].translate,b.set(b.get()+p[v].translate))}),this.visualElement.render())}));return()=>{h(),r(),f(),m&&m(),s&&s()}}getProps(){const a=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:c=!1,dragConstraints:u=!1,dragElastic:f=Vh,dragMomentum:h=!0}=a;return{...a,drag:r,dragDirectionLock:s,dragPropagation:c,dragConstraints:u,dragElastic:f,dragMomentum:h}}}function Ex(e){let a=!0;return()=>{if(a){a=!1;return}e()}}function KL(e,a,r){const s=Tg(e,Ex(r)),c=Tg(a,Ex(r));return()=>{s(),c()}}function $l(e,a,r){return(a===!0||a===e)&&(r===null||r===e)}function XL(e,a=10){let r=null;return Math.abs(e.y)>a?r="y":Math.abs(e.x)>a&&(r="x"),r}class QL extends Jn{constructor(a){super(a),this.removeGroupControls=ha,this.removeListeners=ha,this.controls=new YL(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ha}update(){const{dragControls:a}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};a!==r&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Tu=e=>(a,r)=>{e&&Ie.update(()=>e(a,r),!1,!0)};class JL extends Jn{constructor(){super(...arguments),this.removePointerDownListener=ha}onPointerDown(a){this.session=new jE(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:EE(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:r,onPan:s,onPanEnd:c}=this.node.getProps();return{onSessionStart:Tu(a),onStart:Tu(r),onMove:Tu(s),onEnd:(u,f)=>{delete this.session,c&&Ie.postRender(()=>c(u,f))}}}mount(){this.removePointerDownListener=X0(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 Hu=!1;class WL extends i.Component{componentDidMount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:s,layoutId:c}=this.props,{projection:u}=a;u&&(r.group&&r.group.add(u),s&&s.register&&c&&s.register(u),Hu&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),r1.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:r,visualElement:s,drag:c,isPresent:u}=this.props,{projection:f}=s;return f&&(f.isPresent=u,a.layoutDependency!==r&&f.setOptions({...f.options,layoutDependency:r}),Hu=!0,c||a.layoutDependency!==r||r===void 0||a.isPresent!==u?f.willUpdate():this.safeToRemove(),a.isPresent!==u&&(u?f.promote():f.relegate()||Ie.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),p6.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:c}=a;Hu=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),s&&s.deregister&&s.deregister(c))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function ME(e){const[a,r]=mE(),s=i.useContext(Yh);return o.jsx(WL,{...e,layoutGroup:s,switchLayoutGroup:i.useContext(wE),isPresent:a,safeToRemove:r})}const eR={pan:{Feature:JL},drag:{Feature:QL,ProjectionNode:hE,MeasureLayout:ME}};function jx(e,a,r){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,u=s[c];u&&Ie.postRender(()=>u(a,hi(a)))}class tR extends Jn{mount(){const{current:a}=this.node;a&&(this.unmount=SZ(a,(r,s)=>(jx(this.node,s,"Start"),c=>jx(this.node,c,"End"))))}unmount(){}}class aR extends Jn{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=ui(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Sx(e,a,r){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),u=s[c];u&&Ie.postRender(()=>u(a,hi(a)))}class nR extends Jn{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:r,propagate:s}=this.node.props;this.unmount=HZ(a,(c,u)=>(Sx(this.node,u,"Start"),(f,{success:h})=>Sx(this.node,f,h?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const Lh=new WeakMap,Zu=new WeakMap,rR=e=>{const a=Lh.get(e.target);a&&a(e)},sR=e=>{e.forEach(rR)};function iR({root:e,...a}){const r=e||document;Zu.has(r)||Zu.set(r,{});const s=Zu.get(r),c=JSON.stringify(a);return s[c]||(s[c]=new IntersectionObserver(sR,{root:e,...a})),s[c]}function lR(e,a,r){const s=iR(a);return Lh.set(e,r),s.observe(e),()=>{Lh.delete(e),s.unobserve(e)}}const oR={some:0,all:1};class cR extends Jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:r,margin:s,amount:c="some",once:u}=a,f={root:r?r.current:void 0,rootMargin:s,threshold:typeof c=="number"?c:oR[c]},h=m=>{const{isIntersecting:p}=m;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:v}=this.node.getProps(),b=p?g:v;b&&b(m)};return lR(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:r}=this.node;["amount","margin","root"].some(uR(a,r))&&this.startObserver()}unmount(){}}function uR({viewport:e={}},{viewport:a={}}={}){return r=>e[r]!==a[r]}const dR={inView:{Feature:cR},tap:{Feature:nR},focus:{Feature:aR},hover:{Feature:tR}},fR={layout:{ProjectionNode:hE,MeasureLayout:ME}},hR={...kL,...dR,...eR,...fR},mt=HL(hR,ZL),mR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),pR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,152l-48,48V104Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),gR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),xR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),vR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),yR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),bR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),wR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),AR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),ER=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),jR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),SR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),MR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),NR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),_R=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),CR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),TR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),HR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),ZR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),VR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),LR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),RR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),kR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M160,128a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),DR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),OR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),qR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),zR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),FR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),BR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),UR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),IR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),PR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),$R=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),GR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),YR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),KR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),XR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),QR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),JR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),WR=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),ek=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),tk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),ak=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),nk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),rk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),sk=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",i.createElement(i.Fragment,null,i.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"}),i.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]]),ik=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,160l-56,56V160Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),lk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),ok=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),ck=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),uk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),dk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),fk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),hk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),mk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),pk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),gk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),xk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),vk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),yk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),bk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),wk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Ak=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Ek=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),jk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Sk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Mk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Nk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),_k=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Ck=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Tk=new Map([["bold",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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",i.createElement(i.Fragment,null,i.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"}))]]),Hk=i.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ce=i.forwardRef((e,a)=>{const{alt:r,color:s,size:c,weight:u,mirrored:f,children:h,weights:m,...p}=e,{color:g="currentColor",size:v,weight:b="regular",mirrored:w=!1,...N}=i.useContext(Hk);return i.createElement("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c??v,height:c??v,fill:s??g,viewBox:"0 0 256 256",transform:f||w?"scale(-1, 1)":void 0,...N,...p},!!r&&i.createElement("title",null,r),h,m.get(u??b))});ce.displayName="IconBase";const NE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:mR}));NE.displayName="AddressBookIcon";const _E=NE,CE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:pR}));CE.displayName="ArrowBendDownRightIcon";const Zk=CE,TE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:gR}));TE.displayName="ArrowClockwiseIcon";const HE=TE,ZE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:xR}));ZE.displayName="ArrowLeftIcon";const mi=ZE,VE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:vR}));VE.displayName="ArrowRightIcon";const Vk=VE,LE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:yR}));LE.displayName="BellRingingIcon";const S6=LE,RE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:bR}));RE.displayName="BookOpenIcon";const kE=RE,DE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:wR}));DE.displayName="BrainIcon";const Lk=DE,OE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:AR}));OE.displayName="CalendarBlankIcon";const N1=OE,qE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:ER}));qE.displayName="CalendarIcon";const Rk=qE,zE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:jR}));zE.displayName="CameraIcon";const kk=zE,FE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:SR}));FE.displayName="CaretDownIcon";const Os=FE,BE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:MR}));BE.displayName="CaretRightIcon";const Dk=BE,UE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:NR}));UE.displayName="CaretUpIcon";const Ok=UE,IE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:_R}));IE.displayName="ChartBarIcon";const PE=IE,$E=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:CR}));$E.displayName="ChatCircleIcon";const x1=$E,GE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:TR}));GE.displayName="CheckIcon";const ri=GE,YE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:HR}));YE.displayName="CheckCircleIcon";const _1=YE,KE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:ZR}));KE.displayName="CircleNotchIcon";const mn=KE,XE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:VR}));XE.displayName="ClipboardTextIcon";const qk=XE,QE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:LR}));QE.displayName="ClockIcon";const v1=QE,JE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:RR}));JE.displayName="ClockCounterClockwiseIcon";const zk=JE,WE=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:kR}));WE.displayName="CrosshairIcon";const Fk=WE,ej=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:DR}));ej.displayName="CubeIcon";const Rh=ej,tj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:OR}));tj.displayName="DownloadIcon";const Bk=tj,aj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:qR}));aj.displayName="EjectIcon";const Uk=aj,nj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:zR}));nj.displayName="EnvelopeIcon";const Ik=nj,rj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:FR}));rj.displayName="EyeIcon";const Pk=rj,sj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:BR}));sj.displayName="FileTextIcon";const $k=sj,ij=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:UR}));ij.displayName="FloppyDiskIcon";const Gk=ij,lj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:IR}));lj.displayName="GearIcon";const Yk=lj,oj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:PR}));oj.displayName="GearSixIcon";const cj=oj,uj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:$R}));uj.displayName="GitBranchIcon";const Kk=uj,dj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:GR}));dj.displayName="GlobeIcon";const pi=dj,fj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:YR}));fj.displayName="HandIcon";const M6=fj,hj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:KR}));hj.displayName="HandshakeIcon";const Xk=hj,mj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:XR}));mj.displayName="HeadsetIcon";const Qk=mj,pj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:QR}));pj.displayName="KanbanIcon";const N6=pj,gj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:JR}));gj.displayName="LightningIcon";const Na=gj,xj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:WR}));xj.displayName="ListIcon";const vj=xj,yj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:ek}));yj.displayName="ListChecksIcon";const C1=yj,bj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:tk}));bj.displayName="MagnetIcon";const Jk=bj,wj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:ak}));wj.displayName="MagnifyingGlassIcon";const Wn=wj,Aj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:nk}));Aj.displayName="MicrophoneIcon";const Ej=Aj,jj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:rk}));jj.displayName="MicrophoneSlashIcon";const Sj=jj,Mj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:sk}));Mj.displayName="MinusIcon";const Wk=Mj,Nj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:ik}));Nj.displayName="NoteIcon";const eD=Nj,_j=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:lk}));_j.displayName="PaperPlaneRightIcon";const kh=_j,Cj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:ok}));Cj.displayName="PauseIcon";const tD=Cj,Tj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:ck}));Tj.displayName="PencilLineIcon";const aD=Tj,Hj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:uk}));Hj.displayName="PencilSimpleIcon";const Dh=Hj,Zj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:dk}));Zj.displayName="PhoneDisconnectIcon";const nD=Zj,Vj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:fk}));Vj.displayName="PlayIcon";const Lj=Vj,Rj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:hk}));Rj.displayName="PlugsConnectedIcon";const _6=Rj,kj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:mk}));kj.displayName="PlusIcon";const Bt=kj,Dj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:pk}));Dj.displayName="PulseIcon";const rD=Dj,Oj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:gk}));Oj.displayName="RobotIcon";const pn=Oj,qj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:xk}));qj.displayName="ShieldCheckIcon";const zj=qj,Fj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:vk}));Fj.displayName="ShuffleIcon";const sD=Fj,Bj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:yk}));Bj.displayName="SpinnerIcon";const Uj=Bj,Ij=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:bk}));Ij.displayName="SpinnerGapIcon";const iD=Ij,Pj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:wk}));Pj.displayName="SquaresFourIcon";const lD=Pj,$j=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:Ak}));$j.displayName="StarIcon";const oD=$j,Gj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:Ek}));Gj.displayName="TrashIcon";const Ua=Gj,Yj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:jk}));Yj.displayName="UploadIcon";const cD=Yj,Kj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:Sk}));Kj.displayName="UserGearIcon";const uD=Kj,Xj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:Mk}));Xj.displayName="UserPlusIcon";const dD=Xj,Qj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:Nk}));Qj.displayName="WarningIcon";const C6=Qj,Jj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:_k}));Jj.displayName="WebhooksLogoIcon";const fD=Jj,Wj=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:Ck}));Wj.displayName="XIcon";const Fa=Wj,eS=i.forwardRef((e,a)=>i.createElement(ce,{ref:a,...e,weights:Tk}));eS.displayName="XCircleIcon";const tS=eS,Oh=new EventTarget;function ge(e,a){Oh.dispatchEvent(new CustomEvent("toast",{detail:{type:e,message:a}}))}const hD={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 mD(){const[e,a]=i.useState([]);i.useEffect(()=>{const s=c=>{const{type:u,message:f}=c.detail,h=crypto.randomUUID();a(m=>[...m.slice(-4),{id:h,type:u,message:f}]),setTimeout(()=>{a(m=>m.filter(p=>p.id!==h))},5e3)};return Oh.addEventListener("toast",s),()=>Oh.removeEventListener("toast",s)},[]);const r=s=>{a(c=>c.filter(u=>u.id!==s))};return o.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:o.jsx(Ds,{children:e.map(s=>o.jsxs(mt.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 ${hD[s.type]}`,children:[o.jsx("span",{className:"flex-1",children:s.message}),o.jsx("button",{onClick:()=>r(s.id),className:"opacity-60 hover:opacity-100",children:o.jsx(Fa,{size:14})})]},s.id))})})}function Ve(e,a=[]){const[r,s]=i.useState(null),[c,u]=i.useState(!!e),[f,h]=i.useState(null),[m,p]=i.useState(0),g=i.useCallback(()=>p(v=>v+1),[]);return i.useEffect(()=>{if(!e)return;let v=!1;return u(!0),he(e).then(b=>{v||(s(b.data),h(null))}).catch(b=>{v||h(b.message)}).finally(()=>{v||u(!1)}),()=>{v=!0}},[e,m,...a]),{data:r,loading:c,error:f,refetch:g}}function T6(){const[e,a]=i.useState("connected"),[r,s]=i.useState(!0),[c,u]=i.useState(!0);return i.useEffect(()=>{let f=!1;return fetch("/api/runtime/tier").then(h=>h.json()).then(h=>{if(!f){const p=h.data.tier==="free"?"free":"connected";a(p),s(h.data.modelReady??!0)}}).catch(()=>{}).finally(()=>{f||u(!1)}),()=>{f=!0}},[]),{tier:e,modelReady:r,loading:c}}let zt=null,Vu=null;const qh=new Set,pD=3e3;function gD(){const e=Qn(),a=window.location.protocol==="https:"?"wss:":"ws:",r=window.location.host;return`${a}//${r}/ws?token=${e}`}function H6(){if(!((zt==null?void 0:zt.readyState)===WebSocket.OPEN||(zt==null?void 0:zt.readyState)===WebSocket.CONNECTING||!Qn()))try{zt=new WebSocket(gD()),zt.onmessage=a=>{try{const r=JSON.parse(a.data);for(const s of qh)s(r.type,r.data)}catch{}},zt.onclose=()=>{zt=null,Mx()},zt.onerror=()=>{zt==null||zt.close()}}catch{Mx()}}function Mx(){Vu||(Vu=setTimeout(()=>{Vu=null,H6()},pD))}function aS(e){return qh.add(e),()=>qh.delete(e)}function Ia(e){const[a,r]=i.useState(0);return i.useEffect(()=>(H6(),aS(s=>{e.includes(s)&&r(c=>c+1)})),[e.join(",")]),a}function xD(e){const a=i.useRef(e);i.useEffect(()=>{a.current=e}),i.useEffect(()=>(H6(),aS((r,s)=>{a.current(r,s)})),[])}function vD(){xD(i.useCallback((e,a)=>{const r=a;switch(e){case"task:completed":ge("success",`Task completed${r!=null&&r.taskId?` (${r.taskId.slice(0,8)})`:""}`);break;case"task:failed":ge("error",`Task failed: ${(r==null?void 0:r.error)||"Unknown error"}`);break;case"cloud:connected":ge("info","Connected to cloud");break;case"cloud:disconnected":ge("error",`Disconnected: ${(r==null?void 0:r.reason)||"Unknown"}`);break;case"credits:exhausted":ge("info","Cloud credits exhausted. Tasks are running on your local model.");break}},[]))}function yD({children:e}){return o.jsx(mt.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 bD=[{path:"/",label:"Chat",icon:x1,group:"primary"},{path:"/dashboard",label:"Overview",icon:lD,group:"primary"},{path:"/tasks",label:"Tasks",icon:C1,group:"primary"},{path:"/activity",label:"Activity",icon:rD,group:"primary"},{path:"/messages",label:"Messages",icon:x1,group:"primary"},{path:"/agents",label:"Agents",icon:pn,group:"manage"},{path:"/projects",label:"Projects",icon:N6,group:"manage"},{path:"/automations",label:"Automations",icon:Na,group:"manage"},{path:"/templates",label:"Templates",icon:Rh,group:"manage"},{path:"/schedules",label:"Schedules",icon:N1,group:"manage"},{path:"/approvals",label:"Approvals",icon:zj,group:"manage"},{path:"/connections",label:"Connections",icon:_6,group:"configure"},{path:"/knowledge",label:"Knowledge",icon:kE,group:"configure"},{path:"/settings",label:"Settings",icon:cj,group:"configure"}];function wD(e){const a=Math.floor(e/3600),r=Math.floor(e%3600/60);return a>0?`${a}h ${r}m`:`${r}m`}function AD({label:e,children:a}){return o.jsxs("div",{children:[o.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-3 mb-1.5",children:e}),o.jsx("div",{className:"space-y-0.5",children:a})]})}function ED({path:e,label:a,icon:r,isActive:s}){return o.jsxs(Nr,{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 ${s?"text-white":"text-neutral-400 hover:text-white hover:bg-white/5"}`,children:[s&&o.jsx(mt.div,{layoutId:"sidebar-active",className:"absolute inset-0 bg-white/10 rounded-md",transition:{type:"spring",stiffness:350,damping:30}}),o.jsxs("span",{className:"relative z-10 flex items-center gap-3",children:[o.jsx(r,{size:16,weight:"bold"}),a]})]})}function Nx({health:e,tier:a,tierLoading:r,visibleNav:s,pathname:c,onClose:u}){const f=p=>p==="/"?c==="/"||c==="":c.startsWith(p),h=[{key:"primary"},{key:"manage",label:"Manage"},{key:"configure",label:"Configure"}],m=p=>p.map(g=>o.jsx(ED,{path:g.path,label:g.label,icon:g.icon,isActive:f(g.path)},g.path));return o.jsxs("div",{className:"flex flex-col h-full",children:[o.jsxs("div",{className:"p-4 border-b border-white/10 flex items-center justify-between",children:[o.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[o.jsx("span",{className:"font-bold",children:"OHWOW"}),o.jsx("span",{className:"font-light",children:".FUN"})]}),u&&o.jsx("button",{onClick:u,className:"text-neutral-400 hover:text-white transition-colors md:hidden",children:o.jsx(Fa,{size:18})})]}),o.jsx("nav",{className:"flex-1 overflow-y-auto p-3 space-y-5",children:h.map(({key:p,label:g})=>{const v=s.filter(b=>b.group===p);return v.length===0?null:g?o.jsx(AD,{label:g,children:m(v)},p):o.jsx("div",{className:"space-y-0.5",children:m(v)},p)})}),o.jsx("div",{className:"p-3 border-t border-white/10",children:o.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg bg-white/[0.03]",children:[o.jsx("div",{className:"flex-1 min-w-0",children:o.jsxs("div",{className:"flex items-center gap-2",children:[e&&o.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${e.status==="healthy"?"bg-success":"bg-warning"}`}),o.jsx("span",{className:"text-xs text-neutral-400",children:e?`v${e.version}`:"Starting..."}),e&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"text-white/10 text-xs",children:"|"}),o.jsx("span",{className:"text-xs text-neutral-500",children:wD(e.uptime)})]})]})}),!r&&o.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 jD(){const e=Ba(),{data:a}=Ve("/health"),{tier:r,modelReady:s,loading:c}=T6();vD();const[u,f]=i.useState(!1),[h,m]=i.useState(()=>{try{return localStorage.getItem("ohwow-model-banner-dismissed")==="1"}catch{return!1}});i.useEffect(()=>{f(!1)},[e.pathname]);const p=!c&&!s&&!h,g=()=>{m(!0);try{localStorage.setItem("ohwow-model-banner-dismissed","1")}catch{}},v=bD;return o.jsxs("div",{className:"flex h-dvh bg-black text-white",children:[o.jsx("aside",{className:"hidden md:flex w-64 border-r border-white/10 flex-col h-dvh sticky top-0",children:o.jsx(Nx,{health:a??null,tier:r,tierLoading:c,visibleNav:v,pathname:e.pathname})}),o.jsx(Ds,{children:u&&o.jsxs(o.Fragment,{children:[o.jsx(mt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>f(!1),className:"fixed inset-0 bg-black/60 z-40 md:hidden"}),o.jsx(mt.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:o.jsx(Nx,{health:a??null,tier:r,tierLoading:c,visibleNav:v,pathname:e.pathname,onClose:()=>f(!1)})})]})}),o.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[o.jsxs("div",{className:"md:hidden flex items-center gap-3 px-4 py-3 border-b border-white/10",children:[o.jsx("button",{onClick:()=>f(!0),className:"text-neutral-400 hover:text-white transition-colors",children:o.jsx(vj,{size:20})}),o.jsxs("span",{className:"text-sm uppercase tracking-widest",children:[o.jsx("span",{className:"font-bold",children:"OHWOW"}),o.jsx("span",{className:"font-light",children:".FUN"})]})]}),o.jsxs("main",{className:"flex-1 overflow-y-auto min-h-0",children:[p&&o.jsxs("div",{className:"bg-warning/10 border-b border-warning/20 px-6 py-2.5 flex items-center justify-between",children:[o.jsxs("p",{className:"text-sm text-warning",children:["No AI model set up yet. Head to"," ",o.jsx(Nr,{to:"/settings",className:"underline hover:text-white",children:"Settings"})," ","to download one."]}),o.jsx("button",{onClick:g,className:"text-warning/60 hover:text-warning text-sm ml-4","aria-label":"Dismiss",children:"✕"})]}),o.jsx(zw,{children:o.jsx(yD,{children:o.jsx(zC,{})},e.pathname)})]})]})]})}function SD(){const[e,a]=i.useState(""),[r,s]=i.useState(""),[c,u]=i.useState(!1),f=Xn(),h=async m=>{if(m.preventDefault(),!!e.trim()){u(!0),s("");try{uh(e.trim()),await he("/api/session"),f("/",{replace:!0})}catch{s("Invalid session token. Check your terminal for the correct token."),uh("")}finally{u(!1)}}};return o.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center p-4",children:o.jsxs("div",{className:"w-full max-w-sm",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsxs("h1",{className:"text-2xl font-bold",children:[o.jsx("span",{className:"text-white",children:"ohwow"}),o.jsx("span",{className:"text-neutral-400 ml-1",children:"runtime"})]}),o.jsx("p",{className:"text-sm text-neutral-400 mt-2",children:"Enter the session token from your terminal to connect."})]}),o.jsxs("form",{onSubmit:h,className:"space-y-4",children:[o.jsx("div",{children:o.jsx("input",{type:"text",value:e,onChange:m=>a(m.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"})}),r&&o.jsx("p",{className:"text-xs text-critical",children:r}),o.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 MD(e){const a=e.match(/```agents\s*\n?([\s\S]*?)```/);if(a)try{const s=JSON.parse(a[1].trim());if(Array.isArray(s))return s.filter(c=>typeof c=="string")}catch{}const r=e.match(/\[[\s\S]*?\]/);if(r)try{const s=JSON.parse(r[0]);if(Array.isArray(s))return s.filter(c=>typeof c=="string")}catch{}return[]}function ND(e){const a=e.match(/```setup\s*\n?([\s\S]*?)```/);if(a)try{const s=JSON.parse(a[1].trim()),c=s.goal?{title:s.goal,metric:s.goal_metric||void 0,target:s.goal_target!=null?s.goal_target:void 0,unit:s.unit||void 0}:null,u=Array.isArray(s.agents)?s.agents.filter(f=>typeof f=="string"):[];return{goal:c,agentIds:u}}catch{}return{goal:null,agentIds:MD(e)}}function _D(){const[e,a]=i.useState({screen:"splash",status:null,selectedModel:null,loading:!1,downloading:!1,downloadPercent:0,downloadMessage:"",setupMessage:"",error:null,completed:!1,businessName:"",businessType:"",businessDescription:"",founderPath:"",founderFocus:"",modelAvailable:!1,chatMessages:[],chatStreaming:!1,presets:[],selectedAgentIds:new Set,discoveredGoal:null}),r=i.useRef(null);i.useEffect(()=>()=>{var T;(T=r.current)==null||T.abort()},[]);const s=i.useCallback(async()=>{a(T=>({...T,loading:!0,error:null}));try{const T=await fetch("/api/onboarding/status");if(!T.ok)throw new Error("Could not detect hardware");const{data:L}=await T.json();return a(R=>({...R,status:L,selectedModel:L.recommendation,loading:!1})),L}catch(T){return a(L=>({...L,loading:!1,error:T instanceof Error?T.message:"Something went wrong"})),null}},[]),c=i.useCallback(async()=>{a(T=>({...T,screen:"model"})),e.status||await s()},[e.status,s]),u=i.useCallback(T=>{a(L=>({...L,selectedModel:T}))},[]),f=async(T,L,R)=>{const k=T.body.getReader(),B=new TextDecoder;let G="";try{for(;;){if(R!=null&&R.aborted){k.cancel();return}const{done:Q,value:ee}=await k.read();if(Q)break;G+=B.decode(ee,{stream:!0});const oe=G.split(`
70
- `);G=oe.pop()||"";for(const D of oe)if(D.startsWith("data: ")){const $=D.slice(6).trim();if($==="[DONE]")return;try{L(JSON.parse($))}catch{}}}}finally{k.releaseLock()}},h=i.useCallback(async()=>{const T=e.selectedModel;if(!T||r.current)return;const L=new AbortController;r.current=L,a(R=>({...R,downloading:!0,downloadPercent:0,downloadMessage:"",setupMessage:"Setting things up...",error:null}));try{const R=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:L.signal});if(!R.ok||!R.body)throw new Error("Could not set up Ollama");await f(R,B=>{if(a(G=>({...G,setupMessage:B.message})),B.error)throw new Error(B.error)},L.signal),a(B=>({...B,setupMessage:"",downloadMessage:"Starting download..."}));const k=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:T.tag}),signal:L.signal});if(!k.ok||!k.body)throw new Error("Could not start download");await f(k,B=>{if(a(G=>({...G,downloadMessage:B.message,downloadPercent:B.percent??G.downloadPercent})),B.error)throw new Error(B.error)},L.signal),a(B=>({...B,downloading:!1,downloadPercent:100,downloadMessage:"Download complete",modelAvailable:!0,screen:"business_info"}))}catch(R){if(L.signal.aborted)return;a(k=>({...k,downloading:!1,setupMessage:"",error:R instanceof Error?R.message:"Something went wrong"}))}finally{r.current=null}},[e.selectedModel]),m=i.useCallback(()=>{a(T=>({...T,screen:"business_info",selectedModel:null,modelAvailable:!1}))},[]),p=i.useCallback(T=>{a(L=>({...L,businessName:T}))},[]),g=i.useCallback(T=>{a(L=>({...L,businessType:T}))},[]),v=i.useCallback(T=>{a(L=>({...L,businessDescription:T}))},[]),b=i.useCallback(()=>{a(T=>({...T,screen:"business_info"}))},[]),w=i.useCallback(T=>{a(L=>({...L,founderPath:T}))},[]),N=i.useCallback(T=>{a(L=>({...L,founderFocus:T}))},[]),j=i.useCallback(()=>{a(T=>({...T,screen:"founder_stage"}))},[]),A=i.useCallback(async T=>{a(L=>({...L,chatStreaming:!0}));try{const L=await fetch("/api/onboarding/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:T,businessType:e.businessType||"saas_startup",founderPath:e.founderPath||"exploring",founderFocus:e.founderFocus||""})});if(!L.ok||!L.body)throw new Error("Chat unavailable");let R="";const k=L.body.getReader(),B=new TextDecoder;let G="";for(;;){const{done:Q,value:ee}=await k.read();if(Q)break;G+=B.decode(ee,{stream:!0});const oe=G.split(`
71
- `);G=oe.pop()||"";for(const D of oe)if(D.startsWith("data: ")){const $=D.slice(6).trim();if($==="[DONE]")continue;try{const ne=JSON.parse($);ne.type==="text"&&ne.content&&(R+=ne.content)}catch{}}}if(R){a(ee=>({...ee,chatMessages:[...ee.chatMessages,{role:"assistant",content:R}],chatStreaming:!1}));const Q=ND(R);Q.agentIds.length>0?a(ee=>({...ee,selectedAgentIds:new Set(Q.agentIds.filter(oe=>ee.presets.some(D=>D.id===oe))),discoveredGoal:Q.goal})):Q.goal&&a(ee=>({...ee,discoveredGoal:Q.goal}))}else a(Q=>({...Q,chatStreaming:!1}))}catch{a(L=>({...L,chatStreaming:!1,chatMessages:[...L.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]),E=i.useCallback(async()=>{const T=e.businessType||"saas_startup";try{const L=await fetch(`/api/onboarding/presets?businessType=${T}`);if(L.ok){const{data:R}=await L.json();a(k=>({...k,screen:"agent_discovery",presets:R.presets,selectedAgentIds:new Set(R.recommended.map(B=>B.id))}))}else a(R=>({...R,screen:"agent_discovery"}))}catch{a(L=>({...L,screen:"agent_discovery"}))}try{const L=await fetch("/api/onboarding/model-available");if(L.ok){const{data:R}=await L.json();a(k=>({...k,modelAvailable:R.available})),R.available&&e.chatMessages.length===0&&A([])}}catch{}},[e.businessType,e.chatMessages.length,A]),M=i.useCallback(T=>{const L={role:"user",content:T};a(k=>({...k,chatMessages:[...k.chatMessages,L]}));const R=[...e.chatMessages,L];A(R)},[e.chatMessages,A]),_=i.useCallback(()=>{a(T=>({...T,screen:"agent_selection"}))},[]),H=i.useCallback(T=>{a(L=>{const R=new Set(L.selectedAgentIds);return R.has(T)?R.delete(T):R.add(T),{...L,selectedAgentIds:R}})},[]),C=i.useCallback(()=>{a(T=>({...T,screen:"ready"}))},[]),Z=i.useCallback(async()=>{const T=e.selectedModel,L=(T==null?void 0:T.tag)||"qwen3:4b",R=e.presets.filter(k=>e.selectedAgentIds.has(k.id)).map(k=>({id:k.id,name:k.name,role:k.role,description:k.description,systemPrompt:"",tools:k.tools,department:k.department}));a(k=>({...k,loading:!0,error:null}));try{if(!(await fetch("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelTag:L,businessName:e.businessName,businessType:e.businessType,businessDescription:e.businessDescription,founderPath:e.founderPath,founderFocus:e.founderFocus,agents:R,goal:e.discoveredGoal})})).ok)throw new Error("Could not save config");return a(B=>({...B,loading:!1,completed:!0})),null}catch(k){const B=k instanceof Error?k.message:"Something went wrong";return a(G=>({...G,loading:!1,error:B})),B}},[e.selectedModel,e.businessName,e.businessType,e.businessDescription,e.founderPath,e.founderFocus,e.presets,e.selectedAgentIds,e.discoveredGoal]);return{...e,fetchStatus:s,goToModel:c,selectModel:u,startDownload:h,skipDownload:m,setBusinessName:p,setBusinessType:g,setBusinessDescription:v,goToBusinessInfo:b,setFounderPath:w,setFounderFocus:N,goToFounderStage:j,goToAgentDiscovery:E,sendChatMessage:M,goToAgentSelection:_,toggleAgent:H,goToReady:C,completeOnboarding:Z}}function CD({onGetStarted:e}){return o.jsx("div",{"data-testid":"onboarding-splash",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[o.jsx("div",{children:o.jsx("h1",{className:"text-5xl font-bold tracking-tight",children:o.jsx("span",{className:"text-white",children:"ohwow"})})}),o.jsxs("div",{className:"space-y-3",children:[o.jsx("p",{className:"text-xl text-white font-medium",children:"Your AI team, running on your machine."}),o.jsx("p",{className:"text-sm text-neutral-400",children:"No account needed. No cloud required."})]}),o.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"}),o.jsx("p",{className:"text-xs text-neutral-600",children:"Free forever for local use"})]})})}function TD({status:e,selectedModel:a,loading:r,downloading:s,downloadPercent:c,downloadMessage:u,setupMessage:f,error:h,onSelectModel:m,onDownload:p,onSkip:g}){const[v,b]=i.useState(!1);if(r||!e)return o.jsx("div",{"data-testid":"onboarding-model-loading",className:"min-h-screen bg-black flex items-center justify-center p-4",children:o.jsxs("div",{className:"text-center space-y-4",children:[o.jsx("div",{className:"w-8 h-8 border-2 border-white/10 border-t-white rounded-full animate-spin mx-auto"}),o.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 o.jsx("div",{"data-testid":"onboarding-model",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[o.jsx("div",{className:"text-center space-y-2",children:o.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's download your first AI model"})}),o.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&&!s&&o.jsxs("div",{"data-testid":"onboarding-model-hero",className:"bg-white/5 border border-white/10 rounded-lg p-5 space-y-3",children:[o.jsx("div",{className:"flex items-start justify-between",children:o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("h3",{className:"text-lg font-semibold text-white",children:a.label}),a.recommended&&o.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"})]}),o.jsx("p",{className:"text-sm text-neutral-400 mt-1",children:a.description})]})}),o.jsxs("div",{className:"flex items-center gap-4 text-xs text-neutral-400",children:[o.jsxs("span",{children:[a.sizeGB," GB download"]}),w&&o.jsxs("span",{children:["~",w," min"]}),o.jsx("span",{children:a.features.join(", ")})]})]}),s&&o.jsxs("div",{"data-testid":"onboarding-download-progress",className:"bg-white/5 border border-white/[0.08] rounded-lg p-5 space-y-4",children:[f&&o.jsx("p",{className:"text-sm text-neutral-400",children:f}),!f&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex items-center justify-between text-sm",children:[o.jsx("span",{className:"text-white",children:a==null?void 0:a.label}),o.jsxs("span",{className:"text-neutral-400",children:[c,"%"]})]}),o.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-2 overflow-hidden",children:o.jsx("div",{className:"bg-white h-full rounded-full transition-all duration-300",style:{width:`${c}%`}})}),o.jsx("p",{className:"text-xs text-neutral-400 truncate",children:u})]})]}),h&&o.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:h}),!s&&o.jsxs("div",{className:"space-y-3",children:[o.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&&o.jsxs("div",{children:[o.jsx("button",{"data-testid":"onboarding-alternatives-toggle",onClick:()=>b(!v),className:"text-sm text-neutral-400 hover:text-white transition-colors",children:v?"Hide other options":"See other options"}),v&&o.jsx("div",{className:"mt-3 space-y-2",children:e.alternatives.map(N=>o.jsxs("button",{onClick:()=>m(N),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)===N.tag?"border-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/[0.08] hover:text-white"}`,children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium",children:N.label}),o.jsxs("span",{className:"text-xs",children:[N.sizeGB," GB"]})]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:N.description})]},N.tag))})]}),o.jsx("div",{className:"text-center",children:o.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 HD=[{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 ZD({businessName:e,businessType:a,businessDescription:r,onChangeName:s,onChangeType:c,onChangeDescription:u,onContinue:f,onBack:h}){const m=e.trim().length>0&&a;return o.jsx("div",{"data-testid":"onboarding-business-info",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[o.jsxs("div",{className:"text-center space-y-2",children:[o.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 3 of 7"}),o.jsx("h2",{className:"text-2xl font-bold text-white",children:"Tell us about your business"}),o.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us recommend the right AI agents for you."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business name"}),o.jsx("input",{"data-testid":"onboarding-business-name",type:"text",value:e,onChange:p=>s(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})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"Business type"}),o.jsx("div",{className:"grid grid-cols-2 gap-2",children:HD.map(p=>o.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:[o.jsx("span",{className:"font-medium block",children:p.label}),o.jsx("span",{className:"text-xs text-neutral-400",children:p.tagline})]},p.id))})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What does your business do? (optional)"}),o.jsx("textarea",{"data-testid":"onboarding-business-desc",value:r,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"})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("button",{onClick:h,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),o.jsx("button",{"data-testid":"onboarding-business-continue",onClick:f,disabled:!m,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 VD=[{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 LD({founderPath:e,founderFocus:a,onChangePath:r,onChangeFocus:s,onContinue:c,onBack:u}){const f=e.length>0;return o.jsx("div",{"data-testid":"onboarding-founder-stage",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[o.jsxs("div",{className:"text-center space-y-2",children:[o.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 4 of 7"}),o.jsx("h2",{className:"text-2xl font-bold text-white",children:"Where are you in your journey?"}),o.jsx("p",{className:"text-sm text-neutral-400",children:"This helps us prioritize which agents to recommend."})]}),o.jsx("div",{className:"space-y-2",children:VD.map(h=>o.jsxs("button",{"data-testid":`onboarding-path-${h.id}`,onClick:()=>r(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:[o.jsx("span",{className:"text-lg",children:h.icon}),o.jsxs("div",{children:[o.jsx("span",{className:"font-medium block text-sm",children:h.label}),o.jsx("span",{className:"text-xs text-neutral-400",children:h.description})]})]},h.id))}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm text-neutral-400 mb-1.5",children:"What are you focused on right now? (optional)"}),o.jsx("input",{"data-testid":"onboarding-founder-focus",type:"text",value:a,onChange:h=>s(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"})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("button",{onClick:u,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),o.jsx("button",{"data-testid":"onboarding-founder-continue",onClick:c,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"})]})]})})}function RD({modelAvailable:e,chatMessages:a,presets:r,discoveredGoal:s,onSendMessage:c,onContinue:u,onBack:f,streaming:h}){const[m,p]=i.useState(""),g=i.useRef(null);i.useEffect(()=>{var b;(b=g.current)==null||b.scrollTo({top:g.current.scrollHeight,behavior:"smooth"})},[a]);const v=()=>{!m.trim()||h||(c(m.trim()),p(""))};return e?o.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[o.jsxs("div",{className:"text-center space-y-2",children:[o.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),o.jsx("h2",{className:"text-2xl font-bold text-white",children:"Let's define your goal"}),o.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"})]}),s&&o.jsx("div",{className:"px-4 py-2 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:o.jsxs("span",{className:"text-sm text-emerald-400",children:["Goal: ",s.title]})}),o.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)=>o.jsx("div",{className:`${b.role==="user"?"text-right":""}`,children:o.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:o.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:b.content})})},w)),h&&o.jsx("div",{className:"text-neutral-400 text-sm animate-pulse",children:"Thinking..."})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{"data-testid":"onboarding-chat-input",type:"text",value:m,onChange:b=>p(b.target.value),onKeyDown:b=>{b.key==="Enter"&&v()},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"}),o.jsx("button",{onClick:v,disabled:h||!m.trim(),className:"bg-white text-black rounded-lg px-4 text-sm hover:bg-neutral-200 transition-colors disabled:opacity-40",children:"Send"})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),o.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"})]})]})}):o.jsx("div",{"data-testid":"onboarding-agent-discovery",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[o.jsxs("div",{className:"text-center space-y-2",children:[o.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 5 of 7"}),o.jsx("h2",{className:"text-2xl font-bold text-white",children:"Your recommended agents"}),o.jsx("p",{className:"text-sm text-neutral-400",children:"Based on your business type. You can adjust on the next screen."})]}),o.jsx("div",{className:"space-y-2",children:r.map(b=>o.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:[o.jsxs("div",{className:"flex items-center gap-2",children:[b.recommended&&o.jsx("span",{className:"text-white text-xs",children:"★"}),o.jsx("span",{className:"font-medium text-sm text-white",children:b.name}),o.jsx("span",{className:"text-xs text-neutral-400",children:b.role})]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:b.description})]},b.id))}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("button",{onClick:f,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),o.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 kD={web_research:"Web Research",deep_research:"Deep Research",ocr:"OCR",local_crm:"CRM"};function DD({presets:e,selectedIds:a,onToggle:r,onContinue:s,onBack:c}){return o.jsx("div",{"data-testid":"onboarding-agent-selection",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-lg w-full space-y-6",children:[o.jsxs("div",{className:"text-center space-y-2",children:[o.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 6 of 7"}),o.jsx("h2",{className:"text-2xl font-bold text-white",children:"Choose your agents"}),o.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"})]}),o.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:e.map(u=>{const f=a.has(u.id);return o.jsx("button",{"data-testid":`onboarding-agent-${u.id}`,onClick:()=>r(u.id),className:`w-full text-left px-4 py-3 rounded-lg border transition-colors ${f?"border-white/20 bg-white/10":"border-white/[0.08] bg-white/5 hover:border-white/20"}`,children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("div",{className:`mt-0.5 w-4 h-4 rounded border flex items-center justify-center shrink-0 ${f?"bg-white border-white":"border-neutral-400/30"}`,children:f&&o.jsx("svg",{className:"w-2.5 h-2.5 text-black",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"font-medium text-sm text-white",children:u.name}),u.recommended&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/10 text-white border border-white/10",children:"Recommended"})]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:u.role}),o.jsx("p",{className:"text-xs text-neutral-400/70 mt-1",children:u.description}),u.tools.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:u.tools.map(h=>o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/5 border border-white/[0.08] text-neutral-400",children:kD[h]||h},h))})]})]})},u.id)})}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx("button",{onClick:c,className:"px-4 py-2.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Back"}),o.jsxs("button",{"data-testid":"onboarding-selection-continue",onClick:s,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 OD({selectedModel:e,loading:a,error:r,onLaunch:s,businessName:c,agentCount:u}){return o.jsx("div",{"data-testid":"onboarding-ready",className:"min-h-screen bg-black flex flex-col items-center justify-center p-4",children:o.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[o.jsx("div",{className:"space-y-2",children:o.jsx("p",{className:"text-xs text-neutral-400 uppercase tracking-wider",children:"Step 7 of 7"})}),o.jsxs("div",{className:"space-y-3",children:[o.jsx("div",{className:"w-12 h-12 rounded-full bg-success/10 border border-success/20 flex items-center justify-center mx-auto",children:o.jsx("svg",{className:"w-6 h-6 text-success",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),o.jsx("h2",{className:"text-2xl font-bold text-white",children:"You're all set."})]}),o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg px-4 py-3 text-left space-y-2",children:[c&&o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-neutral-400",children:"Business"}),o.jsx("span",{className:"text-white font-medium",children:c})]}),o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-neutral-400",children:"Model"}),o.jsx("span",{className:"text-white",children:e?e.label:"None (add later in Settings)"})]}),u!==void 0&&u>0&&o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-neutral-400",children:"Agents"}),o.jsxs("span",{className:"text-white",children:[u," agent",u===1?"":"s"," ready to go"]})]})]}),r&&o.jsx("div",{className:"bg-critical/10 border border-critical/20 rounded-lg px-4 py-3 text-sm text-critical",children:r}),o.jsx("button",{"data-testid":"onboarding-launch-btn",onClick:s,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 qD({sessionToken:e}){var s;const a=_D();i.useEffect(()=>{a.screen==="model"&&!a.status&&a.fetchStatus()},[a.screen]);const r=async()=>{await a.completeOnboarding()||(e&&uh(e),window.location.href="/ui/")};switch(a.screen){case"splash":return o.jsx(CD,{onGetStarted:a.goToModel});case"model":return o.jsx(TD,{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:((s=a.status)==null?void 0:s.estimatedMinutes)??null,onSelectModel:a.selectModel,onDownload:a.startDownload,onSkip:a.skipDownload});case"business_info":return o.jsx(ZD,{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 o.jsx(LD,{founderPath:a.founderPath,founderFocus:a.founderFocus,onChangePath:a.setFounderPath,onChangeFocus:a.setFounderFocus,onContinue:a.goToAgentDiscovery,onBack:a.goToBusinessInfo});case"agent_discovery":return o.jsx(RD,{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 o.jsx(DD,{presets:a.presets,selectedIds:a.selectedAgentIds,onToggle:a.toggleAgent,onContinue:a.goToReady,onBack:a.goToAgentDiscovery});case"ready":return o.jsx(OD,{selectedModel:a.selectedModel,loading:a.loading,error:a.error,onLaunch:r,businessName:a.businessName,agentCount:a.selectedAgentIds.size})}}function jr({label:e,value:a,subtitle:r,color:s="text-white"}){return o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4",children:[o.jsx("p",{className:"text-[11px] text-neutral-500 uppercase tracking-wider",children:e}),o.jsx("p",{className:`text-2xl font-bold mt-1 ${s}`,children:a}),r&&o.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:r})]})}const zD={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",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 Ht({status:e}){const a=zD[e]||"bg-white/5 text-neutral-400",r=e.replace(/_/g," ");return o.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium capitalize ${a}`,children:r})}function si({className:e=""}){return o.jsx("div",{className:`animate-pulse bg-white/5 rounded ${e}`})}function Gl(){return o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 space-y-2",children:[o.jsx(si,{className:"h-3 w-20"}),o.jsx(si,{className:"h-7 w-16"})]})}function Ut({count:e=5}){return o.jsx("div",{className:"space-y-2",children:Array.from({length:e}).map((a,r)=>o.jsx(si,{className:"h-12 w-full"},r))})}function ut({title:e,subtitle:a,action:r}){return o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-2xl font-bold",children:e}),a&&o.jsx("p",{className:"text-sm text-neutral-400 mt-0.5",children:a})]}),r]})}function FD(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}const _x={animate:{transition:{staggerChildren:.05}}},Cx={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function BD(){const e=Ia(["task:started","task:completed","task:failed"]),{data:a,loading:r}=Ve("/api/system/stats",[e]),{data:s}=Ve("/api/agents",[e]),{data:c}=Ve("/api/tasks?limit=5",[e]);return o.jsxs("div",{className:"p-6 max-w-5xl",children:[o.jsx(ut,{title:"Overview",subtitle:"Runtime at a glance"}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-8",children:r?o.jsxs(o.Fragment,{children:[o.jsx(Gl,{}),o.jsx(Gl,{}),o.jsx(Gl,{}),o.jsx(Gl,{})]}):a?o.jsxs(o.Fragment,{children:[o.jsx(jr,{label:"Agents",value:a.totalAgents}),o.jsx(jr,{label:"Tasks",value:a.totalTasks,subtitle:`${a.activeTasks} active`}),o.jsx(jr,{label:"Approvals",value:a.pendingApprovals,color:a.pendingApprovals>0?"text-warning":"text-neutral-400"}),o.jsx(jr,{label:"Tokens",value:FD(a.totalTokens),subtitle:`$${(a.totalCostCents/100).toFixed(2)}`})]}):null}),o.jsxs("div",{className:"mb-8",children:[o.jsxs("div",{className:"flex items-center justify-between mb-3",children:[o.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Agents"}),o.jsx(Mt,{to:"/agents",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),s!=null&&s.length?o.jsx(mt.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:_x,initial:"initial",animate:"animate",children:s.slice(0,8).map(u=>{var f;return o.jsx(mt.div,{variants:Cx,children:o.jsxs(Mt,{to:`/agents/${u.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors",children:[o.jsx("div",{className:"w-8 h-8 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold mb-3",children:(f=u.name[0])==null?void 0:f.toUpperCase()}),o.jsx("p",{className:"text-sm font-medium truncate",children:u.name}),o.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:u.role}),o.jsx("div",{className:"mt-2",children:o.jsx(Ht,{status:u.status})})]})},u.id)})}):o.jsx(Ut,{count:2})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-3",children:[o.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider",children:"Recent Tasks"}),o.jsx(Mt,{to:"/tasks",className:"text-xs text-neutral-400 hover:text-white transition-colors",children:"View all"})]}),c!=null&&c.length?o.jsx(mt.div,{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",variants:_x,initial:"initial",animate:"animate",children:c.map(u=>o.jsx(mt.div,{variants:Cx,children:o.jsxs(Mt,{to:`/tasks/${u.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[o.jsxs("div",{className:"min-w-0 mr-3",children:[o.jsx("p",{className:"text-sm font-medium truncate",children:u.title}),o.jsx("p",{className:"text-xs text-neutral-500",children:new Date(u.created_at).toLocaleString()})]}),o.jsx(Ht,{status:u.status})]})},u.id))}):o.jsx(Ut,{count:3})]})]})}function It({icon:e,title:a,description:r,action:s}){return o.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&&o.jsx("div",{className:"text-neutral-500 mb-3",children:e}),o.jsx("p",{className:"text-sm font-medium text-neutral-200",children:a}),r&&o.jsx("p",{className:"text-xs text-neutral-400 mt-1 max-w-xs",children:r}),s&&o.jsx("div",{className:"mt-4",children:s})]})}function er({open:e,onClose:a,title:r,children:s,maxWidth:c="max-w-md"}){const u=i.useCallback(f=>{f.key==="Escape"&&a()},[a]);return i.useEffect(()=>{if(e)return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,u]),o.jsx(Ds,{children:e&&o.jsx(mt.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:o.jsxs(mt.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:f=>f.stopPropagation(),children:[r&&o.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-white/10",children:[o.jsx("h3",{className:"text-sm font-semibold",children:r}),o.jsx("button",{onClick:a,className:"text-neutral-400 hover:text-white text-xs transition-colors",children:"Close"})]}),o.jsx("div",{className:"p-6",children:s})]})})})}function UD(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return{}}return e||{}}const ID={animate:{transition:{staggerChildren:.04}}},PD={initial:{opacity:0,y:8},animate:{opacity:1,y:0}};function $D(){const e=Ia(["task:started","task:completed"]),{data:a,loading:r,refetch:s}=Ve("/api/agents",[e]),[c,u]=i.useState(!1);return o.jsxs("div",{className:"p-6 max-w-5xl",children:[o.jsx(ut,{title:"Agents",subtitle:"Your AI team",action:r?atLimit?o.jsx("span",{className:"text-xs text-neutral-400",children:"Free tier: 1 agent max"}):null:o.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:[o.jsx(Bt,{size:14,weight:"bold"}),"Create agent"]})}),r?o.jsx(Ut,{count:4}):a!=null&&a.length?o.jsx(mt.div,{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",variants:ID,initial:"initial",animate:"animate",children:a.map(f=>{var m;const h=UD(f.stats);return o.jsx(mt.div,{variants:PD,children:o.jsxs(Mt,{to:`/agents/${f.id}`,className:"block border border-white/[0.08] rounded-lg p-4 hover:bg-white/[0.02] transition-colors h-full",children:[o.jsxs("div",{className:"flex items-start justify-between mb-3",children:[o.jsx("div",{className:"w-9 h-9 rounded-full bg-white/10 flex items-center justify-center text-sm font-bold",children:(m=f.name[0])==null?void 0:m.toUpperCase()}),o.jsx(Ht,{status:f.status})]}),o.jsx("p",{className:"text-sm font-medium truncate",children:f.name}),o.jsx("p",{className:"text-xs text-neutral-500 truncate mt-0.5",children:f.role}),o.jsxs("p",{className:"text-xs text-neutral-600 mt-2",children:[h.total_tasks||0," ",h.total_tasks===1?"task":"tasks"]})]})},f.id)})}):o.jsx(It,{icon:o.jsx(pn,{size:32}),title:"No agents yet",description:"Create your first agent to get started.",action:o.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"})}),o.jsx(GD,{open:c,onClose:()=>u(!1),onCreated:()=>{u(!1),s()}})]})}function GD({open:e,onClose:a,onCreated:r}){const[s,c]=i.useState(""),[u,f]=i.useState(""),[h,m]=i.useState(""),[p,g]=i.useState(""),[v,b]=i.useState(!1),[w,N]=i.useState(""),j=async A=>{if(A.preventDefault(),!s.trim()||!u.trim()||!h.trim()){N("Name, role, and system prompt are required.");return}b(!0),N("");try{await he("/api/agents",{method:"POST",body:JSON.stringify({name:s.trim(),role:u.trim(),system_prompt:h.trim(),description:p.trim()||null})}),r()}catch(E){N(E instanceof Error?E.message:"Something went wrong. Try again?")}finally{b(!1)}};return o.jsx(er,{open:e,onClose:a,title:"Create agent",children:o.jsxs("form",{onSubmit:j,className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Name"}),o.jsx("input",{type:"text",value:s,onChange:A=>c(A.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})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Role"}),o.jsx("input",{type:"text",value:u,onChange:A=>f(A.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"System Prompt"}),o.jsx("textarea",{value:h,onChange:A=>m(A.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-500 mb-1",children:"Description (optional)"}),o.jsx("input",{type:"text",value:p,onChange:A=>g(A.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&&o.jsx("p",{className:"text-xs text-critical",children:w}),o.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[o.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-sm text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{type:"submit",disabled:v,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:v?"Creating...":"Create"})]})]})})}function ii({checked:e,onChange:a,disabled:r=!1,size:s="md"}){const c=s==="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 o.jsx("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>!r&&a(!e),disabled:r,className:`relative ${c.track} rounded-full transition-colors disabled:opacity-50 ${e?"bg-success/30":"bg-white/10"}`,children:o.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 YD({tabs:e,activeTab:a,onTabChange:r,layoutId:s="tab-underline"}){return o.jsx("div",{className:"flex gap-1 border-b border-white/[0.08]",children:e.map(c=>{const u=c.id===a;return o.jsxs("button",{onClick:()=>r(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:[o.jsxs("span",{className:"relative z-10 flex items-center gap-2",children:[c.label,c.count!=null&&o.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&&o.jsx(mt.div,{layoutId:s,className:"absolute bottom-0 left-0 right-0 h-0.5 bg-white",transition:{type:"spring",stiffness:350,damping:30}})]},c.id)})})}const KD=[{id:"development",label:"Development"},{id:"files",label:"Files"},{id:"databases",label:"Databases"},{id:"apis",label:"APIs"},{id:"communication",label:"Communication"}],XD=[{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"}],Tx={name:"",transport:"stdio",command:"",args:"",env:"",url:""};function nS({servers:e,onChange:a,disabled:r}){const[s,c]=i.useState(!1),[u,f]=i.useState(Tx),[h,m]=i.useState(""),[p,g]=i.useState(null),[v,b]=i.useState({}),[w,N]=i.useState(null),[j,A]=i.useState("popular"),E=()=>{f(Tx),m(""),A("popular"),c(!0)},M=()=>{if(!u.name.trim()){m("Name is required");return}if(u.transport==="stdio"&&!u.command.trim()){m("Command is required");return}if(u.transport==="http"&&!u.url.trim()){m("URL is required");return}if(e.some(T=>T.name===u.name.trim())){m("A server with that name already exists");return}const Z=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()?QD(u.env.trim()):void 0}:{name:u.name.trim(),transport:"http",url:u.url.trim()};a([...e,Z]),c(!1)},_=Z=>{a(e.filter(T=>T.name!==Z))},H=async Z=>{if(!p){g(Z.name);try{const L=await(await fetch("/api/mcp/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z)})).json();L.success?(ge.success(`Connected. ${L.tools.length===1?"1 tool":`${L.tools.length} tools`} found in ${L.latencyMs}ms`),b(R=>({...R,[Z.name]:L.tools})),N(Z.name)):ge.error(L.error||"Couldn't connect to this server. Try again?")}catch{ge.error("Couldn't reach the daemon to test the connection")}finally{g(null)}}},C=Z=>{N(T=>T===Z?null:Z)};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mt-4",children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("h3",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider",children:"MCP Servers"}),o.jsx("button",{onClick:E,disabled:r,className:"text-xs text-white hover:text-white/80 disabled:opacity-50 transition-colors",children:"+ Add"})]}),e.length===0?o.jsx("p",{className:"text-xs text-neutral-400 py-2",children:"No MCP servers yet. Add one to extend what this agent can do."}):o.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(Z=>{var k;const T=v[Z.name],L=w===Z.name,R=p===Z.name;return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("div",{className:"min-w-0 mr-3 flex items-center gap-2",children:[T&&T.length>0&&o.jsx("button",{onClick:()=>C(Z.name),className:"text-neutral-400 hover:text-white transition-colors shrink-0",children:L?o.jsx(Os,{size:12}):o.jsx(Dk,{size:12})}),o.jsx("span",{className:"text-sm font-medium",children:Z.name}),o.jsx("span",{className:"text-xs text-neutral-400",children:Z.transport==="stdio"?`stdio · ${Z.command}${(k=Z.args)!=null&&k.length?" "+Z.args.join(" "):""}`:`http · ${Z.url}`}),T&&o.jsx("span",{className:"text-xs text-neutral-500",children:T.length===1?"1 tool":`${T.length} tools`})]}),o.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[o.jsx("button",{onClick:()=>H(Z),disabled:r||R,className:`text-neutral-400 hover:text-uplink transition-colors disabled:opacity-50 ${R?"animate-pulse":""}`,title:"Test connection",children:o.jsx(Na,{size:14,weight:R?"fill":"bold"})}),o.jsx("button",{onClick:()=>_(Z.name),disabled:r,className:"text-neutral-400 hover:text-error transition-colors disabled:opacity-50",children:o.jsx(Ua,{size:14})})]})]}),L&&T&&T.length>0&&o.jsx("div",{className:"px-4 pb-3 pl-10",children:o.jsx("div",{className:"bg-white/[0.03] rounded-md border border-white/[0.06] divide-y divide-white/[0.06]",children:T.map(B=>o.jsxs("div",{className:"px-3 py-2",children:[o.jsx("span",{className:"text-xs font-mono text-white/80",children:B.name}),B.description&&o.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:B.description})]},B.name))})})]},Z.name)})})]}),o.jsx(er,{open:s,onClose:()=>c(!1),title:"Add MCP Server",maxWidth:"max-w-lg",children:o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex gap-1 bg-white/[0.04] rounded-md p-0.5",children:[o.jsx("button",{onClick:()=>A("popular"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${j==="popular"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Popular"}),o.jsx("button",{onClick:()=>A("custom"),className:`flex-1 px-3 py-1.5 text-xs font-medium rounded transition-colors ${j==="custom"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),j==="popular"&&o.jsx("div",{className:"space-y-4",children:KD.map(Z=>{const T=XD.filter(L=>L.category===Z.id);return T.length===0?null:o.jsxs("div",{children:[o.jsx("h4",{className:"text-xs font-medium text-neutral-400 uppercase tracking-wider mb-2",children:Z.label}),o.jsx("div",{className:"grid grid-cols-2 gap-2",children:T.map(L=>{const R=e.some(k=>k.name===L.name);return o.jsxs("button",{onClick:()=>{R||(f({name:L.name,transport:L.transport,command:L.command,args:L.args.join(" "),env:L.envVarsRequired.map(k=>`${k.key}=`).join(`
72
- `),url:""}),m(""),A("custom"))},disabled:R,className:`text-left p-3 rounded-lg border transition-colors ${R?"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:[o.jsxs("div",{className:"flex items-start justify-between gap-1",children:[o.jsx("span",{className:"text-sm font-medium",children:L.name}),o.jsx("span",{className:"text-[10px] text-neutral-500 bg-white/[0.06] px-1.5 py-0.5 rounded shrink-0",children:Z.label})]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:L.description}),R&&o.jsx("p",{className:"text-[10px] text-neutral-500 mt-1",children:"Already added"})]},L.id)})})]},Z.id)})}),j==="custom"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Name"}),o.jsx("input",{value:u.name,onChange:Z=>f(T=>({...T,name:Z.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Transport"}),o.jsxs("select",{value:u.transport,onChange:Z=>f(T=>({...T,transport:Z.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:[o.jsx("option",{value:"stdio",children:"stdio (subprocess on this machine)"}),o.jsx("option",{value:"http",children:"http (remote server via URL)"})]})]}),u.transport==="stdio"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Command"}),o.jsx("input",{value:u.command,onChange:Z=>f(T=>({...T,command:Z.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Args (space-separated)"}),o.jsx("input",{value:u.args,onChange:Z=>f(T=>({...T,args:Z.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"Env vars (optional, KEY=VALUE one per line)"}),o.jsx("textarea",{value:u.env,onChange:Z=>f(T=>({...T,env:Z.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"})]})]}):o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-neutral-400 mb-1",children:"URL"}),o.jsx("input",{value:u.url,onChange:Z=>f(T=>({...T,url:Z.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&&o.jsx("p",{className:"text-xs text-error",children:h}),o.jsxs("div",{className:"flex justify-end gap-2",children:[o.jsx("button",{onClick:()=>c(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{onClick:M,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 QD(e){const a={};for(const r of e.split(`
73
- `)){const s=r.trim();if(!s)continue;const c=s.indexOf("=");c>0&&(a[s.slice(0,c)]=s.slice(c+1))}return a}function JD(e){const a=Date.now()-new Date(e).getTime(),r=Math.floor(a/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const s=Math.floor(r/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}const WD=[{id:"overview",label:"Overview"},{id:"tasks",label:"Tasks"},{id:"config",label:"Config"}];function eO(){var be;const{id:e}=oi(),a=Ia(["task:started","task:completed","task:failed"]),{data:r,loading:s,refetch:c}=Ve(e?`/api/agents/${e}`:null,[a]),{data:u}=Ve(e?`/api/agents/${e}/memory`:null),{data:f}=Ve(e?`/api/tasks?agentId=${e}&limit=50`:null,[a]),[h,m]=i.useState("overview"),[p,g]=i.useState(!1),[v,b]=i.useState([]),[w,N]=i.useState(!1),[j,A]=i.useState(!1),[E,M]=i.useState([]),[_,H]=i.useState(!1),[C,Z]=i.useState(!1),[T,L]=i.useState([]),[R,k]=i.useState(!1);i.useEffect(()=>{he("/api/voice/health").then(()=>(g(!0),he("/api/voice/profiles"))).then(le=>b(le.data||[])).catch(()=>g(!1))},[]);const B=i.useMemo(()=>r?typeof r.config=="string"?JSON.parse(r.config):r.config||{}:{},[r]),G=i.useMemo(()=>r?typeof r.stats=="string"?JSON.parse(r.stats):r.stats||{}:{},[r]);i.useEffect(()=>{Z(B.mcp_enabled===!0),L(Array.isArray(B.mcp_servers)?B.mcp_servers:[])},[B]);const Q=B.local_files_enabled===!0&&B.bash_enabled===!0,[ee,oe]=i.useState([]),[D,$]=i.useState(""),[ne,ue]=i.useState("");i.useEffect(()=>{e&&he(`/api/agents/${e}/file-access`).then(le=>oe(le.data||[])).catch(()=>{})},[e,B]);const de=async()=>{if(!(!e||!D.trim())){ue("");try{await he(`/api/agents/${e}/file-access`,{method:"POST",body:JSON.stringify({path:D.trim()})});const le=await he(`/api/agents/${e}/file-access`);oe(le.data||[]),$("")}catch(le){ue(le instanceof Error?le.message:"Could not add path")}}},q=async le=>{if(e)try{await he(`/api/agents/${e}/file-access/${le}`,{method:"DELETE"}),oe(ve=>ve.filter(Ae=>Ae.id!==le))}catch{}},W=i.useMemo(()=>[{key:"model",label:"Model",value:String(B.model||"claude-sonnet-4-5")},{key:"temperature",label:"Temperature",value:String(B.temperature??"0.7")},{key:"max_tokens",label:"Max tokens",value:String(B.max_tokens||"4096")},{key:"requires_approval",label:"Requires approval",value:String(B.requires_approval??"no")},{key:"web_search",label:"Web search",value:String(B.web_search??"no")},{key:"device_access",label:"Device access",value:Q?"yes":"no"}],[B,Q]),re=i.useCallback(async le=>{if(e){N(!0);try{await he(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({voice_profile_id:le||null})}),c()}catch{}finally{N(!1)}}},[e,c]),F=i.useCallback(async()=>{if(!e||!r)return;const le=r.status==="paused"?"idle":"paused";try{await he(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({status:le})}),c()}catch{}},[e,r,c]),z=i.useCallback(()=>{M(W.map(le=>({...le}))),A(!0)},[W]),I=i.useCallback(async()=>{if(e){H(!0);try{const le={};for(const ve of E){if(ve.key==="device_access"){const Ae=ve.value==="true"||ve.value==="yes";le.local_files_enabled=Ae,le.bash_enabled=Ae;continue}ve.value==="true"||ve.value==="yes"?le[ve.key]=!0:ve.value==="false"||ve.value==="no"?le[ve.key]=!1:!isNaN(Number(ve.value))&&ve.value!==""?le[ve.key]=Number(ve.value):le[ve.key]=ve.value}await he(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:le})}),A(!1),c()}catch{}finally{H(!1)}}},[e,E,c]),ie=i.useCallback(async(le,ve)=>{if(e){k(!0);try{await he(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...B,mcp_enabled:le,mcp_servers:ve}})}),c()}catch{}finally{k(!1)}}},[e,B,c]);if(s)return o.jsx("div",{className:"p-6",children:o.jsx(Ut,{count:4})});if(!r)return o.jsx("div",{className:"p-6 text-neutral-400",children:"Agent not found"});const fe=WD.map(le=>({...le,count:le.id==="tasks"?f==null?void 0:f.length:void 0}));return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsxs(Mt,{to:"/agents",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4 transition-colors",children:[o.jsx(mi,{size:14})," Back to agents"]}),o.jsx(ut,{title:r.name,subtitle:r.role,action:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("button",{onClick:F,className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-md border transition-colors ${r.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:[r.status==="paused"?o.jsx(Lj,{size:14}):o.jsx(tD,{size:14}),r.status==="paused"?"Resume":"Pause"]}),o.jsx(Ht,{status:r.status})]})}),r.description&&o.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:r.description}),o.jsx(YD,{tabs:fe,activeTab:h,onTabChange:le=>{m(le),A(!1)},layoutId:"agent-detail-tab"}),o.jsxs("div",{className:"mt-6",children:[h==="overview"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[o.jsx(jr,{label:"Tasks",value:G.total_tasks||0}),o.jsx(jr,{label:"Tokens",value:((be=G.tokens_used)==null?void 0:be.toLocaleString())||"0"}),o.jsx(jr,{label:"Cost",value:`$${((G.cost_cents||0)/100).toFixed(2)}`})]}),p&&o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Voice"}),o.jsx("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3 mb-8",children:o.jsxs("label",{className:"flex items-center justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:"Voice profile"}),o.jsx("p",{className:"text-xs text-neutral-500",children:"Choose which voice this agent uses during calls"})]}),o.jsxs("select",{value:r.voice_profile_id||"",onChange:le=>re(le.target.value),disabled:w,className:"bg-black border border-white/10 rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[o.jsx("option",{value:"",children:"Default voice"}),v.map(le=>o.jsx("option",{value:le.id,children:le.name},le.id))]})]})})]}),o.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Memory"}),u!=null&&u.length?o.jsx("div",{className:"space-y-2",children:u.map(le=>o.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"text-xs text-white font-medium",children:le.memory_type}),o.jsx("span",{className:"text-xs text-neutral-500",children:new Date(le.created_at).toLocaleDateString()})]}),o.jsx("p",{className:"text-sm text-neutral-300",children:le.content})]},le.id))}):o.jsx("p",{className:"text-sm text-neutral-500",children:"No memories yet. This agent will learn from completed tasks."}),r.system_prompt&&o.jsxs(o.Fragment,{children:[o.jsx("h2",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3 mt-8",children:"System Prompt"}),o.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:o.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words text-neutral-300 max-h-[40vh] overflow-y-auto leading-relaxed",children:r.system_prompt})})]})]}),h==="tasks"&&o.jsx(o.Fragment,{children:f!=null&&f.length?o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:f.map(le=>o.jsxs(Mt,{to:`/tasks/${le.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[o.jsxs("div",{className:"min-w-0 mr-3",children:[o.jsx("p",{className:"text-sm font-medium truncate",children:le.title}),o.jsx("p",{className:"text-xs text-neutral-500",children:JD(le.created_at)})]}),o.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[le.tokens_used?o.jsxs("span",{className:"text-xs text-neutral-500",children:[le.tokens_used.toLocaleString()," tok"]}):null,le.priority&&o.jsx("span",{className:"text-xs text-warning",children:le.priority}),o.jsx(Ht,{status:le.status})]})]},le.id))}):o.jsx(It,{icon:o.jsx(C1,{size:32}),title:"No tasks yet",description:"Tasks will appear here as this agent works."})}),h==="config"&&!j&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[W.map(le=>o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsx("span",{className:"text-sm text-neutral-400",children:le.label}),o.jsx("span",{className:"text-sm font-medium",children:le.value})]},le.key)),o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-sm text-neutral-400",children:"MCP tools"}),o.jsx("p",{className:"text-xs text-neutral-600",children:"Allow this agent to use MCP servers"})]}),o.jsx(ii,{checked:C,onChange:async le=>{Z(le),await ie(le,T)},disabled:R,size:"sm"})]}),o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-sm text-neutral-400",children:"Device access"}),o.jsx("p",{className:"text-xs text-neutral-600",children:"Allow filesystem and shell access to local directories"})]}),o.jsx(ii,{checked:Q,onChange:async le=>{if(e)try{await he(`/api/agents/${e}`,{method:"PATCH",body:JSON.stringify({config:{...B,local_files_enabled:le,bash_enabled:le}})}),c()}catch{}},size:"sm"})]})]}),C&&o.jsx(nS,{servers:T,onChange:async le=>{L(le),await ie(C,le)},disabled:R}),Q&&o.jsxs("div",{className:"mt-4",children:[o.jsx("h3",{className:"text-[11px] font-medium text-neutral-500 uppercase tracking-wider mb-3",children:"Allowed directories"}),ee.length>0?o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:ee.map(le=>o.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5",children:[o.jsx("code",{className:"text-sm text-neutral-300",children:le.path}),o.jsx("button",{onClick:()=>q(le.id),className:"text-xs text-neutral-500 hover:text-red-400 transition-colors",children:"Remove"})]},le.id))}):o.jsx("p",{className:"text-sm text-neutral-500 mb-3",children:"No directories configured yet."}),o.jsxs("div",{className:"flex gap-2 mt-3",children:[o.jsx("input",{value:D,onChange:le=>{$(le.target.value),ue("")},onKeyDown:le=>{le.key==="Enter"&&de()},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"}),o.jsx("button",{onClick:de,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"})]}),ne&&o.jsx("p",{className:"text-xs text-red-400 mt-1",children:ne})]}),o.jsx("div",{className:"mt-4",children:o.jsxs("button",{onClick:z,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:[o.jsx(Yk,{size:14})," Edit config"]})})]}),h==="config"&&j&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:E.map((le,ve)=>o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsx("label",{className:"text-sm text-neutral-400",htmlFor:`config-${le.key}`,children:le.label}),o.jsx("input",{id:`config-${le.key}`,value:le.value,onChange:Ae=>{const Je=[...E];Je[ve]={...le,value:Ae.target.value},M(Je)},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"})]},le.key))}),o.jsxs("div",{className:"flex gap-2 mt-4",children:[o.jsx("button",{onClick:()=>A(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{onClick:I,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 tO=["all","queued","in_progress","completed","needs_approval","failed"],Hx={urgent:0,high:1,normal:2,low:3},Zx={in_progress:0,queued:1,needs_approval:2,completed:3,failed:4};function aO(){const e=Ia(["task:started","task:completed","task:failed"]),[a,r]=i.useState("all"),[s,c]=i.useState(!1),[u,f]=i.useState(""),[h,m]=i.useState("date"),p=a==="all"?"":`&status=${a}`,{data:g,loading:v,refetch:b}=Ve(`/api/tasks?limit=50${p}`,[e,a]),{data:w}=Ve("/api/agents"),N=i.useMemo(()=>{const A=new Map;return w==null||w.forEach(E=>A.set(E.id,E.name)),A},[w]),j=i.useMemo(()=>{if(!g)return[];let A=g;if(u.trim()){const E=u.toLowerCase();A=A.filter(M=>M.title.toLowerCase().includes(E)||(N.get(M.agent_id)||"").toLowerCase().includes(E))}return h==="priority"?A=[...A].sort((E,M)=>{const _=Hx[E.priority||"normal"]??2,H=Hx[M.priority||"normal"]??2;return _-H||new Date(M.created_at).getTime()-new Date(E.created_at).getTime()}):h==="status"&&(A=[...A].sort((E,M)=>{const _=Zx[E.status]??5,H=Zx[M.status]??5;return _-H||new Date(M.created_at).getTime()-new Date(E.created_at).getTime()})),A},[g,u,h,N]);return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Tasks",subtitle:"All agent tasks",action:o.jsxs("button",{onClick:()=>c(!s),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:[o.jsx(Bt,{size:14})," New task"]})}),s&&(w!=null&&w.length)?o.jsx(nO,{agents:w,onClose:()=>c(!1),onSuccess:b}):null,o.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:tO.map(A=>o.jsx("button",{onClick:()=>r(A),className:`px-3 py-1.5 rounded-md text-xs capitalize transition-colors ${a===A?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:A.replace(/_/g," ")},A))}),o.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[o.jsxs("div",{className:"relative flex-1",children:[o.jsx(Wn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),o.jsx("input",{value:u,onChange:A=>f(A.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"})]}),o.jsxs("select",{value:h,onChange:A=>m(A.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:[o.jsx("option",{value:"date",children:"Sort by date"}),o.jsx("option",{value:"priority",children:"Sort by priority"}),o.jsx("option",{value:"status",children:"Sort by status"})]})]}),v?o.jsx(Ut,{count:5}):j.length?o.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:j.map(A=>o.jsxs(Mt,{to:`/tasks/${A.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/5 transition-colors",children:[o.jsxs("div",{className:"min-w-0 mr-3",children:[o.jsx("p",{className:"text-sm font-medium truncate",children:A.title}),o.jsxs("p",{className:"text-xs text-neutral-400",children:[N.get(A.agent_id)&&o.jsx("span",{className:"text-white",children:N.get(A.agent_id)}),N.get(A.agent_id)&&" · ",new Date(A.created_at).toLocaleString()]})]}),o.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[A.priority&&A.priority!=="normal"&&o.jsx("span",{className:"text-xs text-warning",children:A.priority}),A.tokens_used?o.jsxs("span",{className:"text-xs text-neutral-400",children:[A.tokens_used.toLocaleString()," tok"]}):null,o.jsx(Ht,{status:A.status})]})]},A.id))}):o.jsx(It,{icon:o.jsx(C1,{size:32}),title:"Nothing here yet",description:u?`No tasks matching "${u}".`:a==="all"?"Tasks will appear as agents work.":`No ${a.replace(/_/g," ")} tasks.`})]})}function nO({agents:e,onClose:a,onSuccess:r}){var b;const[s,c]=i.useState(((b=e[0])==null?void 0:b.id)||""),[u,f]=i.useState(""),[h,m]=i.useState(""),[p,g]=i.useState(!1),v=async w=>{if(w.preventDefault(),!(!s||!u.trim())){g(!0);try{await he("/api/tasks",{method:"POST",body:JSON.stringify({agentId:s,title:u.trim(),description:h.trim()||void 0})}),r(),a()}catch{}finally{g(!1)}}};return o.jsxs("form",{onSubmit:v,className:"bg-white/5 border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),o.jsx("select",{value:s,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=>o.jsx("option",{value:w.id,children:w.name},w.id))})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),o.jsx("input",{value:u,onChange:w=>f(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"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),o.jsx("textarea",{value:h,onChange:w=>m(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"})]}),o.jsxs("div",{className:"flex gap-2 justify-end",children:[o.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.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 rO(){const{id:e}=oi(),{data:a,loading:r}=Ve(e?`/api/tasks/${e}`:null),{data:s}=Ve(e?`/api/tasks/${e}/messages`:null);return r?o.jsx("div",{className:"p-6",children:o.jsx(Ut,{count:6})}):a?o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsxs(Mt,{to:"/tasks",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[o.jsx(mi,{size:14})," Back to tasks"]}),o.jsx(ut,{title:a.title,action:o.jsx(Ht,{status:a.status})}),a.description&&o.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:a.description}),o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6",children:[a.model_used&&o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:"Model"}),o.jsx("p",{className:"text-sm font-medium mt-0.5",children:a.model_used})]}),a.tokens_used!=null&&o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:"Tokens"}),o.jsx("p",{className:"text-sm font-medium mt-0.5",children:a.tokens_used.toLocaleString()})]}),a.cost_cents!=null&&o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:"Cost"}),o.jsxs("p",{className:"text-sm font-medium mt-0.5",children:["$",(a.cost_cents/100).toFixed(4)]})]}),a.duration_seconds!=null&&o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:"Duration"}),o.jsxs("p",{className:"text-sm font-medium mt-0.5",children:[a.duration_seconds,"s"]})]})]}),a.error_message&&o.jsx("div",{className:"bg-critical/10 border border-critical/30 rounded-lg p-4 mb-6",children:o.jsx("p",{className:"text-sm text-critical",children:a.error_message})}),a.output&&o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Output"}),o.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:o.jsx("pre",{className:"text-sm whitespace-pre-wrap break-words",children:typeof a.output=="string"?a.output:JSON.stringify(a.output,null,2)})})]}),s&&s.length>0&&o.jsxs("div",{children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-2",children:"Conversation"}),o.jsx("div",{className:"space-y-2",children:s.map(c=>o.jsxs("div",{className:`rounded-lg p-3 text-sm ${c.role==="user"?"bg-white/5 border border-white/[0.12]":"border border-white/[0.08]"}`,children:[o.jsx("p",{className:"text-xs text-neutral-400 mb-1 capitalize",children:c.role}),o.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof c.content=="string"?c.content:JSON.stringify(c.content)})]},c.id))})]})]}):o.jsx("div",{className:"p-6 text-neutral-400",children:"Task not found"})}function sO(e){if(!e)return null;if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return e}function iO(){const e=Ia(["task:completed"]),{data:a,loading:r,refetch:s}=Ve("/api/approvals",[e]),[c,u]=i.useState(null),[f,h]=i.useState(!1),[m,p]=i.useState(null),[g,v]=i.useState(""),b=i.useCallback(async A=>{u(A);try{await he(`/api/approvals/${A}/approve`,{method:"POST"}),s()}catch{}finally{u(null)}},[s]),w=i.useCallback(async()=>{if(m){u(m.id);try{await he(`/api/approvals/${m.id}/reject`,{method:"POST",body:JSON.stringify({reason:g.trim()||void 0})}),p(null),v(""),s()}catch{}finally{u(null)}}},[m,g,s]),N=i.useCallback(async()=>{if(a!=null&&a.length){h(!0);try{for(const A of a)await he(`/api/approvals/${A.id}/approve`,{method:"POST"});s()}catch{}finally{h(!1)}}},[a,s]),j=i.useCallback(async()=>{if(a!=null&&a.length){h(!0);try{for(const A of a)await he(`/api/approvals/${A.id}/reject`,{method:"POST"});s()}catch{}finally{h(!1)}}},[a,s]);return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Approvals",subtitle:"Tasks waiting for your review",action:a!=null&&a.length?o.jsxs("div",{className:"flex gap-2",children:[o.jsxs("button",{onClick:j,disabled:f,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:[o.jsx(tS,{size:14})," Reject all"]}),o.jsxs("button",{onClick:N,disabled:f,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:[o.jsx(_1,{size:14})," Approve all"]})]}):void 0}),r?o.jsx(Ut,{count:3}):a!=null&&a.length?o.jsx("div",{className:"space-y-3",children:a.map(A=>{const E=sO(A.deferred_action);return o.jsx("div",{className:"border border-white/[0.08] rounded-lg p-4",children:o.jsxs("div",{className:"flex items-start justify-between gap-4",children:[o.jsxs("div",{className:"min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("p",{className:"text-sm font-medium",children:A.title}),E&&o.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs bg-warning/15 text-warning",children:[E.provider==="gmail"?o.jsx(Ik,{size:12}):o.jsx(Na,{size:12}),E.type,E.params.to?` → ${E.params.to}`:""]})]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:new Date(A.created_at).toLocaleString()}),A.output&&o.jsx("pre",{className:"text-xs text-neutral-400 mt-2 whitespace-pre-wrap break-words max-h-32 overflow-y-auto",children:typeof A.output=="string"?A.output.slice(0,500):JSON.stringify(A.output).slice(0,500)})]}),o.jsxs("div",{className:"flex gap-2 shrink-0",children:[o.jsx("button",{onClick:()=>{p(A),v("")},disabled:c===A.id||f,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"}),o.jsx("button",{onClick:()=>b(A.id),disabled:c===A.id||f,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"})]})]})},A.id)})}):o.jsx(It,{icon:o.jsx(zj,{size:32}),title:"All clear",description:"No tasks waiting for approval right now."}),m&&o.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",children:o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-5 w-full max-w-md",children:[o.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Reject task"}),o.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["“",m.title,"”"]}),o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Reason (optional)"}),o.jsx("textarea",{value:g,onChange:A=>v(A.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"}),o.jsxs("div",{className:"flex gap-2 justify-end",children:[o.jsx("button",{onClick:()=>p(null),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{onClick:w,disabled:c===m.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===m.id?"Rejecting...":"Reject"})]})]})})]})}const lO={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"},oO=["all","task_completed","task_failed","task_started","task_needs_approval","schedule_fired","agent_created","memory_extracted"];function cO(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 uO(e){const a=Date.now()-new Date(e).getTime(),r=Math.floor(a/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const s=Math.floor(r/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function dO(){const e=Ia(["task:started","task:completed","task:failed","memory:extracted"]),{data:a,loading:r}=Ve("/api/activity",[e]),[s,c]=i.useState("all"),[u,f]=i.useState("all"),[h,m]=i.useState(""),p=i.useMemo(()=>{if(!a)return[];let g=a;s!=="all"&&(g=g.filter(b=>b.activity_type===s));const v=cO(u);if(v&&(g=g.filter(b=>new Date(b.created_at)>=v)),h.trim()){const b=h.toLowerCase();g=g.filter(w=>w.title.toLowerCase().includes(b)||(w.description||"").toLowerCase().includes(b))}return g},[a,s,u,h]);return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Activity",subtitle:"Recent events"}),o.jsx("div",{className:"flex gap-1 mb-3 overflow-x-auto",children:oO.map(g=>o.jsx("button",{onClick:()=>c(g),className:`px-3 py-1 rounded text-xs whitespace-nowrap transition-colors ${s===g?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:g==="all"?"All":g.replace(/_/g," ")},g))}),o.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[o.jsx("div",{className:"flex gap-1",children:["all","today","7d","30d"].map(g=>o.jsx("button",{onClick:()=>f(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))}),o.jsxs("div",{className:"relative flex-1",children:[o.jsx(Wn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),o.jsx("input",{value:h,onChange:g=>m(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"})]})]}),r?o.jsx(Ut,{count:8}):p.length?o.jsx("div",{className:"space-y-1",children:p.map((g,v)=>o.jsxs(mt.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:v*.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:[o.jsx("span",{className:`text-xs font-mono mt-0.5 shrink-0 ${lO[g.activity_type]||"text-neutral-400"}`,children:g.activity_type.replace(/_/g," ")}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"text-sm",children:g.title}),g.description&&o.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:g.description})]}),o.jsx("span",{className:"text-xs text-neutral-500 shrink-0",children:uO(g.created_at)})]},g.id))}):o.jsx(It,{icon:o.jsx(zk,{size:32}),title:"Quiet so far",description:h||s!=="all"||u!=="all"?"No activity matching your filters.":"Activity will show up here as agents complete tasks."})]})}function Z6({open:e,onClose:a,onConfirm:r,title:s="Confirm",message:c,confirmLabel:u="Confirm",confirmColor:f="critical",loading:h=!1}){const m=f==="critical"?"bg-critical/10 border-critical/30 text-critical hover:bg-critical/20":"bg-white text-black border-white hover:bg-neutral-200";return o.jsxs(er,{open:e,onClose:a,title:s,children:[o.jsx("p",{className:"text-sm text-neutral-400 mb-6",children:c}),o.jsxs("div",{className:"flex gap-2 justify-end",children:[o.jsx("button",{onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{onClick:r,disabled:h,className:`px-3 py-1.5 border rounded text-xs font-medium transition-colors disabled:opacity-50 ${m}`,children:h?"Working...":u})]})]})}const Vx=[{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 rS({value:e,onChange:a}){const[r,s]=i.useState(Vx.some(c=>c.cron===e)?"preset":"custom");return o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex gap-1",children:[o.jsx("button",{type:"button",onClick:()=>s("preset"),className:`px-2 py-1 rounded text-xs transition-colors ${r==="preset"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Presets"}),o.jsx("button",{type:"button",onClick:()=>s("custom"),className:`px-2 py-1 rounded text-xs transition-colors ${r==="custom"?"bg-white/5 text-white":"text-neutral-400 hover:text-white"}`,children:"Custom"})]}),r==="preset"?o.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:Vx.map(c=>o.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:[o.jsx("span",{className:"block",children:c.label}),o.jsx("span",{className:"block font-mono text-[10px] text-neutral-400 mt-0.5",children:c.cron})]},c.cron))}):o.jsxs("div",{children:[o.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"}),o.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:"Format: minute hour day month weekday"})]})]})}function fO(e){const a=Date.now()-new Date(e).getTime(),r=Math.floor(a/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const s=Math.floor(r/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function hO(e){const a=new Date(e).getTime()-Date.now();if(a<0)return"overdue";const r=Math.floor(a/6e4);if(r<1)return"now";if(r<60)return`in ${r}m`;const s=Math.floor(r/60);return s<24?`in ${s}h`:`in ${Math.floor(s/24)}d`}function mO(){const{data:e,loading:a,refetch:r}=Ve("/api/schedules"),[s,c]=i.useState(null),[u,f]=i.useState(!1),[h,m]=i.useState(null),[p,g]=i.useState(null),[v,b]=i.useState(!1),w=async j=>{c(j);try{await he(`/api/schedules/${j}/toggle`,{method:"POST"}),r()}catch{ge("error","Couldn't toggle schedule. Try again?")}finally{c(null)}},N=async()=>{if(p){b(!0);try{await he(`/api/schedules/${p.id}`,{method:"DELETE"}),ge("success","Schedule deleted"),r()}catch{ge("error","Couldn't delete schedule. Try again?")}finally{b(!1),g(null)}}};return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Schedules",subtitle:"Automated task schedules",action:o.jsxs("button",{onClick:()=>f(!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:[o.jsx(Bt,{size:14})," New schedule"]})}),a?o.jsx(Ut,{count:3}):e!=null&&e.length?o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:e.map(j=>o.jsxs("div",{className:"flex items-center justify-between px-4 py-4",children:[o.jsxs("div",{className:"min-w-0 mr-4 flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:`w-2 h-2 rounded-full shrink-0 ${j.enabled?"bg-success":"bg-white/10"}`}),o.jsx("p",{className:"text-sm font-medium truncate",children:j.label})]}),o.jsxs("div",{className:"flex gap-3 mt-1 ml-4",children:[o.jsx("span",{className:"text-xs text-neutral-400 font-mono",children:j.cron_expression||j.cron}),j.next_run_at&&o.jsxs("span",{className:"text-xs text-neutral-400",children:["Next: ",hO(j.next_run_at)]}),j.last_run_at&&o.jsxs("span",{className:"text-xs text-neutral-400",children:["Last: ",fO(j.last_run_at)]})]}),j.task_prompt&&o.jsx("p",{className:"text-xs text-neutral-400 mt-1 ml-4 truncate max-w-md",children:j.task_prompt})]}),o.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[o.jsx("button",{onClick:()=>m(j),className:"text-neutral-400 hover:text-white transition-colors",title:"Edit",children:o.jsx(Dh,{size:14})}),o.jsx("button",{onClick:()=>g(j),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:o.jsx(Ua,{size:14})}),o.jsx(ii,{checked:!!j.enabled,onChange:()=>w(j.id),disabled:s===j.id})]})]},j.id))}):o.jsx(It,{icon:o.jsx(Rk,{size:32}),title:"Nothing scheduled yet",description:"Set up recurring tasks to keep your agents busy.",action:o.jsxs("button",{onClick:()=>f(!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:[o.jsx(Bt,{size:14})," Create your first schedule"]})}),u&&o.jsx(Lx,{onClose:()=>f(!1),onSuccess:()=>{r(),f(!1)}}),h&&o.jsx(Lx,{schedule:h,onClose:()=>m(null),onSuccess:()=>{r(),m(null)}}),o.jsx(Z6,{open:!!p,onClose:()=>g(null),onConfirm:N,title:"Delete schedule",message:`Delete "${p==null?void 0:p.label}"? This can't be undone.`,confirmLabel:"Delete",loading:v})]})}function Lx({schedule:e,onClose:a,onSuccess:r}){const s=!!e,{data:c}=Ve("/api/agents"),[u,f]=i.useState((e==null?void 0:e.label)||""),[h,m]=i.useState((e==null?void 0:e.cron_expression)||(e==null?void 0:e.cron)||"0 9 * * *"),[p,g]=i.useState((e==null?void 0:e.agent_id)||""),[v,b]=i.useState((e==null?void 0:e.task_prompt)||""),[w,N]=i.useState(!1),j=async A=>{if(A.preventDefault(),!(!u.trim()||!h.trim())){N(!0);try{s?(await he(`/api/schedules/${e.id}`,{method:"PUT",body:JSON.stringify({label:u.trim(),cron:h.trim(),agent_id:p||null,task_prompt:v})}),ge("success","Schedule updated")):(await he("/api/schedules",{method:"POST",body:JSON.stringify({label:u.trim(),cron:h.trim(),agent_id:p||null,task_prompt:v})}),ge("success","Schedule created")),r()}catch{ge("error",`Couldn't ${s?"update":"create"} schedule. Try again?`)}finally{N(!1)}}};return o.jsx(er,{open:!0,onClose:a,title:s?"Edit schedule":"New schedule",maxWidth:"max-w-lg",children:o.jsxs("form",{onSubmit:j,className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Title"}),o.jsx("input",{value:u,onChange:A=>f(A.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})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),o.jsxs("select",{value:p,onChange:A=>g(A.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:[o.jsx("option",{value:"",children:"Orchestrator (default)"}),c==null?void 0:c.map(A=>o.jsx("option",{value:A.id,children:A.name},A.id))]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Schedule"}),o.jsx(rS,{value:h,onChange:m})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Task prompt"}),o.jsx("textarea",{value:v,onChange:A=>b(A.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"})]}),o.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[o.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.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...":s?"Save changes":"Create schedule"})]})]})})}const sS={SAMPLE_RATE:16e3,BIT_DEPTH:16,CHANNELS:1};function pO(e){const{SAMPLE_RATE:a,BIT_DEPTH:r,CHANNELS:s}=sS,c=a*s*(r/8),u=s*(r/8),f=e.byteLength,h=new ArrayBuffer(44+f),m=new DataView(h);return Yl(m,0,"RIFF"),m.setUint32(4,36+f,!0),Yl(m,8,"WAVE"),Yl(m,12,"fmt "),m.setUint32(16,16,!0),m.setUint16(20,1,!0),m.setUint16(22,s,!0),m.setUint32(24,a,!0),m.setUint32(28,c,!0),m.setUint16(32,u,!0),m.setUint16(34,r,!0),Yl(m,36,"data"),m.setUint32(40,f,!0),new Int16Array(h,44).set(e),h}function gO(e){const a=new Int16Array(e.length);for(let r=0;r<e.length;r++){const s=Math.max(-1,Math.min(1,e[r]));a[r]=s<0?s*32768:s*32767}return a}function xO(e,a,r){if(a===r)return e;const s=a/r,c=Math.round(e.length/s),u=new Float32Array(c);for(let f=0;f<c;f++){const h=Math.round(f*s);u[f]=e[Math.min(h,e.length-1)]}return u}async function vO(e,a){const r=a||new AudioContext,s=await r.decodeAudioData(e.slice(0)),c=r.createBufferSource();return c.buffer=s,c.connect(r.destination),new Promise(u=>{c.onended=()=>u(),c.start(0)})}function yO(e){const a=new AudioContext;let r=[],s=!1;async function c(){if(r.length===0){s=!1;return}s=!0;const u=r.shift();await vO(u,a),await c()}return{enqueue(u){r.push(u),s||c()},clear(){r=[],s=!1},close(){r=[],s=!1,a.close()},get isPlaying(){return s}}}function Yl(e,a,r){for(let s=0;s<r.length;s++)e.setUint8(a+s,r.charCodeAt(s))}class bO{constructor(a,r={}){ua(this,"threshold");ua(this,"minSpeechMs");ua(this,"silenceMs");ua(this,"onSpeechStart");ua(this,"onSpeechEnd");ua(this,"isSpeaking",!1);ua(this,"speechStartTime",0);ua(this,"lastSpeechTime",0);ua(this,"audioChunks",[]);ua(this,"sampleRate");ua(this,"checkInterval",null);this.sampleRate=a,this.threshold=r.threshold??.01,this.minSpeechMs=r.minSpeechMs??300,this.silenceMs=r.silenceMs??800,this.onSpeechStart=r.onSpeechStart,this.onSpeechEnd=r.onSpeechEnd}processFrame(a){var c;const r=wO(a),s=Date.now();r>this.threshold&&(this.isSpeaking||(this.isSpeaking=!0,this.speechStartTime=s,this.audioChunks=[],(c=this.onSpeechStart)==null||c.call(this)),this.lastSpeechTime=s),this.isSpeaking&&(this.audioChunks.push(new Float32Array(a)),r<=this.threshold&&s-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 m;const a=Date.now()-this.speechStartTime;if(this.isSpeaking=!1,a<this.minSpeechMs||this.audioChunks.length===0){this.audioChunks=[];return}const r=this.audioChunks.reduce((p,g)=>p+g.length,0),s=new Float32Array(r);let c=0;for(const p of this.audioChunks)s.set(p,c),c+=p.length;this.audioChunks=[];const u=xO(s,this.sampleRate,sS.SAMPLE_RATE),f=gO(u),h=pO(f);(m=this.onSpeechEnd)==null||m.call(this,h)}}function wO(e){let a=0;for(let r=0;r<e.length;r++)a+=e[r]*e[r];return Math.sqrt(a/e.length)}function AO(){const e=Qn(),a=window.location.protocol==="https:"?"wss:":"ws:",r=window.location.host;return`${a}//${r}/ws/voice?token=${e}`}function EO(e){const[a,r]=i.useState("idle"),[s,c]=i.useState(""),[u,f]=i.useState(""),[h,m]=i.useState(null),[p,g]=i.useState(!1),v=i.useRef(null),b=i.useRef(null),w=i.useRef(null),N=i.useRef(null),j=i.useRef(null),A=i.useRef(null),E=i.useCallback(()=>{var C,Z,T,L,R;(C=w.current)==null||C.stop(),w.current=null,(Z=N.current)==null||Z.disconnect(),N.current=null,(T=b.current)==null||T.getTracks().forEach(k=>k.stop()),b.current=null,(L=j.current)==null||L.close(),j.current=null,(R=A.current)==null||R.close(),A.current=null,v.current&&v.current.readyState!==WebSocket.CLOSED&&(v.current.send(JSON.stringify({type:"stop"})),v.current.close()),v.current=null,r("idle"),m(null)},[]);i.useEffect(()=>E,[E]);const M=i.useCallback(async()=>{m(null),c(""),f("");let C;try{C=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:{ideal:16e3},channelCount:1,echoCancellation:!0,noiseSuppression:!0}})}catch{m("Couldn't access microphone. Check your browser permissions.");return}b.current=C;const Z=new AudioContext;j.current=Z;const T=Z.createMediaStreamSource(C),L=new WebSocket(AO());v.current=L;const R=yO();A.current=R,L.binaryType="arraybuffer",L.onopen=()=>{L.send(JSON.stringify({type:"start",agentId:e}))},L.onmessage=Q=>{if(Q.data instanceof ArrayBuffer){R.enqueue(Q.data);return}try{const ee=JSON.parse(Q.data);switch(ee.type){case"state":r(ee.state);break;case"transcription":c(ee.text);break;case"response":f(ee.text);break;case"error":m(ee.message);break}}catch{}},L.onerror=()=>{m("Couldn't connect to voice server. Is the runtime running?"),E()},L.onclose=()=>{E()};const B=Z.createScriptProcessor(4096,1,1);N.current=B;const G=new bO(Z.sampleRate,{threshold:.01,minSpeechMs:300,silenceMs:800,onSpeechStart:()=>{r("listening")},onSpeechEnd:Q=>{L.readyState===WebSocket.OPEN&&L.send(Q)}});w.current=G,G.start(),B.onaudioprocess=Q=>{if(p)return;const ee=Q.inputBuffer.getChannelData(0);G.processFrame(ee)},T.connect(B),B.connect(Z.destination)},[e,p,E]),_=i.useCallback(()=>{E()},[E]),H=i.useCallback(()=>{g(C=>{var T;const Z=!C;return(T=b.current)==null||T.getAudioTracks().forEach(L=>{L.enabled=!Z}),Z})},[]);return{state:a,transcript:s,response:u,error:h,startCall:M,endCall:_,toggleMute:H,isMuted:p}}const s1=24,Lu=3,Ru=2,As=2,Sr=32;function jO({state:e,className:a=""}){const r=i.useRef(null),s=i.useRef(0);return i.useEffect(()=>{const c=r.current;if(!c)return;const u=c.getContext("2d");if(!u)return;const f=s1*(Lu+Ru)-Ru;c.width=f*2,c.height=Sr*2,c.style.width=`${f}px`,c.style.height=`${Sr}px`,u.scale(2,2);const h=new Float32Array(s1).fill(0);function m(){if(u){u.clearRect(0,0,f,Sr);for(let p=0;p<s1;p++){const g=SO(e,p,Date.now());h[p]+=(g-h[p])*.15;const v=Math.max(As,h[p]),b=p*(Lu+Ru),w=(Sr-v)/2;u.fillStyle=MO(e),u.beginPath(),u.roundRect(b,w,Lu,v,1.5),u.fill()}s.current=requestAnimationFrame(m)}}return m(),()=>cancelAnimationFrame(s.current)},[e]),o.jsx("canvas",{ref:r,className:a})}function SO(e,a,r){switch(e){case"listening":{const s=Math.sin(r/200+a*.5)*.5+.5;return As+s*(Sr*.6-As)}case"processing":{const s=s1/2,c=Math.abs(a-s)/s,u=Math.sin(r/300)*.5+.5;return As+(1-c)*u*Sr*.4}case"speaking":{const s=Math.sin(r/150+a*.4)*.5+.5,c=Math.sin(r/250+a*.7)*.3+.3;return As+(s+c)*(Sr*.45)}default:return As}}function MO(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 NO({isMuted:e,onToggleMute:a,onEndCall:r}){return o.jsxs("div",{className:"flex items-center gap-3",children:[o.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?o.jsx(Sj,{size:20,weight:"fill"}):o.jsx(Ej,{size:20,weight:"fill"})}),o.jsx("button",{onClick:r,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:o.jsx(nD,{size:20,weight:"fill"})})]})}const _O={idle:"Ready",listening:"Listening...",processing:"Thinking...",speaking:"Speaking..."};function CO({state:e,transcript:a,response:r,error:s,isMuted:c,onToggleMute:u,onEndCall:f}){return i.useEffect(()=>{const h=m=>{m.key==="Escape"&&f()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[f]),o.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/90 backdrop-blur-sm",children:[o.jsx("div",{className:"absolute inset-0",onClick:f}),o.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8 max-w-md w-full px-6",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.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"}`}),o.jsx("span",{className:"text-sm text-neutral-400 font-mono",children:_O[e]})]}),o.jsx(jO,{state:e}),a&&o.jsxs("div",{className:"w-full text-center",children:[o.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"You said:"}),o.jsx("p",{className:"text-sm text-neutral-300",children:a})]}),r&&o.jsxs("div",{className:"w-full text-center",children:[o.jsx("p",{className:"text-xs text-neutral-500 mb-1 font-mono",children:"Response:"}),o.jsx("p",{className:"text-sm text-white",children:r})]}),s&&o.jsx("div",{className:"w-full text-center",children:o.jsx("p",{className:"text-sm text-red-400",children:s})}),o.jsx(NO,{isMuted:c,onToggleMute:u,onEndCall:f}),o.jsx("p",{className:"text-xs text-neutral-600",children:"Press Esc to end call"})]})]})}function TO(){var oe;const[e,a]=i.useState([]),[r,s]=i.useState(""),[c,u]=i.useState(!1),[f,h]=i.useState(()=>crypto.randomUUID()),[m,p]=i.useState(!1),[g,v]=i.useState(!1),b=i.useRef(null),{modelReady:w,loading:N}=T6(),[j,A]=i.useState([]),[E,M]=i.useState(""),[_,H]=i.useState(!1),C=EO("orchestrator");i.useEffect(()=>{he("/api/system/models").then(D=>{A(D.data.models),D.data.currentModel&&M(D.data.currentModel)}).catch(()=>{})},[]),i.useEffect(()=>{let D=!1,$=!1;const ne=()=>{fetch("/api/voice/providers").then(de=>de.json()).then(de=>{var W;if(D)return;v(!0);const q=!!((W=de==null?void 0:de.data)!=null&&W.anyAvailable);p(q),q&&($=!0)}).catch(()=>{})};ne();const ue=setInterval(()=>{!D&&!$&&ne()},15e3);return()=>{D=!0,clearInterval(ue)}},[]);const Z=i.useRef(""),T=i.useRef("");i.useEffect(()=>{C.transcript&&C.transcript!==Z.current&&(Z.current=C.transcript,a(D=>[...D,{role:"user",content:C.transcript}]))},[C.transcript]),i.useEffect(()=>{C.response&&C.response!==T.current&&(T.current=C.response,a(D=>[...D,{role:"assistant",content:C.response}]))},[C.response]),i.useEffect(()=>{var D;(D=b.current)==null||D.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})},[e]);const L=async()=>{const D=r.trim();if(!D||c)return;s(""),a(ne=>[...ne,{role:"user",content:D}]),u(!0);let $="";a(ne=>[...ne,{role:"assistant",content:""}]);try{for await(const ne of qw(D,f,E||void 0))ne.type==="text"&&($+=ne.content,a(ue=>{const de=[...ue];return de[de.length-1]={role:"assistant",content:$},de}))}catch{$+=`
74
-
75
- [Connection lost. Try sending your message again.]`,a(ne=>{const ue=[...ne];return ue[ue.length-1]={role:"assistant",content:$},ue})}finally{u(!1)}},R=D=>{D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),L())},k=()=>{h(crypto.randomUUID()),a([]),Z.current="",T.current=""},B=D=>{M(D),H(!1)},G=((oe=j.find(D=>D.id===E))==null?void 0:oe.name)||E||"Auto",Q=m&&!r.trim()&&!c,ee=g&&!m&&!r.trim()&&!c;return!N&&!w&&e.length===0?o.jsxs("div",{className:"flex flex-col h-full",children:[o.jsx("div",{className:"px-6 pt-6 pb-0",children:o.jsx(ut,{title:"Chat",subtitle:"Talk to your orchestrator"})}),o.jsx("div",{className:"flex-1 flex items-center justify-center",children:o.jsxs("div",{className:"text-center space-y-3 max-w-sm",children:[o.jsx("p",{className:"text-lg text-white font-medium",children:"Your orchestrator needs a brain"}),o.jsx("p",{className:"text-sm text-neutral-400",children:"Download an AI model to start chatting."}),o.jsx(Nr,{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"})]})})]}):o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[o.jsx("div",{className:"px-6 pt-6 pb-0 shrink-0",children:o.jsx(ut,{title:"Chat",subtitle:"Talk to your orchestrator",action:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("div",{className:"relative",children:[o.jsxs("button",{onClick:()=>H(!_),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:[o.jsx("span",{className:"max-w-[120px] truncate",children:G}),o.jsx(Os,{size:12})]}),_&&j.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>H(!1)}),o.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:j.map(D=>o.jsxs("button",{onClick:()=>B(D.id),className:`w-full text-left px-3 py-2 text-xs hover:bg-white/[0.06] transition-colors ${E===D.id,"text-white"}`,children:[o.jsx("span",{className:"block",children:D.name}),o.jsx("span",{className:"block text-neutral-400 text-[10px]",children:D.provider})]},D.id))})]})]}),o.jsxs("button",{onClick:k,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:[o.jsx(Bt,{size:14})," New chat"]})]})})}),o.jsxs("div",{ref:b,className:"flex-1 overflow-y-auto min-h-0 px-6 py-4 space-y-4",children:[e.length===0&&o.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((D,$)=>o.jsx("div",{className:`max-w-2xl ${D.role==="user"?"ml-auto":""}`,children:o.jsx("div",{className:`px-4 py-3 text-sm ${D.role==="user"?"bg-white/10 rounded-xl text-white":"text-neutral-200"}`,children:o.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:D.content||(c&&$===e.length-1?"...":"")})})},$))]}),o.jsx("div",{className:"border-t border-white/[0.08] px-6 py-4 shrink-0",children:o.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[o.jsx("textarea",{value:r,onChange:D=>s(D.target.value),onKeyDown:R,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"}),Q?o.jsx("button",{onClick:()=>C.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:o.jsx(Ej,{size:18})}):ee?o.jsxs("div",{className:"flex gap-2",children:[o.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:o.jsx(Sj,{size:18})}),o.jsx("button",{onClick:L,disabled:c||!r.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:o.jsx(kh,{size:18})})]}):o.jsx("button",{onClick:L,disabled:c||!r.trim(),className:"bg-white text-black rounded-xl px-4 hover:bg-neutral-200 transition-colors disabled:opacity-50",children:o.jsx(kh,{size:18})})]})}),C.state!=="idle"&&o.jsx(CO,{state:C.state,transcript:C.transcript,response:C.response,error:C.error,isMuted:C.isMuted,onToggleMute:C.toggleMute,onEndCall:C.endCall})]})}let HO=0;function ku(){return`lmsg-${++HO}-${Date.now()}`}function ZO(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 VO(e){const a=Date.now()-new Date(e).getTime(),r=Math.floor(a/6e4);if(r<1)return"Just now";if(r<60)return`${r}m ago`;const s=Math.floor(r/60);if(s<24)return`${s}h ago`;const c=Math.floor(s/24);return c<7?`${c}d ago`:new Date(e).toLocaleDateString()}function LO(){var L;const[e,a]=i.useState([]),[r,s]=i.useState([]),[c,u]=i.useState(null),[f,h]=i.useState([]),[m,p]=i.useState(!1),[g,v]=i.useState(!0),[b,w]=i.useState(!1),N=i.useRef([]),j=i.useRef({type:"orchestrator",id:null}),A=i.useRef(null);i.useEffect(()=>{he("/api/orchestrator/sessions").then(R=>a(R.sessions||[])).catch(()=>{}).finally(()=>v(!1)),he("/api/agents").then(R=>s(R.data||[])).catch(()=>{})},[]);const E=e.find(R=>R.id===c),M=(E==null?void 0:E.target_type)||"orchestrator",_=M==="agent"?((L=r.find(R=>R.id===(E==null?void 0:E.target_id)))==null?void 0:L.name)||"Agent":"Orchestrator",H=i.useCallback(async R=>{var k;try{(k=A.current)==null||k.abort();const B=await he(`/api/orchestrator/sessions/${R}`),Q=(Array.isArray(B.messages)?B.messages:[]).map(ee=>({role:ee.role==="user"?"user":"assistant",content:ZO(ee.content)}));N.current=Q,j.current={type:B.target_type||"orchestrator",id:B.target_id||null},u(R),p(!1),h(Q.map(ee=>({id:ku(),role:ee.role,content:ee.content}))),w(!1)}catch{}},[]),C=i.useCallback(async(R,k,B)=>{try{const G=R==="agent"&&B?`Chat with ${B}`:"New conversation",Q=await he("/api/orchestrator/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:G,messages:[],target_type:R,target_id:k})}),ee={id:Q.id,title:Q.title||G,message_count:0,target_type:R,target_id:k,updated_at:new Date().toISOString()};a(oe=>[ee,...oe]),u(Q.id),j.current={type:R,id:k},N.current=[],h([]),p(!1),w(!1)}catch{}},[]),Z=i.useCallback(async R=>{try{await he(`/api/orchestrator/sessions/${R}`,{method:"DELETE"}),a(k=>k.filter(B=>B.id!==R)),c===R&&(u(null),h([]),N.current=[])}catch{}},[c]);i.useCallback(async()=>{var B;const R=c,k=N.current;if(!(!R||k.length===0))try{const G=((B=k.find(Q=>Q.role==="user"))==null?void 0:B.content)||"Untitled";await he(`/api/orchestrator/sessions/${R}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:k,title:G.slice(0,60)})}),a(Q=>Q.map(ee=>ee.id===R?{...ee,message_count:k.length,title:G.slice(0,60),updated_at:new Date().toISOString()}:ee))}catch{}},[c]);const T=i.useCallback(async R=>{var Q;if(m||!c)return;N.current.push({role:"user",content:R});const k=ku(),B=ku();h(ee=>[...ee,{id:k,role:"user",content:R},{id:B,role:"assistant",content:"",isStreaming:!0}]),p(!0);let G="";try{for await(const ee of qw(R,c))ee.type==="text"&&(G+=ee.content,h(oe=>oe.map(D=>D.id===B?{...D,content:G}:D)))}catch{G+=`
77
-
78
- [Connection lost. Try again.]`}finally{h(D=>D.map($=>$.id===B?{...$,content:G||"No response.",isStreaming:!1}:$)),N.current.push({role:"assistant",content:G}),p(!1);const ee=c,oe=N.current;if(ee&&oe.length>0){const D=((Q=oe.find($=>$.role==="user"))==null?void 0:Q.content)||"Untitled";a($=>$.map(ne=>ne.id===ee?{...ne,message_count:oe.length,title:D.slice(0,60),updated_at:new Date().toISOString()}:ne))}}},[m,c]);return o.jsxs("div",{className:"flex flex-col h-full",children:[o.jsx("div",{className:"px-6 pt-6 pb-0",children:o.jsx(ut,{title:"Messages",subtitle:"Conversations with your agents and orchestrator"})}),o.jsxs("div",{className:"flex flex-1 min-h-0 mx-6 mb-6 border border-white/[0.08] rounded-xl overflow-hidden",children:[o.jsx("div",{className:"hidden md:flex w-72 flex-shrink-0",children:o.jsx(Rx,{sessions:e,activeSessionId:c,isLoading:g,agents:r,onSelect:H,onNewConversation:C,onDelete:Z})}),o.jsxs("div",{className:"md:hidden",children:[o.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:o.jsx(vj,{size:18})}),o.jsx(Ds,{children:b&&o.jsxs(o.Fragment,{children:[o.jsx(mt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>w(!1),className:"fixed inset-0 bg-black/60 z-40"}),o.jsx(mt.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:o.jsx(Rx,{sessions:e,activeSessionId:c,isLoading:g,agents:r,onSelect:H,onNewConversation:C,onDelete:Z,onClose:()=>w(!1)})})]})})]}),o.jsx(RO,{messages:f,streaming:m,activeSessionId:c,targetType:M,targetName:_,onSend:T})]})]})}function Rx({sessions:e,activeSessionId:a,isLoading:r,agents:s,onSelect:c,onNewConversation:u,onDelete:f,onClose:h}){var A;const[m,p]=i.useState(!1),[g,v]=i.useState(null),b=e.filter(E=>E.target_type==="orchestrator"),w=e.filter(E=>E.target_type==="agent"),N=new Map;for(const E of w){const M=E.target_id||"unknown";N.has(M)||N.set(M,{name:((A=s.find(_=>_.id===M))==null?void 0:A.name)||"Agent",sessions:[]}),N.get(M).sessions.push(E)}const j=E=>{g===E?(f(E),v(null)):(v(E),setTimeout(()=>v(null),3e3))};return o.jsxs("div",{className:"flex flex-col h-full border-r border-white/[0.08] bg-black/40 w-full",children:[o.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/[0.08]",children:[o.jsx("span",{className:"text-sm font-medium text-white",children:"Conversations"}),o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("button",{onClick:()=>p(!m),className:"p-1.5 text-neutral-500 hover:text-white transition-colors rounded-md hover:bg-white/5",children:o.jsx(Bt,{size:16,weight:"bold"})}),h&&o.jsx("button",{onClick:h,className:"p-1.5 text-neutral-500 hover:text-white transition-colors md:hidden",children:o.jsx(Fa,{size:16,weight:"bold"})})]})]}),o.jsx(Ds,{children:m&&o.jsx(mt.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:o.jsxs("div",{className:"p-2 space-y-0.5",children:[o.jsx("p",{className:"text-[10px] uppercase tracking-widest text-neutral-600 px-2 py-1",children:"New conversation with"}),o.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:[o.jsx(Na,{size:14,weight:"bold",className:"text-uplink"}),"Orchestrator"]}),s.filter(E=>E.status==="active").map(E=>o.jsxs("button",{onClick:()=>{u("agent",E.id,E.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:[o.jsx(pn,{size:14,weight:"bold",className:"text-terminal"}),o.jsxs("div",{className:"text-left min-w-0",children:[o.jsx("span",{className:"block truncate",children:E.name}),o.jsx("span",{className:"block text-[10px] text-neutral-600 truncate",children:E.role})]})]},E.id))]})})}),o.jsxs("div",{className:"flex-1 overflow-y-auto",children:[r&&o.jsx("div",{className:"space-y-2 p-3",children:[...Array(4)].map((E,M)=>o.jsx("div",{className:"h-14 bg-white/[0.04] rounded-lg animate-pulse"},M))}),!r&&e.length===0&&o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-center px-4",children:[o.jsx(x1,{size:24,className:"text-neutral-600 mb-2"}),o.jsx("p",{className:"text-xs text-neutral-600",children:"No conversations yet"}),o.jsx("button",{onClick:()=>p(!0),className:"mt-2 text-xs text-neutral-500 hover:text-white transition-colors",children:"Start one"})]}),!r&&b.length>0&&o.jsx(kx,{label:"Orchestrator",icon:o.jsx(Na,{size:12,weight:"bold",className:"text-uplink"}),sessions:b,activeId:a,confirmId:g,onSelect:c,onDelete:j}),!r&&[...N.entries()].map(([E,M])=>o.jsx(kx,{label:M.name,icon:o.jsx(pn,{size:12,weight:"bold",className:"text-terminal"}),sessions:M.sessions,activeId:a,confirmId:g,onSelect:c,onDelete:j},E))]})]})}function kx({label:e,icon:a,sessions:r,activeId:s,confirmId:c,onSelect:u,onDelete:f}){return o.jsxs("div",{className:"py-1",children:[o.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5",children:[a,o.jsx("span",{className:"text-[10px] uppercase tracking-widest text-neutral-600",children:e})]}),r.map(h=>o.jsxs("div",{className:`group flex items-center px-3 mx-1 rounded-md transition-colors cursor-pointer ${h.id===s?"bg-white/[0.08]":"hover:bg-white/[0.04]"}`,children:[o.jsxs("button",{onClick:()=>u(h.id),className:"flex-1 text-left py-2.5 min-w-0",children:[o.jsx("p",{className:"text-sm text-white truncate leading-snug",children:h.title}),o.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[o.jsx("span",{className:"text-[11px] text-neutral-600",children:VO(h.updated_at)}),o.jsxs("span",{className:"text-[11px] text-neutral-600",children:[h.message_count," msg",h.message_count!==1?"s":""]})]})]}),o.jsx("button",{onClick:m=>{m.stopPropagation(),f(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:o.jsx(Ua,{size:14})})]},h.id))]})}function RO({messages:e,streaming:a,activeSessionId:r,targetType:s,targetName:c,onSend:u}){const f=i.useRef(null),[h,m]=i.useState("");i.useEffect(()=>{var v;(v=f.current)==null||v.scrollTo({top:f.current.scrollHeight,behavior:"smooth"})},[e]);const p=()=>{const v=h.trim();!v||a||(u(v),m(""))},g=v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),p())};return r?o.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[o.jsxs("div",{className:"flex items-center gap-2.5 px-5 py-3 border-b border-white/[0.08]",children:[s==="agent"?o.jsx(pn,{size:16,weight:"bold",className:"text-terminal"}):o.jsx(Na,{size:16,weight:"bold",className:"text-uplink"}),o.jsx("span",{className:"text-sm font-medium text-white",children:c}),a&&o.jsx("span",{className:"text-[11px] text-uplink ml-auto animate-pulse",children:"Responding..."})]}),o.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto px-5 py-4 space-y-4",children:[e.length===0&&o.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(v=>o.jsxs("div",{className:`flex gap-3 ${v.role==="user"?"flex-row-reverse":""}`,children:[o.jsx("div",{className:`w-7 h-7 rounded-full flex-shrink-0 flex items-center justify-center text-xs font-bold ${v.role==="user"?"bg-white/10 text-white":"bg-uplink/10 text-uplink"}`,children:v.role==="user"?"You":c[0]||"O"}),o.jsxs("div",{className:`max-w-[80%] rounded-xl px-4 py-3 text-sm ${v.role==="user"?"bg-white/[0.08] text-white":"bg-white/[0.03] border border-white/[0.08] text-neutral-200"}`,children:[o.jsx("pre",{className:"whitespace-pre-wrap break-words font-sans",children:v.content||(v.isStreaming?"...":"")}),v.isStreaming&&o.jsx("span",{className:"inline-block w-1.5 h-4 bg-uplink/70 animate-pulse ml-0.5 align-text-bottom rounded-sm"})]})]},v.id))]}),o.jsx("div",{className:"border-t border-white/[0.08] px-5 py-3",children:o.jsxs("div",{className:"flex gap-2 max-w-2xl",children:[o.jsx("textarea",{value:h,onChange:v=>m(v.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"}),o.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:o.jsx(kh,{size:18})})]})})]}):o.jsx("div",{className:"flex-1 flex items-center justify-center",children:o.jsxs("div",{className:"text-center space-y-3",children:[o.jsx("div",{className:"w-14 h-14 rounded-full bg-white/[0.06] flex items-center justify-center mx-auto",children:o.jsx(x1,{size:28,weight:"duotone",className:"text-neutral-500"})}),o.jsx("h3",{className:"text-lg font-semibold text-white",children:"Messages"}),o.jsx("p",{className:"text-sm text-neutral-500 max-w-xs",children:"Select a conversation or start a new one."})]})})}function iS(e){const a=Math.floor(e/86400),r=Math.floor(e%86400/3600),s=Math.floor(e%3600/60),c=[];return a&&c.push(`${a}d`),r&&c.push(`${r}h`),c.push(`${s}m`),c.join(" ")}function kO(){const{data:e}=Ve("/health"),{data:a}=Ve("/api/system/stats");return o.jsxs(o.Fragment,{children:[e&&o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Runtime"}),o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[o.jsx(da,{label:"Status",value:e.status,valueColor:e.status==="healthy"?"text-success":"text-warning"}),o.jsx(da,{label:"Version",value:`v${e.version}`}),o.jsx(da,{label:"Uptime",value:iS(e.uptime)}),o.jsx(da,{label:"Database",value:e.database}),a&&o.jsx(da,{label:"Memory",value:`${a.memoryMb} MB`})]})]}),a&&o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Stats"}),o.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[o.jsx(Kl,{label:"Agents",value:String(a.totalAgents)}),o.jsx(Kl,{label:"Tasks",value:String(a.totalTasks)}),o.jsx(Kl,{label:"Tokens",value:a.totalTokens.toLocaleString()}),o.jsx(Kl,{label:"Cost",value:`$${(a.totalCostCents/100).toFixed(2)}`})]})]})]})}function da({label:e,value:a,valueColor:r}){return o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsx("span",{className:"text-sm text-neutral-400",children:e}),o.jsx("span",{className:`text-sm font-medium ${r||""}`,children:a})]})}function Kl({label:e,value:a}){return o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:e}),o.jsx("p",{className:"text-lg font-bold",children:a})]})}function DO(){const{data:e}=Ve("/api/settings/tunnel_url"),{data:a}=Ve("/api/settings/cloud_url"),{data:r,refetch:s}=Ve("/api/settings/notification_channels"),{data:c,refetch:u}=Ve("/api/settings/global_mcp_servers"),f=e==null?void 0:e.value,[h,m]=i.useState(!1),[p,g]=i.useState(!1),v=(()=>{try{return c!=null&&c.value?JSON.parse(c.value):[]}catch{return[]}})(),b=(()=>{try{return r!=null&&r.value?JSON.parse(r.value):{email:!1,slack:!1,telegram:!1,whatsapp:!1}}catch{return{email:!1,slack:!1,telegram:!1,whatsapp:!1}}})(),w=i.useCallback(async j=>{g(!0);try{await he("/api/settings/global_mcp_servers",{method:"PUT",body:JSON.stringify({value:JSON.stringify(j)})}),u(),ge("success","Global MCP servers updated")}catch{ge("error","Couldn't update MCP servers")}finally{g(!1)}},[u]),N=i.useCallback(async j=>{m(!0);const A={...b,[j]:!b[j]};try{await he("/api/settings/notification_channels",{method:"PUT",body:JSON.stringify({value:JSON.stringify(A)})}),s(),ge("success",`${j} notifications ${A[j]?"enabled":"disabled"}`)}catch{ge("error","Couldn't update notification settings")}finally{m(!1)}},[b,s]);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Webhooks"}),o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[o.jsx(da,{label:"Tunnel",value:f?"Active":"Not connected",valueColor:f?"text-success":"text-neutral-400"}),f&&o.jsxs(o.Fragment,{children:[o.jsx(da,{label:"URL",value:f}),o.jsx(da,{label:"GHL Hook",value:`${f}/webhooks/ghl`})]}),!f&&(a==null?void 0:a.value)&&o.jsx(da,{label:"Cloud proxy",value:a.value,valueColor:"text-success"})]})]}),o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-1",children:"MCP Servers"}),o.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."}),o.jsx(nS,{servers:v,onChange:w,disabled:p})]}),o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Notifications"}),o.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(j=>o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsx("span",{className:"text-sm capitalize",children:j}),o.jsx(ii,{checked:b[j],onChange:()=>N(j),disabled:h,size:"sm"})]},j))})]})]})}async function Du(e,a,r){const s=e.body.getReader(),c=new TextDecoder;let u="";try{for(;;){if(r!=null&&r.aborted){s.cancel();return}const{done:f,value:h}=await s.read();if(f)break;u+=c.decode(h,{stream:!0});const m=u.split(`
79
- `);u=m.pop()||"";for(const p of m)if(p.startsWith("data: ")){const g=p.slice(6).trim();if(g==="[DONE]")return;let v;try{v=JSON.parse(g)}catch{continue}a(v)}}}finally{s.releaseLock()}}function OO(){const[e,a]=i.useState({installed:[],catalog:[],activeModel:"",orchestratorModel:"",device:null,memoryTier:"",ollamaRunning:!1,loading:!0,catalogLoading:!1,catalogLoaded:!1,downloading:null,openRouterKey:"",openRouterModel:"",openRouterConnected:!1}),r=i.useRef(null);i.useEffect(()=>()=>{var j;(j=r.current)==null||j.abort()},[]);const s=i.useCallback(async()=>{a(j=>({...j,loading:!0}));try{const j=await he("/api/models/installed");a(A=>({...A,installed:j.data.models,activeModel:j.data.activeModel,orchestratorModel:j.data.orchestratorModel||"",ollamaRunning:j.data.ollamaRunning,loading:!1}))}catch{a(j=>({...j,loading:!1}))}},[]),c=i.useCallback(async()=>{a(j=>({...j,catalogLoading:!0}));try{const j=await he("/api/models/catalog");a(A=>({...A,catalog:j.data.catalog,device:j.data.device,memoryTier:j.data.memoryTier,catalogLoading:!1,catalogLoaded:!0}))}catch{a(j=>({...j,catalogLoading:!1}))}},[]),u=i.useCallback(async j=>{let A="";a(E=>(A=E.activeModel,{...E,activeModel:j,installed:E.installed.map(M=>({...M,isActive:M.tag===j}))}));try{await he("/api/models/active",{method:"PUT",body:JSON.stringify({model:j})}),ge("success","Active model updated")}catch{a(E=>({...E,activeModel:A,installed:E.installed.map(M=>({...M,isActive:M.tag===A}))})),ge("error","Couldn't update active model")}},[]),f=i.useCallback(async j=>{let A="";a(E=>(A=E.orchestratorModel,{...E,orchestratorModel:j,installed:E.installed.map(M=>({...M,isOrchestrator:j?M.tag===j:!1}))}));try{await he("/api/models/orchestrator",{method:"PUT",body:JSON.stringify({model:j})}),ge("success",j?"Orchestrator model updated":"Orchestrator reset to auto")}catch{a(E=>({...E,orchestratorModel:A,installed:E.installed.map(M=>({...M,isOrchestrator:A?M.tag===A:!1}))})),ge("error","Couldn't update orchestrator model")}},[]),h=i.useCallback(async j=>{a(A=>({...A,installed:A.installed.map(E=>E.tag===j?{...E,status:"installed"}:E)}));try{await he(`/api/models/${encodeURIComponent(j)}/unload`,{method:"POST"}),ge("success","Model unloaded from memory")}catch{await s(),ge("error","Couldn't unload model")}},[s]),m=i.useCallback(async j=>{if(r.current)return;const A=new AbortController;r.current=A,a(E=>({...E,downloading:{tag:j,percent:0,message:"Setting things up..."}}));try{const E=await fetch("/api/onboarding/ensure-ollama",{method:"POST",signal:A.signal});if(!E.ok||!E.body)throw new Error("Couldn't start Ollama");await Du(E,C=>{if(a(Z=>Z.downloading?{...Z,downloading:{...Z.downloading,message:C.message}}:Z),C.error)throw new Error(C.error)},A.signal),a(C=>C.downloading?{...C,downloading:{...C.downloading,percent:0,message:"Starting download..."}}:C);const M=Qn(),_=await fetch("/api/onboarding/download-model",{method:"POST",headers:{"Content-Type":"application/json",...M?{Authorization:`Bearer ${M}`}:{}},body:JSON.stringify({tag:j}),signal:A.signal});if(!_.ok||!_.body)throw new Error("Couldn't start download");await Du(_,C=>{if(a(Z=>Z.downloading?{...Z,downloading:{...Z.downloading,message:C.message,percent:C.percent??Z.downloading.percent}}:Z),C.error)throw new Error(C.error)},A.signal),a(C=>({...C,downloading:null})),ge("success","Model installed");const H=await he("/api/models/installed");a(C=>({...C,installed:H.data.models,activeModel:H.data.activeModel,orchestratorModel:H.data.orchestratorModel||"",ollamaRunning:H.data.ollamaRunning,catalog:C.catalog.map(Z=>Z.tag===j?{...Z,installed:!0}:Z)}))}catch(E){if(A.signal.aborted)return;a(M=>({...M,downloading:null})),ge("error",E instanceof Error?E.message:"Download failed")}finally{r.current=null}},[]),p=i.useCallback(()=>{var j;(j=r.current)==null||j.abort(),a(A=>({...A,downloading:null}))},[]),g=i.useCallback(async j=>{try{await he(`/api/models/${encodeURIComponent(j)}`,{method:"DELETE"}),ge("success","Model deleted");const A=await he("/api/models/installed");return a(E=>({...E,installed:A.data.models,activeModel:A.data.activeModel,orchestratorModel:A.data.orchestratorModel||"",ollamaRunning:A.data.ollamaRunning,catalog:E.catalog.map(M=>M.tag===j?{...M,installed:!1}:M)})),!0}catch{return ge("error","Couldn't delete model"),!1}},[]),v=i.useCallback(async()=>{a(j=>({...j,downloading:{tag:"",percent:0,message:"Starting Ollama..."}}));try{const j=await fetch("/api/onboarding/ensure-ollama",{method:"POST"});if(!j.ok||!j.body)throw new Error("Couldn't start Ollama");await Du(j,A=>{if(a(E=>E.downloading?{...E,downloading:{...E.downloading,message:A.message}}:E),A.error)throw new Error(A.error)}),a(A=>({...A,downloading:null,ollamaRunning:!0})),ge("success","Ollama is running"),await s()}catch(j){a(A=>({...A,downloading:null})),ge("error",j instanceof Error?j.message:"Couldn't start Ollama")}},[s]),b=i.useCallback(async()=>{try{const[j,A]=await Promise.all([he("/api/settings/openrouter_api_key"),he("/api/settings/openrouter_model")]);a(E=>{var M,_,H;return{...E,openRouterKey:((M=j.data)==null?void 0:M.value)||"",openRouterModel:((_=A.data)==null?void 0:_.value)||"",openRouterConnected:!!((H=j.data)!=null&&H.value)}})}catch{}},[]),w=i.useCallback(async j=>{try{await he("/api/settings/openrouter_api_key",{method:"PUT",body:JSON.stringify({value:j})}),a(A=>({...A,openRouterKey:j?"****"+j.slice(-4):"",openRouterConnected:!!j})),ge("success",j?"OpenRouter API key saved":"OpenRouter API key removed")}catch{ge("error","Couldn't save OpenRouter API key")}},[]),N=i.useCallback(async j=>{try{await he("/api/settings/openrouter_model",{method:"PUT",body:JSON.stringify({value:j})}),a(A=>({...A,openRouterModel:j})),ge("success","OpenRouter model updated")}catch{ge("error","Couldn't update OpenRouter model")}},[]);return{...e,fetchInstalled:s,fetchCatalog:c,setActiveModel:u,setOrchestratorModel:f,unloadModel:h,installModel:m,cancelDownload:p,deleteModel:g,startOllama:v,fetchOpenRouter:b,saveOpenRouterKey:w,setOpenRouterModel:N}}function qO(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function Dx({label:e,color:a}){return o.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 zO({models:e,downloading:a,onSetActive:r,onSetOrchestrator:s,onUnload:c,onDelete:u,onCancelDownload:f}){return e.length===0&&!a?o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg p-6 text-center",children:[o.jsx("p",{className:"text-sm text-neutral-400 mb-1",children:"No models installed yet"}),o.jsx("p",{className:"text-xs text-neutral-400/70",children:"Browse the catalog below to install your first model"})]}):o.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)&&o.jsxs("div",{className:"px-4 py-3",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-sm font-medium",children:a.tag}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mn,{size:14,className:"animate-spin text-white"}),o.jsxs("span",{className:"text-xs text-neutral-400",children:[a.percent,"%"]}),o.jsx("button",{onClick:f,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]})]}),o.jsxs("div",{className:"mt-2",children:[o.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:o.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${a.percent}%`}})}),o.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:a.message})]})]}),e.map(h=>{const m=(a==null?void 0:a.tag)===h.tag,p=h.totalRequests>0?qO(Math.round(h.totalDurationMs/h.totalRequests)):null;return o.jsxs("div",{className:`px-4 py-3 ${h.isActive?"border-l-2 border-l-white bg-white/5":""}`,children:[o.jsxs("div",{className:"flex items-start justify-between gap-3",children:[o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[o.jsx("span",{className:"text-sm font-medium truncate",children:h.label}),h.family&&o.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&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-white rounded font-medium",children:"Active"}),h.isOrchestrator&&o.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"&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded",children:"Loaded"})]}),o.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[h.vision&&o.jsx(Dx,{label:"Vision",color:"bg-purple-500/20 text-purple-400"}),h.toolCalling&&o.jsx(Dx,{label:"Tools",color:"bg-white/10 text-neutral-300"}),h.sizeGB&&o.jsxs("span",{className:"text-[10px] text-neutral-400",children:[h.sizeGB," GB"]}),h.tag!==h.label&&o.jsx("span",{className:"text-[10px] text-neutral-600 font-mono",children:h.tag})]})]}),o.jsxs("div",{className:"hidden sm:flex items-center gap-4 text-[11px] text-neutral-400 shrink-0",children:[h.totalRequests>0&&o.jsxs("span",{children:[h.totalRequests.toLocaleString()," ",h.totalRequests===1?"request":"requests"]}),p&&o.jsxs("span",{children:["avg ",p]})]}),o.jsx("div",{className:"flex items-center gap-1.5 shrink-0",children:m?o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mn,{size:14,className:"animate-spin text-white"}),o.jsxs("span",{className:"text-xs text-neutral-400",children:[a.percent,"%"]}),o.jsx("button",{onClick:f,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):o.jsxs(o.Fragment,{children:[!h.isActive&&o.jsx("button",{onClick:()=>r(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:o.jsx(oD,{size:14})}),o.jsx("button",{onClick:()=>s(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:o.jsx(Lk,{size:14})}),h.status==="loaded"&&!h.isActive&&!h.isOrchestrator&&o.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:o.jsx(Uk,{size:14})}),o.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:o.jsx(Ua,{size:14})})]})})]}),m&&o.jsxs("div",{className:"mt-2",children:[o.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:o.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${a.percent}%`}})}),o.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:a.message})]})]},h.tag)})]})}const FO=[{value:"all",label:"All"},{value:"fits",label:"Fits your device"},{value:"vision",label:"Vision"},{value:"tools",label:"Tool calling"}];function BO(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 UO({catalog:e,device:a,memoryTier:r,loading:s,loaded:c,downloading:u,onInstall:f,onCancelDownload:h,onFetchCatalog:m}){const[p,g]=i.useState(!1),[v,b]=i.useState("all"),w=()=>{!p&&!c&&m(),g(E=>!E)},N=e.filter(E=>v==="fits"?E.fits:v==="vision"?E.vision:v==="tools"?E.toolCalling:!0),A=["tiny","small","medium","large","xlarge"].map(E=>({tier:E,models:N.filter(M=>M.tier===E)})).filter(E=>E.models.length>0);return o.jsxs("div",{children:[o.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?o.jsx(Ok,{size:14}):o.jsx(Os,{size:14})]}),p&&o.jsxs(o.Fragment,{children:[a&&o.jsxs("div",{className:"bg-white/5 rounded-lg p-3 mb-4 text-xs text-neutral-400",children:[o.jsx("span",{children:a.cpuModel}),o.jsx("span",{className:"mx-1.5",children:"·"}),o.jsxs("span",{children:[a.totalMemoryGB," GB RAM"]}),o.jsx("span",{className:"mx-1.5",children:"·"}),o.jsxs("span",{children:[r," tier"]})]}),o.jsx("div",{className:"flex gap-1.5 mb-4 flex-wrap",children:FO.map(E=>o.jsx("button",{onClick:()=>b(E.value),className:`px-2.5 py-1 text-[11px] rounded-full border transition-colors ${v===E.value?"border-white/20 bg-white/10 text-white":"border-white/[0.08] text-neutral-400 hover:border-white/20"}`,children:E.label},E.value))}),s?o.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[o.jsx(mn,{size:16,className:"animate-spin"})," Loading catalog..."]}):o.jsxs("div",{className:"space-y-4",children:[A.map(E=>o.jsxs("div",{children:[o.jsx("h4",{className:"text-[11px] font-medium text-neutral-400/70 uppercase tracking-wider mb-2",children:BO(E.tier)}),o.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:E.models.map(M=>{const _=(u==null?void 0:u.tag)===M.tag,H=!u&&!M.installed;return o.jsxs("div",{className:`px-4 py-3 ${M.fits?"":"opacity-50"}`,children:[o.jsxs("div",{className:"flex items-start justify-between gap-3",children:[o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[o.jsx("span",{className:"text-sm font-medium",children:M.label}),o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/[0.06] rounded text-neutral-400 font-mono",children:M.family}),M.recommended&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-success/20 text-success rounded font-medium",children:"Recommended"})]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:M.description}),o.jsxs("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[M.vision&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/20 text-purple-400 rounded",children:"Vision"}),M.toolCalling&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-white/10 text-neutral-300 rounded",children:"Tools"}),o.jsxs("span",{className:"text-[10px] text-neutral-400",children:[M.sizeGB," GB"]}),!M.fits&&o.jsxs("span",{className:"text-[10px] text-warning",children:["Needs ",M.minRAM," GB RAM"]})]})]}),o.jsx("div",{className:"shrink-0",children:M.installed?o.jsx("span",{className:"text-[11px] text-success px-2 py-1",children:"Installed"}):_?o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(mn,{size:14,className:"animate-spin text-white"}),o.jsxs("span",{className:"text-xs text-neutral-400",children:[u.percent,"%"]}),o.jsx("button",{onClick:h,className:"text-[11px] text-neutral-400 hover:text-critical transition-colors",children:"Cancel"})]}):o.jsxs("button",{onClick:()=>f(M.tag),disabled:!H||!M.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:[o.jsx(Bk,{size:12})," Install"]})})]}),_&&o.jsxs("div",{className:"mt-2",children:[o.jsx("div",{className:"w-full bg-white/[0.06] rounded-full h-1.5",children:o.jsx("div",{className:"bg-white h-1.5 rounded-full transition-all duration-300",style:{width:`${u.percent}%`}})}),o.jsx("p",{className:"text-[10px] text-neutral-400 mt-1",children:u.message})]})]},M.tag)})})]},E.tier)),N.length===0&&o.jsx("p",{className:"text-sm text-neutral-400 text-center py-4",children:"No models match this filter"})]})]})]})}function IO({open:e,modelTag:a,modelLabel:r,isActive:s,isOrchestrator:c,loading:u,onConfirm:f,onClose:h}){return o.jsxs(er,{open:e,onClose:h,title:"Delete model",children:[o.jsxs("p",{className:"text-sm mb-3",children:["Remove ",o.jsx("strong",{children:r})," ",o.jsxs("span",{className:"text-neutral-400 font-mono text-xs",children:["(",a,")"]})," from your machine?"]}),s&&o.jsx("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3",children:o.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&&o.jsx("div",{className:"bg-purple-500/10 border border-purple-500/30 rounded-lg p-3 mb-3",children:o.jsx("p",{className:"text-xs text-purple-400",children:"This is your orchestrator model. Deleting it will reset the orchestrator to auto mode."})}),o.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."}),o.jsxs("div",{className:"flex gap-2 justify-end",children:[o.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"}),o.jsxs("button",{onClick:f,disabled:u,className:"px-3 py-1.5 text-xs font-medium bg-critical/10 border border-critical/30 text-critical rounded-lg hover:bg-critical/20 transition-colors disabled:opacity-50 flex items-center gap-1.5",children:[u&&o.jsx(mn,{size:12,className:"animate-spin"}),u?"Deleting...":"Delete"]})]})]})}function PO(){const{data:e,refetch:a}=Ve("/api/settings/anthropic_api_key"),[r,s]=i.useState(!1),[c,u]=i.useState(""),[f,h]=i.useState(!1),[m,p]=i.useState(null),[g,v]=i.useState(!1),[b,w]=i.useState(!1),[N,j]=i.useState(""),[A,E]=i.useState(!1),{installed:M,catalog:_,device:H,memoryTier:C,ollamaRunning:Z,loading:T,catalogLoading:L,catalogLoaded:R,downloading:k,openRouterKey:B,openRouterModel:G,openRouterConnected:Q,fetchInstalled:ee,fetchCatalog:oe,setActiveModel:D,setOrchestratorModel:$,unloadModel:ne,installModel:ue,cancelDownload:de,deleteModel:q,startOllama:W,fetchOpenRouter:re,saveOpenRouterKey:F,setOpenRouterModel:z}=OO();i.useEffect(()=>{ee(),re()},[ee,re]);const I=(ve,Ae=8)=>ve?ve.slice(0,Ae)+"•".repeat(Math.max(0,Math.min(ve.length-Ae,20))):"Not set",ie=async()=>{if(c.trim()){h(!0);try{await he("/api/settings/anthropic_api_key",{method:"PUT",body:JSON.stringify({value:c.trim()})}),ge("success","API key updated"),s(!1),u(""),a()}catch{ge("error","Couldn't save API key")}finally{h(!1)}}},fe=async()=>{E(!0);try{await F(N.trim()),w(!1),j("")}catch{ge("error","Couldn't save OpenRouter key")}finally{E(!1)}},be=ve=>{const Ae=M.find(Je=>Je.tag===ve);p({tag:ve,label:(Ae==null?void 0:Ae.label)||ve,isActive:(Ae==null?void 0:Ae.isActive)||!1,isOrchestrator:(Ae==null?void 0:Ae.isOrchestrator)||!1})},le=i.useCallback(async()=>{if(!m||g)return;v(!0);const ve=await q(m.tag);v(!1),ve&&p(null)},[m,g,q]);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Anthropic API"}),o.jsx("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:r?o.jsxs("div",{className:"px-4 py-3",children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{type:"password",value:c,onChange:ve=>u(ve.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}),o.jsx("button",{onClick:ie,disabled:f||!c.trim(),className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:o.jsx(ri,{size:16})}),o.jsx("button",{onClick:()=>{s(!1),u("")},className:"text-neutral-400 hover:text-white transition-colors",children:o.jsx(Fa,{size:16})})]})]}):o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),o.jsx("span",{className:"text-sm font-medium ml-3",children:I(e==null?void 0:e.value,12)})]}),o.jsx("button",{onClick:()=>s(!0),className:"text-neutral-400 hover:text-white transition-colors",children:o.jsx(Dh,{size:14})})]})})]}),o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:o.jsxs("span",{className:"flex items-center gap-1.5",children:["OpenRouter",Q&&o.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-success"})]})}),o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[b?o.jsxs("div",{className:"px-4 py-3",children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"API Key"}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{type:"password",value:N,onChange:ve=>j(ve.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}),o.jsx("button",{onClick:fe,disabled:A,className:"text-success hover:text-success/80 transition-colors disabled:opacity-50",children:o.jsx(ri,{size:16})}),o.jsx("button",{onClick:()=>{w(!1),j("")},className:"text-neutral-400 hover:text-white transition-colors",children:o.jsx(Fa,{size:16})})]}),o.jsx("p",{className:"text-[10px] text-neutral-500 mt-1.5",children:"Free frontier models. Leave empty to remove."})]}):o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-sm text-neutral-400",children:"API Key"}),o.jsx("span",{className:"text-sm font-medium ml-3",children:I(B,8)})]}),o.jsx("button",{onClick:()=>w(!0),className:"text-neutral-400 hover:text-white transition-colors",children:o.jsx(Dh,{size:14})})]}),Q&&o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Na,{size:14,className:"text-amber-400"}),o.jsx("span",{className:"text-sm text-neutral-400",children:"Model"})]}),o.jsxs("select",{value:G||"openrouter/optimus-alpha",onChange:ve=>z(ve.target.value),className:"bg-white/[0.06] border border-white/[0.08] rounded px-2 py-1 text-sm text-white focus:outline-none focus:border-white/20 cursor-pointer",children:[o.jsx("option",{value:"openrouter/optimus-alpha",children:"Hunter Alpha (reasoning, 1M ctx)"}),o.jsx("option",{value:"openrouter/optimus-alpha",children:"Healer Alpha (multimodal, 262K ctx)"})]})]})]})]}),o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Local Models (Ollama)"}),!T&&!Z&&o.jsxs("div",{className:"bg-warning/10 border border-warning/30 rounded-lg p-3 mb-3 flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(C6,{size:16,className:"text-warning shrink-0"}),o.jsx("p",{className:"text-xs text-warning",children:"Ollama is not running"})]}),o.jsx("button",{onClick:W,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"})]}),T?o.jsxs("div",{className:"flex items-center justify-center py-8 gap-2 text-sm text-neutral-400",children:[o.jsx(mn,{size:16,className:"animate-spin"})," Loading models..."]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mb-4",children:[o.jsx("div",{className:"flex items-center justify-between mb-2",children:o.jsxs("h3",{className:"text-xs text-neutral-400",children:["Installed Models",M.length>0&&o.jsxs("span",{className:"ml-1.5 text-neutral-600",children:["(",M.length,")"]})]})}),o.jsx(zO,{models:M,downloading:k,onSetActive:D,onSetOrchestrator:$,onUnload:ne,onDelete:be,onCancelDownload:de})]}),o.jsx(UO,{catalog:_,device:H,memoryTier:C,loading:L,loaded:R,downloading:k,onInstall:ue,onCancelDownload:de,onFetchCatalog:oe})]})]}),o.jsx(IO,{open:!!m,modelTag:(m==null?void 0:m.tag)||"",modelLabel:(m==null?void 0:m.label)||"",isActive:(m==null?void 0:m.isActive)||!1,isOrchestrator:(m==null?void 0:m.isOrchestrator)||!1,loading:g,onConfirm:le,onClose:()=>{g||p(null)}})]})}function $O(){const[e,a]=i.useState(null),[r,s]=i.useState([]),[c,u]=i.useState(""),[f,h]=i.useState(!1),[m,p]=i.useState(!1),g=i.useCallback(async()=>{var N;try{const j=await he("/api/voice/providers");if(a(j.data),j.data.voiceboxAvailable){const[A,E]=await Promise.all([he("/api/voice/profiles"),he("/api/settings/orchestrator_voice_profile_id")]);s(A.data||[]),u(((N=E.data)==null?void 0:N.value)||"")}}catch{a(null)}},[]),v=i.useRef(!1);i.useEffect(()=>{e!=null&&e.voiceboxAvailable&&(v.current=!0)},[e==null?void 0:e.voiceboxAvailable]),i.useEffect(()=>{let N=!1,j;return(async()=>{await g(),!N&&!v.current&&(j=setInterval(async()=>{if(N||v.current){j&&clearInterval(j);return}await g()},1e4))})(),()=>{N=!0,j&&clearInterval(j)}},[g]);const b=i.useCallback(async()=>{p(!0);try{await he("/api/voice/enable",{method:"POST"}),await g()}catch{}finally{p(!1)}},[g]),w=i.useCallback(async N=>{h(!0),u(N);try{await he("/api/settings/orchestrator_voice_profile_id",{method:"PUT",body:JSON.stringify({value:N})})}catch{u("")}finally{h(!1)}},[]);return o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Voice"}),o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[e&&o.jsx("div",{className:"px-4 py-3",children:o.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[o.jsx("span",{className:`w-2 h-2 rounded-full ${e.voiceboxAvailable?"bg-success":"bg-white/10"}`}),o.jsx("span",{className:e.voiceboxAvailable?"":"text-neutral-400",children:e.voiceboxAvailable?"Voicebox is running":"Voicebox is not running"})]})}),e&&!e.voiceboxAvailable&&o.jsxs("div",{className:"px-4 py-3",children:[o.jsx("button",{onClick:b,disabled:m,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:m?o.jsxs(o.Fragment,{children:[o.jsx(mn,{size:14,className:"animate-spin"})," Starting Voicebox..."]}):"Enable Voicebox"}),o.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)&&o.jsx("div",{className:"px-4 py-3",children:o.jsxs("label",{className:"flex items-center justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium",children:"Orchestrator voice"}),o.jsx("p",{className:"text-xs text-neutral-400",children:"Voice used when chatting from the main conversation"})]}),o.jsxs("select",{value:c,onChange:N=>w(N.target.value),disabled:f,className:"bg-black border border-white/[0.08] rounded-md px-3 py-1.5 text-sm min-w-[180px]",children:[o.jsx("option",{value:"",children:"Default voice"}),r.map(N=>o.jsx("option",{value:N.id,children:N.name},N.id))]})]})})]})]})}const GO=["Cloud sync across devices","Cloud task dispatch","OAuth integrations (Gmail, Slack)","Webhook relay","Cloud dashboard at ohwow.fun","Team management"];function YO(){const{tier:e,loading:a}=T6(),r=Xn(),[s,c]=i.useState("general"),u=e!=="free",{data:f}=Ve("/health"),{data:h}=Ve("/api/settings/license_key"),{data:m}=Ve("/api/settings/cloud_url"),p=()=>{Ow(),r("/login",{replace:!0})},g=(v,b=8)=>v?v.slice(0,b)+"•".repeat(Math.max(0,Math.min(v.length-b,20))):"Not set";return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Settings",subtitle:"Runtime configuration"}),!a&&o.jsx("div",{className:"mb-6",children:o.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"})}),f&&o.jsxs("div",{className:"mb-2 text-xs text-neutral-400",children:[o.jsx("span",{className:f.status==="healthy"?"text-success":"text-warning",children:"●"})," ","Connected · Running on v",f.version," · Up ",iS(f.uptime)]}),o.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(v=>o.jsx("button",{onClick:()=>c(v.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${s===v.key?"border-white text-white":"border-transparent text-neutral-400 hover:text-white"}`,children:v.label},v.key))}),s==="general"&&o.jsxs(o.Fragment,{children:[u&&!a&&o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Connection"}),o.jsxs("div",{className:"bg-white/5 border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:[o.jsx(da,{label:"Cloud URL",value:(m==null?void 0:m.value)||"Not configured"}),o.jsx(da,{label:"Status",value:"Connected",valueColor:"text-success"}),o.jsx(da,{label:"License key",value:g(h==null?void 0:h.value)})]})]}),o.jsx(kO,{}),o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Quick links"}),o.jsxs("div",{className:"flex gap-2 flex-wrap",children:[o.jsx(Nr,{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"}),o.jsx(Nr,{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"}),o.jsx(Nr,{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&&o.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:[o.jsx("h3",{className:"text-sm font-semibold text-white mb-2",children:"Connect to ohwow.fun cloud"}),o.jsx("p",{className:"text-xs text-neutral-400 mb-4",children:"Add cloud features to your local runtime:"}),o.jsx("ul",{className:"space-y-1.5 mb-4",children:GO.map(v=>o.jsxs("li",{className:"flex items-center gap-2 text-xs text-neutral-400",children:[o.jsx("span",{className:"text-white",children:"+"}),v]},v))}),o.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"})]}),o.jsx("div",{className:"mb-6",children:o.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"})})]}),s==="integrations"&&o.jsx(DO,{}),s==="models"&&o.jsx(PO,{}),s==="integrations"&&o.jsx($O,{})]})}const KO=["all","lead","client","partner","vendor"];function XO(){const e=Ia(["contact:upserted","contact:removed"]),[a,r]=i.useState("all"),[s,c]=i.useState(""),[u,f]=i.useState(!1),{data:h,loading:m,refetch:p}=Ve("/api/contacts",[e]),g=i.useMemo(()=>{if(!h)return[];let v=h;if(a!=="all"&&(v=v.filter(b=>b.contact_type===a)),s.trim()){const b=s.toLowerCase();v=v.filter(w=>w.name.toLowerCase().includes(b)||(w.email||"").toLowerCase().includes(b)||(w.company||"").toLowerCase().includes(b))}return v},[h,a,s]);return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Contacts",subtitle:"People and companies your agents interact with",action:o.jsxs("button",{onClick:()=>f(!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:[o.jsx(Bt,{size:14})," New contact"]})}),u&&o.jsx(QO,{onClose:()=>f(!1),onSuccess:p}),o.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:KO.map(v=>o.jsx("button",{onClick:()=>r(v),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===v?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:v},v))}),o.jsxs("div",{className:"relative mb-4",children:[o.jsx(Wn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),o.jsx("input",{value:s,onChange:v=>c(v.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"})]}),m?o.jsx(Ut,{count:5}):g.length?o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:g.map(v=>o.jsxs(Mt,{to:`/contacts/${v.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[o.jsxs("div",{className:"min-w-0 mr-3",children:[o.jsx("p",{className:"text-sm font-medium truncate",children:v.name}),o.jsxs("p",{className:"text-xs text-neutral-400",children:[v.email&&o.jsx("span",{children:v.email}),v.email&&v.company&&" · ",v.company&&o.jsx("span",{className:"text-white",children:v.company})]})]}),o.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[o.jsx("span",{className:"text-xs text-neutral-400 capitalize",children:v.contact_type}),o.jsx(Ht,{status:v.status})]})]},v.id))}):o.jsx(It,{icon:o.jsx(_E,{size:32}),title:"No contacts yet",description:s?`No contacts matching "${s}".`:"Add your first contact to get started."})]})}function QO({onClose:e,onSuccess:a}){const[r,s]=i.useState(""),[c,u]=i.useState(""),[f,h]=i.useState(""),[m,p]=i.useState("lead"),[g,v]=i.useState(!1),b=async w=>{if(w.preventDefault(),!!r.trim()){v(!0);try{await he("/api/contacts",{method:"POST",body:JSON.stringify({name:r.trim(),email:c.trim()||void 0,company:f.trim()||void 0,contact_type:m})}),a(),e()}catch{}finally{v(!1)}}};return o.jsxs("form",{onSubmit:b,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),o.jsx("input",{value:r,onChange:w=>s(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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),o.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"})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),o.jsx("input",{value:f,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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Type"}),o.jsxs("select",{value:m,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:[o.jsx("option",{value:"lead",children:"Lead"}),o.jsx("option",{value:"client",children:"Client"}),o.jsx("option",{value:"partner",children:"Partner"}),o.jsx("option",{value:"vendor",children:"Vendor"})]})]})]}),o.jsxs("div",{className:"flex gap-2 justify-end",children:[o.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{type:"submit",disabled:g||!r.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 JO(){const{id:e}=oi(),a=Xn(),r=Ia(["contact:upserted"]),{data:s,loading:c,refetch:u}=Ve(e?`/api/contacts/${e}`:null,[r]),{data:f}=Ve(e?`/api/contacts/${e}/timeline`:null,[r]),[h,m]=i.useState(!1),[p,g]=i.useState(""),[v,b]=i.useState(""),[w,N]=i.useState(""),[j,A]=i.useState(""),[E,M]=i.useState(""),[_,H]=i.useState(!1),[C,Z]=i.useState(!1),T=i.useCallback(()=>{s&&(g(s.name),b(s.email||""),N(s.phone||""),A(s.company||""),M(s.notes||""),m(!0))},[s]),L=i.useCallback(async()=>{if(!(!e||!p.trim())){H(!0);try{await he(`/api/contacts/${e}`,{method:"PUT",body:JSON.stringify({name:p.trim(),email:v.trim()||null,phone:w.trim()||null,company:j.trim()||null,notes:E.trim()||null})}),m(!1),u()}catch{}finally{H(!1)}}},[e,p,v,w,j,E,u]),R=i.useCallback(async()=>{if(!(!e||!confirm("Delete this contact? This cannot be undone."))){Z(!0);try{await he(`/api/contacts/${e}`,{method:"DELETE"}),a("/contacts")}catch{Z(!1)}}},[e,a]);return c?o.jsx("div",{className:"p-6",children:o.jsx(Ut,{count:4})}):s?o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsxs(Mt,{to:"/contacts",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[o.jsx(mi,{size:14})," Back to contacts"]}),o.jsx(ut,{title:s.name,subtitle:`${s.contact_type} · Added ${new Date(s.created_at).toLocaleDateString()}`,action:o.jsxs("div",{className:"flex items-center gap-2",children:[!h&&o.jsx("button",{onClick:T,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"}),o.jsxs("button",{onClick:R,disabled:C,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:[o.jsx(Ua,{size:14})," ",C?"Deleting...":"Delete"]}),o.jsx(Ht,{status:s.status})]})}),h?o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-4 mb-6 space-y-3",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),o.jsx("input",{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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Email"}),o.jsx("input",{value:v,onChange:k=>b(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"})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Phone"}),o.jsx("input",{value:w,onChange:k=>N(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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Company"}),o.jsx("input",{value:j,onChange:k=>A(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"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Notes"}),o.jsx("textarea",{value:E,onChange:k=>M(k.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"})]}),o.jsxs("div",{className:"flex gap-2 justify-end",children:[o.jsx("button",{onClick:()=>m(!1),className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{onClick:L,disabled:_||!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:_?"Saving...":"Save"})]})]}):o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08] mb-6",children:[{label:"Email",value:s.email},{label:"Phone",value:s.phone},{label:"Company",value:s.company},{label:"Notes",value:s.notes}].map(k=>k.value?o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsx("span",{className:"text-sm text-neutral-400",children:k.label}),o.jsx("span",{className:"text-sm font-medium",children:k.value})]},k.label):null)}),o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Timeline"}),f!=null&&f.length?o.jsx("div",{className:"space-y-2",children:f.map(k=>o.jsxs("div",{className:"border border-white/[0.08] rounded-lg px-4 py-3",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"text-xs text-white font-medium",children:k.event_type.replace(/_/g," ")}),o.jsx("span",{className:"text-xs text-neutral-400",children:new Date(k.created_at).toLocaleString()})]}),k.description&&o.jsx("p",{className:"text-sm",children:k.description})]},k.id))}):o.jsx(It,{icon:o.jsx(_E,{size:32}),title:"No activity yet",description:"Events will appear here as agents interact with this contact."})]}):o.jsx("div",{className:"p-6 text-neutral-400",children:"Contact not found"})}const WO=["all","active","completed","archived"],Ox={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 eq(){const e=Ia(["project:created","project:updated"]),[a,r]=i.useState("all"),[s,c]=i.useState(""),[u,f]=i.useState(!1),{data:h,loading:m,refetch:p}=Ve("/api/projects",[e]),g=i.useMemo(()=>{if(!h)return[];let v=h;if(a!=="all"&&(v=v.filter(b=>b.status===a)),s.trim()){const b=s.toLowerCase();v=v.filter(w=>w.name.toLowerCase().includes(b)||(w.description||"").toLowerCase().includes(b))}return v},[h,a,s]);return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Projects",subtitle:"Organize work into projects",action:o.jsxs("button",{onClick:()=>f(!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:[o.jsx(Bt,{size:14})," New project"]})}),u&&o.jsx(tq,{onClose:()=>f(!1),onSuccess:p}),o.jsx("div",{className:"flex gap-1 mb-4 overflow-x-auto",children:WO.map(v=>o.jsx("button",{onClick:()=>r(v),className:`px-3 py-1 rounded text-xs capitalize transition-colors ${a===v?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:v},v))}),o.jsxs("div",{className:"relative mb-4",children:[o.jsx(Wn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),o.jsx("input",{value:s,onChange:v=>c(v.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"})]}),m?o.jsx(Ut,{count:4}):g.length?o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:g.map(v=>o.jsxs(Mt,{to:`/projects/${v.id}`,className:`border rounded-lg p-4 hover:bg-white/[0.02] transition-colors ${v.color&&Ox[v.color]?Ox[v.color]:"border-white/[0.08]"}`,children:[o.jsxs("div",{className:"flex items-start justify-between mb-2",children:[o.jsx("h3",{className:"text-sm font-medium truncate",children:v.name}),o.jsx(Ht,{status:v.status})]}),v.description&&o.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2",children:v.description}),o.jsx("p",{className:"text-xs text-neutral-400 mt-2",children:new Date(v.created_at).toLocaleDateString()})]},v.id))}):o.jsx(It,{icon:o.jsx(N6,{size:32}),title:"No projects yet",description:s?`No projects matching "${s}".`:"Create your first project to organize work."})]})}function tq({onClose:e,onSuccess:a}){const[r,s]=i.useState(""),[c,u]=i.useState(""),[f,h]=i.useState(""),[m,p]=i.useState(!1),g=async v=>{if(v.preventDefault(),!!r.trim()){p(!0);try{await he("/api/projects",{method:"POST",body:JSON.stringify({name:r.trim(),description:c.trim()||void 0,color:f||void 0})}),a(),e()}catch{}finally{p(!1)}}};return o.jsxs("form",{onSubmit:g,className:"border border-white/[0.08] rounded-lg p-4 mb-4 space-y-3",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),o.jsx("input",{value:r,onChange:v=>s(v.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Color"}),o.jsxs("select",{value:f,onChange:v=>h(v.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:[o.jsx("option",{value:"",children:"None"}),o.jsx("option",{value:"blue",children:"Blue"}),o.jsx("option",{value:"green",children:"Green"}),o.jsx("option",{value:"red",children:"Red"}),o.jsx("option",{value:"yellow",children:"Yellow"}),o.jsx("option",{value:"purple",children:"Purple"})]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description (optional)"}),o.jsx("textarea",{value:c,onChange:v=>u(v.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"})]}),o.jsxs("div",{className:"flex gap-2 justify-end",children:[o.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{type:"submit",disabled:m||!r.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:m?"Creating...":"Create project"})]})]})}function aq(){const{id:e}=oi(),a=Ia(["task:started","task:completed","task:failed"]),{data:r,loading:s}=Ve(e?`/api/projects/${e}`:null),{data:c}=Ve(e?`/api/projects/${e}/tasks`:null,[a]);return s?o.jsx("div",{className:"p-6",children:o.jsx(Ut,{count:4})}):r?o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsxs(Mt,{to:"/projects",className:"inline-flex items-center gap-1 text-xs text-neutral-400 hover:text-white mb-4",children:[o.jsx(mi,{size:14})," Back to projects"]}),o.jsx(ut,{title:r.name,subtitle:r.description||`Created ${new Date(r.created_at).toLocaleDateString()}`,action:o.jsx(Ht,{status:r.status})}),c&&o.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-8",children:[o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:"Total tasks"}),o.jsx("p",{className:"text-lg font-bold",children:c.length})]}),o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:"Completed"}),o.jsx("p",{className:"text-lg font-bold",children:c.filter(u=>u.status==="completed").length})]}),o.jsxs("div",{className:"border border-white/[0.08] rounded-lg p-3",children:[o.jsx("p",{className:"text-xs text-neutral-400",children:"In progress"}),o.jsx("p",{className:"text-lg font-bold",children:c.filter(u=>u.status==="in_progress").length})]})]}),o.jsx("h2",{className:"text-sm font-medium text-neutral-400 uppercase tracking-wider mb-3",children:"Tasks"}),c!=null&&c.length?o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:c.map(u=>o.jsxs(Mt,{to:`/tasks/${u.id}`,className:"flex items-center justify-between px-4 py-3 hover:bg-white/[0.02] transition-colors",children:[o.jsxs("div",{className:"min-w-0 mr-3",children:[o.jsx("p",{className:"text-sm font-medium truncate",children:u.title}),o.jsx("p",{className:"text-xs text-neutral-400",children:new Date(u.created_at).toLocaleString()})]}),o.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[u.priority&&u.priority!=="normal"&&o.jsx("span",{className:"text-xs text-warning",children:u.priority}),o.jsx(Ht,{status:u.status})]})]},u.id))}):o.jsx(It,{icon:o.jsx(C1,{size:32}),title:"No tasks in this project",description:"Tasks assigned to this project will appear here."})]}):o.jsx("div",{className:"p-6 text-neutral-400",children:"Project not found"})}const nq={webhook:pi,schedule:N1,event:S6,manual:M6};function rq(e){if(!e)return"Never";const a=Date.now()-new Date(e).getTime(),r=Math.floor(a/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const s=Math.floor(r/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function sq(){const e=Xn(),[a,r]=i.useState([]),[s,c]=i.useState(!0),[u,f]=i.useState(""),[h,m]=i.useState(null),p=async()=>{try{const w=await he("/api/automations");r(w.data||[])}catch{ge("error","Couldn't load automations")}finally{c(!1)}};i.useEffect(()=>{p()},[]);const g=a.filter(w=>w.name.toLowerCase().includes(u.toLowerCase())),v=async(w,N)=>{try{await he(`/api/automations/${w}`,{method:"PATCH",body:JSON.stringify({enabled:N})}),r(j=>j.map(A=>A.id===w?{...A,enabled:N}:A))}catch{ge("error","Couldn't update automation")}},b=async()=>{if(h){try{await he(`/api/automations/${h}`,{method:"DELETE"}),r(w=>w.filter(N=>N.id!==h)),ge("success","Automation deleted")}catch{ge("error","Couldn't delete automation")}m(null)}};return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Automations",subtitle:"Build visual automation flows with triggers, conditions, and actions",action:o.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:[o.jsx(Bt,{size:14,weight:"bold"}),"New automation"]})}),a.length>0&&o.jsxs("div",{className:"relative mb-4",children:[o.jsx(Wn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),o.jsx("input",{type:"text",value:u,onChange:w=>f(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"})]}),s?o.jsx("div",{className:"space-y-2",children:[1,2,3].map(w=>o.jsx(si,{className:"h-16 rounded-lg"},w))}):a.length===0?o.jsx(It,{icon:o.jsx(Na,{size:32}),title:"No automations yet",description:"Create your first automation to connect triggers with actions",action:o.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:[o.jsx(Bt,{size:14,weight:"bold"}),"New automation"]})}):g.length===0?o.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No automations match your search"}):o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:g.map(w=>{const N=nq[w.trigger_type]||Na;return o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("button",{onClick:()=>e(`/automations/${w.id}/edit`),className:"min-w-0 mr-3 text-left flex-1",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(N,{size:14,className:"text-neutral-500 shrink-0"}),o.jsx("p",{className:"text-sm font-medium truncate",children:w.name})]}),o.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 ${rq(w.last_fired_at)}`]})]}),o.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[o.jsx(ii,{checked:w.enabled,onChange:j=>v(w.id,j)}),o.jsx("button",{onClick:()=>m(w.id),className:"text-neutral-500 hover:text-red-400 transition-colors",title:"Delete",children:o.jsx(Ua,{size:14})})]})]},w.id)})}),o.jsx(Z6,{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:()=>m(null)})]})}const Yn={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"},lS={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 Cr(e){var a;return e.action_type==="transform_data"?(((a=e.action_config)==null?void 0:a.mappings)||[]).map(c=>c.target).filter(Boolean):lS[e.action_type]||[]}function i1(e,a=""){const r={};for(const[s,c]of Object.entries(e)){const u=a?`${a}.${s}`:s;if(c!==null&&typeof c=="object"&&!Array.isArray(c)){const f=i1(c,u);Object.assign(r,f.payload)}else r[u]=c}return{fields:Object.keys(r),payload:r}}function gi(e){var u;const{sampleFields:a,samplePayload:r,previousSteps:s}=e,c=[];if(a.length>0){const f=a.map(h=>{let m;if(r&&h in r){const p=r[h];m=typeof p=="string"?p:JSON.stringify(p)}return{name:h,path:`trigger.${h}`,value:m}});c.push({label:"Trigger",prefix:"trigger",fields:f})}for(const f of s){let h=lS[f.action_type]||[];if(f.action_type==="transform_data"&&(h=(((u=f.action_config)==null?void 0:u.mappings)||[]).map(p=>p.target).filter(Boolean)),h.length>0){const m=f.label||f.action_type,p=h.map(g=>({name:g,path:`${f.id}.${g}`}));c.push({label:`Step ${f.id.replace("step_","")}: ${m}`,prefix:f.id,fields:p})}}return c}function oS(e){const a=[],r=/\{\{([^}]+)\}\}/g;let s;for(;(s=r.exec(e))!==null;)a.push(s[1].trim());return a}function lq(e,a){const r=new Set(a);return e.filter(s=>!r.has(s))}const In={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}},Da="trigger",Mr=e=>`add-after-${e}`;function oq(e,a){const r=JSON.stringify(e.action_config||{})+(e.prompt||""),s=oS(r);if(s.length===0)return[];const c={};for(const f of s){const h=f.split(".")[0];c[h]=(c[h]||0)+1}const u=[];for(const[f,h]of Object.entries(c))if(f==="trigger")u.push({label:"Trigger",count:h});else{const m=a.find(p=>p.id===f);u.push({label:(m==null?void 0:m.label)||f,count:h})}return u}function cS(e){const a=[],r=[],s=e.node_positions;a.push({id:Da,type:"trigger",position:(s==null?void 0:s[Da])||{x:0,y:0},...In.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=Da;const u=[];for(let h=0;h<e.steps.length;h++){const m=e.steps[h],p=m.id;if(m.step_type==="conditional"){const g=m.action_config||{},v=g.condition||{field:"",operator:"equals",value:""};a.push({id:p,type:"conditional",position:(s==null?void 0:s[p])||{x:0,y:0},...In.conditional,data:{stepIndex:h,stepId:m.id,stepType:m.step_type,label:m.label||"Conditional",actionConfig:g,outputFields:["branch","branch_output"],condition:v}}),r.push({id:`${c}->${p}`,source:c,target:p,type:"dataFlow"});const b=g.then_actions||[];let w=p;for(let M=0;M<b.length;M++){const _=b[M],H=`${p}-then-${M}`;a.push({id:H,type:"step",position:(s==null?void 0:s[H])||{x:0,y:0},...In.step,data:{stepIndex:-1,stepId:_.id,stepType:_.action_type,label:_.label||Yn[_.action_type]||_.action_type,actionConfig:_.action_config||{},outputFields:Cr(_),branchType:"then",parentConditionalId:p,branchIndex:M}}),r.push({id:`${w}->${H}`,source:w,sourceHandle:w===p?"then":void 0,target:H,type:"dataFlow",data:{branchType:"then"}}),w=H}const N=Mr(`${p}-then`);a.push({id:N,type:"addStep",position:(s==null?void 0:s[N])||{x:0,y:0},...In.addStep,data:{parentNodeId:w,insertIndex:b.length,branchType:"then",conditionalNodeId:p}}),r.push({id:`${w}->${N}`,source:w,sourceHandle:w===p?"then":void 0,target:N,type:"addStepEdge",data:{branchType:"then"}});const j=g.else_actions||[];let A=p;for(let M=0;M<j.length;M++){const _=j[M],H=`${p}-else-${M}`;a.push({id:H,type:"step",position:(s==null?void 0:s[H])||{x:0,y:0},...In.step,data:{stepIndex:-1,stepId:_.id,stepType:_.action_type,label:_.label||Yn[_.action_type]||_.action_type,actionConfig:_.action_config||{},outputFields:Cr(_),branchType:"else",parentConditionalId:p,branchIndex:M}}),r.push({id:`${A}->${H}`,source:A,sourceHandle:A===p?"else":void 0,target:H,type:"dataFlow",data:{branchType:"else"}}),A=H}const E=Mr(`${p}-else`);a.push({id:E,type:"addStep",position:(s==null?void 0:s[E])||{x:0,y:0},...In.addStep,data:{parentNodeId:A,insertIndex:j.length,branchType:"else",conditionalNodeId:p}}),r.push({id:`${A}->${E}`,source:A,sourceHandle:A===p?"else":void 0,target:E,type:"addStepEdge",data:{branchType:"else"}}),u.push({id:m.id,label:m.label||"Conditional"}),c=p}else{const g={id:m.id,action_type:m.step_type,action_config:m.action_config||{},label:m.label},v=m.label||Yn[m.step_type]||m.step_type,b=oq(m,u);a.push({id:p,type:"step",position:(s==null?void 0:s[p])||{x:0,y:0},...In.step,data:{stepIndex:h,stepId:m.id,stepType:m.step_type,label:v,actionConfig:m.action_config||{},outputFields:Cr(g),inputSources:b,agentId:m.agent_id,agentName:m.agent_name,prompt:m.prompt,requiredIntegrations:m.required_integrations,connectionId:m.connection_id}}),r.push({id:`${c}->${p}`,source:c,target:p,type:"dataFlow"}),u.push({id:m.id,label:v}),c=p}}const f=Mr(c);return a.push({id:f,type:"addStep",position:(s==null?void 0:s[f])||{x:0,y:0},...In.addStep,data:{parentNodeId:c,insertIndex:e.steps.length}}),r.push({id:`${c}->${f}`,source:c,target:f,type:"addStepEdge"}),{nodes:a,edges:r,hasCustomPositions:!!s&&Object.keys(s).length>0}}function cq(e,a){var f;const r=e.find(h=>h.type==="trigger");if(!r)throw new Error("No trigger node found");const s=r.data,c=uq(e,a),u={};for(const h of e)h.type!=="addStep"&&(u[h.id]={x:h.position.x,y:h.position.y});return{name:s.name,description:s.description||void 0,trigger_type:s.triggerType,trigger_config:s.triggerConfig,steps:c,variables:(f=s.variables)!=null&&f.length?s.variables:void 0,cooldown_seconds:s.cooldownSeconds,node_positions:u}}function uq(e,a){const r=[],s=a.filter(f=>!f.sourceHandle||f.sourceHandle!=="then"&&f.sourceHandle!=="else");let c=Da;const u=new Set;for(;;){u.add(c);const f=s.find(m=>m.source===c&&!u.has(m.target));if(!f)break;const h=e.find(m=>m.id===f.target);if(!h||h.type==="addStep")break;if(h.type==="conditional"){const m=h.data,p=qx(e,a,h.id,"then"),g=qx(e,a,h.id,"else");r.push({id:m.stepId,step_type:"conditional",label:m.label,action_config:{...m.actionConfig,condition:m.condition,then_actions:p,else_actions:g}})}else if(h.type==="step"){const m=h.data;r.push(dq(m))}c=h.id}return r.map((f,h)=>({...f,id:`step_${h+1}`}))}function qx(e,a,r,s){const c=[];let u=r;const f=new Set;for(;;){f.add(u);const h=a.find(p=>p.source===u&&!f.has(p.target)&&(u===r?p.sourceHandle===s:!0));if(!h)break;const m=e.find(p=>p.id===h.target);if(!m||m.type==="addStep")break;if(m.type==="step"){const p=m.data;c.push({id:p.stepId,action_type:p.stepType,action_config:p.actionConfig,label:p.label})}u=m.id}return c.map((h,m)=>({...h,id:`${s}_step_${m+1}`}))}function dq(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 fq(){return cS({name:"",description:null,trigger_type:"webhook",trigger_config:{},steps:[],variables:[],cooldown_seconds:0,sample_payload:null,sample_fields:null})}function V6(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 Ou,zx;function hq(){if(zx)return Ou;zx=1;function e(){this.__data__=[],this.size=0}return Ou=e,Ou}var qu,Fx;function qs(){if(Fx)return qu;Fx=1;function e(a,r){return a===r||a!==a&&r!==r}return qu=e,qu}var zu,Bx;function T1(){if(Bx)return zu;Bx=1;var e=qs();function a(r,s){for(var c=r.length;c--;)if(e(r[c][0],s))return c;return-1}return zu=a,zu}var Fu,Ux;function mq(){if(Ux)return Fu;Ux=1;var e=T1(),a=Array.prototype,r=a.splice;function s(c){var u=this.__data__,f=e(u,c);if(f<0)return!1;var h=u.length-1;return f==h?u.pop():r.call(u,f,1),--this.size,!0}return Fu=s,Fu}var Bu,Ix;function pq(){if(Ix)return Bu;Ix=1;var e=T1();function a(r){var s=this.__data__,c=e(s,r);return c<0?void 0:s[c][1]}return Bu=a,Bu}var Uu,Px;function gq(){if(Px)return Uu;Px=1;var e=T1();function a(r){return e(this.__data__,r)>-1}return Uu=a,Uu}var Iu,$x;function xq(){if($x)return Iu;$x=1;var e=T1();function a(r,s){var c=this.__data__,u=e(c,r);return u<0?(++this.size,c.push([r,s])):c[u][1]=s,this}return Iu=a,Iu}var Pu,Gx;function H1(){if(Gx)return Pu;Gx=1;var e=hq(),a=mq(),r=pq(),s=gq(),c=xq();function u(f){var h=-1,m=f==null?0:f.length;for(this.clear();++h<m;){var p=f[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=r,u.prototype.has=s,u.prototype.set=c,Pu=u,Pu}var $u,Yx;function vq(){if(Yx)return $u;Yx=1;var e=H1();function a(){this.__data__=new e,this.size=0}return $u=a,$u}var Gu,Kx;function yq(){if(Kx)return Gu;Kx=1;function e(a){var r=this.__data__,s=r.delete(a);return this.size=r.size,s}return Gu=e,Gu}var Yu,Xx;function bq(){if(Xx)return Yu;Xx=1;function e(a){return this.__data__.get(a)}return Yu=e,Yu}var Ku,Qx;function wq(){if(Qx)return Ku;Qx=1;function e(a){return this.__data__.has(a)}return Ku=e,Ku}var Xu,Jx;function uS(){if(Jx)return Xu;Jx=1;var e=typeof Fl=="object"&&Fl&&Fl.Object===Object&&Fl;return Xu=e,Xu}var Qu,Wx;function Ca(){if(Wx)return Qu;Wx=1;var e=uS(),a=typeof self=="object"&&self&&self.Object===Object&&self,r=e||a||Function("return this")();return Qu=r,Qu}var Ju,ev;function zs(){if(ev)return Ju;ev=1;var e=Ca(),a=e.Symbol;return Ju=a,Ju}var Wu,tv;function Aq(){if(tv)return Wu;tv=1;var e=zs(),a=Object.prototype,r=a.hasOwnProperty,s=a.toString,c=e?e.toStringTag:void 0;function u(f){var h=r.call(f,c),m=f[c];try{f[c]=void 0;var p=!0}catch{}var g=s.call(f);return p&&(h?f[c]=m:delete f[c]),g}return Wu=u,Wu}var e2,av;function Eq(){if(av)return e2;av=1;var e=Object.prototype,a=e.toString;function r(s){return a.call(s)}return e2=r,e2}var t2,nv;function Hr(){if(nv)return t2;nv=1;var e=zs(),a=Aq(),r=Eq(),s="[object Null]",c="[object Undefined]",u=e?e.toStringTag:void 0;function f(h){return h==null?h===void 0?c:s:u&&u in Object(h)?a(h):r(h)}return t2=f,t2}var a2,rv;function pa(){if(rv)return a2;rv=1;function e(a){var r=typeof a;return a!=null&&(r=="object"||r=="function")}return a2=e,a2}var n2,sv;function xi(){if(sv)return n2;sv=1;var e=Hr(),a=pa(),r="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";function f(h){if(!a(h))return!1;var m=e(h);return m==s||m==c||m==r||m==u}return n2=f,n2}var r2,iv;function jq(){if(iv)return r2;iv=1;var e=Ca(),a=e["__core-js_shared__"];return r2=a,r2}var s2,lv;function Sq(){if(lv)return s2;lv=1;var e=jq(),a=(function(){var s=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function r(s){return!!a&&a in s}return s2=r,s2}var i2,ov;function dS(){if(ov)return i2;ov=1;var e=Function.prototype,a=e.toString;function r(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}return i2=r,i2}var l2,cv;function Mq(){if(cv)return l2;cv=1;var e=xi(),a=Sq(),r=pa(),s=dS(),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,f=Function.prototype,h=Object.prototype,m=f.toString,p=h.hasOwnProperty,g=RegExp("^"+m.call(p).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(b){if(!r(b)||a(b))return!1;var w=e(b)?g:u;return w.test(s(b))}return l2=v,l2}var o2,uv;function Nq(){if(uv)return o2;uv=1;function e(a,r){return a==null?void 0:a[r]}return o2=e,o2}var c2,dv;function Zr(){if(dv)return c2;dv=1;var e=Mq(),a=Nq();function r(s,c){var u=a(s,c);return e(u)?u:void 0}return c2=r,c2}var u2,fv;function L6(){if(fv)return u2;fv=1;var e=Zr(),a=Ca(),r=e(a,"Map");return u2=r,u2}var d2,hv;function Z1(){if(hv)return d2;hv=1;var e=Zr(),a=e(Object,"create");return d2=a,d2}var f2,mv;function _q(){if(mv)return f2;mv=1;var e=Z1();function a(){this.__data__=e?e(null):{},this.size=0}return f2=a,f2}var h2,pv;function Cq(){if(pv)return h2;pv=1;function e(a){var r=this.has(a)&&delete this.__data__[a];return this.size-=r?1:0,r}return h2=e,h2}var m2,gv;function Tq(){if(gv)return m2;gv=1;var e=Z1(),a="__lodash_hash_undefined__",r=Object.prototype,s=r.hasOwnProperty;function c(u){var f=this.__data__;if(e){var h=f[u];return h===a?void 0:h}return s.call(f,u)?f[u]:void 0}return m2=c,m2}var p2,xv;function Hq(){if(xv)return p2;xv=1;var e=Z1(),a=Object.prototype,r=a.hasOwnProperty;function s(c){var u=this.__data__;return e?u[c]!==void 0:r.call(u,c)}return p2=s,p2}var g2,vv;function Zq(){if(vv)return g2;vv=1;var e=Z1(),a="__lodash_hash_undefined__";function r(s,c){var u=this.__data__;return this.size+=this.has(s)?0:1,u[s]=e&&c===void 0?a:c,this}return g2=r,g2}var x2,yv;function Vq(){if(yv)return x2;yv=1;var e=_q(),a=Cq(),r=Tq(),s=Hq(),c=Zq();function u(f){var h=-1,m=f==null?0:f.length;for(this.clear();++h<m;){var p=f[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=r,u.prototype.has=s,u.prototype.set=c,x2=u,x2}var v2,bv;function Lq(){if(bv)return v2;bv=1;var e=Vq(),a=H1(),r=L6();function s(){this.size=0,this.__data__={hash:new e,map:new(r||a),string:new e}}return v2=s,v2}var y2,wv;function Rq(){if(wv)return y2;wv=1;function e(a){var r=typeof a;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?a!=="__proto__":a===null}return y2=e,y2}var b2,Av;function V1(){if(Av)return b2;Av=1;var e=Rq();function a(r,s){var c=r.__data__;return e(s)?c[typeof s=="string"?"string":"hash"]:c.map}return b2=a,b2}var w2,Ev;function kq(){if(Ev)return w2;Ev=1;var e=V1();function a(r){var s=e(this,r).delete(r);return this.size-=s?1:0,s}return w2=a,w2}var A2,jv;function Dq(){if(jv)return A2;jv=1;var e=V1();function a(r){return e(this,r).get(r)}return A2=a,A2}var E2,Sv;function Oq(){if(Sv)return E2;Sv=1;var e=V1();function a(r){return e(this,r).has(r)}return E2=a,E2}var j2,Mv;function qq(){if(Mv)return j2;Mv=1;var e=V1();function a(r,s){var c=e(this,r),u=c.size;return c.set(r,s),this.size+=c.size==u?0:1,this}return j2=a,j2}var S2,Nv;function R6(){if(Nv)return S2;Nv=1;var e=Lq(),a=kq(),r=Dq(),s=Oq(),c=qq();function u(f){var h=-1,m=f==null?0:f.length;for(this.clear();++h<m;){var p=f[h];this.set(p[0],p[1])}}return u.prototype.clear=e,u.prototype.delete=a,u.prototype.get=r,u.prototype.has=s,u.prototype.set=c,S2=u,S2}var M2,_v;function zq(){if(_v)return M2;_v=1;var e=H1(),a=L6(),r=R6(),s=200;function c(u,f){var h=this.__data__;if(h instanceof e){var m=h.__data__;if(!a||m.length<s-1)return m.push([u,f]),this.size=++h.size,this;h=this.__data__=new r(m)}return h.set(u,f),this.size=h.size,this}return M2=c,M2}var N2,Cv;function L1(){if(Cv)return N2;Cv=1;var e=H1(),a=vq(),r=yq(),s=bq(),c=wq(),u=zq();function f(h){var m=this.__data__=new e(h);this.size=m.size}return f.prototype.clear=a,f.prototype.delete=r,f.prototype.get=s,f.prototype.has=c,f.prototype.set=u,N2=f,N2}var _2,Tv;function k6(){if(Tv)return _2;Tv=1;function e(a,r){for(var s=-1,c=a==null?0:a.length;++s<c&&r(a[s],s,a)!==!1;);return a}return _2=e,_2}var C2,Hv;function fS(){if(Hv)return C2;Hv=1;var e=Zr(),a=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return C2=a,C2}var T2,Zv;function R1(){if(Zv)return T2;Zv=1;var e=fS();function a(r,s,c){s=="__proto__"&&e?e(r,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[s]=c}return T2=a,T2}var H2,Vv;function k1(){if(Vv)return H2;Vv=1;var e=R1(),a=qs(),r=Object.prototype,s=r.hasOwnProperty;function c(u,f,h){var m=u[f];(!(s.call(u,f)&&a(m,h))||h===void 0&&!(f in u))&&e(u,f,h)}return H2=c,H2}var Z2,Lv;function vi(){if(Lv)return Z2;Lv=1;var e=k1(),a=R1();function r(s,c,u,f){var h=!u;u||(u={});for(var m=-1,p=c.length;++m<p;){var g=c[m],v=f?f(u[g],s[g],g,u,s):void 0;v===void 0&&(v=s[g]),h?a(u,g,v):e(u,g,v)}return u}return Z2=r,Z2}var V2,Rv;function Fq(){if(Rv)return V2;Rv=1;function e(a,r){for(var s=-1,c=Array(a);++s<a;)c[s]=r(s);return c}return V2=e,V2}var L2,kv;function Pa(){if(kv)return L2;kv=1;function e(a){return a!=null&&typeof a=="object"}return L2=e,L2}var R2,Dv;function Bq(){if(Dv)return R2;Dv=1;var e=Hr(),a=Pa(),r="[object Arguments]";function s(c){return a(c)&&e(c)==r}return R2=s,R2}var k2,Ov;function yi(){if(Ov)return k2;Ov=1;var e=Bq(),a=Pa(),r=Object.prototype,s=r.hasOwnProperty,c=r.propertyIsEnumerable,u=e((function(){return arguments})())?e:function(f){return a(f)&&s.call(f,"callee")&&!c.call(f,"callee")};return k2=u,k2}var D2,qv;function dt(){if(qv)return D2;qv=1;var e=Array.isArray;return D2=e,D2}var U0={exports:{}},O2,zv;function Uq(){if(zv)return O2;zv=1;function e(){return!1}return O2=e,O2}U0.exports;var Fv;function Fs(){return Fv||(Fv=1,(function(e,a){var r=Ca(),s=Uq(),c=a&&!a.nodeType&&a,u=c&&!0&&e&&!e.nodeType&&e,f=u&&u.exports===c,h=f?r.Buffer:void 0,m=h?h.isBuffer:void 0,p=m||s;e.exports=p})(U0,U0.exports)),U0.exports}var q2,Bv;function D1(){if(Bv)return q2;Bv=1;var e=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function r(s,c){var u=typeof s;return c=c??e,!!c&&(u=="number"||u!="symbol"&&a.test(s))&&s>-1&&s%1==0&&s<c}return q2=r,q2}var z2,Uv;function D6(){if(Uv)return z2;Uv=1;var e=9007199254740991;function a(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return z2=a,z2}var F2,Iv;function Iq(){if(Iv)return F2;Iv=1;var e=Hr(),a=D6(),r=Pa(),s="[object Arguments]",c="[object Array]",u="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Function]",p="[object Map]",g="[object Number]",v="[object Object]",b="[object RegExp]",w="[object Set]",N="[object String]",j="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",M="[object Float32Array]",_="[object Float64Array]",H="[object Int8Array]",C="[object Int16Array]",Z="[object Int32Array]",T="[object Uint8Array]",L="[object Uint8ClampedArray]",R="[object Uint16Array]",k="[object Uint32Array]",B={};B[M]=B[_]=B[H]=B[C]=B[Z]=B[T]=B[L]=B[R]=B[k]=!0,B[s]=B[c]=B[A]=B[u]=B[E]=B[f]=B[h]=B[m]=B[p]=B[g]=B[v]=B[b]=B[w]=B[N]=B[j]=!1;function G(Q){return r(Q)&&a(Q.length)&&!!B[e(Q)]}return F2=G,F2}var B2,Pv;function O1(){if(Pv)return B2;Pv=1;function e(a){return function(r){return a(r)}}return B2=e,B2}var I0={exports:{}};I0.exports;var $v;function O6(){return $v||($v=1,(function(e,a){var r=uS(),s=a&&!a.nodeType&&a,c=s&&!0&&e&&!e.nodeType&&e,u=c&&c.exports===s,f=u&&r.process,h=(function(){try{var m=c&&c.require&&c.require("util").types;return m||f&&f.binding&&f.binding("util")}catch{}})();e.exports=h})(I0,I0.exports)),I0.exports}var U2,Gv;function bi(){if(Gv)return U2;Gv=1;var e=Iq(),a=O1(),r=O6(),s=r&&r.isTypedArray,c=s?a(s):e;return U2=c,U2}var I2,Yv;function hS(){if(Yv)return I2;Yv=1;var e=Fq(),a=yi(),r=dt(),s=Fs(),c=D1(),u=bi(),f=Object.prototype,h=f.hasOwnProperty;function m(p,g){var v=r(p),b=!v&&a(p),w=!v&&!b&&s(p),N=!v&&!b&&!w&&u(p),j=v||b||w||N,A=j?e(p.length,String):[],E=A.length;for(var M in p)(g||h.call(p,M))&&!(j&&(M=="length"||w&&(M=="offset"||M=="parent")||N&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||c(M,E)))&&A.push(M);return A}return I2=m,I2}var P2,Kv;function q1(){if(Kv)return P2;Kv=1;var e=Object.prototype;function a(r){var s=r&&r.constructor,c=typeof s=="function"&&s.prototype||e;return r===c}return P2=a,P2}var $2,Xv;function mS(){if(Xv)return $2;Xv=1;function e(a,r){return function(s){return a(r(s))}}return $2=e,$2}var G2,Qv;function Pq(){if(Qv)return G2;Qv=1;var e=mS(),a=e(Object.keys,Object);return G2=a,G2}var Y2,Jv;function q6(){if(Jv)return Y2;Jv=1;var e=q1(),a=Pq(),r=Object.prototype,s=r.hasOwnProperty;function c(u){if(!e(u))return a(u);var f=[];for(var h in Object(u))s.call(u,h)&&h!="constructor"&&f.push(h);return f}return Y2=c,Y2}var K2,Wv;function gn(){if(Wv)return K2;Wv=1;var e=xi(),a=D6();function r(s){return s!=null&&a(s.length)&&!e(s)}return K2=r,K2}var X2,e7;function tr(){if(e7)return X2;e7=1;var e=hS(),a=q6(),r=gn();function s(c){return r(c)?e(c):a(c)}return X2=s,X2}var Q2,t7;function $q(){if(t7)return Q2;t7=1;var e=vi(),a=tr();function r(s,c){return s&&e(c,a(c),s)}return Q2=r,Q2}var J2,a7;function Gq(){if(a7)return J2;a7=1;function e(a){var r=[];if(a!=null)for(var s in Object(a))r.push(s);return r}return J2=e,J2}var W2,n7;function Yq(){if(n7)return W2;n7=1;var e=pa(),a=q1(),r=Gq(),s=Object.prototype,c=s.hasOwnProperty;function u(f){if(!e(f))return r(f);var h=a(f),m=[];for(var p in f)p=="constructor"&&(h||!c.call(f,p))||m.push(p);return m}return W2=u,W2}var ed,r7;function Vr(){if(r7)return ed;r7=1;var e=hS(),a=Yq(),r=gn();function s(c){return r(c)?e(c,!0):a(c)}return ed=s,ed}var td,s7;function Kq(){if(s7)return td;s7=1;var e=vi(),a=Vr();function r(s,c){return s&&e(c,a(c),s)}return td=r,td}var P0={exports:{}};P0.exports;var i7;function pS(){return i7||(i7=1,(function(e,a){var r=Ca(),s=a&&!a.nodeType&&a,c=s&&!0&&e&&!e.nodeType&&e,u=c&&c.exports===s,f=u?r.Buffer:void 0,h=f?f.allocUnsafe:void 0;function m(p,g){if(g)return p.slice();var v=p.length,b=h?h(v):new p.constructor(v);return p.copy(b),b}e.exports=m})(P0,P0.exports)),P0.exports}var ad,l7;function gS(){if(l7)return ad;l7=1;function e(a,r){var s=-1,c=a.length;for(r||(r=Array(c));++s<c;)r[s]=a[s];return r}return ad=e,ad}var nd,o7;function xS(){if(o7)return nd;o7=1;function e(a,r){for(var s=-1,c=a==null?0:a.length,u=0,f=[];++s<c;){var h=a[s];r(h,s,a)&&(f[u++]=h)}return f}return nd=e,nd}var rd,c7;function vS(){if(c7)return rd;c7=1;function e(){return[]}return rd=e,rd}var sd,u7;function z6(){if(u7)return sd;u7=1;var e=xS(),a=vS(),r=Object.prototype,s=r.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(f){return f==null?[]:(f=Object(f),e(c(f),function(h){return s.call(f,h)}))}:a;return sd=u,sd}var id,d7;function Xq(){if(d7)return id;d7=1;var e=vi(),a=z6();function r(s,c){return e(s,a(s),c)}return id=r,id}var ld,f7;function F6(){if(f7)return ld;f7=1;function e(a,r){for(var s=-1,c=r.length,u=a.length;++s<c;)a[u+s]=r[s];return a}return ld=e,ld}var od,h7;function z1(){if(h7)return od;h7=1;var e=mS(),a=e(Object.getPrototypeOf,Object);return od=a,od}var cd,m7;function yS(){if(m7)return cd;m7=1;var e=F6(),a=z1(),r=z6(),s=vS(),c=Object.getOwnPropertySymbols,u=c?function(f){for(var h=[];f;)e(h,r(f)),f=a(f);return h}:s;return cd=u,cd}var ud,p7;function Qq(){if(p7)return ud;p7=1;var e=vi(),a=yS();function r(s,c){return e(s,a(s),c)}return ud=r,ud}var dd,g7;function bS(){if(g7)return dd;g7=1;var e=F6(),a=dt();function r(s,c,u){var f=c(s);return a(s)?f:e(f,u(s))}return dd=r,dd}var fd,x7;function wS(){if(x7)return fd;x7=1;var e=bS(),a=z6(),r=tr();function s(c){return e(c,r,a)}return fd=s,fd}var hd,v7;function Jq(){if(v7)return hd;v7=1;var e=bS(),a=yS(),r=Vr();function s(c){return e(c,r,a)}return hd=s,hd}var md,y7;function Wq(){if(y7)return md;y7=1;var e=Zr(),a=Ca(),r=e(a,"DataView");return md=r,md}var pd,b7;function ez(){if(b7)return pd;b7=1;var e=Zr(),a=Ca(),r=e(a,"Promise");return pd=r,pd}var gd,w7;function AS(){if(w7)return gd;w7=1;var e=Zr(),a=Ca(),r=e(a,"Set");return gd=r,gd}var xd,A7;function tz(){if(A7)return xd;A7=1;var e=Zr(),a=Ca(),r=e(a,"WeakMap");return xd=r,xd}var vd,E7;function Bs(){if(E7)return vd;E7=1;var e=Wq(),a=L6(),r=ez(),s=AS(),c=tz(),u=Hr(),f=dS(),h="[object Map]",m="[object Object]",p="[object Promise]",g="[object Set]",v="[object WeakMap]",b="[object DataView]",w=f(e),N=f(a),j=f(r),A=f(s),E=f(c),M=u;return(e&&M(new e(new ArrayBuffer(1)))!=b||a&&M(new a)!=h||r&&M(r.resolve())!=p||s&&M(new s)!=g||c&&M(new c)!=v)&&(M=function(_){var H=u(_),C=H==m?_.constructor:void 0,Z=C?f(C):"";if(Z)switch(Z){case w:return b;case N:return h;case j:return p;case A:return g;case E:return v}return H}),vd=M,vd}var yd,j7;function az(){if(j7)return yd;j7=1;var e=Object.prototype,a=e.hasOwnProperty;function r(s){var c=s.length,u=new s.constructor(c);return c&&typeof s[0]=="string"&&a.call(s,"index")&&(u.index=s.index,u.input=s.input),u}return yd=r,yd}var bd,S7;function ES(){if(S7)return bd;S7=1;var e=Ca(),a=e.Uint8Array;return bd=a,bd}var wd,M7;function B6(){if(M7)return wd;M7=1;var e=ES();function a(r){var s=new r.constructor(r.byteLength);return new e(s).set(new e(r)),s}return wd=a,wd}var Ad,N7;function nz(){if(N7)return Ad;N7=1;var e=B6();function a(r,s){var c=s?e(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}return Ad=a,Ad}var Ed,_7;function rz(){if(_7)return Ed;_7=1;var e=/\w*$/;function a(r){var s=new r.constructor(r.source,e.exec(r));return s.lastIndex=r.lastIndex,s}return Ed=a,Ed}var jd,C7;function sz(){if(C7)return jd;C7=1;var e=zs(),a=e?e.prototype:void 0,r=a?a.valueOf:void 0;function s(c){return r?Object(r.call(c)):{}}return jd=s,jd}var Sd,T7;function jS(){if(T7)return Sd;T7=1;var e=B6();function a(r,s){var c=s?e(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}return Sd=a,Sd}var Md,H7;function iz(){if(H7)return Md;H7=1;var e=B6(),a=nz(),r=rz(),s=sz(),c=jS(),u="[object Boolean]",f="[object Date]",h="[object Map]",m="[object Number]",p="[object RegExp]",g="[object Set]",v="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",N="[object DataView]",j="[object Float32Array]",A="[object Float64Array]",E="[object Int8Array]",M="[object Int16Array]",_="[object Int32Array]",H="[object Uint8Array]",C="[object Uint8ClampedArray]",Z="[object Uint16Array]",T="[object Uint32Array]";function L(R,k,B){var G=R.constructor;switch(k){case w:return e(R);case u:case f:return new G(+R);case N:return a(R,B);case j:case A:case E:case M:case _:case H:case C:case Z:case T:return c(R,B);case h:return new G;case m:case v:return new G(R);case p:return r(R);case g:return new G;case b:return s(R)}}return Md=L,Md}var Nd,Z7;function SS(){if(Z7)return Nd;Z7=1;var e=pa(),a=Object.create,r=(function(){function s(){}return function(c){if(!e(c))return{};if(a)return a(c);s.prototype=c;var u=new s;return s.prototype=void 0,u}})();return Nd=r,Nd}var _d,V7;function MS(){if(V7)return _d;V7=1;var e=SS(),a=z1(),r=q1();function s(c){return typeof c.constructor=="function"&&!r(c)?e(a(c)):{}}return _d=s,_d}var Cd,L7;function lz(){if(L7)return Cd;L7=1;var e=Bs(),a=Pa(),r="[object Map]";function s(c){return a(c)&&e(c)==r}return Cd=s,Cd}var Td,R7;function oz(){if(R7)return Td;R7=1;var e=lz(),a=O1(),r=O6(),s=r&&r.isMap,c=s?a(s):e;return Td=c,Td}var Hd,k7;function cz(){if(k7)return Hd;k7=1;var e=Bs(),a=Pa(),r="[object Set]";function s(c){return a(c)&&e(c)==r}return Hd=s,Hd}var Zd,D7;function uz(){if(D7)return Zd;D7=1;var e=cz(),a=O1(),r=O6(),s=r&&r.isSet,c=s?a(s):e;return Zd=c,Zd}var Vd,O7;function NS(){if(O7)return Vd;O7=1;var e=L1(),a=k6(),r=k1(),s=$q(),c=Kq(),u=pS(),f=gS(),h=Xq(),m=Qq(),p=wS(),g=Jq(),v=Bs(),b=az(),w=iz(),N=MS(),j=dt(),A=Fs(),E=oz(),M=pa(),_=uz(),H=tr(),C=Vr(),Z=1,T=2,L=4,R="[object Arguments]",k="[object Array]",B="[object Boolean]",G="[object Date]",Q="[object Error]",ee="[object Function]",oe="[object GeneratorFunction]",D="[object Map]",$="[object Number]",ne="[object Object]",ue="[object RegExp]",de="[object Set]",q="[object String]",W="[object Symbol]",re="[object WeakMap]",F="[object ArrayBuffer]",z="[object DataView]",I="[object Float32Array]",ie="[object Float64Array]",fe="[object Int8Array]",be="[object Int16Array]",le="[object Int32Array]",ve="[object Uint8Array]",Ae="[object Uint8ClampedArray]",Je="[object Uint16Array]",Ge="[object Uint32Array]",_e={};_e[R]=_e[k]=_e[F]=_e[z]=_e[B]=_e[G]=_e[I]=_e[ie]=_e[fe]=_e[be]=_e[le]=_e[D]=_e[$]=_e[ne]=_e[ue]=_e[de]=_e[q]=_e[W]=_e[ve]=_e[Ae]=_e[Je]=_e[Ge]=!0,_e[Q]=_e[ee]=_e[re]=!1;function xa(Ze,$a,Ta,Is,vn,Ha){var jt,pt=$a&Z,Rr=$a&T,Ai=$a&L;if(Ta&&(jt=vn?Ta(Ze,Is,vn,Ha):Ta(Ze)),jt!==void 0)return jt;if(!M(Ze))return Ze;var Ps=j(Ze);if(Ps){if(jt=b(Ze),!pt)return f(Ze,jt)}else{var va=v(Ze),Ei=va==ee||va==oe;if(A(Ze))return u(Ze,pt);if(va==ne||va==R||Ei&&!vn){if(jt=Rr||Ei?{}:N(Ze),!pt)return Rr?m(Ze,c(jt,Ze)):h(Ze,s(jt,Ze))}else{if(!_e[va])return vn?Ze:{};jt=w(Ze,va,pt)}}Ha||(Ha=new e);var $s=Ha.get(Ze);if($s)return $s;Ha.set(Ze,jt),_(Ze)?Ze.forEach(function(Zt){jt.add(xa(Zt,$a,Ta,Zt,Ze,Ha))}):E(Ze)&&Ze.forEach(function(Zt,at){jt.set(at,xa(Zt,$a,Ta,at,Ze,Ha))});var G1=Ai?Rr?g:p:Rr?C:H,ji=Ps?void 0:G1(Ze);return a(ji||Ze,function(Zt,at){ji&&(at=Zt,Zt=Ze[at]),r(jt,at,xa(Zt,$a,Ta,at,Ze,Ha))}),jt}return Vd=xa,Vd}var Ld,q7;function dz(){if(q7)return Ld;q7=1;var e=NS(),a=4;function r(s){return e(s,a)}return Ld=r,Ld}var Rd,z7;function U6(){if(z7)return Rd;z7=1;function e(a){return function(){return a}}return Rd=e,Rd}var kd,F7;function fz(){if(F7)return kd;F7=1;function e(a){return function(r,s,c){for(var u=-1,f=Object(r),h=c(r),m=h.length;m--;){var p=h[a?m:++u];if(s(f[p],p,f)===!1)break}return r}}return kd=e,kd}var Dd,B7;function I6(){if(B7)return Dd;B7=1;var e=fz(),a=e();return Dd=a,Dd}var Od,U7;function P6(){if(U7)return Od;U7=1;var e=I6(),a=tr();function r(s,c){return s&&e(s,c,a)}return Od=r,Od}var qd,I7;function hz(){if(I7)return qd;I7=1;var e=gn();function a(r,s){return function(c,u){if(c==null)return c;if(!e(c))return r(c,u);for(var f=c.length,h=s?f:-1,m=Object(c);(s?h--:++h<f)&&u(m[h],h,m)!==!1;);return c}}return qd=a,qd}var zd,P7;function F1(){if(P7)return zd;P7=1;var e=P6(),a=hz(),r=a(e);return zd=r,zd}var Fd,$7;function Lr(){if($7)return Fd;$7=1;function e(a){return a}return Fd=e,Fd}var Bd,G7;function _S(){if(G7)return Bd;G7=1;var e=Lr();function a(r){return typeof r=="function"?r:e}return Bd=a,Bd}var Ud,Y7;function CS(){if(Y7)return Ud;Y7=1;var e=k6(),a=F1(),r=_S(),s=dt();function c(u,f){var h=s(u)?e:a;return h(u,r(f))}return Ud=c,Ud}var Id,K7;function TS(){return K7||(K7=1,Id=CS()),Id}var Pd,X7;function mz(){if(X7)return Pd;X7=1;var e=F1();function a(r,s){var c=[];return e(r,function(u,f,h){s(u,f,h)&&c.push(u)}),c}return Pd=a,Pd}var $d,Q7;function pz(){if(Q7)return $d;Q7=1;var e="__lodash_hash_undefined__";function a(r){return this.__data__.set(r,e),this}return $d=a,$d}var Gd,J7;function gz(){if(J7)return Gd;J7=1;function e(a){return this.__data__.has(a)}return Gd=e,Gd}var Yd,W7;function HS(){if(W7)return Yd;W7=1;var e=R6(),a=pz(),r=gz();function s(c){var u=-1,f=c==null?0:c.length;for(this.__data__=new e;++u<f;)this.add(c[u])}return s.prototype.add=s.prototype.push=a,s.prototype.has=r,Yd=s,Yd}var Kd,ey;function xz(){if(ey)return Kd;ey=1;function e(a,r){for(var s=-1,c=a==null?0:a.length;++s<c;)if(r(a[s],s,a))return!0;return!1}return Kd=e,Kd}var Xd,ty;function ZS(){if(ty)return Xd;ty=1;function e(a,r){return a.has(r)}return Xd=e,Xd}var Qd,ay;function VS(){if(ay)return Qd;ay=1;var e=HS(),a=xz(),r=ZS(),s=1,c=2;function u(f,h,m,p,g,v){var b=m&s,w=f.length,N=h.length;if(w!=N&&!(b&&N>w))return!1;var j=v.get(f),A=v.get(h);if(j&&A)return j==h&&A==f;var E=-1,M=!0,_=m&c?new e:void 0;for(v.set(f,h),v.set(h,f);++E<w;){var H=f[E],C=h[E];if(p)var Z=b?p(C,H,E,h,f,v):p(H,C,E,f,h,v);if(Z!==void 0){if(Z)continue;M=!1;break}if(_){if(!a(h,function(T,L){if(!r(_,L)&&(H===T||g(H,T,m,p,v)))return _.push(L)})){M=!1;break}}else if(!(H===C||g(H,C,m,p,v))){M=!1;break}}return v.delete(f),v.delete(h),M}return Qd=u,Qd}var Jd,ny;function vz(){if(ny)return Jd;ny=1;function e(a){var r=-1,s=Array(a.size);return a.forEach(function(c,u){s[++r]=[u,c]}),s}return Jd=e,Jd}var Wd,ry;function $6(){if(ry)return Wd;ry=1;function e(a){var r=-1,s=Array(a.size);return a.forEach(function(c){s[++r]=c}),s}return Wd=e,Wd}var e8,sy;function yz(){if(sy)return e8;sy=1;var e=zs(),a=ES(),r=qs(),s=VS(),c=vz(),u=$6(),f=1,h=2,m="[object Boolean]",p="[object Date]",g="[object Error]",v="[object Map]",b="[object Number]",w="[object RegExp]",N="[object Set]",j="[object String]",A="[object Symbol]",E="[object ArrayBuffer]",M="[object DataView]",_=e?e.prototype:void 0,H=_?_.valueOf:void 0;function C(Z,T,L,R,k,B,G){switch(L){case M:if(Z.byteLength!=T.byteLength||Z.byteOffset!=T.byteOffset)return!1;Z=Z.buffer,T=T.buffer;case E:return!(Z.byteLength!=T.byteLength||!B(new a(Z),new a(T)));case m:case p:case b:return r(+Z,+T);case g:return Z.name==T.name&&Z.message==T.message;case w:case j:return Z==T+"";case v:var Q=c;case N:var ee=R&f;if(Q||(Q=u),Z.size!=T.size&&!ee)return!1;var oe=G.get(Z);if(oe)return oe==T;R|=h,G.set(Z,T);var D=s(Q(Z),Q(T),R,k,B,G);return G.delete(Z),D;case A:if(H)return H.call(Z)==H.call(T)}return!1}return e8=C,e8}var t8,iy;function bz(){if(iy)return t8;iy=1;var e=wS(),a=1,r=Object.prototype,s=r.hasOwnProperty;function c(u,f,h,m,p,g){var v=h&a,b=e(u),w=b.length,N=e(f),j=N.length;if(w!=j&&!v)return!1;for(var A=w;A--;){var E=b[A];if(!(v?E in f:s.call(f,E)))return!1}var M=g.get(u),_=g.get(f);if(M&&_)return M==f&&_==u;var H=!0;g.set(u,f),g.set(f,u);for(var C=v;++A<w;){E=b[A];var Z=u[E],T=f[E];if(m)var L=v?m(T,Z,E,f,u,g):m(Z,T,E,u,f,g);if(!(L===void 0?Z===T||p(Z,T,h,m,g):L)){H=!1;break}C||(C=E=="constructor")}if(H&&!C){var R=u.constructor,k=f.constructor;R!=k&&"constructor"in u&&"constructor"in f&&!(typeof R=="function"&&R instanceof R&&typeof k=="function"&&k instanceof k)&&(H=!1)}return g.delete(u),g.delete(f),H}return t8=c,t8}var a8,ly;function wz(){if(ly)return a8;ly=1;var e=L1(),a=VS(),r=yz(),s=bz(),c=Bs(),u=dt(),f=Fs(),h=bi(),m=1,p="[object Arguments]",g="[object Array]",v="[object Object]",b=Object.prototype,w=b.hasOwnProperty;function N(j,A,E,M,_,H){var C=u(j),Z=u(A),T=C?g:c(j),L=Z?g:c(A);T=T==p?v:T,L=L==p?v:L;var R=T==v,k=L==v,B=T==L;if(B&&f(j)){if(!f(A))return!1;C=!0,R=!1}if(B&&!R)return H||(H=new e),C||h(j)?a(j,A,E,M,_,H):r(j,A,T,E,M,_,H);if(!(E&m)){var G=R&&w.call(j,"__wrapped__"),Q=k&&w.call(A,"__wrapped__");if(G||Q){var ee=G?j.value():j,oe=Q?A.value():A;return H||(H=new e),_(ee,oe,E,M,H)}}return B?(H||(H=new e),s(j,A,E,M,_,H)):!1}return a8=N,a8}var n8,oy;function LS(){if(oy)return n8;oy=1;var e=wz(),a=Pa();function r(s,c,u,f,h){return s===c?!0:s==null||c==null||!a(s)&&!a(c)?s!==s&&c!==c:e(s,c,u,f,r,h)}return n8=r,n8}var r8,cy;function Az(){if(cy)return r8;cy=1;var e=L1(),a=LS(),r=1,s=2;function c(u,f,h,m){var p=h.length,g=p,v=!m;if(u==null)return!g;for(u=Object(u);p--;){var b=h[p];if(v&&b[2]?b[1]!==u[b[0]]:!(b[0]in u))return!1}for(;++p<g;){b=h[p];var w=b[0],N=u[w],j=b[1];if(v&&b[2]){if(N===void 0&&!(w in u))return!1}else{var A=new e;if(m)var E=m(N,j,w,u,f,A);if(!(E===void 0?a(j,N,r|s,m,A):E))return!1}}return!0}return r8=c,r8}var s8,uy;function RS(){if(uy)return s8;uy=1;var e=pa();function a(r){return r===r&&!e(r)}return s8=a,s8}var i8,dy;function Ez(){if(dy)return i8;dy=1;var e=RS(),a=tr();function r(s){for(var c=a(s),u=c.length;u--;){var f=c[u],h=s[f];c[u]=[f,h,e(h)]}return c}return i8=r,i8}var l8,fy;function kS(){if(fy)return l8;fy=1;function e(a,r){return function(s){return s==null?!1:s[a]===r&&(r!==void 0||a in Object(s))}}return l8=e,l8}var o8,hy;function jz(){if(hy)return o8;hy=1;var e=Az(),a=Ez(),r=kS();function s(c){var u=a(c);return u.length==1&&u[0][2]?r(u[0][0],u[0][1]):function(f){return f===c||e(f,c,u)}}return o8=s,o8}var c8,my;function Us(){if(my)return c8;my=1;var e=Hr(),a=Pa(),r="[object Symbol]";function s(c){return typeof c=="symbol"||a(c)&&e(c)==r}return c8=s,c8}var u8,py;function G6(){if(py)return u8;py=1;var e=dt(),a=Us(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function c(u,f){if(e(u))return!1;var h=typeof u;return h=="number"||h=="symbol"||h=="boolean"||u==null||a(u)?!0:s.test(u)||!r.test(u)||f!=null&&u in Object(f)}return u8=c,u8}var d8,gy;function Sz(){if(gy)return d8;gy=1;var e=R6(),a="Expected a function";function r(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new TypeError(a);var u=function(){var f=arguments,h=c?c.apply(this,f):f[0],m=u.cache;if(m.has(h))return m.get(h);var p=s.apply(this,f);return u.cache=m.set(h,p)||m,p};return u.cache=new(r.Cache||e),u}return r.Cache=e,d8=r,d8}var f8,xy;function Mz(){if(xy)return f8;xy=1;var e=Sz(),a=500;function r(s){var c=e(s,function(f){return u.size===a&&u.clear(),f}),u=c.cache;return c}return f8=r,f8}var h8,vy;function Nz(){if(vy)return h8;vy=1;var e=Mz(),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,s=e(function(c){var u=[];return c.charCodeAt(0)===46&&u.push(""),c.replace(a,function(f,h,m,p){u.push(m?p.replace(r,"$1"):h||f)}),u});return h8=s,h8}var m8,yy;function B1(){if(yy)return m8;yy=1;function e(a,r){for(var s=-1,c=a==null?0:a.length,u=Array(c);++s<c;)u[s]=r(a[s],s,a);return u}return m8=e,m8}var p8,by;function _z(){if(by)return p8;by=1;var e=zs(),a=B1(),r=dt(),s=Us(),c=e?e.prototype:void 0,u=c?c.toString:void 0;function f(h){if(typeof h=="string")return h;if(r(h))return a(h,f)+"";if(s(h))return u?u.call(h):"";var m=h+"";return m=="0"&&1/h==-1/0?"-0":m}return p8=f,p8}var g8,wy;function DS(){if(wy)return g8;wy=1;var e=_z();function a(r){return r==null?"":e(r)}return g8=a,g8}var x8,Ay;function U1(){if(Ay)return x8;Ay=1;var e=dt(),a=G6(),r=Nz(),s=DS();function c(u,f){return e(u)?u:a(u,f)?[u]:r(s(u))}return x8=c,x8}var v8,Ey;function wi(){if(Ey)return v8;Ey=1;var e=Us();function a(r){if(typeof r=="string"||e(r))return r;var s=r+"";return s=="0"&&1/r==-1/0?"-0":s}return v8=a,v8}var y8,jy;function I1(){if(jy)return y8;jy=1;var e=U1(),a=wi();function r(s,c){c=e(c,s);for(var u=0,f=c.length;s!=null&&u<f;)s=s[a(c[u++])];return u&&u==f?s:void 0}return y8=r,y8}var b8,Sy;function Cz(){if(Sy)return b8;Sy=1;var e=I1();function a(r,s,c){var u=r==null?void 0:e(r,s);return u===void 0?c:u}return b8=a,b8}var w8,My;function Tz(){if(My)return w8;My=1;function e(a,r){return a!=null&&r in Object(a)}return w8=e,w8}var A8,Ny;function OS(){if(Ny)return A8;Ny=1;var e=U1(),a=yi(),r=dt(),s=D1(),c=D6(),u=wi();function f(h,m,p){m=e(m,h);for(var g=-1,v=m.length,b=!1;++g<v;){var w=u(m[g]);if(!(b=h!=null&&p(h,w)))break;h=h[w]}return b||++g!=v?b:(v=h==null?0:h.length,!!v&&c(v)&&s(w,v)&&(r(h)||a(h)))}return A8=f,A8}var E8,_y;function qS(){if(_y)return E8;_y=1;var e=Tz(),a=OS();function r(s,c){return s!=null&&a(s,c,e)}return E8=r,E8}var j8,Cy;function Hz(){if(Cy)return j8;Cy=1;var e=LS(),a=Cz(),r=qS(),s=G6(),c=RS(),u=kS(),f=wi(),h=1,m=2;function p(g,v){return s(g)&&c(v)?u(f(g),v):function(b){var w=a(b,g);return w===void 0&&w===v?r(b,g):e(v,w,h|m)}}return j8=p,j8}var S8,Ty;function zS(){if(Ty)return S8;Ty=1;function e(a){return function(r){return r==null?void 0:r[a]}}return S8=e,S8}var M8,Hy;function Zz(){if(Hy)return M8;Hy=1;var e=I1();function a(r){return function(s){return e(s,r)}}return M8=a,M8}var N8,Zy;function Vz(){if(Zy)return N8;Zy=1;var e=zS(),a=Zz(),r=G6(),s=wi();function c(u){return r(u)?e(s(u)):a(u)}return N8=c,N8}var _8,Vy;function xn(){if(Vy)return _8;Vy=1;var e=jz(),a=Hz(),r=Lr(),s=dt(),c=Vz();function u(f){return typeof f=="function"?f:f==null?r:typeof f=="object"?s(f)?a(f[0],f[1]):e(f):c(f)}return _8=u,_8}var C8,Ly;function FS(){if(Ly)return C8;Ly=1;var e=xS(),a=mz(),r=xn(),s=dt();function c(u,f){var h=s(u)?e:a;return h(u,r(f,3))}return C8=c,C8}var T8,Ry;function Lz(){if(Ry)return T8;Ry=1;var e=Object.prototype,a=e.hasOwnProperty;function r(s,c){return s!=null&&a.call(s,c)}return T8=r,T8}var H8,ky;function BS(){if(ky)return H8;ky=1;var e=Lz(),a=OS();function r(s,c){return s!=null&&a(s,c,e)}return H8=r,H8}var Z8,Dy;function Rz(){if(Dy)return Z8;Dy=1;var e=q6(),a=Bs(),r=yi(),s=dt(),c=gn(),u=Fs(),f=q1(),h=bi(),m="[object Map]",p="[object Set]",g=Object.prototype,v=g.hasOwnProperty;function b(w){if(w==null)return!0;if(c(w)&&(s(w)||typeof w=="string"||typeof w.splice=="function"||u(w)||h(w)||r(w)))return!w.length;var N=a(w);if(N==m||N==p)return!w.size;if(f(w))return!e(w).length;for(var j in w)if(v.call(w,j))return!1;return!0}return Z8=b,Z8}var V8,Oy;function US(){if(Oy)return V8;Oy=1;function e(a){return a===void 0}return V8=e,V8}var L8,qy;function IS(){if(qy)return L8;qy=1;var e=F1(),a=gn();function r(s,c){var u=-1,f=a(s)?Array(s.length):[];return e(s,function(h,m,p){f[++u]=c(h,m,p)}),f}return L8=r,L8}var R8,zy;function PS(){if(zy)return R8;zy=1;var e=B1(),a=xn(),r=IS(),s=dt();function c(u,f){var h=s(u)?e:r;return h(u,a(f,3))}return R8=c,R8}var k8,Fy;function kz(){if(Fy)return k8;Fy=1;function e(a,r,s,c){var u=-1,f=a==null?0:a.length;for(c&&f&&(s=a[++u]);++u<f;)s=r(s,a[u],u,a);return s}return k8=e,k8}var D8,By;function Dz(){if(By)return D8;By=1;function e(a,r,s,c,u){return u(a,function(f,h,m){s=c?(c=!1,f):r(s,f,h,m)}),s}return D8=e,D8}var O8,Uy;function $S(){if(Uy)return O8;Uy=1;var e=kz(),a=F1(),r=xn(),s=Dz(),c=dt();function u(f,h,m){var p=c(f)?e:s,g=arguments.length<3;return p(f,r(h,4),m,g,a)}return O8=u,O8}var q8,Iy;function Oz(){if(Iy)return q8;Iy=1;var e=Hr(),a=dt(),r=Pa(),s="[object String]";function c(u){return typeof u=="string"||!a(u)&&r(u)&&e(u)==s}return q8=c,q8}var z8,Py;function qz(){if(Py)return z8;Py=1;var e=zS(),a=e("length");return z8=a,z8}var F8,$y;function zz(){if($y)return F8;$y=1;var e="\\ud800-\\udfff",a="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",c=a+r+s,u="\\ufe0e\\ufe0f",f="\\u200d",h=RegExp("["+f+e+c+u+"]");function m(p){return h.test(p)}return F8=m,F8}var B8,Gy;function Fz(){if(Gy)return B8;Gy=1;var e="\\ud800-\\udfff",a="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",c=a+r+s,u="\\ufe0e\\ufe0f",f="["+e+"]",h="["+c+"]",m="\\ud83c[\\udffb-\\udfff]",p="(?:"+h+"|"+m+")",g="[^"+e+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",N=p+"?",j="["+u+"]?",A="(?:"+w+"(?:"+[g,v,b].join("|")+")"+j+N+")*",E=j+N+A,M="(?:"+[g+h+"?",h,v,b,f].join("|")+")",_=RegExp(m+"(?="+m+")|"+M+E,"g");function H(C){for(var Z=_.lastIndex=0;_.test(C);)++Z;return Z}return B8=H,B8}var U8,Yy;function Bz(){if(Yy)return U8;Yy=1;var e=qz(),a=zz(),r=Fz();function s(c){return a(c)?r(c):e(c)}return U8=s,U8}var I8,Ky;function Uz(){if(Ky)return I8;Ky=1;var e=q6(),a=Bs(),r=gn(),s=Oz(),c=Bz(),u="[object Map]",f="[object Set]";function h(m){if(m==null)return 0;if(r(m))return s(m)?c(m):m.length;var p=a(m);return p==u||p==f?m.size:e(m).length}return I8=h,I8}var P8,Xy;function Iz(){if(Xy)return P8;Xy=1;var e=k6(),a=SS(),r=P6(),s=xn(),c=z1(),u=dt(),f=Fs(),h=xi(),m=pa(),p=bi();function g(v,b,w){var N=u(v),j=N||f(v)||p(v);if(b=s(b,4),w==null){var A=v&&v.constructor;j?w=N?new A:[]:m(v)?w=h(A)?a(c(v)):{}:w={}}return(j?e:r)(v,function(E,M,_){return b(w,E,M,_)}),w}return P8=g,P8}var $8,Qy;function Pz(){if(Qy)return $8;Qy=1;var e=zs(),a=yi(),r=dt(),s=e?e.isConcatSpreadable:void 0;function c(u){return r(u)||a(u)||!!(s&&u&&u[s])}return $8=c,$8}var G8,Jy;function Y6(){if(Jy)return G8;Jy=1;var e=F6(),a=Pz();function r(s,c,u,f,h){var m=-1,p=s.length;for(u||(u=a),h||(h=[]);++m<p;){var g=s[m];c>0&&u(g)?c>1?r(g,c-1,u,f,h):e(h,g):f||(h[h.length]=g)}return h}return G8=r,G8}var Y8,Wy;function $z(){if(Wy)return Y8;Wy=1;function e(a,r,s){switch(s.length){case 0:return a.call(r);case 1:return a.call(r,s[0]);case 2:return a.call(r,s[0],s[1]);case 3:return a.call(r,s[0],s[1],s[2])}return a.apply(r,s)}return Y8=e,Y8}var K8,eb;function GS(){if(eb)return K8;eb=1;var e=$z(),a=Math.max;function r(s,c,u){return c=a(c===void 0?s.length-1:c,0),function(){for(var f=arguments,h=-1,m=a(f.length-c,0),p=Array(m);++h<m;)p[h]=f[c+h];h=-1;for(var g=Array(c+1);++h<c;)g[h]=f[h];return g[c]=u(p),e(s,this,g)}}return K8=r,K8}var X8,tb;function Gz(){if(tb)return X8;tb=1;var e=U6(),a=fS(),r=Lr(),s=a?function(c,u){return a(c,"toString",{configurable:!0,enumerable:!1,value:e(u),writable:!0})}:r;return X8=s,X8}var Q8,ab;function Yz(){if(ab)return Q8;ab=1;var e=800,a=16,r=Date.now;function s(c){var u=0,f=0;return function(){var h=r(),m=a-(h-f);if(f=h,m>0){if(++u>=e)return arguments[0]}else u=0;return c.apply(void 0,arguments)}}return Q8=s,Q8}var J8,nb;function YS(){if(nb)return J8;nb=1;var e=Gz(),a=Yz(),r=a(e);return J8=r,J8}var W8,rb;function P1(){if(rb)return W8;rb=1;var e=Lr(),a=GS(),r=YS();function s(c,u){return r(a(c,u,e),c+"")}return W8=s,W8}var e4,sb;function KS(){if(sb)return e4;sb=1;function e(a,r,s,c){for(var u=a.length,f=s+(c?1:-1);c?f--:++f<u;)if(r(a[f],f,a))return f;return-1}return e4=e,e4}var t4,ib;function Kz(){if(ib)return t4;ib=1;function e(a){return a!==a}return t4=e,t4}var a4,lb;function Xz(){if(lb)return a4;lb=1;function e(a,r,s){for(var c=s-1,u=a.length;++c<u;)if(a[c]===r)return c;return-1}return a4=e,a4}var n4,ob;function Qz(){if(ob)return n4;ob=1;var e=KS(),a=Kz(),r=Xz();function s(c,u,f){return u===u?r(c,u,f):e(c,a,f)}return n4=s,n4}var r4,cb;function Jz(){if(cb)return r4;cb=1;var e=Qz();function a(r,s){var c=r==null?0:r.length;return!!c&&e(r,s,0)>-1}return r4=a,r4}var s4,ub;function Wz(){if(ub)return s4;ub=1;function e(a,r,s){for(var c=-1,u=a==null?0:a.length;++c<u;)if(s(r,a[c]))return!0;return!1}return s4=e,s4}var i4,db;function eF(){if(db)return i4;db=1;function e(){}return i4=e,i4}var l4,fb;function tF(){if(fb)return l4;fb=1;var e=AS(),a=eF(),r=$6(),s=1/0,c=e&&1/r(new e([,-0]))[1]==s?function(u){return new e(u)}:a;return l4=c,l4}var o4,hb;function aF(){if(hb)return o4;hb=1;var e=HS(),a=Jz(),r=Wz(),s=ZS(),c=tF(),u=$6(),f=200;function h(m,p,g){var v=-1,b=a,w=m.length,N=!0,j=[],A=j;if(g)N=!1,b=r;else if(w>=f){var E=p?null:c(m);if(E)return u(E);N=!1,b=s,A=new e}else A=p?[]:j;e:for(;++v<w;){var M=m[v],_=p?p(M):M;if(M=g||M!==0?M:0,N&&_===_){for(var H=A.length;H--;)if(A[H]===_)continue e;p&&A.push(_),j.push(M)}else b(A,_,g)||(A!==j&&A.push(_),j.push(M))}return j}return o4=h,o4}var c4,mb;function XS(){if(mb)return c4;mb=1;var e=gn(),a=Pa();function r(s){return a(s)&&e(s)}return c4=r,c4}var u4,pb;function nF(){if(pb)return u4;pb=1;var e=Y6(),a=P1(),r=aF(),s=XS(),c=a(function(u){return r(e(u,1,s,!0))});return u4=c,u4}var d4,gb;function rF(){if(gb)return d4;gb=1;var e=B1();function a(r,s){return e(s,function(c){return r[c]})}return d4=a,d4}var f4,xb;function QS(){if(xb)return f4;xb=1;var e=rF(),a=tr();function r(s){return s==null?[]:e(s,a(s))}return f4=r,f4}var h4,vb;function ga(){if(vb)return h4;vb=1;var e;if(typeof V6=="function")try{e={clone:dz(),constant:U6(),each:TS(),filter:FS(),has:BS(),isArray:dt(),isEmpty:Rz(),isFunction:xi(),isUndefined:US(),keys:tr(),map:PS(),reduce:$S(),size:Uz(),transform:Iz(),union:nF(),values:QS()}}catch{}return e||(e=window._),h4=e,h4}var m4,yb;function K6(){if(yb)return m4;yb=1;var e=ga();m4=c;var a="\0",r="\0",s="";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[r]={}),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(v){return e.isEmpty(g._in[v])})},c.prototype.sinks=function(){var g=this;return e.filter(this.nodes(),function(v){return e.isEmpty(g._out[v])})},c.prototype.setNodes=function(g,v){var b=arguments,w=this;return e.each(g,function(N){b.length>1?w.setNode(N,v):w.setNode(N)}),this},c.prototype.setNode=function(g,v){return e.has(this._nodes,g)?(arguments.length>1&&(this._nodes[g]=v),this):(this._nodes[g]=arguments.length>1?v:this._defaultNodeLabelFn(g),this._isCompound&&(this._parent[g]=r,this._children[g]={},this._children[r][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 v=this;if(e.has(this._nodes,g)){var b=function(w){v.removeEdge(v._edgeObjs[w])};delete this._nodes[g],this._isCompound&&(this._removeFromParentsChildList(g),delete this._parent[g],e.each(this.children(g),function(w){v.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,v){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(v))v=r;else{v+="";for(var b=v;!e.isUndefined(b);b=this.parent(b))if(b===g)throw new Error("Setting "+v+" as parent of "+g+" would create a cycle");this.setNode(v)}return this.setNode(g),this._removeFromParentsChildList(g),this._parent[g]=v,this._children[v][g]=!0,this},c.prototype._removeFromParentsChildList=function(g){delete this._children[this._parent[g]][g]},c.prototype.parent=function(g){if(this._isCompound){var v=this._parent[g];if(v!==r)return v}},c.prototype.children=function(g){if(e.isUndefined(g)&&(g=r),this._isCompound){var v=this._children[g];if(v)return e.keys(v)}else{if(g===r)return this.nodes();if(this.hasNode(g))return[]}},c.prototype.predecessors=function(g){var v=this._preds[g];if(v)return e.keys(v)},c.prototype.successors=function(g){var v=this._sucs[g];if(v)return e.keys(v)},c.prototype.neighbors=function(g){var v=this.predecessors(g);if(v)return e.union(v,this.successors(g))},c.prototype.isLeaf=function(g){var v;return this.isDirected()?v=this.successors(g):v=this.neighbors(g),v.length===0},c.prototype.filterNodes=function(g){var v=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});v.setGraph(this.graph());var b=this;e.each(this._nodes,function(j,A){g(A)&&v.setNode(A,j)}),e.each(this._edgeObjs,function(j){v.hasNode(j.v)&&v.hasNode(j.w)&&v.setEdge(j,b.edge(j))});var w={};function N(j){var A=b.parent(j);return A===void 0||v.hasNode(A)?(w[j]=A,A):A in w?w[A]:N(A)}return this._isCompound&&e.each(v.nodes(),function(j){v.setParent(j,N(j))}),v},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,v){var b=this,w=arguments;return e.reduce(g,function(N,j){return w.length>1?b.setEdge(N,j,v):b.setEdge(N,j),j}),this},c.prototype.setEdge=function(){var g,v,b,w,N=!1,j=arguments[0];typeof j=="object"&&j!==null&&"v"in j?(g=j.v,v=j.w,b=j.name,arguments.length===2&&(w=arguments[1],N=!0)):(g=j,v=arguments[1],b=arguments[3],arguments.length>2&&(w=arguments[2],N=!0)),g=""+g,v=""+v,e.isUndefined(b)||(b=""+b);var A=h(this._isDirected,g,v,b);if(e.has(this._edgeLabels,A))return N&&(this._edgeLabels[A]=w),this;if(!e.isUndefined(b)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(g),this.setNode(v),this._edgeLabels[A]=N?w:this._defaultEdgeLabelFn(g,v,b);var E=m(this._isDirected,g,v,b);return g=E.v,v=E.w,Object.freeze(E),this._edgeObjs[A]=E,u(this._preds[v],g),u(this._sucs[g],v),this._in[v][A]=E,this._out[g][A]=E,this._edgeCount++,this},c.prototype.edge=function(g,v,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,v,b);return this._edgeLabels[w]},c.prototype.hasEdge=function(g,v,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,v,b);return e.has(this._edgeLabels,w)},c.prototype.removeEdge=function(g,v,b){var w=arguments.length===1?p(this._isDirected,arguments[0]):h(this._isDirected,g,v,b),N=this._edgeObjs[w];return N&&(g=N.v,v=N.w,delete this._edgeLabels[w],delete this._edgeObjs[w],f(this._preds[v],g),f(this._sucs[g],v),delete this._in[v][w],delete this._out[g][w],this._edgeCount--),this},c.prototype.inEdges=function(g,v){var b=this._in[g];if(b){var w=e.values(b);return v?e.filter(w,function(N){return N.v===v}):w}},c.prototype.outEdges=function(g,v){var b=this._out[g];if(b){var w=e.values(b);return v?e.filter(w,function(N){return N.w===v}):w}},c.prototype.nodeEdges=function(g,v){var b=this.inEdges(g,v);if(b)return b.concat(this.outEdges(g,v))};function u(g,v){g[v]?g[v]++:g[v]=1}function f(g,v){--g[v]||delete g[v]}function h(g,v,b,w){var N=""+v,j=""+b;if(!g&&N>j){var A=N;N=j,j=A}return N+s+j+s+(e.isUndefined(w)?a:w)}function m(g,v,b,w){var N=""+v,j=""+b;if(!g&&N>j){var A=N;N=j,j=A}var E={v:N,w:j};return w&&(E.name=w),E}function p(g,v){return h(g,v.v,v.w,v.name)}return m4}var p4,bb;function sF(){return bb||(bb=1,p4="2.1.8"),p4}var g4,wb;function iF(){return wb||(wb=1,g4={Graph:K6(),version:sF()}),g4}var x4,Ab;function lF(){if(Ab)return x4;Ab=1;var e=ga(),a=K6();x4={write:r,read:u};function r(f){var h={options:{directed:f.isDirected(),multigraph:f.isMultigraph(),compound:f.isCompound()},nodes:s(f),edges:c(f)};return e.isUndefined(f.graph())||(h.value=e.clone(f.graph())),h}function s(f){return e.map(f.nodes(),function(h){var m=f.node(h),p=f.parent(h),g={v:h};return e.isUndefined(m)||(g.value=m),e.isUndefined(p)||(g.parent=p),g})}function c(f){return e.map(f.edges(),function(h){var m=f.edge(h),p={v:h.v,w:h.w};return e.isUndefined(h.name)||(p.name=h.name),e.isUndefined(m)||(p.value=m),p})}function u(f){var h=new a(f.options).setGraph(f.value);return e.each(f.nodes,function(m){h.setNode(m.v,m.value),m.parent&&h.setParent(m.v,m.parent)}),e.each(f.edges,function(m){h.setEdge({v:m.v,w:m.w,name:m.name},m.value)}),h}return x4}var v4,Eb;function oF(){if(Eb)return v4;Eb=1;var e=ga();v4=a;function a(r){var s={},c=[],u;function f(h){e.has(s,h)||(s[h]=!0,u.push(h),e.each(r.successors(h),f),e.each(r.predecessors(h),f))}return e.each(r.nodes(),function(h){u=[],f(h),u.length&&c.push(u)}),c}return v4}var y4,jb;function JS(){if(jb)return y4;jb=1;var e=ga();y4=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(r){return r.key})},a.prototype.has=function(r){return e.has(this._keyIndices,r)},a.prototype.priority=function(r){var s=this._keyIndices[r];if(s!==void 0)return this._arr[s].priority},a.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},a.prototype.add=function(r,s){var c=this._keyIndices;if(r=String(r),!e.has(c,r)){var u=this._arr,f=u.length;return c[r]=f,u.push({key:r,priority:s}),this._decrease(f),!0}return!1},a.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},a.prototype.decrease=function(r,s){var c=this._keyIndices[r];if(s>this._arr[c].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[c].priority+" New: "+s);this._arr[c].priority=s,this._decrease(c)},a.prototype._heapify=function(r){var s=this._arr,c=2*r,u=c+1,f=r;c<s.length&&(f=s[c].priority<s[f].priority?c:f,u<s.length&&(f=s[u].priority<s[f].priority?u:f),f!==r&&(this._swap(r,f),this._heapify(f)))},a.prototype._decrease=function(r){for(var s=this._arr,c=s[r].priority,u;r!==0&&(u=r>>1,!(s[u].priority<c));)this._swap(r,u),r=u},a.prototype._swap=function(r,s){var c=this._arr,u=this._keyIndices,f=c[r],h=c[s];c[r]=h,c[s]=f,u[h.key]=r,u[f.key]=s},y4}var b4,Sb;function WS(){if(Sb)return b4;Sb=1;var e=ga(),a=JS();b4=s;var r=e.constant(1);function s(u,f,h,m){return c(u,String(f),h||r,m||function(p){return u.outEdges(p)})}function c(u,f,h,m){var p={},g=new a,v,b,w=function(N){var j=N.v!==v?N.v:N.w,A=p[j],E=h(N),M=b.distance+E;if(E<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+N+" Weight: "+E);M<A.distance&&(A.distance=M,A.predecessor=v,g.decrease(j,M))};for(u.nodes().forEach(function(N){var j=N===f?0:Number.POSITIVE_INFINITY;p[N]={distance:j},g.add(N,j)});g.size()>0&&(v=g.removeMin(),b=p[v],b.distance!==Number.POSITIVE_INFINITY);)m(v).forEach(w);return p}return b4}var w4,Mb;function cF(){if(Mb)return w4;Mb=1;var e=WS(),a=ga();w4=r;function r(s,c,u){return a.transform(s.nodes(),function(f,h){f[h]=e(s,h,c,u)},{})}return w4}var A4,Nb;function eM(){if(Nb)return A4;Nb=1;var e=ga();A4=a;function a(r){var s=0,c=[],u={},f=[];function h(m){var p=u[m]={onStack:!0,lowlink:s,index:s++};if(c.push(m),r.successors(m).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=[],v;do v=c.pop(),u[v].onStack=!1,g.push(v);while(m!==v);f.push(g)}}return r.nodes().forEach(function(m){e.has(u,m)||h(m)}),f}return A4}var E4,_b;function uF(){if(_b)return E4;_b=1;var e=ga(),a=eM();E4=r;function r(s){return e.filter(a(s),function(c){return c.length>1||c.length===1&&s.hasEdge(c[0],c[0])})}return E4}var j4,Cb;function dF(){if(Cb)return j4;Cb=1;var e=ga();j4=r;var a=e.constant(1);function r(c,u,f){return s(c,u||a,f||function(h){return c.outEdges(h)})}function s(c,u,f){var h={},m=c.nodes();return m.forEach(function(p){h[p]={},h[p][p]={distance:0},m.forEach(function(g){p!==g&&(h[p][g]={distance:Number.POSITIVE_INFINITY})}),f(p).forEach(function(g){var v=g.v===p?g.w:g.v,b=u(g);h[p][v]={distance:b,predecessor:p}})}),m.forEach(function(p){var g=h[p];m.forEach(function(v){var b=h[v];m.forEach(function(w){var N=b[p],j=g[w],A=b[w],E=N.distance+j.distance;E<A.distance&&(A.distance=E,A.predecessor=j.predecessor)})})}),h}return j4}var S4,Tb;function tM(){if(Tb)return S4;Tb=1;var e=ga();S4=a,a.CycleException=r;function a(s){var c={},u={},f=[];function h(m){if(e.has(u,m))throw new r;e.has(c,m)||(u[m]=!0,c[m]=!0,e.each(s.predecessors(m),h),delete u[m],f.push(m))}if(e.each(s.sinks(),h),e.size(c)!==s.nodeCount())throw new r;return f}function r(){}return r.prototype=new Error,S4}var M4,Hb;function fF(){if(Hb)return M4;Hb=1;var e=tM();M4=a;function a(r){try{e(r)}catch(s){if(s instanceof e.CycleException)return!1;throw s}return!0}return M4}var N4,Zb;function aM(){if(Zb)return N4;Zb=1;var e=ga();N4=a;function a(s,c,u){e.isArray(c)||(c=[c]);var f=(s.isDirected()?s.successors:s.neighbors).bind(s),h=[],m={};return e.each(c,function(p){if(!s.hasNode(p))throw new Error("Graph does not have node: "+p);r(s,p,u==="post",m,f,h)}),h}function r(s,c,u,f,h,m){e.has(f,c)||(f[c]=!0,u||m.push(c),e.each(h(c),function(p){r(s,p,u,f,h,m)}),u&&m.push(c))}return N4}var _4,Vb;function hF(){if(Vb)return _4;Vb=1;var e=aM();_4=a;function a(r,s){return e(r,s,"post")}return _4}var C4,Lb;function mF(){if(Lb)return C4;Lb=1;var e=aM();C4=a;function a(r,s){return e(r,s,"pre")}return C4}var T4,Rb;function pF(){if(Rb)return T4;Rb=1;var e=ga(),a=K6(),r=JS();T4=s;function s(c,u){var f=new a,h={},m=new r,p;function g(b){var w=b.v===p?b.w:b.v,N=m.priority(w);if(N!==void 0){var j=u(b);j<N&&(h[w]=p,m.decrease(w,j))}}if(c.nodeCount()===0)return f;e.each(c.nodes(),function(b){m.add(b,Number.POSITIVE_INFINITY),f.setNode(b)}),m.decrease(c.nodes()[0],0);for(var v=!1;m.size()>0;){if(p=m.removeMin(),e.has(h,p))f.setEdge(p,h[p]);else{if(v)throw new Error("Input graph is not connected: "+c);v=!0}c.nodeEdges(p).forEach(g)}return f}return T4}var H4,kb;function gF(){return kb||(kb=1,H4={components:oF(),dijkstra:WS(),dijkstraAll:cF(),findCycles:uF(),floydWarshall:dF(),isAcyclic:fF(),postorder:hF(),preorder:mF(),prim:pF(),tarjan:eM(),topsort:tM()}),H4}var Z4,Db;function xF(){if(Db)return Z4;Db=1;var e=iF();return Z4={Graph:e.Graph,json:lF(),alg:gF(),version:e.version},Z4}var V4,Ob;function _a(){if(Ob)return V4;Ob=1;var e;if(typeof V6=="function")try{e=xF()}catch{}return e||(e=window.graphlib),V4=e,V4}var L4,qb;function vF(){if(qb)return L4;qb=1;var e=NS(),a=1,r=4;function s(c){return e(c,a|r)}return L4=s,L4}var R4,zb;function $1(){if(zb)return R4;zb=1;var e=qs(),a=gn(),r=D1(),s=pa();function c(u,f,h){if(!s(h))return!1;var m=typeof f;return(m=="number"?a(h)&&r(f,h.length):m=="string"&&f in h)?e(h[f],u):!1}return R4=c,R4}var k4,Fb;function yF(){if(Fb)return k4;Fb=1;var e=P1(),a=qs(),r=$1(),s=Vr(),c=Object.prototype,u=c.hasOwnProperty,f=e(function(h,m){h=Object(h);var p=-1,g=m.length,v=g>2?m[2]:void 0;for(v&&r(m[0],m[1],v)&&(g=1);++p<g;)for(var b=m[p],w=s(b),N=-1,j=w.length;++N<j;){var A=w[N],E=h[A];(E===void 0||a(E,c[A])&&!u.call(h,A))&&(h[A]=b[A])}return h});return k4=f,k4}var D4,Bb;function bF(){if(Bb)return D4;Bb=1;var e=xn(),a=gn(),r=tr();function s(c){return function(u,f,h){var m=Object(u);if(!a(u)){var p=e(f,3);u=r(u),f=function(v){return p(m[v],v,m)}}var g=c(u,f,h);return g>-1?m[p?u[g]:g]:void 0}}return D4=s,D4}var O4,Ub;function wF(){if(Ub)return O4;Ub=1;var e=/\s/;function a(r){for(var s=r.length;s--&&e.test(r.charAt(s)););return s}return O4=a,O4}var q4,Ib;function AF(){if(Ib)return q4;Ib=1;var e=wF(),a=/^\s+/;function r(s){return s&&s.slice(0,e(s)+1).replace(a,"")}return q4=r,q4}var z4,Pb;function EF(){if(Pb)return z4;Pb=1;var e=AF(),a=pa(),r=Us(),s=NaN,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function m(p){if(typeof p=="number")return p;if(r(p))return s;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 v=u.test(p);return v||f.test(p)?h(p.slice(2),v?2:8):c.test(p)?s:+p}return z4=m,z4}var F4,$b;function nM(){if($b)return F4;$b=1;var e=EF(),a=1/0,r=17976931348623157e292;function s(c){if(!c)return c===0?c:0;if(c=e(c),c===a||c===-a){var u=c<0?-1:1;return u*r}return c===c?c:0}return F4=s,F4}var B4,Gb;function jF(){if(Gb)return B4;Gb=1;var e=nM();function a(r){var s=e(r),c=s%1;return s===s?c?s-c:s:0}return B4=a,B4}var U4,Yb;function SF(){if(Yb)return U4;Yb=1;var e=KS(),a=xn(),r=jF(),s=Math.max;function c(u,f,h){var m=u==null?0:u.length;if(!m)return-1;var p=h==null?0:r(h);return p<0&&(p=s(m+p,0)),e(u,a(f,3),p)}return U4=c,U4}var I4,Kb;function MF(){if(Kb)return I4;Kb=1;var e=bF(),a=SF(),r=e(a);return I4=r,I4}var P4,Xb;function rM(){if(Xb)return P4;Xb=1;var e=Y6();function a(r){var s=r==null?0:r.length;return s?e(r,1):[]}return P4=a,P4}var $4,Qb;function NF(){if(Qb)return $4;Qb=1;var e=I6(),a=_S(),r=Vr();function s(c,u){return c==null?c:e(c,a(u),r)}return $4=s,$4}var G4,Jb;function _F(){if(Jb)return G4;Jb=1;function e(a){var r=a==null?0:a.length;return r?a[r-1]:void 0}return G4=e,G4}var Y4,Wb;function CF(){if(Wb)return Y4;Wb=1;var e=R1(),a=P6(),r=xn();function s(c,u){var f={};return u=r(u,3),a(c,function(h,m,p){e(f,m,u(h,m,p))}),f}return Y4=s,Y4}var K4,e9;function X6(){if(e9)return K4;e9=1;var e=Us();function a(r,s,c){for(var u=-1,f=r.length;++u<f;){var h=r[u],m=s(h);if(m!=null&&(p===void 0?m===m&&!e(m):c(m,p)))var p=m,g=h}return g}return K4=a,K4}var X4,t9;function TF(){if(t9)return X4;t9=1;function e(a,r){return a>r}return X4=e,X4}var Q4,a9;function HF(){if(a9)return Q4;a9=1;var e=X6(),a=TF(),r=Lr();function s(c){return c&&c.length?e(c,r,a):void 0}return Q4=s,Q4}var J4,n9;function sM(){if(n9)return J4;n9=1;var e=R1(),a=qs();function r(s,c,u){(u!==void 0&&!a(s[c],u)||u===void 0&&!(c in s))&&e(s,c,u)}return J4=r,J4}var W4,r9;function ZF(){if(r9)return W4;r9=1;var e=Hr(),a=z1(),r=Pa(),s="[object Object]",c=Function.prototype,u=Object.prototype,f=c.toString,h=u.hasOwnProperty,m=f.call(Object);function p(g){if(!r(g)||e(g)!=s)return!1;var v=a(g);if(v===null)return!0;var b=h.call(v,"constructor")&&v.constructor;return typeof b=="function"&&b instanceof b&&f.call(b)==m}return W4=p,W4}var ef,s9;function iM(){if(s9)return ef;s9=1;function e(a,r){if(!(r==="constructor"&&typeof a[r]=="function")&&r!="__proto__")return a[r]}return ef=e,ef}var tf,i9;function VF(){if(i9)return tf;i9=1;var e=vi(),a=Vr();function r(s){return e(s,a(s))}return tf=r,tf}var af,l9;function LF(){if(l9)return af;l9=1;var e=sM(),a=pS(),r=jS(),s=gS(),c=MS(),u=yi(),f=dt(),h=XS(),m=Fs(),p=xi(),g=pa(),v=ZF(),b=bi(),w=iM(),N=VF();function j(A,E,M,_,H,C,Z){var T=w(A,M),L=w(E,M),R=Z.get(L);if(R){e(A,M,R);return}var k=C?C(T,L,M+"",A,E,Z):void 0,B=k===void 0;if(B){var G=f(L),Q=!G&&m(L),ee=!G&&!Q&&b(L);k=L,G||Q||ee?f(T)?k=T:h(T)?k=s(T):Q?(B=!1,k=a(L,!0)):ee?(B=!1,k=r(L,!0)):k=[]:v(L)||u(L)?(k=T,u(T)?k=N(T):(!g(T)||p(T))&&(k=c(L))):B=!1}B&&(Z.set(L,k),H(k,L,_,C,Z),Z.delete(L)),e(A,M,k)}return af=j,af}var nf,o9;function RF(){if(o9)return nf;o9=1;var e=L1(),a=sM(),r=I6(),s=LF(),c=pa(),u=Vr(),f=iM();function h(m,p,g,v,b){m!==p&&r(p,function(w,N){if(b||(b=new e),c(w))s(m,p,N,g,h,v,b);else{var j=v?v(f(m,N),w,N+"",m,p,b):void 0;j===void 0&&(j=w),a(m,N,j)}},u)}return nf=h,nf}var rf,c9;function kF(){if(c9)return rf;c9=1;var e=P1(),a=$1();function r(s){return e(function(c,u){var f=-1,h=u.length,m=h>1?u[h-1]:void 0,p=h>2?u[2]:void 0;for(m=s.length>3&&typeof m=="function"?(h--,m):void 0,p&&a(u[0],u[1],p)&&(m=h<3?void 0:m,h=1),c=Object(c);++f<h;){var g=u[f];g&&s(c,g,f,m)}return c})}return rf=r,rf}var sf,u9;function DF(){if(u9)return sf;u9=1;var e=RF(),a=kF(),r=a(function(s,c,u){e(s,c,u)});return sf=r,sf}var lf,d9;function lM(){if(d9)return lf;d9=1;function e(a,r){return a<r}return lf=e,lf}var of,f9;function OF(){if(f9)return of;f9=1;var e=X6(),a=lM(),r=Lr();function s(c){return c&&c.length?e(c,r,a):void 0}return of=s,of}var cf,h9;function qF(){if(h9)return cf;h9=1;var e=X6(),a=xn(),r=lM();function s(c,u){return c&&c.length?e(c,a(u,2),r):void 0}return cf=s,cf}var uf,m9;function zF(){if(m9)return uf;m9=1;var e=Ca(),a=function(){return e.Date.now()};return uf=a,uf}var df,p9;function FF(){if(p9)return df;p9=1;var e=k1(),a=U1(),r=D1(),s=pa(),c=wi();function u(f,h,m,p){if(!s(f))return f;h=a(h,f);for(var g=-1,v=h.length,b=v-1,w=f;w!=null&&++g<v;){var N=c(h[g]),j=m;if(N==="__proto__"||N==="constructor"||N==="prototype")return f;if(g!=b){var A=w[N];j=p?p(A,N,w):void 0,j===void 0&&(j=s(A)?A:r(h[g+1])?[]:{})}e(w,N,j),w=w[N]}return f}return df=u,df}var ff,g9;function BF(){if(g9)return ff;g9=1;var e=I1(),a=FF(),r=U1();function s(c,u,f){for(var h=-1,m=u.length,p={};++h<m;){var g=u[h],v=e(c,g);f(v,g)&&a(p,r(g,c),v)}return p}return ff=s,ff}var hf,x9;function UF(){if(x9)return hf;x9=1;var e=BF(),a=qS();function r(s,c){return e(s,c,function(u,f){return a(s,f)})}return hf=r,hf}var mf,v9;function IF(){if(v9)return mf;v9=1;var e=rM(),a=GS(),r=YS();function s(c){return r(a(c,void 0,e),c+"")}return mf=s,mf}var pf,y9;function PF(){if(y9)return pf;y9=1;var e=UF(),a=IF(),r=a(function(s,c){return s==null?{}:e(s,c)});return pf=r,pf}var gf,b9;function $F(){if(b9)return gf;b9=1;var e=Math.ceil,a=Math.max;function r(s,c,u,f){for(var h=-1,m=a(e((c-s)/(u||1)),0),p=Array(m);m--;)p[f?m:++h]=s,s+=u;return p}return gf=r,gf}var xf,w9;function GF(){if(w9)return xf;w9=1;var e=$F(),a=$1(),r=nM();function s(c){return function(u,f,h){return h&&typeof h!="number"&&a(u,f,h)&&(f=h=void 0),u=r(u),f===void 0?(f=u,u=0):f=r(f),h=h===void 0?u<f?1:-1:r(h),e(u,f,h,c)}}return xf=s,xf}var vf,A9;function YF(){if(A9)return vf;A9=1;var e=GF(),a=e();return vf=a,vf}var yf,E9;function KF(){if(E9)return yf;E9=1;function e(a,r){var s=a.length;for(a.sort(r);s--;)a[s]=a[s].value;return a}return yf=e,yf}var bf,j9;function XF(){if(j9)return bf;j9=1;var e=Us();function a(r,s){if(r!==s){var c=r!==void 0,u=r===null,f=r===r,h=e(r),m=s!==void 0,p=s===null,g=s===s,v=e(s);if(!p&&!v&&!h&&r>s||h&&m&&g&&!p&&!v||u&&m&&g||!c&&g||!f)return 1;if(!u&&!h&&!v&&r<s||v&&c&&f&&!u&&!h||p&&c&&f||!m&&f||!g)return-1}return 0}return bf=a,bf}var wf,S9;function QF(){if(S9)return wf;S9=1;var e=XF();function a(r,s,c){for(var u=-1,f=r.criteria,h=s.criteria,m=f.length,p=c.length;++u<m;){var g=e(f[u],h[u]);if(g){if(u>=p)return g;var v=c[u];return g*(v=="desc"?-1:1)}}return r.index-s.index}return wf=a,wf}var Af,M9;function JF(){if(M9)return Af;M9=1;var e=B1(),a=I1(),r=xn(),s=IS(),c=KF(),u=O1(),f=QF(),h=Lr(),m=dt();function p(g,v,b){v.length?v=e(v,function(j){return m(j)?function(A){return a(A,j.length===1?j[0]:j)}:j}):v=[h];var w=-1;v=e(v,u(r));var N=s(g,function(j,A,E){var M=e(v,function(_){return _(j)});return{criteria:M,index:++w,value:j}});return c(N,function(j,A){return f(j,A,b)})}return Af=p,Af}var Ef,N9;function WF(){if(N9)return Ef;N9=1;var e=Y6(),a=JF(),r=P1(),s=$1(),c=r(function(u,f){if(u==null)return[];var h=f.length;return h>1&&s(u,f[0],f[1])?f=[]:h>2&&s(f[0],f[1],f[2])&&(f=[f[0]]),a(u,e(f,1),[])});return Ef=c,Ef}var jf,_9;function eB(){if(_9)return jf;_9=1;var e=DS(),a=0;function r(s){var c=++a;return e(s)+c}return jf=r,jf}var Sf,C9;function tB(){if(C9)return Sf;C9=1;function e(a,r,s){for(var c=-1,u=a.length,f=r.length,h={};++c<u;){var m=c<f?r[c]:void 0;s(h,a[c],m)}return h}return Sf=e,Sf}var Mf,T9;function aB(){if(T9)return Mf;T9=1;var e=k1(),a=tB();function r(s,c){return a(s||[],c||[],e)}return Mf=r,Mf}var Nf,H9;function Xe(){if(H9)return Nf;H9=1;var e;if(typeof V6=="function")try{e={cloneDeep:vF(),constant:U6(),defaults:yF(),each:TS(),filter:FS(),find:MF(),flatten:rM(),forEach:CS(),forIn:NF(),has:BS(),isUndefined:US(),last:_F(),map:PS(),mapValues:CF(),max:HF(),merge:DF(),min:OF(),minBy:qF(),now:zF(),pick:PF(),range:YF(),reduce:$S(),sortBy:WF(),uniqueId:eB(),values:QS(),zipObject:aB()}}catch{}return e||(e=window._),Nf=e,Nf}var _f,Z9;function nB(){if(Z9)return _f;Z9=1,_f=e;function e(){var s={};s._next=s._prev=s,this._sentinel=s}e.prototype.dequeue=function(){var s=this._sentinel,c=s._prev;if(c!==s)return a(c),c},e.prototype.enqueue=function(s){var c=this._sentinel;s._prev&&s._next&&a(s),s._next=c._next,c._next._prev=s,c._next=s,s._prev=c},e.prototype.toString=function(){for(var s=[],c=this._sentinel,u=c._prev;u!==c;)s.push(JSON.stringify(u,r)),u=u._prev;return"["+s.join(", ")+"]"};function a(s){s._prev._next=s._next,s._next._prev=s._prev,delete s._next,delete s._prev}function r(s,c){if(s!=="_next"&&s!=="_prev")return c}return _f}var Cf,V9;function rB(){if(V9)return Cf;V9=1;var e=Xe(),a=_a().Graph,r=nB();Cf=c;var s=e.constant(1);function c(p,g){if(p.nodeCount()<=1)return[];var v=h(p,g||s),b=u(v.graph,v.buckets,v.zeroIdx);return e.flatten(e.map(b,function(w){return p.outEdges(w.v,w.w)}),!0)}function u(p,g,v){for(var b=[],w=g[g.length-1],N=g[0],j;p.nodeCount();){for(;j=N.dequeue();)f(p,g,v,j);for(;j=w.dequeue();)f(p,g,v,j);if(p.nodeCount()){for(var A=g.length-2;A>0;--A)if(j=g[A].dequeue(),j){b=b.concat(f(p,g,v,j,!0));break}}}return b}function f(p,g,v,b,w){var N=w?[]:void 0;return e.forEach(p.inEdges(b.v),function(j){var A=p.edge(j),E=p.node(j.v);w&&N.push({v:j.v,w:j.w}),E.out-=A,m(g,v,E)}),e.forEach(p.outEdges(b.v),function(j){var A=p.edge(j),E=j.w,M=p.node(E);M.in-=A,m(g,v,M)}),p.removeNode(b.v),N}function h(p,g){var v=new a,b=0,w=0;e.forEach(p.nodes(),function(A){v.setNode(A,{v:A,in:0,out:0})}),e.forEach(p.edges(),function(A){var E=v.edge(A.v,A.w)||0,M=g(A),_=E+M;v.setEdge(A.v,A.w,_),w=Math.max(w,v.node(A.v).out+=M),b=Math.max(b,v.node(A.w).in+=M)});var N=e.range(w+b+3).map(function(){return new r}),j=b+1;return e.forEach(v.nodes(),function(A){m(N,j,v.node(A))}),{graph:v,buckets:N,zeroIdx:j}}function m(p,g,v){v.out?v.in?p[v.out-v.in+g].enqueue(v):p[p.length-1].enqueue(v):p[0].enqueue(v)}return Cf}var Tf,L9;function sB(){if(L9)return Tf;L9=1;var e=Xe(),a=rB();Tf={run:r,undo:c};function r(u){var f=u.graph().acyclicer==="greedy"?a(u,h(u)):s(u);e.forEach(f,function(m){var p=u.edge(m);u.removeEdge(m),p.forwardName=m.name,p.reversed=!0,u.setEdge(m.w,m.v,p,e.uniqueId("rev"))});function h(m){return function(p){return m.edge(p).weight}}}function s(u){var f=[],h={},m={};function p(g){e.has(m,g)||(m[g]=!0,h[g]=!0,e.forEach(u.outEdges(g),function(v){e.has(h,v.w)?f.push(v):p(v.w)}),delete h[g])}return e.forEach(u.nodes(),p),f}function c(u){e.forEach(u.edges(),function(f){var h=u.edge(f);if(h.reversed){u.removeEdge(f);var m=h.forwardName;delete h.reversed,delete h.forwardName,u.setEdge(f.w,f.v,h,m)}})}return Tf}var Hf,R9;function Ft(){if(R9)return Hf;R9=1;var e=Xe(),a=_a().Graph;Hf={addDummyNode:r,simplify:s,asNonCompoundGraph:c,successorWeights:u,predecessorWeights:f,intersectRect:h,buildLayerMatrix:m,normalizeRanks:p,removeEmptyRanks:g,addBorderNode:v,maxRank:b,partition:w,time:N,notime:j};function r(A,E,M,_){var H;do H=e.uniqueId(_);while(A.hasNode(H));return M.dummy=E,A.setNode(H,M),H}function s(A){var E=new a().setGraph(A.graph());return e.forEach(A.nodes(),function(M){E.setNode(M,A.node(M))}),e.forEach(A.edges(),function(M){var _=E.edge(M.v,M.w)||{weight:0,minlen:1},H=A.edge(M);E.setEdge(M.v,M.w,{weight:_.weight+H.weight,minlen:Math.max(_.minlen,H.minlen)})}),E}function c(A){var E=new a({multigraph:A.isMultigraph()}).setGraph(A.graph());return e.forEach(A.nodes(),function(M){A.children(M).length||E.setNode(M,A.node(M))}),e.forEach(A.edges(),function(M){E.setEdge(M,A.edge(M))}),E}function u(A){var E=e.map(A.nodes(),function(M){var _={};return e.forEach(A.outEdges(M),function(H){_[H.w]=(_[H.w]||0)+A.edge(H).weight}),_});return e.zipObject(A.nodes(),E)}function f(A){var E=e.map(A.nodes(),function(M){var _={};return e.forEach(A.inEdges(M),function(H){_[H.v]=(_[H.v]||0)+A.edge(H).weight}),_});return e.zipObject(A.nodes(),E)}function h(A,E){var M=A.x,_=A.y,H=E.x-M,C=E.y-_,Z=A.width/2,T=A.height/2;if(!H&&!C)throw new Error("Not possible to find intersection inside of the rectangle");var L,R;return Math.abs(C)*Z>Math.abs(H)*T?(C<0&&(T=-T),L=T*H/C,R=T):(H<0&&(Z=-Z),L=Z,R=Z*C/H),{x:M+L,y:_+R}}function m(A){var E=e.map(e.range(b(A)+1),function(){return[]});return e.forEach(A.nodes(),function(M){var _=A.node(M),H=_.rank;e.isUndefined(H)||(E[H][_.order]=M)}),E}function p(A){var E=e.min(e.map(A.nodes(),function(M){return A.node(M).rank}));e.forEach(A.nodes(),function(M){var _=A.node(M);e.has(_,"rank")&&(_.rank-=E)})}function g(A){var E=e.min(e.map(A.nodes(),function(C){return A.node(C).rank})),M=[];e.forEach(A.nodes(),function(C){var Z=A.node(C).rank-E;M[Z]||(M[Z]=[]),M[Z].push(C)});var _=0,H=A.graph().nodeRankFactor;e.forEach(M,function(C,Z){e.isUndefined(C)&&Z%H!==0?--_:_&&e.forEach(C,function(T){A.node(T).rank+=_})})}function v(A,E,M,_){var H={width:0,height:0};return arguments.length>=4&&(H.rank=M,H.order=_),r(A,"border",H,E)}function b(A){return e.max(e.map(A.nodes(),function(E){var M=A.node(E).rank;if(!e.isUndefined(M))return M}))}function w(A,E){var M={lhs:[],rhs:[]};return e.forEach(A,function(_){E(_)?M.lhs.push(_):M.rhs.push(_)}),M}function N(A,E){var M=e.now();try{return E()}finally{console.log(A+" time: "+(e.now()-M)+"ms")}}function j(A,E){return E()}return Hf}var Zf,k9;function iB(){if(k9)return Zf;k9=1;var e=Xe(),a=Ft();Zf={run:r,undo:c};function r(u){u.graph().dummyChains=[],e.forEach(u.edges(),function(f){s(u,f)})}function s(u,f){var h=f.v,m=u.node(h).rank,p=f.w,g=u.node(p).rank,v=f.name,b=u.edge(f),w=b.labelRank;if(g!==m+1){u.removeEdge(f);var N,j,A;for(A=0,++m;m<g;++A,++m)b.points=[],j={width:0,height:0,edgeLabel:b,edgeObj:f,rank:m},N=a.addDummyNode(u,"edge",j,"_d"),m===w&&(j.width=b.width,j.height=b.height,j.dummy="edge-label",j.labelpos=b.labelpos),u.setEdge(h,N,{weight:b.weight},v),A===0&&u.graph().dummyChains.push(N),h=N;u.setEdge(h,p,{weight:b.weight},v)}}function c(u){e.forEach(u.graph().dummyChains,function(f){var h=u.node(f),m=h.edgeLabel,p;for(u.setEdge(h.edgeObj,m);h.dummy;)p=u.successors(f)[0],u.removeNode(f),m.points.push({x:h.x,y:h.y}),h.dummy==="edge-label"&&(m.x=h.x,m.y=h.y,m.width=h.width,m.height=h.height),f=p,h=u.node(f)})}return Zf}var Vf,D9;function y1(){if(D9)return Vf;D9=1;var e=Xe();Vf={longestPath:a,slack:r};function a(s){var c={};function u(f){var h=s.node(f);if(e.has(c,f))return h.rank;c[f]=!0;var m=e.min(e.map(s.outEdges(f),function(p){return u(p.w)-s.edge(p).minlen}));return(m===Number.POSITIVE_INFINITY||m===void 0||m===null)&&(m=0),h.rank=m}e.forEach(s.sources(),u)}function r(s,c){return s.node(c.w).rank-s.node(c.v).rank-s.edge(c).minlen}return Vf}var Lf,O9;function oM(){if(O9)return Lf;O9=1;var e=Xe(),a=_a().Graph,r=y1().slack;Lf=s;function s(h){var m=new a({directed:!1}),p=h.nodes()[0],g=h.nodeCount();m.setNode(p,{});for(var v,b;c(m,h)<g;)v=u(m,h),b=m.hasNode(v.v)?r(h,v):-r(h,v),f(m,h,b);return m}function c(h,m){function p(g){e.forEach(m.nodeEdges(g),function(v){var b=v.v,w=g===b?v.w:b;!h.hasNode(w)&&!r(m,v)&&(h.setNode(w,{}),h.setEdge(g,w,{}),p(w))})}return e.forEach(h.nodes(),p),h.nodeCount()}function u(h,m){return e.minBy(m.edges(),function(p){if(h.hasNode(p.v)!==h.hasNode(p.w))return r(m,p)})}function f(h,m,p){e.forEach(h.nodes(),function(g){m.node(g).rank+=p})}return Lf}var Rf,q9;function lB(){if(q9)return Rf;q9=1;var e=Xe(),a=oM(),r=y1().slack,s=y1().longestPath,c=_a().alg.preorder,u=_a().alg.postorder,f=Ft().simplify;Rf=h,h.initLowLimValues=v,h.initCutValues=m,h.calcCutValue=g,h.leaveEdge=w,h.enterEdge=N,h.exchangeEdges=j;function h(_){_=f(_),s(_);var H=a(_);v(H),m(H,_);for(var C,Z;C=w(H);)Z=N(H,_,C),j(H,_,C,Z)}function m(_,H){var C=u(_,_.nodes());C=C.slice(0,C.length-1),e.forEach(C,function(Z){p(_,H,Z)})}function p(_,H,C){var Z=_.node(C),T=Z.parent;_.edge(C,T).cutvalue=g(_,H,C)}function g(_,H,C){var Z=_.node(C),T=Z.parent,L=!0,R=H.edge(C,T),k=0;return R||(L=!1,R=H.edge(T,C)),k=R.weight,e.forEach(H.nodeEdges(C),function(B){var G=B.v===C,Q=G?B.w:B.v;if(Q!==T){var ee=G===L,oe=H.edge(B).weight;if(k+=ee?oe:-oe,E(_,C,Q)){var D=_.edge(C,Q).cutvalue;k+=ee?-D:D}}}),k}function v(_,H){arguments.length<2&&(H=_.nodes()[0]),b(_,{},1,H)}function b(_,H,C,Z,T){var L=C,R=_.node(Z);return H[Z]=!0,e.forEach(_.neighbors(Z),function(k){e.has(H,k)||(C=b(_,H,C,k,Z))}),R.low=L,R.lim=C++,T?R.parent=T:delete R.parent,C}function w(_){return e.find(_.edges(),function(H){return _.edge(H).cutvalue<0})}function N(_,H,C){var Z=C.v,T=C.w;H.hasEdge(Z,T)||(Z=C.w,T=C.v);var L=_.node(Z),R=_.node(T),k=L,B=!1;L.lim>R.lim&&(k=R,B=!0);var G=e.filter(H.edges(),function(Q){return B===M(_,_.node(Q.v),k)&&B!==M(_,_.node(Q.w),k)});return e.minBy(G,function(Q){return r(H,Q)})}function j(_,H,C,Z){var T=C.v,L=C.w;_.removeEdge(T,L),_.setEdge(Z.v,Z.w,{}),v(_),m(_,H),A(_,H)}function A(_,H){var C=e.find(_.nodes(),function(T){return!H.node(T).parent}),Z=c(_,C);Z=Z.slice(1),e.forEach(Z,function(T){var L=_.node(T).parent,R=H.edge(T,L),k=!1;R||(R=H.edge(L,T),k=!0),H.node(T).rank=H.node(L).rank+(k?R.minlen:-R.minlen)})}function E(_,H,C){return _.hasEdge(H,C)}function M(_,H,C){return C.low<=H.lim&&H.lim<=C.lim}return Rf}var kf,z9;function oB(){if(z9)return kf;z9=1;var e=y1(),a=e.longestPath,r=oM(),s=lB();kf=c;function c(m){switch(m.graph().ranker){case"network-simplex":h(m);break;case"tight-tree":f(m);break;case"longest-path":u(m);break;default:h(m)}}var u=a;function f(m){a(m),r(m)}function h(m){s(m)}return kf}var Df,F9;function cB(){if(F9)return Df;F9=1;var e=Xe();Df=a;function a(c){var u=s(c);e.forEach(c.graph().dummyChains,function(f){for(var h=c.node(f),m=h.edgeObj,p=r(c,u,m.v,m.w),g=p.path,v=p.lca,b=0,w=g[b],N=!0;f!==m.w;){if(h=c.node(f),N){for(;(w=g[b])!==v&&c.node(w).maxRank<h.rank;)b++;w===v&&(N=!1)}if(!N){for(;b<g.length-1&&c.node(w=g[b+1]).minRank<=h.rank;)b++;w=g[b]}c.setParent(f,w),f=c.successors(f)[0]}})}function r(c,u,f,h){var m=[],p=[],g=Math.min(u[f].low,u[h].low),v=Math.max(u[f].lim,u[h].lim),b,w;b=f;do b=c.parent(b),m.push(b);while(b&&(u[b].low>g||v>u[b].lim));for(w=b,b=h;(b=c.parent(b))!==w;)p.push(b);return{path:m.concat(p.reverse()),lca:w}}function s(c){var u={},f=0;function h(m){var p=f;e.forEach(c.children(m),h),u[m]={low:p,lim:f++}}return e.forEach(c.children(),h),u}return Df}var Of,B9;function uB(){if(B9)return Of;B9=1;var e=Xe(),a=Ft();Of={run:r,cleanup:f};function r(h){var m=a.addDummyNode(h,"root",{},"_root"),p=c(h),g=e.max(e.values(p))-1,v=2*g+1;h.graph().nestingRoot=m,e.forEach(h.edges(),function(w){h.edge(w).minlen*=v});var b=u(h)+1;e.forEach(h.children(),function(w){s(h,m,v,b,g,p,w)}),h.graph().nodeRankFactor=v}function s(h,m,p,g,v,b,w){var N=h.children(w);if(!N.length){w!==m&&h.setEdge(m,w,{weight:0,minlen:p});return}var j=a.addBorderNode(h,"_bt"),A=a.addBorderNode(h,"_bb"),E=h.node(w);h.setParent(j,w),E.borderTop=j,h.setParent(A,w),E.borderBottom=A,e.forEach(N,function(M){s(h,m,p,g,v,b,M);var _=h.node(M),H=_.borderTop?_.borderTop:M,C=_.borderBottom?_.borderBottom:M,Z=_.borderTop?g:2*g,T=H!==C?1:v-b[w]+1;h.setEdge(j,H,{weight:Z,minlen:T,nestingEdge:!0}),h.setEdge(C,A,{weight:Z,minlen:T,nestingEdge:!0})}),h.parent(w)||h.setEdge(m,j,{weight:0,minlen:v+b[w]})}function c(h){var m={};function p(g,v){var b=h.children(g);b&&b.length&&e.forEach(b,function(w){p(w,v+1)}),m[g]=v}return e.forEach(h.children(),function(g){p(g,1)}),m}function u(h){return e.reduce(h.edges(),function(m,p){return m+h.edge(p).weight},0)}function f(h){var m=h.graph();h.removeNode(m.nestingRoot),delete m.nestingRoot,e.forEach(h.edges(),function(p){var g=h.edge(p);g.nestingEdge&&h.removeEdge(p)})}return Of}var qf,U9;function dB(){if(U9)return qf;U9=1;var e=Xe(),a=Ft();qf=r;function r(c){function u(f){var h=c.children(f),m=c.node(f);if(h.length&&e.forEach(h,u),e.has(m,"minRank")){m.borderLeft=[],m.borderRight=[];for(var p=m.minRank,g=m.maxRank+1;p<g;++p)s(c,"borderLeft","_bl",f,m,p),s(c,"borderRight","_br",f,m,p)}}e.forEach(c.children(),u)}function s(c,u,f,h,m,p){var g={width:0,height:0,rank:p,borderType:u},v=m[u][p-1],b=a.addDummyNode(c,"border",g,f);m[u][p]=b,c.setParent(b,h),v&&c.setEdge(v,b,{weight:1})}return qf}var zf,I9;function fB(){if(I9)return zf;I9=1;var e=Xe();zf={adjust:a,undo:r};function a(p){var g=p.graph().rankdir.toLowerCase();(g==="lr"||g==="rl")&&s(p)}function r(p){var g=p.graph().rankdir.toLowerCase();(g==="bt"||g==="rl")&&u(p),(g==="lr"||g==="rl")&&(h(p),s(p))}function s(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){f(p.node(g))}),e.forEach(p.edges(),function(g){var v=p.edge(g);e.forEach(v.points,f),e.has(v,"y")&&f(v)})}function f(p){p.y=-p.y}function h(p){e.forEach(p.nodes(),function(g){m(p.node(g))}),e.forEach(p.edges(),function(g){var v=p.edge(g);e.forEach(v.points,m),e.has(v,"x")&&m(v)})}function m(p){var g=p.x;p.x=p.y,p.y=g}return zf}var Ff,P9;function hB(){if(P9)return Ff;P9=1;var e=Xe();Ff=a;function a(r){var s={},c=e.filter(r.nodes(),function(p){return!r.children(p).length}),u=e.max(e.map(c,function(p){return r.node(p).rank})),f=e.map(e.range(u+1),function(){return[]});function h(p){if(!e.has(s,p)){s[p]=!0;var g=r.node(p);f[g.rank].push(p),e.forEach(r.successors(p),h)}}var m=e.sortBy(c,function(p){return r.node(p).rank});return e.forEach(m,h),f}return Ff}var Bf,$9;function mB(){if($9)return Bf;$9=1;var e=Xe();Bf=a;function a(s,c){for(var u=0,f=1;f<c.length;++f)u+=r(s,c[f-1],c[f]);return u}function r(s,c,u){for(var f=e.zipObject(u,e.map(u,function(b,w){return w})),h=e.flatten(e.map(c,function(b){return e.sortBy(e.map(s.outEdges(b),function(w){return{pos:f[w.w],weight:s.edge(w).weight}}),"pos")}),!0),m=1;m<u.length;)m<<=1;var p=2*m-1;m-=1;var g=e.map(new Array(p),function(){return 0}),v=0;return e.forEach(h.forEach(function(b){var w=b.pos+m;g[w]+=b.weight;for(var N=0;w>0;)w%2&&(N+=g[w+1]),w=w-1>>1,g[w]+=b.weight;v+=b.weight*N})),v}return Bf}var Uf,G9;function pB(){if(G9)return Uf;G9=1;var e=Xe();Uf=a;function a(r,s){return e.map(s,function(c){var u=r.inEdges(c);if(u.length){var f=e.reduce(u,function(h,m){var p=r.edge(m),g=r.node(m.v);return{sum:h.sum+p.weight*g.order,weight:h.weight+p.weight}},{sum:0,weight:0});return{v:c,barycenter:f.sum/f.weight,weight:f.weight}}else return{v:c}})}return Uf}var If,Y9;function gB(){if(Y9)return If;Y9=1;var e=Xe();If=a;function a(c,u){var f={};e.forEach(c,function(m,p){var g=f[m.v]={indegree:0,in:[],out:[],vs:[m.v],i:p};e.isUndefined(m.barycenter)||(g.barycenter=m.barycenter,g.weight=m.weight)}),e.forEach(u.edges(),function(m){var p=f[m.v],g=f[m.w];!e.isUndefined(p)&&!e.isUndefined(g)&&(g.indegree++,p.out.push(f[m.w]))});var h=e.filter(f,function(m){return!m.indegree});return r(h)}function r(c){var u=[];function f(p){return function(g){g.merged||(e.isUndefined(g.barycenter)||e.isUndefined(p.barycenter)||g.barycenter>=p.barycenter)&&s(p,g)}}function h(p){return function(g){g.in.push(p),--g.indegree===0&&c.push(g)}}for(;c.length;){var m=c.pop();u.push(m),e.forEach(m.in.reverse(),f(m)),e.forEach(m.out,h(m))}return e.map(e.filter(u,function(p){return!p.merged}),function(p){return e.pick(p,["vs","i","barycenter","weight"])})}function s(c,u){var f=0,h=0;c.weight&&(f+=c.barycenter*c.weight,h+=c.weight),u.weight&&(f+=u.barycenter*u.weight,h+=u.weight),c.vs=u.vs.concat(c.vs),c.barycenter=f/h,c.weight=h,c.i=Math.min(u.i,c.i),u.merged=!0}return If}var Pf,K9;function xB(){if(K9)return Pf;K9=1;var e=Xe(),a=Ft();Pf=r;function r(u,f){var h=a.partition(u,function(j){return e.has(j,"barycenter")}),m=h.lhs,p=e.sortBy(h.rhs,function(j){return-j.i}),g=[],v=0,b=0,w=0;m.sort(c(!!f)),w=s(g,p,w),e.forEach(m,function(j){w+=j.vs.length,g.push(j.vs),v+=j.barycenter*j.weight,b+=j.weight,w=s(g,p,w)});var N={vs:e.flatten(g,!0)};return b&&(N.barycenter=v/b,N.weight=b),N}function s(u,f,h){for(var m;f.length&&(m=e.last(f)).i<=h;)f.pop(),u.push(m.vs),h++;return h}function c(u){return function(f,h){return f.barycenter<h.barycenter?-1:f.barycenter>h.barycenter?1:u?h.i-f.i:f.i-h.i}}return Pf}var $f,X9;function vB(){if(X9)return $f;X9=1;var e=Xe(),a=pB(),r=gB(),s=xB();$f=c;function c(h,m,p,g){var v=h.children(m),b=h.node(m),w=b?b.borderLeft:void 0,N=b?b.borderRight:void 0,j={};w&&(v=e.filter(v,function(C){return C!==w&&C!==N}));var A=a(h,v);e.forEach(A,function(C){if(h.children(C.v).length){var Z=c(h,C.v,p,g);j[C.v]=Z,e.has(Z,"barycenter")&&f(C,Z)}});var E=r(A,p);u(E,j);var M=s(E,g);if(w&&(M.vs=e.flatten([w,M.vs,N],!0),h.predecessors(w).length)){var _=h.node(h.predecessors(w)[0]),H=h.node(h.predecessors(N)[0]);e.has(M,"barycenter")||(M.barycenter=0,M.weight=0),M.barycenter=(M.barycenter*M.weight+_.order+H.order)/(M.weight+2),M.weight+=2}return M}function u(h,m){e.forEach(h,function(p){p.vs=e.flatten(p.vs.map(function(g){return m[g]?m[g].vs:g}),!0)})}function f(h,m){e.isUndefined(h.barycenter)?(h.barycenter=m.barycenter,h.weight=m.weight):(h.barycenter=(h.barycenter*h.weight+m.barycenter*m.weight)/(h.weight+m.weight),h.weight+=m.weight)}return $f}var Gf,Q9;function yB(){if(Q9)return Gf;Q9=1;var e=Xe(),a=_a().Graph;Gf=r;function r(c,u,f){var h=s(c),m=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),v=c.parent(p);(g.rank===u||g.minRank<=u&&u<=g.maxRank)&&(m.setNode(p),m.setParent(p,v||h),e.forEach(c[f](p),function(b){var w=b.v===p?b.w:b.v,N=m.edge(w,p),j=e.isUndefined(N)?0:N.weight;m.setEdge(w,p,{weight:c.edge(b).weight+j})}),e.has(g,"minRank")&&m.setNode(p,{borderLeft:g.borderLeft[u],borderRight:g.borderRight[u]}))}),m}function s(c){for(var u;c.hasNode(u=e.uniqueId("_root")););return u}return Gf}var Yf,J9;function bB(){if(J9)return Yf;J9=1;var e=Xe();Yf=a;function a(r,s,c){var u={},f;e.forEach(c,function(h){for(var m=r.parent(h),p,g;m;){if(p=r.parent(m),p?(g=u[p],u[p]=m):(g=f,f=m),g&&g!==m){s.setEdge(g,m);return}m=p}})}return Yf}var Kf,W9;function wB(){if(W9)return Kf;W9=1;var e=Xe(),a=hB(),r=mB(),s=vB(),c=yB(),u=bB(),f=_a().Graph,h=Ft();Kf=m;function m(b){var w=h.maxRank(b),N=p(b,e.range(1,w+1),"inEdges"),j=p(b,e.range(w-1,-1,-1),"outEdges"),A=a(b);v(b,A);for(var E=Number.POSITIVE_INFINITY,M,_=0,H=0;H<4;++_,++H){g(_%2?N:j,_%4>=2),A=h.buildLayerMatrix(b);var C=r(b,A);C<E&&(H=0,M=e.cloneDeep(A),E=C)}v(b,M)}function p(b,w,N){return e.map(w,function(j){return c(b,j,N)})}function g(b,w){var N=new f;e.forEach(b,function(j){var A=j.graph().root,E=s(j,A,N,w);e.forEach(E.vs,function(M,_){j.node(M).order=_}),u(j,N,E.vs)})}function v(b,w){e.forEach(w,function(N){e.forEach(N,function(j,A){b.node(j).order=A})})}return Kf}var Xf,ew;function AB(){if(ew)return Xf;ew=1;var e=Xe(),a=_a().Graph,r=Ft();Xf={positionX:N,findType1Conflicts:s,findType2Conflicts:c,addConflict:f,hasConflict:h,verticalAlignment:m,horizontalCompaction:p,alignCoordinates:b,findSmallestWidthAlignment:v,balance:w};function s(E,M){var _={};function H(C,Z){var T=0,L=0,R=C.length,k=e.last(Z);return e.forEach(Z,function(B,G){var Q=u(E,B),ee=Q?E.node(Q).order:R;(Q||B===k)&&(e.forEach(Z.slice(L,G+1),function(oe){e.forEach(E.predecessors(oe),function(D){var $=E.node(D),ne=$.order;(ne<T||ee<ne)&&!($.dummy&&E.node(oe).dummy)&&f(_,D,oe)})}),L=G+1,T=ee)}),Z}return e.reduce(M,H),_}function c(E,M){var _={};function H(Z,T,L,R,k){var B;e.forEach(e.range(T,L),function(G){B=Z[G],E.node(B).dummy&&e.forEach(E.predecessors(B),function(Q){var ee=E.node(Q);ee.dummy&&(ee.order<R||ee.order>k)&&f(_,Q,B)})})}function C(Z,T){var L=-1,R,k=0;return e.forEach(T,function(B,G){if(E.node(B).dummy==="border"){var Q=E.predecessors(B);Q.length&&(R=E.node(Q[0]).order,H(T,k,G,L,R),k=G,L=R)}H(T,k,T.length,R,Z.length)}),T}return e.reduce(M,C),_}function u(E,M){if(E.node(M).dummy)return e.find(E.predecessors(M),function(_){return E.node(_).dummy})}function f(E,M,_){if(M>_){var H=M;M=_,_=H}var C=E[M];C||(E[M]=C={}),C[_]=!0}function h(E,M,_){if(M>_){var H=M;M=_,_=H}return e.has(E[M],_)}function m(E,M,_,H){var C={},Z={},T={};return e.forEach(M,function(L){e.forEach(L,function(R,k){C[R]=R,Z[R]=R,T[R]=k})}),e.forEach(M,function(L){var R=-1;e.forEach(L,function(k){var B=H(k);if(B.length){B=e.sortBy(B,function(D){return T[D]});for(var G=(B.length-1)/2,Q=Math.floor(G),ee=Math.ceil(G);Q<=ee;++Q){var oe=B[Q];Z[k]===k&&R<T[oe]&&!h(_,k,oe)&&(Z[oe]=k,Z[k]=C[k]=C[oe],R=T[oe])}}})}),{root:C,align:Z}}function p(E,M,_,H,C){var Z={},T=g(E,M,_,C),L=C?"borderLeft":"borderRight";function R(G,Q){for(var ee=T.nodes(),oe=ee.pop(),D={};oe;)D[oe]?G(oe):(D[oe]=!0,ee.push(oe),ee=ee.concat(Q(oe))),oe=ee.pop()}function k(G){Z[G]=T.inEdges(G).reduce(function(Q,ee){return Math.max(Q,Z[ee.v]+T.edge(ee))},0)}function B(G){var Q=T.outEdges(G).reduce(function(oe,D){return Math.min(oe,Z[D.w]-T.edge(D))},Number.POSITIVE_INFINITY),ee=E.node(G);Q!==Number.POSITIVE_INFINITY&&ee.borderType!==L&&(Z[G]=Math.max(Z[G],Q))}return R(k,T.predecessors.bind(T)),R(B,T.successors.bind(T)),e.forEach(H,function(G){Z[G]=Z[_[G]]}),Z}function g(E,M,_,H){var C=new a,Z=E.graph(),T=j(Z.nodesep,Z.edgesep,H);return e.forEach(M,function(L){var R;e.forEach(L,function(k){var B=_[k];if(C.setNode(B),R){var G=_[R],Q=C.edge(G,B);C.setEdge(G,B,Math.max(T(E,k,R),Q||0))}R=k})}),C}function v(E,M){return e.minBy(e.values(M),function(_){var H=Number.NEGATIVE_INFINITY,C=Number.POSITIVE_INFINITY;return e.forIn(_,function(Z,T){var L=A(E,T)/2;H=Math.max(Z+L,H),C=Math.min(Z-L,C)}),H-C})}function b(E,M){var _=e.values(M),H=e.min(_),C=e.max(_);e.forEach(["u","d"],function(Z){e.forEach(["l","r"],function(T){var L=Z+T,R=E[L],k;if(R!==M){var B=e.values(R);k=T==="l"?H-e.min(B):C-e.max(B),k&&(E[L]=e.mapValues(R,function(G){return G+k}))}})})}function w(E,M){return e.mapValues(E.ul,function(_,H){if(M)return E[M.toLowerCase()][H];var C=e.sortBy(e.map(E,H));return(C[1]+C[2])/2})}function N(E){var M=r.buildLayerMatrix(E),_=e.merge(s(E,M),c(E,M)),H={},C;e.forEach(["u","d"],function(T){C=T==="u"?M:e.values(M).reverse(),e.forEach(["l","r"],function(L){L==="r"&&(C=e.map(C,function(G){return e.values(G).reverse()}));var R=(T==="u"?E.predecessors:E.successors).bind(E),k=m(E,C,_,R),B=p(E,C,k.root,k.align,L==="r");L==="r"&&(B=e.mapValues(B,function(G){return-G})),H[T+L]=B})});var Z=v(E,H);return b(H,Z),w(H,E.graph().align)}function j(E,M,_){return function(H,C,Z){var T=H.node(C),L=H.node(Z),R=0,k;if(R+=T.width/2,e.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":k=-T.width/2;break;case"r":k=T.width/2;break}if(k&&(R+=_?k:-k),k=0,R+=(T.dummy?M:E)/2,R+=(L.dummy?M:E)/2,R+=L.width/2,e.has(L,"labelpos"))switch(L.labelpos.toLowerCase()){case"l":k=L.width/2;break;case"r":k=-L.width/2;break}return k&&(R+=_?k:-k),k=0,R}}function A(E,M){return E.node(M).width}return Xf}var Qf,tw;function EB(){if(tw)return Qf;tw=1;var e=Xe(),a=Ft(),r=AB().positionX;Qf=s;function s(u){u=a.asNonCompoundGraph(u),c(u),e.forEach(r(u),function(f,h){u.node(h).x=f})}function c(u){var f=a.buildLayerMatrix(u),h=u.graph().ranksep,m=0;e.forEach(f,function(p){var g=e.max(e.map(p,function(v){return u.node(v).height}));e.forEach(p,function(v){u.node(v).y=m+g/2}),m+=g+h})}return Qf}var Jf,aw;function jB(){if(aw)return Jf;aw=1;var e=Xe(),a=sB(),r=iB(),s=oB(),c=Ft().normalizeRanks,u=cB(),f=Ft().removeEmptyRanks,h=uB(),m=dB(),p=fB(),g=wB(),v=EB(),b=Ft(),w=_a().Graph;Jf=N;function N(F,z){var I=z&&z.debugTiming?b.time:b.notime;I("layout",function(){var ie=I(" buildLayoutGraph",function(){return R(F)});I(" runLayout",function(){j(ie,I)}),I(" updateInputGraph",function(){A(F,ie)})})}function j(F,z){z(" makeSpaceForEdgeLabels",function(){k(F)}),z(" removeSelfEdges",function(){ue(F)}),z(" acyclic",function(){a.run(F)}),z(" nestingGraph.run",function(){h.run(F)}),z(" rank",function(){s(b.asNonCompoundGraph(F))}),z(" injectEdgeLabelProxies",function(){B(F)}),z(" removeEmptyRanks",function(){f(F)}),z(" nestingGraph.cleanup",function(){h.cleanup(F)}),z(" normalizeRanks",function(){c(F)}),z(" assignRankMinMax",function(){G(F)}),z(" removeEdgeLabelProxies",function(){Q(F)}),z(" normalize.run",function(){r.run(F)}),z(" parentDummyChains",function(){u(F)}),z(" addBorderSegments",function(){m(F)}),z(" order",function(){g(F)}),z(" insertSelfEdges",function(){de(F)}),z(" adjustCoordinateSystem",function(){p.adjust(F)}),z(" position",function(){v(F)}),z(" positionSelfEdges",function(){q(F)}),z(" removeBorderNodes",function(){ne(F)}),z(" normalize.undo",function(){r.undo(F)}),z(" fixupEdgeLabelCoords",function(){D(F)}),z(" undoCoordinateSystem",function(){p.undo(F)}),z(" translateGraph",function(){ee(F)}),z(" assignNodeIntersects",function(){oe(F)}),z(" reversePoints",function(){$(F)}),z(" acyclic.undo",function(){a.undo(F)})}function A(F,z){e.forEach(F.nodes(),function(I){var ie=F.node(I),fe=z.node(I);ie&&(ie.x=fe.x,ie.y=fe.y,z.children(I).length&&(ie.width=fe.width,ie.height=fe.height))}),e.forEach(F.edges(),function(I){var ie=F.edge(I),fe=z.edge(I);ie.points=fe.points,e.has(fe,"x")&&(ie.x=fe.x,ie.y=fe.y)}),F.graph().width=z.graph().width,F.graph().height=z.graph().height}var E=["nodesep","edgesep","ranksep","marginx","marginy"],M={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],H=["width","height"],C={width:0,height:0},Z=["minlen","weight","width","height","labeloffset"],T={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},L=["labelpos"];function R(F){var z=new w({multigraph:!0,compound:!0}),I=re(F.graph());return z.setGraph(e.merge({},M,W(I,E),e.pick(I,_))),e.forEach(F.nodes(),function(ie){var fe=re(F.node(ie));z.setNode(ie,e.defaults(W(fe,H),C)),z.setParent(ie,F.parent(ie))}),e.forEach(F.edges(),function(ie){var fe=re(F.edge(ie));z.setEdge(ie,e.merge({},T,W(fe,Z),e.pick(fe,L)))}),z}function k(F){var z=F.graph();z.ranksep/=2,e.forEach(F.edges(),function(I){var ie=F.edge(I);ie.minlen*=2,ie.labelpos.toLowerCase()!=="c"&&(z.rankdir==="TB"||z.rankdir==="BT"?ie.width+=ie.labeloffset:ie.height+=ie.labeloffset)})}function B(F){e.forEach(F.edges(),function(z){var I=F.edge(z);if(I.width&&I.height){var ie=F.node(z.v),fe=F.node(z.w),be={rank:(fe.rank-ie.rank)/2+ie.rank,e:z};b.addDummyNode(F,"edge-proxy",be,"_ep")}})}function G(F){var z=0;e.forEach(F.nodes(),function(I){var ie=F.node(I);ie.borderTop&&(ie.minRank=F.node(ie.borderTop).rank,ie.maxRank=F.node(ie.borderBottom).rank,z=e.max(z,ie.maxRank))}),F.graph().maxRank=z}function Q(F){e.forEach(F.nodes(),function(z){var I=F.node(z);I.dummy==="edge-proxy"&&(F.edge(I.e).labelRank=I.rank,F.removeNode(z))})}function ee(F){var z=Number.POSITIVE_INFINITY,I=0,ie=Number.POSITIVE_INFINITY,fe=0,be=F.graph(),le=be.marginx||0,ve=be.marginy||0;function Ae(Je){var Ge=Je.x,_e=Je.y,xa=Je.width,Ze=Je.height;z=Math.min(z,Ge-xa/2),I=Math.max(I,Ge+xa/2),ie=Math.min(ie,_e-Ze/2),fe=Math.max(fe,_e+Ze/2)}e.forEach(F.nodes(),function(Je){Ae(F.node(Je))}),e.forEach(F.edges(),function(Je){var Ge=F.edge(Je);e.has(Ge,"x")&&Ae(Ge)}),z-=le,ie-=ve,e.forEach(F.nodes(),function(Je){var Ge=F.node(Je);Ge.x-=z,Ge.y-=ie}),e.forEach(F.edges(),function(Je){var Ge=F.edge(Je);e.forEach(Ge.points,function(_e){_e.x-=z,_e.y-=ie}),e.has(Ge,"x")&&(Ge.x-=z),e.has(Ge,"y")&&(Ge.y-=ie)}),be.width=I-z+le,be.height=fe-ie+ve}function oe(F){e.forEach(F.edges(),function(z){var I=F.edge(z),ie=F.node(z.v),fe=F.node(z.w),be,le;I.points?(be=I.points[0],le=I.points[I.points.length-1]):(I.points=[],be=fe,le=ie),I.points.unshift(b.intersectRect(ie,be)),I.points.push(b.intersectRect(fe,le))})}function D(F){e.forEach(F.edges(),function(z){var I=F.edge(z);if(e.has(I,"x"))switch((I.labelpos==="l"||I.labelpos==="r")&&(I.width-=I.labeloffset),I.labelpos){case"l":I.x-=I.width/2+I.labeloffset;break;case"r":I.x+=I.width/2+I.labeloffset;break}})}function $(F){e.forEach(F.edges(),function(z){var I=F.edge(z);I.reversed&&I.points.reverse()})}function ne(F){e.forEach(F.nodes(),function(z){if(F.children(z).length){var I=F.node(z),ie=F.node(I.borderTop),fe=F.node(I.borderBottom),be=F.node(e.last(I.borderLeft)),le=F.node(e.last(I.borderRight));I.width=Math.abs(le.x-be.x),I.height=Math.abs(fe.y-ie.y),I.x=be.x+I.width/2,I.y=ie.y+I.height/2}}),e.forEach(F.nodes(),function(z){F.node(z).dummy==="border"&&F.removeNode(z)})}function ue(F){e.forEach(F.edges(),function(z){if(z.v===z.w){var I=F.node(z.v);I.selfEdges||(I.selfEdges=[]),I.selfEdges.push({e:z,label:F.edge(z)}),F.removeEdge(z)}})}function de(F){var z=b.buildLayerMatrix(F);e.forEach(z,function(I){var ie=0;e.forEach(I,function(fe,be){var le=F.node(fe);le.order=be+ie,e.forEach(le.selfEdges,function(ve){b.addDummyNode(F,"selfedge",{width:ve.label.width,height:ve.label.height,rank:le.rank,order:be+ ++ie,e:ve.e,label:ve.label},"_se")}),delete le.selfEdges})})}function q(F){e.forEach(F.nodes(),function(z){var I=F.node(z);if(I.dummy==="selfedge"){var ie=F.node(I.e.v),fe=ie.x+ie.width/2,be=ie.y,le=I.x-fe,ve=ie.height/2;F.setEdge(I.e,I.label),F.removeNode(z),I.label.points=[{x:fe+2*le/3,y:be-ve},{x:fe+5*le/6,y:be-ve},{x:fe+le,y:be},{x:fe+5*le/6,y:be+ve},{x:fe+2*le/3,y:be+ve}],I.label.x=I.x,I.label.y=I.y}})}function W(F,z){return e.mapValues(e.pick(F,z),Number)}function re(F){var z={};return e.forEach(F,function(I,ie){z[ie.toLowerCase()]=I}),z}return Jf}var Wf,nw;function SB(){if(nw)return Wf;nw=1;var e=Xe(),a=Ft(),r=_a().Graph;Wf={debugOrdering:s};function s(c){var u=a.buildLayerMatrix(c),f=new r({compound:!0,multigraph:!0}).setGraph({});return e.forEach(c.nodes(),function(h){f.setNode(h,{label:h}),f.setParent(h,"layer"+c.node(h).rank)}),e.forEach(c.edges(),function(h){f.setEdge(h.v,h.w,{},h.name)}),e.forEach(u,function(h,m){var p="layer"+m;f.setNode(p,{rank:"same"}),e.reduce(h,function(g,v){return f.setEdge(g,v,{style:"invis"}),v})}),f}return Wf}var eh,rw;function MB(){return rw||(rw=1,eh="0.8.5"),eh}var th,sw;function NB(){return sw||(sw=1,th={graphlib:_a(),layout:jB(),debug:SB(),util:{time:Ft().time,notime:Ft().notime},version:MB()}),th}var _B=NB();const iw=Z_(_B),ah=280,nh=80,rh=200,lw=40,CB=80,TB=100,HB=60;function ZB(e,a){const r=new iw.graphlib.Graph;r.setDefaultEdgeLabel(()=>({})),r.setGraph({rankdir:"TB",nodesep:CB,ranksep:TB,marginx:40,marginy:40});for(const f of e){const h=f.type==="addStep";r.setNode(f.id,{width:h?rh:ah,height:h?lw:nh})}for(const f of a)r.setEdge(f.source,f.target);iw.layout(r);const s=new Map;for(const f of a){const h=e.find(m=>m.id===f.target);(h==null?void 0:h.type)==="addStep"&&s.set(f.target,f.source)}const c=e.map(f=>{const h=r.node(f.id);if(!h)return f;const m=f.type==="addStep",p=m?rh:ah,g=m?lw:nh;return{...f,position:{x:h.x-p/2,y:h.y-g/2}}}),u=new Map(c.map(f=>[f.id,f]));for(const f of c){if(f.type!=="addStep")continue;const h=s.get(f.id);if(!h)continue;const m=u.get(h);if(!m)continue;const p=m.type==="conditional"?{width:280,height:100}:{width:ah,height:nh};f.position={x:m.position.x+(p.width-rh)/2,y:m.position.y+p.height+HB}}return c}function VB(){return{applyLayout:i.useCallback((a,r)=>a.length===0?a:ZB(a,r),[])}}const l1=280,$0=80,LB=100,Q0=200,ow=40,RB=80,cM=60;function kB(e,a){const r=new Map;for(const c of a){const u=e.find(f=>f.id===c.target);(u==null?void 0:u.type)==="addStep"&&r.set(c.target,c.source)}const s=new Map(e.map(c=>[c.id,c]));return e.map(c=>{if(c.type!=="addStep")return c;const u=r.get(c.id);if(!u)return c;const f=s.get(u);if(!f)return c;const h=f.type==="conditional"?LB:$0,m=f.type==="addStep"?Q0:l1;return{...c,position:{x:f.position.x+(m-Q0)/2,y:f.position.y+h+cM}}})}function cw(e){let a=0;for(const r of e)if(r.type==="step"||r.type==="conditional"){const s=r.id.match(/^step_(\d+)$/);s&&(a=Math.max(a,parseInt(s[1],10)))}return`step_${a+1}`}function Xl(e,a){const r=new Set(e.map(c=>c.id)),s=new Set;return a.filter(c=>{if(!r.has(c.source)||!r.has(c.target))return!1;const u=`${c.source}|${c.sourceHandle??""}|${c.target}`;return s.has(u)?!1:(s.add(u),!0)})}function DB(e,a){const r=new Set,s=[e];for(;s.length>0;){const c=s.shift();for(const u of a)u.source===c&&!r.has(u.target)&&(r.add(u.target),s.push(u.target))}return r}function OB(e,a,r){const{applyLayout:s}=VB(),[c]=i.useState(()=>r!=null&&r.hasCustomPositions?kB(e,a):s(e,a)),[u,f]=i.useState(c),[h,m]=i.useState(a),[p,g]=i.useState(null),v=i.useRef(a),b=i.useRef(c);i.useEffect(()=>{v.current=h},[h]),i.useEffect(()=>{b.current=u},[u]);const w=u.find(Z=>Z.id===p)||null,N=i.useCallback((Z,T)=>{f(L=>L.map(R=>R.id===Z?{...R,position:T}:R))},[f]),j=i.useCallback((Z,T)=>{f(L=>L.map(R=>R.id===Z?{...R,data:{...R.data,...T}}:R))},[f]),A=i.useCallback((Z,T="run_agent")=>{const L=b.current,R=v.current,k=Mr(Z),B=L.find(Ae=>Ae.id===k),G=B==null?void 0:B.data,Q=G==null?void 0:G.branchType,ee=G==null?void 0:G.conditionalNodeId,oe=L.filter(Ae=>Ae.type==="step"||Ae.type==="conditional").length,D=cw(L),$={action_type:T,action_config:{}},ne={stepIndex:Q?-1:oe,stepId:D,stepType:T,label:Yn[T]||T,actionConfig:{},outputFields:Cr($)};Q&&ee&&(ne.branchType=Q,ne.parentConditionalId=ee);const ue=(B==null?void 0:B.position)??{x:0,y:0},de=ue.x+(Q0-l1)/2,q=ue.y+(ow-$0)/2,W={id:D,type:"step",position:{x:de,y:q},data:ne},re=R.find(Ae=>Ae.source===Z&&Ae.target===k),F=re==null?void 0:re.sourceHandle;let z=R.filter(Ae=>!(Ae.source===Z&&Ae.target===k));z.push({id:`${Z}->${D}`,source:Z,sourceHandle:F||void 0,target:D,type:"dataFlow",data:Q?{branchType:Q}:void 0});const I=Mr(D),ie=de+(l1-Q0)/2,fe=q+$0+cM,be={id:I,type:"addStep",position:{x:ie,y:fe},data:{parentNodeId:D,insertIndex:oe+1,...Q?{branchType:Q,conditionalNodeId:ee}:{}}};z.push({id:`${D}->${I}`,source:D,target:I,type:"addStepEdge",data:Q?{branchType:Q}:void 0});const le=L.filter(Ae=>Ae.id!==k);z=z.filter(Ae=>Ae.source!==k&&Ae.target!==k);const ve=[...le,W,be];f(ve),m(Xl(ve,z)),g(D)},[f,m]),E=i.useCallback(Z=>{var D;const T=b.current,L=v.current,R=T.find($=>$.id===Z);if(!R||R.type==="trigger")return;const k=L.find($=>$.target===Z),B=L.filter($=>$.source===Z),G=k==null?void 0:k.source;let Q=L.filter($=>$.source!==Z&&$.target!==Z);const ee=Mr(Z);Q=Q.filter($=>$.source!==ee&&$.target!==ee);let oe=T.filter($=>$.id!==Z&&$.id!==ee);if(G){const $=k==null?void 0:k.sourceHandle,ne=(D=k==null?void 0:k.data)==null?void 0:D.branchType,ue=B.find(de=>{const q=T.find(W=>W.id===de.target);return q&&q.type!=="addStep"});if(ue)Q.push({id:`${G}->${ue.target}`,source:G,sourceHandle:$,target:ue.target,type:"dataFlow",data:ne?{branchType:ne}:void 0});else{const de=R.position,q=Mr(G),W={id:q,type:"addStep",position:{x:de.x+(l1-Q0)/2,y:de.y+($0-ow)/2},data:{parentNodeId:G,insertIndex:0,...ne?{branchType:ne,conditionalNodeId:G}:{}}};Q.push({id:`${G}->${q}`,source:G,sourceHandle:$,target:q,type:"addStepEdge",data:ne?{branchType:ne}:void 0}),oe=[...oe,W]}}f(oe),m(Xl(oe,Q)),g(null)},[f,m]),M=i.useCallback((Z,T,L,R)=>{const k=b.current,B=v.current,G=k.find($=>$.id===Z),Q=k.find($=>$.id===L);if(!G||!Q||B.find($=>$.source===Z&&$.sourceHandle===(T==="source"?void 0:T)&&$.target===L))return;let oe=B.filter($=>$.source!==Z?!0:($.sourceHandle||"source")!==T);oe=oe.filter($=>$.target!==L||$.type==="addStepEdge");const D=T==="then"||T==="else"?T:void 0;oe.push({id:`${Z}->${L}`,source:Z,sourceHandle:T==="source"?void 0:T,target:L,type:"dataFlow",data:D?{branchType:D}:void 0}),m(Xl(k,oe))},[]),_=i.useCallback((Z,T)=>{var z;const L=b.current,R=v.current,k=L.find(I=>I.id===Z),B=L.find(I=>I.id===T);if(!k||!B)return;const G=cw(L),Q=R.find(I=>I.source===Z&&I.target===T),ee=(z=Q==null?void 0:Q.data)==null?void 0:z.branchType,oe={action_type:"run_agent",action_config:{}},D=(k.position.x+B.position.x)/2,$=(k.position.y+B.position.y)/2,ne={stepIndex:ee?-1:L.filter(I=>I.type==="step"||I.type==="conditional").length,stepId:G,stepType:"run_agent",label:Yn.run_agent,actionConfig:{},outputFields:Cr(oe)};ee&&Z&&(ne.branchType=ee,ne.parentConditionalId=Z);const ue={id:G,type:"step",position:{x:D,y:$},data:ne},de=$0+RB,q=DB(T,R);q.add(T);const W=L.map(I=>q.has(I.id)?{...I,position:{x:I.position.x,y:I.position.y+de}}:I),re=[...R.filter(I=>!(I.source===Z&&I.target===T)),{id:`${Z}->${G}`,source:Z,sourceHandle:Q==null?void 0:Q.sourceHandle,target:G,type:"dataFlow",data:ee?{branchType:ee}:void 0},{id:`${G}->${T}`,source:G,target:T,type:"dataFlow",data:ee?{branchType:ee}:void 0}],F=[...W,ue];f(F),m(Xl(F,re)),g(G)},[f,m]),H=i.useCallback((Z,T)=>{if(T.type==="addStep"){const L=T.data;A(L.parentNodeId)}else g(T.id)},[A]),C=i.useCallback(()=>{g(null)},[]);return{nodes:u,edges:h,selectedNodeId:p,selectedNode:w,onNodeClick:H,onPaneClick:C,updateNodeData:j,updateNodePosition:N,addStep:A,deleteStep:E,connectNodes:M,insertStepBetween:_,setSelectedNodeId:g,setNodes:f,setEdges:m}}const qB={trigger:{width:280,height:80},step:{width:280,height:80},conditional:{width:280,height:100},addStep:{width:200,height:40}};function zB(e){return e.width&&e.height?{width:e.width,height:e.height}:qB[e.type||"step"]||{width:280,height:80}}function FB(e){const a=new Map;for(const r of e){const{width:s,height:c}=zB(r),u=r.position.x+s/2;switch(r.type){case"trigger":a.set(`${r.id}:source`,{nodeId:r.id,handleId:"source",type:"source",x:u,y:r.position.y+c});break;case"step":a.set(`${r.id}:target`,{nodeId:r.id,handleId:"target",type:"target",x:u,y:r.position.y}),a.set(`${r.id}:source`,{nodeId:r.id,handleId:"source",type:"source",x:u,y:r.position.y+c});break;case"conditional":a.set(`${r.id}:target`,{nodeId:r.id,handleId:"target",type:"target",x:u,y:r.position.y}),a.set(`${r.id}:then`,{nodeId:r.id,handleId:"then",type:"source",x:r.position.x+s*.35,y:r.position.y+c}),a.set(`${r.id}:else`,{nodeId:r.id,handleId:"else",type:"source",x:r.position.x+s*.65,y:r.position.y+c}),a.set(`${r.id}:source`,{nodeId:r.id,handleId:"source",type:"source",x:u,y:r.position.y+c});break;case"addStep":a.set(`${r.id}:target`,{nodeId:r.id,handleId:"target",type:"target",x:u,y:r.position.y});break;default:a.set(`${r.id}:target`,{nodeId:r.id,handleId:"target",type:"target",x:u,y:r.position.y}),a.set(`${r.id}:source`,{nodeId:r.id,handleId:"source",type:"source",x:u,y:r.position.y+c});break}}return a}function BB(e,a){const r=e.sourceHandle||"source",s=`${e.source}:${r}`,c=a.get(s),u=e.targetHandle||"target",f=`${e.target}:${u}`,h=a.get(f);return!c||!h?null:{sourceX:c.x,sourceY:c.y,targetX:h.x,targetY:h.y}}function uw(e,a,r,s,c=16){const u=r-e,f=s-a;if(Math.abs(u)<1)return`M ${e} ${a} L ${r} ${s}`;const h=a+f/2,m=Math.min(c,Math.abs(u)/2,Math.abs(f)/4),p=u>0?1:-1;return[`M ${e} ${a}`,`L ${e} ${h-m}`,`Q ${e} ${h} ${e+p*m} ${h}`,`L ${r-p*m} ${h}`,`Q ${r} ${h} ${r} ${h+m}`,`L ${r} ${s}`].join(" ")}const sh=.3,ih=2,dw=.2,UB=.002;function IB(e,a={}){const{fitViewOnMount:r=!0,fitViewPadding:s=.3}=a,[c,u]=i.useState({x:0,y:0,zoom:1}),[f,h]=i.useState(!1),m=i.useRef(null),p=i.useRef(!1),g=i.useRef({x:0,y:0}),v=i.useRef({x:0,y:0}),b=i.useRef(!1),w=i.useCallback(C=>{if(C.length===0)return{minX:0,minY:0,maxX:100,maxY:100};let Z=1/0,T=1/0,L=-1/0,R=-1/0;for(const k of C){const B=k.width||280,G=k.height||80;Z=Math.min(Z,k.position.x),T=Math.min(T,k.position.y),L=Math.max(L,k.position.x+B),R=Math.max(R,k.position.y+G)}return{minX:Z,minY:T,maxX:L,maxY:R}},[]),N=i.useCallback(C=>{const Z=m.current;if(!Z)return;const T=C||e;if(T.length===0)return;const{minX:L,minY:R,maxX:k,maxY:B}=w(T),G=k-L,Q=B-R,ee=Z.clientWidth,oe=Z.clientHeight;if(ee===0||oe===0)return;const D=ee/(G*(1+s)),$=oe/(Q*(1+s)),ne=Math.min(Math.max(Math.min(D,$),sh),ih),ue=(L+k)/2,de=(R+B)/2;u({x:ee/2-ue*ne,y:oe/2-de*ne,zoom:ne})},[e,w,s]);i.useEffect(()=>{if(r&&!b.current&&e.length>0){const C=setTimeout(()=>{N(),b.current=!0},50);return()=>clearTimeout(C)}},[r,e.length,N]);const j=i.useCallback(C=>{C.preventDefault();const Z=m.current;if(!Z)return;const T=Z.getBoundingClientRect(),L=C.clientX-T.left,R=C.clientY-T.top;u(k=>{const B=-C.deltaY*UB,G=Math.min(Math.max(k.zoom+B*k.zoom,sh),ih),Q=G/k.zoom;return{x:L-(L-k.x)*Q,y:R-(R-k.y)*Q,zoom:G}})},[]),A=i.useCallback(C=>{C.button===0&&(p.current=!0,h(!0),g.current={x:C.clientX,y:C.clientY},v.current={x:c.x,y:c.y},C.target.setPointerCapture(C.pointerId))},[c.x,c.y]),E=i.useCallback(C=>{if(!p.current)return;const Z=C.clientX-g.current.x,T=C.clientY-g.current.y;u(L=>({...L,x:v.current.x+Z,y:v.current.y+T}))},[]),M=i.useCallback(()=>{p.current=!1,h(!1)},[]),_=i.useCallback(()=>{u(C=>{const Z=m.current;if(!Z)return C;const T=Z.clientWidth/2,L=Z.clientHeight/2,R=Math.min(C.zoom+dw,ih),k=R/C.zoom;return{x:T-(T-C.x)*k,y:L-(L-C.y)*k,zoom:R}})},[]),H=i.useCallback(()=>{u(C=>{const Z=m.current;if(!Z)return C;const T=Z.clientWidth/2,L=Z.clientHeight/2,R=Math.max(C.zoom-dw,sh),k=R/C.zoom;return{x:T-(T-C.x)*k,y:L-(L-C.y)*k,zoom:R}})},[]);return{viewport:c,isPanning:f,containerRef:m,onWheel:j,onPointerDown:A,onPointerMove:E,onPointerUp:M,fitView:N,zoomIn:_,zoomOut:H}}const PB=20;function $B({containerRef:e,viewport:a,handleMap:r,onConnect:s}){const[c,u]=i.useState(null),[f,h]=i.useState(null),m=i.useRef(null),p=i.useRef(null),g=i.useRef(null),v=i.useCallback((E,M)=>{var H;const _=(H=e.current)==null?void 0:H.getBoundingClientRect();return _?{x:(E-_.left-a.x)/a.zoom,y:(M-_.top-a.y)/a.zoom}:{x:E,y:M}},[e,a]),b=i.useCallback((E,M,_)=>{const H=_.sourceType==="source"?"target":"source";let C=PB,Z=null;for(const T of r.values()){if(T.type!==H||T.nodeId===_.sourceNodeId)continue;const L=T.x-E,R=T.y-M,k=Math.sqrt(L*L+R*R);k<C&&(C=k,Z={nodeId:T.nodeId,handleId:T.handleId})}return Z},[r]),w=i.useCallback((E,M,_,H)=>{var T;E.stopPropagation(),E.preventDefault();const C=v(E.clientX,E.clientY),Z={sourceNodeId:M,sourceHandleId:_,sourceType:H,cursorX:C.x,cursorY:C.y};m.current=Z,u(Z),(T=e.current)==null||T.setPointerCapture(E.pointerId),g.current=E.pointerId},[v,e]),N=i.useCallback(E=>{if(!m.current)return;const M=v(E.clientX,E.clientY),_={...m.current,cursorX:M.x,cursorY:M.y};m.current=_,u(_);const H=b(M.x,M.y,_);p.current=H,h(H)},[v,b]),j=i.useCallback(E=>{var H;const M=m.current;let _=p.current;if(M&&!_&&E){const C=v(E.clientX,E.clientY);_=b(C.x,C.y,M)}M&&_&&s&&(M.sourceType==="source"?s(M.sourceNodeId,M.sourceHandleId,_.nodeId,_.handleId):s(_.nodeId,_.handleId,M.sourceNodeId,M.sourceHandleId)),g.current!==null&&((H=e.current)==null||H.releasePointerCapture(g.current),g.current=null),m.current=null,p.current=null,u(null),h(null)},[s,e,v,b]);return{connectionDrag:c,handleInteractionProps:{onPointerDown:w,activeDropTarget:f},onDragPointerMove:N,onDragPointerUp:j,isDragging:c!==null}}const GB=5;function YB({containerRef:e,viewport:a}){const r=i.useRef(null),s=i.useRef(a);i.useEffect(()=>{s.current=a},[a]);const c=i.useCallback((h,m,p)=>{h.button===0&&(h.target.closest("[data-handle]")||(h.stopPropagation(),r.current={nodeId:m,startPointerX:h.clientX,startPointerY:h.clientY,startNodeX:p.x,startNodeY:p.y,isDragging:!1}))},[]),u=i.useCallback(h=>{var b;const m=r.current;if(!m)return null;const p=h.clientX-m.startPointerX,g=h.clientY-m.startPointerY;if(!m.isDragging){if(Math.sqrt(p*p+g*g)<GB)return null;m.isDragging=!0,(b=e.current)==null||b.setPointerCapture(h.pointerId)}const v=s.current;return{nodeId:m.nodeId,x:m.startNodeX+p/v.zoom,y:m.startNodeY+g/v.zoom}},[e]),f=i.useCallback(()=>{const h=r.current;if(!h)return!1;const m=h.isDragging;return r.current=null,m},[]);return{onNodePointerDown:c,onNodeDragMove:u,onNodeDragUp:f,isDragging:()=>{var h;return((h=r.current)==null?void 0:h.isDragging)??!1}}}const KB=i.memo(function({edges:a,edgeTypes:r,onInsertStep:s}){return o.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:f,sourceY:h,targetX:m,targetY:p})=>{const g=r[c.type||"dataFlow"];if(!g)return null;const v={id:c.id,path:u,source:c.source,target:c.target,data:c.data,sourceX:f,sourceY:h,targetX:m,targetY:p,onInsertStep:c.type==="dataFlow"?s:void 0};return o.jsx(g,{...v},c.id)})})}),XB=i.memo(function({viewport:a,gap:r=20,size:s=1,color:c="rgba(255, 255, 255, 0.03)"}){const u=r*a.zoom;return o.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:`radial-gradient(circle, ${c} ${s}px, transparent ${s}px)`,backgroundSize:`${u}px ${u}px`,backgroundPosition:`${a.x%u}px ${a.y%u}px`}})}),QB=i.memo(function({onZoomIn:a,onZoomOut:r,onFitView:s}){return o.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:[o.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:o.jsx(Bt,{size:14,weight:"bold"})}),o.jsx("button",{onClick:r,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:o.jsx(Wk,{size:14,weight:"bold"})}),o.jsx("button",{onClick:s,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:o.jsx(Fk,{size:14,weight:"bold"})})]})}),fw={trigger:"#60a5fa",conditional:"#fb923c",addStep:"rgba(255,255,255,0.1)",step:"rgba(255,255,255,0.2)"},hw=160,mw=100,JB=i.memo(function({nodes:a,viewport:r,containerWidth:s,containerHeight:c}){const{rects:u,viewBox:f,viewportRect:h}=i.useMemo(()=>{if(a.length===0)return{rects:[],viewBox:"0 0 100 100",viewportRect:{x:0,y:0,width:100,height:100}};let m=1/0,p=1/0,g=-1/0,v=-1/0;for(const H of a){const C=H.width||280,Z=H.height||80;m=Math.min(m,H.position.x),p=Math.min(p,H.position.y),g=Math.max(g,H.position.x+C),v=Math.max(v,H.position.y+Z)}const b=50;m-=b,p-=b,g+=b,v+=b;const w=g-m,N=v-p,j=a.map(H=>({id:H.id,x:H.position.x,y:H.position.y,width:H.width||(H.type==="addStep"?40:280),height:H.height||(H.type==="addStep"?40:H.type==="conditional"?100:80),color:fw[H.type||"step"]||fw.step})),A=-r.x/r.zoom,E=-r.y/r.zoom,M=s/r.zoom,_=c/r.zoom;return{rects:j,viewBox:`${m} ${p} ${w} ${N}`,viewportRect:{x:A,y:E,width:M,height:_}}},[a,r,s,c]);return o.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:hw,height:mw},children:o.jsxs("svg",{width:hw,height:mw,viewBox:f,preserveAspectRatio:"xMidYMid meet",children:[u.map(m=>o.jsx("rect",{x:m.x,y:m.y,width:m.width,height:m.height,fill:m.color,rx:4},m.id)),o.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})]})})}),WB=i.memo(function({nodes:a,edges:r,selectedNodeId:s,nodeTypes:c,edgeTypes:u,onNodeClick:f,onPaneClick:h,onConnect:m,onNodeDrag:p,onInsertStep:g,fitViewOnMount:v=!0}){const{viewport:b,isPanning:w,containerRef:N,onWheel:j,onPointerDown:A,onPointerMove:E,onPointerUp:M,fitView:_,zoomIn:H,zoomOut:C}=IB(a,{fitViewOnMount:v}),[Z,T]=i.useState({width:0,height:0});i.useEffect(()=>{const z=N.current;if(!z)return;const I=new ResizeObserver(ie=>{const fe=ie[0];fe&&T({width:fe.contentRect.width,height:fe.contentRect.height})});return I.observe(z),()=>I.disconnect()},[N]);const L=i.useMemo(()=>FB(a),[a]),{connectionDrag:R,handleInteractionProps:k,onDragPointerMove:B,onDragPointerUp:G,isDragging:Q}=$B({containerRef:N,viewport:b,handleMap:L,onConnect:m}),{onNodePointerDown:ee,onNodeDragMove:oe,onNodeDragUp:D,isDragging:$}=YB({containerRef:N,viewport:b}),ne=i.useMemo(()=>r.map(z=>{const I=BB(z,L);if(!I)return null;const ie=uw(I.sourceX,I.sourceY,I.targetX,I.targetY);return{edge:z,path:ie,sourceX:I.sourceX,sourceY:I.sourceY,targetX:I.targetX,targetY:I.targetY}}).filter(z=>z!==null),[r,L]),ue=i.useCallback(z=>{const I=oe(z);if(I){p==null||p(I.nodeId,{x:I.x,y:I.y});return}B(z),E(z)},[oe,p,B,E]),de=i.useCallback(z=>{D()&&(re.current=!0),G(z),M()},[D,G,M]),q=i.useCallback(z=>{(z.target===z.currentTarget||z.target.dataset.paneTarget)&&A(z)},[A]),W=i.useCallback(z=>{(z.target===z.currentTarget||z.target.dataset.paneTarget)&&(h==null||h())},[h]),re=i.useRef(!1),F=i.useCallback((z,I,ie)=>{if(re.current){queueMicrotask(()=>{re.current=!1}),z.stopPropagation();return}z.stopPropagation(),f==null||f(I,ie)},[f]);return o.jsxs("div",{ref:N,className:"relative h-full w-full overflow-hidden",onWheel:j,onPointerMove:ue,onPointerUp:de,onPointerDown:q,onClick:W,style:{touchAction:"none",cursor:$()?"grabbing":Q?"crosshair":w?"grabbing":"default"},"data-testid":"flow-canvas",children:[o.jsx(XB,{viewport:b}),o.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:[o.jsx(KB,{edges:ne,edgeTypes:u,onInsertStep:g}),R&&(()=>{const z=`${R.sourceNodeId}:${R.sourceHandleId}`,I=L.get(z);if(!I)return null;const ie=uw(I.x,I.y,R.cursorX,R.cursorY);return o.jsx("svg",{className:"pointer-events-none absolute left-0 top-0 overflow-visible",style:{width:1,height:1},children:o.jsx("path",{d:ie,fill:"none",stroke:"rgba(255,255,255,0.4)",strokeWidth:2,strokeDasharray:"6 4"})})})(),a.map(z=>{const I=c[z.type||"step"];if(!I)return null;const ie=z.type!=="addStep";return o.jsx("div",{className:"absolute",style:{left:z.position.x,top:z.position.y,cursor:$()?"grabbing":"pointer"},"data-testid":`flow-node-${z.id}`,onClick:fe=>F(fe,z.id,z),onPointerDown:ie?fe=>ee(fe,z.id,z.position):void 0,children:o.jsx(I,{id:z.id,data:z.data,selected:z.id===s,handleProps:k})},z.id)})]}),o.jsx(QB,{onZoomIn:H,onZoomOut:C,onFitView:_}),o.jsx(JB,{nodes:a,viewport:b,containerWidth:Z.width,containerHeight:Z.height})]})}),eU={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"},tU={webhook:"#60a5fa",schedule:"#a78bfa",event:"#fbbf24",manual:"#34d399"},Tr=i.memo(function({nodeId:a,handleId:r,type:s,position:c,left:u,colorClass:f="bg-white/30",handleProps:h}){var b,w;const m=((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)===r,p=i.useCallback(N=>{h==null||h.onPointerDown(N,a,r,s)},[h,a,r,s]),g=c==="top"?"-top-1.5":"-bottom-1.5",v=u??"50%";return o.jsx("div",{className:`
80
- absolute ${g} h-3 w-3 -translate-x-1/2 rounded-full border-2 border-[#0a0a0a]
81
- ${f}
82
- transition-transform duration-100
83
- ${m?"scale-150 ring-2 ring-white/40":""}
84
- ${h?"cursor-crosshair":""}
85
- `,style:{left:v},onPointerDown:h?p:void 0,"data-handle":!0,"data-handle-node":a,"data-handle-id":r,"data-handle-type":s})}),aU={webhook:pi,schedule:N1,event:S6,manual:M6},nU={webhook:"Webhook",schedule:"Schedule",event:"Event",manual:"Manual"},rU=i.memo(function({id:a,data:r,selected:s,handleProps:c}){const u=r,f=aU[u.triggerType]||pi,h=tU[u.triggerType]||"#60a5fa",m=nU[u.triggerType]||"Trigger";return o.jsxs("div",{className:`
86
- relative w-[280px] rounded-xl border-2 bg-[#0a0a0a] px-4 py-3
87
- transition-all duration-150
88
- ${s?"ring-2 ring-white/20 shadow-lg shadow-white/5":"hover:border-white/20"}
89
- `,style:{borderColor:s?h:`${h}40`},children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:o.jsx(f,{size:20,weight:"fill",style:{color:h}})}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsxs("div",{className:"text-[11px] font-medium uppercase tracking-wider",style:{color:h},children:[m," Trigger"]}),o.jsx("div",{className:"truncate text-sm font-medium text-white",children:u.name||"Untitled automation"})]})]}),u.sampleFields&&u.sampleFields.length>0&&o.jsxs("div",{className:"mt-1.5 text-[10px] text-neutral-500",children:["Emits ",u.sampleFields.length," ",u.sampleFields.length===1?"field":"fields"]}),o.jsx(Tr,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),uM=i.createContext({overlayRun:null,getStepResult:()=>{}}),sU=uM.Provider;function dM(){return i.useContext(uM)}const iU={agent_prompt:pn,run_agent:pn,a2a_call:_6,save_contact:dD,update_contact:uD,log_contact_event:eD,webhook_forward:fD,transform_data:sD,create_task:N6,take_screenshot:kk,generate_chart:PE},lU=i.memo(function({id:a,data:r,selected:s,handleProps:c}){const u=r,f=iU[u.stepType]||pn,h=eU[u.stepType]||"#818cf8",m=Yn[u.stepType]||u.stepType,{overlayRun:p,getStepResult:g}=dM(),v=p?g(u.stepId):void 0;return o.jsxs("div",{className:`
90
- relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
91
- transition-all duration-150
92
- ${s?"border-white/30 ring-2 ring-white/10 shadow-lg shadow-white/5":"border-white/[0.08] hover:border-white/20"}
93
- `,children:[o.jsx(Tr,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${h}15`},children:o.jsx(f,{size:18,weight:"duotone",style:{color:h}})}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-neutral-500",children:m}),o.jsx("div",{className:"truncate text-sm text-white",children:u.label||m})]}),u.outputFields.length>0&&o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[u.outputFields.slice(0,2).map(b=>o.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&&o.jsxs("span",{className:"text-[9px] text-neutral-600",children:["+",u.outputFields.length-2]})]})]}),u.inputSources&&u.inputSources.length>0&&o.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[9px] text-neutral-600",children:[o.jsx(Zk,{size:10,className:"shrink-0 text-neutral-600"}),o.jsxs("span",{className:"truncate",children:["from"," ",u.inputSources.map(b=>`${b.label}(${b.count})`).join(", ")]})]}),v&&o.jsxs("div",{className:"mt-2 border-t border-white/[0.06] pt-2",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[v.status==="completed"&&o.jsx(_1,{size:12,className:"text-emerald-400",weight:"fill"}),v.status==="failed"&&o.jsx(tS,{size:12,className:"text-red-400",weight:"fill"}),v.status==="running"&&o.jsx(Uj,{size:12,className:"animate-spin text-blue-400",weight:"bold"}),o.jsx("span",{className:`text-[10px] ${v.status==="completed"?"text-emerald-400":v.status==="failed"?"text-red-400":"text-blue-400"}`,children:v.status})]}),v.status==="completed"&&v.text_output&&o.jsxs("p",{className:"mt-1 truncate text-[9px] text-neutral-500",children:[v.text_output.slice(0,60),v.text_output.length>60?"...":""]}),v.status==="completed"&&v.output&&!v.text_output&&o.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Object.entries(v.output).slice(0,2).map(([b,w])=>o.jsxs("span",{className:"font-mono text-[9px] text-neutral-500",children:[b,"=",String(w).slice(0,20)]},b))}),v.status==="failed"&&v.error&&o.jsx("p",{className:"mt-1 truncate text-[9px] text-red-400/80",children:v.error.slice(0,60)})]}),o.jsx(Tr,{nodeId:a,handleId:"source",type:"source",position:"bottom",handleProps:c})]})}),oU={equals:"=",not_equals:"!=",contains:"contains",not_contains:"!contains",greater_than:">",less_than:"<",exists:"exists",not_exists:"!exists"},cU=i.memo(function({id:a,data:r,selected:s,handleProps:c}){const u=r,{condition:f}=u,h=oU[f.operator]||f.operator,m=f.field?`${f.field} ${h}${f.value?` ${f.value}`:""}`:"No condition set";return o.jsxs("div",{className:`
94
- relative w-[280px] rounded-xl border bg-[#0a0a0a] px-4 py-3
95
- transition-all duration-150
96
- ${s?"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:[o.jsx(Tr,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:c}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-orange-500/10",children:o.jsx(Kk,{size:18,weight:"duotone",className:"text-orange-400"})}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-orange-400",children:"Conditional"}),o.jsx("div",{className:"truncate text-sm text-white/70 font-mono text-xs",children:m})]})]}),o.jsx(Tr,{nodeId:a,handleId:"then",type:"source",position:"bottom",left:"35%",colorClass:"bg-emerald-400",handleProps:c}),o.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-emerald-400",style:{bottom:-16,left:"35%",transform:"translateX(-50%)"},children:"Then"}),o.jsx(Tr,{nodeId:a,handleId:"else",type:"source",position:"bottom",left:"65%",colorClass:"bg-amber-400",handleProps:c}),o.jsx("div",{className:"pointer-events-none absolute text-[9px] font-medium text-amber-400",style:{bottom:-16,left:"65%",transform:"translateX(-50%)"},children:"Else"})]})}),uU=i.memo(function({id:a,data:r,handleProps:s}){return o.jsxs("div",{className:"group relative flex h-10 w-[200px] items-center justify-center",children:[o.jsx(Tr,{nodeId:a,handleId:"target",type:"target",position:"top",handleProps:s}),o.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:o.jsx(Bt,{size:14,weight:"bold"})})]})}),dU=i.memo(function(a){const{path:r,source:s,target:c,data:u,sourceX:f,sourceY:h,targetX:m,targetY:p,onInsertStep:g}=a,[v,b]=i.useState(!1),{overlayRun:w,getStepResult:N}=dM(),j=u==null?void 0:u.branchType;let A;if(w){const Z=N(c);(Z==null?void 0:Z.status)==="completed"?A="rgba(52, 211, 153, 0.5)":(Z==null?void 0:Z.status)==="failed"?A="rgba(248, 113, 113, 0.5)":(Z==null?void 0:Z.status)==="running"?A="rgba(96, 165, 250, 0.5)":A="rgba(255, 255, 255, 0.12)"}else A=j==="then"?"rgba(52, 211, 153, 0.3)":j==="else"?"rgba(251, 191, 36, 0.3)":"rgba(255, 255, 255, 0.2)";const E=i.useCallback(Z=>{Z.stopPropagation(),g==null||g(s,c)},[g,s,c]),M=g&&f!=null&&h!=null&&m!=null&&p!=null,_=M?(f+m)/2:0,H=M?(h+p)/2:0,C=24;return o.jsxs("g",{onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[o.jsx("path",{d:r,fill:"none",stroke:"transparent",strokeWidth:20,style:{pointerEvents:"stroke"}}),o.jsx("path",{d:r,fill:"none",stroke:A,strokeWidth:2,style:{pointerEvents:"none"}}),M&&v&&o.jsx("foreignObject",{x:_-C/2,y:H-C/2,width:C,height:C,style:{overflow:"visible",pointerEvents:"all"},children:o.jsx("button",{type:"button",onClick:E,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:"+"})})]})}),fU=i.memo(function(a){const{path:r}=a;return o.jsx("path",{d:r,fill:"none",stroke:"rgba(255, 255, 255, 0.15)",strokeWidth:1.5,strokeDasharray:"6 4"})}),hU=i.memo(function({nodes:a,edges:r,selectedNodeId:s,onNodeClick:c,onPaneClick:u,onConnect:f,onNodeDrag:h,onInsertStep:m}){const p=i.useMemo(()=>({trigger:rU,step:lU,conditional:cU,addStep:uU}),[]),g=i.useMemo(()=>({dataFlow:dU,addStepEdge:fU}),[]);return o.jsx("div",{className:"h-full w-full","data-testid":"flow-canvas-wrapper",children:o.jsx(WB,{nodes:a,edges:r,selectedNodeId:s,nodeTypes:p,edgeTypes:g,onNodeClick:c,onPaneClick:u,onConnect:f,onNodeDrag:h,onInsertStep:m,fitViewOnMount:!0})})});function mU({name:e,onNameChange:a,description:r,onDescriptionChange:s,onSave:c,onRun:u,saving:f,isNew:h}){const m=Xn(),p=()=>{m("/automations")};return o.jsxs("div",{className:"flex h-14 shrink-0 items-center gap-3 border-b border-white/[0.06] px-4",children:[o.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:o.jsx(mi,{size:18})}),o.jsx("div",{className:"h-5 w-px bg-white/[0.06]"}),o.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[o.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"}),o.jsx("input",{type:"text",value:r,onChange:g=>s(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"})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[u&&!h&&o.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:[o.jsx(Lj,{size:12,weight:"fill"}),"Run"]}),o.jsxs("button",{onClick:c,disabled:f,"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:[o.jsx(Gk,{size:14,weight:"bold"}),f?"Saving...":h?"Create":"Save"]})]})]})}function pU({onSampleParsed:e,existingSamplePayload:a}){const[r,s]=i.useState(a?"history":"paste"),[c,u]=i.useState(""),[f,h]=i.useState(null),[m,p]=i.useState([]),[g,v]=i.useState(null);function b(A){if(u(A),h(null),p([]),v(null),!!A.trim())try{const E=JSON.parse(A);if(typeof E!="object"||E===null||Array.isArray(E)){h("Must be a JSON object (not an array or primitive)");return}const{fields:M,payload:_}=i1(E);p(M),v(_)}catch{h("Invalid JSON")}}function w(){g&&m.length>0&&e(m,g)}function N(){if(!a)return;const{fields:A,payload:E}=i1(a);e(A,E)}const j=[{id:"paste",label:"Paste JSON",icon:qk},...a?[{id:"history",label:"Previous data",icon:v1}]:[]];return o.jsxs("div",{className:"space-y-3",children:[j.length>1&&o.jsx("div",{className:"flex gap-1 rounded-lg bg-white/[0.03] p-0.5",children:j.map(({id:A,label:E,icon:M})=>o.jsxs("button",{onClick:()=>s(A),className:`flex flex-1 items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-[11px] font-medium transition-colors ${r===A?"bg-white/[0.08] text-white":"text-neutral-500 hover:text-neutral-400"}`,children:[o.jsx(M,{size:13}),E]},A))}),r==="paste"&&o.jsxs("div",{className:"space-y-2",children:[o.jsx("textarea",{value:c,onChange:A=>b(A.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"}),f&&o.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-red-400",children:[o.jsx(C6,{size:12}),f]}),m.length>0&&o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex flex-wrap gap-1",children:[m.slice(0,12).map(A=>o.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:A},A)),m.length>12&&o.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",m.length-12," more"]})]}),o.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:[o.jsx(ri,{size:14}),"Use these ",m.length," ",m.length===1?"field":"fields"]})]})]}),r==="history"&&a&&o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] p-3",children:[o.jsx("p",{className:"mb-2 text-[10px] uppercase tracking-wider text-neutral-500",children:"Previously captured data"}),o.jsx("div",{className:"flex flex-wrap gap-1",children:Object.keys(i1(a).payload).slice(0,12).map(A=>o.jsx("span",{className:"rounded bg-white/[0.06] px-1.5 py-0.5 font-mono text-[10px] text-neutral-400",children:A},A))})]}),o.jsxs("button",{onClick:N,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:[o.jsx(ri,{size:14}),"Reuse this data"]})]})]})}const fM=[{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 gU(e){return fM.some(a=>a.seconds===e)}const xU=[{type:"webhook",label:"Webhook",description:"Triggered by incoming data",icon:pi},{type:"schedule",label:"Schedule",description:"Runs on a timer",icon:N1},{type:"event",label:"Event",description:"Listens for system events",icon:S6},{type:"manual",label:"Manual",description:"Run on demand",icon:M6}];function vU({data:e,onChange:a}){var f;const r=!gU(e.cooldownSeconds),[s,c]=i.useState(!1),u=(((f=e.sampleFields)==null?void 0:f.length)??0)>0;return o.jsxs("div",{className:"space-y-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"mb-2 block text-xs uppercase tracking-wider text-neutral-400",children:"Trigger Type"}),o.jsx("div",{className:"grid grid-cols-2 gap-2",children:xU.map(({type:h,label:m,description:p,icon:g})=>o.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:[o.jsx(g,{size:18,weight:e.triggerType===h?"fill":"regular",className:e.triggerType===h?"text-white":"text-neutral-500"}),o.jsx("span",{className:`mt-1.5 text-xs font-medium ${e.triggerType===h?"text-white":"text-neutral-400"}`,children:m}),o.jsx("span",{className:"mt-0.5 text-[10px] text-neutral-600",children:p})]},h))})]}),e.triggerType==="webhook"&&o.jsxs("div",{className:"space-y-3",children:[u&&o.jsxs("div",{className:"rounded-lg border border-emerald-500/20 bg-emerald-500/[0.05] p-3",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(_1,{size:14,className:"text-emerald-400",weight:"fill"}),o.jsxs("span",{className:"text-xs font-medium text-emerald-400",children:[e.sampleFields.length," ",e.sampleFields.length===1?"field":"fields"," loaded"]})]}),o.jsx("button",{onClick:()=>a({sampleFields:[],samplePayload:null}),className:"text-neutral-500 hover:text-neutral-400",children:o.jsx(Fa,{size:14})})]}),o.jsxs("div",{className:"mt-2 flex flex-wrap gap-1",children:[e.sampleFields.slice(0,8).map(h=>o.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&&o.jsxs("span",{className:"px-1 text-[10px] text-neutral-600",children:["+",e.sampleFields.length-8," more"]})]})]}),o.jsxs("div",{children:[o.jsxs("button",{onClick:()=>c(!s),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:[o.jsx("span",{children:u?"Change sample data":"Load sample data"}),o.jsx(Os,{size:12,className:`transition-transform ${s?"rotate-180":""}`})]}),s&&o.jsx("div",{className:"mt-2",children:o.jsx(pU,{existingSamplePayload:e.samplePayload,onSampleParsed:(h,m)=>{a({sampleFields:h,samplePayload:m}),c(!1)}})})]})]}),e.triggerType==="schedule"&&o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Schedule"}),o.jsx(rS,{value:e.triggerConfig.cron||"",onChange:h=>a({triggerConfig:{...e.triggerConfig,cron:h}})})]}),e.triggerType==="event"&&o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"System Event"}),o.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:[o.jsx("option",{value:"",className:"bg-black",children:"Select event..."}),o.jsx("option",{value:"task_completed",className:"bg-black",children:"Task Completed"}),o.jsx("option",{value:"agent_error",className:"bg-black",children:"Agent Error"}),o.jsx("option",{value:"contact_created",className:"bg-black",children:"Contact Created"})]})]}),(e.triggerType==="webhook"||e.triggerType==="event")&&o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Run at most every"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("select",{value:r?-1:e.cooldownSeconds,onChange:h=>{const m=parseInt(h.target.value,10);a(m===-1?{cooldownSeconds:e.cooldownSeconds||120}:{cooldownSeconds:m})},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:[fM.map(h=>o.jsx("option",{value:h.seconds,className:"bg-black",children:h.label},h.seconds)),o.jsx("option",{value:-1,className:"bg-black",children:"Custom"})]}),r&&o.jsxs("div",{className:"flex items-center gap-1",children:[o.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"}),o.jsx("span",{className:"text-xs text-neutral-500",children:"seconds"})]})]}),o.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:"Prevents this automation from running too often"})]})]})}function _s({value:e,onChange:a,placeholder:r,fieldGroups:s,mode:c="path",className:u}){const[f,h]=i.useState(!1),m=i.useRef(null),p=i.useRef(null);i.useEffect(()=>{if(!f)return;const b=w=>{m.current&&!m.current.contains(w.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[f]);const g=b=>{a(c==="template"?`{{${b}}}`:b),h(!1)},v=s.some(b=>b.fields.length>0);return o.jsxs("div",{ref:m,className:"relative",children:[o.jsxs("div",{className:"flex",children:[o.jsx("input",{ref:p,type:"text",value:e,onChange:b=>a(b.target.value),placeholder:r,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:()=>v&&h(!0)}),v&&o.jsx("button",{type:"button",onClick:()=>h(!f),className:"absolute right-0 top-0 bottom-0 px-2 text-neutral-500 hover:text-neutral-300 transition-colors",tabIndex:-1,children:o.jsx(Os,{size:12})})]}),f&&v&&o.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:s.map(b=>b.fields.length===0?null:o.jsxs("div",{children:[o.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=>o.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:[o.jsx("span",{className:"font-mono text-neutral-300",children:w.name}),w.value&&o.jsx("span",{className:"text-neutral-600 truncate",children:w.value})]},w.path))]},b.prefix))})]})}function zh({fieldGroups:e,textareaRef:a,onInsert:r}){const[s,c]=i.useState(!1),u=i.useRef(null);i.useEffect(()=>{if(!s)return;const m=p=>{u.current&&!u.current.contains(p.target)&&c(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[s]);const f=m=>{const p=a.current;if(!p)return;const g=p.selectionStart??p.value.length,v=p.selectionEnd??g,b=p.value,w=`{{${m}}}`,N=b.substring(0,g)+w+b.substring(v);r(N),c(!1),requestAnimationFrame(()=>{p.focus();const j=g+w.length;p.setSelectionRange(j,j)})};return e.some(m=>m.fields.length>0)?o.jsxs("div",{ref:u,className:"relative inline-block",children:[o.jsx("button",{type:"button",onClick:()=>c(!s),className:"text-[10px] text-neutral-500 hover:text-neutral-300 transition-colors",children:"+ Insert field"}),s&&o.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(m=>m.fields.length===0?null:o.jsxs("div",{children:[o.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:m.label}),m.fields.map(p=>o.jsxs("button",{type:"button",onClick:()=>f(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:[o.jsx("span",{className:"font-mono text-neutral-300",children:p.name}),p.value&&o.jsx("span",{className:"text-neutral-600 truncate",children:p.value})]},p.path))]},m.prefix))})]}):null}function yU({config:e,onChange:a,previousSteps:r,sampleFields:s,samplePayload:c}){const[u,f]=i.useState([]),h=i.useRef(null),m=i.useRef(null);i.useEffect(()=>{he("/api/agents").then(E=>f(E.data)).catch(()=>{})},[]);const p=e.agent_id||"",g=e.agent_name||"",v=e.task_prompt||"",b=e.image_url||"",w=gi({sampleFields:s,samplePayload:c,previousSteps:r}),N=i.useMemo(()=>w.flatMap(E=>E.fields.map(M=>M.path)),[w]),j=i.useMemo(()=>{if(!b||s.length===0)return[];const E=oS(b);return lq(E,N)},[b,s,N]),A=E=>{const M=u.find(_=>_.id===E);a({...e,agent_id:E,agent_name:(M==null?void 0:M.name)||""})};return o.jsxs("div",{className:"space-y-3","data-testid":"agent-prompt-config",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent"}),o.jsxs("select",{value:p,onChange:E=>A(E.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:[o.jsx("option",{value:"",className:"bg-black",children:"Select an agent..."}),u.map(E=>o.jsxs("option",{value:E.id,className:"bg-black",children:[E.name," (",E.role,")"]},E.id))]}),g&&p&&o.jsxs("p",{className:"text-[10px] text-neutral-600 mt-1",children:["Selected: ",g]})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsxs("label",{className:"text-xs text-neutral-400",children:["Task Prompt",o.jsxs("span",{className:"text-neutral-600 ml-1",children:["Use ","{{trigger.field}}"," or ","{{step_1.field}}"," for variables"]})]}),o.jsx(zh,{fieldGroups:w,textareaRef:h,onInsert:E=>a({...e,task_prompt:E})})]}),o.jsx("textarea",{ref:h,value:v,onChange:E=>a({...e,task_prompt:E.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"})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsxs("label",{className:"text-xs text-neutral-400",children:["Image URL",o.jsx("span",{className:"text-neutral-600 ml-1",children:"(optional)"})]}),o.jsx(zh,{fieldGroups:w,textareaRef:m,onInsert:E=>a({...e,image_url:E})})]}),o.jsx("input",{ref:m,type:"text",value:b,onChange:E=>a({...e,image_url:E.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"}),j.length>0&&o.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:[o.jsx(C6,{size:12,className:"text-amber-400 mt-0.5 flex-shrink-0"}),o.jsxs("p",{className:"text-[10px] text-amber-400",children:["Unknown ",j.length===1?"field":"fields",":"," ",j.map(E=>`{{${E}}}`).join(", "),"."," ","This may not resolve at runtime."]})]})]})]})}const bU=[{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 wU({config:e,onChange:a,previousSteps:r,sampleFields:s,samplePayload:c}){const u=e.mappings||[],f=(g,v,b)=>{const w=u.map((N,j)=>j===g?{...N,[v]:b||void 0}:N);a({...e,mappings:w})},h=()=>{a({...e,mappings:[...u,{target:"",source:""}]})},m=g=>{a({...e,mappings:u.filter((v,b)=>b!==g)})},p=gi({sampleFields:s,samplePayload:c,previousSteps:r});return o.jsxs("div",{className:"space-y-3","data-testid":"transform-data-config",children:[o.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,v)=>o.jsxs("div",{className:"grid grid-cols-[1fr_1fr_auto_auto] gap-2 items-end",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Source"}),o.jsx(_s,{value:g.source||"",onChange:b=>f(v,"source",b),placeholder:"trigger.email",fieldGroups:p})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Target Field"}),o.jsx("input",{type:"text",value:g.target||"",onChange:b=>f(v,"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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Transform"}),o.jsx("select",{value:g.transform||"",onChange:b=>f(v,"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:bU.map(({value:b,label:w})=>o.jsx("option",{value:b,className:"bg-black",children:w},b))})]}),o.jsx("button",{onClick:()=>m(v),className:"p-2 text-neutral-600 hover:text-red-400 transition-colors",children:o.jsx(Ua,{size:14})})]},v)),o.jsxs("button",{onClick:h,className:"flex items-center gap-1 text-xs text-neutral-400 hover:text-white transition-colors",children:[o.jsx(Bt,{size:12,weight:"bold"}),"Add Mapping"]})]})}function AU({stepType:e,config:a,onChange:r,previousSteps:s,sampleFields:c,samplePayload:u}){const f=gi({sampleFields:c,samplePayload:u,previousSteps:s});return e==="save_contact"?o.jsxs("div",{className:"space-y-3",children:[o.jsx("p",{className:"text-xs text-neutral-500",children:"Map incoming data to contact fields."}),["name","email","phone","company"].map(h=>o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:h}),o.jsx(_s,{value:a[h]||"",onChange:m=>r({...a,[h]:m}),placeholder:`trigger.${h}`,fieldGroups:f})]},h)),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Tags"}),o.jsx("input",{type:"text",value:a.tags||"",onChange:h=>r({...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"}),o.jsx("p",{className:"text-[10px] text-neutral-600 mt-1",children:"Comma-separated tags"})]})]}):e==="update_contact"?o.jsxs("div",{className:"space-y-3",children:[o.jsx("p",{className:"text-xs text-neutral-500",children:"Find a contact and update their fields."}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Find by email"}),o.jsx(_s,{value:a.lookup_email||"",onChange:h=>r({...a,lookup_email:h}),placeholder:"trigger.email",fieldGroups:f})]}),["name","phone","company"].map(h=>o.jsxs("div",{children:[o.jsxs("label",{className:"text-xs text-neutral-400 block mb-1 capitalize",children:["New ",h]}),o.jsx(_s,{value:a[h]||"",onChange:m=>r({...a,[h]:m}),placeholder:`trigger.${h}`,fieldGroups:f})]},h))]}):o.jsxs("div",{className:"space-y-3",children:[o.jsx("p",{className:"text-xs text-neutral-500",children:"Log an event to a contact's timeline."}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Contact email"}),o.jsx(_s,{value:a.contact_email||"",onChange:h=>r({...a,contact_email:h}),placeholder:"trigger.email",fieldGroups:f})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Event type"}),o.jsx("input",{type:"text",value:a.event_type||"",onChange:h=>r({...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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Description"}),o.jsx("input",{type:"text",value:a.description||"",onChange:h=>r({...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 EU({config:e,onChange:a,previousSteps:r,sampleFields:s,samplePayload:c}){const u=i.useRef(null),f=gi({sampleFields:s,samplePayload:c,previousSteps:r});return o.jsxs("div",{className:"space-y-3","data-testid":"webhook-forward-config",children:[o.jsx("p",{className:"text-xs text-neutral-500",children:"Forward data to an external URL."}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsx("label",{className:"text-xs text-neutral-400",children:"URL"}),o.jsx(zh,{fieldGroups:f,textareaRef:u,onInsert:h=>a({...e,url:h})})]}),o.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Method"}),o.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:[o.jsx("option",{value:"POST",className:"bg-black",children:"POST"}),o.jsx("option",{value:"PUT",className:"bg-black",children:"PUT"}),o.jsx("option",{value:"PATCH",className:"bg-black",children:"PATCH"})]})]}),o.jsx("div",{children:o.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[o.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]"}),o.jsx("span",{className:"text-xs text-neutral-400",children:"Include all trigger and step data"})]})})]})}const jU=[{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 SU({config:e,onChange:a,previousSteps:r,sampleFields:s,samplePayload:c}){const u=e.condition||{field:"",operator:"equals",value:""},f=!["exists","not_exists"].includes(u.operator),h=gi({sampleFields:s,samplePayload:c,previousSteps:r}),m=(p,g)=>{const v={...u,[p]:g};a({...e,condition:v})};return o.jsxs("div",{className:"space-y-3","data-testid":"condition-form",children:[o.jsx("p",{className:"text-xs text-neutral-500",children:"Branch execution based on a condition. Pick a field or type a path manually."}),o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Field"}),o.jsx(_s,{value:u.field,onChange:p=>m("field",p),placeholder:"trigger.country",fieldGroups:h})]}),o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Operator"}),o.jsx("select",{value:u.operator,onChange:p=>m("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:jU.map(({value:p,label:g})=>o.jsx("option",{value:p,className:"bg-black",children:g},p))})]}),f&&o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Value"}),o.jsx("input",{type:"text",value:u.value||"",onChange:p=>m("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 MU=Object.entries(Yn);function NU({data:e,node:a,onChange:r,nodes:s}){const c=_U(a,s),u=CU(s),f=TU(s),h=g=>{const v={id:e.stepId,action_type:g,action_config:{}};r({stepType:g,label:Yn[g]||g,actionConfig:{},outputFields:Cr(v)})},m=g=>{const v={id:e.stepId,action_type:e.stepType,action_config:g};r({actionConfig:g,outputFields:Cr(v)})},p=g=>{r({label:g})};return o.jsxs("div",{className:"space-y-5",children:[o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Label"}),o.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"mb-1 block text-xs text-neutral-400",children:"Step Type"}),o.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:MU.map(([g,v])=>o.jsx("option",{value:g,className:"bg-black",children:v},g))}),o.jsx("p",{className:"mt-1 text-[10px] text-neutral-600",children:iq[e.stepType]||""})]}),o.jsxs("div",{className:"border-t border-white/[0.06] pt-4",children:[(e.stepType==="agent_prompt"||e.stepType==="run_agent")&&o.jsx(yU,{config:e.actionConfig,onChange:m,previousSteps:c,sampleFields:u,samplePayload:f}),e.stepType==="transform_data"&&o.jsx(wU,{config:e.actionConfig,onChange:m,previousSteps:c,sampleFields:u,samplePayload:f}),e.stepType==="conditional"&&o.jsx(SU,{config:e.actionConfig,onChange:m,previousSteps:c,sampleFields:u,samplePayload:f}),(e.stepType==="save_contact"||e.stepType==="update_contact"||e.stepType==="log_contact_event")&&o.jsx(AU,{stepType:e.stepType,config:e.actionConfig,onChange:m,previousSteps:c,sampleFields:u}),e.stepType==="webhook_forward"&&o.jsx(EU,{config:e.actionConfig,onChange:m,previousSteps:c,sampleFields:u})]})]})}function _U(e,a){const r=a.filter(c=>(c.type==="step"||c.type==="conditional")&&c.id!==e.id),s=e.data;return r.filter(c=>{const u=c.data;return u.stepIndex>=0&&u.stepIndex<s.stepIndex}).sort((c,u)=>{const f=c.data,h=u.data;return f.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 CU(e){const a=e.find(s=>s.id===Da);return a?a.data.sampleFields||[]:[]}function TU(e){const a=e.find(s=>s.id===Da);return a&&a.data.samplePayload||null}function HU({selectedNode:e,onClose:a,onUpdateNodeData:r,onDeleteStep:s,nodes:c,automationId:u}){const f=(e==null?void 0:e.type)==="trigger",h=(e==null?void 0:e.type)==="step"||(e==null?void 0:e.type)==="conditional";return o.jsx(Ds,{children:e&&o.jsx(mt.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:o.jsxs("div",{className:"flex h-full w-[400px] flex-col",children:[o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b border-white/[0.06] px-4",children:[o.jsx("h3",{className:"text-sm font-medium text-white",children:f?"Trigger":"Step Configuration"}),o.jsxs("div",{className:"flex items-center gap-1",children:[h&&!f&&o.jsx("button",{onClick:()=>s(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:o.jsx(Ua,{size:14})}),o.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:o.jsx(Fa,{size:14})})]})]}),o.jsxs("div",{className:"flex-1 overflow-y-auto p-4 pb-6",children:[f&&o.jsx(vU,{data:e.data,onChange:m=>r(e.id,m)}),h&&!f&&o.jsx(NU,{data:e.data,node:e,onChange:m=>r(e.id,m),nodes:c,automationId:u})]})]})})})}const pw={completed:ri,failed:Fa,running:Uj,pending:v1,cancelled:Fa},gw={completed:"text-emerald-400",failed:"text-red-400",running:"text-blue-400",pending:"text-neutral-400",cancelled:"text-neutral-500"};function xw(e){const a=Date.now()-new Date(e).getTime(),r=Math.floor(a/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const s=Math.floor(r/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function ZU({runs:e,selectedRun:a,onSelectRun:r,overlayEnabled:s,onToggleOverlay:c}){const[u,f]=i.useState(!1),h=a||e[0]||null,m=e.length>0;return o.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:[o.jsx(Na,{size:14,className:"text-neutral-500",weight:"fill"}),m?o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:()=>c(!s),className:`relative h-5 w-9 rounded-full transition-colors ${s?"bg-white/20":"bg-white/[0.06]"}`,children:o.jsx("div",{className:`absolute top-0.5 h-4 w-4 rounded-full bg-white transition-all ${s?"left-[18px]":"left-0.5"}`})}),o.jsxs("div",{className:"relative",children:[o.jsxs("button",{onClick:()=>f(!u),className:"flex items-center gap-1.5 text-[11px] text-neutral-400 hover:text-neutral-300",children:[h&&(()=>{const p=pw[h.status]||v1;return o.jsx(p,{size:12,className:`${gw[h.status]||"text-neutral-400"} ${h.status==="running"?"animate-spin":""}`,weight:h.status==="running"?"bold":"fill"})})(),o.jsx("span",{children:h?xw(h.created_at):"Select run"}),o.jsx(Os,{size:10})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>f(!1)}),o.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 v;const g=pw[p.status]||v1;return o.jsxs("button",{onClick:()=>{r(p),c(!0),f(!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:[o.jsx(g,{size:11,className:`${gw[p.status]} ${p.status==="running"?"animate-spin":""}`,weight:p.status==="running"?"bold":"fill"}),o.jsx("span",{className:"flex-1",children:xw(p.created_at)}),o.jsxs("span",{className:"text-[10px] text-neutral-600",children:[((v=p.step_results)==null?void 0:v.length)||0,"/",p.total_steps," steps"]})]},p.id)})})]})]})]}):o.jsx("span",{className:"text-[11px] text-neutral-600",children:"No runs yet"})]})}const VU=[];function LU({automation:e}){const a=Xn(),r=!e,[s,c]=i.useState(VU),[u,f]=i.useState(!1),[h,m]=i.useState(null),p=i.useMemo(()=>u&&(h||s[0])||null,[u,h,s]),g=i.useCallback(re=>{var F;if(p)return(F=p.step_results)==null?void 0:F.find(z=>z.step_id===re)},[p]),v=i.useMemo(()=>({overlayRun:p,getStepResult:g}),[p,g]);i.useEffect(()=>{e!=null&&e.id&&he(`/api/automations/${e.id}/runs`).then(re=>{var F;return c(((F=re.data)==null?void 0:F.runs)||[])}).catch(()=>{})},[e==null?void 0:e.id]);const{nodes:b,edges:w,hasCustomPositions:N}=i.useMemo(()=>e?cS(e):fq(),[e==null?void 0:e.id]),{nodes:j,edges:A,selectedNode:E,selectedNodeId:M,onNodeClick:_,onPaneClick:H,updateNodeData:C,updateNodePosition:Z,deleteStep:T,connectNodes:L,insertStepBetween:R,setSelectedNodeId:k}=OB(b,w,{hasCustomPositions:N}),[B,G]=i.useState(!1),Q=j.find(re=>re.id===Da),ee=Q==null?void 0:Q.data,oe=(ee==null?void 0:ee.name)||"",D=(ee==null?void 0:ee.description)||"",$=i.useCallback(re=>{C(Da,{name:re})},[C]),ne=i.useCallback(re=>{C(Da,{description:re})},[C]),ue=i.useCallback(async()=>{var re,F;if(!oe.trim()){ge("error","Give it a name first");return}G(!0);try{const z=cq(j,A),I=((re=j.find(fe=>fe.id===Da))==null?void 0:re.data)??{},ie={name:z.name,description:z.description,trigger_type:z.trigger_type,trigger_config:z.trigger_config,steps:z.steps,variables:z.variables,cooldown_seconds:z.cooldown_seconds,node_positions:z.node_positions,sample_payload:I.samplePayload??null,sample_fields:(F=I.sampleFields)!=null&&F.length?I.sampleFields:null};if(r){const fe=await he("/api/automations",{method:"POST",body:JSON.stringify(ie)});ge("success","Automation created"),a(`/automations/${fe.data.id}/edit`)}else await he(`/api/automations/${e.id}`,{method:"PATCH",body:JSON.stringify(ie)}),ge("success","Automation updated")}catch(z){ge("error",z instanceof Error?z.message:"Something went wrong")}finally{G(!1)}},[oe,j,A,r,e,a]),de=i.useCallback(async()=>{if(e!=null&&e.id)try{await he(`/api/automations/${e.id}/execute`,{method:"POST"}),ge("success","Automation started")}catch(re){ge("error",re instanceof Error?re.message:"Couldn't run automation. Try again?")}},[e==null?void 0:e.id]),q=i.useCallback((re,F)=>{Z(re,F)},[Z]),W=i.useCallback(()=>{k(null)},[k]);return i.useEffect(()=>{const re=F=>{const z=F.target.tagName;z==="INPUT"||z==="TEXTAREA"||z==="SELECT"||(F.key==="Escape"&&k(null),(F.key==="Delete"||F.key==="Backspace")&&E&&E.type!=="trigger"&&T(E.id),(F.metaKey||F.ctrlKey)&&F.key==="s"&&(F.preventDefault(),ue()))};return window.addEventListener("keydown",re),()=>window.removeEventListener("keydown",re)},[E,T,ue,k]),o.jsxs("div",{className:"flex h-full flex-col","data-testid":"flow-builder",children:[o.jsx(mU,{name:oe,onNameChange:$,description:D,onDescriptionChange:ne,onSave:ue,onRun:(e==null?void 0:e.trigger_type)==="manual"?de:void 0,saving:B,isNew:r}),o.jsx(sU,{value:v,children:o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsxs("div",{className:"relative min-w-0 flex-1",children:[o.jsx(hU,{nodes:j,edges:A,selectedNodeId:M,onNodeClick:_,onPaneClick:H,onConnect:L,onNodeDrag:q,onInsertStep:R}),!r&&o.jsx(ZU,{runs:s,selectedRun:h,onSelectRun:m,overlayEnabled:u,onToggleOverlay:f})]}),o.jsx(HU,{selectedNode:E,onClose:W,onUpdateNodeData:C,onDeleteStep:T,nodes:j,automationId:e==null?void 0:e.id})]})})]})}function vw(){const{id:e}=oi(),[a,r]=i.useState(null),[s,c]=i.useState(!!e);return i.useEffect(()=>{e&&he(`/api/automations/${e}`).then(u=>r(u.data)).catch(()=>{}).finally(()=>c(!1))},[e]),s?o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx("div",{className:"text-sm text-neutral-500",children:"Loading..."})}):o.jsx("div",{className:"h-full",children:o.jsx(LU,{automation:e?a:void 0})})}function hM(e){const a=Date.now()-new Date(e).getTime(),r=Math.floor(a/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;const s=Math.floor(r/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function RU(){const[e,a]=i.useState(""),[r,s]=i.useState(!1),[c,u]=i.useState(null),[f,h]=i.useState(null),[m,p]=i.useState(null),[g,v]=i.useState(!1),{data:b,loading:w,refetch:N}=Ve("/api/a2a/connections"),j=i.useMemo(()=>{if(!b)return[];if(!e.trim())return b;const M=e.toLowerCase();return b.filter(_=>_.name.toLowerCase().includes(M)||_.endpoint_url.toLowerCase().includes(M))},[b,e]),A=async M=>{u(M);try{await he(`/api/a2a/connections/${M}/test`,{method:"POST"}),ge("success","Connection is healthy"),N()}catch{ge("error","Connection test failed"),N()}finally{u(null)}},E=async()=>{if(m){v(!0);try{await he(`/api/a2a/connections/${m.id}`,{method:"DELETE"}),ge("success","Connection deleted"),N()}catch{ge("error","Couldn't delete connection")}finally{v(!1),p(null)}}};return o.jsxs("div",{className:"p-6 max-w-4xl",children:[o.jsx(ut,{title:"Connections",subtitle:"A2A agent connections",action:o.jsxs("button",{onClick:()=>s(!r),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:[o.jsx(Bt,{size:14})," New connection"]})}),o.jsxs("div",{className:"relative mb-4",children:[o.jsx(Wn,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-400"}),o.jsx("input",{value:e,onChange:M=>a(M.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"})]}),w?o.jsx(Ut,{count:4}):j.length?o.jsx("div",{className:"border border-white/[0.08] rounded-lg divide-y divide-white/[0.08]",children:j.map(M=>o.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[o.jsxs("button",{className:"min-w-0 mr-3 text-left flex-1",onClick:()=>h(M),children:[o.jsx("p",{className:"text-sm font-medium truncate hover:text-white transition-colors",children:M.name}),o.jsxs("p",{className:"text-xs text-neutral-400 truncate",children:[o.jsx("span",{className:"text-white",children:M.endpoint_url}),o.jsxs("span",{className:"ml-2",children:["· ",M.trust_level.replace(/_/g," ")]}),M.auth_type!=="none"&&o.jsxs("span",{className:"ml-2",children:["· ",M.auth_type.replace(/_/g," ")]}),M.last_health_check_at&&o.jsxs("span",{className:"ml-2",children:["· checked ",hM(M.last_health_check_at)]})]}),M.skills&&M.skills.length>0&&o.jsxs("div",{className:"flex gap-1 mt-1",children:[M.skills.slice(0,3).map(_=>o.jsx("span",{className:"text-[10px] bg-white/[0.06] px-1.5 py-0.5 rounded text-neutral-400",children:_},_)),M.skills.length>3&&o.jsxs("span",{className:"text-[10px] text-neutral-400",children:["+",M.skills.length-3]})]})]}),o.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[o.jsx(Ht,{status:M.status}),o.jsx("button",{onClick:()=>h(M),className:"text-neutral-400 hover:text-white transition-colors",title:"Details",children:o.jsx(Pk,{size:14})}),o.jsx("button",{onClick:()=>A(M.id),disabled:c===M.id,className:"text-neutral-400 hover:text-white transition-colors disabled:opacity-50",title:"Test connection",children:o.jsx(HE,{size:14,className:c===M.id?"animate-spin":""})}),o.jsx("button",{onClick:()=>p(M),className:"text-neutral-400 hover:text-critical transition-colors",title:"Delete",children:o.jsx(Ua,{size:14})})]})]},M.id))}):o.jsx(It,{icon:o.jsx(_6,{size:32}),title:"No connections yet",description:e?`No connections matching "${e}".`:"Connect to external A2A agents."}),r&&o.jsx(kU,{onClose:()=>s(!1),onSuccess:()=>{N(),s(!1)}}),f&&o.jsx(DU,{connection:f,onClose:()=>h(null),onTest:()=>A(f.id),testing:c===f.id}),o.jsx(Z6,{open:!!m,onClose:()=>p(null),onConfirm:E,title:"Delete connection",message:`Delete "${m==null?void 0:m.name}"? This can't be undone.`,confirmLabel:"Delete",loading:g})]})}function kU({onClose:e,onSuccess:a}){const[r,s]=i.useState(""),[c,u]=i.useState(""),[f,h]=i.useState(""),[m,p]=i.useState("read_only"),[g,v]=i.useState("none"),[b,w]=i.useState(""),[N,j]=i.useState(!1),[A,E]=i.useState(!1),M=async()=>{if(c.trim()){E(!0);try{const H=await fetch(c.trim());if(H.ok){const C=await H.json();C.name&&!r&&s(C.name),C.url&&!f&&h(C.url),ge("success","Agent card loaded")}}catch{ge("error","Couldn't fetch agent card")}finally{E(!1)}}},_=async H=>{if(H.preventDefault(),!(!r.trim()||!c.trim()||!f.trim())){j(!0);try{await he("/api/a2a/connections",{method:"POST",body:JSON.stringify({name:r.trim(),agent_card_url:c.trim(),endpoint_url:f.trim(),trust_level:m,auth_type:g,...g!=="none"&&b.trim()?{credential:b.trim()}:{}})}),ge("success","Connection created"),a()}catch{ge("error","Couldn't create connection")}finally{j(!1)}}};return o.jsx(er,{open:!0,onClose:e,title:"New connection",maxWidth:"max-w-lg",children:o.jsxs("form",{onSubmit:_,className:"space-y-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Agent card URL"}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{value:c,onChange:H=>u(H.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"}),o.jsx("button",{type:"button",onClick:M,disabled:A||!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:A?o.jsx(mn,{size:14,className:"animate-spin"}):"Discover"})]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Name"}),o.jsx("input",{value:r,onChange:H=>s(H.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"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Trust level"}),o.jsxs("select",{value:m,onChange:H=>p(H.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:[o.jsx("option",{value:"read_only",children:"Read only"}),o.jsx("option",{value:"execute",children:"Execute"}),o.jsx("option",{value:"autonomous",children:"Autonomous"})]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Endpoint URL"}),o.jsx("input",{value:f,onChange:H=>h(H.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"})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:"Auth type"}),o.jsxs("select",{value:g,onChange:H=>v(H.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:[o.jsx("option",{value:"none",children:"None"}),o.jsx("option",{value:"bearer_token",children:"Bearer token"}),o.jsx("option",{value:"api_key",children:"API key"})]})]}),g!=="none"&&o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1",children:g==="bearer_token"?"Token":"API Key"}),o.jsx("input",{type:"password",value:b,onChange:H=>w(H.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"})]})]}),o.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[o.jsx("button",{type:"button",onClick:e,className:"px-3 py-1.5 text-xs text-neutral-400 hover:text-white transition-colors",children:"Cancel"}),o.jsx("button",{type:"submit",disabled:N||!r.trim()||!c.trim()||!f.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?"Creating...":"Create connection"})]})]})})}function DU({connection:e,onClose:a,onTest:r,testing:s}){return o.jsx(er,{open:!0,onClose:a,title:"Connection details",maxWidth:"max-w-lg",children:o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-semibold",children:e.name}),e.description&&o.jsx("p",{className:"text-xs text-neutral-400 mt-0.5",children:e.description})]}),o.jsx(Ht,{status:e.status})]}),o.jsxs("div",{className:"bg-white/5 rounded-lg p-3 space-y-2 text-sm",children:[o.jsx(bs,{label:"Endpoint",value:e.endpoint_url}),o.jsx(bs,{label:"Agent card",value:e.agent_card_url}),o.jsx(bs,{label:"Trust level",value:e.trust_level.replace(/_/g," ")}),o.jsx(bs,{label:"Auth type",value:e.auth_type==="none"?"None":e.auth_type.replace(/_/g," ")}),e.last_health_check_at&&o.jsx(bs,{label:"Last health check",value:`${hM(e.last_health_check_at)} (${e.last_health_status||"unknown"})`}),o.jsx(bs,{label:"Created",value:new Date(e.created_at).toLocaleDateString()})]}),e.skills&&e.skills.length>0&&o.jsxs("div",{children:[o.jsx("label",{className:"text-xs text-neutral-400 block mb-1.5",children:"Skills"}),o.jsx("div",{className:"flex gap-1.5 flex-wrap",children:e.skills.map(c=>o.jsx("span",{className:"text-xs bg-white/5 border border-white/10 px-2 py-1 rounded",children:c},c))})]}),o.jsx("div",{className:"flex gap-2 justify-end pt-2",children:o.jsx("button",{onClick:r,disabled:s,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:s?o.jsxs(o.Fragment,{children:[o.jsx(mn,{size:14,className:"animate-spin"})," Testing..."]}):o.jsxs(o.Fragment,{children:[o.jsx(HE,{size:14})," Test connection"]})})})]})})}function bs({label:e,value:a}){return o.jsxs("div",{className:"flex justify-between gap-4",children:[o.jsx("span",{className:"text-neutral-400 shrink-0",children:e}),o.jsx("span",{className:"font-medium text-right break-all",children:a})]})}function OU(){const{data:e,loading:a,refetch:r}=Ve("/api/knowledge"),[s,c]=i.useState(""),[u,f]=i.useState(!1),h=e==null?void 0:e.filter(p=>p.title.toLowerCase().includes(s.toLowerCase())),m=i.useCallback(async p=>{try{await he(`/api/knowledge/${p}`,{method:"DELETE"}),ge("success","Document removed"),r()}catch{ge("error","Couldn't remove document")}},[r]);return o.jsxs("div",{className:"p-6 max-w-5xl",children:[o.jsx(ut,{title:"Knowledge",subtitle:"Documents and context for your agents",action:o.jsx("button",{onClick:()=>f(!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"})}),o.jsx("div",{className:"mb-4",children:o.jsxs("div",{className:"relative",children:[o.jsx(Wn,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500"}),o.jsx("input",{type:"text",placeholder:"Search documents...",value:s,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?o.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((p,g)=>o.jsx("div",{className:"h-16 bg-white/5 rounded-lg animate-pulse"},g))}):h!=null&&h.length?o.jsx("div",{className:"space-y-2",children:h.map(p=>o.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:[o.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center text-neutral-400",children:p.type==="url"?o.jsx(pi,{size:16}):o.jsx($k,{size:16})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("p",{className:"text-sm font-medium truncate",children:p.title}),o.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()]})]}),o.jsx(Ht,{status:p.status}),o.jsx("button",{onClick:()=>m(p.id),className:"text-neutral-500 hover:text-critical transition-colors",children:o.jsx(Ua,{size:16})})]},p.id))}):o.jsx(It,{icon:o.jsx(kE,{size:32}),title:"Nothing here yet",description:"Upload documents or add URLs to give your agents more context.",action:o.jsx("button",{onClick:()=>f(!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"})}),o.jsx(qU,{open:u,onClose:()=>f(!1),onSuccess:()=>{f(!1),r()}})]})}function qU({open:e,onClose:a,onSuccess:r}){const[s,c]=i.useState("file"),[u,f]=i.useState(""),[h,m]=i.useState(!1),[p,g]=i.useState(!1),v=i.useCallback(async w=>{if(w!=null&&w.length){m(!0);try{const N=new FormData;Array.from(w).forEach(A=>N.append("files",A));const j=Qn();await fetch("/api/knowledge/upload",{method:"POST",headers:j?{Authorization:`Bearer ${j}`}:{},body:N}),ge("success",`Uploaded ${w.length===1?"1 document":`${w.length} documents`}`),r()}catch{ge("error","Couldn't upload. Try again?")}finally{m(!1)}}},[r]),b=i.useCallback(async()=>{if(u.trim()){m(!0);try{await he("/api/knowledge/url",{method:"POST",body:JSON.stringify({url:u.trim()})}),ge("success","URL imported"),r()}catch{ge("error","Couldn't import URL. Try again?")}finally{m(!1)}}},[u,r]);return o.jsxs(er,{open:e,onClose:a,title:"Add document",children:[o.jsxs("div",{className:"flex gap-2 mb-4",children:[o.jsx("button",{onClick:()=>c("file"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${s==="file"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Upload file"}),o.jsx("button",{onClick:()=>c("url"),className:`px-3 py-1.5 text-xs font-medium rounded transition-colors ${s==="url"?"bg-white/10 text-white":"text-neutral-400 hover:text-white"}`,children:"Import URL"})]}),s==="file"?o.jsxs("div",{onDragOver:w=>{w.preventDefault(),g(!0)},onDragLeave:()=>g(!1),onDrop:w=>{w.preventDefault(),g(!1),v(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:[o.jsx(cD,{size:24,className:"mx-auto text-neutral-500 mb-2"}),o.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Drag and drop files here"}),o.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",o.jsx("input",{type:"file",multiple:!0,className:"hidden",onChange:w=>v(w.target.files)})]})]}):o.jsxs("div",{className:"space-y-3",children:[o.jsx("input",{type:"url",placeholder:"https://...",value:u,onChange:w=>f(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"}),o.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&&s==="file"&&o.jsx("p",{className:"text-xs text-neutral-400 mt-3 text-center",children:"Uploading..."})]})}const lh={lead_gen:{label:"Lead Gen",Icon:Jk},content:{label:"Content",Icon:aD},support:{label:"Support",Icon:Qk},operations:{label:"Ops",Icon:cj},analytics:{label:"Analytics",Icon:PE},sales:{label:"Sales",Icon:Xk}},zU={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 FU(){const[e,a]=i.useState([]),[r,s]=i.useState(!0),[c,u]=i.useState(""),[f,h]=i.useState(null),[m,p]=i.useState(null),[g,v]=i.useState(!1),[b,w]=i.useState({});i.useEffect(()=>{N()},[]);const N=async()=>{try{const _=await he("/api/templates");a(_.templates||[])}catch{ge("error","Couldn't load templates")}finally{s(!1)}},j=i.useMemo(()=>{let _=e;if(f&&(_=_.filter(H=>H.category===f)),c){const H=c.toLowerCase();_=_.filter(C=>C.name.toLowerCase().includes(H)||C.description.toLowerCase().includes(H))}return _},[e,f,c]),A=_=>{p(_);const H={};_.variables.forEach(C=>{H[C.key]=C.default_value||""}),w(H)},E=async()=>{if(m){v(!0);try{await he(`/api/templates/${m.slug}/install`,{method:"POST",body:JSON.stringify({variableValues:b})}),ge("success",`Installed "${m.name}"`),p(null),N()}catch{ge("error","Couldn't install template. Try again?")}finally{v(!1)}}},M=["all",...Object.keys(lh)];return o.jsxs("div",{className:"p-6 max-w-5xl",children:[o.jsx(ut,{title:"Templates",subtitle:"Pre-built agent and automation bundles you can install in one click."}),o.jsxs("div",{className:"flex items-center gap-3 mt-4 mb-6 flex-wrap",children:[o.jsx("div",{className:"flex items-center gap-1.5 flex-wrap",children:M.map(_=>{var H;return o.jsx("button",{onClick:()=>h(_==="all"?null:_),className:`px-3 py-1 text-xs rounded-full transition-colors ${_==="all"&&!f||_===f?"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:_==="all"?"All":((H=lh[_])==null?void 0:H.label)||_},_)})}),o.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[o.jsx(Wn,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-neutral-500"}),o.jsx("input",{type:"text",value:c,onChange:_=>u(_.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"})]})]}),r?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(_=>o.jsx(si,{className:"h-48 rounded-lg"},_))}):j.length===0?o.jsx(It,{icon:o.jsx(Rh,{size:40,weight:"thin"}),title:"No templates found",description:c||f?"Try a different filter.":"Templates will appear here."}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:j.map(_=>{const H=lh[_.category],C=(H==null?void 0:H.Icon)||Rh;return o.jsxs("button",{onClick:()=>_.installed?null:A(_),className:"text-left border border-white/[0.06] rounded-lg bg-white/[0.02] hover:bg-white/[0.04] p-4 transition-colors",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(C,{size:20,weight:"bold",className:"text-neutral-400"}),o.jsx("span",{className:"text-sm font-medium text-white truncate",children:_.name}),_.installed&&o.jsx(_1,{size:16,weight:"fill",className:"text-green-400 ml-auto flex-shrink-0"})]}),o.jsx("p",{className:"text-xs text-neutral-400 line-clamp-2 mb-3",children:_.description}),o.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[o.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-white/[0.06] text-neutral-400",children:(H==null?void 0:H.label)||_.category}),o.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full ${zU[_.difficulty]||"bg-white/[0.06] text-neutral-400"}`,children:_.difficulty}),o.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[o.jsx(pn,{size:10})," ",_.agents.length]}),o.jsxs("span",{className:"text-[10px] text-neutral-500 flex items-center gap-0.5",children:[o.jsx(Na,{size:10})," ",_.automations.length]})]})]},_.id)})}),m&&o.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>!g&&p(null),children:o.jsxs("div",{className:"bg-[#111] border border-white/10 rounded-xl p-6 w-full max-w-md",onClick:_=>_.stopPropagation(),children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsxs("h2",{className:"text-lg font-semibold",children:["Install ",m.name]}),o.jsx("button",{onClick:()=>p(null),className:"text-neutral-500 hover:text-white",disabled:g,children:o.jsx(Fa,{size:18})})]}),o.jsxs("p",{className:"text-xs text-neutral-400 mb-4",children:["This will create ",m.agents.length===1?"1 agent":`${m.agents.length} agents`," and"," ",m.automations.length===1?"1 automation":`${m.automations.length} automations`,"."]}),m.variables.length>0&&o.jsx("div",{className:"space-y-3 mb-4",children:m.variables.map(_=>o.jsxs("div",{children:[o.jsxs("label",{className:"block text-xs text-neutral-400 mb-1",children:[_.label,_.required&&o.jsx("span",{className:"text-red-400 ml-0.5",children:"*"})]}),_.type==="select"&&_.options?o.jsxs("select",{value:b[_.key]||"",onChange:H=>w(C=>({...C,[_.key]:H.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:[o.jsx("option",{value:"",children:"Select..."}),_.options.map(H=>o.jsx("option",{value:H.value,children:H.label},H.value))]}):o.jsx("input",{type:_.type==="email"?"email":_.type==="url"?"url":"text",value:b[_.key]||"",onChange:H=>w(C=>({...C,[_.key]:H.target.value})),placeholder:_.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"}),_.description&&o.jsx("p",{className:"text-[10px] text-neutral-500 mt-0.5",children:_.description})]},_.key))}),o.jsx("button",{onClick:E,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?o.jsxs(o.Fragment,{children:[o.jsx(iD,{size:14,className:"animate-spin"}),"Installing..."]}):o.jsxs(o.Fragment,{children:["Install Template",o.jsx(Vk,{size:14})]})})]})})]})}function BU({children:e}){return Qn()?o.jsx(o.Fragment,{children:e}):o.jsx(Zw,{to:"/login",replace:!0})}function UU(){return o.jsxs(zw,{children:[o.jsxs(BC,{children:[o.jsx(Ue,{path:"/login",element:o.jsx(SD,{})}),o.jsx(Ue,{path:"/onboarding",element:o.jsx(qD,{})}),o.jsxs(Ue,{path:"/*",element:o.jsx(BU,{children:o.jsx(jD,{})}),children:[o.jsx(Ue,{index:!0,element:o.jsx(TO,{})}),o.jsx(Ue,{path:"dashboard",element:o.jsx(BD,{})}),o.jsx(Ue,{path:"agents",element:o.jsx($D,{})}),o.jsx(Ue,{path:"agents/:id",element:o.jsx(eO,{})}),o.jsx(Ue,{path:"tasks",element:o.jsx(aO,{})}),o.jsx(Ue,{path:"tasks/:id",element:o.jsx(rO,{})}),o.jsx(Ue,{path:"contacts",element:o.jsx(XO,{})}),o.jsx(Ue,{path:"contacts/:id",element:o.jsx(JO,{})}),o.jsx(Ue,{path:"projects",element:o.jsx(eq,{})}),o.jsx(Ue,{path:"projects/:id",element:o.jsx(aq,{})}),o.jsx(Ue,{path:"templates",element:o.jsx(FU,{})}),o.jsx(Ue,{path:"automations",element:o.jsx(sq,{})}),o.jsx(Ue,{path:"automations/new",element:o.jsx(vw,{})}),o.jsx(Ue,{path:"automations/:id/edit",element:o.jsx(vw,{})}),o.jsx(Ue,{path:"connections",element:o.jsx(RU,{})}),o.jsx(Ue,{path:"approvals",element:o.jsx(iO,{})}),o.jsx(Ue,{path:"activity",element:o.jsx(dO,{})}),o.jsx(Ue,{path:"schedules",element:o.jsx(mO,{})}),o.jsx(Ue,{path:"knowledge",element:o.jsx(OU,{})}),o.jsx(Ue,{path:"messages",element:o.jsx(LO,{})}),o.jsx(Ue,{path:"chat",element:o.jsx(Zw,{to:"/",replace:!0})}),o.jsx(Ue,{path:"settings",element:o.jsx(YO,{})})]})]}),o.jsx(mD,{})]})}B_.createRoot(document.getElementById("root")).render(o.jsx(i.StrictMode,{children:o.jsx(fT,{basename:"/ui",children:o.jsx(UU,{})})}));