@firmer/mesh 0.0.2 → 0.0.3
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/macro/ark.d.ts +4 -4
- package/dist/mesh.js +549 -546
- package/dist/mesh.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/mesh.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(d,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(d=typeof globalThis<"u"?globalThis:d||self,B(d.mesh={}))})(this,function(d){"use strict";var hy=Object.defineProperty;var gy=(d,B,Ye)=>B in d?hy(d,B,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):d[B]=Ye;var c=(d,B,Ye)=>gy(d,typeof B!="symbol"?B+"":B,Ye);var Jd,kn,xn,
|
|
1
|
+
(function(d,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(d=typeof globalThis<"u"?globalThis:d||self,B(d.mesh={}))})(this,function(d){"use strict";var hy=Object.defineProperty;var gy=(d,B,Ye)=>B in d?hy(d,B,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):d[B]=Ye;var c=(d,B,Ye)=>gy(d,typeof B!="symbol"?B+"":B,Ye);var Jd,kn,xn,Nr;class B extends Map{computeIfy(e,t){let n=this.get(e);return n||(n=t(e),this.set(e,n)),n}groupBy(e){const t=new B;return this.forEach((n,o)=>t.computeIfy(e(o,n),i=>[]).push(n)),t}map(e){const t=new Ye;return this.forEach((n,o)=>t.push(e(o,n))),t}groupKV(e,t){const n=new B;return this.forEach((o,i)=>n.set(e(i),t(i,o))),n}}class Ye extends Array{groupBy(e){const t=new B;return this.forEach(n=>t.computeIfy(e(n),o=>new Ye).push(n)),t}groupKV(e,t){const n=new B;this.forEach(i=>n.computeIfy(e(i),s=>[]).push(i));const o=new B;return n.forEach((i,s)=>o.set(s,t(s,i))),o}}const Yd={},Qn=()=>typeof globalThis=="object"?globalThis:typeof window=="object"?window:typeof global=="object"?global:Yd,_e=class _e{constructor(e,t){c(this,"name");c(this,"value");this.name=e,this.value=t}cache(){return Qn().meshCache||(Qn().meshCache=new Map),Qn().meshCache}get(){return this.cache().has(this.name)||this.cache().set(this.name,this.value()),this.cache().get(this.name)}set(e){this.cache().set(this.name,e)}};c(_e,"Name",new _e("MESH_NAME",()=>"")),c(_e,"Direct",new _e("MESH_DIRECT",()=>"")),c(_e,"Subset",new _e("MESH_SUBSET",()=>"")),c(_e,"Mode",new _e("MESH_MODE",()=>0)),c(_e,"Proxy",new _e("MESH_PROXY",()=>"")),c(_e,"Address",new _e("MESH_ADDRESS",()=>"")),c(_e,"Runtime",new _e("MESH_RUNTIME",()=>"")),c(_e,"MDC",new _e("MESH_MDC",()=>"")),c(_e,"SPA",new _e("MESH_SPA",()=>"")),c(_e,"TCP",new _e("MESH_TCP",()=>"")),c(_e,"Home",new _e("MESH_HOME",()=>"")),c(_e,"DSN",new _e("MESH_DSN",()=>""));let Zn=_e;const we=class we{constructor(e){c(this,"v",0);this.v=e}matches(e){return(this.v&e)==this.v}enable(){return this.matches(Zn.Mode.get())}value(){return this.v}};c(we,"Disable",new we(1)),c(we,"Failfast",new we(2)),c(we,"Nolog",new we(4)),c(we,"JsonLogFormat",new we(8)),c(we,"PHeader",new we(16)),c(we,"Metrics",new we(32)),c(we,"Debug",new we(64)),c(we,"PermitCirculate",new we(128)),c(we,"NoStdColor",new we(256)),c(we,"Isolate",new we(512)),c(we,"Mock",new we(1024));let _i=we;function Qd(r){Zn.Mode.set(Zn.Mode.get()|r)}class Sn{constructor(e){c(this,"raw");c(this,"parameters");c(this,"prototype");c(this,"length");c(this,"arguments");c(this,"caller",()=>{});c(this,"name");c(this,Jd,{});c(this,"apply",(e,t)=>this.raw.apply(e,...t));c(this,"call",(e,...t)=>this.raw.call(e,...t));c(this,"bind",(e,...t)=>this.raw.bind(e,...t));[this.raw,this.parameters]=this.parse(e),this.prototype=this.raw.prototype,this.length=this.raw.length,this.name=this.raw.name,this[Symbol.metadata]=this.raw[Symbol.metadata]||{}}parse(e){return e?Array.isArray(e)?e.length<2?[e[0],[]]:[e[0],e.slice(1).map(t=>Array.isArray(t)?new Sn(t):t)]:[e,[]]:[Object,[]]}toString(){return this.raw.toString()}[(Jd=Symbol.metadata,Symbol.hasInstance)](e){return this.raw[Symbol.hasInstance](e)}}const Fn=class Fn{constructor(e,t,n,o,i,s){c(this,"macro");c(this,"name");c(this,"kind");c(this,"traits");c(this,"metadata");c(this,"modifier");this.macro=e,this.name=t,this.kind=n,this.traits=o,this.metadata=i,this.modifier=s}isfunction(){return(this.modifier&Fn.FUNCTION)==Fn.FUNCTION}isabstract(){return(this.modifier&Fn.ABSTRACT)==Fn.ABSTRACT}};c(Fn,"FUNCTION",1),c(Fn,"ABSTRACT",2);let Cr=Fn;class Zd{constructor(){c(this,"tinder",new B);c(this,"annotations",new B)}ak(e,t,n){return`${e.name}-${t}-${n.name}`}annotate(e,t,n,o){this.annotations.computeIfy(n,i=>new B).computeIfy(t,i=>new B).set(e,o)}annotated(e){if(this.annotations.get(e))return!0;const n=this.superclass(e,o=>!0);for(let o of n)if(this.annotations.get(o))return!0;return!1}metadata(e,t,n){var s,a,P,v;const o=(a=(s=this.annotations.get(t))==null?void 0:s.get(n))==null?void 0:a.get(e);if(o)return o;const i=this.superclass(t,_=>!0);for(let _ of i){const E=(v=(P=this.annotations.get(_))==null?void 0:P.get(n))==null?void 0:v.get(e);if(E)return E}}superclass(e,t){const n=[];let o=e.prototype;for(;o&&o.constructor;)e!=o.constructor&&t(o)&&n.push(o.constructor),o=Object.getPrototypeOf(o);return n}register(e,t,n,o){var P;const i=this.superclass(n,v=>this.metadata(e,v.constructor,v.constructor)),s=n.constructor?0:Cr.FUNCTION,a=i.length<1?Cr.ABSTRACT:0;i.length<1&&i.push(n);for(let v of i){const _=this.ak(e,t,v);(P=this.tinder.get(_))==null||P.forEach(N=>{N.kind==n&&console.log(`Object of ${v.name} named ${t} has been register already.`)});const E=new Cr(e,t,n,i,o,s|a),$=this.tinder.computeIfy(_,N=>new Ye);$.push(E),$.sort((N,j)=>N.isabstract()||N.isfunction()?1:j.isabstract()||N.isfunction()?-1:N.metadata.priority&&j.metadata.priority?N.metadata.priority-j.metadata.priority:0)}}unregister(e,t){const n=[];this.tinder.forEach((o,i)=>o.forEach(s=>{s.macro==e&&s.kind==t&&n.push(i)}));for(let o of n)this.tinder.delete(o)}export(e){const t=new B;for(let n of this.tinder.values())for(let o of n){if(o.isfunction()||o.macro!=e)continue;const i=o.kind;for(let s of o.traits)t.computeIfy(s,a=>new B).computeIfy(o.name,a=>new Ye).push(i)}return t}providers(e,t){return this.export(e).computeIfy(t,n=>new B).map((n,o)=>o).flatMap(n=>n).filter(n=>n!=t)}provider(e,t,n){const o=this.ak(e,n,t),i=new Ye;return this.tinder.computeIfy(o,s=>new Ye).forEach(s=>{!s.isfunction()&&!s.isabstract()&&i.push(s.kind)}),i}inspect(e){const t=new B;return Object.entries(Object.getOwnPropertyDescriptors(e.prototype)).filter(n=>n[0]!=="constructor"&&typeof n[1].value=="function").forEach(n=>{t.set(n[0],n[1].value)}),t}}const Oe=(()=>{const r=Qn();return r.Ark??(r.Ark=new Zd),r.Ark})();var Jo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ko={};/*! *****************************************************************************
|
|
2
2
|
Copyright (C) Microsoft. All rights reserved.
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
4
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var Xo;function Qd(){if(Xo)return Ko;Xo=1;var r;return function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof Jo=="object"?Jo:typeof self=="object"?self:typeof this=="object"?this:P(),o=i(e);typeof n.Reflect<"u"&&(o=i(n.Reflect,o)),t(o,n),typeof n.Reflect>"u"&&(n.Reflect=e);function i(v,_){return function(E,$){Object.defineProperty(v,E,{configurable:!0,writable:!0,value:$}),_&&_(E,$)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function P(){return s()||a()}})(function(t,n){var o=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",P=typeof Object.create=="function",v={__proto__:[]}instanceof Array,_=!P&&!v,E={create:P?function(){return b(Object.create(null))}:v?function(){return b({__proto__:null})}:function(){return b({})},has:_?function(y,h){return o.call(y,h)}:function(y,h){return h in y},get:_?function(y,h){return o.call(y,h)?y[h]:void 0}:function(y,h){return y[h]}},$=Object.getPrototypeOf(Function),N=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:u(),j=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:f(),I=typeof WeakMap=="function"?WeakMap:m(),A=i?Symbol.for("@reflect-metadata:registry"):void 0,q=Wo(),z=sn(q);function Y(y,h,S,T){if(D(S)){if(!mi(y))throw new TypeError;if(!Ln(h))throw new TypeError;return zo(y,h)}else{if(!mi(y))throw new TypeError;if(!Ne(h))throw new TypeError;if(!Ne(T)&&!D(T)&&!On(T))throw new TypeError;return On(T)&&(T=void 0),S=Bt(S),Xi(y,h,S,T)}}t("decorate",Y);function ke(y,h){function S(T,M){if(!Ne(T))throw new TypeError;if(!D(M)&&!Go(M))throw new TypeError;Zi(y,h,T,M)}return S}t("metadata",ke);function Z(y,h,S,T){if(!Ne(S))throw new TypeError;return D(T)||(T=Bt(T)),Zi(y,h,S,T)}t("defineMetadata",Z);function St(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),li(y,h,S)}t("hasMetadata",St);function xt(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),yi(y,h,S)}t("hasOwnMetadata",xt);function Bn(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),Yi(y,h,S)}t("getMetadata",Bn);function Nr(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),Qi(y,h,S)}t("getOwnMetadata",Nr);function Lo(y,h){if(!Ne(y))throw new TypeError;return D(h)||(h=Bt(h)),eo(y,h)}t("getMetadataKeys",Lo);function Ho(y,h){if(!Ne(y))throw new TypeError;return D(h)||(h=Bt(h)),Ue(y,h)}t("getOwnMetadataKeys",Ho);function qo(y,h,S){if(!Ne(h))throw new TypeError;if(D(S)||(S=Bt(S)),!Ne(h))throw new TypeError;D(S)||(S=Bt(S));var T=l(h,S,!1);return D(T)?!1:T.OrdinaryDeleteMetadata(y,h,S)}t("deleteMetadata",qo);function zo(y,h){for(var S=y.length-1;S>=0;--S){var T=y[S],M=T(h);if(!D(M)&&!On(M)){if(!Ln(M))throw new TypeError;h=M}}return h}function Xi(y,h,S,T){for(var M=y.length-1;M>=0;--M){var G=y[M],H=G(h,S,T);if(!D(H)&&!On(H)){if(!Ne(H))throw new TypeError;T=H}}return T}function li(y,h,S){var T=yi(y,h,S);if(T)return!0;var M=bt(h);return On(M)?!1:li(y,M,S)}function yi(y,h,S){var T=l(h,S,!1);return D(T)?!1:Ar(T.OrdinaryHasOwnMetadata(y,h,S))}function Yi(y,h,S){var T=yi(y,h,S);if(T)return Qi(y,h,S);var M=bt(h);if(!On(M))return Yi(y,M,S)}function Qi(y,h,S){var T=l(h,S,!1);if(!D(T))return T.OrdinaryGetOwnMetadata(y,h,S)}function Zi(y,h,S,T){var M=l(S,T,!0);M.OrdinaryDefineOwnMetadata(y,h,S,T)}function eo(y,h){var S=Ue(y,h),T=bt(y);if(T===null)return S;var M=eo(T,h);if(M.length<=0)return S;if(S.length<=0)return M;for(var G=new j,H=[],ee=0,C=S;ee<C.length;ee++){var U=C[ee],F=G.has(U);F||(G.add(U),H.push(U))}for(var k=0,te=M;k<te.length;k++){var U=te[k],F=G.has(U);F||(G.add(U),H.push(U))}return H}function Ue(y,h){var S=l(y,h,!1);return S?S.OrdinaryOwnMetadataKeys(y,h):[]}function qe(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function D(y){return y===void 0}function On(y){return y===null}function to(y){return typeof y=="symbol"}function Ne(y){return typeof y=="object"?y!==null:typeof y=="function"}function no(y,h){switch(qe(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var S="string",T=Ir(y,s);if(T!==void 0){var M=T.call(y,S);if(Ne(M))throw new TypeError;return M}return Dn(y)}function Dn(y,h){var S,T,M;{var G=y.toString;if(qt(G)){var T=G.call(y);if(!Ne(T))return T}var S=y.valueOf;if(qt(S)){var T=S.call(y);if(!Ne(T))return T}}throw new TypeError}function Ar(y){return!!y}function ro(y){return""+y}function Bt(y){var h=no(y);return to(h)?h:ro(h)}function mi(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function qt(y){return typeof y=="function"}function Ln(y){return typeof y=="function"}function Go(y){switch(qe(y)){case 3:return!0;case 4:return!0;default:return!1}}function hi(y,h){return y===h||y!==y&&h!==h}function Ir(y,h){var S=y[h];if(S!=null){if(!qt(S))throw new TypeError;return S}}function io(y){var h=Ir(y,a);if(!qt(h))throw new TypeError;var S=h.call(y);if(!Ne(S))throw new TypeError;return S}function oo(y){return y.value}function gi(y){var h=y.next();return h.done?!1:h}function Yn(y){var h=y.return;h&&h.call(y)}function bt(y){var h=Object.getPrototypeOf(y);if(typeof y!="function"||y===$||h!==$)return h;var S=y.prototype,T=S&&Object.getPrototypeOf(S);if(T==null||T===Object.prototype)return h;var M=T.constructor;return typeof M!="function"||M===y?h:M}function bi(){var y;!D(A)&&typeof n.Reflect<"u"&&!(A in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=Vo(n.Reflect));var h,S,T,M=new I,G={registerProvider:H,getProvider:C,setProvider:F};return G;function H(k){if(!Object.isExtensible(G))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===k:break;case D(h):h=k;break;case h===k:break;case D(S):S=k;break;case S===k:break;default:T===void 0&&(T=new j),T.add(k);break}}function ee(k,te){if(!D(h)){if(h.isProviderFor(k,te))return h;if(!D(S)){if(S.isProviderFor(k,te))return h;if(!D(T))for(var Se=io(T);;){var $e=gi(Se);if(!$e)return;var zt=oo($e);if(zt.isProviderFor(k,te))return Yn(Se),zt}}}if(!D(y)&&y.isProviderFor(k,te))return y}function C(k,te){var Se=M.get(k),$e;return D(Se)||($e=Se.get(te)),D($e)&&($e=ee(k,te),D($e)||(D(Se)&&(Se=new N,M.set(k,Se)),Se.set(te,$e))),$e}function U(k){if(D(k))throw new TypeError;return h===k||S===k||!D(T)&&T.has(k)}function F(k,te,Se){if(!U(Se))throw new Error("Metadata provider not registered.");var $e=C(k,te);if($e!==Se){if(!D($e))return!1;var zt=M.get(k);D(zt)&&(zt=new N,M.set(k,zt)),zt.set(te,Se)}return!0}}function Wo(){var y;return!D(A)&&Ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[A]),D(y)&&(y=bi()),!D(A)&&Ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,A,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function sn(y){var h=new I,S={isProviderFor:function(U,F){var k=h.get(U);return D(k)?!1:k.has(F)},OrdinaryDefineOwnMetadata:H,OrdinaryHasOwnMetadata:M,OrdinaryGetOwnMetadata:G,OrdinaryOwnMetadataKeys:ee,OrdinaryDeleteMetadata:C};return q.registerProvider(S),S;function T(U,F,k){var te=h.get(U),Se=!1;if(D(te)){if(!k)return;te=new N,h.set(U,te),Se=!0}var $e=te.get(F);if(D($e)){if(!k)return;if($e=new N,te.set(F,$e),!y.setProvider(U,F,S))throw te.delete(F),Se&&h.delete(U),new Error("Wrong provider for target.")}return $e}function M(U,F,k){var te=T(F,k,!1);return D(te)?!1:Ar(te.has(U))}function G(U,F,k){var te=T(F,k,!1);if(!D(te))return te.get(U)}function H(U,F,k,te){var Se=T(k,te,!0);Se.set(U,F)}function ee(U,F){var k=[],te=T(U,F,!1);if(D(te))return k;for(var Se=te.keys(),$e=io(Se),zt=0;;){var Kd=gi($e);if(!Kd)return k.length=zt,k;var yy=oo(Kd);try{k[zt]=yy}catch(my){try{Yn($e)}finally{throw my}}zt++}}function C(U,F,k){var te=T(F,k,!1);if(D(te)||!te.delete(U))return!1;if(te.size===0){var Se=h.get(F);D(Se)||(Se.delete(k),Se.size===0&&h.delete(Se))}return!0}}function Vo(y){var h=y.defineMetadata,S=y.hasOwnMetadata,T=y.getOwnMetadata,M=y.getOwnMetadataKeys,G=y.deleteMetadata,H=new I,ee={isProviderFor:function(C,U){var F=H.get(C);return!D(F)&&F.has(U)?!0:M(C,U).length?(D(F)&&(F=new j,H.set(C,F)),F.add(U),!0):!1},OrdinaryDefineOwnMetadata:h,OrdinaryHasOwnMetadata:S,OrdinaryGetOwnMetadata:T,OrdinaryOwnMetadataKeys:M,OrdinaryDeleteMetadata:G};return ee}function l(y,h,S){var T=q.getProvider(y,h);if(!D(T))return T;if(S){if(q.setProvider(y,h,z))return z;throw new Error("Illegal state.")}}function u(){var y={},h=[],S=function(){function ee(C,U,F){this._index=0,this._keys=C,this._values=U,this._selector=F}return ee.prototype["@@iterator"]=function(){return this},ee.prototype[a]=function(){return this},ee.prototype.next=function(){var C=this._index;if(C>=0&&C<this._keys.length){var U=this._selector(this._keys[C],this._values[C]);return C+1>=this._keys.length?(this._index=-1,this._keys=h,this._values=h):this._index++,{value:U,done:!1}}return{value:void 0,done:!0}},ee.prototype.throw=function(C){throw this._index>=0&&(this._index=-1,this._keys=h,this._values=h),C},ee.prototype.return=function(C){return this._index>=0&&(this._index=-1,this._keys=h,this._values=h),{value:C,done:!0}},ee}(),T=function(){function ee(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(ee.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ee.prototype.has=function(C){return this._find(C,!1)>=0},ee.prototype.get=function(C){var U=this._find(C,!1);return U>=0?this._values[U]:void 0},ee.prototype.set=function(C,U){var F=this._find(C,!0);return this._values[F]=U,this},ee.prototype.delete=function(C){var U=this._find(C,!1);if(U>=0){for(var F=this._keys.length,k=U+1;k<F;k++)this._keys[k-1]=this._keys[k],this._values[k-1]=this._values[k];return this._keys.length--,this._values.length--,hi(C,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},ee.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},ee.prototype.keys=function(){return new S(this._keys,this._values,M)},ee.prototype.values=function(){return new S(this._keys,this._values,G)},ee.prototype.entries=function(){return new S(this._keys,this._values,H)},ee.prototype["@@iterator"]=function(){return this.entries()},ee.prototype[a]=function(){return this.entries()},ee.prototype._find=function(C,U){if(!hi(this._cacheKey,C)){this._cacheIndex=-1;for(var F=0;F<this._keys.length;F++)if(hi(this._keys[F],C)){this._cacheIndex=F;break}}return this._cacheIndex<0&&U&&(this._cacheIndex=this._keys.length,this._keys.push(C),this._values.push(void 0)),this._cacheIndex},ee}();return T;function M(ee,C){return ee}function G(ee,C){return C}function H(ee,C){return[ee,C]}}function f(){var y=function(){function h(){this._map=new N}return Object.defineProperty(h.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),h.prototype.has=function(S){return this._map.has(S)},h.prototype.add=function(S){return this._map.set(S,S),this},h.prototype.delete=function(S){return this._map.delete(S)},h.prototype.clear=function(){this._map.clear()},h.prototype.keys=function(){return this._map.keys()},h.prototype.values=function(){return this._map.keys()},h.prototype.entries=function(){return this._map.entries()},h.prototype["@@iterator"]=function(){return this.keys()},h.prototype[a]=function(){return this.keys()},h}();return y}function m(){var y=16,h=E.create(),S=T();return function(){function C(){this._key=T()}return C.prototype.has=function(U){var F=M(U,!1);return F!==void 0?E.has(F,this._key):!1},C.prototype.get=function(U){var F=M(U,!1);return F!==void 0?E.get(F,this._key):void 0},C.prototype.set=function(U,F){var k=M(U,!0);return k[this._key]=F,this},C.prototype.delete=function(U){var F=M(U,!1);return F!==void 0?delete F[this._key]:!1},C.prototype.clear=function(){this._key=T()},C}();function T(){var C;do C="@@WeakMap@@"+ee();while(E.has(h,C));return h[C]=!0,C}function M(C,U){if(!o.call(C,S)){if(!U)return;Object.defineProperty(C,S,{value:E.create()})}return C[S]}function G(C,U){for(var F=0;F<U;++F)C[F]=Math.random()*255|0;return C}function H(C){if(typeof Uint8Array=="function"){var U=new Uint8Array(C);return typeof crypto<"u"?crypto.getRandomValues(U):typeof msCrypto<"u"?msCrypto.getRandomValues(U):G(U,C),U}return G(new Array(C),C)}function ee(){var C=H(y);C[6]=C[6]&79|64,C[8]=C[8]&191|128;for(var U="",F=0;F<y;++F){var k=C[F];(F===4||F===6||F===8)&&(U+="-"),k<16&&(U+="0"),U+=k.toString(16).toLowerCase()}return U}}function b(y){return y.__=void 0,delete y.__,y}})}(r||(r={})),Ko}Qd();class _i{constructor(e,t,n,o,i,s,a,P){c(this,"topic");c(this,"code");c(this,"version");c(this,"proto");c(this,"codec");c(this,"flags");c(this,"timeout");c(this,"meshable");c(this,"traits");this.topic=e,this.code=t,this.version=n,this.proto=o,this.codec=i,this.flags=s,this.timeout=a,this.meshable=P}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Oe.annotate(_i,e,e,this),Oe.register(_i,`${this.topic}.${this.code}`,e,this)}}function Zd(r="",e="",t="1.0.0",n="http2",o="protobuf",i=0,s=3e3,a=!0){const P=new _i(r,e,t,n,o,i,s,a);return P.decorate.bind(P)}const ep={},Cr=()=>typeof globalThis=="object"?globalThis:typeof window=="object"?window:typeof global=="object"?global:ep,_e=class _e{constructor(e,t){c(this,"name");c(this,"value");this.name=e,this.value=t}cache(){return Cr().meshCache||(Cr().meshCache=new Map),Cr().meshCache}get(){return this.cache().has(this.name)||this.cache().set(this.name,this.value()),this.cache().get(this.name)}set(e){this.cache().set(this.name,e)}};c(_e,"Name",new _e("MESH_NAME",()=>"")),c(_e,"Direct",new _e("MESH_DIRECT",()=>"")),c(_e,"Subset",new _e("MESH_SUBSET",()=>"")),c(_e,"Mode",new _e("MESH_MODE",()=>0)),c(_e,"Proxy",new _e("MESH_PROXY",()=>"")),c(_e,"Address",new _e("MESH_ADDRESS",()=>"")),c(_e,"Runtime",new _e("MESH_RUNTIME",()=>"")),c(_e,"MDC",new _e("MESH_MDC",()=>"")),c(_e,"SPA",new _e("MESH_SPA",()=>"")),c(_e,"TCP",new _e("MESH_TCP",()=>"")),c(_e,"Home",new _e("MESH_HOME",()=>"")),c(_e,"DSN",new _e("MESH_DSN",()=>""));let Qn=_e;const we=class we{constructor(e){c(this,"v",0);this.v=e}matches(e){return(this.v&e)==this.v}enable(){return this.matches(Qn.Mode.get())}value(){return this.v}};c(we,"Disable",new we(1)),c(we,"Failfast",new we(2)),c(we,"Nolog",new we(4)),c(we,"JsonLogFormat",new we(8)),c(we,"PHeader",new we(16)),c(we,"Metrics",new we(32)),c(we,"Debug",new we(64)),c(we,"PermitCirculate",new we(128)),c(we,"NoStdColor",new we(256)),c(we,"Isolate",new we(512)),c(we,"Mock",new we(1024));let Oi=we;function tp(r){Qn.Mode.set(Qn.Mode.get()|r)}class Rn{constructor(e,t,n,o){c(this,"value");c(this,"name");c(this,"transparent");c(this,"kind");c(this,"clas");c(this,"index",1e3);this.value=e,this.name=t,this.transparent=n,this.kind=o,this.clas=Object}decorate(e,t,n){this.kind==Object?this.kind=Reflect.getMetadata("design:type",e,t):this.kind=Array.isArray(this.kind)?new Sn(this.kind):this.kind;const o=Reflect.getMetadata("design:paramtypes",e,t);o&&Array.isArray(o)&&n!=null&&o.length>n&&(this.clas=o[n]),this.kind&&(this.clas==Array||this.clas==Map)&&(this.clas=this.kind),this.index=n||1e3,n!=null?Oe.annotate(Rn,`${t}:${n}`,e.constructor,this):Oe.annotate(Rn,t,e.constructor,this)}}function p(r=-1,e="",t=Object,n=!1){const o=new Rn(r,e,n,t);return o.decorate.bind(o)}class Dt{constructor(e,t,n,o){c(this,"name");c(this,"pattern");c(this,"priority");c(this,"prototype");this.name=e,this.pattern=t,this.priority=n,this.prototype=o}decorate(e){Oe.annotate(Dt,e,e,this),Oe.register(Dt,this.name,e,this)}}function L(r="",e="",t=0,n=!1){const o=new Dt(r,e,t,n);return o.decorate.bind(o)}class Ae{constructor(e,t,n,o,i,s,a,P,v,_,E,$,N,j){c(this,"name");c(this,"version");c(this,"proto");c(this,"codec");c(this,"flags");c(this,"timeout");c(this,"retries");c(this,"mdc");c(this,"zone");c(this,"cluster");c(this,"cell");c(this,"group");c(this,"address");c(this,"kind");c(this,"retype");c(this,"attributes",new Map);this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=s,this.retries=a,this.mdc=P,this.zone=v,this.cluster=_,this.cell=E,this.group=$,this.address=N,this.retype=j}decorate(e,t,n){if(typeof t=="string"&&this.attributes.set("name",t),!n){this.kind=Reflect.getMetadata("design:type",e,t),Oe.annotate(Ae,t,e,this);return}return this.kind=Reflect.getMetadata("design:returntype",e,t),Oe.annotate(Ae,n.value,e.constructor,this),n}}function R(r="",e=Object,t=1e4,n="1.0.0",o="grpc",i="json",s=0,a=3,P="",v="",_="",E="",$="",N=""){const j=new Ae(r,n,o,i,s,t,a,P,v,_,E,$,N,e);return j.decorate.bind(j)}var np=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const rp=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,ip=/([^\s,]+)/g;d.MethodProxy=class{},d.MethodProxy=np([L("mesh")],d.MethodProxy);class Yo{constructor(e,t,n){c(this,"index");c(this,"name");c(this,"kind");this.index=e,this.name=t,this.kind=n}}class Qo{constructor(e,t,n){c(this,"kind");c(this,"name");c(this,"method");this.kind=e,this.name=t,this.method=n}getAnnotation(e){return Oe.metadata(e,this.kind,this.method)}getName(){var t;const e=Oe.metadata(Ae,this.kind,this.method);return((t=e==null?void 0:e.attributes)==null?void 0:t.get("name"))||this.name}getParameters(){const e=this.method.toString().replace(rp,""),t=e.slice(e.indexOf("(")+1,e.indexOf(")")).match(ip)||[],n=[];for(let o=0;o<t.length;o++){const i=Oe.metadata(Rn,this.kind,`${this.getName()}:${o}`);n.push(new Yo(o,(i==null?void 0:i.name)||t[o],(i==null?void 0:i.clas)||Object))}return n}getType(){return this.kind}getReturnType(){var e;return new Sn((e=Oe.metadata(Ae,this.kind,this.method))==null?void 0:e.retype)}getExecutable(){return this.method}getSymbol(){return this.name}invoke(e,t){return this.method(...t)}}class op{constructor(e,t,n){c(this,"inspector");c(this,"h");c(this,"proxy");this.inspector=e,this.h=t,this.proxy=n}apply(e,t,n){return this.h.invoke(this.proxy,this.inspector,n)}}class sp{constructor(e,t,n){c(this,"inspectors",new B);c(this,"executables",new B);for(let o of t)this.executables.set(o.getSymbol(),new Proxy(o.getExecutable(),new op(o,n,this))),this.inspectors.set(o.getSymbol(),o)}getMethods(){return this.inspectors.map((e,t)=>t)}get(e,t,n){return this.executables.get(t)}}class Ur{static newProxyInstance(e,t){var n,o,i;return this.proxies.get(e)||this.proxies.set(e,new B),(n=this.proxies.get(e))!=null&&n.get(t)||(o=this.proxies.get(e))==null||o.set(t,new Proxy(e,new sp(e,this.getMethods(e),t))),(i=this.proxies.get(e))==null?void 0:i.get(t)}static getMethods(e){return this.inspectors.computeIfy(e,t=>Oe.inspect(t).map((n,o)=>new Qo(t,n,o)))}}c(Ur,"proxies",new B),c(Ur,"inspectors",new B);const Wi=class Wi{constructor(e,t){c(this,"name");c(this,"kind");c(this,"prototype");c(this,"priority");this.name=e,this.kind=t,this.prototype=!1,this.priority=1}getIfAbsent(){return this.prototype?this.create():Wi.value.computeIfy(this.kind,e=>this.create())}create(){return new this.kind}};c(Wi,"value",new B);let so=Wi,cp=class{constructor(e,t){c(this,"name","");c(this,"providers",[]);this.name=e,this.providers=t.map(n=>new so(e,n)).sort((n,o)=>n.priority-o.priority)}getIfAbsent(){if(this.providers.length<1)throw new Error(`No such provider named ${this.name}`);return this.providers[0].getIfAbsent()}};const Vi=class Vi{constructor(e){c(this,"providers",new B);c(this,"spi");c(this,"fist","");var t;this.spi=e,this.fist=((t=Oe.metadata(Dt,e,e))==null?void 0:t.name)||""}static load(e){return this.loaders.computeIfy(e,t=>new Vi(e))}defaultName(){return this.fist}getDefault(){return this.get(this.fist)}get(e){const t=this.getInstances().get(e);if(!t)throw new Error(`SPI ${this.spi.name} named ${e} not exist.`);return t.getIfAbsent()}want(e){const t=this.getInstances().get(e);return t?t.getIfAbsent():null}list(){return this.getInstances().map((e,t)=>t.getIfAbsent())}getInstances(){return this.providers.computeIfy("$",e=>Oe.providers(Dt,this.spi).groupBy(t=>{const n=Oe.metadata(Dt,t,t);return n&&n.name||""}).groupKV(t=>t,(t,n)=>new cp(t,n)))}};c(Vi,"loaders",new B);let Le=Vi;class $r{constructor(e,t,n,o,i,s){c(this,"name");c(this,"version");c(this,"proto");c(this,"codec");c(this,"flags");c(this,"timeout");c(this,"traits");this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=s}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Oe.annotate($r,e,e,this),Oe.register($r,this.name,e,this)}}function ap(r="",e="",t="grpc",n="json",o=0,i=1e4){const s=new $r(r,e,t,n,o,i);return s.decorate.bind(s)}function Zo(r){return"getCode"in r&&"getMessage"in r}class Q extends Error{constructor(t,n){super(n);c(this,"code");c(this,"message");this.code=t,this.message=n}getCode(){return this.code}getMessage(){return this.message}}class g{}c(g,"SUCCESS",new Q("E0000000000","请求成功")),c(g,"NOT_FOUND",new Q("E0000000404","请求资源不存在")),c(g,"SYSTEM_ERROR",new Q("E0000000500","系统异常")),c(g,"SERVICE_UNAVAILABLE",new Q("E0000000503","循环请求服务不可达")),c(g,"VALIDATE",new Q("E0000000400","请求非法")),c(g,"UNAUTHORIZED",new Q("E0000000403","请求资源未被授权")),c(g,"UNKNOWN",new Q("E0000000520","未知异常")),c(g,"COMPATIBLE",new Q("E0000000600","系统不兼容")),c(g,"TIMEOUT",new Q("E0000000601","请求超时")),c(g,"NO_PROVIDER",new Q("E0000000602","无服务实例")),c(g,"CRYPT_ERROR",new Q("E0000000603","数字证书校验异常")),c(g,"TOKEN_EXPIRE",new Q("E0000000604","节点授权码已过期")),c(g,"NET_EXPIRE",new Q("E0000000605","节点组网时间已过期")),c(g,"NET_DISABLE",new Q("E0000000606","对方节点已禁用网络")),c(g,"NET_UNAVAILABLE",new Q("E0000000607","网络不通")),c(g,"LICENSE_FORMAT_ERROR",new Q("E0000000608","License非法")),c(g,"LICENSE_EXPIRED",new Q("E0000000609","License已过期")),c(g,"MAX_REPLICAS_LIMIT",new Q("E0000000610","集群副本已达许可上限")),c(g,"MAX_COOP_LIMIT",new Q("E0000000611","合作方链接数已达许可上限")),c(g,"MAX_TENANT_LIMIT",new Q("E0000000612","租户数已达许可上限")),c(g,"MAX_USER_LIMIT",new Q("E0000000613","用户数已达许可上限")),c(g,"URN_NOT_PERMIT",new Q("E0000000614","接口未被许可调用")),c(g,"SIGNATURE_ERROR",new Q("E0000000615","证书签名非法")),c(g,"CRYPT_CODEC_ERROR",new Q("E0000000616","报文编解码异常")),c(g,"NO_SERVICE",new Q("E0000000617","下游版本不匹配服务不存在")),c(g,"NET_NOT_WEAVE",new Q("E0000000618","节点或机构未组网")),c(g,"ADDRESS_ERROR",new Q("E0000000619","地址非法或无法访问")),c(g,"UNEXPECTED_SYNTAX",new Q("E0000000620","规则语法错误")),c(g,"UNKNOWN_SCRIPT",new Q("E0000000621","规则不存在")),c(g,"DATA_ID_ERROR",new Q("E0000000622","数据身份不存在或非法")),c(g,"START_PENDING",new Q("E0000000623","系统启动中")),c(g,"UNEXPECTED_SQL_SYNTAX",new Q("E0000000624","SQL语法错误")),c(g,"NO_DATABASE",new Q("E0000000625","数据库不存在")),c(g,"NO_TRANSACTION",new Q("E0000000626","事务不存在")),c(g,"SQL_EXECUTE_ERROR",new Q("E0000000627","SQL执行异常")),c(g,"DUPLICATE_KEY",new Q("E0000000628","唯一键冲突"));function Fr(r){return console.log(r),g.SYSTEM_ERROR}var up=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const gt=class gt{constructor(e){c(this,"v");this.v=e}matches(e){return(this.v&e)==this.v}};c(gt,"Routine",new gt(1)),c(gt,"Perform",new gt(2)),c(gt,"Defense",new gt(4)),c(gt,"Debug",new gt(8)),c(gt,"LoadTest",new gt(16)),c(gt,"Mock",new gt(32));let Si=gt;class kr{constructor(e){c(this,"name");this.name=e}}class es extends Array{peek(){if(!(this.length<1))return this.at(this.length-1)}}class Ri{}const x=class x{constructor(e){c(this,"key");this.key=e}get(e){var o,i,s;const t=(o=e.getAttachments())==null?void 0:o.get(this.key);if(t)return t;const n=(i=e.getAttachments())==null?void 0:i.get(this.key.replace("-","_"));if(n)return n;for(let a of(s=e.getAttachments())==null?void 0:s.entries())if(a[1]&&a[0]&&(a[0].toLowerCase()==this.key||a[0].replace("_","-").toLowerCase()==this.key))return a[1];return""}set(e,t){var n;(n=e.getAttachments())==null||n.set(this.key,t)}};c(x,"MESH_TRACE_ID",new x("mesh-trace-id")),c(x,"MESH_SPAN_ID",new x("mesh-span-id")),c(x,"MESH_TIMESTAMP",new x("mesh-timestamp")),c(x,"MESH_RUN_MODE",new x("mesh-run-mode")),c(x,"MESH_CONSUMER",new x("mesh-consumer")),c(x,"MESH_PROVIDER",new x("mesh-provider")),c(x,"MESH_URN",new x("mesh-urn")),c(x,"MESH_FROM_INST_ID",new x("mesh-from-inst-id")),c(x,"MESH_FROM_NODE_ID",new x("mesh-from-node-id")),c(x,"MESH_INCOMING_HOST",new x("mesh-incoming-host")),c(x,"MESH_OUTGOING_HOST",new x("mesh-outgoing-host")),c(x,"MESH_INCOMING_PROXY",new x("mesh-incoming-proxy")),c(x,"MESH_OUTGOING_PROXY",new x("mesh-outgoing-proxy")),c(x,"MESH_SUBSET",new x("mesh-subset")),c(x,"MESH_SESSION_ID",new x("mesh-session-id")),c(x,"MESH_VERSION",new x("mesh-version")),c(x,"MESH_TIMEOUT",new x("mesh-timeout")),c(x,"MESH_PTP_VERSION",new x("x-ptp-version")),c(x,"MESH_PTP_TPC",new x("x-ptp-tech-provider-code")),c(x,"MESH_PTP_TRACE_ID",new x("x-ptp-trace-id")),c(x,"MESH_PTP_TOKEN",new x("x-ptp-token")),c(x,"MESH_PTP_SOURCE_NODE_ID",new x("x-ptp-source-node-id")),c(x,"MESH_PTP_TARGET_NODE_ID",new x("x-ptp-target-node-id")),c(x,"MESH_PTP_SOURCE_INST_ID",new x("x-ptp-source-inst-id")),c(x,"MESH_PTP_TARGET_INST_ID",new x("x-ptp-target-inst-id")),c(x,"MESH_PTP_SESSION_ID",new x("x-ptp-session-id"));let vi=x;d.ContextProvider=class{},d.ContextProvider=up([L("mesh")],d.ContextProvider);function O(){return Le.load(d.ContextProvider).getDefault().context()}var pe=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},le=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ts,ns,rs,is;class J{constructor(){c(this,"sid","");c(this,"index",0);c(this,"limit",0);c(this,"factor",{});c(this,"order","")}}pe([p(0,"sid",String),le("design:type",String)],J.prototype,"sid",void 0),pe([p(1,"index",Number),le("design:type",Number)],J.prototype,"index",void 0),pe([p(2,"limit",Number),le("design:type",Number)],J.prototype,"limit",void 0),pe([p(3,"factor",[Map,String,Object]),le("design:type",typeof(ts=typeof Record<"u"&&Record)=="function"?ts:Object)],J.prototype,"factor",void 0),pe([p(4,"order",String),le("design:type",String)],J.prototype,"order",void 0);class Fe{constructor(){c(this,"sid","");c(this,"index",0);c(this,"limit",0);c(this,"total",0);c(this,"next",!1);c(this,"data",[])}}pe([p(0,"sid",String),le("design:type",String)],Fe.prototype,"sid",void 0),pe([p(1,"index",Number),le("design:type",Number)],Fe.prototype,"index",void 0),pe([p(2,"limit",Number),le("design:type",Number)],Fe.prototype,"limit",void 0),pe([p(3,"total",Number),le("design:type",Number)],Fe.prototype,"total",void 0),pe([p(4,"next",Boolean),le("design:type",Boolean)],Fe.prototype,"next",void 0),pe([p(5,"data",[Array,Object]),le("design:type",Array)],Fe.prototype,"data",void 0);class xr{constructor(){c(this,"nodeId","");c(this,"nodeName","");c(this,"instId","");c(this,"instName","")}}pe([p(0,"node_id",String),le("design:type",String)],xr.prototype,"nodeId",void 0),pe([p(1,"node_name",String),le("design:type",String)],xr.prototype,"nodeName",void 0),pe([p(2,"inst_id",String),le("design:type",String)],xr.prototype,"instId",void 0),pe([p(3,"inst_name",String),le("design:type",String)],xr.prototype,"instName",void 0);class Zn{constructor(){c(this,"status",0);c(this,"createAt");c(this,"updateAt");c(this,"createBy","");c(this,"updateBy","")}}pe([p(0,"status",Number),le("design:type",Number)],Zn.prototype,"status",void 0),pe([p(1,"create_at",Date),le("design:type",typeof(ns=typeof Date<"u"&&Date)=="function"?ns:Object)],Zn.prototype,"createAt",void 0),pe([p(2,"update_at",Date),le("design:type",typeof(rs=typeof Date<"u"&&Date)=="function"?rs:Object)],Zn.prototype,"updateAt",void 0),pe([p(3,"create_by",String),le("design:type",String)],Zn.prototype,"createBy",void 0),pe([p(4,"update_by",String),le("design:type",String)],Zn.prototype,"updateBy",void 0);class ut{constructor(){c(this,"name","");c(this,"pos","");c(this,"text","");c(this,"buff",new Uint8Array)}}pe([p(0,"name",String),le("design:type",String)],ut.prototype,"name",void 0),pe([p(1,"pos",String),le("design:type",String)],ut.prototype,"pos",void 0),pe([p(2,"text",String),le("design:type",String)],ut.prototype,"text",void 0),pe([p(3,"buff",Uint8Array),le("design:type",typeof(is=typeof Uint8Array<"u"&&Uint8Array)=="function"?is:Object)],ut.prototype,"buff",void 0);class je{constructor(){c(this,"topic","");c(this,"code","");c(this,"group","");c(this,"sets","")}}pe([p(0,"topic",String),le("design:type",String)],je.prototype,"topic",void 0),pe([p(1,"code",String),le("design:type",String)],je.prototype,"code",void 0),pe([p(2,"group",String),le("design:type",String)],je.prototype,"group",void 0),pe([p(3,"sets",String),le("design:type",String)],je.prototype,"sets",void 0);var me=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},he=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},os,ss,cs,as,us;class Br{constructor(){c(this,"suite","");c(this,"project","");c(this,"name","");c(this,"version","")}}me([p(0,"suite",String),he("design:type",String)],Br.prototype,"suite",void 0),me([p(1,"project",String),he("design:type",String)],Br.prototype,"project",void 0),me([p(2,"name",String),he("design:type",String)],Br.prototype,"name",void 0),me([p(3,"version",String),he("design:type",String)],Br.prototype,"version",void 0);class Qe{constructor(){c(this,"name","");c(this,"proto","");c(this,"algo","");c(this,"parties",[]);c(this,"message","")}}me([p(0,"name",String),he("design:type",String)],Qe.prototype,"name",void 0),me([p(1,"proto",String),he("design:type",String)],Qe.prototype,"proto",void 0),me([p(2,"algo",String),he("design:type",String)],Qe.prototype,"algo",void 0),me([p(3,"parties",[Array,String]),he("design:type",Array)],Qe.prototype,"parties",void 0),me([p(4,"message",String),he("design:type",String)],Qe.prototype,"message",void 0);class Hn{constructor(){c(this,"suite","");c(this,"csr",new Uint8Array)}}me([p(0,"suite",String),he("design:type",String)],Hn.prototype,"suite",void 0),me([p(1,"csr",Uint8Array),he("design:type",typeof(os=typeof Uint8Array<"u"&&Uint8Array)=="function"?os:Object)],Hn.prototype,"csr",void 0);class vn{constructor(){c(this,"hello",new Qe);c(this,"suite",new Hn);c(this,"local","")}}me([p(0,"hello",Qe),he("design:type",Qe)],vn.prototype,"hello",void 0),me([p(1,"suite",Hn),he("design:type",Hn)],vn.prototype,"suite",void 0),me([p(2,"local",String),he("design:type",String)],vn.prototype,"local",void 0);class Dr extends vn{constructor(){super(...arguments);c(this,"keys",{})}}me([p(0,"keys",[Map,String,Uint8Array]),he("design:type",typeof(ss=typeof Record<"u"&&Record)=="function"?ss:Object)],Dr.prototype,"keys",void 0);class Pi{constructor(){c(this,"keys",{})}}me([p(0,"keys",[Map,String,Uint8Array]),he("design:type",typeof(cs=typeof Record<"u"&&Record)=="function"?cs:Object)],Pi.prototype,"keys",void 0);class Gt{constructor(){c(this,"suite","");c(this,"body",new Uint8Array)}}me([p(0,"suite",String),he("design:type",String)],Gt.prototype,"suite",void 0),me([p(1,"body",Uint8Array),he("design:type",typeof(as=typeof Uint8Array<"u"&&Uint8Array)=="function"?as:Object)],Gt.prototype,"body",void 0);class Lr extends Gt{constructor(){super(...arguments);c(this,"reKey",new Uint8Array)}}me([p(0,"re_key",Uint8Array),he("design:type",typeof(us=typeof Uint8Array<"u"&&Uint8Array)=="function"?us:Object)],Lr.prototype,"reKey",void 0);class ze{constructor(){c(this,"code","");c(this,"name","");c(this,"memo","");c(this,"uri","");c(this,"level","");c(this,"nodeId","");c(this,"instId","");c(this,"raw","")}}me([p(0,"code",String),he("design:type",String)],ze.prototype,"code",void 0),me([p(1,"name",String),he("design:type",String)],ze.prototype,"name",void 0),me([p(2,"memo",String),he("design:type",String)],ze.prototype,"memo",void 0),me([p(3,"uri",String),he("design:type",String)],ze.prototype,"uri",void 0),me([p(4,"level",String),he("design:type",String)],ze.prototype,"level",void 0),me([p(5,"node_id",String),he("design:type",String)],ze.prototype,"nodeId",void 0),me([p(6,"inst_id",String),he("design:type",String)],ze.prototype,"instId",void 0),me([p(7,"raw",String),he("design:type",String)],ze.prototype,"raw",void 0);var Wt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Vt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},fs,ds;class Pn{constructor(){c(this,"metadata",{});c(this,"content","");c(this,"timestamp",0)}}Wt([p(0,"metadata",[Map,String,String]),Vt("design:type",typeof(fs=typeof Record<"u"&&Record)=="function"?fs:Object)],Pn.prototype,"metadata",void 0),Wt([p(1,"content",String),Vt("design:type",String)],Pn.prototype,"content",void 0),Wt([p(2,"timestamp",Number),Vt("design:type",Number)],Pn.prototype,"timestamp",void 0);class wn{constructor(){c(this,"queries",{});c(this,"start",0);c(this,"end",0);c(this,"limit",0);c(this,"step","");c(this,"direction","");c(this,"routeKey","")}}Wt([p(0,"queries",[Map,String,String]),Vt("design:type",typeof(ds=typeof Record<"u"&&Record)=="function"?ds:Object)],wn.prototype,"queries",void 0),Wt([p(1,"start",Number),Vt("design:type",Number)],wn.prototype,"start",void 0),Wt([p(2,"end",Number),Vt("design:type",Number)],wn.prototype,"end",void 0),Wt([p(3,"limit",Number),Vt("design:type",Number)],wn.prototype,"limit",void 0),Wt([p(4,"step",String),Vt("design:type",String)],wn.prototype,"step",void 0),Wt([p(5,"direction",String),Vt("design:type",String)],wn.prototype,"direction",void 0),Wt([p(6,"route_key",String),Vt("design:type",String)],wn.prototype,"routeKey",void 0);var Ze=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},et=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ps,ls,ys;class Re{constructor(){c(this,"codec","");c(this,"schema","");c(this,"buffer",new Uint8Array)}}Ze([p(0,"codec",String),et("design:type",String)],Re.prototype,"codec",void 0),Ze([p(1,"schema",String),et("design:type",String)],Re.prototype,"schema",void 0),Ze([p(2,"buffer",Uint8Array),et("design:type",typeof(ps=typeof Uint8Array<"u"&&Uint8Array)=="function"?ps:Object)],Re.prototype,"buffer",void 0);class tt{constructor(){c(this,"version","");c(this,"entity",new Re);c(this,"timestamp",0);c(this,"duration",0);c(this,"key","")}}Ze([p(0,"version",String),et("design:type",String)],tt.prototype,"version",void 0),Ze([p(1,"entity",Re),et("design:type",Re)],tt.prototype,"entity",void 0),Ze([p(2,"timestamp",Number),et("design:type",Number)],tt.prototype,"timestamp",void 0),Ze([p(3,"duration",Number),et("design:type",Number)],tt.prototype,"duration",void 0),Ze([p(4,"key",String),et("design:type",String)],tt.prototype,"key",void 0);class Hr{constructor(){c(this,"key","");c(this,"value",new Re);c(this,"updateAt")}}Ze([p(0,"key",String),et("design:type",String)],Hr.prototype,"key",void 0),Ze([p(1,"value",Re),et("design:type",Re)],Hr.prototype,"value",void 0),Ze([p(2,"update_at",Date),et("design:type",typeof(ls=typeof Date<"u"&&Date)=="function"?ls:Object)],Hr.prototype,"updateAt",void 0);class er{constructor(){c(this,"mno","");c(this,"kind","");c(this,"mime",new Uint8Array);c(this,"text","")}}Ze([p(0,"mno",String),et("design:type",String)],er.prototype,"mno",void 0),Ze([p(1,"kind",String),et("design:type",String)],er.prototype,"kind",void 0),Ze([p(2,"mime",Uint8Array),et("design:type",typeof(ys=typeof Uint8Array<"u"&&Uint8Array)=="function"?ys:Object)],er.prototype,"mime",void 0),Ze([p(3,"text",String),et("design:type",String)],er.prototype,"text",void 0);class fp{}var Rt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},vt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class cn{constructor(){c(this,"zone","");c(this,"cluster","");c(this,"cell","");c(this,"group","");c(this,"address","")}}Rt([p(0,"zone",String),vt("design:type",String)],cn.prototype,"zone",void 0),Rt([p(1,"cluster",String),vt("design:type",String)],cn.prototype,"cluster",void 0),Rt([p(2,"cell",String),vt("design:type",String)],cn.prototype,"cell",void 0),Rt([p(3,"group",String),vt("design:type",String)],cn.prototype,"group",void 0),Rt([p(4,"address",String),vt("design:type",String)],cn.prototype,"address",void 0);class xe{constructor(){c(this,"mdc","");c(this,"version","");c(this,"name","");c(this,"crt","");c(this,"key","");c(this,"rootCrt","");c(this,"lattice",new cn)}}Rt([p(0,"mdc",String),vt("design:type",String)],xe.prototype,"mdc",void 0),Rt([p(1,"version",String),vt("design:type",String)],xe.prototype,"version",void 0),Rt([p(2,"name",String),vt("design:type",String)],xe.prototype,"name",void 0),Rt([p(3,"crt",String),vt("design:type",String)],xe.prototype,"crt",void 0),Rt([p(4,"key",String),vt("design:type",String)],xe.prototype,"key",void 0),Rt([p(5,"root_crt",String),vt("design:type",String)],xe.prototype,"rootCrt",void 0),Rt([p(6,"lattice",cn),vt("design:type",cn)],xe.prototype,"lattice",void 0);var jn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},En=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class nt{constructor(){c(this,"id","")}}jn([p(0,"idc",String),En("design:type",String)],nt.prototype,"id",void 0);class Tn extends nt{constructor(){super(...arguments);c(this,"ip","");c(this,"port","");c(this,"host","");c(this,"name","")}}jn([p(0,"ip",String),En("design:type",String)],Tn.prototype,"ip",void 0),jn([p(1,"port",String),En("design:type",String)],Tn.prototype,"port",void 0),jn([p(2,"host",String),En("design:type",String)],Tn.prototype,"host",void 0),jn([p(3,"name",String),En("design:type",String)],Tn.prototype,"name",void 0);class wi{constructor(){c(this,"nodeId","");c(this,"instId","");c(this,"instName","")}}jn([p(0,"node_id",String),En("design:type",String)],wi.prototype,"nodeId",void 0),jn([p(1,"inst_id",String),En("design:type",String)],wi.prototype,"instId",void 0),jn([p(2,"inst_name",String),En("design:type",String)],wi.prototype,"instName",void 0);var Ge=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},We=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ms,hs,gs,bs,_s,Os;class Ve{constructor(){c(this,"version","");c(this,"tid","");c(this,"sid","");c(this,"eid","");c(this,"mid","");c(this,"timestamp","");c(this,"source",new nt);c(this,"target",new nt);c(this,"binding",new je);c(this,"entity",new Re)}}Ge([p(0,"version",String),We("design:type",String)],Ve.prototype,"version",void 0),Ge([p(1,"tid",String),We("design:type",String)],Ve.prototype,"tid",void 0),Ge([p(2,"sid",String),We("design:type",String)],Ve.prototype,"sid",void 0),Ge([p(3,"eid",String),We("design:type",String)],Ve.prototype,"eid",void 0),Ge([p(4,"mid",String),We("design:type",String)],Ve.prototype,"mid",void 0),Ge([p(5,"timestamp",String),We("design:type",String)],Ve.prototype,"timestamp",void 0),Ge([p(6,"source",nt),We("design:type",typeof(ms=typeof nt<"u"&&nt)=="function"?ms:Object)],Ve.prototype,"source",void 0),Ge([p(7,"target",nt),We("design:type",typeof(hs=typeof nt<"u"&&nt)=="function"?hs:Object)],Ve.prototype,"target",void 0),Ge([p(8,"binding",je),We("design:type",typeof(gs=typeof je<"u"&&je)=="function"?gs:Object)],Ve.prototype,"binding",void 0),Ge([p(9,"entity",Re),We("design:type",typeof(bs=typeof Re<"u"&&Re)=="function"?bs:Object)],Ve.prototype,"entity",void 0);class Jt{constructor(){c(this,"taskId","");c(this,"binding",new je);c(this,"status",0);c(this,"createAt",0);c(this,"invokeAt",0);c(this,"entity",new Re)}}Ge([p(0,"task_id",String),We("design:type",String)],Jt.prototype,"taskId",void 0),Ge([p(1,"binding",je),We("design:type",typeof(_s=typeof je<"u"&&je)=="function"?_s:Object)],Jt.prototype,"binding",void 0),Ge([p(2,"status",Number),We("design:type",Number)],Jt.prototype,"status",void 0),Ge([p(3,"create_at",Number),We("design:type",Number)],Jt.prototype,"createAt",void 0),Ge([p(4,"invoke_at",Number),We("design:type",Number)],Jt.prototype,"invokeAt",void 0),Ge([p(5,"entity",Re),We("design:type",typeof(Os=typeof Re<"u"&&Re)=="function"?Os:Object)],Jt.prototype,"entity",void 0);var Pt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ss;class tr{constructor(){c(this,"kind","");c(this,"key","")}}Pt([p(0,"kind",String),wt("design:type",String)],tr.prototype,"kind",void 0),Pt([p(1,"key",String),wt("design:type",String)],tr.prototype,"key",void 0);class ft{constructor(){c(this,"algo","");c(this,"domain","");c(this,"subject","");c(this,"length",0);c(this,"expireAt");c(this,"mail","");c(this,"isCA",!1);c(this,"caCert","");c(this,"caKey","");c(this,"ips",[])}}Pt([p(0,"algo",String),wt("design:type",String)],ft.prototype,"algo",void 0),Pt([p(1,"domain",String),wt("design:type",String)],ft.prototype,"domain",void 0),Pt([p(2,"subject",String),wt("design:type",String)],ft.prototype,"subject",void 0),Pt([p(3,"length",Number),wt("design:type",Number)],ft.prototype,"length",void 0),Pt([p(4,"expire_at",Date),wt("design:type",typeof(Ss=typeof Date<"u"&&Date)=="function"?Ss:Object)],ft.prototype,"expireAt",void 0),Pt([p(5,"mail",String),wt("design:type",String)],ft.prototype,"mail",void 0),Pt([p(6,"is_ca",Boolean),wt("design:type",Boolean)],ft.prototype,"isCA",void 0),Pt([p(7,"ca_cert",String),wt("design:type",String)],ft.prototype,"caCert",void 0),Pt([p(8,"ca_key",String),wt("design:type",String)],ft.prototype,"caKey",void 0),Pt([p(9,"ips",[Array,String]),wt("design:type",Array)],ft.prototype,"ips",void 0);var ge=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},be=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Rs,vs;class ye{constructor(){c(this,"version","");c(this,"level",0);c(this,"name","");c(this,"createBy","");c(this,"createAt",0);c(this,"activeAt",0);c(this,"factor","");c(this,"signature","");c(this,"muid","");c(this,"server","");c(this,"crt","");c(this,"group",[]);c(this,"replicas",0);c(this,"maxCooperators",0);c(this,"maxTenants",0);c(this,"maxUsers",0);c(this,"maxMills",0);c(this,"whiteURN",[]);c(this,"blackURN",[]);c(this,"superURN",[])}}ge([p(0,"version",String),be("design:type",String)],ye.prototype,"version",void 0),ge([p(1,"level",Number),be("design:type",Number)],ye.prototype,"level",void 0),ge([p(2,"name",String),be("design:type",String)],ye.prototype,"name",void 0),ge([p(3,"create_by",String),be("design:type",String)],ye.prototype,"createBy",void 0),ge([p(4,"create_at",Number),be("design:type",Number)],ye.prototype,"createAt",void 0),ge([p(5,"active_at",Number),be("design:type",Number)],ye.prototype,"activeAt",void 0),ge([p(6,"factors",String),be("design:type",String)],ye.prototype,"factor",void 0),ge([p(7,"signature",String),be("design:type",String)],ye.prototype,"signature",void 0),ge([p(8,"muid",String),be("design:type",String)],ye.prototype,"muid",void 0),ge([p(9,"server",String),be("design:type",String)],ye.prototype,"server",void 0),ge([p(10,"crt",String),be("design:type",String)],ye.prototype,"crt",void 0),ge([p(11,"group",[Array,String]),be("design:type",Array)],ye.prototype,"group",void 0),ge([p(12,"replicas",Number),be("design:type",Number)],ye.prototype,"replicas",void 0),ge([p(13,"max_cooperators",Number),be("design:type",Number)],ye.prototype,"maxCooperators",void 0),ge([p(14,"max_tenants",Number),be("design:type",Number)],ye.prototype,"maxTenants",void 0),ge([p(15,"max_users",Number),be("design:type",Number)],ye.prototype,"maxUsers",void 0),ge([p(16,"max_mills",Number),be("design:type",Number)],ye.prototype,"maxMills",void 0),ge([p(17,"white_urns",[Array,String]),be("design:type",Array)],ye.prototype,"whiteURN",void 0),ge([p(18,"black_urns",[Array,String]),be("design:type",Array)],ye.prototype,"blackURN",void 0),ge([p(19,"super_urns",[Array,String]),be("design:type",Array)],ye.prototype,"superURN",void 0);class nr{constructor(){c(this,"cipher","");c(this,"explain",new ye);c(this,"createAt")}}ge([p(0,"cipher",String),be("design:type",String)],nr.prototype,"cipher",void 0),ge([p(1,"explain",ye),be("design:type",ye)],nr.prototype,"explain",void 0),ge([p(2,"create_at",Date),be("design:type",typeof(Rs=typeof Date<"u"&&Date)=="function"?Rs:Object)],nr.prototype,"createAt",void 0);class rr{constructor(){c(this,"cipher","");c(this,"explain",new xe);c(this,"nodeKey","")}}ge([p(0,"cipher",String),be("design:type",String)],rr.prototype,"cipher",void 0),ge([p(1,"explain",xe),be("design:type",typeof(vs=typeof xe<"u"&&xe)=="function"?vs:Object)],rr.prototype,"explain",void 0),ge([p(2,"node_key",String),be("design:type",String)],rr.prototype,"nodeKey",void 0);var ce=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ae=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ps,ws;class ir{constructor(){c(this,"mno","");c(this,"kind","");c(this,"mime",new Uint8Array);c(this,"text","")}}ce([p(0,"mno",String),ae("design:type",String)],ir.prototype,"mno",void 0),ce([p(1,"kind",String),ae("design:type",String)],ir.prototype,"kind",void 0),ce([p(2,"mime",Uint8Array),ae("design:type",typeof(Ps=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ps:Object)],ir.prototype,"mime",void 0),ce([p(3,"text",String),ae("design:type",String)],ir.prototype,"text",void 0);class jt{constructor(){c(this,"clientId","");c(this,"clientKey","");c(this,"username","");c(this,"password","");c(this,"captcha","")}}ce([p(0,"client_id",String),ae("design:type",String)],jt.prototype,"clientId",void 0),ce([p(1,"client_key",String),ae("design:type",String)],jt.prototype,"clientKey",void 0),ce([p(2,"username",String),ae("design:type",String)],jt.prototype,"username",void 0),ce([p(3,"password",String),ae("design:type",String)],jt.prototype,"password",void 0),ce([p(4,"captcha",String),ae("design:type",String)],jt.prototype,"captcha",void 0);class an{constructor(){c(this,"token","");c(this,"kind","");c(this,"expiresAt",0);c(this,"scope","");c(this,"refreshToken","")}}ce([p(0,"token",String),ae("design:type",String)],an.prototype,"token",void 0),ce([p(1,"type",String),ae("design:type",String)],an.prototype,"kind",void 0),ce([p(2,"expires_at",Number),ae("design:type",Number)],an.prototype,"expiresAt",void 0),ce([p(3,"scope",String),ae("design:type",String)],an.prototype,"scope",void 0),ce([p(4,"refresh_token",String),ae("design:type",String)],an.prototype,"refreshToken",void 0);class co{constructor(){c(this,"code","")}}ce([p(0,"code",String),ae("design:type",String)],co.prototype,"code",void 0);class ji{constructor(){c(this,"code","");c(this,"redirectURI","")}}ce([p(0,"code",String),ae("design:type",String)],ji.prototype,"code",void 0),ce([p(1,"redirect_uri",String),ae("design:type",String)],ji.prototype,"redirectURI",void 0);class qr{constructor(){c(this,"clientId","");c(this,"userId","");c(this,"expiresAt",0)}}ce([p(0,"client_id",String),ae("design:type",String)],qr.prototype,"clientId",void 0),ce([p(1,"user_id",String),ae("design:type",String)],qr.prototype,"userId",void 0),ce([p(2,"expires_at",Number),ae("design:type",Number)],qr.prototype,"expiresAt",void 0);class _t{constructor(){c(this,"token","");c(this,"userid","");c(this,"username","");c(this,"nickname","");c(this,"avatar","");c(this,"mobile","");c(this,"mail","");c(this,"deptId","");c(this,"nodeId","");c(this,"instIds",[]);c(this,"attrs",[]);c(this,"raw",{})}}ce([p(0,"token",String),ae("design:type",String)],_t.prototype,"token",void 0),ce([p(1,"userid",String),ae("design:type",String)],_t.prototype,"userid",void 0),ce([p(2,"username",String),ae("design:type",String)],_t.prototype,"username",void 0),ce([p(3,"nickname",String),ae("design:type",String)],_t.prototype,"nickname",void 0),ce([p(4,"avatar",String),ae("design:type",String)],_t.prototype,"avatar",void 0),ce([p(5,"mobile",String),ae("design:type",String)],_t.prototype,"mobile",void 0),ce([p(6,"mail",String),ae("design:type",String)],_t.prototype,"mail",void 0),ce([p(7,"dept_id",String),ae("design:type",String)],_t.prototype,"deptId",void 0),ce([p(8,"node_id",String),ae("design:type",String)],_t.prototype,"nodeId",void 0),ce([p(9,"inst_ids",[Array,String]),ae("design:type",Array)],_t.prototype,"instIds",void 0),ce([p(10,"attrs",[Array,String]),ae("design:type",Array)],_t.prototype,"attrs",void 0),ce([p(11,"raw",[Map,String,String]),ae("design:type",typeof(ws=typeof Record<"u"&&Record)=="function"?ws:Object)],_t.prototype,"raw",void 0);var or=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},sr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},js,Es;class ao{constructor(){c(this,"arguments",[]);c(this,"attachments",{})}}or([p(0,"arguments",[Array,Object]),sr("design:type",Array)],ao.prototype,"arguments",void 0),or([p(1,"attachments",[Map,String,String]),sr("design:type",typeof(js=typeof Record<"u"&&Record)=="function"?js:Object)],ao.prototype,"attachments",void 0);class zr{constructor(){c(this,"code","");c(this,"message","");c(this,"cause",new ut);c(this,"content")}}or([p(0,"code",String),sr("design:type",String)],zr.prototype,"code",void 0),or([p(1,"message",String),sr("design:type",String)],zr.prototype,"message",void 0),or([p(2,"cause",ut),sr("design:type",typeof(Es=typeof ut<"u"&&ut)=="function"?Es:Object)],zr.prototype,"cause",void 0),or([p(3,"content",Object),sr("design:type",Object)],zr.prototype,"content",void 0);var ne=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},re=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ts,Ns;class Et{constructor(){c(this,"version","");c(this,"proto","");c(this,"codec","");c(this,"mdc","");c(this,"zone","");c(this,"cluster","");c(this,"cell","");c(this,"group","");c(this,"address","")}}ne([p(0,"version",String),re("design:type",String)],Et.prototype,"version",void 0),ne([p(1,"proto",String),re("design:type",String)],Et.prototype,"proto",void 0),ne([p(2,"codec",String),re("design:type",String)],Et.prototype,"codec",void 0),ne([p(3,"mdc",String),re("design:type",String)],Et.prototype,"mdc",void 0),ne([p(4,"zone",String),re("design:type",String)],Et.prototype,"zone",void 0),ne([p(5,"cluster",String),re("design:type",String)],Et.prototype,"cluster",void 0),ne([p(6,"cell",String),re("design:type",String)],Et.prototype,"cell",void 0),ne([p(7,"group",String),re("design:type",String)],Et.prototype,"group",void 0),ne([p(8,"address",String),re("design:type",String)],Et.prototype,"address",void 0);class Kt extends Et{constructor(){super(...arguments);c(this,"urn","");c(this,"namespace","");c(this,"name","");c(this,"flags",0);c(this,"timeout",0);c(this,"retries",0)}}ne([p(0,"urn",String),re("design:type",String)],Kt.prototype,"urn",void 0),ne([p(1,"namespace",String),re("design:type",String)],Kt.prototype,"namespace",void 0),ne([p(2,"name",String),re("design:type",String)],Kt.prototype,"name",void 0),ne([p(3,"flags",Number),re("design:type",Number)],Kt.prototype,"flags",void 0),ne([p(4,"timeout",Number),re("design:type",Number)],Kt.prototype,"timeout",void 0),ne([p(5,"retries",Number),re("design:type",Number)],Kt.prototype,"retries",void 0);class dt extends Et{constructor(){super(...arguments);c(this,"urn","");c(this,"namespace","");c(this,"name","");c(this,"flags",0);c(this,"timeout",0);c(this,"retries",0);c(this,"sets","");c(this,"kind","");c(this,"lang","");c(this,"attrs",{})}}ne([p(0,"urn",String),re("design:type",String)],dt.prototype,"urn",void 0),ne([p(1,"namespace",String),re("design:type",String)],dt.prototype,"namespace",void 0),ne([p(2,"name",String),re("design:type",String)],dt.prototype,"name",void 0),ne([p(3,"flags",Number),re("design:type",Number)],dt.prototype,"flags",void 0),ne([p(4,"timeout",Number),re("design:type",Number)],dt.prototype,"timeout",void 0),ne([p(5,"retries",Number),re("design:type",Number)],dt.prototype,"retries",void 0),ne([p(6,"sets",String),re("design:type",String)],dt.prototype,"sets",void 0),ne([p(7,"kind",String),re("design:type",String)],dt.prototype,"kind",void 0),ne([p(8,"lang",String),re("design:type",String)],dt.prototype,"lang",void 0),ne([p(9,"attrs",[Map,String,String]),re("design:type",typeof(Ts=typeof Record<"u"&&Record)=="function"?Ts:Object)],dt.prototype,"attrs",void 0);class uo{constructor(){c(this,"references",[]);c(this,"services",[])}}ne([p(0,"references",[Array,Kt]),re("design:type",Array)],uo.prototype,"references",void 0),ne([p(1,"services",[Array,dt]),re("design:type",Array)],uo.prototype,"services",void 0);class Je{constructor(){c(this,"instanceId","");c(this,"name","");c(this,"kind","");c(this,"address","");c(this,"content");c(this,"timestamp",0);c(this,"attachments",{})}}ne([p(0,"instance_id",String),re("design:type",String)],Je.prototype,"instanceId",void 0),ne([p(1,"name",String),re("design:type",String)],Je.prototype,"name",void 0),ne([p(2,"kind",String),re("design:type",String)],Je.prototype,"kind",void 0),ne([p(3,"address",String),re("design:type",String)],Je.prototype,"address",void 0),ne([p(4,"content",Object),re("design:type",Object)],Je.prototype,"content",void 0),ne([p(5,"timestamp",Number),re("design:type",Number)],Je.prototype,"timestamp",void 0),ne([p(6,"attachments",[Map,String,String]),re("design:type",typeof(Ns=typeof Record<"u"&&Record)=="function"?Ns:Object)],Je.prototype,"attachments",void 0);var Ee=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Te=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},As,Is,Ms;class ue{constructor(){c(this,"sid","");c(this,"did","");c(this,"name","");c(this,"kind","");c(this,"pattern","");c(this,"address","");c(this,"memo","");c(this,"rank",0);c(this,"tags","");c(this,"expireAt");c(this,"upstream",0);c(this,"downstream",0);c(this,"hostRoot","");c(this,"hostCrt","");c(this,"hostKey","");c(this,"guestRoot","");c(this,"raw","");c(this,"status",0);c(this,"createAt");c(this,"updateAt");c(this,"createBy","");c(this,"updateBy","")}}Ee([p(0,"sid",String),Te("design:type",String)],ue.prototype,"sid",void 0),Ee([p(1,"did",String),Te("design:type",String)],ue.prototype,"did",void 0),Ee([p(2,"name",String),Te("design:type",String)],ue.prototype,"name",void 0),Ee([p(3,"kind",String),Te("design:type",String)],ue.prototype,"kind",void 0),Ee([p(4,"pattern",String),Te("design:type",String)],ue.prototype,"pattern",void 0),Ee([p(5,"address",String),Te("design:type",String)],ue.prototype,"address",void 0),Ee([p(6,"memo",String),Te("design:type",String)],ue.prototype,"memo",void 0),Ee([p(7,"rank",Number),Te("design:type",Number)],ue.prototype,"rank",void 0),Ee([p(8,"tags",String),Te("design:type",String)],ue.prototype,"tags",void 0),Ee([p(9,"expire_at",Date),Te("design:type",typeof(As=typeof Date<"u"&&Date)=="function"?As:Object)],ue.prototype,"expireAt",void 0),Ee([p(10,"upstream",Number),Te("design:type",Number)],ue.prototype,"upstream",void 0),Ee([p(11,"downstream",Number),Te("design:type",Number)],ue.prototype,"downstream",void 0),Ee([p(12,"host_root",String),Te("design:type",String)],ue.prototype,"hostRoot",void 0),Ee([p(13,"host_crt",String),Te("design:type",String)],ue.prototype,"hostCrt",void 0),Ee([p(14,"host_key",String),Te("design:type",String)],ue.prototype,"hostKey",void 0),Ee([p(15,"guest_root",String),Te("design:type",String)],ue.prototype,"guestRoot",void 0),Ee([p(16,"raw",String),Te("design:type",String)],ue.prototype,"raw",void 0),Ee([p(17,"status",Number),Te("design:type",Number)],ue.prototype,"status",void 0),Ee([p(18,"create_at",Date),Te("design:type",typeof(Is=typeof Date<"u"&&Date)=="function"?Is:Object)],ue.prototype,"createAt",void 0),Ee([p(19,"update_at",Date),Te("design:type",typeof(Ms=typeof Date<"u"&&Date)=="function"?Ms:Object)],ue.prototype,"updateAt",void 0),Ee([p(20,"create_by",String),Te("design:type",String)],ue.prototype,"createBy",void 0),Ee([p(21,"update_by",String),Te("design:type",String)],ue.prototype,"updateBy",void 0);var Xt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Yt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Cs;class Nn{constructor(){c(this,"xid","");c(this,"timeout",0);c(this,"schema","");c(this,"flags",0)}}Xt([p(0,"xid",String),Yt("design:type",String)],Nn.prototype,"xid",void 0),Xt([p(1,"timeout",Number),Yt("design:type",Number)],Nn.prototype,"timeout",void 0),Xt([p(2,"schema",String),Yt("design:type",String)],Nn.prototype,"schema",void 0),Xt([p(3,"flags",Number),Yt("design:type",Number)],Nn.prototype,"flags",void 0);class Qt{constructor(){c(this,"xid","");c(this,"schema","");c(this,"grammar","");c(this,"expr","");c(this,"args",{});c(this,"flags",0)}}Xt([p(0,"xid",String),Yt("design:type",String)],Qt.prototype,"xid",void 0),Xt([p(1,"schema",String),Yt("design:type",String)],Qt.prototype,"schema",void 0),Xt([p(2,"grammar",String),Yt("design:type",String)],Qt.prototype,"grammar",void 0),Xt([p(3,"expr",String),Yt("design:type",String)],Qt.prototype,"expr",void 0),Xt([p(4,"args",[Map,String,Object]),Yt("design:type",typeof(Cs=typeof Record<"u"&&Record)=="function"?Cs:Object)],Qt.prototype,"args",void 0),Xt([p(5,"flags",Number),Yt("design:type",Number)],Qt.prototype,"flags",void 0);var cr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ar=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Us;class Tt{constructor(){c(this,"code","");c(this,"name","");c(this,"desc","");c(this,"kind","");c(this,"expr","");c(this,"attachment",{})}}cr([p(0,"code",String),ar("design:type",String)],Tt.prototype,"code",void 0),cr([p(1,"name",String),ar("design:type",String)],Tt.prototype,"name",void 0),cr([p(2,"desc",String),ar("design:type",String)],Tt.prototype,"desc",void 0),cr([p(3,"kind",String),ar("design:type",String)],Tt.prototype,"kind",void 0),cr([p(4,"expr",String),ar("design:type",String)],Tt.prototype,"expr",void 0),cr([p(5,"attachment",[Map,String,String]),ar("design:type",typeof(Us=typeof Record<"u"&&Record)=="function"?Us:Object)],Tt.prototype,"attachment",void 0);class $s{constructor(e,t,n){c(this,"code");c(this,"text");c(this,"color");this.code=e,this.text=t,this.color=n}}const Ji=class Ji{constructor(e){c(this,"values");this.values=e}from(e){for(let t of this.values){if(typeof t.code!="number"||typeof e!="number"){if(t.code==e)return t;continue}if(t.code===(t.code&e))return t}return this.values[0]}asMap(){const e=new Map([["",new $s(-1,"全部","")]]);for(let t=0;t<this.values.length;t++)e.set(this.values[t].text,this.values[t]);return e}};c(Ji,"Route",new Ji([{code:1,text:"已登记",color:"blue"},{code:2,text:"已禁用",color:"orange"},{code:4,text:"已启用",color:"green"}]));let fo=Ji;var un=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Fs;class Gr{constructor(){c(this,"idx",0);c(this,"flag",0);c(this,"body",new Uint8Array)}}un([p(0,"idx",Number),fn("design:type",Number)],Gr.prototype,"idx",void 0),un([p(1,"flag",Number),fn("design:type",Number)],Gr.prototype,"flag",void 0),un([p(2,"body",Uint8Array),fn("design:type",typeof(Fs=typeof Uint8Array<"u"&&Uint8Array)=="function"?Fs:Object)],Gr.prototype,"body",void 0);class Nt extends Gr{constructor(){super(...arguments);c(this,"bucket","");c(this,"src","");c(this,"rid","");c(this,"dst","");c(this,"sni","");c(this,"addr","")}}un([p(0,"bucket",String),fn("design:type",String)],Nt.prototype,"bucket",void 0),un([p(1,"src",String),fn("design:type",String)],Nt.prototype,"src",void 0),un([p(2,"rid",String),fn("design:type",String)],Nt.prototype,"rid",void 0),un([p(3,"dst",String),fn("design:type",String)],Nt.prototype,"dst",void 0),un([p(4,"sni",String),fn("design:type",String)],Nt.prototype,"sni",void 0),un([p(5,"addr",String),fn("design:type",String)],Nt.prototype,"addr",void 0);var ks=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},xs=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Bs;class Wr{constructor(){c(this,"version","");c(this,"infos",{})}}ks([p(0,"version",String),xs("design:type",String)],Wr.prototype,"version",void 0),ks([p(1,"infos",[Map,String,String]),xs("design:type",typeof(Bs=typeof Record<"u"&&Record)=="function"?Bs:Object)],Wr.prototype,"infos",void 0);var W=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},V=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ds,Ls,Hs,qs,zs;class Be{constructor(){c(this,"no","");c(this,"name","");c(this,"alias","")}}W([p(0,"no",String),V("design:type",String)],Be.prototype,"no",void 0),W([p(1,"name",String),V("design:type",String)],Be.prototype,"name",void 0),W([p(2,"alias",String),V("design:type",String)],Be.prototype,"alias",void 0);class An{constructor(){c(this,"bno","");c(this,"cno","");c(this,"context",{});c(this,"applier",new Be)}}W([p(0,"bno",String),V("design:type",String)],An.prototype,"bno",void 0),W([p(1,"cno",String),V("design:type",String)],An.prototype,"cno",void 0),W([p(2,"context",[Map,String,String]),V("design:type",typeof(Ds=typeof Record<"u"&&Record)=="function"?Ds:Object)],An.prototype,"context",void 0),W([p(3,"applier",Be),V("design:type",Be)],An.prototype,"applier",void 0);class He{constructor(){c(this,"name","");c(this,"alias","");c(this,"attrs",{});c(this,"kind",0);c(this,"group","")}}W([p(0,"name",String),V("design:type",String)],He.prototype,"name",void 0),W([p(1,"alias",String),V("design:type",String)],He.prototype,"alias",void 0),W([p(2,"attrs",[Map,String,String]),V("design:type",typeof(Ls=typeof Record<"u"&&Record)=="function"?Ls:Object)],He.prototype,"attrs",void 0),W([p(3,"kind",Number),V("design:type",Number)],He.prototype,"kind",void 0),W([p(4,"group",String),V("design:type",String)],He.prototype,"group",void 0);class Vr{constructor(){c(this,"src","");c(this,"dst","");c(this,"condition","")}}W([p(0,"src",String),V("design:type",String)],Vr.prototype,"src",void 0),W([p(1,"dst",String),V("design:type",String)],Vr.prototype,"dst",void 0),W([p(2,"condition",String),V("design:type",String)],Vr.prototype,"condition",void 0);class pt{constructor(){c(this,"cno","");c(this,"name","");c(this,"vertices",[]);c(this,"sides",[]);c(this,"status",0);c(this,"maintainer",new Be)}}W([p(0,"cno",String),V("design:type",String)],pt.prototype,"cno",void 0),W([p(1,"name",String),V("design:type",String)],pt.prototype,"name",void 0),W([p(2,"vertices",[Array,He]),V("design:type",Array)],pt.prototype,"vertices",void 0),W([p(3,"sides",[Array,Vr]),V("design:type",Array)],pt.prototype,"sides",void 0),W([p(4,"status",Number),V("design:type",Number)],pt.prototype,"status",void 0),W([p(5,"maintainer",Be),V("design:type",Be)],pt.prototype,"maintainer",void 0);class dn{constructor(){c(this,"vertex",new He);c(this,"reviewers",[]);c(this,"status",0);c(this,"context",{})}}W([p(0,"vertex",He),V("design:type",He)],dn.prototype,"vertex",void 0),W([p(1,"reviewers",[Array,Be]),V("design:type",Array)],dn.prototype,"reviewers",void 0),W([p(2,"status",Number),V("design:type",Number)],dn.prototype,"status",void 0),W([p(3,"context",[Map,String,String]),V("design:type",typeof(Hs=typeof Record<"u"&&Record)=="function"?Hs:Object)],dn.prototype,"context",void 0);class qn{constructor(){c(this,"rno","");c(this,"bno","");c(this,"context",{});c(this,"status",0);c(this,"chart",new pt);c(this,"tasks",[])}}W([p(0,"rno",String),V("design:type",String)],qn.prototype,"rno",void 0),W([p(1,"bno",String),V("design:type",String)],qn.prototype,"bno",void 0),W([p(2,"context",[Map,String,String]),V("design:type",typeof(qs=typeof Record<"u"&&Record)=="function"?qs:Object)],qn.prototype,"context",void 0),W([p(3,"status",Number),V("design:type",Number)],qn.prototype,"status",void 0),W([p(4,"chart",pt),V("design:type",pt)],qn.prototype,"chart",void 0),W([p(5,"tasks",[Array,dn]),V("design:type",Array)],qn.prototype,"tasks",void 0);class pn{constructor(){c(this,"no","");c(this,"name","");c(this,"status",0);c(this,"workers",[])}}W([p(0,"no",String),V("design:type",String)],pn.prototype,"no",void 0),W([p(1,"name",String),V("design:type",String)],pn.prototype,"name",void 0),W([p(2,"status",Number),V("design:type",Number)],pn.prototype,"status",void 0),W([p(3,"workers",[Array,Be]),V("design:type",Array)],pn.prototype,"workers",void 0);class ln{constructor(){c(this,"rno","");c(this,"bno","");c(this,"cno","");c(this,"context",{});c(this,"vertex",new He);c(this,"task",new dn);c(this,"applier",new Be);c(this,"reviewer",new Be)}}W([p(0,"rno",String),V("design:type",String)],ln.prototype,"rno",void 0),W([p(1,"bno",String),V("design:type",String)],ln.prototype,"bno",void 0),W([p(2,"cno",String),V("design:type",String)],ln.prototype,"cno",void 0),W([p(3,"context",[Map,String,String]),V("design:type",typeof(zs=typeof Record<"u"&&Record)=="function"?zs:Object)],ln.prototype,"context",void 0),W([p(4,"vertex",He),V("design:type",He)],ln.prototype,"vertex",void 0),W([p(5,"task",dn),V("design:type",dn)],ln.prototype,"task",void 0),W([p(6,"applier",Be),V("design:type",Be)],ln.prototype,"applier",void 0),W([p(7,"reviewer",Be),V("design:type",Be)],ln.prototype,"reviewer",void 0);var yn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ve=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},zn=function(r,e){return function(t,n){e(t,n,r)}},Gs,Ws,Vs,Js,Ks,Xs,Ys,Qs,Zs,ec;d.Builtin=class{doc(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}version(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}debug(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}stats(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}fallback(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},yn([R("${mesh.name}.builtin.doc",String),zn(0,p(0,"name",String)),zn(1,p(1,"formatter",String)),ve("design:type",Function),ve("design:paramtypes",[String,String,Object]),ve("design:returntype",typeof(Gs=typeof Promise<"u"&&Promise)=="function"?Gs:Object)],d.Builtin.prototype,"doc",null),yn([R("${mesh.name}.builtin.version",Wr),ve("design:type",Function),ve("design:paramtypes",[Object]),ve("design:returntype",typeof(Ws=typeof Promise<"u"&&Promise)=="function"?Ws:Object)],d.Builtin.prototype,"version",null),yn([R("${mesh.name}.builtin.debug",Object),zn(0,p(0,"features",[Map,String,String])),ve("design:type",Function),ve("design:paramtypes",[typeof(Vs=typeof Record<"u"&&Record)=="function"?Vs:Object,Object]),ve("design:returntype",typeof(Js=typeof Promise<"u"&&Promise)=="function"?Js:Object)],d.Builtin.prototype,"debug",null),yn([R("${mesh.name}.builtin.stats",[Map,String,String]),zn(0,p(0,"features",[Array,String])),ve("design:type",Function),ve("design:paramtypes",[Array,Object]),ve("design:returntype",typeof(Ks=typeof Promise<"u"&&Promise)=="function"?Ks:Object)],d.Builtin.prototype,"stats",null),yn([R("${mesh.name}.builtin.fallback",Object),ve("design:type",Function),ve("design:paramtypes",[Object]),ve("design:returntype",typeof(Xs=typeof Promise<"u"&&Promise)=="function"?Xs:Object)],d.Builtin.prototype,"fallback",null),yn([R("${mesh.name}.builtin.dump",[Map,String,String]),zn(0,p(0,"names",[Array,String])),ve("design:type",Function),ve("design:paramtypes",[Array,Object]),ve("design:returntype",typeof(Ys=typeof Promise<"u"&&Promise)=="function"?Ys:Object)],d.Builtin.prototype,"dump",null),d.Builtin=yn([L("mpi")],d.Builtin);class po{stats(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}debug(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}}yn([zn(0,p(0,"features",[Array,String])),ve("design:type",Function),ve("design:paramtypes",[Array,Object]),ve("design:returntype",typeof(Qs=typeof Promise<"u"&&Promise)=="function"?Qs:Object)],po.prototype,"stats",null),yn([zn(0,p(0,"features",[Map,String,String])),ve("design:type",Function),ve("design:paramtypes",[typeof(Zs=typeof Record<"u"&&Record)=="function"?Zs:Object,Object]),ve("design:returntype",typeof(ec=typeof Promise<"u"&&Promise)=="function"?ec:Object)],po.prototype,"debug",null);var Lt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},rt=function(r,e){return function(t,n){e(t,n,r)}},tc,nc,rc,ic,oc,sc,cc,ac,uc,fc,dc,pc;d.Cache=class{get(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}put(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}remove(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}incr(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}decr(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}keys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}hget(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hset(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hdel(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hkeys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Lt([R("mesh.cache.get",tt),rt(0,p(0,"key",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(tc=typeof Promise<"u"&&Promise)=="function"?tc:Object)],d.Cache.prototype,"get",null),Lt([R("mesh.cache.put",Object),rt(0,p(0,"cell",tt)),fe("design:type",Function),fe("design:paramtypes",[typeof(nc=typeof tt<"u"&&tt)=="function"?nc:Object,Object]),fe("design:returntype",typeof(rc=typeof Promise<"u"&&Promise)=="function"?rc:Object)],d.Cache.prototype,"put",null),Lt([R("mesh.cache.remove",Object),rt(0,p(0,"key",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(ic=typeof Promise<"u"&&Promise)=="function"?ic:Object)],d.Cache.prototype,"remove",null),Lt([R("mesh.cache.incr",Number),rt(0,p(0,"key",String)),rt(1,p(1,"value",Number)),fe("design:type",Function),fe("design:paramtypes",[String,Number,Object]),fe("design:returntype",typeof(oc=typeof Promise<"u"&&Promise)=="function"?oc:Object)],d.Cache.prototype,"incr",null),Lt([R("mesh.cache.decr",Number),rt(0,p(0,"key",String)),rt(1,p(1,"value",Number)),fe("design:type",Function),fe("design:paramtypes",[String,Number,Object]),fe("design:returntype",typeof(sc=typeof Promise<"u"&&Promise)=="function"?sc:Object)],d.Cache.prototype,"decr",null),Lt([R("mesh.cache.keys",[Array,String]),rt(0,p(0,"pattern",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(cc=typeof Promise<"u"&&Promise)=="function"?cc:Object)],d.Cache.prototype,"keys",null),Lt([R("mesh.cache.hget",tt),rt(0,p(0,"key",String)),rt(1,p(1,"name",String)),fe("design:type",Function),fe("design:paramtypes",[String,String,Object]),fe("design:returntype",typeof(ac=typeof Promise<"u"&&Promise)=="function"?ac:Object)],d.Cache.prototype,"hget",null),Lt([R("mesh.cache.hset",Object),rt(0,p(0,"key",String)),rt(1,p(1,"cell",tt)),fe("design:type",Function),fe("design:paramtypes",[String,typeof(uc=typeof tt<"u"&&tt)=="function"?uc:Object,Object]),fe("design:returntype",typeof(fc=typeof Promise<"u"&&Promise)=="function"?fc:Object)],d.Cache.prototype,"hset",null),Lt([R("mesh.cache.hdel",Object),rt(0,p(0,"key",String)),rt(1,p(1,"name",String)),fe("design:type",Function),fe("design:paramtypes",[String,String,Object]),fe("design:returntype",typeof(dc=typeof Promise<"u"&&Promise)=="function"?dc:Object)],d.Cache.prototype,"hdel",null),Lt([R("mesh.cache.hkeys",[Array,String]),rt(0,p(0,"key",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(pc=typeof Promise<"u"&&Promise)=="function"?pc:Object)],d.Cache.prototype,"hkeys",null),d.Cache=Lt([L("mesh")],d.Cache);var Ke=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},X=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ot=function(r,e){return function(t,n){e(t,n,r)}},lc,yc,mc,hc,gc,bc,_c,Oc,Sc,Rc,vc,Pc,wc,jc,Ec,Tc,Nc,Ac,Ic,Mc,Cc,Uc,$c,Fc,kc;d.CipherEconomy=class{handshake(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}collect(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}serve(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}deposit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}objects(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}keys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}invoke(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Ke([R("${mesh.name}.cipher.handshake",String),Ot(0,p(0,"hello",Qe)),X("design:type",Function),X("design:paramtypes",[typeof(lc=typeof Qe<"u"&&Qe)=="function"?lc:Object,Object]),X("design:returntype",typeof(yc=typeof Promise<"u"&&Promise)=="function"?yc:Object)],d.CipherEconomy.prototype,"handshake",null),Ke([R("${mesh.name}.cipher.collect",Number),Ot(0,p(0,"obj",ze)),X("design:type",Function),X("design:paramtypes",[typeof(mc=typeof ze<"u"&&ze)=="function"?mc:Object,Object]),X("design:returntype",typeof(hc=typeof Promise<"u"&&Promise)=="function"?hc:Object)],d.CipherEconomy.prototype,"collect",null),Ke([R("${mesh.name}.cipher.encrypt",String),Ot(0,p(0,"suite",String)),X("design:type",Function),X("design:paramtypes",[String,Object]),X("design:returntype",typeof(gc=typeof Promise<"u"&&Promise)=="function"?gc:Object)],d.CipherEconomy.prototype,"serve",null),Ke([R("mesh.rec.deposit",String),Ot(0,p(0,"rco",ze)),X("design:type",Function),X("design:paramtypes",[typeof(bc=typeof ze<"u"&&ze)=="function"?bc:Object,Object]),X("design:returntype",typeof(_c=typeof Promise<"u"&&Promise)=="function"?_c:Object)],d.CipherEconomy.prototype,"deposit",null),Ke([R("mesh.rec.objects",[Fe,ze]),Ot(0,p(0,"index",J)),X("design:type",Function),X("design:paramtypes",[typeof(Oc=typeof J<"u"&&J)=="function"?Oc:Object,Object]),X("design:returntype",typeof(Sc=typeof Promise<"u"&&Promise)=="function"?Sc:Object)],d.CipherEconomy.prototype,"objects",null),Ke([R("${mesh.name}.cipher.keys",[Fe,tr]),Ot(0,p(0,"idx",J)),X("design:type",Function),X("design:paramtypes",[typeof(Rc=typeof J<"u"&&J)=="function"?Rc:Object,Object]),X("design:returntype",typeof(vc=typeof Promise<"u"&&Promise)=="function"?vc:Object)],d.CipherEconomy.prototype,"keys",null),Ke([R("mesh.rec.invoke",Uint8Array),Ot(0,p(0,"index",J)),X("design:type",Function),X("design:paramtypes",[typeof(Pc=typeof J<"u"&&J)=="function"?Pc:Object,Object]),X("design:returntype",typeof(wc=typeof Promise<"u"&&Promise)=="function"?wc:Object)],d.CipherEconomy.prototype,"invoke",null),d.CipherEconomy=Ke([L("mpi")],d.CipherEconomy),d.CipherProvider=class{suite(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}keygen(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}regen(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}encode(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}decode(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}recode(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Ke([R("${mesh.name}.cipher.suite",Hn),Ot(0,p(0,"hello",Qe)),X("design:type",Function),X("design:paramtypes",[typeof(jc=typeof Qe<"u"&&Qe)=="function"?jc:Object,Object]),X("design:returntype",typeof(Ec=typeof Promise<"u"&&Promise)=="function"?Ec:Object)],d.CipherProvider.prototype,"suite",null),Ke([R("${mesh.name}.cipher.keygen",Pi),Ot(0,p(0,"keygen",vn)),X("design:type",Function),X("design:paramtypes",[typeof(Tc=typeof vn<"u"&&vn)=="function"?Tc:Object,Object]),X("design:returntype",typeof(Nc=typeof Promise<"u"&&Promise)=="function"?Nc:Object)],d.CipherProvider.prototype,"keygen",null),Ke([R("${mesh.name}.cipher.regen",Pi),Ot(0,p(0,"keygen",Dr)),X("design:type",Function),X("design:paramtypes",[typeof(Ac=typeof Dr<"u"&&Dr)=="function"?Ac:Object,Object]),X("design:returntype",typeof(Ic=typeof Promise<"u"&&Promise)=="function"?Ic:Object)],d.CipherProvider.prototype,"regen",null),Ke([R("${mesh.name}.cipher.encode",Uint8Array),Ot(0,p(0,"explain",Gt)),X("design:type",Function),X("design:paramtypes",[typeof(Mc=typeof Gt<"u"&&Gt)=="function"?Mc:Object,Object]),X("design:returntype",typeof(Cc=typeof Promise<"u"&&Promise)=="function"?Cc:Object)],d.CipherProvider.prototype,"encode",null),Ke([R("${mesh.name}.cipher.decode",Uint8Array),Ot(0,p(0,"cipher",Gt)),X("design:type",Function),X("design:paramtypes",[typeof(Uc=typeof Gt<"u"&&Gt)=="function"?Uc:Object,Object]),X("design:returntype",typeof($c=typeof Promise<"u"&&Promise)=="function"?$c:Object)],d.CipherProvider.prototype,"decode",null),Ke([R("${mesh.name}.cipher.recode",Uint8Array),Ot(0,p(0,"cipher",Lr)),X("design:type",Function),X("design:paramtypes",[typeof(Fc=typeof Lr<"u"&&Lr)=="function"?Fc:Object,Object]),X("design:returntype",typeof(kc=typeof Promise<"u"&&Promise)=="function"?kc:Object)],d.CipherProvider.prototype,"recode",null),d.CipherProvider=Ke([L("mpi")],d.CipherProvider),d.ObjectProvider=class{serve(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}},d.ObjectProvider=Ke([L("mpi")],d.ObjectProvider);var lo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ur=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},dp=function(r,e){return function(t,n){e(t,n,r)}},xc,Bc,Dc;d.Cluster=class{election(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}isLeader(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}},lo([R("mesh.cluster.election",Uint8Array),dp(0,p(0,"buff",Uint8Array)),ur("design:type",Function),ur("design:paramtypes",[typeof(xc=typeof Uint8Array<"u"&&Uint8Array)=="function"?xc:Object,Object]),ur("design:returntype",typeof(Bc=typeof Promise<"u"&&Promise)=="function"?Bc:Object)],d.Cluster.prototype,"election",null),lo([R("mesh.cluster.leader",Boolean),ur("design:type",Function),ur("design:paramtypes",[Object]),ur("design:returntype",typeof(Dc=typeof Promise<"u"&&Promise)=="function"?Dc:Object)],d.Cluster.prototype,"isLeader",null),d.Cluster=lo([L("mpi")],d.Cluster);var Jr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},At=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},fr=function(r,e){return function(t,n){e(t,n,r)}},Lc,Hc,qc,zc,Gc;d.Commercialize=class{sign(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}history(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}issued(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Jr([R("mesh.license.sign",nr),fr(0,p(0,"lsr",ye)),At("design:type",Function),At("design:paramtypes",[typeof(Lc=typeof ye<"u"&&ye)=="function"?Lc:Object,Object]),At("design:returntype",typeof(Hc=typeof Promise<"u"&&Promise)=="function"?Hc:Object)],d.Commercialize.prototype,"sign",null),Jr([R("mesh.license.history",[Array,nr]),fr(0,p(0,"inst_id",String)),At("design:type",Function),At("design:paramtypes",[String,Object]),At("design:returntype",typeof(qc=typeof Promise<"u"&&Promise)=="function"?qc:Object)],d.Commercialize.prototype,"history",null),Jr([R("mesh.net.issued",rr),fr(0,p(0,"name",String)),fr(1,p(1,"kind",String)),fr(2,p(2,"cname",String)),At("design:type",Function),At("design:paramtypes",[String,String,String,Object]),At("design:returntype",typeof(zc=typeof Promise<"u"&&Promise)=="function"?zc:Object)],d.Commercialize.prototype,"issued",null),Jr([R("mesh.net.dump",[Array,rr]),fr(0,p(0,"node_id",String)),At("design:type",Function),At("design:paramtypes",[String,Object]),At("design:returntype",typeof(Gc=typeof Promise<"u"&&Promise)=="function"?Gc:Object)],d.Commercialize.prototype,"dump",null),d.Commercialize=Jr([L("mpi")],d.Commercialize);var dr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},it=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Zt=function(r,e){return function(t,n){e(t,n,r)}},Wc,Vc,Jc,Kc,Xc,Yc,Qc,Zc,ea,ta,na,ra,ia,oa,sa;d.Cryptor=class{encrypt(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}decrypt(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hash(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}sign(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}verify(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},dr([R("mesh.crypt.encrypt",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(Wc=typeof Uint8Array<"u"&&Uint8Array)=="function"?Wc:Object,typeof(Vc=typeof Record<"u"&&Record)=="function"?Vc:Object,Object]),it("design:returntype",typeof(Jc=typeof Promise<"u"&&Promise)=="function"?Jc:Object)],d.Cryptor.prototype,"encrypt",null),dr([R("mesh.crypt.decrypt",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(Kc=typeof Uint8Array<"u"&&Uint8Array)=="function"?Kc:Object,typeof(Xc=typeof Record<"u"&&Record)=="function"?Xc:Object,Object]),it("design:returntype",typeof(Yc=typeof Promise<"u"&&Promise)=="function"?Yc:Object)],d.Cryptor.prototype,"decrypt",null),dr([R("mesh.crypt.hash",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(Qc=typeof Uint8Array<"u"&&Uint8Array)=="function"?Qc:Object,typeof(Zc=typeof Record<"u"&&Record)=="function"?Zc:Object,Object]),it("design:returntype",typeof(ea=typeof Promise<"u"&&Promise)=="function"?ea:Object)],d.Cryptor.prototype,"hash",null),dr([R("mesh.crypt.sign",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(ta=typeof Uint8Array<"u"&&Uint8Array)=="function"?ta:Object,typeof(na=typeof Record<"u"&&Record)=="function"?na:Object,Object]),it("design:returntype",typeof(ra=typeof Promise<"u"&&Promise)=="function"?ra:Object)],d.Cryptor.prototype,"sign",null),dr([R("mesh.crypt.verify",Boolean),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(ia=typeof Uint8Array<"u"&&Uint8Array)=="function"?ia:Object,typeof(oa=typeof Record<"u"&&Record)=="function"?oa:Object,Object]),it("design:returntype",typeof(sa=typeof Promise<"u"&&Promise)=="function"?sa:Object)],d.Cryptor.prototype,"verify",null),d.Cryptor=dr([L("mpi")],d.Cryptor);var pr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ot=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Kr=function(r,e){return function(t,n){e(t,n,r)}},ca,aa,ua,fa,da,pa,la,ya,ma;d.DataHouse=class{writes(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}write(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}read(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}indies(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}tables(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},pr([R("mesh.dh.writes",Object),Kr(0,p(0,"docs",[Array,Pn])),ot("design:type",Function),ot("design:paramtypes",[Array,Object]),ot("design:returntype",typeof(ca=typeof Promise<"u"&&Promise)=="function"?ca:Object)],d.DataHouse.prototype,"writes",null),pr([R("mesh.dh.write",Object),Kr(0,p(0,"doc",Pn)),ot("design:type",Function),ot("design:paramtypes",[typeof(aa=typeof Pn<"u"&&Pn)=="function"?aa:Object,Object]),ot("design:returntype",typeof(ua=typeof Promise<"u"&&Promise)=="function"?ua:Object)],d.DataHouse.prototype,"write",null),pr([R("mesh.dh.read",[Fe,Object]),Kr(0,p(0,"index",J)),ot("design:type",Function),ot("design:paramtypes",[typeof(fa=typeof J<"u"&&J)=="function"?fa:Object,Object]),ot("design:returntype",typeof(da=typeof Promise<"u"&&Promise)=="function"?da:Object)],d.DataHouse.prototype,"read",null),pr([R("mesh.dh.indies",[Fe,Object]),Kr(0,p(0,"index",J)),ot("design:type",Function),ot("design:paramtypes",[typeof(pa=typeof J<"u"&&J)=="function"?pa:Object,Object]),ot("design:returntype",typeof(la=typeof Promise<"u"&&Promise)=="function"?la:Object)],d.DataHouse.prototype,"indies",null),pr([R("mesh.dh.tables",[Fe,Object]),Kr(0,p(0,"index",J)),ot("design:type",Function),ot("design:paramtypes",[typeof(ya=typeof J<"u"&&J)=="function"?ya:Object,Object]),ot("design:returntype",typeof(ma=typeof Promise<"u"&&Promise)=="function"?ma:Object)],d.DataHouse.prototype,"tables",null),d.DataHouse=pr([L("mpi")],d.DataHouse);var yo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},lr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ei=function(r,e){return function(t,n){e(t,n,r)}},ha,ga,ba;d.Dispatcher=class{invoke(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}invoke0(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},yo([Ei(0,p(0,"urn",String)),Ei(1,p(1,"param",[Map,String,Object])),lr("design:type",Function),lr("design:paramtypes",[String,typeof(ha=typeof Record<"u"&&Record)=="function"?ha:Object,Object]),lr("design:returntype",typeof(ga=typeof Promise<"u"&&Promise)=="function"?ga:Object)],d.Dispatcher.prototype,"invoke",null),yo([Ei(0,p(0,"urn",String)),Ei(1,p(1,"param",Object)),lr("design:type",Function),lr("design:paramtypes",[String,Object,Object]),lr("design:returntype",typeof(ba=typeof Promise<"u"&&Promise)=="function"?ba:Object)],d.Dispatcher.prototype,"invoke0",null),d.Dispatcher=yo([L("spi")],d.Dispatcher);var mo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},yr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},_a=function(r,e){return function(t,n){e(t,n,r)}},Oa,Sa,Ra;d.Endpoint=class{fuzzy(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},mo([R("${mesh.uname}",Uint8Array),_a(0,p(0,"buff",Uint8Array)),yr("design:type",Function),yr("design:paramtypes",[typeof(Oa=typeof Uint8Array<"u"&&Uint8Array)=="function"?Oa:Object,Object]),yr("design:returntype",typeof(Sa=typeof Promise<"u"&&Promise)=="function"?Sa:Object)],d.Endpoint.prototype,"fuzzy",null),d.Endpoint=mo([L("mpi")],d.Endpoint);class va{stick(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}}mo([_a(0,p(0,"varg",Object)),yr("design:type",Function),yr("design:paramtypes",[Object,Object]),yr("design:returntype",typeof(Ra=typeof Promise<"u"&&Promise)=="function"?Ra:Object)],va.prototype,"stick",null);var Xr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},It=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},mr=function(r,e){return function(t,n){e(t,n,r)}},Pa,wa,ja,Ea,Ta,Na,Aa,Ia;d.Evaluator=class{compile(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}exec(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Xr([R("mesh.eval.compile",String),mr(0,p(0,"script",Tt)),It("design:type",Function),It("design:paramtypes",[typeof(Pa=typeof Tt<"u"&&Tt)=="function"?Pa:Object,Object]),It("design:returntype",typeof(wa=typeof Promise<"u"&&Promise)=="function"?wa:Object)],d.Evaluator.prototype,"compile",null),Xr([R("mesh.eval.exec",String),mr(0,p(0,"code",String)),mr(1,p(1,"args",[Map,String,String])),mr(2,p(2,"dft",String)),It("design:type",Function),It("design:paramtypes",[String,typeof(ja=typeof Record<"u"&&Record)=="function"?ja:Object,String,Object]),It("design:returntype",typeof(Ea=typeof Promise<"u"&&Promise)=="function"?Ea:Object)],d.Evaluator.prototype,"exec",null),Xr([R("mesh.eval.dump",[Array,Tt]),mr(0,p(0,"feature",[Map,String,String])),It("design:type",Function),It("design:paramtypes",[typeof(Ta=typeof Record<"u"&&Record)=="function"?Ta:Object,Object]),It("design:returntype",typeof(Na=typeof Promise<"u"&&Promise)=="function"?Na:Object)],d.Evaluator.prototype,"dump",null),Xr([R("mesh.eval.index",[Fe,Tt]),mr(0,p(0,"index",J)),It("design:type",Function),It("design:paramtypes",[typeof(Aa=typeof J<"u"&&J)=="function"?Aa:Object,Object]),It("design:returntype",typeof(Ia=typeof Promise<"u"&&Promise)=="function"?Ia:Object)],d.Evaluator.prototype,"index",null),d.Evaluator=Xr([L("mpi")],d.Evaluator);var ho=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ti=function(r,e){return function(t,n){e(t,n,r)}},Ma,Ca,Ua,$a;d.Graph=class{query(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}exec(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},ho([R("mesh.graph.query",[Array,[Map,String,Object]]),Ti(0,p(0,"expr",String)),Ti(1,p(1,"args",[Map,String,Object])),hr("design:type",Function),hr("design:paramtypes",[String,typeof(Ma=typeof Record<"u"&&Record)=="function"?Ma:Object,Object]),hr("design:returntype",typeof(Ca=typeof Promise<"u"&&Promise)=="function"?Ca:Object)],d.Graph.prototype,"query",null),ho([R("mesh.graph.exec",Object),Ti(0,p(0,"expr",String)),Ti(1,p(1,"args",[Map,String,Object])),hr("design:type",Function),hr("design:paramtypes",[String,typeof(Ua=typeof Record<"u"&&Record)=="function"?Ua:Object,Object]),hr("design:returntype",typeof($a=typeof Promise<"u"&&Promise)=="function"?$a:Object)],d.Graph.prototype,"exec",null),d.Graph=ho([L("mpi")],d.Graph);var Yr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Mt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},go=function(r,e){return function(t,n){e(t,n,r)}},Fa,ka,xa,Ba,Da,La;d.KMS=class{reset(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}environ(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}list(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}issue(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Yr([R("kms.store.reset",Object),go(0,p(0,"env",xe)),Mt("design:type",Function),Mt("design:paramtypes",[typeof(Fa=typeof xe<"u"&&xe)=="function"?Fa:Object,Object]),Mt("design:returntype",typeof(ka=typeof Promise<"u"&&Promise)=="function"?ka:Object)],d.KMS.prototype,"reset",null),Yr([R("kms.store.environ",xe),Mt("design:type",Function),Mt("design:paramtypes",[Object]),Mt("design:returntype",typeof(xa=typeof Promise<"u"&&Promise)=="function"?xa:Object)],d.KMS.prototype,"environ",null),Yr([R("kms.crt.store.list",[Array,tr]),go(0,p(0,"cno",String)),Mt("design:type",Function),Mt("design:paramtypes",[String,Object]),Mt("design:returntype",typeof(Ba=typeof Promise<"u"&&Promise)=="function"?Ba:Object)],d.KMS.prototype,"list",null),Yr([R("kms.crt.apply.issue",[Array,tr]),go(0,p(0,"csr",ft)),Mt("design:type",Function),Mt("design:paramtypes",[typeof(Da=typeof ft<"u"&&ft)=="function"?Da:Object,Object]),Mt("design:returntype",typeof(La=typeof Promise<"u"&&Promise)=="function"?La:Object)],d.KMS.prototype,"issue",null),d.KMS=Yr([L("mpi")],d.KMS);var gr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},st=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},br=function(r,e){return function(t,n){e(t,n,r)}},Ha,qa,za,Ga,Wa,Va,Ja;d.KV=class{get(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}put(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}remove(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}keys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},gr([R("mesh.kv.get",Re),br(0,p(0,"key",String)),st("design:type",Function),st("design:paramtypes",[String,Object]),st("design:returntype",typeof(Ha=typeof Promise<"u"&&Promise)=="function"?Ha:Object)],d.KV.prototype,"get",null),gr([R("mesh.kv.put",Object),br(0,p(0,"key",String)),br(1,p(1,"value",Re)),st("design:type",Function),st("design:paramtypes",[String,typeof(qa=typeof Re<"u"&&Re)=="function"?qa:Object,Object]),st("design:returntype",typeof(za=typeof Promise<"u"&&Promise)=="function"?za:Object)],d.KV.prototype,"put",null),gr([R("mesh.kv.remove",Object),br(0,p(0,"key",String)),st("design:type",Function),st("design:paramtypes",[String,Object]),st("design:returntype",typeof(Ga=typeof Promise<"u"&&Promise)=="function"?Ga:Object)],d.KV.prototype,"remove",null),gr([R("mesh.kv.keys",[Array,String]),br(0,p(0,"pattern",String)),st("design:type",Function),st("design:paramtypes",[String,Object]),st("design:returntype",typeof(Wa=typeof Promise<"u"&&Promise)=="function"?Wa:Object)],d.KV.prototype,"keys",null),gr([R("mesh.kv.index",[Fe,Hr]),br(0,p(0,"index",J)),st("design:type",Function),st("design:paramtypes",[typeof(Va=typeof J<"u"&&J)=="function"?Va:Object,Object]),st("design:returntype",typeof(Ja=typeof Promise<"u"&&Promise)=="function"?Ja:Object)],d.KV.prototype,"index",null),d.KV=gr([L("mesh")],d.KV);var _r=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ct=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},pp=function(r,e){return function(t,n){e(t,n,r)}},Ka,Xa,Ya,Qa,Za;d.Licenser=class{imports(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}exports(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}explain(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}verify(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}features(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}},_r([R("mesh.license.imports",Object),pp(0,p(0,"license",String)),ct("design:type",Function),ct("design:paramtypes",[String,Object]),ct("design:returntype",typeof(Ka=typeof Promise<"u"&&Promise)=="function"?Ka:Object)],d.Licenser.prototype,"imports",null),_r([R("mesh.license.exports",String),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Xa=typeof Promise<"u"&&Promise)=="function"?Xa:Object)],d.Licenser.prototype,"exports",null),_r([R("mesh.license.explain",ye),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Ya=typeof Promise<"u"&&Promise)=="function"?Ya:Object)],d.Licenser.prototype,"explain",null),_r([R("mesh.license.verify",Number),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Qa=typeof Promise<"u"&&Promise)=="function"?Qa:Object)],d.Licenser.prototype,"verify",null),_r([R("mesh.license.features",[Map,String,String]),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Za=typeof Promise<"u"&&Promise)=="function"?Za:Object)],d.Licenser.prototype,"features",null),d.Licenser=_r([L("mpi")],d.Licenser);var Qr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ct=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Or=function(r,e){return function(t,n){e(t,n,r)}},eu,tu,nu,ru;d.Locker=class{lock(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}unlock(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}readLock(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}readUnlock(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Qr([R("mesh.locker.w.lock",Boolean),Or(0,p(0,"rid",String)),Or(1,p(1,"timeout",Number)),Ct("design:type",Function),Ct("design:paramtypes",[String,Number,Object]),Ct("design:returntype",typeof(eu=typeof Promise<"u"&&Promise)=="function"?eu:Object)],d.Locker.prototype,"lock",null),Qr([R("mesh.locker.w.unlock",Object),Or(0,p(0,"rid",String)),Ct("design:type",Function),Ct("design:paramtypes",[String,Object]),Ct("design:returntype",typeof(tu=typeof Promise<"u"&&Promise)=="function"?tu:Object)],d.Locker.prototype,"unlock",null),Qr([R("mesh.locker.r.lock",Boolean),Or(0,p(0,"rid",String)),Or(1,p(1,"timeout",Number)),Ct("design:type",Function),Ct("design:paramtypes",[String,Number,Object]),Ct("design:returntype",typeof(nu=typeof Promise<"u"&&Promise)=="function"?nu:Object)],d.Locker.prototype,"readLock",null),Qr([R("mesh.locker.r.unlock",Object),Or(0,p(0,"rid",String)),Ct("design:type",Function),Ct("design:paramtypes",[String,Object]),Ct("design:returntype",typeof(ru=typeof Promise<"u"&&Promise)=="function"?ru:Object)],d.Locker.prototype,"readUnlock",null),d.Locker=Qr([L("mpi")],d.Locker);var Ut=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ie=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},mn=function(r,e){return function(t,n){e(t,n,r)}},iu,ou,su,cu,au,uu,fu,du,pu,lu,yu,mu,hu;d.Network=class{environ(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}accessible(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}refresh(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}route(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}routes(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}disable(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}enable(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}version(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}exports(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}imports(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Ut([R("mesh.net.environ",xe),ie("design:type",Function),ie("design:paramtypes",[Object]),ie("design:returntype",typeof(iu=typeof Promise<"u"&&Promise)=="function"?iu:Object)],d.Network.prototype,"environ",null),Ut([R("mesh.net.accessible",Boolean),mn(0,p(0,"route",ue)),ie("design:type",Function),ie("design:paramtypes",[typeof(ou=typeof ue<"u"&&ue)=="function"?ou:Object,Object]),ie("design:returntype",typeof(su=typeof Promise<"u"&&Promise)=="function"?su:Object)],d.Network.prototype,"accessible",null),Ut([R("mesh.net.refresh",Object),mn(0,p(0,"routes",[Array,ue])),ie("design:type",Function),ie("design:paramtypes",[Array,Object]),ie("design:returntype",typeof(cu=typeof Promise<"u"&&Promise)=="function"?cu:Object)],d.Network.prototype,"refresh",null),Ut([R("mesh.net.route",ue),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(au=typeof Promise<"u"&&Promise)=="function"?au:Object)],d.Network.prototype,"route",null),Ut([R("mesh.net.routes",[Array,ue]),ie("design:type",Function),ie("design:paramtypes",[Object]),ie("design:returntype",typeof(uu=typeof Promise<"u"&&Promise)=="function"?uu:Object)],d.Network.prototype,"routes",null),Ut([R("mesh.net.disable",Object),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(fu=typeof Promise<"u"&&Promise)=="function"?fu:Object)],d.Network.prototype,"disable",null),Ut([R("mesh.net.enable",Object),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(du=typeof Promise<"u"&&Promise)=="function"?du:Object)],d.Network.prototype,"enable",null),Ut([R("mesh.net.index",[Fe,ue]),mn(0,p(0,"index",J)),ie("design:type",Function),ie("design:paramtypes",[typeof(pu=typeof J<"u"&&J)=="function"?pu:Object,Object]),ie("design:returntype",typeof(lu=typeof Promise<"u"&&Promise)=="function"?lu:Object)],d.Network.prototype,"index",null),Ut([R("mesh.net.version",Wr),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(yu=typeof Promise<"u"&&Promise)=="function"?yu:Object)],d.Network.prototype,"version",null),Ut([R("mesh.net.exports",String),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(mu=typeof Promise<"u"&&Promise)=="function"?mu:Object)],d.Network.prototype,"exports",null),Ut([R("mesh.net.imports",Object),mn(0,p(0,"crt",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(hu=typeof Promise<"u"&&Promise)=="function"?hu:Object)],d.Network.prototype,"imports",null),d.Network=Ut([L("mpi")],d.Network);var Zr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},$t=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},In=function(r,e){return function(t,n){e(t,n,r)}},gu,bu,_u,Ou,Su,Ru;d.Pipeline=class{peek(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}pop(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}push(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}release(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Zr([R("mesh.chan.peek",Uint8Array),In(0,p(0,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[String,Object]),$t("design:returntype",typeof(gu=typeof Promise<"u"&&Promise)=="function"?gu:Object)],d.Pipeline.prototype,"peek",null),Zr([R("mesh.chan.pop",Uint8Array),In(0,p(0,"timeout",Number)),In(1,p(1,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[Number,String,Object]),$t("design:returntype",typeof(bu=typeof Promise<"u"&&Promise)=="function"?bu:Object)],d.Pipeline.prototype,"pop",null),Zr([R("mesh.chan.push",Object),In(0,p(0,"payload",Uint8Array)),In(1,p(1,"metadata",[Map,String,String])),In(2,p(2,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[typeof(_u=typeof Uint8Array<"u"&&Uint8Array)=="function"?_u:Object,typeof(Ou=typeof Record<"u"&&Record)=="function"?Ou:Object,String,Object]),$t("design:returntype",typeof(Su=typeof Promise<"u"&&Promise)=="function"?Su:Object)],d.Pipeline.prototype,"push",null),Zr([R("mesh.chan.release",Object),In(0,p(0,"timeout",Number)),In(1,p(1,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[Number,String,Object]),$t("design:returntype",typeof(Ru=typeof Promise<"u"&&Promise)=="function"?Ru:Object)],d.Pipeline.prototype,"release",null),d.Pipeline=Zr([L("mpi")],d.Pipeline);var bo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},vu=function(r,e){return function(t,n){e(t,n,r)}},Pu,wu;d.Publisher=class{publish(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}broadcast(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},bo([R("mesh.queue.publish",[Array,String]),vu(0,p(0,"events",[Array,Ve])),Sr("design:type",Function),Sr("design:paramtypes",[Array,Object]),Sr("design:returntype",typeof(Pu=typeof Promise<"u"&&Promise)=="function"?Pu:Object)],d.Publisher.prototype,"publish",null),bo([R("mesh.queue.multicast",[Array,String]),vu(0,p(0,"events",[Array,Ve])),Sr("design:type",Function),Sr("design:paramtypes",[Array,Object]),Sr("design:returntype",typeof(wu=typeof Promise<"u"&&Promise)=="function"?wu:Object)],d.Publisher.prototype,"broadcast",null),d.Publisher=bo([L("mpi")],d.Publisher);var ei=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ft=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ni=function(r,e){return function(t,n){e(t,n,r)}},ju,Eu,Tu,Nu,Au,Iu;d.Registry=class{register(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}registers(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}unregister(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}export(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},ei([R("mesh.registry.put",Object),Ni(0,p(0,"registration",[Je,Object])),Ft("design:type",Function),Ft("design:paramtypes",[typeof(ju=typeof Je<"u"&&Je)=="function"?ju:Object,Object]),Ft("design:returntype",typeof(Eu=typeof Promise<"u"&&Promise)=="function"?Eu:Object)],d.Registry.prototype,"register",null),ei([R("mesh.registry.puts",Object),Ni(0,p(0,"registrations",[Array,[Je,Object]])),Ft("design:type",Function),Ft("design:paramtypes",[Array,Object]),Ft("design:returntype",typeof(Tu=typeof Promise<"u"&&Promise)=="function"?Tu:Object)],d.Registry.prototype,"registers",null),ei([R("mesh.registry.remove",Object),Ni(0,p(0,"registration",[Je,Object])),Ft("design:type",Function),Ft("design:paramtypes",[typeof(Nu=typeof Je<"u"&&Je)=="function"?Nu:Object,Object]),Ft("design:returntype",typeof(Au=typeof Promise<"u"&&Promise)=="function"?Au:Object)],d.Registry.prototype,"unregister",null),ei([R("mesh.registry.export",[Array,[Je,Object]]),Ni(0,p(0,"kind",String)),Ft("design:type",Function),Ft("design:paramtypes",[String,Object]),Ft("design:returntype",typeof(Iu=typeof Promise<"u"&&Promise)=="function"?Iu:Object)],d.Registry.prototype,"export",null),d.Registry=ei([L("mpi")],d.Registry);var Rr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},lt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ti=function(r,e){return function(t,n){e(t,n,r)}},Mu,Cu,Uu,$u,Fu,ku,xu;class ni{with(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}withMap(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}local(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}any(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}many(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}}Rr([ti(0,p(0,"key",String)),ti(1,p(1,"value",String)),lt("design:type",Function),lt("design:paramtypes",[String,String,Object]),lt("design:returntype",typeof(Mu=typeof Promise<"u"&&Promise)=="function"?Mu:Object)],ni.prototype,"with",null),Rr([ti(0,p(0,"attachments",[Map,String,String])),lt("design:type",Function),lt("design:paramtypes",[typeof(Cu=typeof Record<"u"&&Record)=="function"?Cu:Object,Object]),lt("design:returntype",typeof(Uu=typeof Promise<"u"&&Promise)=="function"?Uu:Object)],ni.prototype,"withMap",null),Rr([ti(0,p(0,"principal",nt)),lt("design:type",Function),lt("design:paramtypes",[typeof($u=typeof nt<"u"&&nt)=="function"?$u:Object,Object]),lt("design:returntype",typeof(Fu=typeof Promise<"u"&&Promise)=="function"?Fu:Object)],ni.prototype,"any",null),Rr([ti(0,p(0,"principals",[Array,nt])),lt("design:type",Function),lt("design:paramtypes",[Array,Object]),lt("design:returntype",typeof(ku=typeof Promise<"u"&&Promise)=="function"?ku:Object)],ni.prototype,"many",null);class _o{constructor(){c(this,"reference");c(this,"attachments",{})}}Rr([p(0,"reference",Object),lt("design:type",Object)],_o.prototype,"reference",void 0),Rr([p(1,"attachments",[Map,String,String]),lt("design:type",typeof(xu=typeof Record<"u"&&Record)=="function"?xu:Object)],_o.prototype,"attachments",void 0);var vr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},at=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ri=function(r,e){return function(t,n){e(t,n,r)}},Bu,Du,Lu,Hu,qu,zu,Gu,Wu;d.Savepoint=class{begin(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}commit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}rollback(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}execute(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}redo(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},vr([R("mesh.savepoint.begin",String),ri(0,p(0,"definition",Nn)),at("design:type",Function),at("design:paramtypes",[typeof(Bu=typeof Nn<"u"&&Nn)=="function"?Bu:Object,Object]),at("design:returntype",typeof(Du=typeof Promise<"u"&&Promise)=="function"?Du:Object)],d.Savepoint.prototype,"begin",null),vr([R("mesh.savepoint.commit",Object),ri(0,p(0,"xid",String)),at("design:type",Function),at("design:paramtypes",[String,Object]),at("design:returntype",typeof(Lu=typeof Promise<"u"&&Promise)=="function"?Lu:Object)],d.Savepoint.prototype,"commit",null),vr([R("mesh.savepoint.rollback",Object),ri(0,p(0,"xid",String)),at("design:type",Function),at("design:paramtypes",[String,Object]),at("design:returntype",typeof(Hu=typeof Promise<"u"&&Promise)=="function"?Hu:Object)],d.Savepoint.prototype,"rollback",null),vr([R("mesh.savepoint.execute",Uint8Array),ri(0,p(0,"branch",Qt)),at("design:type",Function),at("design:paramtypes",[typeof(qu=typeof Qt<"u"&&Qt)=="function"?qu:Object,Object]),at("design:returntype",typeof(zu=typeof Promise<"u"&&Promise)=="function"?zu:Object)],d.Savepoint.prototype,"execute",null),vr([R("mesh.savepoint.redo",Object),ri(0,p(0,"commit",Uint8Array)),at("design:type",Function),at("design:paramtypes",[typeof(Gu=typeof Uint8Array<"u"&&Uint8Array)=="function"?Gu:Object,Object]),at("design:returntype",typeof(Wu=typeof Promise<"u"&&Promise)=="function"?Wu:Object)],d.Savepoint.prototype,"redo",null),d.Savepoint=vr([L("mpi")],d.Savepoint);var hn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},en=function(r,e){return function(t,n){e(t,n,r)}},Vu,Ju,Ku,Xu,Yu,Qu,Zu,ef,tf,nf,rf,of;d.Scheduler=class{timeout(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}cron(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}period(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}cancel(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}stop(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}emit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}shutdown(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},hn([R("mesh.schedule.timeout",String),en(0,p(0,"timeout",Jt)),en(1,p(1,"duration",Number)),Pe("design:type",Function),Pe("design:paramtypes",[typeof(Vu=typeof Jt<"u"&&Jt)=="function"?Vu:Object,Number,Object]),Pe("design:returntype",typeof(Ju=typeof Promise<"u"&&Promise)=="function"?Ju:Object)],d.Scheduler.prototype,"timeout",null),hn([R("mesh.schedule.cron",String),en(0,p(0,"cron",String)),en(1,p(1,"topic",je)),Pe("design:type",Function),Pe("design:paramtypes",[String,typeof(Ku=typeof je<"u"&&je)=="function"?Ku:Object,Object]),Pe("design:returntype",typeof(Xu=typeof Promise<"u"&&Promise)=="function"?Xu:Object)],d.Scheduler.prototype,"cron",null),hn([R("mesh.schedule.period",String),en(0,p(0,"duration",Number)),en(1,p(1,"topic",je)),Pe("design:type",Function),Pe("design:paramtypes",[Number,typeof(Yu=typeof je<"u"&&je)=="function"?Yu:Object,Object]),Pe("design:returntype",typeof(Qu=typeof Promise<"u"&&Promise)=="function"?Qu:Object)],d.Scheduler.prototype,"period",null),hn([R("mesh.schedule.dump",[Array,String]),Pe("design:type",Function),Pe("design:paramtypes",[Object]),Pe("design:returntype",typeof(Zu=typeof Promise<"u"&&Promise)=="function"?Zu:Object)],d.Scheduler.prototype,"dump",null),hn([R("mesh.schedule.cancel",Boolean),en(0,p(0,"task_id",String)),Pe("design:type",Function),Pe("design:paramtypes",[String,Object]),Pe("design:returntype",typeof(ef=typeof Promise<"u"&&Promise)=="function"?ef:Object)],d.Scheduler.prototype,"cancel",null),hn([R("mesh.schedule.stop",Boolean),en(0,p(0,"task_id",String)),Pe("design:type",Function),Pe("design:paramtypes",[String,Object]),Pe("design:returntype",typeof(tf=typeof Promise<"u"&&Promise)=="function"?tf:Object)],d.Scheduler.prototype,"stop",null),hn([R("mesh.schedule.emit",Object),en(0,p(0,"topic",je)),Pe("design:type",Function),Pe("design:paramtypes",[typeof(nf=typeof je<"u"&&je)=="function"?nf:Object,Object]),Pe("design:returntype",typeof(rf=typeof Promise<"u"&&Promise)=="function"?rf:Object)],d.Scheduler.prototype,"emit",null),hn([R("mesh.schedule.shutdown",Object),en(0,p(0,"duration",Number)),Pe("design:type",Function),Pe("design:paramtypes",[Number,Object]),Pe("design:returntype",typeof(of=typeof Promise<"u"&&Promise)=="function"?of:Object)],d.Scheduler.prototype,"shutdown",null),d.Scheduler=hn([L("mpi")],d.Scheduler);var Oo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ii=function(r,e){return function(t,n){e(t,n,r)}},sf,cf;d.Sequence=class{next(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}section(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Oo([R("mesh.sequence.next",String),ii(0,p(0,"kind",String)),ii(1,p(1,"length",Number)),Pr("design:type",Function),Pr("design:paramtypes",[String,Number,Object]),Pr("design:returntype",typeof(sf=typeof Promise<"u"&&Promise)=="function"?sf:Object)],d.Sequence.prototype,"next",null),Oo([R("mesh.sequence.section",[Array,String]),ii(0,p(0,"kind",String)),ii(1,p(1,"size",Number)),ii(2,p(2,"length",Number)),Pr("design:type",Function),Pr("design:paramtypes",[String,Number,Number,Object]),Pr("design:returntype",typeof(cf=typeof Promise<"u"&&Promise)=="function"?cf:Object)],d.Sequence.prototype,"section",null),d.Sequence=Oo([L("mpi")],d.Sequence);var af=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},So=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},lp=function(r,e){return function(t,n){e(t,n,r)}},uf,ff;d.Subscriber=class{subscribe(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},af([R("mesh.queue.subscribe",Object),lp(0,p(0,"event",Ve)),So("design:type",Function),So("design:paramtypes",[typeof(uf=typeof Ve<"u"&&Ve)=="function"?uf:Object,Object]),So("design:returntype",typeof(ff=typeof Promise<"u"&&Promise)=="function"?ff:Object)],d.Subscriber.prototype,"subscribe",null),d.Subscriber=af([L("mpi")],d.Subscriber);var kt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},oe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},yt=function(r,e){return function(t,n){e(t,n,r)}},df,pf,lf,yf,mf,hf,gf,bf,_f,Of,Sf,Rf,vf,Pf;d.Tokenizer=class{captcha(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}matches(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}apply(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}verify(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}quickauth(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}grant(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}accept(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}reject(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}authorize(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}authenticate(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}refresh(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},kt([R("mesh.captcha.apply",ir),yt(0,p(0,"kind",String)),yt(1,p(1,"features",[Map,String,String])),oe("design:type",Function),oe("design:paramtypes",[String,typeof(df=typeof Record<"u"&&Record)=="function"?df:Object,Object]),oe("design:returntype",typeof(pf=typeof Promise<"u"&&Promise)=="function"?pf:Object)],d.Tokenizer.prototype,"captcha",null),kt([R("mesh.captcha.match",Boolean),yt(0,p(0,"mno",String)),yt(1,p(1,"value",String)),oe("design:type",Function),oe("design:paramtypes",[String,String,Object]),oe("design:returntype",typeof(lf=typeof Promise<"u"&&Promise)=="function"?lf:Object)],d.Tokenizer.prototype,"matches",null),kt([R("mesh.trust.apply",String),yt(0,p(0,"kind",String)),yt(1,p(1,"duration",Number)),oe("design:type",Function),oe("design:paramtypes",[String,Number,Object]),oe("design:returntype",typeof(yf=typeof Promise<"u"&&Promise)=="function"?yf:Object)],d.Tokenizer.prototype,"apply",null),kt([R("mesh.trust.verify",Boolean),yt(0,p(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(mf=typeof Promise<"u"&&Promise)=="function"?mf:Object)],d.Tokenizer.prototype,"verify",null),kt([R("mesh.oauth2.quickauth",an),yt(0,p(0,"credential",jt)),oe("design:type",Function),oe("design:paramtypes",[typeof(hf=typeof jt<"u"&&jt)=="function"?hf:Object,Object]),oe("design:returntype",typeof(gf=typeof Promise<"u"&&Promise)=="function"?gf:Object)],d.Tokenizer.prototype,"quickauth",null),kt([R("mesh.oauth2.grant",co),yt(0,p(0,"credential",jt)),oe("design:type",Function),oe("design:paramtypes",[typeof(bf=typeof jt<"u"&&jt)=="function"?bf:Object,Object]),oe("design:returntype",typeof(_f=typeof Promise<"u"&&Promise)=="function"?_f:Object)],d.Tokenizer.prototype,"grant",null),kt([R("mesh.oauth2.accept",ji),yt(0,p(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Of=typeof Promise<"u"&&Promise)=="function"?Of:Object)],d.Tokenizer.prototype,"accept",null),kt([R("mesh.oauth2.reject",Object),yt(0,p(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Sf=typeof Promise<"u"&&Promise)=="function"?Sf:Object)],d.Tokenizer.prototype,"reject",null),kt([R("mesh.oauth2.authorize",an),yt(0,p(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Rf=typeof Promise<"u"&&Promise)=="function"?Rf:Object)],d.Tokenizer.prototype,"authorize",null),kt([R("mesh.oauth2.authenticate",qr),yt(0,p(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(vf=typeof Promise<"u"&&Promise)=="function"?vf:Object)],d.Tokenizer.prototype,"authenticate",null),kt([R("mesh.oauth2.refresh",an),yt(0,p(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Pf=typeof Promise<"u"&&Promise)=="function"?Pf:Object)],d.Tokenizer.prototype,"refresh",null),d.Tokenizer=kt([L("mpi")],d.Tokenizer);var Gn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},De=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},tn=function(r,e){return function(t,n){e(t,n,r)}},wf,jf,Ef,Tf,Nf,Af,If;d.Transporter=class{attach(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}detach(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}scan(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}write(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}read(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}clean(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Gn([R("${mesh.name}.tcp.attach",String),tn(0,p(0,"uri",String)),tn(1,p(1,"pdc",String)),De("design:type",Function),De("design:paramtypes",[String,String,Object]),De("design:returntype",typeof(wf=typeof Promise<"u"&&Promise)=="function"?wf:Object)],d.Transporter.prototype,"attach",null),Gn([R("${mesh.name}.tcp.detach",Object),tn(0,p(0,"descriptor",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(jf=typeof Promise<"u"&&Promise)=="function"?jf:Object)],d.Transporter.prototype,"detach",null),Gn([R("${mesh.name}.tcp.scan",[Array,Nt]),tn(0,p(0,"rid",String)),tn(1,p(1,"h",Number)),tn(2,p(2,"limit",Number)),De("design:type",Function),De("design:paramtypes",[String,Number,Number,Object]),De("design:returntype",typeof(Ef=typeof Promise<"u"&&Promise)=="function"?Ef:Object)],d.Transporter.prototype,"scan",null),Gn([R("${mesh.name}.tcp.write",Object),tn(0,p(0,"packet",Nt)),De("design:type",Function),De("design:paramtypes",[typeof(Tf=typeof Nt<"u"&&Nt)=="function"?Tf:Object,Object]),De("design:returntype",typeof(Nf=typeof Promise<"u"&&Promise)=="function"?Nf:Object)],d.Transporter.prototype,"write",null),Gn([R("${mesh.name}.tcp.read",[Array,Nt]),tn(0,p(0,"bucket",String)),tn(1,p(1,"limit",Number)),De("design:type",Function),De("design:paramtypes",[String,Number,Object]),De("design:returntype",typeof(Af=typeof Promise<"u"&&Promise)=="function"?Af:Object)],d.Transporter.prototype,"read",null),Gn([R("${mesh.name}.tcp.clean",Object),tn(0,p(0,"buckets",[Array,String])),De("design:type",Function),De("design:paramtypes",[Array,Object]),De("design:returntype",typeof(If=typeof Promise<"u"&&Promise)=="function"?If:Object)],d.Transporter.prototype,"clean",null),d.Transporter=Gn([L("mpi")],d.Transporter);var Mn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ie=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Cn=function(r,e){return function(t,n){e(t,n,r)}},Mf,Cf,Uf,$f,Ff,kf,xf,Bf;d.FileSystem=class{exist(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}mkdir(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}write(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}read(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}remove(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}delete(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}list(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Mn([R("mesh.fs.exist",Boolean),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Mf=typeof Promise<"u"&&Promise)=="function"?Mf:Object)],d.FileSystem.prototype,"exist",null),Mn([R("mesh.fs.mkdir",Object),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Cf=typeof Promise<"u"&&Promise)=="function"?Cf:Object)],d.FileSystem.prototype,"mkdir",null),Mn([R("mesh.fs.write",Object),Cn(0,p(0,"path",String)),Cn(1,p(1,"buff",Uint8Array)),Ie("design:type",Function),Ie("design:paramtypes",[String,typeof(Uf=typeof Uint8Array<"u"&&Uint8Array)=="function"?Uf:Object,Object]),Ie("design:returntype",typeof($f=typeof Promise<"u"&&Promise)=="function"?$f:Object)],d.FileSystem.prototype,"write",null),Mn([R("mesh.fs.read",Uint8Array),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Ff=typeof Promise<"u"&&Promise)=="function"?Ff:Object)],d.FileSystem.prototype,"read",null),Mn([R("mesh.fs.remove",Object),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(kf=typeof Promise<"u"&&Promise)=="function"?kf:Object)],d.FileSystem.prototype,"remove",null),Mn([R("mesh.fs.delete",Object),Cn(0,p(0,"paths",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(xf=typeof Promise<"u"&&Promise)=="function"?xf:Object)],d.FileSystem.prototype,"delete",null),Mn([R("mesh.fs.ls",er),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Bf=typeof Promise<"u"&&Promise)=="function"?Bf:Object)],d.FileSystem.prototype,"list",null),d.FileSystem=Mn([L("mpi")],d.FileSystem);var Un=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Me=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Wn=function(r,e){return function(t,n){e(t,n,r)}},Df,Lf,Hf,qf,zf,Gf,Wf,Vf,Jf,Kf,Xf,Yf,Qf,Zf;d.Workflow=class{mass(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}groups(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}compile(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}submit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}take(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}routines(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Un([R("mesh.workflow.mass",String),Wn(0,p(0,"group",pn)),Me("design:type",Function),Me("design:paramtypes",[typeof(Df=typeof pn<"u"&&pn)=="function"?Df:Object,Object]),Me("design:returntype",typeof(Lf=typeof Promise<"u"&&Promise)=="function"?Lf:Object)],d.Workflow.prototype,"mass",null),Un([R("mesh.workflow.groups",[Fe,pn]),Wn(0,p(0,"index",J)),Me("design:type",Function),Me("design:paramtypes",[typeof(Hf=typeof J<"u"&&J)=="function"?Hf:Object,Object]),Me("design:returntype",typeof(qf=typeof Promise<"u"&&Promise)=="function"?qf:Object)],d.Workflow.prototype,"groups",null),Un([R("mesh.workflow.compile",String),Wn(0,p(0,"chart",pt)),Me("design:type",Function),Me("design:paramtypes",[typeof(zf=typeof pt<"u"&&pt)=="function"?zf:Object,Object]),Me("design:returntype",typeof(Gf=typeof Promise<"u"&&Promise)=="function"?Gf:Object)],d.Workflow.prototype,"compile",null),Un([R("mesh.workflow.index",[Fe,pt]),Wn(0,p(0,"index",J)),Me("design:type",Function),Me("design:paramtypes",[typeof(Wf=typeof J<"u"&&J)=="function"?Wf:Object,Object]),Me("design:returntype",typeof(Vf=typeof Promise<"u"&&Promise)=="function"?Vf:Object)],d.Workflow.prototype,"index",null),Un([R("mesh.workflow.submit",String),Wn(0,p(0,"intent",An)),Me("design:type",Function),Me("design:paramtypes",[typeof(Jf=typeof An<"u"&&An)=="function"?Jf:Object,Object]),Me("design:returntype",typeof(Kf=typeof Promise<"u"&&Promise)=="function"?Kf:Object)],d.Workflow.prototype,"submit",null),Un([R("mesh.workflow.take",Object),Wn(0,p(0,"vertex",He)),Me("design:type",Function),Me("design:paramtypes",[typeof(Xf=typeof He<"u"&&He)=="function"?Xf:Object,Object]),Me("design:returntype",typeof(Yf=typeof Promise<"u"&&Promise)=="function"?Yf:Object)],d.Workflow.prototype,"take",null),Un([R("mesh.workflow.routines",[Fe,He]),Wn(0,p(0,"index",J)),Me("design:type",Function),Me("design:paramtypes",[typeof(Qf=typeof J<"u"&&J)=="function"?Qf:Object,Object]),Me("design:returntype",typeof(Zf=typeof Promise<"u"&&Promise)=="function"?Zf:Object)],d.Workflow.prototype,"routines",null),d.Workflow=Un([L("mpi")],d.Workflow);var yp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Codec=(kn=class{encodeString(e){return this.stringify(this.encode(e))}decodeString(e,t){return this.decode(this.uint8ify(e),t)}},c(kn,"JSON","json"),c(kn,"PROTOBUF","protobuf"),c(kn,"XML","xml"),c(kn,"YAML","yaml"),c(kn,"THRIFT","thrift"),c(kn,"MESH","mesh"),kn),d.Codec=yp([L(d.Codec.JSON)],d.Codec);var Ro={},oi={},ed;function mp(){if(ed)return oi;ed=1,oi.byteLength=a,oi.toByteArray=v,oi.fromByteArray=$;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)r[o]=n[o],e[n.charCodeAt(o)]=o;e[45]=62,e[95]=63;function s(N){var j=N.length;if(j%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=N.indexOf("=");I===-1&&(I=j);var A=I===j?0:4-I%4;return[I,A]}function a(N){var j=s(N),I=j[0],A=j[1];return(I+A)*3/4-A}function P(N,j,I){return(j+I)*3/4-I}function v(N){var j,I=s(N),A=I[0],q=I[1],z=new t(P(N,A,q)),Y=0,ke=q>0?A-4:A,Z;for(Z=0;Z<ke;Z+=4)j=e[N.charCodeAt(Z)]<<18|e[N.charCodeAt(Z+1)]<<12|e[N.charCodeAt(Z+2)]<<6|e[N.charCodeAt(Z+3)],z[Y++]=j>>16&255,z[Y++]=j>>8&255,z[Y++]=j&255;return q===2&&(j=e[N.charCodeAt(Z)]<<2|e[N.charCodeAt(Z+1)]>>4,z[Y++]=j&255),q===1&&(j=e[N.charCodeAt(Z)]<<10|e[N.charCodeAt(Z+1)]<<4|e[N.charCodeAt(Z+2)]>>2,z[Y++]=j>>8&255,z[Y++]=j&255),z}function _(N){return r[N>>18&63]+r[N>>12&63]+r[N>>6&63]+r[N&63]}function E(N,j,I){for(var A,q=[],z=j;z<I;z+=3)A=(N[z]<<16&16711680)+(N[z+1]<<8&65280)+(N[z+2]&255),q.push(_(A));return q.join("")}function $(N){for(var j,I=N.length,A=I%3,q=[],z=16383,Y=0,ke=I-A;Y<ke;Y+=z)q.push(E(N,Y,Y+z>ke?ke:Y+z));return A===1?(j=N[I-1],q.push(r[j>>2]+r[j<<4&63]+"==")):A===2&&(j=(N[I-2]<<8)+N[I-1],q.push(r[j>>10]+r[j>>4&63]+r[j<<2&63]+"=")),q.join("")}return oi}var Ai={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var td;function hp(){return td||(td=1,Ai.read=function(r,e,t,n,o){var i,s,a=o*8-n-1,P=(1<<a)-1,v=P>>1,_=-7,E=t?o-1:0,$=t?-1:1,N=r[e+E];for(E+=$,i=N&(1<<-_)-1,N>>=-_,_+=a;_>0;i=i*256+r[e+E],E+=$,_-=8);for(s=i&(1<<-_)-1,i>>=-_,_+=n;_>0;s=s*256+r[e+E],E+=$,_-=8);if(i===0)i=1-v;else{if(i===P)return s?NaN:(N?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-v}return(N?-1:1)*s*Math.pow(2,i-n)},Ai.write=function(r,e,t,n,o,i){var s,a,P,v=i*8-o-1,_=(1<<v)-1,E=_>>1,$=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:i-1,j=n?1:-1,I=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=_):(s=Math.floor(Math.log(e)/Math.LN2),e*(P=Math.pow(2,-s))<1&&(s--,P*=2),s+E>=1?e+=$/P:e+=$*Math.pow(2,1-E),e*P>=2&&(s++,P/=2),s+E>=_?(a=0,s=_):s+E>=1?(a=(e*P-1)*Math.pow(2,o),s=s+E):(a=e*Math.pow(2,E-1)*Math.pow(2,o),s=0));o>=8;r[t+N]=a&255,N+=j,a/=256,o-=8);for(s=s<<o|a,v+=o;v>0;r[t+N]=s&255,N+=j,s/=256,v-=8);r[t+N-j]|=I*128}),Ai}/*!
|
|
14
|
+
***************************************************************************** */var Xo;function ep(){if(Xo)return Ko;Xo=1;var r;return function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof Jo=="object"?Jo:typeof self=="object"?self:typeof this=="object"?this:P(),o=i(e);typeof n.Reflect<"u"&&(o=i(n.Reflect,o)),t(o,n),typeof n.Reflect>"u"&&(n.Reflect=e);function i(v,_){return function(E,$){Object.defineProperty(v,E,{configurable:!0,writable:!0,value:$}),_&&_(E,$)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function P(){return s()||a()}})(function(t,n){var o=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",s=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",P=typeof Object.create=="function",v={__proto__:[]}instanceof Array,_=!P&&!v,E={create:P?function(){return b(Object.create(null))}:v?function(){return b({__proto__:null})}:function(){return b({})},has:_?function(y,h){return o.call(y,h)}:function(y,h){return h in y},get:_?function(y,h){return o.call(y,h)?y[h]:void 0}:function(y,h){return y[h]}},$=Object.getPrototypeOf(Function),N=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:u(),j=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:f(),I=typeof WeakMap=="function"?WeakMap:m(),A=i?Symbol.for("@reflect-metadata:registry"):void 0,q=Wo(),z=sn(q);function Y(y,h,S,T){if(D(S)){if(!mi(y))throw new TypeError;if(!Ln(h))throw new TypeError;return zo(y,h)}else{if(!mi(y))throw new TypeError;if(!Ne(h))throw new TypeError;if(!Ne(T)&&!D(T)&&!On(T))throw new TypeError;return On(T)&&(T=void 0),S=Bt(S),Xi(y,h,S,T)}}t("decorate",Y);function ke(y,h){function S(T,M){if(!Ne(T))throw new TypeError;if(!D(M)&&!Go(M))throw new TypeError;Zi(y,h,T,M)}return S}t("metadata",ke);function Z(y,h,S,T){if(!Ne(S))throw new TypeError;return D(T)||(T=Bt(T)),Zi(y,h,S,T)}t("defineMetadata",Z);function St(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),li(y,h,S)}t("hasMetadata",St);function xt(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),yi(y,h,S)}t("hasOwnMetadata",xt);function Bn(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),Yi(y,h,S)}t("getMetadata",Bn);function Ar(y,h,S){if(!Ne(h))throw new TypeError;return D(S)||(S=Bt(S)),Qi(y,h,S)}t("getOwnMetadata",Ar);function Lo(y,h){if(!Ne(y))throw new TypeError;return D(h)||(h=Bt(h)),eo(y,h)}t("getMetadataKeys",Lo);function Ho(y,h){if(!Ne(y))throw new TypeError;return D(h)||(h=Bt(h)),Ue(y,h)}t("getOwnMetadataKeys",Ho);function qo(y,h,S){if(!Ne(h))throw new TypeError;if(D(S)||(S=Bt(S)),!Ne(h))throw new TypeError;D(S)||(S=Bt(S));var T=l(h,S,!1);return D(T)?!1:T.OrdinaryDeleteMetadata(y,h,S)}t("deleteMetadata",qo);function zo(y,h){for(var S=y.length-1;S>=0;--S){var T=y[S],M=T(h);if(!D(M)&&!On(M)){if(!Ln(M))throw new TypeError;h=M}}return h}function Xi(y,h,S,T){for(var M=y.length-1;M>=0;--M){var G=y[M],H=G(h,S,T);if(!D(H)&&!On(H)){if(!Ne(H))throw new TypeError;T=H}}return T}function li(y,h,S){var T=yi(y,h,S);if(T)return!0;var M=bt(h);return On(M)?!1:li(y,M,S)}function yi(y,h,S){var T=l(h,S,!1);return D(T)?!1:Ir(T.OrdinaryHasOwnMetadata(y,h,S))}function Yi(y,h,S){var T=yi(y,h,S);if(T)return Qi(y,h,S);var M=bt(h);if(!On(M))return Yi(y,M,S)}function Qi(y,h,S){var T=l(h,S,!1);if(!D(T))return T.OrdinaryGetOwnMetadata(y,h,S)}function Zi(y,h,S,T){var M=l(S,T,!0);M.OrdinaryDefineOwnMetadata(y,h,S,T)}function eo(y,h){var S=Ue(y,h),T=bt(y);if(T===null)return S;var M=eo(T,h);if(M.length<=0)return S;if(S.length<=0)return M;for(var G=new j,H=[],ee=0,C=S;ee<C.length;ee++){var U=C[ee],F=G.has(U);F||(G.add(U),H.push(U))}for(var k=0,te=M;k<te.length;k++){var U=te[k],F=G.has(U);F||(G.add(U),H.push(U))}return H}function Ue(y,h){var S=l(y,h,!1);return S?S.OrdinaryOwnMetadataKeys(y,h):[]}function qe(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function D(y){return y===void 0}function On(y){return y===null}function to(y){return typeof y=="symbol"}function Ne(y){return typeof y=="object"?y!==null:typeof y=="function"}function no(y,h){switch(qe(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var S="string",T=Mr(y,s);if(T!==void 0){var M=T.call(y,S);if(Ne(M))throw new TypeError;return M}return Dn(y)}function Dn(y,h){var S,T,M;{var G=y.toString;if(qt(G)){var T=G.call(y);if(!Ne(T))return T}var S=y.valueOf;if(qt(S)){var T=S.call(y);if(!Ne(T))return T}}throw new TypeError}function Ir(y){return!!y}function ro(y){return""+y}function Bt(y){var h=no(y);return to(h)?h:ro(h)}function mi(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function qt(y){return typeof y=="function"}function Ln(y){return typeof y=="function"}function Go(y){switch(qe(y)){case 3:return!0;case 4:return!0;default:return!1}}function hi(y,h){return y===h||y!==y&&h!==h}function Mr(y,h){var S=y[h];if(S!=null){if(!qt(S))throw new TypeError;return S}}function io(y){var h=Mr(y,a);if(!qt(h))throw new TypeError;var S=h.call(y);if(!Ne(S))throw new TypeError;return S}function oo(y){return y.value}function gi(y){var h=y.next();return h.done?!1:h}function Yn(y){var h=y.return;h&&h.call(y)}function bt(y){var h=Object.getPrototypeOf(y);if(typeof y!="function"||y===$||h!==$)return h;var S=y.prototype,T=S&&Object.getPrototypeOf(S);if(T==null||T===Object.prototype)return h;var M=T.constructor;return typeof M!="function"||M===y?h:M}function bi(){var y;!D(A)&&typeof n.Reflect<"u"&&!(A in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=Vo(n.Reflect));var h,S,T,M=new I,G={registerProvider:H,getProvider:C,setProvider:F};return G;function H(k){if(!Object.isExtensible(G))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===k:break;case D(h):h=k;break;case h===k:break;case D(S):S=k;break;case S===k:break;default:T===void 0&&(T=new j),T.add(k);break}}function ee(k,te){if(!D(h)){if(h.isProviderFor(k,te))return h;if(!D(S)){if(S.isProviderFor(k,te))return h;if(!D(T))for(var Se=io(T);;){var $e=gi(Se);if(!$e)return;var zt=oo($e);if(zt.isProviderFor(k,te))return Yn(Se),zt}}}if(!D(y)&&y.isProviderFor(k,te))return y}function C(k,te){var Se=M.get(k),$e;return D(Se)||($e=Se.get(te)),D($e)&&($e=ee(k,te),D($e)||(D(Se)&&(Se=new N,M.set(k,Se)),Se.set(te,$e))),$e}function U(k){if(D(k))throw new TypeError;return h===k||S===k||!D(T)&&T.has(k)}function F(k,te,Se){if(!U(Se))throw new Error("Metadata provider not registered.");var $e=C(k,te);if($e!==Se){if(!D($e))return!1;var zt=M.get(k);D(zt)&&(zt=new N,M.set(k,zt)),zt.set(te,Se)}return!0}}function Wo(){var y;return!D(A)&&Ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[A]),D(y)&&(y=bi()),!D(A)&&Ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,A,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function sn(y){var h=new I,S={isProviderFor:function(U,F){var k=h.get(U);return D(k)?!1:k.has(F)},OrdinaryDefineOwnMetadata:H,OrdinaryHasOwnMetadata:M,OrdinaryGetOwnMetadata:G,OrdinaryOwnMetadataKeys:ee,OrdinaryDeleteMetadata:C};return q.registerProvider(S),S;function T(U,F,k){var te=h.get(U),Se=!1;if(D(te)){if(!k)return;te=new N,h.set(U,te),Se=!0}var $e=te.get(F);if(D($e)){if(!k)return;if($e=new N,te.set(F,$e),!y.setProvider(U,F,S))throw te.delete(F),Se&&h.delete(U),new Error("Wrong provider for target.")}return $e}function M(U,F,k){var te=T(F,k,!1);return D(te)?!1:Ir(te.has(U))}function G(U,F,k){var te=T(F,k,!1);if(!D(te))return te.get(U)}function H(U,F,k,te){var Se=T(k,te,!0);Se.set(U,F)}function ee(U,F){var k=[],te=T(U,F,!1);if(D(te))return k;for(var Se=te.keys(),$e=io(Se),zt=0;;){var Kd=gi($e);if(!Kd)return k.length=zt,k;var yy=oo(Kd);try{k[zt]=yy}catch(my){try{Yn($e)}finally{throw my}}zt++}}function C(U,F,k){var te=T(F,k,!1);if(D(te)||!te.delete(U))return!1;if(te.size===0){var Se=h.get(F);D(Se)||(Se.delete(k),Se.size===0&&h.delete(Se))}return!0}}function Vo(y){var h=y.defineMetadata,S=y.hasOwnMetadata,T=y.getOwnMetadata,M=y.getOwnMetadataKeys,G=y.deleteMetadata,H=new I,ee={isProviderFor:function(C,U){var F=H.get(C);return!D(F)&&F.has(U)?!0:M(C,U).length?(D(F)&&(F=new j,H.set(C,F)),F.add(U),!0):!1},OrdinaryDefineOwnMetadata:h,OrdinaryHasOwnMetadata:S,OrdinaryGetOwnMetadata:T,OrdinaryOwnMetadataKeys:M,OrdinaryDeleteMetadata:G};return ee}function l(y,h,S){var T=q.getProvider(y,h);if(!D(T))return T;if(S){if(q.setProvider(y,h,z))return z;throw new Error("Illegal state.")}}function u(){var y={},h=[],S=function(){function ee(C,U,F){this._index=0,this._keys=C,this._values=U,this._selector=F}return ee.prototype["@@iterator"]=function(){return this},ee.prototype[a]=function(){return this},ee.prototype.next=function(){var C=this._index;if(C>=0&&C<this._keys.length){var U=this._selector(this._keys[C],this._values[C]);return C+1>=this._keys.length?(this._index=-1,this._keys=h,this._values=h):this._index++,{value:U,done:!1}}return{value:void 0,done:!0}},ee.prototype.throw=function(C){throw this._index>=0&&(this._index=-1,this._keys=h,this._values=h),C},ee.prototype.return=function(C){return this._index>=0&&(this._index=-1,this._keys=h,this._values=h),{value:C,done:!0}},ee}(),T=function(){function ee(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(ee.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ee.prototype.has=function(C){return this._find(C,!1)>=0},ee.prototype.get=function(C){var U=this._find(C,!1);return U>=0?this._values[U]:void 0},ee.prototype.set=function(C,U){var F=this._find(C,!0);return this._values[F]=U,this},ee.prototype.delete=function(C){var U=this._find(C,!1);if(U>=0){for(var F=this._keys.length,k=U+1;k<F;k++)this._keys[k-1]=this._keys[k],this._values[k-1]=this._values[k];return this._keys.length--,this._values.length--,hi(C,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},ee.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},ee.prototype.keys=function(){return new S(this._keys,this._values,M)},ee.prototype.values=function(){return new S(this._keys,this._values,G)},ee.prototype.entries=function(){return new S(this._keys,this._values,H)},ee.prototype["@@iterator"]=function(){return this.entries()},ee.prototype[a]=function(){return this.entries()},ee.prototype._find=function(C,U){if(!hi(this._cacheKey,C)){this._cacheIndex=-1;for(var F=0;F<this._keys.length;F++)if(hi(this._keys[F],C)){this._cacheIndex=F;break}}return this._cacheIndex<0&&U&&(this._cacheIndex=this._keys.length,this._keys.push(C),this._values.push(void 0)),this._cacheIndex},ee}();return T;function M(ee,C){return ee}function G(ee,C){return C}function H(ee,C){return[ee,C]}}function f(){var y=function(){function h(){this._map=new N}return Object.defineProperty(h.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),h.prototype.has=function(S){return this._map.has(S)},h.prototype.add=function(S){return this._map.set(S,S),this},h.prototype.delete=function(S){return this._map.delete(S)},h.prototype.clear=function(){this._map.clear()},h.prototype.keys=function(){return this._map.keys()},h.prototype.values=function(){return this._map.keys()},h.prototype.entries=function(){return this._map.entries()},h.prototype["@@iterator"]=function(){return this.keys()},h.prototype[a]=function(){return this.keys()},h}();return y}function m(){var y=16,h=E.create(),S=T();return function(){function C(){this._key=T()}return C.prototype.has=function(U){var F=M(U,!1);return F!==void 0?E.has(F,this._key):!1},C.prototype.get=function(U){var F=M(U,!1);return F!==void 0?E.get(F,this._key):void 0},C.prototype.set=function(U,F){var k=M(U,!0);return k[this._key]=F,this},C.prototype.delete=function(U){var F=M(U,!1);return F!==void 0?delete F[this._key]:!1},C.prototype.clear=function(){this._key=T()},C}();function T(){var C;do C="@@WeakMap@@"+ee();while(E.has(h,C));return h[C]=!0,C}function M(C,U){if(!o.call(C,S)){if(!U)return;Object.defineProperty(C,S,{value:E.create()})}return C[S]}function G(C,U){for(var F=0;F<U;++F)C[F]=Math.random()*255|0;return C}function H(C){if(typeof Uint8Array=="function"){var U=new Uint8Array(C);return typeof crypto<"u"?crypto.getRandomValues(U):typeof msCrypto<"u"?msCrypto.getRandomValues(U):G(U,C),U}return G(new Array(C),C)}function ee(){var C=H(y);C[6]=C[6]&79|64,C[8]=C[8]&191|128;for(var U="",F=0;F<y;++F){var k=C[F];(F===4||F===6||F===8)&&(U+="-"),k<16&&(U+="0"),U+=k.toString(16).toLowerCase()}return U}}function b(y){return y.__=void 0,delete y.__,y}})}(r||(r={})),Ko}ep();class Oi{constructor(e,t,n,o,i,s,a,P){c(this,"topic");c(this,"code");c(this,"version");c(this,"proto");c(this,"codec");c(this,"flags");c(this,"timeout");c(this,"meshable");c(this,"traits");this.topic=e,this.code=t,this.version=n,this.proto=o,this.codec=i,this.flags=s,this.timeout=a,this.meshable=P}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Oe.annotate(Oi,e,e,this),Oe.register(Oi,`${this.topic}.${this.code}`,e,this)}}function tp(r="",e="",t="1.0.0",n="http2",o="protobuf",i=0,s=3e3,a=!0){const P=new Oi(r,e,t,n,o,i,s,a);return P.decorate.bind(P)}class Rn{constructor(e,t,n,o){c(this,"value");c(this,"name");c(this,"transparent");c(this,"kind");c(this,"clas");c(this,"index",1e3);this.value=e,this.name=t,this.transparent=n,this.kind=o,this.clas=Object}decorate(e,t,n){this.kind==Object?this.kind=Reflect.getMetadata("design:type",e,t):this.kind=Array.isArray(this.kind)?new Sn(this.kind):this.kind;const o=Reflect.getMetadata("design:paramtypes",e,t);o&&Array.isArray(o)&&n!=null&&o.length>n&&(this.clas=o[n]),this.kind&&(this.clas==Array||this.clas==Map)&&(this.clas=this.kind),this.index=n||1e3,n!=null?Oe.annotate(Rn,`${t}:${n}`,e.constructor,this):Oe.annotate(Rn,t,e.constructor,this)}}function p(r=-1,e="",t=Object,n=!1){const o=new Rn(r,e,n,t);return o.decorate.bind(o)}class Dt{constructor(e,t,n,o){c(this,"name");c(this,"pattern");c(this,"priority");c(this,"prototype");this.name=e,this.pattern=t,this.priority=n,this.prototype=o}decorate(e){Oe.annotate(Dt,e,e,this),Oe.register(Dt,this.name,e,this)}}function L(r="",e="",t=0,n=!1){const o=new Dt(r,e,t,n);return o.decorate.bind(o)}class Ae{constructor(e,t,n,o,i,s,a,P,v,_,E,$,N,j){c(this,"name");c(this,"version");c(this,"proto");c(this,"codec");c(this,"flags");c(this,"timeout");c(this,"retries");c(this,"mdc");c(this,"zone");c(this,"cluster");c(this,"cell");c(this,"group");c(this,"address");c(this,"kind");c(this,"retype");c(this,"attributes",new Map);this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=s,this.retries=a,this.mdc=P,this.zone=v,this.cluster=_,this.cell=E,this.group=$,this.address=N,this.retype=j}decorate(e,t,n){if(typeof t=="string"&&this.attributes.set("name",t),!n){this.kind=Reflect.getMetadata("design:type",e,t),Oe.annotate(Ae,t,e,this);return}return this.kind=Reflect.getMetadata("design:returntype",e,t),Oe.annotate(Ae,n.value,e.constructor,this),n}}function R(r="",e=Object,t=1e4,n="1.0.0",o="grpc",i="json",s=0,a=3,P="",v="",_="",E="",$="",N=""){const j=new Ae(r,n,o,i,s,t,a,P,v,_,E,$,N,e);return j.decorate.bind(j)}var np=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const rp=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,ip=/([^\s,]+)/g;d.MethodProxy=class{},d.MethodProxy=np([L("mesh")],d.MethodProxy);class Yo{constructor(e,t,n){c(this,"index");c(this,"name");c(this,"kind");this.index=e,this.name=t,this.kind=n}}class Qo{constructor(e,t,n){c(this,"kind");c(this,"name");c(this,"method");this.kind=e,this.name=t,this.method=n}getAnnotation(e){return Oe.metadata(e,this.kind,this.method)}getName(){var t;const e=Oe.metadata(Ae,this.kind,this.method);return((t=e==null?void 0:e.attributes)==null?void 0:t.get("name"))||this.name}getParameters(){const e=this.method.toString().replace(rp,""),t=e.slice(e.indexOf("(")+1,e.indexOf(")")).match(ip)||[],n=[];for(let o=0;o<t.length;o++){const i=Oe.metadata(Rn,this.kind,`${this.getName()}:${o}`);n.push(new Yo(o,(i==null?void 0:i.name)||t[o],(i==null?void 0:i.clas)||Object))}return n}getType(){return this.kind}getReturnType(){var e;return new Sn((e=Oe.metadata(Ae,this.kind,this.method))==null?void 0:e.retype)}getExecutable(){return this.method}getSymbol(){return this.name}invoke(e,t){return this.method(...t)}}class op{constructor(e,t,n){c(this,"inspector");c(this,"h");c(this,"proxy");this.inspector=e,this.h=t,this.proxy=n}apply(e,t,n){return this.h.invoke(this.proxy,this.inspector,n)}}class sp{constructor(e,t,n){c(this,"inspectors",new B);c(this,"executables",new B);for(let o of t)this.executables.set(o.getSymbol(),new Proxy(o.getExecutable(),new op(o,n,this))),this.inspectors.set(o.getSymbol(),o)}getMethods(){return this.inspectors.map((e,t)=>t)}get(e,t,n){return this.executables.get(t)}}class Ur{static newProxyInstance(e,t){var n,o,i;return this.proxies.get(e)||this.proxies.set(e,new B),(n=this.proxies.get(e))!=null&&n.get(t)||(o=this.proxies.get(e))==null||o.set(t,new Proxy(e,new sp(e,this.getMethods(e),t))),(i=this.proxies.get(e))==null?void 0:i.get(t)}static getMethods(e){return this.inspectors.computeIfy(e,t=>Oe.inspect(t).map((n,o)=>new Qo(t,n,o)))}}c(Ur,"proxies",new B),c(Ur,"inspectors",new B);const Wi=class Wi{constructor(e,t){c(this,"name");c(this,"kind");c(this,"prototype");c(this,"priority");this.name=e,this.kind=t,this.prototype=!1,this.priority=1}getIfAbsent(){return this.prototype?this.create():Wi.value.computeIfy(this.kind,e=>this.create())}create(){return new this.kind}};c(Wi,"value",new B);let so=Wi,cp=class{constructor(e,t){c(this,"name","");c(this,"providers",[]);this.name=e,this.providers=t.map(n=>new so(e,n)).sort((n,o)=>n.priority-o.priority)}getIfAbsent(){if(this.providers.length<1)throw new Error(`No such provider named ${this.name}`);return this.providers[0].getIfAbsent()}};const Vi=class Vi{constructor(e){c(this,"providers",new B);c(this,"spi");c(this,"fist","");var t;this.spi=e,this.fist=((t=Oe.metadata(Dt,e,e))==null?void 0:t.name)||""}static load(e){return this.loaders.computeIfy(e,t=>new Vi(e))}defaultName(){return this.fist}getDefault(){return this.get(this.fist)}get(e){const t=this.getInstances().get(e);if(!t)throw new Error(`SPI ${this.spi.name} named ${e} not exist.`);return t.getIfAbsent()}want(e){const t=this.getInstances().get(e);return t?t.getIfAbsent():null}list(){return this.getInstances().map((e,t)=>t.getIfAbsent())}getInstances(){return this.providers.computeIfy("$",e=>Oe.providers(Dt,this.spi).groupBy(t=>{const n=Oe.metadata(Dt,t,t);return n&&n.name||""}).groupKV(t=>t,(t,n)=>new cp(t,n)))}};c(Vi,"loaders",new B);let Le=Vi;class $r{constructor(e,t,n,o,i,s){c(this,"name");c(this,"version");c(this,"proto");c(this,"codec");c(this,"flags");c(this,"timeout");c(this,"traits");this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=s}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Oe.annotate($r,e,e,this),Oe.register($r,this.name,e,this)}}function ap(r="",e="",t="grpc",n="json",o=0,i=1e4){const s=new $r(r,e,t,n,o,i);return s.decorate.bind(s)}function Zo(r){return"getCode"in r&&"getMessage"in r}class Q extends Error{constructor(t,n){super(n);c(this,"code");c(this,"message");this.code=t,this.message=n}getCode(){return this.code}getMessage(){return this.message}}class g{}c(g,"SUCCESS",new Q("E0000000000","请求成功")),c(g,"NOT_FOUND",new Q("E0000000404","请求资源不存在")),c(g,"SYSTEM_ERROR",new Q("E0000000500","系统异常")),c(g,"SERVICE_UNAVAILABLE",new Q("E0000000503","循环请求服务不可达")),c(g,"VALIDATE",new Q("E0000000400","请求非法")),c(g,"UNAUTHORIZED",new Q("E0000000403","请求资源未被授权")),c(g,"UNKNOWN",new Q("E0000000520","未知异常")),c(g,"COMPATIBLE",new Q("E0000000600","系统不兼容")),c(g,"TIMEOUT",new Q("E0000000601","请求超时")),c(g,"NO_PROVIDER",new Q("E0000000602","无服务实例")),c(g,"CRYPT_ERROR",new Q("E0000000603","数字证书校验异常")),c(g,"TOKEN_EXPIRE",new Q("E0000000604","节点授权码已过期")),c(g,"NET_EXPIRE",new Q("E0000000605","节点组网时间已过期")),c(g,"NET_DISABLE",new Q("E0000000606","对方节点已禁用网络")),c(g,"NET_UNAVAILABLE",new Q("E0000000607","网络不通")),c(g,"LICENSE_FORMAT_ERROR",new Q("E0000000608","License非法")),c(g,"LICENSE_EXPIRED",new Q("E0000000609","License已过期")),c(g,"MAX_REPLICAS_LIMIT",new Q("E0000000610","集群副本已达许可上限")),c(g,"MAX_COOP_LIMIT",new Q("E0000000611","合作方链接数已达许可上限")),c(g,"MAX_TENANT_LIMIT",new Q("E0000000612","租户数已达许可上限")),c(g,"MAX_USER_LIMIT",new Q("E0000000613","用户数已达许可上限")),c(g,"URN_NOT_PERMIT",new Q("E0000000614","接口未被许可调用")),c(g,"SIGNATURE_ERROR",new Q("E0000000615","证书签名非法")),c(g,"CRYPT_CODEC_ERROR",new Q("E0000000616","报文编解码异常")),c(g,"NO_SERVICE",new Q("E0000000617","下游版本不匹配服务不存在")),c(g,"NET_NOT_WEAVE",new Q("E0000000618","节点或机构未组网")),c(g,"ADDRESS_ERROR",new Q("E0000000619","地址非法或无法访问")),c(g,"UNEXPECTED_SYNTAX",new Q("E0000000620","规则语法错误")),c(g,"UNKNOWN_SCRIPT",new Q("E0000000621","规则不存在")),c(g,"DATA_ID_ERROR",new Q("E0000000622","数据身份不存在或非法")),c(g,"START_PENDING",new Q("E0000000623","系统启动中")),c(g,"UNEXPECTED_SQL_SYNTAX",new Q("E0000000624","SQL语法错误")),c(g,"NO_DATABASE",new Q("E0000000625","数据库不存在")),c(g,"NO_TRANSACTION",new Q("E0000000626","事务不存在")),c(g,"SQL_EXECUTE_ERROR",new Q("E0000000627","SQL执行异常")),c(g,"DUPLICATE_KEY",new Q("E0000000628","唯一键冲突"));function Fr(r){return console.log(r),g.SYSTEM_ERROR}var up=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const gt=class gt{constructor(e){c(this,"v");this.v=e}matches(e){return(this.v&e)==this.v}};c(gt,"Routine",new gt(1)),c(gt,"Perform",new gt(2)),c(gt,"Defense",new gt(4)),c(gt,"Debug",new gt(8)),c(gt,"LoadTest",new gt(16)),c(gt,"Mock",new gt(32));let Si=gt;class kr{constructor(e){c(this,"name");this.name=e}}class es extends Array{peek(){if(!(this.length<1))return this.at(this.length-1)}}class Ri{}const x=class x{constructor(e){c(this,"key");this.key=e}get(e){var o,i,s;const t=(o=e.getAttachments())==null?void 0:o.get(this.key);if(t)return t;const n=(i=e.getAttachments())==null?void 0:i.get(this.key.replace("-","_"));if(n)return n;for(let a of(s=e.getAttachments())==null?void 0:s.entries())if(a[1]&&a[0]&&(a[0].toLowerCase()==this.key||a[0].replace("_","-").toLowerCase()==this.key))return a[1];return""}set(e,t){var n;(n=e.getAttachments())==null||n.set(this.key,t)}};c(x,"MESH_TRACE_ID",new x("mesh-trace-id")),c(x,"MESH_SPAN_ID",new x("mesh-span-id")),c(x,"MESH_TIMESTAMP",new x("mesh-timestamp")),c(x,"MESH_RUN_MODE",new x("mesh-run-mode")),c(x,"MESH_CONSUMER",new x("mesh-consumer")),c(x,"MESH_PROVIDER",new x("mesh-provider")),c(x,"MESH_URN",new x("mesh-urn")),c(x,"MESH_FROM_INST_ID",new x("mesh-from-inst-id")),c(x,"MESH_FROM_NODE_ID",new x("mesh-from-node-id")),c(x,"MESH_INCOMING_HOST",new x("mesh-incoming-host")),c(x,"MESH_OUTGOING_HOST",new x("mesh-outgoing-host")),c(x,"MESH_INCOMING_PROXY",new x("mesh-incoming-proxy")),c(x,"MESH_OUTGOING_PROXY",new x("mesh-outgoing-proxy")),c(x,"MESH_SUBSET",new x("mesh-subset")),c(x,"MESH_SESSION_ID",new x("mesh-session-id")),c(x,"MESH_VERSION",new x("mesh-version")),c(x,"MESH_TIMEOUT",new x("mesh-timeout")),c(x,"MESH_PTP_VERSION",new x("x-ptp-version")),c(x,"MESH_PTP_TPC",new x("x-ptp-tech-provider-code")),c(x,"MESH_PTP_TRACE_ID",new x("x-ptp-trace-id")),c(x,"MESH_PTP_TOKEN",new x("x-ptp-token")),c(x,"MESH_PTP_SOURCE_NODE_ID",new x("x-ptp-source-node-id")),c(x,"MESH_PTP_TARGET_NODE_ID",new x("x-ptp-target-node-id")),c(x,"MESH_PTP_SOURCE_INST_ID",new x("x-ptp-source-inst-id")),c(x,"MESH_PTP_TARGET_INST_ID",new x("x-ptp-target-inst-id")),c(x,"MESH_PTP_SESSION_ID",new x("x-ptp-session-id"));let vi=x;d.ContextProvider=class{},d.ContextProvider=up([L("mesh")],d.ContextProvider);function O(){return Le.load(d.ContextProvider).getDefault().context()}var pe=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},le=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ts,ns,rs,is;class J{constructor(){c(this,"sid","");c(this,"index",0);c(this,"limit",0);c(this,"factor",{});c(this,"order","")}}pe([p(0,"sid",String),le("design:type",String)],J.prototype,"sid",void 0),pe([p(1,"index",Number),le("design:type",Number)],J.prototype,"index",void 0),pe([p(2,"limit",Number),le("design:type",Number)],J.prototype,"limit",void 0),pe([p(3,"factor",[Map,String,Object]),le("design:type",typeof(ts=typeof Record<"u"&&Record)=="function"?ts:Object)],J.prototype,"factor",void 0),pe([p(4,"order",String),le("design:type",String)],J.prototype,"order",void 0);class Fe{constructor(){c(this,"sid","");c(this,"index",0);c(this,"limit",0);c(this,"total",0);c(this,"next",!1);c(this,"data",[])}}pe([p(0,"sid",String),le("design:type",String)],Fe.prototype,"sid",void 0),pe([p(1,"index",Number),le("design:type",Number)],Fe.prototype,"index",void 0),pe([p(2,"limit",Number),le("design:type",Number)],Fe.prototype,"limit",void 0),pe([p(3,"total",Number),le("design:type",Number)],Fe.prototype,"total",void 0),pe([p(4,"next",Boolean),le("design:type",Boolean)],Fe.prototype,"next",void 0),pe([p(5,"data",[Array,Object]),le("design:type",Array)],Fe.prototype,"data",void 0);class xr{constructor(){c(this,"nodeId","");c(this,"nodeName","");c(this,"instId","");c(this,"instName","")}}pe([p(0,"node_id",String),le("design:type",String)],xr.prototype,"nodeId",void 0),pe([p(1,"node_name",String),le("design:type",String)],xr.prototype,"nodeName",void 0),pe([p(2,"inst_id",String),le("design:type",String)],xr.prototype,"instId",void 0),pe([p(3,"inst_name",String),le("design:type",String)],xr.prototype,"instName",void 0);class er{constructor(){c(this,"status",0);c(this,"createAt");c(this,"updateAt");c(this,"createBy","");c(this,"updateBy","")}}pe([p(0,"status",Number),le("design:type",Number)],er.prototype,"status",void 0),pe([p(1,"create_at",Date),le("design:type",typeof(ns=typeof Date<"u"&&Date)=="function"?ns:Object)],er.prototype,"createAt",void 0),pe([p(2,"update_at",Date),le("design:type",typeof(rs=typeof Date<"u"&&Date)=="function"?rs:Object)],er.prototype,"updateAt",void 0),pe([p(3,"create_by",String),le("design:type",String)],er.prototype,"createBy",void 0),pe([p(4,"update_by",String),le("design:type",String)],er.prototype,"updateBy",void 0);class ut{constructor(){c(this,"name","");c(this,"pos","");c(this,"text","");c(this,"buff",new Uint8Array)}}pe([p(0,"name",String),le("design:type",String)],ut.prototype,"name",void 0),pe([p(1,"pos",String),le("design:type",String)],ut.prototype,"pos",void 0),pe([p(2,"text",String),le("design:type",String)],ut.prototype,"text",void 0),pe([p(3,"buff",Uint8Array),le("design:type",typeof(is=typeof Uint8Array<"u"&&Uint8Array)=="function"?is:Object)],ut.prototype,"buff",void 0);class je{constructor(){c(this,"topic","");c(this,"code","");c(this,"group","");c(this,"sets","")}}pe([p(0,"topic",String),le("design:type",String)],je.prototype,"topic",void 0),pe([p(1,"code",String),le("design:type",String)],je.prototype,"code",void 0),pe([p(2,"group",String),le("design:type",String)],je.prototype,"group",void 0),pe([p(3,"sets",String),le("design:type",String)],je.prototype,"sets",void 0);var me=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},he=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},os,ss,cs,as,us;class Br{constructor(){c(this,"suite","");c(this,"project","");c(this,"name","");c(this,"version","")}}me([p(0,"suite",String),he("design:type",String)],Br.prototype,"suite",void 0),me([p(1,"project",String),he("design:type",String)],Br.prototype,"project",void 0),me([p(2,"name",String),he("design:type",String)],Br.prototype,"name",void 0),me([p(3,"version",String),he("design:type",String)],Br.prototype,"version",void 0);class Qe{constructor(){c(this,"name","");c(this,"proto","");c(this,"algo","");c(this,"parties",[]);c(this,"message","")}}me([p(0,"name",String),he("design:type",String)],Qe.prototype,"name",void 0),me([p(1,"proto",String),he("design:type",String)],Qe.prototype,"proto",void 0),me([p(2,"algo",String),he("design:type",String)],Qe.prototype,"algo",void 0),me([p(3,"parties",[Array,String]),he("design:type",Array)],Qe.prototype,"parties",void 0),me([p(4,"message",String),he("design:type",String)],Qe.prototype,"message",void 0);class Hn{constructor(){c(this,"suite","");c(this,"csr",new Uint8Array)}}me([p(0,"suite",String),he("design:type",String)],Hn.prototype,"suite",void 0),me([p(1,"csr",Uint8Array),he("design:type",typeof(os=typeof Uint8Array<"u"&&Uint8Array)=="function"?os:Object)],Hn.prototype,"csr",void 0);class vn{constructor(){c(this,"hello",new Qe);c(this,"suite",new Hn);c(this,"local","")}}me([p(0,"hello",Qe),he("design:type",Qe)],vn.prototype,"hello",void 0),me([p(1,"suite",Hn),he("design:type",Hn)],vn.prototype,"suite",void 0),me([p(2,"local",String),he("design:type",String)],vn.prototype,"local",void 0);class Dr extends vn{constructor(){super(...arguments);c(this,"keys",{})}}me([p(0,"keys",[Map,String,Uint8Array]),he("design:type",typeof(ss=typeof Record<"u"&&Record)=="function"?ss:Object)],Dr.prototype,"keys",void 0);class Pi{constructor(){c(this,"keys",{})}}me([p(0,"keys",[Map,String,Uint8Array]),he("design:type",typeof(cs=typeof Record<"u"&&Record)=="function"?cs:Object)],Pi.prototype,"keys",void 0);class Gt{constructor(){c(this,"suite","");c(this,"body",new Uint8Array)}}me([p(0,"suite",String),he("design:type",String)],Gt.prototype,"suite",void 0),me([p(1,"body",Uint8Array),he("design:type",typeof(as=typeof Uint8Array<"u"&&Uint8Array)=="function"?as:Object)],Gt.prototype,"body",void 0);class Lr extends Gt{constructor(){super(...arguments);c(this,"reKey",new Uint8Array)}}me([p(0,"re_key",Uint8Array),he("design:type",typeof(us=typeof Uint8Array<"u"&&Uint8Array)=="function"?us:Object)],Lr.prototype,"reKey",void 0);class ze{constructor(){c(this,"code","");c(this,"name","");c(this,"memo","");c(this,"uri","");c(this,"level","");c(this,"nodeId","");c(this,"instId","");c(this,"raw","")}}me([p(0,"code",String),he("design:type",String)],ze.prototype,"code",void 0),me([p(1,"name",String),he("design:type",String)],ze.prototype,"name",void 0),me([p(2,"memo",String),he("design:type",String)],ze.prototype,"memo",void 0),me([p(3,"uri",String),he("design:type",String)],ze.prototype,"uri",void 0),me([p(4,"level",String),he("design:type",String)],ze.prototype,"level",void 0),me([p(5,"node_id",String),he("design:type",String)],ze.prototype,"nodeId",void 0),me([p(6,"inst_id",String),he("design:type",String)],ze.prototype,"instId",void 0),me([p(7,"raw",String),he("design:type",String)],ze.prototype,"raw",void 0);var Wt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Vt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},fs,ds;class Pn{constructor(){c(this,"metadata",{});c(this,"content","");c(this,"timestamp",0)}}Wt([p(0,"metadata",[Map,String,String]),Vt("design:type",typeof(fs=typeof Record<"u"&&Record)=="function"?fs:Object)],Pn.prototype,"metadata",void 0),Wt([p(1,"content",String),Vt("design:type",String)],Pn.prototype,"content",void 0),Wt([p(2,"timestamp",Number),Vt("design:type",Number)],Pn.prototype,"timestamp",void 0);class wn{constructor(){c(this,"queries",{});c(this,"start",0);c(this,"end",0);c(this,"limit",0);c(this,"step","");c(this,"direction","");c(this,"routeKey","")}}Wt([p(0,"queries",[Map,String,String]),Vt("design:type",typeof(ds=typeof Record<"u"&&Record)=="function"?ds:Object)],wn.prototype,"queries",void 0),Wt([p(1,"start",Number),Vt("design:type",Number)],wn.prototype,"start",void 0),Wt([p(2,"end",Number),Vt("design:type",Number)],wn.prototype,"end",void 0),Wt([p(3,"limit",Number),Vt("design:type",Number)],wn.prototype,"limit",void 0),Wt([p(4,"step",String),Vt("design:type",String)],wn.prototype,"step",void 0),Wt([p(5,"direction",String),Vt("design:type",String)],wn.prototype,"direction",void 0),Wt([p(6,"route_key",String),Vt("design:type",String)],wn.prototype,"routeKey",void 0);var Ze=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},et=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ps,ls,ys;class Re{constructor(){c(this,"codec","");c(this,"schema","");c(this,"buffer",new Uint8Array)}}Ze([p(0,"codec",String),et("design:type",String)],Re.prototype,"codec",void 0),Ze([p(1,"schema",String),et("design:type",String)],Re.prototype,"schema",void 0),Ze([p(2,"buffer",Uint8Array),et("design:type",typeof(ps=typeof Uint8Array<"u"&&Uint8Array)=="function"?ps:Object)],Re.prototype,"buffer",void 0);class tt{constructor(){c(this,"version","");c(this,"entity",new Re);c(this,"timestamp",0);c(this,"duration",0);c(this,"key","")}}Ze([p(0,"version",String),et("design:type",String)],tt.prototype,"version",void 0),Ze([p(1,"entity",Re),et("design:type",Re)],tt.prototype,"entity",void 0),Ze([p(2,"timestamp",Number),et("design:type",Number)],tt.prototype,"timestamp",void 0),Ze([p(3,"duration",Number),et("design:type",Number)],tt.prototype,"duration",void 0),Ze([p(4,"key",String),et("design:type",String)],tt.prototype,"key",void 0);class Hr{constructor(){c(this,"key","");c(this,"value",new Re);c(this,"updateAt")}}Ze([p(0,"key",String),et("design:type",String)],Hr.prototype,"key",void 0),Ze([p(1,"value",Re),et("design:type",Re)],Hr.prototype,"value",void 0),Ze([p(2,"update_at",Date),et("design:type",typeof(ls=typeof Date<"u"&&Date)=="function"?ls:Object)],Hr.prototype,"updateAt",void 0);class tr{constructor(){c(this,"mno","");c(this,"kind","");c(this,"mime",new Uint8Array);c(this,"text","")}}Ze([p(0,"mno",String),et("design:type",String)],tr.prototype,"mno",void 0),Ze([p(1,"kind",String),et("design:type",String)],tr.prototype,"kind",void 0),Ze([p(2,"mime",Uint8Array),et("design:type",typeof(ys=typeof Uint8Array<"u"&&Uint8Array)=="function"?ys:Object)],tr.prototype,"mime",void 0),Ze([p(3,"text",String),et("design:type",String)],tr.prototype,"text",void 0);class fp{}var Rt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},vt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class cn{constructor(){c(this,"zone","");c(this,"cluster","");c(this,"cell","");c(this,"group","");c(this,"address","")}}Rt([p(0,"zone",String),vt("design:type",String)],cn.prototype,"zone",void 0),Rt([p(1,"cluster",String),vt("design:type",String)],cn.prototype,"cluster",void 0),Rt([p(2,"cell",String),vt("design:type",String)],cn.prototype,"cell",void 0),Rt([p(3,"group",String),vt("design:type",String)],cn.prototype,"group",void 0),Rt([p(4,"address",String),vt("design:type",String)],cn.prototype,"address",void 0);class xe{constructor(){c(this,"mdc","");c(this,"version","");c(this,"name","");c(this,"crt","");c(this,"key","");c(this,"rootCrt","");c(this,"lattice",new cn)}}Rt([p(0,"mdc",String),vt("design:type",String)],xe.prototype,"mdc",void 0),Rt([p(1,"version",String),vt("design:type",String)],xe.prototype,"version",void 0),Rt([p(2,"name",String),vt("design:type",String)],xe.prototype,"name",void 0),Rt([p(3,"crt",String),vt("design:type",String)],xe.prototype,"crt",void 0),Rt([p(4,"key",String),vt("design:type",String)],xe.prototype,"key",void 0),Rt([p(5,"root_crt",String),vt("design:type",String)],xe.prototype,"rootCrt",void 0),Rt([p(6,"lattice",cn),vt("design:type",cn)],xe.prototype,"lattice",void 0);var jn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},En=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class nt{constructor(){c(this,"id","")}}jn([p(0,"idc",String),En("design:type",String)],nt.prototype,"id",void 0);class Tn extends nt{constructor(){super(...arguments);c(this,"ip","");c(this,"port","");c(this,"host","");c(this,"name","")}}jn([p(0,"ip",String),En("design:type",String)],Tn.prototype,"ip",void 0),jn([p(1,"port",String),En("design:type",String)],Tn.prototype,"port",void 0),jn([p(2,"host",String),En("design:type",String)],Tn.prototype,"host",void 0),jn([p(3,"name",String),En("design:type",String)],Tn.prototype,"name",void 0);class wi{constructor(){c(this,"nodeId","");c(this,"instId","");c(this,"instName","")}}jn([p(0,"node_id",String),En("design:type",String)],wi.prototype,"nodeId",void 0),jn([p(1,"inst_id",String),En("design:type",String)],wi.prototype,"instId",void 0),jn([p(2,"inst_name",String),En("design:type",String)],wi.prototype,"instName",void 0);var Ge=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},We=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ms,hs,gs,bs,_s,Os;class Ve{constructor(){c(this,"version","");c(this,"tid","");c(this,"sid","");c(this,"eid","");c(this,"mid","");c(this,"timestamp","");c(this,"source",new nt);c(this,"target",new nt);c(this,"binding",new je);c(this,"entity",new Re)}}Ge([p(0,"version",String),We("design:type",String)],Ve.prototype,"version",void 0),Ge([p(1,"tid",String),We("design:type",String)],Ve.prototype,"tid",void 0),Ge([p(2,"sid",String),We("design:type",String)],Ve.prototype,"sid",void 0),Ge([p(3,"eid",String),We("design:type",String)],Ve.prototype,"eid",void 0),Ge([p(4,"mid",String),We("design:type",String)],Ve.prototype,"mid",void 0),Ge([p(5,"timestamp",String),We("design:type",String)],Ve.prototype,"timestamp",void 0),Ge([p(6,"source",nt),We("design:type",typeof(ms=typeof nt<"u"&&nt)=="function"?ms:Object)],Ve.prototype,"source",void 0),Ge([p(7,"target",nt),We("design:type",typeof(hs=typeof nt<"u"&&nt)=="function"?hs:Object)],Ve.prototype,"target",void 0),Ge([p(8,"binding",je),We("design:type",typeof(gs=typeof je<"u"&&je)=="function"?gs:Object)],Ve.prototype,"binding",void 0),Ge([p(9,"entity",Re),We("design:type",typeof(bs=typeof Re<"u"&&Re)=="function"?bs:Object)],Ve.prototype,"entity",void 0);class Jt{constructor(){c(this,"taskId","");c(this,"binding",new je);c(this,"status",0);c(this,"createAt",0);c(this,"invokeAt",0);c(this,"entity",new Re)}}Ge([p(0,"task_id",String),We("design:type",String)],Jt.prototype,"taskId",void 0),Ge([p(1,"binding",je),We("design:type",typeof(_s=typeof je<"u"&&je)=="function"?_s:Object)],Jt.prototype,"binding",void 0),Ge([p(2,"status",Number),We("design:type",Number)],Jt.prototype,"status",void 0),Ge([p(3,"create_at",Number),We("design:type",Number)],Jt.prototype,"createAt",void 0),Ge([p(4,"invoke_at",Number),We("design:type",Number)],Jt.prototype,"invokeAt",void 0),Ge([p(5,"entity",Re),We("design:type",typeof(Os=typeof Re<"u"&&Re)=="function"?Os:Object)],Jt.prototype,"entity",void 0);var Pt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ss;class nr{constructor(){c(this,"kind","");c(this,"key","")}}Pt([p(0,"kind",String),wt("design:type",String)],nr.prototype,"kind",void 0),Pt([p(1,"key",String),wt("design:type",String)],nr.prototype,"key",void 0);class ft{constructor(){c(this,"algo","");c(this,"domain","");c(this,"subject","");c(this,"length",0);c(this,"expireAt");c(this,"mail","");c(this,"isCA",!1);c(this,"caCert","");c(this,"caKey","");c(this,"ips",[])}}Pt([p(0,"algo",String),wt("design:type",String)],ft.prototype,"algo",void 0),Pt([p(1,"domain",String),wt("design:type",String)],ft.prototype,"domain",void 0),Pt([p(2,"subject",String),wt("design:type",String)],ft.prototype,"subject",void 0),Pt([p(3,"length",Number),wt("design:type",Number)],ft.prototype,"length",void 0),Pt([p(4,"expire_at",Date),wt("design:type",typeof(Ss=typeof Date<"u"&&Date)=="function"?Ss:Object)],ft.prototype,"expireAt",void 0),Pt([p(5,"mail",String),wt("design:type",String)],ft.prototype,"mail",void 0),Pt([p(6,"is_ca",Boolean),wt("design:type",Boolean)],ft.prototype,"isCA",void 0),Pt([p(7,"ca_cert",String),wt("design:type",String)],ft.prototype,"caCert",void 0),Pt([p(8,"ca_key",String),wt("design:type",String)],ft.prototype,"caKey",void 0),Pt([p(9,"ips",[Array,String]),wt("design:type",Array)],ft.prototype,"ips",void 0);var ge=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},be=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Rs,vs;class ye{constructor(){c(this,"version","");c(this,"level",0);c(this,"name","");c(this,"createBy","");c(this,"createAt",0);c(this,"activeAt",0);c(this,"factor","");c(this,"signature","");c(this,"muid","");c(this,"server","");c(this,"crt","");c(this,"group",[]);c(this,"replicas",0);c(this,"maxCooperators",0);c(this,"maxTenants",0);c(this,"maxUsers",0);c(this,"maxMills",0);c(this,"whiteURN",[]);c(this,"blackURN",[]);c(this,"superURN",[])}}ge([p(0,"version",String),be("design:type",String)],ye.prototype,"version",void 0),ge([p(1,"level",Number),be("design:type",Number)],ye.prototype,"level",void 0),ge([p(2,"name",String),be("design:type",String)],ye.prototype,"name",void 0),ge([p(3,"create_by",String),be("design:type",String)],ye.prototype,"createBy",void 0),ge([p(4,"create_at",Number),be("design:type",Number)],ye.prototype,"createAt",void 0),ge([p(5,"active_at",Number),be("design:type",Number)],ye.prototype,"activeAt",void 0),ge([p(6,"factors",String),be("design:type",String)],ye.prototype,"factor",void 0),ge([p(7,"signature",String),be("design:type",String)],ye.prototype,"signature",void 0),ge([p(8,"muid",String),be("design:type",String)],ye.prototype,"muid",void 0),ge([p(9,"server",String),be("design:type",String)],ye.prototype,"server",void 0),ge([p(10,"crt",String),be("design:type",String)],ye.prototype,"crt",void 0),ge([p(11,"group",[Array,String]),be("design:type",Array)],ye.prototype,"group",void 0),ge([p(12,"replicas",Number),be("design:type",Number)],ye.prototype,"replicas",void 0),ge([p(13,"max_cooperators",Number),be("design:type",Number)],ye.prototype,"maxCooperators",void 0),ge([p(14,"max_tenants",Number),be("design:type",Number)],ye.prototype,"maxTenants",void 0),ge([p(15,"max_users",Number),be("design:type",Number)],ye.prototype,"maxUsers",void 0),ge([p(16,"max_mills",Number),be("design:type",Number)],ye.prototype,"maxMills",void 0),ge([p(17,"white_urns",[Array,String]),be("design:type",Array)],ye.prototype,"whiteURN",void 0),ge([p(18,"black_urns",[Array,String]),be("design:type",Array)],ye.prototype,"blackURN",void 0),ge([p(19,"super_urns",[Array,String]),be("design:type",Array)],ye.prototype,"superURN",void 0);class rr{constructor(){c(this,"cipher","");c(this,"explain",new ye);c(this,"createAt")}}ge([p(0,"cipher",String),be("design:type",String)],rr.prototype,"cipher",void 0),ge([p(1,"explain",ye),be("design:type",ye)],rr.prototype,"explain",void 0),ge([p(2,"create_at",Date),be("design:type",typeof(Rs=typeof Date<"u"&&Date)=="function"?Rs:Object)],rr.prototype,"createAt",void 0);class ir{constructor(){c(this,"cipher","");c(this,"explain",new xe);c(this,"nodeKey","")}}ge([p(0,"cipher",String),be("design:type",String)],ir.prototype,"cipher",void 0),ge([p(1,"explain",xe),be("design:type",typeof(vs=typeof xe<"u"&&xe)=="function"?vs:Object)],ir.prototype,"explain",void 0),ge([p(2,"node_key",String),be("design:type",String)],ir.prototype,"nodeKey",void 0);var ce=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ae=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ps,ws;class or{constructor(){c(this,"mno","");c(this,"kind","");c(this,"mime",new Uint8Array);c(this,"text","")}}ce([p(0,"mno",String),ae("design:type",String)],or.prototype,"mno",void 0),ce([p(1,"kind",String),ae("design:type",String)],or.prototype,"kind",void 0),ce([p(2,"mime",Uint8Array),ae("design:type",typeof(Ps=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ps:Object)],or.prototype,"mime",void 0),ce([p(3,"text",String),ae("design:type",String)],or.prototype,"text",void 0);class jt{constructor(){c(this,"clientId","");c(this,"clientKey","");c(this,"username","");c(this,"password","");c(this,"captcha","")}}ce([p(0,"client_id",String),ae("design:type",String)],jt.prototype,"clientId",void 0),ce([p(1,"client_key",String),ae("design:type",String)],jt.prototype,"clientKey",void 0),ce([p(2,"username",String),ae("design:type",String)],jt.prototype,"username",void 0),ce([p(3,"password",String),ae("design:type",String)],jt.prototype,"password",void 0),ce([p(4,"captcha",String),ae("design:type",String)],jt.prototype,"captcha",void 0);class an{constructor(){c(this,"token","");c(this,"kind","");c(this,"expiresAt",0);c(this,"scope","");c(this,"refreshToken","")}}ce([p(0,"token",String),ae("design:type",String)],an.prototype,"token",void 0),ce([p(1,"type",String),ae("design:type",String)],an.prototype,"kind",void 0),ce([p(2,"expires_at",Number),ae("design:type",Number)],an.prototype,"expiresAt",void 0),ce([p(3,"scope",String),ae("design:type",String)],an.prototype,"scope",void 0),ce([p(4,"refresh_token",String),ae("design:type",String)],an.prototype,"refreshToken",void 0);class co{constructor(){c(this,"code","")}}ce([p(0,"code",String),ae("design:type",String)],co.prototype,"code",void 0);class ji{constructor(){c(this,"code","");c(this,"redirectURI","")}}ce([p(0,"code",String),ae("design:type",String)],ji.prototype,"code",void 0),ce([p(1,"redirect_uri",String),ae("design:type",String)],ji.prototype,"redirectURI",void 0);class qr{constructor(){c(this,"clientId","");c(this,"userId","");c(this,"expiresAt",0)}}ce([p(0,"client_id",String),ae("design:type",String)],qr.prototype,"clientId",void 0),ce([p(1,"user_id",String),ae("design:type",String)],qr.prototype,"userId",void 0),ce([p(2,"expires_at",Number),ae("design:type",Number)],qr.prototype,"expiresAt",void 0);class _t{constructor(){c(this,"token","");c(this,"userid","");c(this,"username","");c(this,"nickname","");c(this,"avatar","");c(this,"mobile","");c(this,"mail","");c(this,"deptId","");c(this,"nodeId","");c(this,"instIds",[]);c(this,"attrs",[]);c(this,"raw",{})}}ce([p(0,"token",String),ae("design:type",String)],_t.prototype,"token",void 0),ce([p(1,"userid",String),ae("design:type",String)],_t.prototype,"userid",void 0),ce([p(2,"username",String),ae("design:type",String)],_t.prototype,"username",void 0),ce([p(3,"nickname",String),ae("design:type",String)],_t.prototype,"nickname",void 0),ce([p(4,"avatar",String),ae("design:type",String)],_t.prototype,"avatar",void 0),ce([p(5,"mobile",String),ae("design:type",String)],_t.prototype,"mobile",void 0),ce([p(6,"mail",String),ae("design:type",String)],_t.prototype,"mail",void 0),ce([p(7,"dept_id",String),ae("design:type",String)],_t.prototype,"deptId",void 0),ce([p(8,"node_id",String),ae("design:type",String)],_t.prototype,"nodeId",void 0),ce([p(9,"inst_ids",[Array,String]),ae("design:type",Array)],_t.prototype,"instIds",void 0),ce([p(10,"attrs",[Array,String]),ae("design:type",Array)],_t.prototype,"attrs",void 0),ce([p(11,"raw",[Map,String,String]),ae("design:type",typeof(ws=typeof Record<"u"&&Record)=="function"?ws:Object)],_t.prototype,"raw",void 0);var sr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},js,Es;class ao{constructor(){c(this,"arguments",[]);c(this,"attachments",{})}}sr([p(0,"arguments",[Array,Object]),cr("design:type",Array)],ao.prototype,"arguments",void 0),sr([p(1,"attachments",[Map,String,String]),cr("design:type",typeof(js=typeof Record<"u"&&Record)=="function"?js:Object)],ao.prototype,"attachments",void 0);class zr{constructor(){c(this,"code","");c(this,"message","");c(this,"cause",new ut);c(this,"content")}}sr([p(0,"code",String),cr("design:type",String)],zr.prototype,"code",void 0),sr([p(1,"message",String),cr("design:type",String)],zr.prototype,"message",void 0),sr([p(2,"cause",ut),cr("design:type",typeof(Es=typeof ut<"u"&&ut)=="function"?Es:Object)],zr.prototype,"cause",void 0),sr([p(3,"content",Object),cr("design:type",Object)],zr.prototype,"content",void 0);var ne=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},re=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ts,Ns;class Et{constructor(){c(this,"version","");c(this,"proto","");c(this,"codec","");c(this,"mdc","");c(this,"zone","");c(this,"cluster","");c(this,"cell","");c(this,"group","");c(this,"address","")}}ne([p(0,"version",String),re("design:type",String)],Et.prototype,"version",void 0),ne([p(1,"proto",String),re("design:type",String)],Et.prototype,"proto",void 0),ne([p(2,"codec",String),re("design:type",String)],Et.prototype,"codec",void 0),ne([p(3,"mdc",String),re("design:type",String)],Et.prototype,"mdc",void 0),ne([p(4,"zone",String),re("design:type",String)],Et.prototype,"zone",void 0),ne([p(5,"cluster",String),re("design:type",String)],Et.prototype,"cluster",void 0),ne([p(6,"cell",String),re("design:type",String)],Et.prototype,"cell",void 0),ne([p(7,"group",String),re("design:type",String)],Et.prototype,"group",void 0),ne([p(8,"address",String),re("design:type",String)],Et.prototype,"address",void 0);class Kt extends Et{constructor(){super(...arguments);c(this,"urn","");c(this,"namespace","");c(this,"name","");c(this,"flags",0);c(this,"timeout",0);c(this,"retries",0)}}ne([p(0,"urn",String),re("design:type",String)],Kt.prototype,"urn",void 0),ne([p(1,"namespace",String),re("design:type",String)],Kt.prototype,"namespace",void 0),ne([p(2,"name",String),re("design:type",String)],Kt.prototype,"name",void 0),ne([p(3,"flags",Number),re("design:type",Number)],Kt.prototype,"flags",void 0),ne([p(4,"timeout",Number),re("design:type",Number)],Kt.prototype,"timeout",void 0),ne([p(5,"retries",Number),re("design:type",Number)],Kt.prototype,"retries",void 0);class dt extends Et{constructor(){super(...arguments);c(this,"urn","");c(this,"namespace","");c(this,"name","");c(this,"flags",0);c(this,"timeout",0);c(this,"retries",0);c(this,"sets","");c(this,"kind","");c(this,"lang","");c(this,"attrs",{})}}ne([p(0,"urn",String),re("design:type",String)],dt.prototype,"urn",void 0),ne([p(1,"namespace",String),re("design:type",String)],dt.prototype,"namespace",void 0),ne([p(2,"name",String),re("design:type",String)],dt.prototype,"name",void 0),ne([p(3,"flags",Number),re("design:type",Number)],dt.prototype,"flags",void 0),ne([p(4,"timeout",Number),re("design:type",Number)],dt.prototype,"timeout",void 0),ne([p(5,"retries",Number),re("design:type",Number)],dt.prototype,"retries",void 0),ne([p(6,"sets",String),re("design:type",String)],dt.prototype,"sets",void 0),ne([p(7,"kind",String),re("design:type",String)],dt.prototype,"kind",void 0),ne([p(8,"lang",String),re("design:type",String)],dt.prototype,"lang",void 0),ne([p(9,"attrs",[Map,String,String]),re("design:type",typeof(Ts=typeof Record<"u"&&Record)=="function"?Ts:Object)],dt.prototype,"attrs",void 0);class uo{constructor(){c(this,"references",[]);c(this,"services",[])}}ne([p(0,"references",[Array,Kt]),re("design:type",Array)],uo.prototype,"references",void 0),ne([p(1,"services",[Array,dt]),re("design:type",Array)],uo.prototype,"services",void 0);class Je{constructor(){c(this,"instanceId","");c(this,"name","");c(this,"kind","");c(this,"address","");c(this,"content");c(this,"timestamp",0);c(this,"attachments",{})}}ne([p(0,"instance_id",String),re("design:type",String)],Je.prototype,"instanceId",void 0),ne([p(1,"name",String),re("design:type",String)],Je.prototype,"name",void 0),ne([p(2,"kind",String),re("design:type",String)],Je.prototype,"kind",void 0),ne([p(3,"address",String),re("design:type",String)],Je.prototype,"address",void 0),ne([p(4,"content",Object),re("design:type",Object)],Je.prototype,"content",void 0),ne([p(5,"timestamp",Number),re("design:type",Number)],Je.prototype,"timestamp",void 0),ne([p(6,"attachments",[Map,String,String]),re("design:type",typeof(Ns=typeof Record<"u"&&Record)=="function"?Ns:Object)],Je.prototype,"attachments",void 0);var Ee=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Te=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},As,Is,Ms;class ue{constructor(){c(this,"sid","");c(this,"did","");c(this,"name","");c(this,"kind","");c(this,"pattern","");c(this,"address","");c(this,"memo","");c(this,"rank",0);c(this,"tags","");c(this,"expireAt");c(this,"upstream",0);c(this,"downstream",0);c(this,"hostRoot","");c(this,"hostCrt","");c(this,"hostKey","");c(this,"guestRoot","");c(this,"raw","");c(this,"status",0);c(this,"createAt");c(this,"updateAt");c(this,"createBy","");c(this,"updateBy","")}}Ee([p(0,"sid",String),Te("design:type",String)],ue.prototype,"sid",void 0),Ee([p(1,"did",String),Te("design:type",String)],ue.prototype,"did",void 0),Ee([p(2,"name",String),Te("design:type",String)],ue.prototype,"name",void 0),Ee([p(3,"kind",String),Te("design:type",String)],ue.prototype,"kind",void 0),Ee([p(4,"pattern",String),Te("design:type",String)],ue.prototype,"pattern",void 0),Ee([p(5,"address",String),Te("design:type",String)],ue.prototype,"address",void 0),Ee([p(6,"memo",String),Te("design:type",String)],ue.prototype,"memo",void 0),Ee([p(7,"rank",Number),Te("design:type",Number)],ue.prototype,"rank",void 0),Ee([p(8,"tags",String),Te("design:type",String)],ue.prototype,"tags",void 0),Ee([p(9,"expire_at",Date),Te("design:type",typeof(As=typeof Date<"u"&&Date)=="function"?As:Object)],ue.prototype,"expireAt",void 0),Ee([p(10,"upstream",Number),Te("design:type",Number)],ue.prototype,"upstream",void 0),Ee([p(11,"downstream",Number),Te("design:type",Number)],ue.prototype,"downstream",void 0),Ee([p(12,"host_root",String),Te("design:type",String)],ue.prototype,"hostRoot",void 0),Ee([p(13,"host_crt",String),Te("design:type",String)],ue.prototype,"hostCrt",void 0),Ee([p(14,"host_key",String),Te("design:type",String)],ue.prototype,"hostKey",void 0),Ee([p(15,"guest_root",String),Te("design:type",String)],ue.prototype,"guestRoot",void 0),Ee([p(16,"raw",String),Te("design:type",String)],ue.prototype,"raw",void 0),Ee([p(17,"status",Number),Te("design:type",Number)],ue.prototype,"status",void 0),Ee([p(18,"create_at",Date),Te("design:type",typeof(Is=typeof Date<"u"&&Date)=="function"?Is:Object)],ue.prototype,"createAt",void 0),Ee([p(19,"update_at",Date),Te("design:type",typeof(Ms=typeof Date<"u"&&Date)=="function"?Ms:Object)],ue.prototype,"updateAt",void 0),Ee([p(20,"create_by",String),Te("design:type",String)],ue.prototype,"createBy",void 0),Ee([p(21,"update_by",String),Te("design:type",String)],ue.prototype,"updateBy",void 0);var Xt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Yt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Cs;class Nn{constructor(){c(this,"xid","");c(this,"timeout",0);c(this,"schema","");c(this,"flags",0)}}Xt([p(0,"xid",String),Yt("design:type",String)],Nn.prototype,"xid",void 0),Xt([p(1,"timeout",Number),Yt("design:type",Number)],Nn.prototype,"timeout",void 0),Xt([p(2,"schema",String),Yt("design:type",String)],Nn.prototype,"schema",void 0),Xt([p(3,"flags",Number),Yt("design:type",Number)],Nn.prototype,"flags",void 0);class Qt{constructor(){c(this,"xid","");c(this,"schema","");c(this,"grammar","");c(this,"expr","");c(this,"args",{});c(this,"flags",0)}}Xt([p(0,"xid",String),Yt("design:type",String)],Qt.prototype,"xid",void 0),Xt([p(1,"schema",String),Yt("design:type",String)],Qt.prototype,"schema",void 0),Xt([p(2,"grammar",String),Yt("design:type",String)],Qt.prototype,"grammar",void 0),Xt([p(3,"expr",String),Yt("design:type",String)],Qt.prototype,"expr",void 0),Xt([p(4,"args",[Map,String,Object]),Yt("design:type",typeof(Cs=typeof Record<"u"&&Record)=="function"?Cs:Object)],Qt.prototype,"args",void 0),Xt([p(5,"flags",Number),Yt("design:type",Number)],Qt.prototype,"flags",void 0);var ar=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ur=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Us;class Tt{constructor(){c(this,"code","");c(this,"name","");c(this,"desc","");c(this,"kind","");c(this,"expr","");c(this,"attachment",{})}}ar([p(0,"code",String),ur("design:type",String)],Tt.prototype,"code",void 0),ar([p(1,"name",String),ur("design:type",String)],Tt.prototype,"name",void 0),ar([p(2,"desc",String),ur("design:type",String)],Tt.prototype,"desc",void 0),ar([p(3,"kind",String),ur("design:type",String)],Tt.prototype,"kind",void 0),ar([p(4,"expr",String),ur("design:type",String)],Tt.prototype,"expr",void 0),ar([p(5,"attachment",[Map,String,String]),ur("design:type",typeof(Us=typeof Record<"u"&&Record)=="function"?Us:Object)],Tt.prototype,"attachment",void 0);class $s{constructor(e,t,n){c(this,"code");c(this,"text");c(this,"color");this.code=e,this.text=t,this.color=n}}const Ji=class Ji{constructor(e){c(this,"values");this.values=e}from(e){for(let t of this.values){if(typeof t.code!="number"||typeof e!="number"){if(t.code==e)return t;continue}if(t.code===(t.code&e))return t}return this.values[0]}asMap(){const e=new Map([["",new $s(-1,"全部","")]]);for(let t=0;t<this.values.length;t++)e.set(this.values[t].text,this.values[t]);return e}};c(Ji,"Route",new Ji([{code:1,text:"已登记",color:"blue"},{code:2,text:"已禁用",color:"orange"},{code:4,text:"已启用",color:"green"}]));let fo=Ji;var un=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Fs;class Gr{constructor(){c(this,"idx",0);c(this,"flag",0);c(this,"body",new Uint8Array)}}un([p(0,"idx",Number),fn("design:type",Number)],Gr.prototype,"idx",void 0),un([p(1,"flag",Number),fn("design:type",Number)],Gr.prototype,"flag",void 0),un([p(2,"body",Uint8Array),fn("design:type",typeof(Fs=typeof Uint8Array<"u"&&Uint8Array)=="function"?Fs:Object)],Gr.prototype,"body",void 0);class Nt extends Gr{constructor(){super(...arguments);c(this,"bucket","");c(this,"src","");c(this,"rid","");c(this,"dst","");c(this,"sni","");c(this,"addr","")}}un([p(0,"bucket",String),fn("design:type",String)],Nt.prototype,"bucket",void 0),un([p(1,"src",String),fn("design:type",String)],Nt.prototype,"src",void 0),un([p(2,"rid",String),fn("design:type",String)],Nt.prototype,"rid",void 0),un([p(3,"dst",String),fn("design:type",String)],Nt.prototype,"dst",void 0),un([p(4,"sni",String),fn("design:type",String)],Nt.prototype,"sni",void 0),un([p(5,"addr",String),fn("design:type",String)],Nt.prototype,"addr",void 0);var ks=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},xs=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Bs;class Wr{constructor(){c(this,"version","");c(this,"infos",{})}}ks([p(0,"version",String),xs("design:type",String)],Wr.prototype,"version",void 0),ks([p(1,"infos",[Map,String,String]),xs("design:type",typeof(Bs=typeof Record<"u"&&Record)=="function"?Bs:Object)],Wr.prototype,"infos",void 0);var W=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},V=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ds,Ls,Hs,qs,zs;class Be{constructor(){c(this,"no","");c(this,"name","");c(this,"alias","")}}W([p(0,"no",String),V("design:type",String)],Be.prototype,"no",void 0),W([p(1,"name",String),V("design:type",String)],Be.prototype,"name",void 0),W([p(2,"alias",String),V("design:type",String)],Be.prototype,"alias",void 0);class An{constructor(){c(this,"bno","");c(this,"cno","");c(this,"context",{});c(this,"applier",new Be)}}W([p(0,"bno",String),V("design:type",String)],An.prototype,"bno",void 0),W([p(1,"cno",String),V("design:type",String)],An.prototype,"cno",void 0),W([p(2,"context",[Map,String,String]),V("design:type",typeof(Ds=typeof Record<"u"&&Record)=="function"?Ds:Object)],An.prototype,"context",void 0),W([p(3,"applier",Be),V("design:type",Be)],An.prototype,"applier",void 0);class He{constructor(){c(this,"name","");c(this,"alias","");c(this,"attrs",{});c(this,"kind",0);c(this,"group","")}}W([p(0,"name",String),V("design:type",String)],He.prototype,"name",void 0),W([p(1,"alias",String),V("design:type",String)],He.prototype,"alias",void 0),W([p(2,"attrs",[Map,String,String]),V("design:type",typeof(Ls=typeof Record<"u"&&Record)=="function"?Ls:Object)],He.prototype,"attrs",void 0),W([p(3,"kind",Number),V("design:type",Number)],He.prototype,"kind",void 0),W([p(4,"group",String),V("design:type",String)],He.prototype,"group",void 0);class Vr{constructor(){c(this,"src","");c(this,"dst","");c(this,"condition","")}}W([p(0,"src",String),V("design:type",String)],Vr.prototype,"src",void 0),W([p(1,"dst",String),V("design:type",String)],Vr.prototype,"dst",void 0),W([p(2,"condition",String),V("design:type",String)],Vr.prototype,"condition",void 0);class pt{constructor(){c(this,"cno","");c(this,"name","");c(this,"vertices",[]);c(this,"sides",[]);c(this,"status",0);c(this,"maintainer",new Be)}}W([p(0,"cno",String),V("design:type",String)],pt.prototype,"cno",void 0),W([p(1,"name",String),V("design:type",String)],pt.prototype,"name",void 0),W([p(2,"vertices",[Array,He]),V("design:type",Array)],pt.prototype,"vertices",void 0),W([p(3,"sides",[Array,Vr]),V("design:type",Array)],pt.prototype,"sides",void 0),W([p(4,"status",Number),V("design:type",Number)],pt.prototype,"status",void 0),W([p(5,"maintainer",Be),V("design:type",Be)],pt.prototype,"maintainer",void 0);class dn{constructor(){c(this,"vertex",new He);c(this,"reviewers",[]);c(this,"status",0);c(this,"context",{})}}W([p(0,"vertex",He),V("design:type",He)],dn.prototype,"vertex",void 0),W([p(1,"reviewers",[Array,Be]),V("design:type",Array)],dn.prototype,"reviewers",void 0),W([p(2,"status",Number),V("design:type",Number)],dn.prototype,"status",void 0),W([p(3,"context",[Map,String,String]),V("design:type",typeof(Hs=typeof Record<"u"&&Record)=="function"?Hs:Object)],dn.prototype,"context",void 0);class qn{constructor(){c(this,"rno","");c(this,"bno","");c(this,"context",{});c(this,"status",0);c(this,"chart",new pt);c(this,"tasks",[])}}W([p(0,"rno",String),V("design:type",String)],qn.prototype,"rno",void 0),W([p(1,"bno",String),V("design:type",String)],qn.prototype,"bno",void 0),W([p(2,"context",[Map,String,String]),V("design:type",typeof(qs=typeof Record<"u"&&Record)=="function"?qs:Object)],qn.prototype,"context",void 0),W([p(3,"status",Number),V("design:type",Number)],qn.prototype,"status",void 0),W([p(4,"chart",pt),V("design:type",pt)],qn.prototype,"chart",void 0),W([p(5,"tasks",[Array,dn]),V("design:type",Array)],qn.prototype,"tasks",void 0);class pn{constructor(){c(this,"no","");c(this,"name","");c(this,"status",0);c(this,"workers",[])}}W([p(0,"no",String),V("design:type",String)],pn.prototype,"no",void 0),W([p(1,"name",String),V("design:type",String)],pn.prototype,"name",void 0),W([p(2,"status",Number),V("design:type",Number)],pn.prototype,"status",void 0),W([p(3,"workers",[Array,Be]),V("design:type",Array)],pn.prototype,"workers",void 0);class ln{constructor(){c(this,"rno","");c(this,"bno","");c(this,"cno","");c(this,"context",{});c(this,"vertex",new He);c(this,"task",new dn);c(this,"applier",new Be);c(this,"reviewer",new Be)}}W([p(0,"rno",String),V("design:type",String)],ln.prototype,"rno",void 0),W([p(1,"bno",String),V("design:type",String)],ln.prototype,"bno",void 0),W([p(2,"cno",String),V("design:type",String)],ln.prototype,"cno",void 0),W([p(3,"context",[Map,String,String]),V("design:type",typeof(zs=typeof Record<"u"&&Record)=="function"?zs:Object)],ln.prototype,"context",void 0),W([p(4,"vertex",He),V("design:type",He)],ln.prototype,"vertex",void 0),W([p(5,"task",dn),V("design:type",dn)],ln.prototype,"task",void 0),W([p(6,"applier",Be),V("design:type",Be)],ln.prototype,"applier",void 0),W([p(7,"reviewer",Be),V("design:type",Be)],ln.prototype,"reviewer",void 0);var yn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ve=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},zn=function(r,e){return function(t,n){e(t,n,r)}},Gs,Ws,Vs,Js,Ks,Xs,Ys,Qs,Zs,ec;d.Builtin=class{doc(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}version(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}debug(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}stats(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}fallback(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},yn([R("${mesh.name}.builtin.doc",String),zn(0,p(0,"name",String)),zn(1,p(1,"formatter",String)),ve("design:type",Function),ve("design:paramtypes",[String,String,Object]),ve("design:returntype",typeof(Gs=typeof Promise<"u"&&Promise)=="function"?Gs:Object)],d.Builtin.prototype,"doc",null),yn([R("${mesh.name}.builtin.version",Wr),ve("design:type",Function),ve("design:paramtypes",[Object]),ve("design:returntype",typeof(Ws=typeof Promise<"u"&&Promise)=="function"?Ws:Object)],d.Builtin.prototype,"version",null),yn([R("${mesh.name}.builtin.debug",Object),zn(0,p(0,"features",[Map,String,String])),ve("design:type",Function),ve("design:paramtypes",[typeof(Vs=typeof Record<"u"&&Record)=="function"?Vs:Object,Object]),ve("design:returntype",typeof(Js=typeof Promise<"u"&&Promise)=="function"?Js:Object)],d.Builtin.prototype,"debug",null),yn([R("${mesh.name}.builtin.stats",[Map,String,String]),zn(0,p(0,"features",[Array,String])),ve("design:type",Function),ve("design:paramtypes",[Array,Object]),ve("design:returntype",typeof(Ks=typeof Promise<"u"&&Promise)=="function"?Ks:Object)],d.Builtin.prototype,"stats",null),yn([R("${mesh.name}.builtin.fallback",Object),ve("design:type",Function),ve("design:paramtypes",[Object]),ve("design:returntype",typeof(Xs=typeof Promise<"u"&&Promise)=="function"?Xs:Object)],d.Builtin.prototype,"fallback",null),yn([R("${mesh.name}.builtin.dump",[Map,String,String]),zn(0,p(0,"names",[Array,String])),ve("design:type",Function),ve("design:paramtypes",[Array,Object]),ve("design:returntype",typeof(Ys=typeof Promise<"u"&&Promise)=="function"?Ys:Object)],d.Builtin.prototype,"dump",null),d.Builtin=yn([L("mpi")],d.Builtin);class po{stats(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}debug(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}}yn([zn(0,p(0,"features",[Array,String])),ve("design:type",Function),ve("design:paramtypes",[Array,Object]),ve("design:returntype",typeof(Qs=typeof Promise<"u"&&Promise)=="function"?Qs:Object)],po.prototype,"stats",null),yn([zn(0,p(0,"features",[Map,String,String])),ve("design:type",Function),ve("design:paramtypes",[typeof(Zs=typeof Record<"u"&&Record)=="function"?Zs:Object,Object]),ve("design:returntype",typeof(ec=typeof Promise<"u"&&Promise)=="function"?ec:Object)],po.prototype,"debug",null);var Lt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},rt=function(r,e){return function(t,n){e(t,n,r)}},tc,nc,rc,ic,oc,sc,cc,ac,uc,fc,dc,pc;d.Cache=class{get(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}put(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}remove(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}incr(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}decr(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}keys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}hget(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hset(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hdel(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hkeys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Lt([R("mesh.cache.get",tt),rt(0,p(0,"key",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(tc=typeof Promise<"u"&&Promise)=="function"?tc:Object)],d.Cache.prototype,"get",null),Lt([R("mesh.cache.put",Object),rt(0,p(0,"cell",tt)),fe("design:type",Function),fe("design:paramtypes",[typeof(nc=typeof tt<"u"&&tt)=="function"?nc:Object,Object]),fe("design:returntype",typeof(rc=typeof Promise<"u"&&Promise)=="function"?rc:Object)],d.Cache.prototype,"put",null),Lt([R("mesh.cache.remove",Object),rt(0,p(0,"key",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(ic=typeof Promise<"u"&&Promise)=="function"?ic:Object)],d.Cache.prototype,"remove",null),Lt([R("mesh.cache.incr",Number),rt(0,p(0,"key",String)),rt(1,p(1,"value",Number)),fe("design:type",Function),fe("design:paramtypes",[String,Number,Object]),fe("design:returntype",typeof(oc=typeof Promise<"u"&&Promise)=="function"?oc:Object)],d.Cache.prototype,"incr",null),Lt([R("mesh.cache.decr",Number),rt(0,p(0,"key",String)),rt(1,p(1,"value",Number)),fe("design:type",Function),fe("design:paramtypes",[String,Number,Object]),fe("design:returntype",typeof(sc=typeof Promise<"u"&&Promise)=="function"?sc:Object)],d.Cache.prototype,"decr",null),Lt([R("mesh.cache.keys",[Array,String]),rt(0,p(0,"pattern",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(cc=typeof Promise<"u"&&Promise)=="function"?cc:Object)],d.Cache.prototype,"keys",null),Lt([R("mesh.cache.hget",tt),rt(0,p(0,"key",String)),rt(1,p(1,"name",String)),fe("design:type",Function),fe("design:paramtypes",[String,String,Object]),fe("design:returntype",typeof(ac=typeof Promise<"u"&&Promise)=="function"?ac:Object)],d.Cache.prototype,"hget",null),Lt([R("mesh.cache.hset",Object),rt(0,p(0,"key",String)),rt(1,p(1,"cell",tt)),fe("design:type",Function),fe("design:paramtypes",[String,typeof(uc=typeof tt<"u"&&tt)=="function"?uc:Object,Object]),fe("design:returntype",typeof(fc=typeof Promise<"u"&&Promise)=="function"?fc:Object)],d.Cache.prototype,"hset",null),Lt([R("mesh.cache.hdel",Object),rt(0,p(0,"key",String)),rt(1,p(1,"name",String)),fe("design:type",Function),fe("design:paramtypes",[String,String,Object]),fe("design:returntype",typeof(dc=typeof Promise<"u"&&Promise)=="function"?dc:Object)],d.Cache.prototype,"hdel",null),Lt([R("mesh.cache.hkeys",[Array,String]),rt(0,p(0,"key",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(pc=typeof Promise<"u"&&Promise)=="function"?pc:Object)],d.Cache.prototype,"hkeys",null),d.Cache=Lt([L("mesh")],d.Cache);var Ke=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},X=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ot=function(r,e){return function(t,n){e(t,n,r)}},lc,yc,mc,hc,gc,bc,_c,Oc,Sc,Rc,vc,Pc,wc,jc,Ec,Tc,Nc,Ac,Ic,Mc,Cc,Uc,$c,Fc,kc;d.CipherEconomy=class{handshake(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}collect(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}serve(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}deposit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}objects(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}keys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}invoke(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Ke([R("${mesh.name}.cipher.handshake",String),Ot(0,p(0,"hello",Qe)),X("design:type",Function),X("design:paramtypes",[typeof(lc=typeof Qe<"u"&&Qe)=="function"?lc:Object,Object]),X("design:returntype",typeof(yc=typeof Promise<"u"&&Promise)=="function"?yc:Object)],d.CipherEconomy.prototype,"handshake",null),Ke([R("${mesh.name}.cipher.collect",Number),Ot(0,p(0,"obj",ze)),X("design:type",Function),X("design:paramtypes",[typeof(mc=typeof ze<"u"&&ze)=="function"?mc:Object,Object]),X("design:returntype",typeof(hc=typeof Promise<"u"&&Promise)=="function"?hc:Object)],d.CipherEconomy.prototype,"collect",null),Ke([R("${mesh.name}.cipher.encrypt",String),Ot(0,p(0,"suite",String)),X("design:type",Function),X("design:paramtypes",[String,Object]),X("design:returntype",typeof(gc=typeof Promise<"u"&&Promise)=="function"?gc:Object)],d.CipherEconomy.prototype,"serve",null),Ke([R("mesh.rec.deposit",String),Ot(0,p(0,"rco",ze)),X("design:type",Function),X("design:paramtypes",[typeof(bc=typeof ze<"u"&&ze)=="function"?bc:Object,Object]),X("design:returntype",typeof(_c=typeof Promise<"u"&&Promise)=="function"?_c:Object)],d.CipherEconomy.prototype,"deposit",null),Ke([R("mesh.rec.objects",[Fe,ze]),Ot(0,p(0,"index",J)),X("design:type",Function),X("design:paramtypes",[typeof(Oc=typeof J<"u"&&J)=="function"?Oc:Object,Object]),X("design:returntype",typeof(Sc=typeof Promise<"u"&&Promise)=="function"?Sc:Object)],d.CipherEconomy.prototype,"objects",null),Ke([R("${mesh.name}.cipher.keys",[Fe,nr]),Ot(0,p(0,"idx",J)),X("design:type",Function),X("design:paramtypes",[typeof(Rc=typeof J<"u"&&J)=="function"?Rc:Object,Object]),X("design:returntype",typeof(vc=typeof Promise<"u"&&Promise)=="function"?vc:Object)],d.CipherEconomy.prototype,"keys",null),Ke([R("mesh.rec.invoke",Uint8Array),Ot(0,p(0,"index",J)),X("design:type",Function),X("design:paramtypes",[typeof(Pc=typeof J<"u"&&J)=="function"?Pc:Object,Object]),X("design:returntype",typeof(wc=typeof Promise<"u"&&Promise)=="function"?wc:Object)],d.CipherEconomy.prototype,"invoke",null),d.CipherEconomy=Ke([L("mpi")],d.CipherEconomy),d.CipherProvider=class{suite(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}keygen(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}regen(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}encode(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}decode(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}recode(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Ke([R("${mesh.name}.cipher.suite",Hn),Ot(0,p(0,"hello",Qe)),X("design:type",Function),X("design:paramtypes",[typeof(jc=typeof Qe<"u"&&Qe)=="function"?jc:Object,Object]),X("design:returntype",typeof(Ec=typeof Promise<"u"&&Promise)=="function"?Ec:Object)],d.CipherProvider.prototype,"suite",null),Ke([R("${mesh.name}.cipher.keygen",Pi),Ot(0,p(0,"keygen",vn)),X("design:type",Function),X("design:paramtypes",[typeof(Tc=typeof vn<"u"&&vn)=="function"?Tc:Object,Object]),X("design:returntype",typeof(Nc=typeof Promise<"u"&&Promise)=="function"?Nc:Object)],d.CipherProvider.prototype,"keygen",null),Ke([R("${mesh.name}.cipher.regen",Pi),Ot(0,p(0,"keygen",Dr)),X("design:type",Function),X("design:paramtypes",[typeof(Ac=typeof Dr<"u"&&Dr)=="function"?Ac:Object,Object]),X("design:returntype",typeof(Ic=typeof Promise<"u"&&Promise)=="function"?Ic:Object)],d.CipherProvider.prototype,"regen",null),Ke([R("${mesh.name}.cipher.encode",Uint8Array),Ot(0,p(0,"explain",Gt)),X("design:type",Function),X("design:paramtypes",[typeof(Mc=typeof Gt<"u"&&Gt)=="function"?Mc:Object,Object]),X("design:returntype",typeof(Cc=typeof Promise<"u"&&Promise)=="function"?Cc:Object)],d.CipherProvider.prototype,"encode",null),Ke([R("${mesh.name}.cipher.decode",Uint8Array),Ot(0,p(0,"cipher",Gt)),X("design:type",Function),X("design:paramtypes",[typeof(Uc=typeof Gt<"u"&&Gt)=="function"?Uc:Object,Object]),X("design:returntype",typeof($c=typeof Promise<"u"&&Promise)=="function"?$c:Object)],d.CipherProvider.prototype,"decode",null),Ke([R("${mesh.name}.cipher.recode",Uint8Array),Ot(0,p(0,"cipher",Lr)),X("design:type",Function),X("design:paramtypes",[typeof(Fc=typeof Lr<"u"&&Lr)=="function"?Fc:Object,Object]),X("design:returntype",typeof(kc=typeof Promise<"u"&&Promise)=="function"?kc:Object)],d.CipherProvider.prototype,"recode",null),d.CipherProvider=Ke([L("mpi")],d.CipherProvider),d.ObjectProvider=class{serve(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}},d.ObjectProvider=Ke([L("mpi")],d.ObjectProvider);var lo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},dp=function(r,e){return function(t,n){e(t,n,r)}},xc,Bc,Dc;d.Cluster=class{election(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}isLeader(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}},lo([R("mesh.cluster.election",Uint8Array),dp(0,p(0,"buff",Uint8Array)),fr("design:type",Function),fr("design:paramtypes",[typeof(xc=typeof Uint8Array<"u"&&Uint8Array)=="function"?xc:Object,Object]),fr("design:returntype",typeof(Bc=typeof Promise<"u"&&Promise)=="function"?Bc:Object)],d.Cluster.prototype,"election",null),lo([R("mesh.cluster.leader",Boolean),fr("design:type",Function),fr("design:paramtypes",[Object]),fr("design:returntype",typeof(Dc=typeof Promise<"u"&&Promise)=="function"?Dc:Object)],d.Cluster.prototype,"isLeader",null),d.Cluster=lo([L("mpi")],d.Cluster);var Jr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},At=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},dr=function(r,e){return function(t,n){e(t,n,r)}},Lc,Hc,qc,zc,Gc;d.Commercialize=class{sign(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}history(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}issued(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Jr([R("mesh.license.sign",rr),dr(0,p(0,"lsr",ye)),At("design:type",Function),At("design:paramtypes",[typeof(Lc=typeof ye<"u"&&ye)=="function"?Lc:Object,Object]),At("design:returntype",typeof(Hc=typeof Promise<"u"&&Promise)=="function"?Hc:Object)],d.Commercialize.prototype,"sign",null),Jr([R("mesh.license.history",[Array,rr]),dr(0,p(0,"inst_id",String)),At("design:type",Function),At("design:paramtypes",[String,Object]),At("design:returntype",typeof(qc=typeof Promise<"u"&&Promise)=="function"?qc:Object)],d.Commercialize.prototype,"history",null),Jr([R("mesh.net.issued",ir),dr(0,p(0,"name",String)),dr(1,p(1,"kind",String)),dr(2,p(2,"cname",String)),At("design:type",Function),At("design:paramtypes",[String,String,String,Object]),At("design:returntype",typeof(zc=typeof Promise<"u"&&Promise)=="function"?zc:Object)],d.Commercialize.prototype,"issued",null),Jr([R("mesh.net.dump",[Array,ir]),dr(0,p(0,"node_id",String)),At("design:type",Function),At("design:paramtypes",[String,Object]),At("design:returntype",typeof(Gc=typeof Promise<"u"&&Promise)=="function"?Gc:Object)],d.Commercialize.prototype,"dump",null),d.Commercialize=Jr([L("mpi")],d.Commercialize);var pr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},it=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Zt=function(r,e){return function(t,n){e(t,n,r)}},Wc,Vc,Jc,Kc,Xc,Yc,Qc,Zc,ea,ta,na,ra,ia,oa,sa;d.Cryptor=class{encrypt(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}decrypt(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}hash(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}sign(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}verify(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},pr([R("mesh.crypt.encrypt",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(Wc=typeof Uint8Array<"u"&&Uint8Array)=="function"?Wc:Object,typeof(Vc=typeof Record<"u"&&Record)=="function"?Vc:Object,Object]),it("design:returntype",typeof(Jc=typeof Promise<"u"&&Promise)=="function"?Jc:Object)],d.Cryptor.prototype,"encrypt",null),pr([R("mesh.crypt.decrypt",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(Kc=typeof Uint8Array<"u"&&Uint8Array)=="function"?Kc:Object,typeof(Xc=typeof Record<"u"&&Record)=="function"?Xc:Object,Object]),it("design:returntype",typeof(Yc=typeof Promise<"u"&&Promise)=="function"?Yc:Object)],d.Cryptor.prototype,"decrypt",null),pr([R("mesh.crypt.hash",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(Qc=typeof Uint8Array<"u"&&Uint8Array)=="function"?Qc:Object,typeof(Zc=typeof Record<"u"&&Record)=="function"?Zc:Object,Object]),it("design:returntype",typeof(ea=typeof Promise<"u"&&Promise)=="function"?ea:Object)],d.Cryptor.prototype,"hash",null),pr([R("mesh.crypt.sign",Uint8Array),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(ta=typeof Uint8Array<"u"&&Uint8Array)=="function"?ta:Object,typeof(na=typeof Record<"u"&&Record)=="function"?na:Object,Object]),it("design:returntype",typeof(ra=typeof Promise<"u"&&Promise)=="function"?ra:Object)],d.Cryptor.prototype,"sign",null),pr([R("mesh.crypt.verify",Boolean),Zt(0,p(0,"buf",Uint8Array)),Zt(1,p(1,"keys",[Map,String,Uint8Array])),it("design:type",Function),it("design:paramtypes",[typeof(ia=typeof Uint8Array<"u"&&Uint8Array)=="function"?ia:Object,typeof(oa=typeof Record<"u"&&Record)=="function"?oa:Object,Object]),it("design:returntype",typeof(sa=typeof Promise<"u"&&Promise)=="function"?sa:Object)],d.Cryptor.prototype,"verify",null),d.Cryptor=pr([L("mpi")],d.Cryptor);var lr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ot=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Kr=function(r,e){return function(t,n){e(t,n,r)}},ca,aa,ua,fa,da,pa,la,ya,ma;d.DataHouse=class{writes(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}write(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}read(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}indies(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}tables(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},lr([R("mesh.dh.writes",Object),Kr(0,p(0,"docs",[Array,Pn])),ot("design:type",Function),ot("design:paramtypes",[Array,Object]),ot("design:returntype",typeof(ca=typeof Promise<"u"&&Promise)=="function"?ca:Object)],d.DataHouse.prototype,"writes",null),lr([R("mesh.dh.write",Object),Kr(0,p(0,"doc",Pn)),ot("design:type",Function),ot("design:paramtypes",[typeof(aa=typeof Pn<"u"&&Pn)=="function"?aa:Object,Object]),ot("design:returntype",typeof(ua=typeof Promise<"u"&&Promise)=="function"?ua:Object)],d.DataHouse.prototype,"write",null),lr([R("mesh.dh.read",[Fe,Object]),Kr(0,p(0,"index",J)),ot("design:type",Function),ot("design:paramtypes",[typeof(fa=typeof J<"u"&&J)=="function"?fa:Object,Object]),ot("design:returntype",typeof(da=typeof Promise<"u"&&Promise)=="function"?da:Object)],d.DataHouse.prototype,"read",null),lr([R("mesh.dh.indies",[Fe,Object]),Kr(0,p(0,"index",J)),ot("design:type",Function),ot("design:paramtypes",[typeof(pa=typeof J<"u"&&J)=="function"?pa:Object,Object]),ot("design:returntype",typeof(la=typeof Promise<"u"&&Promise)=="function"?la:Object)],d.DataHouse.prototype,"indies",null),lr([R("mesh.dh.tables",[Fe,Object]),Kr(0,p(0,"index",J)),ot("design:type",Function),ot("design:paramtypes",[typeof(ya=typeof J<"u"&&J)=="function"?ya:Object,Object]),ot("design:returntype",typeof(ma=typeof Promise<"u"&&Promise)=="function"?ma:Object)],d.DataHouse.prototype,"tables",null),d.DataHouse=lr([L("mpi")],d.DataHouse);var yo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},yr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ei=function(r,e){return function(t,n){e(t,n,r)}},ha,ga,ba;d.Dispatcher=class{invoke(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}invoke0(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},yo([Ei(0,p(0,"urn",String)),Ei(1,p(1,"param",[Map,String,Object])),yr("design:type",Function),yr("design:paramtypes",[String,typeof(ha=typeof Record<"u"&&Record)=="function"?ha:Object,Object]),yr("design:returntype",typeof(ga=typeof Promise<"u"&&Promise)=="function"?ga:Object)],d.Dispatcher.prototype,"invoke",null),yo([Ei(0,p(0,"urn",String)),Ei(1,p(1,"param",Object)),yr("design:type",Function),yr("design:paramtypes",[String,Object,Object]),yr("design:returntype",typeof(ba=typeof Promise<"u"&&Promise)=="function"?ba:Object)],d.Dispatcher.prototype,"invoke0",null),d.Dispatcher=yo([L("spi")],d.Dispatcher);var mo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},mr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},_a=function(r,e){return function(t,n){e(t,n,r)}},Oa,Sa,Ra;d.Endpoint=class{fuzzy(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},mo([R("${mesh.uname}",Uint8Array),_a(0,p(0,"buff",Uint8Array)),mr("design:type",Function),mr("design:paramtypes",[typeof(Oa=typeof Uint8Array<"u"&&Uint8Array)=="function"?Oa:Object,Object]),mr("design:returntype",typeof(Sa=typeof Promise<"u"&&Promise)=="function"?Sa:Object)],d.Endpoint.prototype,"fuzzy",null),d.Endpoint=mo([L("mpi")],d.Endpoint);class va{stick(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}}mo([_a(0,p(0,"varg",Object)),mr("design:type",Function),mr("design:paramtypes",[Object,Object]),mr("design:returntype",typeof(Ra=typeof Promise<"u"&&Promise)=="function"?Ra:Object)],va.prototype,"stick",null);var Xr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},It=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},hr=function(r,e){return function(t,n){e(t,n,r)}},Pa,wa,ja,Ea,Ta,Na,Aa,Ia;d.Evaluator=class{compile(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}exec(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Xr([R("mesh.eval.compile",String),hr(0,p(0,"script",Tt)),It("design:type",Function),It("design:paramtypes",[typeof(Pa=typeof Tt<"u"&&Tt)=="function"?Pa:Object,Object]),It("design:returntype",typeof(wa=typeof Promise<"u"&&Promise)=="function"?wa:Object)],d.Evaluator.prototype,"compile",null),Xr([R("mesh.eval.exec",String),hr(0,p(0,"code",String)),hr(1,p(1,"args",[Map,String,String])),hr(2,p(2,"dft",String)),It("design:type",Function),It("design:paramtypes",[String,typeof(ja=typeof Record<"u"&&Record)=="function"?ja:Object,String,Object]),It("design:returntype",typeof(Ea=typeof Promise<"u"&&Promise)=="function"?Ea:Object)],d.Evaluator.prototype,"exec",null),Xr([R("mesh.eval.dump",[Array,Tt]),hr(0,p(0,"feature",[Map,String,String])),It("design:type",Function),It("design:paramtypes",[typeof(Ta=typeof Record<"u"&&Record)=="function"?Ta:Object,Object]),It("design:returntype",typeof(Na=typeof Promise<"u"&&Promise)=="function"?Na:Object)],d.Evaluator.prototype,"dump",null),Xr([R("mesh.eval.index",[Fe,Tt]),hr(0,p(0,"index",J)),It("design:type",Function),It("design:paramtypes",[typeof(Aa=typeof J<"u"&&J)=="function"?Aa:Object,Object]),It("design:returntype",typeof(Ia=typeof Promise<"u"&&Promise)=="function"?Ia:Object)],d.Evaluator.prototype,"index",null),d.Evaluator=Xr([L("mpi")],d.Evaluator);var ho=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},gr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ti=function(r,e){return function(t,n){e(t,n,r)}},Ma,Ca,Ua,$a;d.Graph=class{query(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}exec(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},ho([R("mesh.graph.query",[Array,[Map,String,Object]]),Ti(0,p(0,"expr",String)),Ti(1,p(1,"args",[Map,String,Object])),gr("design:type",Function),gr("design:paramtypes",[String,typeof(Ma=typeof Record<"u"&&Record)=="function"?Ma:Object,Object]),gr("design:returntype",typeof(Ca=typeof Promise<"u"&&Promise)=="function"?Ca:Object)],d.Graph.prototype,"query",null),ho([R("mesh.graph.exec",Object),Ti(0,p(0,"expr",String)),Ti(1,p(1,"args",[Map,String,Object])),gr("design:type",Function),gr("design:paramtypes",[String,typeof(Ua=typeof Record<"u"&&Record)=="function"?Ua:Object,Object]),gr("design:returntype",typeof($a=typeof Promise<"u"&&Promise)=="function"?$a:Object)],d.Graph.prototype,"exec",null),d.Graph=ho([L("mpi")],d.Graph);var Yr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Mt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},go=function(r,e){return function(t,n){e(t,n,r)}},Fa,ka,xa,Ba,Da,La;d.KMS=class{reset(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}environ(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}list(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}issue(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Yr([R("kms.store.reset",Object),go(0,p(0,"env",xe)),Mt("design:type",Function),Mt("design:paramtypes",[typeof(Fa=typeof xe<"u"&&xe)=="function"?Fa:Object,Object]),Mt("design:returntype",typeof(ka=typeof Promise<"u"&&Promise)=="function"?ka:Object)],d.KMS.prototype,"reset",null),Yr([R("kms.store.environ",xe),Mt("design:type",Function),Mt("design:paramtypes",[Object]),Mt("design:returntype",typeof(xa=typeof Promise<"u"&&Promise)=="function"?xa:Object)],d.KMS.prototype,"environ",null),Yr([R("kms.crt.store.list",[Array,nr]),go(0,p(0,"cno",String)),Mt("design:type",Function),Mt("design:paramtypes",[String,Object]),Mt("design:returntype",typeof(Ba=typeof Promise<"u"&&Promise)=="function"?Ba:Object)],d.KMS.prototype,"list",null),Yr([R("kms.crt.apply.issue",[Array,nr]),go(0,p(0,"csr",ft)),Mt("design:type",Function),Mt("design:paramtypes",[typeof(Da=typeof ft<"u"&&ft)=="function"?Da:Object,Object]),Mt("design:returntype",typeof(La=typeof Promise<"u"&&Promise)=="function"?La:Object)],d.KMS.prototype,"issue",null),d.KMS=Yr([L("mpi")],d.KMS);var br=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},st=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},_r=function(r,e){return function(t,n){e(t,n,r)}},Ha,qa,za,Ga,Wa,Va,Ja;d.KV=class{get(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}put(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}remove(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}keys(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},br([R("mesh.kv.get",Re),_r(0,p(0,"key",String)),st("design:type",Function),st("design:paramtypes",[String,Object]),st("design:returntype",typeof(Ha=typeof Promise<"u"&&Promise)=="function"?Ha:Object)],d.KV.prototype,"get",null),br([R("mesh.kv.put",Object),_r(0,p(0,"key",String)),_r(1,p(1,"value",Re)),st("design:type",Function),st("design:paramtypes",[String,typeof(qa=typeof Re<"u"&&Re)=="function"?qa:Object,Object]),st("design:returntype",typeof(za=typeof Promise<"u"&&Promise)=="function"?za:Object)],d.KV.prototype,"put",null),br([R("mesh.kv.remove",Object),_r(0,p(0,"key",String)),st("design:type",Function),st("design:paramtypes",[String,Object]),st("design:returntype",typeof(Ga=typeof Promise<"u"&&Promise)=="function"?Ga:Object)],d.KV.prototype,"remove",null),br([R("mesh.kv.keys",[Array,String]),_r(0,p(0,"pattern",String)),st("design:type",Function),st("design:paramtypes",[String,Object]),st("design:returntype",typeof(Wa=typeof Promise<"u"&&Promise)=="function"?Wa:Object)],d.KV.prototype,"keys",null),br([R("mesh.kv.index",[Fe,Hr]),_r(0,p(0,"index",J)),st("design:type",Function),st("design:paramtypes",[typeof(Va=typeof J<"u"&&J)=="function"?Va:Object,Object]),st("design:returntype",typeof(Ja=typeof Promise<"u"&&Promise)=="function"?Ja:Object)],d.KV.prototype,"index",null),d.KV=br([L("mesh")],d.KV);var Or=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ct=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},pp=function(r,e){return function(t,n){e(t,n,r)}},Ka,Xa,Ya,Qa,Za;d.Licenser=class{imports(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}exports(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}explain(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}verify(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}features(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Or([R("mesh.license.imports",Object),pp(0,p(0,"license",String)),ct("design:type",Function),ct("design:paramtypes",[String,Object]),ct("design:returntype",typeof(Ka=typeof Promise<"u"&&Promise)=="function"?Ka:Object)],d.Licenser.prototype,"imports",null),Or([R("mesh.license.exports",String),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Xa=typeof Promise<"u"&&Promise)=="function"?Xa:Object)],d.Licenser.prototype,"exports",null),Or([R("mesh.license.explain",ye),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Ya=typeof Promise<"u"&&Promise)=="function"?Ya:Object)],d.Licenser.prototype,"explain",null),Or([R("mesh.license.verify",Number),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Qa=typeof Promise<"u"&&Promise)=="function"?Qa:Object)],d.Licenser.prototype,"verify",null),Or([R("mesh.license.features",[Map,String,String]),ct("design:type",Function),ct("design:paramtypes",[Object]),ct("design:returntype",typeof(Za=typeof Promise<"u"&&Promise)=="function"?Za:Object)],d.Licenser.prototype,"features",null),d.Licenser=Or([L("mpi")],d.Licenser);var Qr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ct=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Sr=function(r,e){return function(t,n){e(t,n,r)}},eu,tu,nu,ru;d.Locker=class{lock(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}unlock(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}readLock(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}readUnlock(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Qr([R("mesh.locker.w.lock",Boolean),Sr(0,p(0,"rid",String)),Sr(1,p(1,"timeout",Number)),Ct("design:type",Function),Ct("design:paramtypes",[String,Number,Object]),Ct("design:returntype",typeof(eu=typeof Promise<"u"&&Promise)=="function"?eu:Object)],d.Locker.prototype,"lock",null),Qr([R("mesh.locker.w.unlock",Object),Sr(0,p(0,"rid",String)),Ct("design:type",Function),Ct("design:paramtypes",[String,Object]),Ct("design:returntype",typeof(tu=typeof Promise<"u"&&Promise)=="function"?tu:Object)],d.Locker.prototype,"unlock",null),Qr([R("mesh.locker.r.lock",Boolean),Sr(0,p(0,"rid",String)),Sr(1,p(1,"timeout",Number)),Ct("design:type",Function),Ct("design:paramtypes",[String,Number,Object]),Ct("design:returntype",typeof(nu=typeof Promise<"u"&&Promise)=="function"?nu:Object)],d.Locker.prototype,"readLock",null),Qr([R("mesh.locker.r.unlock",Object),Sr(0,p(0,"rid",String)),Ct("design:type",Function),Ct("design:paramtypes",[String,Object]),Ct("design:returntype",typeof(ru=typeof Promise<"u"&&Promise)=="function"?ru:Object)],d.Locker.prototype,"readUnlock",null),d.Locker=Qr([L("mpi")],d.Locker);var Ut=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ie=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},mn=function(r,e){return function(t,n){e(t,n,r)}},iu,ou,su,cu,au,uu,fu,du,pu,lu,yu,mu,hu;d.Network=class{environ(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}accessible(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}refresh(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}route(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}routes(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}disable(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}enable(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}version(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}exports(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}imports(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Ut([R("mesh.net.environ",xe),ie("design:type",Function),ie("design:paramtypes",[Object]),ie("design:returntype",typeof(iu=typeof Promise<"u"&&Promise)=="function"?iu:Object)],d.Network.prototype,"environ",null),Ut([R("mesh.net.accessible",Boolean),mn(0,p(0,"route",ue)),ie("design:type",Function),ie("design:paramtypes",[typeof(ou=typeof ue<"u"&&ue)=="function"?ou:Object,Object]),ie("design:returntype",typeof(su=typeof Promise<"u"&&Promise)=="function"?su:Object)],d.Network.prototype,"accessible",null),Ut([R("mesh.net.refresh",Object),mn(0,p(0,"routes",[Array,ue])),ie("design:type",Function),ie("design:paramtypes",[Array,Object]),ie("design:returntype",typeof(cu=typeof Promise<"u"&&Promise)=="function"?cu:Object)],d.Network.prototype,"refresh",null),Ut([R("mesh.net.route",ue),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(au=typeof Promise<"u"&&Promise)=="function"?au:Object)],d.Network.prototype,"route",null),Ut([R("mesh.net.routes",[Array,ue]),ie("design:type",Function),ie("design:paramtypes",[Object]),ie("design:returntype",typeof(uu=typeof Promise<"u"&&Promise)=="function"?uu:Object)],d.Network.prototype,"routes",null),Ut([R("mesh.net.disable",Object),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(fu=typeof Promise<"u"&&Promise)=="function"?fu:Object)],d.Network.prototype,"disable",null),Ut([R("mesh.net.enable",Object),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(du=typeof Promise<"u"&&Promise)=="function"?du:Object)],d.Network.prototype,"enable",null),Ut([R("mesh.net.index",[Fe,ue]),mn(0,p(0,"index",J)),ie("design:type",Function),ie("design:paramtypes",[typeof(pu=typeof J<"u"&&J)=="function"?pu:Object,Object]),ie("design:returntype",typeof(lu=typeof Promise<"u"&&Promise)=="function"?lu:Object)],d.Network.prototype,"index",null),Ut([R("mesh.net.version",Wr),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(yu=typeof Promise<"u"&&Promise)=="function"?yu:Object)],d.Network.prototype,"version",null),Ut([R("mesh.net.exports",String),mn(0,p(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(mu=typeof Promise<"u"&&Promise)=="function"?mu:Object)],d.Network.prototype,"exports",null),Ut([R("mesh.net.imports",Object),mn(0,p(0,"crt",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(hu=typeof Promise<"u"&&Promise)=="function"?hu:Object)],d.Network.prototype,"imports",null),d.Network=Ut([L("mpi")],d.Network);var Zr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},$t=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},In=function(r,e){return function(t,n){e(t,n,r)}},gu,bu,_u,Ou,Su,Ru;d.Pipeline=class{peek(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}pop(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}push(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}release(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Zr([R("mesh.chan.peek",Uint8Array),In(0,p(0,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[String,Object]),$t("design:returntype",typeof(gu=typeof Promise<"u"&&Promise)=="function"?gu:Object)],d.Pipeline.prototype,"peek",null),Zr([R("mesh.chan.pop",Uint8Array),In(0,p(0,"timeout",Number)),In(1,p(1,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[Number,String,Object]),$t("design:returntype",typeof(bu=typeof Promise<"u"&&Promise)=="function"?bu:Object)],d.Pipeline.prototype,"pop",null),Zr([R("mesh.chan.push",Object),In(0,p(0,"payload",Uint8Array)),In(1,p(1,"metadata",[Map,String,String])),In(2,p(2,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[typeof(_u=typeof Uint8Array<"u"&&Uint8Array)=="function"?_u:Object,typeof(Ou=typeof Record<"u"&&Record)=="function"?Ou:Object,String,Object]),$t("design:returntype",typeof(Su=typeof Promise<"u"&&Promise)=="function"?Su:Object)],d.Pipeline.prototype,"push",null),Zr([R("mesh.chan.release",Object),In(0,p(0,"timeout",Number)),In(1,p(1,"topic",String)),$t("design:type",Function),$t("design:paramtypes",[Number,String,Object]),$t("design:returntype",typeof(Ru=typeof Promise<"u"&&Promise)=="function"?Ru:Object)],d.Pipeline.prototype,"release",null),d.Pipeline=Zr([L("mpi")],d.Pipeline);var bo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Rr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},vu=function(r,e){return function(t,n){e(t,n,r)}},Pu,wu;d.Publisher=class{publish(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}broadcast(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},bo([R("mesh.queue.publish",[Array,String]),vu(0,p(0,"events",[Array,Ve])),Rr("design:type",Function),Rr("design:paramtypes",[Array,Object]),Rr("design:returntype",typeof(Pu=typeof Promise<"u"&&Promise)=="function"?Pu:Object)],d.Publisher.prototype,"publish",null),bo([R("mesh.queue.multicast",[Array,String]),vu(0,p(0,"events",[Array,Ve])),Rr("design:type",Function),Rr("design:paramtypes",[Array,Object]),Rr("design:returntype",typeof(wu=typeof Promise<"u"&&Promise)=="function"?wu:Object)],d.Publisher.prototype,"broadcast",null),d.Publisher=bo([L("mpi")],d.Publisher);var ei=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ft=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ni=function(r,e){return function(t,n){e(t,n,r)}},ju,Eu,Tu,Nu,Au,Iu;d.Registry=class{register(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}registers(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}unregister(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}export(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},ei([R("mesh.registry.put",Object),Ni(0,p(0,"registration",[Je,Object])),Ft("design:type",Function),Ft("design:paramtypes",[typeof(ju=typeof Je<"u"&&Je)=="function"?ju:Object,Object]),Ft("design:returntype",typeof(Eu=typeof Promise<"u"&&Promise)=="function"?Eu:Object)],d.Registry.prototype,"register",null),ei([R("mesh.registry.puts",Object),Ni(0,p(0,"registrations",[Array,[Je,Object]])),Ft("design:type",Function),Ft("design:paramtypes",[Array,Object]),Ft("design:returntype",typeof(Tu=typeof Promise<"u"&&Promise)=="function"?Tu:Object)],d.Registry.prototype,"registers",null),ei([R("mesh.registry.remove",Object),Ni(0,p(0,"registration",[Je,Object])),Ft("design:type",Function),Ft("design:paramtypes",[typeof(Nu=typeof Je<"u"&&Je)=="function"?Nu:Object,Object]),Ft("design:returntype",typeof(Au=typeof Promise<"u"&&Promise)=="function"?Au:Object)],d.Registry.prototype,"unregister",null),ei([R("mesh.registry.export",[Array,[Je,Object]]),Ni(0,p(0,"kind",String)),Ft("design:type",Function),Ft("design:paramtypes",[String,Object]),Ft("design:returntype",typeof(Iu=typeof Promise<"u"&&Promise)=="function"?Iu:Object)],d.Registry.prototype,"export",null),d.Registry=ei([L("mpi")],d.Registry);var vr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},lt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ti=function(r,e){return function(t,n){e(t,n,r)}},Mu,Cu,Uu,$u,Fu,ku,xu;class ni{with(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}withMap(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}local(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}any(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}many(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}}vr([ti(0,p(0,"key",String)),ti(1,p(1,"value",String)),lt("design:type",Function),lt("design:paramtypes",[String,String,Object]),lt("design:returntype",typeof(Mu=typeof Promise<"u"&&Promise)=="function"?Mu:Object)],ni.prototype,"with",null),vr([ti(0,p(0,"attachments",[Map,String,String])),lt("design:type",Function),lt("design:paramtypes",[typeof(Cu=typeof Record<"u"&&Record)=="function"?Cu:Object,Object]),lt("design:returntype",typeof(Uu=typeof Promise<"u"&&Promise)=="function"?Uu:Object)],ni.prototype,"withMap",null),vr([ti(0,p(0,"principal",nt)),lt("design:type",Function),lt("design:paramtypes",[typeof($u=typeof nt<"u"&&nt)=="function"?$u:Object,Object]),lt("design:returntype",typeof(Fu=typeof Promise<"u"&&Promise)=="function"?Fu:Object)],ni.prototype,"any",null),vr([ti(0,p(0,"principals",[Array,nt])),lt("design:type",Function),lt("design:paramtypes",[Array,Object]),lt("design:returntype",typeof(ku=typeof Promise<"u"&&Promise)=="function"?ku:Object)],ni.prototype,"many",null);class _o{constructor(){c(this,"reference");c(this,"attachments",{})}}vr([p(0,"reference",Object),lt("design:type",Object)],_o.prototype,"reference",void 0),vr([p(1,"attachments",[Map,String,String]),lt("design:type",typeof(xu=typeof Record<"u"&&Record)=="function"?xu:Object)],_o.prototype,"attachments",void 0);var Pr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},at=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ri=function(r,e){return function(t,n){e(t,n,r)}},Bu,Du,Lu,Hu,qu,zu,Gu,Wu;d.Savepoint=class{begin(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}commit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}rollback(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}execute(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}redo(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Pr([R("mesh.savepoint.begin",String),ri(0,p(0,"definition",Nn)),at("design:type",Function),at("design:paramtypes",[typeof(Bu=typeof Nn<"u"&&Nn)=="function"?Bu:Object,Object]),at("design:returntype",typeof(Du=typeof Promise<"u"&&Promise)=="function"?Du:Object)],d.Savepoint.prototype,"begin",null),Pr([R("mesh.savepoint.commit",Object),ri(0,p(0,"xid",String)),at("design:type",Function),at("design:paramtypes",[String,Object]),at("design:returntype",typeof(Lu=typeof Promise<"u"&&Promise)=="function"?Lu:Object)],d.Savepoint.prototype,"commit",null),Pr([R("mesh.savepoint.rollback",Object),ri(0,p(0,"xid",String)),at("design:type",Function),at("design:paramtypes",[String,Object]),at("design:returntype",typeof(Hu=typeof Promise<"u"&&Promise)=="function"?Hu:Object)],d.Savepoint.prototype,"rollback",null),Pr([R("mesh.savepoint.execute",Uint8Array),ri(0,p(0,"branch",Qt)),at("design:type",Function),at("design:paramtypes",[typeof(qu=typeof Qt<"u"&&Qt)=="function"?qu:Object,Object]),at("design:returntype",typeof(zu=typeof Promise<"u"&&Promise)=="function"?zu:Object)],d.Savepoint.prototype,"execute",null),Pr([R("mesh.savepoint.redo",Object),ri(0,p(0,"commit",Uint8Array)),at("design:type",Function),at("design:paramtypes",[typeof(Gu=typeof Uint8Array<"u"&&Uint8Array)=="function"?Gu:Object,Object]),at("design:returntype",typeof(Wu=typeof Promise<"u"&&Promise)=="function"?Wu:Object)],d.Savepoint.prototype,"redo",null),d.Savepoint=Pr([L("mpi")],d.Savepoint);var hn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},en=function(r,e){return function(t,n){e(t,n,r)}},Vu,Ju,Ku,Xu,Yu,Qu,Zu,ef,tf,nf,rf,of;d.Scheduler=class{timeout(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}cron(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}period(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}dump(e=O()){return Promise.reject(g.URN_NOT_PERMIT)}cancel(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}stop(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}emit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}shutdown(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},hn([R("mesh.schedule.timeout",String),en(0,p(0,"timeout",Jt)),en(1,p(1,"duration",Number)),Pe("design:type",Function),Pe("design:paramtypes",[typeof(Vu=typeof Jt<"u"&&Jt)=="function"?Vu:Object,Number,Object]),Pe("design:returntype",typeof(Ju=typeof Promise<"u"&&Promise)=="function"?Ju:Object)],d.Scheduler.prototype,"timeout",null),hn([R("mesh.schedule.cron",String),en(0,p(0,"cron",String)),en(1,p(1,"topic",je)),Pe("design:type",Function),Pe("design:paramtypes",[String,typeof(Ku=typeof je<"u"&&je)=="function"?Ku:Object,Object]),Pe("design:returntype",typeof(Xu=typeof Promise<"u"&&Promise)=="function"?Xu:Object)],d.Scheduler.prototype,"cron",null),hn([R("mesh.schedule.period",String),en(0,p(0,"duration",Number)),en(1,p(1,"topic",je)),Pe("design:type",Function),Pe("design:paramtypes",[Number,typeof(Yu=typeof je<"u"&&je)=="function"?Yu:Object,Object]),Pe("design:returntype",typeof(Qu=typeof Promise<"u"&&Promise)=="function"?Qu:Object)],d.Scheduler.prototype,"period",null),hn([R("mesh.schedule.dump",[Array,String]),Pe("design:type",Function),Pe("design:paramtypes",[Object]),Pe("design:returntype",typeof(Zu=typeof Promise<"u"&&Promise)=="function"?Zu:Object)],d.Scheduler.prototype,"dump",null),hn([R("mesh.schedule.cancel",Boolean),en(0,p(0,"task_id",String)),Pe("design:type",Function),Pe("design:paramtypes",[String,Object]),Pe("design:returntype",typeof(ef=typeof Promise<"u"&&Promise)=="function"?ef:Object)],d.Scheduler.prototype,"cancel",null),hn([R("mesh.schedule.stop",Boolean),en(0,p(0,"task_id",String)),Pe("design:type",Function),Pe("design:paramtypes",[String,Object]),Pe("design:returntype",typeof(tf=typeof Promise<"u"&&Promise)=="function"?tf:Object)],d.Scheduler.prototype,"stop",null),hn([R("mesh.schedule.emit",Object),en(0,p(0,"topic",je)),Pe("design:type",Function),Pe("design:paramtypes",[typeof(nf=typeof je<"u"&&je)=="function"?nf:Object,Object]),Pe("design:returntype",typeof(rf=typeof Promise<"u"&&Promise)=="function"?rf:Object)],d.Scheduler.prototype,"emit",null),hn([R("mesh.schedule.shutdown",Object),en(0,p(0,"duration",Number)),Pe("design:type",Function),Pe("design:paramtypes",[Number,Object]),Pe("design:returntype",typeof(of=typeof Promise<"u"&&Promise)=="function"?of:Object)],d.Scheduler.prototype,"shutdown",null),d.Scheduler=hn([L("mpi")],d.Scheduler);var Oo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ii=function(r,e){return function(t,n){e(t,n,r)}},sf,cf;d.Sequence=class{next(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}section(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Oo([R("mesh.sequence.next",String),ii(0,p(0,"kind",String)),ii(1,p(1,"length",Number)),wr("design:type",Function),wr("design:paramtypes",[String,Number,Object]),wr("design:returntype",typeof(sf=typeof Promise<"u"&&Promise)=="function"?sf:Object)],d.Sequence.prototype,"next",null),Oo([R("mesh.sequence.section",[Array,String]),ii(0,p(0,"kind",String)),ii(1,p(1,"size",Number)),ii(2,p(2,"length",Number)),wr("design:type",Function),wr("design:paramtypes",[String,Number,Number,Object]),wr("design:returntype",typeof(cf=typeof Promise<"u"&&Promise)=="function"?cf:Object)],d.Sequence.prototype,"section",null),d.Sequence=Oo([L("mpi")],d.Sequence);var af=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},So=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},lp=function(r,e){return function(t,n){e(t,n,r)}},uf,ff;d.Subscriber=class{subscribe(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},af([R("mesh.queue.subscribe",Object),lp(0,p(0,"event",Ve)),So("design:type",Function),So("design:paramtypes",[typeof(uf=typeof Ve<"u"&&Ve)=="function"?uf:Object,Object]),So("design:returntype",typeof(ff=typeof Promise<"u"&&Promise)=="function"?ff:Object)],d.Subscriber.prototype,"subscribe",null),d.Subscriber=af([L("mpi")],d.Subscriber);var kt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},oe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},yt=function(r,e){return function(t,n){e(t,n,r)}},df,pf,lf,yf,mf,hf,gf,bf,_f,Of,Sf,Rf,vf,Pf;d.Tokenizer=class{captcha(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}matches(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}apply(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}verify(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}quickauth(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}grant(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}accept(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}reject(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}authorize(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}authenticate(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}refresh(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},kt([R("mesh.captcha.apply",or),yt(0,p(0,"kind",String)),yt(1,p(1,"features",[Map,String,String])),oe("design:type",Function),oe("design:paramtypes",[String,typeof(df=typeof Record<"u"&&Record)=="function"?df:Object,Object]),oe("design:returntype",typeof(pf=typeof Promise<"u"&&Promise)=="function"?pf:Object)],d.Tokenizer.prototype,"captcha",null),kt([R("mesh.captcha.match",Boolean),yt(0,p(0,"mno",String)),yt(1,p(1,"value",String)),oe("design:type",Function),oe("design:paramtypes",[String,String,Object]),oe("design:returntype",typeof(lf=typeof Promise<"u"&&Promise)=="function"?lf:Object)],d.Tokenizer.prototype,"matches",null),kt([R("mesh.trust.apply",String),yt(0,p(0,"kind",String)),yt(1,p(1,"duration",Number)),oe("design:type",Function),oe("design:paramtypes",[String,Number,Object]),oe("design:returntype",typeof(yf=typeof Promise<"u"&&Promise)=="function"?yf:Object)],d.Tokenizer.prototype,"apply",null),kt([R("mesh.trust.verify",Boolean),yt(0,p(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(mf=typeof Promise<"u"&&Promise)=="function"?mf:Object)],d.Tokenizer.prototype,"verify",null),kt([R("mesh.oauth2.quickauth",an),yt(0,p(0,"credential",jt)),oe("design:type",Function),oe("design:paramtypes",[typeof(hf=typeof jt<"u"&&jt)=="function"?hf:Object,Object]),oe("design:returntype",typeof(gf=typeof Promise<"u"&&Promise)=="function"?gf:Object)],d.Tokenizer.prototype,"quickauth",null),kt([R("mesh.oauth2.grant",co),yt(0,p(0,"credential",jt)),oe("design:type",Function),oe("design:paramtypes",[typeof(bf=typeof jt<"u"&&jt)=="function"?bf:Object,Object]),oe("design:returntype",typeof(_f=typeof Promise<"u"&&Promise)=="function"?_f:Object)],d.Tokenizer.prototype,"grant",null),kt([R("mesh.oauth2.accept",ji),yt(0,p(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Of=typeof Promise<"u"&&Promise)=="function"?Of:Object)],d.Tokenizer.prototype,"accept",null),kt([R("mesh.oauth2.reject",Object),yt(0,p(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Sf=typeof Promise<"u"&&Promise)=="function"?Sf:Object)],d.Tokenizer.prototype,"reject",null),kt([R("mesh.oauth2.authorize",an),yt(0,p(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Rf=typeof Promise<"u"&&Promise)=="function"?Rf:Object)],d.Tokenizer.prototype,"authorize",null),kt([R("mesh.oauth2.authenticate",qr),yt(0,p(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(vf=typeof Promise<"u"&&Promise)=="function"?vf:Object)],d.Tokenizer.prototype,"authenticate",null),kt([R("mesh.oauth2.refresh",an),yt(0,p(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Pf=typeof Promise<"u"&&Promise)=="function"?Pf:Object)],d.Tokenizer.prototype,"refresh",null),d.Tokenizer=kt([L("mpi")],d.Tokenizer);var Gn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},De=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},tn=function(r,e){return function(t,n){e(t,n,r)}},wf,jf,Ef,Tf,Nf,Af,If;d.Transporter=class{attach(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}detach(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}scan(e,t,n,o=O()){return Promise.reject(g.URN_NOT_PERMIT)}write(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}read(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}clean(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Gn([R("${mesh.name}.tcp.attach",String),tn(0,p(0,"uri",String)),tn(1,p(1,"pdc",String)),De("design:type",Function),De("design:paramtypes",[String,String,Object]),De("design:returntype",typeof(wf=typeof Promise<"u"&&Promise)=="function"?wf:Object)],d.Transporter.prototype,"attach",null),Gn([R("${mesh.name}.tcp.detach",Object),tn(0,p(0,"descriptor",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(jf=typeof Promise<"u"&&Promise)=="function"?jf:Object)],d.Transporter.prototype,"detach",null),Gn([R("${mesh.name}.tcp.scan",[Array,Nt]),tn(0,p(0,"rid",String)),tn(1,p(1,"h",Number)),tn(2,p(2,"limit",Number)),De("design:type",Function),De("design:paramtypes",[String,Number,Number,Object]),De("design:returntype",typeof(Ef=typeof Promise<"u"&&Promise)=="function"?Ef:Object)],d.Transporter.prototype,"scan",null),Gn([R("${mesh.name}.tcp.write",Object),tn(0,p(0,"packet",Nt)),De("design:type",Function),De("design:paramtypes",[typeof(Tf=typeof Nt<"u"&&Nt)=="function"?Tf:Object,Object]),De("design:returntype",typeof(Nf=typeof Promise<"u"&&Promise)=="function"?Nf:Object)],d.Transporter.prototype,"write",null),Gn([R("${mesh.name}.tcp.read",[Array,Nt]),tn(0,p(0,"bucket",String)),tn(1,p(1,"limit",Number)),De("design:type",Function),De("design:paramtypes",[String,Number,Object]),De("design:returntype",typeof(Af=typeof Promise<"u"&&Promise)=="function"?Af:Object)],d.Transporter.prototype,"read",null),Gn([R("${mesh.name}.tcp.clean",Object),tn(0,p(0,"buckets",[Array,String])),De("design:type",Function),De("design:paramtypes",[Array,Object]),De("design:returntype",typeof(If=typeof Promise<"u"&&Promise)=="function"?If:Object)],d.Transporter.prototype,"clean",null),d.Transporter=Gn([L("mpi")],d.Transporter);var Mn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ie=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Cn=function(r,e){return function(t,n){e(t,n,r)}},Mf,Cf,Uf,$f,Ff,kf,xf,Bf;d.FileSystem=class{exist(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}mkdir(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}write(e,t,n=O()){return Promise.reject(g.URN_NOT_PERMIT)}read(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}remove(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}delete(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}list(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Mn([R("mesh.fs.exist",Boolean),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Mf=typeof Promise<"u"&&Promise)=="function"?Mf:Object)],d.FileSystem.prototype,"exist",null),Mn([R("mesh.fs.mkdir",Object),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Cf=typeof Promise<"u"&&Promise)=="function"?Cf:Object)],d.FileSystem.prototype,"mkdir",null),Mn([R("mesh.fs.write",Object),Cn(0,p(0,"path",String)),Cn(1,p(1,"buff",Uint8Array)),Ie("design:type",Function),Ie("design:paramtypes",[String,typeof(Uf=typeof Uint8Array<"u"&&Uint8Array)=="function"?Uf:Object,Object]),Ie("design:returntype",typeof($f=typeof Promise<"u"&&Promise)=="function"?$f:Object)],d.FileSystem.prototype,"write",null),Mn([R("mesh.fs.read",Uint8Array),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Ff=typeof Promise<"u"&&Promise)=="function"?Ff:Object)],d.FileSystem.prototype,"read",null),Mn([R("mesh.fs.remove",Object),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(kf=typeof Promise<"u"&&Promise)=="function"?kf:Object)],d.FileSystem.prototype,"remove",null),Mn([R("mesh.fs.delete",Object),Cn(0,p(0,"paths",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(xf=typeof Promise<"u"&&Promise)=="function"?xf:Object)],d.FileSystem.prototype,"delete",null),Mn([R("mesh.fs.ls",tr),Cn(0,p(0,"path",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,Object]),Ie("design:returntype",typeof(Bf=typeof Promise<"u"&&Promise)=="function"?Bf:Object)],d.FileSystem.prototype,"list",null),d.FileSystem=Mn([L("mpi")],d.FileSystem);var Un=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Me=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Wn=function(r,e){return function(t,n){e(t,n,r)}},Df,Lf,Hf,qf,zf,Gf,Wf,Vf,Jf,Kf,Xf,Yf,Qf,Zf;d.Workflow=class{mass(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}groups(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}compile(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}index(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}submit(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}take(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}routines(e,t=O()){return Promise.reject(g.URN_NOT_PERMIT)}},Un([R("mesh.workflow.mass",String),Wn(0,p(0,"group",pn)),Me("design:type",Function),Me("design:paramtypes",[typeof(Df=typeof pn<"u"&&pn)=="function"?Df:Object,Object]),Me("design:returntype",typeof(Lf=typeof Promise<"u"&&Promise)=="function"?Lf:Object)],d.Workflow.prototype,"mass",null),Un([R("mesh.workflow.groups",[Fe,pn]),Wn(0,p(0,"index",J)),Me("design:type",Function),Me("design:paramtypes",[typeof(Hf=typeof J<"u"&&J)=="function"?Hf:Object,Object]),Me("design:returntype",typeof(qf=typeof Promise<"u"&&Promise)=="function"?qf:Object)],d.Workflow.prototype,"groups",null),Un([R("mesh.workflow.compile",String),Wn(0,p(0,"chart",pt)),Me("design:type",Function),Me("design:paramtypes",[typeof(zf=typeof pt<"u"&&pt)=="function"?zf:Object,Object]),Me("design:returntype",typeof(Gf=typeof Promise<"u"&&Promise)=="function"?Gf:Object)],d.Workflow.prototype,"compile",null),Un([R("mesh.workflow.index",[Fe,pt]),Wn(0,p(0,"index",J)),Me("design:type",Function),Me("design:paramtypes",[typeof(Wf=typeof J<"u"&&J)=="function"?Wf:Object,Object]),Me("design:returntype",typeof(Vf=typeof Promise<"u"&&Promise)=="function"?Vf:Object)],d.Workflow.prototype,"index",null),Un([R("mesh.workflow.submit",String),Wn(0,p(0,"intent",An)),Me("design:type",Function),Me("design:paramtypes",[typeof(Jf=typeof An<"u"&&An)=="function"?Jf:Object,Object]),Me("design:returntype",typeof(Kf=typeof Promise<"u"&&Promise)=="function"?Kf:Object)],d.Workflow.prototype,"submit",null),Un([R("mesh.workflow.take",Object),Wn(0,p(0,"vertex",He)),Me("design:type",Function),Me("design:paramtypes",[typeof(Xf=typeof He<"u"&&He)=="function"?Xf:Object,Object]),Me("design:returntype",typeof(Yf=typeof Promise<"u"&&Promise)=="function"?Yf:Object)],d.Workflow.prototype,"take",null),Un([R("mesh.workflow.routines",[Fe,He]),Wn(0,p(0,"index",J)),Me("design:type",Function),Me("design:paramtypes",[typeof(Qf=typeof J<"u"&&J)=="function"?Qf:Object,Object]),Me("design:returntype",typeof(Zf=typeof Promise<"u"&&Promise)=="function"?Zf:Object)],d.Workflow.prototype,"routines",null),d.Workflow=Un([L("mpi")],d.Workflow);var yp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Codec=(kn=class{encodeString(e){return this.stringify(this.encode(e))}decodeString(e,t){return this.decode(this.uint8ify(e),t)}},c(kn,"JSON","json"),c(kn,"PROTOBUF","protobuf"),c(kn,"XML","xml"),c(kn,"YAML","yaml"),c(kn,"THRIFT","thrift"),c(kn,"MESH","mesh"),kn),d.Codec=yp([L(d.Codec.JSON)],d.Codec);var Ro={},oi={},ed;function mp(){if(ed)return oi;ed=1,oi.byteLength=a,oi.toByteArray=v,oi.fromByteArray=$;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)r[o]=n[o],e[n.charCodeAt(o)]=o;e[45]=62,e[95]=63;function s(N){var j=N.length;if(j%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=N.indexOf("=");I===-1&&(I=j);var A=I===j?0:4-I%4;return[I,A]}function a(N){var j=s(N),I=j[0],A=j[1];return(I+A)*3/4-A}function P(N,j,I){return(j+I)*3/4-I}function v(N){var j,I=s(N),A=I[0],q=I[1],z=new t(P(N,A,q)),Y=0,ke=q>0?A-4:A,Z;for(Z=0;Z<ke;Z+=4)j=e[N.charCodeAt(Z)]<<18|e[N.charCodeAt(Z+1)]<<12|e[N.charCodeAt(Z+2)]<<6|e[N.charCodeAt(Z+3)],z[Y++]=j>>16&255,z[Y++]=j>>8&255,z[Y++]=j&255;return q===2&&(j=e[N.charCodeAt(Z)]<<2|e[N.charCodeAt(Z+1)]>>4,z[Y++]=j&255),q===1&&(j=e[N.charCodeAt(Z)]<<10|e[N.charCodeAt(Z+1)]<<4|e[N.charCodeAt(Z+2)]>>2,z[Y++]=j>>8&255,z[Y++]=j&255),z}function _(N){return r[N>>18&63]+r[N>>12&63]+r[N>>6&63]+r[N&63]}function E(N,j,I){for(var A,q=[],z=j;z<I;z+=3)A=(N[z]<<16&16711680)+(N[z+1]<<8&65280)+(N[z+2]&255),q.push(_(A));return q.join("")}function $(N){for(var j,I=N.length,A=I%3,q=[],z=16383,Y=0,ke=I-A;Y<ke;Y+=z)q.push(E(N,Y,Y+z>ke?ke:Y+z));return A===1?(j=N[I-1],q.push(r[j>>2]+r[j<<4&63]+"==")):A===2&&(j=(N[I-2]<<8)+N[I-1],q.push(r[j>>10]+r[j>>4&63]+r[j<<2&63]+"=")),q.join("")}return oi}var Ai={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var td;function hp(){return td||(td=1,Ai.read=function(r,e,t,n,o){var i,s,a=o*8-n-1,P=(1<<a)-1,v=P>>1,_=-7,E=t?o-1:0,$=t?-1:1,N=r[e+E];for(E+=$,i=N&(1<<-_)-1,N>>=-_,_+=a;_>0;i=i*256+r[e+E],E+=$,_-=8);for(s=i&(1<<-_)-1,i>>=-_,_+=n;_>0;s=s*256+r[e+E],E+=$,_-=8);if(i===0)i=1-v;else{if(i===P)return s?NaN:(N?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-v}return(N?-1:1)*s*Math.pow(2,i-n)},Ai.write=function(r,e,t,n,o,i){var s,a,P,v=i*8-o-1,_=(1<<v)-1,E=_>>1,$=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:i-1,j=n?1:-1,I=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=_):(s=Math.floor(Math.log(e)/Math.LN2),e*(P=Math.pow(2,-s))<1&&(s--,P*=2),s+E>=1?e+=$/P:e+=$*Math.pow(2,1-E),e*P>=2&&(s++,P/=2),s+E>=_?(a=0,s=_):s+E>=1?(a=(e*P-1)*Math.pow(2,o),s=s+E):(a=e*Math.pow(2,E-1)*Math.pow(2,o),s=0));o>=8;r[t+N]=a&255,N+=j,a/=256,o-=8);for(s=s<<o|a,v+=o;v>0;r[t+N]=s&255,N+=j,s/=256,v-=8);r[t+N-j]|=I*128}),Ai}/*!
|
|
15
15
|
* The buffer module from node.js, for the browser.
|
|
16
16
|
*
|
|
17
17
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
18
18
|
* @license MIT
|
|
19
|
-
*/var nd;function gp(){return nd||(nd=1,function(r){const e=mp(),t=hp(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=z,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const l=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(l,u),l.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(l){if(l>o)throw new RangeError('The value "'+l+'" is invalid for option "size"');const u=new Uint8Array(l);return Object.setPrototypeOf(u,a.prototype),u}function a(l,u,f){if(typeof l=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(l)}return P(l,u,f)}a.poolSize=8192;function P(l,u,f){if(typeof l=="string")return $(l,u);if(ArrayBuffer.isView(l))return j(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(bt(l,ArrayBuffer)||l&&bt(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(bt(l,SharedArrayBuffer)||l&&bt(l.buffer,SharedArrayBuffer)))return I(l,u,f);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=l.valueOf&&l.valueOf();if(m!=null&&m!==l)return a.from(m,u,f);const b=A(l);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return a.from(l[Symbol.toPrimitive]("string"),u,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}a.from=function(l,u,f){return P(l,u,f)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function v(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function _(l,u,f){return v(l),l<=0?s(l):u!==void 0?typeof f=="string"?s(l).fill(u,f):s(l).fill(u):s(l)}a.alloc=function(l,u,f){return _(l,u,f)};function E(l){return v(l),s(l<0?0:q(l)|0)}a.allocUnsafe=function(l){return E(l)},a.allocUnsafeSlow=function(l){return E(l)};function $(l,u){if((typeof u!="string"||u==="")&&(u="utf8"),!a.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const f=Y(l,u)|0;let m=s(f);const b=m.write(l,u);return b!==f&&(m=m.slice(0,b)),m}function N(l){const u=l.length<0?0:q(l.length)|0,f=s(u);for(let m=0;m<u;m+=1)f[m]=l[m]&255;return f}function j(l){if(bt(l,Uint8Array)){const u=new Uint8Array(l);return I(u.buffer,u.byteOffset,u.byteLength)}return N(l)}function I(l,u,f){if(u<0||l.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<u+(f||0))throw new RangeError('"length" is outside of buffer bounds');let m;return u===void 0&&f===void 0?m=new Uint8Array(l):f===void 0?m=new Uint8Array(l,u):m=new Uint8Array(l,u,f),Object.setPrototypeOf(m,a.prototype),m}function A(l){if(a.isBuffer(l)){const u=q(l.length)|0,f=s(u);return f.length===0||l.copy(f,0,0,u),f}if(l.length!==void 0)return typeof l.length!="number"||bi(l.length)?s(0):N(l);if(l.type==="Buffer"&&Array.isArray(l.data))return N(l.data)}function q(l){if(l>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return l|0}function z(l){return+l!=l&&(l=0),a.alloc(+l)}a.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==a.prototype},a.compare=function(u,f){if(bt(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),bt(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(u)||!a.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let m=u.length,b=f.length;for(let y=0,h=Math.min(m,b);y<h;++y)if(u[y]!==f[y]){m=u[y],b=f[y];break}return m<b?-1:b<m?1:0},a.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(u,f){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return a.alloc(0);let m;if(f===void 0)for(f=0,m=0;m<u.length;++m)f+=u[m].length;const b=a.allocUnsafe(f);let y=0;for(m=0;m<u.length;++m){let h=u[m];if(bt(h,Uint8Array))y+h.length>b.length?(a.isBuffer(h)||(h=a.from(h)),h.copy(b,y)):Uint8Array.prototype.set.call(b,h,y);else if(a.isBuffer(h))h.copy(b,y);else throw new TypeError('"list" argument must be an Array of Buffers');y+=h.length}return b};function Y(l,u){if(a.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||bt(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const f=l.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&f===0)return 0;let b=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return Ir(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return gi(l).length;default:if(b)return m?-1:Ir(l).length;u=(""+u).toLowerCase(),b=!0}}a.byteLength=Y;function ke(l,u,f){let m=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return"";for(l||(l="utf8");;)switch(l){case"hex":return Zi(this,u,f);case"utf8":case"utf-8":return Xi(this,u,f);case"ascii":return Yi(this,u,f);case"latin1":case"binary":return Qi(this,u,f);case"base64":return zo(this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eo(this,u,f);default:if(m)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),m=!0}}a.prototype._isBuffer=!0;function Z(l,u,f){const m=l[u];l[u]=l[f],l[f]=m}a.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<u;f+=2)Z(this,f,f+1);return this},a.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<u;f+=4)Z(this,f,f+3),Z(this,f+1,f+2);return this},a.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<u;f+=8)Z(this,f,f+7),Z(this,f+1,f+6),Z(this,f+2,f+5),Z(this,f+3,f+4);return this},a.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?Xi(this,0,u):ke.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(u){if(!a.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:a.compare(this,u)===0},a.prototype.inspect=function(){let u="";const f=r.INSPECT_MAX_BYTES;return u=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(u+=" ... "),"<Buffer "+u+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(u,f,m,b,y){if(bt(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),!a.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),m===void 0&&(m=u?u.length:0),b===void 0&&(b=0),y===void 0&&(y=this.length),f<0||m>u.length||b<0||y>this.length)throw new RangeError("out of range index");if(b>=y&&f>=m)return 0;if(b>=y)return-1;if(f>=m)return 1;if(f>>>=0,m>>>=0,b>>>=0,y>>>=0,this===u)return 0;let h=y-b,S=m-f;const T=Math.min(h,S),M=this.slice(b,y),G=u.slice(f,m);for(let H=0;H<T;++H)if(M[H]!==G[H]){h=M[H],S=G[H];break}return h<S?-1:S<h?1:0};function St(l,u,f,m,b){if(l.length===0)return-1;if(typeof f=="string"?(m=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,bi(f)&&(f=b?0:l.length-1),f<0&&(f=l.length+f),f>=l.length){if(b)return-1;f=l.length-1}else if(f<0)if(b)f=0;else return-1;if(typeof u=="string"&&(u=a.from(u,m)),a.isBuffer(u))return u.length===0?-1:xt(l,u,f,m,b);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(l,u,f):Uint8Array.prototype.lastIndexOf.call(l,u,f):xt(l,[u],f,m,b);throw new TypeError("val must be string, number or Buffer")}function xt(l,u,f,m,b){let y=1,h=l.length,S=u.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(l.length<2||u.length<2)return-1;y=2,h/=2,S/=2,f/=2}function T(G,H){return y===1?G[H]:G.readUInt16BE(H*y)}let M;if(b){let G=-1;for(M=f;M<h;M++)if(T(l,M)===T(u,G===-1?0:M-G)){if(G===-1&&(G=M),M-G+1===S)return G*y}else G!==-1&&(M-=M-G),G=-1}else for(f+S>h&&(f=h-S),M=f;M>=0;M--){let G=!0;for(let H=0;H<S;H++)if(T(l,M+H)!==T(u,H)){G=!1;break}if(G)return M}return-1}a.prototype.includes=function(u,f,m){return this.indexOf(u,f,m)!==-1},a.prototype.indexOf=function(u,f,m){return St(this,u,f,m,!0)},a.prototype.lastIndexOf=function(u,f,m){return St(this,u,f,m,!1)};function Bn(l,u,f,m){f=Number(f)||0;const b=l.length-f;m?(m=Number(m),m>b&&(m=b)):m=b;const y=u.length;m>y/2&&(m=y/2);let h;for(h=0;h<m;++h){const S=parseInt(u.substr(h*2,2),16);if(bi(S))return h;l[f+h]=S}return h}function Nr(l,u,f,m){return Yn(Ir(u,l.length-f),l,f,m)}function Lo(l,u,f,m){return Yn(io(u),l,f,m)}function Ho(l,u,f,m){return Yn(gi(u),l,f,m)}function qo(l,u,f,m){return Yn(oo(u,l.length-f),l,f,m)}a.prototype.write=function(u,f,m,b){if(f===void 0)b="utf8",m=this.length,f=0;else if(m===void 0&&typeof f=="string")b=f,m=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(m)?(m=m>>>0,b===void 0&&(b="utf8")):(b=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const y=this.length-f;if((m===void 0||m>y)&&(m=y),u.length>0&&(m<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let h=!1;for(;;)switch(b){case"hex":return Bn(this,u,f,m);case"utf8":case"utf-8":return Nr(this,u,f,m);case"ascii":case"latin1":case"binary":return Lo(this,u,f,m);case"base64":return Ho(this,u,f,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qo(this,u,f,m);default:if(h)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),h=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zo(l,u,f){return u===0&&f===l.length?e.fromByteArray(l):e.fromByteArray(l.slice(u,f))}function Xi(l,u,f){f=Math.min(l.length,f);const m=[];let b=u;for(;b<f;){const y=l[b];let h=null,S=y>239?4:y>223?3:y>191?2:1;if(b+S<=f){let T,M,G,H;switch(S){case 1:y<128&&(h=y);break;case 2:T=l[b+1],(T&192)===128&&(H=(y&31)<<6|T&63,H>127&&(h=H));break;case 3:T=l[b+1],M=l[b+2],(T&192)===128&&(M&192)===128&&(H=(y&15)<<12|(T&63)<<6|M&63,H>2047&&(H<55296||H>57343)&&(h=H));break;case 4:T=l[b+1],M=l[b+2],G=l[b+3],(T&192)===128&&(M&192)===128&&(G&192)===128&&(H=(y&15)<<18|(T&63)<<12|(M&63)<<6|G&63,H>65535&&H<1114112&&(h=H))}}h===null?(h=65533,S=1):h>65535&&(h-=65536,m.push(h>>>10&1023|55296),h=56320|h&1023),m.push(h),b+=S}return yi(m)}const li=4096;function yi(l){const u=l.length;if(u<=li)return String.fromCharCode.apply(String,l);let f="",m=0;for(;m<u;)f+=String.fromCharCode.apply(String,l.slice(m,m+=li));return f}function Yi(l,u,f){let m="";f=Math.min(l.length,f);for(let b=u;b<f;++b)m+=String.fromCharCode(l[b]&127);return m}function Qi(l,u,f){let m="";f=Math.min(l.length,f);for(let b=u;b<f;++b)m+=String.fromCharCode(l[b]);return m}function Zi(l,u,f){const m=l.length;(!u||u<0)&&(u=0),(!f||f<0||f>m)&&(f=m);let b="";for(let y=u;y<f;++y)b+=Wo[l[y]];return b}function eo(l,u,f){const m=l.slice(u,f);let b="";for(let y=0;y<m.length-1;y+=2)b+=String.fromCharCode(m[y]+m[y+1]*256);return b}a.prototype.slice=function(u,f){const m=this.length;u=~~u,f=f===void 0?m:~~f,u<0?(u+=m,u<0&&(u=0)):u>m&&(u=m),f<0?(f+=m,f<0&&(f=0)):f>m&&(f=m),f<u&&(f=u);const b=this.subarray(u,f);return Object.setPrototypeOf(b,a.prototype),b};function Ue(l,u,f){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+u>f)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=this[u],y=1,h=0;for(;++h<f&&(y*=256);)b+=this[u+h]*y;return b},a.prototype.readUintBE=a.prototype.readUIntBE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=this[u+--f],y=1;for(;f>0&&(y*=256);)b+=this[u+--f]*y;return b},a.prototype.readUint8=a.prototype.readUInt8=function(u,f){return u=u>>>0,f||Ue(u,1,this.length),this[u]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||Ue(u,2,this.length),this[u]|this[u+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||Ue(u,2,this.length),this[u]<<8|this[u+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},a.prototype.readBigUInt64LE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,y=this[++u]+this[++u]*2**8+this[++u]*2**16+m*2**24;return BigInt(b)+(BigInt(y)<<BigInt(32))}),a.prototype.readBigUInt64BE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],y=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+m;return(BigInt(b)<<BigInt(32))+BigInt(y)}),a.prototype.readIntLE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=this[u],y=1,h=0;for(;++h<f&&(y*=256);)b+=this[u+h]*y;return y*=128,b>=y&&(b-=Math.pow(2,8*f)),b},a.prototype.readIntBE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=f,y=1,h=this[u+--b];for(;b>0&&(y*=256);)h+=this[u+--b]*y;return y*=128,h>=y&&(h-=Math.pow(2,8*f)),h},a.prototype.readInt8=function(u,f){return u=u>>>0,f||Ue(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},a.prototype.readInt16LE=function(u,f){u=u>>>0,f||Ue(u,2,this.length);const m=this[u]|this[u+1]<<8;return m&32768?m|4294901760:m},a.prototype.readInt16BE=function(u,f){u=u>>>0,f||Ue(u,2,this.length);const m=this[u+1]|this[u]<<8;return m&32768?m|4294901760:m},a.prototype.readInt32LE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},a.prototype.readInt32BE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},a.prototype.readBigInt64LE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(m<<24);return(BigInt(b)<<BigInt(32))+BigInt(f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),a.prototype.readBigInt64BE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(b)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+m)}),a.prototype.readFloatLE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),t.read(this,u,!0,23,4)},a.prototype.readFloatBE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),t.read(this,u,!1,23,4)},a.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||Ue(u,8,this.length),t.read(this,u,!0,52,8)},a.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||Ue(u,8,this.length),t.read(this,u,!1,52,8)};function qe(l,u,f,m,b,y){if(!a.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>b||u<y)throw new RangeError('"value" argument is out of bounds');if(f+m>l.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(u,f,m,b){if(u=+u,f=f>>>0,m=m>>>0,!b){const S=Math.pow(2,8*m)-1;qe(this,u,f,m,S,0)}let y=1,h=0;for(this[f]=u&255;++h<m&&(y*=256);)this[f+h]=u/y&255;return f+m},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(u,f,m,b){if(u=+u,f=f>>>0,m=m>>>0,!b){const S=Math.pow(2,8*m)-1;qe(this,u,f,m,S,0)}let y=m-1,h=1;for(this[f+y]=u&255;--y>=0&&(h*=256);)this[f+y]=u/h&255;return f+m},a.prototype.writeUint8=a.prototype.writeUInt8=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,1,255,0),this[f]=u&255,f+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function D(l,u,f,m,b){mi(u,m,b,l,f,7);let y=Number(u&BigInt(4294967295));l[f++]=y,y=y>>8,l[f++]=y,y=y>>8,l[f++]=y,y=y>>8,l[f++]=y;let h=Number(u>>BigInt(32)&BigInt(4294967295));return l[f++]=h,h=h>>8,l[f++]=h,h=h>>8,l[f++]=h,h=h>>8,l[f++]=h,f}function On(l,u,f,m,b){mi(u,m,b,l,f,7);let y=Number(u&BigInt(4294967295));l[f+7]=y,y=y>>8,l[f+6]=y,y=y>>8,l[f+5]=y,y=y>>8,l[f+4]=y;let h=Number(u>>BigInt(32)&BigInt(4294967295));return l[f+3]=h,h=h>>8,l[f+2]=h,h=h>>8,l[f+1]=h,h=h>>8,l[f]=h,f+8}a.prototype.writeBigUInt64LE=sn(function(u,f=0){return D(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=sn(function(u,f=0){return On(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(u,f,m,b){if(u=+u,f=f>>>0,!b){const T=Math.pow(2,8*m-1);qe(this,u,f,m,T-1,-T)}let y=0,h=1,S=0;for(this[f]=u&255;++y<m&&(h*=256);)u<0&&S===0&&this[f+y-1]!==0&&(S=1),this[f+y]=(u/h>>0)-S&255;return f+m},a.prototype.writeIntBE=function(u,f,m,b){if(u=+u,f=f>>>0,!b){const T=Math.pow(2,8*m-1);qe(this,u,f,m,T-1,-T)}let y=m-1,h=1,S=0;for(this[f+y]=u&255;--y>=0&&(h*=256);)u<0&&S===0&&this[f+y+1]!==0&&(S=1),this[f+y]=(u/h>>0)-S&255;return f+m},a.prototype.writeInt8=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},a.prototype.writeInt16LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},a.prototype.writeInt16BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},a.prototype.writeInt32LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},a.prototype.writeInt32BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},a.prototype.writeBigInt64LE=sn(function(u,f=0){return D(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=sn(function(u,f=0){return On(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function to(l,u,f,m,b,y){if(f+m>l.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function Ne(l,u,f,m,b){return u=+u,f=f>>>0,b||to(l,u,f,4),t.write(l,u,f,m,23,4),f+4}a.prototype.writeFloatLE=function(u,f,m){return Ne(this,u,f,!0,m)},a.prototype.writeFloatBE=function(u,f,m){return Ne(this,u,f,!1,m)};function no(l,u,f,m,b){return u=+u,f=f>>>0,b||to(l,u,f,8),t.write(l,u,f,m,52,8),f+8}a.prototype.writeDoubleLE=function(u,f,m){return no(this,u,f,!0,m)},a.prototype.writeDoubleBE=function(u,f,m){return no(this,u,f,!1,m)},a.prototype.copy=function(u,f,m,b){if(!a.isBuffer(u))throw new TypeError("argument should be a Buffer");if(m||(m=0),!b&&b!==0&&(b=this.length),f>=u.length&&(f=u.length),f||(f=0),b>0&&b<m&&(b=m),b===m||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),u.length-f<b-m&&(b=u.length-f+m);const y=b-m;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,m,b):Uint8Array.prototype.set.call(u,this.subarray(m,b),f),y},a.prototype.fill=function(u,f,m,b){if(typeof u=="string"){if(typeof f=="string"?(b=f,f=0,m=this.length):typeof m=="string"&&(b=m,m=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!a.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(u.length===1){const h=u.charCodeAt(0);(b==="utf8"&&h<128||b==="latin1")&&(u=h)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(f<0||this.length<f||this.length<m)throw new RangeError("Out of range index");if(m<=f)return this;f=f>>>0,m=m===void 0?this.length:m>>>0,u||(u=0);let y;if(typeof u=="number")for(y=f;y<m;++y)this[y]=u;else{const h=a.isBuffer(u)?u:a.from(u,b),S=h.length;if(S===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(y=0;y<m-f;++y)this[y+f]=h[y%S]}return this};const Dn={};function Ar(l,u,f){Dn[l]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}Ar("ERR_BUFFER_OUT_OF_BOUNDS",function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ar("ERR_INVALID_ARG_TYPE",function(l,u){return`The "${l}" argument must be of type number. Received type ${typeof u}`},TypeError),Ar("ERR_OUT_OF_RANGE",function(l,u,f){let m=`The value of "${l}" is out of range.`,b=f;return Number.isInteger(f)&&Math.abs(f)>2**32?b=ro(String(f)):typeof f=="bigint"&&(b=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(b=ro(b)),b+="n"),m+=` It must be ${u}. Received ${b}`,m},RangeError);function ro(l){let u="",f=l.length;const m=l[0]==="-"?1:0;for(;f>=m+4;f-=3)u=`_${l.slice(f-3,f)}${u}`;return`${l.slice(0,f)}${u}`}function Bt(l,u,f){qt(u,"offset"),(l[u]===void 0||l[u+f]===void 0)&&Ln(u,l.length-(f+1))}function mi(l,u,f,m,b,y){if(l>f||l<u){const h=typeof u=="bigint"?"n":"";let S;throw u===0||u===BigInt(0)?S=`>= 0${h} and < 2${h} ** ${(y+1)*8}${h}`:S=`>= -(2${h} ** ${(y+1)*8-1}${h}) and < 2 ** ${(y+1)*8-1}${h}`,new Dn.ERR_OUT_OF_RANGE("value",S,l)}Bt(m,b,y)}function qt(l,u){if(typeof l!="number")throw new Dn.ERR_INVALID_ARG_TYPE(u,"number",l)}function Ln(l,u,f){throw Math.floor(l)!==l?(qt(l,f),new Dn.ERR_OUT_OF_RANGE("offset","an integer",l)):u<0?new Dn.ERR_BUFFER_OUT_OF_BOUNDS:new Dn.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,l)}const Go=/[^+/0-9A-Za-z-_]/g;function hi(l){if(l=l.split("=")[0],l=l.trim().replace(Go,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function Ir(l,u){u=u||1/0;let f;const m=l.length;let b=null;const y=[];for(let h=0;h<m;++h){if(f=l.charCodeAt(h),f>55295&&f<57344){if(!b){if(f>56319){(u-=3)>-1&&y.push(239,191,189);continue}else if(h+1===m){(u-=3)>-1&&y.push(239,191,189);continue}b=f;continue}if(f<56320){(u-=3)>-1&&y.push(239,191,189),b=f;continue}f=(b-55296<<10|f-56320)+65536}else b&&(u-=3)>-1&&y.push(239,191,189);if(b=null,f<128){if((u-=1)<0)break;y.push(f)}else if(f<2048){if((u-=2)<0)break;y.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;y.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;y.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return y}function io(l){const u=[];for(let f=0;f<l.length;++f)u.push(l.charCodeAt(f)&255);return u}function oo(l,u){let f,m,b;const y=[];for(let h=0;h<l.length&&!((u-=2)<0);++h)f=l.charCodeAt(h),m=f>>8,b=f%256,y.push(b),y.push(m);return y}function gi(l){return e.toByteArray(hi(l))}function Yn(l,u,f,m){let b;for(b=0;b<m&&!(b+f>=u.length||b>=l.length);++b)u[b+f]=l[b];return b}function bt(l,u){return l instanceof u||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===u.name}function bi(l){return l!==l}const Wo=function(){const l="0123456789abcdef",u=new Array(256);for(let f=0;f<16;++f){const m=f*16;for(let b=0;b<16;++b)u[m+b]=l[f]+l[b]}return u}();function sn(l){return typeof BigInt>"u"?Vo:l}function Vo(){throw new Error("BigInt not supported")}}(Ro)),Ro}var rd=gp(),bp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.JSONCodec=class extends d.Codec{constructor(){super(...arguments);c(this,"encoder",new TextEncoder);c(this,"decoder",new TextDecoder)}decode(t,n){const o=this.decoder.decode(t);if(!n||!n.constructor)return JSON.parse(o);const i=JSON.parse(o);if(typeof i!="object"&&typeof i!="function"||i==null)return i;switch(n.name){case"Object":return i}return this.decorateAny(n,i)}decorateAny(t,n){const o=t instanceof Sn,i=o?t.raw:t;if(!i)return n;switch(i){case Map:if(n==null)return new Map;if(!o||t.parameters.length<1)return new Map(Object.entries(n));const s=new Map;return Object.keys(n).forEach(_=>{s.set(this.decorateAny(t.parameters[0],_),this.decorateAny(t.parameters[1],n[_]))}),s;case Array:return n==null?[]:!o||t.parameters.length<1?n:n.map(_=>this.decorateAny(t.parameters[0],_));case Fe:if(n==null)return null;const a=new i;if(!o||t.parameters.length<1)return Object.assign(a,n);Object.assign(a,n);const P=[];for(let _ of a.data||[])P.push(this.decorateAny(t.parameters[0],_));return a.data=P,a;case String:case Number:case Boolean:case Object:return n;case Date:return n==null||n<1?null:new Date(n);case Uint8Array:return n==null?null:n instanceof Uint8Array?n:rd.Buffer.from(n,"base64");default:if(n==null)return null;const v=new i;return Object.keys(v).forEach((_,E)=>{const $=Oe.metadata(Rn,i,_);if(!$){Reflect.set(v,_,n[_]);return}const N=n[_]!=null?n[_]:n[$.name];Reflect.set(v,_,this.decorateAny($.kind,N))}),v}}encode(t){return this.encoder.encode(JSON.stringify(t,(n,o)=>{if(o==null||Array.isArray(o))return o;if(!Oe.annotated(o.constructor))return this.encodeAny(o);const i=new Map;for(let s in o){const a=Oe.metadata(Rn,o.constructor,s);a&&a.name&&a.name.length>0&&a.name!=s&&i.set(s,a.name),((a==null?void 0:a.kind)==Uint8Array||(a==null?void 0:a.kind)==Date||(a==null?void 0:a.kind)==Map)&&Reflect.set(o,s,this.encodeAny(Reflect.get(o,s)))}return i.size<1?this.encodeAny(o):(i.forEach((s,a)=>{const P=Reflect.get(o,a);Reflect.deleteProperty(o,a),Reflect.set(o,s,P)}),this.encodeAny(o))}))}encodeAny(t){return t instanceof Uint8Array?rd.Buffer.from(t).toString("base64"):t instanceof Date?t.getTime():t instanceof Map?Object.fromEntries(t):t}uint8ify(t){return this.encoder.encode(t)}stringify(t){return this.decoder.decode(t)}},d.JSONCodec=bp([L(d.Codec.JSON)],d.JSONCodec);var Vn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},si=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ii;d.Compiler=class{},d.Compiler=Vn([L("mesh")],d.Compiler);function _p(r){return{}}d.TSCompiler=(xn=class extends d.Compiler{compile(e,t){}intype(e){return Ii.parameters.computeIfy(e,t=>{var n;class o{constructor(){c(this,"attachments",new Map)}getAttachments(){return this.attachments}map(){return Object.assign(new Map,this)}setAttachments(s){(s||{}).forEach((a,P)=>this.attachments.set(P,a))}getArguments(){return t.getParameters().map(s=>{var a;return(a=Object.getOwnPropertyDescriptor(this,s.name))==null?void 0:a.value})}setArguments(s){const a=Le.load(d.Codec).getDefault();t.getParameters().forEach((P,v)=>{if(s&&s.length>P.index&&!(s[P.index]instanceof Ri)){const _=s[P.index];if(_==null)return;if(_ instanceof P.kind&&!(P.kind instanceof Sn)){Reflect.set(this,P.name,_);return}switch(P.kind){case Map:case Array:case String:case Number:case Boolean:case Object:case Date:case Uint8Array:Reflect.set(this,P.name,_);break;default:const E=a.encode(_),$=a.decode(E,P.kind);Reflect.set(this,P.name,$)}}})}}return Vn([p(-1,"attachments",Map),si("design:type",typeof(n=typeof Map<"u"&&Map)=="function"?n:Object)],o.prototype,"attachments",void 0),o})}retype(e){return Ii.returns.computeIfy(e,t=>{class n{constructor(){c(this,"code","");c(this,"message","");c(this,"content");c(this,"cause")}getCause(){return this.cause}getCode(){return this.code}getContent(){return this.content}getMessage(){return this.message}setCause(i){this.cause=i}setCode(i){this.code=i}setContent(i){this.content=i}setMessage(i){this.message=i}}return Vn([p(0),si("design:type",String)],n.prototype,"code",void 0),Vn([p(5),si("design:type",String)],n.prototype,"message",void 0),Vn([p(10,"content",t.getReturnType()),si("design:type",Object)],n.prototype,"content",void 0),Vn([p(15,"cause",ut),si("design:type",Object)],n.prototype,"cause",void 0),n})}},Ii=xn,c(xn,"parameters",new B),c(xn,"returns",new B),xn),d.TSCompiler=Ii=Vn([L("mesh")],d.TSCompiler);var Op=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Consumer=(Tr=class{},c(Tr,"HTTP","http"),c(Tr,"GRPC","grpc"),c(Tr,"TCP","tcp"),c(Tr,"MQTT","mqtt"),Tr),d.Consumer=Op([L(d.Consumer.HTTP)],d.Consumer);class Mi{constructor(e){c(this,"servers",new Ye);c(this,"availableAddrs",new Ye);for(let t of(e||"").split(","))t&&t.trim().length>0&&!this.availableAddrs.includes(t)&&(this.servers.push(new id(!0,t)),this.availableAddrs.push(t))}any(){const e=this.availableAddrs;return!e||e.length<1?"":e[Math.floor(Math.random()*e.length)]}}class id{constructor(e,t){c(this,"available");c(this,"address");this.available=e,this.address=t}}class Sp{constructor(e){c(this,"value");c(this,"fn");this.fn=e}get(){return this.value||(this.value=this.fn()),this.value}}const Ki=class Ki{static substring(e,t,n){return!e||e.length>t+n?"":e.substring(t,t+n)}static repeat(e,t){const n=[];for(let o=0;o<t;++o)n.push(e);return n.join("")}static anyone(...e){for(let t of e)if(t&&t.length>0)return t;return""}static traceId(){return""}static spanId(e,t){return""}static newEntity(e){if(!e)return new Re;const t=Le.load(d.Codec),n=new Re;return n.codec=t.defaultName(),n.schema="",n.buffer=t.getDefault().encode(e),n}static newCacheEntity(e,t,n){const o=Ki.newEntity(t),i=new tt;return i.version="1.0.0",i.entity=o,i.timestamp=new Date().getTime(),i.duration=n,i.key=e,i}static readObject(e){return!e.buffer||e.buffer.length<1?null:Le.load(d.Codec).get(e.codec||d.Codec.JSON).decode(this.buffer)}static compareVersion(e,t){if(!e)return-1;if(!t)return 1;const n=e.split("."),o=t.split(".");for(let i=0;i<n.length;i++){if(o.length<=i)return 0;if(o[i]=="*")continue;const s=n[i].localeCompare(o[i]);if(s!=0)return s}return 0}static ofError(e){return new ut}static ofCause(e,t,n){throw new Error}static hexString(e){const t=new TextEncoder().encode(e),n="0123456789abcdef";let o="";for(const i of t){const s=i;o+=n[s>>4],o+=n[s&15]}return o}};c(Ki,"MESH_ADDRESS",new Sp(()=>typeof process<"u"&&process.env.MESH_ADDRESS?new Mi(process.env.MESH_ADDRESS):typeof window<"u"?new Mi(window.location.origin):new Mi("https://127.0.0.1")));let se=Ki;var Rp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class ci extends Ri{constructor(){super(...arguments);c(this,"traceId","");c(this,"spanId","");c(this,"timestamp",0);c(this,"runMode",0);c(this,"urn","");c(this,"consumer",new Tn);c(this,"calls",0);c(this,"attachments",new Map);c(this,"attributes",new Map);c(this,"principals",new es)}static create(){const t=new ci;return t.traceId=se.traceId(),t.spanId=se.spanId("",0),t.timestamp=new Date().getTime(),t.runMode=0,t.urn="",t.consumer=new Tn,t}getAttachments(){return this.attachments}getAttribute(t){return this.attributes.get(t.name)}getAttributes(){return this.attributes}getConsumer(t){return this.consumer}getPrincipals(){return this.principals}getProvider(t){return new Tn}getRunMode(){return this.runMode}getSpanId(){return this.spanId}getTimestamp(){return this.timestamp}getTraceId(){return this.traceId}getUrn(){return this.urn}setAttribute(t,n){this.attributes.set(t.name,n)}resume(){this.calls++;const t=new ci;return t.traceId=this.getTraceId(),t.spanId=se.spanId(this.getSpanId(),this.calls),t.timestamp=this.getTimestamp(),t.runMode=this.getRunMode(),t.urn=this.getUrn(),t.consumer=this.getConsumer(this),this.getAttachments()&&this.getAttachments().forEach((n,o)=>t.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>t.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>t.principals.push(n)),t}rewriteContext(t){t.getTraceId()&&(this.traceId=t.getTraceId()),t.getSpanId()&&(this.spanId=t.getSpanId()),t.getTimestamp()&&t.getTimestamp()>0&&(this.timestamp=t.getTimestamp()),t.getRunMode()&&t.getRunMode()>0&&(this.runMode=t.getRunMode()),t.getUrn()&&(this.urn=t.getUrn()),t.getConsumer(this)&&(this.consumer=t.getConsumer(this)),this.getAttachments()&&this.getAttachments().forEach((n,o)=>this.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>this.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>this.principals.push(n))}rewriteURN(t){this.urn=t}}d.MeshContextProvider=class extends d.ContextProvider{context(){return ci.create()}},d.MeshContextProvider=Rp([L("mesh")],d.MeshContextProvider);var vp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Eden=class{},d.Eden=vp([L("mesh")],d.Eden);class nn{}c(nn,"REMOTE",new kr("mesh.mpc.address")),c(nn,"REMOTE_NAME",new kr("mesh.mpc.remote.name")),c(nn,"INVOCATION",new kr("mesh.invocation")),c(nn,"UNAME",new kr("mesh.mpc.uname"));class gn{constructor(e,t){c(this,"code");c(this,"name");this.code=e,this.name=t}}const de=class de{static ofProto(e){for(let t of de.PROTO)if(t.code==e)return t;return de.HTTP}static ofCodec(e){for(let t of de.CODEC)if(t.code==e)return t;return de.JSON}static ofName(e){for(let t of de.PROTO)if(t.name==e)return t;for(let t of de.CODEC)if(t.name==e)return t;return de.HTTP}};c(de,"HTTP",new gn("00",d.Consumer.HTTP)),c(de,"GRPC",new gn("01",d.Consumer.GRPC)),c(de,"MQTT",new gn("02",d.Consumer.MQTT)),c(de,"TCP",new gn("03",d.Consumer.TCP)),c(de,"JSON",new gn("00",d.Codec.JSON)),c(de,"PROTOBUF",new gn("01",d.Codec.PROTOBUF)),c(de,"XML",new gn("02",d.Codec.XML)),c(de,"THRIFT",new gn("03",d.Codec.THRIFT)),c(de,"YAML",new gn("04",d.Codec.YAML)),c(de,"PROTO",[de.HTTP,de.GRPC,de.MQTT,de.TCP]),c(de,"CODEC",[de.JSON,de.PROTOBUF,de.XML,de.THRIFT,de.YAML]);let rn=de;class od{constructor(e,t){c(this,"inspector");c(this,"reference");c(this,"service");this.reference=new Kt,this.reference.urn=t.toString(),this.reference.namespace="",this.reference.name=t.name,this.reference.version=t.flag.version,this.reference.proto=rn.ofProto(t.flag.proto).name,this.reference.codec=rn.ofCodec(t.flag.codec).name,this.reference.flags=0,this.reference.timeout=parseInt(vi.MESH_TIMEOUT.get(e))||1e4,this.reference.retries=3,this.reference.mdc=t.mdc,this.reference.zone=t.flag.zone,this.reference.cluster=t.flag.cluster,this.reference.cell=t.flag.cell,this.reference.group=t.flag.group,this.reference.address=t.flag.address,this.service=new dt,this.inspector=new sd(t)}inflect(e){return new vo}inspect(e){return this.inspector}intype(e){return vo}reflect(e){return new Po}retype(e){return Po}schema(e){return this.reference}}class sd{constructor(e){c(this,"urn");this.urn=e}getType(){return Object}getAnnotation(e){}getName(){return this.urn.name}getParameters(){return[]}getReturnType(){return new Sn(Map)}getExecutable(){return()=>{}}getSymbol(){return this.urn.name}invoke(e,t){}}class vo extends Map{map(){return this}getArguments(){const e=[];return super.forEach((t,n)=>{n!="attachments"&&e.push(t)}),e}getAttachments(){var o;const e=((o=Object.getOwnPropertyDescriptor(this,"attachments"))==null?void 0:o.value)||new Map;if(e instanceof Map)return e;const t=Le.load(d.Codec).get(d.Codec.JSON),n=t.decode(t.encode(e),Map);return this.setAttachments(n),n}setArguments(e){}setAttachments(e){Object.assign(this,{attachments:ut})}}class Po extends Map{getCause(){var n;const e=(n=Object.getOwnPropertyDescriptor(this,"cause"))==null?void 0:n.value;if(!e||e instanceof ut)return e;const t=Le.load(d.Codec).get(d.Codec.JSON);return t.decode(t.encode(e),ut)}getCode(){var e;return(e=Object.getOwnPropertyDescriptor(this,"code"))==null?void 0:e.value}getContent(){var e;return(e=Object.getOwnPropertyDescriptor(this,"content"))==null?void 0:e.value}getMessage(){var e;return((e=Object.getOwnPropertyDescriptor(this,"message"))==null?void 0:e.value)||""}setCause(e){Object.assign(this,{cause:e})}setCode(e){Object.assign(this,{code:e})}setContent(e){Object.assign(this,{content:e})}setMessage(e){Object.assign(this,{message:e})}}var Pp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const cd="PROVIDER",Ci="CONSUMER";d.Filter=class{},d.Filter=Pp([L("*")],d.Filter);function wo(r,e){const t=Le.load(d.Filter).list().filter(n=>{const o=Oe.metadata(Dt,n==null?void 0:n.constructor,n==null?void 0:n.constructor);return!o||o.pattern==""||(o==null?void 0:o.pattern)==e}).sort((n,o)=>{var a,P;const i=((a=Oe.metadata(Dt,n==null?void 0:n.constructor,n==null?void 0:n.constructor))==null?void 0:a.priority)||0,s=((P=Oe.metadata(Dt,o==null?void 0:o.constructor,o==null?void 0:o.constructor))==null?void 0:P.priority)||0;return i==s?0:i<s?-1:1});return wp(r,t)}function wp(r,e){let t=r;for(let n=e.length-1;n>=0;n--){let o=e[n],i=t;t=new class{run(s,a){return o.invoke(s,i,a)}}}return t}var jp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class Ep{constructor(){c(this,"beforeHooks",new B);c(this,"successHooks",new B);c(this,"failureHooks",new B)}}const wr=()=>{const r=Cr();return r.Mesh||(r.Mesh=new Ep),r.Mesh};class Tp{onBefore(e,t){wr().beforeHooks.set(e,t)}onSuccess(e,t){wr().successHooks.set(e,t)}onFailure(e,t){wr().failureHooks.set(e,t)}before(){return wr().beforeHooks}success(){return wr().successHooks}failure(){return wr().failureHooks}}const ai=new Tp;d.HookFilter=class extends d.Filter{async invoke(e,t,n){try{ai.before().forEach((i,s)=>i(e,n));const o=await t.run(e,n);return ai.success().forEach((i,s)=>i(e,n,o)),o}catch(o){throw Zo(o)?ai.failure().forEach((i,s)=>i(e,n,o)):ai.failure().forEach((i,s)=>i(e,n,g.SYSTEM_ERROR)),o}}},d.HookFilter=jp([L("hook",Ci)],d.HookFilter);class ad{constructor(e,t,n,o){c(this,"proxy");c(this,"inspector");c(this,"parameters");c(this,"execution");this.proxy=e,this.inspector=t,this.parameters=n,this.execution=o}getArguments(e){return this.parameters.getArguments()}getAttachments(e){return this.parameters.getAttachments()}getExecution(e){return this.execution}getInspector(e){return this.inspector}getParameters(e){return this.parameters}getProxy(e){return this.proxy}isAsync(e){return!1}}const _n=class _n{constructor(){c(this,"domain","");c(this,"mdc","");c(this,"flag",new $n);c(this,"name","")}static from(e){const t=new _n;if(!e)return console.log(`Unresolved urn ${e}`),t;const n=t.asArray(e);return n.length<5?(console.log(`Unresolved urn ${e}`),t):(n.reverse(),t.domain=`${n.splice(1,1).join("")}.${n.splice(0,1).join("")}`,t.mdc=n.splice(0,1).join(""),t.flag=$n.from(n.splice(0,1).join("")),t.name=n.join("."),t)}static urn(e){const t=new _n;return t.mdc=this.LocalMDC,t.flag=$n.from("0001000000000000000000000000000000000"),t.name=e,t.domain=this.MESH_DOMAIN,t.toString()}toString(){const e=[],t=this.asArray(this.name);return t.reverse(),t.filter(n=>n).forEach(n=>e.push(n)),e.push(this.flag.toString()),e.push(this.mdc),e.push(se.anyone(this.domain,_n.MESH_DOMAIN)),e.join(".")}asArray(e){const t=e.split("."),n=[],o=[];for(let i of t){if(i.startsWith("${")){o.push(i),o.push(".");continue}if(i.endsWith("}")){o.push(i),n.push(o.join("")),o.splice(0,o.length);continue}n.push(i)}return n}matchName(e){return e?e.endsWith(".*")&&e.startsWith(e.replace(".*","")):!1}resetFlag(e,t){return this.flag.proto=e,this.flag.codec=t,this}};c(_n,"CN","firmer"),c(_n,"MESH_DOMAIN",_n.CN+".tech"),c(_n,"LocalMDC","XX00000000000000");let bn=_n;class $n{constructor(){c(this,"v","00");c(this,"proto","00");c(this,"codec","00");c(this,"version","000000");c(this,"zone","00");c(this,"cluster","00");c(this,"cell","00");c(this,"group","00");c(this,"address","000000000000");c(this,"port","00000")}static from(e){if(!e)return new $n;const t=new $n;return t.v=se.substring(e,0,2),t.proto=se.substring(e,2,2),t.codec=se.substring(e,4,2),t.version=this.reduce(se.substring(e,6,6),2),t.zone=se.substring(e,12,2),t.cluster=se.substring(e,14,2),t.cell=se.substring(e,16,2),t.group=se.substring(e,18,2),t.address=this.reduce(se.substring(e,20,12),3),t.port=this.reduce(se.substring(e,32,5),5),t}toString(){const e=this.padding(se.anyone(this.v,""),2),t=this.padding(se.anyone(this.proto,""),2),n=this.padding(se.anyone(this.codec,""),2),o=this.paddingChain(se.anyone(this.version,""),2,3),i=this.padding(se.anyone(this.zone,""),2),s=this.padding(se.anyone(this.cluster,""),2),a=this.padding(se.anyone(this.cell,""),2),P=this.padding(se.anyone(this.group,""),2),v=this.paddingChain(se.anyone(this.address,""),3,4),_=this.padding(se.anyone(this.port,""),5);return`${e}${t}${n}${o}${i}${s}${a}${P}${v}${_}`}padding(e,t){const n=e.replace(".","");return n.length==t?n:n.length<t?se.repeat("0",t-e.length)+n:e.substring(0,t)}paddingChain(e,t,n){const o=e.split("[.*]"),i=o.map(s=>parseInt(s)?s:"");if(i.length==n)return i.map(s=>this.padding(s,t)).join("");if(i.length<n){for(let s=0;s<n-o.length;s++)i.push("");return i.map(s=>this.padding(s,t)).join("")}return i.slice(0,n).map(s=>this.padding(s,t)).join("")}static reduce(e,t){if(!e)return e;const n=[];for(let o=0;o<e.length;o+=t){let i=!0;for(let s=o;s<o+t;s++)e.charAt(s)!="0"&&(i=!1),i||n.push(e.charAt(s));i&&n.push("0"),n.push(".")}return n.slice(0,n.length-1).join("")}}class ud{constructor(e){c(this,"macro");c(this,"invoker");this.macro=e,this.invoker=wo(this,Ci)}context(e){if(!e||e.length<1)return O();for(let t of e)if(t instanceof Ri)return t;return O()}invoke(e,t,n){return new Promise(async(o,i)=>{try{const s=this.context(n),a=this.referExecution(s,t),P=this.rewriteURN(s,a);s.rewriteURN(P),s.setAttribute(nn.REMOTE,this.rewriteAddress(P));const v=a.inflect(s);v.setArguments(n),v.setAttachments(new Map);const _=new ad(this,t,v,a);s.setAttribute(nn.INVOCATION,_),o(await this.invoker.run(s,_))}catch(s){i(Fr(s))}})}async run(e,t){const n=this.referExecution(e,t.getInspector(e)),o=Le.load(d.Consumer),i=o.getDefault(),s=se.anyone(e.getAttribute(nn.REMOTE),se.MESH_ADDRESS.get().any()),a=n.schema(e).codec||rn.JSON.name,P=Le.load(d.Codec),v=P.get(a),_=v.encode(t.getParameters(e)),E=rn.ofName(o.defaultName()).code,$=rn.ofName(P.defaultName()).code,N=bn.from(e.getUrn()).resetFlag(E,$).toString(),j=await i.consume(e,s,N,n,_);return await this.deserialize(e,n,v,j)}deserialize(e,t,n,o){return new Promise((i,s)=>{try{const a=t.retype(e),P=n.decode(o,a);if(P.getCause()){s(Fr(P.getCause()));return}if(g.SUCCESS.getCode()!=P.getCode()){s(P);return}i(P.getContent())}catch(a){s(Fr(a))}})}referExecution(e,t){const o=Le.load(d.Eden).getDefault().refer(e,t.getAnnotation(Ae),t.getType(),t);if(o)return o;throw new Error(`Method ${t.getName()} cant be compatible`)}rewriteURN(e,t){var a;const n=(a=e.getPrincipals().peek())==null?void 0:a.id,o=e.getAttribute(nn.UNAME),i=e.getAttribute(nn.REMOTE_NAME);if(!n&&!o&&!i)return t.schema(e).urn;const s=bn.from(t.schema(e).urn);return n&&(s.mdc=n),o!=""&&(s.name=o),i!=""&&(s.name=s.name.replace("${mesh.name}",i)),s.toString()}rewriteAddress(e){return se.MESH_ADDRESS.get().any()}}var Np=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},jo;d.ServiceProxy=jo=class extends d.MethodProxy{proxy(e){return jo.proxy(e)}static proxy(e){return this.doProxy(e,R(""))}static doProxy(e,t){return Ur.newProxyInstance(e,new ud(t))}},d.ServiceProxy=jo=Np([L("mesh")],d.ServiceProxy);class Ap{constructor(e){c(this,"service");this.service=e}run(e,t){return new Promise((n,o)=>{try{const i=[e,...t.getArguments(e)],s=t.getInspector(e).invoke(this.service,i);if(s instanceof Promise){s.then(a=>n(a)).catch(a=>o(a));return}n(s)}catch(i){o(i)}})}}class fd{constructor(e){c(this,"invoker");this.invoker=wo(new Ap(e),cd)}run(e,t){return this.invoker.run(e,t)}}var Ip=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class Mp{constructor(e,t,n){c(this,"making");c(this,"kind");c(this,"service");this.making=e,this.kind=t,this.service=n}}class Cp{constructor(e,t){c(this,"metadata");c(this,"reference");c(this,"proxy");this.metadata=e,this.reference=t,this.proxy=d.ServiceProxy.doProxy(t,e)}}class Up{constructor(e,t,n,o,i){c(this,"urn");c(this,"kind");c(this,"method");c(this,"target");c(this,"resource");c(this,"inspector");c(this,"invoker");c(this,"__intype");c(this,"__retype");this.urn=e,this.kind=t,this.method=n,this.target=o,this.resource=i,this.inspector=n,this.invoker=new fd(o),this.__intype=Le.load(d.Compiler).getDefault().intype(n),this.__retype=Le.load(d.Compiler).getDefault().retype(n)}inflect(e){return new this.__intype}inspect(e){return this.inspector}intype(e){return this.__intype}reflect(e){return new this.__retype}retype(e){return this.__retype}schema(e){return this.resource}}d.MeshEden=class extends d.Eden{constructor(){super(...arguments);c(this,"providers",new B);c(this,"consumers",new B);c(this,"indies",new B);c(this,"services",new B);c(this,"references",new B)}define(t,n,o){return this.makeConsumer(t,n,o).proxy}store(t,n,o){this.providers.set(n,new Mp(!1,n,o))}infer(t,n){const o=bn.from(n),i=this.makeServiceExecution(this.getEnviron(t)),s=i==null?void 0:i.get(o.name);if(s)return s;for(let a of i.entries())if(o.matchName(a[0]))return a[1];return new od(t,o)}refer(t,n,o,i){const s=this.makeConsumer(t,n,o),a=this.getEnviron(t),P=this.indies.computeIfy(o,v=>new B).computeIfy(n,v=>{const _=new B;return this.getMethods(t,o).forEach((E,$)=>E.forEach(N=>{const j=this.makeMethodAsReference(a,n,$,N),I=new Up(j.urn,o,N,s.proxy,j);this.references.set(j.urn,I),_.set(N,I)})),_}).get(i);if(P)return P;throw new Error(`Method ${i.getName()} cant be compatible`)}inferTypes(t){const n=[];for(let o of this.providers)n.push(o[1].kind);return n}referTypes(t){const n=[];for(let o of this.consumers.keys())n.push(o);return n}makeConsumer(t,n,o){return this.consumers.computeIfy(o,i=>new B).computeIfy(n,i=>new Cp(n,o))}makeMethodAsReference(t,n,o,i){var a,P,v,_,E,$,N,j,I,A,q,z,Y;const s=new Kt;return s.namespace=o.name,s.name=i.getName(),s.version=((a=i.getAnnotation(Ae))==null?void 0:a.version)||"",s.proto=((P=i.getAnnotation(Ae))==null?void 0:P.proto)||"",s.codec=((v=i.getAnnotation(Ae))==null?void 0:v.codec)||"",s.flags=((_=i.getAnnotation(Ae))==null?void 0:_.flags)||0,s.timeout=((E=i.getAnnotation(Ae))==null?void 0:E.timeout)||12e3,s.retries=(($=i.getAnnotation(Ae))==null?void 0:$.retries)||0,s.mdc=((N=i.getAnnotation(Ae))==null?void 0:N.mdc)||"",s.zone=((j=i.getAnnotation(Ae))==null?void 0:j.zone)||"",s.cluster=((I=i.getAnnotation(Ae))==null?void 0:I.cluster)||"",s.cell=((A=i.getAnnotation(Ae))==null?void 0:A.cell)||"",s.group=((q=i.getAnnotation(Ae))==null?void 0:q.group)||"",s.address=((z=i.getAnnotation(Ae))==null?void 0:z.address)||"",s.urn=this.getURN(((Y=i.getAnnotation(Ae))==null?void 0:Y.name)||"",dt,t),s}getURN(t,n,o){const i=new bn;return i.domain=bn.MESH_DOMAIN,i.mdc=se.anyone(n.mdc,o.mdc),i.name=t,i.flag=this.getURNFlag(n),i.toString()}getURNFlag(t){const n=(t.address||"").split(":"),o=new $n;return o.v="00",o.proto=rn.ofName(t.proto).code,o.codec=rn.ofName(t.codec).code,o.version=t.version,o.zone=t.zone,o.cluster=t.cluster,o.cell=t.cell,o.group=t.group,o.address=n.length>0?n[0]:"",o.port=n.length>1?n[1]:"",o}getMethods(t,n){const o=Ur.getMethods(n),i=new B;return i.set(n,o),i}getEnviron(t){const n=new xe;return n.mdc=bn.LocalMDC,n}makeServiceExecution(t){for(let n of this.providers)n[1].making;return this.services}},d.MeshEden=Ip([L("mesh")],d.MeshEden);var $p=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Eo="mock";d.MockFilter=class extends d.Filter{async invoke(e,t,n){if(!Si.Mock.matches(e.getRunMode())&&!Oi.Mock.enable())return await t.run(e,n);const o=Le.load(n.getInspector(e).getType()).want(Eo);if(!o)return await t.run(e,n);const i=o[n.getInspector(e).getName()];return!i||typeof i!="function"?await t.run(e,n):await i(n.getArguments(e))}},d.MockFilter=$p([L(Eo,Ci)],d.MockFilter);var Fp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Provider=class{},d.Provider=Fp([L(d.Consumer.GRPC)],d.Provider);var kp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.GRPCConsumer=class extends d.Consumer{start(){}close(){}consume(e,t,n,o,i){return Promise.reject(g.URN_NOT_PERMIT)}},d.GRPCConsumer=kp([L(d.Consumer.GRPC)],d.GRPCConsumer);var xp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.GRPCProvider=class extends d.Provider{start(){}close(){}},d.GRPCProvider=xp([L(d.Consumer.GRPC)],d.GRPCProvider);function dd(r,e){return function(){return r.apply(e,arguments)}}const{toString:Bp}=Object.prototype,{getPrototypeOf:To}=Object,{iterator:Ui,toStringTag:pd}=Symbol,$i=(r=>e=>{const t=Bp.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=r=>(r=r.toLowerCase(),e=>$i(e)===r),Fi=r=>e=>typeof e===r,{isArray:jr}=Array,ui=Fi("undefined");function Dp(r){return r!==null&&!ui(r)&&r.constructor!==null&&!ui(r.constructor)&&mt(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const ld=Ht("ArrayBuffer");function Lp(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&ld(r.buffer),e}const Hp=Fi("string"),mt=Fi("function"),yd=Fi("number"),ki=r=>r!==null&&typeof r=="object",qp=r=>r===!0||r===!1,xi=r=>{if($i(r)!=="object")return!1;const e=To(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(pd in r)&&!(Ui in r)},zp=Ht("Date"),Gp=Ht("File"),Wp=Ht("Blob"),Vp=Ht("FileList"),Jp=r=>ki(r)&&mt(r.pipe),Kp=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||mt(r.append)&&((e=$i(r))==="formdata"||e==="object"&&mt(r.toString)&&r.toString()==="[object FormData]"))},Xp=Ht("URLSearchParams"),[Yp,Qp,Zp,el]=["ReadableStream","Request","Response","Headers"].map(Ht),tl=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fi(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,o;if(typeof r!="object"&&(r=[r]),jr(r))for(n=0,o=r.length;n<o;n++)e.call(null,r[n],n,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),s=i.length;let a;for(n=0;n<s;n++)a=i[n],e.call(null,r[a],a,r)}}function md(r,e){e=e.toLowerCase();const t=Object.keys(r);let n=t.length,o;for(;n-- >0;)if(o=t[n],e===o.toLowerCase())return o;return null}const Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hd=r=>!ui(r)&&r!==Jn;function No(){const{caseless:r}=hd(this)&&this||{},e={},t=(n,o)=>{const i=r&&md(e,o)||o;xi(e[i])&&xi(n)?e[i]=No(e[i],n):xi(n)?e[i]=No({},n):jr(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&fi(arguments[n],t);return e}const nl=(r,e,t,{allOwnKeys:n}={})=>(fi(e,(o,i)=>{t&&mt(o)?r[i]=dd(o,t):r[i]=o},{allOwnKeys:n}),r),rl=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),il=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},ol=(r,e,t,n)=>{let o,i,s;const a={};if(e=e||{},r==null)return e;do{for(o=Object.getOwnPropertyNames(r),i=o.length;i-- >0;)s=o[i],(!n||n(s,r,e))&&!a[s]&&(e[s]=r[s],a[s]=!0);r=t!==!1&&To(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},sl=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},cl=r=>{if(!r)return null;if(jr(r))return r;let e=r.length;if(!yd(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},al=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&To(Uint8Array)),ul=(r,e)=>{const n=(r&&r[Ui]).call(r);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(r,i[0],i[1])}},fl=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},dl=Ht("HTMLFormElement"),pl=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),gd=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),ll=Ht("RegExp"),bd=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};fi(t,(o,i)=>{let s;(s=e(o,i,r))!==!1&&(n[i]=s||o)}),Object.defineProperties(r,n)},yl=r=>{bd(r,(e,t)=>{if(mt(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(mt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ml=(r,e)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return jr(r)?n(r):n(String(r).split(e)),t},hl=()=>{},gl=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function bl(r){return!!(r&&mt(r.append)&&r[pd]==="FormData"&&r[Ui])}const _l=r=>{const e=new Array(10),t=(n,o)=>{if(ki(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=jr(n)?[]:{};return fi(n,(s,a)=>{const P=t(s,o+1);!ui(P)&&(i[a]=P)}),e[o]=void 0,i}}return n};return t(r,0)},Ol=Ht("AsyncFunction"),Sl=r=>r&&(ki(r)||mt(r))&&mt(r.then)&&mt(r.catch),_d=((r,e)=>r?setImmediate:e?((t,n)=>(Jn.addEventListener("message",({source:o,data:i})=>{o===Jn&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),Jn.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",mt(Jn.postMessage)),Rl=typeof queueMicrotask<"u"?queueMicrotask.bind(Jn):typeof process<"u"&&process.nextTick||_d,w={isArray:jr,isArrayBuffer:ld,isBuffer:Dp,isFormData:Kp,isArrayBufferView:Lp,isString:Hp,isNumber:yd,isBoolean:qp,isObject:ki,isPlainObject:xi,isReadableStream:Yp,isRequest:Qp,isResponse:Zp,isHeaders:el,isUndefined:ui,isDate:zp,isFile:Gp,isBlob:Wp,isRegExp:ll,isFunction:mt,isStream:Jp,isURLSearchParams:Xp,isTypedArray:al,isFileList:Vp,forEach:fi,merge:No,extend:nl,trim:tl,stripBOM:rl,inherits:il,toFlatObject:ol,kindOf:$i,kindOfTest:Ht,endsWith:sl,toArray:cl,forEachEntry:ul,matchAll:fl,isHTMLForm:dl,hasOwnProperty:gd,hasOwnProp:gd,reduceDescriptors:bd,freezeMethods:yl,toObjectSet:ml,toCamelCase:pl,noop:hl,toFiniteNumber:gl,findKey:md,global:Jn,isContextDefined:hd,isSpecCompliantForm:bl,toJSONObject:_l,isAsyncFn:Ol,isThenable:Sl,setImmediate:_d,asap:Rl,isIterable:r=>r!=null&&mt(r[Ui])};function K(r,e,t,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Od=K.prototype,Sd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Sd[r]={value:r}}),Object.defineProperties(K,Sd),Object.defineProperty(Od,"isAxiosError",{value:!0}),K.from=(r,e,t,n,o,i)=>{const s=Object.create(Od);return w.toFlatObject(r,s,function(P){return P!==Error.prototype},a=>a!=="isAxiosError"),K.call(s,r.message,e,t,n,o),s.cause=r,s.name=r.name,i&&Object.assign(s,i),s};const vl=null;function Ao(r){return w.isPlainObject(r)||w.isArray(r)}function Rd(r){return w.endsWith(r,"[]")?r.slice(0,-2):r}function vd(r,e,t){return r?r.concat(e).map(function(o,i){return o=Rd(o),!t&&i?"["+o+"]":o}).join(t?".":""):e}function Pl(r){return w.isArray(r)&&!r.some(Ao)}const wl=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function Bi(r,e,t){if(!w.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=w.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(I,A){return!w.isUndefined(A[I])});const n=t.metaTokens,o=t.visitor||_,i=t.dots,s=t.indexes,P=(t.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function v(j){if(j===null)return"";if(w.isDate(j))return j.toISOString();if(!P&&w.isBlob(j))throw new K("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(j)||w.isTypedArray(j)?P&&typeof Blob=="function"?new Blob([j]):Buffer.from(j):j}function _(j,I,A){let q=j;if(j&&!A&&typeof j=="object"){if(w.endsWith(I,"{}"))I=n?I:I.slice(0,-2),j=JSON.stringify(j);else if(w.isArray(j)&&Pl(j)||(w.isFileList(j)||w.endsWith(I,"[]"))&&(q=w.toArray(j)))return I=Rd(I),q.forEach(function(Y,ke){!(w.isUndefined(Y)||Y===null)&&e.append(s===!0?vd([I],ke,i):s===null?I:I+"[]",v(Y))}),!1}return Ao(j)?!0:(e.append(vd(A,I,i),v(j)),!1)}const E=[],$=Object.assign(wl,{defaultVisitor:_,convertValue:v,isVisitable:Ao});function N(j,I){if(!w.isUndefined(j)){if(E.indexOf(j)!==-1)throw Error("Circular reference detected in "+I.join("."));E.push(j),w.forEach(j,function(q,z){(!(w.isUndefined(q)||q===null)&&o.call(e,q,w.isString(z)?z.trim():z,I,$))===!0&&N(q,I?I.concat(z):[z])}),E.pop()}}if(!w.isObject(r))throw new TypeError("data must be an object");return N(r),e}function Pd(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Io(r,e){this._pairs=[],r&&Bi(r,this,e)}const wd=Io.prototype;wd.append=function(e,t){this._pairs.push([e,t])},wd.toString=function(e){const t=e?function(n){return e.call(this,n,Pd)}:Pd;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function jl(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jd(r,e,t){if(!e)return r;const n=t&&t.encode||jl;w.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(e,t):i=w.isURLSearchParams(e)?e.toString():new Io(e,t).toString(n),i){const s=r.indexOf("#");s!==-1&&(r=r.slice(0,s)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class Ed{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Td={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},El={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Io,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Mo=typeof window<"u"&&typeof document<"u",Co=typeof navigator=="object"&&navigator||void 0,Tl=Mo&&(!Co||["ReactNative","NativeScript","NS"].indexOf(Co.product)<0),Nl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Al=Mo&&window.location.href||"http://localhost",Xe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mo,hasStandardBrowserEnv:Tl,hasStandardBrowserWebWorkerEnv:Nl,navigator:Co,origin:Al},Symbol.toStringTag,{value:"Module"})),...El};function Il(r,e){return Bi(r,new Xe.classes.URLSearchParams,Object.assign({visitor:function(t,n,o,i){return Xe.isNode&&w.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Ml(r){return w.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cl(r){const e={},t=Object.keys(r);let n;const o=t.length;let i;for(n=0;n<o;n++)i=t[n],e[i]=r[i];return e}function Nd(r){function e(t,n,o,i){let s=t[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),P=i>=t.length;return s=!s&&w.isArray(o)?o.length:s,P?(w.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),e(t,n,o[s],i)&&w.isArray(o[s])&&(o[s]=Cl(o[s])),!a)}if(w.isFormData(r)&&w.isFunction(r.entries)){const t={};return w.forEachEntry(r,(n,o)=>{e(Ml(n),o,t,0)}),t}return null}function Ul(r,e,t){if(w.isString(r))try{return(e||JSON.parse)(r),w.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const di={transitional:Td,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=w.isObject(e);if(i&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return o?JSON.stringify(Nd(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Il(e,this.formSerializer).toString();if((a=w.isFileList(e))||n.indexOf("multipart/form-data")>-1){const P=this.env&&this.env.FormData;return Bi(a?{"files[]":e}:e,P&&new P,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),Ul(e)):e}],transformResponse:[function(e){const t=this.transitional||di.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(n&&!this.responseType||o)){const s=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?K.from(a,K.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],r=>{di.headers[r]={}});const $l=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fl=r=>{const e={};let t,n,o;return r&&r.split(`
|
|
19
|
+
*/var nd;function gp(){return nd||(nd=1,function(r){const e=mp(),t=hp(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=z,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const l=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(l,u),l.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(l){if(l>o)throw new RangeError('The value "'+l+'" is invalid for option "size"');const u=new Uint8Array(l);return Object.setPrototypeOf(u,a.prototype),u}function a(l,u,f){if(typeof l=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(l)}return P(l,u,f)}a.poolSize=8192;function P(l,u,f){if(typeof l=="string")return $(l,u);if(ArrayBuffer.isView(l))return j(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(bt(l,ArrayBuffer)||l&&bt(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(bt(l,SharedArrayBuffer)||l&&bt(l.buffer,SharedArrayBuffer)))return I(l,u,f);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=l.valueOf&&l.valueOf();if(m!=null&&m!==l)return a.from(m,u,f);const b=A(l);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return a.from(l[Symbol.toPrimitive]("string"),u,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}a.from=function(l,u,f){return P(l,u,f)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function v(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function _(l,u,f){return v(l),l<=0?s(l):u!==void 0?typeof f=="string"?s(l).fill(u,f):s(l).fill(u):s(l)}a.alloc=function(l,u,f){return _(l,u,f)};function E(l){return v(l),s(l<0?0:q(l)|0)}a.allocUnsafe=function(l){return E(l)},a.allocUnsafeSlow=function(l){return E(l)};function $(l,u){if((typeof u!="string"||u==="")&&(u="utf8"),!a.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const f=Y(l,u)|0;let m=s(f);const b=m.write(l,u);return b!==f&&(m=m.slice(0,b)),m}function N(l){const u=l.length<0?0:q(l.length)|0,f=s(u);for(let m=0;m<u;m+=1)f[m]=l[m]&255;return f}function j(l){if(bt(l,Uint8Array)){const u=new Uint8Array(l);return I(u.buffer,u.byteOffset,u.byteLength)}return N(l)}function I(l,u,f){if(u<0||l.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<u+(f||0))throw new RangeError('"length" is outside of buffer bounds');let m;return u===void 0&&f===void 0?m=new Uint8Array(l):f===void 0?m=new Uint8Array(l,u):m=new Uint8Array(l,u,f),Object.setPrototypeOf(m,a.prototype),m}function A(l){if(a.isBuffer(l)){const u=q(l.length)|0,f=s(u);return f.length===0||l.copy(f,0,0,u),f}if(l.length!==void 0)return typeof l.length!="number"||bi(l.length)?s(0):N(l);if(l.type==="Buffer"&&Array.isArray(l.data))return N(l.data)}function q(l){if(l>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return l|0}function z(l){return+l!=l&&(l=0),a.alloc(+l)}a.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==a.prototype},a.compare=function(u,f){if(bt(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),bt(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(u)||!a.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let m=u.length,b=f.length;for(let y=0,h=Math.min(m,b);y<h;++y)if(u[y]!==f[y]){m=u[y],b=f[y];break}return m<b?-1:b<m?1:0},a.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(u,f){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return a.alloc(0);let m;if(f===void 0)for(f=0,m=0;m<u.length;++m)f+=u[m].length;const b=a.allocUnsafe(f);let y=0;for(m=0;m<u.length;++m){let h=u[m];if(bt(h,Uint8Array))y+h.length>b.length?(a.isBuffer(h)||(h=a.from(h)),h.copy(b,y)):Uint8Array.prototype.set.call(b,h,y);else if(a.isBuffer(h))h.copy(b,y);else throw new TypeError('"list" argument must be an Array of Buffers');y+=h.length}return b};function Y(l,u){if(a.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||bt(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const f=l.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&f===0)return 0;let b=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return Mr(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return gi(l).length;default:if(b)return m?-1:Mr(l).length;u=(""+u).toLowerCase(),b=!0}}a.byteLength=Y;function ke(l,u,f){let m=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return"";for(l||(l="utf8");;)switch(l){case"hex":return Zi(this,u,f);case"utf8":case"utf-8":return Xi(this,u,f);case"ascii":return Yi(this,u,f);case"latin1":case"binary":return Qi(this,u,f);case"base64":return zo(this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eo(this,u,f);default:if(m)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),m=!0}}a.prototype._isBuffer=!0;function Z(l,u,f){const m=l[u];l[u]=l[f],l[f]=m}a.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<u;f+=2)Z(this,f,f+1);return this},a.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<u;f+=4)Z(this,f,f+3),Z(this,f+1,f+2);return this},a.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<u;f+=8)Z(this,f,f+7),Z(this,f+1,f+6),Z(this,f+2,f+5),Z(this,f+3,f+4);return this},a.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?Xi(this,0,u):ke.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(u){if(!a.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:a.compare(this,u)===0},a.prototype.inspect=function(){let u="";const f=r.INSPECT_MAX_BYTES;return u=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(u+=" ... "),"<Buffer "+u+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(u,f,m,b,y){if(bt(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),!a.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),m===void 0&&(m=u?u.length:0),b===void 0&&(b=0),y===void 0&&(y=this.length),f<0||m>u.length||b<0||y>this.length)throw new RangeError("out of range index");if(b>=y&&f>=m)return 0;if(b>=y)return-1;if(f>=m)return 1;if(f>>>=0,m>>>=0,b>>>=0,y>>>=0,this===u)return 0;let h=y-b,S=m-f;const T=Math.min(h,S),M=this.slice(b,y),G=u.slice(f,m);for(let H=0;H<T;++H)if(M[H]!==G[H]){h=M[H],S=G[H];break}return h<S?-1:S<h?1:0};function St(l,u,f,m,b){if(l.length===0)return-1;if(typeof f=="string"?(m=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,bi(f)&&(f=b?0:l.length-1),f<0&&(f=l.length+f),f>=l.length){if(b)return-1;f=l.length-1}else if(f<0)if(b)f=0;else return-1;if(typeof u=="string"&&(u=a.from(u,m)),a.isBuffer(u))return u.length===0?-1:xt(l,u,f,m,b);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(l,u,f):Uint8Array.prototype.lastIndexOf.call(l,u,f):xt(l,[u],f,m,b);throw new TypeError("val must be string, number or Buffer")}function xt(l,u,f,m,b){let y=1,h=l.length,S=u.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(l.length<2||u.length<2)return-1;y=2,h/=2,S/=2,f/=2}function T(G,H){return y===1?G[H]:G.readUInt16BE(H*y)}let M;if(b){let G=-1;for(M=f;M<h;M++)if(T(l,M)===T(u,G===-1?0:M-G)){if(G===-1&&(G=M),M-G+1===S)return G*y}else G!==-1&&(M-=M-G),G=-1}else for(f+S>h&&(f=h-S),M=f;M>=0;M--){let G=!0;for(let H=0;H<S;H++)if(T(l,M+H)!==T(u,H)){G=!1;break}if(G)return M}return-1}a.prototype.includes=function(u,f,m){return this.indexOf(u,f,m)!==-1},a.prototype.indexOf=function(u,f,m){return St(this,u,f,m,!0)},a.prototype.lastIndexOf=function(u,f,m){return St(this,u,f,m,!1)};function Bn(l,u,f,m){f=Number(f)||0;const b=l.length-f;m?(m=Number(m),m>b&&(m=b)):m=b;const y=u.length;m>y/2&&(m=y/2);let h;for(h=0;h<m;++h){const S=parseInt(u.substr(h*2,2),16);if(bi(S))return h;l[f+h]=S}return h}function Ar(l,u,f,m){return Yn(Mr(u,l.length-f),l,f,m)}function Lo(l,u,f,m){return Yn(io(u),l,f,m)}function Ho(l,u,f,m){return Yn(gi(u),l,f,m)}function qo(l,u,f,m){return Yn(oo(u,l.length-f),l,f,m)}a.prototype.write=function(u,f,m,b){if(f===void 0)b="utf8",m=this.length,f=0;else if(m===void 0&&typeof f=="string")b=f,m=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(m)?(m=m>>>0,b===void 0&&(b="utf8")):(b=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const y=this.length-f;if((m===void 0||m>y)&&(m=y),u.length>0&&(m<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let h=!1;for(;;)switch(b){case"hex":return Bn(this,u,f,m);case"utf8":case"utf-8":return Ar(this,u,f,m);case"ascii":case"latin1":case"binary":return Lo(this,u,f,m);case"base64":return Ho(this,u,f,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qo(this,u,f,m);default:if(h)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),h=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zo(l,u,f){return u===0&&f===l.length?e.fromByteArray(l):e.fromByteArray(l.slice(u,f))}function Xi(l,u,f){f=Math.min(l.length,f);const m=[];let b=u;for(;b<f;){const y=l[b];let h=null,S=y>239?4:y>223?3:y>191?2:1;if(b+S<=f){let T,M,G,H;switch(S){case 1:y<128&&(h=y);break;case 2:T=l[b+1],(T&192)===128&&(H=(y&31)<<6|T&63,H>127&&(h=H));break;case 3:T=l[b+1],M=l[b+2],(T&192)===128&&(M&192)===128&&(H=(y&15)<<12|(T&63)<<6|M&63,H>2047&&(H<55296||H>57343)&&(h=H));break;case 4:T=l[b+1],M=l[b+2],G=l[b+3],(T&192)===128&&(M&192)===128&&(G&192)===128&&(H=(y&15)<<18|(T&63)<<12|(M&63)<<6|G&63,H>65535&&H<1114112&&(h=H))}}h===null?(h=65533,S=1):h>65535&&(h-=65536,m.push(h>>>10&1023|55296),h=56320|h&1023),m.push(h),b+=S}return yi(m)}const li=4096;function yi(l){const u=l.length;if(u<=li)return String.fromCharCode.apply(String,l);let f="",m=0;for(;m<u;)f+=String.fromCharCode.apply(String,l.slice(m,m+=li));return f}function Yi(l,u,f){let m="";f=Math.min(l.length,f);for(let b=u;b<f;++b)m+=String.fromCharCode(l[b]&127);return m}function Qi(l,u,f){let m="";f=Math.min(l.length,f);for(let b=u;b<f;++b)m+=String.fromCharCode(l[b]);return m}function Zi(l,u,f){const m=l.length;(!u||u<0)&&(u=0),(!f||f<0||f>m)&&(f=m);let b="";for(let y=u;y<f;++y)b+=Wo[l[y]];return b}function eo(l,u,f){const m=l.slice(u,f);let b="";for(let y=0;y<m.length-1;y+=2)b+=String.fromCharCode(m[y]+m[y+1]*256);return b}a.prototype.slice=function(u,f){const m=this.length;u=~~u,f=f===void 0?m:~~f,u<0?(u+=m,u<0&&(u=0)):u>m&&(u=m),f<0?(f+=m,f<0&&(f=0)):f>m&&(f=m),f<u&&(f=u);const b=this.subarray(u,f);return Object.setPrototypeOf(b,a.prototype),b};function Ue(l,u,f){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+u>f)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=this[u],y=1,h=0;for(;++h<f&&(y*=256);)b+=this[u+h]*y;return b},a.prototype.readUintBE=a.prototype.readUIntBE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=this[u+--f],y=1;for(;f>0&&(y*=256);)b+=this[u+--f]*y;return b},a.prototype.readUint8=a.prototype.readUInt8=function(u,f){return u=u>>>0,f||Ue(u,1,this.length),this[u]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||Ue(u,2,this.length),this[u]|this[u+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||Ue(u,2,this.length),this[u]<<8|this[u+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},a.prototype.readBigUInt64LE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,y=this[++u]+this[++u]*2**8+this[++u]*2**16+m*2**24;return BigInt(b)+(BigInt(y)<<BigInt(32))}),a.prototype.readBigUInt64BE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],y=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+m;return(BigInt(b)<<BigInt(32))+BigInt(y)}),a.prototype.readIntLE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=this[u],y=1,h=0;for(;++h<f&&(y*=256);)b+=this[u+h]*y;return y*=128,b>=y&&(b-=Math.pow(2,8*f)),b},a.prototype.readIntBE=function(u,f,m){u=u>>>0,f=f>>>0,m||Ue(u,f,this.length);let b=f,y=1,h=this[u+--b];for(;b>0&&(y*=256);)h+=this[u+--b]*y;return y*=128,h>=y&&(h-=Math.pow(2,8*f)),h},a.prototype.readInt8=function(u,f){return u=u>>>0,f||Ue(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},a.prototype.readInt16LE=function(u,f){u=u>>>0,f||Ue(u,2,this.length);const m=this[u]|this[u+1]<<8;return m&32768?m|4294901760:m},a.prototype.readInt16BE=function(u,f){u=u>>>0,f||Ue(u,2,this.length);const m=this[u+1]|this[u]<<8;return m&32768?m|4294901760:m},a.prototype.readInt32LE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},a.prototype.readInt32BE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},a.prototype.readBigInt64LE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(m<<24);return(BigInt(b)<<BigInt(32))+BigInt(f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),a.prototype.readBigInt64BE=sn(function(u){u=u>>>0,qt(u,"offset");const f=this[u],m=this[u+7];(f===void 0||m===void 0)&&Ln(u,this.length-8);const b=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(b)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+m)}),a.prototype.readFloatLE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),t.read(this,u,!0,23,4)},a.prototype.readFloatBE=function(u,f){return u=u>>>0,f||Ue(u,4,this.length),t.read(this,u,!1,23,4)},a.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||Ue(u,8,this.length),t.read(this,u,!0,52,8)},a.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||Ue(u,8,this.length),t.read(this,u,!1,52,8)};function qe(l,u,f,m,b,y){if(!a.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>b||u<y)throw new RangeError('"value" argument is out of bounds');if(f+m>l.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(u,f,m,b){if(u=+u,f=f>>>0,m=m>>>0,!b){const S=Math.pow(2,8*m)-1;qe(this,u,f,m,S,0)}let y=1,h=0;for(this[f]=u&255;++h<m&&(y*=256);)this[f+h]=u/y&255;return f+m},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(u,f,m,b){if(u=+u,f=f>>>0,m=m>>>0,!b){const S=Math.pow(2,8*m)-1;qe(this,u,f,m,S,0)}let y=m-1,h=1;for(this[f+y]=u&255;--y>=0&&(h*=256);)this[f+y]=u/h&255;return f+m},a.prototype.writeUint8=a.prototype.writeUInt8=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,1,255,0),this[f]=u&255,f+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function D(l,u,f,m,b){mi(u,m,b,l,f,7);let y=Number(u&BigInt(4294967295));l[f++]=y,y=y>>8,l[f++]=y,y=y>>8,l[f++]=y,y=y>>8,l[f++]=y;let h=Number(u>>BigInt(32)&BigInt(4294967295));return l[f++]=h,h=h>>8,l[f++]=h,h=h>>8,l[f++]=h,h=h>>8,l[f++]=h,f}function On(l,u,f,m,b){mi(u,m,b,l,f,7);let y=Number(u&BigInt(4294967295));l[f+7]=y,y=y>>8,l[f+6]=y,y=y>>8,l[f+5]=y,y=y>>8,l[f+4]=y;let h=Number(u>>BigInt(32)&BigInt(4294967295));return l[f+3]=h,h=h>>8,l[f+2]=h,h=h>>8,l[f+1]=h,h=h>>8,l[f]=h,f+8}a.prototype.writeBigUInt64LE=sn(function(u,f=0){return D(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=sn(function(u,f=0){return On(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(u,f,m,b){if(u=+u,f=f>>>0,!b){const T=Math.pow(2,8*m-1);qe(this,u,f,m,T-1,-T)}let y=0,h=1,S=0;for(this[f]=u&255;++y<m&&(h*=256);)u<0&&S===0&&this[f+y-1]!==0&&(S=1),this[f+y]=(u/h>>0)-S&255;return f+m},a.prototype.writeIntBE=function(u,f,m,b){if(u=+u,f=f>>>0,!b){const T=Math.pow(2,8*m-1);qe(this,u,f,m,T-1,-T)}let y=m-1,h=1,S=0;for(this[f+y]=u&255;--y>=0&&(h*=256);)u<0&&S===0&&this[f+y+1]!==0&&(S=1),this[f+y]=(u/h>>0)-S&255;return f+m},a.prototype.writeInt8=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},a.prototype.writeInt16LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},a.prototype.writeInt16BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},a.prototype.writeInt32LE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},a.prototype.writeInt32BE=function(u,f,m){return u=+u,f=f>>>0,m||qe(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},a.prototype.writeBigInt64LE=sn(function(u,f=0){return D(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=sn(function(u,f=0){return On(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function to(l,u,f,m,b,y){if(f+m>l.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function Ne(l,u,f,m,b){return u=+u,f=f>>>0,b||to(l,u,f,4),t.write(l,u,f,m,23,4),f+4}a.prototype.writeFloatLE=function(u,f,m){return Ne(this,u,f,!0,m)},a.prototype.writeFloatBE=function(u,f,m){return Ne(this,u,f,!1,m)};function no(l,u,f,m,b){return u=+u,f=f>>>0,b||to(l,u,f,8),t.write(l,u,f,m,52,8),f+8}a.prototype.writeDoubleLE=function(u,f,m){return no(this,u,f,!0,m)},a.prototype.writeDoubleBE=function(u,f,m){return no(this,u,f,!1,m)},a.prototype.copy=function(u,f,m,b){if(!a.isBuffer(u))throw new TypeError("argument should be a Buffer");if(m||(m=0),!b&&b!==0&&(b=this.length),f>=u.length&&(f=u.length),f||(f=0),b>0&&b<m&&(b=m),b===m||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),u.length-f<b-m&&(b=u.length-f+m);const y=b-m;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,m,b):Uint8Array.prototype.set.call(u,this.subarray(m,b),f),y},a.prototype.fill=function(u,f,m,b){if(typeof u=="string"){if(typeof f=="string"?(b=f,f=0,m=this.length):typeof m=="string"&&(b=m,m=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!a.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(u.length===1){const h=u.charCodeAt(0);(b==="utf8"&&h<128||b==="latin1")&&(u=h)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(f<0||this.length<f||this.length<m)throw new RangeError("Out of range index");if(m<=f)return this;f=f>>>0,m=m===void 0?this.length:m>>>0,u||(u=0);let y;if(typeof u=="number")for(y=f;y<m;++y)this[y]=u;else{const h=a.isBuffer(u)?u:a.from(u,b),S=h.length;if(S===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(y=0;y<m-f;++y)this[y+f]=h[y%S]}return this};const Dn={};function Ir(l,u,f){Dn[l]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}Ir("ERR_BUFFER_OUT_OF_BOUNDS",function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ir("ERR_INVALID_ARG_TYPE",function(l,u){return`The "${l}" argument must be of type number. Received type ${typeof u}`},TypeError),Ir("ERR_OUT_OF_RANGE",function(l,u,f){let m=`The value of "${l}" is out of range.`,b=f;return Number.isInteger(f)&&Math.abs(f)>2**32?b=ro(String(f)):typeof f=="bigint"&&(b=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(b=ro(b)),b+="n"),m+=` It must be ${u}. Received ${b}`,m},RangeError);function ro(l){let u="",f=l.length;const m=l[0]==="-"?1:0;for(;f>=m+4;f-=3)u=`_${l.slice(f-3,f)}${u}`;return`${l.slice(0,f)}${u}`}function Bt(l,u,f){qt(u,"offset"),(l[u]===void 0||l[u+f]===void 0)&&Ln(u,l.length-(f+1))}function mi(l,u,f,m,b,y){if(l>f||l<u){const h=typeof u=="bigint"?"n":"";let S;throw u===0||u===BigInt(0)?S=`>= 0${h} and < 2${h} ** ${(y+1)*8}${h}`:S=`>= -(2${h} ** ${(y+1)*8-1}${h}) and < 2 ** ${(y+1)*8-1}${h}`,new Dn.ERR_OUT_OF_RANGE("value",S,l)}Bt(m,b,y)}function qt(l,u){if(typeof l!="number")throw new Dn.ERR_INVALID_ARG_TYPE(u,"number",l)}function Ln(l,u,f){throw Math.floor(l)!==l?(qt(l,f),new Dn.ERR_OUT_OF_RANGE("offset","an integer",l)):u<0?new Dn.ERR_BUFFER_OUT_OF_BOUNDS:new Dn.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,l)}const Go=/[^+/0-9A-Za-z-_]/g;function hi(l){if(l=l.split("=")[0],l=l.trim().replace(Go,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function Mr(l,u){u=u||1/0;let f;const m=l.length;let b=null;const y=[];for(let h=0;h<m;++h){if(f=l.charCodeAt(h),f>55295&&f<57344){if(!b){if(f>56319){(u-=3)>-1&&y.push(239,191,189);continue}else if(h+1===m){(u-=3)>-1&&y.push(239,191,189);continue}b=f;continue}if(f<56320){(u-=3)>-1&&y.push(239,191,189),b=f;continue}f=(b-55296<<10|f-56320)+65536}else b&&(u-=3)>-1&&y.push(239,191,189);if(b=null,f<128){if((u-=1)<0)break;y.push(f)}else if(f<2048){if((u-=2)<0)break;y.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;y.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;y.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return y}function io(l){const u=[];for(let f=0;f<l.length;++f)u.push(l.charCodeAt(f)&255);return u}function oo(l,u){let f,m,b;const y=[];for(let h=0;h<l.length&&!((u-=2)<0);++h)f=l.charCodeAt(h),m=f>>8,b=f%256,y.push(b),y.push(m);return y}function gi(l){return e.toByteArray(hi(l))}function Yn(l,u,f,m){let b;for(b=0;b<m&&!(b+f>=u.length||b>=l.length);++b)u[b+f]=l[b];return b}function bt(l,u){return l instanceof u||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===u.name}function bi(l){return l!==l}const Wo=function(){const l="0123456789abcdef",u=new Array(256);for(let f=0;f<16;++f){const m=f*16;for(let b=0;b<16;++b)u[m+b]=l[f]+l[b]}return u}();function sn(l){return typeof BigInt>"u"?Vo:l}function Vo(){throw new Error("BigInt not supported")}}(Ro)),Ro}var rd=gp(),bp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.JSONCodec=class extends d.Codec{constructor(){super(...arguments);c(this,"encoder",new TextEncoder);c(this,"decoder",new TextDecoder)}decode(t,n){const o=this.decoder.decode(t);if(!n||!n.constructor)return JSON.parse(o);const i=JSON.parse(o);if(typeof i!="object"&&typeof i!="function"||i==null)return i;switch(n.name){case"Object":return i}return this.decorateAny(n,i)}decorateAny(t,n){const o=t instanceof Sn,i=o?t.raw:t;if(!i)return n;switch(i){case Map:if(n==null)return new Map;if(!o||t.parameters.length<1)return new Map(Object.entries(n));const s=new Map;return Object.keys(n).forEach(_=>{s.set(this.decorateAny(t.parameters[0],_),this.decorateAny(t.parameters[1],n[_]))}),s;case Array:return n==null?[]:!o||t.parameters.length<1?n:n.map(_=>this.decorateAny(t.parameters[0],_));case Fe:if(n==null)return null;const a=new i;if(!o||t.parameters.length<1)return Object.assign(a,n);Object.assign(a,n);const P=[];for(let _ of a.data||[])P.push(this.decorateAny(t.parameters[0],_));return a.data=P,a;case String:case Number:case Boolean:case Object:return n;case Date:return n==null||n<1?null:new Date(n);case Uint8Array:return n==null?null:n instanceof Uint8Array?n:rd.Buffer.from(n,"base64");default:if(n==null)return null;const v=new i;return Object.keys(v).forEach((_,E)=>{const $=Oe.metadata(Rn,i,_);if(!$){Reflect.set(v,_,n[_]);return}const N=n[_]!=null?n[_]:n[$.name];Reflect.set(v,_,this.decorateAny($.kind,N))}),v}}encode(t){return this.encoder.encode(JSON.stringify(t,(n,o)=>{if(o==null||Array.isArray(o))return o;if(!Oe.annotated(o.constructor))return this.encodeAny(o);const i=new Map;for(let s in o){const a=Oe.metadata(Rn,o.constructor,s);a&&a.name&&a.name.length>0&&a.name!=s&&i.set(s,a.name),((a==null?void 0:a.kind)==Uint8Array||(a==null?void 0:a.kind)==Date||(a==null?void 0:a.kind)==Map)&&Reflect.set(o,s,this.encodeAny(Reflect.get(o,s)))}return i.size<1?this.encodeAny(o):(i.forEach((s,a)=>{const P=Reflect.get(o,a);Reflect.deleteProperty(o,a),Reflect.set(o,s,P)}),this.encodeAny(o))}))}encodeAny(t){return t instanceof Uint8Array?rd.Buffer.from(t).toString("base64"):t instanceof Date?t.getTime():t instanceof Map?Object.fromEntries(t):t}uint8ify(t){return this.encoder.encode(t)}stringify(t){return this.decoder.decode(t)}},d.JSONCodec=bp([L(d.Codec.JSON)],d.JSONCodec);var Vn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},si=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ii;d.Compiler=class{},d.Compiler=Vn([L("mesh")],d.Compiler);function _p(r){return{}}d.TSCompiler=(xn=class extends d.Compiler{compile(e,t){}intype(e){return Ii.parameters.computeIfy(e,t=>{var n;class o{constructor(){c(this,"attachments",new Map)}getAttachments(){return this.attachments}map(){return Object.assign(new Map,this)}setAttachments(s){(s||{}).forEach((a,P)=>this.attachments.set(P,a))}getArguments(){return t.getParameters().map(s=>{var a;return(a=Object.getOwnPropertyDescriptor(this,s.name))==null?void 0:a.value})}setArguments(s){const a=Le.load(d.Codec).getDefault();t.getParameters().forEach((P,v)=>{if(s&&s.length>P.index&&!(s[P.index]instanceof Ri)){const _=s[P.index];if(_==null)return;if(_ instanceof P.kind&&!(P.kind instanceof Sn)){Reflect.set(this,P.name,_);return}switch(P.kind){case Map:case Array:case String:case Number:case Boolean:case Object:case Date:case Uint8Array:Reflect.set(this,P.name,_);break;default:const E=a.encode(_),$=a.decode(E,P.kind);Reflect.set(this,P.name,$)}}})}}return Vn([p(-1,"attachments",Map),si("design:type",typeof(n=typeof Map<"u"&&Map)=="function"?n:Object)],o.prototype,"attachments",void 0),o})}retype(e){return Ii.returns.computeIfy(e,t=>{class n{constructor(){c(this,"code","");c(this,"message","");c(this,"content");c(this,"cause")}getCause(){return this.cause}getCode(){return this.code}getContent(){return this.content}getMessage(){return this.message}setCause(i){this.cause=i}setCode(i){this.code=i}setContent(i){this.content=i}setMessage(i){this.message=i}}return Vn([p(0),si("design:type",String)],n.prototype,"code",void 0),Vn([p(5),si("design:type",String)],n.prototype,"message",void 0),Vn([p(10,"content",t.getReturnType()),si("design:type",Object)],n.prototype,"content",void 0),Vn([p(15,"cause",ut),si("design:type",Object)],n.prototype,"cause",void 0),n})}},Ii=xn,c(xn,"parameters",new B),c(xn,"returns",new B),xn),d.TSCompiler=Ii=Vn([L("mesh")],d.TSCompiler);var Op=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Consumer=(Nr=class{},c(Nr,"HTTP","http"),c(Nr,"GRPC","grpc"),c(Nr,"TCP","tcp"),c(Nr,"MQTT","mqtt"),Nr),d.Consumer=Op([L(d.Consumer.HTTP)],d.Consumer);class Mi{constructor(e){c(this,"servers",new Ye);c(this,"availableAddrs",new Ye);for(let t of(e||"").split(","))t&&t.trim().length>0&&!this.availableAddrs.includes(t)&&(this.servers.push(new id(!0,t)),this.availableAddrs.push(t))}any(){const e=this.availableAddrs;return!e||e.length<1?"":e[Math.floor(Math.random()*e.length)]}}class id{constructor(e,t){c(this,"available");c(this,"address");this.available=e,this.address=t}}class Sp{constructor(e){c(this,"value");c(this,"fn");this.fn=e}get(){return this.value||(this.value=this.fn()),this.value}}const Ki=class Ki{static substring(e,t,n){return!e||e.length>t+n?"":e.substring(t,t+n)}static repeat(e,t){const n=[];for(let o=0;o<t;++o)n.push(e);return n.join("")}static anyone(...e){for(let t of e)if(t&&t.length>0)return t;return""}static traceId(){return""}static spanId(e,t){return""}static newEntity(e){if(!e)return new Re;const t=Le.load(d.Codec),n=new Re;return n.codec=t.defaultName(),n.schema="",n.buffer=t.getDefault().encode(e),n}static newCacheEntity(e,t,n){const o=Ki.newEntity(t),i=new tt;return i.version="1.0.0",i.entity=o,i.timestamp=new Date().getTime(),i.duration=n,i.key=e,i}static readObject(e){return!e.buffer||e.buffer.length<1?null:Le.load(d.Codec).get(e.codec||d.Codec.JSON).decode(this.buffer)}static compareVersion(e,t){if(!e)return-1;if(!t)return 1;const n=e.split("."),o=t.split(".");for(let i=0;i<n.length;i++){if(o.length<=i)return 0;if(o[i]=="*")continue;const s=n[i].localeCompare(o[i]);if(s!=0)return s}return 0}static ofError(e){return new ut}static ofCause(e,t,n){throw new Error}static hexString(e){const t=new TextEncoder().encode(e),n="0123456789abcdef";let o="";for(const i of t){const s=i;o+=n[s>>4],o+=n[s&15]}return o}};c(Ki,"MESH_ADDRESS",new Sp(()=>typeof process<"u"&&process.env.MESH_ADDRESS?new Mi(process.env.MESH_ADDRESS):typeof window<"u"?new Mi(window.location.origin):new Mi("https://127.0.0.1")));let se=Ki;var Rp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class ci extends Ri{constructor(){super(...arguments);c(this,"traceId","");c(this,"spanId","");c(this,"timestamp",0);c(this,"runMode",0);c(this,"urn","");c(this,"consumer",new Tn);c(this,"calls",0);c(this,"attachments",new Map);c(this,"attributes",new Map);c(this,"principals",new es)}static create(){const t=new ci;return t.traceId=se.traceId(),t.spanId=se.spanId("",0),t.timestamp=new Date().getTime(),t.runMode=0,t.urn="",t.consumer=new Tn,t}getAttachments(){return this.attachments}getAttribute(t){return this.attributes.get(t.name)}getAttributes(){return this.attributes}getConsumer(t){return this.consumer}getPrincipals(){return this.principals}getProvider(t){return new Tn}getRunMode(){return this.runMode}getSpanId(){return this.spanId}getTimestamp(){return this.timestamp}getTraceId(){return this.traceId}getUrn(){return this.urn}setAttribute(t,n){this.attributes.set(t.name,n)}resume(){this.calls++;const t=new ci;return t.traceId=this.getTraceId(),t.spanId=se.spanId(this.getSpanId(),this.calls),t.timestamp=this.getTimestamp(),t.runMode=this.getRunMode(),t.urn=this.getUrn(),t.consumer=this.getConsumer(this),this.getAttachments()&&this.getAttachments().forEach((n,o)=>t.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>t.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>t.principals.push(n)),t}rewriteContext(t){t.getTraceId()&&(this.traceId=t.getTraceId()),t.getSpanId()&&(this.spanId=t.getSpanId()),t.getTimestamp()&&t.getTimestamp()>0&&(this.timestamp=t.getTimestamp()),t.getRunMode()&&t.getRunMode()>0&&(this.runMode=t.getRunMode()),t.getUrn()&&(this.urn=t.getUrn()),t.getConsumer(this)&&(this.consumer=t.getConsumer(this)),this.getAttachments()&&this.getAttachments().forEach((n,o)=>this.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>this.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>this.principals.push(n))}rewriteURN(t){this.urn=t}}d.MeshContextProvider=class extends d.ContextProvider{context(){return ci.create()}},d.MeshContextProvider=Rp([L("mesh")],d.MeshContextProvider);var vp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Eden=class{},d.Eden=vp([L("mesh")],d.Eden);class nn{}c(nn,"REMOTE",new kr("mesh.mpc.address")),c(nn,"REMOTE_NAME",new kr("mesh.mpc.remote.name")),c(nn,"INVOCATION",new kr("mesh.invocation")),c(nn,"UNAME",new kr("mesh.mpc.uname"));class gn{constructor(e,t){c(this,"code");c(this,"name");this.code=e,this.name=t}}const de=class de{static ofProto(e){for(let t of de.PROTO)if(t.code==e)return t;return de.HTTP}static ofCodec(e){for(let t of de.CODEC)if(t.code==e)return t;return de.JSON}static ofName(e){for(let t of de.PROTO)if(t.name==e)return t;for(let t of de.CODEC)if(t.name==e)return t;return de.HTTP}};c(de,"HTTP",new gn("00",d.Consumer.HTTP)),c(de,"GRPC",new gn("01",d.Consumer.GRPC)),c(de,"MQTT",new gn("02",d.Consumer.MQTT)),c(de,"TCP",new gn("03",d.Consumer.TCP)),c(de,"JSON",new gn("00",d.Codec.JSON)),c(de,"PROTOBUF",new gn("01",d.Codec.PROTOBUF)),c(de,"XML",new gn("02",d.Codec.XML)),c(de,"THRIFT",new gn("03",d.Codec.THRIFT)),c(de,"YAML",new gn("04",d.Codec.YAML)),c(de,"PROTO",[de.HTTP,de.GRPC,de.MQTT,de.TCP]),c(de,"CODEC",[de.JSON,de.PROTOBUF,de.XML,de.THRIFT,de.YAML]);let rn=de;class od{constructor(e,t){c(this,"inspector");c(this,"reference");c(this,"service");this.reference=new Kt,this.reference.urn=t.toString(),this.reference.namespace="",this.reference.name=t.name,this.reference.version=t.flag.version,this.reference.proto=rn.ofProto(t.flag.proto).name,this.reference.codec=rn.ofCodec(t.flag.codec).name,this.reference.flags=0,this.reference.timeout=parseInt(vi.MESH_TIMEOUT.get(e))||1e4,this.reference.retries=3,this.reference.mdc=t.mdc,this.reference.zone=t.flag.zone,this.reference.cluster=t.flag.cluster,this.reference.cell=t.flag.cell,this.reference.group=t.flag.group,this.reference.address=t.flag.address,this.service=new dt,this.inspector=new sd(t)}inflect(e){return new vo}inspect(e){return this.inspector}intype(e){return vo}reflect(e){return new Po}retype(e){return Po}schema(e){return this.reference}}class sd{constructor(e){c(this,"urn");this.urn=e}getType(){return Object}getAnnotation(e){}getName(){return this.urn.name}getParameters(){return[]}getReturnType(){return new Sn(Map)}getExecutable(){return()=>{}}getSymbol(){return this.urn.name}invoke(e,t){}}class vo extends Map{map(){return this}getArguments(){const e=[];return super.forEach((t,n)=>{n!="attachments"&&e.push(t)}),e}getAttachments(){var o;const e=((o=Object.getOwnPropertyDescriptor(this,"attachments"))==null?void 0:o.value)||new Map;if(e instanceof Map)return e;const t=Le.load(d.Codec).get(d.Codec.JSON),n=t.decode(t.encode(e),Map);return this.setAttachments(n),n}setArguments(e){}setAttachments(e){Object.assign(this,{attachments:ut})}}class Po extends Map{getCause(){var n;const e=(n=Object.getOwnPropertyDescriptor(this,"cause"))==null?void 0:n.value;if(!e||e instanceof ut)return e;const t=Le.load(d.Codec).get(d.Codec.JSON);return t.decode(t.encode(e),ut)}getCode(){var e;return(e=Object.getOwnPropertyDescriptor(this,"code"))==null?void 0:e.value}getContent(){var e;return(e=Object.getOwnPropertyDescriptor(this,"content"))==null?void 0:e.value}getMessage(){var e;return((e=Object.getOwnPropertyDescriptor(this,"message"))==null?void 0:e.value)||""}setCause(e){Object.assign(this,{cause:e})}setCode(e){Object.assign(this,{code:e})}setContent(e){Object.assign(this,{content:e})}setMessage(e){Object.assign(this,{message:e})}}var Pp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const cd="PROVIDER",Ci="CONSUMER";d.Filter=class{},d.Filter=Pp([L("*")],d.Filter);function wo(r,e){const t=Le.load(d.Filter).list().filter(n=>{const o=Oe.metadata(Dt,n==null?void 0:n.constructor,n==null?void 0:n.constructor);return!o||o.pattern==""||(o==null?void 0:o.pattern)==e}).sort((n,o)=>{var a,P;const i=((a=Oe.metadata(Dt,n==null?void 0:n.constructor,n==null?void 0:n.constructor))==null?void 0:a.priority)||0,s=((P=Oe.metadata(Dt,o==null?void 0:o.constructor,o==null?void 0:o.constructor))==null?void 0:P.priority)||0;return i==s?0:i<s?-1:1});return wp(r,t)}function wp(r,e){let t=r;for(let n=e.length-1;n>=0;n--){let o=e[n],i=t;t=new class{run(s,a){return o.invoke(s,i,a)}}}return t}var jp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class Ep{constructor(){c(this,"beforeHooks",new B);c(this,"successHooks",new B);c(this,"failureHooks",new B)}}const jr=()=>{const r=Qn();return r.Mesh??(r.Mesh=new Ep),r.Mesh};class Tp{onBefore(e,t){jr().beforeHooks.set(e,t)}onSuccess(e,t){jr().successHooks.set(e,t)}onFailure(e,t){jr().failureHooks.set(e,t)}before(){return jr().beforeHooks}success(){return jr().successHooks}failure(){return jr().failureHooks}}const ai=new Tp;d.HookFilter=class extends d.Filter{async invoke(e,t,n){try{ai.before().forEach((i,s)=>i(e,n));const o=await t.run(e,n);return ai.success().forEach((i,s)=>i(e,n,o)),o}catch(o){throw Zo(o)?ai.failure().forEach((i,s)=>i(e,n,o)):ai.failure().forEach((i,s)=>i(e,n,g.SYSTEM_ERROR)),o}}},d.HookFilter=jp([L("hook",Ci)],d.HookFilter);class ad{constructor(e,t,n,o){c(this,"proxy");c(this,"inspector");c(this,"parameters");c(this,"execution");this.proxy=e,this.inspector=t,this.parameters=n,this.execution=o}getArguments(e){return this.parameters.getArguments()}getAttachments(e){return this.parameters.getAttachments()}getExecution(e){return this.execution}getInspector(e){return this.inspector}getParameters(e){return this.parameters}getProxy(e){return this.proxy}isAsync(e){return!1}}const _n=class _n{constructor(){c(this,"domain","");c(this,"mdc","");c(this,"flag",new $n);c(this,"name","")}static from(e){const t=new _n;if(!e)return console.log(`Unresolved urn ${e}`),t;const n=t.asArray(e);return n.length<5?(console.log(`Unresolved urn ${e}`),t):(n.reverse(),t.domain=`${n.splice(1,1).join("")}.${n.splice(0,1).join("")}`,t.mdc=n.splice(0,1).join(""),t.flag=$n.from(n.splice(0,1).join("")),t.name=n.join("."),t)}static urn(e){const t=new _n;return t.mdc=this.LocalMDC,t.flag=$n.from("0001000000000000000000000000000000000"),t.name=e,t.domain=this.MESH_DOMAIN,t.toString()}toString(){const e=[],t=this.asArray(this.name);return t.reverse(),t.filter(n=>n).forEach(n=>e.push(n)),e.push(this.flag.toString()),e.push(this.mdc),e.push(se.anyone(this.domain,_n.MESH_DOMAIN)),e.join(".")}asArray(e){const t=e.split("."),n=[],o=[];for(let i of t){if(i.startsWith("${")){o.push(i),o.push(".");continue}if(i.endsWith("}")){o.push(i),n.push(o.join("")),o.splice(0,o.length);continue}n.push(i)}return n}matchName(e){return e?e.endsWith(".*")&&e.startsWith(e.replace(".*","")):!1}resetFlag(e,t){return this.flag.proto=e,this.flag.codec=t,this}};c(_n,"CN","firmer"),c(_n,"MESH_DOMAIN",_n.CN+".tech"),c(_n,"LocalMDC","XX00000000000000");let bn=_n;class $n{constructor(){c(this,"v","00");c(this,"proto","00");c(this,"codec","00");c(this,"version","000000");c(this,"zone","00");c(this,"cluster","00");c(this,"cell","00");c(this,"group","00");c(this,"address","000000000000");c(this,"port","00000")}static from(e){if(!e)return new $n;const t=new $n;return t.v=se.substring(e,0,2),t.proto=se.substring(e,2,2),t.codec=se.substring(e,4,2),t.version=this.reduce(se.substring(e,6,6),2),t.zone=se.substring(e,12,2),t.cluster=se.substring(e,14,2),t.cell=se.substring(e,16,2),t.group=se.substring(e,18,2),t.address=this.reduce(se.substring(e,20,12),3),t.port=this.reduce(se.substring(e,32,5),5),t}toString(){const e=this.padding(se.anyone(this.v,""),2),t=this.padding(se.anyone(this.proto,""),2),n=this.padding(se.anyone(this.codec,""),2),o=this.paddingChain(se.anyone(this.version,""),2,3),i=this.padding(se.anyone(this.zone,""),2),s=this.padding(se.anyone(this.cluster,""),2),a=this.padding(se.anyone(this.cell,""),2),P=this.padding(se.anyone(this.group,""),2),v=this.paddingChain(se.anyone(this.address,""),3,4),_=this.padding(se.anyone(this.port,""),5);return`${e}${t}${n}${o}${i}${s}${a}${P}${v}${_}`}padding(e,t){const n=e.replace(".","");return n.length==t?n:n.length<t?se.repeat("0",t-e.length)+n:e.substring(0,t)}paddingChain(e,t,n){const o=e.split("[.*]"),i=o.map(s=>parseInt(s)?s:"");if(i.length==n)return i.map(s=>this.padding(s,t)).join("");if(i.length<n){for(let s=0;s<n-o.length;s++)i.push("");return i.map(s=>this.padding(s,t)).join("")}return i.slice(0,n).map(s=>this.padding(s,t)).join("")}static reduce(e,t){if(!e)return e;const n=[];for(let o=0;o<e.length;o+=t){let i=!0;for(let s=o;s<o+t;s++)e.charAt(s)!="0"&&(i=!1),i||n.push(e.charAt(s));i&&n.push("0"),n.push(".")}return n.slice(0,n.length-1).join("")}}class ud{constructor(e){c(this,"macro");c(this,"invoker");this.macro=e,this.invoker=wo(this,Ci)}context(e){if(!e||e.length<1)return O();for(let t of e)if(t instanceof Ri)return t;return O()}invoke(e,t,n){return new Promise(async(o,i)=>{try{const s=this.context(n),a=this.referExecution(s,t),P=this.rewriteURN(s,a);s.rewriteURN(P),s.setAttribute(nn.REMOTE,this.rewriteAddress(P));const v=a.inflect(s);v.setArguments(n),v.setAttachments(new Map);const _=new ad(this,t,v,a);s.setAttribute(nn.INVOCATION,_),o(await this.invoker.run(s,_))}catch(s){i(Fr(s))}})}async run(e,t){const n=this.referExecution(e,t.getInspector(e)),o=Le.load(d.Consumer),i=o.getDefault(),s=se.anyone(e.getAttribute(nn.REMOTE),se.MESH_ADDRESS.get().any()),a=n.schema(e).codec||rn.JSON.name,P=Le.load(d.Codec),v=P.get(a),_=v.encode(t.getParameters(e)),E=rn.ofName(o.defaultName()).code,$=rn.ofName(P.defaultName()).code,N=bn.from(e.getUrn()).resetFlag(E,$).toString(),j=await i.consume(e,s,N,n,_);return await this.deserialize(e,n,v,j)}deserialize(e,t,n,o){return new Promise((i,s)=>{try{const a=t.retype(e),P=n.decode(o,a);if(P.getCause()){s(Fr(P.getCause()));return}if(g.SUCCESS.getCode()!=P.getCode()){s(P);return}i(P.getContent())}catch(a){s(Fr(a))}})}referExecution(e,t){const o=Le.load(d.Eden).getDefault().refer(e,t.getAnnotation(Ae),t.getType(),t);if(o)return o;throw new Error(`Method ${t.getName()} cant be compatible`)}rewriteURN(e,t){var a;const n=(a=e.getPrincipals().peek())==null?void 0:a.id,o=e.getAttribute(nn.UNAME),i=e.getAttribute(nn.REMOTE_NAME);if(!n&&!o&&!i)return t.schema(e).urn;const s=bn.from(t.schema(e).urn);return n&&(s.mdc=n),o!=""&&(s.name=o),i!=""&&(s.name=s.name.replace("${mesh.name}",i)),s.toString()}rewriteAddress(e){return se.MESH_ADDRESS.get().any()}}var Np=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},jo;d.ServiceProxy=jo=class extends d.MethodProxy{proxy(e){return jo.proxy(e)}static proxy(e){return this.doProxy(e,R(""))}static doProxy(e,t){return Ur.newProxyInstance(e,new ud(t))}},d.ServiceProxy=jo=Np([L("mesh")],d.ServiceProxy);class Ap{constructor(e){c(this,"service");this.service=e}run(e,t){return new Promise((n,o)=>{try{const i=[e,...t.getArguments(e)],s=t.getInspector(e).invoke(this.service,i);if(s instanceof Promise){s.then(a=>n(a)).catch(a=>o(a));return}n(s)}catch(i){o(i)}})}}class fd{constructor(e){c(this,"invoker");this.invoker=wo(new Ap(e),cd)}run(e,t){return this.invoker.run(e,t)}}var Ip=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class Mp{constructor(e,t,n){c(this,"making");c(this,"kind");c(this,"service");this.making=e,this.kind=t,this.service=n}}class Cp{constructor(e,t){c(this,"metadata");c(this,"reference");c(this,"proxy");this.metadata=e,this.reference=t,this.proxy=d.ServiceProxy.doProxy(t,e)}}class Up{constructor(e,t,n,o,i){c(this,"urn");c(this,"kind");c(this,"method");c(this,"target");c(this,"resource");c(this,"inspector");c(this,"invoker");c(this,"__intype");c(this,"__retype");this.urn=e,this.kind=t,this.method=n,this.target=o,this.resource=i,this.inspector=n,this.invoker=new fd(o),this.__intype=Le.load(d.Compiler).getDefault().intype(n),this.__retype=Le.load(d.Compiler).getDefault().retype(n)}inflect(e){return new this.__intype}inspect(e){return this.inspector}intype(e){return this.__intype}reflect(e){return new this.__retype}retype(e){return this.__retype}schema(e){return this.resource}}d.MeshEden=class extends d.Eden{constructor(){super(...arguments);c(this,"providers",new B);c(this,"consumers",new B);c(this,"indies",new B);c(this,"services",new B);c(this,"references",new B)}define(t,n,o){return this.makeConsumer(t,n,o).proxy}store(t,n,o){this.providers.set(n,new Mp(!1,n,o))}infer(t,n){const o=bn.from(n),i=this.makeServiceExecution(this.getEnviron(t)),s=i==null?void 0:i.get(o.name);if(s)return s;for(let a of i.entries())if(o.matchName(a[0]))return a[1];return new od(t,o)}refer(t,n,o,i){const s=this.makeConsumer(t,n,o),a=this.getEnviron(t),P=this.indies.computeIfy(o,v=>new B).computeIfy(n,v=>{const _=new B;return this.getMethods(t,o).forEach((E,$)=>E.forEach(N=>{const j=this.makeMethodAsReference(a,n,$,N),I=new Up(j.urn,o,N,s.proxy,j);this.references.set(j.urn,I),_.set(N,I)})),_}).get(i);if(P)return P;throw new Error(`Method ${i.getName()} cant be compatible`)}inferTypes(t){const n=[];for(let o of this.providers)n.push(o[1].kind);return n}referTypes(t){const n=[];for(let o of this.consumers.keys())n.push(o);return n}makeConsumer(t,n,o){return this.consumers.computeIfy(o,i=>new B).computeIfy(n,i=>new Cp(n,o))}makeMethodAsReference(t,n,o,i){var a,P,v,_,E,$,N,j,I,A,q,z,Y;const s=new Kt;return s.namespace=o.name,s.name=i.getName(),s.version=((a=i.getAnnotation(Ae))==null?void 0:a.version)||"",s.proto=((P=i.getAnnotation(Ae))==null?void 0:P.proto)||"",s.codec=((v=i.getAnnotation(Ae))==null?void 0:v.codec)||"",s.flags=((_=i.getAnnotation(Ae))==null?void 0:_.flags)||0,s.timeout=((E=i.getAnnotation(Ae))==null?void 0:E.timeout)||12e3,s.retries=(($=i.getAnnotation(Ae))==null?void 0:$.retries)||0,s.mdc=((N=i.getAnnotation(Ae))==null?void 0:N.mdc)||"",s.zone=((j=i.getAnnotation(Ae))==null?void 0:j.zone)||"",s.cluster=((I=i.getAnnotation(Ae))==null?void 0:I.cluster)||"",s.cell=((A=i.getAnnotation(Ae))==null?void 0:A.cell)||"",s.group=((q=i.getAnnotation(Ae))==null?void 0:q.group)||"",s.address=((z=i.getAnnotation(Ae))==null?void 0:z.address)||"",s.urn=this.getURN(((Y=i.getAnnotation(Ae))==null?void 0:Y.name)||"",dt,t),s}getURN(t,n,o){const i=new bn;return i.domain=bn.MESH_DOMAIN,i.mdc=se.anyone(n.mdc,o.mdc),i.name=t,i.flag=this.getURNFlag(n),i.toString()}getURNFlag(t){const n=(t.address||"").split(":"),o=new $n;return o.v="00",o.proto=rn.ofName(t.proto).code,o.codec=rn.ofName(t.codec).code,o.version=t.version,o.zone=t.zone,o.cluster=t.cluster,o.cell=t.cell,o.group=t.group,o.address=n.length>0?n[0]:"",o.port=n.length>1?n[1]:"",o}getMethods(t,n){const o=Ur.getMethods(n),i=new B;return i.set(n,o),i}getEnviron(t){const n=new xe;return n.mdc=bn.LocalMDC,n}makeServiceExecution(t){for(let n of this.providers)n[1].making;return this.services}},d.MeshEden=Ip([L("mesh")],d.MeshEden);var $p=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Eo="mock";d.MockFilter=class extends d.Filter{async invoke(e,t,n){if(!Si.Mock.matches(e.getRunMode())&&!_i.Mock.enable())return await t.run(e,n);const o=Le.load(n.getInspector(e).getType()).want(Eo);if(!o)return await t.run(e,n);const i=o[n.getInspector(e).getName()];return!i||typeof i!="function"?await t.run(e,n):await i(n.getArguments(e))}},d.MockFilter=$p([L(Eo,Ci)],d.MockFilter);var Fp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.Provider=class{},d.Provider=Fp([L(d.Consumer.GRPC)],d.Provider);var kp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.GRPCConsumer=class extends d.Consumer{start(){}close(){}consume(e,t,n,o,i){return Promise.reject(g.URN_NOT_PERMIT)}},d.GRPCConsumer=kp([L(d.Consumer.GRPC)],d.GRPCConsumer);var xp=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.GRPCProvider=class extends d.Provider{start(){}close(){}},d.GRPCProvider=xp([L(d.Consumer.GRPC)],d.GRPCProvider);function dd(r,e){return function(){return r.apply(e,arguments)}}const{toString:Bp}=Object.prototype,{getPrototypeOf:To}=Object,{iterator:Ui,toStringTag:pd}=Symbol,$i=(r=>e=>{const t=Bp.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=r=>(r=r.toLowerCase(),e=>$i(e)===r),Fi=r=>e=>typeof e===r,{isArray:Er}=Array,ui=Fi("undefined");function Dp(r){return r!==null&&!ui(r)&&r.constructor!==null&&!ui(r.constructor)&&mt(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const ld=Ht("ArrayBuffer");function Lp(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&ld(r.buffer),e}const Hp=Fi("string"),mt=Fi("function"),yd=Fi("number"),ki=r=>r!==null&&typeof r=="object",qp=r=>r===!0||r===!1,xi=r=>{if($i(r)!=="object")return!1;const e=To(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(pd in r)&&!(Ui in r)},zp=Ht("Date"),Gp=Ht("File"),Wp=Ht("Blob"),Vp=Ht("FileList"),Jp=r=>ki(r)&&mt(r.pipe),Kp=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||mt(r.append)&&((e=$i(r))==="formdata"||e==="object"&&mt(r.toString)&&r.toString()==="[object FormData]"))},Xp=Ht("URLSearchParams"),[Yp,Qp,Zp,el]=["ReadableStream","Request","Response","Headers"].map(Ht),tl=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fi(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,o;if(typeof r!="object"&&(r=[r]),Er(r))for(n=0,o=r.length;n<o;n++)e.call(null,r[n],n,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),s=i.length;let a;for(n=0;n<s;n++)a=i[n],e.call(null,r[a],a,r)}}function md(r,e){e=e.toLowerCase();const t=Object.keys(r);let n=t.length,o;for(;n-- >0;)if(o=t[n],e===o.toLowerCase())return o;return null}const Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hd=r=>!ui(r)&&r!==Jn;function No(){const{caseless:r}=hd(this)&&this||{},e={},t=(n,o)=>{const i=r&&md(e,o)||o;xi(e[i])&&xi(n)?e[i]=No(e[i],n):xi(n)?e[i]=No({},n):Er(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&fi(arguments[n],t);return e}const nl=(r,e,t,{allOwnKeys:n}={})=>(fi(e,(o,i)=>{t&&mt(o)?r[i]=dd(o,t):r[i]=o},{allOwnKeys:n}),r),rl=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),il=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},ol=(r,e,t,n)=>{let o,i,s;const a={};if(e=e||{},r==null)return e;do{for(o=Object.getOwnPropertyNames(r),i=o.length;i-- >0;)s=o[i],(!n||n(s,r,e))&&!a[s]&&(e[s]=r[s],a[s]=!0);r=t!==!1&&To(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},sl=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},cl=r=>{if(!r)return null;if(Er(r))return r;let e=r.length;if(!yd(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},al=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&To(Uint8Array)),ul=(r,e)=>{const n=(r&&r[Ui]).call(r);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(r,i[0],i[1])}},fl=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},dl=Ht("HTMLFormElement"),pl=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),gd=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),ll=Ht("RegExp"),bd=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};fi(t,(o,i)=>{let s;(s=e(o,i,r))!==!1&&(n[i]=s||o)}),Object.defineProperties(r,n)},yl=r=>{bd(r,(e,t)=>{if(mt(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(mt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ml=(r,e)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return Er(r)?n(r):n(String(r).split(e)),t},hl=()=>{},gl=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function bl(r){return!!(r&&mt(r.append)&&r[pd]==="FormData"&&r[Ui])}const _l=r=>{const e=new Array(10),t=(n,o)=>{if(ki(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=Er(n)?[]:{};return fi(n,(s,a)=>{const P=t(s,o+1);!ui(P)&&(i[a]=P)}),e[o]=void 0,i}}return n};return t(r,0)},Ol=Ht("AsyncFunction"),Sl=r=>r&&(ki(r)||mt(r))&&mt(r.then)&&mt(r.catch),_d=((r,e)=>r?setImmediate:e?((t,n)=>(Jn.addEventListener("message",({source:o,data:i})=>{o===Jn&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),Jn.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",mt(Jn.postMessage)),Rl=typeof queueMicrotask<"u"?queueMicrotask.bind(Jn):typeof process<"u"&&process.nextTick||_d,w={isArray:Er,isArrayBuffer:ld,isBuffer:Dp,isFormData:Kp,isArrayBufferView:Lp,isString:Hp,isNumber:yd,isBoolean:qp,isObject:ki,isPlainObject:xi,isReadableStream:Yp,isRequest:Qp,isResponse:Zp,isHeaders:el,isUndefined:ui,isDate:zp,isFile:Gp,isBlob:Wp,isRegExp:ll,isFunction:mt,isStream:Jp,isURLSearchParams:Xp,isTypedArray:al,isFileList:Vp,forEach:fi,merge:No,extend:nl,trim:tl,stripBOM:rl,inherits:il,toFlatObject:ol,kindOf:$i,kindOfTest:Ht,endsWith:sl,toArray:cl,forEachEntry:ul,matchAll:fl,isHTMLForm:dl,hasOwnProperty:gd,hasOwnProp:gd,reduceDescriptors:bd,freezeMethods:yl,toObjectSet:ml,toCamelCase:pl,noop:hl,toFiniteNumber:gl,findKey:md,global:Jn,isContextDefined:hd,isSpecCompliantForm:bl,toJSONObject:_l,isAsyncFn:Ol,isThenable:Sl,setImmediate:_d,asap:Rl,isIterable:r=>r!=null&&mt(r[Ui])};function K(r,e,t,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Od=K.prototype,Sd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Sd[r]={value:r}}),Object.defineProperties(K,Sd),Object.defineProperty(Od,"isAxiosError",{value:!0}),K.from=(r,e,t,n,o,i)=>{const s=Object.create(Od);return w.toFlatObject(r,s,function(P){return P!==Error.prototype},a=>a!=="isAxiosError"),K.call(s,r.message,e,t,n,o),s.cause=r,s.name=r.name,i&&Object.assign(s,i),s};const vl=null;function Ao(r){return w.isPlainObject(r)||w.isArray(r)}function Rd(r){return w.endsWith(r,"[]")?r.slice(0,-2):r}function vd(r,e,t){return r?r.concat(e).map(function(o,i){return o=Rd(o),!t&&i?"["+o+"]":o}).join(t?".":""):e}function Pl(r){return w.isArray(r)&&!r.some(Ao)}const wl=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function Bi(r,e,t){if(!w.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=w.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(I,A){return!w.isUndefined(A[I])});const n=t.metaTokens,o=t.visitor||_,i=t.dots,s=t.indexes,P=(t.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function v(j){if(j===null)return"";if(w.isDate(j))return j.toISOString();if(!P&&w.isBlob(j))throw new K("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(j)||w.isTypedArray(j)?P&&typeof Blob=="function"?new Blob([j]):Buffer.from(j):j}function _(j,I,A){let q=j;if(j&&!A&&typeof j=="object"){if(w.endsWith(I,"{}"))I=n?I:I.slice(0,-2),j=JSON.stringify(j);else if(w.isArray(j)&&Pl(j)||(w.isFileList(j)||w.endsWith(I,"[]"))&&(q=w.toArray(j)))return I=Rd(I),q.forEach(function(Y,ke){!(w.isUndefined(Y)||Y===null)&&e.append(s===!0?vd([I],ke,i):s===null?I:I+"[]",v(Y))}),!1}return Ao(j)?!0:(e.append(vd(A,I,i),v(j)),!1)}const E=[],$=Object.assign(wl,{defaultVisitor:_,convertValue:v,isVisitable:Ao});function N(j,I){if(!w.isUndefined(j)){if(E.indexOf(j)!==-1)throw Error("Circular reference detected in "+I.join("."));E.push(j),w.forEach(j,function(q,z){(!(w.isUndefined(q)||q===null)&&o.call(e,q,w.isString(z)?z.trim():z,I,$))===!0&&N(q,I?I.concat(z):[z])}),E.pop()}}if(!w.isObject(r))throw new TypeError("data must be an object");return N(r),e}function Pd(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Io(r,e){this._pairs=[],r&&Bi(r,this,e)}const wd=Io.prototype;wd.append=function(e,t){this._pairs.push([e,t])},wd.toString=function(e){const t=e?function(n){return e.call(this,n,Pd)}:Pd;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function jl(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jd(r,e,t){if(!e)return r;const n=t&&t.encode||jl;w.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(e,t):i=w.isURLSearchParams(e)?e.toString():new Io(e,t).toString(n),i){const s=r.indexOf("#");s!==-1&&(r=r.slice(0,s)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class Ed{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Td={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},El={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Io,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Mo=typeof window<"u"&&typeof document<"u",Co=typeof navigator=="object"&&navigator||void 0,Tl=Mo&&(!Co||["ReactNative","NativeScript","NS"].indexOf(Co.product)<0),Nl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Al=Mo&&window.location.href||"http://localhost",Xe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mo,hasStandardBrowserEnv:Tl,hasStandardBrowserWebWorkerEnv:Nl,navigator:Co,origin:Al},Symbol.toStringTag,{value:"Module"})),...El};function Il(r,e){return Bi(r,new Xe.classes.URLSearchParams,Object.assign({visitor:function(t,n,o,i){return Xe.isNode&&w.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Ml(r){return w.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cl(r){const e={},t=Object.keys(r);let n;const o=t.length;let i;for(n=0;n<o;n++)i=t[n],e[i]=r[i];return e}function Nd(r){function e(t,n,o,i){let s=t[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),P=i>=t.length;return s=!s&&w.isArray(o)?o.length:s,P?(w.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),e(t,n,o[s],i)&&w.isArray(o[s])&&(o[s]=Cl(o[s])),!a)}if(w.isFormData(r)&&w.isFunction(r.entries)){const t={};return w.forEachEntry(r,(n,o)=>{e(Ml(n),o,t,0)}),t}return null}function Ul(r,e,t){if(w.isString(r))try{return(e||JSON.parse)(r),w.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const di={transitional:Td,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=w.isObject(e);if(i&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return o?JSON.stringify(Nd(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Il(e,this.formSerializer).toString();if((a=w.isFileList(e))||n.indexOf("multipart/form-data")>-1){const P=this.env&&this.env.FormData;return Bi(a?{"files[]":e}:e,P&&new P,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),Ul(e)):e}],transformResponse:[function(e){const t=this.transitional||di.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(n&&!this.responseType||o)){const s=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?K.from(a,K.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],r=>{di.headers[r]={}});const $l=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fl=r=>{const e={};let t,n,o;return r&&r.split(`
|
|
20
20
|
`).forEach(function(s){o=s.indexOf(":"),t=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!t||e[t]&&$l[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},Ad=Symbol("internals");function pi(r){return r&&String(r).trim().toLowerCase()}function Di(r){return r===!1||r==null?r:w.isArray(r)?r.map(Di):String(r)}function kl(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const xl=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Uo(r,e,t,n,o){if(w.isFunction(n))return n.call(this,e,t);if(o&&(e=t),!!w.isString(e)){if(w.isString(n))return e.indexOf(n)!==-1;if(w.isRegExp(n))return n.test(e)}}function Bl(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Dl(r,e){const t=w.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}let ht=class{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(a,P,v){const _=pi(P);if(!_)throw new Error("header name must be a non-empty string");const E=w.findKey(o,_);(!E||o[E]===void 0||v===!0||v===void 0&&o[E]!==!1)&&(o[E||P]=Di(a))}const s=(a,P)=>w.forEach(a,(v,_)=>i(v,_,P));if(w.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(w.isString(e)&&(e=e.trim())&&!xl(e))s(Fl(e),t);else if(w.isObject(e)&&w.isIterable(e)){let a={},P,v;for(const _ of e){if(!w.isArray(_))throw TypeError("Object iterator must return a key-value pair");a[v=_[0]]=(P=a[v])?w.isArray(P)?[...P,_[1]]:[P,_[1]]:_[1]}s(a,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=pi(e),e){const n=w.findKey(this,e);if(n){const o=this[n];if(!t)return o;if(t===!0)return kl(o);if(w.isFunction(t))return t.call(this,o,n);if(w.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=pi(e),e){const n=w.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Uo(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let o=!1;function i(s){if(s=pi(s),s){const a=w.findKey(n,s);a&&(!t||Uo(n,n[a],a,t))&&(delete n[a],o=!0)}}return w.isArray(e)?e.forEach(i):i(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];(!e||Uo(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const t=this,n={};return w.forEach(this,(o,i)=>{const s=w.findKey(n,i);if(s){t[s]=Di(o),delete t[i];return}const a=e?Bl(i):String(i).trim();a!==i&&delete t[i],t[a]=Di(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return w.forEach(this,(n,o)=>{n!=null&&n!==!1&&(t[o]=e&&w.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
21
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Ad]=this[Ad]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=pi(s);n[a]||(Dl(o,s),n[a]=!0)}return w.isArray(e)?e.forEach(i):i(e),this}};ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(ht.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),w.freezeMethods(ht);function $o(r,e){const t=this||di,n=e||t,o=ht.from(n.headers);let i=n.data;return w.forEach(r,function(a){i=a.call(t,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Id(r){return!!(r&&r.__CANCEL__)}function Er(r,e,t){K.call(this,r??"canceled",K.ERR_CANCELED,e,t),this.name="CanceledError"}w.inherits(Er,K,{__CANCEL__:!0});function Md(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new K("Request failed with status code "+t.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Ll(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Hl(r,e){r=r||10;const t=new Array(r),n=new Array(r);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(P){const v=Date.now(),_=n[i];s||(s=v),t[o]=P,n[o]=v;let E=i,$=0;for(;E!==o;)$+=t[E++],E=E%r;if(o=(o+1)%r,o===i&&(i=(i+1)%r),v-s<e)return;const N=_&&v-_;return N?Math.round($*1e3/N):void 0}}function ql(r,e){let t=0,n=1e3/e,o,i;const s=(v,_=Date.now())=>{t=_,o=null,i&&(clearTimeout(i),i=null),r.apply(null,v)};return[(...v)=>{const _=Date.now(),E=_-t;E>=n?s(v,_):(o=v,i||(i=setTimeout(()=>{i=null,s(o)},n-E)))},()=>o&&s(o)]}const Li=(r,e,t=3)=>{let n=0;const o=Hl(50,250);return ql(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,P=s-n,v=o(P),_=s<=a;n=s;const E={loaded:s,total:a,progress:a?s/a:void 0,bytes:P,rate:v||void 0,estimated:v&&a&&_?(a-s)/v:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};r(E)},t)},Cd=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},Ud=r=>(...e)=>w.asap(()=>r(...e)),zl=Xe.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Xe.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,Gl=Xe.hasStandardBrowserEnv?{write(r,e,t,n,o,i){const s=[r+"="+encodeURIComponent(e)];w.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),w.isString(n)&&s.push("path="+n),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wl(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Vl(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function $d(r,e,t){let n=!Wl(e);return r&&(n||t==!1)?Vl(r,e):e}const Fd=r=>r instanceof ht?{...r}:r;function Kn(r,e){e=e||{};const t={};function n(v,_,E,$){return w.isPlainObject(v)&&w.isPlainObject(_)?w.merge.call({caseless:$},v,_):w.isPlainObject(_)?w.merge({},_):w.isArray(_)?_.slice():_}function o(v,_,E,$){if(w.isUndefined(_)){if(!w.isUndefined(v))return n(void 0,v,E,$)}else return n(v,_,E,$)}function i(v,_){if(!w.isUndefined(_))return n(void 0,_)}function s(v,_){if(w.isUndefined(_)){if(!w.isUndefined(v))return n(void 0,v)}else return n(void 0,_)}function a(v,_,E){if(E in e)return n(v,_);if(E in r)return n(void 0,v)}const P={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(v,_,E)=>o(Fd(v),Fd(_),E,!0)};return w.forEach(Object.keys(Object.assign({},r,e)),function(_){const E=P[_]||o,$=E(r[_],e[_],_);w.isUndefined($)&&E!==a||(t[_]=$)}),t}const kd=r=>{const e=Kn({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;e.headers=s=ht.from(s),e.url=jd($d(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let P;if(w.isFormData(t)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((P=s.getContentType())!==!1){const[v,..._]=P?P.split(";").map(E=>E.trim()).filter(Boolean):[];s.setContentType([v||"multipart/form-data",..._].join("; "))}}if(Xe.hasStandardBrowserEnv&&(n&&w.isFunction(n)&&(n=n(e)),n||n!==!1&&zl(e.url))){const v=o&&i&&Gl.read(i);v&&s.set(o,v)}return e},Jl=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const o=kd(r);let i=o.data;const s=ht.from(o.headers).normalize();let{responseType:a,onUploadProgress:P,onDownloadProgress:v}=o,_,E,$,N,j;function I(){N&&N(),j&&j(),o.cancelToken&&o.cancelToken.unsubscribe(_),o.signal&&o.signal.removeEventListener("abort",_)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function q(){if(!A)return;const Y=ht.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),Z={data:!a||a==="text"||a==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:Y,config:r,request:A};Md(function(xt){t(xt),I()},function(xt){n(xt),I()},Z),A=null}"onloadend"in A?A.onloadend=q:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(q)},A.onabort=function(){A&&(n(new K("Request aborted",K.ECONNABORTED,r,A)),A=null)},A.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,r,A)),A=null},A.ontimeout=function(){let ke=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Z=o.transitional||Td;o.timeoutErrorMessage&&(ke=o.timeoutErrorMessage),n(new K(ke,Z.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,r,A)),A=null},i===void 0&&s.setContentType(null),"setRequestHeader"in A&&w.forEach(s.toJSON(),function(ke,Z){A.setRequestHeader(Z,ke)}),w.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),a&&a!=="json"&&(A.responseType=o.responseType),v&&([$,j]=Li(v,!0),A.addEventListener("progress",$)),P&&A.upload&&([E,N]=Li(P),A.upload.addEventListener("progress",E),A.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(_=Y=>{A&&(n(!Y||Y.type?new Er(null,r,A):Y),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(_),o.signal&&(o.signal.aborted?_():o.signal.addEventListener("abort",_)));const z=Ll(o.url);if(z&&Xe.protocols.indexOf(z)===-1){n(new K("Unsupported protocol "+z+":",K.ERR_BAD_REQUEST,r));return}A.send(i||null)})},Kl=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,o;const i=function(v){if(!o){o=!0,a();const _=v instanceof Error?v:this.reason;n.abort(_ instanceof K?_:new Er(_ instanceof Error?_.message:_))}};let s=e&&setTimeout(()=>{s=null,i(new K(`timeout ${e} of ms exceeded`,K.ETIMEDOUT))},e);const a=()=>{r&&(s&&clearTimeout(s),s=null,r.forEach(v=>{v.unsubscribe?v.unsubscribe(i):v.removeEventListener("abort",i)}),r=null)};r.forEach(v=>v.addEventListener("abort",i));const{signal:P}=n;return P.unsubscribe=()=>w.asap(a),P}},Xl=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,o;for(;n<t;)o=n+e,yield r.slice(n,o),n=o},Yl=async function*(r,e){for await(const t of Ql(r))yield*Xl(t,e)},Ql=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},xd=(r,e,t,n)=>{const o=Yl(r,e);let i=0,s,a=P=>{s||(s=!0,n&&n(P))};return new ReadableStream({async pull(P){try{const{done:v,value:_}=await o.next();if(v){a(),P.close();return}let E=_.byteLength;if(t){let $=i+=E;t($)}P.enqueue(new Uint8Array(_))}catch(v){throw a(v),v}},cancel(P){return a(P),o.return()}},{highWaterMark:2})},Hi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bd=Hi&&typeof ReadableStream=="function",Zl=Hi&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),Dd=(r,...e)=>{try{return!!r(...e)}catch{return!1}},ey=Bd&&Dd(()=>{let r=!1;const e=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),Ld=64*1024,Fo=Bd&&Dd(()=>w.isReadableStream(new Response("").body)),qi={stream:Fo&&(r=>r.body)};Hi&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!qi[e]&&(qi[e]=w.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})})})(new Response);const ty=async r=>{if(r==null)return 0;if(w.isBlob(r))return r.size;if(w.isSpecCompliantForm(r))return(await new Request(Xe.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(w.isArrayBufferView(r)||w.isArrayBuffer(r))return r.byteLength;if(w.isURLSearchParams(r)&&(r=r+""),w.isString(r))return(await Zl(r)).byteLength},ny=async(r,e)=>{const t=w.toFiniteNumber(r.getContentLength());return t??ty(e)},ko={http:vl,xhr:Jl,fetch:Hi&&(async r=>{let{url:e,method:t,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:P,responseType:v,headers:_,withCredentials:E="same-origin",fetchOptions:$}=kd(r);v=v?(v+"").toLowerCase():"text";let N=Kl([o,i&&i.toAbortSignal()],s),j;const I=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let A;try{if(P&&ey&&t!=="get"&&t!=="head"&&(A=await ny(_,n))!==0){let Z=new Request(e,{method:"POST",body:n,duplex:"half"}),St;if(w.isFormData(n)&&(St=Z.headers.get("content-type"))&&_.setContentType(St),Z.body){const[xt,Bn]=Cd(A,Li(Ud(P)));n=xd(Z.body,Ld,xt,Bn)}}w.isString(E)||(E=E?"include":"omit");const q="credentials"in Request.prototype;j=new Request(e,{...$,signal:N,method:t.toUpperCase(),headers:_.normalize().toJSON(),body:n,duplex:"half",credentials:q?E:void 0});let z=await fetch(j);const Y=Fo&&(v==="stream"||v==="response");if(Fo&&(a||Y&&I)){const Z={};["status","statusText","headers"].forEach(Nr=>{Z[Nr]=z[Nr]});const St=w.toFiniteNumber(z.headers.get("content-length")),[xt,Bn]=a&&Cd(St,Li(Ud(a),!0))||[];z=new Response(xd(z.body,Ld,xt,()=>{Bn&&Bn(),I&&I()}),Z)}v=v||"text";let ke=await qi[w.findKey(qi,v)||"text"](z,r);return!Y&&I&&I(),await new Promise((Z,St)=>{Md(Z,St,{data:ke,headers:ht.from(z.headers),status:z.status,statusText:z.statusText,config:r,request:j})})}catch(q){throw I&&I(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,r,j),{cause:q.cause||q}):K.from(q,q&&q.code,r,j)}})};w.forEach(ko,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const Hd=r=>`- ${r}`,ry=r=>w.isFunction(r)||r===null||r===!1,qd={getAdapter:r=>{r=w.isArray(r)?r:[r];const{length:e}=r;let t,n;const o={};for(let i=0;i<e;i++){t=r[i];let s;if(n=t,!ry(t)&&(n=ko[(s=String(t)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,P])=>`adapter ${a} `+(P===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
|
21
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Ad]=this[Ad]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=pi(s);n[a]||(Dl(o,s),n[a]=!0)}return w.isArray(e)?e.forEach(i):i(e),this}};ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(ht.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),w.freezeMethods(ht);function $o(r,e){const t=this||di,n=e||t,o=ht.from(n.headers);let i=n.data;return w.forEach(r,function(a){i=a.call(t,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Id(r){return!!(r&&r.__CANCEL__)}function Tr(r,e,t){K.call(this,r??"canceled",K.ERR_CANCELED,e,t),this.name="CanceledError"}w.inherits(Tr,K,{__CANCEL__:!0});function Md(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new K("Request failed with status code "+t.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Ll(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Hl(r,e){r=r||10;const t=new Array(r),n=new Array(r);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(P){const v=Date.now(),_=n[i];s||(s=v),t[o]=P,n[o]=v;let E=i,$=0;for(;E!==o;)$+=t[E++],E=E%r;if(o=(o+1)%r,o===i&&(i=(i+1)%r),v-s<e)return;const N=_&&v-_;return N?Math.round($*1e3/N):void 0}}function ql(r,e){let t=0,n=1e3/e,o,i;const s=(v,_=Date.now())=>{t=_,o=null,i&&(clearTimeout(i),i=null),r.apply(null,v)};return[(...v)=>{const _=Date.now(),E=_-t;E>=n?s(v,_):(o=v,i||(i=setTimeout(()=>{i=null,s(o)},n-E)))},()=>o&&s(o)]}const Li=(r,e,t=3)=>{let n=0;const o=Hl(50,250);return ql(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,P=s-n,v=o(P),_=s<=a;n=s;const E={loaded:s,total:a,progress:a?s/a:void 0,bytes:P,rate:v||void 0,estimated:v&&a&&_?(a-s)/v:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};r(E)},t)},Cd=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},Ud=r=>(...e)=>w.asap(()=>r(...e)),zl=Xe.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Xe.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):()=>!0,Gl=Xe.hasStandardBrowserEnv?{write(r,e,t,n,o,i){const s=[r+"="+encodeURIComponent(e)];w.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),w.isString(n)&&s.push("path="+n),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wl(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Vl(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function $d(r,e,t){let n=!Wl(e);return r&&(n||t==!1)?Vl(r,e):e}const Fd=r=>r instanceof ht?{...r}:r;function Kn(r,e){e=e||{};const t={};function n(v,_,E,$){return w.isPlainObject(v)&&w.isPlainObject(_)?w.merge.call({caseless:$},v,_):w.isPlainObject(_)?w.merge({},_):w.isArray(_)?_.slice():_}function o(v,_,E,$){if(w.isUndefined(_)){if(!w.isUndefined(v))return n(void 0,v,E,$)}else return n(v,_,E,$)}function i(v,_){if(!w.isUndefined(_))return n(void 0,_)}function s(v,_){if(w.isUndefined(_)){if(!w.isUndefined(v))return n(void 0,v)}else return n(void 0,_)}function a(v,_,E){if(E in e)return n(v,_);if(E in r)return n(void 0,v)}const P={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(v,_,E)=>o(Fd(v),Fd(_),E,!0)};return w.forEach(Object.keys(Object.assign({},r,e)),function(_){const E=P[_]||o,$=E(r[_],e[_],_);w.isUndefined($)&&E!==a||(t[_]=$)}),t}const kd=r=>{const e=Kn({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;e.headers=s=ht.from(s),e.url=jd($d(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let P;if(w.isFormData(t)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((P=s.getContentType())!==!1){const[v,..._]=P?P.split(";").map(E=>E.trim()).filter(Boolean):[];s.setContentType([v||"multipart/form-data",..._].join("; "))}}if(Xe.hasStandardBrowserEnv&&(n&&w.isFunction(n)&&(n=n(e)),n||n!==!1&&zl(e.url))){const v=o&&i&&Gl.read(i);v&&s.set(o,v)}return e},Jl=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const o=kd(r);let i=o.data;const s=ht.from(o.headers).normalize();let{responseType:a,onUploadProgress:P,onDownloadProgress:v}=o,_,E,$,N,j;function I(){N&&N(),j&&j(),o.cancelToken&&o.cancelToken.unsubscribe(_),o.signal&&o.signal.removeEventListener("abort",_)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function q(){if(!A)return;const Y=ht.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),Z={data:!a||a==="text"||a==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:Y,config:r,request:A};Md(function(xt){t(xt),I()},function(xt){n(xt),I()},Z),A=null}"onloadend"in A?A.onloadend=q:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(q)},A.onabort=function(){A&&(n(new K("Request aborted",K.ECONNABORTED,r,A)),A=null)},A.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,r,A)),A=null},A.ontimeout=function(){let ke=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Z=o.transitional||Td;o.timeoutErrorMessage&&(ke=o.timeoutErrorMessage),n(new K(ke,Z.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,r,A)),A=null},i===void 0&&s.setContentType(null),"setRequestHeader"in A&&w.forEach(s.toJSON(),function(ke,Z){A.setRequestHeader(Z,ke)}),w.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),a&&a!=="json"&&(A.responseType=o.responseType),v&&([$,j]=Li(v,!0),A.addEventListener("progress",$)),P&&A.upload&&([E,N]=Li(P),A.upload.addEventListener("progress",E),A.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(_=Y=>{A&&(n(!Y||Y.type?new Tr(null,r,A):Y),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(_),o.signal&&(o.signal.aborted?_():o.signal.addEventListener("abort",_)));const z=Ll(o.url);if(z&&Xe.protocols.indexOf(z)===-1){n(new K("Unsupported protocol "+z+":",K.ERR_BAD_REQUEST,r));return}A.send(i||null)})},Kl=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,o;const i=function(v){if(!o){o=!0,a();const _=v instanceof Error?v:this.reason;n.abort(_ instanceof K?_:new Tr(_ instanceof Error?_.message:_))}};let s=e&&setTimeout(()=>{s=null,i(new K(`timeout ${e} of ms exceeded`,K.ETIMEDOUT))},e);const a=()=>{r&&(s&&clearTimeout(s),s=null,r.forEach(v=>{v.unsubscribe?v.unsubscribe(i):v.removeEventListener("abort",i)}),r=null)};r.forEach(v=>v.addEventListener("abort",i));const{signal:P}=n;return P.unsubscribe=()=>w.asap(a),P}},Xl=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,o;for(;n<t;)o=n+e,yield r.slice(n,o),n=o},Yl=async function*(r,e){for await(const t of Ql(r))yield*Xl(t,e)},Ql=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},xd=(r,e,t,n)=>{const o=Yl(r,e);let i=0,s,a=P=>{s||(s=!0,n&&n(P))};return new ReadableStream({async pull(P){try{const{done:v,value:_}=await o.next();if(v){a(),P.close();return}let E=_.byteLength;if(t){let $=i+=E;t($)}P.enqueue(new Uint8Array(_))}catch(v){throw a(v),v}},cancel(P){return a(P),o.return()}},{highWaterMark:2})},Hi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bd=Hi&&typeof ReadableStream=="function",Zl=Hi&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),Dd=(r,...e)=>{try{return!!r(...e)}catch{return!1}},ey=Bd&&Dd(()=>{let r=!1;const e=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),Ld=64*1024,Fo=Bd&&Dd(()=>w.isReadableStream(new Response("").body)),qi={stream:Fo&&(r=>r.body)};Hi&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!qi[e]&&(qi[e]=w.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})})})(new Response);const ty=async r=>{if(r==null)return 0;if(w.isBlob(r))return r.size;if(w.isSpecCompliantForm(r))return(await new Request(Xe.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(w.isArrayBufferView(r)||w.isArrayBuffer(r))return r.byteLength;if(w.isURLSearchParams(r)&&(r=r+""),w.isString(r))return(await Zl(r)).byteLength},ny=async(r,e)=>{const t=w.toFiniteNumber(r.getContentLength());return t??ty(e)},ko={http:vl,xhr:Jl,fetch:Hi&&(async r=>{let{url:e,method:t,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:P,responseType:v,headers:_,withCredentials:E="same-origin",fetchOptions:$}=kd(r);v=v?(v+"").toLowerCase():"text";let N=Kl([o,i&&i.toAbortSignal()],s),j;const I=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let A;try{if(P&&ey&&t!=="get"&&t!=="head"&&(A=await ny(_,n))!==0){let Z=new Request(e,{method:"POST",body:n,duplex:"half"}),St;if(w.isFormData(n)&&(St=Z.headers.get("content-type"))&&_.setContentType(St),Z.body){const[xt,Bn]=Cd(A,Li(Ud(P)));n=xd(Z.body,Ld,xt,Bn)}}w.isString(E)||(E=E?"include":"omit");const q="credentials"in Request.prototype;j=new Request(e,{...$,signal:N,method:t.toUpperCase(),headers:_.normalize().toJSON(),body:n,duplex:"half",credentials:q?E:void 0});let z=await fetch(j);const Y=Fo&&(v==="stream"||v==="response");if(Fo&&(a||Y&&I)){const Z={};["status","statusText","headers"].forEach(Ar=>{Z[Ar]=z[Ar]});const St=w.toFiniteNumber(z.headers.get("content-length")),[xt,Bn]=a&&Cd(St,Li(Ud(a),!0))||[];z=new Response(xd(z.body,Ld,xt,()=>{Bn&&Bn(),I&&I()}),Z)}v=v||"text";let ke=await qi[w.findKey(qi,v)||"text"](z,r);return!Y&&I&&I(),await new Promise((Z,St)=>{Md(Z,St,{data:ke,headers:ht.from(z.headers),status:z.status,statusText:z.statusText,config:r,request:j})})}catch(q){throw I&&I(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,r,j),{cause:q.cause||q}):K.from(q,q&&q.code,r,j)}})};w.forEach(ko,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const Hd=r=>`- ${r}`,ry=r=>w.isFunction(r)||r===null||r===!1,qd={getAdapter:r=>{r=w.isArray(r)?r:[r];const{length:e}=r;let t,n;const o={};for(let i=0;i<e;i++){t=r[i];let s;if(n=t,!ry(t)&&(n=ko[(s=String(t)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,P])=>`adapter ${a} `+(P===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
|
22
22
|
`+i.map(Hd).join(`
|
|
23
|
-
`):" "+Hd(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:ko};function xo(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new
|
|
24
|
-
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Kn(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;n!==void 0&&Gi.assertOptions(n,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},!1),o!=null&&(w.isFunction(o)?t.paramsSerializer={serialize:o}:Gi.assertOptions(o,{encode:on.function,serialize:on.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Gi.assertOptions(t,{baseUrl:on.spelling("baseURL"),withXsrfToken:on.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[t.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],j=>{delete i[j]}),t.headers=ht.concat(s,i);const a=[];let P=!0;this.interceptors.request.forEach(function(I){typeof I.runWhen=="function"&&I.runWhen(t)===!1||(P=P&&I.synchronous,a.unshift(I.fulfilled,I.rejected))});const v=[];this.interceptors.response.forEach(function(I){v.push(I.fulfilled,I.rejected)});let _,E=0,$;if(!P){const j=[zd.bind(this),void 0];for(j.unshift.apply(j,a),j.push.apply(j,v),$=j.length,_=Promise.resolve(t);E<$;)_=_.then(j[E++],j[E++]);return _}$=a.length;let N=t;for(E=0;E<$;){const j=a[E++],I=a[E++];try{N=j(N)}catch(A){I.call(this,A);break}}try{_=zd.call(this,N)}catch(j){return Promise.reject(j)}for(E=0,$=v.length;E<$;)_=_.then(v[E++],v[E++]);return _}getUri(e){e=Kn(this.defaults,e);const t=$d(e.baseURL,e.url,e.allowAbsoluteUrls);return jd(t,e.params,e.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(e){Xn.prototype[e]=function(t,n){return this.request(Kn(n||{},{method:e,url:t,data:(n||{}).data}))}}),w.forEach(["post","put","patch"],function(e){function t(n){return function(i,s,a){return this.request(Kn(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Xn.prototype[e]=t(),Xn.prototype[e+"Form"]=t(!0)});let oy=class Xd{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new Er(i,s,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Xd(function(o){e=o}),cancel:e}}};function sy(r){return function(t){return r.apply(null,t)}}function cy(r){return w.isObject(r)&&r.isAxiosError===!0}const Bo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bo).forEach(([r,e])=>{Bo[e]=r});function Vd(r){const e=new Xn(r),t=dd(Xn.prototype.request,e);return w.extend(t,Xn.prototype,e,{allOwnKeys:!0}),w.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return Vd(Kn(r,o))},t}const Ce=Vd(di);Ce.Axios=Xn,Ce.CanceledError=Er,Ce.CancelToken=oy,Ce.isCancel=Id,Ce.VERSION=Gd,Ce.toFormData=Bi,Ce.AxiosError=K,Ce.Cancel=Ce.CanceledError,Ce.all=function(e){return Promise.all(e)},Ce.spread=sy,Ce.isAxiosError=cy,Ce.mergeConfig=Kn,Ce.AxiosHeaders=ht,Ce.formToJSON=r=>Nd(w.isHTMLForm(r)?new FormData(r):r),Ce.getAdapter=qd.getAdapter,Ce.HttpStatusCode=Bo,Ce.default=Ce;const{Axios:wy,AxiosError:jy,CanceledError:Ey,isCancel:Ty,CancelToken:Ny,VERSION:Ay,all:Iy,Cancel:My,isAxiosError:Cy,spread:Uy,toFormData:$y,AxiosHeaders:Fy,HttpStatusCode:ky,formToJSON:xy,getAdapter:By,mergeConfig:Dy}=Ce;var ay=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.HTTPConsumer=class extends d.Consumer{constructor(){super(...arguments);c(this,"c")}async getClient(){if(this.c)return this.c;const t={baseURL:se.MESH_ADDRESS.get().any(),timeout:1e4,headers:{"Content-Type":"application/json;charset=UTF-8"}};if(typeof window>"u"){const n=await Promise.resolve().then(()=>ly);t.httpsAgent=new n.Agent({rejectUnauthorized:!1})}return this.c=Ce.create(t),this.c.interceptors.request.use(n=>n),this.c}start(){}close(){}async consume(t,n,o,i,s){const a=i.schema(t).timeout,P=Le.load(d.Codec).getDefault(),v=P.decode(s,Object),_=await this.invoke(t,v,Object,o,a);return P.encode(_)}async invoke(t,n,o,i,s){const a={"mesh-urn":i};t.getAttachments().forEach((_,E)=>{a[_]=E});const v=await(await this.getClient()).post("/mpc/invoke",n,{timeout:Math.max(1e4,s),headers:a});if(v.status!==200)throw Fr(v);return v.data}},d.HTTPConsumer=ay([L(d.Consumer.HTTP)],d.HTTPConsumer);class Do{constructor(){c(this,"name","");c(this,"icon");c(this,"path","");c(this,"describe");c(this,"disable",!1);c(this,"star",!1);c(this,"route");c(this,"children",[]);c(this,"parent");c(this,"attrs")}static abs(e,t=""){if(!e.parent)return`${t}${e.path}`;const n=this.abs(e.parent).replaceAll("/*","");return n==""?`${t}${e.path}`:`${t}${n}${e.path.replaceAll("/*","")}`}static preproc(e){e==null||e.forEach(t=>{var n;(n=t.children)==null||n.forEach(o=>{o.parent=t}),this.preproc((t==null?void 0:t.children)||[])})}static chain(e){return e.parent?[...Do.chain(e.parent),e]:[]}}class uy extends d.Network{constructor(){super();c(this,"proxy");this.proxy=d.ServiceProxy.proxy(d.Network)}environ(t){return this.proxy.environ(t)}accessible(t,n){return this.proxy.accessible(t)}refresh(t,n){return this.proxy.refresh(t)}route(t,n){return this.proxy.route(t)}routes(t){return this.proxy.routes(t)}disable(t,n){return this.proxy.disable(t)}enable(t,n){return this.proxy.enable(t)}index(t,n){return this.proxy.index(t)}version(t,n){return this.proxy.version(t)}}class fy{constructor(e,t){c(this,"values",[]);c(this,"filter",(e,t)=>!0);this.values=e||[],this.filter=t}index(e){const t=e.factor||{},n=new Fe;n.index=e.index,n.sid=e.sid||"",n.limit=e.limit,n.total=e.index*e.limit,n.next=!1,n.data=[];const o=n.index*n.limit,i=(n.index+1)*n.limit;for(let s=o;s<this.values.length&&!(o>=this.values.length);s++){const a=this.values[s];n.data.length<e.limit&&o<=n.total&&n.total<i&&n.data.push(a),(!this.filter||this.filter(a,t))&&n.total++}return n.total>i&&(n.next=!0),n}}class dy{constructor(){c(this,"builtin",d.ServiceProxy.proxy(d.Builtin));c(this,"cache",d.ServiceProxy.proxy(d.Cache));c(this,"cipherEconomy",d.ServiceProxy.proxy(d.CipherEconomy));c(this,"cipherProvider",d.ServiceProxy.proxy(d.CipherProvider));c(this,"cluster",d.ServiceProxy.proxy(d.Cluster));c(this,"commercialize",d.ServiceProxy.proxy(d.Commercialize));c(this,"cryptor",d.ServiceProxy.proxy(d.Cryptor));c(this,"dataHouse",d.ServiceProxy.proxy(d.DataHouse));c(this,"endpoint",d.ServiceProxy.proxy(d.Endpoint));c(this,"evaluator",d.ServiceProxy.proxy(d.Evaluator));c(this,"graph",d.ServiceProxy.proxy(d.Graph));c(this,"kms",d.ServiceProxy.proxy(d.KMS));c(this,"kv",d.ServiceProxy.proxy(d.KV));c(this,"licenser",d.ServiceProxy.proxy(d.Licenser));c(this,"locker",d.ServiceProxy.proxy(d.Locker));c(this,"network",d.ServiceProxy.proxy(d.Network));c(this,"pipeline",d.ServiceProxy.proxy(d.Pipeline));c(this,"publisher",d.ServiceProxy.proxy(d.Publisher));c(this,"registry",d.ServiceProxy.proxy(d.Registry));c(this,"savepoint",d.ServiceProxy.proxy(d.Savepoint));c(this,"scheduler",d.ServiceProxy.proxy(d.Scheduler));c(this,"sequence",d.ServiceProxy.proxy(d.Sequence));c(this,"subscriber",d.ServiceProxy.proxy(d.Subscriber));c(this,"tokenizer",d.ServiceProxy.proxy(d.Tokenizer));c(this,"transporter",d.ServiceProxy.proxy(d.Transporter));c(this,"fileSystem",d.ServiceProxy.proxy(d.FileSystem));c(this,"workflow",d.ServiceProxy.proxy(d.Workflow))}}const py=new dy,ly=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.AccessCode=ji,d.AccessGrant=co,d.AccessID=qr,d.AccessToken=an,d.Addrs=Mi,d.Argument=Yo,d.Ark=Oe,d.Body=Re,d.CONSUMER=Ci,d.CRL=Br,d.CacheBody=tt,d.Captcha=ir,d.Cause=ut,d.CipherEntity=Gt,d.CipherHello=Qe,d.CipherKey=Pi,d.CipherKeygen=vn,d.CipherObject=ze,d.CipherRegen=Dr,d.CipherSuite=Hn,d.CipherTxEntity=Lr,d.Citizen=Do,d.CommerceEnviron=rr,d.CommerceLicense=nr,d.Context=Ri,d.Credential=jt,d.DataLord=xr,d.Deque=es,d.Document=Pn,d.DocumentMetadata=wn,d.DtxBranch=Qt,d.DtxDefinition=Nn,d.Dynamic=Ur,d.EndpointSticker=va,d.Entry=Hr,d.Env=Qn,d.Environ=xe,d.Event=Ve,d.FileEntry=er,d.GenericExecution=od,d.GenericInspector=sd,d.GenericParameters=vo,d.GenericReturns=Po,d.Header=vi,d.Hodor=po,d.Hook=ai,d.Idx=Rn,d.Inbound=ao,d.Institution=wi,d.Key=kr,d.KeyCsr=ft,d.Keys=tr,d.Lattice=cn,d.License=ye,d.Location=Tn,d.MPI=Ae,d.MPS=$r,d.Mani=Zn,d.Mesh=nn,d.MeshCode=Q,d.MeshContext=ci,d.MeshFlags=rn,d.MeshNetwork=uy,d.MeshService=py,d.Metadata=uo,d.MethodInspector=Qo,d.Mock=Eo,d.Mode=Oi,d.MpcStream=_o,d.Outbound=zr,d.PROVIDER=cd,d.Packet=Nt,d.Page=Fe,d.Paging=J,d.Payload=Gr,d.Principal=nt,d.Reference=Kt,d.ReferenceInvokeHandler=ud,d.Registration=Je,d.RegistrationKind=fp,d.Routable=ni,d.Route=ue,d.RunMode=Si,d.SPI=Dt,d.Script=Tt,d.Service=dt,d.ServiceInvocation=ad,d.ServiceInvokeHandler=fd,d.ServiceLoader=Le,d.Session=_t,d.StatefulServer=id,d.States=fo,d.Status=g,d.Timeout=Jt,d.Tool=se,d.Topic=je,d.Triplet=$s,d.Types=Sn,d.URC=Et,d.URN=bn,d.URNFlag=$n,d.VTable=fy,d.Versions=Wr,d.WorkChart=pt,d.WorkContext=ln,d.WorkGroup=pn,d.WorkIntent=An,d.WorkRoutine=qn,d.WorkSide=Vr,d.WorkTask=dn,d.WorkVertex=He,d.Worker=Be,d.binding=Zd,d.composite=wo,d.context=O,d.dict=B,d.errorf=Fr,d.globalPtr=Cr,d.index=p,d.instanceOfCodeable=Zo,d.list=Ye,d.mpi=R,d.mps=ap,d.returnType=_p,d.spi=L,d.withMode=tp,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
23
|
+
`):" "+Hd(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:ko};function xo(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Tr(null,r)}function zd(r){return xo(r),r.headers=ht.from(r.headers),r.data=$o.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),qd.getAdapter(r.adapter||di.adapter)(r).then(function(n){return xo(r),n.data=$o.call(r,r.transformResponse,n),n.headers=ht.from(n.headers),n},function(n){return Id(n)||(xo(r),n&&n.response&&(n.response.data=$o.call(r,r.transformResponse,n.response),n.response.headers=ht.from(n.response.headers))),Promise.reject(n)})}const Gd="1.9.0",zi={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{zi[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const Wd={};zi.transitional=function(e,t,n){function o(i,s){return"[Axios v"+Gd+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(e===!1)throw new K(o(s," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!Wd[s]&&(Wd[s]=!0,console.warn(o(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,a):!0}},zi.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function iy(r,e,t){if(typeof r!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const a=r[i],P=a===void 0||s(a,i,r);if(P!==!0)throw new K("option "+i+" must be "+P,K.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const Gi={assertOptions:iy,validators:zi},on=Gi.validators;let Xn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ed,response:new Ed}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
24
|
+
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Kn(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;n!==void 0&&Gi.assertOptions(n,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},!1),o!=null&&(w.isFunction(o)?t.paramsSerializer={serialize:o}:Gi.assertOptions(o,{encode:on.function,serialize:on.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Gi.assertOptions(t,{baseUrl:on.spelling("baseURL"),withXsrfToken:on.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[t.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],j=>{delete i[j]}),t.headers=ht.concat(s,i);const a=[];let P=!0;this.interceptors.request.forEach(function(I){typeof I.runWhen=="function"&&I.runWhen(t)===!1||(P=P&&I.synchronous,a.unshift(I.fulfilled,I.rejected))});const v=[];this.interceptors.response.forEach(function(I){v.push(I.fulfilled,I.rejected)});let _,E=0,$;if(!P){const j=[zd.bind(this),void 0];for(j.unshift.apply(j,a),j.push.apply(j,v),$=j.length,_=Promise.resolve(t);E<$;)_=_.then(j[E++],j[E++]);return _}$=a.length;let N=t;for(E=0;E<$;){const j=a[E++],I=a[E++];try{N=j(N)}catch(A){I.call(this,A);break}}try{_=zd.call(this,N)}catch(j){return Promise.reject(j)}for(E=0,$=v.length;E<$;)_=_.then(v[E++],v[E++]);return _}getUri(e){e=Kn(this.defaults,e);const t=$d(e.baseURL,e.url,e.allowAbsoluteUrls);return jd(t,e.params,e.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(e){Xn.prototype[e]=function(t,n){return this.request(Kn(n||{},{method:e,url:t,data:(n||{}).data}))}}),w.forEach(["post","put","patch"],function(e){function t(n){return function(i,s,a){return this.request(Kn(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Xn.prototype[e]=t(),Xn.prototype[e+"Form"]=t(!0)});let oy=class Xd{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new Tr(i,s,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Xd(function(o){e=o}),cancel:e}}};function sy(r){return function(t){return r.apply(null,t)}}function cy(r){return w.isObject(r)&&r.isAxiosError===!0}const Bo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bo).forEach(([r,e])=>{Bo[e]=r});function Vd(r){const e=new Xn(r),t=dd(Xn.prototype.request,e);return w.extend(t,Xn.prototype,e,{allOwnKeys:!0}),w.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return Vd(Kn(r,o))},t}const Ce=Vd(di);Ce.Axios=Xn,Ce.CanceledError=Tr,Ce.CancelToken=oy,Ce.isCancel=Id,Ce.VERSION=Gd,Ce.toFormData=Bi,Ce.AxiosError=K,Ce.Cancel=Ce.CanceledError,Ce.all=function(e){return Promise.all(e)},Ce.spread=sy,Ce.isAxiosError=cy,Ce.mergeConfig=Kn,Ce.AxiosHeaders=ht,Ce.formToJSON=r=>Nd(w.isHTMLForm(r)?new FormData(r):r),Ce.getAdapter=qd.getAdapter,Ce.HttpStatusCode=Bo,Ce.default=Ce;const{Axios:jy,AxiosError:Ey,CanceledError:Ty,isCancel:Ny,CancelToken:Ay,VERSION:Iy,all:My,Cancel:Cy,isAxiosError:Uy,spread:$y,toFormData:Fy,AxiosHeaders:ky,HttpStatusCode:xy,formToJSON:By,getAdapter:Dy,mergeConfig:Ly}=Ce;var ay=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(i=(o<3?s(i):o>3?s(e,t,i):s(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};d.HTTPConsumer=class extends d.Consumer{constructor(){super(...arguments);c(this,"c")}async getClient(){if(this.c)return this.c;const t={baseURL:se.MESH_ADDRESS.get().any(),timeout:1e4,headers:{"Content-Type":"application/json;charset=UTF-8"}};if(typeof window>"u"){const n=await Promise.resolve().then(()=>ly);t.httpsAgent=new n.Agent({rejectUnauthorized:!1})}return this.c=Ce.create(t),this.c.interceptors.request.use(n=>n),this.c}start(){}close(){}async consume(t,n,o,i,s){const a=i.schema(t).timeout,P=Le.load(d.Codec).getDefault(),v=P.decode(s,Object),_=await this.invoke(t,v,Object,o,a);return P.encode(_)}async invoke(t,n,o,i,s){const a={"mesh-urn":i};t.getAttachments().forEach((_,E)=>{a[_]=E});const v=await(await this.getClient()).post("/mpc/invoke",n,{timeout:Math.max(1e4,s),headers:a});if(v.status!==200)throw Fr(v);return v.data}},d.HTTPConsumer=ay([L(d.Consumer.HTTP)],d.HTTPConsumer);class Do{constructor(){c(this,"name","");c(this,"icon");c(this,"path","");c(this,"describe");c(this,"disable",!1);c(this,"star",!1);c(this,"route");c(this,"children",[]);c(this,"parent");c(this,"attrs")}static abs(e,t=""){if(!e.parent)return`${t}${e.path}`;const n=this.abs(e.parent).replaceAll("/*","");return n==""?`${t}${e.path}`:`${t}${n}${e.path.replaceAll("/*","")}`}static preproc(e){e==null||e.forEach(t=>{var n;(n=t.children)==null||n.forEach(o=>{o.parent=t}),this.preproc((t==null?void 0:t.children)||[])})}static chain(e){return e.parent?[...Do.chain(e.parent),e]:[]}}class uy extends d.Network{constructor(){super();c(this,"proxy");this.proxy=d.ServiceProxy.proxy(d.Network)}environ(t){return this.proxy.environ(t)}accessible(t,n){return this.proxy.accessible(t)}refresh(t,n){return this.proxy.refresh(t)}route(t,n){return this.proxy.route(t)}routes(t){return this.proxy.routes(t)}disable(t,n){return this.proxy.disable(t)}enable(t,n){return this.proxy.enable(t)}index(t,n){return this.proxy.index(t)}version(t,n){return this.proxy.version(t)}}class fy{constructor(e,t){c(this,"values",[]);c(this,"filter",(e,t)=>!0);this.values=e||[],this.filter=t}index(e){const t=e.factor||{},n=new Fe;n.index=e.index,n.sid=e.sid||"",n.limit=e.limit,n.total=e.index*e.limit,n.next=!1,n.data=[];const o=n.index*n.limit,i=(n.index+1)*n.limit;for(let s=o;s<this.values.length&&!(o>=this.values.length);s++){const a=this.values[s];n.data.length<e.limit&&o<=n.total&&n.total<i&&n.data.push(a),(!this.filter||this.filter(a,t))&&n.total++}return n.total>i&&(n.next=!0),n}}class dy{constructor(){c(this,"builtin",d.ServiceProxy.proxy(d.Builtin));c(this,"cache",d.ServiceProxy.proxy(d.Cache));c(this,"cipherEconomy",d.ServiceProxy.proxy(d.CipherEconomy));c(this,"cipherProvider",d.ServiceProxy.proxy(d.CipherProvider));c(this,"cluster",d.ServiceProxy.proxy(d.Cluster));c(this,"commercialize",d.ServiceProxy.proxy(d.Commercialize));c(this,"cryptor",d.ServiceProxy.proxy(d.Cryptor));c(this,"dataHouse",d.ServiceProxy.proxy(d.DataHouse));c(this,"endpoint",d.ServiceProxy.proxy(d.Endpoint));c(this,"evaluator",d.ServiceProxy.proxy(d.Evaluator));c(this,"graph",d.ServiceProxy.proxy(d.Graph));c(this,"kms",d.ServiceProxy.proxy(d.KMS));c(this,"kv",d.ServiceProxy.proxy(d.KV));c(this,"licenser",d.ServiceProxy.proxy(d.Licenser));c(this,"locker",d.ServiceProxy.proxy(d.Locker));c(this,"network",d.ServiceProxy.proxy(d.Network));c(this,"pipeline",d.ServiceProxy.proxy(d.Pipeline));c(this,"publisher",d.ServiceProxy.proxy(d.Publisher));c(this,"registry",d.ServiceProxy.proxy(d.Registry));c(this,"savepoint",d.ServiceProxy.proxy(d.Savepoint));c(this,"scheduler",d.ServiceProxy.proxy(d.Scheduler));c(this,"sequence",d.ServiceProxy.proxy(d.Sequence));c(this,"subscriber",d.ServiceProxy.proxy(d.Subscriber));c(this,"tokenizer",d.ServiceProxy.proxy(d.Tokenizer));c(this,"transporter",d.ServiceProxy.proxy(d.Transporter));c(this,"fileSystem",d.ServiceProxy.proxy(d.FileSystem));c(this,"workflow",d.ServiceProxy.proxy(d.Workflow))}}const py=new dy,ly=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));d.AccessCode=ji,d.AccessGrant=co,d.AccessID=qr,d.AccessToken=an,d.Addrs=Mi,d.Argument=Yo,d.Ark=Oe,d.Body=Re,d.CONSUMER=Ci,d.CRL=Br,d.CacheBody=tt,d.Captcha=or,d.Cause=ut,d.CipherEntity=Gt,d.CipherHello=Qe,d.CipherKey=Pi,d.CipherKeygen=vn,d.CipherObject=ze,d.CipherRegen=Dr,d.CipherSuite=Hn,d.CipherTxEntity=Lr,d.Citizen=Do,d.CommerceEnviron=ir,d.CommerceLicense=rr,d.Context=Ri,d.Credential=jt,d.DataLord=xr,d.Deque=es,d.Document=Pn,d.DocumentMetadata=wn,d.DtxBranch=Qt,d.DtxDefinition=Nn,d.Dynamic=Ur,d.EndpointSticker=va,d.Entry=Hr,d.Env=Zn,d.Environ=xe,d.Event=Ve,d.FileEntry=tr,d.GenericExecution=od,d.GenericInspector=sd,d.GenericParameters=vo,d.GenericReturns=Po,d.Header=vi,d.Hodor=po,d.Hook=ai,d.Idx=Rn,d.Inbound=ao,d.Institution=wi,d.Key=kr,d.KeyCsr=ft,d.Keys=nr,d.Lattice=cn,d.License=ye,d.Location=Tn,d.MPI=Ae,d.MPS=$r,d.Mani=er,d.Mesh=nn,d.MeshCode=Q,d.MeshContext=ci,d.MeshFlags=rn,d.MeshNetwork=uy,d.MeshService=py,d.Metadata=uo,d.MethodInspector=Qo,d.Mock=Eo,d.Mode=_i,d.MpcStream=_o,d.Outbound=zr,d.PROVIDER=cd,d.Packet=Nt,d.Page=Fe,d.Paging=J,d.Payload=Gr,d.Principal=nt,d.Reference=Kt,d.ReferenceInvokeHandler=ud,d.Registration=Je,d.RegistrationKind=fp,d.Routable=ni,d.Route=ue,d.RunMode=Si,d.SPI=Dt,d.Script=Tt,d.Service=dt,d.ServiceInvocation=ad,d.ServiceInvokeHandler=fd,d.ServiceLoader=Le,d.Session=_t,d.StatefulServer=id,d.States=fo,d.Status=g,d.Timeout=Jt,d.Tool=se,d.Topic=je,d.Triplet=$s,d.Types=Sn,d.URC=Et,d.URN=bn,d.URNFlag=$n,d.VTable=fy,d.Versions=Wr,d.WorkChart=pt,d.WorkContext=ln,d.WorkGroup=pn,d.WorkIntent=An,d.WorkRoutine=qn,d.WorkSide=Vr,d.WorkTask=dn,d.WorkVertex=He,d.Worker=Be,d.binding=tp,d.composite=wo,d.context=O,d.dict=B,d.errorf=Fr,d.globalPtr=Qn,d.index=p,d.instanceOfCodeable=Zo,d.list=Ye,d.mpi=R,d.mps=ap,d.returnType=_p,d.spi=L,d.withMode=Qd,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|