@omniviewdev/providers 0.4.1 → 0.5.0

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
@@ -10,7 +10,7 @@ Your code should look like:
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 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});
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((lo,Qt)=>{"use strict";process.env.NODE_ENV==="production"?Qt.exports=Ve():Qt.exports=je()});var so={};j(so,{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(so);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()),Ge=Me.default.createContext(void 0);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:
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ Your code should look like:
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 et(){O.asyncTransitions--}function $(r){if(lt===null)try{var u=("require"+Math.random()).slice(0,7);lt=(yt&&yt[u]).call(yt,"timers").setImmediate}catch{lt=function(d){Kt===!1&&(Kt=!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 lt(r)}function J(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function Y(r,u){u!==pt-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. "),pt=u}function B(r,u,f){var d=O.actQueue;if(d!==null)if(d.length!==0)try{W(d),$(function(){return B(r,u,f)});return}catch(w){O.thrownErrors.push(w)}else O.actQueue=null;0<O.thrownErrors.length?(d=J(O.thrownErrors),O.thrownErrors.length=0,f(d)):u(r)}function W(r){if(!bt){bt=!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{bt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var mt=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"),ht=Symbol.for("react.consumer"),Vt=Symbol.for("react.context"),jt=Symbol.for("react.forward_ref"),Mt=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),wt=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Gt=Symbol.for("react.activity"),D=Symbol.iterator,Lt={},It={isMounted:function(){return!1},enqueueForceUpdate:function(r){l(r,"forceUpdate")},enqueueReplaceState:function(r){l(r,"replaceState")},enqueueSetState:function(r){l(r,"setState")}},Jt=Object.assign,vt={};Object.freeze(vt),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 G={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(rt in G)G.hasOwnProperty(rt)&&t(rt,G[rt]);p.prototype=c.prototype,G=h.prototype=new p,G.constructor=h,Jt(G,c.prototype),G.isPureReactComponent=!0;var Ut=Array.isArray,Me=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},ct=Object.prototype.hasOwnProperty,Ht=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(r){return r()}};var $t,Yt,zt={},Ge=G.react_stack_bottom_frame.bind(G,A)(),Le=Ht(y(A)),Bt=!1,Wt=/\/+/g,qt=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)},Kt=!1,lt=null,pt=0,ft=!1,bt=!1,Qt=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:$;G=Object.freeze({__proto__:null,c:function(r){return F().useMemoCache(r)}});var rt={map:H,forEach:function(r,u,f){H(r,function(){u.apply(this,arguments)},f)},count:function(r){var u=0;return H(r,function(){u++}),u},toArray:function(r){return H(r,function(u){return u})||[]},only:function(r){if(!L(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};S.Activity=Gt,S.Children=rt,S.Component=c,S.Fragment=_,S.Profiler=m,S.PureComponent=h,S.StrictMode=k,S.Suspense=Mt,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,S.__COMPILER_RUNTIME=G,S.act=function(r){var u=O.actQueue,f=pt;pt++;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 Y(u,f),r=J(O.thrownErrors),O.thrownErrors.length=0,r;if(E!==null&&typeof E=="object"&&typeof E.then=="function"){var R=E;return Qt(function(){w||ft||(ft=!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,U){w=!0,R.then(function(q){if(Y(u,f),f===0){try{W(d),$(function(){return B(q,C,U)})}catch(Je){O.thrownErrors.push(Je)}if(0<O.thrownErrors.length){var Ie=J(O.thrownErrors);O.thrownErrors.length=0,U(Ie)}}else C(q)},function(q){Y(u,f),0<O.thrownErrors.length&&(q=J(O.thrownErrors),O.thrownErrors.length=0),U(q)})}}}var P=E;if(Y(u,f),f===0&&(W(d),d.length!==0&&Qt(function(){w||ft||(ft=!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=J(O.thrownErrors),O.thrownErrors.length=0,r;return{then:function(C,U){w=!0,f===0?(O.actQueue=d,$(function(){return B(P,C,U)})):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=Jt({},r.props),w=r.key,E=r._owner;if(u!=null){var R;t:{if(ct.call(u,"ref")&&(R=Object.getOwnPropertyDescriptor(u,"ref").get)&&R.isReactWarning){R=!1;break t}R=u.ref!==void 0}R&&(E=V()),X(u)&&(g(u.key),w=""+u.key);for(P in u)!ct.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++)Z(arguments[w]);return d},S.createContext=function(r){return r={$$typeof:Vt,_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},S.createElement=function(r,u,f){for(var d=2;d<arguments.length;d++)Z(arguments[d]);d={};var w=null;if(u!=null)for(C in Yt||!("__self"in u)||"key"in u||(Yt=!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")),X(u)&&(g(u.key),w=""+u.key),u)ct.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,V(),C?Error("react-stack-top-frame"):Ge,C?Ht(y(r)):Le)},S.createRef=function(){var r={current:null};return Object.seal(r),r},S.forwardRef=function(r){r!=null&&r.$$typeof===wt?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:jt,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=L,S.lazy=function(r){r={_status:-1,_result:r};var u={$$typeof:nt,_payload:r,_init:ut},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:wt,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(et,et),d.then(s,qt))}catch(E){qt(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===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)},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 Dt=St((ao,At)=>{"use strict";process.env.NODE_ENV==="production"?At.exports=Ae():At.exports=De()});var gt;(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,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){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,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){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,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginMeta=s})(gt||(gt={}));var Zt;(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})(Zt||(Zt={}));var te;(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,ot.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})(te||(te={}));var ee;(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,ot.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})(ee||(ee={}));var ne;(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})(ne||(ne={}));var re;(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 V{static createFrom(o={}){return new V(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=V})(re||(re={}));var it;(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})(it||(it={}));var ie;(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,ot.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})(ie||(ie={}));var oe;(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})(oe||(oe={}));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 ot;(W=>{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=W.ConnectionStatusCode||(W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.CreateResult=y;class V{static createFrom(e={}){return new V(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}}W.DeleteInput=V;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}}W.DeleteResult=A;class X{static createFrom(e={}){return new X(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}}W.EditorSchema=X;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}}W.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}}W.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}}W.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}}W.PaginationResult=b;class Z{static createFrom(e={}){return new Z(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}}W.FindResult=Z;class L{static createFrom(e={}){return new L(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.id=e.id,this.namespace=e.namespace}}W.GetInput=L;class at{static createFrom(e={}){return new at(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.GetResult=at;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}}W.InformerConnectionSummary=z;class tt{static createFrom(e={}){return new tt(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,tt)}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}}W.LayoutItem=tt;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,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}}W.ListInput=I;class H{static createFrom(e={}){return new H(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}}W.ListResult=H;class ut{static createFrom(e={}){return new ut(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.metadata=this.convertValues(e.metadata,gt.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}}W.Plugin=ut;class F{static createFrom(e={}){return new F(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.Metadata=this.convertValues(e.Metadata,gt.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}}W.PluginState=F;class et{static createFrom(e={}){return new et(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}}W.ResourceDefinition=et;class ${static createFrom(e={}){return new $(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}}W.ResourceGroup=$;class J{static createFrom(e={}){return new J(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}}W.ResourceMeta=J;class Y{static createFrom(e={}){return new Y(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}}W.UpdateInput=Y;class B{static createFrom(e={}){return new B(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.UpdateResult=B})(ot||(ot={}));var ae;(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})(ae||(ae={}));var ue;(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})(ue||(ue={}));var ce={};j(ce,{GetOperatingSystem:()=>We,OpenFileSelectionDialog:()=>qe,SaveFileDialog:()=>Ke,WriteFileContent:()=>Qe});function We(){return window.go.main.App.GetOperatingSystem()}function qe(t){return window.go.main.App.OpenFileSelectionDialog(t)}function Ke(t){return window.go.main.App.SaveFileDialog(t)}function Qe(t,i){return window.go.main.App.WriteFileContent(t,i)}var le={};j(le,{Delete:()=>Xe,Get:()=>Ze,Keys:()=>tn,Set:()=>en});function Xe(t,i){return window.go.data.Client.Delete(t,i)}function Ze(t,i){return window.go.data.Client.Get(t,i)}function tn(t){return window.go.data.Client.Keys(t)}function en(t,i,l){return window.go.data.Client.Set(t,i,l)}var pe={};j(pe,{GetDevServerLogs:()=>nn,GetDevServerState:()=>rn,GetExternalPluginInfo:()=>on,Initialize:()=>sn,IsManaged:()=>an,ListDevServerStates:()=>un,RestartDevServer:()=>cn,Shutdown:()=>ln,StartDevServer:()=>pn,StartDevServerForPath:()=>fn,StopDevServer:()=>gn});function nn(t,i){return window.go.devserver.DevServerManager.GetDevServerLogs(t,i)}function rn(t){return window.go.devserver.DevServerManager.GetDevServerState(t)}function on(t){return window.go.devserver.DevServerManager.GetExternalPluginInfo(t)}function sn(t){return window.go.devserver.DevServerManager.Initialize(t)}function an(t){return window.go.devserver.DevServerManager.IsManaged(t)}function un(){return window.go.devserver.DevServerManager.ListDevServerStates()}function cn(t){return window.go.devserver.DevServerManager.RestartDevServer(t)}function ln(){return window.go.devserver.DevServerManager.Shutdown()}function pn(t){return window.go.devserver.DevServerManager.StartDevServer(t)}function fn(t,i){return window.go.devserver.DevServerManager.StartDevServerForPath(t,i)}function gn(t){return window.go.devserver.DevServerManager.StopDevServer(t)}var fe={};j(fe,{Debug:()=>dn,Error:()=>yn,Info:()=>mn,Log:()=>hn,ReadLog:()=>wn,StartTail:()=>vn,StopTail:()=>bn,Warn:()=>_n});function dn(t,i){return window.go.diagnostics.DiagnosticsClient.Debug(t,i)}function yn(t,i){return window.go.diagnostics.DiagnosticsClient.Error(t,i)}function mn(t,i){return window.go.diagnostics.DiagnosticsClient.Info(t,i)}function hn(t,i,l){return window.go.diagnostics.DiagnosticsClient.Log(t,i,l)}function wn(t){return window.go.diagnostics.DiagnosticsClient.ReadLog(t)}function vn(t){return window.go.diagnostics.DiagnosticsClient.StartTail(t)}function bn(t){return window.go.diagnostics.DiagnosticsClient.StopTail(t)}function _n(t,i){return window.go.diagnostics.DiagnosticsClient.Warn(t,i)}var ge={};j(ge,{AttachSession:()=>Sn,CloseSession:()=>xn,CreateSession:()=>Rn,CreateTerminal:()=>On,DetachSession:()=>En,GetHandler:()=>Cn,GetHandlers:()=>Pn,GetPluginHandlers:()=>kn,GetSession:()=>Tn,ListPlugins:()=>Nn,ListSessions:()=>Fn,ResizeSession:()=>An,WriteSession:()=>Dn});function Sn(t){return window.go.exec.Client.AttachSession(t)}function xn(t){return window.go.exec.Client.CloseSession(t)}function Rn(t,i,l){return window.go.exec.Client.CreateSession(t,i,l)}function On(t){return window.go.exec.Client.CreateTerminal(t)}function En(t){return window.go.exec.Client.DetachSession(t)}function Cn(t,i){return window.go.exec.Client.GetHandler(t,i)}function Pn(){return window.go.exec.Client.GetHandlers()}function kn(t){return window.go.exec.Client.GetPluginHandlers(t)}function Tn(t){return window.go.exec.Client.GetSession(t)}function Nn(){return window.go.exec.Client.ListPlugins()}function Fn(){return window.go.exec.Client.ListSessions()}function An(t,i,l){return window.go.exec.Client.ResizeSession(t,i,l)}function Dn(t,i){return window.go.exec.Client.WriteSession(t,i)}var de={};j(de,{CloseSession:()=>Vn,CreateSession:()=>jn,GetSession:()=>Mn,GetSupportedResources:()=>Gn,ListSessions:()=>Ln,PauseSession:()=>In,ResumeSession:()=>Jn,UpdateSessionOptions:()=>Un});function Vn(t){return window.go.logs.Client.CloseSession(t)}function jn(t,i,l){return window.go.logs.Client.CreateSession(t,i,l)}function Mn(t){return window.go.logs.Client.GetSession(t)}function Gn(t){return window.go.logs.Client.GetSupportedResources(t)}function Ln(){return window.go.logs.Client.ListSessions()}function In(t){return window.go.logs.Client.PauseSession(t)}function Jn(t){return window.go.logs.Client.ResumeSession(t)}function Un(t,i){return window.go.logs.Client.UpdateSessionOptions(t,i)}var ye={};j(ye,{GetProviders:()=>Hn,GetProvidersForResource:()=>$n,Query:()=>Yn,QueryAll:()=>zn,Subscribe:()=>Bn,Unsubscribe:()=>Wn});function Hn(){return window.go.metric.Client.GetProviders()}function $n(t){return window.go.metric.Client.GetProvidersForResource(t)}function Yn(t,i,l){return window.go.metric.Client.Query(t,i,l)}function zn(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 Bn(t,i,l){return window.go.metric.Client.Subscribe(t,i,l)}function Wn(t){return window.go.metric.Client.Unsubscribe(t)}var me={};j(me,{ClosePortForwardSession:()=>xt,FindPortForwardSessions:()=>Rt,GetPortForwardSession:()=>qn,GetSupportedPortForwardTargets:()=>Kn,ListAllPortForwardSessions:()=>Qn,ListPortForwardSessions:()=>Xn,StartResourcePortForwardingSession:()=>Ot});function xt(t){return window.go.networker.Client.ClosePortForwardSession(t)}function Rt(t,i,l){return window.go.networker.Client.FindPortForwardSessions(t,i,l)}function qn(t){return window.go.networker.Client.GetPortForwardSession(t)}function Kn(t){return window.go.networker.Client.GetSupportedPortForwardTargets(t)}function Qn(){return window.go.networker.Client.ListAllPortForwardSessions()}function Xn(t,i){return window.go.networker.Client.ListPortForwardSessions(t,i)}function Ot(t,i,l){return window.go.networker.Client.StartResourcePortForwardingSession(t,i,l)}var he={};j(he,{AddTarget:()=>Zn,GetPlugin:()=>tr,GetPluginDownloadStats:()=>er,GetPluginMeta:()=>nr,GetPluginReadme:()=>rr,GetPluginReleaseHistory:()=>ir,GetPluginReviews:()=>or,GetPluginVersions:()=>sr,Initialize:()=>ar,InstallFromPathPrompt:()=>ur,InstallInDevMode:()=>cr,InstallPluginFromPath:()=>lr,InstallPluginVersion:()=>pr,ListAvailablePlugins:()=>fr,ListPluginMetas:()=>gr,ListPlugins:()=>dr,LoadPlugin:()=>yr,ReloadPlugin:()=>mr,RemoveTarget:()=>hr,Run:()=>wr,SearchPlugins:()=>vr,SetDevServerChecker:()=>br,SetDevServerManager:()=>_r,Shutdown:()=>Sr,UninstallPlugin:()=>xr,UnloadPlugin:()=>Rr});function Zn(t){return window.go.plugin.pluginManager.AddTarget(t)}function tr(t){return window.go.plugin.pluginManager.GetPlugin(t)}function er(t){return window.go.plugin.pluginManager.GetPluginDownloadStats(t)}function nr(t){return window.go.plugin.pluginManager.GetPluginMeta(t)}function rr(t){return window.go.plugin.pluginManager.GetPluginReadme(t)}function ir(t){return window.go.plugin.pluginManager.GetPluginReleaseHistory(t)}function or(t,i){return window.go.plugin.pluginManager.GetPluginReviews(t,i)}function sr(t){return window.go.plugin.pluginManager.GetPluginVersions(t)}function ar(t){return window.go.plugin.pluginManager.Initialize(t)}function ur(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function cr(){return window.go.plugin.pluginManager.InstallInDevMode()}function lr(t){return window.go.plugin.pluginManager.InstallPluginFromPath(t)}function pr(t,i){return window.go.plugin.pluginManager.InstallPluginVersion(t,i)}function fr(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function gr(){return window.go.plugin.pluginManager.ListPluginMetas()}function dr(){return window.go.plugin.pluginManager.ListPlugins()}function yr(t,i){return window.go.plugin.pluginManager.LoadPlugin(t,i)}function mr(t){return window.go.plugin.pluginManager.ReloadPlugin(t)}function hr(t){return window.go.plugin.pluginManager.RemoveTarget(t)}function wr(t){return window.go.plugin.pluginManager.Run(t)}function vr(t,i,l){return window.go.plugin.pluginManager.SearchPlugins(t,i,l)}function br(t){return window.go.plugin.pluginManager.SetDevServerChecker(t)}function _r(t){return window.go.plugin.pluginManager.SetDevServerManager(t)}function Sr(){return window.go.plugin.pluginManager.Shutdown()}function xr(t){return window.go.plugin.pluginManager.UninstallPlugin(t)}function Rr(t){return window.go.plugin.pluginManager.UnloadPlugin(t)}var we={};j(we,{AddConnection:()=>Or,Create:()=>Er,Delete:()=>Cr,EnsureInformerForResource:()=>Pr,ExecuteAction:()=>kr,Find:()=>Tr,Get:()=>Nr,GetActions:()=>Fr,GetConnection:()=>Ar,GetConnectionNamespaces:()=>Dr,GetDefaultLayout:()=>Vr,GetEditorSchemas:()=>jr,GetInformerState:()=>Mr,GetLayout:()=>Gr,GetResourceDefinition:()=>Lr,GetResourceGroup:()=>Ir,GetResourceGroups:()=>Jr,GetResourceType:()=>Ur,GetResourceTypes:()=>Hr,HasResourceType:()=>$r,List:()=>Yr,ListAllConnections:()=>zr,ListConnections:()=>Br,ListPlugins:()=>Wr,LoadConnections:()=>qr,RemoveConnection:()=>Kr,SetLayout:()=>Qr,StartConnection:()=>Xr,StartConnectionInformer:()=>Zr,StopConnection:()=>ti,StopConnectionInformer:()=>ei,StreamAction:()=>ni,Update:()=>ri,UpdateConnection:()=>ii});function Or(t,i){return window.go.resource.Client.AddConnection(t,i)}function Er(t,i,l,c){return window.go.resource.Client.Create(t,i,l,c)}function Cr(t,i,l,c){return window.go.resource.Client.Delete(t,i,l,c)}function Pr(t,i,l){return window.go.resource.Client.EnsureInformerForResource(t,i,l)}function kr(t,i,l,c,p){return window.go.resource.Client.ExecuteAction(t,i,l,c,p)}function Tr(t,i,l,c){return window.go.resource.Client.Find(t,i,l,c)}function Nr(t,i,l,c){return window.go.resource.Client.Get(t,i,l,c)}function Fr(t,i,l){return window.go.resource.Client.GetActions(t,i,l)}function Ar(t,i){return window.go.resource.Client.GetConnection(t,i)}function Dr(t,i){return window.go.resource.Client.GetConnectionNamespaces(t,i)}function Vr(t){return window.go.resource.Client.GetDefaultLayout(t)}function jr(t,i){return window.go.resource.Client.GetEditorSchemas(t,i)}function Mr(t,i){return window.go.resource.Client.GetInformerState(t,i)}function Gr(t,i){return window.go.resource.Client.GetLayout(t,i)}function Lr(t,i){return window.go.resource.Client.GetResourceDefinition(t,i)}function Ir(t,i){return window.go.resource.Client.GetResourceGroup(t,i)}function Jr(t,i){return window.go.resource.Client.GetResourceGroups(t,i)}function Ur(t,i){return window.go.resource.Client.GetResourceType(t,i)}function Hr(t,i){return window.go.resource.Client.GetResourceTypes(t,i)}function $r(t,i){return window.go.resource.Client.HasResourceType(t,i)}function Yr(t,i,l,c){return window.go.resource.Client.List(t,i,l,c)}function zr(){return window.go.resource.Client.ListAllConnections()}function Br(t){return window.go.resource.Client.ListConnections(t)}function Wr(){return window.go.resource.Client.ListPlugins()}function qr(t){return window.go.resource.Client.LoadConnections(t)}function Kr(t,i){return window.go.resource.Client.RemoveConnection(t,i)}function Qr(t,i,l){return window.go.resource.Client.SetLayout(t,i,l)}function Xr(t,i){return window.go.resource.Client.StartConnection(t,i)}function Zr(t,i){return window.go.resource.Client.StartConnectionInformer(t,i)}function ti(t,i){return window.go.resource.Client.StopConnection(t,i)}function ei(t,i){return window.go.resource.Client.StopConnectionInformer(t,i)}function ni(t,i,l,c,p){return window.go.resource.Client.StreamAction(t,i,l,c,p)}function ri(t,i,l,c){return window.go.resource.Client.Update(t,i,l,c)}function ii(t,i){return window.go.resource.Client.UpdateConnection(t,i)}import{Application as ho,Browser as wo,Clipboard as vo,Events as bo,Screens as _o,System as So,Window as xo,WML as Ro}from"@wailsio/runtime";var ve={};j(ve,{GetSetting:()=>oi,ListPlugins:()=>si,ListSettings:()=>ai,PluginValues:()=>ui,SetSetting:()=>ci,SetSettings:()=>li,Values:()=>pi});function oi(t,i){return window.go.settings.Client.GetSetting(t,i)}function si(){return window.go.settings.Client.ListPlugins()}function ai(t){return window.go.settings.Client.ListSettings(t)}function ui(t){return window.go.settings.Client.PluginValues(t)}function ci(t,i,l){return window.go.settings.Client.SetSetting(t,i,l)}function li(t,i){return window.go.settings.Client.SetSettings(t,i)}function pi(){return window.go.settings.Client.Values()}var be={};j(be,{GetBool:()=>fi,GetCategories:()=>gi,GetCategory:()=>di,GetCategoryValues:()=>yi,GetFloat:()=>mi,GetFloatSlice:()=>hi,GetInt:()=>wi,GetIntSlice:()=>vi,GetSetting:()=>bi,GetSettingValue:()=>_i,GetString:()=>Si,GetStringSlice:()=>xi,HasSetting:()=>Ri,Initialize:()=>Oi,ListSettings:()=>Ei,LoadSettings:()=>Ci,RegisterSetting:()=>Pi,RegisterSettings:()=>ki,ResetSetting:()=>Ti,SaveSettings:()=>Ni,SetSetting:()=>Fi,SetSettings:()=>Ai,Values:()=>Di});function fi(t){return window.go.settings.provider.GetBool(t)}function gi(){return window.go.settings.provider.GetCategories()}function di(t){return window.go.settings.provider.GetCategory(t)}function yi(t){return window.go.settings.provider.GetCategoryValues(t)}function mi(t){return window.go.settings.provider.GetFloat(t)}function hi(t){return window.go.settings.provider.GetFloatSlice(t)}function wi(t){return window.go.settings.provider.GetInt(t)}function vi(t){return window.go.settings.provider.GetIntSlice(t)}function bi(t){return window.go.settings.provider.GetSetting(t)}function _i(t){return window.go.settings.provider.GetSettingValue(t)}function Si(t){return window.go.settings.provider.GetString(t)}function xi(t){return window.go.settings.provider.GetStringSlice(t)}function Ri(t){return window.go.settings.provider.HasSetting(t)}function Oi(t,i){return window.go.settings.provider.Initialize(t,i)}function Ei(){return window.go.settings.provider.ListSettings()}function Ci(){return window.go.settings.provider.LoadSettings()}function Pi(t,i){return window.go.settings.provider.RegisterSetting(t,i)}function ki(t,i){return window.go.settings.provider.RegisterSettings(t,i)}function Ti(t){return window.go.settings.provider.ResetSetting(t)}function Ni(){return window.go.settings.provider.SaveSettings()}function Fi(t,i){return window.go.settings.provider.SetSetting(t,i)}function Ai(t){return window.go.settings.provider.SetSettings(t)}function Di(){return window.go.settings.provider.Values()}var _e={};j(_e,{GetPluginComponents:()=>Vi,GetResourceAreaComponent:()=>ji,GetResourceComponents:()=>Mi});function Vi(t){return window.go.ui.Client.GetPluginComponents(t)}function ji(t){return window.go.ui.Client.GetResourceAreaComponent(t)}function Mi(t){return window.go.ui.Client.GetResourceComponents(t)}var Se={};j(Se,{DetectLanguage:()=>Gi});function Gi(t){return window.go.utils.Client.DetectLanguage(t)}var Ve=Xt(Dt()),eo=Ve.default.createContext(void 0);import.meta.env.DEV&&(eo.displayName="PortForwardContext");var st=Xt(Dt());import{Browser as no}from"@wailsio/runtime";function ro({pluginID:t,connectionID:i,resourceID:l}){let[c,p]=st.default.useState([]);st.default.useEffect(()=>{!t||!i||!l||Rt(t,i,it.FindPortForwardSessionRequest.createFrom({resource_id:l,connection_id:i})).then(n=>{p(n)}).catch(n=>{n instanceof Error&&console.log(n)})},[t,i]);let h=st.default.useCallback(async n=>{let g=it.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 Ot(t,i,g);return p([...c,a]),n.openInBrowser&&no.OpenURL(`http://localhost:${a.remote_port}`),a}catch(a){throw a instanceof Error&&console.log(a),a}},[t,i,c]),s=st.default.useCallback(async n=>{try{await xt(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}}export{ho as Application,wo as Browser,vo as Clipboard,bo as Events,eo as PortForwardContext,_o as Screens,So as System,Ro as WML,xo as Window,ce as app,gt as config,le as data,pe as devserver,fe as diagnostics,ge as exec,de as logs,ne as main,ye as metric,me as networker,ie as plugin,he as pluginManager,oe as registry,we as resource,ve as settings,be as settingsProvider,M as time,ot as types,_e as ui,ro as useResourcePortForwarder,Se as utils};
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function et(){O.asyncTransitions--}function $(r){if(lt===null)try{var u=("require"+Math.random()).slice(0,7);lt=(yt&&yt[u]).call(yt,"timers").setImmediate}catch{lt=function(d){Kt===!1&&(Kt=!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 lt(r)}function J(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function Y(r,u){u!==pt-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. "),pt=u}function B(r,u,f){var d=O.actQueue;if(d!==null)if(d.length!==0)try{W(d),$(function(){return B(r,u,f)});return}catch(w){O.thrownErrors.push(w)}else O.actQueue=null;0<O.thrownErrors.length?(d=J(O.thrownErrors),O.thrownErrors.length=0,f(d)):u(r)}function W(r){if(!bt){bt=!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{bt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var mt=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"),ht=Symbol.for("react.consumer"),Vt=Symbol.for("react.context"),jt=Symbol.for("react.forward_ref"),Mt=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),wt=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Gt=Symbol.for("react.activity"),D=Symbol.iterator,Lt={},It={isMounted:function(){return!1},enqueueForceUpdate:function(r){l(r,"forceUpdate")},enqueueReplaceState:function(r){l(r,"replaceState")},enqueueSetState:function(r){l(r,"setState")}},Jt=Object.assign,vt={};Object.freeze(vt),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 G={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(rt in G)G.hasOwnProperty(rt)&&t(rt,G[rt]);p.prototype=c.prototype,G=h.prototype=new p,G.constructor=h,Jt(G,c.prototype),G.isPureReactComponent=!0;var Ut=Array.isArray,Me=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},ct=Object.prototype.hasOwnProperty,Ht=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(r){return r()}};var $t,Yt,zt={},Ge=G.react_stack_bottom_frame.bind(G,A)(),Le=Ht(y(A)),Bt=!1,Wt=/\/+/g,qt=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)},Kt=!1,lt=null,pt=0,ft=!1,bt=!1,Qt=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:$;G=Object.freeze({__proto__:null,c:function(r){return F().useMemoCache(r)}});var rt={map:H,forEach:function(r,u,f){H(r,function(){u.apply(this,arguments)},f)},count:function(r){var u=0;return H(r,function(){u++}),u},toArray:function(r){return H(r,function(u){return u})||[]},only:function(r){if(!L(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};S.Activity=Gt,S.Children=rt,S.Component=c,S.Fragment=_,S.Profiler=m,S.PureComponent=h,S.StrictMode=k,S.Suspense=Mt,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,S.__COMPILER_RUNTIME=G,S.act=function(r){var u=O.actQueue,f=pt;pt++;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 Y(u,f),r=J(O.thrownErrors),O.thrownErrors.length=0,r;if(E!==null&&typeof E=="object"&&typeof E.then=="function"){var R=E;return Qt(function(){w||ft||(ft=!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,U){w=!0,R.then(function(q){if(Y(u,f),f===0){try{W(d),$(function(){return B(q,C,U)})}catch(Je){O.thrownErrors.push(Je)}if(0<O.thrownErrors.length){var Ie=J(O.thrownErrors);O.thrownErrors.length=0,U(Ie)}}else C(q)},function(q){Y(u,f),0<O.thrownErrors.length&&(q=J(O.thrownErrors),O.thrownErrors.length=0),U(q)})}}}var P=E;if(Y(u,f),f===0&&(W(d),d.length!==0&&Qt(function(){w||ft||(ft=!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=J(O.thrownErrors),O.thrownErrors.length=0,r;return{then:function(C,U){w=!0,f===0?(O.actQueue=d,$(function(){return B(P,C,U)})):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=Jt({},r.props),w=r.key,E=r._owner;if(u!=null){var R;t:{if(ct.call(u,"ref")&&(R=Object.getOwnPropertyDescriptor(u,"ref").get)&&R.isReactWarning){R=!1;break t}R=u.ref!==void 0}R&&(E=V()),X(u)&&(g(u.key),w=""+u.key);for(P in u)!ct.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++)Z(arguments[w]);return d},S.createContext=function(r){return r={$$typeof:Vt,_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},S.createElement=function(r,u,f){for(var d=2;d<arguments.length;d++)Z(arguments[d]);d={};var w=null;if(u!=null)for(C in Yt||!("__self"in u)||"key"in u||(Yt=!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")),X(u)&&(g(u.key),w=""+u.key),u)ct.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,V(),C?Error("react-stack-top-frame"):Ge,C?Ht(y(r)):Le)},S.createRef=function(){var r={current:null};return Object.seal(r),r},S.forwardRef=function(r){r!=null&&r.$$typeof===wt?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:jt,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=L,S.lazy=function(r){r={_status:-1,_result:r};var u={$$typeof:nt,_payload:r,_init:ut},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:wt,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(et,et),d.then(s,qt))}catch(E){qt(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===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)},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 Dt=St((ao,At)=>{"use strict";process.env.NODE_ENV==="production"?At.exports=Ae():At.exports=De()});var gt;(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,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){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,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){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,V=!1){if(!a)return a;if(a.slice&&a.map)return a.map(A=>this.convertValues(A,y));if(typeof a=="object"){if(V){for(let A of Object.keys(a))a[A]=new y(a[A]);return a}return new y(a)}return a}}n.PluginMeta=s})(gt||(gt={}));var Zt;(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})(Zt||(Zt={}));var te;(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,ot.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})(te||(te={}));var ee;(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,ot.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})(ee||(ee={}));var ne;(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})(ne||(ne={}));var re;(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 V{static createFrom(o={}){return new V(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=V})(re||(re={}));var it;(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})(it||(it={}));var ie;(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,ot.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})(ie||(ie={}));var oe;(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})(oe||(oe={}));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 ot;(W=>{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=W.ConnectionStatusCode||(W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.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}}W.CreateResult=y;class V{static createFrom(e={}){return new V(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}}W.DeleteInput=V;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}}W.DeleteResult=A;class X{static createFrom(e={}){return new X(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}}W.EditorSchema=X;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}}W.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}}W.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}}W.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}}W.PaginationResult=b;class Z{static createFrom(e={}){return new Z(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}}W.FindResult=Z;class L{static createFrom(e={}){return new L(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.params=e.params,this.id=e.id,this.namespace=e.namespace}}W.GetInput=L;class at{static createFrom(e={}){return new at(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.GetResult=at;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}}W.InformerConnectionSummary=z;class tt{static createFrom(e={}){return new tt(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,tt)}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}}W.LayoutItem=tt;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,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}}W.ListInput=I;class H{static createFrom(e={}){return new H(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}}W.ListResult=H;class ut{static createFrom(e={}){return new ut(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.metadata=this.convertValues(e.metadata,gt.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}}W.Plugin=ut;class F{static createFrom(e={}){return new F(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.Metadata=this.convertValues(e.Metadata,gt.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}}W.PluginState=F;class et{static createFrom(e={}){return new et(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}}W.ResourceDefinition=et;class ${static createFrom(e={}){return new $(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}}W.ResourceGroup=$;class J{static createFrom(e={}){return new J(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}}W.ResourceMeta=J;class Y{static createFrom(e={}){return new Y(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}}W.UpdateInput=Y;class B{static createFrom(e={}){return new B(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}W.UpdateResult=B})(ot||(ot={}));var ae;(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})(ae||(ae={}));var ue;(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})(ue||(ue={}));var ce={};j(ce,{GetOperatingSystem:()=>We,OpenFileSelectionDialog:()=>qe,SaveFileDialog:()=>Ke,WriteFileContent:()=>Qe});function We(){return window.go.main.App.GetOperatingSystem()}function qe(t){return window.go.main.App.OpenFileSelectionDialog(t)}function Ke(t){return window.go.main.App.SaveFileDialog(t)}function Qe(t,i){return window.go.main.App.WriteFileContent(t,i)}var le={};j(le,{Delete:()=>Xe,Get:()=>Ze,Keys:()=>tn,Set:()=>en});function Xe(t,i){return window.go.data.Client.Delete(t,i)}function Ze(t,i){return window.go.data.Client.Get(t,i)}function tn(t){return window.go.data.Client.Keys(t)}function en(t,i,l){return window.go.data.Client.Set(t,i,l)}var pe={};j(pe,{GetDevServerLogs:()=>nn,GetDevServerState:()=>rn,GetExternalPluginInfo:()=>on,Initialize:()=>sn,IsManaged:()=>an,ListDevServerStates:()=>un,RestartDevServer:()=>cn,Shutdown:()=>ln,StartDevServer:()=>pn,StartDevServerForPath:()=>fn,StopDevServer:()=>gn});function nn(t,i){return window.go.devserver.DevServerManager.GetDevServerLogs(t,i)}function rn(t){return window.go.devserver.DevServerManager.GetDevServerState(t)}function on(t){return window.go.devserver.DevServerManager.GetExternalPluginInfo(t)}function sn(t){return window.go.devserver.DevServerManager.Initialize(t)}function an(t){return window.go.devserver.DevServerManager.IsManaged(t)}function un(){return window.go.devserver.DevServerManager.ListDevServerStates()}function cn(t){return window.go.devserver.DevServerManager.RestartDevServer(t)}function ln(){return window.go.devserver.DevServerManager.Shutdown()}function pn(t){return window.go.devserver.DevServerManager.StartDevServer(t)}function fn(t,i){return window.go.devserver.DevServerManager.StartDevServerForPath(t,i)}function gn(t){return window.go.devserver.DevServerManager.StopDevServer(t)}var fe={};j(fe,{Debug:()=>dn,Error:()=>yn,Info:()=>mn,Log:()=>hn,ReadLog:()=>wn,StartTail:()=>vn,StopTail:()=>bn,Warn:()=>_n});function dn(t,i){return window.go.diagnostics.DiagnosticsClient.Debug(t,i)}function yn(t,i){return window.go.diagnostics.DiagnosticsClient.Error(t,i)}function mn(t,i){return window.go.diagnostics.DiagnosticsClient.Info(t,i)}function hn(t,i,l){return window.go.diagnostics.DiagnosticsClient.Log(t,i,l)}function wn(t){return window.go.diagnostics.DiagnosticsClient.ReadLog(t)}function vn(t){return window.go.diagnostics.DiagnosticsClient.StartTail(t)}function bn(t){return window.go.diagnostics.DiagnosticsClient.StopTail(t)}function _n(t,i){return window.go.diagnostics.DiagnosticsClient.Warn(t,i)}var ge={};j(ge,{AttachSession:()=>Sn,CloseSession:()=>xn,CreateSession:()=>Rn,CreateTerminal:()=>On,DetachSession:()=>En,GetHandler:()=>Cn,GetHandlers:()=>Pn,GetPluginHandlers:()=>kn,GetSession:()=>Tn,ListPlugins:()=>Nn,ListSessions:()=>Fn,ResizeSession:()=>An,WriteSession:()=>Dn});function Sn(t){return window.go.exec.Client.AttachSession(t)}function xn(t){return window.go.exec.Client.CloseSession(t)}function Rn(t,i,l){return window.go.exec.Client.CreateSession(t,i,l)}function On(t){return window.go.exec.Client.CreateTerminal(t)}function En(t){return window.go.exec.Client.DetachSession(t)}function Cn(t,i){return window.go.exec.Client.GetHandler(t,i)}function Pn(){return window.go.exec.Client.GetHandlers()}function kn(t){return window.go.exec.Client.GetPluginHandlers(t)}function Tn(t){return window.go.exec.Client.GetSession(t)}function Nn(){return window.go.exec.Client.ListPlugins()}function Fn(){return window.go.exec.Client.ListSessions()}function An(t,i,l){return window.go.exec.Client.ResizeSession(t,i,l)}function Dn(t,i){return window.go.exec.Client.WriteSession(t,i)}var de={};j(de,{CloseSession:()=>Vn,CreateSession:()=>jn,GetSession:()=>Mn,GetSupportedResources:()=>Gn,ListSessions:()=>Ln,PauseSession:()=>In,ResumeSession:()=>Jn,UpdateSessionOptions:()=>Un});function Vn(t){return window.go.logs.Client.CloseSession(t)}function jn(t,i,l){return window.go.logs.Client.CreateSession(t,i,l)}function Mn(t){return window.go.logs.Client.GetSession(t)}function Gn(t){return window.go.logs.Client.GetSupportedResources(t)}function Ln(){return window.go.logs.Client.ListSessions()}function In(t){return window.go.logs.Client.PauseSession(t)}function Jn(t){return window.go.logs.Client.ResumeSession(t)}function Un(t,i){return window.go.logs.Client.UpdateSessionOptions(t,i)}var ye={};j(ye,{GetProviders:()=>Hn,GetProvidersForResource:()=>$n,Query:()=>Yn,QueryAll:()=>zn,Subscribe:()=>Bn,Unsubscribe:()=>Wn});function Hn(){return window.go.metric.Client.GetProviders()}function $n(t){return window.go.metric.Client.GetProvidersForResource(t)}function Yn(t,i,l){return window.go.metric.Client.Query(t,i,l)}function zn(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 Bn(t,i,l){return window.go.metric.Client.Subscribe(t,i,l)}function Wn(t){return window.go.metric.Client.Unsubscribe(t)}var me={};j(me,{ClosePortForwardSession:()=>xt,FindPortForwardSessions:()=>Rt,GetPortForwardSession:()=>qn,GetSupportedPortForwardTargets:()=>Kn,ListAllPortForwardSessions:()=>Qn,ListPortForwardSessions:()=>Xn,StartResourcePortForwardingSession:()=>Ot});function xt(t){return window.go.networker.Client.ClosePortForwardSession(t)}function Rt(t,i,l){return window.go.networker.Client.FindPortForwardSessions(t,i,l)}function qn(t){return window.go.networker.Client.GetPortForwardSession(t)}function Kn(t){return window.go.networker.Client.GetSupportedPortForwardTargets(t)}function Qn(){return window.go.networker.Client.ListAllPortForwardSessions()}function Xn(t,i){return window.go.networker.Client.ListPortForwardSessions(t,i)}function Ot(t,i,l){return window.go.networker.Client.StartResourcePortForwardingSession(t,i,l)}var he={};j(he,{AddTarget:()=>Zn,GetPlugin:()=>tr,GetPluginDownloadStats:()=>er,GetPluginMeta:()=>nr,GetPluginReadme:()=>rr,GetPluginReleaseHistory:()=>ir,GetPluginReviews:()=>or,GetPluginVersions:()=>sr,Initialize:()=>ar,InstallFromPathPrompt:()=>ur,InstallInDevMode:()=>cr,InstallPluginFromPath:()=>lr,InstallPluginVersion:()=>pr,ListAvailablePlugins:()=>fr,ListPluginMetas:()=>gr,ListPlugins:()=>dr,LoadPlugin:()=>yr,ReloadPlugin:()=>mr,RemoveTarget:()=>hr,Run:()=>wr,SearchPlugins:()=>vr,SetDevServerChecker:()=>br,SetDevServerManager:()=>_r,Shutdown:()=>Sr,UninstallPlugin:()=>xr,UnloadPlugin:()=>Rr});function Zn(t){return window.go.plugin.pluginManager.AddTarget(t)}function tr(t){return window.go.plugin.pluginManager.GetPlugin(t)}function er(t){return window.go.plugin.pluginManager.GetPluginDownloadStats(t)}function nr(t){return window.go.plugin.pluginManager.GetPluginMeta(t)}function rr(t){return window.go.plugin.pluginManager.GetPluginReadme(t)}function ir(t){return window.go.plugin.pluginManager.GetPluginReleaseHistory(t)}function or(t,i){return window.go.plugin.pluginManager.GetPluginReviews(t,i)}function sr(t){return window.go.plugin.pluginManager.GetPluginVersions(t)}function ar(t){return window.go.plugin.pluginManager.Initialize(t)}function ur(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function cr(){return window.go.plugin.pluginManager.InstallInDevMode()}function lr(t){return window.go.plugin.pluginManager.InstallPluginFromPath(t)}function pr(t,i){return window.go.plugin.pluginManager.InstallPluginVersion(t,i)}function fr(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function gr(){return window.go.plugin.pluginManager.ListPluginMetas()}function dr(){return window.go.plugin.pluginManager.ListPlugins()}function yr(t,i){return window.go.plugin.pluginManager.LoadPlugin(t,i)}function mr(t){return window.go.plugin.pluginManager.ReloadPlugin(t)}function hr(t){return window.go.plugin.pluginManager.RemoveTarget(t)}function wr(t){return window.go.plugin.pluginManager.Run(t)}function vr(t,i,l){return window.go.plugin.pluginManager.SearchPlugins(t,i,l)}function br(t){return window.go.plugin.pluginManager.SetDevServerChecker(t)}function _r(t){return window.go.plugin.pluginManager.SetDevServerManager(t)}function Sr(){return window.go.plugin.pluginManager.Shutdown()}function xr(t){return window.go.plugin.pluginManager.UninstallPlugin(t)}function Rr(t){return window.go.plugin.pluginManager.UnloadPlugin(t)}var we={};j(we,{AddConnection:()=>Or,Create:()=>Er,Delete:()=>Cr,EnsureInformerForResource:()=>Pr,ExecuteAction:()=>kr,Find:()=>Tr,Get:()=>Nr,GetActions:()=>Fr,GetConnection:()=>Ar,GetConnectionNamespaces:()=>Dr,GetDefaultLayout:()=>Vr,GetEditorSchemas:()=>jr,GetInformerState:()=>Mr,GetLayout:()=>Gr,GetResourceDefinition:()=>Lr,GetResourceGroup:()=>Ir,GetResourceGroups:()=>Jr,GetResourceType:()=>Ur,GetResourceTypes:()=>Hr,HasResourceType:()=>$r,List:()=>Yr,ListAllConnections:()=>zr,ListConnections:()=>Br,ListPlugins:()=>Wr,LoadConnections:()=>qr,RemoveConnection:()=>Kr,SetLayout:()=>Qr,StartConnection:()=>Xr,StartConnectionInformer:()=>Zr,StopConnection:()=>ti,StopConnectionInformer:()=>ei,StreamAction:()=>ni,Update:()=>ri,UpdateConnection:()=>ii});function Or(t,i){return window.go.resource.Client.AddConnection(t,i)}function Er(t,i,l,c){return window.go.resource.Client.Create(t,i,l,c)}function Cr(t,i,l,c){return window.go.resource.Client.Delete(t,i,l,c)}function Pr(t,i,l){return window.go.resource.Client.EnsureInformerForResource(t,i,l)}function kr(t,i,l,c,p){return window.go.resource.Client.ExecuteAction(t,i,l,c,p)}function Tr(t,i,l,c){return window.go.resource.Client.Find(t,i,l,c)}function Nr(t,i,l,c){return window.go.resource.Client.Get(t,i,l,c)}function Fr(t,i,l){return window.go.resource.Client.GetActions(t,i,l)}function Ar(t,i){return window.go.resource.Client.GetConnection(t,i)}function Dr(t,i){return window.go.resource.Client.GetConnectionNamespaces(t,i)}function Vr(t){return window.go.resource.Client.GetDefaultLayout(t)}function jr(t,i){return window.go.resource.Client.GetEditorSchemas(t,i)}function Mr(t,i){return window.go.resource.Client.GetInformerState(t,i)}function Gr(t,i){return window.go.resource.Client.GetLayout(t,i)}function Lr(t,i){return window.go.resource.Client.GetResourceDefinition(t,i)}function Ir(t,i){return window.go.resource.Client.GetResourceGroup(t,i)}function Jr(t,i){return window.go.resource.Client.GetResourceGroups(t,i)}function Ur(t,i){return window.go.resource.Client.GetResourceType(t,i)}function Hr(t,i){return window.go.resource.Client.GetResourceTypes(t,i)}function $r(t,i){return window.go.resource.Client.HasResourceType(t,i)}function Yr(t,i,l,c){return window.go.resource.Client.List(t,i,l,c)}function zr(){return window.go.resource.Client.ListAllConnections()}function Br(t){return window.go.resource.Client.ListConnections(t)}function Wr(){return window.go.resource.Client.ListPlugins()}function qr(t){return window.go.resource.Client.LoadConnections(t)}function Kr(t,i){return window.go.resource.Client.RemoveConnection(t,i)}function Qr(t,i,l){return window.go.resource.Client.SetLayout(t,i,l)}function Xr(t,i){return window.go.resource.Client.StartConnection(t,i)}function Zr(t,i){return window.go.resource.Client.StartConnectionInformer(t,i)}function ti(t,i){return window.go.resource.Client.StopConnection(t,i)}function ei(t,i){return window.go.resource.Client.StopConnectionInformer(t,i)}function ni(t,i,l,c,p){return window.go.resource.Client.StreamAction(t,i,l,c,p)}function ri(t,i,l,c){return window.go.resource.Client.Update(t,i,l,c)}function ii(t,i){return window.go.resource.Client.UpdateConnection(t,i)}import{Application as ho,Browser as wo,Clipboard as vo,Events as bo,Screens as _o,System as So,Window as xo,WML as Ro}from"@wailsio/runtime";var ve={};j(ve,{GetSetting:()=>oi,ListPlugins:()=>si,ListSettings:()=>ai,PluginValues:()=>ui,SetSetting:()=>ci,SetSettings:()=>li,Values:()=>pi});function oi(t,i){return window.go.settings.Client.GetSetting(t,i)}function si(){return window.go.settings.Client.ListPlugins()}function ai(t){return window.go.settings.Client.ListSettings(t)}function ui(t){return window.go.settings.Client.PluginValues(t)}function ci(t,i,l){return window.go.settings.Client.SetSetting(t,i,l)}function li(t,i){return window.go.settings.Client.SetSettings(t,i)}function pi(){return window.go.settings.Client.Values()}var be={};j(be,{GetBool:()=>fi,GetCategories:()=>gi,GetCategory:()=>di,GetCategoryValues:()=>yi,GetFloat:()=>mi,GetFloatSlice:()=>hi,GetInt:()=>wi,GetIntSlice:()=>vi,GetSetting:()=>bi,GetSettingValue:()=>_i,GetString:()=>Si,GetStringSlice:()=>xi,HasSetting:()=>Ri,Initialize:()=>Oi,ListSettings:()=>Ei,LoadSettings:()=>Ci,RegisterSetting:()=>Pi,RegisterSettings:()=>ki,ResetSetting:()=>Ti,SaveSettings:()=>Ni,SetSetting:()=>Fi,SetSettings:()=>Ai,Values:()=>Di});function fi(t){return window.go.settings.provider.GetBool(t)}function gi(){return window.go.settings.provider.GetCategories()}function di(t){return window.go.settings.provider.GetCategory(t)}function yi(t){return window.go.settings.provider.GetCategoryValues(t)}function mi(t){return window.go.settings.provider.GetFloat(t)}function hi(t){return window.go.settings.provider.GetFloatSlice(t)}function wi(t){return window.go.settings.provider.GetInt(t)}function vi(t){return window.go.settings.provider.GetIntSlice(t)}function bi(t){return window.go.settings.provider.GetSetting(t)}function _i(t){return window.go.settings.provider.GetSettingValue(t)}function Si(t){return window.go.settings.provider.GetString(t)}function xi(t){return window.go.settings.provider.GetStringSlice(t)}function Ri(t){return window.go.settings.provider.HasSetting(t)}function Oi(t,i){return window.go.settings.provider.Initialize(t,i)}function Ei(){return window.go.settings.provider.ListSettings()}function Ci(){return window.go.settings.provider.LoadSettings()}function Pi(t,i){return window.go.settings.provider.RegisterSetting(t,i)}function ki(t,i){return window.go.settings.provider.RegisterSettings(t,i)}function Ti(t){return window.go.settings.provider.ResetSetting(t)}function Ni(){return window.go.settings.provider.SaveSettings()}function Fi(t,i){return window.go.settings.provider.SetSetting(t,i)}function Ai(t){return window.go.settings.provider.SetSettings(t)}function Di(){return window.go.settings.provider.Values()}var _e={};j(_e,{GetPluginComponents:()=>Vi,GetResourceAreaComponent:()=>ji,GetResourceComponents:()=>Mi});function Vi(t){return window.go.ui.Client.GetPluginComponents(t)}function ji(t){return window.go.ui.Client.GetResourceAreaComponent(t)}function Mi(t){return window.go.ui.Client.GetResourceComponents(t)}var Se={};j(Se,{DetectLanguage:()=>Gi});function Gi(t){return window.go.utils.Client.DetectLanguage(t)}var Ve=Xt(Dt()),eo=Ve.default.createContext(void 0);eo.displayName="PortForwardContext";var st=Xt(Dt());import{Browser as no}from"@wailsio/runtime";function ro({pluginID:t,connectionID:i,resourceID:l}){let[c,p]=st.default.useState([]);st.default.useEffect(()=>{!t||!i||!l||Rt(t,i,it.FindPortForwardSessionRequest.createFrom({resource_id:l,connection_id:i})).then(n=>{p(n)}).catch(n=>{n instanceof Error&&console.log(n)})},[t,i]);let h=st.default.useCallback(async n=>{let g=it.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 Ot(t,i,g);return p([...c,a]),n.openInBrowser&&no.OpenURL(`http://localhost:${a.remote_port}`),a}catch(a){throw a instanceof Error&&console.log(a),a}},[t,i,c]),s=st.default.useCallback(async n=>{try{await xt(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}}export{ho as Application,wo as Browser,vo as Clipboard,bo as Events,eo as PortForwardContext,_o as Screens,So as System,Ro as WML,xo as Window,ce as app,gt as config,le as data,pe as devserver,fe as diagnostics,ge as exec,de as logs,ne as main,ye as metric,me as networker,ie as plugin,he as pluginManager,oe as registry,we as resource,ve as settings,be as settingsProvider,M as time,ot as types,_e as ui,ro as useResourcePortForwarder,Se as utils};
14
14
  /*! Bundled license information:
15
15
 
16
16
  react/cjs/react.production.js:
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@omniviewdev/providers",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Package to interact with the various providers in Omniview via the UI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "repository": {
9
- "directory": "pkg/providers",
9
+ "directory": "packages/omniviewdev-providers",
10
10
  "url": "https://github.com/omniviewdev/omniview"
11
11
  },
12
12
  "files": [
@@ -17,7 +17,7 @@
17
17
  "access": "public"
18
18
  },
19
19
  "scripts": {
20
- "build": "tsup index.ts --minify --dts --format cjs,esm --out-dir dist",
20
+ "build": "node ../../scripts/build-tsup.mjs index.ts --minify --dts --format cjs,esm",
21
21
  "lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
22
22
  "lint:fix": "npm run lint -- --fix"
23
23
  },
@@ -39,6 +39,6 @@
39
39
  "vite": "^5.2.10"
40
40
  },
41
41
  "dependencies": {
42
- "@wailsio/runtime": "3.0.0-beta.29"
42
+ "@wailsio/runtime": "3.0.0-beta.34"
43
43
  }
44
44
  }