@agentlang/lstudio 0.5.1 → 0.5.2
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/assets/AwsJson1_1Protocol-DdIGyZVw.js +1 -0
- package/assets/{index-V-xWzSNb.js → fractl_coilot.gif} +0 -0
- package/assets/index-B3X6Xu-W.js +1 -0
- package/assets/index-BEhtjPxy-CBgP3wC4.js +1 -0
- package/assets/{index-DYmn2gQ6-CnjFa625.js → index-BdxSFemm-BKC3Ptjg.js} +1 -1
- package/assets/index-BjQNf7Nf.js +15 -0
- package/assets/index-Br2Hgz2q.js +1 -0
- package/assets/{index-D4z_hbl0-MSJ43mR7.js → index-CSAsH4Cj-CNgNYeys.js} +8 -8
- package/assets/{index-nAh4PLWc.js → index-CbTQ5dVq.js} +1 -1
- package/assets/index-ClUL-R5x.js +1 -0
- package/assets/{index-BFv-M3PX.js → index-CoCLR6CX.js} +5 -5
- package/assets/{index-BJBOx-Z---hbiLl7B.js → index-D3JO_TBD-DrqEk_TF.js} +3 -3
- package/assets/index-DB9kJcqZ.js +5166 -0
- package/assets/index-DSosZ5sh-_5CimrqR.js +1 -0
- package/assets/{index-BitrXVkV.js → index-DlfdnOJV.js} +1 -1
- package/assets/index-DzMfgnJU.css +1 -0
- package/assets/{index-ChvoNxcO.js → index-JiKw9JSs.js} +1 -1
- package/assets/{index-KGBiLwKE-Doz2tX9S.js → index-KGBiLwKE-Kc8k70rJ.js} +4 -4
- package/assets/index-ZTnKX8xy-BNOF_2FA.js +16952 -0
- package/assets/index-mwiGaNy1-DKNEoPya.js +17 -0
- package/assets/index-q0DdgLUs.js +1 -0
- package/assets/index.browser-ClkxIF_a.js +6 -0
- package/assets/inherits_browser-SFmLU6iN-Bpg6Btaw.js +6 -0
- package/assets/loadCognitoIdentity-D3DCDtA_.js +1 -0
- package/assets/loadSts-De9MppCU.js +1 -0
- package/assets/{normalizeProvider-CtDY37Q6.js → normalizeProvider-EC8cbfMc.js} +1 -1
- package/assets/replService-3_Zm3_kc.js +1 -0
- package/assets/util-COkob34j-BZ2TtJP8.js +10 -0
- package/assets/util-CsY--ROm-CHWqg22i.js +1 -0
- package/assets/winston-BSc_Rh2n-BqL-578K.js +46 -0
- package/assets/{winston-dEjhd1YE.js → winston-CPWYjGTE.js} +1 -1
- package/assets/winston-C_b7Zy4p.js +46 -0
- package/assets/winston-tM2NjUgP-Cgaf-Nmz.js +1 -0
- package/index.html +9 -11
- package/package.json +1 -1
- package/assets/_commonjs-dynamic-modules-DkOKMH7F.js +0 -1
- package/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js +0 -1
- package/assets/index-0JmHOPsf.js +0 -1
- package/assets/index-69shuAsh-DF18H7zf.js +0 -1
- package/assets/index-BXMy9UIl.js +0 -1
- package/assets/index-Bto-kj6R-C0A_3Pwb.js +0 -1
- package/assets/index-DPVspNVL.js +0 -1
- package/assets/index-DSosZ5sh-Ceejs_jv.js +0 -1
- package/assets/index-DTNuphFO-Bf5Ad1xs.js +0 -17
- package/assets/index-DdJraFJK.css +0 -1
- package/assets/index-DsIu-45t-Bejjlpz4.js +0 -6
- package/assets/index-Dt_ETtFl.js +0 -1
- package/assets/index.browser-lOmG7_PN.js +0 -6
- package/assets/inherits_browser-nmOknR35-Bp0mvRSL.js +0 -1
- package/assets/loadCognitoIdentity-DZFjtemX.js +0 -1
- package/assets/loadSts-ByIZDCSr.js +0 -1
- package/assets/replService-BZQN4pqx.js +0 -1
- package/assets/resolveDefaultsModeConfig-tQhK1DqL.js +0 -15
- package/assets/util-BtFUhH79.js +0 -10
- package/assets/util-CNqBjtt6-GUXK7Yxz.js +0 -10
- package/assets/util-DZRIOW0Z-CproX86h.js +0 -1
- package/assets/winston-1qzyIKCb-DDRDQd62.js +0 -37
- package/assets/winston-CtxF18qc-BdIq9r55.js +0 -1
- package/assets/winston-WF_w71lY.js +0 -37
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a7 as qe,b as F,e as Se,L as Ge,N as Ee,S as be,U as Je,v as Xe,f as Ze,R as Ye,P as et,h as tt,c as oe,T as C,r as st,n as we,i as rt,E as nt,j as ot,k as it,l as at,p as ct,m as dt,A as ut,o as lt,q as mt,t as ht,D as pt,u as ft,w as gt,x as yt,y as St,z as Et,B as bt,F as wt,G as Pt,H as Tt,I as At,J as xt,K as Ct,M as Rt,a as Dt,O as It,Q as _t,V as Nt,W as $t,X as kt,Y as vt,Z as Mt,_ as Ft,$ as Ot,a0 as Ut,a1 as zt,a2 as Lt,a3 as jt,a4 as Wt,a5 as Kt,a6 as Vt,C as Ht,g as Bt}from"./index-BjQNf7Nf.js";import{a as j,t as W,d as Pe,e as Qt,f as qt,s as Gt,F as Jt}from"./normalizeProvider-EC8cbfMc.js";function ie(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const K="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",V="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",H="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Te="(\\d?\\d)",Ae="(\\d{4})",Xt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Zt=new RegExp(`^${K}, ${Te} ${V} ${Ae} ${H} GMT$`),Yt=new RegExp(`^${K}, ${Te}-${V}-(\\d\\d) ${H} GMT$`),es=new RegExp(`^${K} ${V} ( [1-9]|\\d\\d) ${H} ${Ae}$`),ts=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ss=r=>{if(r==null)return;let t=NaN;if(typeof r=="number")t=r;else if(typeof r=="string"){if(!/^-?\d*\.?\d+$/.test(r))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(r)}else typeof r=="object"&&r.tag===1&&(t=r.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},rs=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=Xt.exec(r);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${r}`);const[,e,s,n,o,i,a,,c,d]=t;x(s,1,12),x(n,1,31),x(o,0,23),x(i,0,59),x(a,0,60);const l=new Date(Date.UTC(Number(e),Number(s)-1,Number(n),Number(o),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(l.setUTCFullYear(Number(e)),d.toUpperCase()!="Z"){const[,f,w,E]=/([+-])(\d\d):(\d\d)/.exec(d)||[void 0,"+",0,0],R=f==="-"?1:-1;l.setTime(l.getTime()+R*(Number(w)*60*60*1e3+Number(E)*60*1e3))}return l},ns=r=>{if(r==null)return;if(typeof r!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,e,s,n,o,i,a,c;if((c=Zt.exec(r))?[,t,e,s,n,o,i,a]=c:(c=Yt.exec(r))?([,t,e,s,n,o,i,a]=c,s=(Number(s)+1900).toString()):(c=es.exec(r))&&([,e,t,n,o,i,a,s]=c),s&&i){const d=Date.UTC(Number(s),ts.indexOf(e),Number(t),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);x(t,1,31),x(n,0,23),x(o,0,59),x(i,0,60);const l=new Date(d);return l.setUTCFullYear(Number(s)),l}throw new TypeError(`Invalid RFC7231 date-time value ${r}.`)};function x(r,t,e){const s=Number(r);if(s<t||s>e)throw new Error(`Value ${s} out of range [${t}, ${e}]`)}const os=r=>{const t=r.length,e=[];let s=!1,n,o=0;for(let i=0;i<t;++i){const a=r[i];switch(a){case'"':n!=="\\"&&(s=!s);break;case",":s||(e.push(r.slice(o,i)),o=i+1);break}n=a}return e.push(r.slice(o)),e.map(i=>{i=i.trim();const a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})};class is extends qe{settings;constructor(t){super(),this.settings=t}read(t,e){const s=F.of(t);if(s.isListSchema())return os(e).map(n=>this.read(s.getValueSchema(),n));if(s.isBlobSchema())return(this.serdeContext?.base64Decoder??j)(e);if(s.isTimestampSchema())switch(Se(s,this.settings)){case 5:return rs(e);case 6:return ns(e);case 7:return ss(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(s.isStringSchema()){const n=s.getMergedTraits().mediaType;let o=e;if(n)return s.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=Ge.from(o)),o}return s.isNumericSchema()?Number(e):s.isBigIntegerSchema()?BigInt(e):s.isBigDecimalSchema()?new Ee(e,"bigDecimal"):s.isBooleanSchema()?String(e).toLowerCase()==="true":e}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??W)((this.serdeContext?.base64Decoder??j)(t))}}const xe=r=>{const t="#text";for(const e in r)r.hasOwnProperty(e)&&r[e][t]!==void 0?r[e]=r[e][t]:typeof r[e]=="object"&&r[e]!==null&&(r[e]=xe(r[e]));return r};let U;function as(r){U||(U=new DOMParser);const t=U.parseFromString(r,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const e=s=>{if(s.nodeType===Node.TEXT_NODE&&s.textContent?.trim())return s.textContent;if(s.nodeType===Node.ELEMENT_NODE){const n=s;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const c of i)o[`${c.name}`]=c.value;const a=Array.from(n.childNodes);for(const c of a){const d=e(c);if(d!=null){const l=c.nodeName;if(a.length===1&&i.length===0&&l==="#text")return d;o[l]?Array.isArray(o[l])?o[l].push(d):o[l]=[o[l],d]:o[l]=d}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[t.documentElement.nodeName]:e(t.documentElement)}}class cs extends be{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new is(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,e,s){const n=F.of(t),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(d=>!!d.getMemberTraits().eventPayload)){const d={},l=Object.keys(o)[0];return o[l].isBlobSchema()?d[l]=e:d[l]=this.read(o[l],e),d}const a=(this.serdeContext?.utf8Encoder??W)(e),c=this.parseXml(a);return this.readSchema(t,s?c[s]:c)}readSchema(t,e){const s=F.of(t);if(s.isUnitSchema())return;const n=s.getMergedTraits();if(s.isListSchema()&&!Array.isArray(e))return this.readSchema(s,[e]);if(e==null)return e;if(typeof e=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(s.isListSchema()){const c=s.getValueSchema(),d=[],l=c.getMergedTraits().xmlName??"member",f=i?e:(e[0]??e)[l],w=Array.isArray(f)?f:[f];for(const E of w)(E!=null||o)&&d.push(this.readSchema(c,E));return d}const a={};if(s.isMapSchema()){const c=s.getKeySchema(),d=s.getValueSchema();let l;i?l=Array.isArray(e)?e:[e]:l=Array.isArray(e.entry)?e.entry:[e.entry];const f=c.getMergedTraits().xmlName??"key",w=d.getMergedTraits().xmlName??"value";for(const E of l){const R=E[f],O=E[w];(O!=null||o)&&(a[R]=this.readSchema(d,O))}return a}if(s.isStructSchema()){const c=s.isUnionSchema();let d;c&&(d=new Je(e,a));for(const[l,f]of s.structIterator()){const w=f.getMergedTraits(),E=w.httpPayload?w.xmlName??f.getName():f.getMemberTraits().xmlName??l;c&&d.mark(E),e[E]!=null&&(a[l]=this.readSchema(f,e[E]))}return c&&d.writeUnknown(),a}if(s.isDocumentSchema())return e;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${s.getName(!0)}`)}return s.isListSchema()?[]:s.isMapSchema()||s.isStructSchema()?{}:this.stringDeserializer.read(s,e)}parseXml(t){if(t.length){let e;try{e=as(t)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:t}),i}const s="#text",n=Object.keys(e)[0],o=e[n];return o[s]&&(o[n]=o[s],delete o[s]),xe(o)}return{}}}class ds extends be{settings;buffer;constructor(t){super(),this.settings=t}write(t,e,s=""){this.buffer===void 0&&(this.buffer="");const n=F.of(t);if(s&&!s.endsWith(".")&&(s+="."),n.isBlobSchema())(typeof e=="string"||e instanceof Uint8Array)&&(this.writeKey(s),this.writeValue((this.serdeContext?.base64Encoder??Pe)(e)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())e!=null?(this.writeKey(s),this.writeValue(String(e))):n.isIdempotencyToken()&&(this.writeKey(s),this.writeValue(Xe()));else if(n.isBigIntegerSchema())e!=null&&(this.writeKey(s),this.writeValue(String(e)));else if(n.isBigDecimalSchema())e!=null&&(this.writeKey(s),this.writeValue(e instanceof Ee?e.string:String(e)));else if(n.isTimestampSchema()){if(e instanceof Date)switch(this.writeKey(s),Se(n,this.settings)){case 5:this.writeValue(e.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Qt(e));break;case 7:this.writeValue(String(e.getTime()/1e3));break}}else if(n.isDocumentSchema())Array.isArray(e)?this.write(79,e,s):e instanceof Date?this.write(4,e,s):e instanceof Uint8Array?this.write(21,e,s):e&&typeof e=="object"?this.write(143,e,s):(this.writeKey(s),this.writeValue(String(e)));else if(n.isListSchema()){if(Array.isArray(e))if(e.length===0)this.settings.serializeEmptyLists&&(this.writeKey(s),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const c of e){if(c==null)continue;const d=this.getKey("member",o.getMergedTraits().xmlName),l=i?`${s}${a}`:`${s}${d}.${a}`;this.write(o,c,l),++a}}}else if(n.isMapSchema()){if(e&&typeof e=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let c=1;for(const[d,l]of Object.entries(e)){if(l==null)continue;const f=this.getKey("key",o.getMergedTraits().xmlName),w=a?`${s}${c}.${f}`:`${s}entry.${c}.${f}`,E=this.getKey("value",i.getMergedTraits().xmlName),R=a?`${s}${c}.${E}`:`${s}entry.${c}.${E}`;this.write(o,d,w),this.write(i,l,R),++c}}}else if(n.isStructSchema()){if(e&&typeof e=="object"){let o=!1;for(const[i,a]of Ze(n,e)){if(e[i]==null&&!a.isIdempotencyToken())continue;const c=this.getKey(i,a.getMergedTraits().xmlName),d=`${s}${c}`;this.write(a,e[i],d),o=!0}if(!o&&n.isUnionSchema()){const{$unknown:i}=e;if(Array.isArray(i)){const[a,c]=i,d=`${s}${a}`;this.write(15,c,d)}}}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,e){const s=e??t;return this.settings.capitalizeKeys?s[0].toUpperCase()+s.slice(1):s}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${ie(t)}=`}writeValue(t){this.buffer+=ie(t)}}class us extends Ye{options;serializer;deserializer;mixin=new et;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const e={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ds(e),this.deserializer=new cs(e)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,e,s){const n=await super.serializeRequest(t,e,s);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(tt(t.input)==="unit"||!n.body)&&(n.body="");const o=t.name.split("#")[1]??t.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(t,e,s){const n=this.deserializer,o=F.of(t.output),i={};if(s.statusCode>=300){const f=await oe(s.body,e);f.byteLength>0&&Object.assign(i,await n.read(15,f)),await this.handleError(t,e,s,i,this.deserializeMetadata(s))}for(const f in s.headers){const w=s.headers[f];delete s.headers[f],s.headers[f.toLowerCase()]=w}const a=t.name.split("#")[1]??t.name,c=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,d=await oe(s.body,e);return d.byteLength>0&&Object.assign(i,await n.read(o,d,c)),{$metadata:this.deserializeMetadata(s),...i}}useNestedResult(){return!0}async handleError(t,e,s,n,o){const i=this.loadQueryErrorCode(s,n)??"Unknown",a=this.loadQueryError(n),c=this.loadQueryErrorMessage(n);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};const{errorSchema:d,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,a,o,this.mixin.findQueryCompatibleError),f=F.of(d),w=C.for(d[1]).getErrorCtor(d)??Error,E=new w(c),R={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(const[O,re]of f.structIterator()){const ne=re.getMergedTraits().xmlName??O,Qe=a[ne]??n[ne];R[O]=this.deserializer.readSchema(re,Qe)}throw this.mixin.decorateServiceException(Object.assign(E,l,{$fault:f.getMergedTraits().error,message:c},R),n)}loadQueryErrorCode(t,e){const s=(e.Errors?.[0]?.Error??e.Errors?.Error??e.Error)?.Code;if(s!==void 0)return s;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const e=this.loadQueryError(t);return e?.message??e?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const ls=async(r,t,e)=>({operation:rt(t).operation,region:await we(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ms(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}function hs(r){return{schemeId:"smithy.api#noAuth"}}const ps=r=>{const t=[];switch(r.operation){case"AssumeRoleWithWebIdentity":{t.push(hs());break}default:t.push(ms(r))}return t},fs=r=>Object.assign(r,{stsClientCtor:Fe}),gs=r=>{const t=fs(r),e=st(t);return Object.assign(e,{authSchemePreference:we(r.authSchemePreference??[])})},ys=r=>Object.assign(r,{useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ss={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Es="3.975.0",bs={version:Es},Ce="required",u="type",m="fn",h="argv",I="ref",ae=!1,z=!0,D="booleanEquals",y="stringEquals",Re="sigv4",De="sts",Ie="us-east-1",g="endpoint",ce="https://sts.{Region}.{PartitionResult#dnsSuffix}",T="tree",M="error",B="getAttr",de={[Ce]:!1,[u]:"string"},L={[Ce]:!0,default:!1,[u]:"boolean"},_e={[I]:"Endpoint"},ue={[m]:"isSet",[h]:[{[I]:"Region"}]},S={[I]:"Region"},le={[m]:"aws.partition",[h]:[S],assign:"PartitionResult"},Ne={[I]:"UseFIPS"},$e={[I]:"UseDualStack"},b={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Re,signingName:De,signingRegion:Ie}]},headers:{}},P={},me={conditions:[{[m]:y,[h]:[S,"aws-global"]}],[g]:b,[u]:g},ke={[m]:D,[h]:[Ne,!0]},ve={[m]:D,[h]:[$e,!0]},he={[m]:B,[h]:[{[I]:"PartitionResult"},"supportsFIPS"]},Me={[I]:"PartitionResult"},pe={[m]:D,[h]:[!0,{[m]:B,[h]:[Me,"supportsDualStack"]}]},fe=[{[m]:"isSet",[h]:[_e]}],ge=[ke],ye=[ve],ws={parameters:{Region:de,UseDualStack:L,UseFIPS:L,Endpoint:de,UseGlobalEndpoint:L},rules:[{conditions:[{[m]:D,[h]:[{[I]:"UseGlobalEndpoint"},z]},{[m]:"not",[h]:fe},ue,le,{[m]:D,[h]:[Ne,ae]},{[m]:D,[h]:[$e,ae]}],rules:[{conditions:[{[m]:y,[h]:[S,"ap-northeast-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"ap-south-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"ap-southeast-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"ap-southeast-2"]}],endpoint:b,[u]:g},me,{conditions:[{[m]:y,[h]:[S,"ca-central-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"eu-central-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"eu-north-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"eu-west-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"eu-west-2"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"eu-west-3"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"sa-east-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,Ie]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"us-east-2"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"us-west-1"]}],endpoint:b,[u]:g},{conditions:[{[m]:y,[h]:[S,"us-west-2"]}],endpoint:b,[u]:g},{endpoint:{url:ce,properties:{authSchemes:[{name:Re,signingName:De,signingRegion:"{Region}"}]},headers:P},[u]:g}],[u]:T},{conditions:fe,rules:[{conditions:ge,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[u]:M},{conditions:ye,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[u]:M},{endpoint:{url:_e,properties:P,headers:P},[u]:g}],[u]:T},{conditions:[ue],rules:[{conditions:[le],rules:[{conditions:[ke,ve],rules:[{conditions:[{[m]:D,[h]:[z,he]},pe],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[u]:g}],[u]:T},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[u]:M}],[u]:T},{conditions:ge,rules:[{conditions:[{[m]:D,[h]:[he,z]}],rules:[{conditions:[{[m]:y,[h]:[{[m]:B,[h]:[Me,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:P,headers:P},[u]:g},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},[u]:g}],[u]:T},{error:"FIPS is enabled but this partition does not support FIPS",[u]:M}],[u]:T},{conditions:ye,rules:[{conditions:[pe],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[u]:g}],[u]:T},{error:"DualStack is enabled but this partition does not support DualStack",[u]:M}],[u]:T},me,{endpoint:{url:ce,properties:P,headers:P},[u]:g}],[u]:T}],[u]:T},{error:"Invalid Configuration: Missing Region",[u]:M}]},Ps=ws,Ts=new nt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),As=(r,t={})=>Ts.get(r,()=>ot(Ps,{endpointParams:r,logger:t.logger}));at.aws=it;const xs=r=>({apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??j,base64Encoder:r?.base64Encoder??Pe,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??As,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??ps,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ut},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new lt}],logger:r?.logger??new dt,protocol:r?.protocol??us,protocolSettings:r?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??ct,utf8Decoder:r?.utf8Decoder??qt,utf8Encoder:r?.utf8Encoder??W}),Cs=r=>{const t=mt(r),e=()=>t().then(wt),s=xs(r);return{...s,...r,runtime:"browser",defaultsMode:t,bodyLengthChecker:r?.bodyLengthChecker??St,credentialDefaultProvider:r?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:r?.defaultUserAgentProvider??yt({serviceId:s.serviceId,clientVersion:bs.version}),maxAttempts:r?.maxAttempts??gt,region:r?.region??ft("Region is missing"),requestHandler:Jt.create(r?.requestHandler??e),retryMode:r?.retryMode??(async()=>(await e()).retryMode||pt),sha256:r?.sha256??ht,streamCollector:r?.streamCollector??Gt,useDualstackEndpoint:r?.useDualstackEndpoint??(()=>Promise.resolve(bt)),useFipsEndpoint:r?.useFipsEndpoint??(()=>Promise.resolve(Et))}},Rs=r=>{const t=r.httpAuthSchemes;let e=r.httpAuthSchemeProvider,s=r.credentials;return{setHttpAuthScheme(n){const o=t.findIndex(i=>i.schemeId===n.schemeId);o===-1?t.push(n):t.splice(o,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){e=n},httpAuthSchemeProvider(){return e},setCredentials(n){s=n},credentials(){return s}}},Ds=r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}),Is=(r,t)=>{const e=Object.assign(Pt(r),Tt(r),At(r),Rs(r));return t.forEach(s=>s.configure(e)),Object.assign(r,xt(e),Ct(e),Rt(e),Ds(e))};class Fe extends Dt{config;constructor(...[t]){const e=Cs(t||{});super(e),this.initConfig=e;const s=ys(e),n=It(s),o=_t(n),i=Nt(o),a=Wt(i),c=$t(a),d=gs(c),l=Is(d,t?.extensions||[]);this.config=l,this.middlewareStack.use(kt(this.config)),this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(Ft(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Ut(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Lt(this.config,{httpAuthSchemeParametersProvider:ls,identityProviderConfigProvider:async f=>new Kt({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(jt(this.config))}destroy(){super.destroy()}}class A extends Vt{constructor(t){super(t),Object.setPrototypeOf(this,A.prototype)}}class Q extends A{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,Q.prototype)}}class q extends A{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,q.prototype)}}class G extends A{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,G.prototype)}}class J extends A{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}}class X extends A{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,X.prototype)}}class Z extends A{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,Z.prototype)}}class Y extends A{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,Y.prototype)}}const _s="Arn",Ns="AccessKeyId",$s="AssumeRole",ks="AssumedRoleId",vs="AssumeRoleRequest",Ms="AssumeRoleResponse",ee="AssumedRoleUser",Fs="AssumeRoleWithWebIdentity",Os="AssumeRoleWithWebIdentityRequest",Us="AssumeRoleWithWebIdentityResponse",zs="Audience",te="Credentials",Ls="ContextAssertion",Oe="DurationSeconds",js="Expiration",Ws="ExternalId",Ks="ExpiredTokenException",Vs="IDPCommunicationErrorException",Hs="IDPRejectedClaimException",Bs="InvalidIdentityTokenException",Qs="Key",qs="MalformedPolicyDocumentException",Ue="Policy",ze="PolicyArns",Gs="ProviderArn",Js="ProvidedContexts",Xs="ProvidedContextsListType",Zs="ProvidedContext",Ys="PolicyDescriptorType",er="ProviderId",Le="PackedPolicySize",tr="PackedPolicyTooLargeException",sr="Provider",je="RoleArn",rr="RegionDisabledException",We="RoleSessionName",nr="SecretAccessKey",or="SubjectFromWebIdentityToken",se="SourceIdentity",ir="SerialNumber",ar="SessionToken",cr="Tags",dr="TokenCode",ur="TransitiveTagKeys",lr="Tag",mr="Value",hr="WebIdentityToken",pr="arn",fr="accessKeySecretType",_="awsQueryError",N="client",gr="clientTokenType",$="error",k="httpError",v="message",yr="policyDescriptorListType",Ke="smithy.ts.sdk.synthetic.com.amazonaws.sts",Sr="tagListType",p="com.amazonaws.sts";var Er=[0,p,fr,8,0],br=[0,p,gr,8,0],Ve=[3,p,ee,0,[ks,_s],[0,0],2],wr=[3,p,vs,0,[je,We,ze,Ue,Oe,cr,ur,Ws,ir,dr,se,Js],[0,0,()=>Be,0,1,()=>Or,64,0,0,0,0,()=>Fr],2],Pr=[3,p,Ms,0,[te,ee,Le,se],[[()=>He,0],()=>Ve,1,0]],Tr=[3,p,Os,0,[je,We,hr,er,ze,Ue,Oe],[0,0,[()=>br,0],0,()=>Be,0,1],3],Ar=[3,p,Us,0,[te,or,ee,Le,sr,zs,se],[[()=>He,0],0,()=>Ve,1,0,0,0]],He=[3,p,te,0,[Ns,nr,ar,js],[0,[()=>Er,0],0,4],4],xr=[-3,p,Ks,{[_]:["ExpiredTokenException",400],[$]:N,[k]:400},[v],[0]];C.for(p).registerError(xr,Q);var Cr=[-3,p,Vs,{[_]:["IDPCommunicationError",400],[$]:N,[k]:400},[v],[0]];C.for(p).registerError(Cr,Y);var Rr=[-3,p,Hs,{[_]:["IDPRejectedClaim",403],[$]:N,[k]:403},[v],[0]];C.for(p).registerError(Rr,X);var Dr=[-3,p,Bs,{[_]:["InvalidIdentityToken",400],[$]:N,[k]:400},[v],[0]];C.for(p).registerError(Dr,Z);var Ir=[-3,p,qs,{[_]:["MalformedPolicyDocument",400],[$]:N,[k]:400},[v],[0]];C.for(p).registerError(Ir,q);var _r=[-3,p,tr,{[_]:["PackedPolicyTooLarge",400],[$]:N,[k]:400},[v],[0]];C.for(p).registerError(_r,G);var Nr=[3,p,Ys,0,[pr],[0]],$r=[3,p,Zs,0,[Gs,Ls],[0,0]],kr=[-3,p,rr,{[_]:["RegionDisabledException",403],[$]:N,[k]:403},[v],[0]];C.for(p).registerError(kr,J);var vr=[3,p,lr,0,[Qs,mr],[0,0],2],Mr=[-3,Ke,"STSServiceException",0,[],[]];C.for(Ke).registerError(Mr,A);var Be=[1,p,yr,0,()=>Nr],Fr=[1,p,Xs,0,()=>$r],Or=[1,p,Sr,0,()=>vr],Ur=[9,p,$s,0,()=>wr,()=>Pr],Wr=[9,p,Fs,0,()=>Tr,()=>Ar];class zr extends Ht.classBuilder().ep(Ss).m(function(t,e,s,n){return[Bt(s,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Ur).build(){}const Kr=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:zr,STSClient:Fe},Symbol.toStringTag,{value:"Module"}));export{Wr as A,He as C,xr as E,Cr as I,Ir as M,_r as P,kr as R,Fe as S,vr as T,A as a,zr as b,Ss as c,Ve as d,wr as e,Pr as f,Tr as g,Ar as h,Rr as i,Dr as j,Nr as k,$r as l,Mr as m,Ur as n,Q as o,q as p,G as q,J as r,X as s,Z as t,Y as u,Kr as v};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
class U{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const r=new U({...t,headers:{...t.headers}});return r.query&&(r.query=V(r.query)),r}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return U.clone(this)}}function V(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}class B{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const M=e=>encodeURIComponent(e).replace(/[!'()*]/g,X),X=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function z(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=M(r),Array.isArray(n))for(let o=0,i=n.length;o<i;o++)t.push(`${r}=${M(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${M(n)}`),t.push(o)}}return t.join("&")}function P(e,t){return new Request(e,t)}function Z(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{const n=new Error(`Request did not complete within ${e} ms`);n.name="TimeoutError",r(n)},e)})}const I={supported:void 0};class J{config;configProvider;static create(t){return typeof t?.handle=="function"?t:new J(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),I.supported===void 0&&(I.supported=typeof Request<"u"&&"keepalive"in P("https://[::1]"))}destroy(){}async handle(t,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);const o=n??this.config.requestTimeout,i=this.config.keepAlive===!0,c=this.config.credentials;if(r?.aborted){const u=new Error("Request aborted");return u.name="AbortError",Promise.reject(u)}let a=t.path;const d=z(t.query||{});d&&(a+=`?${d}`),t.fragment&&(a+=`#${t.fragment}`);let s="";if(t.username!=null||t.password!=null){const u=t.username??"",T=t.password??"";s=`${u}:${T}@`}const{port:f,method:y}=t,w=`${t.protocol}//${s}${t.hostname}${f?`:${f}`:""}${a}`,C=y==="GET"||y==="HEAD"?void 0:t.body,h={body:C,headers:new Headers(t.headers),method:y,credentials:c};this.config?.cache&&(h.cache=this.config.cache),C&&(h.duplex="half"),typeof AbortController<"u"&&(h.signal=r),I.supported&&(h.keepalive=i),typeof this.config.requestInit=="function"&&Object.assign(h,this.config.requestInit(t));let O=()=>{};const G=P(w,h),L=[fetch(G).then(u=>{const T=u.headers,g={};for(const x of T.entries())g[x[0]]=x[1];return u.body!=null?{response:new B({headers:g,reason:u.statusText,statusCode:u.status,body:u.body})}:u.blob().then(x=>({response:new B({headers:g,reason:u.statusText,statusCode:u.status,body:x})}))}),Z(o)];return r&&L.push(new Promise((u,T)=>{const g=()=>{const m=new Error("Request aborted");m.name="AbortError",T(m)};if(typeof r.addEventListener=="function"){const m=r;m.addEventListener("abort",g,{once:!0}),O=()=>m.removeEventListener("abort",g)}else r.onabort=g})),Promise.race(L).finally(O)}updateHttpClientConfig(t,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[t]=r,n))}httpHandlerConfigs(){return this.config??{}}}const Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=Object.entries(Y).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),Q=Y.split(""),p=6,E=8,K=63,v=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let o=0;o<e.length;o+=4){let i=0,c=0;for(let s=o,f=o+3;s<=f;s++)if(e[s]!=="="){if(!(e[s]in k))throw new TypeError(`Invalid character ${e[s]} in base64 string.`);i|=k[e[s]]<<(f-s)*p,c+=p}else i>>=p;const a=o/4*3;i>>=c%E;const d=Math.floor(c/E);for(let s=0;s<d;s++){const f=(d-s-1)*E;n.setUint8(a+s,(i&255<<f)>>f)}}return new Uint8Array(r)},ee=e=>new TextEncoder().encode(e),Me=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function Ie(e){let t;typeof e=="string"?t=ee(e):t=e;const r=typeof t=="object"&&typeof t.length=="number",n=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let i=0;i<t.length;i+=3){let c=0,a=0;for(let s=i,f=Math.min(i+3,t.length);s<f;s++)c|=t[s]<<(f-s-1)*E,a+=E;const d=Math.ceil(a/p);c<<=d*p-a;for(let s=1;s<=d;s++){const f=(d-s)*p;o+=Q[(c&K<<f)>>f]}o+="==".slice(0,4-d)}return o}const Re=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):te(e):re(e);async function te(e){const t=await ne(e),r=v(t);return new Uint8Array(r)}async function re(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:a,value:d}=await r.read();d&&(t.push(d),o+=d.length),n=a}const i=new Uint8Array(o);let c=0;for(const a of t)i.set(a,c),c+=a.length;return i}function ne(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const o=n.result??"",i=o.indexOf(","),c=i>-1?i+1:o.length;t(o.substring(c))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}const W={},D={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),W[e]=t,D[t]=e}function Ue(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(n in D)t[r/2]=D[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function De(e){let t="";for(let r=0;r<e.byteLength;r++)t+=W[e[r]];return t}const F=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&he.warn(ue(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},oe=Math.ceil(2**127*(2-2**-23)),H=e=>{const t=F(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>oe)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},se=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},j=e=>q(e,16),_=e=>q(e,8),q=(e,t)=>{const r=se(e);if(r!==void 0&&ie(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},ie=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},ce=e=>F(typeof e=="string"?A(e):e),ae=e=>H(typeof e=="string"?A(e):e),de=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,A=e=>{const t=e.match(de);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},$=e=>j(typeof e=="string"?A(e):e),fe=e=>_(typeof e=="string"?A(e):e),ue=e=>String(new TypeError(e).stack||e).split(`
|
|
2
2
|
`).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
|
|
3
|
-
`),he={warn:console.warn},le=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Fe(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),i=e.getUTCHours(),c=e.getUTCMinutes(),a=e.getUTCSeconds(),d=o<10?`0${o}`:`${o}`,s=i<10?`0${i}`:`${i}`,f=c<10?`0${c}`:`${c}`,y=a<10?`0${a}`:`${a}`;return`${le[n]}, ${d} ${N[r]} ${t} ${s}:${f}:${y} GMT`}const ye=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ne=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=ye.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,c,a,d,s]=t,f=$(b(n)),y=l(o,"month",1,12),w=l(i,"day",1,31);return S(f,y,w,{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s})},ge=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Oe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=ge.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,c,a,d,s,f]=t,y=$(b(n)),w=l(o,"month",1,12),C=l(i,"day",1,31),h=S(y,w,C,{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s});return f.toUpperCase()!="Z"&&h.setTime(h.getTime()-Ae(f)),h},me=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),pe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),be=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Le=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=me.exec(e);if(t){const[r,n,o,i,c,a,d,s]=t;return S($(b(i)),R(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s})}if(t=pe.exec(e),t){const[r,n,o,i,c,a,d,s]=t;return Ee(S(we(i),R(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s}))}if(t=be.exec(e),t){const[r,n,o,i,c,a,d,s]=t;return S($(b(s)),R(n),l(o.trimLeft(),"day",1,31),{hours:i,minutes:c,seconds:a,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},Be=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ce(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},S=(e,t,r,n)=>{const o=t-1;return $e(e,o,r),new Date(Date.UTC(e,o,r,l(n.hours,"hour",0,23),l(n.minutes,"minute",0,59),l(n.seconds,"seconds",0,60),xe(n.fractionalMilliseconds)))},we=e=>{const t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+$(b(e));return r<t?r+100:r},Te=50*365*24*60*60*1e3,Ee=e=>e.getTime()-new Date().getTime()>Te?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,R=e=>{const t=N.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Se=[31,28,31,30,31,30,31,31,30,31,30,31],$e=(e,t,r)=>{let n=Se[t];if(t===1&&Ce(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${N[t]} in ${e}: ${r}`)},Ce=e=>e%4===0&&(e%100!==0||e%400===0),l=(e,t,r,n)=>{const o=fe(b(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},xe=e=>e==null?0:ae("0."+e)*1e3,Ae=e=>{const t=e[0];let r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1e3},b=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},Pe=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t};export{J as F,U as H,
|
|
3
|
+
`),he={warn:console.warn},le=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Fe(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),i=e.getUTCHours(),c=e.getUTCMinutes(),a=e.getUTCSeconds(),d=o<10?`0${o}`:`${o}`,s=i<10?`0${i}`:`${i}`,f=c<10?`0${c}`:`${c}`,y=a<10?`0${a}`:`${a}`;return`${le[n]}, ${d} ${N[r]} ${t} ${s}:${f}:${y} GMT`}const ye=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ne=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=ye.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,c,a,d,s]=t,f=$(b(n)),y=l(o,"month",1,12),w=l(i,"day",1,31);return S(f,y,w,{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s})},ge=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Oe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=ge.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,c,a,d,s,f]=t,y=$(b(n)),w=l(o,"month",1,12),C=l(i,"day",1,31),h=S(y,w,C,{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s});return f.toUpperCase()!="Z"&&h.setTime(h.getTime()-Ae(f)),h},me=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),pe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),be=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Le=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=me.exec(e);if(t){const[r,n,o,i,c,a,d,s]=t;return S($(b(i)),R(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s})}if(t=pe.exec(e),t){const[r,n,o,i,c,a,d,s]=t;return Ee(S(we(i),R(o),l(n,"day",1,31),{hours:c,minutes:a,seconds:d,fractionalMilliseconds:s}))}if(t=be.exec(e),t){const[r,n,o,i,c,a,d,s]=t;return S($(b(s)),R(n),l(o.trimLeft(),"day",1,31),{hours:i,minutes:c,seconds:a,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")},Be=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ce(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},S=(e,t,r,n)=>{const o=t-1;return $e(e,o,r),new Date(Date.UTC(e,o,r,l(n.hours,"hour",0,23),l(n.minutes,"minute",0,59),l(n.seconds,"seconds",0,60),xe(n.fractionalMilliseconds)))},we=e=>{const t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+$(b(e));return r<t?r+100:r},Te=50*365*24*60*60*1e3,Ee=e=>e.getTime()-new Date().getTime()>Te?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,R=e=>{const t=N.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},Se=[31,28,31,30,31,30,31,31,30,31,30,31],$e=(e,t,r)=>{let n=Se[t];if(t===1&&Ce(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${N[t]} in ${e}: ${r}`)},Ce=e=>e%4===0&&(e%100!==0||e%400===0),l=(e,t,r,n)=>{const o=fe(b(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},xe=e=>e==null?0:ae("0."+e)*1e3,Ae=e=>{const t=e[0];let r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1e3},b=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},Pe=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t};export{J as F,U as H,v as a,Le as b,Oe as c,Ie as d,Fe as e,ee as f,De as g,Ne as h,B as i,Ue as j,M as k,Pe as n,Be as p,Re as s,Me as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o}from"./index-DB9kJcqZ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ZTnKX8xy-BNOF_2FA.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./index-DSosZ5sh-_5CimrqR.js";import"./inherits_browser-SFmLU6iN-Bpg6Btaw.js";import"./index-D3JO_TBD-DrqEk_TF.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./index-JiKw9JSs.js";import"./index-B3X6Xu-W.js";export{o as default};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{p as A,r as St,a as At,b as it,c as Ot,d as L,e as Bt,f as xt,g as kt,h as Et}from"./index-ZTnKX8xy-BNOF_2FA.js";var ft={},ct={},et,st;function Pt(){if(st)return et;st=1;var n=it()(),v=L(),m=v("Object.prototype.toString"),p=function(a){return n&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:m(a)==="[object Arguments]"},g=function(a){return p(a)?!0:a!==null&&typeof a=="object"&&"length"in a&&typeof a.length=="number"&&a.length>=0&&m(a)!=="[object Array]"&&"callee"in a&&m(a.callee)==="[object Function]"},b=(function(){return p(arguments)})();return p.isLegacyArguments=g,et=b?p:g,et}var rt,pt;function Dt(){if(pt)return rt;pt=1;var n=L(),v=it()(),m=Et(),p=kt(),g;if(v){var b=n("RegExp.prototype.exec"),a={},j=function(){throw a},y={toString:j,valueOf:j};typeof Symbol.toPrimitive=="symbol"&&(y[Symbol.toPrimitive]=j),g=function(d){if(!d||typeof d!="object")return!1;var k=p(d,"lastIndex"),R=k&&m(k,"value");if(!R)return!1;try{b(d,y)}catch(w){return w===a}}}else{var D=n("Object.prototype.toString"),h="[object RegExp]";g=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:D(d)===h}}return rt=g,rt}var nt,lt;function It(){if(lt)return nt;lt=1;var n=L(),v=Dt(),m=n("RegExp.prototype.exec"),p=xt();return nt=function(g){if(!v(g))throw new p("`regex` must be a RegExp");return function(b){return m(g,b)!==null}},nt}var ot,yt;function Mt(){if(yt)return ot;yt=1;const n=function*(){}.constructor;return ot=()=>n,ot}var ut,gt;function Ut(){if(gt)return ut;gt=1;var n=L(),v=It(),m=v(/^\s*(?:function)?\*/),p=it()(),g=Ot(),b=n("Object.prototype.toString"),a=n("Function.prototype.toString"),j=Mt();return ut=function(y){if(typeof y!="function")return!1;if(m(a(y)))return!0;if(!p){var D=b(y);return D==="[object GeneratorFunction]"}if(!g)return!1;var h=j();return h&&g(y)===h.prototype},ut}var bt;function zt(){return bt||(bt=1,(function(n){var v=Pt(),m=Ut(),p=Bt(),g=At();function b(r){return r.call.bind(r)}var a=typeof BigInt<"u",j=typeof Symbol<"u",y=b(Object.prototype.toString),D=b(Number.prototype.valueOf),h=b(String.prototype.valueOf),d=b(Boolean.prototype.valueOf);if(a)var k=b(BigInt.prototype.valueOf);if(j)var R=b(Symbol.prototype.valueOf);function w(r,jt){if(typeof r!="object")return!1;try{return jt(r),!0}catch{return!1}}n.isArgumentsObject=v,n.isGeneratorFunction=m,n.isTypedArray=g;function Y(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}n.isPromise=Y;function C(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):g(r)||e(r)}n.isArrayBufferView=C;function q(r){return p(r)==="Uint8Array"}n.isUint8Array=q;function z(r){return p(r)==="Uint8ClampedArray"}n.isUint8ClampedArray=z;function K(r){return p(r)==="Uint16Array"}n.isUint16Array=K;function _(r){return p(r)==="Uint32Array"}n.isUint32Array=_;function $(r){return p(r)==="Int8Array"}n.isInt8Array=$;function Q(r){return p(r)==="Int16Array"}n.isInt16Array=Q;function O(r){return p(r)==="Int32Array"}n.isInt32Array=O;function I(r){return p(r)==="Float32Array"}n.isFloat32Array=I;function E(r){return p(r)==="Float64Array"}n.isFloat64Array=E;function F(r){return p(r)==="BigInt64Array"}n.isBigInt64Array=F;function M(r){return p(r)==="BigUint64Array"}n.isBigUint64Array=M;function B(r){return y(r)==="[object Map]"}B.working=typeof Map<"u"&&B(new Map);function X(r){return typeof Map>"u"?!1:B.working?B(r):r instanceof Map}n.isMap=X;function P(r){return y(r)==="[object Set]"}P.working=typeof Set<"u"&&P(new Set);function V(r){return typeof Set>"u"?!1:P.working?P(r):r instanceof Set}n.isSet=V;function T(r){return y(r)==="[object WeakMap]"}T.working=typeof WeakMap<"u"&&T(new WeakMap);function tt(r){return typeof WeakMap>"u"?!1:T.working?T(r):r instanceof WeakMap}n.isWeakMap=tt;function N(r){return y(r)==="[object WeakSet]"}N.working=typeof WeakSet<"u"&&N(new WeakSet);function x(r){return N(r)}n.isWeakSet=x;function W(r){return y(r)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer<"u"&&W(new ArrayBuffer);function H(r){return typeof ArrayBuffer>"u"?!1:W.working?W(r):r instanceof ArrayBuffer}n.isArrayBuffer=H;function t(r){return y(r)==="[object DataView]"}t.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&t(new DataView(new ArrayBuffer(1),0,1));function e(r){return typeof DataView>"u"?!1:t.working?t(r):r instanceof DataView}n.isDataView=e;var o=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function u(r){return y(r)==="[object SharedArrayBuffer]"}function l(r){return typeof o>"u"?!1:(typeof u.working>"u"&&(u.working=u(new o)),u.working?u(r):r instanceof o)}n.isSharedArrayBuffer=l;function f(r){return y(r)==="[object AsyncFunction]"}n.isAsyncFunction=f;function i(r){return y(r)==="[object Map Iterator]"}n.isMapIterator=i;function c(r){return y(r)==="[object Set Iterator]"}n.isSetIterator=c;function s(r){return y(r)==="[object Generator]"}n.isGeneratorObject=s;function S(r){return y(r)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=S;function U(r){return w(r,D)}n.isNumberObject=U;function J(r){return w(r,h)}n.isStringObject=J;function G(r){return w(r,d)}n.isBooleanObject=G;function Z(r){return a&&w(r,k)}n.isBigIntObject=Z;function at(r){return j&&w(r,R)}n.isSymbolObject=at;function ht(r){return U(r)||J(r)||G(r)||Z(r)||at(r)}n.isBoxedPrimitive=ht;function wt(r){return typeof Uint8Array<"u"&&(H(r)||l(r))}n.isAnyArrayBuffer=wt,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(n,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})})(ct)),ct}var mt,dt;function $t(){return dt||(dt=1,mt=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),mt}var vt;function Tt(){return vt||(vt=1,(function(n){var v=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),o={},u=0;u<e.length;u++)o[e[u]]=Object.getOwnPropertyDescriptor(t,e[u]);return o},m=/%[sdj%]/g;n.format=function(t){if(!$(t)){for(var e=[],o=0;o<arguments.length;o++)e.push(a(arguments[o]));return e.join(" ")}for(var o=1,u=arguments,l=u.length,f=String(t).replace(m,function(s){if(s==="%%")return"%";if(o>=l)return s;switch(s){case"%s":return String(u[o++]);case"%d":return Number(u[o++]);case"%j":try{return JSON.stringify(u[o++])}catch{return"[Circular]"}default:return s}}),i=u[o];o<l;i=u[++o])z(i)||!E(i)?f+=" "+i:f+=" "+a(i);return f},n.deprecate=function(t,e){if(typeof A<"u"&&A.noDeprecation===!0)return t;if(typeof A>"u")return function(){return n.deprecate(t,e).apply(this,arguments)};var o=!1;function u(){if(!o){if(A.throwDeprecation)throw new Error(e);A.traceDeprecation?console.trace(e):console.error(e),o=!0}return t.apply(this,arguments)}return u};var p={},g=/^$/;if(A.env.NODE_DEBUG){var b=A.env.NODE_DEBUG;b=b.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),g=new RegExp("^"+b+"$","i")}n.debuglog=function(t){if(t=t.toUpperCase(),!p[t])if(g.test(t)){var e=A.pid;p[t]=function(){var o=n.format.apply(n,arguments);console.error("%s %d: %s",t,e,o)}}else p[t]=function(){};return p[t]};function a(t,e){var o={seen:[],stylize:y};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),q(e)?o.showHidden=e:e&&n._extend(o,e),O(o.showHidden)&&(o.showHidden=!1),O(o.depth)&&(o.depth=2),O(o.colors)&&(o.colors=!1),O(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=j),h(o,t,o.depth)}n.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function j(t,e){var o=a.styles[e];return o?"\x1B["+a.colors[o][0]+"m"+t+"\x1B["+a.colors[o][1]+"m":t}function y(t,e){return t}function D(t){var e={};return t.forEach(function(o,u){e[o]=!0}),e}function h(t,e,o){if(t.customInspect&&e&&B(e.inspect)&&e.inspect!==n.inspect&&!(e.constructor&&e.constructor.prototype===e)){var u=e.inspect(o,t);return $(u)||(u=h(t,u,o)),u}var l=d(t,e);if(l)return l;var f=Object.keys(e),i=D(f);if(t.showHidden&&(f=Object.getOwnPropertyNames(e)),M(e)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return k(e);if(f.length===0){if(B(e)){var c=e.name?": "+e.name:"";return t.stylize("[Function"+c+"]","special")}if(I(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(F(e))return t.stylize(Date.prototype.toString.call(e),"date");if(M(e))return k(e)}var s="",S=!1,U=["{","}"];if(C(e)&&(S=!0,U=["[","]"]),B(e)){var J=e.name?": "+e.name:"";s=" [Function"+J+"]"}if(I(e)&&(s=" "+RegExp.prototype.toString.call(e)),F(e)&&(s=" "+Date.prototype.toUTCString.call(e)),M(e)&&(s=" "+k(e)),f.length===0&&(!S||e.length==0))return U[0]+s+U[1];if(o<0)return I(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var G;return S?G=R(t,e,o,i,f):G=f.map(function(Z){return w(t,e,o,i,Z,S)}),t.seen.pop(),Y(G,s,U)}function d(t,e){if(O(e))return t.stylize("undefined","undefined");if($(e)){var o="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(o,"string")}if(_(e))return t.stylize(""+e,"number");if(q(e))return t.stylize(""+e,"boolean");if(z(e))return t.stylize("null","null")}function k(t){return"["+Error.prototype.toString.call(t)+"]"}function R(t,e,o,u,l){for(var f=[],i=0,c=e.length;i<c;++i)N(e,String(i))?f.push(w(t,e,o,u,String(i),!0)):f.push("");return l.forEach(function(s){s.match(/^\d+$/)||f.push(w(t,e,o,u,s,!0))}),f}function w(t,e,o,u,l,f){var i,c,s;if(s=Object.getOwnPropertyDescriptor(e,l)||{value:e[l]},s.get?s.set?c=t.stylize("[Getter/Setter]","special"):c=t.stylize("[Getter]","special"):s.set&&(c=t.stylize("[Setter]","special")),N(u,l)||(i="["+l+"]"),c||(t.seen.indexOf(s.value)<0?(z(o)?c=h(t,s.value,null):c=h(t,s.value,o-1),c.indexOf(`
|
|
2
|
+
`)>-1&&(f?c=c.split(`
|
|
3
|
+
`).map(function(S){return" "+S}).join(`
|
|
4
|
+
`).slice(2):c=`
|
|
5
|
+
`+c.split(`
|
|
6
|
+
`).map(function(S){return" "+S}).join(`
|
|
7
|
+
`))):c=t.stylize("[Circular]","special")),O(i)){if(f&&l.match(/^\d+$/))return c;i=JSON.stringify(""+l),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=t.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=t.stylize(i,"string"))}return i+": "+c}function Y(t,e,o){var u=t.reduce(function(l,f){return f.indexOf(`
|
|
8
|
+
`)>=0,l+f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return u>60?o[0]+(e===""?"":e+`
|
|
9
|
+
`)+" "+t.join(`,
|
|
10
|
+
`)+" "+o[1]:o[0]+e+" "+t.join(", ")+" "+o[1]}n.types=zt();function C(t){return Array.isArray(t)}n.isArray=C;function q(t){return typeof t=="boolean"}n.isBoolean=q;function z(t){return t===null}n.isNull=z;function K(t){return t==null}n.isNullOrUndefined=K;function _(t){return typeof t=="number"}n.isNumber=_;function $(t){return typeof t=="string"}n.isString=$;function Q(t){return typeof t=="symbol"}n.isSymbol=Q;function O(t){return t===void 0}n.isUndefined=O;function I(t){return E(t)&&P(t)==="[object RegExp]"}n.isRegExp=I,n.types.isRegExp=I;function E(t){return typeof t=="object"&&t!==null}n.isObject=E;function F(t){return E(t)&&P(t)==="[object Date]"}n.isDate=F,n.types.isDate=F;function M(t){return E(t)&&(P(t)==="[object Error]"||t instanceof Error)}n.isError=M,n.types.isNativeError=M;function B(t){return typeof t=="function"}n.isFunction=B;function X(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}n.isPrimitive=X,n.isBuffer=$t();function P(t){return Object.prototype.toString.call(t)}function V(t){return t<10?"0"+t.toString(10):t.toString(10)}var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tt(){var t=new Date,e=[V(t.getHours()),V(t.getMinutes()),V(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}n.log=function(){console.log("%s - %s",tt(),n.format.apply(n,arguments))},n.inherits=St(),n._extend=function(t,e){if(!e||!E(e))return t;for(var o=Object.keys(e),u=o.length;u--;)t[o[u]]=e[o[u]];return t};function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var x=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x&&t[x]){var e=t[x];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,x,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var o,u,l=new Promise(function(c,s){o=c,u=s}),f=[],i=0;i<arguments.length;i++)f.push(arguments[i]);f.push(function(c,s){c?u(c):o(s)});try{t.apply(this,f)}catch(c){u(c)}return l}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),x&&Object.defineProperty(e,x,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,v(t))},n.promisify.custom=x;function W(t,e){if(!t){var o=new Error("Promise was rejected with a falsy value");o.reason=t,t=o}return e(t)}function H(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var o=[],u=0;u<arguments.length;u++)o.push(arguments[u]);var l=o.pop();if(typeof l!="function")throw new TypeError("The last argument must be of type Function");var f=this,i=function(){return l.apply(f,arguments)};t.apply(this,o).then(function(c){A.nextTick(i.bind(null,null,c))},function(c){A.nextTick(W.bind(null,c,i))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,v(t)),e}n.callbackify=H})(ft)),ft}export{Tt as G};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as n}from"./util-COkob34j-BZ2TtJP8.js";import"./index-ZTnKX8xy-BNOF_2FA.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./index-DSosZ5sh-_5CimrqR.js";import"./inherits_browser-SFmLU6iN-Bpg6Btaw.js";import"./index-D3JO_TBD-DrqEk_TF.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./index-JiKw9JSs.js";import"./_commonjsHelpers-D6-XlEtG.js";function m(e,p){for(var o=0;o<p.length;o++){const r=p[o];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const i=Object.getOwnPropertyDescriptor(r,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var f=n();const v=m({__proto__:null},[f]);export{v as u};
|