@agentlang/lstudio 0.2.2 → 0.2.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.
Files changed (30) hide show
  1. package/assets/AwsJson1_1Protocol-DqThCwVi.js +1 -0
  2. package/assets/fs-Sy4Z_cXQ.js +1 -0
  3. package/assets/index--S8Abk3Y.css +1 -0
  4. package/assets/index-3fspw9ap.js +1 -0
  5. package/assets/{index-C8iIEab-.js → index-8tk8u5Iu.js} +1 -1
  6. package/assets/index-Bdy7oQ1C.js +15 -0
  7. package/assets/{index-D4z_hbl0-CUGEU9es.js → index-D4z_hbl0-azG0hCq3.js} +1 -1
  8. package/assets/{index-r7-q4_iF-Cr8pMb-3.js → index-DgJXwFi2-COKHP7FV.js} +1 -1
  9. package/assets/index-FnucrqzJ.js +1 -0
  10. package/assets/{index-Bv8Vsab1.js → index-KfLUFT2R.js} +620 -593
  11. package/assets/index-WGenATk8-DLiSeXer.js +17 -0
  12. package/assets/{index.browser-DeDPTzNn.js → index.browser-WNfWeocX.js} +4 -4
  13. package/assets/loadCognitoIdentity-CVCxF6wR.js +1 -0
  14. package/assets/loadSts-CIaNyXtH.js +1 -0
  15. package/assets/{replService-CCPvmbEx.js → replService-CwLBu50I.js} +1 -1
  16. package/assets/{util-Bzh8z3-b.js → util-CLXELMCc.js} +1 -1
  17. package/assets/{winston-1qzyIKCb-Co5uzAFy.js → winston-1qzyIKCb-CLqf9ap0.js} +1 -1
  18. package/assets/{winston-9LLUP2iD.js → winston-B8JOgq_0.js} +1 -1
  19. package/assets/{winston-CtxF18qc-yrByRl6_.js → winston-CtxF18qc-kuRoprZ1.js} +1 -1
  20. package/assets/{winston-BmZyhpGP.js → winston-_L517l6d.js} +1 -1
  21. package/index.html +3 -3
  22. package/package.json +1 -1
  23. package/assets/AwsJson1_1Protocol-BuTiU31K.js +0 -1
  24. package/assets/index-B-OvH2Yt.css +0 -1
  25. package/assets/index-BGkQxT4m-C1mCQewh.js +0 -17
  26. package/assets/index-CIghMZpI.js +0 -1
  27. package/assets/index-CSWrk3qy.js +0 -15
  28. package/assets/index-Dds8U7KS.js +0 -1
  29. package/assets/loadCognitoIdentity-ieB3gz6G.js +0 -1
  30. package/assets/loadSts-BPFRej1_.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as sr,b as X,c as wr,d as jr,e as Or,f as vr,g as Br,h as Tr,i as Ir}from"./index-Bv8Vsab1.js";var er={},nr={},tr,cr;function Pr(){if(cr)return tr;cr=1;var i=sr()(),p=X(),h=p("Object.prototype.toString"),l=function(u){return i&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:h(u)==="[object Arguments]"},g=function(u){return l(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&h(u)!=="[object Array]"&&"callee"in u&&h(u.callee)==="[object Function]"},d=(function(){return l(arguments)})();return l.isLegacyArguments=g,tr=d?l:g,tr}var ir,yr;function Er(){if(yr)return ir;yr=1;var i=X(),p=sr()(),h=jr(),l=wr(),g;if(p){var d=i("RegExp.prototype.exec"),A={},u=function(){throw A},m={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=u),g=function(S){if(!S||typeof S!="object")return!1;var I=l(S,"lastIndex"),B=I&&h(I,"value");if(!B)return!1;try{d(S,m)}catch(F){return F===A}}}else{var O=i("Object.prototype.toString"),k="[object RegExp]";g=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:O(S)===k}}return ir=g,ir}var or,lr;function kr(){if(lr)return or;lr=1;var i=X(),p=Er(),h=i("RegExp.prototype.exec"),l=Or();return or=function(d){if(!p(d))throw new l("`regex` must be a RegExp");return function(u){return h(d,u)!==null}},or}var fr,pr;function Fr(){if(pr)return fr;pr=1;const i=function*(){}.constructor;return fr=()=>i,fr}var ur,gr;function Rr(){if(gr)return ur;gr=1;var i=X(),p=kr(),h=p(/^\s*(?:function)?\*/),l=sr()(),g=vr(),d=i("Object.prototype.toString"),A=i("Function.prototype.toString"),u=Fr();return ur=function(O){if(typeof O!="function")return!1;if(h(A(O)))return!0;if(!l){var k=d(O);return k==="[object GeneratorFunction]"}if(!g)return!1;var j=u();return j&&g(O)===j.prototype},ur}var dr;function Dr(){return dr||(dr=1,(function(i){var p=Pr(),h=Rr(),l=Tr(),g=Br();function d(n){return n.call.bind(n)}var A=typeof BigInt<"u",u=typeof Symbol<"u",m=d(Object.prototype.toString),O=d(Number.prototype.valueOf),k=d(String.prototype.valueOf),j=d(Boolean.prototype.valueOf);if(A)var S=d(BigInt.prototype.valueOf);if(u)var I=d(Symbol.prototype.valueOf);function B(n,Sr){if(typeof n!="object")return!1;try{return Sr(n),!0}catch{return!1}}i.isArgumentsObject=p,i.isGeneratorFunction=h,i.isTypedArray=g;function F(n){return typeof Promise<"u"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}i.isPromise=F;function Y(n){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):g(n)||r(n)}i.isArrayBufferView=Y;function H(n){return l(n)==="Uint8Array"}i.isUint8Array=H;function C(n){return l(n)==="Uint8ClampedArray"}i.isUint8ClampedArray=C;function U(n){return l(n)==="Uint16Array"}i.isUint16Array=U;function x(n){return l(n)==="Uint32Array"}i.isUint32Array=x;function J(n){return l(n)==="Int8Array"}i.isInt8Array=J;function q(n){return l(n)==="Int16Array"}i.isInt16Array=q;function $(n){return l(n)==="Int32Array"}i.isInt32Array=$;function T(n){return l(n)==="Float32Array"}i.isFloat32Array=T;function R(n){return l(n)==="Float64Array"}i.isFloat64Array=R;function P(n){return l(n)==="BigInt64Array"}i.isBigInt64Array=P;function M(n){return l(n)==="BigUint64Array"}i.isBigUint64Array=M;function v(n){return m(n)==="[object Map]"}v.working=typeof Map<"u"&&v(new Map);function z(n){return typeof Map>"u"?!1:v.working?v(n):n instanceof Map}i.isMap=z;function G(n){return m(n)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function V(n){return typeof Set>"u"?!1:G.working?G(n):n instanceof Set}i.isSet=V;function E(n){return m(n)==="[object WeakMap]"}E.working=typeof WeakMap<"u"&&E(new WeakMap);function rr(n){return typeof WeakMap>"u"?!1:E.working?E(n):n instanceof WeakMap}i.isWeakMap=rr;function _(n){return m(n)==="[object WeakSet]"}_.working=typeof WeakSet<"u"&&_(new WeakSet);function L(n){return _(n)}i.isWeakSet=L;function w(n){return m(n)==="[object ArrayBuffer]"}w.working=typeof ArrayBuffer<"u"&&w(new ArrayBuffer);function Z(n){return typeof ArrayBuffer>"u"?!1:w.working?w(n):n instanceof ArrayBuffer}i.isArrayBuffer=Z;function N(n){return m(n)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function r(n){return typeof DataView>"u"?!1:N.working?N(n):n instanceof DataView}i.isDataView=r;var e=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function t(n){return m(n)==="[object SharedArrayBuffer]"}function o(n){return typeof e>"u"?!1:(typeof t.working>"u"&&(t.working=t(new e)),t.working?t(n):n instanceof e)}i.isSharedArrayBuffer=o;function s(n){return m(n)==="[object AsyncFunction]"}i.isAsyncFunction=s;function c(n){return m(n)==="[object Map Iterator]"}i.isMapIterator=c;function f(n){return m(n)==="[object Set Iterator]"}i.isSetIterator=f;function a(n){return m(n)==="[object Generator]"}i.isGeneratorObject=a;function y(n){return m(n)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=y;function b(n){return B(n,O)}i.isNumberObject=b;function D(n){return B(n,k)}i.isStringObject=D;function K(n){return B(n,j)}i.isBooleanObject=K;function W(n){return A&&B(n,S)}i.isBigIntObject=W;function Q(n){return u&&B(n,I)}i.isSymbolObject=Q;function hr(n){return b(n)||D(n)||K(n)||W(n)||Q(n)}i.isBoxedPrimitive=hr;function Ar(n){return typeof Uint8Array<"u"&&(Z(n)||o(n))}i.isAnyArrayBuffer=Ar,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(i,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})})(nr)),nr}var ar,mr;function Ur(){return mr||(mr=1,ar=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}),ar}var br;function zr(){return br||(br=1,(function(i){var p={},h=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},s=0;s<t.length;s++)o[t[s]]=Object.getOwnPropertyDescriptor(e,t[s]);return o},l=/%[sdj%]/g;i.format=function(r){if(!q(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(u(arguments[t]));return e.join(" ")}for(var t=1,o=arguments,s=o.length,c=String(r).replace(l,function(a){if(a==="%%")return"%";if(t>=s)return a;switch(a){case"%s":return String(o[t++]);case"%d":return Number(o[t++]);case"%j":try{return JSON.stringify(o[t++])}catch{return"[Circular]"}default:return a}}),f=o[t];t<s;f=o[++t])U(f)||!P(f)?c+=" "+f:c+=" "+u(f);return c},i.deprecate=function(r,e){if(typeof process<"u"&&process.noDeprecation===!0)return r;if(typeof process>"u")return function(){return i.deprecate(r,e).apply(this,arguments)};var t=!1;function o(){if(!t){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return o};var g={},d=/^$/;if(p.NODE_DEBUG){var A=p.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+A+"$","i")}i.debuglog=function(r){if(r=r.toUpperCase(),!g[r])if(d.test(r)){var e=process.pid;g[r]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",r,e,t)}}else g[r]=function(){};return g[r]};function u(r,e){var t={seen:[],stylize:O};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C(e)?t.showHidden=e:e&&i._extend(t,e),T(t.showHidden)&&(t.showHidden=!1),T(t.depth)&&(t.depth=2),T(t.colors)&&(t.colors=!1),T(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=m),j(t,r,t.depth)}i.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(r,e){var t=u.styles[e];return t?"\x1B["+u.colors[t][0]+"m"+r+"\x1B["+u.colors[t][1]+"m":r}function O(r,e){return r}function k(r){var e={};return r.forEach(function(t,o){e[t]=!0}),e}function j(r,e,t){if(r.customInspect&&e&&z(e.inspect)&&e.inspect!==i.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(t,r);return q(o)||(o=j(r,o,t)),o}var s=S(r,e);if(s)return s;var c=Object.keys(e),f=k(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(e)),v(e)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return I(e);if(c.length===0){if(z(e)){var a=e.name?": "+e.name:"";return r.stylize("[Function"+a+"]","special")}if(R(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(M(e))return r.stylize(Date.prototype.toString.call(e),"date");if(v(e))return I(e)}var y="",b=!1,D=["{","}"];if(H(e)&&(b=!0,D=["[","]"]),z(e)){var K=e.name?": "+e.name:"";y=" [Function"+K+"]"}if(R(e)&&(y=" "+RegExp.prototype.toString.call(e)),M(e)&&(y=" "+Date.prototype.toUTCString.call(e)),v(e)&&(y=" "+I(e)),c.length===0&&(!b||e.length==0))return D[0]+y+D[1];if(t<0)return R(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var W;return b?W=B(r,e,t,f,c):W=c.map(function(Q){return F(r,e,t,f,Q,b)}),r.seen.pop(),Y(W,y,D)}function S(r,e){if(T(e))return r.stylize("undefined","undefined");if(q(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(J(e))return r.stylize(""+e,"number");if(C(e))return r.stylize(""+e,"boolean");if(U(e))return r.stylize("null","null")}function I(r){return"["+Error.prototype.toString.call(r)+"]"}function B(r,e,t,o,s){for(var c=[],f=0,a=e.length;f<a;++f)L(e,String(f))?c.push(F(r,e,t,o,String(f),!0)):c.push("");return s.forEach(function(y){y.match(/^\d+$/)||c.push(F(r,e,t,o,y,!0))}),c}function F(r,e,t,o,s,c){var f,a,y;if(y=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},y.get?y.set?a=r.stylize("[Getter/Setter]","special"):a=r.stylize("[Getter]","special"):y.set&&(a=r.stylize("[Setter]","special")),L(o,s)||(f="["+s+"]"),a||(r.seen.indexOf(y.value)<0?(U(t)?a=j(r,y.value,null):a=j(r,y.value,t-1),a.indexOf(`
1
+ import{a as sr,b as X,c as wr,d as jr,e as Or,f as vr,g as Br,h as Tr,i as Ir}from"./index-KfLUFT2R.js";var er={},nr={},tr,cr;function Pr(){if(cr)return tr;cr=1;var i=sr()(),p=X(),h=p("Object.prototype.toString"),l=function(u){return i&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:h(u)==="[object Arguments]"},g=function(u){return l(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&h(u)!=="[object Array]"&&"callee"in u&&h(u.callee)==="[object Function]"},d=(function(){return l(arguments)})();return l.isLegacyArguments=g,tr=d?l:g,tr}var ir,yr;function Er(){if(yr)return ir;yr=1;var i=X(),p=sr()(),h=jr(),l=wr(),g;if(p){var d=i("RegExp.prototype.exec"),A={},u=function(){throw A},m={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=u),g=function(S){if(!S||typeof S!="object")return!1;var I=l(S,"lastIndex"),B=I&&h(I,"value");if(!B)return!1;try{d(S,m)}catch(F){return F===A}}}else{var O=i("Object.prototype.toString"),k="[object RegExp]";g=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:O(S)===k}}return ir=g,ir}var or,lr;function kr(){if(lr)return or;lr=1;var i=X(),p=Er(),h=i("RegExp.prototype.exec"),l=Or();return or=function(d){if(!p(d))throw new l("`regex` must be a RegExp");return function(u){return h(d,u)!==null}},or}var fr,pr;function Fr(){if(pr)return fr;pr=1;const i=function*(){}.constructor;return fr=()=>i,fr}var ur,gr;function Rr(){if(gr)return ur;gr=1;var i=X(),p=kr(),h=p(/^\s*(?:function)?\*/),l=sr()(),g=vr(),d=i("Object.prototype.toString"),A=i("Function.prototype.toString"),u=Fr();return ur=function(O){if(typeof O!="function")return!1;if(h(A(O)))return!0;if(!l){var k=d(O);return k==="[object GeneratorFunction]"}if(!g)return!1;var j=u();return j&&g(O)===j.prototype},ur}var dr;function Dr(){return dr||(dr=1,(function(i){var p=Pr(),h=Rr(),l=Tr(),g=Br();function d(n){return n.call.bind(n)}var A=typeof BigInt<"u",u=typeof Symbol<"u",m=d(Object.prototype.toString),O=d(Number.prototype.valueOf),k=d(String.prototype.valueOf),j=d(Boolean.prototype.valueOf);if(A)var S=d(BigInt.prototype.valueOf);if(u)var I=d(Symbol.prototype.valueOf);function B(n,Sr){if(typeof n!="object")return!1;try{return Sr(n),!0}catch{return!1}}i.isArgumentsObject=p,i.isGeneratorFunction=h,i.isTypedArray=g;function F(n){return typeof Promise<"u"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}i.isPromise=F;function Y(n){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):g(n)||r(n)}i.isArrayBufferView=Y;function H(n){return l(n)==="Uint8Array"}i.isUint8Array=H;function C(n){return l(n)==="Uint8ClampedArray"}i.isUint8ClampedArray=C;function U(n){return l(n)==="Uint16Array"}i.isUint16Array=U;function x(n){return l(n)==="Uint32Array"}i.isUint32Array=x;function J(n){return l(n)==="Int8Array"}i.isInt8Array=J;function q(n){return l(n)==="Int16Array"}i.isInt16Array=q;function $(n){return l(n)==="Int32Array"}i.isInt32Array=$;function T(n){return l(n)==="Float32Array"}i.isFloat32Array=T;function R(n){return l(n)==="Float64Array"}i.isFloat64Array=R;function P(n){return l(n)==="BigInt64Array"}i.isBigInt64Array=P;function M(n){return l(n)==="BigUint64Array"}i.isBigUint64Array=M;function v(n){return m(n)==="[object Map]"}v.working=typeof Map<"u"&&v(new Map);function z(n){return typeof Map>"u"?!1:v.working?v(n):n instanceof Map}i.isMap=z;function G(n){return m(n)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function V(n){return typeof Set>"u"?!1:G.working?G(n):n instanceof Set}i.isSet=V;function E(n){return m(n)==="[object WeakMap]"}E.working=typeof WeakMap<"u"&&E(new WeakMap);function rr(n){return typeof WeakMap>"u"?!1:E.working?E(n):n instanceof WeakMap}i.isWeakMap=rr;function _(n){return m(n)==="[object WeakSet]"}_.working=typeof WeakSet<"u"&&_(new WeakSet);function L(n){return _(n)}i.isWeakSet=L;function w(n){return m(n)==="[object ArrayBuffer]"}w.working=typeof ArrayBuffer<"u"&&w(new ArrayBuffer);function Z(n){return typeof ArrayBuffer>"u"?!1:w.working?w(n):n instanceof ArrayBuffer}i.isArrayBuffer=Z;function N(n){return m(n)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function r(n){return typeof DataView>"u"?!1:N.working?N(n):n instanceof DataView}i.isDataView=r;var e=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function t(n){return m(n)==="[object SharedArrayBuffer]"}function o(n){return typeof e>"u"?!1:(typeof t.working>"u"&&(t.working=t(new e)),t.working?t(n):n instanceof e)}i.isSharedArrayBuffer=o;function s(n){return m(n)==="[object AsyncFunction]"}i.isAsyncFunction=s;function c(n){return m(n)==="[object Map Iterator]"}i.isMapIterator=c;function f(n){return m(n)==="[object Set Iterator]"}i.isSetIterator=f;function a(n){return m(n)==="[object Generator]"}i.isGeneratorObject=a;function y(n){return m(n)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=y;function b(n){return B(n,O)}i.isNumberObject=b;function D(n){return B(n,k)}i.isStringObject=D;function K(n){return B(n,j)}i.isBooleanObject=K;function W(n){return A&&B(n,S)}i.isBigIntObject=W;function Q(n){return u&&B(n,I)}i.isSymbolObject=Q;function hr(n){return b(n)||D(n)||K(n)||W(n)||Q(n)}i.isBoxedPrimitive=hr;function Ar(n){return typeof Uint8Array<"u"&&(Z(n)||o(n))}i.isAnyArrayBuffer=Ar,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(i,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})})(nr)),nr}var ar,mr;function Ur(){return mr||(mr=1,ar=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}),ar}var br;function zr(){return br||(br=1,(function(i){var p={},h=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},s=0;s<t.length;s++)o[t[s]]=Object.getOwnPropertyDescriptor(e,t[s]);return o},l=/%[sdj%]/g;i.format=function(r){if(!q(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(u(arguments[t]));return e.join(" ")}for(var t=1,o=arguments,s=o.length,c=String(r).replace(l,function(a){if(a==="%%")return"%";if(t>=s)return a;switch(a){case"%s":return String(o[t++]);case"%d":return Number(o[t++]);case"%j":try{return JSON.stringify(o[t++])}catch{return"[Circular]"}default:return a}}),f=o[t];t<s;f=o[++t])U(f)||!P(f)?c+=" "+f:c+=" "+u(f);return c},i.deprecate=function(r,e){if(typeof process<"u"&&process.noDeprecation===!0)return r;if(typeof process>"u")return function(){return i.deprecate(r,e).apply(this,arguments)};var t=!1;function o(){if(!t){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return o};var g={},d=/^$/;if(p.NODE_DEBUG){var A=p.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+A+"$","i")}i.debuglog=function(r){if(r=r.toUpperCase(),!g[r])if(d.test(r)){var e=process.pid;g[r]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",r,e,t)}}else g[r]=function(){};return g[r]};function u(r,e){var t={seen:[],stylize:O};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C(e)?t.showHidden=e:e&&i._extend(t,e),T(t.showHidden)&&(t.showHidden=!1),T(t.depth)&&(t.depth=2),T(t.colors)&&(t.colors=!1),T(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=m),j(t,r,t.depth)}i.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(r,e){var t=u.styles[e];return t?"\x1B["+u.colors[t][0]+"m"+r+"\x1B["+u.colors[t][1]+"m":r}function O(r,e){return r}function k(r){var e={};return r.forEach(function(t,o){e[t]=!0}),e}function j(r,e,t){if(r.customInspect&&e&&z(e.inspect)&&e.inspect!==i.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(t,r);return q(o)||(o=j(r,o,t)),o}var s=S(r,e);if(s)return s;var c=Object.keys(e),f=k(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(e)),v(e)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return I(e);if(c.length===0){if(z(e)){var a=e.name?": "+e.name:"";return r.stylize("[Function"+a+"]","special")}if(R(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(M(e))return r.stylize(Date.prototype.toString.call(e),"date");if(v(e))return I(e)}var y="",b=!1,D=["{","}"];if(H(e)&&(b=!0,D=["[","]"]),z(e)){var K=e.name?": "+e.name:"";y=" [Function"+K+"]"}if(R(e)&&(y=" "+RegExp.prototype.toString.call(e)),M(e)&&(y=" "+Date.prototype.toUTCString.call(e)),v(e)&&(y=" "+I(e)),c.length===0&&(!b||e.length==0))return D[0]+y+D[1];if(t<0)return R(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var W;return b?W=B(r,e,t,f,c):W=c.map(function(Q){return F(r,e,t,f,Q,b)}),r.seen.pop(),Y(W,y,D)}function S(r,e){if(T(e))return r.stylize("undefined","undefined");if(q(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(J(e))return r.stylize(""+e,"number");if(C(e))return r.stylize(""+e,"boolean");if(U(e))return r.stylize("null","null")}function I(r){return"["+Error.prototype.toString.call(r)+"]"}function B(r,e,t,o,s){for(var c=[],f=0,a=e.length;f<a;++f)L(e,String(f))?c.push(F(r,e,t,o,String(f),!0)):c.push("");return s.forEach(function(y){y.match(/^\d+$/)||c.push(F(r,e,t,o,y,!0))}),c}function F(r,e,t,o,s,c){var f,a,y;if(y=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},y.get?y.set?a=r.stylize("[Getter/Setter]","special"):a=r.stylize("[Getter]","special"):y.set&&(a=r.stylize("[Setter]","special")),L(o,s)||(f="["+s+"]"),a||(r.seen.indexOf(y.value)<0?(U(t)?a=j(r,y.value,null):a=j(r,y.value,t-1),a.indexOf(`
2
2
  `)>-1&&(c?a=a.split(`
3
3
  `).map(function(b){return" "+b}).join(`
4
4
  `).slice(2):a=`
@@ -1,4 +1,4 @@
1
- import{g as ga}from"./_commonjsHelpers-D6-XlEtG.js";import{r as va}from"./util-Bzh8z3-b.js";import{E as U,L as me}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{c as ae}from"./__vite-browser-external-DLjrMatA.js";import{D as wa,S as je,L as _a}from"./index-DsIu-45t-Bejjlpz4.js";import{l as Sa,u as ce}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{Y as Cr}from"./index-6mKfgpcs-DsgiI2lM.js";var ja=va();const se=ga(ja);var Yr={},Fe={},Ue,$r;function ie(){if($r)return Ue;$r=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(S)}function i(S,a,l){return Object.defineProperty(S,"prototype",{writable:!1}),S}function v(S,a){if(!(S instanceof a))throw new TypeError("Cannot call a class as a function")}function O(S,a,l){return a=_(a),m(S,g()?Reflect.construct(a,l||[],_(S).constructor):a.apply(S,l))}function m(S,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function d(S,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(a&&a.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),a&&R(S,a)}function u(S){var a=typeof Map=="function"?new Map:void 0;return u=function(l){if(l===null||!P(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(l))return a.get(l);a.set(l,s)}function s(){return o(l,arguments,_(this).constructor)}return s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),R(s,l)},u(S)}function o(S,a,l){if(g())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,a);var c=new(S.bind.apply(S,s));return l&&R(c,l.prototype),c}function g(){try{var S=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g=function(){return!!S})()}function P(S){try{return Function.toString.call(S).indexOf("[native code]")!==-1}catch{return typeof S=="function"}}function R(S,a){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,s){return l.__proto__=s,l},R(S,a)}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_(S)}var w=(function(S){function a(l){var s;return v(this,a),s=O(this,a,[`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ import{g as ga}from"./_commonjsHelpers-D6-XlEtG.js";import{r as va}from"./util-CLXELMCc.js";import{E as U,L as me}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{c as ae}from"./__vite-browser-external-DLjrMatA.js";import{D as wa,S as je,L as _a}from"./index-DsIu-45t-Bejjlpz4.js";import{l as Sa,u as ce}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{Y as Cr}from"./index-6mKfgpcs-DsgiI2lM.js";var ja=va();const se=ga(ja);var Yr={},Fe={},Ue,$r;function ie(){if($r)return Ue;$r=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(S)}function i(S,a,l){return Object.defineProperty(S,"prototype",{writable:!1}),S}function v(S,a){if(!(S instanceof a))throw new TypeError("Cannot call a class as a function")}function O(S,a,l){return a=_(a),m(S,g()?Reflect.construct(a,l||[],_(S).constructor):a.apply(S,l))}function m(S,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function d(S,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(a&&a.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),a&&R(S,a)}function u(S){var a=typeof Map=="function"?new Map:void 0;return u=function(l){if(l===null||!P(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(l))return a.get(l);a.set(l,s)}function s(){return o(l,arguments,_(this).constructor)}return s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),R(s,l)},u(S)}function o(S,a,l){if(g())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,a);var c=new(S.bind.apply(S,s));return l&&R(c,l.prototype),c}function g(){try{var S=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g=function(){return!!S})()}function P(S){try{return Function.toString.call(S).indexOf("[native code]")!==-1}catch{return typeof S=="function"}}function R(S,a){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,s){return l.__proto__=s,l},R(S,a)}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_(S)}var w=(function(S){function a(l){var s;return v(this,a),s=O(this,a,[`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: `.concat(l.toString().split(`
3
3
  `)[0],`
4
4
  `)]),Error.captureStackTrace(s,a),s}return d(a,S),i(a)})(u(Error));return Ue=function(S){if(S.length>2)throw new w(S);function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=s}a.prototype.transform=S;function l(s){return new a(s)}return l.Format=a,l},Ue}var ke={exports:{}},Gr={exports:{}},Hr={exports:{}},Vr={exports:{}},Ur;function xa(){return Ur||(Ur=1,(function(t){var i={};t.exports=i;var v={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(v).forEach(function(O){var m=v[O],h=i[O]=[];h.open="\x1B["+m[0]+"m",h.close="\x1B["+m[1]+"m"})})(Vr)),Vr.exports}var Jr,Kr;function Ea(){return Kr||(Kr=1,Jr=function(t,i){i=i||U.argv||[];var v=i.indexOf("--"),O=/^-{1,2}/.test(t)?"":"--",m=i.indexOf(O+t);return m!==-1&&(v===-1?!0:m<v)}),Jr}var Je,Zr;function Ma(){if(Zr)return Je;Zr=1;var t=ae,i=Ea(),v=U.env,O=void 0;i("no-color")||i("no-colors")||i("color=false")?O=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(O=!0),"FORCE_COLOR"in v&&(O=v.FORCE_COLOR.length===0||parseInt(v.FORCE_COLOR,10)!==0);function m(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function h(u){if(O===!1)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(u&&!u.isTTY&&O!==!0)return 0;var o=O?1:0;if(U.platform==="win32"){var g=t.release().split(".");return Number(U.versions.node.split(".")[0])>=8&&Number(g[0])>=10&&Number(g[2])>=10586?Number(g[2])>=14931?3:2:1}if("CI"in v)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(R){return R in v})||v.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in v)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(v.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in v){var P=parseInt((v.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(v.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(v.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(v.TERM)||"COLORTERM"in v?1:(v.TERM,o)}function d(u){var o=h(u);return m(o)}return Je={supportsColor:d,stdout:d(U.stdout),stderr:d(U.stderr)},Je}var Qr={exports:{}},Xr;function Oa(){return Xr||(Xr=1,(function(t){t.exports=function(i,v){var O="";i=i||"Run the trap, drop the bass",i=i.split("");var m={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return i.forEach(function(h){h=h.toLowerCase();var d=m[h]||[" "],u=Math.floor(Math.random()*d.length);typeof m[h]<"u"?O+=m[h][u]:O+=h}),O}})(Qr)),Qr.exports}var en={exports:{}},tn;function Pa(){return tn||(tn=1,(function(t){t.exports=function(i,v){i=i||" he is here ";var O={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},m=[].concat(O.up,O.down,O.mid);function h(o){var g=Math.floor(Math.random()*o);return g}function d(o){var g=!1;return m.filter(function(P){g=P===o}),g}function u(o,g){var P="",R,_;g=g||{},g.up=typeof g.up<"u"?g.up:!0,g.mid=typeof g.mid<"u"?g.mid:!0,g.down=typeof g.down<"u"?g.down:!0,g.size=typeof g.size<"u"?g.size:"maxi",o=o.split("");for(_ in o)if(!d(_)){switch(P=P+o[_],R={up:0,down:0,mid:0},g.size){case"mini":R.up=h(8),R.mid=h(2),R.down=h(8);break;case"maxi":R.up=h(16)+3,R.mid=h(4)+1,R.down=h(64)+3;break;default:R.up=h(8)+1,R.mid=h(6)/2,R.down=h(8)+1;break}var w=["up","mid","down"];for(var S in w)for(var a=w[S],l=0;l<=R[a];l++)g[a]&&(P=P+O[a][h(O[a].length)])}return P}return u(i,v)}})(en)),en.exports}var rn={exports:{}},nn;function ka(){return nn||(nn=1,(function(t){t.exports=function(i){return function(v,O,m){if(v===" ")return v;switch(O%3){case 0:return i.red(v);case 1:return i.white(v);case 2:return i.blue(v)}}}})(rn)),rn.exports}var on={exports:{}},an;function Ra(){return an||(an=1,(function(t){t.exports=function(i){return function(v,O,m){return O%2===0?v:i.inverse(v)}}})(on)),on.exports}var sn={exports:{}},un;function Ta(){return un||(un=1,(function(t){t.exports=function(i){var v=["red","yellow","green","blue","magenta"];return function(O,m,h){return O===" "?O:i[v[m++%v.length]](O)}}})(sn)),sn.exports}var ln={exports:{}},cn;function La(){return cn||(cn=1,(function(t){t.exports=function(i){var v=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(O,m,h){return O===" "?O:i[v[Math.round(Math.random()*(v.length-2))]](O)}}})(ln)),ln.exports}var fn;function Ca(){return fn||(fn=1,(function(t){var i={};t.exports=i,i.themes={};var v=se,O=i.styles=xa(),m=Object.defineProperties,h=new RegExp(/[\r\n]+/g);i.supportsColor=Ma().supportsColor,typeof i.enabled>"u"&&(i.enabled=i.supportsColor()!==!1),i.enable=function(){i.enabled=!0},i.disable=function(){i.enabled=!1},i.stripColors=i.strip=function(a){return(""+a).replace(/\x1B\[\d+m/g,"")},i.stylize=function(a,l){if(!i.enabled)return a+"";var s=O[l];return!s&&l in i?i[l](a):s.open+a+s.close};var d=/[|\\{}()[\]^$+*?.]/g,u=function(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(d,"\\$&")};function o(a){var l=function s(){return R.apply(s,arguments)};return l._styles=a,l.__proto__=P,l}var g=(function(){var a={};return O.grey=O.gray,Object.keys(O).forEach(function(l){O[l].closeRe=new RegExp(u(O[l].close),"g"),a[l]={get:function(){return o(this._styles.concat(l))}}}),a})(),P=m(function(){},g);function R(){var a=Array.prototype.slice.call(arguments),l=a.map(function(x){return x!=null&&x.constructor===String?x:v.inspect(x)}).join(" ");if(!i.enabled||!l)return l;for(var s=l.indexOf(`
@@ -1 +1 @@
1
- import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{r as f}from"./winston-BmZyhpGP.js";function c(r,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),l=c({__proto__:null,default:p},[i]);export{l as w};
1
+ import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{r as f}from"./winston-_L517l6d.js";function c(r,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),l=c({__proto__:null,default:p},[i]);export{l as w};
@@ -1 +1 @@
1
- import{f as n}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as f}from"./winston-1qzyIKCb-Co5uzAFy.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-Bzh8z3-b.js";import"./index-Bv8Vsab1.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";function a(o,p){for(var e=0;e<p.length;e++){const t=p[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in o)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),z=a({__proto__:null,default:c},[m]);export{z as w};
1
+ import{f as n}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as f}from"./winston-1qzyIKCb-CLqf9ap0.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-CLXELMCc.js";import"./index-KfLUFT2R.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-B7n8ZNar.js";function a(o,p){for(var e=0;e<p.length;e++){const t=p[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in o)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),z=a({__proto__:null,default:c},[m]);export{z as w};
@@ -1,4 +1,4 @@
1
- import{r as ve}from"./util-Bzh8z3-b.js";import{k as Qo,l as Se,m as Xo,i as ye}from"./index-Bv8Vsab1.js";import{a as ea,c as fe}from"./_commonjsHelpers-D6-XlEtG.js";import{r as re}from"./_commonjs-dynamic-modules-B7n8ZNar.js";var gt={},De={},mt,tn;function ae(){if(tn)return mt;tn=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(h)}function u(h,s,f){return Object.defineProperty(h,"prototype",{writable:!1}),h}function m(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function R(h,s,f){return s=y(s),g(h,v()?Reflect.construct(s,f||[],y(h).constructor):s.apply(h,f))}function g(h,s){if(s&&(e(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(h)}function c(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function p(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),s&&O(h,s)}function a(h){var s=typeof Map=="function"?new Map:void 0;return a=function(o){if(o===null||!b(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(o))return s.get(o);s.set(o,n)}function n(){return i(o,arguments,y(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,o)},a(h)}function i(h,s,f){if(v())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,s);var n=new(h.bind.apply(h,o));return f&&O(n,f.prototype),n}function v(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!h})()}function b(h){try{return Function.toString.call(h).indexOf("[native code]")!==-1}catch{return typeof h=="function"}}function O(h,s){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},O(h,s)}function y(h){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},y(h)}var E=(function(h){function s(f){var o;return m(this,s),o=R(this,s,[`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ import{r as ve}from"./util-CLXELMCc.js";import{k as Qo,l as Se,m as Xo,i as ye}from"./index-KfLUFT2R.js";import{a as ea,c as fe}from"./_commonjsHelpers-D6-XlEtG.js";import{r as re}from"./_commonjs-dynamic-modules-B7n8ZNar.js";var gt={},De={},mt,tn;function ae(){if(tn)return mt;tn=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(h)}function u(h,s,f){return Object.defineProperty(h,"prototype",{writable:!1}),h}function m(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function R(h,s,f){return s=y(s),g(h,v()?Reflect.construct(s,f||[],y(h).constructor):s.apply(h,f))}function g(h,s){if(s&&(e(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(h)}function c(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function p(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),s&&O(h,s)}function a(h){var s=typeof Map=="function"?new Map:void 0;return a=function(o){if(o===null||!b(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(o))return s.get(o);s.set(o,n)}function n(){return i(o,arguments,y(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,o)},a(h)}function i(h,s,f){if(v())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,s);var n=new(h.bind.apply(h,o));return f&&O(n,f.prototype),n}function v(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!h})()}function b(h){try{return Function.toString.call(h).indexOf("[native code]")!==-1}catch{return typeof h=="function"}}function O(h,s){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},O(h,s)}function y(h){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},y(h)}var E=(function(h){function s(f){var o;return m(this,s),o=R(this,s,[`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: `.concat(f.toString().split(`
3
3
  `)[0],`
4
4
  `)]),Error.captureStackTrace(o,s),o}return p(s,h),u(s)})(a(Error));return mt=function(h){if(h.length>2)throw new E(h);function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=o}s.prototype.transform=h;function f(o){return new s(o)}return f.Format=s,f},mt}var je={exports:{}},bt={exports:{}},_t={exports:{}},wt={exports:{}},rn;function ta(){return rn||(rn=1,(function(e){var u={};e.exports=u;var m={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(m).forEach(function(R){var g=m[R],c=u[R]=[];c.open="\x1B["+g[0]+"m",c.close="\x1B["+g[1]+"m"})})(wt)),wt.exports}var St,nn;function ra(){return nn||(nn=1,St=function(e,u){u=u||process.argv||[];var m=u.indexOf("--"),R=/^-{1,2}/.test(e)?"":"--",g=u.indexOf(R+e);return g!==-1&&(m===-1?!0:g<m)}),St}var Et,on;function na(){if(on)return Et;on=1;var e={},u=ra(),m=e,R=void 0;u("no-color")||u("no-colors")||u("color=false")?R=!1:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(R=!0),"FORCE_COLOR"in m&&(R=m.FORCE_COLOR.length===0||parseInt(m.FORCE_COLOR,10)!==0);function g(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function c(a){if(R===!1)return 0;if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2;if(a&&!a.isTTY&&R!==!0)return 0;var i=R?1:0;if("CI"in m)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(b){return b in m})||m.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in m){var v=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return v>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:(m.TERM==="dumb",i)}function p(a){var i=c(a);return g(i)}return Et={supportsColor:p,stdout:p(process.stdout),stderr:p(process.stderr)},Et}var Rt={exports:{}},an;function ia(){return an||(an=1,(function(e){e.exports=function(m,R){var g="";m=m||"Run the trap, drop the bass",m=m.split("");var c={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return m.forEach(function(p){p=p.toLowerCase();var a=c[p]||[" "],i=Math.floor(Math.random()*a.length);typeof c[p]<"u"?g+=c[p][i]:g+=p}),g}})(Rt)),Rt.exports}var Ot={exports:{}},un;function oa(){return un||(un=1,(function(e){e.exports=function(m,R){m=m||" he is here ";var g={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},c=[].concat(g.up,g.down,g.mid);function p(v){var b=Math.floor(Math.random()*v);return b}function a(v){var b=!1;return c.filter(function(O){b=O===v}),b}function i(v,b){var O="",y,E;b=b||{},b.up=typeof b.up<"u"?b.up:!0,b.mid=typeof b.mid<"u"?b.mid:!0,b.down=typeof b.down<"u"?b.down:!0,b.size=typeof b.size<"u"?b.size:"maxi",v=v.split("");for(E in v)if(!a(E)){switch(O=O+v[E],y={up:0,down:0,mid:0},b.size){case"mini":y.up=p(8),y.mid=p(2),y.down=p(8);break;case"maxi":y.up=p(16)+3,y.mid=p(4)+1,y.down=p(64)+3;break;default:y.up=p(8)+1,y.mid=p(6)/2,y.down=p(8)+1;break}var h=["up","mid","down"];for(var s in h)for(var f=h[s],o=0;o<=y[f];o++)b[f]&&(O=O+g[f][p(g[f].length)])}return O}return i(m,R)}})(Ot)),Ot.exports}var Pt={exports:{}},sn;function aa(){return sn||(sn=1,(function(e){e.exports=function(u){return function(m,R,g){if(m===" ")return m;switch(R%3){case 0:return u.red(m);case 1:return u.white(m);case 2:return u.blue(m)}}}})(Pt)),Pt.exports}var Tt={exports:{}},fn;function ua(){return fn||(fn=1,(function(e){e.exports=function(u){return function(m,R,g){return R%2===0?m:u.inverse(m)}}})(Tt)),Tt.exports}var jt={exports:{}},ln;function sa(){return ln||(ln=1,(function(e){e.exports=function(u){var m=["red","yellow","green","blue","magenta"];return function(R,g,c){return R===" "?R:u[m[g++%m.length]](R)}}})(jt)),jt.exports}var Mt={exports:{}},cn;function fa(){return cn||(cn=1,(function(e){e.exports=function(u){var m=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(R,g,c){return R===" "?R:u[m[Math.round(Math.random()*(m.length-2))]](R)}}})(Mt)),Mt.exports}var dn;function la(){return dn||(dn=1,(function(e){var u={};e.exports=u,u.themes={};var m=ve(),R=u.styles=ta(),g=Object.defineProperties,c=new RegExp(/[\r\n]+/g);u.supportsColor=na().supportsColor,typeof u.enabled>"u"&&(u.enabled=u.supportsColor()!==!1),u.enable=function(){u.enabled=!0},u.disable=function(){u.enabled=!1},u.stripColors=u.strip=function(s){return(""+s).replace(/\x1B\[\d+m/g,"")},u.stylize=function(f,o){if(!u.enabled)return f+"";var n=R[o];return!n&&o in u?u[o](f):n.open+f+n.close};var p=/[|\\{}()[\]^$+*?.]/g,a=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(p,"\\$&")};function i(s){var f=function o(){return O.apply(o,arguments)};return f._styles=s,f.__proto__=b,f}var v=(function(){var s={};return R.grey=R.gray,Object.keys(R).forEach(function(f){R[f].closeRe=new RegExp(a(R[f].close),"g"),s[f]={get:function(){return i(this._styles.concat(f))}}}),s})(),b=g(function(){},v);function O(){var s=Array.prototype.slice.call(arguments),f=s.map(function(_){return _!=null&&_.constructor===String?_:m.inspect(_)}).join(" ");if(!u.enabled||!f)return f;for(var o=f.indexOf(`
package/index.html CHANGED
@@ -10,14 +10,14 @@
10
10
  <link rel="preconnect" href="https://fonts.googleapis.com">
11
11
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12
12
  <link href="https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap" rel="stylesheet">
13
- <script type="module" crossorigin src="/assets/index-Bv8Vsab1.js"></script>
13
+ <script type="module" crossorigin src="/assets/index-KfLUFT2R.js"></script>
14
14
  <link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-D6-XlEtG.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/index-ChvoNxcO.js">
16
16
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-BlTxHScW.js">
17
17
  <link rel="modulepreload" crossorigin href="/assets/__vite-browser-external-DLjrMatA.js">
18
18
  <link rel="modulepreload" crossorigin href="/assets/inherits_browser-nmOknR35-Bp0mvRSL.js">
19
- <link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js">
20
19
  <link rel="modulepreload" crossorigin href="/assets/index-6mKfgpcs-DsgiI2lM.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js">
21
21
  <link rel="modulepreload" crossorigin href="/assets/index-DSosZ5sh-Ceejs_jv.js">
22
22
  <link rel="modulepreload" crossorigin href="/assets/index-DsIu-45t-Bejjlpz4.js">
23
23
  <link rel="modulepreload" crossorigin href="/assets/index-69shuAsh-DF18H7zf.js">
@@ -25,7 +25,7 @@
25
25
  <link rel="modulepreload" crossorigin href="/assets/index.browser-BHPvGrwi-6Mh8eUw-.js">
26
26
  <link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js">
27
27
  <link rel="modulepreload" crossorigin href="/assets/_commonjs-dynamic-modules-B7n8ZNar.js">
28
- <link rel="stylesheet" crossorigin href="/assets/index-B-OvH2Yt.css">
28
+ <link rel="stylesheet" crossorigin href="/assets/index--S8Abk3Y.css">
29
29
  </head>
30
30
  <body>
31
31
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlang/lstudio",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1 +0,0 @@
1
- import{N as h,c as T,S as y,b as u,d as N,L as w,e as b,f as _,v as R,R as z,P as E,h as J,T as M}from"./index-CSWrk3qy.js";import{t as D,a as I,p as j,b as O,c as A,d as S,e as k}from"./normalizeProvider-EC8cbfMc.js";function B(f,t,e){if(e?.source){const i=e.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||i!==String(t)))return i.includes(".")?new h(i,"bigDecimal"):BigInt(i)}return t}const V=(f,t)=>T(f,t).then(e=>(t?.utf8Encoder??D)(e)),Q=(f,t)=>V(f,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(i){throw i?.name==="SyntaxError"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}return{}}),$=(f,t)=>{const e=(n,r)=>Object.keys(n).find(o=>o.toLowerCase()===r.toLowerCase()),i=n=>{let r=n;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r.indexOf("#")>=0&&(r=r.split("#")[1]),r},s=e(f.headers,"x-amzn-errortype");if(s!==void 0)return i(f.headers[s]);if(t&&typeof t=="object"){const n=e(t,"code");if(n&&t[n]!==void 0)return i(t[n]);if(t.__type!==void 0)return i(t.__type)}};class L extends y{settings;constructor(t){super(),this.settings=t}async read(t,e){return this._read(t,typeof e=="string"?JSON.parse(e,B):await Q(e,this.serdeContext))}readObject(t,e){return this._read(t,e)}_read(t,e){const i=e!==null&&typeof e=="object",s=u.of(t);if(i){if(s.isStructSchema()){const r={};for(const[o,c]of N(s,e,this.settings.jsonName?"jsonName":!1)){const a=this.settings.jsonName?c.getMergedTraits().jsonName??o:o,m=this._read(c,e[a]);m!=null&&(r[o]=m)}return r}if(Array.isArray(e)&&s.isListSchema()){const r=s.getValueSchema(),o=[],c=!!s.getMergedTraits().sparse;for(const a of e)(c||a!=null)&&o.push(this._read(r,a));return o}if(s.isMapSchema()){const r=s.getValueSchema(),o={},c=!!s.getMergedTraits().sparse;for(const[a,m]of Object.entries(e))(c||m!=null)&&(o[a]=this._read(r,m));return o}}if(s.isBlobSchema()&&typeof e=="string")return I(e);const n=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof e=="string"&&n)return n==="application/json"||n.endsWith("+json")?w.from(e):e;if(s.isTimestampSchema()&&e!=null)switch(b(s,this.settings)){case 5:return A(e);case 6:return O(e);case 7:return j(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(s.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(s.isBigDecimalSchema()&&e!=null){if(e instanceof h)return e;const r=e;return r.type==="bigDecimal"&&"string"in r?new h(r.string,r.type):new h(String(e),"bigDecimal")}if(s.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(s.isDocumentSchema())if(i){const r=Array.isArray(e)?[]:{};for(const[o,c]of Object.entries(e))c instanceof h?r[o]=c:r[o]=this._read(s,c);return r}else return structuredClone(e);return e}}const l="Ν";class P{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,e)=>{if(e instanceof h){const i=`${l+"nv"+this.counter++}_`+e.string;return this.values.set(`"${i}"`,e.string),i}if(typeof e=="bigint"){const i=e.toString(),s=`${l+"b"+this.counter++}_`+i;return this.values.set(`"${s}"`,i),s}return e}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(const[e,i]of this.values)t=t.replace(e,i);return t}}class F extends y{settings;buffer;useReplacer=!1;rootSchema;constructor(t){super(),this.settings=t}write(t,e){this.rootSchema=u.of(t),this.buffer=this._write(this.rootSchema,e)}writeDiscriminatedDocument(t,e){this.write(t,e),typeof this.buffer=="object"&&(this.buffer.__type=u.of(t).getName(!0))}flush(){const{rootSchema:t,useReplacer:e}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!e)return JSON.stringify(this.buffer);const i=new P;return i.replaceInJson(JSON.stringify(this.buffer,i.createReplacer(),0))}return this.buffer}_write(t,e,i){const s=e!==null&&typeof e=="object",n=u.of(t);if(s){if(n.isStructSchema()){const r={};for(const[o,c]of _(n,e)){const a=this._write(c,e[o],n);if(a!==void 0){const m=c.getMergedTraits().jsonName,p=this.settings.jsonName?m??o:o;r[p]=a}}return r}if(Array.isArray(e)&&n.isListSchema()){const r=n.getValueSchema(),o=[],c=!!n.getMergedTraits().sparse;for(const a of e)(c||a!=null)&&o.push(this._write(r,a));return o}if(n.isMapSchema()){const r=n.getValueSchema(),o={},c=!!n.getMergedTraits().sparse;for(const[a,m]of Object.entries(e))(c||m!=null)&&(o[a]=this._write(r,m));return o}if(e instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema()))return n===this.rootSchema?e:(this.serdeContext?.base64Encoder??S)(e);if(e instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema()))switch(b(n,this.settings)){case 5:return e.toISOString().replace(".000Z","Z");case 6:return k(e);case 7:return e.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",e),e.getTime()/1e3}e instanceof h&&(this.useReplacer=!0)}if(!(e===null&&i?.isStructSchema())){if(n.isStringSchema()){if(typeof e>"u"&&n.isIdempotencyToken())return R();const r=n.getMergedTraits().mediaType;return e!=null&&r&&(r==="application/json"||r.endsWith("+json"))?w.from(e):e}if(typeof e=="number"&&n.isNumericSchema())return Math.abs(e)===1/0||isNaN(e)?String(e):e;if(typeof e=="string"&&n.isBlobSchema())return n===this.rootSchema?e:(this.serdeContext?.base64Encoder??S)(e);if(typeof e=="bigint"&&(this.useReplacer=!0),n.isDocumentSchema())if(s){const r=Array.isArray(e)?[]:{};for(const[o,c]of Object.entries(e))c instanceof h?(this.useReplacer=!0,r[o]=c):r[o]=this._write(n,c);return r}else return structuredClone(e);return e}}}class U extends y{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new F(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new L(this.settings);return t.setSerdeContext(this.serdeContext),t}}class q extends z{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:t}),this.serviceTarget=e,this.codec=s??new U({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!i,this.mixin=new E(this.awsQueryCompatible)}async serializeRequest(t,e,i){const s=await super.serializeRequest(t,e,i);return s.path.endsWith("/")||(s.path+="/"),Object.assign(s.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${t.name}`}),this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(J(t.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(t,e,i,s,n){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,i);const r=$(i,s)??"Unknown",{errorSchema:o,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(r,this.options.defaultNamespace,i,s,n,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),a=u.of(o),m=s.message??s.Message??"Unknown",p=M.for(o[1]).getErrorCtor(o)??Error,x=new p(m),d={};for(const[g,C]of a.structIterator())s[g]!=null&&(d[g]=this.codec.createDeserializer().readObject(C,s[g]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,d),this.mixin.decorateServiceException(Object.assign(x,c,{$fault:a.getMergedTraits().error,message:m},d),s)}}class G extends q{constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:i,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}export{G as A};