@nekzus/liop-studio 1.0.0-alpha.2 → 1.0.0-alpha.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.
- package/dist/cli/index.js +23 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +23 -12
- package/dist/index.js.map +1 -1
- package/dist/server/index.js +23 -12
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
- package/ui/dist/assets/index-B7ubja55.js +275 -0
- package/ui/dist/assets/index-BMzlkxln.css +1 -0
- package/ui/dist/favicon.svg +14 -0
- package/ui/dist/icons.svg +24 -0
- package/ui/dist/index.html +14 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ie(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ie(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),ie(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=ie(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=ie(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ie(re(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ae(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function oe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var k=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},A={map:ae,forEach:function(e,t,n){ae(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ae(e,function(){t++}),t},toArray:function(e){return ae(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=A,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:oe}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,k)}catch(e){k(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ce=[],le=-1;function j(e){return{current:e}}function M(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function N(e,t){le++,ce[le]=e.current,e.current=t}var ue=j(null),P=j(null),de=j(null),fe=j(null);function pe(e,t){switch(N(de,t),N(P,e),N(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Gd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}M(ue),N(ue,e)}function me(){M(ue),M(P),M(de)}function he(e){e.memoizedState!==null&&N(fe,e);var t=ue.current,n=Gd(t,e.type);t!==n&&(N(P,e),N(ue,n))}function ge(e){P.current===e&&(M(ue),M(P)),fe.current===e&&(M(fe),Qf._currentValue=se)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+_e+e+ve}var be=!1;function xe(e,t){if(!e||be)return``;be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,F=t.unstable_ImmediatePriority,je=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,Pe=t.unstable_IdlePriority,Fe=t.log,Ie=t.unstable_setDisableYieldValue,Le=null,Re=null;function ze(e){if(typeof Fe==`function`&&Ie(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var Be=Math.clz32?Math.clz32:Ue,Ve=Math.log,He=Math.LN2;function Ue(e){return e>>>=0,e===0?32:31-(Ve(e)/He|0)|0}var We=256,Ge=262144,Ke=4194304;function qe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Je(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=qe(n))):i=qe(o):i=qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=qe(n))):i=qe(o)):i=qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ye(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ze(){var e=Ke;return Ke<<=1,!(Ke&62914560)&&(Ke=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $e(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function et(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Be(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&tt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function tt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Be(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function nt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function rt(e,t){var n=t&-t;return n=n&42?1:it(n),(n&(e.suspendedLanes|t))===0?n:0}function it(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function at(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ot(){var e=A.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function st(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var ct=Math.random().toString(36).slice(2),lt=`__reactFiber$`+ct,ut=`__reactProps$`+ct,dt=`__reactContainer$`+ct,ft=`__reactEvents$`+ct,pt=`__reactListeners$`+ct,mt=`__reactHandles$`+ct,ht=`__reactResources$`+ct,gt=`__reactMarker$`+ct;function _t(e){delete e[lt],delete e[ut],delete e[ft],delete e[pt],delete e[mt]}function vt(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dt]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[lt])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function yt(e){if(e=e[lt]||e[dt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function xt(e){var t=e[ht];return t||=e[ht]={hoistableStyles:new Map,hoistableScripts:new Map},t}function St(e){e[gt]=!0}var Ct=new Set,wt={};function Tt(e,t){Et(e,t),Et(e+`Capture`,t)}function Et(e,t){for(wt[e]=t,e=0;e<t.length;e++)Ct.add(t[e])}var I=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]*$`),Dt={},Ot={};function kt(e){return we.call(Ot,e)?!0:we.call(Dt,e)?!1:I.test(e)?Ot[e]=!0:(Dt[e]=!0,!1)}function At(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function jt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Mt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Nt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Pt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ft(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function It(e){if(!e._valueTracker){var t=Pt(e)?`checked`:`value`;e._valueTracker=Ft(e,t,``+e[t])}}function Lt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Pt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Rt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var zt=/[\n"\\]/g;function Bt(e){return e.replace(zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Vt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Nt(t)):e.value!==``+Nt(t)&&(e.value=``+Nt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ut(e,o,Nt(n)):Ut(e,o,Nt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Nt(s):e.removeAttribute(`name`)}function Ht(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){It(e);return}n=n==null?``:``+Nt(n),t=t==null?n:``+Nt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),It(e)}function Ut(e,t,n){t===`number`&&Rt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Wt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Nt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gt(e,t,n){if(t!=null&&(t=``+Nt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Nt(n)}function Kt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Nt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),It(e)}function qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jt=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 Yt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Jt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Xt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Yt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Yt(e,o,t[o])}function Zt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Qt=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`]]),$t=/^[\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 en(e){return $t.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function tn(){}var nn=null;function L(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=yt(e);if(t&&(e=t.stateNode)){var n=e[ut]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Bt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ut]||null;if(!a)throw Error(i(90));Vt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Lt(r)}break a;case`textarea`:Gt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Wt(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(Cu(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ut]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=f({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,R=f({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),On=bn(R),kn=bn(f({},R,{dataTransfer:0})),An=bn(f({},Cn,{relatedTarget:0})),jn=bn(f({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=bn(f({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=bn(f({},xn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=bn(f({},Cn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=bn(f({},R,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=bn(f({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=bn(f({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=bn(f({},R,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Wn=bn(f({},xn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=un&&`CompositionEvent`in window,z=null;un&&`documentMode`in document&&(z=document.documentMode);var qn=un&&`TextEvent`in window&&!z,Jn=un&&(!Kn||z&&8<z&&11>=z),Yn=` `,Xn=!1;function Zn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var $n=!1;function er(e,t){switch(e){case`compositionend`:return Qn(t);case`keypress`:return t.which===32?(Xn=!0,Yn):null;case`textInput`:return e=t.data,e===Yn&&Xn?null:e;default:return null}}function tr(e,t){if($n)return e===`compositionend`||!Kn&&Zn(e,t)?(e=gn(),hn=mn=pn=null,$n=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Jn&&t.locale!==`ko`?null:t.data;default:return null}}var nr={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 rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!nr[e.type]:t===`textarea`}function ir(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=kd(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ar=null,or=null;function sr(e){Sd(e,0)}function cr(e){if(Lt(bt(e)))return e}function lr(e,t){if(e===`change`)return t}var ur=!1;if(un){var dr;if(un){var fr=`oninput`in document;if(!fr){var pr=document.createElement(`div`);pr.setAttribute(`oninput`,`return;`),fr=typeof pr.oninput==`function`}dr=fr}else dr=!1;ur=dr&&(!document.documentMode||9<document.documentMode)}function mr(){ar&&(ar.detachEvent(`onpropertychange`,hr),or=ar=null)}function hr(e){if(e.propertyName===`value`&&cr(or)){var t=[];ir(t,or,e,L(e)),cn(sr,t)}}function gr(e,t,n){e===`focusin`?(mr(),ar=t,or=n,ar.attachEvent(`onpropertychange`,hr)):e===`focusout`&&mr()}function _r(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return cr(or)}function vr(e,t){if(e===`click`)return cr(t)}function yr(e,t){if(e===`input`||e===`change`)return cr(t)}function br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var xr=typeof Object.is==`function`?Object.is:br;function Sr(e,t){if(xr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!we.call(t,i)||!xr(e[i],t[i]))return!1}return!0}function Cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wr(e,t){var n=Cr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rt(e.document)}return t}function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Or=un&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==Rt(r)||(r=kr,`selectionStart`in r&&Dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Sr(jr,r)||(jr=r,r=kd(Ar,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function Pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Fr={animationend:Pr(`Animation`,`AnimationEnd`),animationiteration:Pr(`Animation`,`AnimationIteration`),animationstart:Pr(`Animation`,`AnimationStart`),transitionrun:Pr(`Transition`,`TransitionRun`),transitionstart:Pr(`Transition`,`TransitionStart`),transitioncancel:Pr(`Transition`,`TransitionCancel`),transitionend:Pr(`Transition`,`TransitionEnd`)},Ir={},Lr={};un&&(Lr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),`TransitionEvent`in window||delete Fr.transitionend.transition);function Rr(e){if(Ir[e])return Ir[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lr)return Ir[e]=t[n];return e}var zr=Rr(`animationend`),Br=Rr(`animationiteration`),Vr=Rr(`animationstart`),Hr=Rr(`transitionrun`),Ur=Rr(`transitionstart`),Wr=Rr(`transitioncancel`),Gr=Rr(`transitionend`),Kr=new Map,qr=`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(` `);qr.push(`scrollEnd`);function Jr(e,t){Kr.set(e,t),Tt(t,[e])}var Yr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Be(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<mu)throw mu=0,hu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function oi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(e,t,n,r){return new oi(e,t,n,r)}function ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,t){var n=e.alternate;return n===null?(n=si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ui(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function di(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ci(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=si(31,n,t,a),e.elementType=ee,e.lanes=o,e;case y:return fi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=si(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=si(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=si(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function fi(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function pi(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function mi(e){var t=si(18,null,null,0);return t.stateNode=e,t}function hi(e,t,n){return t=si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:Ce(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:Ce(t)}}var vi=[],yi=0,bi=null,xi=0,Si=[],Ci=0,wi=null,Ti=1,Ei=``;function Di(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Oi(e,t,n){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,wi=e;var r=Ti;e=Ei;var i=32-Be(r)-1;r&=~(1<<i),n+=1;var a=32-Be(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-Be(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ei=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null}function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,B=!1,Pi=null,Fi=!1,Ii=Error(i(519));function Li(e){throw Ui(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ii}function Ri(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[lt]=e,t[ut]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<bd.length;n++)Y(bd[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),Ht(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),Kt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||Li(e,!0)}function zi(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:Fi=!1;return;case 27:case 3:Fi=!0;return;default:Mi=Mi.return}}function Bi(e){if(e!==Mi)return!1;if(!B)return zi(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Kd(e.type,e.memoizedProps)),n=!n),n&&Ni&&Li(e),zi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=df(e)}else t===27?(t=Ni,$d(e.type)?(e=uf,uf=null,Ni=e):Ni=t):Ni=Mi?lf(e.stateNode.nextSibling):null;return!0}function Vi(){Ni=Mi=null,B=!1}function Hi(){var e=Pi;return e!==null&&(eu===null?eu=e:eu.push.apply(eu,e),Pi=null),e}function Ui(e){Pi===null?Pi=[e]:Pi.push(e)}var Wi=j(null),Gi=null,Ki=null;function qi(e,t,n){N(Wi,t._currentValue),t._currentValue=n}function Ji(e){e._currentValue=Wi.current,M(Wi)}function Yi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Xi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Yi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Yi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Zi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;xr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Xi(t,e,n,r),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Ki=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ea(e){return na(Gi,e)}function ta(e,t){return Gi===null&&$i(e),na(e,t)}function na(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ki===null){if(e===null)throw Error(i(308));Ki=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ki=Ki.next=t;return n}var ra=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ia=t.unstable_scheduleCallback,aa=t.unstable_NormalPriority,oa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sa(){return{controller:new ra,data:new Map,refCount:0}}function ca(e){e.refCount--,e.refCount===0&&ia(aa,function(){e.controller.abort()})}var la=null,ua=0,da=0,fa=null;function pa(e,t){if(la===null){var n=la=[];ua=0,da=md(),fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ua++,t.then(ma,ma),t}function ma(){if(--ua===0&&la!==null){fa!==null&&(fa.status=`fulfilled`);var e=la;la=null,da=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ha(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ga=k.S;k.S=function(e,t){ru=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&pa(e,t),ga!==null&&ga(e,t)};var _a=j(null);function va(){var e=_a.current;return e===null?W.pooledCache:e}function ya(e,t){t===null?N(_a,_a.current):N(_a,t.pool)}function ba(){var e=va();return e===null?null:{parent:oa._currentValue,pool:e}}var xa=Error(i(460)),Sa=Error(i(474)),Ca=Error(i(542)),wa={then:function(){}};function Ta(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ea(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(tn,tn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e;default:if(typeof t.status==`string`)t.then(tn,tn);else{if(e=W,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e}throw Oa=t,xa}}function Da(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Oa=e,xa):e}}var Oa=null;function ka(){if(Oa===null)throw Error(i(459));var e=Oa;return Oa=null,e}function Aa(e){if(e===xa||e===Ca)throw Error(i(483))}var ja=null,Ma=0;function Na(e){var t=Ma;return Ma+=1,ja===null&&(ja=[]),Ea(ja,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ia(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Da(i)===t.type)?(t=a(t,n.props),Pa(t,n),t.return=e,t):(t=di(n.type,n.key,n.props,null,e.mode,r),Pa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=pi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=di(t.type,t.key,t.props,null,e.mode,n),Pa(n,t),n.return=e,n;case v:return t=hi(t,e.mode,n),t.return=e,t;case O:return t=Da(t),f(e,t,n)}if(oe(t)||re(t))return t=fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Na(t),n);if(t.$$typeof===C)return f(e,ta(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Da(n),p(e,t,n,r)}if(oe(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Na(n),r);if(n.$$typeof===C)return p(e,t,ta(e,n),r);Fa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Da(r),m(e,t,n,r,i)}if(oe(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Na(r),i);if(r.$$typeof===C)return m(e,t,n,ta(t,r),i);Fa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&Di(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return B&&Di(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),B&&Di(i,h),l}function _(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&Di(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&Di(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&Di(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Da(l)===r.type){n(e,r.sibling),c=a(r,o.props),Pa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),Pa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Da(o),b(e,r,o,c)}if(oe(o))return h(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Na(o),c);if(o.$$typeof===C)return b(e,r,ta(e,o),c);Fa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ma=0;var i=b(e,t,n,r);return ja=null,i}catch(t){if(t===xa||t===Ca)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=fa;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(K&p)===p:(r&p)===p){p!==0&&p===da&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:za=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Jl|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=j(null),Qa=j(0);function $a(e,t){e=Kl,N(Qa,e),N(Za,t),Kl=e|t.baseLanes}function eo(){N(Qa,Kl),N(Za,Za.current)}function to(){Kl=Qa.current,M(Za),M(Qa)}var no=j(null),ro=null;function io(e){var t=e.alternate;N(lo,lo.current&1),N(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){N(lo,lo.current),N(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(N(lo,lo.current),N(no,e),ro===null&&(ro=e)):so(e)}function so(){N(lo,lo.current),N(no,no.current)}function co(e){M(no),ro===e&&(ro=null),M(lo)}var lo=j(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sf(n)||cf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,V=null,H=null,po=null,mo=!1,ho=!1,go=!1,_o=0,vo=0,yo=null,bo=0;function xo(){throw Error(i(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xr(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,i,a){return fo=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Bs:Vs,go=!1,a=n(r,i),go=!1,ho&&(a=To(t,n,r,i)),wo(e),a}function wo(e){k.H=zs;var t=H!==null&&H.next!==null;if(fo=0,po=H=V=null,mo=!1,vo=0,yo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&Qi(e)&&(ic=!0))}function To(e,t,n,r){V=e;var a=0;do{if(ho&&(yo=null),vo=0,ho=!1,25<=a)throw Error(i(301));if(a+=1,po=H=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}k.H=Hs,o=t(n,r)}while(ho);return o}function Eo(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(H===null?null:H.memoizedState)!==e&&(V.flags|=1024),t}function Do(){var e=_o!==0;return _o=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mo=!1}fo=0,po=H=V=null,ho=!1,vo=_o=0,yo=null}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return po===null?V.memoizedState=po=e:po=po.next=e,po}function jo(){if(H===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=H.next;var t=po===null?V.memoizedState:po.next;if(t!==null)po=t,H=e;else{if(e===null)throw V.alternate===null?Error(i(467)):Error(i(310));H=e,e={memoizedState:H.memoizedState,baseState:H.baseState,baseQueue:H.baseQueue,queue:H.queue,next:null},po===null?V.memoizedState=po=e:po=po.next=e}return po}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=vo;return vo+=1,yo===null&&(yo=[]),e=Ea(yo,e,t),t=V,(po===null?t.memoizedState:po.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Bs:Vs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===C)return ea(e)}throw Error(i(438,String(e)))}function Fo(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Mo(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(jo(),H,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(K&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===da&&(d=!0);else if((fo&p)===p){u=u.next,p===da&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,V.lanes|=p,Jl|=p;f=u.action,go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,V.lanes|=f,Jl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!xr(o,e.memoizedState)&&(ic=!0,d&&(n=fa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);xr(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=V,a=jo(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!xr((H||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ds(Uo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||po!==null&&po.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),W===null)throw Error(i(349));o||fo&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=Mo(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xr(e,n)}catch{return!0}}function Go(e){var t=ni(e,2);t!==null&&vu(t,e,2)}function Ko(e){var t=Ao();if(typeof e==`function`){var n=e;if(e=n(),go){ze(!0);try{n()}finally{ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,H,typeof r==`function`?r:Io)}function Jo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};k.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Yo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(B){var n=W.formState;if(n!==null){a:{var r=V;if(B){if(Ni){b:{for(var i=Ni,a=Fi;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=lf(i.nextSibling),r=i.data===`F!`;break a}}Li(r)}r=!1}r&&(t=n[0])}}return n=Ao(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ns.bind(null,V,r),r.dispatch=n,r=Ko(!1),a=Fs.bind(null,V,!1,r.queue),r=Ao(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(jo(),H,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===xa?Ca:e}else r=t;t=jo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=jo(),n=H;if(n!==null)return rs(t,n,e);jo(),t=t.memoizedState,n=jo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=Mo(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return jo().memoizedState}function cs(e,t,n,r){var i=Ao();V.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=i.memoizedState.inst;H!==null&&r!==null&&So(r,H.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(V.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=Mo(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=jo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(U&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),go){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||fo&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=_u(),V.lanes|=e,Jl|=e,n)}function Ss(e,t,n,r){return xr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(K&261930)?(ic=!0,e.memoizedState=n):(e=_u(),V.lanes|=e,Jl|=e,t):(e=xs(e,n,r),xr(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};k.T=s,Fs(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,ha(c,r),gu(e)):Ps(e,t,r,gu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},gu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,se,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},gu())}function Os(){return ea(Qf)}function ks(){return jo().memoizedState}function As(){return jo().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=gu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(vu(r,t,n),Wa(r,t,n)),t={cache:sa()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=gu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ti(e,t,n,r),n!==null&&(vu(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,gu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,xr(s,o))return ei(e,t,i,0),W===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return vu(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:md(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&vu(t,e,2)}function Is(e){var t=e.alternate;return e===V||t!==null&&t===V}function Ls(e,t){ho=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nt(e,n)}}var zs={readContext:ea,use:Po,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo};zs.useEffectEvent=xo;var Bs={readContext:ea,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:ea,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(go){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(go){ze(!0);try{n(t)}finally{ze(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ns.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(Ao(),e,t)},useTransition:function(){var e=Ko(!1);return e=Cs.bind(null,V,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=Ao();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),W===null)throw Error(i(349));K&127||Vo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Uo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=Ao(),t=W.identifierPrefix;if(B){var n=Ei,r=Ti;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=bo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=Ao();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Ao().memoizedState=js.bind(null,V)},useEffectEvent:function(e){var t=Ao(),n={impl:e};return t.memoizedState=n,function(){if(U&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ea,use:Po,useCallback:ys,useContext:ea,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(jo(),H.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(jo(),H,e,t)},useMemoCache:Fo,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:ea,use:Po,useCallback:ys,useContext:ea,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=jo();return H===null?xs(n,e,t):Ss(n,H.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=jo();return H===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,H,e,t)},useMemoCache:Fo,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(vu(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(vu(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(vu(t,e,n),Wa(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Sr(n,r)||!Sr(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){Yr(e)}function Ys(e){console.error(e)}function Xs(e){Yr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ha(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(ou===null?ou=new Set([this]):ou.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Zi(t,n,a,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?Au():n.alternate===null&&ql===0&&(ql=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ju(e,r,a)),!1;case 22:return n.flags|=65536,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ju(e,r,a)),!1}throw Error(i(435,n.tag))}return Ju(e,r,a),Au(),!1}if(B)return t=no.current,t===null?(r!==Ii&&(t=Error(i(423),{cause:r}),Ui(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=$s(e.stateNode,r,a),Ga(e,a),ql!==4&&(ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ii&&(e=Error(i(422),{cause:r}),Ui(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),$l===null?$l=[o]:$l.push(o),ql!==4&&(ql=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ou===null||!ou.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Ga(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Ra(t,null,n,r):La(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return $i(t),r=Co(e,t,n,o,a,i),s=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(B&&s&&ki(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=di(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Sr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=li(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Sr(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ya(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ya(t,null),eo(),so(t)):(ya(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=va();return a=a===null?null:{parent:oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ya(t,null),eo(),oo(t),e!==null&&Zi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return La(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(ao(t),(e=Ni)?(e=of(e,Fi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Li(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ao(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ic||Zi(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=W,r!==null&&(s=rt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),vu(r,e,s),rc;Au(),t=pc(e,t,n)}else e=o.treeContext,Ni=lf(s.nextSibling),Mi=t,B=!0,Pi=null,Fi=!1,e!==null&&ji(t,e),t=fc(t,r),t.flags|=4096;return t}return e=li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return $i(t),n=Co(e,t,n,r,void 0,i),r=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(B&&r&&ki(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return $i(t),t.updateQueue=null,n=To(t,r,n,i),wo(e),r=Do(),e!==null&&!ic?(Oo(e,t,a),Ac(e,t,a)):(B&&r&&ki(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if($i(t),t.stateNode===null){var a=ai,o=n.contextType;typeof o==`object`&&o&&(a=ea(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?ea(o):ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ai,typeof u==`object`&&u&&(o=ea(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=za||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ai,typeof l==`object`&&l&&(c=ea(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=za||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=La(t,e.child,null,i),t.child=La(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Vi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:ba()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Zl),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(lo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(B){if(a?io(t):so(t),(e=Ni)?(e=of(e,Fi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Li(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(so(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=fi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(io(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(io(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=fi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,La(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),cf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ui({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Zi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=W,s!==null&&(r=rt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),vu(s,e,r),rc;sf(c)||Au(),t=Ec(e,t,n)}else sf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=lf(c.nextSibling),Mi=t,B=!0,Pi=null,Fi=!1,e!==null&&ji(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(so(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=li(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=fi(c,a,n,null),c.flags|=2):c=li(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=ba():(l=oa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=si(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return La(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(lo,o),ac(e,t,r,n),r=B?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Qi(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),qi(t,oa,e.memoizedState.cache),Vi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Zi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(lo,lo.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:qi(t,oa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,B&&t.flags&1048576&&Oi(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e==`function`)ci(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,qi(t,oa,r),r!==o.cache&&Xi(t,[oa],n,!0),qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==a){a=_i(Error(i(424)),t),Ui(a),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ni=lf(e.firstChild),Mi=t,B=!0,Pi=null,Fi=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(n=t.type,e=t.pendingProps,r=Ud(de.current).createElement(n),r[lt]=t,r[ut]=e,Ld(r,n,e),St(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&B&&(r=t.stateNode=pf(t.type,t.pendingProps,de.current),Mi=t,Fi=!0,a=Ni,$d(t.type)?(uf=a,Ni=lf(r.firstChild)):Ni=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=Ni)&&(r=rf(r,t.type,t.pendingProps,Fi),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=lf(r.firstChild),Fi=!1,a=!0)),a||Li(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Kd(a,o)?r=null:s!==null&&Kd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Co(e,t,Eo,null,null,n),Qf._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=Ni)&&(n=af(n,t.pendingProps,Fi),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Li(t)),null;case 13:return Cc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=La(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,qi(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,$i(t),a=ea(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return $i(t),r=ea(oa),e===null?(a=va(),a===null&&(a=W,o=sa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ba(t),qi(t,oa,a)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,qi(t,oa,r),r!==a.cache&&Xi(t,[oa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),qi(t,oa,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Du())e.flags|=8192;else throw Oa=wa,Sa}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Du())e.flags|=8192;else throw Oa=wa,Sa}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ze(),e.lanes|=t,Ql|=t)}function Rc(e,t){if(!B)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ji(oa),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Bi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hi())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(ge(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=ue.current,Bi(t)?Ri(t,e):(e=pf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=ue.current,Bi(t))Ri(t,o);else{var s=Ud(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[lt]=t,o[ut]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ld(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,Bi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Li(t,!0)}else e=Ud(e).createTextNode(r),e[lt]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[lt]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(i(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Bi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[lt]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return me(),e===null&&Td(t.stateNode.containerInfo),zc(t),null;case 10:return Ji(t.type),zc(t),null;case 19:if(M(lo),r=t.memoizedState,r===null)return zc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Rc(r,!1);else{if(ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return N(lo,lo.current&1|2),B&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>iu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}else{if(!a)if(e=uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!B)return zc(t),null}else 2*ke()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=lo.current,N(lo,a?n&1|2:n&1),B&&Di(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(_a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ji(oa),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(oa),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(i(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(lo),null;case 4:return me(),null;case 10:return Ji(t.type),null;case 22:case 23:return co(t),to(),e!==null&&M(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ji(oa),null;case 25:return null;default:return null}}function Hc(e,t){switch(Ai(t),t.tag){case 3:Ji(oa),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:M(lo);break;case 10:Ji(t.type);break;case 22:case 23:co(t),to(),e!==null&&M(_a);break;case 24:Ji(oa)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){J(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){J(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){J(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){J(e,e.return,t)}}}function Kc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){J(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){J(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){J(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){J(e,t,n)}else n.current=null}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){J(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Rd(r,e.type,n,t),r[ut]=t}catch(t){J(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tn));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ld(t,r,n),t[lt]=e,t[ut]=n}catch(t){J(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Vd=sp,e=Er(e),Dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Hd={focusedElem:e,selectionRange:n},sp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){J(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){J(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){J(n,n.return,e)}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){J(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Zu.bind(null,n),Q(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,(n.subtreeFlags&8772)!=0):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_t(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount==`function`)try{Re.onCommitFiberUnmount(Le,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;$d(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),mf(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null)if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){J(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){J(n,t,e)}break;case 18:ul!==null&&(dl?(e=ul,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):ef(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){J(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){J(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Qu.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[gt]||o[lt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Ld(o,r,n),o[lt]=e,St(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[lt]=e,St(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{qt(a,``)}catch(t){J(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){J(e,e.return,t)}}break;case 3:if(Bf=null,a=yl,yl=gf(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){J(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=gf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){J(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){J(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?tf(m,!0):tf(l.stateNode,!1)}catch(e){J(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(qt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){J(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:mf(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){J(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){J(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ca(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ca(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ca(e)));break;case 12:if(i&2048){Ol(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){J(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Gf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=gf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ca(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=ea(oa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ea(oa).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,U=0,W=null,G=null,K=0,q=0,Hl=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=null,eu=null,tu=!1,nu=0,ru=0,iu=1/0,au=null,ou=null,su=0,cu=null,lu=null,uu=0,du=0,fu=null,pu=null,mu=0,hu=null;function gu(){return U&2&&K!==0?K&-K:k.T===null?ot():md()}function _u(){if(Zl===0)if(!(K&536870912)||B){var e=Ge;Ge<<=1,!(Ge&3932160)&&(Ge=262144),Zl=e}else Zl=536870912;return e=no.current,e!==null&&(e.flags|=32),Zl}function vu(e,t,n){(e===W&&(q===2||q===9)||e.cancelPendingCommit!==null)&&(Tu(e,0),Su(e,K,Zl,!1)),$e(e,n),(!(U&2)||e!==W)&&(e===W&&(!(U&2)&&(Yl|=n),ql===4&&Su(e,K,Zl,!1)),od(e))}function yu(e,t,n){if(U&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ye(e,t),a=r?Nu(e,t):ju(e,t,!0),o=r;do{if(a===0){Wl&&!r&&Su(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!xu(n)){a=ju(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=$l;var l=c.current.memoizedState.isDehydrated;if(l&&(Tu(c,s).flags|=256),s=ju(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Yl|=o,a=4;break a}o=eu,eu=a,o!==null&&(eu===null?eu=o:eu.push.apply(eu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Tu(e,0),Su(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Su(r,t,Zl,!Ul);break a;case 2:eu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=nu+300-ke(),10<a)){if(Su(r,t,Zl,!Ul),Je(r,0,!0)!==0)break a;uu=t,r.timeoutHandle=Yd(bu.bind(null,r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,`Throttled`,-0,0),a);break a}bu(r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,null,-0,0)}}break}while(1);od(e)}function bu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Pl(t,a,d);var m=(a&62914560)===a?nu-ke():(a&4194048)===a?ru-ke():0;if(m=qf(d,m),m!==null){uu=a,e.cancelPendingCommit=m(Bu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Su(e,a,o,!l);return}}Bu(e,t,a,n,r,i,o,s,c)}function xu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!xr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Su(e,t,n,r){t&=~Xl,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Be(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&tt(e,n,t)}function Cu(){return U&6?!0:(sd(0,!1),!1)}function wu(){if(G!==null){if(q===0)var e=G.return;else e=G,Ki=Gi=null,ko(e),ja=null,Ma=0,e=G;for(;e!==null;)Hc(e.alternate,e),e=e.return;G=null}}function Tu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),uu=0,wu(),W=e,G=n=li(e.current,null),K=t,q=0,Hl=null,Ul=!1,Wl=Ye(e,t),Gl=!1,Ql=Zl=Xl=Yl=Jl=ql=0,eu=$l=null,tu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Be(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,$r(),n}function Eu(e,t){V=null,k.H=zs,t===xa||t===Ca?(t=ka(),q=3):t===Sa?(t=ka(),q=4):q=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,G===null&&(ql=1,Zs(e,_i(t,e.current)))}function Du(){var e=no.current;return e===null?!0:(K&4194048)===K?ro===null:(K&62914560)===K||K&536870912?e===ro:!1}function Ou(){var e=k.H;return k.H=zs,e===null?zs:e}function ku(){var e=k.A;return k.A=Bl,e}function Au(){ql=4,Ul||(K&4194048)!==K&&no.current!==null||(Wl=!0),!(Jl&134217727)&&!(Yl&134217727)||W===null||Su(W,K,Zl,!1)}function ju(e,t,n){var r=U;U|=2;var i=Ou(),a=ku();(W!==e||K!==t)&&(au=null,Tu(e,t)),t=!1;var o=ql;a:do try{if(q!==0&&G!==null){var s=G,c=Hl;switch(q){case 8:wu(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=q;if(q=0,Hl=null,Lu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=q,q=0,Hl=null,Lu(e,s,c,l)}}Mu(),o=ql;break}catch(t){Eu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ki=Gi=null,U=r,k.H=i,k.A=a,G===null&&(W=null,K=0,$r()),o}function Mu(){for(;G!==null;)Fu(G)}function Nu(e,t){var n=U;U|=2;var r=Ou(),a=ku();W!==e||K!==t?(au=null,iu=ke()+500,Tu(e,t)):Wl=Ye(e,t);a:do try{if(q!==0&&G!==null){t=G;var o=Hl;b:switch(q){case 1:q=0,Hl=null,Lu(e,t,o,1);break;case 2:case 9:if(Ta(o)){q=0,Hl=null,Iu(t);break}t=function(){q!==2&&q!==9||W!==e||(q=7),od(e)},o.then(t,t);break a;case 3:q=7;break a;case 4:q=5;break a;case 7:Ta(o)?(q=0,Hl=null,Iu(t)):(q=0,Hl=null,Lu(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?Wf(s):c.stateNode.complete){q=0,Hl=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,Ru(u))}break b}}q=0,Hl=null,Lu(e,t,o,5);break;case 6:q=0,Hl=null,Lu(e,t,o,6);break;case 8:wu(),ql=6;break a;default:throw Error(i(462))}}Pu();break}catch(t){Eu(e,t)}while(1);return Ki=Gi=null,k.H=r,k.A=a,U=n,G===null?(W=null,K=0,$r(),ql):0}function Pu(){for(;G!==null&&!De();)Fu(G)}function Fu(e){var t=Nc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Ru(e):G=t}function Iu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:ko(t);default:Hc(n,t),t=G=ui(t,Kl),t=Nc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Ru(e):G=t}function Lu(e,t,n,r){Ki=Gi=null,ko(t),ja=null,Ma=0;var i=t.return;try{if(nc(e,i,t,n,K)){ql=1,Zs(e,_i(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;ql=1,Zs(e,_i(n,e.current)),G=null;return}t.flags&32768?(B||r===1?e=!0:Wl||K&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),zu(t,e)):Ru(t)}function Ru(e){var t=e;do{if(t.flags&32768){zu(t,Ul);return}e=t.return;var n=Bc(t.alternate,t,Kl);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);ql===0&&(ql=5)}function zu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);ql=6,G=null}function Bu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Gu();while(su!==0);if(U&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,et(e,n,o,s,c,l),e===W&&(G=W=null,K=0),lu=t,cu=e,uu=n,du=o,fu=a,pu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,$u(Me,function(){return Ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=k.T,k.T=null,a=A.p,A.p=2,s=U,U|=4;try{sl(e,t,n)}finally{U=s,A.p=a,k.T=r}}su=1,Vu(),Hu(),Uu()}}function Vu(){if(su===1){su=0;var e=cu,t=lu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=U;U|=4;try{bl(t,e);var a=Hd,o=Er(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Tr(s.ownerDocument.documentElement,s)){if(c!==null&&Dr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Vd,Hd=Vd=null}finally{U=i,A.p=r,k.T=n}}e.current=t,su=2}}function Hu(){if(su===2){su=0;var e=cu,t=lu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=U;U|=4;try{cl(e,t.alternate,t)}finally{U=i,A.p=r,k.T=n}}su=3}}function Uu(){if(su===4||su===3){su=0,Oe();var e=cu,t=lu,n=uu,r=pu;t.subtreeFlags&10256||t.flags&10256?su=5:(su=0,lu=cu=null,Wu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ou=null),at(n),t=t.stateNode,Re&&typeof Re.onCommitFiberRoot==`function`)try{Re.onCommitFiberRoot(Le,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=k.T,i=A.p,A.p=2,k.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{k.T=t,A.p=i}}uu&3&&Gu(),od(e),i=e.pendingLanes,n&261930&&i&42?e===hu?mu++:(mu=0,hu=e):mu=0,sd(0,!1)}}function Wu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ca(t)))}function Gu(){return Vu(),Hu(),Uu(),Ku()}function Ku(){if(su!==5)return!1;var e=cu,t=du;du=0;var n=at(uu),r=k.T,a=A.p;try{A.p=32>n?32:n,k.T=null,n=fu,fu=null;var o=cu,s=uu;if(su=0,lu=cu=null,uu=0,U&6)throw Error(i(331));var c=U;if(U|=4,Ll(o.current),kl(o,o.current,s,n),U=c,sd(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,o)}catch{}return!0}finally{A.p=a,k.T=r,Wu(e,t)}}function qu(e,t,n){t=_i(n,t),t=$s(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&($e(e,2),od(e))}function J(e,t,n){if(e.tag===3)qu(e,e,n);else for(;t!==null;){if(t.tag===3){qu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ou===null||!ou.has(r))){e=_i(n,e),n=ec(2),r=Ua(t,n,2),r!==null&&(tc(n,r,t,e),$e(r,2),od(r));break}}t=t.return}}function Ju(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Yu.bind(null,e,t,n),t.then(e,e))}function Yu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,W===e&&(K&n)===n&&(ql===4||ql===3&&(K&62914560)===K&&300>ke()-nu?!(U&2)&&Tu(e,0):Xl|=n,Ql===K&&(Ql=0)),od(e)}function Xu(e,t){t===0&&(t=Ze()),e=ni(e,t),e!==null&&($e(e,t),od(e))}function Zu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xu(e,n)}function Qu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Xu(e,n)}function $u(e,t){return Te(e,t)}var ed=null,td=null,nd=!1,rd=!1,id=!1,ad=0;function od(e){e!==td&&e.next===null&&(td===null?ed=td=e:td=td.next=e),rd=!0,nd||(nd=!0,pd())}function sd(e,t){if(!id&&rd){id=!0;do for(var n=!1,r=ed;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Be(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,fd(r,a))}else a=K,a=Je(r,r===W?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ye(r,a)||(n=!0,fd(r,a));r=r.next}while(n);id=!1}}function cd(){ld()}function ld(){rd=nd=!1;var e=0;ad!==0&&Jd()&&(e=ad);for(var t=ke(),n=null,r=ed;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?ed=i:n.next=i,i===null&&(td=n)):(n=r,(e!==0||a&3)&&(rd=!0)),r=i}su!==0&&su!==5||sd(e,!1),ad!==0&&(ad=0)}function ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Be(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Xe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=W,n=K,n=Je(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(q===2||q===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ye(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),at(n)){case 2:case 8:n=je;break;case 32:n=Me;break;case 268435456:n=Pe;break;default:n=Me}return r=dd.bind(null,e),n=Te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(su!==0&&su!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var r=K;return r=Je(e,e===W?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(yu(e,r,t),ud(e,ke()),e.callbackNode!=null&&e.callbackNode===n?dd.bind(null,e):null)}function fd(e,t){if(Gu())return null;yu(e,t,!0)}function pd(){Zd(function(){U&6?Te(F,cd):ld()})}function md(){if(ad===0){var e=da;e===0&&(e=We,We<<=1,!(We&261888)&&(We=256)),ad=e}return ad}function hd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:en(``+e)}function gd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function _d(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=hd((i[ut]||null).action),o=r.submitter;o&&(t=(t=o[ut]||null)?hd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ad!==0){var e=o?gd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?gd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var vd=0;vd<qr.length;vd++){var yd=qr[vd];Jr(yd.toLowerCase(),`on`+(yd[0].toUpperCase()+yd.slice(1)))}Jr(zr,`onAnimationEnd`),Jr(Br,`onAnimationIteration`),Jr(Vr,`onAnimationStart`),Jr(`dblclick`,`onDoubleClick`),Jr(`focusin`,`onFocus`),Jr(`focusout`,`onBlur`),Jr(Hr,`onTransitionRun`),Jr(Ur,`onTransitionStart`),Jr(Wr,`onTransitionCancel`),Jr(Gr,`onTransitionEnd`),Et(`onMouseEnter`,[`mouseout`,`mouseover`]),Et(`onMouseLeave`,[`mouseout`,`mouseover`]),Et(`onPointerEnter`,[`pointerout`,`pointerover`]),Et(`onPointerLeave`,[`pointerout`,`pointerover`]),Tt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Tt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Tt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Tt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var bd=`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(` `),xd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(bd));function Sd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}}}}function Y(e,t){var n=t[ft];n===void 0&&(n=t[ft]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,Ct.forEach(function(t){t!==`selectionchange`&&(xd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=vt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=L(n),s=[];a:{var c=Kr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case zr:case Br:case Vr:l=jn;break;case Gr:l=Hn;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==nn&&(u=n.relatedTarget||n.fromElement)&&(vt(u)||u[dt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?vt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:bt(l),h=u==null?c:bt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,vt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?bt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=lr;else if(rr(c))if(ur)v=yr;else{v=_r;var y=gr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Zt(r.elementType)&&(v=lr):v=vr;if(v&&=v(e,r)){ir(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ut(c,`number`,c.value)}switch(y=r?bt(r):window,e){case`focusin`:(rr(y)||y.contentEditable===`true`)&&(kr=y,Ar=r,jr=null);break;case`focusout`:jr=Ar=kr=null;break;case`mousedown`:Mr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Mr=!1,Nr(s,n,i);break;case`selectionchange`:if(Or)break;case`keydown`:case`keyup`:Nr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else $n?Zn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Jn&&n.locale!==`ko`&&($n||x!==`onCompositionStart`?x===`onCompositionEnd`&&$n&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,$n=!0)),y=kd(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Qn(n),b!==null&&(x.data=b)))),(b=qn?er(e,n):tr(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),_d(s,e,r,n,i)}Sd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Od(e,i,a)),i=ln(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
9
|
+
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function X(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&qt(e,``+r);break;case`className`:jt(e,`class`,r);break;case`tabIndex`:jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:jt(e,n,r);break;case`style`:Xt(e,r,o);break;case`data`:if(t!==`object`){jt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&X(e,t,`name`,a.name,a,null),X(e,t,`formEncType`,a.formEncType,a,null),X(e,t,`formMethod`,a.formMethod,a,null),X(e,t,`formTarget`,a.formTarget,a,null)):(X(e,t,`encType`,a.encType,a,null),X(e,t,`method`,a.method,a,null),X(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=en(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Y(`beforetoggle`,e),Y(`toggle`,e),At(e,`popover`,r);break;case`xlinkActuate`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:At(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Qt.get(n)||n,At(e,n,r))}}function Id(e,t,n,r,a,o){switch(n){case`style`:Xt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&qt(e,``+r);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!wt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ut]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):At(e,n,r)}}}function Ld(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:X(e,t,o,s,n,null)}}a&&X(e,t,`srcSet`,n.srcSet,n,null),r&&X(e,t,`src`,n.src,n,null);return;case`input`:Y(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:X(e,t,r,d,n,null)}}Ht(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:X(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Wt(e,!!r,n,!0):Wt(e,!!r,t,!1);return;case`textarea`:for(s in Y(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:X(e,t,s,c,n,null)}Kt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:X(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)Y(bd[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:X(e,t,u,r,n,null)}return;default:if(Zt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Id(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&X(e,t,c,r,n,null))}function Rd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||X(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&X(e,t,p,m,r,f)}}Vt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||X(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&X(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Wt(e,!!n,n?[]:``,!1):Wt(e,!!n,t,!0)):Wt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:X(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&X(e,t,s,a,r,o)}Gt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:X(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:X(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&X(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:X(e,t,u,p,r,m)}return;default:if(Zt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Id(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Id(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&X(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||X(e,t,f,p,r,m)}function zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Bd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&zd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Vd=null,Hd=null;function Ud(e){return e.nodeType===9?e:e.ownerDocument}function Wd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Gd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Kd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qd=null;function Jd(){var e=window.event;return e&&e.type===`popstate`?e===qd?!1:(qd=e,!0):(qd=null,!1)}var Yd=typeof setTimeout==`function`?setTimeout:void 0,Xd=typeof clearTimeout==`function`?clearTimeout:void 0,Z=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Z===void 0?Yd:function(e){return Z.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[gt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Np(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),_t(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[gt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function Q(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Ud(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_t(e)}var hf=new Map,$=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=A.d;A.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=Cu();return e||t}function yf(e){var t=yt(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Bt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),$.has(i)||($.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),St(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Bt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Bt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Bt(n.imageSizes)+`"]`)):i+=`[href="`+Bt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}hf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Ld(t,`link`,e),St(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Bt(r)+`"][href="`+Bt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!hf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),St(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=xt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);St(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=xt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=hf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=xt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&zf(e,t),a=n.createElement(`script`),St(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=de.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=xt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=xt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=xt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Bt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),St(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Bt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Bt(n.href)+`"]`);if(r)return t.instance=r,St(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),St(r),Ld(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,St(o),o;r=Mf(n),(a=hf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),St(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,St(a),a):(r=n,(a=hf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),St(a),Ld(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[gt]||a[lt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,St(a);return}a=t.ownerDocument||t,r=Mf(r),(i=hf.get(i))&&Rf(r,i),a=a.createElement(`link`),St(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Bd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=sa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function tp(e){return e?(e=ai,e):ai}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(vu(n,e,t),Wa(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&vu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=gu();t=it(t);var n=ni(e,t);n!==null&&vu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,up(e,t,n,r)}finally{A.p=a,k.T=i}}function lp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,up(e,t,n,r)}finally{A.p=a,k.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Dd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=yt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Be(o);s.entanglements[1]|=c,o&=~c}od(a),!(U&6)&&(iu=ke()+500,sd(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&vu(s,a,2),Cu(),ip(a,2)}if(a=dp(r),a===null&&Dd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function dp(e){return e=L(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=vt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case F:return 2;case je:return 8;case Me:case Ne:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=yt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=vt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nn=r,n.target.dispatchEvent(r),nn=null}else return t=yt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=yt(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ut]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ut]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,gu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),Cu(),t[dt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Le=zp.inject(Rp),Re=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[dt]=t.current,Td(e),new Fp(t)}})),y=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=u(p()),x=y(),S=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),C=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),w={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},T=(0,b.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,b.createElement)(`svg`,{ref:c,...w,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:C(`lucide`,i),...s},[...o.map(([e,t])=>(0,b.createElement)(e,t)),...Array.isArray(a)?a:[a]])),E=(e,t)=>{let n=(0,b.forwardRef)(({className:n,...r},i)=>(0,b.createElement)(T,{ref:i,iconNode:t,className:C(`lucide-${S(e)}`,n),...r}));return n.displayName=`${e}`,n},D=E(`Activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=E(`ArrowDownRight`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),ee=E(`Bug`,[[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M9 7.13v-1a3.003 3.003 0 1 1 6 0v1`,key:`d7y7pr`}],[`path`,{d:`M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6`,key:`xs1cw7`}],[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M6.53 9C4.6 8.8 3 7.1 3 5`,key:`32zzws`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`M3 21c0-2.1 1.7-3.9 3.8-4`,key:`4p0ekp`}],[`path`,{d:`M20.97 5c0 2.1-1.6 3.8-3.5 4`,key:`18gb23`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M17.2 17c2.1.1 3.8 1.9 3.8 4`,key:`k3fwyw`}]]),te=E(`ChartNoAxesColumn`,[[`line`,{x1:`18`,x2:`18`,y1:`20`,y2:`10`,key:`1xfpm4`}],[`line`,{x1:`12`,x2:`12`,y1:`20`,y2:`4`,key:`be30l9`}],[`line`,{x1:`6`,x2:`6`,y1:`20`,y2:`14`,key:`1r4le6`}]]),ne=E(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),re=E(`CircleCheck`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ie=E(`CircleX`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ae=E(`CodeXml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),oe=E(`Code`,[[`polyline`,{points:`16 18 22 12 16 6`,key:`z7tu5w`}],[`polyline`,{points:`8 6 2 12 8 18`,key:`1eg1df`}]]),k=E(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),A=E(`Cpu`,[[`rect`,{width:`16`,height:`16`,x:`4`,y:`4`,rx:`2`,key:`14l7u7`}],[`rect`,{width:`6`,height:`6`,x:`9`,y:`9`,rx:`1`,key:`5aljv4`}],[`path`,{d:`M15 2v2`,key:`13l42r`}],[`path`,{d:`M15 20v2`,key:`15mkzm`}],[`path`,{d:`M2 15h2`,key:`1gxd5l`}],[`path`,{d:`M2 9h2`,key:`1bbxkp`}],[`path`,{d:`M20 15h2`,key:`19e6y8`}],[`path`,{d:`M20 9h2`,key:`19tzq7`}],[`path`,{d:`M9 2v2`,key:`165o2o`}],[`path`,{d:`M9 20v2`,key:`i2bqo8`}]]),se=E(`Database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),ce=E(`FileCode`,[[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z`,key:`1mlx9k`}]]),le=E(`FileJson`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),j=E(`Fingerprint`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),M=E(`Fuel`,[[`line`,{x1:`3`,x2:`15`,y1:`22`,y2:`22`,key:`xegly4`}],[`line`,{x1:`4`,x2:`14`,y1:`9`,y2:`9`,key:`xcnuvu`}],[`path`,{d:`M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18`,key:`16j0yd`}],[`path`,{d:`M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5`,key:`7cu91f`}]]),N=E(`Globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),ue=E(`Info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),P=E(`Layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),de=E(`LoaderCircle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),fe=E(`Lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),pe=E(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),me=E(`Play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),he=E(`RefreshCw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),ge=E(`RotateCcw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),_e=E(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),ve=E(`Server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),ye=E(`ShieldAlert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),be=E(`ShieldBan`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m4.243 5.21 14.39 12.472`,key:`1c9a7c`}]]),xe=E(`ShieldCheck`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Se=E(`Sparkles`,[[`path`,{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`,key:`4pj2yx`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M22 5h-4`,key:`1gvqau`}],[`path`,{d:`M4 17v2`,key:`vumght`}],[`path`,{d:`M5 18H3`,key:`zchphs`}]]),Ce=E(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]),we=E(`TrendingUp`,[[`polyline`,{points:`22 7 13.5 15.5 8.5 10.5 2 17`,key:`126l90`}],[`polyline`,{points:`16 7 22 7 22 13`,key:`kwv8wd`}]]),Te=E(`TriangleAlert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ee=E(`Waypoints`,[[`circle`,{cx:`12`,cy:`4.5`,r:`2.5`,key:`r5ysbb`}],[`path`,{d:`m10.2 6.3-3.9 3.9`,key:`1nzqf6`}],[`circle`,{cx:`4.5`,cy:`12`,r:`2.5`,key:`jydg6v`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`circle`,{cx:`19.5`,cy:`12`,r:`2.5`,key:`1piiel`}],[`path`,{d:`m13.8 17.7 3.9-3.9`,key:`1wyg1y`}],[`circle`,{cx:`12`,cy:`19.5`,r:`2.5`,key:`13o1pw`}]]),De=E(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Oe=E(`Zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]);async function ke(e){try{if(navigator?.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0;let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.left=`-999999px`,t.style.top=`-999999px`,document.body.appendChild(t),t.focus(),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch(e){return console.warn(`Clipboard write failed:`,e),!1}}var Ae=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),F=s(((e,t)=>{t.exports=Ae()}))(),je={Analyze_Synthetic_Bank_Transactions:{recordType:`BankAccountRecord`,fields:[{name:`id`,type:`string`,description:`Unique account identifier`,example:`ACC-90412`},{name:`accountType`,type:`'checking' | 'savings' | 'investment'`,description:`Classification of deposit account`,example:`checking`},{name:`balance`,type:`number`,description:`Current cleared balance in account currency`,example:148500.5},{name:`currency`,type:`string`,description:`ISO 4217 three-letter currency code`,example:`USD`},{name:`status`,type:`'ACTIVE' | 'FROZEN' | 'DORMANT'`,description:`Operational status of account ledger`,example:`ACTIVE`}],sampleRecord:{id:`ACC-90412`,accountType:`checking`,balance:148500.5,currency:`USD`,status:`ACTIVE`}},Analyze_Synthetic_Medical_Records:{recordType:`ClinicalPatientRecord`,fields:[{name:`id`,type:`string`,description:`Confidential patient identifier (Protected Health Info)`,example:`PT-77120`},{name:`diagnosis`,type:`string`,description:`Clinical ICD-10 pathology description`,example:`Type 2 Diabetes Mellitus`},{name:`riskLevel`,type:`'LOW' | 'MED' | 'HIGH' | 'CRITICAL'`,description:`Triage risk assessment score`,example:`HIGH`},{name:`systolicBp`,type:`number`,description:`Systolic blood pressure (mmHg)`,example:142},{name:`diastolicBp`,type:`number`,description:`Diastolic blood pressure (mmHg)`,example:88}],sampleRecord:{id:`PT-77120`,diagnosis:`Type 2 Diabetes Mellitus`,riskLevel:`HIGH`,systolicBp:142,diastolicBp:88}},Analyze_HFT_Market_Data:{recordType:`MarketDepthTick`,fields:[{name:`symbol`,type:`string`,description:`Ticker trading instrument`,example:`BTC-USDT`},{name:`timestamp`,type:`number`,description:`Epoch millisecond of tick`,example:17887008e5},{name:`bestBid`,type:`number`,description:`Highest current buy order price`,example:64250},{name:`bestAsk`,type:`number`,description:`Lowest current sell order price`,example:64251.5},{name:`spreadBps`,type:`number`,description:`Calculated spread in basis points`,example:2.33},{name:`volume`,type:`number`,description:`Aggregated book volume in contracts`,example:14.82}],sampleRecord:{symbol:`BTC-USDT`,timestamp:17887008e5,bestBid:64250,bestAsk:64251.5,spreadBps:2.33,volume:14.82}},Analyze_IoT_Sensor_Data:{recordType:`IndustrialTelemetryRecord`,fields:[{name:`sensorId`,type:`string`,description:`Industrial IoT edge transducer ID`,example:`SENS-Turbine-04`},{name:`temperatureCelsius`,type:`number`,description:`Thermal reading in Celsius`,example:84.6},{name:`pressureHpa`,type:`number`,description:`Barometric chamber pressure`,example:1013.2},{name:`vibrationRms`,type:`number`,description:`RMS acceleration in mm/s`,example:4.8},{name:`alertStatus`,type:`boolean`,description:`Hardware trip latch boolean`,example:!1}],sampleRecord:{sensorId:`SENS-Turbine-04`,temperatureCelsius:84.6,pressureHpa:1013.2,vibrationRms:4.8,alertStatus:!1}},BLG_Inspect_Enclave_Perimeter:{recordType:`PerimeterSecurityEvent`,fields:[{name:`enclaveId`,type:`string`,description:`Isolated sovereign enclave identifier`,example:`enclave-vault-01`},{name:`tier`,type:`1 | 2 | 3`,description:`Classification tier boundary`,example:1},{name:`activeIsolation`,type:`string`,description:`Active cryptographic and network isolation`,example:`Strict Zero-Trust pnet`},{name:`pqcSuite`,type:`string`,description:`Negotiated post-quantum key exchange`,example:`ML-KEM-768`},{name:`egressPIIShield`,type:`string`,description:`Status of 4-stage data leak protection`,example:`Active (Strict)`},{name:`unauthorizedAttempts`,type:`number`,description:`Derivation attacks blocked at origin`,example:0}],sampleRecord:{enclaveId:`enclave-vault-01`,tier:1,activeIsolation:`Strict Zero-Trust pnet`,pqcSuite:`ML-KEM-768`,egressPIIShield:`Active (Strict)`,unauthorizedAttempts:0}},LiopMeshStatus:{recordType:`MeshTopologyState`,fields:[{name:`peerId`,type:`string`,description:`libp2p node identity string`,example:`12D3KooW9pZ...`},{name:`connectedPeers`,type:`number`,description:`Active swarm peer connections`,example:8},{name:`dhtProviders`,type:`number`,description:`Kademlia DHT provider records indexed`,example:12},{name:`consensusState`,type:`string`,description:`Distributed state sync condition`,example:`SYNCHRONIZED`}],sampleRecord:{peerId:`12D3KooW9pZ...`,connectedPeers:8,dhtProviders:12,consensusState:`SYNCHRONIZED`}}};je.BLG_Execute_Banking_Analytics=je.Analyze_Synthetic_Bank_Transactions,je.BLG_Execute_Healthcare_Analytics=je.Analyze_Synthetic_Medical_Records,je.get_account_balances=je.Analyze_Synthetic_Bank_Transactions,je.get_patient_records=je.Analyze_Synthetic_Medical_Records,je.get_market_depth=je.Analyze_HFT_Market_Data,je.read_telemetry_stream=je.Analyze_IoT_Sensor_Data;var Me=[{category:`Array Transformations`,methods:`map, filter, reduce, forEach, find, some, every, slice, length`},{category:`Mathematical Primitives`,methods:`Math.max, Math.min, Math.round, Math.floor, Math.ceil, Math.abs, Math.sqrt`},{category:`Object Manipulation`,methods:`Object.keys, Object.values, Object.entries, Object.assign`},{category:`Serialization`,methods:`JSON.stringify, JSON.parse`},{category:`String & Numerical Primitives`,methods:`Number.isFinite, String.slice, String.includes, Number.toFixed`}],Ne=[{category:`Network Egress`,items:`fetch(), XMLHttpRequest, WebSocket, dgram, net`,reason:`Prevents exfiltration of confidential origin data`},{category:`Filesystem & OS`,items:`fs, process, child_process, __dirname, Deno, Bun`,reason:`Enforces V8 Isolate sandboxing with zero host access`},{category:`Dynamic Execution`,items:`eval(), Function(), WebAssembly.compileStreaming`,reason:`Guarantees deterministic AST compilation and fuel limits`},{category:`Timing & Asynchrony`,items:`setTimeout, setInterval, queueMicrotask`,reason:`Mitigates timing side-channel attacks and race conditions`}],Pe=({isOpen:e,onClose:t,toolName:n,tool:r})=>{let[i,a]=(0,b.useState)(`fields`),[o,s]=(0,b.useState)(!1);if(!e)return null;let c=je[n];if(!c&&r?.inputSchema&&typeof r.inputSchema==`object`){let e=r.inputSchema,t=e.properties||{},n=new Set(Array.isArray(e.required)?e.required:[]),i=[],a={};for(let[e,r]of Object.entries(t)){let t=r||{},o=t.enum?t.enum.map(e=>JSON.stringify(e)).join(` | `):t.type||`unknown`,s=t.default===void 0?``:t.default;s===``&&(s=t.type===`number`||t.type===`integer`?0:t.type===`boolean`?!0:t.type===`array`?`[]`:t.enum&&t.enum.length>0?String(t.enum[0]):t.example===void 0?`sample_${e}`:String(t.example));let c=n.has(e);i.push({name:c?`${e} *`:e,type:o,description:t.description||(c?`Required parameter field`:`Optional parameter property`),example:s}),a[e]=s}i.length>0&&(c={recordType:`${r.name.replace(/[^a-zA-Z0-9_]/g,``)}Schema`,fields:i,sampleRecord:a})}return c||={recordType:`DynamicOriginRecord`,fields:[{name:`id`,type:`string`,description:`Unique entity record identifier`,example:`REC-001`},{name:`value`,type:`number | string | object`,description:`Payload data attribute`,example:100}],sampleRecord:{id:`REC-001`,value:100,timestamp:Date.now()}},(0,F.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm p-4 animate-in fade-in duration-150`,children:(0,F.jsxs)(`div`,{className:`w-full max-w-3xl bg-card border border-border rounded-xl shadow-2xl overflow-hidden flex flex-col max-h-[85vh]`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between px-5 py-3.5 border-b border-border bg-surface1`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(`div`,{className:`p-1.5 rounded-md bg-secondary text-primary`,children:(0,F.jsx)(P,{className:`h-4 w-4`})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{className:`text-xs font-bold text-white tracking-wide uppercase font-mono`,children:`Runtime Environment & Schema Inspector`}),(0,F.jsxs)(`p`,{className:`text-[11px] text-zinc-400`,children:[`Confidential dataset shape and WASI sandbox constraints for`,` `,(0,F.jsx)(`span`,{className:`font-mono text-cyan-300`,children:n})]})]})]}),(0,F.jsx)(`button`,{type:`button`,onClick:t,className:`text-zinc-400 hover:text-white p-1 rounded-md transition-colors cursor-pointer`,title:`Close Inspector`,children:(0,F.jsx)(De,{className:`h-4 w-4`})})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between px-5 py-2.5 bg-background border-b border-border/60`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5 p-0.5 bg-surface1 border border-border/80 rounded-lg`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>a(`fields`),className:`text-xs px-3 py-1 rounded-md font-medium transition-all cursor-pointer flex items-center gap-1.5 ${i===`fields`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(se,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`Record Schema`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>a(`sample`),className:`text-xs px-3 py-1 rounded-md font-medium transition-all cursor-pointer flex items-center gap-1.5 ${i===`sample`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(ae,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`Sample JSON Record`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>a(`sandbox`),className:`text-xs px-3 py-1 rounded-md font-medium transition-all cursor-pointer flex items-center gap-1.5 ${i===`sandbox`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(xe,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`WASI Sandbox Rules`})]})]}),i===`sample`&&(0,F.jsxs)(`button`,{type:`button`,onClick:async()=>{await ke(JSON.stringify(c.sampleRecord,null,2))&&(s(!0),setTimeout(()=>s(!1),2e3))},className:`text-xs flex items-center gap-1.5 px-3 py-1 rounded-md font-medium border border-border bg-surface1 text-zinc-200 hover:text-white hover:bg-white/10 transition-colors cursor-pointer`,children:[(0,F.jsx)(k,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:o?`Copied`:`Copy Sample`})]})]}),(0,F.jsxs)(`div`,{className:`flex-1 min-h-[320px] overflow-auto p-5 bg-card`,children:[i===`fields`&&(0,F.jsxs)(`div`,{className:`space-y-4`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between pb-2 border-b border-border/50 text-xs`,children:[(0,F.jsxs)(`span`,{className:`text-zinc-400`,children:[`Variable Injected in Sandbox:`,` `,(0,F.jsxs)(`code`,{className:`text-primary font-mono font-semibold`,children:[`env.records: `,c.recordType,`[]`]})]}),(0,F.jsxs)(`span`,{className:`text-zinc-500 font-mono`,children:[c.fields.length,` Available Properties`]})]}),(0,F.jsx)(`div`,{className:`border border-border rounded-lg overflow-hidden`,children:(0,F.jsxs)(`table`,{className:`w-full text-left text-xs font-mono`,children:[(0,F.jsx)(`thead`,{className:`bg-surface1 text-zinc-400 border-b border-border text-[11px] uppercase tracking-wider`,children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:`px-3.5 py-2`,children:`Field`}),(0,F.jsx)(`th`,{className:`px-3.5 py-2`,children:`Type`}),(0,F.jsx)(`th`,{className:`px-3.5 py-2`,children:`Description`}),(0,F.jsx)(`th`,{className:`px-3.5 py-2`,children:`Sample`})]})}),(0,F.jsx)(`tbody`,{className:`divide-y divide-border/60 bg-background/50`,children:c.fields.map(e=>(0,F.jsxs)(`tr`,{className:`hover:bg-white/5 transition-colors`,children:[(0,F.jsx)(`td`,{className:`px-3.5 py-2 font-bold text-white`,children:e.name}),(0,F.jsx)(`td`,{className:`px-3.5 py-2 text-cyan-300`,children:e.type}),(0,F.jsx)(`td`,{className:`px-3.5 py-2 text-zinc-300 font-sans text-xs`,children:e.description}),(0,F.jsx)(`td`,{className:`px-3.5 py-2 text-amber-300`,children:JSON.stringify(e.example)})]},e.name))})]})}),(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border flex items-start gap-2.5 text-xs text-zinc-300`,children:[(0,F.jsx)(re,{className:`h-4 w-4 text-emerald-400 shrink-0 mt-0.5`}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`font-semibold text-white`,children:`Aggregated Execution Tip:`}),` `,`Compute your statistical aggregates inside your logic module using`,` `,(0,F.jsx)(`code`,{className:`text-primary font-mono`,children:`env.records.reduce(...)`}),`. Avoid returning raw row collections to comply with the Egress PII Shield.`]})]})]}),i===`sample`&&(0,F.jsxs)(`div`,{className:`space-y-3`,children:[(0,F.jsx)(`div`,{className:`text-xs text-zinc-400`,children:`Simulated single record payload injected into origin memory:`}),(0,F.jsx)(`div`,{className:`bg-editor border border-border rounded-lg p-4 font-mono text-xs text-[#7dd3fc] overflow-auto`,children:(0,F.jsx)(`pre`,{children:JSON.stringify(c.sampleRecord,null,2)})})]}),i===`sandbox`&&(0,F.jsxs)(`div`,{className:`space-y-4`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`h4`,{className:`text-xs font-bold text-emerald-400 uppercase tracking-wide font-mono flex items-center gap-1.5 mb-2`,children:[(0,F.jsx)(xe,{className:`h-4 w-4`}),(0,F.jsx)(`span`,{children:`Authorized APIs (Layer 1 Guardian Allowlist)`})]}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-2`,children:Me.map(e=>(0,F.jsxs)(`div`,{className:`p-2.5 rounded-md bg-surface1 border border-border/80 text-xs`,children:[(0,F.jsx)(`div`,{className:`font-semibold text-white mb-1`,children:e.category}),(0,F.jsx)(`div`,{className:`font-mono text-[11px] text-zinc-400`,children:e.methods})]},e.category))})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`h4`,{className:`text-xs font-bold text-rose-400 uppercase tracking-wide font-mono flex items-center gap-1.5 mb-2`,children:[(0,F.jsx)(ye,{className:`h-4 w-4`}),(0,F.jsx)(`span`,{children:`Blocked Primitives (Enforced V8 Sandbox)`})]}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-2`,children:Ne.map(e=>(0,F.jsxs)(`div`,{className:`p-2.5 rounded-md bg-rose-500/5 border border-rose-500/20 text-xs`,children:[(0,F.jsxs)(`div`,{className:`font-semibold text-rose-200 mb-0.5 flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:e.category}),(0,F.jsx)(Te,{className:`h-3 w-3 text-rose-400`})]}),(0,F.jsx)(`div`,{className:`font-mono text-[11px] text-rose-300/80 mb-1`,children:e.items}),(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 font-sans`,children:e.reason})]},e.category))})]})]})]}),(0,F.jsxs)(`div`,{className:`px-5 py-2.5 bg-surface1 border-t border-border flex items-center justify-between text-[11px] text-zinc-400 font-mono`,children:[(0,F.jsx)(`span`,{children:`PCI-DSS & HIPAA Enclave Isolation`}),(0,F.jsx)(`span`,{className:`text-primary`,children:`WASI Runtime: wasi_v1`})]})]})})},Fe=(0,b.createContext)({});function Ie(e){let t=(0,b.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Le=typeof window<`u`?b.useLayoutEffect:b.useEffect,Re=(0,b.createContext)(null);function ze(e,t){e.indexOf(t)===-1&&e.push(t)}function Be(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ve=(e,t,n)=>n>t?t:n<e?e:n,He={},Ue=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),We=e=>typeof e==`object`&&!!e,Ge=e=>/^0[^.\s]+$/u.test(e);function Ke(e){let t;return()=>(t===void 0&&(t=e()),t)}var qe=e=>e,Je=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ye=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Xe=class{constructor(){this.subscriptions=[]}add(e){return ze(this.subscriptions,e),()=>Be(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Ze=e=>e*1e3,Qe=e=>e/1e3,$e=(e,t)=>t?1e3/t*e:0,et=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,tt=1e-7,nt=12;function rt(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=et(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>tt&&++s<nt);return o}function it(e,t,n,r){if(e===t&&n===r)return qe;let i=t=>rt(t,0,1,e,n);return e=>e===0||e===1?e:et(i(e),t,r)}var at=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ot=e=>t=>1-e(1-t),st=it(.33,1.53,.69,.99),ct=ot(st),lt=at(ct),ut=e=>e>=1?1:(e*=2)<1?.5*ct(e):.5*(2-2**(-10*(e-1))),dt=e=>1-Math.sin(Math.acos(e)),ft=ot(dt),pt=at(dt),mt=it(.42,0,1,1),ht=it(0,0,.58,1),gt=it(.42,0,.58,1),_t=e=>Array.isArray(e)&&typeof e[0]!=`number`,vt=e=>Array.isArray(e)&&typeof e[0]==`number`,yt={linear:qe,easeIn:mt,easeInOut:gt,easeOut:ht,circIn:dt,circInOut:pt,circOut:ft,backIn:ct,backInOut:lt,backOut:st,anticipate:ut},bt=e=>typeof e==`string`,xt=e=>{if(vt(e)){e.length;let[t,n,r,i]=e;return it(t,n,r,i)}else if(bt(e))return yt[e],`${e}`,yt[e];return e},St=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Ct={value:null,addProjectionMetrics:null};function wt(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Ct.value&&Ct.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Tt=40;function Et(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=St.reduce((e,n)=>(e[n]=wt(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=He.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Tt),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:St.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<St.length;t++)o[St[t]].cancel(e)},state:i,steps:o}}var{schedule:I,cancel:Dt,state:Ot,steps:kt}=Et(typeof requestAnimationFrame<`u`?requestAnimationFrame:qe,!0),At;function jt(){At=void 0}var Mt={now:()=>(At===void 0&&Mt.set(Ot.isProcessing||He.useManualTiming?Ot.timestamp:performance.now()),At),set:e=>{At=e,queueMicrotask(jt)}},Nt={layout:0,mainThread:0,waapi:0},Pt=e=>t=>typeof t==`string`&&t.startsWith(e),Ft=Pt(`--`),It=Pt(`var(--`),Lt=e=>It(e)?Rt.test(e.split(`/*`)[0].trim()):!1,Rt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zt(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Bt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Vt={...Bt,transform:e=>Ve(0,1,e)},Ht={...Bt,default:1},Ut=e=>Math.round(e*1e5)/1e5,Wt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gt(e){return e==null}var Kt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qt=(e,t)=>n=>!!(typeof n==`string`&&Kt.test(n)&&n.startsWith(e)||t&&!Gt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Jt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Wt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Yt=e=>Ve(0,255,e),Xt={...Bt,transform:e=>Math.round(Yt(e))},Zt={test:qt(`rgb`,`red`),parse:Jt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Xt.transform(e)+`, `+Xt.transform(t)+`, `+Xt.transform(n)+`, `+Ut(Vt.transform(r))+`)`};function Qt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var $t={test:qt(`#`),parse:Qt,transform:Zt.transform},en=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tn=en(`deg`),nn=en(`%`),L=en(`px`),rn=en(`vh`),an=en(`vw`),on={...nn,parse:e=>nn.parse(e)/100,transform:e=>nn.transform(e*100)},sn={test:qt(`hsl`,`hue`),parse:Jt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+nn.transform(Ut(t))+`, `+nn.transform(Ut(n))+`, `+Ut(Vt.transform(r))+`)`},cn={test:e=>Zt.test(e)||$t.test(e)||sn.test(e),parse:e=>Zt.test(e)?Zt.parse(e):sn.test(e)?sn.parse(e):$t.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Zt.transform(e):sn.transform(e),getAnimatableNone:e=>{let t=cn.parse(e);return t.alpha=0,cn.transform(t)}},ln=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function un(e){return isNaN(e)&&typeof e==`string`&&(e.match(Wt)?.length||0)+(e.match(ln)?.length||0)>0}var dn=`number`,fn=`color`,pn=`var`,mn=`var(`,hn="${}",gn=/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 _n(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(gn,e=>(cn.test(e)?(r.color.push(a),i.push(fn),n.push(cn.parse(e))):e.startsWith(mn)?(r.var.push(a),i.push(pn),n.push(e)):(r.number.push(a),i.push(dn),n.push(parseFloat(e))),++a,hn)).split(hn),indexes:r,types:i}}function vn(e){return _n(e).values}function yn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===dn?i+=Ut(r[a]):e===fn?i+=cn.transform(r[a]):i+=r[a]}return i}}function bn(e){return yn(_n(e))}var xn=e=>typeof e==`number`?0:cn.test(e)?cn.getAnimatableNone(e):e,Sn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:xn(e);function Cn(e){let t=_n(e);return yn(t)(t.values.map((e,n)=>Sn(e,t.split[n])))}var wn={test:un,parse:vn,createTransformer:bn,getAnimatableNone:Cn};function Tn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function En({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Tn(s,r,e+1/3),a=Tn(s,r,e),o=Tn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Dn(e,t){return n=>n>0?t:e}var R=(e,t,n)=>e+(t-e)*n,On=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},kn=[$t,Zt,sn],An=e=>kn.find(t=>t.test(e));function jn(e){let t=An(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===sn&&(n=En(n)),n}var Mn=(e,t)=>{let n=jn(e),r=jn(t);if(!n||!r)return Dn(e,t);let i={...n};return e=>(i.red=On(n.red,r.red,e),i.green=On(n.green,r.green,e),i.blue=On(n.blue,r.blue,e),i.alpha=R(n.alpha,r.alpha,e),Zt.transform(i))},Nn=new Set([`none`,`hidden`]);function Pn(e,t){return Nn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Fn(e,t){return n=>R(e,t,n)}function In(e){return typeof e==`number`?Fn:typeof e==`string`?Lt(e)?Dn:cn.test(e)?Mn:Bn:Array.isArray(e)?Ln:typeof e==`object`?cn.test(e)?Mn:Rn:Dn}function Ln(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>In(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Rn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=In(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function zn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Bn=(e,t)=>{let n=wn.createTransformer(t),r=_n(e),i=_n(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Nn.has(e)&&!i.values.length||Nn.has(t)&&!r.values.length?Pn(e,t):Je(Ln(zn(r,i),i.values),n):(`${e}${t}`,Dn(e,t))};function Vn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?R(e,t,n):In(e)(e,t)}var Hn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>I.update(t,e),stop:()=>Dt(t),now:()=>Ot.isProcessing?Ot.timestamp:Mt.now()}},Un=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Wn=2e4;function Gn(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Kn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Gn(r),Wn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Qe(i)}}var z={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};function qn(e,t){return e*Math.sqrt(1-t*t)}var Jn=12;function Yn(e,t,n){let r=n;for(let n=1;n<Jn;n++)r-=e(r)/t(r);return r}var Xn=.001;function Zn({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let i,a;z.maxDuration;let o=1-t;o=Ve(z.minDamping,z.maxDamping,o),e=Ve(z.minDuration,z.maxDuration,Qe(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=qn(t,o),c=Math.exp(-i);return Xn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=qn(t**2,o);return(-i(t)+Xn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Yn(i,a,s);if(e=Ze(e),isNaN(c))return{stiffness:z.stiffness,damping:z.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Qn=[`duration`,`bounce`],$n=[`stiffness`,`damping`,`mass`];function er(e,t){return t.some(t=>e[t]!==void 0)}function tr(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!er(e,$n)&&er(e,Qn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Ve(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:z.mass,stiffness:i,damping:a}}else{let n=Zn({...e,velocity:0});t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function nr(e=z.visualDuration,t=z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=tr({...n,velocity:-Qe(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Qe(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?z.restSpeed.granular:z.restSpeed.default,i||=v?z.restDelta.granular:z.restDelta.default;let y,b,x,S,C,w;if(h<1)x=qn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Ze(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Ze(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Ze(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Gn(T),Wn),t=Un(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}nr.applyToOptions=e=>{let t=Kn(e,100,nr);return e.ease=t.ease,e.duration=Ze(t.duration),e.type=`keyframes`,e};var rr=5;function ir(e,t,n){let r=Math.max(t-rr,0);return $e(n-e(r),t-r)}function ar({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=nr({keyframes:[f.value,m(f.value)],velocity:ir(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function or(e,t,n){let r=[],i=n||He.mix||Vn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Je(Array.isArray(t)?t[n]||qe:t,a)),r.push(a)}return r}function sr(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=or(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ye(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Ve(e[0],e[a-1],t)):l}function cr(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ye(0,t,r);e.push(R(n,1,i))}}function lr(e){let t=[0];return cr(t,e.length-1),t}function ur(e,t){return e.map(e=>e*t)}function dr(e,t){return e.map(()=>t||gt).splice(0,e.length-1)}function fr({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=_t(r)?r.map(xt):xt(r),a={done:!1,value:t[0]},o=sr(ur(n&&n.length===t.length?n:lr(t),e),t,{ease:Array.isArray(i)?i:dr(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var pr=e=>e!==null;function mr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(pr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var hr={decay:ar,inertia:ar,tween:fr,keyframes:fr,spring:nr};function gr(e){typeof e.type==`string`&&(e.type=hr[e.type])}var _r=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},vr=e=>e/100,yr=class extends _r{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Mt.now()&&this.tick(Mt.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Nt.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;gr(e);let{type:t=fr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fr;s!==fr&&typeof o[0]!=`number`&&(this.mixKeyframes=Je(vr,Vn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Ve(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==ar&&(b.value=mr(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Qe(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Qe(e)}get time(){return Qe(this.currentTime)}set time(e){e=Ze(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ir(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Mt.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Qe(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Hn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(Mt.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Nt.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function br(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var xr=e=>e*180/Math.PI,Sr=e=>wr(xr(Math.atan2(e[1],e[0]))),Cr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Sr,rotateZ:Sr,skewX:e=>xr(Math.atan(e[1])),skewY:e=>xr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},wr=e=>(e%=360,e<0&&(e+=360),e),Tr=Sr,Er=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Dr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Or={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Er,scaleY:Dr,scale:e=>(Er(e)+Dr(e))/2,rotateX:e=>wr(xr(Math.atan2(e[6],e[5]))),rotateY:e=>wr(xr(Math.atan2(-e[2],e[0]))),rotateZ:Tr,rotate:Tr,skewX:e=>xr(Math.atan(e[4])),skewY:e=>xr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function kr(e){return+!!e.includes(`scale`)}function Ar(e,t){if(!e||e===`none`)return kr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Or,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Cr,i=t}if(!i)return kr(t);let a=r[t],o=i[1].split(`,`).map(Mr);return typeof a==`function`?a(o):o[a]}var jr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ar(n,t)};function Mr(e){return parseFloat(e.trim())}var Nr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Pr=new Set([...Nr,`pathRotation`]),Fr=e=>e===Bt||e===L,Ir=new Set([`x`,`y`,`z`]),Lr=Nr.filter(e=>!Ir.has(e));function Rr(e){let t=[];return Lr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var zr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ar(t,`x`),y:(e,{transform:t})=>Ar(t,`y`)};zr.translateX=zr.x,zr.translateY=zr.y;var Br=new Set,Vr=!1,Hr=!1,Ur=!1;function Wr(){if(Hr){let e=Array.from(Br).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Rr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Hr=!1,Vr=!1,Br.forEach(e=>e.complete(Ur)),Br.clear()}function Gr(){Br.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Hr=!0)})}function Kr(){Ur=!0,Gr(),Wr(),Ur=!1}var qr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Br.add(this),Vr||(Vr=!0,I.read(Gr),I.resolveKeyframes(Wr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}br(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Br.delete(this)}cancel(){this.state===`scheduled`&&(Br.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Jr=e=>e.startsWith(`--`);function Yr(e,t,n){Jr(t)?e.style.setProperty(t,n):e.style[t]=n}var Xr={};function Zr(e,t){let n=Ke(e);return()=>Xr[t]??n()}var Qr=Zr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),$r=Zr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ei=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ti={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ei([0,.65,.55,1]),circOut:ei([.55,0,1,.45]),backIn:ei([.31,.01,.66,-.59]),backOut:ei([.33,1.53,.69,.99])};function ni(e,t){if(e)return typeof e==`function`?$r()?Un(e,t):`ease-out`:vt(e)?ei(e):Array.isArray(e)?e.map(e=>ni(e,t)||ti.easeOut):ti[e]}function ri(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ni(s,i);Array.isArray(d)&&(u.easing=d),Ct.value&&Nt.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Ct.value&&p.finished.finally(()=>{Nt.waapi--}),p}function ii(e){return typeof e==`function`&&`applyToOptions`in e}function ai({type:e,...t}){return ii(e)&&$r()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var oi=class extends _r{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ai(e);this.animation=ri(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=mr(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Yr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Qe(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Qe(e)}get time(){return Qe(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ze(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Qr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),qe):r(this)}},si={anticipate:ut,backInOut:lt,circInOut:pt};function ci(e){return e in si}function li(e){typeof e.ease==`string`&&ci(e.ease)&&(e.ease=si[e.ease])}var ui=10,di=class extends oi{constructor(e){li(e),gr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new yr({...a,autoplay:!1}),s=Math.max(ui,Mt.now()-this.startTime),c=Ve(0,ui,s-ui),l=o.sample(s).value,{name:u}=this.options;i&&u&&Yr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},fi=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(wn.test(e)||e===`0`)&&!e.startsWith(`url(`));function pi(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mi(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=fi(i,t),s=fi(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:pi(e)||(n===`spring`||ii(n))&&r}function hi(e){e.duration=0,e.type=`keyframes`}var gi=new Set([`opacity`,`clipPath`,`filter`,`transform`]),_i=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function vi(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&_i.test(e[t]))return!0;return!1}var yi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),bi=Ke(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function xi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return bi()&&n&&(gi.has(n)||yi.has(n)&&vi(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Si=40,Ci=class extends _r{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Mt.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||qr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Mt.now();let u=!0;mi(e,i,a,o)||(u=!1,(He.instantAnimations||!s)&&l?.(mr(e,n,t)),e[0]=e[e.length-1],hi(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Si?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&xi(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new di({...d,element:p})}catch{m=new yr(d)}else m=new yr(d);m.finished.then(()=>{this.notifyFinished()}).catch(qe),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Kr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function wi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Ti=30,Ei=e=>!isNaN(parseFloat(e)),Di={current:void 0},Oi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Mt.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Mt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ei(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Xe);let n=this.events[e].add(t);return e===`change`?()=>{n(),I.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Di.current&&Di.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Mt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ti)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ti);return $e(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ki(e,t){return new Oi(e,t)}function Ai(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ji(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ai(n,e)}var Mi={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ni=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),B={type:`keyframes`,duration:.8},Pi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Fi=(e,{keyframes:t})=>t.length>2?B:Pr.has(e)?e.startsWith(`scale`)?Ni(t[1]):Mi:Pi,Ii=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Li(e){for(let t in e)if(!Ii.has(t))return!0;return!1}var Ri=(e,t,n,r={},i,a)=>o=>{let s=ji(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Ze(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Li(s)||Object.assign(u,Fi(e,u)),u.duration&&=Ze(u.duration),u.repeatDelay&&=Ze(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(hi(u),u.delay===0&&(d=!0)),(He.instantAnimations||He.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,hi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=mr(u.keyframes,s);if(e!==void 0){I.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new yr(u):new Ci(u)},zi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Bi(e){let t=zi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Vi(e,t,n=1){`${e}`;let[r,i]=Bi(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Ue(e)?parseFloat(e):e}return Lt(i)?Vi(i,t,n+1):i}function Hi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ui(e,t,n,r){if(typeof t==`function`){let[i,a]=Hi(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Hi(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Wi(e,t,n){let r=e.getProps();return Ui(r,t,n===void 0?r.custom:n,e)}var Gi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Nr]),Ki=e=>Array.isArray(e);function qi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ki(n))}function Ji(e){return Ki(e)?e[e.length-1]||0:e}function Yi(e,t){let{transitionEnd:n={},transition:r={},...i}=Wi(e,t)||{};i={...i,...n};for(let t in i)qi(e,t,Ji(i[t]))}var Xi=e=>!!(e&&e.getVelocity);function Zi(e){return!!(Xi(e)&&e.add)}function Qi(e,t){let n=e.getValue(`willChange`);if(Zi(n))return n.add(t);if(!n&&He.WillChange){let n=new He.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function $i(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var ea=`data-`+$i(`framerAppearId`);function ta(e){return e.props[ea]}function na({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ra(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ai(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&na(f,t))continue;let o={delay:n,...ji(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){I.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=ta(e);if(n){let e=window.MotionHandoffAnimation(n,t,I);e!==null&&(o.startTime=e,p=!0)}}Qi(e,t);let m=l??e.shouldReduceMotion;r.start(Ri(t,r,i,m&&Gi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>I.update(()=>{o&&Yi(e,o)});d.length?Promise.all(d).then(t):t()}return d}function ia(e,t,n={}){let r=Wi(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ra(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return aa(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function aa(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ia(c,t,{...o,delay:n+(typeof r==`function`?0:r)+wi(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function oa(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ia(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ia(e,t,n);else{let i=typeof t==`function`?Wi(e,t,n.custom):t;r=Promise.all(ra(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var sa={test:e=>e===`auto`,parse:e=>e},ca=e=>t=>t.test(e),la=[Bt,L,nn,tn,an,rn,sa],ua=e=>la.find(ca(e));function da(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Ge(e)}var fa=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function pa(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Wt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!fa.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ma=/\b([a-z-]*)\(.*?\)/gu,ha={...wn,getAnimatableNone:e=>{let t=e.match(ma);return t?t.map(pa).join(` `):e}},ga={...wn,getAnimatableNone:e=>{let t=wn.parse(e);return wn.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},_a={...Bt,transform:Math.round},va={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:tn,pathRotation:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:Ht,scaleX:Ht,scaleY:Ht,scaleZ:Ht,skew:tn,skewX:tn,skewY:tn,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Vt,originX:on,originY:on,originZ:L,zIndex:_a,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:_a},ya={...va,color:cn,backgroundColor:cn,outlineColor:cn,fill:cn,stroke:cn,borderColor:cn,borderTopColor:cn,borderRightColor:cn,borderBottomColor:cn,borderLeftColor:cn,filter:ha,WebkitFilter:ha,mask:ga,WebkitMask:ga},ba=e=>ya[e],xa=new Set([ha,ga]);function Sa(e,t){let n=ba(e);return xa.has(n)||(n=wn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ca=new Set([`auto`,`none`,`0`]);function wa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ca.has(t)&&_n(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Sa(n,i)}var Ta=class extends qr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Lt(r))){let i=Vi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Gi.has(n)||e.length!==2)return;let[r,i]=e,a=ua(r),o=ua(i);if(zt(r)!==zt(i)&&zr[n]){this.needsMeasurement=!0;return}if(a!==o)if(Fr(a)&&Fr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else zr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||da(e[t]))&&n.push(t);n.length&&wa(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=zr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Ea(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Da=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Oa(e){return We(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:ka,cancel:Aa}=Et(queueMicrotask,!1),ja={x:!1,y:!1};function Ma(){return ja.x||ja.y}function Na(e){return e===`x`||e===`y`?ja[e]?null:(ja[e]=!0,()=>{ja[e]=!1}):ja.x||ja.y?null:(ja.x=ja.y=!0,()=>{ja.x=ja.y=!1})}function Pa(e,t){let n=Ea(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Fa(e){return!(e.pointerType===`touch`||Ma())}function Ia(e,t,n={}){let[r,i,a]=Pa(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Fa(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var La=(e,t)=>t?e===t?!0:La(e,t.parentElement):!1,Ra=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,za=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ba(e){return za.has(e.tagName)||e.isContentEditable===!0}var Va=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ha(e){return Va.has(e.tagName)||e.isContentEditable===!0}var Ua=new WeakSet;function Wa(e){return t=>{t.key===`Enter`&&e(t)}}function Ga(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Ka=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Wa(()=>{if(Ua.has(n))return;Ga(n,`down`);let e=Wa(()=>{Ga(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ga(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function qa(e){return Ra(e)&&!Ma()}var Ja=new WeakSet;function Ya(e,t,n={}){let[r,i,a]=Pa(e,n),o=e=>{let r=e.currentTarget;if(!qa(e)||Ja.has(e))return;Ua.add(r),n.stopPropagation&&Ja.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Ua.has(r)&&Ua.delete(r),qa(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||La(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Oa(e)&&(e.addEventListener(`focus`,e=>Ka(e,i)),!Ba(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Xa(e){return We(e)&&`ownerSVGElement`in e}var Za=new WeakMap,Qa,$a=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Xa(r)&&`getBBox`in r?r.getBBox()[t]:r[n],eo=$a(`inline`,`width`,`offsetWidth`),to=$a(`block`,`height`,`offsetHeight`);function no({target:e,borderBoxSize:t}){Za.get(e)?.forEach(n=>{n(e,{get width(){return eo(e,t)},get height(){return to(e,t)}})})}function ro(e){e.forEach(no)}function io(){typeof ResizeObserver>`u`||(Qa=new ResizeObserver(ro))}function ao(e,t){Qa||io();let n=Ea(e);return n.forEach(e=>{let n=Za.get(e);n||(n=new Set,Za.set(e,n)),n.add(t),Qa?.observe(e)}),()=>{n.forEach(e=>{let n=Za.get(e);n?.delete(t),n?.size||Qa?.unobserve(e)})}}var oo=new Set,so;function co(){so=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};oo.forEach(t=>t(e))},window.addEventListener(`resize`,so)}function lo(e){return oo.add(e),so||co(),()=>{oo.delete(e),!oo.size&&typeof so==`function`&&(window.removeEventListener(`resize`,so),so=void 0)}}function uo(e,t){return typeof e==`function`?lo(e):ao(e,t)}function fo(e){return Xa(e)&&e.tagName===`svg`}var V=[...la,cn,wn],H=e=>V.find(ca(e)),po=()=>({translate:0,scale:1,origin:0,originPoint:0}),mo=()=>({x:po(),y:po()}),ho=()=>({min:0,max:0}),go=()=>({x:ho(),y:ho()}),_o=new WeakMap;function vo(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function yo(e){return typeof e==`string`||Array.isArray(e)}var bo=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],xo=[`initial`,...bo];function So(e){return vo(e.animate)||xo.some(t=>yo(e[t]))}function Co(e){return!!(So(e)||e.variants)}function wo(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Xi(i))e.addValue(r,i);else if(Xi(a))e.addValue(r,ki(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ki(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var To={current:null},Eo={current:!1},Do=typeof window<`u`;function Oo(){if(Eo.current=!0,Do)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>To.current=e.matches;e.addEventListener(`change`,t),t()}else To.current=!1}var ko=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ao={};function jo(e){Ao=e}function Mo(){return Ao}var No=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=qr,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=()=>{let e=Mt.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,I.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=So(t),this.isVariantNode=Co(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Xi(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,_o.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Eo.current||Oo(),this.shouldReduceMotion=To.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Dt(this.notifyUpdate),Dt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&gi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new oi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Ze(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Pr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&I.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ao){let t=Ao[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):go()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ko.length;t++){let n=ko[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=wo(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ki(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Ue(n)||Ge(n))?n=parseFloat(n):!H(n)&&wn.test(t)&&(n=Sa(e,t)),this.setBaseTarget(e,Xi(n)?n.get():n)),Xi(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Ui(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Xi(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Xe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ka.render(this.render)}},Po=class extends No{constructor(){super(...arguments),this.KeyframeResolver=Ta}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Xi(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Fo=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Io({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Lo({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ro(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function zo(e){return e===void 0||e===1}function Bo({scale:e,scaleX:t,scaleY:n}){return!zo(e)||!zo(t)||!zo(n)}function Vo(e){return Bo(e)||Ho(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ho(e){return Uo(e.x)||Uo(e.y)}function Uo(e){return e&&e!==`0%`}function Wo(e,t,n){return n+t*(e-n)}function Go(e,t,n,r,i){return i!==void 0&&(e=Wo(e,i,r)),Wo(e,n,r)+t}function Ko(e,t=0,n=1,r,i){e.min=Go(e.min,t,n,r,i),e.max=Go(e.max,t,n,r,i)}function qo(e,{x:t,y:n}){Ko(e.x,t.translate,t.scale,t.originPoint),Ko(e.y,n.translate,n.scale,n.originPoint)}var Jo=.999999999999,Yo=1.0000000000001;function Xo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Zo(e.x,-a.scroll.offset.x),Zo(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,qo(e,o)),r&&Vo(a.latestValues)&&es(e,a.latestValues,a.layout?.layoutBox))}t.x<Yo&&t.x>Jo&&(t.x=1),t.y<Yo&&t.y>Jo&&(t.y=1)}function Zo(e,t){e.min+=t,e.max+=t}function Qo(e,t,n,r,i=.5){Ko(e,t,n,R(e.min,e.max,i),r)}function $o(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function es(e,t,n){let r=n??e;Qo(e.x,$o(t.x,r.x),t.scaleX,t.scale,t.originX),Qo(e.y,$o(t.y,r.y),t.scaleY,t.scale,t.originY)}function ts(e,t){return Io(Ro(e.getBoundingClientRect(),t))}function ns(e,t,n){let r=ts(e,n),{scroll:i}=t;return i&&(Zo(r.x,i.offset.x),Zo(r.y,i.offset.y)),r}var rs={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},is=Nr.length;function as(e,t,n){let r=``,i=!0;for(let a=0;a<is;a++){let o=Nr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Da(s,va[o]);if(!c){i=!1;let t=rs[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Da(a,va.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function os(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Pr.has(e)){o=!0;continue}else if(Ft(e)){i[e]=n;continue}else{let t=Da(n,va[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=as(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ss(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function cs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ls={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${cs(e,t.target.x)}% ${cs(e,t.target.y)}%`}},us={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=wn.parse(e);if(i.length>5)return r;let a=wn.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=R(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ds={borderRadius:{...ls,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomLeftRadius:ls,borderBottomRightRadius:ls,boxShadow:us};function fs(e,{layout:t,layoutId:n}){return Pr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ds[e]||e===`opacity`)}function ps(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Xi(r[t])||i&&Xi(i[t])||fs(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ms(e){return window.getComputedStyle(e)}var hs=class extends Po{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ss}readValueFromInstance(e,t){if(Pr.has(t))return this.projection?.isProjecting?kr(t):jr(e,t);{let n=ms(e),r=(Ft(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ts(e,t)}build(e,t,n){os(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ps(e,t,n)}},gs={offset:`stroke-dashoffset`,array:`stroke-dasharray`},_s={offset:`strokeDashoffset`,array:`strokeDasharray`};function vs(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?gs:_s;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ys=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function bs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(os(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of ys)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&vs(d,i,a,o,!1)}var xs=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`]),Ss=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Cs(e,t,n,r){ss(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(xs.has(n)?n:$i(n),t.attrs[n])}function ws(e,t,n){let r=ps(e,t,n);for(let n in e)if(Xi(e[n])||Xi(t[n])){let t=Nr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Ts=class extends Po{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=go}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Pr.has(t)){let e=ba(t);return e&&e.default||0}return t=xs.has(t)?t:$i(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ws(e,t,n)}build(e,t,n){bs(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Cs(e,t,n,r)}mount(e){this.isSVGTag=Ss(e.tagName),super.mount(e)}},Es=xo.length;function Ds(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Ds(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Es;n++){let r=xo[n],i=e.props[r];(yo(i)||i===!1)&&(t[r]=i)}return t}function Os(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ks=[...bo].reverse(),As=bo.length;function js(e){return t=>Promise.all(t.map(({animation:t,options:n})=>oa(e,t,n)))}function Ms(e){let t=js(e),n=Fs(),r=!0,i=!1,a=t=>(n,r)=>{let i=Wi(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Ds(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<As;t++){let p=ks[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=yo(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||vo(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Ns(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Ki(t)&&Ki(n)?!Os(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Wi(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=wi(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Wi(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fs(),i=!0}}}function Ns(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Os(t,e):!1}function Ps(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fs(){return{animate:Ps(!0),whileInView:Ps(),whileHover:Ps(),whileTap:Ps(),whileDrag:Ps(),whileFocus:Ps(),exit:Ps()}}function Is(e,t){e.min=t.min,e.max=t.max}function Ls(e,t){Is(e.x,t.x),Is(e.y,t.y)}function Rs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var zs=.9999,Bs=1.0001,Vs=-.01,Hs=.01;function Us(e){return e.max-e.min}function Ws(e,t,n){return Math.abs(e-t)<=n}function Gs(e,t,n,r=.5){e.origin=r,e.originPoint=R(t.min,t.max,e.origin),e.scale=Us(n)/Us(t),e.translate=R(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zs&&e.scale<=Bs||isNaN(e.scale))&&(e.scale=1),(e.translate>=Vs&&e.translate<=Hs||isNaN(e.translate))&&(e.translate=0)}function Ks(e,t,n,r){Gs(e.x,t.x,n.x,r?r.originX:void 0),Gs(e.y,t.y,n.y,r?r.originY:void 0)}function qs(e,t,n,r=0){e.min=(r?R(n.min,n.max,r):n.min)+t.min,e.max=e.min+Us(t)}function Js(e,t,n,r){qs(e.x,t.x,n.x,r?.x),qs(e.y,t.y,n.y,r?.y)}function Ys(e,t,n,r=0){let i=r?R(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Us(t)}function Xs(e,t,n,r){Ys(e.x,t.x,n.x,r?.x),Ys(e.y,t.y,n.y,r?.y)}function Zs(e,t,n,r,i){return e-=t,e=Wo(e,1/n,r),i!==void 0&&(e=Wo(e,1/i,r)),e}function Qs(e,t=0,n=1,r=.5,i,a=e,o=e){if(nn.test(t)&&(t=parseFloat(t),t=R(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=R(a.min,a.max,r);e===a&&(s-=t),e.min=Zs(e.min,t,n,s,i),e.max=Zs(e.max,t,n,s,i)}function $s(e,t,[n,r,i],a,o){Qs(e,t[n],t[r],t[i],t.scale,a,o)}var ec=[`x`,`scaleX`,`originX`],tc=[`y`,`scaleY`,`originY`];function nc(e,t,n,r){$s(e.x,t,ec,n?n.x:void 0,r?r.x:void 0),$s(e.y,t,tc,n?n.y:void 0,r?r.y:void 0)}function rc(e){return e.translate===0&&e.scale===1}function ic(e){return rc(e.x)&&rc(e.y)}function ac(e,t){return e.min===t.min&&e.max===t.max}function oc(e,t){return ac(e.x,t.x)&&ac(e.y,t.y)}function sc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cc(e,t){return sc(e.x,t.x)&&sc(e.y,t.y)}function lc(e){return Us(e.x)/Us(e.y)}function uc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function dc(e){return[e(`x`),e(`y`)]}function fc(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var pc=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],mc=pc.length,hc=e=>typeof e==`string`?parseFloat(e):e,gc=e=>typeof e==`number`||L.test(e);function _c(e,t,n,r,i,a){i?(e.opacity=R(0,n.opacity??1,yc(r)),e.opacityExit=R(t.opacity??1,0,bc(r))):a&&(e.opacity=R(t.opacity??1,n.opacity??1,r));for(let i=0;i<mc;i++){let a=pc[i],o=vc(t,a),s=vc(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||gc(o)===gc(s)?(e[a]=Math.max(R(hc(o),hc(s),r),0),(nn.test(s)||nn.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=R(t.rotate||0,n.rotate||0,r))}function vc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var yc=xc(0,.5,ft),bc=xc(.5,.95,qe);function xc(e,t,n){return r=>r<e?0:r>t?1:n(Ye(e,t,r))}function Sc(e,t,n){let r=Xi(e)?e:ki(e);return r.start(Ri(``,r,t,n)),r.animation}function Cc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var wc=(e,t)=>e.depth-t.depth,Tc=class{constructor(){this.children=[],this.isDirty=!1}add(e){ze(this.children,e),this.isDirty=!0}remove(e){Be(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(wc),this.isDirty=!1,this.children.forEach(e)}};function Ec(e,t){let n=Mt.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Dt(r),e(a-t))};return I.setup(r,!0),()=>Dt(r)}function Dc(e){return Xi(e)?e.get():e}var Oc=class{constructor(){this.members=[]}add(e){ze(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Be(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Be(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},kc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ac={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},jc=[``,`X`,`Y`,`Z`],Mc=1e3,Nc=0;function Pc(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ta(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,I,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fc(r)}function Ic({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Nc++,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,Ct.value&&(Ac.nodes=Ac.calculatedTargetDeltas=Ac.calculatedProjections=0),this.nodes.forEach(zc),this.nodes.forEach(Jc),this.nodes.forEach(Yc),this.nodes.forEach(Bc),Ct.addProjectionMetrics&&Ct.addProjectionMetrics(Ac)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Tc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Xe),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Xa(t)&&!fo(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;I.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ec(i,250),kc.hasAnimatedSinceResize&&(kc.hasAnimatedSinceResize=!1,this.nodes.forEach(qc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||nl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!cc(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ji(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||qc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Dt(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(Xc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Uc),this.nodes.forEach(Hc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Wc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Gc),this.nodes.forEach(Kc),this.nodes.forEach(Lc),this.nodes.forEach(Rc)):this.nodes.forEach(Wc),this.clearAllSnapshots();let e=Mt.now();Ot.delta=Ve(0,1e3/60,e-Ot.timestamp),Ot.timestamp=e,Ot.isProcessing=!0,kt.update.process(Ot),kt.preRender.process(Ot),kt.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ka.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vc),this.sharedNodes.forEach(Zc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Us(this.snapshot.measuredBox.x)&&!Us(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=go(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ic(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Vo(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),ol(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return go();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(cl))){let{scroll:e}=this.root;e&&(Zo(t.x,e.offset.x),Zo(t.y,e.offset.y))}return t}removeElementScroll(e){let t=go();if(Ls(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Ls(t,e),Zo(t.x,i.offset.x),Zo(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||go();Ls(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Zo(r.x,-n.scroll.offset.x),Zo(r.y,-n.scroll.offset.y)),Vo(n.latestValues)&&es(r,n.latestValues,n.layout?.layoutBox)}return Vo(this.latestValues)&&es(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=go();Ls(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Vo(n.latestValues))continue;let r;n.instance&&(Bo(n.latestValues)&&n.updateSnapshot(),r=go(),Ls(r,n.measurePageBox())),nc(t,n.latestValues,n.snapshot?.layoutBox,r)}return Vo(this.latestValues)&&nc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}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!==Ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Ot.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=go(),this.targetWithTransforms=go()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Js(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ls(this.target,this.layout.layoutBox),qo(this.target,this.targetDelta)):Ls(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Ct.value&&Ac.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Bo(this.parent.latestValues)||Ho(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=go(),this.relativeTargetOrigin=go(),Xs(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Ls(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Ot.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Ls(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Xo(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=go());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Rs(this.prevProjectionDelta.x,this.projectionDelta.x),Rs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ks(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!uc(this.projectionDelta.x,this.prevProjectionDelta.x)||!uc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Ct.value&&Ac.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mo(),this.projectionDelta=mo(),this.projectionDeltaWithTransform=mo()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=mo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=go(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(tl));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=R(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=R(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Qc(o.x,e.x,n),Qc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),el(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&oc(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=go(),Ls(f,this.relativeTarget)),c&&(this.animationValues=a,_c(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Dt(this.pendingAnimation),void 0),this.pendingAnimation=I.update(()=>{kc.hasAnimatedSinceResize=!0,Nt.layout++,this.motionValue||=ki(0),this.motionValue.jump(0,!1),this.currentAnimation=Sc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Nt.layout--},onComplete:()=>{Nt.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Mc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&sl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||go();let t=Us(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Us(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ls(t,n),es(t,i),Ks(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Oc),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Pc(`z`,e,r,this.animationValues);for(let t=0;t<jc.length;t++)Pc(`rotate${jc[t]}`,e,r,this.animationValues),Pc(`skew${jc[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Dc(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Dc(t?.pointerEvents)||``),this.hasProjected&&!Vo(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=fc(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in ds){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ds[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Dc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Hc),this.root.sharedNodes.clear()}}}function Lc(e){e.updateLayout()}function Rc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)dc(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Us(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Is(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else sl(i,t.layoutBox,n)&&dc(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Us(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=mo();Ks(o,n,t.layoutBox);let s=mo();a?Ks(s,e.applyTransform(r,!0),t.measuredBox):Ks(s,n,t.layoutBox);let c=!ic(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=go();Xs(s,t.layoutBox,i.layoutBox,o);let c=go();Xs(c,n,a.layoutBox,o),cc(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function zc(e){Ct.value&&Ac.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Bc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vc(e){e.clearSnapshot()}function Hc(e){e.clearMeasurements()}function Uc(e){e.isLayoutDirty=!0,e.updateLayout()}function Wc(e){e.isLayoutDirty=!1}function Gc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Kc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function qc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Jc(e){e.resolveTargetDelta()}function Yc(e){e.calcProjection()}function Xc(e){e.resetSkewAndRotation()}function Zc(e){e.removeLeadSnapshot()}function Qc(e,t,n){e.translate=R(t.translate,0,n),e.scale=R(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $c(e,t,n,r){e.min=R(t.min,n.min,r),e.max=R(t.max,n.max,r)}function el(e,t,n,r){$c(e.x,t.x,n.x,r),$c(e.y,t.y,n.y,r)}function tl(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var nl={duration:.45,ease:[.4,0,.1,1]},rl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),il=rl(`applewebkit/`)&&!rl(`chrome/`)?Math.round:qe;function al(e){e.min=il(e.min),e.max=il(e.max)}function ol(e){al(e.x),al(e.y)}function sl(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ws(lc(t),lc(n),.2)}function cl(e){return e!==e.root&&e.scroll?.wasRoot}var ll=Ic({attachResizeListener:(e,t)=>Cc(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ul={current:void 0},dl=Ic({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ul.current){let e=new ll({});e.mount(window),e.setOptions({layoutScroll:!0}),ul.current=e}return ul.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),fl=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function pl(e=!0){let t=(0,b.useContext)(Re);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,b.useId)();(0,b.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,b.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var ml=(0,b.createContext)({strict:!1}),hl={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`]},gl=!1;function _l(){if(gl)return;let e={};for(let t in hl)e[t]={isEnabled:e=>hl[t].some(t=>!!e[t])};jo(e),gl=!0}function vl(){return _l(),Mo()}function yl(e){let t=vl();for(let n in e)t[n]={...t[n],...e[n]};jo(t)}var bl=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`.split(`.`));function xl(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||bl.has(e)}var Sl=c({default:()=>Cl}),Cl,wl=o((()=>{throw Cl={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Tl=e=>!xl(e);function El(e){typeof e==`function`&&(Tl=t=>t.startsWith(`on`)?!xl(t):e(t))}try{El((wl(),d(Sl)).default)}catch{}function Dl(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Xi(e[i])||(Tl(i)||n===!0&&xl(i)||!t&&!xl(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Ol=(0,b.createContext)({});function kl(e,t){if(So(e)){let{initial:t,animate:n}=e;return{initial:t===!1||yo(t)?t:void 0,animate:yo(n)?n:void 0}}return e.inherit===!1?{}:t}function Al(e){let{initial:t,animate:n}=kl(e,(0,b.useContext)(Ol));return(0,b.useMemo)(()=>({initial:t,animate:n}),[jl(t),jl(n)])}function jl(e){return Array.isArray(e)?e.join(` `):e}var Ml=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Nl(e,t,n){for(let r in t)!Xi(t[r])&&!fs(r,n)&&(e[r]=t[r])}function Pl({transformTemplate:e},t){return(0,b.useMemo)(()=>{let n=Ml();return os(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fl(e,t){let n=e.style||{},r={};return Nl(r,n,e),Object.assign(r,Pl(e,t)),r}function Il(e,t){let n={},r=Fl(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Ll=()=>({...Ml(),attrs:{}});function Rl(e,t,n,r){let i=(0,b.useMemo)(()=>{let n=Ll();return bs(n,t,Ss(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Nl(t,e.style,e),i.style={...t,...i.style}}return i}var zl=[`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 Bl(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(zl.indexOf(e)>-1||/[A-Z]/u.test(e))}function Vl(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Bl(e)?Rl:Il)(t,r,i,e),c=Dl(t,typeof e==`string`,a),l=e===b.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,b.useMemo)(()=>Xi(u)?u.get():u,[u]);return(0,b.createElement)(e,{...l,children:d})}function U({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:W(n,r,i,e),renderState:t()}}function W(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Dc(a[e]);let{initial:o,animate:s}=e,c=So(e),l=Co(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!vo(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Ui(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var G=e=>(t,n)=>{let r=(0,b.useContext)(Ol),i=(0,b.useContext)(Re),a=()=>U(e,t,r,i);return n?a():Ie(a)},K=G({scrapeMotionValuesFromProps:ps,createRenderState:Ml}),q=G({scrapeMotionValuesFromProps:ws,createRenderState:Ll}),Hl=Symbol.for(`motionComponentSymbol`);function Ul(e,t,n){let r=(0,b.useRef)(n);(0,b.useInsertionEffect)(()=>{r.current=n});let i=(0,b.useRef)(null);return(0,b.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Wl=(0,b.createContext)({});function Gl(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Kl(e,t,n,r,i,a){let{visualElement:o}=(0,b.useContext)(Ol),s=(0,b.useContext)(ml),c=(0,b.useContext)(Re),l=(0,b.useContext)(fl),u=l.reducedMotion,d=l.skipAnimations,f=(0,b.useRef)(null),p=(0,b.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,b.useContext)(Wl);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&ql(f.current,n,i,h);let g=(0,b.useRef)(!1);(0,b.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[ea],v=(0,b.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Le(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,b.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function ql(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Jl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Gl(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Jl(e){if(e)return e.options.allowProjection===!1?Jl(e.parent):e.projection}function Yl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&yl(r);let a=n?n===`svg`:Bl(e),o=a?q:K;function s(n,s){let c,l={...(0,b.useContext)(fl),...n,layoutId:Xl(n)},{isStatic:u}=l,d=Al(n),f=o(n,u);if(!u&&typeof window<`u`){Zl(l,r);let t=Ql(l);c=t.MeasureLayout,d.visualElement=Kl(e,f,l,i,t.ProjectionNode,a)}return(0,F.jsxs)(Ol.Provider,{value:d,children:[c&&d.visualElement?(0,F.jsx)(c,{visualElement:d.visualElement,...l}):null,Vl(e,n,Ul(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,b.forwardRef)(s);return c[Hl]=e,c}function Xl({layoutId:e}){let t=(0,b.useContext)(Fe).id;return t&&e!==void 0?t+`-`+e:e}function Zl(e,t){(0,b.useContext)(ml).strict}function Ql(e){let{drag:t,layout:n}=vl();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $l(e,t){if(typeof Proxy>`u`)return Yl;let n=new Map,r=(n,r)=>Yl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Yl(a,void 0,e,t)),n.get(a))})}var eu=(e,t)=>t.isSVG??Bl(e)?new Ts(t):new hs(t,{allowProjection:e!==b.Fragment}),tu=class extends Fo{constructor(e){super(e),e.animationState||=Ms(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();vo(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},nu=0,ru={animation:{Feature:tu},exit:{Feature:class extends Fo{constructor(){super(...arguments),this.id=nu++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Wi(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function iu(e){return{point:{x:e.pageX,y:e.pageY}}}var au=e=>t=>Ra(t)&&e(t,iu(t));function ou(e,t,n,r){return Cc(e,t,au(n),r)}var su=({current:e})=>e?e.ownerDocument.defaultView:null,cu=(e,t)=>Math.abs(e-t);function lu(e,t){let n=cu(e.x,t.x),r=cu(e.y,t.y);return Math.sqrt(n**2+r**2)}var uu=new Set([`auto`,`scroll`]),du=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=fu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=mu(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=lu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Ot;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=fu(t,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=mu(e.type===`pointercancel`?this.lastMoveEventInfo:fu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Ra(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=fu(iu(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Ot;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,mu(s,this.history)),this.removeListeners=Je(ou(this.contextWindow,`pointermove`,this.handlePointerMove),ou(this.contextWindow,`pointerup`,this.handlePointerUp),ou(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(uu.has(e.overflowX)||uu.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Dt(this.updatePoint)}};function fu(e,t){return t?{point:t(e.point)}:e}function pu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mu({point:e},t){return{point:e,delta:pu(e,gu(t)),offset:pu(e,hu(t)),velocity:_u(t,.1)}}function hu(e){return e[0]}function gu(e){return e[e.length-1]}function _u(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=gu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ze(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Ze(t)*2&&(r=e[1]);let a=Qe(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function vu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?R(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?R(n,e,r.max):Math.min(e,n)),e}function yu(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function bu(e,{top:t,left:n,bottom:r,right:i}){return{x:yu(e.x,n,i),y:yu(e.y,t,r)}}function xu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Su(e,t){return{x:xu(e.x,t.x),y:xu(e.y,t.y)}}function Cu(e,t){let n=.5,r=Us(e),i=Us(t);return i>r?n=Ye(t.min,t.max-r,e.min):r>i&&(n=Ye(e.min,e.max-i,t.min)),Ve(0,1,n)}function wu(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Tu=.35;function Eu(e=Tu){return e===!1?e=0:e===!0&&(e=Tu),{x:Du(e,`left`,`right`),y:Du(e,`top`,`bottom`)}}function Du(e,t,n){return{min:Ou(e,t),max:Ou(e,n)}}function Ou(e,t){return typeof e==`number`?e:e[t]||0}var ku=new WeakMap,Au=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=go(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(iu(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Na(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(nn.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Us(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&I.update(()=>i(e,t),!1,!0),Qi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Pu(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&I.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new du(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:su(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&I.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Nu(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=vu(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Gl(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=bu(n.layoutBox,e):this.constraints=!1,this.elastic=Eu(t),r!==this.constraints&&!Gl(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&dc(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=wu(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Gl(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=ns(n,r.root,this.visualElement.getTransformPagePoint()),a=Su(r.layout.layoutBox,i);if(t){let e=t(Lo(a));this.hasMutatedConstraints=!!e,e&&(a=Io(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=dc(o=>{if(!Nu(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Qi(this.visualElement,e),n.start(Ri(e,n,0,t,this.visualElement,!1))}stopAnimation(){dc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){dc(t=>{let{drag:n}=this.getProps();if(!Nu(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-R(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Gl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};dc(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Cu({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),dc(t=>{if(!Nu(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(R(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ku.set(this.visualElement,this);let e=this.visualElement.current,t=ou(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ha(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Gl(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Mu(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),I.read(r);let o=Cc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(dc(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Tu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ju(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Mu(e,t,n){let r=uo(e,ju(n)),i=uo(t,ju(n));return()=>{r(),i()}}function Nu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Fu=class extends Fo{constructor(e){super(e),this.removeGroupControls=qe,this.removeListeners=qe,this.controls=new Au(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qe}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Iu=e=>(t,n)=>{e&&I.update(()=>e(t,n),!1,!0)},Lu=class extends Fo{constructor(){super(...arguments),this.removePointerDownListener=qe}onPointerDown(e){this.session=new du(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:su(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Iu(e),onStart:Iu(t),onMove:Iu(n),onEnd:(e,t)=>{delete this.session,r&&I.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ou(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Ru=!1,zu=class extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Ru&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),kc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Ru=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||I.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ka.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Ru=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Bu(e){let[t,n]=pl(),r=(0,b.useContext)(Fe);return(0,F.jsx)(zu,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(Wl),isPresent:t,safeToRemove:n})}var Vu={pan:{Feature:Lu},drag:{Feature:Fu,ProjectionNode:dl,MeasureLayout:Bu}};function Hu(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&I.postRender(()=>i(t,iu(t)))}var Uu=class extends Fo{mount(){let{current:e}=this.node;e&&(this.unmount=Ia(e,(e,t)=>(Hu(this.node,t,`Start`),e=>Hu(this.node,e,`End`))))}unmount(){}},Wu=class extends Fo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!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=Je(Cc(this.node.current,`focus`,()=>this.onFocus()),Cc(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Gu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&I.postRender(()=>i(t,iu(t)))}var Ku=class extends Fo{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ya(e,(e,t)=>(Gu(this.node,t,`Start`),(e,{success:t})=>Gu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},qu=new WeakMap,J=new WeakMap,Ju=e=>{let t=qu.get(e.target);t&&t(e)},Yu=e=>{e.forEach(Ju)};function Xu({root:e,...t}){let n=e||document;J.has(n)||J.set(n,{});let r=J.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Yu,{root:e,...t})),r[i]}function Zu(e,t,n){let r=Xu(t);return qu.set(e,n),r.observe(e),()=>{qu.delete(e),r.unobserve(e)}}var Qu={some:0,all:1},$u=class extends Fo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Qu[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Zu(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(ed(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function ed({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var td={inView:{Feature:$u},tap:{Feature:Ku},focus:{Feature:Wu},hover:{Feature:Uu}},nd={layout:{ProjectionNode:dl,MeasureLayout:Bu}},rd=$l({...ru,...td,...Vu,...nd},eu),id=({toolName:e,schema:t,values:n,onChange:r,disabled:i=!1})=>{let a=t?.properties||{},o=t?.required||[],s=Object.keys(a);return s.length===0?(0,F.jsxs)(`div`,{className:`p-4 rounded-lg bg-surface1/60 border border-border text-center space-y-2`,children:[(0,F.jsx)(`div`,{className:`inline-flex p-2 rounded-full bg-cyan-500/10 text-cyan-400`,children:(0,F.jsx)(ue,{className:`h-4 w-4`})}),(0,F.jsx)(`p`,{className:`text-xs text-zinc-300 font-medium`,children:`No parameters required`}),(0,F.jsxs)(`p`,{className:`text-[11px] text-zinc-400`,children:[`Tool `,(0,F.jsx)(`code`,{className:`font-mono text-cyan-300`,children:e}),` does not require arguments.`]})]}):(0,F.jsxs)(`div`,{className:`space-y-3.5 p-4 rounded-lg bg-surface1/40 border border-border`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between pb-2 border-b border-border/50 text-xs`,children:[(0,F.jsx)(`span`,{className:`font-semibold text-zinc-200`,children:`Schema Parameters`}),(0,F.jsxs)(`span`,{className:`text-[10px] font-mono text-zinc-400`,children:[s.length,` inputs`]})]}),(0,F.jsx)(`div`,{className:`space-y-3`,children:s.map(e=>{let t=a[e]||{},s=o.includes(e),c=t.type||`string`,l=n[e]??``;return(0,F.jsxs)(`div`,{className:`space-y-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`label`,{htmlFor:`field-${e}`,className:`text-xs font-mono font-medium text-zinc-200 flex items-center gap-1`,children:[e,s&&(0,F.jsx)(`span`,{className:`text-rose-400 font-bold`,children:`*`}),(0,F.jsxs)(`span`,{className:`text-[10px] font-mono text-zinc-500 font-normal`,children:[`(`,c,`)`]})]}),t.enum&&(0,F.jsxs)(`span`,{className:`text-[9px] font-mono px-1 py-0.2 rounded bg-secondary text-zinc-400`,children:[`enum: `,t.enum.length,` options`]})]}),t.description&&(0,F.jsx)(`p`,{className:`text-[11px] text-zinc-400 leading-tight`,children:t.description}),t.enum&&Array.isArray(t.enum)?(0,F.jsxs)(`select`,{id:`field-${e}`,value:String(l),disabled:i,onChange:t=>r(e,t.target.value),className:`w-full h-8 px-2.5 rounded border border-border bg-surface1 text-white text-xs focus:outline-none focus:border-primary`,children:[(0,F.jsx)(`option`,{value:``,children:`-- Select option --`}),t.enum.map(e=>(0,F.jsx)(`option`,{value:e,children:e},e))]}):c===`boolean`?(0,F.jsxs)(`select`,{id:`field-${e}`,value:l===``?``:String(l),disabled:i,onChange:t=>r(e,t.target.value===`true`),className:`w-full h-8 px-2.5 rounded border border-border bg-surface1 text-white text-xs focus:outline-none focus:border-primary`,children:[(0,F.jsx)(`option`,{value:``,children:`-- Select boolean --`}),(0,F.jsx)(`option`,{value:`true`,children:`true`}),(0,F.jsx)(`option`,{value:`false`,children:`false`})]}):c===`number`||c===`integer`?(0,F.jsx)(`input`,{id:`field-${e}`,type:`number`,value:l,disabled:i,placeholder:t.description||`Enter ${e}`,onChange:t=>r(e,t.target.value===``?``:Number(t.target.value)),className:`w-full h-8 px-3 rounded border border-border bg-surface1 text-white text-xs placeholder:text-zinc-500 focus:outline-none focus:border-primary`}):(0,F.jsx)(`input`,{id:`field-${e}`,type:`text`,value:l,disabled:i,placeholder:t.description||`Enter ${e}`,onChange:t=>r(e,t.target.value),className:`w-full h-8 px-3 rounded border border-border bg-surface1 text-white text-xs placeholder:text-zinc-500 focus:outline-none focus:border-primary`})]},e)})})]})};function ad(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ad(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function od(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ad(e))&&(r&&(r+=` `),r+=t);return r}var sd=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,cd=od,ld=(e,t)=>n=>{if(t?.variants==null)return cd(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=sd(t)||sd(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return cd(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ud=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},dd=(e,t)=>({classGroupId:e,validator:t}),fd=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pd=`-`,md=[],hd=`arbitrary..`,gd=e=>{let t=yd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return vd(e);let n=e.split(pd);return _d(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ud(i,t):t:i||md}return n[e]||md}}},_d=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=_d(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(pd):e.slice(t).join(pd),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},vd=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?hd+r:void 0})(),yd=e=>{let{theme:t,classGroups:n}=e;return bd(n,t)},bd=(e,t)=>{let n=fd();for(let r in e){let i=e[r];xd(i,n,r,t)}return n},xd=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Sd(i,t,n,r)}},Sd=(e,t,n,r)=>{if(typeof e==`string`){Y(e,t,n);return}if(typeof e==`function`){Cd(e,t,n,r);return}wd(e,t,n,r)},Y=(e,t,n)=>{let r=e===``?t:Td(t,e);r.classGroupId=n},Cd=(e,t,n,r)=>{if(Ed(e)){xd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(dd(n,e))},wd=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];xd(o,Td(t,a),n,r)}},Td=(e,t)=>{let n=e,r=t.split(pd),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=fd(),n.nextPart.set(t,i)),n=i}return n},Ed=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Dd=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Od=`!`,kd=`:`,Ad=[],jd=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Md=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===kd){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Od)?(c=s.slice(0,-1),l=!0):s.startsWith(Od)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return jd(t,l,c,u)};if(t){let e=t+kd,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):jd(Ad,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Nd=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Pd=e=>({cache:Dd(e.cacheSize),parseClassName:Md(e),sortModifiers:Nd(e),postfixLookupClassGroupIds:Fd(e),...gd(e)}),Fd=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},X=/\s+/,Id=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(X),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Od:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ld=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Rd(n))&&(i&&(i+=` `),i+=r);return i},Rd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Rd(e[r]))&&(n&&(n+=` `),n+=t);return n},zd=(e,...t)=>{let n,r,i,a,o=o=>(n=Pd(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Id(e,n);return i(e,a),a};return a=o,(...e)=>a(Ld(...e))},Bd=[],Vd=e=>{let t=t=>t[e]||Bd;return t.isThemeGetter=!0,t},Hd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ud=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xd=e=>Wd.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Zd=e=>!!e&&Number.isInteger(Number(e)),Qd=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),$d=e=>Gd.test(e),ef=()=>!0,tf=e=>Kd.test(e)&&!qd.test(e),nf=()=>!1,rf=e=>Jd.test(e),af=e=>Yd.test(e),of=e=>!Q(e)&&!$(e),sf=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),cf=e=>Cf(e,Df,nf),Q=e=>Hd.test(e),lf=e=>Cf(e,Of,tf),uf=e=>Cf(e,kf,Z),df=e=>Cf(e,jf,ef),ff=e=>Cf(e,Af,nf),pf=e=>Cf(e,Tf,nf),mf=e=>Cf(e,Ef,af),hf=e=>Cf(e,Mf,rf),$=e=>Ud.test(e),gf=e=>wf(e,Of),_f=e=>wf(e,Af),vf=e=>wf(e,Tf),yf=e=>wf(e,Df),bf=e=>wf(e,Ef),xf=e=>wf(e,Mf,!0),Sf=e=>wf(e,jf,!0),Cf=(e,t,n)=>{let r=Hd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},wf=(e,t,n=!1)=>{let r=Ud.exec(e);return r?r[1]?t(r[1]):n:!1},Tf=e=>e===`position`||e===`percentage`,Ef=e=>e===`image`||e===`url`,Df=e=>e===`length`||e===`size`||e===`bg-size`,Of=e=>e===`length`,kf=e=>e===`number`,Af=e=>e===`family-name`,jf=e=>e===`number`||e===`weight`,Mf=e=>e===`shadow`,Nf=zd(()=>{let e=Vd(`color`),t=Vd(`font`),n=Vd(`text`),r=Vd(`font-weight`),i=Vd(`tracking`),a=Vd(`leading`),o=Vd(`breakpoint`),s=Vd(`container`),c=Vd(`spacing`),l=Vd(`radius`),u=Vd(`shadow`),d=Vd(`inset-shadow`),f=Vd(`text-shadow`),p=Vd(`drop-shadow`),m=Vd(`blur`),h=Vd(`perspective`),g=Vd(`aspect`),_=Vd(`ease`),v=Vd(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[Xd,`full`,`auto`,...w()],E=()=>[Zd,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,Zd,$,Q]},Zd,$,Q],O=()=>[Zd,`auto`,$,Q],ee=()=>[`auto`,`min`,`max`,`fr`,$,Q],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],re=()=>[`auto`,...w()],ie=()=>[Xd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ae=()=>[Xd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],oe=()=>[Xd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[e,$,Q],A=()=>[...b(),vf,pf,{position:[$,Q]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,yf,cf,{size:[$,Q]}],le=()=>[Qd,gf,lf],j=()=>[``,`none`,`full`,l,$,Q],M=()=>[``,Z,gf,lf],N=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[Z,Qd,vf,pf],de=()=>[``,`none`,m,$,Q],fe=()=>[`none`,Z,$,Q],pe=()=>[`none`,Z,$,Q],me=()=>[Z,$,Q],he=()=>[Xd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[$d],breakpoint:[$d],color:[ef],container:[$d],"drop-shadow":[$d],ease:[`in`,`out`,`in-out`],font:[of],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[$d],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[$d],shadow:[$d],spacing:[`px`,Z],text:[$d],"text-shadow":[$d],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Xd,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[sf],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Zd,`auto`,$,Q]}],basis:[{basis:[Xd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Xd,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Zd,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ie()}],"inline-size":[{inline:[`auto`,...ae()]}],"min-inline-size":[{"min-inline":[`auto`,...ae()]}],"max-inline-size":[{"max-inline":[`none`,...ae()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,gf,lf]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Sf,df]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Qd,Q]}],"font-family":[{font:[_f,ff,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,uf]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...N(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,lf]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Zd,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Zd,$,Q],radial:[``,$,Q],conic:[Zd,$,Q]},bf,mf]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":M()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...N(),`hidden`,`none`]}],"divide-style":[{divide:[...N(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...N(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,gf,lf]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,xf,hf]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,d,xf,hf]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:M()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Z,lf]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,f,xf,hf]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:de()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,xf,hf]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":[`translate-none`],zoom:[{zoom:[Zd,$,Q]}],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[Z,gf,lf,uf]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Pf(...e){return Nf(od(e))}var Ff=ld(`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary/20 text-primary border-primary/30`,secondary:`border-transparent bg-secondary text-secondary-foreground border-white/5`,destructive:`border-transparent bg-destructive/15 text-destructive border-destructive/30`,outline:`text-foreground border-border`,success:`border-transparent bg-success/15 text-success border-success/30`,warning:`border-transparent bg-warning/15 text-warning border-warning/30`}},defaultVariants:{variant:`default`}});function If({className:e,variant:t,...n}){return(0,F.jsx)(`div`,{className:Pf(Ff({variant:t}),e),...n})}var Lf=ld(`inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 active:scale-98 duration-200`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90 hover:shadow-[0_0_15px_rgba(56,189,248,0.3)]`,destructive:`bg-destructive text-destructive-foreground shadow hover:bg-destructive/90 hover:shadow-[0_0_15px_rgba(244,63,94,0.3)]`,outline:`border border-border bg-transparent shadow hover:bg-secondary/40 hover:text-white hover:border-white/20`,secondary:`bg-secondary text-secondary-foreground shadow hover:bg-secondary/80`,ghost:`hover:bg-accent/10 hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`,success:`bg-success text-success-foreground shadow hover:bg-success/90 hover:shadow-[0_0_15px_rgba(16,185,129,0.3)]`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),Rf=b.forwardRef(({className:e,variant:t,size:n,...r},i)=>(0,F.jsx)(`button`,{className:Pf(Lf({variant:t,size:n,className:e})),ref:i,...r}));Rf.displayName=`Button`;var zf=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:Pf(`rounded-lg border border-border bg-card text-card-foreground shadow-card`,e),...t}));zf.displayName=`Card`;var Bf=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:Pf(`flex flex-col space-y-1.5 p-6`,e),...t}));Bf.displayName=`CardHeader`;var Vf=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`h3`,{ref:n,className:Pf(`text-lg font-semibold leading-none tracking-tight text-white`,e),...t}));Vf.displayName=`CardTitle`;var Hf=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`p`,{ref:n,className:Pf(`text-sm text-muted-foreground`,e),...t}));Hf.displayName=`CardDescription`;var Uf=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:Pf(`p-6 pt-0`,e),...t}));Uf.displayName=`CardContent`;var Wf=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:Pf(`flex items-center p-6 pt-0`,e),...t}));Wf.displayName=`CardFooter`;function Gf({executionMode:e,onExecutionModeChange:t,availableTemplates:n,selectedTemplateId:r,onSelectTemplate:i,selectedToolName:a,onSelectTool:o,code:s,onCodeChange:c,isRunning:l,tools:u,isCurrentToolSupported:d,currentTemplate:f,currentToolObj:p,activeConnectedTarget:m,isNetworkHealthy:h,formArgs:g,onFormArgChange:_,onResetTemplate:v,onExecute:y,onOpenExportTab:x,onOpenEnvModal:S}){let[C,w]=(0,b.useState)(null),[T,E]=(0,b.useState)(!1),D=async(e,t)=>{await ke(e)&&(w(t),setTimeout(()=>w(null),1500))},O=()=>{v(),E(!0),setTimeout(()=>E(!1),1500)},ee=(0,b.useMemo)(()=>({lines:s.split(`
|
|
10
|
+
`).length,bytes:new TextEncoder().encode(s).length,estTokens:Math.max(1,Math.ceil(s.trim().length/3.8))}),[s]),te=(0,b.useMemo)(()=>{let e=s.trim(),t=e.match(/^@LIOP\{([^}]+)\}\s*([\s\S]*?)\s*(?:@END)?$/),n=e,r=`wasi_v1`,i=!1;t&&(i=!0,r=t[1].split(`,`)[0]?.trim()||`wasi_v1`,n=t[2]);try{return Function(`env`,n),{valid:!0,error:null,runtime:r,hasEnvelope:i}}catch(e){return{valid:!1,error:e instanceof Error?e.message:String(e),runtime:r,hasEnvelope:i}}},[s]);return(0,F.jsxs)(zf,{className:`flex flex-col bg-card border-border shadow-card shrink-0`,children:[(0,F.jsxs)(Bf,{className:`pb-3 flex flex-row items-center justify-between space-y-0`,children:[(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsxs)(`div`,{className:`flex items-center gap-1 p-0.5 bg-surface1 border border-white/10 rounded-lg`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t(`logic`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 ${e===`logic`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(oe,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`Logic Studio (@LIOP)`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t(`form`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 ${e===`form`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(Ce,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`MCP Tool Form`})]})]})}),e===`logic`&&n.length>0&&(0,F.jsx)(`div`,{className:`relative flex items-center bg-surface1 border border-white/15 p-0.5 rounded-lg flex-wrap gap-0.5`,children:n.map(e=>{let t=r===e.id;return(0,F.jsxs)(`button`,{type:`button`,onClick:()=>i(e.id),className:`relative z-10 text-[11px] px-2.5 py-1 font-medium transition-colors duration-200 flex items-center gap-1.5`,title:e.description,children:[t&&(0,F.jsx)(rd.div,{layoutId:`templateActivePill`,className:`absolute inset-0 rounded-md shadow-sm bg-primary`,transition:{type:`spring`,stiffness:450,damping:35}}),(0,F.jsx)(`span`,{className:`relative z-20 font-medium transition-colors duration-200 flex items-center gap-1 ${t?`text-black font-semibold`:`text-zinc-300 hover:text-white`}`,children:(0,F.jsx)(`span`,{children:e.name})})]},e.id)})}),e===`logic`&&n.length===0&&(0,F.jsx)(`div`,{className:`text-[11px] text-zinc-400 font-mono px-2 py-1 bg-surface1/60 rounded border border-white/10`,children:h?`Scanning target capabilities...`:`Target Offline (0 Capabilities)`})]}),(0,F.jsxs)(Uf,{className:`space-y-3`,children:[e===`logic`&&u.length===0&&(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-rose-950/20 border border-rose-500/30 text-rose-200 flex items-start gap-3 animate-in fade-in duration-200`,children:[(0,F.jsx)(be,{className:`h-4 w-4 text-rose-400 shrink-0 mt-0.5`}),(0,F.jsxs)(`div`,{className:`space-y-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(`h4`,{className:`text-xs font-semibold text-rose-300`,children:`Target Offline`}),(0,F.jsx)(`span`,{className:`text-[9px] px-1 py-0.2 rounded bg-rose-500/20 font-mono text-rose-200 border border-rose-500/30`,children:`ZERO-TRUST`})]}),(0,F.jsxs)(`p`,{className:`text-[11px] text-zinc-300 leading-relaxed`,children:[`Target endpoint`,` `,(0,F.jsx)(`span`,{className:`font-mono text-white font-medium`,children:m}),` `,`is unreachable. Zero computational enclaves detected. Connect to an active node or start your local mesh to dispatch logic.`]})]})]}),e===`logic`&&u.length>0&&!d&&(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-red-950/30 border border-red-500/40 text-red-200 flex items-start gap-3 animate-in fade-in duration-200`,children:[(0,F.jsx)(be,{className:`h-4 w-4 text-red-400 shrink-0 mt-0.5`}),(0,F.jsxs)(`div`,{className:`space-y-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(`h4`,{className:`text-xs font-semibold text-red-300`,children:`Target Mismatch`}),(0,F.jsx)(`span`,{className:`text-[9px] px-1 py-0.2 rounded bg-red-500/20 font-mono text-red-200 border border-red-500/30`,children:`ZERO-TRUST`})]}),(0,F.jsxs)(`p`,{className:`text-[11px] text-zinc-300 leading-relaxed`,children:[`Active logic targets capability`,` `,(0,F.jsx)(`span`,{className:`font-mono text-cyan-300 font-semibold`,children:f?.tool||a}),`, not exposed by target`,` `,(0,F.jsx)(`span`,{className:`font-mono text-white`,children:m}),`. Execution paused to protect origin runtime.`]}),(0,F.jsxs)(`div`,{className:`text-[10px] text-zinc-400 font-mono pt-0.5 flex items-center gap-1.5 flex-wrap`,children:[(0,F.jsx)(`span`,{children:`Available on target:`}),u.map(e=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>o(e.name),className:`px-1.5 py-0.5 rounded bg-emerald-500/15 border border-emerald-500/30 text-emerald-300 hover:bg-emerald-500/30 transition-colors cursor-pointer`,children:[`+ Switch to `,e.name]},e.name))]})]})]}),e===`form`?(0,F.jsx)(id,{toolName:a,schema:p?.inputSchema,values:g,onChange:_,disabled:l}):(0,F.jsxs)(`div`,{className:`relative border border-border rounded-lg bg-editor overflow-hidden`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-1.5 bg-secondary/40 border-b border-border/60 text-xs`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`text-[10px] font-mono text-primary font-semibold`,children:`@LIOP`}),(0,F.jsx)(`span`,{className:`text-border-muted`,children:`•`}),(0,F.jsx)(`span`,{className:`text-[11px] text-zinc-400 font-mono`,children:`wasi_v1 sandbox`})]}),(0,F.jsxs)(`div`,{className:`flex items-center space-x-1.5`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:S,className:`text-[11px] flex items-center gap-1.5 transition-colors px-2.5 py-0.5 rounded shrink-0 font-medium border text-cyan-300 hover:text-white bg-cyan-500/10 hover:bg-cyan-500/20 border-cyan-500/30 cursor-pointer`,title:`Inspect confidential dataset schema and sandbox constraints`,children:[(0,F.jsx)(P,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Env Schema`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:x,className:`text-[11px] flex items-center gap-1.5 transition-colors px-2.5 py-0.5 rounded shrink-0 font-medium border text-primary hover:text-white bg-secondary/80 hover:bg-white/10 border-border cursor-pointer`,title:`Export execution snippet to TypeScript, Python, or cURL`,children:[(0,F.jsx)(ce,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Export Code`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:O,className:`text-[11px] flex items-center gap-1.5 transition-colors px-2.5 py-0.5 rounded shrink-0 font-medium border cursor-pointer ${T?`text-emerald-400 bg-emerald-500/15 border-emerald-500/30`:`text-zinc-300 hover:text-white bg-surface1/60 hover:bg-white/5 border-white/10`}`,title:`Reset to template original code`,children:[T?(0,F.jsx)(ne,{className:`h-3 w-3 text-emerald-400`}):(0,F.jsx)(ge,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:T?`Reset Done`:`Reset`})]}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>D(s,`code`),className:`text-[11px] flex items-center gap-1.5 transition-colors px-2.5 py-0.5 rounded shrink-0 font-medium border cursor-pointer ${C===`code`?`text-emerald-400 bg-emerald-500/15 border-emerald-500/30`:`text-zinc-300 hover:text-white bg-surface1/60 hover:bg-white/5 border-white/10`}`,title:`Copy code payload`,children:C===`code`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ne,{className:`h-3 w-3 text-emerald-400`}),(0,F.jsx)(`span`,{children:`Copied`})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(k,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Copy`})]})})]})]}),(0,F.jsx)(`textarea`,{value:s,onChange:e=>c(e.target.value),className:`w-full h-[220px] p-3.5 bg-transparent font-mono text-xs md:text-sm text-[#7dd3fc] focus:outline-none resize-none leading-relaxed`,style:{fontFamily:`'JetBrains Mono', monospace`},placeholder:`// Write logic to inject on origin node...`,disabled:l,spellCheck:!1}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-1 bg-secondary/30 border-t border-border/50 text-[10px] font-mono text-zinc-400`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsxs)(`span`,{children:[ee.lines,` lines`]}),(0,F.jsxs)(`span`,{children:[ee.bytes,` bytes`]}),(0,F.jsxs)(`span`,{className:`text-cyan-400 flex items-center gap-1`,children:[(0,F.jsx)(oe,{className:`h-3 w-3`}),`~`,ee.estTokens,` tok (input)`]})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[te.valid?(0,F.jsxs)(`span`,{className:`text-emerald-400 flex items-center gap-1 font-semibold`,children:[(0,F.jsx)(ne,{className:`h-3 w-3 text-emerald-400`}),`AST: Valid (`,te.runtime,`)`]}):(0,F.jsxs)(`span`,{className:`text-rose-400 flex items-center gap-1 truncate max-w-[240px] font-semibold`,title:te.error||`Syntax Error`,children:[(0,F.jsx)(Te,{className:`h-3 w-3 text-rose-400 shrink-0`}),`AST Error: `,te.error]}),(0,F.jsx)(`span`,{children:`•`}),(0,F.jsxs)(`span`,{className:`text-zinc-300 flex items-center gap-1 font-mono`,children:[(0,F.jsx)(M,{className:`h-3 w-3 text-amber-400`}),`Quota: 1M Fuel`]}),(0,F.jsx)(`span`,{children:`•`}),(0,F.jsx)(`span`,{className:`text-zinc-400`,children:`WASI Sandbox`})]})]})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between pt-1`,children:[(0,F.jsxs)(`div`,{className:`text-xs text-zinc-400 flex items-center gap-1.5 flex-wrap`,children:[(0,F.jsx)(`span`,{children:`Target:`}),(0,F.jsx)(`span`,{className:`font-semibold font-mono text-[11px] ${d?`text-white`:`text-red-400 line-through`}`,children:a||`none`}),!d&&(0,F.jsx)(If,{variant:`outline`,className:`text-[9px] py-0 px-1 font-mono border-red-500/40 text-red-400 bg-red-500/10`,children:`Unavailable on Target`}),p?.providerNode&&(0,F.jsx)(If,{variant:`outline`,className:`text-[9px] py-0 px-1 font-mono border-cyan-500/40 text-cyan-300`,children:p.providerNode}),p?.tier&&(0,F.jsxs)(If,{variant:`outline`,className:`text-[9px] py-0 px-1 font-mono border-white/15 text-zinc-300`,children:[`Tier `,p.tier]})]}),(0,F.jsx)(Rf,{onClick:y,disabled:l||!a||u.length===0||!d||e===`logic`&&!te.valid,className:`h-9 px-6 font-bold tracking-wide shadow-md transition-all active:scale-[0.98] ${u.length===0||!d||e===`logic`&&!te.valid?`opacity-60 cursor-not-allowed bg-zinc-800 hover:bg-zinc-800 text-zinc-400 border border-zinc-700`:``}`,children:l?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(de,{className:`mr-2 h-4 w-4 animate-spin`}),e===`logic`?`Injecting...`:`Calling...`]}):u.length===0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(be,{className:`mr-2 h-4 w-4 text-rose-400`}),`Target Offline`]}):d?e===`logic`&&!te.valid?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Te,{className:`mr-2 h-4 w-4 text-rose-400`}),`Syntax Error`]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(me,{className:`mr-2 h-4 w-4 fill-current`}),e===`logic`?`Execute Logic`:`Execute Tool`]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(be,{className:`mr-2 h-4 w-4 text-red-400`}),`Blocked on Target`]})})]})]})]})}typeof window<`u`&&window.document&&window.document.createElement;function Kf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function qf(e,t=[]){let n=[];function r(t,r){let i=b.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=b.useMemo(()=>o,Object.values(o));return(0,F.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=b.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>b.createContext(e));return function(n){let r=n?.[e]||t;return b.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Jf(i,...t)]}function Jf(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Yf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Xf(...e){return t=>{let n=!1,r=e.map(e=>{let r=Yf(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Yf(e[t],null)}}}}function Zf(...e){return b.useCallback(Xf(...e),e)}function Qf(e){let t=b.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];ap(r)&&typeof lp==`function`&&(r=lp(r._payload)),b.Children.forEach(r,e=>{if(rp(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;ap(n)&&typeof lp==`function`&&(n=lp(n._payload)),a=ep(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=b.cloneElement(a,void 0,s):!o&&b.Children.count(r)===1&&b.isValidElement(r)&&(a=r);let c=a?np(a):void 0,l=Zf(n,c);if(!a){if(r||r===0)throw Error(o?cp(e):sp(e));return r}let u=tp(i,a.props??{});return a.type!==b.Fragment&&(u.ref=n?l:c),b.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var $f=Symbol.for(`radix.slottable`),ep=(e,t)=>{if(`child`in e.props){let t=e.props.child;return b.isValidElement(t)?b.cloneElement(t,void 0,e.props.children(t.props.children)):null}return b.isValidElement(t)?t:null};function tp(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function np(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function rp(e){return b.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===$f}var ip=Symbol.for(`react.lazy`);function ap(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ip&&`_payload`in e&&op(e._payload)}function op(e){return typeof e==`object`&&!!e&&`then`in e}var sp=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,cp=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,lp=b.use;function up(e){let t=e+`CollectionProvider`,[n,r]=qf(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=b.useRef(null),a=b.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Qf(s),l=b.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,F.jsx)(c,{ref:Zf(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Qf(u),p=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=b.useRef(null),s=Zf(t,o),c=a(u,n);return b.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var dp=globalThis?.document?b.useLayoutEffect:()=>{},fp=b.useId||(()=>void 0),pp=0;function mp(e){let[t,n]=b.useState(fp());return dp(()=>{e||n(e=>e??String(pp++))},[e]),e||(t?`radix-${t}`:``)}_();var hp=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Qf(`Primitive.${t}`),r=b.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function gp(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>((...e)=>t.current?.(...e)),[])}var _p=b.useInsertionEffect||dp;function vp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=yp({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=b.useRef(e!==void 0);b.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,b.useCallback(t=>{if(s){let n=bp(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function yp({defaultProp:e,onChange:t}){let[n,r]=b.useState(e),i=b.useRef(n),a=b.useRef(t);return _p(()=>{a.current=t},[t]),b.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function bp(e){return typeof e==`function`}var xp=b.createContext(void 0);function Sp(e){let t=b.useContext(xp);return e||t||`ltr`}var Cp=`rovingFocusGroup.onEntryFocus`,wp={bubbles:!1,cancelable:!0},Tp=`RovingFocusGroup`,[Ep,Dp,Op]=up(Tp),[kp,Ap]=qf(Tp,[Op]),[jp,Mp]=kp(Tp),Np=b.forwardRef((e,t)=>(0,F.jsx)(Ep.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(Ep.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(Pp,{...e,ref:t})})}));Np.displayName=Tp;var Pp=b.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=b.useRef(null),p=Zf(t,f),m=Sp(a),[h,g]=vp({prop:o,defaultProp:s??null,onChange:c,caller:Tp}),[_,v]=b.useState(!1),y=gp(l),x=Dp(n),S=b.useRef(!1),[C,w]=b.useState(0);return b.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Cp,y),()=>e.removeEventListener(Cp,y)},[y]),(0,F.jsx)(jp,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:b.useCallback(e=>g(e),[g]),onItemShiftTab:b.useCallback(()=>v(!0),[]),onFocusableItemAdd:b.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:b.useCallback(()=>w(e=>e-1),[]),children:(0,F.jsx)(hp.div,{tabIndex:_||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:Kf(e.onMouseDown,()=>{S.current=!0}),onFocus:Kf(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Cp,wp);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);Bp([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:Kf(e.onBlur,()=>v(!1))})})}),Fp=`RovingFocusGroupItem`,Ip=b.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=mp(),l=a||c,u=Mp(Fp,n),d=u.currentTabStopId===l,f=Dp(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return b.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,F.jsx)(Ep.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)(hp.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Kf(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:Kf(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Kf(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=zp(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Vp(n,r+1):n.slice(r+1)}setTimeout(()=>Bp(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});Ip.displayName=Fp;var Lp={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Rp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function zp(e,t,n){let r=Rp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Lp[r]}function Bp(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Vp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Hp=Np,Up=Ip;function Wp(e,t){return b.useReducer((e,n)=>t[e][n]??e,e)}var Gp=e=>{let{present:t,children:n}=e,r=Kp(t),i=typeof n==`function`?n({present:r.isPresent}):b.Children.only(n),a=Jp(r.ref,Xp(i));return typeof n==`function`||r.isPresent?b.cloneElement(i,{ref:a}):null};Gp.displayName=`Presence`;function Kp(e){let[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),a=b.useRef(`none`),[o,s]=Wp(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return b.useEffect(()=>{let e=Yp(r.current);a.current=o===`mounted`?e:`none`},[o]),dp(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Yp(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),dp(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Yp(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Yp(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:b.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function qp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Jp(...e){let t=b.useRef(e);return t.current=e,b.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=qp(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():qp(n[e],null)}}},[])}function Yp(e){return e?.animationName||`none`}function Xp(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zp=`Tabs`,[Qp,$p]=qf(Zp,[Ap]),em=Ap(),[tm,nm]=Qp(Zp),rm=b.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Sp(s),[d,f]=vp({prop:r,onChange:i,defaultProp:a??``,caller:Zp});return(0,F.jsx)(tm,{scope:n,baseId:mp(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,F.jsx)(hp.div,{dir:u,"data-orientation":o,...l,ref:t})})});rm.displayName=Zp;var im=`TabsList`,am=b.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=nm(im,n),o=em(n);return(0,F.jsx)(Hp,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,F.jsx)(hp.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});am.displayName=im;var om=`TabsTrigger`,sm=b.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=nm(om,n),s=em(n),c=um(o.baseId,r),l=dm(o.baseId,r),u=r===o.value;return(0,F.jsx)(Up,{asChild:!0,...s,focusable:!i,active:u,children:(0,F.jsx)(hp.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:Kf(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:Kf(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:Kf(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});sm.displayName=om;var cm=`TabsContent`,lm=b.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=nm(cm,n),c=um(s.baseId,r),l=dm(s.baseId,r),u=r===s.value,d=b.useRef(u);return b.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,F.jsx)(Gp,{present:i||u,children:({present:n})=>(0,F.jsx)(hp.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})});lm.displayName=cm;function um(e,t){return`${e}-trigger-${t}`}function dm(e,t){return`${e}-content-${t}`}var fm=rm,pm=am,mm=sm,hm=lm,gm=fm,_m=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(pm,{ref:n,className:Pf(`inline-flex h-9 items-center justify-center rounded-lg bg-secondary/30 p-1 text-muted-foreground border border-border/40`,e),...t}));_m.displayName=pm.displayName;var vm=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(mm,{ref:n,className:Pf(`inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/10 data-[state=active]:text-primary data-[state=active]:border-primary/20 border border-transparent data-[state=active]:shadow-sm duration-200`,e),...t}));vm.displayName=mm.displayName;var ym=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(hm,{ref:n,className:Pf(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));ym.displayName=hm.displayName;function bm({timeline:e,targetType:t,meta:n}){return(0,F.jsx)(ym,{value:`debug`,className:`m-0 space-y-3 pb-5`,children:(0,F.jsxs)(`div`,{className:`space-y-3 pt-1 text-xs`,children:[(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`span`,{className:`font-semibold text-white text-[11px] flex items-center gap-1.5`,children:[(0,F.jsx)(ee,{className:`h-3.5 w-3.5 text-amber-400`}),`Pipeline Execution Phase Trace`]}),(0,F.jsxs)(`span`,{className:`font-mono text-[10px] text-zinc-400`,children:[`Target: `,t.toUpperCase()]})]}),(0,F.jsx)(`div`,{className:`border border-border/80 rounded-md overflow-hidden`,children:(0,F.jsxs)(`table`,{className:`w-full text-left font-mono text-[11px]`,children:[(0,F.jsx)(`thead`,{className:`bg-secondary/40 text-zinc-400 border-b border-border/80 text-[10px] uppercase`,children:(0,F.jsxs)(`tr`,{children:[(0,F.jsx)(`th`,{className:`px-2.5 py-1.5`,children:`Phase`}),(0,F.jsx)(`th`,{className:`px-2.5 py-1.5`,children:`Status`}),(0,F.jsx)(`th`,{className:`px-2.5 py-1.5`,children:`Latency`}),(0,F.jsx)(`th`,{className:`px-2.5 py-1.5`,children:`Detail`})]})}),(0,F.jsx)(`tbody`,{className:`divide-y divide-border/50 bg-background/40`,children:e.map(e=>(0,F.jsxs)(`tr`,{className:`hover:bg-white/5`,children:[(0,F.jsx)(`td`,{className:`px-2.5 py-1.5 font-semibold text-white`,children:e.label}),(0,F.jsx)(`td`,{className:`px-2.5 py-1.5`,children:(0,F.jsx)(`span`,{className:`inline-block px-1.5 py-0.2 rounded text-[10px] font-semibold ${e.status===`success`?`bg-emerald-500/15 text-emerald-400 border border-emerald-500/30`:e.status===`running`?`bg-amber-500/15 text-amber-400 border border-amber-500/30 animate-pulse`:e.status===`failed`?`bg-rose-500/15 text-rose-400 border border-rose-500/30`:`bg-zinc-800 text-zinc-500`}`,children:e.status.toUpperCase()})}),(0,F.jsx)(`td`,{className:`px-2.5 py-1.5 text-zinc-300`,children:e.durationMs===void 0?`—`:`${e.durationMs}ms`}),(0,F.jsx)(`td`,{className:`px-2.5 py-1.5 text-zinc-400 truncate max-w-[200px]`,children:e.detail})]},e.phase))})]})})]}),(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border space-y-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`span`,{className:`font-semibold text-white text-[11px] flex items-center gap-1.5`,children:[(0,F.jsx)(xe,{className:`h-3.5 w-3.5 text-emerald-400`}),`Layer 4 Egress PII Shield Audit`]}),(0,F.jsx)(If,{variant:n?.shieldBlocked?`destructive`:`success`,className:`font-mono text-[10px]`,children:n?.shieldBlocked?`INTERCEPTED`:`PASSED`})]}),(0,F.jsx)(`p`,{className:`text-[11px] text-zinc-400 leading-relaxed`,children:n?.shieldBlocked?`Active defense triggered: Attempt to exfiltrate raw unaggregated rows intercepted by Zero-Trust Egress Shield. Data transfer was truncated before exiting origin host.`:`Zero-Trust egress verification confirmed. Logic module produced only compliant aggregates with zero PII side-channel exposure.`})]}),(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border flex items-center justify-between text-[11px] font-mono`,children:[(0,F.jsxs)(`span`,{className:`text-zinc-400`,children:[`Sandbox:`,` `,(0,F.jsx)(`strong`,{className:`text-primary`,children:`V8 Isolate / wasi_v1`})]}),(0,F.jsxs)(`span`,{className:`text-zinc-400`,children:[`PQC Session:`,` `,(0,F.jsx)(`strong`,{className:`text-emerald-400`,children:`ML-KEM-768`})]}),(0,F.jsxs)(`span`,{className:`text-zinc-400`,children:[`Protocol: `,(0,F.jsx)(`strong`,{className:`text-cyan-300`,children:`LIOP v1.0`})]})]})]})})}function xm({lang:e,toolName:t,logicCode:n,targetType:r,targetEndpoint:i}){let a=t||`Analyze_Synthetic_Bank_Transactions`,o=n.trim();switch(e){case`typescript`:return r===`grpc`?`import { LiopClient } from "@nekzus/liop";
|
|
11
|
+
|
|
12
|
+
async function main() {
|
|
13
|
+
// Connect to sovereign origin node via gRPC
|
|
14
|
+
const client = new LiopClient({
|
|
15
|
+
target: "${i||`127.0.0.1:15021`}",
|
|
16
|
+
timeoutMs: 10000,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
await client.connect();
|
|
20
|
+
|
|
21
|
+
// Inject logic micro-module to process in-situ on origin node
|
|
22
|
+
const response = await client.injectLogic({
|
|
23
|
+
tool: "${a}",
|
|
24
|
+
logic: \`${o}\`,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
console.log("Sovereign Execution Result:", response.result);
|
|
28
|
+
console.log("ZK-Receipt HMAC:", response.meta?.zkHash);
|
|
29
|
+
console.log("Tokens Consumed:", response.meta?.telemetry?.tokens?.totalTokens);
|
|
30
|
+
|
|
31
|
+
await client.close();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
main().catch(console.error);`:`import { LiopClient } from "@nekzus/liop";
|
|
35
|
+
|
|
36
|
+
async function main() {
|
|
37
|
+
// Connect to LIOP Gateway via HTTP / SSE
|
|
38
|
+
const client = new LiopClient({
|
|
39
|
+
httpUrl: "${i||`http://127.0.0.1:15014/mcp`}",
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
await client.connect();
|
|
43
|
+
|
|
44
|
+
// In-situ confidential logic execution
|
|
45
|
+
const response = await client.injectLogic({
|
|
46
|
+
tool: "${a}",
|
|
47
|
+
logic: \`${o}\`,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
console.log("Result:", response.result);
|
|
51
|
+
console.log("ZK-Receipt Proof:", response.meta?.zkHash);
|
|
52
|
+
|
|
53
|
+
await client.close();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
main().catch(console.error);`;case`python`:return`import json
|
|
57
|
+
import requests
|
|
58
|
+
|
|
59
|
+
# LIOP In-situ Logic Execution via Gateway
|
|
60
|
+
url = "http://127.0.0.1:16001/api/execute"
|
|
61
|
+
payload = {
|
|
62
|
+
"tool": "${a}",
|
|
63
|
+
"logic": """${o}"""
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
headers = {"Content-Type": "application/json"}
|
|
67
|
+
|
|
68
|
+
# SSE stream receiving confidential execution phases and output
|
|
69
|
+
response = requests.post(url, json=payload, headers=headers, stream=True)
|
|
70
|
+
|
|
71
|
+
for line in response.iter_lines():
|
|
72
|
+
if line:
|
|
73
|
+
decoded = line.decode("utf-8")
|
|
74
|
+
if decoded.startswith("data: "):
|
|
75
|
+
event = json.loads(decoded[6:])
|
|
76
|
+
if event.get("type") == "result":
|
|
77
|
+
print("Result:", json.dumps(event.get("payload"), indent=2))
|
|
78
|
+
print("ZK-Receipt HMAC:", event.get("meta", {}).get("zkHash"))
|
|
79
|
+
elif event.get("type") == "error":
|
|
80
|
+
print("Execution Error:", event.get("payload"))`;case`curl`:return`# Run in-situ logic execution against LIOP Studio Gateway
|
|
81
|
+
curl -X POST http://127.0.0.1:16001/api/execute \\
|
|
82
|
+
-H "Content-Type: application/json" \\
|
|
83
|
+
-d '${JSON.stringify({tool:a,logic:o},null,2).replace(/'/g,`'\\''`)}'`;case`grpc`:{let e=``;try{e=btoa(unescape(encodeURIComponent(o)))}catch{e=`<base64_payload>`}return`// gRPC Payload for liop.protocol.v1.MeshExecutionService/ExecuteLogic
|
|
84
|
+
// Target: ${i||`127.0.0.1:15021`}
|
|
85
|
+
{
|
|
86
|
+
"header": {
|
|
87
|
+
"protocol_version": "2026-07-28",
|
|
88
|
+
"clearance_tier": 1,
|
|
89
|
+
"pqc_suite": "ML-KEM-768",
|
|
90
|
+
"sealing_cipher": "AES-256-GCM"
|
|
91
|
+
},
|
|
92
|
+
"tool_name": "${a}",
|
|
93
|
+
"logic_envelope": {
|
|
94
|
+
"runtime": "wasi_v1",
|
|
95
|
+
"script_payload": "${e}"
|
|
96
|
+
}
|
|
97
|
+
}`}}}function Sm({toolName:e,code:t,targetType:n,grpcTarget:r,httpUrl:i,stdioCmd:a}){let[o,s]=(0,b.useState)(`typescript`),[c,l]=(0,b.useState)(!1),u=n===`grpc`?r:n===`http`?i:a,d=xm({lang:o,toolName:e,logicCode:t,targetType:n,targetEndpoint:u});return(0,F.jsx)(ym,{value:`export`,className:`m-0 space-y-3 pb-5`,children:(0,F.jsxs)(`div`,{className:`space-y-3 pt-1 text-xs`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5 p-0.5 bg-surface1 border border-border rounded-lg`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:()=>s(`typescript`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all cursor-pointer ${o===`typescript`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:`TypeScript (SDK)`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>s(`python`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all cursor-pointer ${o===`python`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:`Python`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>s(`curl`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all cursor-pointer ${o===`curl`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:`cURL / CLI`}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>s(`grpc`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all cursor-pointer ${o===`grpc`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:`gRPC JSON`})]}),(0,F.jsx)(`button`,{type:`button`,onClick:async()=>{await ke(d)&&(l(!0),setTimeout(()=>l(!1),2e3))},className:`text-xs flex items-center gap-1.5 px-3 py-1 rounded-md font-medium border transition-all cursor-pointer ${c?`bg-emerald-500/20 text-emerald-400 border-emerald-500/40`:`bg-surface1 text-zinc-200 border-border hover:bg-white/10 hover:text-white`}`,children:c?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ne,{className:`h-3.5 w-3.5 text-emerald-400`}),(0,F.jsx)(`span`,{children:`Copied`})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(k,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`Copy Code`})]})})]}),(0,F.jsx)(`div`,{className:`rounded-lg bg-editor border border-border p-3.5 font-mono text-xs text-[#7dd3fc] overflow-auto max-h-[250px] leading-relaxed select-all shadow-inner`,children:(0,F.jsx)(`pre`,{children:d})}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[11px] text-zinc-400 font-mono`,children:[(0,F.jsxs)(`span`,{children:[`Target Tool:`,` `,(0,F.jsx)(`strong`,{className:`text-white`,children:e||`Analyze_Synthetic_Bank_Transactions`})]}),(0,F.jsxs)(`span`,{children:[`Endpoint: `,u||`127.0.0.1:15021`]})]})]})})}var Cm=ld(`relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7`,{variants:{variant:{default:`bg-background text-foreground border-border`,destructive:`border-destructive/50 bg-destructive/10 text-destructive dark:border-destructive [&>svg]:text-destructive`,success:`border-success/50 bg-success/10 text-success dark:border-success [&>svg]:text-success`,warning:`border-warning/50 bg-warning/10 text-warning dark:border-warning [&>svg]:text-warning`}},defaultVariants:{variant:`default`}}),wm=b.forwardRef(({className:e,variant:t,...n},r)=>(0,F.jsx)(`div`,{ref:r,role:`alert`,className:Pf(Cm({variant:t}),e),...n}));wm.displayName=`Alert`;var Tm=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`h5`,{ref:n,className:Pf(`mb-1 font-medium leading-none tracking-tight text-white`,e),...t}));Tm.displayName=`AlertTitle`;var Em=b.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`div`,{ref:n,className:Pf(`text-xs [&_p]:leading-relaxed text-muted-foreground`,e),...t}));Em.displayName=`AlertDescription`;function Dm({result:e,meta:t}){let[n,r]=(0,b.useState)(`visual`),[i,a]=(0,b.useState)(!1),o=async()=>{await ke(JSON.stringify(e,null,2))&&(a(!0),setTimeout(()=>a(!1),1500))},s=(0,b.useMemo)(()=>e.totalBalance!==void 0||e.totalAccounts!==void 0?`banking`:e.totalPatients!==void 0||e.diagnosesDistribution!==void 0?`healthcare`:e.ticksProcessed!==void 0||e.vwap!==void 0?`hft`:e.totalSamples!==void 0||e.avgTemperature!==void 0?`iot`:e.layerAudit!==void 0||e.protocol!==void 0?`perimeter`:`generic`,[e]),c=e=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`,maximumFractionDigits:0}).format(e);return(0,F.jsxs)(`div`,{className:`space-y-4`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-border/60 pb-3`,children:[(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-xs font-medium`,children:[(0,F.jsx)(xe,{className:`h-3.5 w-3.5`}),(0,F.jsxs)(`span`,{children:[s===`banking`&&`Core Banking Enclave • Verified Aggregation`,s===`healthcare`&&`Healthcare EHR Enclave • HIPAA Protected`,s===`hft`&&`HFT Market Oracle • Ultra Low Latency`,s===`iot`&&`Industrial Edge Telemetry • Hostile WAN Protected`,s===`perimeter`&&`Border LIO Gateway • Zero-Trust Perimeter`,s===`generic`&&`Origin Compute • Zero-Trust Execution`]})]})}),(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center bg-surface1 p-0.5 rounded-lg border border-white/10 text-[11px]`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>r(`visual`),className:`px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 ${n===`visual`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(te,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Visual Analytics`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>r(`json`),className:`px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 ${n===`json`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(le,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Raw JSON`})]})]}),(0,F.jsx)(`button`,{type:`button`,onClick:o,className:`text-[11px] flex items-center gap-1.5 transition-colors px-2.5 py-1 rounded-md font-medium border cursor-pointer ${i?`text-emerald-400 bg-emerald-500/15 border-emerald-500/30`:`text-zinc-300 hover:text-white bg-surface1 hover:bg-white/5 border-white/10`}`,title:`Copy JSON Payload`,children:i?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ne,{className:`h-3 w-3 text-emerald-400`}),(0,F.jsx)(`span`,{children:`Copied`})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(k,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Copy`})]})})]})]}),n===`visual`?(0,F.jsxs)(`div`,{className:`space-y-4`,children:[s===`banking`&&(0,F.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-3 gap-3`,children:[(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-emerald-500/20 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Total Accounts In-Situ`}),(0,F.jsx)(se,{className:`h-3.5 w-3.5 text-emerald-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-white mt-1 font-mono`,children:(e.totalAccounts??0).toLocaleString()}),(0,F.jsxs)(`div`,{className:`text-[10px] text-emerald-400/80 mt-1 flex items-center gap-1`,children:[(0,F.jsx)(re,{className:`h-2.5 w-2.5`}),(0,F.jsx)(`span`,{children:`100% Retained at origin`})]})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-emerald-500/20 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Aggregated Balance`}),(0,F.jsx)(we,{className:`h-3.5 w-3.5 text-emerald-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-emerald-400 mt-1 font-mono`,children:c(e.totalBalance??0)}),(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 mt-1`,children:`Computed inside V8 Sandbox`})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-white/10 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Mean Account Balance`}),(0,F.jsx)(D,{className:`h-3.5 w-3.5 text-cyan-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-white mt-1 font-mono`,children:c(e.averageBalance??0)}),(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 mt-1`,children:`Statistical variance preserved`})]})]}),s===`healthcare`&&(0,F.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-3 gap-3`,children:[(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-cyan-500/20 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Audited Patients`}),(0,F.jsx)(se,{className:`h-3.5 w-3.5 text-cyan-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-white mt-1 font-mono`,children:(e.totalPatients??0).toLocaleString()}),(0,F.jsxs)(`div`,{className:`text-[10px] text-cyan-400/80 mt-1 flex items-center gap-1`,children:[(0,F.jsx)(fe,{className:`h-2.5 w-2.5`}),(0,F.jsx)(`span`,{children:`Zero HIPAA records leaked`})]})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-cyan-500/20 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Mean Population Age`}),(0,F.jsx)(D,{className:`h-3.5 w-3.5 text-cyan-400`})]}),(0,F.jsxs)(`div`,{className:`text-xl font-bold text-cyan-300 mt-1 font-mono`,children:[e.averageAge??0,` yrs`]}),(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 mt-1`,children:`Aggregated demographic mean`})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-white/10 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Diagnostic Classes`}),(0,F.jsx)(P,{className:`h-3.5 w-3.5 text-purple-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-white mt-1 font-mono`,children:Object.keys(e.diagnosesDistribution||{}).length}),(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 mt-1`,children:`Differential privacy preserved`})]})]}),s===`hft`&&(0,F.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-3 gap-3`,children:[(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-purple-500/20 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Orderbook Ticks`}),(0,F.jsx)(Oe,{className:`h-3.5 w-3.5 text-purple-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-white mt-1 font-mono`,children:(e.ticksProcessed??0).toLocaleString()}),(0,F.jsx)(`div`,{className:`text-[10px] text-purple-400/80 mt-1`,children:`Sub-millisecond processing`})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-purple-500/20 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Volume-Weighted Price (VWAP)`}),(0,F.jsx)(we,{className:`h-3.5 w-3.5 text-emerald-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-emerald-400 mt-1 font-mono`,children:e.vwap?`$${e.vwap.toFixed(4)}`:`Computed`}),(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 mt-1`,children:`Real-time orderbook weighting`})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-white/10 shadow-sm`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] text-zinc-400 font-medium flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Avg Spread (bps)`}),(0,F.jsx)(D,{className:`h-3.5 w-3.5 text-amber-400`})]}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-white mt-1 font-mono`,children:e.avgSpreadBps?`${Number(e.avgSpreadBps).toFixed(1)} bps`:`0 bps`}),(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 mt-1`,children:`Microstructure liquidity metric`})]})]}),s===`iot`&&(0,F.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-4 gap-3`,children:[(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-white/10`,children:[(0,F.jsx)(`div`,{className:`text-[11px] text-zinc-400 font-medium`,children:`Sensor Samples`}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-white mt-1 font-mono`,children:(e.totalSamples??0).toLocaleString()})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-cyan-500/20`,children:[(0,F.jsx)(`div`,{className:`text-[11px] text-zinc-400 font-medium`,children:`Avg Temperature`}),(0,F.jsxs)(`div`,{className:`text-xl font-bold text-cyan-300 mt-1 font-mono`,children:[e.avgTemperature??0,`°C`]})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-amber-500/20`,children:[(0,F.jsx)(`div`,{className:`text-[11px] text-zinc-400 font-medium`,children:`Max Temp Peak`}),(0,F.jsxs)(`div`,{className:`text-xl font-bold text-amber-400 mt-1 font-mono`,children:[e.maxTemperature??0,`°C`]})]}),(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/80 border border-rose-500/20`,children:[(0,F.jsx)(`div`,{className:`text-[11px] text-zinc-400 font-medium`,children:`Critical Alerts`}),(0,F.jsx)(`div`,{className:`text-xl font-bold text-rose-400 mt-1 font-mono`,children:e.criticalCount??0})]})]}),s===`perimeter`&&e.layerAudit&&Array.isArray(e.layerAudit)&&(0,F.jsxs)(`div`,{className:`p-4 rounded-lg bg-surface1/60 border border-emerald-500/20 space-y-2`,children:[(0,F.jsxs)(`div`,{className:`text-xs font-semibold text-emerald-400 flex items-center gap-1.5`,children:[(0,F.jsx)(xe,{className:`h-4 w-4`}),(0,F.jsx)(`span`,{children:`Zero-Trust 6-Layer Security Audit Confirmed`})]}),(0,F.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-2 pt-1`,children:e.layerAudit.map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-mono text-zinc-300 bg-surface1 px-2.5 py-1.5 rounded border border-white/5`,children:[(0,F.jsx)(re,{className:`h-3.5 w-3.5 text-emerald-400 shrink-0`}),(0,F.jsx)(`span`,{children:e})]},e))})]}),(e.distribution||e.diagnosesDistribution||e.statusDistribution)&&(0,F.jsxs)(`div`,{className:`p-3.5 rounded-lg bg-surface1/60 border border-white/10 space-y-3`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,F.jsx)(`span`,{className:`font-semibold text-zinc-200`,children:`Distribution Breakdown (In-Situ Grouping)`}),(0,F.jsx)(`span`,{className:`text-[10px] font-mono text-zinc-400`,children:`Aggregated at Origin`})]}),(0,F.jsx)(`div`,{className:`space-y-2`,children:Object.entries(e.distribution||e.diagnosesDistribution||e.statusDistribution||{}).map(([t,n])=>{let r=Number(n)||0,i=e.totalAccounts||e.totalPatients||e.totalSamples||1,a=Math.min(100,Math.round(r/i*100));return(0,F.jsxs)(`div`,{className:`space-y-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[11px] font-mono`,children:[(0,F.jsx)(`span`,{className:`text-zinc-300`,children:t}),(0,F.jsxs)(`span`,{className:`text-zinc-400`,children:[r.toLocaleString(),` (`,a,`%)`]})]}),(0,F.jsx)(`div`,{className:`h-1.5 w-full bg-white/5 rounded-full overflow-hidden`,children:(0,F.jsx)(`div`,{className:`h-full bg-emerald-500 rounded-full transition-all duration-500`,style:{width:`${a}%`}})})]},t)})})]}),(0,F.jsxs)(`div`,{className:`p-4 rounded-lg bg-gradient-to-br from-emerald-950/20 via-surface1/80 to-surface1/40 border border-emerald-500/30 space-y-3`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(Se,{className:`h-4 w-4 text-emerald-400`}),(0,F.jsx)(`h4`,{className:`text-xs font-bold text-white uppercase tracking-wider`,children:`Protocol Value Differential: LIOP vs Traditional MCP`})]}),(0,F.jsx)(`span`,{className:`text-[10px] font-mono px-2 py-0.5 rounded bg-emerald-500/20 text-emerald-300 border border-emerald-500/30`,children:`SOVEREIGNTY CERTIFIED`})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-3 gap-3 pt-1 text-xs`,children:[(0,F.jsxs)(`div`,{className:`space-y-1 bg-surface1/60 p-2.5 rounded border border-white/5`,children:[(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 font-medium`,children:`LLM Context Tokens`}),(0,F.jsxs)(`div`,{className:`flex items-baseline gap-1.5`,children:[(0,F.jsxs)(`span`,{className:`text-sm font-bold text-emerald-400 font-mono`,children:[`~`,t?.telemetry?.tokens?.totalTokens??197,` tok`]}),(0,F.jsx)(`span`,{className:`text-[10px] text-zinc-500 line-through font-mono`,children:`~48,000 tok`})]}),(0,F.jsxs)(`div`,{className:`text-[10px] text-emerald-400/90 flex items-center gap-0.5`,children:[(0,F.jsx)(O,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`99.6% context reduction`})]})]}),(0,F.jsxs)(`div`,{className:`space-y-1 bg-surface1/60 p-2.5 rounded border border-white/5`,children:[(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 font-medium`,children:`Wire Egress Payload`}),(0,F.jsxs)(`div`,{className:`flex items-baseline gap-1.5`,children:[(0,F.jsx)(`span`,{className:`text-sm font-bold text-emerald-400 font-mono`,children:t?.telemetry?.bandwidth?.payloadBytes?`${(t.telemetry.bandwidth.payloadBytes/1024).toFixed(2)} KB`:`0.72 KB`}),(0,F.jsx)(`span`,{className:`text-[10px] text-zinc-500 line-through font-mono`,children:`195.2 KB`})]}),(0,F.jsxs)(`div`,{className:`text-[10px] text-emerald-400/90 flex items-center gap-0.5`,children:[(0,F.jsx)(O,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`99.6% network reduction`})]})]}),(0,F.jsxs)(`div`,{className:`space-y-1 bg-surface1/60 p-2.5 rounded border border-white/5`,children:[(0,F.jsx)(`div`,{className:`text-[10px] text-zinc-400 font-medium`,children:`PII Exposure Boundary`}),(0,F.jsx)(`div`,{className:`flex items-baseline gap-1.5`,children:(0,F.jsx)(`span`,{className:`text-sm font-bold text-emerald-400 font-mono`,children:`0 Leaked Records`})}),(0,F.jsxs)(`div`,{className:`text-[10px] text-emerald-400/90 flex items-center gap-0.5`,children:[(0,F.jsx)(re,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Enclave & PQC Kyber-768 sealed`})]})]})]})]})]}):(0,F.jsx)(`div`,{className:`rounded-lg bg-editor border border-border p-3.5 font-mono text-[11px] text-[#86efac] overflow-x-auto leading-relaxed shadow-inner`,children:(0,F.jsx)(`pre`,{children:JSON.stringify(e,null,2)})})]})}function Om({result:e,errorAlert:t,isRunning:n,meta:r}){return(0,F.jsxs)(ym,{value:`output`,className:`m-0 space-y-3 pb-5`,children:[t&&(0,F.jsx)(`div`,{className:`mb-3 pt-1`,children:(0,F.jsxs)(wm,{variant:`destructive`,className:`border-destructive/40 bg-destructive/10`,children:[(0,F.jsx)(Tm,{className:`text-xs font-semibold`,children:t.title}),(0,F.jsx)(Em,{className:`text-xs leading-relaxed mt-1`,children:t.desc})]})}),e?(0,F.jsx)(Dm,{result:e,meta:r}):!t&&!n?(0,F.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-14 text-zinc-400 text-center space-y-2`,children:[(0,F.jsx)(Ce,{className:`h-6 w-6 text-zinc-500`}),(0,F.jsx)(`p`,{className:`text-xs font-medium text-zinc-200`,children:`Awaiting Execution`}),(0,F.jsxs)(`p`,{className:`text-[11px] text-zinc-400 max-w-[240px]`,children:[`Select a template, inspect the runtime schema with`,` `,(0,F.jsx)(`strong`,{children:`Env Schema`}),`, or click `,(0,F.jsx)(`strong`,{children:`Execute Logic`}),`.`]})]}):n?(0,F.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-14 text-zinc-400 text-center space-y-2.5`,children:[(0,F.jsx)(de,{className:`h-6 w-6 animate-spin text-primary`}),(0,F.jsx)(`p`,{className:`text-xs text-zinc-300`,children:`Injecting logic and enforcing Zero-Trust policies...`})]}):null]})}function km({meta:e}){let[t,n]=(0,b.useState)(!1),r=async()=>{e?.zkHash&&await ke(e.zkHash)&&(n(!0),setTimeout(()=>n(!1),1500))};if(!e?.telemetry)return(0,F.jsx)(ym,{value:`telemetry`,className:`m-0 space-y-3 pb-5`,children:(0,F.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-14 text-zinc-400 text-center space-y-2`,children:[(0,F.jsx)(M,{className:`h-6 w-6 text-zinc-500`}),(0,F.jsx)(`p`,{className:`text-xs font-medium text-zinc-200`,children:`No Live Telemetry Recorded`}),(0,F.jsx)(`p`,{className:`text-[11px] text-zinc-400 max-w-[240px]`,children:`Execute a capability to measure live network RTT, BPE tokens, wire egress, and WASI instruction fuel.`})]})});let{tokens:i,fuel:a,bandwidth:o,phases:s}=e.telemetry;return(0,F.jsx)(ym,{value:`telemetry`,className:`m-0 space-y-3 pb-5`,children:(0,F.jsxs)(`div`,{className:`space-y-3 pt-1 text-xs`,children:[i&&(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(`div`,{className:`p-1.5 rounded-md bg-secondary text-primary`,children:(0,F.jsx)(Ce,{className:`h-4 w-4`})}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`font-semibold text-white text-[11px]`,children:`Context Token Telemetry (BPE)`}),(0,F.jsxs)(`p`,{className:`text-[10px] text-zinc-400`,children:[`Tokenizer: `,i.estimatorName||`o200k_base`]})]})]}),i.savingsPercent!==void 0&&i.traditionalContextTokens!==void 0&&i.traditionalContextTokens>0&&(0,F.jsxs)(If,{className:`bg-emerald-500 text-black font-mono font-bold text-xs px-2 py-0.5 shadow-sm`,children:[`-`,i.savingsPercent,`% Tokens`]})]}),i.traditionalContextTokens&&i.traditionalContextTokens>0?(0,F.jsxs)(`div`,{className:`grid grid-cols-3 gap-2 pt-1 border-t border-border/60`,children:[(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border`,children:[(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`In-Situ Module`}),(0,F.jsxs)(`p`,{className:`text-sm font-bold font-mono text-emerald-400`,children:[i.totalTokens??0,` `,(0,F.jsx)(`span`,{className:`text-[10px] font-normal text-zinc-400`,children:`tok`})]}),(0,F.jsxs)(`p`,{className:`text-[9px] text-zinc-400 mt-0.5 font-mono`,children:[i.inputTokens??0,` in / `,i.outputTokens??0,` `,`out`]})]}),(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border`,children:[(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`Raw Origin Dataset`}),(0,F.jsxs)(`p`,{className:`text-sm font-bold font-mono text-zinc-300`,children:[i.traditionalContextTokens.toLocaleString(),` `,(0,F.jsx)(`span`,{className:`text-[10px] font-normal text-zinc-400`,children:`tok`})]}),(0,F.jsx)(`p`,{className:`text-[9px] text-zinc-400 mt-0.5`,children:`Unfiltered context`})]}),(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border`,children:[(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`Context Saved`}),(0,F.jsxs)(`p`,{className:`text-sm font-bold font-mono text-primary`,children:[(i.traditionalContextTokens-(i.totalTokens??0)).toLocaleString(),` `,(0,F.jsx)(`span`,{className:`text-[10px] font-normal text-zinc-400`,children:`tok`})]}),(0,F.jsx)(`p`,{className:`text-[9px] text-zinc-400 mt-0.5`,children:`Kept in origin enclave`})]})]}):(0,F.jsxs)(`div`,{className:`grid grid-cols-3 gap-2 pt-1 border-t border-border/60`,children:[(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border`,children:[(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`Input Tokens`}),(0,F.jsx)(`p`,{className:`text-sm font-bold font-mono text-cyan-300`,children:i.inputTokens??0})]}),(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border`,children:[(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`Output Tokens`}),(0,F.jsx)(`p`,{className:`text-sm font-bold font-mono text-emerald-400`,children:i.outputTokens??0})]}),(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border`,children:[(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`Total Tokens`}),(0,F.jsx)(`p`,{className:`text-sm font-bold font-mono text-white`,children:i.totalTokens??0})]})]})]}),a&&(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(M,{className:`h-4 w-4 text-primary`}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`font-semibold text-white text-[11px]`,children:`WASI Instruction Fuel (AST Deterministic)`}),(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`Execution quota enforced by origin runtime`})]})]}),(0,F.jsxs)(`div`,{className:`text-right font-mono`,children:[(0,F.jsx)(`span`,{className:`text-xs font-bold text-white`,children:(a.consumed??0).toLocaleString()}),(0,F.jsxs)(`span`,{className:`text-[10px] text-zinc-400`,children:[` `,`/ `,(a.maxLimit??1e6).toLocaleString(),` u`]})]})]}),(0,F.jsx)(`div`,{className:`w-full bg-secondary/80 rounded-full h-2 overflow-hidden border border-border`,children:(0,F.jsx)(`div`,{className:`bg-primary h-2 rounded-full transition-all duration-300`,style:{width:`${Math.min(100,Math.max(2,a.percentUsed??0))}%`}})}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[10px] text-zinc-400 font-mono`,children:[(0,F.jsxs)(`span`,{children:[`Fuel Used:`,` `,(0,F.jsxs)(`strong`,{className:`text-primary font-semibold`,children:[a.percentUsed??0,`%`]})]}),(0,F.jsx)(`span`,{children:`Quantization: 100-Fuel-Bucket`})]})]}),o&&(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(N,{className:`h-4 w-4 text-primary`}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`span`,{className:`font-semibold text-white text-[11px]`,children:`Wire Payload & Egress Traffic`}),(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`Physical socket egress measured at runtime`})]})]}),o.egressReductionPercent!==void 0&&o.rawDatasetProtectedBytes!==void 0&&o.rawDatasetProtectedBytes>0&&(0,F.jsxs)(If,{variant:`outline`,className:`border-emerald-500/40 text-emerald-400 font-mono text-[10px]`,children:[`-`,o.egressReductionPercent,`% Wire Reduction`]})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-2 text-xs`,children:[(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border font-mono`,children:[(0,F.jsx)(`span`,{className:`text-[10px] text-zinc-400 block font-sans`,children:`Wire Payload (Envelope + Output):`}),(0,F.jsx)(`strong`,{className:`text-white text-xs`,children:o.payloadBytes===void 0?`Measured in socket`:`${(o.payloadBytes/1024).toFixed(2)} KB`})]}),(0,F.jsxs)(`div`,{className:`p-2 rounded bg-secondary/40 border border-border font-mono`,children:[(0,F.jsx)(`span`,{className:`text-[10px] text-zinc-400 block font-sans`,children:`Origin Dataset Retained:`}),(0,F.jsx)(`strong`,{className:`text-emerald-400 text-xs`,children:o.rawDatasetProtectedBytes&&o.rawDatasetProtectedBytes>0?`${(o.rawDatasetProtectedBytes/1024).toFixed(1)} KB`:`Zero egress leakage`})]})]})]}),s&&(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border space-y-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsx)(`span`,{className:`font-semibold text-white text-[11px] block`,children:`Phase Latency Breakdown`}),(0,F.jsxs)(`span`,{className:`text-[10px] font-mono text-zinc-400`,children:[`Total: `,s.totalLatencyMs??e.latencyMs??0,` ms`]})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-5 gap-1.5 text-center font-mono text-[10px]`,children:[(0,F.jsxs)(`div`,{className:`p-1.5 rounded bg-secondary/50 border border-border`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400 block text-[9px] font-sans`,children:`Route`}),(0,F.jsxs)(`span`,{className:`text-zinc-200 font-semibold`,children:[s.discoveryMs??0,` ms`]})]}),(0,F.jsxs)(`div`,{className:`p-1.5 rounded bg-secondary/50 border border-border`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400 block text-[9px] font-sans`,children:`Kyber`}),(0,F.jsxs)(`span`,{className:`text-primary font-semibold`,children:[s.pqcMs??0,` ms`]})]}),(0,F.jsxs)(`div`,{className:`p-1.5 rounded bg-secondary/50 border border-border`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400 block text-[9px] font-sans`,children:`Seal`}),(0,F.jsxs)(`span`,{className:`text-zinc-200 font-semibold`,children:[s.sealingMs??0,` ms`]})]}),(0,F.jsxs)(`div`,{className:`p-1.5 rounded bg-secondary/50 border border-border`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400 block text-[9px] font-sans`,children:`Sandbox`}),(0,F.jsxs)(`span`,{className:`text-emerald-400 font-semibold`,children:[s.wasiSandboxMs??0,` ms`]})]}),(0,F.jsxs)(`div`,{className:`p-1.5 rounded bg-secondary/50 border border-border`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400 block text-[9px] font-sans`,children:`ZK-Proof`}),(0,F.jsxs)(`span`,{className:`text-primary font-semibold`,children:[s.zkVerificationMs??0,` ms`]})]})]})]}),(0,F.jsxs)(`div`,{className:`p-3 rounded-lg bg-surface1 border border-border space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(j,{className:`h-4 w-4 text-emerald-400`}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`p`,{className:`font-semibold text-white text-[11px]`,children:`ZK-Receipt Proof & PQC Suite`}),(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400`,children:`ML-KEM-768 • AES-256-GCM • HMAC SHA-256`})]})]}),(0,F.jsx)(If,{variant:`success`,className:`font-mono text-[10px]`,children:`VERIFIED`})]}),e.zkHash&&(0,F.jsxs)(`div`,{className:`flex items-center justify-between bg-editor p-2 rounded border border-border font-mono text-[10px] text-zinc-300`,children:[(0,F.jsx)(`span`,{className:`truncate mr-2 select-all font-mono text-emerald-300`,children:e.zkHash}),(0,F.jsx)(`button`,{type:`button`,onClick:r,className:`text-[10px] flex items-center gap-1 text-zinc-400 hover:text-white shrink-0 px-1.5 py-0.5 rounded bg-surface1 border border-border transition-colors cursor-pointer`,title:`Copy ZK-Receipt Hash`,children:t?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ne,{className:`h-3 w-3 text-emerald-400`}),(0,F.jsx)(`span`,{className:`text-emerald-400`,children:`Copied`})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(k,{className:`h-3 w-3`}),(0,F.jsx)(`span`,{children:`Copy`})]})})]})]})]})})}function Am(e,[t,n]){return Math.min(n,Math.max(t,e))}function jm(e,t){return b.useReducer((e,n)=>t[e][n]??e,e)}var Mm=`ScrollArea`,[Nm,Pm]=qf(Mm),[Fm,Im]=Nm(Mm),Lm=b.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=b.useState(null),[l,u]=b.useState(null),[d,f]=b.useState(null),[p,m]=b.useState(null),[h,g]=b.useState(null),[_,v]=b.useState(0),[y,x]=b.useState(0),[S,C]=b.useState(!1),[w,T]=b.useState(!1),E=Zf(t,e=>c(e)),D=Sp(i);return(0,F.jsx)(Fm,{scope:n,type:r,dir:D,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:x,children:(0,F.jsx)(hp.div,{dir:D,...o,ref:E,style:{position:`relative`,"--radix-scroll-area-corner-width":_+`px`,"--radix-scroll-area-corner-height":y+`px`,...e.style}})})});Lm.displayName=Mm;var Rm=`ScrollAreaViewport`,zm=b.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=Im(Rm,n),s=Zf(t,b.useRef(null),o.onViewportChange);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,F.jsx)(hp.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,F.jsx)(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});zm.displayName=Rm;var Bm=`ScrollAreaScrollbar`,Vm=b.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Im(Bm,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return b.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,F.jsx)(Hm,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,F.jsx)(Um,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,F.jsx)(Wm,{...r,ref:t,forceMount:n}):i.type===`always`?(0,F.jsx)(Gm,{...r,ref:t,"data-state":`visible`}):null});Vm.displayName=Bm;var Hm=b.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Im(Bm,e.__scopeScrollArea),[a,o]=b.useState(!1);return b.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,F.jsx)(Gp,{present:n||a,children:(0,F.jsx)(Wm,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Um=b.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Im(Bm,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=dh(()=>c(`SCROLL_END`),100),[s,c]=jm(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return b.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),b.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,F.jsx)(Gp,{present:n||s!==`hidden`,children:(0,F.jsx)(Gm,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:Kf(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:Kf(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),Wm=b.forwardRef((e,t)=>{let n=Im(Bm,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=b.useState(!1),s=e.orientation===`horizontal`,c=dh(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return fh(n.viewport,c),fh(n.content,c),(0,F.jsx)(Gp,{present:r||a,children:(0,F.jsx)(Gm,{"data-state":a?`visible`:`hidden`,...i,ref:t})})}),Gm=b.forwardRef((e,t)=>{let{orientation:n=`vertical`,...r}=e,i=Im(Bm,e.__scopeScrollArea),a=b.useRef(null),o=b.useRef(0),[s,c]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=ih(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return oh(e,o.current,s,t)}return n===`horizontal`?(0,F.jsx)(Km,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=sh(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,F.jsx)(qm,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=sh(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),Km=b.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=Im(Bm,e.__scopeScrollArea),[o,s]=b.useState(),c=b.useRef(null),l=Zf(t,c,a.onScrollbarXChange);return b.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,F.jsx)(Xm,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":ah(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),lh(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:rh(o.paddingLeft),paddingEnd:rh(o.paddingRight)}})}})}),qm=b.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=Im(Bm,e.__scopeScrollArea),[o,s]=b.useState(),c=b.useRef(null),l=Zf(t,c,a.onScrollbarYChange);return b.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,F.jsx)(Xm,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":ah(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),lh(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:rh(o.paddingTop),paddingEnd:rh(o.paddingBottom)}})}})}),[Jm,Ym]=Nm(Bm),Xm=b.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=Im(Bm,n),[m,h]=b.useState(null),g=Zf(t,e=>h(e)),_=b.useRef(null),v=b.useRef(``),y=p.viewport,x=r.content-r.viewport,S=gp(u),C=gp(c),w=dh(d,10);function T(e){_.current&&l({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return b.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&S(e,x)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[y,m,x,S]),b.useEffect(C,[r,C]),fh(m,w),fh(p.content,w),(0,F.jsx)(Jm,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:gp(a),onThumbPointerUp:gp(o),onThumbPositionChange:C,onThumbPointerDown:gp(s),children:(0,F.jsx)(hp.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:Kf(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),T(e))}),onPointerMove:Kf(e.onPointerMove,T),onPointerUp:Kf(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),Zm=`ScrollAreaThumb`,Qm=b.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Ym(Zm,e.__scopeScrollArea);return(0,F.jsx)(Gp,{present:n||i.hasThumb,children:(0,F.jsx)($m,{ref:t,...r})})}),$m=b.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=Im(Zm,n),o=Ym(Zm,n),{onThumbPositionChange:s}=o,c=Zf(t,e=>o.onThumbChange(e)),l=b.useRef(void 0),u=dh(()=>{l.current&&=(l.current(),void 0)},100);return b.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=uh(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,F.jsx)(hp.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:Kf(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:Kf(e.onPointerUp,o.onThumbPointerUp)})});Qm.displayName=Zm;var eh=`ScrollAreaCorner`,th=b.forwardRef((e,t)=>{let n=Im(eh,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,F.jsx)(nh,{...e,ref:t}):null});th.displayName=eh;var nh=b.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=Im(eh,n),[a,o]=b.useState(0),[s,c]=b.useState(0),l=!!(a&&s);return fh(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),fh(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,F.jsx)(hp.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function rh(e){return e?parseInt(e,10):0}function ih(e,t){let n=e/t;return isNaN(n)?0:n}function ah(e){let t=ih(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function oh(e,t,n,r=`ltr`){let i=ah(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return ch([c,l],d)(e)}function sh(e,t,n=`ltr`){let r=ah(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Am(e,n===`ltr`?[0,o]:[o*-1,0]);return ch([0,o],[0,s])(c)}function ch(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function lh(e,t){return e>0&&e<t}var uh=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function dh(e,t){let n=gp(e),r=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),b.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function fh(e,t){let n=gp(t);dp(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var ph=Lm,mh=zm,hh=Vm,gh=th,_h=b.forwardRef(({className:e,children:t,...n},r)=>(0,F.jsxs)(ph,{ref:r,className:Pf(`relative overflow-hidden`,e),...n,children:[(0,F.jsx)(mh,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,F.jsx)(vh,{}),(0,F.jsx)(gh,{})]}));_h.displayName=ph.displayName;var vh=b.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,F.jsx)(hh,{ref:r,orientation:t,className:Pf(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2 border-l border-l-transparent p-[1px]`,t===`horizontal`&&`h-2 flex-col border-t border-t-transparent p-[1px]`,e),...n,children:(0,F.jsx)(Qm,{className:`relative flex-1 rounded-full bg-border/40 hover:bg-border/70 transition-colors`})}));vh.displayName=hh.displayName;function yh({timeline:e,result:t,meta:n,errorAlert:r,isRunning:i,code:a,selectedToolName:o,targetType:s,grpcTarget:c,httpUrl:l,stdioCmd:u,activeTab:d,onTabChange:f}){let[p,m]=(0,b.useState)(`output`),h=d??p,g=e=>{f?f(e):m(e)};return(0,F.jsxs)(`div`,{className:`flex flex-col gap-3 min-h-0 flex-1`,children:[(0,F.jsxs)(zf,{className:`p-3 bg-card border-border shadow-card shrink-0`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,F.jsxs)(`span`,{className:`text-xs font-semibold text-white flex items-center gap-1.5`,children:[(0,F.jsx)(D,{className:`h-3.5 w-3.5 text-primary`}),`Execution Timeline & Cryptographic Pipeline`]}),i?(0,F.jsxs)(If,{variant:`warning`,className:`text-[10px] font-mono flex items-center gap-1`,children:[(0,F.jsx)(de,{className:`h-2.5 w-2.5 animate-spin`}),` In-Situ Processing`]}):(0,F.jsxs)(`span`,{className:`text-[10px] text-zinc-400 font-mono`,children:[e.filter(e=>e.status===`success`).length,` /`,` `,e.length,` Steps`]})]}),(0,F.jsx)(`div`,{className:`grid grid-cols-5 gap-2`,children:e.map(e=>{let t=e.status===`success`,n=e.status===`running`,r=e.status===`failed`;return(0,F.jsxs)(`div`,{className:`p-2 rounded-lg border transition-all text-xs ${t?`bg-emerald-950/20 border-emerald-500/30 text-emerald-400`:n?`bg-amber-950/20 border-amber-500/40 text-amber-400 animate-pulse`:r?`bg-rose-950/20 border-rose-500/40 text-rose-400`:`bg-surface1/40 border-border/50 text-zinc-500`}`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,F.jsx)(`span`,{className:`font-semibold text-[11px] truncate`,children:e.label}),t&&(0,F.jsx)(re,{className:`h-3 w-3 text-emerald-400 shrink-0`}),n&&(0,F.jsx)(de,{className:`h-3 w-3 text-amber-400 animate-spin shrink-0`}),r&&(0,F.jsx)(ie,{className:`h-3 w-3 text-rose-400 shrink-0`})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[10px] font-mono`,children:[(0,F.jsx)(`span`,{className:`truncate text-zinc-400`,title:e.detail,children:e.detail}),e.durationMs!==void 0&&(0,F.jsxs)(`span`,{className:`shrink-0 ml-1 text-zinc-300`,children:[e.durationMs,`ms`]})]})]},e.phase)})})]}),(0,F.jsx)(zf,{className:`flex-1 min-h-0 bg-card border-border shadow-card flex flex-col overflow-hidden`,children:(0,F.jsxs)(gm,{value:h,onValueChange:e=>g(e),className:`flex-1 flex flex-col min-h-0`,children:[(0,F.jsxs)(Bf,{className:`py-2.5 px-5 border-b border-border bg-surface1/60 shrink-0 flex flex-row items-center justify-between`,children:[(0,F.jsx)(`div`,{className:`flex items-center gap-3`,children:(0,F.jsxs)(`div`,{className:`flex items-center gap-1 p-0.5 bg-surface1 border border-border rounded-lg relative`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>g(`output`),className:`relative z-10 text-xs px-2.5 py-1 font-medium transition-colors duration-200 flex items-center gap-1.5 cursor-pointer`,children:[h===`output`&&(0,F.jsx)(rd.div,{layoutId:`resultsTabPill`,className:`absolute inset-0 bg-primary rounded shadow-sm`,transition:{type:`spring`,stiffness:450,damping:35}}),(0,F.jsx)(Ce,{className:`h-3.5 w-3.5 relative z-20 ${h===`output`?`text-black`:`text-zinc-400`}`}),(0,F.jsx)(`span`,{className:`relative z-20 font-medium transition-colors duration-200 ${h===`output`?`text-black font-semibold`:`text-zinc-300 hover:text-white`}`,children:`Output`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>g(`debug`),className:`relative z-10 text-xs px-2.5 py-1 font-medium transition-colors duration-200 flex items-center gap-1.5 cursor-pointer`,children:[h===`debug`&&(0,F.jsx)(rd.div,{layoutId:`resultsTabPill`,className:`absolute inset-0 bg-primary rounded shadow-sm`,transition:{type:`spring`,stiffness:450,damping:35}}),(0,F.jsx)(ee,{className:`h-3.5 w-3.5 relative z-20 ${h===`debug`?`text-black`:`text-amber-400`}`}),(0,F.jsx)(`span`,{className:`relative z-20 font-medium transition-colors duration-200 ${h===`debug`?`text-black font-semibold`:`text-zinc-300 hover:text-white`}`,children:`Debug`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>g(`export`),className:`relative z-10 text-xs px-2.5 py-1 font-medium transition-colors duration-200 flex items-center gap-1.5 cursor-pointer`,children:[h===`export`&&(0,F.jsx)(rd.div,{layoutId:`resultsTabPill`,className:`absolute inset-0 bg-primary rounded shadow-sm`,transition:{type:`spring`,stiffness:450,damping:35}}),(0,F.jsx)(ce,{className:`h-3.5 w-3.5 relative z-20 ${h===`export`?`text-black`:`text-cyan-400`}`}),(0,F.jsx)(`span`,{className:`relative z-20 font-medium transition-colors duration-200 ${h===`export`?`text-black font-semibold`:`text-zinc-300 hover:text-white`}`,children:`Export Code`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>g(`telemetry`),className:`relative z-10 text-xs px-2.5 py-1 font-medium transition-colors duration-200 flex items-center gap-1.5 cursor-pointer`,children:[h===`telemetry`&&(0,F.jsx)(rd.div,{layoutId:`resultsTabPill`,className:`absolute inset-0 bg-primary rounded shadow-sm`,transition:{type:`spring`,stiffness:450,damping:35}}),(0,F.jsx)(D,{className:`h-3.5 w-3.5 relative z-20 ${h===`telemetry`?`text-black`:`text-emerald-400`}`}),(0,F.jsx)(`span`,{className:`relative z-20 font-medium transition-colors duration-200 ${h===`telemetry`?`text-black font-semibold`:`text-zinc-300 hover:text-white`}`,children:`Live Telemetry`})]})]})}),n?.latencyMs!==void 0&&(0,F.jsxs)(If,{variant:`outline`,className:`text-[10px] font-mono flex items-center gap-1 border-white/15 bg-secondary/60 text-zinc-300`,children:[(0,F.jsx)(D,{className:`h-3 w-3 text-primary`}),n.latencyMs,`ms total`]})]}),(0,F.jsx)(Uf,{className:`flex-1 min-h-0 overflow-hidden p-0`,children:(0,F.jsxs)(_h,{className:`h-full px-5`,children:[(0,F.jsx)(Om,{result:t,errorAlert:r,isRunning:i,meta:n}),(0,F.jsx)(bm,{timeline:e,targetType:s,meta:n}),(0,F.jsx)(Sm,{toolName:o,code:a,targetType:s,grpcTarget:c,httpUrl:l,stdioCmd:u}),(0,F.jsx)(km,{meta:n})]})})]})})]})}function bh({node:e,isConnected:t,onSwitchTarget:n,onSelectTool:r}){let i=e.status===`offline`,a=e.tier,o=e.transportType===`stdio`,s=e.transportType===`grpc`||!!e.ports?.grpc,c=e.transportType===`http`||!!e.ports?.http,l=a===1?{bgActive:`bg-tier1 border-emerald-500/60 ring-1 ring-emerald-500/30`,bgInactive:`bg-tier1 border-emerald-500/30 hover:brightness-110`,textAccent:`text-emerald-400`,badgeBorder:`border-emerald-500/30`,badgeBg:`bg-emerald-500/15`,badgeText:`text-emerald-300`,icon:xe}:a===2?{bgActive:`bg-tier2 border-cyan-500/60 ring-1 ring-cyan-500/30`,bgInactive:`bg-tier2 border-cyan-500/30 hover:brightness-110`,textAccent:`text-cyan-400`,badgeBorder:`border-cyan-500/30`,badgeBg:`bg-cyan-500/15`,badgeText:`text-cyan-200`,icon:N}:a===3?{bgActive:`bg-tier3 border-cyan-500/60 ring-1 ring-cyan-500/30`,bgInactive:`bg-tier3 border-purple-500/30 hover:brightness-110`,textAccent:`text-purple-400`,badgeBorder:`border-purple-500/30`,badgeBg:`bg-purple-500/15`,badgeText:`text-purple-200`,icon:A}:{bgActive:`bg-surface1 border-cyan-500/60 ring-1 ring-cyan-500/30`,bgInactive:`bg-surface1/60 border-border hover:border-border/80 hover:brightness-110`,textAccent:o?`text-amber-400`:s?`text-cyan-400`:`text-sky-400`,badgeBorder:`border-white/15`,badgeBg:`bg-white/10`,badgeText:`text-zinc-200`,icon:o?Ce:s?A:c?N:ve},u=l.icon,d=()=>{let t=e.ports?.grpc??e.ports?.http,r=e.ports?.grpc?`grpc`:`http`;n(r===`grpc`?`${e.host}:${t}`:`http://${e.host}:${t}/mcp`,r)},f=i=>{if(r(i),!t){let t=e.ports?.grpc??e.ports?.http,r=e.ports?.grpc?`grpc`:`http`;n(r===`grpc`?`${e.host}:${t}`:`http://${e.host}:${t}/mcp`,r,i)}},p=o?`stdio (local pipeline)`:e.ports?.grpc?`${e.host}:${e.ports.grpc}`:e.ports?.http?`${e.host}:${e.ports.http}`:e.host;return(0,F.jsxs)(`div`,{className:`p-2.5 rounded-md border transition-all ${i?`border-border/40 bg-surface1/20 opacity-60`:t?`${l.bgActive} shadow-sm`:l.bgInactive}`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(u,{className:`h-3 w-3 ${i?`text-zinc-500`:l.textAccent}`}),(0,F.jsx)(`span`,{className:`text-xs font-semibold ${i?`text-zinc-400`:`text-zinc-100`}`,children:e.name}),t&&(0,F.jsxs)(`span`,{className:`text-[8px] font-mono px-1.5 py-0.2 rounded bg-cyan-500/25 border border-cyan-500/40 text-cyan-200 font-bold flex items-center gap-1`,children:[(0,F.jsx)(`span`,{className:`inline-block h-1.5 w-1.5 rounded-full bg-cyan-400 animate-ping`}),`ACTIVE TARGET`]})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[!t&&!i&&(0,F.jsxs)(`button`,{type:`button`,onClick:d,className:`text-[9px] font-mono px-1.5 py-0.2 rounded bg-surface1 hover:bg-primary hover:text-black border border-white/10 text-zinc-300 transition-colors flex items-center gap-1 cursor-pointer`,title:`Connect to ${e.name}`,children:[(0,F.jsx)(Oe,{className:`h-2.5 w-2.5 text-cyan-400`}),(0,F.jsx)(`span`,{children:`Connect`})]}),(0,F.jsx)(`span`,{className:`inline-block h-1.5 w-1.5 rounded-full ${i?`bg-rose-500`:l.textAccent.replace(`text-`,`bg-`)}`}),(0,F.jsx)(`span`,{className:`text-[10px] font-mono ${i?`text-zinc-500 font-medium`:l.textAccent}`,children:i?`OFFLINE`:`${e.rttMs}ms`})]})]}),(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400 mb-1`,children:e.role}),(0,F.jsxs)(`div`,{className:`text-[10px] font-mono text-zinc-400 flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:p}),(0,F.jsx)(`span`,{className:`text-[9px] ${i?`text-zinc-500`:l.textAccent}`,children:e.isolation?.split(`+`)[0]||e.tierLabel?.split(`:`)[0]||(a===1?`Sovereign Node`:a===2?`Consortium Node`:a===3?`Client Edge`:`Direct Target`)})]}),!i&&e.tools.length>0&&(0,F.jsx)(`div`,{className:`mt-1.5 flex flex-wrap gap-1`,children:e.tools.map(n=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>f(n),className:`text-[9px] px-1.5 py-0.5 rounded ${l.badgeBg} hover:opacity-80 border ${l.badgeBorder} ${l.badgeText} transition-colors cursor-pointer`,title:t?`Load ${n} in Logic Studio`:`Connect to ${e.name} and load ${n}`,children:[`+ `,n]},n))})]})}function xh({tools:e,nodes:t,scanSummary:n,onlineNodes:r,totalNodes:i,hasNodeStats:a,isScanning:o,loadingTools:s,targetType:c,activeConnectedTarget:l,selectedToolName:u,onSelectTool:d,onSwitchTarget:f}){let[p,m]=(0,b.useState)(`nodes`),[h,g]=(0,b.useState)(``),[_,v]=(0,b.useState)(`all`),[y,x]=(0,b.useState)(null),S=async(e,t)=>{await ke(e)&&(x(t),setTimeout(()=>x(null),1500))},C=(0,b.useMemo)(()=>{let e=new Set;for(let n of t)(n.tier===1||n.tier===2||n.tier===3)&&e.add(n.tier);return Array.from(e).sort()},[t]),w=(0,b.useMemo)(()=>t.some(e=>e.tier===void 0||e.tier===null),[t]),T=C.length>0,E=(0,b.useMemo)(()=>{if(!h.trim())return e;let t=h.toLowerCase();return e.filter(e=>e.name.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t)||e.domain?.toLowerCase().includes(t)||e.taxonomy?.domain?.toLowerCase().includes(t))},[e,h]),D=(0,b.useMemo)(()=>_===`all`?t:_===`standalone`?t.filter(e=>e.tier===void 0||e.tier===null):t.filter(e=>e.tier===_),[t,_]),O=(0,b.useMemo)(()=>D.filter(e=>e.tier===void 0||e.tier===null),[D]),ee=(0,b.useMemo)(()=>D.filter(e=>e.tier===1),[D]),te=(0,b.useMemo)(()=>D.filter(e=>e.tier===2),[D]),re=(0,b.useMemo)(()=>D.filter(e=>e.tier===3),[D]),ie=e=>{if(!l)return!1;if(c===`grpc`){let t=l.split(`:`)[1]||``;return!!(e.ports?.grpc&&String(e.ports.grpc)===t||e.host&&l.includes(e.host)&&t===String(e.ports?.grpc)||l&&l.toLowerCase().includes(e.id.toLowerCase()))}if(c===`http`){let t=l.match(/:(\d+)/)?.[1]||``;return!!(e.ports?.http&&String(e.ports.http)===t||l&&l.toLowerCase().includes(e.id.toLowerCase()))}return e.status===`online`&&l.toLowerCase().includes(e.id.toLowerCase())};return(0,F.jsxs)(`section`,{className:`lg:col-span-4 flex flex-col space-y-6`,children:[(0,F.jsxs)(zf,{className:`flex flex-col h-[560px] overflow-hidden bg-card border-border shadow-card`,children:[(0,F.jsxs)(Bf,{className:`pb-2.5 shrink-0 border-b border-border/40`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5 p-0.5 bg-surface1 border border-white/10 rounded-lg`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>m(`nodes`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 ${p===`nodes`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(ve,{className:`h-3.5 w-3.5`}),`Server Scan`,` `,a?`(${r}/${i})`:``]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>m(`capabilities`),className:`text-xs px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 ${p===`capabilities`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(Ee,{className:`h-3.5 w-3.5`}),`Capabilities (`,e.length,`)`]})]}),(0,F.jsx)(If,{variant:`outline`,className:`text-[10px] font-mono border-white/15 text-zinc-300`,children:p===`capabilities`?`${e.length} tools`:T?`${C.length} Active Layer${C.length>1?`s`:``}`:`${i} Targets`})]}),p===`capabilities`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Hf,{className:`text-xs text-zinc-400`,children:`Discovered runtime capabilities ready for secure in-situ execution.`}),(0,F.jsxs)(`div`,{className:`relative mt-2`,children:[(0,F.jsx)(_e,{className:`h-3.5 w-3.5 absolute left-2.5 top-2.5 text-zinc-400`}),(0,F.jsx)(`input`,{type:`text`,value:h,onChange:e=>g(e.target.value),placeholder:`Filter by capability or domain...`,spellCheck:!1,autoComplete:`off`,autoCorrect:`off`,className:`w-full h-8 pl-8 pr-7 bg-surface1 border border-white/15 rounded text-xs text-white placeholder:text-zinc-500 focus:outline-none focus:border-cyan-500/60 focus:ring-1 focus:ring-cyan-500/30 transition-all`}),h&&(0,F.jsx)(`button`,{type:`button`,onClick:()=>g(``),className:`absolute right-2 top-2 text-zinc-400 hover:text-white p-0.5 rounded transition-colors`,title:`Clear filter`,children:(0,F.jsx)(De,{className:`h-3.5 w-3.5`})})]})]}):(0,F.jsxs)(`div`,{className:`flex items-center justify-between mt-1`,children:[(0,F.jsx)(`span`,{className:`text-[11px] text-zinc-400`,children:T?`Live scan across network layers:`:`Discovered network targets:`}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(`button`,{type:`button`,onClick:()=>v(`all`),className:`text-[10px] px-1.5 py-0.5 rounded font-mono transition-colors ${_===`all`?`bg-primary/20 text-cyan-400 border border-cyan-500/40`:`text-zinc-400 hover:text-zinc-200 border border-transparent`}`,children:`All`}),w&&(0,F.jsx)(`button`,{type:`button`,onClick:()=>v(`standalone`),className:`text-[10px] px-1.5 py-0.5 rounded font-mono transition-colors ${_===`standalone`?`bg-primary/20 text-cyan-400 border border-cyan-500/40`:`text-zinc-400 hover:text-zinc-200 border border-transparent`}`,children:`Direct`}),C.map(e=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>v(e),className:`text-[10px] px-1.5 py-0.5 rounded font-mono transition-colors ${_===e?`bg-primary/20 text-cyan-400 border border-cyan-500/40`:`text-zinc-400 hover:text-zinc-200 border border-transparent`}`,children:[`T`,e]},e))]})]})]}),(0,F.jsx)(Uf,{className:`flex-1 min-h-0 overflow-hidden p-0`,children:(0,F.jsx)(_h,{className:`h-full px-4 py-2`,children:p===`capabilities`?s?(0,F.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-12 text-zinc-400 space-y-2`,children:[(0,F.jsx)(de,{className:`h-5 w-5 animate-spin text-primary`}),(0,F.jsx)(`span`,{className:`text-xs text-zinc-300`,children:`Discovering capabilities across tiers...`})]}):E.length===0?(0,F.jsxs)(`div`,{className:`text-center py-12 text-zinc-400 space-y-2`,children:[(0,F.jsx)(Te,{className:`h-6 w-6 mx-auto text-warning`}),(0,F.jsx)(`p`,{className:`text-xs font-medium text-zinc-200`,children:`No capabilities found`}),(0,F.jsx)(`p`,{className:`text-[11px] text-zinc-400 max-w-[200px] mx-auto`,children:`Try adjusting your search query.`})]}):(0,F.jsx)(`div`,{className:`space-y-2.5 pb-4`,children:E.map(e=>{let t=u===e.name,n=e.tier||(e.taxonomy?.clearanceTier===1?1:e.taxonomy?.clearanceTier===3?3:2);return(0,F.jsxs)(`button`,{type:`button`,onClick:()=>d(e.name),className:`w-full text-left p-3 rounded-md border transition-all cursor-pointer ${t?`bg-primary/10 border-primary/60 text-white shadow-sm ring-1 ring-primary/30`:`bg-secondary/40 border-border/70 hover:bg-secondary/80 hover:border-border`}`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,F.jsx)(`span`,{className:`font-semibold text-xs text-zinc-100 truncate max-w-[190px]`,children:e.name}),(0,F.jsxs)(If,{variant:n===1?`success`:n===2?`warning`:`default`,className:`text-[10px] py-0 px-1.5 font-normal`,children:[`Tier `,n]})]}),(0,F.jsx)(`p`,{className:`text-[11px] text-zinc-300 line-clamp-2 leading-relaxed`,children:e.description||`No description available.`}),(0,F.jsxs)(`div`,{className:`mt-1.5 flex items-center justify-between text-[10px] text-zinc-400`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1 truncate max-w-[180px]`,children:[(0,F.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full ${n===1?`bg-emerald-400`:n===2?`bg-cyan-400`:`bg-purple-400`}`}),e.providerNode||e.taxonomy?.domain||`Mesh Node`]}),(0,F.jsx)(`span`,{className:`font-mono text-[9px] opacity-75 shrink-0`,children:`WASI In-situ`})]})]},e.name)})}):(0,F.jsx)(`div`,{className:`space-y-4 pb-4`,children:t.length===0?(0,F.jsxs)(`div`,{className:`text-center py-10 px-4 bg-surface1/20 rounded-lg border border-white/5 space-y-2`,children:[(0,F.jsx)(ve,{className:`h-7 w-7 text-cyan-400 mx-auto opacity-70 animate-pulse`}),(0,F.jsx)(`p`,{className:`text-xs font-semibold text-zinc-200`,children:`Scanning Network Nodes...`}),(0,F.jsxs)(`p`,{className:`text-[11px] text-zinc-400 font-mono`,children:[`Querying `,l]})]}):(0,F.jsxs)(F.Fragment,{children:[(_===`all`||_===`standalone`)&&O.length>0&&(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[11px] font-semibold text-sky-400 border-b border-sky-500/20 pb-1`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(ve,{className:`h-3.5 w-3.5 text-sky-400`}),`Direct Connection & Standalone Targets`]}),(0,F.jsx)(`span`,{className:`text-[9px] font-mono px-1 py-0.2 rounded bg-sky-500/10 border border-sky-500/30 text-sky-300`,children:`Direct Compute`})]}),O.map(e=>(0,F.jsx)(bh,{node:e,isConnected:ie(e)&&e.status===`online`,onSwitchTarget:f,onSelectTool:d},e.id))]}),T&&(_===`all`||_===1)&&(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[11px] font-semibold text-emerald-400 border-b border-emerald-500/20 pb-1`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(xe,{className:`h-3.5 w-3.5 text-emerald-400`}),`Tier 1: Sovereign Core Enclaves`]}),(0,F.jsx)(`span`,{className:`text-[9px] font-mono px-1 py-0.2 rounded bg-emerald-500/10 border border-emerald-500/30 text-emerald-300`,children:`Zero-Trust • PSK`})]}),ee.length===0?(0,F.jsxs)(`div`,{className:`text-[10px] text-zinc-500 italic py-2 px-2.5 bg-surface1/30 rounded border border-white/5 flex items-center gap-1.5`,children:[(0,F.jsx)(Te,{className:`h-3 w-3 text-zinc-500`}),`No Tier 1 nodes detected on scanned target`]}):ee.map(e=>(0,F.jsx)(bh,{node:e,isConnected:ie(e)&&e.status===`online`,onSwitchTarget:f,onSelectTool:d},e.id))]}),T&&(_===`all`||_===2)&&(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[11px] font-semibold text-cyan-400 border-b border-cyan-500/20 pb-1`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(N,{className:`h-3.5 w-3.5 text-cyan-400`}),`Tier 2: Consortium Relays & Gateways`]}),(0,F.jsx)(`span`,{className:`text-[9px] font-mono px-1 py-0.2 rounded bg-cyan-500/10 border border-cyan-500/30 text-cyan-300`,children:`BLG • mTLS`})]}),te.length===0?(0,F.jsxs)(`div`,{className:`text-[10px] text-zinc-500 italic py-2 px-2.5 bg-surface1/30 rounded border border-white/5 flex items-center gap-1.5`,children:[(0,F.jsx)(Te,{className:`h-3 w-3 text-zinc-500`}),`No Tier 2 nodes detected on scanned target`]}):te.map(e=>(0,F.jsx)(bh,{node:e,isConnected:ie(e)&&e.status===`online`,onSwitchTarget:f,onSelectTool:d},e.id))]}),T&&(_===`all`||_===3)&&(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between text-[11px] font-semibold text-purple-400 border-b border-purple-500/20 pb-1`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(A,{className:`h-3.5 w-3.5 text-purple-400`}),`Tier 3: Public Backbone & Client Edge`]}),(0,F.jsx)(`span`,{className:`text-[9px] font-mono px-1 py-0.2 rounded bg-purple-500/10 border border-purple-500/30 text-purple-300`,children:`AutoNAT / WAN`})]}),re.length===0?(0,F.jsxs)(`div`,{className:`text-[10px] text-zinc-500 italic py-2 px-2.5 bg-surface1/30 rounded border border-white/5 flex items-center gap-1.5`,children:[(0,F.jsx)(Te,{className:`h-3 w-3 text-zinc-500`}),`No Tier 3 edge nodes active on scanned target`]}):re.map(e=>(0,F.jsx)(bh,{node:e,isConnected:ie(e)&&e.status===`online`,onSwitchTarget:f,onSelectTool:d},e.id))]})]})})})})]}),(0,F.jsxs)(zf,{className:`p-4 bg-card border-border shadow-card shrink-0`,children:[(0,F.jsxs)(`h3`,{className:`text-xs font-semibold text-white mb-3 flex items-center justify-between`,children:[(0,F.jsx)(`span`,{children:`Mesh Discovery Telemetry`}),(0,F.jsxs)(`span`,{className:`font-mono text-[10px] text-zinc-400 font-normal flex items-center gap-1`,children:[o&&(0,F.jsx)(de,{className:`h-2.5 w-2.5 animate-spin text-primary`}),c.toUpperCase(),` / WASI`]})]}),(0,F.jsxs)(`div`,{className:`space-y-2.5 text-xs`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/50 pb-2`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400`,children:`Mesh Topology:`}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(`span`,{className:`h-2 w-2 rounded-full ${r>0?`bg-emerald-400`:`bg-rose-500`}`}),(0,F.jsx)(`span`,{className:`font-mono text-[11px] font-medium ${r>0?`text-white`:`text-zinc-500`}`,children:r>0?`${r}/${i} Nodes Online`:`0 Nodes Online (Offline)`})]})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/50 pb-2`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400`,children:`Architecture Mode:`}),(0,F.jsx)(`span`,{className:`font-mono text-[11px] ${r>0?`text-cyan-400`:`text-zinc-500`}`,children:r>0?T?`${C.length} Active Layer${C.length>1?`s`:``}`:`Direct Standalone Node`:`Offline`})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/50 pb-2`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400`,children:`Discovered Tools:`}),(0,F.jsx)(`span`,{className:`font-mono text-[11px] ${e.length>0?`text-emerald-400`:`text-zinc-500`}`,children:e.length>0?`${e.length} Capabilities`:`0 Available`})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/50 pb-2`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400`,children:`Avg Round-Trip Time:`}),(0,F.jsx)(`span`,{className:`font-mono text-[11px] ${r>0?`text-white font-semibold`:`text-zinc-500`}`,children:r>0?n?.avgLatencyMs!==void 0&&n.avgLatencyMs>0?`${n.avgLatencyMs} ms`:t.some(e=>e.rttMs>0&&e.status===`online`)?`${Math.round(t.filter(e=>e.status===`online`&&e.rttMs>0).reduce((e,t)=>e+t.rttMs,0)/Math.max(1,t.filter(e=>e.status===`online`&&e.rttMs>0).length))} ms`:`—`:`—`})]}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between pt-0.5`,children:[(0,F.jsx)(`span`,{className:`text-zinc-400`,children:`Active Target:`}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(`span`,{className:`font-mono text-[11px] text-zinc-300 truncate max-w-[130px]`,title:l,children:l}),(0,F.jsx)(`button`,{type:`button`,onClick:()=>S(l,`target`),className:`text-zinc-400 hover:text-white transition-colors p-0.5 rounded cursor-pointer`,title:`Copy Target Address`,children:y===`target`?(0,F.jsx)(ne,{className:`h-3 w-3 text-emerald-400`}):(0,F.jsx)(k,{className:`h-3 w-3`})})]})]})]})]})]})}function Sh({className:e=`h-8 w-8 text-primary`}){return(0,F.jsxs)(`svg`,{className:e,viewBox:`0 0 120 120`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,F.jsx)(`title`,{children:`LIOP Protocol Logo`}),(0,F.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`6`,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`,children:[(0,F.jsx)(`polygon`,{points:`100,76.57 76.57,100 43.43,100 20,76.57 20,43.43 43.43,20 76.57,20 100,43.43`}),(0,F.jsx)(`circle`,{cx:`60`,cy:`60`,r:`10`,fill:`currentColor`,stroke:`none`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`,transform:`rotate(45 60 60)`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`,transform:`rotate(90 60 60)`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`,transform:`rotate(135 60 60)`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`,transform:`rotate(180 60 60)`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`,transform:`rotate(225 60 60)`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`,transform:`rotate(270 60 60)`}),(0,F.jsx)(`path`,{d:`M 60 60 C 60 45, 100 75, 100 60`,transform:`rotate(315 60 60)`})]})]})}function Ch({onlineNodes:e,totalNodes:t,hasNodeStats:n,isScanning:r,secondsAgo:i,theme:a,onThemeChange:o,onRescan:s}){return(0,F.jsx)(`header`,{className:`border-b border-border bg-card/90 backdrop-blur-sm sticky top-0 z-50 transition-colors`,children:(0,F.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 h-14 flex items-center justify-between`,children:[(0,F.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,F.jsx)(Sh,{className:`h-8 w-8 text-primary shrink-0 transition-transform duration-200 hover:scale-105`}),(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`h1`,{className:`text-base font-bold tracking-tight text-white flex items-center gap-2`,children:[(0,F.jsx)(`span`,{children:`LIOP Studio`}),(0,F.jsx)(`span`,{className:`text-[10px] font-mono font-medium px-1.5 py-0.2 text-cyan-300 border border-cyan-500/30 rounded bg-cyan-500/10`,children:`v1.0.0-alpha.0`})]}),(0,F.jsx)(`p`,{className:`text-[10px] text-zinc-400 -mt-0.5 hidden sm:block`,children:`Sovereign Logic & MCP Multi-Transport Inspector`})]})})]}),(0,F.jsxs)(`div`,{className:`flex items-center space-x-2.5`,children:[(0,F.jsxs)(`div`,{className:`flex items-center space-x-2 bg-secondary/80 border border-white/10 px-3 py-1 rounded-md text-xs`,children:[(0,F.jsx)(`span`,{className:`relative flex h-2 w-2`,children:e>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75`}),(0,F.jsx)(`span`,{className:`relative inline-flex rounded-full h-2 w-2 bg-emerald-500`})]}):(0,F.jsx)(`span`,{className:`relative inline-flex rounded-full h-2 w-2 bg-rose-500`})}),(0,F.jsx)(`span`,{className:`font-medium ${e>0?`text-white`:`text-rose-400`}`,children:n?e>0?`${e}/${t} Nodes Online`:`0 Nodes Online (Offline)`:r?`Scanning Mesh Nodes...`:`Topology Offline`}),(0,F.jsx)(`span`,{className:`text-cyan-400 font-mono text-[10px] hidden sm:inline`,children:`(3 Tiers)`}),(0,F.jsx)(`span`,{className:`text-zinc-400 font-mono text-[10px] border-l border-white/15 pl-1.5 hidden md:inline`,children:i===0?`live`:`${i}s ago`})]}),(0,F.jsxs)(Rf,{size:`sm`,variant:`outline`,onClick:s,disabled:r,className:`h-8 px-2.5 border-white/15 bg-surface1 text-zinc-300 hover:text-white hover:bg-white/5 flex items-center gap-1.5 text-xs`,title:`Re-scan mesh topology across all layers`,children:[(0,F.jsx)(he,{className:`h-3.5 w-3.5 text-cyan-400 ${r?`animate-spin`:``}`}),(0,F.jsx)(`span`,{className:`hidden md:inline font-mono text-[11px]`,children:`Scan`})]}),(0,F.jsxs)(`div`,{className:`relative flex items-center bg-surface1 border border-white/15 p-0.5 rounded-md`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>o(`obsidian`),className:`relative z-10 text-[11px] px-2.5 py-1 font-medium flex items-center gap-1.5 transition-colors duration-200`,title:`OLED Obsidian Theme`,children:[a===`obsidian`&&(0,F.jsx)(rd.div,{layoutId:`themeActivePill`,className:`absolute inset-0 bg-primary rounded shadow-sm`,transition:{type:`spring`,stiffness:450,damping:35}}),(0,F.jsx)(pe,{className:`relative z-20 h-3.5 w-3.5 transition-colors duration-200 ${a===`obsidian`?`text-black`:`text-zinc-400`}`}),(0,F.jsx)(`span`,{className:`relative z-20 font-medium transition-colors duration-200 ${a===`obsidian`?`text-black`:`text-zinc-300 hover:text-white`}`,children:`Obsidian`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>o(`slate`),className:`relative z-10 text-[11px] px-2.5 py-1 font-medium flex items-center gap-1.5 transition-colors duration-200`,title:`Slate Dark Theme`,children:[a===`slate`&&(0,F.jsx)(rd.div,{layoutId:`themeActivePill`,className:`absolute inset-0 bg-primary rounded shadow-sm`,transition:{type:`spring`,stiffness:450,damping:35}}),(0,F.jsx)(P,{className:`relative z-20 h-3.5 w-3.5 transition-colors duration-200 ${a===`slate`?`text-black`:`text-zinc-400`}`}),(0,F.jsx)(`span`,{className:`relative z-20 font-medium transition-colors duration-200 ${a===`slate`?`text-black`:`text-zinc-300 hover:text-white`}`,children:`Slate`})]})]})]})]})})}var wh=b.forwardRef(({className:e,type:t,...n},r)=>(0,F.jsx)(`input`,{type:t,className:Pf(`flex h-9 w-full rounded-md border border-border bg-surface1 px-3 py-1 text-xs text-white placeholder:text-zinc-500 shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50`,e),ref:r,...n}));wh.displayName=`Input`;var Th=({targetType:e,onTargetTypeChange:t,stdioCmd:n,onStdioCmdChange:r,httpUrl:i,onHttpUrlChange:a,grpcTarget:o,onGrpcTargetChange:s,onConnect:c,isConnecting:l,activeConnectedTarget:u,connected:d})=>(0,F.jsx)(`div`,{className:`w-full bg-surface1/90 border-b border-border px-4 py-2.5 backdrop-blur-sm transition-colors`,children:(0,F.jsxs)(`div`,{className:`max-w-7xl mx-auto flex flex-col md:flex-row items-stretch md:items-center justify-between gap-3 text-xs`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5 p-0.5 bg-background/80 border border-white/10 rounded-lg shrink-0`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t(`stdio`),className:`px-2.5 py-1 rounded-md font-medium flex items-center gap-1.5 transition-all ${e===`stdio`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(Ce,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`Stdio`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t(`http`),className:`px-2.5 py-1 rounded-md font-medium flex items-center gap-1.5 transition-all ${e===`http`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(N,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`HTTP / SSE`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t(`grpc`),className:`px-2.5 py-1 rounded-md font-medium flex items-center gap-1.5 transition-all ${e===`grpc`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(A,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`gRPC`})]}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>t(`mesh`),className:`px-2.5 py-1 rounded-md font-medium flex items-center gap-1.5 transition-all ${e===`mesh`?`bg-primary text-black font-semibold shadow-sm`:`text-zinc-400 hover:text-white`}`,children:[(0,F.jsx)(Ee,{className:`h-3.5 w-3.5`}),(0,F.jsx)(`span`,{children:`LIOP Mesh`})]})]}),(0,F.jsxs)(`div`,{className:`flex-1 flex items-center gap-2`,children:[e===`stdio`&&(0,F.jsx)(`div`,{className:`flex-1 relative`,children:(0,F.jsx)(wh,{type:`text`,value:n,onChange:e=>r(e.target.value),placeholder:`Command and arguments, e.g.: npx -y @modelcontextprotocol/server-filesystem /tmp`,className:`font-mono text-[11px] h-8 bg-background/90`})}),e===`http`&&(0,F.jsx)(`div`,{className:`flex-1 relative`,children:(0,F.jsx)(wh,{type:`text`,value:i,onChange:e=>a(e.target.value),placeholder:`MCP Server Endpoint URL, e.g.: http://127.0.0.1:15000/mcp`,className:`font-mono text-[11px] h-8 bg-background/90`})}),e===`grpc`&&(0,F.jsx)(`div`,{className:`flex-1 relative`,children:(0,F.jsx)(wh,{type:`text`,value:o,onChange:e=>s(e.target.value),placeholder:`Tonic gRPC Host:Port, e.g.: 127.0.0.1:13011`,className:`font-mono text-[11px] h-8 bg-background/90`})}),e===`mesh`&&(0,F.jsxs)(`div`,{className:`flex-1 flex items-center px-3 py-1 bg-background/80 border border-white/10 rounded-md font-mono text-[11px] text-zinc-300`,children:[(0,F.jsx)(`span`,{className:`text-cyan-400 mr-2`,children:`Preset Topology:`}),(0,F.jsx)(`span`,{children:`8 Sovereign Origin Nodes across 3 Tiers (Kademlia DHT + Swarm PSK)`})]}),(0,F.jsx)(Rf,{size:`sm`,onClick:c,disabled:l,className:`h-8 px-4 text-xs font-semibold shrink-0`,children:l?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(de,{className:`h-3.5 w-3.5 animate-spin mr-1.5`}),`Connecting...`]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(me,{className:`h-3 w-3 fill-current mr-1.5`}),`Connect / Probe`]})})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5 px-2.5 py-1 bg-background/90 border border-white/10 rounded-md shrink-0`,children:[(0,F.jsx)(`span`,{className:`relative flex h-2 w-2`,children:d?(0,F.jsx)(`span`,{className:`inline-flex rounded-full h-2 w-2 bg-emerald-500`}):(0,F.jsx)(`span`,{className:`inline-flex rounded-full h-2 w-2 bg-rose-500`})}),(0,F.jsx)(`span`,{className:`font-mono text-[11px] truncate max-w-[220px] ${d?`text-zinc-300`:`text-rose-400 font-medium`}`,title:u,children:d?u||`Ready to connect`:u?`${u} (Offline)`:`Target Offline`})]})]})}),Eh=[{phase:`bootstrap`,label:`P2P Mesh Bootstrap`,detail:`Node synchronized`,status:`pending`},{phase:`discovery`,label:`Resource Discovery`,detail:`Multi-tier route resolution`,status:`pending`},{phase:`pqc`,label:`Kyber-768 Handshake`,detail:`ML-KEM key exchange`,status:`pending`},{phase:`sealing`,label:`AES-256-GCM Sealing`,detail:`Envelope cipher & sign`,status:`pending`},{phase:`execution`,label:`WASI Sandbox Run`,detail:`Logic injection on origin`,status:`pending`},{phase:`zk_verify`,label:`ZK-Receipt HMAC Seal`,detail:`Computational integrity proof`,status:`pending`}];function Dh(){let[e,t]=(0,b.useState)(!1),[n,r]=(0,b.useState)(null),[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(null),[c,l]=(0,b.useState)(Eh),u=(0,b.useCallback)((e,t,n,r)=>{l(i=>{let a=!1;return i.map(i=>i.phase===e?(a=!0,{...i,status:n,detail:t,durationMs:r??i.durationMs}):a&&i.status!==`success`&&i.status!==`failed`?{...i,status:`pending`}:!a&&(i.status===`pending`||i.status===`running`)?{...i,status:`success`}:i)})},[]);return{isRunning:e,result:n,meta:i,errorAlert:o,setErrorAlert:s,timeline:c,handleExecute:(0,b.useCallback)(async n=>{let{targetTool:i,executionMode:o,code:c,formArgs:d,targetType:f}=n;if(!(!i||e)){t(!0),r(null),a(null),s(null),l([{phase:`bootstrap`,label:`Channel Bootstrap`,detail:`Target transport: ${f.toUpperCase()}`,status:`running`},{phase:`discovery`,label:`Resource Discovery`,detail:`Targeting tool ${i}...`,status:`pending`},{phase:`pqc`,label:`Kyber-768 / Channel Security`,detail:`Securing transport session...`,status:`pending`},{phase:`sealing`,label:`Payload Sealing`,detail:`Encrypting parameters & payload...`,status:`pending`},{phase:`execution`,label:`Origin / Sandbox Execution`,detail:`Executing inside target environment...`,status:`pending`},{phase:`zk_verify`,label:`ZK-Receipt HMAC Seal`,detail:`Cryptographic proof validation...`,status:`pending`}]);try{let e=await fetch(`/api/execute`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(o===`form`?{tool:i,args:d}:{tool:i,logic:c})});if(!e.ok)throw Error(`Gateway error: ${e.statusText}`);let n=e.body?.getReader();if(!n)throw Error(`Unable to initialize SSE stream reader`);let l=new TextDecoder,f=``;for(;;){let{value:e,done:i}=await n.read();if(i)break;f+=l.decode(e,{stream:!0});let o=f.split(`
|
|
98
|
+
`);f=o.pop()||``;for(let e of o)if(e.trim()&&e.startsWith(`data: `)){let n=e.slice(6);try{let e=JSON.parse(n);e.type===`step`?u(e.phase,e.detail,e.status,e.durationMs):e.type===`result`?(r(e.payload),a(e.meta||null),t(!1)):e.type===`error`&&(s({title:e.payload.title||`Execution Error`,desc:e.payload.desc||`A sandbox failure occurred on origin node`}),a(e.meta||null),t(!1))}catch(t){console.error(`Error parsing SSE line:`,t,e)}}}}catch(e){s({title:`Connection Error`,desc:(e instanceof Error?e.message:String(e))||`Failed to communicate with Playground Gateway`}),t(!1),l(e=>e.map(e=>e.status===`running`?{...e,status:`failed`,detail:`Connection interrupted`}:e))}}},[e,u]),resetExecution:(0,b.useCallback)(()=>{r(null),a(null),s(null),l(Eh)},[]),updateTimelineStep:u}}function Oh(e={}){let{onTargetSwitched:t,onError:n}=e,[r,i]=(0,b.useState)(null),[a,o]=(0,b.useState)([]),[s,c]=(0,b.useState)([]),[l,u]=(0,b.useState)(null),[d,f]=(0,b.useState)(`http`),[p,m]=(0,b.useState)(`npx -y @modelcontextprotocol/server-filesystem /tmp`),[h,g]=(0,b.useState)(`http://127.0.0.1:15000/mcp`),[_,v]=(0,b.useState)(`127.0.0.1:13011`),[y,x]=(0,b.useState)(!1),[S,C]=(0,b.useState)(!1),[w,T]=(0,b.useState)(!1),[E,D]=(0,b.useState)(`http://127.0.0.1:15000/mcp`),[O,ee]=(0,b.useState)(Date.now()),[te,ne]=(0,b.useState)(0),re=l?.totalNodes??r?.totalNodes??s.length,ie=l?.onlineNodes??r?.nodesOnline??s.filter(e=>e.status===`online`).length,ae=re>0,oe=(0,b.useRef)(!1),k=(0,b.useCallback)(async()=>{try{let e=await fetch(`/api/health`);e.ok&&i(await e.json())}catch(e){console.error(`Error fetching network health:`,e)}},[]),A=(0,b.useCallback)(async()=>{T(!0);try{let e=await fetch(`/api/tools`);e.ok&&o((await e.json()).tools||[])}catch(e){console.error(`Error fetching tools:`,e)}finally{T(!1)}},[]),se=(0,b.useCallback)(async(e,r=d,i)=>{x(!0);try{if(r===`grpc`){v(e),f(`grpc`);let t=await fetch(`/api/connect`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({type:`grpc`,grpc:{target:e}})});if(!t.ok){let e=await t.json();throw Error(e.error||`Failed to connect to target`)}D(e)}else if(r===`http`){g(e),f(`http`);let t=await fetch(`/api/connect`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({type:`http`,http:{url:e}})});if(!t.ok){let e=await t.json();throw Error(e.error||`Failed to connect to target`)}D(e)}await k(),await A(),t&&i&&t(i)}catch(e){let t=e instanceof Error?e.message:String(e);n?.({title:`Target Switch Failed`,desc:t})}finally{x(!1)}},[d,k,A,t,n]),ce=(0,b.useCallback)(async(e=!1,t=!1)=>{t||C(!0);try{let t=await fetch(`/api/nodes?force=${e}`);if(t.ok){let e=await t.json(),n=e.nodes||[];if(c(n),u(e.summary||null),ee(Date.now()),ne(0),!oe.current&&n.length>0){let e=n.find(e=>e.status===`online`&&e.tools&&e.tools.length>0);if(e){oe.current=!0;let t=e.ports?.grpc??e.ports?.http,n=e.ports?.grpc?`grpc`:`http`,r=n===`grpc`?`${e.host}:${t}`:`http://${e.host}:${t}/mcp`,i=e.tools[0];se(r,n,i)}}}}catch(e){console.error(`Error scanning mesh nodes:`,e)}finally{t||C(!1)}},[se]),le=(0,b.useCallback)(async()=>{x(!0);try{let e={type:d};if(d===`stdio`){let t=p.trim().split(/\s+/);e.stdio={command:t[0],args:t.slice(1)}}else d===`http`?e.http={url:h.trim()}:d===`grpc`?e.grpc={target:_.trim()}:d===`mesh`&&(e.mesh={});let t=await fetch(`/api/connect`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}),n=await t.json();if(!t.ok)throw Error(n.error||`Failed to connect to target`);D(d===`stdio`?p:d===`http`?h:d===`grpc`?_:`Audit Mesh (8 Nodes Swarm)`),await k(),await A(),await ce(!0)}catch(e){let t=e instanceof Error?e.message:String(e);n?.({title:`Connection Failed`,desc:t})}finally{x(!1)}},[d,p,h,_,k,A,ce,n]);return(0,b.useEffect)(()=>{k(),A(),ce(!0)},[k,A,ce]),(0,b.useEffect)(()=>{let e=setInterval(()=>{k(),ce(!1,!0)},5e3);return()=>clearInterval(e)},[k,ce]),(0,b.useEffect)(()=>{let e=setInterval(()=>{ne(Math.floor((Date.now()-O)/1e3))},1e3);return()=>clearInterval(e)},[O]),{network:r,tools:a,nodes:s,scanSummary:l,targetType:d,setTargetType:f,stdioCmd:p,setStdioCmd:m,httpUrl:h,setHttpUrl:g,grpcTarget:_,setGrpcTarget:v,isConnecting:y,isScanning:S,loadingTools:w,activeConnectedTarget:E,lastScanTimestamp:O,secondsAgo:te,totalNodes:re,onlineNodes:ie,hasNodeStats:ae,fetchHealth:k,fetchTools:A,fetchNodes:ce,handleSwitchTarget:se,handleConnectTarget:le}}var kh=[{id:`hft`,name:`Market Analysis`,tool:`Analyze_HFT_Market_Data`,domain:`Financial HFT`,clearanceTier:`Tier 2`,description:`Computes VWAP and average HFT spreads with differential privacy utility preservation.`,code:`@LIOP{wasi_v1, HftAnalysis}
|
|
99
|
+
const ticks = env.records;
|
|
100
|
+
// Calculate VWAP and average bid/ask spreads
|
|
101
|
+
let sumPriceVol = 0;
|
|
102
|
+
let sumVol = 0;
|
|
103
|
+
let sumSpread = 0;
|
|
104
|
+
|
|
105
|
+
for (let i = 0; i < ticks.length; i++) {
|
|
106
|
+
const t = ticks[i];
|
|
107
|
+
const price = (t.bestBid + t.bestAsk) / 2;
|
|
108
|
+
sumPriceVol += price * t.volume;
|
|
109
|
+
sumVol += t.volume;
|
|
110
|
+
sumSpread += (t.bestAsk - t.bestBid);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
ticksProcessed: ticks.length,
|
|
115
|
+
vwap: sumVol > 0 ? sumPriceVol / sumVol : 0,
|
|
116
|
+
avgSpreadBps: ticks.length > 0 ? (sumSpread / ticks.length) * 10000 : 0
|
|
117
|
+
};
|
|
118
|
+
@END`},{id:`bank`,name:`Bank Aggregation`,tool:`Analyze_Synthetic_Bank_Transactions`,domain:`Core Banking`,clearanceTier:`Tier 1`,description:`Aggregates balances and account type distributions under zero-trust data sovereignty.`,code:`@LIOP{wasi_v1, BankAnalysis}
|
|
119
|
+
const records = env.records || [];
|
|
120
|
+
// Interactive filter: customize minimum balance threshold (try 0, 50000, or 100000)
|
|
121
|
+
const MIN_BALANCE = 0;
|
|
122
|
+
|
|
123
|
+
const filtered = records.filter(r => (r.balance || 0) >= MIN_BALANCE);
|
|
124
|
+
// Sum balances and count account types with data sovereignty
|
|
125
|
+
const stats = filtered.reduce((acc, row) => {
|
|
126
|
+
acc.totalBalance += (row.balance || 0);
|
|
127
|
+
acc.accountsByType[row.accountType] = (acc.accountsByType[row.accountType] || 0) + 1;
|
|
128
|
+
return acc;
|
|
129
|
+
}, { totalBalance: 0, accountsByType: {} });
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
totalAccounts: filtered.length,
|
|
133
|
+
totalBalance: Number(stats.totalBalance.toFixed(2)),
|
|
134
|
+
averageBalance: filtered.length > 0 ? Number((stats.totalBalance / filtered.length).toFixed(2)) : 0,
|
|
135
|
+
distribution: stats.accountsByType
|
|
136
|
+
};
|
|
137
|
+
@END`},{id:`vault`,name:`Medical Stats`,tool:`Analyze_Synthetic_Medical_Records`,domain:`Healthcare`,clearanceTier:`Tier 1`,description:`Anonymized diagnostic distributions and mean patient age calculation.`,code:`@LIOP{wasi_v1, MedicalStats}
|
|
138
|
+
const patients = env.records || [];
|
|
139
|
+
// Interactive filter: customize minimum patient age (try 0, 40, or 60)
|
|
140
|
+
const MIN_AGE = 0;
|
|
141
|
+
|
|
142
|
+
const filtered = patients.filter(p => (p.age || 0) >= MIN_AGE);
|
|
143
|
+
// Analyze diagnosis distribution and mean patient age
|
|
144
|
+
const stats = filtered.reduce((acc, p) => {
|
|
145
|
+
acc.diagnoses[p.diagnosis] = (acc.diagnoses[p.diagnosis] || 0) + 1;
|
|
146
|
+
acc.totalAge += (p.age || 0);
|
|
147
|
+
return acc;
|
|
148
|
+
}, { diagnoses: {}, totalAge: 0 });
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
totalPatients: filtered.length,
|
|
152
|
+
averageAge: filtered.length > 0 ? Number((stats.totalAge / filtered.length).toFixed(1)) : 0,
|
|
153
|
+
diagnosesDistribution: stats.diagnoses
|
|
154
|
+
};
|
|
155
|
+
@END`},{id:`blg_perimeter`,name:`Enclave Perimeter`,tool:`BLG_Inspect_Enclave_Perimeter`,domain:`Perimeter Security`,clearanceTier:`Tier 2`,description:`Audits the physical subnets, pnet PSK isolation, and 6-layer zero-trust defense of Tier 1.`,code:`@LIOP{wasi_v1, PerimeterAudit}
|
|
156
|
+
// Audits physical subnet boundaries and cryptographic isolation status
|
|
157
|
+
return {
|
|
158
|
+
target: "Tier 1 Sovereign Enclave",
|
|
159
|
+
protocol: "LIOP Multi-Tier Zero-Trust",
|
|
160
|
+
layerAudit: [
|
|
161
|
+
"Layer 1: Guardian AST",
|
|
162
|
+
"Layer 2: WASI Sandbox",
|
|
163
|
+
"Layer 3: Taint Analyzer (IFC)",
|
|
164
|
+
"Layer 4: Egress PII Shield",
|
|
165
|
+
"Layer 5: Aggregation-First Policy",
|
|
166
|
+
"Layer 6: ZK-Receipt (HMAC-SHA256)",
|
|
167
|
+
"Transport: pnet Swarm Key (PSK)"
|
|
168
|
+
]
|
|
169
|
+
};
|
|
170
|
+
@END`},{id:`pii_attack`,name:`PII Attack`,tool:`Analyze_Synthetic_Bank_Transactions`,domain:`Adversarial`,clearanceTier:`Exfiltration Trap`,description:`Adversarial attempt to exfiltrate individual raw rows (Intercepted by Egress Shield).`,code:`@LIOP{wasi_v1, PiiAttack}
|
|
171
|
+
const records = env.records;
|
|
172
|
+
// Attempt to exfiltrate individual raw records
|
|
173
|
+
// This will be intercepted and blocked by the Egress PII Shield
|
|
174
|
+
return {
|
|
175
|
+
confidentialData: records.map(r => ({
|
|
176
|
+
name: r.accountHolder || r.ownerName,
|
|
177
|
+
id: r.id || r.ownerId,
|
|
178
|
+
balance: r.balance
|
|
179
|
+
}))
|
|
180
|
+
};
|
|
181
|
+
@END`},{id:`iot`,name:`IoT Telemetry`,tool:`Analyze_IoT_Sensor_Data`,domain:`Industrial IoT`,clearanceTier:`Tier 2`,description:`Aggregates edge sensor metrics (temperature, vibration, status) under hostile WAN/3G latency.`,code:`@LIOP{wasi_v1, IoTTelemetry}
|
|
182
|
+
const records = env.records;
|
|
183
|
+
// Aggregate industrial sensor telemetry on edge node
|
|
184
|
+
let sumTemp = 0;
|
|
185
|
+
let maxTemp = -999;
|
|
186
|
+
let criticalAlerts = 0;
|
|
187
|
+
const distribution = {};
|
|
188
|
+
|
|
189
|
+
for (let i = 0; i < records.length; i++) {
|
|
190
|
+
const r = records[i];
|
|
191
|
+
sumTemp += (r.temperatureCelsius || 0);
|
|
192
|
+
if (r.temperatureCelsius > maxTemp) maxTemp = r.temperatureCelsius;
|
|
193
|
+
if (r.status === "CRITICAL") criticalAlerts++;
|
|
194
|
+
distribution[r.status] = (distribution[r.status] || 0) + 1;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return {
|
|
198
|
+
totalSamples: records.length,
|
|
199
|
+
avgTemperature: records.length > 0 ? Number((sumTemp / records.length).toFixed(1)) : 0,
|
|
200
|
+
maxTemperature: Number(maxTemp.toFixed(1)),
|
|
201
|
+
criticalCount: criticalAlerts,
|
|
202
|
+
statusDistribution: distribution
|
|
203
|
+
};
|
|
204
|
+
@END`},{id:`blg_bank`,name:`BLG Banking Analytics`,tool:`BLG_Execute_Banking_Analytics`,domain:`Perimeter Routing`,clearanceTier:`Tier 1 Gateway`,description:`Securely routes banking analytical logic into the Tier 1 Enclave via Border LIO Gateway.`,code:`@LIOP{wasi_v1, BankViaBLG}
|
|
205
|
+
const records = env.records || [];
|
|
206
|
+
// Aggregate banking transactions across the secure enclave boundary
|
|
207
|
+
let totalBalance = 0;
|
|
208
|
+
const accountsByType = {};
|
|
209
|
+
|
|
210
|
+
for (let i = 0; i < records.length; i++) {
|
|
211
|
+
const r = records[i];
|
|
212
|
+
totalBalance += (r.balance || 0);
|
|
213
|
+
const type = r.accountType || "STANDARD";
|
|
214
|
+
accountsByType[type] = (accountsByType[type] || 0) + 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
return {
|
|
218
|
+
enclave: "Tier 1 Sovereign Core",
|
|
219
|
+
totalAccounts: records.length,
|
|
220
|
+
totalBalance: Number(totalBalance.toFixed(2)),
|
|
221
|
+
distribution: accountsByType,
|
|
222
|
+
gatewayVerified: true
|
|
223
|
+
};
|
|
224
|
+
@END`},{id:`blg_healthcare`,name:`BLG Healthcare Analytics`,tool:`BLG_Execute_Healthcare_Analytics`,domain:`Perimeter Routing`,clearanceTier:`Tier 1 Gateway`,description:`Securely routes clinical health metrics into the Tier 1 Enclave via Border LIO Gateway.`,code:`@LIOP{wasi_v1, HealthcareViaBLG}
|
|
225
|
+
const records = env.records || [];
|
|
226
|
+
// Aggregate clinical records across the secure enclave boundary
|
|
227
|
+
let totalAge = 0;
|
|
228
|
+
const diagnoses = {};
|
|
229
|
+
|
|
230
|
+
for (let i = 0; i < records.length; i++) {
|
|
231
|
+
const p = records[i];
|
|
232
|
+
totalAge += (p.age || 0);
|
|
233
|
+
const diag = p.diagnosis || "UNCATEGORIZED";
|
|
234
|
+
diagnoses[diag] = (diagnoses[diag] || 0) + 1;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
return {
|
|
238
|
+
enclave: "Tier 1 Healthcare Core",
|
|
239
|
+
totalPatients: records.length,
|
|
240
|
+
averageAge: records.length > 0 ? Number((totalAge / records.length).toFixed(1)) : 0,
|
|
241
|
+
distribution: diagnoses,
|
|
242
|
+
gatewayVerified: true
|
|
243
|
+
};
|
|
244
|
+
@END`},{id:`mesh_status`,name:`Mesh Telemetry`,tool:`LiopMeshStatus`,domain:`Mesh Protocol`,clearanceTier:`Tier 2`,description:`Queries internal peer telemetry, routing table health, and active Kademlia DHT state.`,code:`@LIOP{wasi_v1, MeshTelemetry}
|
|
245
|
+
// Query local mesh telemetry and routing status
|
|
246
|
+
return {
|
|
247
|
+
protocol: "LIOP/2026",
|
|
248
|
+
nodeRole: env.role || "Consortium Node",
|
|
249
|
+
status: "ACTIVE_IN_SITU",
|
|
250
|
+
verifiedDataSovereignty: true
|
|
251
|
+
};
|
|
252
|
+
@END`},{id:`universal_compute`,name:`Universal In-Situ Compute`,tool:`Execute_WASI_Logic`,domain:`Universal / Any Target`,clearanceTier:`Agnostic`,description:`General-purpose logic injection template adaptable to any tool, schema, or origin dataset.`,code:`@LIOP{wasi_v1, UniversalCompute}
|
|
253
|
+
// Safe in-situ computation over injected dataset or arguments
|
|
254
|
+
const records = env.records || [];
|
|
255
|
+
const args = params.arguments || {};
|
|
256
|
+
|
|
257
|
+
// Process records or input arguments deterministically
|
|
258
|
+
const count = Array.isArray(records) ? records.length : (records ? 1 : 0);
|
|
259
|
+
|
|
260
|
+
return {
|
|
261
|
+
status: "COMPUTED_IN_SITU",
|
|
262
|
+
datasetSize: count,
|
|
263
|
+
providedArgs: Object.keys(args),
|
|
264
|
+
summary: "Logic executed directly at data origin under Zero-Trust WASI sandbox",
|
|
265
|
+
verifiedInSitu: true
|
|
266
|
+
};
|
|
267
|
+
@END`}];function Ah(){let[e,t]=(0,b.useState)(()=>localStorage.getItem(`liop_playground_theme`)||`obsidian`);(0,b.useEffect)(()=>{document.documentElement.setAttribute(`data-theme`,e),document.documentElement.classList.remove(`theme-obsidian`,`theme-slate`),document.documentElement.classList.add(`theme-${e}`),localStorage.setItem(`liop_playground_theme`,e)},[e]);let[n,r]=(0,b.useState)(`output`),[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(`logic`),[c,l]=(0,b.useState)({}),{isRunning:u,result:d,meta:f,errorAlert:p,setErrorAlert:m,timeline:h,handleExecute:g}=Dh(),{network:_,tools:v,nodes:y,scanSummary:x,targetType:S,setTargetType:C,stdioCmd:w,setStdioCmd:T,httpUrl:E,setHttpUrl:D,grpcTarget:O,setGrpcTarget:ee,isConnecting:te,isScanning:ne,loadingTools:re,activeConnectedTarget:ie,secondsAgo:ae,totalNodes:oe,onlineNodes:k,hasNodeStats:A,fetchHealth:se,fetchTools:ce,fetchNodes:le,handleSwitchTarget:j,handleConnectTarget:M}=Oh({onError:e=>m(e),onTargetSwitched:e=>{e&&ue(e)}}),[N,ue]=(0,b.useState)(null),[P,de]=(0,b.useState)(kh[0].id),[fe,pe]=(0,b.useState)(kh[0].tool),[me,he]=(0,b.useState)(kh[0].code),ge=(0,b.useMemo)(()=>{let e=[];for(let t of kh){let n=t.tool.toLowerCase().replace(/_/g,``),r=v.some(e=>e.name.toLowerCase()===t.tool.toLowerCase()||e.name.toLowerCase().replace(/_/g,``)===n),i=y.some(e=>e.status===`online`&&e.tools&&e.tools.some(e=>e.toLowerCase()===t.tool.toLowerCase()||e.toLowerCase().replace(/_/g,``)===n));(r||i)&&e.push(t)}for(let t of v)if(!e.some(e=>e.tool.toLowerCase()===t.name.toLowerCase())){let n=t.name.replace(/[^a-zA-Z0-9]/g,``)||`OriginAnalysis`;e.push({id:`dyn-${t.name}`,name:t.name.replace(/_/g,` `),tool:t.name,domain:t.domain||`Dynamic Origin Capability`,clearanceTier:`Tier ${t.tier||1}`,description:t.description||`Dynamic Logic-on-Origin capability discovered on target node.`,code:`@LIOP{wasi_v1, ${n}}
|
|
268
|
+
const records = env.records || [];
|
|
269
|
+
// Return aggregated telemetry under zero-trust privacy
|
|
270
|
+
return {
|
|
271
|
+
totalRecords: Array.isArray(records) ? records.length : (records ? 1 : 0),
|
|
272
|
+
executionStatus: "PROCESSED_ON_ORIGIN",
|
|
273
|
+
verifiedInSitu: true
|
|
274
|
+
};
|
|
275
|
+
@END`})}return e.length>0?e:kh},[v,y]);(0,b.useEffect)(()=>{if(ge.length>0){if(N){let e=ge.find(e=>e.tool.toLowerCase()===N.toLowerCase()||e.tool.toLowerCase().replace(/_/g,``)===N.toLowerCase().replace(/_/g,``));if(e){de(e.id),pe(e.tool),he(e.code),ue(null);return}}if(!ge.find(e=>e.id===P)){let e=ge[0];de(e.id),pe(e.tool),he(e.code)}}},[ge,P,N]);let _e=(0,b.useCallback)(e=>{let t=ge.find(t=>t.id===e)||kh.find(t=>t.id===e);if(!t)return;let n=t.tool.toLowerCase().replace(/_/g,``),r=y.find(e=>e.status===`online`&&(e.tools&&e.tools.some(e=>e.toLowerCase()===t.tool.toLowerCase()||e.toLowerCase().replace(/_/g,``)===n)||t.id===`perimeter`&&e.id===`blg`||t.id===`blg_banking`&&e.id===`blg`||t.id===`blg_healthcare`&&e.id===`blg`||t.id===`bank`&&e.id===`bank`||t.id===`vault`&&e.id===`vault`||t.id===`market`&&e.id===`oracle`||t.id===`iot`&&e.id===`edge`||t.id===`pii_attack`&&e.id===`bank`||t.id===`mesh`&&(e.id===`relay`||e.id===`oracle`)));if(r){let e=r.ports?.grpc??r.ports?.http,n=r.ports?.grpc?`grpc`:`http`,i=n===`grpc`?`${r.host}:${e}`:`http://${r.host}:${e}/mcp`;if(ie!==i){ue(t.tool),de(t.id),he(t.code),pe(t.tool),j(i,n,t.tool);return}}de(t.id),he(t.code),pe(t.tool)},[ge,y,ie,j]),ve=(0,b.useCallback)(e=>{pe(e);let t=ge.find(t=>t.tool.toLowerCase()===e.toLowerCase()||t.tool.toLowerCase().replace(/_/g,``)===e.toLowerCase().replace(/_/g,``))||kh.find(t=>t.tool.toLowerCase()===e.toLowerCase()||t.tool.toLowerCase().replace(/_/g,``)===e.toLowerCase().replace(/_/g,``));t&&(de(t.id),he(t.code))},[ge]),ye=(0,b.useCallback)(()=>{let e=ge.find(e=>e.id===P);e&&he(e.code)},[ge,P]),be=(0,b.useCallback)(e=>{if(!e||v.length===0)return!1;let t=e.toLowerCase().replace(/_/g,``);return v.some(n=>n.name.toLowerCase()===e.toLowerCase()||n.name.toLowerCase().replace(/_/g,``)===t)},[v]),xe=(0,b.useMemo)(()=>ge.find(e=>e.id===P),[ge,P]),Se=(0,b.useMemo)(()=>be(o===`form`?fe:xe?.tool||fe),[o,fe,xe,be]),Ce=(0,b.useMemo)(()=>v.find(e=>e.name===fe),[v,fe]),we=()=>{g({targetTool:fe||xe?.tool||ge[0]?.tool||``,executionMode:o,code:me,formArgs:c,targetType:S})},Te=(0,b.useMemo)(()=>{let e=new Set;for(let t of y)t.status===`online`&&(t.tier===1||t.tier===2||t.tier===3)&&e.add(t.tier);return e},[y]),Ee=Te.size>0;return(0,F.jsxs)(`div`,{className:`min-h-screen bg-background flex flex-col font-sans antialiased text-foreground selection:bg-primary/20 selection:text-primary`,children:[(0,F.jsx)(Ch,{onlineNodes:k,totalNodes:oe,hasNodeStats:A,isScanning:ne,secondsAgo:ae,theme:e,onThemeChange:t,onRescan:()=>{le(!0,!1),ce(),se()}}),(0,F.jsx)(Th,{targetType:S,onTargetTypeChange:C,stdioCmd:w,onStdioCmdChange:T,httpUrl:E,onHttpUrlChange:D,grpcTarget:O,onGrpcTargetChange:ee,onConnect:M,isConnecting:te,activeConnectedTarget:ie,connected:_?.status===`healthy`}),(0,F.jsx)(`main`,{className:`flex-1 max-w-7xl w-full mx-auto p-4 md:p-6 flex flex-col gap-6`,children:(0,F.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-6 items-start`,children:[(0,F.jsx)(xh,{tools:v,nodes:y,scanSummary:x,onlineNodes:k,totalNodes:oe,hasNodeStats:A,isScanning:ne,loadingTools:re,targetType:S,activeConnectedTarget:ie,selectedToolName:fe,onSelectTool:ve,onSwitchTarget:j}),(0,F.jsxs)(`section`,{className:`lg:col-span-8 flex flex-col space-y-6`,children:[(0,F.jsx)(Gf,{executionMode:o,onExecutionModeChange:s,availableTemplates:ge,selectedTemplateId:P,onSelectTemplate:_e,selectedToolName:fe,onSelectTool:ve,code:me,onCodeChange:he,isRunning:u,tools:v,isCurrentToolSupported:Se,currentTemplate:xe,currentToolObj:Ce,activeConnectedTarget:ie,isNetworkHealthy:_?.status===`healthy`,formArgs:c,onFormArgChange:(e,t)=>l(n=>({...n,[e]:t})),onResetTemplate:ye,onExecute:we,onOpenExportTab:()=>r(`export`),onOpenEnvModal:()=>a(!0)}),(0,F.jsx)(yh,{timeline:h,result:d,meta:f,errorAlert:p,isRunning:u,code:me,selectedToolName:fe,targetType:S,grpcTarget:O,httpUrl:E,stdioCmd:w,activeTab:n,onTabChange:r})]})]})}),(0,F.jsx)(Pe,{isOpen:i,onClose:()=>a(!1),toolName:fe||`Analyze_Synthetic_Bank_Transactions`,tool:Ce}),(0,F.jsx)(`footer`,{className:`border-t border-border bg-card/60 py-3 mt-auto transition-colors`,children:(0,F.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 flex flex-col sm:flex-row items-center justify-between text-[11px] text-zinc-400 gap-2`,children:[(0,F.jsx)(`div`,{children:`© 2026 Nekzus Solutions. Logic-Injection-on-Origin Protocol (LIOP).`}),(0,F.jsxs)(`div`,{className:`flex items-center space-x-4`,children:[(0,F.jsxs)(`span`,{className:`flex items-center gap-1 font-mono`,children:[(0,F.jsx)(`span`,{className:`inline-block w-1.5 h-1.5 rounded-full ${k>0?`bg-success`:`bg-rose-500`}`}),(0,F.jsx)(`span`,{className:`text-zinc-300`,children:Ee?`P2P Mesh: Multi-Tier Zero-Trust`:`Runtime: Direct Origin Execution`})]}),(0,F.jsx)(`span`,{className:`font-mono text-zinc-300`,children:k>0?Ee?`${k} Nodes Verified Across ${Te.size} Layers`:`${k} Target Node${k>1?`s`:``} Online & Verified`:`Target Inactive (Offline)`})]})]})})]})}var jh=document.getElementById(`root`);jh&&(0,x.createRoot)(jh).render((0,F.jsx)(b.StrictMode,{children:(0,F.jsx)(Ah,{})}));
|