@omniviewdev/providers 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Ke=Object.create;var dt=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Ze=Object.getPrototypeOf,tn=Object.prototype.hasOwnProperty;var xt=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),D=(t,i)=>{for(var l in i)dt(t,l,{get:i[l],enumerable:!0})},ve=(t,i,l,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of Xe(i))!tn.call(t,p)&&p!==l&&dt(t,p,{get:()=>i[p],enumerable:!(c=Qe(i,p))||c.enumerable});return t};var be=(t,i,l)=>(l=t!=null?Ke(Ze(t)):{},ve(i||!t||!t.__esModule?dt(l,"default",{value:t,enumerable:!0}):l,t)),en=t=>ve(dt({},"__esModule",{value:!0}),t);var Ge=xt(_=>{"use strict";var qt=Symbol.for("react.transitional.element"),zo=Symbol.for("react.portal"),Yo=Symbol.for("react.fragment"),Bo=Symbol.for("react.strict_mode"),qo=Symbol.for("react.profiler"),Ko=Symbol.for("react.consumer"),Qo=Symbol.for("react.context"),Xo=Symbol.for("react.forward_ref"),Zo=Symbol.for("react.suspense"),ts=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),es=Symbol.for("react.activity"),Te=Symbol.iterator;function ns(t){return t===null||typeof t!="object"?null:(t=Te&&t[Te]||t["@@iterator"],typeof t=="function"?t:null)}var De={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Me=Object.assign,Ve={};function X(t,i,l){this.props=t,this.context=i,this.refs=Ve,this.updater=l||De}X.prototype.isReactComponent={};X.prototype.setState=function(t,i){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,i,"setState")};X.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function je(){}je.prototype=X.prototype;function Kt(t,i,l){this.props=t,this.context=i,this.refs=Ve,this.updater=l||De}var Qt=Kt.prototype=new je;Qt.constructor=Kt;Me(Qt,X.prototype);Qt.isPureReactComponent=!0;var ke=Array.isArray;function Bt(){}var F={H:null,A:null,T:null,S:null},Le=Object.prototype.hasOwnProperty;function Xt(t,i,l){var c=l.ref;return{$$typeof:qt,type:t,key:i,ref:c!==void 0?c:null,props:l}}function rs(t,i){return Xt(t.type,i,t.props)}function Zt(t){return typeof t=="object"&&t!==null&&t.$$typeof===qt}function is(t){var i={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return i[l]})}var Fe=/\/+/g;function Yt(t,i){return typeof t=="object"&&t!==null&&t.key!=null?is(""+t.key):i.toString(36)}function os(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Bt,Bt):(t.status="pending",t.then(function(i){t.status==="pending"&&(t.status="fulfilled",t.value=i)},function(i){t.status==="pending"&&(t.status="rejected",t.reason=i)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Q(t,i,l,c,p){var w=typeof t;(w==="undefined"||w==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(w){case"bigint":case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case qt:case zo:o=!0;break;case Ae:return o=t._init,Q(o(t._payload),i,l,c,p)}}if(o)return p=p(t),o=c===""?"."+Yt(t,0):c,ke(p)?(l="",o!=null&&(l=o.replace(Fe,"$&/")+"/"),Q(p,i,l,"",function(a){return a})):p!=null&&(Zt(p)&&(p=rs(p,l+(p.key==null||t&&t.key===p.key?"":(""+p.key).replace(Fe,"$&/")+"/")+o)),i.push(p)),1;o=0;var n=c===""?".":c+":";if(ke(t))for(var g=0;g<t.length;g++)c=t[g],w=n+Yt(c,g),o+=Q(c,i,l,w,p);else if(g=ns(t),typeof g=="function")for(t=g.call(t),g=0;!(c=t.next()).done;)c=c.value,w=n+Yt(c,g++),o+=Q(c,i,l,w,p);else if(w==="object"){if(typeof t.then=="function")return Q(os(t),i,l,c,p);throw i=String(t),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return o}function mt(t,i,l){if(t==null)return t;var c=[],p=0;return Q(t,c,"","",function(w){return i.call(l,w,p++)}),c}function ss(t){if(t._status===-1){var i=t._result;i=i(),i.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=i)}if(t._status===1)return t._result.default;throw t._result}var Ne=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},as={map:mt,forEach:function(t,i,l){mt(t,function(){i.apply(this,arguments)},l)},count:function(t){var i=0;return mt(t,function(){i++}),i},toArray:function(t){return mt(t,function(i){return i})||[]},only:function(t){if(!Zt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};_.Activity=es;_.Children=as;_.Component=X;_.Fragment=Yo;_.Profiler=qo;_.PureComponent=Kt;_.StrictMode=Bo;_.Suspense=Zo;_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F;_.__COMPILER_RUNTIME={__proto__:null,c:function(t){return F.H.useMemoCache(t)}};_.cache=function(t){return function(){return t.apply(null,arguments)}};_.cacheSignal=function(){return null};_.cloneElement=function(t,i,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var c=Me({},t.props),p=t.key;if(i!=null)for(w in i.key!==void 0&&(p=""+i.key),i)!Le.call(i,w)||w==="key"||w==="__self"||w==="__source"||w==="ref"&&i.ref===void 0||(c[w]=i[w]);var w=arguments.length-2;if(w===1)c.children=l;else if(1<w){for(var o=Array(w),n=0;n<w;n++)o[n]=arguments[n+2];c.children=o}return Xt(t.type,p,c)};_.createContext=function(t){return t={$$typeof:Qo,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Ko,_context:t},t};_.createElement=function(t,i,l){var c,p={},w=null;if(i!=null)for(c in i.key!==void 0&&(w=""+i.key),i)Le.call(i,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(p[c]=i[c]);var o=arguments.length-2;if(o===1)p.children=l;else if(1<o){for(var n=Array(o),g=0;g<o;g++)n[g]=arguments[g+2];p.children=n}if(t&&t.defaultProps)for(c in o=t.defaultProps,o)p[c]===void 0&&(p[c]=o[c]);return Xt(t,w,p)};_.createRef=function(){return{current:null}};_.forwardRef=function(t){return{$$typeof:Xo,render:t}};_.isValidElement=Zt;_.lazy=function(t){return{$$typeof:Ae,_payload:{_status:-1,_result:t},_init:ss}};_.memo=function(t,i){return{$$typeof:ts,type:t,compare:i===void 0?null:i}};_.startTransition=function(t){var i=F.T,l={};F.T=l;try{var c=t(),p=F.S;p!==null&&p(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(Bt,Ne)}catch(w){Ne(w)}finally{i!==null&&l.types!==null&&(i.types=l.types),F.T=i}};_.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()};_.use=function(t){return F.H.use(t)};_.useActionState=function(t,i,l){return F.H.useActionState(t,i,l)};_.useCallback=function(t,i){return F.H.useCallback(t,i)};_.useContext=function(t){return F.H.useContext(t)};_.useDebugValue=function(){};_.useDeferredValue=function(t,i){return F.H.useDeferredValue(t,i)};_.useEffect=function(t,i){return F.H.useEffect(t,i)};_.useEffectEvent=function(t){return F.H.useEffectEvent(t)};_.useId=function(){return F.H.useId()};_.useImperativeHandle=function(t,i,l){return F.H.useImperativeHandle(t,i,l)};_.useInsertionEffect=function(t,i){return F.H.useInsertionEffect(t,i)};_.useLayoutEffect=function(t,i){return F.H.useLayoutEffect(t,i)};_.useMemo=function(t,i){return F.H.useMemo(t,i)};_.useOptimistic=function(t,i){return F.H.useOptimistic(t,i)};_.useReducer=function(t,i,l){return F.H.useReducer(t,i,l)};_.useRef=function(t){return F.H.useRef(t)};_.useState=function(t){return F.H.useState(t)};_.useSyncExternalStore=function(t,i,l){return F.H.useSyncExternalStore(t,i,l)};_.useTransition=function(){return F.H.useTransition()};_.version="19.2.4"});var Ie=xt((x,yt)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(r,u){Object.defineProperty(c.prototype,r,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function i(r){return r===null||typeof r!="object"?null:(r=M&&r[M]||r["@@iterator"],typeof r=="function"?r:null)}function l(r,u){r=(r=r.constructor)&&(r.displayName||r.name)||"ReactClass";var f=r+"."+u;se[f]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,r),se[f]=!0)}function c(r,u,f){this.props=r,this.context=u,this.refs=bt,this.updater=f||ae}function p(){}function w(r,u,f){this.props=r,this.context=u,this.refs=bt,this.updater=f||ae}function o(){}function n(r){return""+r}function g(r){try{n(r);var u=!1}catch{u=!0}if(u){u=console;var f=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),n(r)}}function a(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===$e?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case y:return"Profiler";case k:return"StrictMode";case ie:return"Suspense";case He:return"SuspenseList";case oe:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case e:return"Portal";case ne:return r.displayName||"Context";case ht:return(r._context.displayName||"Context")+".Consumer";case re:var u=r.render;return r=r.displayName,r||(r=u.displayName||u.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case vt:return u=r.displayName||null,u!==null?u:a(r.type)||"Memo";case rt:u=r._payload,r=r._init;try{return a(r(u))}catch{}}return null}function m(r){if(r===S)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===rt)return"<...>";try{var u=a(r);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function j(){var r=E.A;return r===null?null:r.getOwner()}function P(){return Error("react-stack-top-frame")}function Z(r){if(lt.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function s(r,u){function f(){pe||(pe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}function v(){var r=a(this.type);return ge[r]||(ge[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function N(r,u,f,d,h,R){var O=f.ref;return r={$$typeof:wt,type:r,key:u,props:f,_owner:d},(O!==void 0?O:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:v}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function b(r,u){return u=N(r.type,u,r.props,r._owner,r._debugStack,r._debugTask),r._store&&(u._store.validated=r._store.validated),u}function tt(r){G(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===rt&&(r._payload.status==="fulfilled"?G(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function G(r){return typeof r=="object"&&r!==null&&r.$$typeof===wt}function ut(r){var u={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(f){return u[f]})}function z(r,u){return typeof r=="object"&&r!==null&&r.key!=null?(g(r.key),ut(""+r.key)):u.toString(36)}function et(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(o,o):(r.status="pending",r.then(function(u){r.status==="pending"&&(r.status="fulfilled",r.value=u)},function(u){r.status==="pending"&&(r.status="rejected",r.reason=u)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function I(r,u,f,d,h){var R=typeof r;(R==="undefined"||R==="boolean")&&(r=null);var O=!1;if(r===null)O=!0;else switch(R){case"bigint":case"string":case"number":O=!0;break;case"object":switch(r.$$typeof){case wt:case e:O=!0;break;case rt:return O=r._init,I(O(r._payload),u,f,d,h)}}if(O){O=r,h=h(O);var T=d===""?"."+z(O,0):d;return ce(h)?(f="",T!=null&&(f=T.replace(me,"$&/")+"/"),I(h,u,f,"",function(J){return J})):h!=null&&(G(h)&&(h.key!=null&&(O&&O.key===h.key||g(h.key)),f=b(h,f+(h.key==null||O&&O.key===h.key?"":(""+h.key).replace(me,"$&/")+"/")+T),d!==""&&O!=null&&G(O)&&O.key==null&&O._store&&!O._store.validated&&(f._store.validated=2),h=f),u.push(h)),1}if(O=0,T=d===""?".":d+":",ce(r))for(var C=0;C<r.length;C++)d=r[C],R=T+z(d,C),O+=I(d,u,f,R,h);else if(C=i(r),typeof C=="function")for(C===r.entries&&(de||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),de=!0),r=C.call(r),C=0;!(d=r.next()).done;)d=d.value,R=T+z(d,C++),O+=I(d,u,f,R,h);else if(R==="object"){if(typeof r.then=="function")return I(et(r),u,f,d,h);throw u=String(r),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return O}function U(r,u,f){if(r==null)return r;var d=[],h=0;return I(r,d,"","",function(R){return u.call(f,R,h++)}),d}function ct(r){if(r._status===-1){var u=r._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=r._result;var f=u();if(f.then(function(h){if(r._status===0||r._status===-1){r._status=1,r._result=h;var R=r._ioInfo;R!=null&&(R.end=performance.now()),f.status===void 0&&(f.status="fulfilled",f.value=h)}},function(h){if(r._status===0||r._status===-1){r._status=2,r._result=h;var R=r._ioInfo;R!=null&&(R.end=performance.now()),f.status===void 0&&(f.status="rejected",f.reason=h)}}),u=r._ioInfo,u!=null){u.value=f;var d=f.displayName;typeof d=="string"&&(u.name=d)}r._status===-1&&(r._status=0,r._result=f)}if(r._status===1)return u=r._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";var Be=Object.create;var yt=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ke=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var xt=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),j=(t,i)=>{for(var l in i)yt(t,l,{get:i[l],enumerable:!0})},me=(t,i,l,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of qe(i))!Qe.call(t,p)&&p!==l&&yt(t,p,{get:()=>i[p],enumerable:!(c=We(i,p))||c.enumerable});return t};var he=(t,i,l)=>(l=t!=null?Be(Ke(t)):{},me(i||!t||!t.__esModule?yt(l,"default",{value:t,enumerable:!0}):l,t)),Xe=t=>me(yt({},"__esModule",{value:!0}),t);var Ve=xt(x=>{"use strict";var zt=Symbol.for("react.transitional.element"),$i=Symbol.for("react.portal"),Yi=Symbol.for("react.fragment"),zi=Symbol.for("react.strict_mode"),Bi=Symbol.for("react.profiler"),Wi=Symbol.for("react.consumer"),qi=Symbol.for("react.context"),Ki=Symbol.for("react.forward_ref"),Qi=Symbol.for("react.suspense"),Xi=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Zi=Symbol.for("react.activity"),Oe=Symbol.iterator;function to(t){return t===null||typeof t!="object"?null:(t=Oe&&t[Oe]||t["@@iterator"],typeof t=="function"?t:null)}var Te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ne=Object.assign,Fe={};function Z(t,i,l){this.props=t,this.context=i,this.refs=Fe,this.updater=l||Te}Z.prototype.isReactComponent={};Z.prototype.setState=function(t,i){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,i,"setState")};Z.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ae(){}Ae.prototype=Z.prototype;function Bt(t,i,l){this.props=t,this.context=i,this.refs=Fe,this.updater=l||Te}var Wt=Bt.prototype=new Ae;Wt.constructor=Bt;Ne(Wt,Z.prototype);Wt.isPureReactComponent=!0;var Ee=Array.isArray;function Yt(){}var T={H:null,A:null,T:null,S:null},De=Object.prototype.hasOwnProperty;function qt(t,i,l){var c=l.ref;return{$$typeof:zt,type:t,key:i,ref:c!==void 0?c:null,props:l}}function eo(t,i){return qt(t.type,i,t.props)}function Kt(t){return typeof t=="object"&&t!==null&&t.$$typeof===zt}function no(t){var i={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return i[l]})}var Ce=/\/+/g;function $t(t,i){return typeof t=="object"&&t!==null&&t.key!=null?no(""+t.key):i.toString(36)}function ro(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Yt,Yt):(t.status="pending",t.then(function(i){t.status==="pending"&&(t.status="fulfilled",t.value=i)},function(i){t.status==="pending"&&(t.status="rejected",t.reason=i)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function X(t,i,l,c,p){var h=typeof t;(h==="undefined"||h==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(h){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case zt:case $i:s=!0;break;case ke:return s=t._init,X(s(t._payload),i,l,c,p)}}if(s)return p=p(t),s=c===""?"."+$t(t,0):c,Ee(p)?(l="",s!=null&&(l=s.replace(Ce,"$&/")+"/"),X(p,i,l,"",function(a){return a})):p!=null&&(Kt(p)&&(p=eo(p,l+(p.key==null||t&&t.key===p.key?"":(""+p.key).replace(Ce,"$&/")+"/")+s)),i.push(p)),1;s=0;var n=c===""?".":c+":";if(Ee(t))for(var g=0;g<t.length;g++)c=t[g],h=n+$t(c,g),s+=X(c,i,l,h,p);else if(g=to(t),typeof g=="function")for(t=g.call(t),g=0;!(c=t.next()).done;)c=c.value,h=n+$t(c,g++),s+=X(c,i,l,h,p);else if(h==="object"){if(typeof t.then=="function")return X(ro(t),i,l,c,p);throw i=String(t),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return s}function mt(t,i,l){if(t==null)return t;var c=[],p=0;return X(t,c,"","",function(h){return i.call(l,h,p++)}),c}function io(t){if(t._status===-1){var i=t._result;i=i(),i.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=i)}if(t._status===1)return t._result.default;throw t._result}var Pe=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},oo={map:mt,forEach:function(t,i,l){mt(t,function(){i.apply(this,arguments)},l)},count:function(t){var i=0;return mt(t,function(){i++}),i},toArray:function(t){return mt(t,function(i){return i})||[]},only:function(t){if(!Kt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};x.Activity=Zi;x.Children=oo;x.Component=Z;x.Fragment=Yi;x.Profiler=Bi;x.PureComponent=Bt;x.StrictMode=zi;x.Suspense=Qi;x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T;x.__COMPILER_RUNTIME={__proto__:null,c:function(t){return T.H.useMemoCache(t)}};x.cache=function(t){return function(){return t.apply(null,arguments)}};x.cacheSignal=function(){return null};x.cloneElement=function(t,i,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var c=Ne({},t.props),p=t.key;if(i!=null)for(h in i.key!==void 0&&(p=""+i.key),i)!De.call(i,h)||h==="key"||h==="__self"||h==="__source"||h==="ref"&&i.ref===void 0||(c[h]=i[h]);var h=arguments.length-2;if(h===1)c.children=l;else if(1<h){for(var s=Array(h),n=0;n<h;n++)s[n]=arguments[n+2];c.children=s}return qt(t.type,p,c)};x.createContext=function(t){return t={$$typeof:qi,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Wi,_context:t},t};x.createElement=function(t,i,l){var c,p={},h=null;if(i!=null)for(c in i.key!==void 0&&(h=""+i.key),i)De.call(i,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(p[c]=i[c]);var s=arguments.length-2;if(s===1)p.children=l;else if(1<s){for(var n=Array(s),g=0;g<s;g++)n[g]=arguments[g+2];p.children=n}if(t&&t.defaultProps)for(c in s=t.defaultProps,s)p[c]===void 0&&(p[c]=s[c]);return qt(t,h,p)};x.createRef=function(){return{current:null}};x.forwardRef=function(t){return{$$typeof:Ki,render:t}};x.isValidElement=Kt;x.lazy=function(t){return{$$typeof:ke,_payload:{_status:-1,_result:t},_init:io}};x.memo=function(t,i){return{$$typeof:Xi,type:t,compare:i===void 0?null:i}};x.startTransition=function(t){var i=T.T,l={};T.T=l;try{var c=t(),p=T.S;p!==null&&p(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(Yt,Pe)}catch(h){Pe(h)}finally{i!==null&&l.types!==null&&(i.types=l.types),T.T=i}};x.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()};x.use=function(t){return T.H.use(t)};x.useActionState=function(t,i,l){return T.H.useActionState(t,i,l)};x.useCallback=function(t,i){return T.H.useCallback(t,i)};x.useContext=function(t){return T.H.useContext(t)};x.useDebugValue=function(){};x.useDeferredValue=function(t,i){return T.H.useDeferredValue(t,i)};x.useEffect=function(t,i){return T.H.useEffect(t,i)};x.useEffectEvent=function(t){return T.H.useEffectEvent(t)};x.useId=function(){return T.H.useId()};x.useImperativeHandle=function(t,i,l){return T.H.useImperativeHandle(t,i,l)};x.useInsertionEffect=function(t,i){return T.H.useInsertionEffect(t,i)};x.useLayoutEffect=function(t,i){return T.H.useLayoutEffect(t,i)};x.useMemo=function(t,i){return T.H.useMemo(t,i)};x.useOptimistic=function(t,i){return T.H.useOptimistic(t,i)};x.useReducer=function(t,i,l){return T.H.useReducer(t,i,l)};x.useRef=function(t){return T.H.useRef(t)};x.useState=function(t){return T.H.useState(t)};x.useSyncExternalStore=function(t,i,l){return T.H.useSyncExternalStore(t,i,l)};x.useTransition=function(){return T.H.useTransition()};x.version="19.2.4"});var je=xt((S,ht)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(r,u){Object.defineProperty(c.prototype,r,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function i(r){return r===null||typeof r!="object"?null:(r=D&&r[D]||r["@@iterator"],typeof r=="function"?r:null)}function l(r,u){r=(r=r.constructor)&&(r.displayName||r.name)||"ReactClass";var f=r+"."+u;re[f]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,r),re[f]=!0)}function c(r,u,f){this.props=r,this.context=u,this.refs=_t,this.updater=f||ie}function p(){}function h(r,u,f){this.props=r,this.context=u,this.refs=_t,this.updater=f||ie}function s(){}function n(r){return""+r}function g(r){try{n(r);var u=!1}catch{u=!0}if(u){u=console;var f=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),n(r)}}function a(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Ue?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case m:return"Profiler";case k:return"StrictMode";case ee:return"Suspense";case Je:return"SuspenseList";case ne:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case e:return"Portal";case Zt:return r.displayName||"Context";case vt:return(r._context.displayName||"Context")+".Consumer";case te:var u=r.render;return r=r.displayName,r||(r=u.displayName||u.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case bt:return u=r.displayName||null,u!==null?u:a(r.type)||"Memo";case it:u=r._payload,r=r._init;try{return a(r(u))}catch{}}return null}function y(r){if(r===_)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===it)return"<...>";try{var u=a(r);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function G(){var r=O.A;return r===null?null:r.getOwner()}function A(){return Error("react-stack-top-frame")}function tt(r){if(pt.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function o(r,u){function f(){ue||(ue=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}function v(){var r=a(this.type);return le[r]||(le[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function N(r,u,f,d,w,E){var R=f.ref;return r={$$typeof:wt,type:r,key:u,props:f,_owner:d},(R!==void 0?R:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:v}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:w}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function b(r,u){return u=N(r.type,u,r.props,r._owner,r._debugStack,r._debugTask),r._store&&(u._store.validated=r._store.validated),u}function et(r){I(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===it&&(r._payload.status==="fulfilled"?I(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function I(r){return typeof r=="object"&&r!==null&&r.$$typeof===wt}function ct(r){var u={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(f){return u[f]})}function B(r,u){return typeof r=="object"&&r!==null&&r.key!=null?(g(r.key),ct(""+r.key)):u.toString(36)}function nt(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(s,s):(r.status="pending",r.then(function(u){r.status==="pending"&&(r.status="fulfilled",r.value=u)},function(u){r.status==="pending"&&(r.status="rejected",r.reason=u)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function J(r,u,f,d,w){var E=typeof r;(E==="undefined"||E==="boolean")&&(r=null);var R=!1;if(r===null)R=!0;else switch(E){case"bigint":case"string":case"number":R=!0;break;case"object":switch(r.$$typeof){case wt:case e:R=!0;break;case it:return R=r._init,J(R(r._payload),u,f,d,w)}}if(R){R=r,w=w(R);var P=d===""?"."+B(R,0):d;return se(w)?(f="",P!=null&&(f=P.replace(fe,"$&/")+"/"),J(w,u,f,"",function(H){return H})):w!=null&&(I(w)&&(w.key!=null&&(R&&R.key===w.key||g(w.key)),f=b(w,f+(w.key==null||R&&R.key===w.key?"":(""+w.key).replace(fe,"$&/")+"/")+P),d!==""&&R!=null&&I(R)&&R.key==null&&R._store&&!R._store.validated&&(f._store.validated=2),w=f),u.push(w)),1}if(R=0,P=d===""?".":d+":",se(r))for(var C=0;C<r.length;C++)d=r[C],E=P+B(d,C),R+=J(d,u,f,E,w);else if(C=i(r),typeof C=="function")for(C===r.entries&&(pe||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pe=!0),r=C.call(r),C=0;!(d=r.next()).done;)d=d.value,E=P+B(d,C++),R+=J(d,u,f,E,w);else if(E==="object"){if(typeof r.then=="function")return J(nt(r),u,f,d,w);throw u=String(r),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return R}function $(r,u,f){if(r==null)return r;var d=[],w=0;return J(r,d,"","",function(E){return u.call(f,E,w++)}),d}function lt(r){if(r._status===-1){var u=r._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=r._result;var f=u();if(f.then(function(w){if(r._status===0||r._status===-1){r._status=1,r._result=w;var E=r._ioInfo;E!=null&&(E.end=performance.now()),f.status===void 0&&(f.status="fulfilled",f.value=w)}},function(w){if(r._status===0||r._status===-1){r._status=2,r._result=w;var E=r._ioInfo;E!=null&&(E.end=performance.now()),f.status===void 0&&(f.status="rejected",f.reason=w)}}),u=r._ioInfo,u!=null){u.value=f;var d=f.displayName;typeof d=="string"&&(u.name=d)}r._status===-1&&(r._status=0,r._result=f)}if(r._status===1)return u=r._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -6,11 +6,11 @@ Your code should look like:
6
6
  Did you accidentally put curly braces around the import?`,u),"default"in u||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default;throw r._result}function A(){var r=E.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default;throw r._result}function F(){var r=O.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function nt(){E.asyncTransitions--}function H(r){if(pt===null)try{var u=("require"+Math.random()).slice(0,7);pt=(yt&&yt[u]).call(yt,"timers").setImmediate}catch{pt=function(d){we===!1&&(we=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var h=new MessageChannel;h.port1.onmessage=d,h.port2.postMessage(void 0)}}return pt(r)}function W(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function $(r,u){u!==ft-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ft=u}function Y(r,u,f){var d=E.actQueue;if(d!==null)if(d.length!==0)try{B(d),H(function(){return Y(r,u,f)});return}catch(h){E.thrownErrors.push(h)}else E.actQueue=null;0<E.thrownErrors.length?(d=W(E.thrownErrors),E.thrownErrors.length=0,f(d)):u(r)}function B(r){if(!St){St=!0;var u=0;try{for(;u<r.length;u++){var f=r[u];do{E.didUsePromise=!1;var d=f(!1);if(d!==null){if(E.didUsePromise){r[u]=f,r.splice(0,u);return}f=d}else break}while(!0)}r.length=0}catch(h){r.splice(0,u+1),E.thrownErrors.push(h)}finally{St=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var wt=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),ht=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),vt=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),M=Symbol.iterator,se={},ae={isMounted:function(){return!1},enqueueForceUpdate:function(r){l(r,"forceUpdate")},enqueueReplaceState:function(r){l(r,"replaceState")},enqueueSetState:function(r){l(r,"setState")}},ue=Object.assign,bt={};Object.freeze(bt),c.prototype.isReactComponent={},c.prototype.setState=function(r,u){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,u,"setState")},c.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(it in L)L.hasOwnProperty(it)&&t(it,L[it]);p.prototype=c.prototype,L=w.prototype=new p,L.constructor=w,ue(L,c.prototype),L.isPureReactComponent=!0;var ce=Array.isArray,$e=Symbol.for("react.client.reference"),E={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},lt=Object.prototype.hasOwnProperty,le=console.createTask?console.createTask:function(){return null};L={react_stack_bottom_frame:function(r){return r()}};var pe,fe,ge={},ze=L.react_stack_bottom_frame.bind(L,P)(),Ye=le(m(P)),de=!1,me=/\/+/g,ye=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},we=!1,pt=null,ft=0,gt=!1,St=!1,he=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:H;L=Object.freeze({__proto__:null,c:function(r){return A().useMemoCache(r)}});var it={map:U,forEach:function(r,u,f){U(r,function(){u.apply(this,arguments)},f)},count:function(r){var u=0;return U(r,function(){u++}),u},toArray:function(r){return U(r,function(u){return u})||[]},only:function(r){if(!G(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};x.Activity=oe,x.Children=it,x.Component=c,x.Fragment=S,x.Profiler=y,x.PureComponent=w,x.StrictMode=k,x.Suspense=ie,x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,x.__COMPILER_RUNTIME=L,x.act=function(r){var u=E.actQueue,f=ft;ft++;var d=E.actQueue=u!==null?u:[],h=!1;try{var R=r()}catch(C){E.thrownErrors.push(C)}if(0<E.thrownErrors.length)throw $(u,f),r=W(E.thrownErrors),E.thrownErrors.length=0,r;if(R!==null&&typeof R=="object"&&typeof R.then=="function"){var O=R;return he(function(){h||gt||(gt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(C,J){h=!0,O.then(function(q){if($(u,f),f===0){try{B(d),H(function(){return Y(q,C,J)})}catch(qe){E.thrownErrors.push(qe)}if(0<E.thrownErrors.length){var Be=W(E.thrownErrors);E.thrownErrors.length=0,J(Be)}}else C(q)},function(q){$(u,f),0<E.thrownErrors.length&&(q=W(E.thrownErrors),E.thrownErrors.length=0),J(q)})}}}var T=R;if($(u,f),f===0&&(B(d),d.length!==0&&he(function(){h||gt||(gt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),E.actQueue=null),0<E.thrownErrors.length)throw r=W(E.thrownErrors),E.thrownErrors.length=0,r;return{then:function(C,J){h=!0,f===0?(E.actQueue=d,H(function(){return Y(T,C,J)})):C(T)}}},x.cache=function(r){return function(){return r.apply(null,arguments)}},x.cacheSignal=function(){return null},x.captureOwnerStack=function(){var r=E.getCurrentStack;return r===null?null:r()},x.cloneElement=function(r,u,f){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var d=ue({},r.props),h=r.key,R=r._owner;if(u!=null){var O;t:{if(lt.call(u,"ref")&&(O=Object.getOwnPropertyDescriptor(u,"ref").get)&&O.isReactWarning){O=!1;break t}O=u.ref!==void 0}O&&(R=j()),Z(u)&&(g(u.key),h=""+u.key);for(T in u)!lt.call(u,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&u.ref===void 0||(d[T]=u[T])}var T=arguments.length-2;if(T===1)d.children=f;else if(1<T){O=Array(T);for(var C=0;C<T;C++)O[C]=arguments[C+2];d.children=O}for(d=N(r.type,h,d,R,r._debugStack,r._debugTask),h=2;h<arguments.length;h++)tt(arguments[h]);return d},x.createContext=function(r){return r={$$typeof:ne,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:ht,_context:r},r._currentRenderer=null,r._currentRenderer2=null,r},x.createElement=function(r,u,f){for(var d=2;d<arguments.length;d++)tt(arguments[d]);d={};var h=null;if(u!=null)for(C in fe||!("__self"in u)||"key"in u||(fe=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),Z(u)&&(g(u.key),h=""+u.key),u)lt.call(u,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(d[C]=u[C]);var R=arguments.length-2;if(R===1)d.children=f;else if(1<R){for(var O=Array(R),T=0;T<R;T++)O[T]=arguments[T+2];Object.freeze&&Object.freeze(O),d.children=O}if(r&&r.defaultProps)for(C in R=r.defaultProps,R)d[C]===void 0&&(d[C]=R[C]);h&&s(d,typeof r=="function"?r.displayName||r.name||"Unknown":r);var C=1e4>E.recentlyCreatedOwnerStacks++;return N(r,h,d,j(),C?Error("react-stack-top-frame"):ze,C?le(m(r)):Ye)},x.createRef=function(){var r={current:null};return Object.seal(r),r},x.forwardRef=function(r){r!=null&&r.$$typeof===vt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof r!="function"?console.error("forwardRef requires a render function but was given %s.",r===null?"null":typeof r):r.length!==0&&r.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",r.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),r!=null&&r.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:re,render:r},f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},x.isValidElement=G,x.lazy=function(r){r={_status:-1,_result:r};var u={$$typeof:rt,_payload:r,_init:ct},f={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return r._ioInfo=f,u._debugInfo=[{awaited:f}],u},x.memo=function(r,u){r==null&&console.error("memo: The first argument must be a component. Instead received: %s",r===null?"null":typeof r),u={$$typeof:vt,type:r,compare:u===void 0?null:u};var f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},x.startTransition=function(r){var u=E.T,f={};f._updatedFibers=new Set,E.T=f;try{var d=r(),h=E.S;h!==null&&h(f,d),typeof d=="object"&&d!==null&&typeof d.then=="function"&&(E.asyncTransitions++,d.then(nt,nt),d.then(o,ye))}catch(R){ye(R)}finally{u===null&&f._updatedFibers&&(r=f._updatedFibers.size,f._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&f.types!==null&&(u.types!==null&&u.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=f.types),E.T=u}},x.unstable_useCacheRefresh=function(){return A().useCacheRefresh()},x.use=function(r){return A().use(r)},x.useActionState=function(r,u,f){return A().useActionState(r,u,f)},x.useCallback=function(r,u){return A().useCallback(r,u)},x.useContext=function(r){var u=A();return r.$$typeof===ht&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(r)},x.useDebugValue=function(r,u){return A().useDebugValue(r,u)},x.useDeferredValue=function(r,u){return A().useDeferredValue(r,u)},x.useEffect=function(r,u){return r==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useEffect(r,u)},x.useEffectEvent=function(r){return A().useEffectEvent(r)},x.useId=function(){return A().useId()},x.useImperativeHandle=function(r,u,f){return A().useImperativeHandle(r,u,f)},x.useInsertionEffect=function(r,u){return r==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useInsertionEffect(r,u)},x.useLayoutEffect=function(r,u){return r==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useLayoutEffect(r,u)},x.useMemo=function(r,u){return A().useMemo(r,u)},x.useOptimistic=function(r,u){return A().useOptimistic(r,u)},x.useReducer=function(r,u,f){return A().useReducer(r,u,f)},x.useRef=function(r){return A().useRef(r)},x.useState=function(r){return A().useState(r)},x.useSyncExternalStore=function(r,u,f){return A().useSyncExternalStore(r,u,f)},x.useTransition=function(){return A().useTransition()},x.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var ee=xt((gs,te)=>{"use strict";process.env.NODE_ENV==="production"?te.exports=Ge():te.exports=Ie()});var cs={};D(cs,{PortForwardContext:()=>Je,app:()=>Rt,config:()=>ot,data:()=>Ct,devserver:()=>Pt,diagnostics:()=>Tt,exec:()=>kt,logs:()=>Ft,main:()=>_t,metric:()=>Nt,networker:()=>Vt,plugin:()=>Ot,pluginManager:()=>jt,registry:()=>Et,resource:()=>Lt,runtime:()=>Wt,settings:()=>Jt,settingsProvider:()=>Ut,time:()=>V,trivy:()=>Ht,types:()=>K,ui:()=>$t,useResourcePortForwarder:()=>Ue,utils:()=>zt});module.exports=en(cs);var ot;(n=>{class t{static createFrom(a={}){return new t(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email,this.url=a.url}}n.PluginAuthor=t;class i{static createFrom(a={}){return new i(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.plugin=a.plugin,this.area=a.area,this.resources=a.resources,this.extension=a.extension}}n.PluginResourceComponent=i;class l{static createFrom(a={}){return new l(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.resource=this.convertValues(a.resource,i)}convertValues(a,m,j=!1){if(!a)return a;if(a.slice&&a.map)return a.map(P=>this.convertValues(P,m));if(typeof a=="object"){if(j){for(let P of Object.keys(a))a[P]=new m(a[P]);return a}return new m(a)}return a}}n.PluginComponents=l;class c{static createFrom(a={}){return new c(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email}}n.PluginMaintainer=c;class p{static createFrom(a={}){return new p(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.primary=a.primary,this.secondary=a.secondary,this.tertiary=a.tertiary}}n.PluginThemeColors=p;class w{static createFrom(a={}){return new w(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.colors=this.convertValues(a.colors,p)}convertValues(a,m,j=!1){if(!a)return a;if(a.slice&&a.map)return a.map(P=>this.convertValues(P,m));if(typeof a=="object"){if(j){for(let P of Object.keys(a))a[P]=new m(a[P]);return a}return new m(a)}return a}}n.PluginTheme=w;class o{static createFrom(a={}){return new o(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.id=a.id,this.version=a.version,this.name=a.name,this.icon=a.icon,this.icon_url=a.icon_url,this.description=a.description,this.repository=a.repository,this.website=a.website,this.category=a.category,this.license=a.license,this.author=this.convertValues(a.author,t),this.maintainers=this.convertValues(a.maintainers,c),this.tags=a.tags,this.dependencies=a.dependencies,this.capabilities=a.capabilities,this.theme=this.convertValues(a.theme,w),this.components=this.convertValues(a.components,l)}convertValues(a,m,j=!1){if(!a)return a;if(a.slice&&a.map)return a.map(P=>this.convertValues(P,m));if(typeof a=="object"){if(j){for(let P of Object.keys(a))a[P]=new m(a[P]);return a}return new m(a)}return a}}n.PluginMeta=o})(ot||(ot={}));var Se;(p=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.pid=o.pid,this.protocol=o.protocol,this.protocolVersion=o.protocolVersion,this.addr=o.addr,this.vitePort=o.vitePort,this.pluginId=o.pluginId,this.version=o.version,this.startedAt=o.startedAt}}p.DevInfoFile=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o))}}p.DevServerManager=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.pluginID=o.pluginID,this.mode=o.mode,this.devPath=o.devPath,this.vitePort=o.vitePort,this.viteURL=o.viteURL,this.viteStatus=o.viteStatus,this.goStatus=o.goStatus,this.lastBuildDuration=o.lastBuildDuration,this.lastBuildTime=this.convertValues(o.lastBuildTime,V.Time),this.lastError=o.lastError,this.grpcConnected=o.grpcConnected}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.DevServerState=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,V.Time),this.source=o.source,this.level=o.level,this.message=o.message,this.pluginID=o.pluginID}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.LogEntry=c})(Se||(Se={}));var xe;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.created_at=this.convertValues(n.created_at,V.Time),this.labels=n.labels,this.params=n.params,this.id=n.id,this.command=n.command,this.attached=n.attached}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Session=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.session=this.convertValues(n.session,t),this.buffer=n.buffer}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.AttachSessionResult=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.labels=n.labels,this.command=n.command}}w.CreateTerminalOptions=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,K.ActionTargetBuilder),this.default_command=n.default_command}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Handler=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.params=n.params,this.labels=n.labels,this.id=n.id,this.resource_plugin=n.resource_plugin,this.resource_key=n.resource_key,this.resource_data=n.resource_data,this.command=n.command,this.tty=n.tty}}w.SessionOptions=p})(xe||(xe={}));var _e;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.target=n.target,this.follow=n.follow,this.include_previous=n.include_previous,this.include_timestamps=n.include_timestamps,this.tail_lines=n.tail_lines,this.since_seconds=n.since_seconds,this.since_time=this.convertValues(n.since_time,V.Time),this.limit_bytes=n.limit_bytes,this.include_source_events=n.include_source_events,this.params=n.params}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.LogSessionOptions=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_data=n.resource_data,this.options=this.convertValues(n.options,t)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.CreateSessionOptions=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,K.ActionTargetBuilder)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Handler=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.labels=n.labels}}w.LogSource=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.plugin_id=n.plugin_id,this.connection_id=n.connection_id,this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.options=this.convertValues(n.options,t),this.status=n.status,this.active_sources=this.convertValues(n.active_sources,c),this.created_at=this.convertValues(n.created_at,V.Time)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.LogSession=p})(_e||(_e={}));var _t;(l=>{class t{static createFrom(p={}){return new t(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.displayName=p.displayName,this.pattern=p.pattern}}l.FileFilter=t;class i{static createFrom(p={}){return new i(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.defaultDirectory=p.defaultDirectory,this.defaultFilename=p.defaultFilename,this.title=p.title,this.filters=this.convertValues(p.filters,t),this.showHiddenFiles=p.showHiddenFiles,this.canCreateDirectories=p.canCreateDirectories,this.resolvesAliases=p.resolvesAliases,this.treatPackagesAsDirectories=p.treatPackagesAsDirectories}convertValues(p,w,o=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,w));if(typeof p=="object"){if(o){for(let n of Object.keys(p))p[n]=new w(p[n]);return p}return new w(p)}return p}}l.FileDialogOptions=i})(_t||(_t={}));var Oe;(P=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.metric_id=s.metric_id,this.min=s.min,this.max=s.max,this.avg=s.avg,this.sum=s.sum,this.p50=s.p50,this.p90=s.p90,this.p99=s.p99,this.count=s.count,this.window=s.window,this.labels=s.labels}}P.AggregateValue=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.min=s.min,this.max=s.max,this.color=s.color}}P.ColorRange=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.metric_id=s.metric_id,this.value=s.value,this.timestamp=this.convertValues(s.timestamp,V.Time),this.labels=s.labels}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.CurrentValue=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.timestamp=this.convertValues(s.timestamp,V.Time),this.value=s.value,this.labels=s.labels}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.DataPoint=c;class p{static createFrom(s={}){return new p(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.id=s.id,this.name=s.name,this.unit=s.unit,this.icon=s.icon,this.color_ranges=this.convertValues(s.color_ranges,i),this.format_string=s.format_string,this.supported_shapes=s.supported_shapes,this.chart_group=s.chart_group}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.MetricDescriptor=p;class w{static createFrom(s={}){return new w(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource=s.resource,this.metrics=this.convertValues(s.metrics,p)}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.Handler=w;class o{static createFrom(s={}){return new o(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin_id=s.plugin_id,this.provider_id=s.provider_id,this.name=s.name,this.icon=s.icon,this.description=s.description,this.handlers=this.convertValues(s.handlers,w)}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.MetricProviderSummary=o;class n{static createFrom(s={}){return new n(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.metric_id=s.metric_id,this.data_points=this.convertValues(s.data_points,c),this.labels=s.labels}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.TimeSeries=n;class g{static createFrom(s={}){return new g(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.time_series=this.convertValues(s.time_series,n),this.current_value=this.convertValues(s.current_value,l),this.aggregate_value=this.convertValues(s.aggregate_value,t)}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.MetricResult=g;class a{static createFrom(s={}){return new a(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource_key=s.resource_key,this.resource_id=s.resource_id,this.resource_namespace=s.resource_namespace,this.resource_data=s.resource_data,this.metric_ids=s.metric_ids,this.shape=s.shape,this.start_time=this.convertValues(s.start_time,V.Time),this.end_time=this.convertValues(s.end_time,V.Time),this.step=s.step,this.params=s.params}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.QueryRequest=a;class m{static createFrom(s={}){return new m(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.success=s.success,this.results=this.convertValues(s.results,g),this.error=s.error}convertValues(s,v,N=!1){if(!s)return s;if(s.slice&&s.map)return s.map(b=>this.convertValues(b,v));if(typeof s=="object"){if(N){for(let b of Object.keys(s))s[b]=new v(s[b]);return s}return new v(s)}return s}}P.QueryResponse=m;class j{static createFrom(s={}){return new j(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource_key=s.resource_key,this.resource_id=s.resource_id,this.resource_namespace=s.resource_namespace,this.resource_data=s.resource_data,this.metric_ids=s.metric_ids,this.interval=s.interval}}P.SubscribeRequest=j})(Oe||(Oe={}));var st;(p=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource_id=o.resource_id,this.connection_id=o.connection_id}}p.FindPortForwardSessionRequest=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.algorithm=o.algorithm,this.key=o.key,this.enabled=o.enabled}}p.PortForwardSessionEncryption=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.created_at=this.convertValues(o.created_at,V.Time),this.updated_at=this.convertValues(o.updated_at,V.Time),this.connection=o.connection,this.labels=o.labels,this.id=o.id,this.protocol=o.protocol,this.state=o.state,this.connection_type=o.connection_type,this.encryption=this.convertValues(o.encryption,i),this.local_port=o.local_port,this.remote_port=o.remote_port}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.PortForwardSession=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.connection=o.connection,this.labels=o.labels,this.params=o.params,this.protocol=o.protocol,this.connection_type=o.connection_type,this.encryption=this.convertValues(o.encryption,i),this.local_port=o.local_port,this.remote_port=o.remote_port}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.PortForwardSessionOptions=c})(st||(st={}));var Ot;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.DevMode=c.DevMode,this.DevModePath=c.DevModePath,this.ExistingState=this.convertValues(c.ExistingState,K.PluginState)}convertValues(c,p,w=!1){if(!c)return c;if(c.slice&&c.map)return c.map(o=>this.convertValues(o,p));if(typeof c=="object"){if(w){for(let o of Object.keys(c))c[o]=new p(c[o]);return c}return new p(c)}return c}}i.LoadPluginOptions=t})(Ot||(Ot={}));var Et;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.description=n.description,this.icon_url=n.icon_url,this.category=n.category,this.tags=n.tags,this.license=n.license,this.official=n.official,this.featured=n.featured,this.download_count=n.download_count,this.average_rating=n.average_rating,this.review_count=n.review_count,this.repository=n.repository,this.url=n.url,this.installed=n.installed,this.installed_version=n.installed_version,this.latest_version=n.latest_version,this.update_available=n.update_available}}w.AvailablePlugin=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.date=n.date,this.count=n.count}}w.DailyStat=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.total=n.total,this.last_month=n.last_month,this.last_week=n.last_week,this.daily_stats=this.convertValues(n.daily_stats,i)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.DownloadStats=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.user_id=n.user_id,this.rating=n.rating,this.title=n.title,this.body=n.body,this.created_at=n.created_at}}w.Review=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.version=n.version,this.description=n.description,this.changelog=n.changelog,this.min_ide_version=n.min_ide_version,this.max_ide_version=n.max_ide_version,this.capabilities=n.capabilities,this.created_at=n.created_at}}w.VersionInfo=p})(Et||(Et={}));var Ee;(w=>{let t;(v=>(v.TEXT="text",v.SELECT="select",v.MULTISELECT="multiselect",v.INTEGER="integer",v.FLOAT="float",v.TOGGLE="toggle",v.COLOR="color",v.DATETIME="datetime",v.PASSWORD="password"))(t=w.SettingType||(w.SettingType={}));class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.enabled=n.enabled,this.allowFolders=n.allowFolders,this.extensions=n.extensions,this.multiple=n.multiple,this.relative=n.relative,this.defaultPath=n.defaultPath}}w.SettingFileSelection=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.label=n.label,this.description=n.description,this.value=n.value}}w.SettingOption=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.label=n.label,this.description=n.description,this.type=n.type,this.value=n.value,this.default=n.default,this.options=this.convertValues(n.options,l),this.fileSelection=this.convertValues(n.fileSelection,i),this.sensitive=n.sensitive}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Setting=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.settings=this.convertValues(n.settings,c,!0),this.id=n.id,this.label=n.label,this.description=n.description,this.icon=n.icon}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(m=>this.convertValues(m,g));if(typeof n=="object"){if(a){for(let m of Object.keys(n))n[m]=new g(n[m]);return n}return new g(n)}return n}}w.Category=p})(Ee||(Ee={}));var V;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c))}}i.Time=t})(V||(V={}));var Re;(p=>{let t;(P=>(P.CONFIG="config",P.FILESYSTEM="fs",P.IMAGE="image",P.KUBERNETES="kubernetes",P.REPOSITORY="repository",P.ROOTFS="rootfs",P.SBOM="sbom"))(t=p.Command||(p.Command={}));let i;(a=>(a.VULN="vuln",a.MISCONFIG="misconfig",a.SECRET="secret",a.LICENSE="license"))(i=p.Scanner||(p.Scanner={}));class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.filePatterns=o.filePatterns,this.skipDirs=o.skipDirs,this.skipFiles=o.skipFiles,this.scanners=o.scanners}}p.ScanOptions=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,V.Time),this.result=o.result,this.id=o.id,this.command=o.command}convertValues(o,n,g=!1){if(!o)return o;if(o.slice&&o.map)return o.map(a=>this.convertValues(a,n));if(typeof o=="object"){if(g){for(let a of Object.keys(o))o[a]=new n(o[a]);return o}return new n(o)}return o}}p.ScanResult=c})(Re||(Re={}));var K;(B=>{let t;(M=>(M.UNKNOWN="UNKNOWN",M.CONNECTED="CONNECTED",M.DISCONNECTED="DISCONNECTED",M.PENDING="PENDING",M.FAILED="FAILED",M.ERROR="ERROR",M.UNAUTHORIZED="UNAUTHORIZED",M.FORBIDDEN="FORBIDDEN",M.BAD_REQUEST="BAD_REQUEST",M.NOT_FOUND="NOT_FOUND",M.TIMEOUT="TIMEOUT",M.UNAVAILABLE="UNAVAILABLE",M.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"))(t=B.ConnectionStatusCode||(B.ConnectionStatusCode={}));class i{static createFrom(e={}){return new i(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.label=e.label,this.description=e.description,this.icon=e.icon,this.scope=e.scope,this.streaming=e.streaming}}B.ActionDescriptor=i;class l{static createFrom(e={}){return new l(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.namespace=e.namespace,this.params=e.params}}B.ActionInput=l;class c{static createFrom(e={}){return new c(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.success=e.success,this.data=e.data,this.message=e.message}}B.ActionResult=c;class p{static createFrom(e={}){return new p(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.selectors=e.selectors,this.label_selector=e.label_selector,this.label=e.label,this.paths=e.paths}}B.ActionTargetBuilder=p;class w{static createFrom(e={}){return new w(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.idAccessor=e.idAccessor,this.namespaceAccessor=e.namespaceAccessor,this.namespaced=e.namespaced,this.resourceKey=e.resourceKey,this.keyAccessor=e.keyAccessor,this.keyMap=e.keyMap,this.detailExtractors=e.detailExtractors,this.displayId=e.displayId}}B.ResourceLink=w;class o{static createFrom(e={}){return new o(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.header=e.header,this.accessor=e.accessor,this.accessorPriority=e.accessorPriority,this.colorMap=e.colorMap,this.color=e.color,this.align=e.align,this.hidden=e.hidden,this.width=e.width,this.formatter=e.formatter,this.component=e.component,this.componentParams=e.componentParams,this.resourceLink=this.convertValues(e.resourceLink,w),this.valueMap=e.valueMap}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ColumnDef=o;class n{static createFrom(e={}){return new n(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.last_refresh=this.convertValues(e.last_refresh,V.Time),this.data=e.data,this.labels=e.labels,this.id=e.id,this.uid=e.uid,this.name=e.name,this.description=e.description,this.avatar=e.avatar,this.expiry_time=e.expiry_time,this.Client=e.Client}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.Connection=n;class g{static createFrom(e={}){return new g(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=this.convertValues(e.connection,n),this.status=e.status,this.error=e.error,this.details=e.details}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ConnectionStatus=g;class a{static createFrom(e={}){return new a(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.input=e.input,this.namespace=e.namespace}}B.CreateInput=a;class m{static createFrom(e={}){return new m(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.CreateResult=m;class j{static createFrom(e={}){return new j(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}B.DeleteInput=j;class P{static createFrom(e={}){return new P(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.DeleteResult=P;class Z{static createFrom(e={}){return new Z(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.resourceKey=e.resourceKey,this.fileMatch=e.fileMatch,this.uri=e.uri,this.url=e.url,this.content=e.content,this.language=e.language}}B.EditorSchema=Z;class s{static createFrom(e={}){return new s(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize}}B.PaginationParams=s;class v{static createFrom(e={}){return new v(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.by=e.by,this.direction=e.direction}}B.OrderParams=v;class N{static createFrom(e={}){return new N(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.conditions=e.conditions,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,s)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.FindInput=N;class b{static createFrom(e={}){return new b(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize,this.total=e.total,this.pages=e.pages}}B.PaginationResult=b;class tt{static createFrom(e={}){return new tt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.FindResult=tt;class G{static createFrom(e={}){return new G(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.id=e.id,this.namespace=e.namespace}}B.GetInput=G;class ut{static createFrom(e={}){return new ut(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.GetResult=ut;class z{static createFrom(e={}){return new z(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=e.connection,this.resources=e.resources,this.resourceCounts=e.resourceCounts,this.totalResources=e.totalResources,this.syncedCount=e.syncedCount,this.errorCount=e.errorCount}}B.InformerConnectionSummary=z;class et{static createFrom(e={}){return new et(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.title=e.title,this.icon=e.icon,this.description=e.description,this.items=this.convertValues(e.items,et)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.LayoutItem=et;class I{static createFrom(e={}){return new I(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,s)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ListInput=I;class U{static createFrom(e={}){return new U(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ListResult=U;class ct{static createFrom(e={}){return new ct(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.metadata=this.convertValues(e.metadata,ot.PluginMeta),this.enabled=e.enabled,this.running=e.running,this.devMode=e.devMode,this.devPath=e.devPath,this.loading=e.loading,this.loadError=e.loadError,this.capabilities=e.capabilities}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.Plugin=ct;class A{static createFrom(e={}){return new A(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.Metadata=this.convertValues(e.Metadata,ot.PluginMeta),this.ID=e.ID,this.DevPath=e.DevPath,this.Enabled=e.Enabled,this.DevMode=e.DevMode}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.PluginState=A;class nt{static createFrom(e={}){return new nt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id_accessor=e.id_accessor,this.namespace_accessor=e.namespace_accessor,this.memoizer_accessor=e.memoizer_accessor,this.columnDefs=this.convertValues(e.columnDefs,o),this.supportedOperations=e.supportedOperations}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ResourceDefinition=nt;class H{static createFrom(e={}){return new H(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.name=e.name,this.description=e.description,this.icon=e.icon,this.resources=this.convertValues(e.resources,Array,!0)}convertValues(e,S,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(y=>this.convertValues(y,S));if(typeof e=="object"){if(k){for(let y of Object.keys(e))e[y]=new S(e[y]);return e}return new S(e)}return e}}B.ResourceGroup=H;class W{static createFrom(e={}){return new W(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.group=e.group,this.version=e.version,this.kind=e.kind,this.label=e.label,this.icon=e.icon,this.description=e.description,this.category=e.category}}B.ResourceMeta=W;class ${static createFrom(e={}){return new $(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}B.UpdateInput=$;class Y{static createFrom(e={}){return new Y(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}B.UpdateResult=Y})(K||(K={}));var Ce;(p=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin=o.plugin}}p.GetPluginComponentsInput=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin=o.plugin,this.resource=o.resource,this.area=o.area}}p.GetResourceAreaComponentInput=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin=o.plugin,this.resource=o.resource}}p.GetResourceComponentsInput=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.owner=o.owner,this.name=o.name,this.plugin=o.plugin,this.resource=o.resource,this.area=o.area,this.extension=o.extension}}p.ResourceComponent=c})(Ce||(Ce={}));var Pe;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.filename=c.filename,this.contents=c.contents}}i.GetLanguageInput=t})(Pe||(Pe={}));var Rt={};D(Rt,{GetOperatingSystem:()=>nn,OpenFileSelectionDialog:()=>rn,SaveFileDialog:()=>on,WriteFileContent:()=>sn});function nn(){return window.go.main.App.GetOperatingSystem()}function rn(t){return window.go.main.App.OpenFileSelectionDialog(t)}function on(t){return window.go.main.App.SaveFileDialog(t)}function sn(t,i){return window.go.main.App.WriteFileContent(t,i)}var Ct={};D(Ct,{Delete:()=>an,Get:()=>un,Keys:()=>cn,Set:()=>ln});function an(t,i){return window.go.data.Client.Delete(t,i)}function un(t,i){return window.go.data.Client.Get(t,i)}function cn(t){return window.go.data.Client.Keys(t)}function ln(t,i,l){return window.go.data.Client.Set(t,i,l)}var Pt={};D(Pt,{GetDevServerLogs:()=>pn,GetDevServerState:()=>fn,GetExternalPluginInfo:()=>gn,Initialize:()=>dn,IsManaged:()=>mn,ListDevServerStates:()=>yn,RestartDevServer:()=>wn,Shutdown:()=>hn,StartDevServer:()=>vn,StartDevServerForPath:()=>bn,StopDevServer:()=>Sn});function pn(t,i){return window.go.devserver.DevServerManager.GetDevServerLogs(t,i)}function fn(t){return window.go.devserver.DevServerManager.GetDevServerState(t)}function gn(t){return window.go.devserver.DevServerManager.GetExternalPluginInfo(t)}function dn(t){return window.go.devserver.DevServerManager.Initialize(t)}function mn(t){return window.go.devserver.DevServerManager.IsManaged(t)}function yn(){return window.go.devserver.DevServerManager.ListDevServerStates()}function wn(t){return window.go.devserver.DevServerManager.RestartDevServer(t)}function hn(){return window.go.devserver.DevServerManager.Shutdown()}function vn(t){return window.go.devserver.DevServerManager.StartDevServer(t)}function bn(t,i){return window.go.devserver.DevServerManager.StartDevServerForPath(t,i)}function Sn(t){return window.go.devserver.DevServerManager.StopDevServer(t)}var Tt={};D(Tt,{Debug:()=>xn,Error:()=>_n,Info:()=>On,Log:()=>En,ReadLog:()=>Rn,StartTail:()=>Cn,StopTail:()=>Pn,Warn:()=>Tn});function xn(t,i){return window.go.diagnostics.DiagnosticsClient.Debug(t,i)}function _n(t,i){return window.go.diagnostics.DiagnosticsClient.Error(t,i)}function On(t,i){return window.go.diagnostics.DiagnosticsClient.Info(t,i)}function En(t,i,l){return window.go.diagnostics.DiagnosticsClient.Log(t,i,l)}function Rn(t){return window.go.diagnostics.DiagnosticsClient.ReadLog(t)}function Cn(t){return window.go.diagnostics.DiagnosticsClient.StartTail(t)}function Pn(t){return window.go.diagnostics.DiagnosticsClient.StopTail(t)}function Tn(t,i){return window.go.diagnostics.DiagnosticsClient.Warn(t,i)}var kt={};D(kt,{AttachSession:()=>kn,CloseSession:()=>Fn,CreateSession:()=>Nn,CreateTerminal:()=>An,DetachSession:()=>Dn,GetHandler:()=>Mn,GetHandlers:()=>Vn,GetPluginHandlers:()=>jn,GetSession:()=>Ln,ListPlugins:()=>Gn,ListSessions:()=>In,ResizeSession:()=>Wn,WriteSession:()=>Jn});function kn(t){return window.go.exec.Client.AttachSession(t)}function Fn(t){return window.go.exec.Client.CloseSession(t)}function Nn(t,i,l){return window.go.exec.Client.CreateSession(t,i,l)}function An(t){return window.go.exec.Client.CreateTerminal(t)}function Dn(t){return window.go.exec.Client.DetachSession(t)}function Mn(t,i){return window.go.exec.Client.GetHandler(t,i)}function Vn(){return window.go.exec.Client.GetHandlers()}function jn(t){return window.go.exec.Client.GetPluginHandlers(t)}function Ln(t){return window.go.exec.Client.GetSession(t)}function Gn(){return window.go.exec.Client.ListPlugins()}function In(){return window.go.exec.Client.ListSessions()}function Wn(t,i,l){return window.go.exec.Client.ResizeSession(t,i,l)}function Jn(t,i){return window.go.exec.Client.WriteSession(t,i)}var Ft={};D(Ft,{CloseSession:()=>Un,CreateSession:()=>Hn,GetSession:()=>$n,GetSupportedResources:()=>zn,ListSessions:()=>Yn,PauseSession:()=>Bn,ResumeSession:()=>qn,UpdateSessionOptions:()=>Kn});function Un(t){return window.go.logs.Client.CloseSession(t)}function Hn(t,i,l){return window.go.logs.Client.CreateSession(t,i,l)}function $n(t){return window.go.logs.Client.GetSession(t)}function zn(t){return window.go.logs.Client.GetSupportedResources(t)}function Yn(){return window.go.logs.Client.ListSessions()}function Bn(t){return window.go.logs.Client.PauseSession(t)}function qn(t){return window.go.logs.Client.ResumeSession(t)}function Kn(t,i){return window.go.logs.Client.UpdateSessionOptions(t,i)}var Nt={};D(Nt,{GetProviders:()=>Qn,GetProvidersForResource:()=>Xn,Query:()=>Zn,QueryAll:()=>tr,Subscribe:()=>er,Unsubscribe:()=>nr});function Qn(){return window.go.metric.Client.GetProviders()}function Xn(t){return window.go.metric.Client.GetProvidersForResource(t)}function Zn(t,i,l){return window.go.metric.Client.Query(t,i,l)}function tr(t,i,l,c,p,w,o,n,g,a){return window.go.metric.Client.QueryAll(t,i,l,c,p,w,o,n,g,a)}function er(t,i,l){return window.go.metric.Client.Subscribe(t,i,l)}function nr(t){return window.go.metric.Client.Unsubscribe(t)}var Vt={};D(Vt,{ClosePortForwardSession:()=>At,FindPortForwardSessions:()=>Dt,GetPortForwardSession:()=>rr,GetSupportedPortForwardTargets:()=>ir,ListAllPortForwardSessions:()=>or,ListPortForwardSessions:()=>sr,StartResourcePortForwardingSession:()=>Mt});function At(t){return window.go.networker.Client.ClosePortForwardSession(t)}function Dt(t,i,l){return window.go.networker.Client.FindPortForwardSessions(t,i,l)}function rr(t){return window.go.networker.Client.GetPortForwardSession(t)}function ir(t){return window.go.networker.Client.GetSupportedPortForwardTargets(t)}function or(){return window.go.networker.Client.ListAllPortForwardSessions()}function sr(t,i){return window.go.networker.Client.ListPortForwardSessions(t,i)}function Mt(t,i,l){return window.go.networker.Client.StartResourcePortForwardingSession(t,i,l)}var jt={};D(jt,{AddTarget:()=>ar,GetPlugin:()=>ur,GetPluginDownloadStats:()=>cr,GetPluginMeta:()=>lr,GetPluginReadme:()=>pr,GetPluginReleaseHistory:()=>fr,GetPluginReviews:()=>gr,GetPluginVersions:()=>dr,Initialize:()=>mr,InstallFromPathPrompt:()=>yr,InstallInDevMode:()=>wr,InstallPluginFromPath:()=>hr,InstallPluginVersion:()=>vr,ListAvailablePlugins:()=>br,ListPluginMetas:()=>Sr,ListPlugins:()=>xr,LoadPlugin:()=>_r,ReloadPlugin:()=>Or,RemoveTarget:()=>Er,Run:()=>Rr,SearchPlugins:()=>Cr,SetDevServerChecker:()=>Pr,SetDevServerManager:()=>Tr,Shutdown:()=>kr,UninstallPlugin:()=>Fr,UnloadPlugin:()=>Nr});function ar(t){return window.go.plugin.pluginManager.AddTarget(t)}function ur(t){return window.go.plugin.pluginManager.GetPlugin(t)}function cr(t){return window.go.plugin.pluginManager.GetPluginDownloadStats(t)}function lr(t){return window.go.plugin.pluginManager.GetPluginMeta(t)}function pr(t){return window.go.plugin.pluginManager.GetPluginReadme(t)}function fr(t){return window.go.plugin.pluginManager.GetPluginReleaseHistory(t)}function gr(t,i){return window.go.plugin.pluginManager.GetPluginReviews(t,i)}function dr(t){return window.go.plugin.pluginManager.GetPluginVersions(t)}function mr(t){return window.go.plugin.pluginManager.Initialize(t)}function yr(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function wr(){return window.go.plugin.pluginManager.InstallInDevMode()}function hr(t){return window.go.plugin.pluginManager.InstallPluginFromPath(t)}function vr(t,i){return window.go.plugin.pluginManager.InstallPluginVersion(t,i)}function br(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function Sr(){return window.go.plugin.pluginManager.ListPluginMetas()}function xr(){return window.go.plugin.pluginManager.ListPlugins()}function _r(t,i){return window.go.plugin.pluginManager.LoadPlugin(t,i)}function Or(t){return window.go.plugin.pluginManager.ReloadPlugin(t)}function Er(t){return window.go.plugin.pluginManager.RemoveTarget(t)}function Rr(t){return window.go.plugin.pluginManager.Run(t)}function Cr(t,i,l){return window.go.plugin.pluginManager.SearchPlugins(t,i,l)}function Pr(t){return window.go.plugin.pluginManager.SetDevServerChecker(t)}function Tr(t){return window.go.plugin.pluginManager.SetDevServerManager(t)}function kr(){return window.go.plugin.pluginManager.Shutdown()}function Fr(t){return window.go.plugin.pluginManager.UninstallPlugin(t)}function Nr(t){return window.go.plugin.pluginManager.UnloadPlugin(t)}var Lt={};D(Lt,{AddConnection:()=>Ar,Create:()=>Dr,Delete:()=>Mr,EnsureInformerForResource:()=>Vr,ExecuteAction:()=>jr,Find:()=>Lr,Get:()=>Gr,GetActions:()=>Ir,GetConnection:()=>Wr,GetConnectionNamespaces:()=>Jr,GetDefaultLayout:()=>Ur,GetEditorSchemas:()=>Hr,GetInformerState:()=>$r,GetLayout:()=>zr,GetResourceDefinition:()=>Yr,GetResourceGroup:()=>Br,GetResourceGroups:()=>qr,GetResourceType:()=>Kr,GetResourceTypes:()=>Qr,HasResourceType:()=>Xr,List:()=>Zr,ListAllConnections:()=>ti,ListConnections:()=>ei,ListPlugins:()=>ni,LoadConnections:()=>ri,RemoveConnection:()=>ii,SetLayout:()=>oi,StartConnection:()=>si,StartConnectionInformer:()=>ai,StopConnection:()=>ui,StopConnectionInformer:()=>ci,StreamAction:()=>li,Update:()=>pi,UpdateConnection:()=>fi});function Ar(t,i){return window.go.resource.Client.AddConnection(t,i)}function Dr(t,i,l,c){return window.go.resource.Client.Create(t,i,l,c)}function Mr(t,i,l,c){return window.go.resource.Client.Delete(t,i,l,c)}function Vr(t,i,l){return window.go.resource.Client.EnsureInformerForResource(t,i,l)}function jr(t,i,l,c,p){return window.go.resource.Client.ExecuteAction(t,i,l,c,p)}function Lr(t,i,l,c){return window.go.resource.Client.Find(t,i,l,c)}function Gr(t,i,l,c){return window.go.resource.Client.Get(t,i,l,c)}function Ir(t,i,l){return window.go.resource.Client.GetActions(t,i,l)}function Wr(t,i){return window.go.resource.Client.GetConnection(t,i)}function Jr(t,i){return window.go.resource.Client.GetConnectionNamespaces(t,i)}function Ur(t){return window.go.resource.Client.GetDefaultLayout(t)}function Hr(t,i){return window.go.resource.Client.GetEditorSchemas(t,i)}function $r(t,i){return window.go.resource.Client.GetInformerState(t,i)}function zr(t,i){return window.go.resource.Client.GetLayout(t,i)}function Yr(t,i){return window.go.resource.Client.GetResourceDefinition(t,i)}function Br(t,i){return window.go.resource.Client.GetResourceGroup(t,i)}function qr(t,i){return window.go.resource.Client.GetResourceGroups(t,i)}function Kr(t,i){return window.go.resource.Client.GetResourceType(t,i)}function Qr(t,i){return window.go.resource.Client.GetResourceTypes(t,i)}function Xr(t,i){return window.go.resource.Client.HasResourceType(t,i)}function Zr(t,i,l,c){return window.go.resource.Client.List(t,i,l,c)}function ti(){return window.go.resource.Client.ListAllConnections()}function ei(t){return window.go.resource.Client.ListConnections(t)}function ni(){return window.go.resource.Client.ListPlugins()}function ri(t){return window.go.resource.Client.LoadConnections(t)}function ii(t,i){return window.go.resource.Client.RemoveConnection(t,i)}function oi(t,i,l){return window.go.resource.Client.SetLayout(t,i,l)}function si(t,i){return window.go.resource.Client.StartConnection(t,i)}function ai(t,i){return window.go.resource.Client.StartConnectionInformer(t,i)}function ui(t,i){return window.go.resource.Client.StopConnection(t,i)}function ci(t,i){return window.go.resource.Client.StopConnectionInformer(t,i)}function li(t,i,l,c,p){return window.go.resource.Client.StreamAction(t,i,l,c,p)}function pi(t,i,l,c){return window.go.resource.Client.Update(t,i,l,c)}function fi(t,i){return window.go.resource.Client.UpdateConnection(t,i)}var Wt={};D(Wt,{BrowserOpenURL:()=>It,CanResolveFilePaths:()=>uo,ClipboardGetText:()=>io,ClipboardSetText:()=>oo,Environment:()=>to,EventsEmit:()=>Oi,EventsOff:()=>Si,EventsOffAll:()=>xi,EventsOn:()=>bi,EventsOnMultiple:()=>Gt,EventsOnce:()=>_i,Hide:()=>no,LogDebug:()=>mi,LogError:()=>hi,LogFatal:()=>vi,LogInfo:()=>yi,LogPrint:()=>gi,LogTrace:()=>di,LogWarning:()=>wi,OnFileDrop:()=>so,OnFileDropOff:()=>ao,Quit:()=>eo,ResolveFilePaths:()=>co,ScreenGetAll:()=>Qi,Show:()=>ro,WindowCenter:()=>Fi,WindowFullscreen:()=>Ai,WindowGetPosition:()=>Wi,WindowGetSize:()=>Vi,WindowHide:()=>Ji,WindowIsFullscreen:()=>Mi,WindowIsMaximised:()=>Yi,WindowIsMinimised:()=>Xi,WindowIsNormal:()=>Zi,WindowMaximise:()=>Hi,WindowMinimise:()=>Bi,WindowReload:()=>Ei,WindowReloadApp:()=>Ri,WindowSetAlwaysOnTop:()=>Ci,WindowSetBackgroundColour:()=>Ki,WindowSetDarkTheme:()=>ki,WindowSetLightTheme:()=>Ti,WindowSetMaxSize:()=>Li,WindowSetMinSize:()=>Gi,WindowSetPosition:()=>Ii,WindowSetSize:()=>ji,WindowSetSystemDefaultTheme:()=>Pi,WindowSetTitle:()=>Ni,WindowShow:()=>Ui,WindowToggleMaximise:()=>$i,WindowUnfullscreen:()=>Di,WindowUnmaximise:()=>zi,WindowUnminimise:()=>qi});function gi(t){window.runtime.LogPrint(t)}function di(t){window.runtime.LogTrace(t)}function mi(t){window.runtime.LogDebug(t)}function yi(t){window.runtime.LogInfo(t)}function wi(t){window.runtime.LogWarning(t)}function hi(t){window.runtime.LogError(t)}function vi(t){window.runtime.LogFatal(t)}function Gt(t,i,l){return window.runtime.EventsOnMultiple(t,i,l)}function bi(t,i){return Gt(t,i,-1)}function Si(t,...i){return window.runtime.EventsOff(t,...i)}function xi(){return window.runtime.EventsOffAll()}function _i(t,i){return Gt(t,i,1)}function Oi(t){let i=[t].slice.call(arguments);return window.runtime.EventsEmit.apply(null,i)}function Ei(){window.runtime.WindowReload()}function Ri(){window.runtime.WindowReloadApp()}function Ci(t){window.runtime.WindowSetAlwaysOnTop(t)}function Pi(){window.runtime.WindowSetSystemDefaultTheme()}function Ti(){window.runtime.WindowSetLightTheme()}function ki(){window.runtime.WindowSetDarkTheme()}function Fi(){window.runtime.WindowCenter()}function Ni(t){window.runtime.WindowSetTitle(t)}function Ai(){window.runtime.WindowFullscreen()}function Di(){window.runtime.WindowUnfullscreen()}function Mi(){return window.runtime.WindowIsFullscreen()}function Vi(){return window.runtime.WindowGetSize()}function ji(t,i){window.runtime.WindowSetSize(t,i)}function Li(t,i){window.runtime.WindowSetMaxSize(t,i)}function Gi(t,i){window.runtime.WindowSetMinSize(t,i)}function Ii(t,i){window.runtime.WindowSetPosition(t,i)}function Wi(){return window.runtime.WindowGetPosition()}function Ji(){window.runtime.WindowHide()}function Ui(){window.runtime.WindowShow()}function Hi(){window.runtime.WindowMaximise()}function $i(){window.runtime.WindowToggleMaximise()}function zi(){window.runtime.WindowUnmaximise()}function Yi(){return window.runtime.WindowIsMaximised()}function Bi(){window.runtime.WindowMinimise()}function qi(){window.runtime.WindowUnminimise()}function Ki(t,i,l,c){window.runtime.WindowSetBackgroundColour(t,i,l,c)}function Qi(){return window.runtime.ScreenGetAll()}function Xi(){return window.runtime.WindowIsMinimised()}function Zi(){return window.runtime.WindowIsNormal()}function It(t){window.runtime.BrowserOpenURL(t)}function to(){return window.runtime.Environment()}function eo(){window.runtime.Quit()}function no(){window.runtime.Hide()}function ro(){window.runtime.Show()}function io(){return window.runtime.ClipboardGetText()}function oo(t){return window.runtime.ClipboardSetText(t)}function so(t,i){return window.runtime.OnFileDrop(t,i)}function ao(){return window.runtime.OnFileDropOff()}function uo(){return window.runtime.CanResolveFilePaths()}function co(t){return window.runtime.ResolveFilePaths(t)}var Jt={};D(Jt,{GetSetting:()=>lo,ListPlugins:()=>po,ListSettings:()=>fo,PluginValues:()=>go,SetSetting:()=>mo,SetSettings:()=>yo,Values:()=>wo});function lo(t,i){return window.go.settings.Client.GetSetting(t,i)}function po(){return window.go.settings.Client.ListPlugins()}function fo(t){return window.go.settings.Client.ListSettings(t)}function go(t){return window.go.settings.Client.PluginValues(t)}function mo(t,i,l){return window.go.settings.Client.SetSetting(t,i,l)}function yo(t,i){return window.go.settings.Client.SetSettings(t,i)}function wo(){return window.go.settings.Client.Values()}var Ut={};D(Ut,{GetBool:()=>ho,GetCategories:()=>vo,GetCategory:()=>bo,GetCategoryValues:()=>So,GetFloat:()=>xo,GetFloatSlice:()=>_o,GetInt:()=>Oo,GetIntSlice:()=>Eo,GetSetting:()=>Ro,GetSettingValue:()=>Co,GetString:()=>Po,GetStringSlice:()=>To,HasSetting:()=>ko,Initialize:()=>Fo,ListSettings:()=>No,LoadSettings:()=>Ao,RegisterSetting:()=>Do,RegisterSettings:()=>Mo,ResetSetting:()=>Vo,SaveSettings:()=>jo,SetSetting:()=>Lo,SetSettings:()=>Go,Values:()=>Io});function ho(t){return window.go.settings.provider.GetBool(t)}function vo(){return window.go.settings.provider.GetCategories()}function bo(t){return window.go.settings.provider.GetCategory(t)}function So(t){return window.go.settings.provider.GetCategoryValues(t)}function xo(t){return window.go.settings.provider.GetFloat(t)}function _o(t){return window.go.settings.provider.GetFloatSlice(t)}function Oo(t){return window.go.settings.provider.GetInt(t)}function Eo(t){return window.go.settings.provider.GetIntSlice(t)}function Ro(t){return window.go.settings.provider.GetSetting(t)}function Co(t){return window.go.settings.provider.GetSettingValue(t)}function Po(t){return window.go.settings.provider.GetString(t)}function To(t){return window.go.settings.provider.GetStringSlice(t)}function ko(t){return window.go.settings.provider.HasSetting(t)}function Fo(t,i){return window.go.settings.provider.Initialize(t,i)}function No(){return window.go.settings.provider.ListSettings()}function Ao(){return window.go.settings.provider.LoadSettings()}function Do(t,i){return window.go.settings.provider.RegisterSetting(t,i)}function Mo(t,i){return window.go.settings.provider.RegisterSettings(t,i)}function Vo(t){return window.go.settings.provider.ResetSetting(t)}function jo(){return window.go.settings.provider.SaveSettings()}function Lo(t,i){return window.go.settings.provider.SetSetting(t,i)}function Go(t){return window.go.settings.provider.SetSettings(t)}function Io(){return window.go.settings.provider.Values()}var Ht={};D(Ht,{Scan:()=>Wo});function Wo(t,i,l){return window.go.trivy.Manager.Scan(t,i,l)}var $t={};D($t,{GetPluginComponents:()=>Jo,GetResourceAreaComponent:()=>Uo,GetResourceComponents:()=>Ho});function Jo(t){return window.go.ui.Client.GetPluginComponents(t)}function Uo(t){return window.go.ui.Client.GetResourceAreaComponent(t)}function Ho(t){return window.go.ui.Client.GetResourceComponents(t)}var zt={};D(zt,{DetectLanguage:()=>$o});function $o(t){return window.go.utils.Client.DetectLanguage(t)}var We=be(ee()),us={},Je=We.default.createContext(void 0);us.env.DEV&&(Je.displayName="PortForwardContext");var at=be(ee());function Ue({pluginID:t,connectionID:i,resourceID:l}){let[c,p]=at.default.useState([]);at.default.useEffect(()=>{!t||!i||!l||Dt(t,i,st.FindPortForwardSessionRequest.createFrom({resource_id:l,connection_id:i})).then(n=>{p(n)}).catch(n=>{n instanceof Error&&console.log(n)})},[t,i]);let w=at.default.useCallback(async n=>{let g=st.PortForwardSessionOptions.createFrom({local_port:n.toPort||0,remote_port:n.fromPort,protocol:n.protocol||"TCP",connection_type:"RESOURCE",connection:{resource_data:n.resource,connection_id:i,plugin_id:t,resource_id:n.resourceId,resource_key:n.resourceKey},labels:n.labels??{},params:n.parameters??{}});try{let a=await Mt(t,i,g);return p([...c,a]),n.openInBrowser&&It(`http://localhost:${a.remote_port}`),a}catch(a){throw a instanceof Error&&console.log(a),a}},[t,i,c]),o=at.default.useCallback(async n=>{try{await At(n),p(c.filter(g=>g.id!==n))}catch(g){throw g instanceof Error&&console.log(g),g}},[c]);return{sessions:c,forward:w,close:o}}0&&(module.exports={PortForwardContext,app,config,data,devserver,diagnostics,exec,logs,main,metric,networker,plugin,pluginManager,registry,resource,runtime,settings,settingsProvider,time,trivy,types,ui,useResourcePortForwarder,utils});
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function rt(){O.asyncTransitions--}function Y(r){if(ft===null)try{var u=("require"+Math.random()).slice(0,7);ft=(ht&&ht[u]).call(ht,"timers").setImmediate}catch{ft=function(d){de===!1&&(de=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var w=new MessageChannel;w.port1.onmessage=d,w.port2.postMessage(void 0)}}return ft(r)}function U(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function z(r,u){u!==gt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),gt=u}function W(r,u,f){var d=O.actQueue;if(d!==null)if(d.length!==0)try{q(d),Y(function(){return W(r,u,f)});return}catch(w){O.thrownErrors.push(w)}else O.actQueue=null;0<O.thrownErrors.length?(d=U(O.thrownErrors),O.thrownErrors.length=0,f(d)):u(r)}function q(r){if(!St){St=!0;var u=0;try{for(;u<r.length;u++){var f=r[u];do{O.didUsePromise=!1;var d=f(!1);if(d!==null){if(O.didUsePromise){r[u]=f,r.splice(0,u);return}f=d}else break}while(!0)}r.length=0}catch(w){r.splice(0,u+1),O.thrownErrors.push(w)}finally{St=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var wt=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),vt=Symbol.for("react.consumer"),Zt=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),bt=Symbol.for("react.memo"),it=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),D=Symbol.iterator,re={},ie={isMounted:function(){return!1},enqueueForceUpdate:function(r){l(r,"forceUpdate")},enqueueReplaceState:function(r){l(r,"replaceState")},enqueueSetState:function(r){l(r,"setState")}},oe=Object.assign,_t={};Object.freeze(_t),c.prototype.isReactComponent={},c.prototype.setState=function(r,u){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,u,"setState")},c.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(ot in L)L.hasOwnProperty(ot)&&t(ot,L[ot]);p.prototype=c.prototype,L=h.prototype=new p,L.constructor=h,oe(L,c.prototype),L.isPureReactComponent=!0;var se=Array.isArray,Ue=Symbol.for("react.client.reference"),O={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},pt=Object.prototype.hasOwnProperty,ae=console.createTask?console.createTask:function(){return null};L={react_stack_bottom_frame:function(r){return r()}};var ue,ce,le={},He=L.react_stack_bottom_frame.bind(L,A)(),$e=ae(y(A)),pe=!1,fe=/\/+/g,ge=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},de=!1,ft=null,gt=0,dt=!1,St=!1,ye=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:Y;L=Object.freeze({__proto__:null,c:function(r){return F().useMemoCache(r)}});var ot={map:$,forEach:function(r,u,f){$(r,function(){u.apply(this,arguments)},f)},count:function(r){var u=0;return $(r,function(){u++}),u},toArray:function(r){return $(r,function(u){return u})||[]},only:function(r){if(!I(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};S.Activity=ne,S.Children=ot,S.Component=c,S.Fragment=_,S.Profiler=m,S.PureComponent=h,S.StrictMode=k,S.Suspense=ee,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,S.__COMPILER_RUNTIME=L,S.act=function(r){var u=O.actQueue,f=gt;gt++;var d=O.actQueue=u!==null?u:[],w=!1;try{var E=r()}catch(C){O.thrownErrors.push(C)}if(0<O.thrownErrors.length)throw z(u,f),r=U(O.thrownErrors),O.thrownErrors.length=0,r;if(E!==null&&typeof E=="object"&&typeof E.then=="function"){var R=E;return ye(function(){w||dt||(dt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(C,H){w=!0,R.then(function(K){if(z(u,f),f===0){try{q(d),Y(function(){return W(K,C,H)})}catch(ze){O.thrownErrors.push(ze)}if(0<O.thrownErrors.length){var Ye=U(O.thrownErrors);O.thrownErrors.length=0,H(Ye)}}else C(K)},function(K){z(u,f),0<O.thrownErrors.length&&(K=U(O.thrownErrors),O.thrownErrors.length=0),H(K)})}}}var P=E;if(z(u,f),f===0&&(q(d),d.length!==0&&ye(function(){w||dt||(dt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),O.actQueue=null),0<O.thrownErrors.length)throw r=U(O.thrownErrors),O.thrownErrors.length=0,r;return{then:function(C,H){w=!0,f===0?(O.actQueue=d,Y(function(){return W(P,C,H)})):C(P)}}},S.cache=function(r){return function(){return r.apply(null,arguments)}},S.cacheSignal=function(){return null},S.captureOwnerStack=function(){var r=O.getCurrentStack;return r===null?null:r()},S.cloneElement=function(r,u,f){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var d=oe({},r.props),w=r.key,E=r._owner;if(u!=null){var R;t:{if(pt.call(u,"ref")&&(R=Object.getOwnPropertyDescriptor(u,"ref").get)&&R.isReactWarning){R=!1;break t}R=u.ref!==void 0}R&&(E=G()),tt(u)&&(g(u.key),w=""+u.key);for(P in u)!pt.call(u,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&u.ref===void 0||(d[P]=u[P])}var P=arguments.length-2;if(P===1)d.children=f;else if(1<P){R=Array(P);for(var C=0;C<P;C++)R[C]=arguments[C+2];d.children=R}for(d=N(r.type,w,d,E,r._debugStack,r._debugTask),w=2;w<arguments.length;w++)et(arguments[w]);return d},S.createContext=function(r){return r={$$typeof:Zt,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:vt,_context:r},r._currentRenderer=null,r._currentRenderer2=null,r},S.createElement=function(r,u,f){for(var d=2;d<arguments.length;d++)et(arguments[d]);d={};var w=null;if(u!=null)for(C in ce||!("__self"in u)||"key"in u||(ce=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),tt(u)&&(g(u.key),w=""+u.key),u)pt.call(u,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(d[C]=u[C]);var E=arguments.length-2;if(E===1)d.children=f;else if(1<E){for(var R=Array(E),P=0;P<E;P++)R[P]=arguments[P+2];Object.freeze&&Object.freeze(R),d.children=R}if(r&&r.defaultProps)for(C in E=r.defaultProps,E)d[C]===void 0&&(d[C]=E[C]);w&&o(d,typeof r=="function"?r.displayName||r.name||"Unknown":r);var C=1e4>O.recentlyCreatedOwnerStacks++;return N(r,w,d,G(),C?Error("react-stack-top-frame"):He,C?ae(y(r)):$e)},S.createRef=function(){var r={current:null};return Object.seal(r),r},S.forwardRef=function(r){r!=null&&r.$$typeof===bt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof r!="function"?console.error("forwardRef requires a render function but was given %s.",r===null?"null":typeof r):r.length!==0&&r.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",r.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),r!=null&&r.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:te,render:r},f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},S.isValidElement=I,S.lazy=function(r){r={_status:-1,_result:r};var u={$$typeof:it,_payload:r,_init:lt},f={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return r._ioInfo=f,u._debugInfo=[{awaited:f}],u},S.memo=function(r,u){r==null&&console.error("memo: The first argument must be a component. Instead received: %s",r===null?"null":typeof r),u={$$typeof:bt,type:r,compare:u===void 0?null:u};var f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,r.name||r.displayName||(Object.defineProperty(r,"name",{value:d}),r.displayName=d)}}),u},S.startTransition=function(r){var u=O.T,f={};f._updatedFibers=new Set,O.T=f;try{var d=r(),w=O.S;w!==null&&w(f,d),typeof d=="object"&&d!==null&&typeof d.then=="function"&&(O.asyncTransitions++,d.then(rt,rt),d.then(s,ge))}catch(E){ge(E)}finally{u===null&&f._updatedFibers&&(r=f._updatedFibers.size,f._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&f.types!==null&&(u.types!==null&&u.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=f.types),O.T=u}},S.unstable_useCacheRefresh=function(){return F().useCacheRefresh()},S.use=function(r){return F().use(r)},S.useActionState=function(r,u,f){return F().useActionState(r,u,f)},S.useCallback=function(r,u){return F().useCallback(r,u)},S.useContext=function(r){var u=F();return r.$$typeof===vt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(r)},S.useDebugValue=function(r,u){return F().useDebugValue(r,u)},S.useDeferredValue=function(r,u){return F().useDeferredValue(r,u)},S.useEffect=function(r,u){return r==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useEffect(r,u)},S.useEffectEvent=function(r){return F().useEffectEvent(r)},S.useId=function(){return F().useId()},S.useImperativeHandle=function(r,u,f){return F().useImperativeHandle(r,u,f)},S.useInsertionEffect=function(r,u){return r==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useInsertionEffect(r,u)},S.useLayoutEffect=function(r,u){return r==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useLayoutEffect(r,u)},S.useMemo=function(r,u){return F().useMemo(r,u)},S.useOptimistic=function(r,u){return F().useOptimistic(r,u)},S.useReducer=function(r,u,f){return F().useReducer(r,u,f)},S.useRef=function(r){return F().useRef(r)},S.useState=function(r){return F().useState(r)},S.useSyncExternalStore=function(r,u,f){return F().useSyncExternalStore(r,u,f)},S.useTransition=function(){return F().useTransition()},S.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var Xt=xt((po,Qt)=>{"use strict";process.env.NODE_ENV==="production"?Qt.exports=Ve():Qt.exports=je()});var ao={};j(ao,{Application:()=>V.Application,Browser:()=>V.Browser,Clipboard:()=>V.Clipboard,Events:()=>V.Events,PortForwardContext:()=>Ge,Screens:()=>V.Screens,System:()=>V.System,WML:()=>V.WML,Window:()=>V.Window,app:()=>Ct,config:()=>st,data:()=>Pt,devserver:()=>kt,diagnostics:()=>Tt,exec:()=>Nt,logs:()=>Ft,main:()=>Rt,metric:()=>At,networker:()=>Mt,plugin:()=>Ot,pluginManager:()=>Gt,registry:()=>Et,resource:()=>Lt,settings:()=>It,settingsProvider:()=>Jt,time:()=>M,types:()=>Q,ui:()=>Ut,useResourcePortForwarder:()=>Ie,utils:()=>Ht});module.exports=Xe(ao);var st;(n=>{class t{static createFrom(a={}){return new t(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email,this.url=a.url}}n.PluginAuthor=t;class i{static createFrom(a={}){return new i(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.plugin=a.plugin,this.area=a.area,this.resources=a.resources,this.extension=a.extension}}n.PluginResourceComponent=i;class l{static createFrom(a={}){return new l(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.resource=this.convertValues(a.resource,i)}convertValues(a,y,G=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(G){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginComponents=l;class c{static createFrom(a={}){return new c(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email}}n.PluginMaintainer=c;class p{static createFrom(a={}){return new p(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.primary=a.primary,this.secondary=a.secondary,this.tertiary=a.tertiary}}n.PluginThemeColors=p;class h{static createFrom(a={}){return new h(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.colors=this.convertValues(a.colors,p)}convertValues(a,y,G=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(G){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginTheme=h;class s{static createFrom(a={}){return new s(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.id=a.id,this.version=a.version,this.name=a.name,this.icon=a.icon,this.icon_url=a.icon_url,this.description=a.description,this.repository=a.repository,this.website=a.website,this.category=a.category,this.license=a.license,this.author=this.convertValues(a.author,t),this.maintainers=this.convertValues(a.maintainers,c),this.tags=a.tags,this.dependencies=a.dependencies,this.capabilities=a.capabilities,this.theme=this.convertValues(a.theme,h),this.components=this.convertValues(a.components,l)}convertValues(a,y,G=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(G){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginMeta=s})(st||(st={}));var we;(p=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.pid=s.pid,this.protocol=s.protocol,this.protocolVersion=s.protocolVersion,this.addr=s.addr,this.vitePort=s.vitePort,this.pluginId=s.pluginId,this.version=s.version,this.startedAt=s.startedAt}}p.DevInfoFile=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s))}}p.DevServerManager=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.pluginID=s.pluginID,this.mode=s.mode,this.devPath=s.devPath,this.vitePort=s.vitePort,this.viteURL=s.viteURL,this.viteStatus=s.viteStatus,this.goStatus=s.goStatus,this.lastBuildDuration=s.lastBuildDuration,this.lastBuildTime=this.convertValues(s.lastBuildTime,M.Time),this.lastError=s.lastError,this.grpcConnected=s.grpcConnected}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.DevServerState=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.timestamp=this.convertValues(s.timestamp,M.Time),this.source=s.source,this.level=s.level,this.message=s.message,this.pluginID=s.pluginID}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.LogEntry=c})(we||(we={}));var ve;(h=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.created_at=this.convertValues(n.created_at,M.Time),this.labels=n.labels,this.params=n.params,this.id=n.id,this.command=n.command,this.attached=n.attached}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Session=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.session=this.convertValues(n.session,t),this.buffer=n.buffer}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.AttachSessionResult=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.labels=n.labels,this.command=n.command}}h.CreateTerminalOptions=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,Q.ActionTargetBuilder),this.default_command=n.default_command}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Handler=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.params=n.params,this.labels=n.labels,this.id=n.id,this.resource_plugin=n.resource_plugin,this.resource_key=n.resource_key,this.resource_data=n.resource_data,this.command=n.command,this.tty=n.tty}}h.SessionOptions=p})(ve||(ve={}));var be;(h=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.target=n.target,this.follow=n.follow,this.include_previous=n.include_previous,this.include_timestamps=n.include_timestamps,this.tail_lines=n.tail_lines,this.since_seconds=n.since_seconds,this.since_time=this.convertValues(n.since_time,M.Time),this.limit_bytes=n.limit_bytes,this.include_source_events=n.include_source_events,this.params=n.params}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.LogSessionOptions=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_data=n.resource_data,this.options=this.convertValues(n.options,t)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.CreateSessionOptions=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,Q.ActionTargetBuilder)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Handler=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.labels=n.labels}}h.LogSource=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.plugin_id=n.plugin_id,this.connection_id=n.connection_id,this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.options=this.convertValues(n.options,t),this.status=n.status,this.active_sources=this.convertValues(n.active_sources,c),this.created_at=this.convertValues(n.created_at,M.Time)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.LogSession=p})(be||(be={}));var Rt;(l=>{class t{static createFrom(p={}){return new t(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.displayName=p.displayName,this.pattern=p.pattern}}l.FileFilter=t;class i{static createFrom(p={}){return new i(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.defaultDirectory=p.defaultDirectory,this.defaultFilename=p.defaultFilename,this.title=p.title,this.filters=this.convertValues(p.filters,t),this.showHiddenFiles=p.showHiddenFiles,this.canCreateDirectories=p.canCreateDirectories,this.resolvesAliases=p.resolvesAliases,this.treatPackagesAsDirectories=p.treatPackagesAsDirectories}convertValues(p,h,s=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,h));if(typeof p=="object"){if(s){for(let n of Object.keys(p))p[n]=new h(p[n]);return p}return new h(p)}return p}}l.FileDialogOptions=i})(Rt||(Rt={}));var _e;(A=>{class t{static createFrom(o={}){return new t(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.metric_id=o.metric_id,this.min=o.min,this.max=o.max,this.avg=o.avg,this.sum=o.sum,this.p50=o.p50,this.p90=o.p90,this.p99=o.p99,this.count=o.count,this.window=o.window,this.labels=o.labels}}A.AggregateValue=t;class i{static createFrom(o={}){return new i(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.min=o.min,this.max=o.max,this.color=o.color}}A.ColorRange=i;class l{static createFrom(o={}){return new l(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.metric_id=o.metric_id,this.value=o.value,this.timestamp=this.convertValues(o.timestamp,M.Time),this.labels=o.labels}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.CurrentValue=l;class c{static createFrom(o={}){return new c(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.timestamp=this.convertValues(o.timestamp,M.Time),this.value=o.value,this.labels=o.labels}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.DataPoint=c;class p{static createFrom(o={}){return new p(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.id=o.id,this.name=o.name,this.unit=o.unit,this.icon=o.icon,this.color_ranges=this.convertValues(o.color_ranges,i),this.format_string=o.format_string,this.supported_shapes=o.supported_shapes,this.chart_group=o.chart_group}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.MetricDescriptor=p;class h{static createFrom(o={}){return new h(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource=o.resource,this.metrics=this.convertValues(o.metrics,p)}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.Handler=h;class s{static createFrom(o={}){return new s(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.plugin_id=o.plugin_id,this.provider_id=o.provider_id,this.name=o.name,this.icon=o.icon,this.description=o.description,this.handlers=this.convertValues(o.handlers,h)}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.MetricProviderSummary=s;class n{static createFrom(o={}){return new n(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.metric_id=o.metric_id,this.data_points=this.convertValues(o.data_points,c),this.labels=o.labels}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.TimeSeries=n;class g{static createFrom(o={}){return new g(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.time_series=this.convertValues(o.time_series,n),this.current_value=this.convertValues(o.current_value,l),this.aggregate_value=this.convertValues(o.aggregate_value,t)}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.MetricResult=g;class a{static createFrom(o={}){return new a(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource_key=o.resource_key,this.resource_id=o.resource_id,this.resource_namespace=o.resource_namespace,this.resource_data=o.resource_data,this.metric_ids=o.metric_ids,this.shape=o.shape,this.start_time=this.convertValues(o.start_time,M.Time),this.end_time=this.convertValues(o.end_time,M.Time),this.step=o.step,this.params=o.params}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.QueryRequest=a;class y{static createFrom(o={}){return new y(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.success=o.success,this.results=this.convertValues(o.results,g),this.error=o.error}convertValues(o,v,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(b=>this.convertValues(b,v));if(typeof o=="object"){if(N){for(let b of Object.keys(o))o[b]=new v(o[b]);return o}return new v(o)}return o}}A.QueryResponse=y;class G{static createFrom(o={}){return new G(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource_key=o.resource_key,this.resource_id=o.resource_id,this.resource_namespace=o.resource_namespace,this.resource_data=o.resource_data,this.metric_ids=o.metric_ids,this.interval=o.interval}}A.SubscribeRequest=G})(_e||(_e={}));var at;(p=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.resource_id=s.resource_id,this.connection_id=s.connection_id}}p.FindPortForwardSessionRequest=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.algorithm=s.algorithm,this.key=s.key,this.enabled=s.enabled}}p.PortForwardSessionEncryption=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.created_at=this.convertValues(s.created_at,M.Time),this.updated_at=this.convertValues(s.updated_at,M.Time),this.connection=s.connection,this.labels=s.labels,this.id=s.id,this.protocol=s.protocol,this.state=s.state,this.connection_type=s.connection_type,this.encryption=this.convertValues(s.encryption,i),this.local_port=s.local_port,this.remote_port=s.remote_port}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.PortForwardSession=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.connection=s.connection,this.labels=s.labels,this.params=s.params,this.protocol=s.protocol,this.connection_type=s.connection_type,this.encryption=this.convertValues(s.encryption,i),this.local_port=s.local_port,this.remote_port=s.remote_port}convertValues(s,n,g=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(g){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.PortForwardSessionOptions=c})(at||(at={}));var Ot;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.DevMode=c.DevMode,this.DevModePath=c.DevModePath,this.ExistingState=this.convertValues(c.ExistingState,Q.PluginState)}convertValues(c,p,h=!1){if(!c)return c;if(c.slice&&c.map)return c.map(s=>this.convertValues(s,p));if(typeof c=="object"){if(h){for(let s of Object.keys(c))c[s]=new p(c[s]);return c}return new p(c)}return c}}i.LoadPluginOptions=t})(Ot||(Ot={}));var Et;(h=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.description=n.description,this.icon_url=n.icon_url,this.category=n.category,this.tags=n.tags,this.license=n.license,this.official=n.official,this.featured=n.featured,this.download_count=n.download_count,this.average_rating=n.average_rating,this.review_count=n.review_count,this.repository=n.repository,this.url=n.url,this.installed=n.installed,this.installed_version=n.installed_version,this.latest_version=n.latest_version,this.update_available=n.update_available}}h.AvailablePlugin=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.date=n.date,this.count=n.count}}h.DailyStat=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.total=n.total,this.last_month=n.last_month,this.last_week=n.last_week,this.daily_stats=this.convertValues(n.daily_stats,i)}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.DownloadStats=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.user_id=n.user_id,this.rating=n.rating,this.title=n.title,this.body=n.body,this.created_at=n.created_at}}h.Review=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.version=n.version,this.description=n.description,this.changelog=n.changelog,this.min_ide_version=n.min_ide_version,this.max_ide_version=n.max_ide_version,this.capabilities=n.capabilities,this.created_at=n.created_at}}h.VersionInfo=p})(Et||(Et={}));var Se;(h=>{let t;(v=>(v.TEXT="text",v.SELECT="select",v.MULTISELECT="multiselect",v.INTEGER="integer",v.FLOAT="float",v.TOGGLE="toggle",v.COLOR="color",v.DATETIME="datetime",v.PASSWORD="password"))(t=h.SettingType||(h.SettingType={}));class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.enabled=n.enabled,this.allowFolders=n.allowFolders,this.extensions=n.extensions,this.multiple=n.multiple,this.relative=n.relative,this.defaultPath=n.defaultPath}}h.SettingFileSelection=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.label=n.label,this.description=n.description,this.value=n.value}}h.SettingOption=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.label=n.label,this.description=n.description,this.type=n.type,this.value=n.value,this.default=n.default,this.options=this.convertValues(n.options,l),this.fileSelection=this.convertValues(n.fileSelection,i),this.sensitive=n.sensitive}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Setting=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.settings=this.convertValues(n.settings,c,!0),this.id=n.id,this.label=n.label,this.description=n.description,this.icon=n.icon}convertValues(n,g,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,g));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new g(n[y]);return n}return new g(n)}return n}}h.Category=p})(Se||(Se={}));var M;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c))}}i.Time=t})(M||(M={}));var Q;(q=>{let t;(D=>(D.UNKNOWN="UNKNOWN",D.CONNECTED="CONNECTED",D.DISCONNECTED="DISCONNECTED",D.PENDING="PENDING",D.FAILED="FAILED",D.ERROR="ERROR",D.UNAUTHORIZED="UNAUTHORIZED",D.FORBIDDEN="FORBIDDEN",D.BAD_REQUEST="BAD_REQUEST",D.NOT_FOUND="NOT_FOUND",D.TIMEOUT="TIMEOUT",D.UNAVAILABLE="UNAVAILABLE",D.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"))(t=q.ConnectionStatusCode||(q.ConnectionStatusCode={}));class i{static createFrom(e={}){return new i(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.label=e.label,this.description=e.description,this.icon=e.icon,this.scope=e.scope,this.streaming=e.streaming}}q.ActionDescriptor=i;class l{static createFrom(e={}){return new l(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.namespace=e.namespace,this.params=e.params}}q.ActionInput=l;class c{static createFrom(e={}){return new c(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.success=e.success,this.data=e.data,this.message=e.message}}q.ActionResult=c;class p{static createFrom(e={}){return new p(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.selectors=e.selectors,this.label_selector=e.label_selector,this.label=e.label,this.paths=e.paths}}q.ActionTargetBuilder=p;class h{static createFrom(e={}){return new h(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.idAccessor=e.idAccessor,this.namespaceAccessor=e.namespaceAccessor,this.namespaced=e.namespaced,this.resourceKey=e.resourceKey,this.keyAccessor=e.keyAccessor,this.keyMap=e.keyMap,this.detailExtractors=e.detailExtractors,this.displayId=e.displayId}}q.ResourceLink=h;class s{static createFrom(e={}){return new s(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.header=e.header,this.accessor=e.accessor,this.accessorPriority=e.accessorPriority,this.colorMap=e.colorMap,this.color=e.color,this.align=e.align,this.hidden=e.hidden,this.width=e.width,this.formatter=e.formatter,this.component=e.component,this.componentParams=e.componentParams,this.resourceLink=this.convertValues(e.resourceLink,h),this.valueMap=e.valueMap}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.ColumnDef=s;class n{static createFrom(e={}){return new n(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.last_refresh=this.convertValues(e.last_refresh,M.Time),this.data=e.data,this.labels=e.labels,this.id=e.id,this.uid=e.uid,this.name=e.name,this.description=e.description,this.avatar=e.avatar,this.expiry_time=e.expiry_time,this.Client=e.Client}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.Connection=n;class g{static createFrom(e={}){return new g(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=this.convertValues(e.connection,n),this.status=e.status,this.error=e.error,this.details=e.details}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.ConnectionStatus=g;class a{static createFrom(e={}){return new a(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.input=e.input,this.namespace=e.namespace}}q.CreateInput=a;class y{static createFrom(e={}){return new y(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}q.CreateResult=y;class G{static createFrom(e={}){return new G(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}q.DeleteInput=G;class A{static createFrom(e={}){return new A(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}q.DeleteResult=A;class tt{static createFrom(e={}){return new tt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.resourceKey=e.resourceKey,this.fileMatch=e.fileMatch,this.uri=e.uri,this.url=e.url,this.content=e.content,this.language=e.language}}q.EditorSchema=tt;class o{static createFrom(e={}){return new o(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize}}q.PaginationParams=o;class v{static createFrom(e={}){return new v(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.by=e.by,this.direction=e.direction}}q.OrderParams=v;class N{static createFrom(e={}){return new N(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.conditions=e.conditions,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,o)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.FindInput=N;class b{static createFrom(e={}){return new b(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.page=e.page,this.pageSize=e.pageSize,this.total=e.total,this.pages=e.pages}}q.PaginationResult=b;class et{static createFrom(e={}){return new et(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.FindResult=et;class I{static createFrom(e={}){return new I(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.id=e.id,this.namespace=e.namespace}}q.GetInput=I;class ct{static createFrom(e={}){return new ct(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}q.GetResult=ct;class B{static createFrom(e={}){return new B(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=e.connection,this.resources=e.resources,this.resourceCounts=e.resourceCounts,this.totalResources=e.totalResources,this.syncedCount=e.syncedCount,this.errorCount=e.errorCount}}q.InformerConnectionSummary=B;class nt{static createFrom(e={}){return new nt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.title=e.title,this.icon=e.icon,this.description=e.description,this.items=this.convertValues(e.items,nt)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.LayoutItem=nt;class J{static createFrom(e={}){return new J(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.namespaces=e.namespaces,this.order=this.convertValues(e.order,v),this.pagination=this.convertValues(e.pagination,o)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.ListInput=J;class ${static createFrom(e={}){return new $(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success,this.pagination=this.convertValues(e.pagination,b)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.ListResult=$;class lt{static createFrom(e={}){return new lt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.metadata=this.convertValues(e.metadata,st.PluginMeta),this.enabled=e.enabled,this.running=e.running,this.devMode=e.devMode,this.devPath=e.devPath,this.loading=e.loading,this.loadError=e.loadError,this.capabilities=e.capabilities}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.Plugin=lt;class F{static createFrom(e={}){return new F(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.Metadata=this.convertValues(e.Metadata,st.PluginMeta),this.ID=e.ID,this.DevPath=e.DevPath,this.Enabled=e.Enabled,this.DevMode=e.DevMode}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.PluginState=F;class rt{static createFrom(e={}){return new rt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id_accessor=e.id_accessor,this.namespace_accessor=e.namespace_accessor,this.memoizer_accessor=e.memoizer_accessor,this.columnDefs=this.convertValues(e.columnDefs,s),this.supportedOperations=e.supportedOperations}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.ResourceDefinition=rt;class Y{static createFrom(e={}){return new Y(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.name=e.name,this.description=e.description,this.icon=e.icon,this.resources=this.convertValues(e.resources,Array,!0)}convertValues(e,_,k=!1){if(!e)return e;if(e.slice&&e.map)return e.map(m=>this.convertValues(m,_));if(typeof e=="object"){if(k){for(let m of Object.keys(e))e[m]=new _(e[m]);return e}return new _(e)}return e}}q.ResourceGroup=Y;class U{static createFrom(e={}){return new U(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.group=e.group,this.version=e.version,this.kind=e.kind,this.label=e.label,this.icon=e.icon,this.description=e.description,this.category=e.category}}q.ResourceMeta=U;class z{static createFrom(e={}){return new z(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.input=e.input,this.params=e.params,this.id=e.id,this.namespace=e.namespace}}q.UpdateInput=z;class W{static createFrom(e={}){return new W(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}q.UpdateResult=W})(Q||(Q={}));var xe;(p=>{class t{static createFrom(s={}){return new t(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin=s.plugin}}p.GetPluginComponentsInput=t;class i{static createFrom(s={}){return new i(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin=s.plugin,this.resource=s.resource,this.area=s.area}}p.GetResourceAreaComponentInput=i;class l{static createFrom(s={}){return new l(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.plugin=s.plugin,this.resource=s.resource}}p.GetResourceComponentsInput=l;class c{static createFrom(s={}){return new c(s)}constructor(s={}){typeof s=="string"&&(s=JSON.parse(s)),this.owner=s.owner,this.name=s.name,this.plugin=s.plugin,this.resource=s.resource,this.area=s.area,this.extension=s.extension}}p.ResourceComponent=c})(xe||(xe={}));var Re;(i=>{class t{static createFrom(c={}){return new t(c)}constructor(c={}){typeof c=="string"&&(c=JSON.parse(c)),this.filename=c.filename,this.contents=c.contents}}i.GetLanguageInput=t})(Re||(Re={}));var Ct={};j(Ct,{GetOperatingSystem:()=>Ze,OpenFileSelectionDialog:()=>tn,SaveFileDialog:()=>en,WriteFileContent:()=>nn});function Ze(){return window.go.main.App.GetOperatingSystem()}function tn(t){return window.go.main.App.OpenFileSelectionDialog(t)}function en(t){return window.go.main.App.SaveFileDialog(t)}function nn(t,i){return window.go.main.App.WriteFileContent(t,i)}var Pt={};j(Pt,{Delete:()=>rn,Get:()=>on,Keys:()=>sn,Set:()=>an});function rn(t,i){return window.go.data.Client.Delete(t,i)}function on(t,i){return window.go.data.Client.Get(t,i)}function sn(t){return window.go.data.Client.Keys(t)}function an(t,i,l){return window.go.data.Client.Set(t,i,l)}var kt={};j(kt,{GetDevServerLogs:()=>un,GetDevServerState:()=>cn,GetExternalPluginInfo:()=>ln,Initialize:()=>pn,IsManaged:()=>fn,ListDevServerStates:()=>gn,RestartDevServer:()=>dn,Shutdown:()=>yn,StartDevServer:()=>mn,StartDevServerForPath:()=>hn,StopDevServer:()=>wn});function un(t,i){return window.go.devserver.DevServerManager.GetDevServerLogs(t,i)}function cn(t){return window.go.devserver.DevServerManager.GetDevServerState(t)}function ln(t){return window.go.devserver.DevServerManager.GetExternalPluginInfo(t)}function pn(t){return window.go.devserver.DevServerManager.Initialize(t)}function fn(t){return window.go.devserver.DevServerManager.IsManaged(t)}function gn(){return window.go.devserver.DevServerManager.ListDevServerStates()}function dn(t){return window.go.devserver.DevServerManager.RestartDevServer(t)}function yn(){return window.go.devserver.DevServerManager.Shutdown()}function mn(t){return window.go.devserver.DevServerManager.StartDevServer(t)}function hn(t,i){return window.go.devserver.DevServerManager.StartDevServerForPath(t,i)}function wn(t){return window.go.devserver.DevServerManager.StopDevServer(t)}var Tt={};j(Tt,{Debug:()=>vn,Error:()=>bn,Info:()=>_n,Log:()=>Sn,ReadLog:()=>xn,StartTail:()=>Rn,StopTail:()=>On,Warn:()=>En});function vn(t,i){return window.go.diagnostics.DiagnosticsClient.Debug(t,i)}function bn(t,i){return window.go.diagnostics.DiagnosticsClient.Error(t,i)}function _n(t,i){return window.go.diagnostics.DiagnosticsClient.Info(t,i)}function Sn(t,i,l){return window.go.diagnostics.DiagnosticsClient.Log(t,i,l)}function xn(t){return window.go.diagnostics.DiagnosticsClient.ReadLog(t)}function Rn(t){return window.go.diagnostics.DiagnosticsClient.StartTail(t)}function On(t){return window.go.diagnostics.DiagnosticsClient.StopTail(t)}function En(t,i){return window.go.diagnostics.DiagnosticsClient.Warn(t,i)}var Nt={};j(Nt,{AttachSession:()=>Cn,CloseSession:()=>Pn,CreateSession:()=>kn,CreateTerminal:()=>Tn,DetachSession:()=>Nn,GetHandler:()=>Fn,GetHandlers:()=>An,GetPluginHandlers:()=>Dn,GetSession:()=>Vn,ListPlugins:()=>jn,ListSessions:()=>Mn,ResizeSession:()=>Gn,WriteSession:()=>Ln});function Cn(t){return window.go.exec.Client.AttachSession(t)}function Pn(t){return window.go.exec.Client.CloseSession(t)}function kn(t,i,l){return window.go.exec.Client.CreateSession(t,i,l)}function Tn(t){return window.go.exec.Client.CreateTerminal(t)}function Nn(t){return window.go.exec.Client.DetachSession(t)}function Fn(t,i){return window.go.exec.Client.GetHandler(t,i)}function An(){return window.go.exec.Client.GetHandlers()}function Dn(t){return window.go.exec.Client.GetPluginHandlers(t)}function Vn(t){return window.go.exec.Client.GetSession(t)}function jn(){return window.go.exec.Client.ListPlugins()}function Mn(){return window.go.exec.Client.ListSessions()}function Gn(t,i,l){return window.go.exec.Client.ResizeSession(t,i,l)}function Ln(t,i){return window.go.exec.Client.WriteSession(t,i)}var Ft={};j(Ft,{CloseSession:()=>In,CreateSession:()=>Jn,GetSession:()=>Un,GetSupportedResources:()=>Hn,ListSessions:()=>$n,PauseSession:()=>Yn,ResumeSession:()=>zn,UpdateSessionOptions:()=>Bn});function In(t){return window.go.logs.Client.CloseSession(t)}function Jn(t,i,l){return window.go.logs.Client.CreateSession(t,i,l)}function Un(t){return window.go.logs.Client.GetSession(t)}function Hn(t){return window.go.logs.Client.GetSupportedResources(t)}function $n(){return window.go.logs.Client.ListSessions()}function Yn(t){return window.go.logs.Client.PauseSession(t)}function zn(t){return window.go.logs.Client.ResumeSession(t)}function Bn(t,i){return window.go.logs.Client.UpdateSessionOptions(t,i)}var At={};j(At,{GetProviders:()=>Wn,GetProvidersForResource:()=>qn,Query:()=>Kn,QueryAll:()=>Qn,Subscribe:()=>Xn,Unsubscribe:()=>Zn});function Wn(){return window.go.metric.Client.GetProviders()}function qn(t){return window.go.metric.Client.GetProvidersForResource(t)}function Kn(t,i,l){return window.go.metric.Client.Query(t,i,l)}function Qn(t,i,l,c,p,h,s,n,g,a){return window.go.metric.Client.QueryAll(t,i,l,c,p,h,s,n,g,a)}function Xn(t,i,l){return window.go.metric.Client.Subscribe(t,i,l)}function Zn(t){return window.go.metric.Client.Unsubscribe(t)}var Mt={};j(Mt,{ClosePortForwardSession:()=>Dt,FindPortForwardSessions:()=>Vt,GetPortForwardSession:()=>tr,GetSupportedPortForwardTargets:()=>er,ListAllPortForwardSessions:()=>nr,ListPortForwardSessions:()=>rr,StartResourcePortForwardingSession:()=>jt});function Dt(t){return window.go.networker.Client.ClosePortForwardSession(t)}function Vt(t,i,l){return window.go.networker.Client.FindPortForwardSessions(t,i,l)}function tr(t){return window.go.networker.Client.GetPortForwardSession(t)}function er(t){return window.go.networker.Client.GetSupportedPortForwardTargets(t)}function nr(){return window.go.networker.Client.ListAllPortForwardSessions()}function rr(t,i){return window.go.networker.Client.ListPortForwardSessions(t,i)}function jt(t,i,l){return window.go.networker.Client.StartResourcePortForwardingSession(t,i,l)}var Gt={};j(Gt,{AddTarget:()=>ir,GetPlugin:()=>or,GetPluginDownloadStats:()=>sr,GetPluginMeta:()=>ar,GetPluginReadme:()=>ur,GetPluginReleaseHistory:()=>cr,GetPluginReviews:()=>lr,GetPluginVersions:()=>pr,Initialize:()=>fr,InstallFromPathPrompt:()=>gr,InstallInDevMode:()=>dr,InstallPluginFromPath:()=>yr,InstallPluginVersion:()=>mr,ListAvailablePlugins:()=>hr,ListPluginMetas:()=>wr,ListPlugins:()=>vr,LoadPlugin:()=>br,ReloadPlugin:()=>_r,RemoveTarget:()=>Sr,Run:()=>xr,SearchPlugins:()=>Rr,SetDevServerChecker:()=>Or,SetDevServerManager:()=>Er,Shutdown:()=>Cr,UninstallPlugin:()=>Pr,UnloadPlugin:()=>kr});function ir(t){return window.go.plugin.pluginManager.AddTarget(t)}function or(t){return window.go.plugin.pluginManager.GetPlugin(t)}function sr(t){return window.go.plugin.pluginManager.GetPluginDownloadStats(t)}function ar(t){return window.go.plugin.pluginManager.GetPluginMeta(t)}function ur(t){return window.go.plugin.pluginManager.GetPluginReadme(t)}function cr(t){return window.go.plugin.pluginManager.GetPluginReleaseHistory(t)}function lr(t,i){return window.go.plugin.pluginManager.GetPluginReviews(t,i)}function pr(t){return window.go.plugin.pluginManager.GetPluginVersions(t)}function fr(t){return window.go.plugin.pluginManager.Initialize(t)}function gr(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function dr(){return window.go.plugin.pluginManager.InstallInDevMode()}function yr(t){return window.go.plugin.pluginManager.InstallPluginFromPath(t)}function mr(t,i){return window.go.plugin.pluginManager.InstallPluginVersion(t,i)}function hr(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function wr(){return window.go.plugin.pluginManager.ListPluginMetas()}function vr(){return window.go.plugin.pluginManager.ListPlugins()}function br(t,i){return window.go.plugin.pluginManager.LoadPlugin(t,i)}function _r(t){return window.go.plugin.pluginManager.ReloadPlugin(t)}function Sr(t){return window.go.plugin.pluginManager.RemoveTarget(t)}function xr(t){return window.go.plugin.pluginManager.Run(t)}function Rr(t,i,l){return window.go.plugin.pluginManager.SearchPlugins(t,i,l)}function Or(t){return window.go.plugin.pluginManager.SetDevServerChecker(t)}function Er(t){return window.go.plugin.pluginManager.SetDevServerManager(t)}function Cr(){return window.go.plugin.pluginManager.Shutdown()}function Pr(t){return window.go.plugin.pluginManager.UninstallPlugin(t)}function kr(t){return window.go.plugin.pluginManager.UnloadPlugin(t)}var Lt={};j(Lt,{AddConnection:()=>Tr,Create:()=>Nr,Delete:()=>Fr,EnsureInformerForResource:()=>Ar,ExecuteAction:()=>Dr,Find:()=>Vr,Get:()=>jr,GetActions:()=>Mr,GetConnection:()=>Gr,GetConnectionNamespaces:()=>Lr,GetDefaultLayout:()=>Ir,GetEditorSchemas:()=>Jr,GetInformerState:()=>Ur,GetLayout:()=>Hr,GetResourceDefinition:()=>$r,GetResourceGroup:()=>Yr,GetResourceGroups:()=>zr,GetResourceType:()=>Br,GetResourceTypes:()=>Wr,HasResourceType:()=>qr,List:()=>Kr,ListAllConnections:()=>Qr,ListConnections:()=>Xr,ListPlugins:()=>Zr,LoadConnections:()=>ti,RemoveConnection:()=>ei,SetLayout:()=>ni,StartConnection:()=>ri,StartConnectionInformer:()=>ii,StopConnection:()=>oi,StopConnectionInformer:()=>si,StreamAction:()=>ai,Update:()=>ui,UpdateConnection:()=>ci});function Tr(t,i){return window.go.resource.Client.AddConnection(t,i)}function Nr(t,i,l,c){return window.go.resource.Client.Create(t,i,l,c)}function Fr(t,i,l,c){return window.go.resource.Client.Delete(t,i,l,c)}function Ar(t,i,l){return window.go.resource.Client.EnsureInformerForResource(t,i,l)}function Dr(t,i,l,c,p){return window.go.resource.Client.ExecuteAction(t,i,l,c,p)}function Vr(t,i,l,c){return window.go.resource.Client.Find(t,i,l,c)}function jr(t,i,l,c){return window.go.resource.Client.Get(t,i,l,c)}function Mr(t,i,l){return window.go.resource.Client.GetActions(t,i,l)}function Gr(t,i){return window.go.resource.Client.GetConnection(t,i)}function Lr(t,i){return window.go.resource.Client.GetConnectionNamespaces(t,i)}function Ir(t){return window.go.resource.Client.GetDefaultLayout(t)}function Jr(t,i){return window.go.resource.Client.GetEditorSchemas(t,i)}function Ur(t,i){return window.go.resource.Client.GetInformerState(t,i)}function Hr(t,i){return window.go.resource.Client.GetLayout(t,i)}function $r(t,i){return window.go.resource.Client.GetResourceDefinition(t,i)}function Yr(t,i){return window.go.resource.Client.GetResourceGroup(t,i)}function zr(t,i){return window.go.resource.Client.GetResourceGroups(t,i)}function Br(t,i){return window.go.resource.Client.GetResourceType(t,i)}function Wr(t,i){return window.go.resource.Client.GetResourceTypes(t,i)}function qr(t,i){return window.go.resource.Client.HasResourceType(t,i)}function Kr(t,i,l,c){return window.go.resource.Client.List(t,i,l,c)}function Qr(){return window.go.resource.Client.ListAllConnections()}function Xr(t){return window.go.resource.Client.ListConnections(t)}function Zr(){return window.go.resource.Client.ListPlugins()}function ti(t){return window.go.resource.Client.LoadConnections(t)}function ei(t,i){return window.go.resource.Client.RemoveConnection(t,i)}function ni(t,i,l){return window.go.resource.Client.SetLayout(t,i,l)}function ri(t,i){return window.go.resource.Client.StartConnection(t,i)}function ii(t,i){return window.go.resource.Client.StartConnectionInformer(t,i)}function oi(t,i){return window.go.resource.Client.StopConnection(t,i)}function si(t,i){return window.go.resource.Client.StopConnectionInformer(t,i)}function ai(t,i,l,c,p){return window.go.resource.Client.StreamAction(t,i,l,c,p)}function ui(t,i,l,c){return window.go.resource.Client.Update(t,i,l,c)}function ci(t,i){return window.go.resource.Client.UpdateConnection(t,i)}var V=require("@wailsio/runtime");var It={};j(It,{GetSetting:()=>li,ListPlugins:()=>pi,ListSettings:()=>fi,PluginValues:()=>gi,SetSetting:()=>di,SetSettings:()=>yi,Values:()=>mi});function li(t,i){return window.go.settings.Client.GetSetting(t,i)}function pi(){return window.go.settings.Client.ListPlugins()}function fi(t){return window.go.settings.Client.ListSettings(t)}function gi(t){return window.go.settings.Client.PluginValues(t)}function di(t,i,l){return window.go.settings.Client.SetSetting(t,i,l)}function yi(t,i){return window.go.settings.Client.SetSettings(t,i)}function mi(){return window.go.settings.Client.Values()}var Jt={};j(Jt,{GetBool:()=>hi,GetCategories:()=>wi,GetCategory:()=>vi,GetCategoryValues:()=>bi,GetFloat:()=>_i,GetFloatSlice:()=>Si,GetInt:()=>xi,GetIntSlice:()=>Ri,GetSetting:()=>Oi,GetSettingValue:()=>Ei,GetString:()=>Ci,GetStringSlice:()=>Pi,HasSetting:()=>ki,Initialize:()=>Ti,ListSettings:()=>Ni,LoadSettings:()=>Fi,RegisterSetting:()=>Ai,RegisterSettings:()=>Di,ResetSetting:()=>Vi,SaveSettings:()=>ji,SetSetting:()=>Mi,SetSettings:()=>Gi,Values:()=>Li});function hi(t){return window.go.settings.provider.GetBool(t)}function wi(){return window.go.settings.provider.GetCategories()}function vi(t){return window.go.settings.provider.GetCategory(t)}function bi(t){return window.go.settings.provider.GetCategoryValues(t)}function _i(t){return window.go.settings.provider.GetFloat(t)}function Si(t){return window.go.settings.provider.GetFloatSlice(t)}function xi(t){return window.go.settings.provider.GetInt(t)}function Ri(t){return window.go.settings.provider.GetIntSlice(t)}function Oi(t){return window.go.settings.provider.GetSetting(t)}function Ei(t){return window.go.settings.provider.GetSettingValue(t)}function Ci(t){return window.go.settings.provider.GetString(t)}function Pi(t){return window.go.settings.provider.GetStringSlice(t)}function ki(t){return window.go.settings.provider.HasSetting(t)}function Ti(t,i){return window.go.settings.provider.Initialize(t,i)}function Ni(){return window.go.settings.provider.ListSettings()}function Fi(){return window.go.settings.provider.LoadSettings()}function Ai(t,i){return window.go.settings.provider.RegisterSetting(t,i)}function Di(t,i){return window.go.settings.provider.RegisterSettings(t,i)}function Vi(t){return window.go.settings.provider.ResetSetting(t)}function ji(){return window.go.settings.provider.SaveSettings()}function Mi(t,i){return window.go.settings.provider.SetSetting(t,i)}function Gi(t){return window.go.settings.provider.SetSettings(t)}function Li(){return window.go.settings.provider.Values()}var Ut={};j(Ut,{GetPluginComponents:()=>Ii,GetResourceAreaComponent:()=>Ji,GetResourceComponents:()=>Ui});function Ii(t){return window.go.ui.Client.GetPluginComponents(t)}function Ji(t){return window.go.ui.Client.GetResourceAreaComponent(t)}function Ui(t){return window.go.ui.Client.GetResourceComponents(t)}var Ht={};j(Ht,{DetectLanguage:()=>Hi});function Hi(t){return window.go.utils.Client.DetectLanguage(t)}var Me=he(Xt()),so={},Ge=Me.default.createContext(void 0);so.env.DEV&&(Ge.displayName="PortForwardContext");var ut=he(Xt());var Le=require("@wailsio/runtime");function Ie({pluginID:t,connectionID:i,resourceID:l}){let[c,p]=ut.default.useState([]);ut.default.useEffect(()=>{!t||!i||!l||Vt(t,i,at.FindPortForwardSessionRequest.createFrom({resource_id:l,connection_id:i})).then(n=>{p(n)}).catch(n=>{n instanceof Error&&console.log(n)})},[t,i]);let h=ut.default.useCallback(async n=>{let g=at.PortForwardSessionOptions.createFrom({local_port:n.toPort||0,remote_port:n.fromPort,protocol:n.protocol||"TCP",connection_type:"RESOURCE",connection:{resource_data:n.resource,connection_id:i,plugin_id:t,resource_id:n.resourceId,resource_key:n.resourceKey},labels:n.labels??{},params:n.parameters??{}});try{let a=await jt(t,i,g);return p([...c,a]),n.openInBrowser&&Le.Browser.OpenURL(`http://localhost:${a.remote_port}`),a}catch(a){throw a instanceof Error&&console.log(a),a}},[t,i,c]),s=ut.default.useCallback(async n=>{try{await Dt(n),p(c.filter(g=>g.id!==n))}catch(g){throw g instanceof Error&&console.log(g),g}},[c]);return{sessions:c,forward:h,close:s}}0&&(module.exports={Application,Browser,Clipboard,Events,PortForwardContext,Screens,System,WML,Window,app,config,data,devserver,diagnostics,exec,logs,main,metric,networker,plugin,pluginManager,registry,resource,settings,settingsProvider,time,types,ui,useResourcePortForwarder,utils});
14
14
  /*! Bundled license information:
15
15
 
16
16
  react/cjs/react.production.js: