@omniviewdev/providers 0.8.2 → 0.9.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
@@ -1,16 +1,16 @@
1
- "use strict";var Be=Object.create;var yt=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ke=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var xt=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),j=(t,i)=>{for(var l in i)yt(t,l,{get:i[l],enumerable:!0})},me=(t,i,l,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of qe(i))!Qe.call(t,p)&&p!==l&&yt(t,p,{get:()=>i[p],enumerable:!(c=We(i,p))||c.enumerable});return t};var he=(t,i,l)=>(l=t!=null?Be(Ke(t)):{},me(i||!t||!t.__esModule?yt(l,"default",{value:t,enumerable:!0}):l,t)),Xe=t=>me(yt({},"__esModule",{value:!0}),t);var Ve=xt(x=>{"use strict";var zt=Symbol.for("react.transitional.element"),$i=Symbol.for("react.portal"),Yi=Symbol.for("react.fragment"),zi=Symbol.for("react.strict_mode"),Bi=Symbol.for("react.profiler"),Wi=Symbol.for("react.consumer"),qi=Symbol.for("react.context"),Ki=Symbol.for("react.forward_ref"),Qi=Symbol.for("react.suspense"),Xi=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Zi=Symbol.for("react.activity"),Oe=Symbol.iterator;function to(t){return t===null||typeof t!="object"?null:(t=Oe&&t[Oe]||t["@@iterator"],typeof t=="function"?t:null)}var Te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ne=Object.assign,Fe={};function Z(t,i,l){this.props=t,this.context=i,this.refs=Fe,this.updater=l||Te}Z.prototype.isReactComponent={};Z.prototype.setState=function(t,i){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,i,"setState")};Z.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ae(){}Ae.prototype=Z.prototype;function Bt(t,i,l){this.props=t,this.context=i,this.refs=Fe,this.updater=l||Te}var Wt=Bt.prototype=new Ae;Wt.constructor=Bt;Ne(Wt,Z.prototype);Wt.isPureReactComponent=!0;var Ee=Array.isArray;function Yt(){}var T={H:null,A:null,T:null,S:null},De=Object.prototype.hasOwnProperty;function qt(t,i,l){var c=l.ref;return{$$typeof:zt,type:t,key:i,ref:c!==void 0?c:null,props:l}}function eo(t,i){return qt(t.type,i,t.props)}function Kt(t){return typeof t=="object"&&t!==null&&t.$$typeof===zt}function no(t){var i={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return i[l]})}var Ce=/\/+/g;function $t(t,i){return typeof t=="object"&&t!==null&&t.key!=null?no(""+t.key):i.toString(36)}function ro(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Yt,Yt):(t.status="pending",t.then(function(i){t.status==="pending"&&(t.status="fulfilled",t.value=i)},function(i){t.status==="pending"&&(t.status="rejected",t.reason=i)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function X(t,i,l,c,p){var h=typeof t;(h==="undefined"||h==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(h){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case zt:case $i:s=!0;break;case ke:return s=t._init,X(s(t._payload),i,l,c,p)}}if(s)return p=p(t),s=c===""?"."+$t(t,0):c,Ee(p)?(l="",s!=null&&(l=s.replace(Ce,"$&/")+"/"),X(p,i,l,"",function(a){return a})):p!=null&&(Kt(p)&&(p=eo(p,l+(p.key==null||t&&t.key===p.key?"":(""+p.key).replace(Ce,"$&/")+"/")+s)),i.push(p)),1;s=0;var n=c===""?".":c+":";if(Ee(t))for(var g=0;g<t.length;g++)c=t[g],h=n+$t(c,g),s+=X(c,i,l,h,p);else if(g=to(t),typeof g=="function")for(t=g.call(t),g=0;!(c=t.next()).done;)c=c.value,h=n+$t(c,g++),s+=X(c,i,l,h,p);else if(h==="object"){if(typeof t.then=="function")return X(ro(t),i,l,c,p);throw i=String(t),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return s}function mt(t,i,l){if(t==null)return t;var c=[],p=0;return X(t,c,"","",function(h){return i.call(l,h,p++)}),c}function io(t){if(t._status===-1){var i=t._result;i=i(),i.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=i)}if(t._status===1)return t._result.default;throw t._result}var Pe=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},oo={map:mt,forEach:function(t,i,l){mt(t,function(){i.apply(this,arguments)},l)},count:function(t){var i=0;return mt(t,function(){i++}),i},toArray:function(t){return mt(t,function(i){return i})||[]},only:function(t){if(!Kt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};x.Activity=Zi;x.Children=oo;x.Component=Z;x.Fragment=Yi;x.Profiler=Bi;x.PureComponent=Bt;x.StrictMode=zi;x.Suspense=Qi;x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T;x.__COMPILER_RUNTIME={__proto__:null,c:function(t){return T.H.useMemoCache(t)}};x.cache=function(t){return function(){return t.apply(null,arguments)}};x.cacheSignal=function(){return null};x.cloneElement=function(t,i,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var c=Ne({},t.props),p=t.key;if(i!=null)for(h in i.key!==void 0&&(p=""+i.key),i)!De.call(i,h)||h==="key"||h==="__self"||h==="__source"||h==="ref"&&i.ref===void 0||(c[h]=i[h]);var h=arguments.length-2;if(h===1)c.children=l;else if(1<h){for(var s=Array(h),n=0;n<h;n++)s[n]=arguments[n+2];c.children=s}return qt(t.type,p,c)};x.createContext=function(t){return t={$$typeof:qi,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Wi,_context:t},t};x.createElement=function(t,i,l){var c,p={},h=null;if(i!=null)for(c in i.key!==void 0&&(h=""+i.key),i)De.call(i,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(p[c]=i[c]);var s=arguments.length-2;if(s===1)p.children=l;else if(1<s){for(var n=Array(s),g=0;g<s;g++)n[g]=arguments[g+2];p.children=n}if(t&&t.defaultProps)for(c in s=t.defaultProps,s)p[c]===void 0&&(p[c]=s[c]);return qt(t,h,p)};x.createRef=function(){return{current:null}};x.forwardRef=function(t){return{$$typeof:Ki,render:t}};x.isValidElement=Kt;x.lazy=function(t){return{$$typeof:ke,_payload:{_status:-1,_result:t},_init:io}};x.memo=function(t,i){return{$$typeof:Xi,type:t,compare:i===void 0?null:i}};x.startTransition=function(t){var i=T.T,l={};T.T=l;try{var c=t(),p=T.S;p!==null&&p(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(Yt,Pe)}catch(h){Pe(h)}finally{i!==null&&l.types!==null&&(i.types=l.types),T.T=i}};x.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()};x.use=function(t){return T.H.use(t)};x.useActionState=function(t,i,l){return T.H.useActionState(t,i,l)};x.useCallback=function(t,i){return T.H.useCallback(t,i)};x.useContext=function(t){return T.H.useContext(t)};x.useDebugValue=function(){};x.useDeferredValue=function(t,i){return T.H.useDeferredValue(t,i)};x.useEffect=function(t,i){return T.H.useEffect(t,i)};x.useEffectEvent=function(t){return T.H.useEffectEvent(t)};x.useId=function(){return T.H.useId()};x.useImperativeHandle=function(t,i,l){return T.H.useImperativeHandle(t,i,l)};x.useInsertionEffect=function(t,i){return T.H.useInsertionEffect(t,i)};x.useLayoutEffect=function(t,i){return T.H.useLayoutEffect(t,i)};x.useMemo=function(t,i){return T.H.useMemo(t,i)};x.useOptimistic=function(t,i){return T.H.useOptimistic(t,i)};x.useReducer=function(t,i,l){return T.H.useReducer(t,i,l)};x.useRef=function(t){return T.H.useRef(t)};x.useState=function(t){return T.H.useState(t)};x.useSyncExternalStore=function(t,i,l){return T.H.useSyncExternalStore(t,i,l)};x.useTransition=function(){return T.H.useTransition()};x.version="19.2.4"});var je=xt((S,ht)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(r,u){Object.defineProperty(c.prototype,r,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function i(r){return r===null||typeof r!="object"?null:(r=D&&r[D]||r["@@iterator"],typeof r=="function"?r:null)}function l(r,u){r=(r=r.constructor)&&(r.displayName||r.name)||"ReactClass";var f=r+"."+u;re[f]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,r),re[f]=!0)}function c(r,u,f){this.props=r,this.context=u,this.refs=_t,this.updater=f||ie}function p(){}function h(r,u,f){this.props=r,this.context=u,this.refs=_t,this.updater=f||ie}function s(){}function n(r){return""+r}function g(r){try{n(r);var u=!1}catch{u=!0}if(u){u=console;var f=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),n(r)}}function a(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Ue?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case m:return"Profiler";case k:return"StrictMode";case ee:return"Suspense";case Je:return"SuspenseList";case ne:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case e:return"Portal";case Zt:return r.displayName||"Context";case vt:return(r._context.displayName||"Context")+".Consumer";case te:var u=r.render;return r=r.displayName,r||(r=u.displayName||u.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case bt:return u=r.displayName||null,u!==null?u:a(r.type)||"Memo";case it:u=r._payload,r=r._init;try{return a(r(u))}catch{}}return null}function y(r){if(r===_)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===it)return"<...>";try{var u=a(r);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function G(){var r=O.A;return r===null?null:r.getOwner()}function A(){return Error("react-stack-top-frame")}function tt(r){if(pt.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function o(r,u){function f(){ue||(ue=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}function v(){var r=a(this.type);return le[r]||(le[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function N(r,u,f,d,w,E){var R=f.ref;return r={$$typeof:wt,type:r,key:u,props:f,_owner:d},(R!==void 0?R:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:v}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:w}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function b(r,u){return u=N(r.type,u,r.props,r._owner,r._debugStack,r._debugTask),r._store&&(u._store.validated=r._store.validated),u}function et(r){I(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===it&&(r._payload.status==="fulfilled"?I(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function I(r){return typeof r=="object"&&r!==null&&r.$$typeof===wt}function ct(r){var u={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(f){return u[f]})}function B(r,u){return typeof r=="object"&&r!==null&&r.key!=null?(g(r.key),ct(""+r.key)):u.toString(36)}function nt(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(s,s):(r.status="pending",r.then(function(u){r.status==="pending"&&(r.status="fulfilled",r.value=u)},function(u){r.status==="pending"&&(r.status="rejected",r.reason=u)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function J(r,u,f,d,w){var E=typeof r;(E==="undefined"||E==="boolean")&&(r=null);var R=!1;if(r===null)R=!0;else switch(E){case"bigint":case"string":case"number":R=!0;break;case"object":switch(r.$$typeof){case wt:case e:R=!0;break;case it:return R=r._init,J(R(r._payload),u,f,d,w)}}if(R){R=r,w=w(R);var P=d===""?"."+B(R,0):d;return se(w)?(f="",P!=null&&(f=P.replace(fe,"$&/")+"/"),J(w,u,f,"",function(H){return H})):w!=null&&(I(w)&&(w.key!=null&&(R&&R.key===w.key||g(w.key)),f=b(w,f+(w.key==null||R&&R.key===w.key?"":(""+w.key).replace(fe,"$&/")+"/")+P),d!==""&&R!=null&&I(R)&&R.key==null&&R._store&&!R._store.validated&&(f._store.validated=2),w=f),u.push(w)),1}if(R=0,P=d===""?".":d+":",se(r))for(var C=0;C<r.length;C++)d=r[C],E=P+B(d,C),R+=J(d,u,f,E,w);else if(C=i(r),typeof C=="function")for(C===r.entries&&(pe||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pe=!0),r=C.call(r),C=0;!(d=r.next()).done;)d=d.value,E=P+B(d,C++),R+=J(d,u,f,E,w);else if(E==="object"){if(typeof r.then=="function")return J(nt(r),u,f,d,w);throw u=String(r),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return R}function $(r,u,f){if(r==null)return r;var d=[],w=0;return J(r,d,"","",function(E){return u.call(f,E,w++)}),d}function lt(r){if(r._status===-1){var u=r._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=r._result;var f=u();if(f.then(function(w){if(r._status===0||r._status===-1){r._status=1,r._result=w;var E=r._ioInfo;E!=null&&(E.end=performance.now()),f.status===void 0&&(f.status="fulfilled",f.value=w)}},function(w){if(r._status===0||r._status===-1){r._status=2,r._result=w;var E=r._ioInfo;E!=null&&(E.end=performance.now()),f.status===void 0&&(f.status="rejected",f.reason=w)}}),u=r._ioInfo,u!=null){u.value=f;var d=f.displayName;typeof d=="string"&&(u.name=d)}r._status===-1&&(r._status=0,r._result=f)}if(r._status===1)return u=r._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";var Xe=Object.create;var dt=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var tn=Object.getOwnPropertyNames;var en=Object.getPrototypeOf,nn=Object.prototype.hasOwnProperty;var St=(t,i)=>()=>{try{return i||t((i={exports:{}}).exports,i),i.exports}catch(l){throw i=0,l}},j=(t,i)=>{for(var l in i)dt(t,l,{get:i[l],enumerable:!0})},ve=(t,i,l,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of tn(i))!nn.call(t,p)&&p!==l&&dt(t,p,{get:()=>i[p],enumerable:!(c=Ze(i,p))||c.enumerable});return t};var be=(t,i,l)=>(l=t!=null?Xe(en(t)):{},ve(i||!t||!t.__esModule?dt(l,"default",{value:t,enumerable:!0}):l,t)),rn=t=>ve(dt({},"__esModule",{value:!0}),t);var Ie=St(E=>{"use strict";var Yt=Symbol.for("react.transitional.element"),qi=Symbol.for("react.portal"),Ki=Symbol.for("react.fragment"),Qi=Symbol.for("react.strict_mode"),Xi=Symbol.for("react.profiler"),Zi=Symbol.for("react.consumer"),to=Symbol.for("react.context"),eo=Symbol.for("react.forward_ref"),no=Symbol.for("react.suspense"),ro=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),io=Symbol.for("react.activity"),oo=Symbol.for("react.view_transition"),Te=Symbol.iterator;function so(t){return t===null||typeof t!="object"?null:(t=Te&&t[Te]||t["@@iterator"],typeof t=="function"?t:null)}var Fe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ve=Object.assign,De={};function Q(t,i,l){this.props=t,this.context=i,this.refs=De,this.updater=l||Fe}Q.prototype.isReactComponent={};Q.prototype.setState=function(t,i){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,i,"setState")};Q.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function je(){}je.prototype=Q.prototype;function zt(t,i,l){this.props=t,this.context=i,this.refs=De,this.updater=l||Fe}var Wt=zt.prototype=new je;Wt.constructor=zt;Ve(Wt,Q.prototype);Wt.isPureReactComponent=!0;var Pe=Array.isArray;function $t(){}var k={H:null,A:null,T:null,S:null},Me=Object.prototype.hasOwnProperty;function Bt(t,i,l){var c=l.ref;return{$$typeof:Yt,type:t,key:i,ref:c!==void 0?c:null,props:l}}function ao(t,i){return Bt(t.type,i,t.props)}function qt(t){return typeof t=="object"&&t!==null&&t.$$typeof===Yt}function uo(t){var i={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return i[l]})}var ke=/\/+/g;function Ht(t,i){return typeof t=="object"&&t!==null&&t.key!=null?uo(""+t.key):i.toString(36)}function co(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then($t,$t):(t.status="pending",t.then(function(i){t.status==="pending"&&(t.status="fulfilled",t.value=i)},function(i){t.status==="pending"&&(t.status="rejected",t.reason=i)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function K(t,i,l,c,p){var w=typeof t;(w==="undefined"||w==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(w){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Yt:case qi:s=!0;break;case Ae:return s=t._init,K(s(t._payload),i,l,c,p)}}if(s)return p=p(t),s=c===""?"."+Ht(t,0):c,Pe(p)?(l="",s!=null&&(l=s.replace(ke,"$&/")+"/"),K(p,i,l,"",function(a){return a})):p!=null&&(qt(p)&&(p=ao(p,l+(p.key==null||t&&t.key===p.key?"":(""+p.key).replace(ke,"$&/")+"/")+s)),i.push(p)),1;s=0;var n=c===""?".":c+":";if(Pe(t))for(var d=0;d<t.length;d++)c=t[d],w=n+Ht(c,d),s+=K(c,i,l,w,p);else if(d=so(t),typeof d=="function")for(t=d.call(t),d=0;!(c=t.next()).done;)c=c.value,w=n+Ht(c,d++),s+=K(c,i,l,w,p);else if(w==="object"){if(typeof t.then=="function")return K(co(t),i,l,c,p);throw i=String(t),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return s}function yt(t,i,l){if(t==null)return t;var c=[],p=0;return K(t,c,"","",function(w){return i.call(l,w,p++)}),c}function lo(t){if(t._status===-1){var i=t._result,l=i();l.then(function(c){(t._status===0||t._status===-1)&&(t._status=1,t._result=c,l.status===void 0&&(l.status="fulfilled",l.value=c))},function(c){(t._status===0||t._status===-1)&&(t._status=2,t._result=c,l.status===void 0&&(l.status="rejected",l.reason=c))}),t._status===-1&&(t._status=0,t._result=l)}if(t._status===1)return t._result.default;throw t._result}var Ne=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Le(t){var i=k.T,l={};l.types=i!==null?i.types:null,k.T=l;try{var c=t(),p=k.S;p!==null&&p(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then($t,Ne)}catch(w){Ne(w)}finally{i!==null&&l.types!==null&&(i.types=l.types),k.T=i}}function Ge(t){var i=k.T;if(i!==null){var l=i.types;l===null?i.types=[t]:l.indexOf(t)===-1&&l.push(t)}else Le(Ge.bind(null,t))}var po={map:yt,forEach:function(t,i,l){yt(t,function(){i.apply(this,arguments)},l)},count:function(t){var i=0;return yt(t,function(){i++}),i},toArray:function(t){return yt(t,function(i){return i})||[]},only:function(t){if(!qt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};E.Activity=io;E.Children=po;E.Component=Q;E.Fragment=Ki;E.Profiler=Xi;E.PureComponent=zt;E.StrictMode=Qi;E.Suspense=no;E.ViewTransition=oo;E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k;E.__COMPILER_RUNTIME={__proto__:null,c:function(t){return k.H.useMemoCache(t)}};E.addTransitionType=Ge;E.cache=function(t){return function(){return t.apply(null,arguments)}};E.cacheSignal=function(){return null};E.cloneElement=function(t,i,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var c=Ve({},t.props),p=t.key;if(i!=null)for(w in i.key!==void 0&&(p=""+i.key),i)!Me.call(i,w)||w==="key"||w==="__self"||w==="__source"||w==="ref"&&i.ref===void 0||(c[w]=i[w]);var w=arguments.length-2;if(w===1)c.children=l;else if(1<w){for(var s=Array(w),n=0;n<w;n++)s[n]=arguments[n+2];c.children=s}return Bt(t.type,p,c)};E.createContext=function(t){return t={$$typeof:to,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Zi,_context:t},t};E.createElement=function(t,i,l){var c,p={},w=null;if(i!=null)for(c in i.key!==void 0&&(w=""+i.key),i)Me.call(i,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(p[c]=i[c]);var s=arguments.length-2;if(s===1)p.children=l;else if(1<s){for(var n=Array(s),d=0;d<s;d++)n[d]=arguments[d+2];p.children=n}if(t&&t.defaultProps)for(c in s=t.defaultProps,s)p[c]===void 0&&(p[c]=s[c]);return Bt(t,w,p)};E.createRef=function(){return{current:null}};E.forwardRef=function(t){return{$$typeof:eo,render:t}};E.isValidElement=qt;E.lazy=function(t){return{$$typeof:Ae,_payload:{_status:-1,_result:t},_init:lo}};E.memo=function(t,i){return{$$typeof:ro,type:t,compare:i===void 0?null:i}};E.startTransition=Le;E.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()};E.use=function(t){return k.H.use(t)};E.useActionState=function(t,i,l){return k.H.useActionState(t,i,l)};E.useCallback=function(t,i){return k.H.useCallback(t,i)};E.useContext=function(t){return k.H.useContext(t)};E.useDebugValue=function(){};E.useDeferredValue=function(t,i){return k.H.useDeferredValue(t,i)};E.useEffect=function(t,i){return k.H.useEffect(t,i)};E.useEffectEvent=function(t){return k.H.useEffectEvent(t)};E.useId=function(){return k.H.useId()};E.useImperativeHandle=function(t,i,l){return k.H.useImperativeHandle(t,i,l)};E.useInsertionEffect=function(t,i){return k.H.useInsertionEffect(t,i)};E.useLayoutEffect=function(t,i){return k.H.useLayoutEffect(t,i)};E.useMemo=function(t,i){return k.H.useMemo(t,i)};E.useOptimistic=function(t,i){return k.H.useOptimistic(t,i)};E.useReducer=function(t,i,l){return k.H.useReducer(t,i,l)};E.useRef=function(t){return k.H.useRef(t)};E.useState=function(t){return k.H.useState(t)};E.useSyncExternalStore=function(t,i,l){return k.H.useSyncExternalStore(t,i,l)};E.useTransition=function(){return k.H.useTransition()};E.version="19.3.1"});var Je=St((x,mt)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function t(r,u){Object.defineProperty(c.prototype,r,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function i(r){return r===null||typeof r!="object"?null:(r=oe&&r[oe]||r["@@iterator"],typeof r=="function"?r:null)}function l(r,u){r=(r=r.constructor)&&(r.displayName||r.name)||"ReactClass";var f=r+"."+u;se[f]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,r),se[f]=!0)}function c(r,u,f){this.props=r,this.context=u,this.refs=bt,this.updater=f||ae}function p(){}function w(r,u,f){this.props=r,this.context=u,this.refs=bt,this.updater=f||ae}function s(){}function n(r){return""+r}function d(r){try{n(r);var u=!1}catch{u=!0}if(u){u=console;var f=u.error,g=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",g),n(r)}}function a(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===We?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case h:return"Fragment";case Zt:return"Profiler";case Xt:return"StrictMode";case ne:return"Suspense";case ze:return"SuspenseList";case re:return"Activity";case ie:return"ViewTransition"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case P:return"Portal";case te:return r.displayName||"Context";case wt:return(r._context.displayName||"Context")+".Consumer";case ee:var u=r.render;return r=r.displayName,r||(r=u.displayName||u.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case vt:return u=r.displayName||null,u!==null?u:a(r.type)||"Memo";case V:u=r._payload,r=r._init;try{return a(r(u))}catch{}}return null}function y(r){if(r===h)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===V)return"<...>";try{var u=a(r);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function L(){var r=O.A;return r===null?null:r.getOwner()}function F(){return Error("react-stack-top-frame")}function X(r){if(lt.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function o(r,u){function f(){pe||(pe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}function b(){var r=a(this.type);return ge[r]||(ge[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function N(r,u,f,g,m,T){var v=f.ref;return r={$$typeof:S,type:r,key:u,props:f,_owner:g},(v!==void 0?v:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:b}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:m}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function _(r,u){return u=N(r.type,u,r.props,r._owner,r._debugStack,r._debugTask),r._store&&(u._store.validated=r._store.validated),u}function Z(r){I(r)?r._store&&(r._store.validated=1):typeof r=="object"&&r!==null&&r.$$typeof===V&&(r._payload.status==="fulfilled"?I(r._payload.value)&&r._payload.value._store&&(r._payload.value._store.validated=1):r._store&&(r._store.validated=1))}function I(r){return typeof r=="object"&&r!==null&&r.$$typeof===S}function ut(r){var u={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(f){return u[f]})}function W(r,u){return typeof r=="object"&&r!==null&&r.key!=null?(d(r.key),ut(""+r.key)):u.toString(36)}function tt(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(s,s):(r.status="pending",r.then(function(u){r.status==="pending"&&(r.status="fulfilled",r.value=u)},function(u){r.status==="pending"&&(r.status="rejected",r.reason=u)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function J(r,u,f,g,m){var T=typeof r;(T==="undefined"||T==="boolean")&&(r=null);var v=!1;if(r===null)v=!0;else switch(T){case"bigint":case"string":case"number":v=!0;break;case"object":switch(r.$$typeof){case S:case P:v=!0;break;case V:return v=r._init,J(v(r._payload),u,f,g,m)}}if(v){v=r,m=m(v);var R=g===""?"."+W(v,0):g;return ce(m)?(f="",R!=null&&(f=R.replace(ye,"$&/")+"/"),J(m,u,f,"",function(H){return H})):m!=null&&(I(m)&&(m.key!=null&&(v&&v.key===m.key||d(m.key)),f=_(m,f+(m.key==null||v&&v.key===m.key?"":(""+m.key).replace(ye,"$&/")+"/")+R),g!==""&&v!=null&&I(v)&&v.key==null&&v._store&&!v._store.validated&&(f._store.validated=2),m=f),u.push(m)),1}if(v=0,R=g===""?".":g+":",ce(r))for(var C=0;C<r.length;C++)g=r[C],T=R+W(g,C),v+=J(g,u,f,T,m);else if(C=i(r),typeof C=="function")for(C===r.entries&&(de||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),de=!0),r=C.call(r),C=0;!(g=r.next()).done;)g=g.value,T=R+W(g,C++),v+=J(g,u,f,T,m);else if(T==="object"){if(typeof r.then=="function")return J(tt(r),u,f,g,m);throw u=String(r),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return v}function $(r,u,f){if(r==null)return r;var g=[],m=0;return J(r,g,"","",function(T){return u.call(f,T,m++)}),g}function ct(r){if(r._status===-1){var u=null,f=null,g=r._ioInfo;g!=null&&(g.start=g.end=performance.now(),g.value=new Promise(function(v,R){u=v,f=R})),g=r._result;var m=g();if(m.then(function(v){if(r._status===0||r._status===-1){r._status=1,r._result=v;var R=r._ioInfo;if(R!=null){R.end=performance.now();var C=v?.default;u(C),R.value.status="fulfilled",R.value.value=C}m.status===void 0&&(m.status="fulfilled",m.value=v)}},function(v){if(r._status===0||r._status===-1){r._status=2,r._result=v;var R=r._ioInfo;R!=null&&(R.end=performance.now(),R.value.then(s,s),f(v),R.value.status="rejected",R.value.reason=v),m.status===void 0&&(m.status="rejected",m.reason=v)}}),g=r._ioInfo,g!=null){var T=m.displayName;typeof T=="string"&&(g.name=T)}r._status===-1&&(r._status=0,r._result=m)}if(r._status===1)return g=r._result,g===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,u),"default"in u||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,g),"default"in g||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default;throw r._result}function F(){var r=O.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,g),g.default;throw r._result}function A(){var r=O.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r}function 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});
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 nt(r){var u=O.T,f={};f.types=u!==null?u.types:null,f._updatedFibers=new Set,O.T=f;try{var g=r(),m=O.S;m!==null&&m(f,g),typeof g=="object"&&g!==null&&typeof g.then=="function"&&(O.asyncTransitions++,g.then(et,et),g.then(s,me))}catch(T){me(T)}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}}function rt(r){var u=O.T;if(u!==null){var f=u.types;f===null?u.types=[r]:f.indexOf(r)===-1&&f.push(r)}else O.asyncTransitions===0&&console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."),nt(rt.bind(null,r))}function Y(r){if(pt===null)try{var u=("require"+Math.random()).slice(0,7);pt=(mt&&mt[u]).call(mt,"timers").setImmediate}catch{pt=function(g){he===!1&&(he=!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 m=new MessageChannel;m.port1.onmessage=g,m.port2.postMessage(void 0)}}return pt(r)}function U(r){return 1<r.length&&typeof AggregateError=="function"?new AggregateError(r):r[0]}function z(r,u){u!==ft-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ft=u}function ht(r,u,f){var g=O.actQueue;if(g!==null)if(g.length!==0)try{e(g),Y(function(){return ht(r,u,f)});return}catch(m){O.thrownErrors.push(m)}else O.actQueue=null;0<O.thrownErrors.length?(g=U(O.thrownErrors),O.thrownErrors.length=0,f(g)):u(r)}function e(r){if(!_t){_t=!0;var u=0;try{for(;u<r.length;u++){var f=r[u];do{O.didUsePromise=!1;var g=f(!1);if(g!==null){if(O.didUsePromise){r[u]=f,r.splice(0,u);return}f=g}else break}while(!0)}r.length=0}catch(m){r.splice(0,u+1),O.thrownErrors.push(m)}finally{_t=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var S=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),Xt=Symbol.for("react.strict_mode"),Zt=Symbol.for("react.profiler"),wt=Symbol.for("react.consumer"),te=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),vt=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),ie=Symbol.for("react.view_transition"),oe=Symbol.iterator,se={},ae={isMounted:function(){return!1},enqueueForceUpdate:function(r){l(r,"forceUpdate")},enqueueReplaceState:function(r){l(r,"replaceState")},enqueueSetState:function(r){l(r,"setState")}},ue=Object.assign,bt={};Object.freeze(bt),c.prototype.isReactComponent={},c.prototype.setState=function(r,u){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,u,"setState")},c.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};var 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(it in G)G.hasOwnProperty(it)&&t(it,G[it]);p.prototype=c.prototype,G=w.prototype=new p,G.constructor=w,ue(G,c.prototype),G.isPureReactComponent=!0;var ce=Array.isArray,We=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},lt=Object.prototype.hasOwnProperty,le=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(r){return r()}};var pe,fe,ge={},Be=G.react_stack_bottom_frame.bind(G,F)(),qe=le(y(F)),de=!1,ye=/\/+/g,me=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)},he=!1,pt=null,ft=0,gt=!1,_t=!1,we=typeof queueMicrotask=="function"?function(r){queueMicrotask(function(){return queueMicrotask(r)})}:Y;G=Object.freeze({__proto__:null,c:function(r){return A().useMemoCache(r)}});var it={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}};x.Activity=re,x.Children=it,x.Component=c,x.Fragment=h,x.Profiler=Zt,x.PureComponent=w,x.StrictMode=Xt,x.Suspense=ne,x.ViewTransition=ie,x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,x.__COMPILER_RUNTIME=G,x.act=function(r){var u=O.actQueue,f=ft;ft++;var g=O.actQueue=u!==null?u:[],m=!1;try{var T=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(T!==null&&typeof T=="object"&&typeof T.then=="function"){var v=T;return we(function(){m||gt||(gt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(C,H){m=!0,v.then(function(B){if(z(u,f),f===0){try{e(g),Y(function(){return ht(B,C,H)})}catch(Qe){O.thrownErrors.push(Qe)}if(0<O.thrownErrors.length){var Ke=U(O.thrownErrors);O.thrownErrors.length=0,H(Ke)}}else C(B)},function(B){z(u,f),0<O.thrownErrors.length&&(B=U(O.thrownErrors),O.thrownErrors.length=0),H(B)})}}}var R=T;if(z(u,f),f===0&&(e(g),g.length!==0&&we(function(){m||gt||(gt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),O.actQueue=null),0<O.thrownErrors.length)throw r=U(O.thrownErrors),O.thrownErrors.length=0,r;return{then:function(C,H){m=!0,f===0?(O.actQueue=g,Y(function(){return ht(R,C,H)})):C(R)}}},x.addTransitionType=rt,x.cache=function(r){return function(){return r.apply(null,arguments)}},x.cacheSignal=function(){return null},x.captureOwnerStack=function(){var r=O.getCurrentStack;return r===null?null:r()},x.cloneElement=function(r,u,f){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var g=ue({},r.props),m=r.key,T=r._owner;if(u!=null){var v;t:{if(lt.call(u,"ref")&&(v=Object.getOwnPropertyDescriptor(u,"ref").get)&&v.isReactWarning){v=!1;break t}v=u.ref!==void 0}v&&(T=L()),X(u)&&(d(u.key),m=""+u.key);for(R in u)!lt.call(u,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&u.ref===void 0||(g[R]=u[R])}var R=arguments.length-2;if(R===1)g.children=f;else if(1<R){v=Array(R);for(var C=0;C<R;C++)v[C]=arguments[C+2];g.children=v}for(g=N(r.type,m,g,T,r._debugStack,r._debugTask),m=2;m<arguments.length;m++)Z(arguments[m]);return g},x.createContext=function(r){return r={$$typeof:te,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:wt,_context:r},r._currentRenderer=null,r._currentRenderer2=null,r},x.createElement=function(r,u,f){for(var g=2;g<arguments.length;g++)Z(arguments[g]);var m;g={};var T=null;if(u!=null)for(m in fe||!("__self"in u)||"key"in u||(fe=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),X(u)&&(d(u.key),T=""+u.key),u)lt.call(u,m)&&m!=="key"&&m!=="__self"&&m!=="__source"&&(g[m]=u[m]);var v=arguments.length-2;if(v===1)g.children=f;else if(1<v){for(var R=Array(v),C=0;C<v;C++)R[C]=arguments[C+2];Object.freeze&&Object.freeze(R),g.children=R}if(r&&r.defaultProps)for(m in v=r.defaultProps,v)g[m]===void 0&&(g[m]=v[m]);return T&&o(g,typeof r=="function"?r.displayName||r.name||"Unknown":r),(m=1e4>O.recentlyCreatedOwnerStacks++)?(R=Error.stackTraceLimit,Error.stackTraceLimit=10,v=Error("react-stack-top-frame"),Error.stackTraceLimit=R):v=Be,N(r,T,g,L(),v,m?le(y(r)):qe)},x.createRef=function(){var r={current:null};return Object.seal(r),r},x.forwardRef=function(r){r!=null&&r.$$typeof===vt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof r!="function"?console.error("forwardRef requires a render function but was given %s.",r===null?"null":typeof r):r.length!==0&&r.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",r.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),r!=null&&r.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:ee,render:r},f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(g){f=g,r.name||r.displayName||(Object.defineProperty(r,"name",{value:g}),r.displayName=g)}}),u},x.isValidElement=I,x.lazy=function(r){r={_status:-1,_result:r};var u={$$typeof:V,_payload:r,_init:ct},f={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return r._ioInfo=f,u._debugInfo=[{awaited:f}],u},x.memo=function(r,u){r==null&&console.error("memo: The first argument must be a component. Instead received: %s",r===null?"null":typeof r),u={$$typeof:vt,type:r,compare:u===void 0?null:u};var f;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(g){f=g,r.name||r.displayName||(Object.defineProperty(r,"name",{value:g}),r.displayName=g)}}),u},x.startTransition=nt,x.unstable_useCacheRefresh=function(){return A().useCacheRefresh()},x.use=function(r){return A().use(r)},x.useActionState=function(r,u,f){return A().useActionState(r,u,f)},x.useCallback=function(r,u){return A().useCallback(r,u)},x.useContext=function(r){var u=A();return r.$$typeof===wt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(r)},x.useDebugValue=function(r,u){return A().useDebugValue(r,u)},x.useDeferredValue=function(r,u){return A().useDeferredValue(r,u)},x.useEffect=function(r,u){return r==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useEffect(r,u)},x.useEffectEvent=function(r){return A().useEffectEvent(r)},x.useId=function(){return A().useId()},x.useImperativeHandle=function(r,u,f){return A().useImperativeHandle(r,u,f)},x.useInsertionEffect=function(r,u){return r==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useInsertionEffect(r,u)},x.useLayoutEffect=function(r,u){return r==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useLayoutEffect(r,u)},x.useMemo=function(r,u){return A().useMemo(r,u)},x.useOptimistic=function(r,u){return A().useOptimistic(r,u)},x.useReducer=function(r,u,f){return A().useReducer(r,u,f)},x.useRef=function(r){return A().useRef(r)},x.useState=function(r){return A().useState(r)},x.useSyncExternalStore=function(r,u,f){return A().useSyncExternalStore(r,u,f)},x.useTransition=function(){return A().useTransition()},x.version="19.3.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Qt=St((ho,Kt)=>{"use strict";process.env.NODE_ENV==="production"?Kt.exports=Ie():Kt.exports=Je()});var fo={};j(fo,{Application:()=>D.Application,Browser:()=>D.Browser,Clipboard:()=>D.Clipboard,Events:()=>D.Events,PortForwardContext:()=>He,Screens:()=>D.Screens,System:()=>D.System,WML:()=>D.WML,Window:()=>D.Window,app:()=>Ot,config:()=>ot,data:()=>Ct,devserver:()=>Tt,diagnostics:()=>Pt,exec:()=>kt,logs:()=>Nt,main:()=>xt,metric:()=>At,networker:()=>jt,plugin:()=>Et,pluginManager:()=>Mt,registry:()=>Rt,resource:()=>Lt,settings:()=>Gt,settingsProvider:()=>It,time:()=>M,types:()=>q,ui:()=>Jt,useResourcePortForwarder:()=>Ye,utils:()=>Ut});module.exports=rn(fo);var ot;(n=>{class t{static createFrom(a={}){return new t(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.email=a.email,this.url=a.url}}n.PluginAuthor=t;class i{static createFrom(a={}){return new i(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.name=a.name,this.plugin=a.plugin,this.area=a.area,this.resources=a.resources,this.extension=a.extension}}n.PluginResourceComponent=i;class l{static createFrom(a={}){return new l(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.resource=this.convertValues(a.resource,i)}convertValues(a,y,L=!1){if(!a)return a;if(a.slice&&a.map)return a.map(F=>this.convertValues(F,y));if(typeof a=="object"){if(L){for(let F of Object.keys(a))a[F]=new y(a[F]);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 w{static createFrom(a={}){return new w(a)}constructor(a={}){typeof a=="string"&&(a=JSON.parse(a)),this.colors=this.convertValues(a.colors,p)}convertValues(a,y,L=!1){if(!a)return a;if(a.slice&&a.map)return a.map(F=>this.convertValues(F,y));if(typeof a=="object"){if(L){for(let F of Object.keys(a))a[F]=new y(a[F]);return a}return new y(a)}return a}}n.PluginTheme=w;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,w),this.components=this.convertValues(a.components,l)}convertValues(a,y,L=!1){if(!a)return a;if(a.slice&&a.map)return a.map(F=>this.convertValues(F,y));if(typeof a=="object"){if(L){for(let F of Object.keys(a))a[F]=new y(a[F]);return a}return new y(a)}return a}}n.PluginMeta=s})(ot||(ot={}));var _e;(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,d=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(d){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,d=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(d){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.LogEntry=c})(_e||(_e={}));var Se;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.created_at=this.convertValues(n.created_at,M.Time),this.labels=n.labels,this.params=n.params,this.id=n.id,this.command=n.command,this.attached=n.attached}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.Session=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.session=this.convertValues(n.session,t),this.buffer=n.buffer}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.AttachSessionResult=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.labels=n.labels,this.command=n.command}}w.CreateTerminalOptions=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,q.ActionTargetBuilder),this.default_command=n.default_command}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.Handler=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.params=n.params,this.labels=n.labels,this.id=n.id,this.resource_plugin=n.resource_plugin,this.resource_key=n.resource_key,this.resource_data=n.resource_data,this.command=n.command,this.tty=n.tty}}w.SessionOptions=p})(Se||(Se={}));var xe;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.target=n.target,this.follow=n.follow,this.include_previous=n.include_previous,this.include_timestamps=n.include_timestamps,this.tail_lines=n.tail_lines,this.since_seconds=n.since_seconds,this.since_time=this.convertValues(n.since_time,M.Time),this.limit_bytes=n.limit_bytes,this.include_source_events=n.include_source_events,this.params=n.params}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.LogSessionOptions=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.resource_data=n.resource_data,this.options=this.convertValues(n.options,t)}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.CreateSessionOptions=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.plugin=n.plugin,this.resource=n.resource,this.target_builder=this.convertValues(n.target_builder,q.ActionTargetBuilder)}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.Handler=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.labels=n.labels}}w.LogSource=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.plugin_id=n.plugin_id,this.connection_id=n.connection_id,this.resource_key=n.resource_key,this.resource_id=n.resource_id,this.options=this.convertValues(n.options,t),this.status=n.status,this.active_sources=this.convertValues(n.active_sources,c),this.created_at=this.convertValues(n.created_at,M.Time)}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.LogSession=p})(xe||(xe={}));var xt;(l=>{class t{static createFrom(p={}){return new t(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.displayName=p.displayName,this.pattern=p.pattern}}l.FileFilter=t;class i{static createFrom(p={}){return new i(p)}constructor(p={}){typeof p=="string"&&(p=JSON.parse(p)),this.defaultDirectory=p.defaultDirectory,this.defaultFilename=p.defaultFilename,this.title=p.title,this.filters=this.convertValues(p.filters,t),this.showHiddenFiles=p.showHiddenFiles,this.canCreateDirectories=p.canCreateDirectories,this.resolvesAliases=p.resolvesAliases,this.treatPackagesAsDirectories=p.treatPackagesAsDirectories}convertValues(p,w,s=!1){if(!p)return p;if(p.slice&&p.map)return p.map(n=>this.convertValues(n,w));if(typeof p=="object"){if(s){for(let n of Object.keys(p))p[n]=new w(p[n]);return p}return new w(p)}return p}}l.FileDialogOptions=i})(xt||(xt={}));var Ee;(F=>{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}}F.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}}F.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,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.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,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.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,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.MetricDescriptor=p;class w{static createFrom(o={}){return new w(o)}constructor(o={}){typeof o=="string"&&(o=JSON.parse(o)),this.resource=o.resource,this.metrics=this.convertValues(o.metrics,p)}convertValues(o,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.Handler=w;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,w)}convertValues(o,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.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,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.TimeSeries=n;class d{static createFrom(o={}){return new d(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,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.MetricResult=d;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,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.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,d),this.error=o.error}convertValues(o,b,N=!1){if(!o)return o;if(o.slice&&o.map)return o.map(_=>this.convertValues(_,b));if(typeof o=="object"){if(N){for(let _ of Object.keys(o))o[_]=new b(o[_]);return o}return new b(o)}return o}}F.QueryResponse=y;class L{static createFrom(o={}){return new L(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}}F.SubscribeRequest=L})(Ee||(Ee={}));var st;(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,d=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(d){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,d=!1){if(!s)return s;if(s.slice&&s.map)return s.map(a=>this.convertValues(a,n));if(typeof s=="object"){if(d){for(let a of Object.keys(s))s[a]=new n(s[a]);return s}return new n(s)}return s}}p.PortForwardSessionOptions=c})(st||(st={}));var Et;(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,w=!1){if(!c)return c;if(c.slice&&c.map)return c.map(s=>this.convertValues(s,p));if(typeof c=="object"){if(w){for(let s of Object.keys(c))c[s]=new p(c[s]);return c}return new p(c)}return c}}i.LoadPluginOptions=t})(Et||(Et={}));var Rt;(w=>{class t{static createFrom(n={}){return new t(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.name=n.name,this.description=n.description,this.icon_url=n.icon_url,this.category=n.category,this.tags=n.tags,this.license=n.license,this.official=n.official,this.featured=n.featured,this.download_count=n.download_count,this.average_rating=n.average_rating,this.review_count=n.review_count,this.repository=n.repository,this.url=n.url,this.installed=n.installed,this.installed_version=n.installed_version,this.latest_version=n.latest_version,this.update_available=n.update_available}}w.AvailablePlugin=t;class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.date=n.date,this.count=n.count}}w.DailyStat=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.total=n.total,this.last_month=n.last_month,this.last_week=n.last_week,this.daily_stats=this.convertValues(n.daily_stats,i)}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.DownloadStats=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.user_id=n.user_id,this.rating=n.rating,this.title=n.title,this.body=n.body,this.created_at=n.created_at}}w.Review=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.version=n.version,this.description=n.description,this.changelog=n.changelog,this.min_ide_version=n.min_ide_version,this.max_ide_version=n.max_ide_version,this.capabilities=n.capabilities,this.created_at=n.created_at}}w.VersionInfo=p})(Rt||(Rt={}));var Re;(w=>{let t;(b=>(b.TEXT="text",b.SELECT="select",b.MULTISELECT="multiselect",b.INTEGER="integer",b.FLOAT="float",b.TOGGLE="toggle",b.COLOR="color",b.DATETIME="datetime",b.PASSWORD="password"))(t=w.SettingType||(w.SettingType={}));class i{static createFrom(n={}){return new i(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.enabled=n.enabled,this.allowFolders=n.allowFolders,this.extensions=n.extensions,this.multiple=n.multiple,this.relative=n.relative,this.defaultPath=n.defaultPath}}w.SettingFileSelection=i;class l{static createFrom(n={}){return new l(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.label=n.label,this.description=n.description,this.value=n.value}}w.SettingOption=l;class c{static createFrom(n={}){return new c(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.id=n.id,this.label=n.label,this.description=n.description,this.type=n.type,this.value=n.value,this.default=n.default,this.options=this.convertValues(n.options,l),this.fileSelection=this.convertValues(n.fileSelection,i),this.sensitive=n.sensitive}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.Setting=c;class p{static createFrom(n={}){return new p(n)}constructor(n={}){typeof n=="string"&&(n=JSON.parse(n)),this.settings=this.convertValues(n.settings,c,!0),this.id=n.id,this.label=n.label,this.description=n.description,this.icon=n.icon}convertValues(n,d,a=!1){if(!n)return n;if(n.slice&&n.map)return n.map(y=>this.convertValues(y,d));if(typeof n=="object"){if(a){for(let y of Object.keys(n))n[y]=new d(n[y]);return n}return new d(n)}return n}}w.Category=p})(Re||(Re={}));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;(z=>{let t;(V=>(V.UNKNOWN="UNKNOWN",V.CONNECTED="CONNECTED",V.DISCONNECTED="DISCONNECTED",V.PENDING="PENDING",V.FAILED="FAILED",V.ERROR="ERROR",V.UNAUTHORIZED="UNAUTHORIZED",V.FORBIDDEN="FORBIDDEN",V.BAD_REQUEST="BAD_REQUEST",V.NOT_FOUND="NOT_FOUND",V.TIMEOUT="TIMEOUT",V.UNAVAILABLE="UNAVAILABLE",V.REQUEST_ENTITY_TOO_LARGE="REQUEST_ENTITY_TOO_LARGE"))(t=z.ConnectionStatusCode||(z.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}}z.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}}z.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}}z.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}}z.ActionTargetBuilder=p;class w{static createFrom(e={}){return new w(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.idAccessor=e.idAccessor,this.namespaceAccessor=e.namespaceAccessor,this.namespaced=e.namespaced,this.resourceKey=e.resourceKey,this.keyAccessor=e.keyAccessor,this.keyMap=e.keyMap,this.detailExtractors=e.detailExtractors,this.displayId=e.displayId}}z.ResourceLink=w;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,w),this.valueMap=e.valueMap}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.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,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.Connection=n;class d{static createFrom(e={}){return new d(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.connection=this.convertValues(e.connection,n),this.status=e.status,this.error=e.error,this.details=e.details}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.ConnectionStatus=d;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}}z.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}}z.CreateResult=y;class L{static createFrom(e={}){return new L(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}}z.DeleteInput=L;class F{static createFrom(e={}){return new F(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}z.DeleteResult=F;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}}z.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}}z.PaginationParams=o;class b{static createFrom(e={}){return new b(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.by=e.by,this.direction=e.direction}}z.OrderParams=b;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,b),this.pagination=this.convertValues(e.pagination,o)}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.FindInput=N;class _{static createFrom(e={}){return new _(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}}z.PaginationResult=_;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,_)}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.FindResult=Z;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}}z.GetInput=I;class ut{static createFrom(e={}){return new ut(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}z.GetResult=ut;class W{static createFrom(e={}){return new W(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}}z.InformerConnectionSummary=W;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,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.LayoutItem=tt;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,b),this.pagination=this.convertValues(e.pagination,o)}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.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,_)}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.ListResult=$;class ct{static createFrom(e={}){return new ct(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.metadata=this.convertValues(e.metadata,ot.PluginMeta),this.enabled=e.enabled,this.running=e.running,this.devMode=e.devMode,this.devPath=e.devPath,this.loading=e.loading,this.loadError=e.loadError,this.capabilities=e.capabilities}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.Plugin=ct;class A{static createFrom(e={}){return new A(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.Metadata=this.convertValues(e.Metadata,ot.PluginMeta),this.ID=e.ID,this.DevPath=e.DevPath,this.Enabled=e.Enabled,this.DevMode=e.DevMode}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.PluginState=A;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,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.ResourceDefinition=et;class nt{static createFrom(e={}){return new nt(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.id=e.id,this.name=e.name,this.description=e.description,this.icon=e.icon,this.resources=this.convertValues(e.resources,Array,!0)}convertValues(e,S,P=!1){if(!e)return e;if(e.slice&&e.map)return e.map(h=>this.convertValues(h,S));if(typeof e=="object"){if(P){for(let h of Object.keys(e))e[h]=new S(e[h]);return e}return new S(e)}return e}}z.ResourceGroup=nt;class rt{static createFrom(e={}){return new rt(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}}z.ResourceMeta=rt;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}}z.UpdateInput=Y;class U{static createFrom(e={}){return new U(e)}constructor(e={}){typeof e=="string"&&(e=JSON.parse(e)),this.result=e.result,this.success=e.success}}z.UpdateResult=U})(q||(q={}));var Oe;(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})(Oe||(Oe={}));var Ce;(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})(Ce||(Ce={}));var Ot={};j(Ot,{GetOperatingSystem:()=>on,OpenFileSelectionDialog:()=>sn,SaveFileDialog:()=>an,WriteFileContent:()=>un});function on(){return window.go.main.App.GetOperatingSystem()}function sn(t){return window.go.main.App.OpenFileSelectionDialog(t)}function an(t){return window.go.main.App.SaveFileDialog(t)}function un(t,i){return window.go.main.App.WriteFileContent(t,i)}var Ct={};j(Ct,{Delete:()=>cn,Get:()=>ln,Keys:()=>pn,Set:()=>fn});function cn(t,i){return window.go.data.Client.Delete(t,i)}function ln(t,i){return window.go.data.Client.Get(t,i)}function pn(t){return window.go.data.Client.Keys(t)}function fn(t,i,l){return window.go.data.Client.Set(t,i,l)}var Tt={};j(Tt,{GetDevServerLogs:()=>gn,GetDevServerState:()=>dn,GetExternalPluginInfo:()=>yn,Initialize:()=>mn,IsManaged:()=>hn,ListDevServerStates:()=>wn,RestartDevServer:()=>vn,Shutdown:()=>bn,StartDevServer:()=>_n,StartDevServerForPath:()=>Sn,StopDevServer:()=>xn});function gn(t,i){return window.go.devserver.DevServerManager.GetDevServerLogs(t,i)}function dn(t){return window.go.devserver.DevServerManager.GetDevServerState(t)}function yn(t){return window.go.devserver.DevServerManager.GetExternalPluginInfo(t)}function mn(t){return window.go.devserver.DevServerManager.Initialize(t)}function hn(t){return window.go.devserver.DevServerManager.IsManaged(t)}function wn(){return window.go.devserver.DevServerManager.ListDevServerStates()}function vn(t){return window.go.devserver.DevServerManager.RestartDevServer(t)}function bn(){return window.go.devserver.DevServerManager.Shutdown()}function _n(t){return window.go.devserver.DevServerManager.StartDevServer(t)}function Sn(t,i){return window.go.devserver.DevServerManager.StartDevServerForPath(t,i)}function xn(t){return window.go.devserver.DevServerManager.StopDevServer(t)}var Pt={};j(Pt,{Debug:()=>En,Error:()=>Rn,Info:()=>On,Log:()=>Cn,ReadLog:()=>Tn,StartTail:()=>Pn,StopTail:()=>kn,Warn:()=>Nn});function En(t,i){return window.go.diagnostics.DiagnosticsClient.Debug(t,i)}function Rn(t,i){return window.go.diagnostics.DiagnosticsClient.Error(t,i)}function On(t,i){return window.go.diagnostics.DiagnosticsClient.Info(t,i)}function Cn(t,i,l){return window.go.diagnostics.DiagnosticsClient.Log(t,i,l)}function Tn(t){return window.go.diagnostics.DiagnosticsClient.ReadLog(t)}function Pn(t){return window.go.diagnostics.DiagnosticsClient.StartTail(t)}function kn(t){return window.go.diagnostics.DiagnosticsClient.StopTail(t)}function Nn(t,i){return window.go.diagnostics.DiagnosticsClient.Warn(t,i)}var kt={};j(kt,{AttachSession:()=>An,CloseSession:()=>Fn,CreateSession:()=>Vn,CreateTerminal:()=>Dn,DetachSession:()=>jn,GetHandler:()=>Mn,GetHandlers:()=>Ln,GetPluginHandlers:()=>Gn,GetSession:()=>In,ListPlugins:()=>Jn,ListSessions:()=>Un,ResizeSession:()=>Hn,WriteSession:()=>$n});function An(t){return window.go.exec.Client.AttachSession(t)}function Fn(t){return window.go.exec.Client.CloseSession(t)}function Vn(t,i,l){return window.go.exec.Client.CreateSession(t,i,l)}function Dn(t){return window.go.exec.Client.CreateTerminal(t)}function jn(t){return window.go.exec.Client.DetachSession(t)}function Mn(t,i){return window.go.exec.Client.GetHandler(t,i)}function Ln(){return window.go.exec.Client.GetHandlers()}function Gn(t){return window.go.exec.Client.GetPluginHandlers(t)}function In(t){return window.go.exec.Client.GetSession(t)}function Jn(){return window.go.exec.Client.ListPlugins()}function Un(){return window.go.exec.Client.ListSessions()}function Hn(t,i,l){return window.go.exec.Client.ResizeSession(t,i,l)}function $n(t,i){return window.go.exec.Client.WriteSession(t,i)}var Nt={};j(Nt,{CloseSession:()=>Yn,CreateSession:()=>zn,GetSession:()=>Wn,GetSupportedResources:()=>Bn,ListSessions:()=>qn,PauseSession:()=>Kn,ResumeSession:()=>Qn,UpdateSessionOptions:()=>Xn});function Yn(t){return window.go.logs.Client.CloseSession(t)}function zn(t,i,l){return window.go.logs.Client.CreateSession(t,i,l)}function Wn(t){return window.go.logs.Client.GetSession(t)}function Bn(t){return window.go.logs.Client.GetSupportedResources(t)}function qn(){return window.go.logs.Client.ListSessions()}function Kn(t){return window.go.logs.Client.PauseSession(t)}function Qn(t){return window.go.logs.Client.ResumeSession(t)}function Xn(t,i){return window.go.logs.Client.UpdateSessionOptions(t,i)}var At={};j(At,{GetProviders:()=>Zn,GetProvidersForResource:()=>tr,Query:()=>er,QueryAll:()=>nr,Subscribe:()=>rr,Unsubscribe:()=>ir});function Zn(){return window.go.metric.Client.GetProviders()}function tr(t){return window.go.metric.Client.GetProvidersForResource(t)}function er(t,i,l){return window.go.metric.Client.Query(t,i,l)}function nr(t,i,l,c,p,w,s,n,d,a){return window.go.metric.Client.QueryAll(t,i,l,c,p,w,s,n,d,a)}function rr(t,i,l){return window.go.metric.Client.Subscribe(t,i,l)}function ir(t){return window.go.metric.Client.Unsubscribe(t)}var jt={};j(jt,{ClosePortForwardSession:()=>Ft,FindPortForwardSessions:()=>Vt,GetPortForwardSession:()=>or,GetSupportedPortForwardTargets:()=>sr,ListAllPortForwardSessions:()=>ar,ListPortForwardSessions:()=>ur,StartResourcePortForwardingSession:()=>Dt});function Ft(t){return window.go.networker.Client.ClosePortForwardSession(t)}function Vt(t,i,l){return window.go.networker.Client.FindPortForwardSessions(t,i,l)}function or(t){return window.go.networker.Client.GetPortForwardSession(t)}function sr(t){return window.go.networker.Client.GetSupportedPortForwardTargets(t)}function ar(){return window.go.networker.Client.ListAllPortForwardSessions()}function ur(t,i){return window.go.networker.Client.ListPortForwardSessions(t,i)}function Dt(t,i,l){return window.go.networker.Client.StartResourcePortForwardingSession(t,i,l)}var Mt={};j(Mt,{AddTarget:()=>cr,GetPlugin:()=>lr,GetPluginDownloadStats:()=>pr,GetPluginMeta:()=>fr,GetPluginReadme:()=>gr,GetPluginReleaseHistory:()=>dr,GetPluginReviews:()=>yr,GetPluginVersions:()=>mr,Initialize:()=>hr,InstallFromPathPrompt:()=>wr,InstallInDevMode:()=>vr,InstallPluginFromPath:()=>br,InstallPluginVersion:()=>_r,ListAvailablePlugins:()=>Sr,ListPluginMetas:()=>xr,ListPlugins:()=>Er,LoadPlugin:()=>Rr,ReloadPlugin:()=>Or,RemoveTarget:()=>Cr,Run:()=>Tr,SearchPlugins:()=>Pr,SetDevServerChecker:()=>kr,SetDevServerManager:()=>Nr,Shutdown:()=>Ar,UninstallPlugin:()=>Fr,UnloadPlugin:()=>Vr});function cr(t){return window.go.plugin.pluginManager.AddTarget(t)}function lr(t){return window.go.plugin.pluginManager.GetPlugin(t)}function pr(t){return window.go.plugin.pluginManager.GetPluginDownloadStats(t)}function fr(t){return window.go.plugin.pluginManager.GetPluginMeta(t)}function gr(t){return window.go.plugin.pluginManager.GetPluginReadme(t)}function dr(t){return window.go.plugin.pluginManager.GetPluginReleaseHistory(t)}function yr(t,i){return window.go.plugin.pluginManager.GetPluginReviews(t,i)}function mr(t){return window.go.plugin.pluginManager.GetPluginVersions(t)}function hr(t){return window.go.plugin.pluginManager.Initialize(t)}function wr(){return window.go.plugin.pluginManager.InstallFromPathPrompt()}function vr(){return window.go.plugin.pluginManager.InstallInDevMode()}function br(t){return window.go.plugin.pluginManager.InstallPluginFromPath(t)}function _r(t,i){return window.go.plugin.pluginManager.InstallPluginVersion(t,i)}function Sr(){return window.go.plugin.pluginManager.ListAvailablePlugins()}function xr(){return window.go.plugin.pluginManager.ListPluginMetas()}function Er(){return window.go.plugin.pluginManager.ListPlugins()}function Rr(t,i){return window.go.plugin.pluginManager.LoadPlugin(t,i)}function Or(t){return window.go.plugin.pluginManager.ReloadPlugin(t)}function Cr(t){return window.go.plugin.pluginManager.RemoveTarget(t)}function Tr(t){return window.go.plugin.pluginManager.Run(t)}function Pr(t,i,l){return window.go.plugin.pluginManager.SearchPlugins(t,i,l)}function kr(t){return window.go.plugin.pluginManager.SetDevServerChecker(t)}function Nr(t){return window.go.plugin.pluginManager.SetDevServerManager(t)}function Ar(){return window.go.plugin.pluginManager.Shutdown()}function Fr(t){return window.go.plugin.pluginManager.UninstallPlugin(t)}function Vr(t){return window.go.plugin.pluginManager.UnloadPlugin(t)}var Lt={};j(Lt,{AddConnection:()=>Dr,Create:()=>jr,Delete:()=>Mr,EnsureInformerForResource:()=>Lr,ExecuteAction:()=>Gr,Find:()=>Ir,Get:()=>Jr,GetActions:()=>Ur,GetConnection:()=>Hr,GetConnectionNamespaces:()=>$r,GetDefaultLayout:()=>Yr,GetEditorSchemas:()=>zr,GetInformerState:()=>Wr,GetLayout:()=>Br,GetResourceDefinition:()=>qr,GetResourceGroup:()=>Kr,GetResourceGroups:()=>Qr,GetResourceType:()=>Xr,GetResourceTypes:()=>Zr,HasResourceType:()=>ti,List:()=>ei,ListAllConnections:()=>ni,ListConnections:()=>ri,ListPlugins:()=>ii,LoadConnections:()=>oi,RemoveConnection:()=>si,SetLayout:()=>ai,StartConnection:()=>ui,StartConnectionInformer:()=>ci,StopConnection:()=>li,StopConnectionInformer:()=>pi,StreamAction:()=>fi,Update:()=>gi,UpdateConnection:()=>di});function Dr(t,i){return window.go.resource.Client.AddConnection(t,i)}function jr(t,i,l,c){return window.go.resource.Client.Create(t,i,l,c)}function Mr(t,i,l,c){return window.go.resource.Client.Delete(t,i,l,c)}function Lr(t,i,l){return window.go.resource.Client.EnsureInformerForResource(t,i,l)}function Gr(t,i,l,c,p){return window.go.resource.Client.ExecuteAction(t,i,l,c,p)}function Ir(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 Ur(t,i,l){return window.go.resource.Client.GetActions(t,i,l)}function Hr(t,i){return window.go.resource.Client.GetConnection(t,i)}function $r(t,i){return window.go.resource.Client.GetConnectionNamespaces(t,i)}function Yr(t){return window.go.resource.Client.GetDefaultLayout(t)}function zr(t,i){return window.go.resource.Client.GetEditorSchemas(t,i)}function Wr(t,i){return window.go.resource.Client.GetInformerState(t,i)}function Br(t,i){return window.go.resource.Client.GetLayout(t,i)}function qr(t,i){return window.go.resource.Client.GetResourceDefinition(t,i)}function Kr(t,i){return window.go.resource.Client.GetResourceGroup(t,i)}function Qr(t,i){return window.go.resource.Client.GetResourceGroups(t,i)}function Xr(t,i){return window.go.resource.Client.GetResourceType(t,i)}function Zr(t,i){return window.go.resource.Client.GetResourceTypes(t,i)}function ti(t,i){return window.go.resource.Client.HasResourceType(t,i)}function ei(t,i,l,c){return window.go.resource.Client.List(t,i,l,c)}function ni(){return window.go.resource.Client.ListAllConnections()}function ri(t){return window.go.resource.Client.ListConnections(t)}function ii(){return window.go.resource.Client.ListPlugins()}function oi(t){return window.go.resource.Client.LoadConnections(t)}function si(t,i){return window.go.resource.Client.RemoveConnection(t,i)}function ai(t,i,l){return window.go.resource.Client.SetLayout(t,i,l)}function ui(t,i){return window.go.resource.Client.StartConnection(t,i)}function ci(t,i){return window.go.resource.Client.StartConnectionInformer(t,i)}function li(t,i){return window.go.resource.Client.StopConnection(t,i)}function pi(t,i){return window.go.resource.Client.StopConnectionInformer(t,i)}function fi(t,i,l,c,p){return window.go.resource.Client.StreamAction(t,i,l,c,p)}function gi(t,i,l,c){return window.go.resource.Client.Update(t,i,l,c)}function di(t,i){return window.go.resource.Client.UpdateConnection(t,i)}var D=require("@wailsio/runtime");var Gt={};j(Gt,{GetSetting:()=>yi,ListPlugins:()=>mi,ListSettings:()=>hi,PluginValues:()=>wi,SetSetting:()=>vi,SetSettings:()=>bi,Values:()=>_i});function yi(t,i){return window.go.settings.Client.GetSetting(t,i)}function mi(){return window.go.settings.Client.ListPlugins()}function hi(t){return window.go.settings.Client.ListSettings(t)}function wi(t){return window.go.settings.Client.PluginValues(t)}function vi(t,i,l){return window.go.settings.Client.SetSetting(t,i,l)}function bi(t,i){return window.go.settings.Client.SetSettings(t,i)}function _i(){return window.go.settings.Client.Values()}var It={};j(It,{GetBool:()=>Si,GetCategories:()=>xi,GetCategory:()=>Ei,GetCategoryValues:()=>Ri,GetFloat:()=>Oi,GetFloatSlice:()=>Ci,GetInt:()=>Ti,GetIntSlice:()=>Pi,GetSetting:()=>ki,GetSettingValue:()=>Ni,GetString:()=>Ai,GetStringSlice:()=>Fi,HasSetting:()=>Vi,Initialize:()=>Di,ListSettings:()=>ji,LoadSettings:()=>Mi,RegisterSetting:()=>Li,RegisterSettings:()=>Gi,ResetSetting:()=>Ii,SaveSettings:()=>Ji,SetSetting:()=>Ui,SetSettings:()=>Hi,Values:()=>$i});function Si(t){return window.go.settings.provider.GetBool(t)}function xi(){return window.go.settings.provider.GetCategories()}function Ei(t){return window.go.settings.provider.GetCategory(t)}function Ri(t){return window.go.settings.provider.GetCategoryValues(t)}function Oi(t){return window.go.settings.provider.GetFloat(t)}function Ci(t){return window.go.settings.provider.GetFloatSlice(t)}function Ti(t){return window.go.settings.provider.GetInt(t)}function Pi(t){return window.go.settings.provider.GetIntSlice(t)}function ki(t){return window.go.settings.provider.GetSetting(t)}function Ni(t){return window.go.settings.provider.GetSettingValue(t)}function Ai(t){return window.go.settings.provider.GetString(t)}function Fi(t){return window.go.settings.provider.GetStringSlice(t)}function Vi(t){return window.go.settings.provider.HasSetting(t)}function Di(t,i){return window.go.settings.provider.Initialize(t,i)}function ji(){return window.go.settings.provider.ListSettings()}function Mi(){return window.go.settings.provider.LoadSettings()}function Li(t,i){return window.go.settings.provider.RegisterSetting(t,i)}function Gi(t,i){return window.go.settings.provider.RegisterSettings(t,i)}function Ii(t){return window.go.settings.provider.ResetSetting(t)}function Ji(){return window.go.settings.provider.SaveSettings()}function Ui(t,i){return window.go.settings.provider.SetSetting(t,i)}function Hi(t){return window.go.settings.provider.SetSettings(t)}function $i(){return window.go.settings.provider.Values()}var Jt={};j(Jt,{GetPluginComponents:()=>Yi,GetResourceAreaComponent:()=>zi,GetResourceComponents:()=>Wi});function Yi(t){return window.go.ui.Client.GetPluginComponents(t)}function zi(t){return window.go.ui.Client.GetResourceAreaComponent(t)}function Wi(t){return window.go.ui.Client.GetResourceComponents(t)}var Ut={};j(Ut,{DetectLanguage:()=>Bi});function Bi(t){return window.go.utils.Client.DetectLanguage(t)}var Ue=be(Qt()),He=Ue.default.createContext(void 0);He.displayName="PortForwardContext";var at=be(Qt());var $e=require("@wailsio/runtime");function Ye({pluginID:t,connectionID:i,resourceID:l}){let[c,p]=at.default.useState([]);at.default.useEffect(()=>{!t||!i||!l||Vt(t,i,st.FindPortForwardSessionRequest.createFrom({resource_id:l,connection_id:i})).then(n=>{p(n)}).catch(n=>{n instanceof Error&&console.log(n)})},[t,i]);let w=at.default.useCallback(async n=>{let d=st.PortForwardSessionOptions.createFrom({local_port:n.toPort||0,remote_port:n.fromPort,protocol:n.protocol||"TCP",connection_type:"RESOURCE",connection:{resource_data:n.resource,connection_id:i,plugin_id:t,resource_id:n.resourceId,resource_key:n.resourceKey},labels:n.labels??{},params:n.parameters??{}});try{let a=await Dt(t,i,d);return p([...c,a]),n.openInBrowser&&$e.Browser.OpenURL(`http://localhost:${a.remote_port}`),a}catch(a){throw a instanceof Error&&console.log(a),a}},[t,i,c]),s=at.default.useCallback(async n=>{try{await Ft(n),p(c.filter(d=>d.id!==n))}catch(d){throw d instanceof Error&&console.log(d),d}},[c]);return{sessions:c,forward:w,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: