@agentlang/lstudio 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{AwsJson1_1Protocol-Bs-KOF3u.js → AwsJson1_1Protocol-D8lQS-Rk.js} +1 -1
- package/assets/_commonjs-dynamic-modules-B7n8ZNar.js +1 -0
- package/assets/index-3_2F9LQx.js +1 -0
- package/assets/{index-2WvsM2Rj.js → index-BHDiPh0o.js} +6 -6
- package/assets/index-C29ElNmj.js +1 -0
- package/assets/{index-D_-sPexk.css → index-CUrde35K.css} +1 -1
- package/assets/{index-CMyUHiQc.js → index-C_xZWFYS.js} +1 -1
- package/assets/{index-yIpMibae.js → index-D1kSoY9M.js} +300 -295
- package/assets/{index-D4z_hbl0-BL_vRy6b.js → index-D4z_hbl0-BUXHDjnp.js} +2 -2
- package/assets/{index-R10cjt6U.js → index-D8iBh7cU.js} +2 -2
- package/assets/index-tiMnGCkm.js +1 -0
- package/assets/index.browser-BFl5jDO5.js +6 -0
- package/assets/loadCognitoIdentity-iRTOLCFD.js +1 -0
- package/assets/{loadSts-C2Q5qCT1.js → loadSts-B4rFqvVX.js} +1 -1
- package/assets/{replService-BOpSWnUZ.js → replService-db2RHQxf.js} +1 -1
- package/assets/util-C6VsYPkJ.js +10 -0
- package/assets/{winston-1qzyIKCb-BdlBoF8R.js → winston-1qzyIKCb-_MjolKi7.js} +1 -1
- package/assets/winston-CtxF18qc-DJ5_vcVM.js +1 -0
- package/assets/{winston-DDcfL10c.js → winston-CymGn6QT.js} +2 -2
- package/assets/{winston-C4UOaon2.js → winston-utZxLNzu.js} +1 -1
- package/index.html +3 -6
- package/package.json +1 -1
- package/assets/_commonjs-dynamic-modules-TDtrdbi3.js +0 -1
- package/assets/index-BLr5FjlG.js +0 -1
- package/assets/index-BOSgoMcw.js +0 -1
- package/assets/index-DVmya6p1.js +0 -1
- package/assets/index-DzJU27LV.js +0 -1
- package/assets/index-rEhqCN8O.js +0 -6
- package/assets/index.browser-BYRWACjF.js +0 -6
- package/assets/inherits_browser-5Fj3Mjxs.js +0 -1
- package/assets/loadCognitoIdentity-BtOy6bnr.js +0 -1
- package/assets/util-qaS8mbUT.js +0 -10
- package/assets/winston-CtxF18qc-Cn1Quo2c.js +0 -1
package/assets/index-rEhqCN8O.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as Tr,b as br}from"./index-BLr5FjlG.js";var Y,nr;function Cr(){if(nr)return Y;nr=1;var d=1e3,F=d*60,x=F*60,B=x*24,T=B*7,A=B*365.25;Y=function(h,p){p=p||{};var E=typeof h;if(E==="string"&&h.length>0)return s(h);if(E==="number"&&isFinite(h))return p.long?g(h):u(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function s(h){if(h=String(h),!(h.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(p){var E=parseFloat(p[1]),S=(p[2]||"ms").toLowerCase();switch(S){case"years":case"year":case"yrs":case"yr":case"y":return E*A;case"weeks":case"week":case"w":return E*T;case"days":case"day":case"d":return E*B;case"hours":case"hour":case"hrs":case"hr":case"h":return E*x;case"minutes":case"minute":case"mins":case"min":case"m":return E*F;case"seconds":case"second":case"secs":case"sec":case"s":return E*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return E;default:return}}}}function u(h){var p=Math.abs(h);return p>=B?Math.round(h/B)+"d":p>=x?Math.round(h/x)+"h":p>=F?Math.round(h/F)+"m":p>=d?Math.round(h/d)+"s":h+"ms"}function g(h){var p=Math.abs(h);return p>=B?U(h,p,B,"day"):p>=x?U(h,p,x,"hour"):p>=F?U(h,p,F,"minute"):p>=d?U(h,p,d,"second"):h+" ms"}function U(h,p,E,S){var M=p>=E*1.5;return Math.round(h/E)+" "+S+(M?"s":"")}return Y}var W={};/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/var ir;function Sr(){return ir||(ir=1,(function(d){const F=br(),x=Tr(),B=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;d.Buffer=u,d.SlowBuffer=fr,d.INSPECT_MAX_BYTES=50;const T=2147483647;d.kMaxLength=T,u.TYPED_ARRAY_SUPPORT=A(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function A(){try{const e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function s(e){if(e>T)throw new RangeError('The value "'+e+'" is invalid for option "size"');const r=new Uint8Array(e);return Object.setPrototypeOf(r,u.prototype),r}function u(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return g(e,r,t)}u.poolSize=8192;function g(e,r,t){if(typeof e=="string")return E(e,r);if(ArrayBuffer.isView(e))return M(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return P(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return u.from(n,r,t);const i=ur(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,r,t){return g(e,r,t)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function U(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,r,t){return U(e),e<=0?s(e):r!==void 0?typeof t=="string"?s(e).fill(r,t):s(e).fill(r):s(e)}u.alloc=function(e,r,t){return h(e,r,t)};function p(e){return U(e),s(e<0?0:$(e)|0)}u.allocUnsafe=function(e){return p(e)},u.allocUnsafeSlow=function(e){return p(e)};function E(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const t=j(e,r)|0;let n=s(t);const i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function S(e){const r=e.length<0?0:$(e.length)|0,t=s(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function M(e){if(R(e,Uint8Array)){const r=new Uint8Array(e);return P(r.buffer,r.byteOffset,r.byteLength)}return S(e)}function P(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,u.prototype),n}function ur(e){if(u.isBuffer(e)){const r=$(e.length)|0,t=s(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||G(e.length)?s(0):S(e);if(e.type==="Buffer"&&Array.isArray(e.data))return S(e.data)}function $(e){if(e>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return e|0}function fr(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype},u.compare=function(r,t){if(R(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),R(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(r)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let o=0,f=Math.min(n,i);o<f;++o)if(r[o]!==t[o]){n=r[o],i=t[o];break}return n<i?-1:i<n?1:0},u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;const i=u.allocUnsafe(t);let o=0;for(n=0;n<r.length;++n){let f=r[n];if(R(f,Uint8Array))o+f.length>i.length?(u.isBuffer(f)||(f=u.from(f)),f.copy(i,o)):Uint8Array.prototype.set.call(i,f,o);else if(u.isBuffer(f))f.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=f.length}return i};function j(e,r){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return er(e).length;default:if(i)return n?-1:q(e).length;r=(""+r).toLowerCase(),i=!0}}u.byteLength=j;function cr(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return mr(this,r,t);case"utf8":case"utf-8":return X(this,r,t);case"ascii":return Br(this,r,t);case"latin1":case"binary":return xr(this,r,t);case"base64":return yr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Er(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function _(e,r,t){const n=e[r];e[r]=e[t],e[t]=n}u.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)_(this,t,t+1);return this},u.prototype.swap32=function(){const r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},u.prototype.swap64=function(){const r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},u.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?X(this,0,r):cr.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0},u.prototype.inspect=function(){let r="";const t=d.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},B&&(u.prototype[B]=u.prototype.inspect),u.prototype.compare=function(r,t,n,i,o){if(R(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),t<0||n>r.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===r)return 0;let f=o-i,c=n-t;const y=Math.min(f,c),a=this.slice(i,o),w=r.slice(t,n);for(let l=0;l<y;++l)if(a[l]!==w[l]){f=a[l],c=w[l];break}return f<c?-1:c<f?1:0};function J(e,r,t,n,i){if(e.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,G(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),u.isBuffer(r))return r.length===0?-1:V(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):V(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function V(e,r,t,n,i){let o=1,f=e.length,c=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,f/=2,c/=2,t/=2}function y(w,l){return o===1?w[l]:w.readUInt16BE(l*o)}let a;if(i){let w=-1;for(a=t;a<f;a++)if(y(e,a)===y(r,w===-1?0:a-w)){if(w===-1&&(w=a),a-w+1===c)return w*o}else w!==-1&&(a-=a-w),w=-1}else for(t+c>f&&(t=f-c),a=t;a>=0;a--){let w=!0;for(let l=0;l<c;l++)if(y(e,a+l)!==y(r,l)){w=!1;break}if(w)return a}return-1}u.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},u.prototype.indexOf=function(r,t,n){return J(this,r,t,n,!0)},u.prototype.lastIndexOf=function(r,t,n){return J(this,r,t,n,!1)};function hr(e,r,t,n){t=Number(t)||0;const i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;const o=r.length;n>o/2&&(n=o/2);let f;for(f=0;f<n;++f){const c=parseInt(r.substr(f*2,2),16);if(G(c))return f;e[t+f]=c}return f}function sr(e,r,t,n){return k(q(r,e.length-t),e,t,n)}function pr(e,r,t,n){return k(Fr(r),e,t,n)}function lr(e,r,t,n){return k(er(r),e,t,n)}function ar(e,r,t,n){return k(Ur(r,e.length-t),e,t,n)}u.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const o=this.length-t;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let f=!1;for(;;)switch(i){case"hex":return hr(this,r,t,n);case"utf8":case"utf-8":return sr(this,r,t,n);case"ascii":case"latin1":case"binary":return pr(this,r,t,n);case"base64":return lr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ar(this,r,t,n);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function yr(e,r,t){return r===0&&t===e.length?F.fromByteArray(e):F.fromByteArray(e.slice(r,t))}function X(e,r,t){t=Math.min(e.length,t);const n=[];let i=r;for(;i<t;){const o=e[i];let f=null,c=o>239?4:o>223?3:o>191?2:1;if(i+c<=t){let y,a,w,l;switch(c){case 1:o<128&&(f=o);break;case 2:y=e[i+1],(y&192)===128&&(l=(o&31)<<6|y&63,l>127&&(f=l));break;case 3:y=e[i+1],a=e[i+2],(y&192)===128&&(a&192)===128&&(l=(o&15)<<12|(y&63)<<6|a&63,l>2047&&(l<55296||l>57343)&&(f=l));break;case 4:y=e[i+1],a=e[i+2],w=e[i+3],(y&192)===128&&(a&192)===128&&(w&192)===128&&(l=(o&15)<<18|(y&63)<<12|(a&63)<<6|w&63,l>65535&&l<1114112&&(f=l))}}f===null?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|f&1023),n.push(f),i+=c}return wr(n)}const H=4096;function wr(e){const r=e.length;if(r<=H)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=H));return t}function Br(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function xr(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function mr(e,r,t){const n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let o=r;o<t;++o)i+=Ar[e[o]];return i}function Er(e,r,t){const n=e.slice(r,t);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}u.prototype.slice=function(r,t){const n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);const i=this.subarray(r,t);return Object.setPrototypeOf(i,u.prototype),i};function m(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let i=this[r],o=1,f=0;for(;++f<t&&(o*=256);)i+=this[r+f]*o;return i},u.prototype.readUintBE=u.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let i=this[r+--t],o=1;for(;t>0&&(o*=256);)i+=this[r+--t]*o;return i},u.prototype.readUint8=u.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},u.prototype.readBigUInt64LE=b(function(r){r=r>>>0,L(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&D(r,this.length-8);const i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,o=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))}),u.prototype.readBigUInt64BE=b(function(r){r=r>>>0,L(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&D(r,this.length-8);const i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],o=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)}),u.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let i=this[r],o=1,f=0;for(;++f<t&&(o*=256);)i+=this[r+f]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let i=t,o=1,f=this[r+--i];for(;i>0&&(o*=256);)f+=this[r+--i]*o;return o*=128,f>=o&&(f-=Math.pow(2,8*t)),f},u.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},u.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);const n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},u.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);const n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},u.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},u.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},u.prototype.readBigInt64LE=b(function(r){r=r>>>0,L(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&D(r,this.length-8);const i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),u.prototype.readBigInt64BE=b(function(r){r=r>>>0,L(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&D(r,this.length-8);const i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),u.prototype.readFloatLE=function(r,t){return r=r>>>0,t||m(r,4,this.length),x.read(this,r,!0,23,4)},u.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),x.read(this,r,!1,23,4)},u.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),x.read(this,r,!0,52,8)},u.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),x.read(this,r,!1,52,8)};function I(e,r,t,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){const c=Math.pow(2,8*n)-1;I(this,r,t,n,c,0)}let o=1,f=0;for(this[t]=r&255;++f<n&&(o*=256);)this[t+f]=r/o&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){const c=Math.pow(2,8*n)-1;I(this,r,t,n,c,0)}let o=n-1,f=1;for(this[t+o]=r&255;--o>=0&&(f*=256);)this[t+o]=r/f&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,1,255,0),this[t]=r&255,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function K(e,r,t,n,i){tr(r,n,i,e,t,7);let o=Number(r&BigInt(4294967295));e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o;let f=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=f,f=f>>8,e[t++]=f,f=f>>8,e[t++]=f,f=f>>8,e[t++]=f,t}function Z(e,r,t,n,i){tr(r,n,i,e,t,7);let o=Number(r&BigInt(4294967295));e[t+7]=o,o=o>>8,e[t+6]=o,o=o>>8,e[t+5]=o,o=o>>8,e[t+4]=o;let f=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=f,f=f>>8,e[t+2]=f,f=f>>8,e[t+1]=f,f=f>>8,e[t]=f,t+8}u.prototype.writeBigUInt64LE=b(function(r,t=0){return K(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=b(function(r,t=0){return Z(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){const y=Math.pow(2,8*n-1);I(this,r,t,n,y-1,-y)}let o=0,f=1,c=0;for(this[t]=r&255;++o<n&&(f*=256);)r<0&&c===0&&this[t+o-1]!==0&&(c=1),this[t+o]=(r/f>>0)-c&255;return t+n},u.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){const y=Math.pow(2,8*n-1);I(this,r,t,n,y-1,-y)}let o=n-1,f=1,c=0;for(this[t+o]=r&255;--o>=0&&(f*=256);)r<0&&c===0&&this[t+o+1]!==0&&(c=1),this[t+o]=(r/f>>0)-c&255;return t+n},u.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},u.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},u.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},u.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},u.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||I(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},u.prototype.writeBigInt64LE=b(function(r,t=0){return K(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=b(function(r,t=0){return Z(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function z(e,r,t,n,i){return r=+r,t=t>>>0,i||Q(e,r,t,4),x.write(e,r,t,n,23,4),t+4}u.prototype.writeFloatLE=function(r,t,n){return z(this,r,t,!0,n)},u.prototype.writeFloatBE=function(r,t,n){return z(this,r,t,!1,n)};function v(e,r,t,n,i){return r=+r,t=t>>>0,i||Q(e,r,t,8),x.write(e,r,t,n,52,8),t+8}u.prototype.writeDoubleLE=function(r,t,n){return v(this,r,t,!0,n)},u.prototype.writeDoubleBE=function(r,t,n){return v(this,r,t,!1,n)},u.prototype.copy=function(r,t,n,i){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);const o=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),o},u.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){const f=r.charCodeAt(0);(i==="utf8"&&f<128||i==="latin1")&&(r=f)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let o;if(typeof r=="number")for(o=t;o<n;++o)this[o]=r;else{const f=u.isBuffer(r)?r:u.from(r,i),c=f.length;if(c===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=f[o%c]}return this};const C={};function O(e,r,t){C[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),O("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=rr(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=rr(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function rr(e){let r="",t=e.length;const n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function dr(e,r,t){L(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&D(r,e.length-(t+1))}function tr(e,r,t,n,i,o){if(e>t||e<r){const f=typeof r=="bigint"?"n":"";let c;throw r===0||r===BigInt(0)?c=`>= 0${f} and < 2${f} ** ${(o+1)*8}${f}`:c=`>= -(2${f} ** ${(o+1)*8-1}${f}) and < 2 ** ${(o+1)*8-1}${f}`,new C.ERR_OUT_OF_RANGE("value",c,e)}dr(n,i,o)}function L(e,r){if(typeof e!="number")throw new C.ERR_INVALID_ARG_TYPE(r,"number",e)}function D(e,r,t){throw Math.floor(e)!==e?(L(e,t),new C.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new C.ERR_BUFFER_OUT_OF_BOUNDS:new C.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,e)}const gr=/[^+/0-9A-Za-z-_]/g;function Ir(e){if(e=e.split("=")[0],e=e.trim().replace(gr,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function q(e,r){r=r||1/0;let t;const n=e.length;let i=null;const o=[];for(let f=0;f<n;++f){if(t=e.charCodeAt(f),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(f+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function Fr(e){const r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Ur(e,r){let t,n,i;const o=[];for(let f=0;f<e.length&&!((r-=2)<0);++f)t=e.charCodeAt(f),n=t>>8,i=t%256,o.push(i),o.push(n);return o}function er(e){return F.toByteArray(Ir(e))}function k(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function R(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function G(e){return e!==e}const Ar=(function(){const e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){const n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r})();function b(e){return typeof BigInt>"u"?Rr:e}function Rr(){throw new Error("BigInt not supported")}})(W)),W}var N={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var or;function Dr(){return or||(or=1,(function(d,F){var x=Sr(),B=x.Buffer;function T(s,u){for(var g in s)u[g]=s[g]}B.from&&B.alloc&&B.allocUnsafe&&B.allocUnsafeSlow?d.exports=x:(T(x,F),F.Buffer=A);function A(s,u,g){return B(s,u,g)}A.prototype=Object.create(B.prototype),T(B,A),A.from=function(s,u,g){if(typeof s=="number")throw new TypeError("Argument must not be a number");return B(s,u,g)},A.alloc=function(s,u,g){if(typeof s!="number")throw new TypeError("Argument must be a number");var U=B(s);return u!==void 0?typeof g=="string"?U.fill(u,g):U.fill(u):U.fill(0),U},A.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return B(s)},A.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(s)}})(N,N.exports)),N.exports}export{Sr as a,Dr as b,Cr as r};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-BtOy6bnr.js","assets/index-CMyUHiQc.js","assets/normalizeProvider-EC8cbfMc.js","assets/preload-helper-BlTxHScW.js","assets/index-yIpMibae.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/index-ChvoNxcO.js","assets/__vite-browser-external-DLjrMatA.js","assets/inherits_browser-nmOknR35-Bp0mvRSL.js","assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js","assets/index-6mKfgpcs-DsgiI2lM.js","assets/index-DsIu-45t-Bejjlpz4.js","assets/index-DSosZ5sh-Ceejs_jv.js","assets/index-69shuAsh-DF18H7zf.js","assets/index-BJBOx-Z---hbiLl7B.js","assets/index.browser-BHPvGrwi-6Mh8eUw-.js","assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js","assets/index-BLr5FjlG.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/index-rEhqCN8O.js","assets/inherits_browser-5Fj3Mjxs.js","assets/index-D_-sPexk.css","assets/AwsJson1_1Protocol-Bs-KOF3u.js","assets/loadSts-C2Q5qCT1.js","assets/index-DVmya6p1.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as I}from"./preload-helper-BlTxHScW.js";import{d as O,g as N,t as x,s as D,H as K,h as H,F as j,n as q}from"./normalizeProvider-EC8cbfMc.js";class A extends Error{name="ProviderError";tryNextLink;constructor(t,o=!0){let r,n=!0;typeof o=="boolean"?(r=void 0,n=o):o!=null&&typeof o=="object"&&(r=o.logger,n=o.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,A.prototype),r?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,o=!0){return Object.assign(new this(t.message,o),t)}}class l extends A{name="CredentialsProviderError";constructor(t,o=!0){super(t,o),Object.setPrototypeOf(this,l.prototype)}}function _(e){return Promise.all(Object.keys(e).reduce((t,o)=>{const r=e[o];return typeof r=="string"?t.push([o,r]):t.push(r().then(n=>[o,n])),t},[])).then(t=>t.reduce((o,[r,n])=>(o[r]=n,o),{}))}function k(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:r}=await I(async()=>{const{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}=await import("./loadCognitoIdentity-BtOy6bnr.js");return{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])),n=c=>e.clientConfig?.[c]??e.parentClientConfig?.[c]??t?.callerClientConfig?.[c],{Credentials:{AccessKeyId:s=L(e.logger),Expiration:i,SecretKey:d=M(e.logger),SessionToken:u}=$(e.logger)}=await(e.client??new r(Object.assign({},e.clientConfig??{},{region:n("region"),profile:n("profile"),userAgentAppId:n("userAgentAppId")}))).send(new o({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await _(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:s,secretAccessKey:d,sessionToken:u,expiration:i}}}function L(e){throw new l("Response from Amazon Cognito contained no access key ID",{logger:e})}function $(e){throw new l("Response from Amazon Cognito contained no credentials",{logger:e})}function M(e){throw new l("Response from Amazon Cognito contained no secret key",{logger:e})}const b="IdentityIds";class B{dbName;constructor(t="aws:cognito-identity-ids"){this.dbName=t}getItem(t){return this.withObjectStore("readonly",o=>{const r=o.get(t);return new Promise(n=>{r.onerror=()=>n(null),r.onsuccess=()=>n(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",o=>{const r=o.delete(t);return new Promise((n,s)=>{r.onerror=()=>s(r.error),r.onsuccess=()=>n()})})}setItem(t,o){return this.withObjectStore("readwrite",r=>{const n=r.put({id:t,value:o});return new Promise((s,i)=>{n.onerror=()=>i(n.error),n.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((o,r)=>{t.onsuccess=()=>{o(t.result)},t.onerror=()=>{r(t.error)},t.onblocked=()=>{r(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const n=t.result;n.onerror=()=>{r(new Error("Failed to create object store"))},n.createObjectStore(b,{keyPath:"id"})}})}withObjectStore(t,o){return this.getDb().then(r=>{const n=r.transaction(b,t);return n.oncomplete=()=>r.close(),new Promise((s,i)=>{n.onerror=()=>i(n.error),s(o(n.objectStore(b)))}).catch(s=>{throw r.close(),s})})}}class W{store;constructor(t={}){this.store=t}getItem(t){return t in this.store?this.store[t]:null}removeItem(t){delete this.store[t]}setItem(t,o){this.store[t]=o}}const U=new W;function F(){return typeof self=="object"&&self.indexedDB?new B:typeof window=="object"&&window.localStorage?window.localStorage:U}function z({accountId:e,cache:t=F(),client:o,clientConfig:r,customRoleArn:n,identityPoolId:s,logins:i,userIdentifier:d=!i||Object.keys(i).length===0?"ANONYMOUS":void 0,logger:u,parentClientConfig:c}){u?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const f=d?`aws:cognito-identity-credentials:${s}:${d}`:void 0;let a=async w=>{const{GetIdCommand:m,CognitoIdentityClient:y}=await I(async()=>{const{GetIdCommand:g,CognitoIdentityClient:P}=await import("./loadCognitoIdentity-BtOy6bnr.js");return{GetIdCommand:g,CognitoIdentityClient:P}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])),h=g=>r?.[g]??c?.[g]??w?.callerClientConfig?.[g],C=o??new y(Object.assign({},r??{},{region:h("region"),profile:h("profile"),userAgentAppId:h("userAgentAppId")}));let p=f&&await t.getItem(f);if(!p){const{IdentityId:g=G(u)}=await C.send(new m({AccountId:e,IdentityPoolId:s,Logins:i?await _(i):void 0}));p=g,f&&Promise.resolve(t.setItem(f,p)).catch(()=>{})}return a=k({client:C,customRoleArn:n,logins:i,identityId:p}),a(w)};return w=>a(w).catch(async m=>{throw f&&Promise.resolve(t.removeItem(f)).catch(()=>{}),m})}function G(e){throw new l("Response from Amazon Cognito contained no identity ID",{logger:e})}const ie=e=>k({...e}),ae=e=>z({...e}),V="169.254.170.2",J="169.254.170.23",Y="[fd00:ec2::23]",Q=(e,t)=>{if(e.protocol!=="https:"&&!(e.hostname===V||e.hostname===J||e.hostname===Y)){if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const o=e.hostname.split("."),r=n=>{const s=parseInt(n,10);return 0<=s&&s<=255};if(o[0]==="127"&&r(o[1])&&r(o[2])&&r(o[3])&&o.length===4)return}throw new l(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
3
|
-
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
4
|
-
- ECS container host 169.254.170.2
|
|
5
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})}},T=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),R="The stream has already been transformed.",X=e=>{if(!E(e)&&!T(e)){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let t=!1;const o=async()=>{if(t)throw new Error(R);return t=!0,await D(e)},r=n=>{if(typeof n.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
6
|
-
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return n.stream()};return Object.assign(e,{transformToByteArray:o,transformToString:async n=>{const s=await o();if(n==="base64")return O(s);if(n==="hex")return N(s);if(n===void 0||n==="utf8"||n==="utf-8")return x(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(R);if(t=!0,E(e))return r(e);if(T(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},E=e=>typeof Blob=="function"&&e instanceof Blob;function Z(e){return new K({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((t,[o,r])=>(t[o]=r,t),{}),fragment:e.hash})}async function ee(e,t){const r=await X(e.body).transformToString();if(e.statusCode===200){const n=JSON.parse(r);if(typeof n.AccessKeyId!="string"||typeof n.SecretAccessKey!="string"||typeof n.Token!="string"||typeof n.Expiration!="string")throw new l("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t});return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.Token,expiration:H(n.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(r)}catch{}throw Object.assign(new l(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new l(`Server responded with status: ${e.statusCode}`,{logger:t})}const te=(e,t,o)=>async()=>{for(let r=0;r<t;++r)try{return await e()}catch{await new Promise(s=>setTimeout(s,o))}return await e()},ce=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t;const o=e.credentialsFullUri;if(o)t=o;else throw new l("No HTTP credential provider host provided.",{logger:e.logger});const r=new URL(t);Q(r,e.logger);const n=new j;return te(async()=>{const s=Z(r);e.authorizationToken&&(s.headers.Authorization=e.authorizationToken);const i=await n.handle(s);return ee(i.response)},e.maxRetries??3,e.timeout??1e3)},ne="us-east-1",le=(e,t,o)=>{let r;return async(n={})=>{const{callerClientConfig:s}=n,i=e.clientConfig?.profile??s?.profile,d=e.logger??s?.logger;d?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const u={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(u?.SerialNumber){if(!e.mfaCodeProvider)throw new l("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:d});u.TokenCode=await e.mfaCodeProvider(u?.SerialNumber)}const{AssumeRoleCommand:c,STSClient:f}=await I(async()=>{const{AssumeRoleCommand:w,STSClient:m}=await import("./loadSts-C2Q5qCT1.js").then(y=>y.l);return{AssumeRoleCommand:w,STSClient:m}},__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]));if(!r){const w=typeof t=="function"?t():void 0,m=[e.masterCredentials,e.clientConfig?.credentials,void s?.credentials,s?.credentialDefaultProvider?.(),w];let y="STS client default credentials";if(m[0])y="options.masterCredentials";else if(m[1])y="options.clientConfig.credentials";else{if(m[2])throw y="caller client's credentials",new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");m[3]?y="caller client's credentialDefaultProvider":m[4]&&(y="AWS SDK default credentials")}const h=[e.clientConfig?.region,s?.region,await o?.({profile:i}),ne];let C="default partition's default region";h[0]?C="options.clientConfig.region":h[1]?C="caller client's region":h[2]&&(C="file or env region");const p=[v(e.clientConfig?.requestHandler),v(s?.requestHandler)];let g="STS default requestHandler";p[0]?g="options.clientConfig.requestHandler":p[1]&&(g="caller client's requestHandler"),d?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ${C}=${await q(S(h))()}, ${y}, ${g}.`),r=new f({userAgentAppId:s?.userAgentAppId,...e.clientConfig,credentials:S(m),logger:d,profile:i,region:S(h),requestHandler:S(p)})}if(e.clientPlugins)for(const w of e.clientPlugins)r.middlewareStack.use(w);const{Credentials:a}=await r.send(new c(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new l(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`,{logger:d});return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,credentialScope:a.CredentialScope}}},v=e=>e?.metadata?.handlerProtocol==="h2"?void 0:e,S=e=>{for(const t of e)if(t!==void 0)return t},re=e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:s,policyArns:i,policy:d,durationSeconds:u}=e;let{roleAssumerWithWebIdentity:c}=e;if(!c){const{getDefaultRoleAssumerWithWebIdentity:f}=await I(async()=>{const{getDefaultRoleAssumerWithWebIdentity:a}=await import("./index-DVmya6p1.js");return{getDefaultRoleAssumerWithWebIdentity:a}},__vite__mapDeps([24,23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]));c=f({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:s,PolicyArns:i,Policy:d,DurationSeconds:u})},de=e=>re({...e});export{ie as fromCognitoIdentity,ae as fromCognitoIdentityPool,ce as fromHttp,le as fromTemporaryCredentials,de as fromWebToken};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as ke}from"./_commonjsHelpers-D6-XlEtG.js";var Q,Kr;function He(){return Kr||(Kr=1,Q=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var f=42;e[t]=f;for(var c in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==f||a.enumerable!==!0)return!1}return!0}),Q}var X,Qr;function pt(){if(Qr)return X;Qr=1;var r=He();return X=function(){return r()&&!!Symbol.toStringTag},X}var Z,Xr;function Je(){return Xr||(Xr=1,Z=Object),Z}var rr,Zr;function ct(){return Zr||(Zr=1,rr=Error),rr}var er,re;function st(){return re||(re=1,er=EvalError),er}var tr,ee;function vt(){return ee||(ee=1,tr=RangeError),tr}var nr,te;function dt(){return te||(te=1,nr=ReferenceError),nr}var or,ne;function Ve(){return ne||(ne=1,or=SyntaxError),or}var ar,oe;function V(){return oe||(oe=1,ar=TypeError),ar}var ir,ae;function ht(){return ae||(ae=1,ir=URIError),ir}var ur,ie;function gt(){return ie||(ie=1,ur=Math.abs),ur}var fr,ue;function bt(){return ue||(ue=1,fr=Math.floor),fr}var yr,fe;function At(){return fe||(fe=1,yr=Math.max),yr}var lr,ye;function mt(){return ye||(ye=1,lr=Math.min),lr}var pr,le;function Pt(){return le||(le=1,pr=Math.pow),pr}var cr,pe;function St(){return pe||(pe=1,cr=Math.round),cr}var sr,ce;function Rt(){return ce||(ce=1,sr=Number.isNaN||function(e){return e!==e}),sr}var vr,se;function Ot(){if(se)return vr;se=1;var r=Rt();return vr=function(t){return r(t)||t===0?t:t<0?-1:1},vr}var dr,ve;function qt(){return ve||(ve=1,dr=Object.getOwnPropertyDescriptor),dr}var hr,de;function U(){if(de)return hr;de=1;var r=qt();if(r)try{r([],"length")}catch{r=null}return hr=r,hr}var gr,he;function z(){if(he)return gr;he=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return gr=r,gr}var br,ge;function Et(){if(ge)return br;ge=1;var r=typeof Symbol<"u"&&Symbol,e=He();return br=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},br}var Ar,be;function ze(){return be||(be=1,Ar=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ar}var mr,Ae;function Ye(){if(Ae)return mr;Ae=1;var r=Je();return mr=r.getPrototypeOf||null,mr}var Pr,me;function wt(){if(me)return Pr;me=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",f=function(n,u){for(var y=[],o=0;o<n.length;o+=1)y[o]=n[o];for(var s=0;s<u.length;s+=1)y[s+n.length]=u[s];return y},c=function(n,u){for(var y=[],o=u,s=0;o<n.length;o+=1,s+=1)y[s]=n[o];return y},l=function(a,n){for(var u="",y=0;y<a.length;y+=1)u+=a[y],y+1<a.length&&(u+=n);return u};return Pr=function(n){var u=this;if(typeof u!="function"||e.apply(u)!==i)throw new TypeError(r+u);for(var y=c(arguments,1),o,s=function(){if(this instanceof o){var v=u.apply(this,f(y,arguments));return Object(v)===v?v:this}return u.apply(n,f(y,arguments))},I=t(0,u.length-y.length),F=[],m=0;m<I;m++)F[m]="$"+m;if(o=Function("binder","return function ("+l(F,",")+"){ return binder.apply(this,arguments); }")(s),u.prototype){var d=function(){};d.prototype=u.prototype,o.prototype=new d,d.prototype=null}return o},Pr}var Sr,Pe;function C(){if(Pe)return Sr;Pe=1;var r=wt();return Sr=Function.prototype.bind||r,Sr}var Rr,Se;function kr(){return Se||(Se=1,Rr=Function.prototype.call),Rr}var Or,Re;function Hr(){return Re||(Re=1,Or=Function.prototype.apply),Or}var qr,Oe;function Ft(){return Oe||(Oe=1,qr=typeof Reflect<"u"&&Reflect&&Reflect.apply),qr}var Er,qe;function Ke(){if(qe)return Er;qe=1;var r=C(),e=Hr(),t=kr(),i=Ft();return Er=i||r.call(t,e),Er}var wr,Ee;function Jr(){if(Ee)return wr;Ee=1;var r=C(),e=V(),t=kr(),i=Ke();return wr=function(c){if(c.length<1||typeof c[0]!="function")throw new e("a function is required");return i(r,t,c)},wr}var Fr,we;function It(){if(we)return Fr;we=1;var r=Jr(),e=U(),t;try{t=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var i=!!t&&e&&e(Object.prototype,"__proto__"),f=Object,c=f.getPrototypeOf;return Fr=i&&typeof i.get=="function"?r([i.get]):typeof c=="function"?function(a){return c(a==null?a:f(a))}:!1,Fr}var Ir,Fe;function Qe(){if(Fe)return Ir;Fe=1;var r=ze(),e=Ye(),t=It();return Ir=r?function(f){return r(f)}:e?function(f){if(!f||typeof f!="object"&&typeof f!="function")throw new TypeError("getProto: not an object");return e(f)}:t?function(f){return t(f)}:null,Ir}var jr,Ie;function jt(){if(Ie)return jr;Ie=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=C();return jr=t.call(r,e),jr}var Tr,je;function Xe(){if(je)return Tr;je=1;var r,e=Je(),t=ct(),i=st(),f=vt(),c=dt(),l=Ve(),a=V(),n=ht(),u=gt(),y=bt(),o=At(),s=mt(),I=Pt(),F=St(),m=Ot(),d=Function,v=function(q){try{return d('"use strict"; return ('+q+").constructor;")()}catch{}},h=U(),p=z(),A=function(){throw new a},Y=h?(function(){try{return arguments.callee,A}catch{try{return h(arguments,"callee").get}catch{return A}}})():A,T=Et()(),P=Qe(),Ze=Ye(),rt=ze(),Vr=Hr(),_=kr(),B={},et=typeof Uint8Array>"u"||!P?r:P(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":B,"%AsyncGenerator%":B,"%AsyncGeneratorFunction%":B,"%AsyncIteratorPrototype%":B,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":B,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&P?P(P([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!P?r:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":f,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!P?r:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&P?P(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":Y,"%TypedArray%":et,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":n,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":Vr,"%Object.defineProperty%":p,"%Object.getPrototypeOf%":Ze,"%Math.abs%":u,"%Math.floor%":y,"%Math.max%":o,"%Math.min%":s,"%Math.pow%":I,"%Math.round%":F,"%Math.sign%":m,"%Reflect.getPrototypeOf%":rt};if(P)try{null.error}catch(q){var tt=P(P(q));j["%Error.prototype%"]=tt}var nt=function q(g){var S;if(g==="%AsyncFunction%")S=v("async function () {}");else if(g==="%GeneratorFunction%")S=v("function* () {}");else if(g==="%AsyncGeneratorFunction%")S=v("async function* () {}");else if(g==="%AsyncGenerator%"){var b=q("%AsyncGeneratorFunction%");b&&(S=b.prototype)}else if(g==="%AsyncIteratorPrototype%"){var R=q("%AsyncGenerator%");R&&P&&(S=P(R.prototype))}return j[g]=S,S},zr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=C(),N=jt(),ot=x.call(_,Array.prototype.concat),at=x.call(Vr,Array.prototype.splice),Yr=x.call(_,String.prototype.replace),M=x.call(_,String.prototype.slice),it=x.call(_,RegExp.prototype.exec),ut=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ft=/\\(\\)?/g,yt=function(g){var S=M(g,0,1),b=M(g,-1);if(S==="%"&&b!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(b==="%"&&S!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var R=[];return Yr(g,ut,function(E,$,O,G){R[R.length]=O?Yr(G,ft,"$1"):$||E}),R},lt=function(g,S){var b=g,R;if(N(zr,b)&&(R=zr[b],b="%"+R[0]+"%"),N(j,b)){var E=j[b];if(E===B&&(E=nt(b)),typeof E>"u"&&!S)throw new a("intrinsic "+g+" exists, but is not available. Please file an issue!");return{alias:R,name:b,value:E}}throw new l("intrinsic "+g+" does not exist!")};return Tr=function(g,S){if(typeof g!="string"||g.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof S!="boolean")throw new a('"allowMissing" argument must be a boolean');if(it(/^%?[^%]*%?$/,g)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var b=yt(g),R=b.length>0?b[0]:"",E=lt("%"+R+"%",S),$=E.name,O=E.value,G=!1,K=E.alias;K&&(R=K[0],at(b,ot([0,1],K)));for(var W=1,D=!0;W<b.length;W+=1){var w=b[W],L=M(w,0,1),k=M(w,-1);if((L==='"'||L==="'"||L==="`"||k==='"'||k==="'"||k==="`")&&L!==k)throw new l("property names with quotes must have matching quotes");if((w==="constructor"||!D)&&(G=!0),R+="."+w,$="%"+R+"%",N(j,$))O=j[$];else if(O!=null){if(!(w in O)){if(!S)throw new a("base intrinsic for "+g+" exists, but the property is not available.");return}if(h&&W+1>=b.length){var H=h(O,w);D=!!H,D&&"get"in H&&!("originalValue"in H.get)?O=H.get:O=O[w]}else D=N(O,w),O=O[w];D&&!G&&(j[$]=O)}}return O},Tr}var Br,Te;function Tt(){if(Te)return Br;Te=1;var r=Xe(),e=Jr(),t=e([r("%String.prototype.indexOf%")]);return Br=function(f,c){var l=r(f,!!c);return typeof l=="function"&&t(f,".prototype.")>-1?e([l]):l},Br}var $r,Be;function Bt(){if(Be)return $r;Be=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,i;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw i}}),i={},e(function(){throw 42},null,t)}catch(h){h!==i&&(e=null)}else e=null;var f=/^\s*class\b/,c=function(p){try{var A=r.call(p);return f.test(A)}catch{return!1}},l=function(p){try{return c(p)?!1:(r.call(p),!0)}catch{return!1}},a=Object.prototype.toString,n="[object Object]",u="[object Function]",y="[object GeneratorFunction]",o="[object HTMLAllCollection]",s="[object HTML document.all class]",I="[object HTMLCollection]",F=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),d=function(){return!1};if(typeof document=="object"){var v=document.all;a.call(v)===a.call(document.all)&&(d=function(p){if((m||!p)&&(typeof p>"u"||typeof p=="object"))try{var A=a.call(p);return(A===o||A===s||A===I||A===n)&&p("")==null}catch{}return!1})}return $r=e?function(p){if(d(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;try{e(p,null,t)}catch(A){if(A!==i)return!1}return!c(p)&&l(p)}:function(p){if(d(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;if(F)return l(p);if(c(p))return!1;var A=a.call(p);return A!==u&&A!==y&&!/^\[object HTML/.test(A)?!1:l(p)},$r}var _r,$e;function $t(){if($e)return _r;$e=1;var r=Bt(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,i=function(n,u,y){for(var o=0,s=n.length;o<s;o++)t.call(n,o)&&(y==null?u(n[o],o,n):u.call(y,n[o],o,n))},f=function(n,u,y){for(var o=0,s=n.length;o<s;o++)y==null?u(n.charAt(o),o,n):u.call(y,n.charAt(o),o,n)},c=function(n,u,y){for(var o in n)t.call(n,o)&&(y==null?u(n[o],o,n):u.call(y,n[o],o,n))};function l(a){return e.call(a)==="[object Array]"}return _r=function(n,u,y){if(!r(u))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=y),l(n)?i(n,u,o):typeof n=="string"?f(n,u,o):c(n,u,o)},_r}var xr,_e;function _t(){return _e||(_e=1,xr=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),xr}var Dr,xe;function xt(){if(xe)return Dr;xe=1;var r=_t(),e=typeof globalThis>"u"?ke:globalThis;return Dr=function(){for(var i=[],f=0;f<r.length;f++)typeof e[r[f]]=="function"&&(i[i.length]=r[f]);return i},Dr}var Ur={exports:{}},Cr,De;function Dt(){if(De)return Cr;De=1;var r=z(),e=Ve(),t=V(),i=U();return Cr=function(c,l,a){if(!c||typeof c!="object"&&typeof c!="function")throw new t("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,s=!!i&&i(c,l);if(r)r(c,l,{configurable:y===null&&s?s.configurable:!y,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:u===null&&s?s.writable:!u});else if(o||!n&&!u&&!y)c[l]=a;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Cr}var Nr,Ue;function Ut(){if(Ue)return Nr;Ue=1;var r=z(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},Nr=e,Nr}var Mr,Ce;function Ct(){if(Ce)return Mr;Ce=1;var r=Xe(),e=Dt(),t=Ut()(),i=U(),f=V(),c=r("%Math.floor%");return Mr=function(a,n){if(typeof a!="function")throw new f("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||c(n)!==n)throw new f("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],y=!0,o=!0;if("length"in a&&i){var s=i(a,"length");s&&!s.configurable&&(y=!1),s&&!s.writable&&(o=!1)}return(y||o||!u)&&(t?e(a,"length",n,!0,!0):e(a,"length",n)),a},Mr}var Gr,Ne;function Nt(){if(Ne)return Gr;Ne=1;var r=C(),e=Hr(),t=Ke();return Gr=function(){return t(r,e,arguments)},Gr}var Me;function Mt(){return Me||(Me=1,(function(r){var e=Ct(),t=z(),i=Jr(),f=Nt();r.exports=function(l){var a=i(arguments),n=l.length-(arguments.length-1);return e(a,1+(n>0?n:0),!0)},t?t(r.exports,"apply",{value:f}):r.exports.apply=f})(Ur)),Ur.exports}var Wr,Ge;function Gt(){if(Ge)return Wr;Ge=1;var r=$t(),e=xt(),t=Mt(),i=Tt(),f=U(),c=Qe(),l=i("Object.prototype.toString"),a=pt()(),n=typeof globalThis>"u"?ke:globalThis,u=e(),y=i("String.prototype.slice"),o=i("Array.prototype.indexOf",!0)||function(d,v){for(var h=0;h<d.length;h+=1)if(d[h]===v)return h;return-1},s={__proto__:null};a&&f&&c?r(u,function(m){var d=new n[m];if(Symbol.toStringTag in d&&c){var v=c(d),h=f(v,Symbol.toStringTag);if(!h&&v){var p=c(v);h=f(p,Symbol.toStringTag)}s["$"+m]=t(h.get)}}):r(u,function(m){var d=new n[m],v=d.slice||d.set;v&&(s["$"+m]=t(v))});var I=function(d){var v=!1;return r(s,function(h,p){if(!v)try{"$"+h(d)===p&&(v=y(p,1))}catch{}}),v},F=function(d){var v=!1;return r(s,function(h,p){if(!v)try{h(d),v=y(p,1)}catch{}}),v};return Wr=function(d){if(!d||typeof d!="object")return!1;if(!a){var v=y(l(d),8,-1);return o(u,v)>-1?v:v!=="Object"?!1:F(d)}return f?I(d):null},Wr}var Lr,We;function Lt(){if(We)return Lr;We=1;var r=Gt();return Lr=function(t){return!!r(t)},Lr}var J={exports:{}},Le;function kt(){return Le||(Le=1,typeof Object.create=="function"?J.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:J.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}),J.exports}export{Tt as a,U as b,jt as c,V as d,Qe as e,Lt as f,Gt as g,kt as h,pt as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as ge,n as T,i as me,E as Ee,j as he,k as ye,l as fe,p as Ie,m as xe,A as ve,o as Pe,q as Se,t as Ce,D as Ae,u as Re,w as _e,x as we,y as be,z as De,B as Fe,F as ke,G as Oe,H as $e,I as Ue,J as Ge,K as Me,M as Te,a as He,O as Le,Q as Ne,U as je,V as ze,W as qe,X as Ke,Y as Be,Z as Ve,_ as We,$ as Je,a0 as Qe,a1 as Xe,a2 as Ye,a3 as Ze,a4 as et,a5 as tt,T as d,C as H,g as L}from"./index-CMyUHiQc.js";import{t as ot,f as nt,d as rt,a as it,s as st,F as at}from"./normalizeProvider-EC8cbfMc.js";import{A as ct}from"./AwsJson1_1Protocol-Bs-KOF3u.js";import"./preload-helper-BlTxHScW.js";import"./index-yIpMibae.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.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"./index-BLr5FjlG.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-rEhqCN8O.js";import"./inherits_browser-5Fj3Mjxs.js";const dt=async(e,t,n)=>({operation:me(t).operation,region:await T(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function pt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function S(e){return{schemeId:"smithy.api#noAuth"}}const ut=e=>{const t=[];switch(e.operation){case"GetCredentialsForIdentity":{t.push(S());break}case"GetId":{t.push(S());break}case"GetOpenIdToken":{t.push(S());break}case"UnlinkIdentity":{t.push(S());break}default:t.push(pt(e))}return t},lt=e=>{const t=ge(e);return Object.assign(t,{authSchemePreference:T(e.authSchemePreference??[])})},gt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),N={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},mt="3.948.0",Et={version:mt},j="required",i="fn",s="argv",f="ref",w=!0,b="isSet",v="booleanEquals",y="error",g="endpoint",h="tree",A="PartitionResult",R="getAttr",I="stringEquals",D={[j]:!1,type:"string"},F={[j]:!0,default:!1,type:"boolean"},k={[f]:"Endpoint"},z={[i]:v,[s]:[{[f]:"UseFIPS"},!0]},q={[i]:v,[s]:[{[f]:"UseDualStack"},!0]},r={},x={[f]:"Region"},O={[i]:R,[s]:[{[f]:A},"supportsFIPS"]},K={[f]:A},$={[i]:v,[s]:[!0,{[i]:R,[s]:[K,"supportsDualStack"]}]},U=[z],G=[q],M=[x],ht={parameters:{Region:D,UseDualStack:F,UseFIPS:F,Endpoint:D},rules:[{conditions:[{[i]:b,[s]:[k]}],rules:[{conditions:U,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:y},{conditions:G,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:y},{endpoint:{url:k,properties:r,headers:r},type:g}],type:h},{conditions:[{[i]:b,[s]:M}],rules:[{conditions:[{[i]:"aws.partition",[s]:M,assign:A}],rules:[{conditions:[z,q],rules:[{conditions:[{[i]:v,[s]:[w,O]},$],rules:[{conditions:[{[i]:I,[s]:[x,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:r,headers:r},type:g},{conditions:[{[i]:I,[s]:[x,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:y}],type:h},{conditions:U,rules:[{conditions:[{[i]:v,[s]:[O,w]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:y}],type:h},{conditions:G,rules:[{conditions:[$],rules:[{conditions:[{[i]:I,[s]:["aws",{[i]:R,[s]:[K,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:r,headers:r},type:g},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:y}],type:h},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:y}]},yt=ht,ft=new Ee({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),It=(e,t={})=>ft.get(e,()=>he(yt,{endpointParams:e,logger:t.logger}));fe.aws=ye;const xt=e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??it,base64Encoder:e?.base64Encoder??rt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??It,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ut,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ve},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pe}],logger:e?.logger??new xe,protocol:e?.protocol??new ct({defaultNamespace:"com.amazonaws.cognitoidentity",serviceTarget:"AWSCognitoIdentityService",awsQueryCompatible:!1}),serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??Ie,utf8Decoder:e?.utf8Decoder??nt,utf8Encoder:e?.utf8Encoder??ot}),vt=e=>{const t=Se(e),n=()=>t().then(ke),a=xt(e);return{...a,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??be,credentialDefaultProvider:e?.credentialDefaultProvider??(c=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??we({serviceId:a.serviceId,clientVersion:Et.version}),maxAttempts:e?.maxAttempts??_e,region:e?.region??Re("Region is missing"),requestHandler:at.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ae),sha256:e?.sha256??Ce,streamCollector:e?.streamCollector??st,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Fe)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(De))}},Pt=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,a=e.credentials;return{setHttpAuthScheme(c){const P=t.findIndex(C=>C.schemeId===c.schemeId);P===-1?t.push(c):t.splice(P,1,c)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(c){n=c},httpAuthSchemeProvider(){return n},setCredentials(c){a=c},credentials(){return a}}},St=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ct=(e,t)=>{const n=Object.assign(Oe(e),$e(e),Ue(e),Pt(e));return t.forEach(a=>a.configure(n)),Object.assign(e,Ge(n),Me(n),Te(n),St(n))};class Zo extends He{config;constructor(...[t]){const n=vt(t||{});super(n),this.initConfig=n;const a=gt(n),c=Le(a),P=Ne(c),C=je(P),ce=Ze(C),de=ze(ce),pe=lt(de),ue=Ct(pe,t?.extensions||[]);this.config=ue,this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Ke(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(Ve(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(Je(this.config)),this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Xe(this.config,{httpAuthSchemeParametersProvider:dt,identityProviderConfigProvider:async le=>new et({"aws.auth#sigv4":le.credentials})})),this.middlewareStack.use(Ye(this.config))}destroy(){super.destroy()}}let p=class B extends tt{constructor(t){super(t),Object.setPrototypeOf(this,B.prototype)}},At=class V extends p{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,V.prototype)}},Rt=class W extends p{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,W.prototype)}},_t=class J extends p{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}},wt=class Q extends p{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,Q.prototype)}},bt=class X extends p{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,X.prototype)}},Dt=class Y extends p{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,Y.prototype)}},Ft=class Z extends p{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,Z.prototype)}},kt=class ee extends p{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,ee.prototype)}},Ot=class te extends p{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,te.prototype)}},$t=class oe extends p{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(t){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...t}),Object.setPrototypeOf(this,oe.prototype)}},Ut=class ne extends p{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,ne.prototype)}};const Gt="AccountId",Mt="AccessKeyId",re="Credentials",Tt="ConcurrentModificationException",Ht="CustomRoleArn",Lt="DeveloperUserAlreadyRegisteredException",Nt="Expiration",jt="ExternalServiceException",zt="GetCredentialsForIdentity",qt="GetCredentialsForIdentityInput",Kt="GetCredentialsForIdentityResponse",Bt="GetId",Vt="GetIdInput",Wt="GetIdResponse",Jt="InternalErrorException",_="IdentityId",Qt="InvalidIdentityPoolConfigurationException",Xt="InvalidParameterException",Yt="IdentityPoolId",Zt="IdentityProviderToken",ie="Logins",eo="LimitExceededException",to="LoginsMap",oo="NotAuthorizedException",no="ResourceConflictException",ro="ResourceNotFoundException",io="SecretKey",so="SecretKeyString",ao="SessionToken",co="TooManyRequestsException",m="client",u="error",E="httpError",l="message",po="server",se="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",o="com.amazonaws.cognitoidentity";var uo=[0,o,Zt,8,0],lo=[0,o,so,8,0],go=[-3,o,Tt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(go,Ut);var mo=[3,o,re,0,[Mt,io,ao,Nt],[0,[()=>lo,0],0,4]],Eo=[-3,o,Lt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Eo,$t);var ho=[-3,o,jt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(ho,kt);var yo=[3,o,qt,0,[_,ie,Ht],[0,[()=>ae,0],0]],fo=[3,o,Kt,0,[_,re],[0,[()=>mo,0]]],Io=[3,o,Vt,0,[Gt,Yt,ie],[0,0,[()=>ae,0]]],xo=[3,o,Wt,0,[_],[0]],vo=[-3,o,Jt,{[u]:po},[l],[0]];d.for(o).registerError(vo,At);var Po=[-3,o,Qt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Po,Ot);var So=[-3,o,Xt,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(So,Rt);var Co=[-3,o,eo,{[u]:m,[E]:400},[l],[0]];d.for(o).registerError(Co,_t);var Ao=[-3,o,oo,{[u]:m,[E]:403},[l],[0]];d.for(o).registerError(Ao,wt);var Ro=[-3,o,no,{[u]:m,[E]:409},[l],[0]];d.for(o).registerError(Ro,bt);var _o=[-3,o,ro,{[u]:m,[E]:404},[l],[0]];d.for(o).registerError(_o,Ft);var wo=[-3,o,co,{[u]:m,[E]:429},[l],[0]];d.for(o).registerError(wo,Dt);var bo=[-3,se,"CognitoIdentityServiceException",0,[],[]];d.for(se).registerError(bo,p);var ae=[2,o,to,0,[0,0],[()=>uo,0]],Do=[9,o,zt,0,()=>yo,()=>fo],Fo=[9,o,Bt,0,()=>Io,()=>xo];class en extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Do).build(){}class tn extends H.classBuilder().ep(N).m(function(t,n,a,c){return[L(a,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Fo).build(){}export{Zo as CognitoIdentityClient,en as GetCredentialsForIdentityCommand,tn as GetIdCommand};
|
package/assets/util-qaS8mbUT.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{r as sr,a as X,b as wr,c as jr,d as Or,e as vr,f as Br,g as Tr,h as Ir}from"./inherits_browser-5Fj3Mjxs.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
|
-
`)>-1&&(c?a=a.split(`
|
|
3
|
-
`).map(function(b){return" "+b}).join(`
|
|
4
|
-
`).slice(2):a=`
|
|
5
|
-
`+a.split(`
|
|
6
|
-
`).map(function(b){return" "+b}).join(`
|
|
7
|
-
`))):a=r.stylize("[Circular]","special")),T(f)){if(c&&s.match(/^\d+$/))return a;f=JSON.stringify(""+s),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.slice(1,-1),f=r.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=r.stylize(f,"string"))}return f+": "+a}function Y(r,e,t){var o=r.reduce(function(s,c){return c.indexOf(`
|
|
8
|
-
`)>=0,s+c.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?t[0]+(e===""?"":e+`
|
|
9
|
-
`)+" "+r.join(`,
|
|
10
|
-
`)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}i.types=Dr();function H(r){return Array.isArray(r)}i.isArray=H;function C(r){return typeof r=="boolean"}i.isBoolean=C;function U(r){return r===null}i.isNull=U;function x(r){return r==null}i.isNullOrUndefined=x;function J(r){return typeof r=="number"}i.isNumber=J;function q(r){return typeof r=="string"}i.isString=q;function $(r){return typeof r=="symbol"}i.isSymbol=$;function T(r){return r===void 0}i.isUndefined=T;function R(r){return P(r)&&V(r)==="[object RegExp]"}i.isRegExp=R,i.types.isRegExp=R;function P(r){return typeof r=="object"&&r!==null}i.isObject=P;function M(r){return P(r)&&V(r)==="[object Date]"}i.isDate=M,i.types.isDate=M;function v(r){return P(r)&&(V(r)==="[object Error]"||r instanceof Error)}i.isError=v,i.types.isNativeError=v;function z(r){return typeof r=="function"}i.isFunction=z;function G(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}i.isPrimitive=G,i.isBuffer=Ur();function V(r){return Object.prototype.toString.call(r)}function E(r){return r<10?"0"+r.toString(10):r.toString(10)}var rr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(){var r=new Date,e=[E(r.getHours()),E(r.getMinutes()),E(r.getSeconds())].join(":");return[r.getDate(),rr[r.getMonth()],e].join(" ")}i.log=function(){console.log("%s - %s",_(),i.format.apply(i,arguments))},i.inherits=Ir(),i._extend=function(r,e){if(!e||!P(e))return r;for(var t=Object.keys(e),o=t.length;o--;)r[t[o]]=e[t[o]];return r};function L(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var w=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;i.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(w&&e[w]){var t=e[w];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var o,s,c=new Promise(function(y,b){o=y,s=b}),f=[],a=0;a<arguments.length;a++)f.push(arguments[a]);f.push(function(y,b){y?s(y):o(b)});try{e.apply(this,f)}catch(y){s(y)}return c}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),w&&Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,h(e))},i.promisify.custom=w;function Z(r,e){if(!r){var t=new Error("Promise was rejected with a falsy value");t.reason=r,r=t}return e(r)}function N(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var t=[],o=0;o<arguments.length;o++)t.push(arguments[o]);var s=t.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var c=this,f=function(){return s.apply(c,arguments)};r.apply(this,t).then(function(a){process.nextTick(f.bind(null,null,a))},function(a){process.nextTick(Z.bind(null,a,f))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(r)),Object.defineProperties(e,h(r)),e}i.callbackify=N})(er)),er}export{zr as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as m}from"./winston-1qzyIKCb-BdlBoF8R.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-qaS8mbUT.js";import"./inherits_browser-5Fj3Mjxs.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./__vite-browser-external-DLjrMatA.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-6mKfgpcs-DsgiI2lM.js";function a(e,n){for(var o=0;o<n.length;o++){const t=n[o];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var p=m();const c=f(p),v=a({__proto__:null,default:c},[p]);export{v as w};
|